.home-header {
  padding: 52px 24px 14px;
  text-align: center;
}

.home-header h1 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 2px;
  color: #eaf2ff;
}

.home-content {
  padding: 6px 20px 90px;
}

/* 数据卡片 */
.stats-card {
  padding: 24px 20px 22px;
  margin-bottom: 20px;
  position: relative;
}

.stats-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(100, 180, 255, 0.5), transparent);
}

.month-label {
  font-size: 20px;
  color: #dce8ff;
  letter-spacing: 2px;
  margin-bottom: 4px;
}

.big-number {
  font-size: 70px;
  font-weight: 700;
  line-height: 1.05;
  background: linear-gradient(180deg, #9fdcff 0%, #4eaeff 50%, #2a7dff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 1px;
}

.big-number-sub {
  font-size: 15px;
  color: #cfe3ff;
  letter-spacing: 3px;
  margin-left: 8px;
}

.big-number-wrap {
  display: flex;
  align-items: flex-end;
  margin-bottom: 22px;
}

.chip-row {
  display: flex;
  gap: 10px;
  margin-bottom: 4px;
}

.chip-row .chip {
  flex: 1;
  justify-content: center;
  padding: 10px 8px;
  font-size: 13px;
  gap: 4px;
  flex-direction: column;
}

.chip-row .chip strong {
  font-size: 18px;
  color: #fff;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 1px;
}

.chip-row .chip strong .unit {
  font-size: 12px;
  font-weight: 400;
  color: #9fb5de;
}

/* 筛选按钮 */
.filter-row {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
  position: relative;
  z-index: 5;
}

.filter-btn {
  flex: 1;
  height: 38px;
  background: rgba(18, 44, 100, 0.8);
  border: 1px solid rgba(90, 160, 255, 0.35);
  border-radius: 10px;
  color: #dbe8ff;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  white-space: nowrap;
}

.filter-btn.open {
  background: rgba(30, 72, 160, 0.95);
  border-color: rgba(120, 185, 255, 0.6);
  box-shadow: 0 0 12px rgba(80, 160, 255, 0.25);
}

.filter-btn.open svg {
  transform: rotate(180deg);
}

.filter-btn svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s;
  flex-shrink: 0;
}

/* 下拉面板 - 绝对定位在按钮下方 */
.dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 100%;
  background: linear-gradient(180deg, rgba(18, 48, 110, 0.98), rgba(12, 32, 82, 0.98));
  border: 1px solid rgba(100, 170, 255, 0.35);
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 18px rgba(60, 130, 240, 0.2);
  z-index: 100;
  display: none;
  backdrop-filter: blur(10px);
}

.dropdown.show {
  display: block;
  animation: dropdownIn 0.18s ease-out;
}

/* 时间筛选下拉菜单 - 滚动条样式 */
#timeDropdown {
  max-height: 220px;
  overflow-y: auto;
}
#timeDropdown::-webkit-scrollbar {
  width: 5px;
}
#timeDropdown::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.05);
  border-radius: 3px;
}
#timeDropdown::-webkit-scrollbar-thumb {
  background: rgba(100, 170, 255, 0.4);
  border-radius: 3px;
}
#timeDropdown::-webkit-scrollbar-thumb:hover {
  background: rgba(100, 170, 255, 0.6);
}

@keyframes dropdownIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.dropdown-item {
  padding: 10px 14px;
  font-size: 14px;
  color: #d7e6ff;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  transition: background 0.15s;
}

.dropdown-item:hover,
.dropdown-item:active {
  background: rgba(60, 130, 240, 0.25);
}

.dropdown-item.selected {
  color: #6ac0ff;
  background: rgba(60, 130, 240, 0.18);
}

.dropdown-item.selected::after {
  content: '✓';
  font-size: 13px;
  color: #6ac0ff;
}

/* 三级联动下拉面板 - 从中间按钮下方居中展开 */
.cascade-dropdown {
  width: 300px;
  left: 50%;
  margin-left: -150px;
  padding: 0;
}

.cascade-cols {
  display: flex;
  gap: 1px;
  background: rgba(80, 150, 255, 0.12);
  max-height: 260px;
  overflow: hidden;
}

.cascade-col {
  flex: 1;
  background: rgba(12, 32, 82, 0.98);
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.cascade-col-title {
  padding: 8px 0;
  text-align: center;
  font-size: 12px;
  color: #7da3d8;
  border-bottom: 1px solid rgba(80, 150, 255, 0.15);
  flex-shrink: 0;
}

.cascade-list {
  flex: 1;
  overflow-y: auto;
  padding: 4px 0;
}

.cascade-list::-webkit-scrollbar {
  width: 3px;
}

.cascade-list::-webkit-scrollbar-thumb {
  background: rgba(100, 170, 255, 0.3);
  border-radius: 2px;
}

.cascade-opt {
  padding: 9px 8px;
  font-size: 13px;
  color: #d7e6ff;
  text-align: center;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cascade-opt:hover,
.cascade-opt:active {
  background: rgba(60, 130, 240, 0.2);
}

.cascade-opt.active {
  color: #6ac0ff;
  background: rgba(60, 130, 240, 0.25);
  font-weight: 500;
}

.cascade-opt.empty {
  color: #5a7aa8;
  font-size: 12px;
  cursor: default;
}

.cascade-opt.empty:hover {
  background: none;
}

.cascade-footer {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid rgba(80, 150, 255, 0.15);
}

.cascade-btn {
  flex: 1;
  height: 34px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
}

.cascade-reset {
  background: rgba(30, 60, 130, 0.8);
  color: #b8cdef;
  border: 1px solid rgba(80, 150, 255, 0.3);
}

.cascade-confirm {
  background: linear-gradient(90deg, #1a5dff, #2e7bff);
  color: #fff;
  font-weight: 500;
}

/* 列表卡片 */
.list-card {
  padding: 0;
  overflow: hidden;
}

.list-head,
.list-row {
  display: grid;
  grid-template-columns: 60px 1fr 1.1fr 70px 70px;
  align-items: center;
  padding: 12px 8px;
  font-size: 13px;
  text-align: center;
}

.list-head {
  background: rgba(20, 52, 115, 0.55);
  border-bottom: 1px solid rgba(90, 160, 255, 0.2);
  color: #b8d0f5;
  font-weight: 500;
}

.list-row {
  color: #e0ecff;
  border-bottom: 1px solid rgba(90, 160, 255, 0.1);
}

.list-row:last-child {
  border-bottom: none;
}

.list-row .role {
  color: #8ec6ff;
}

.list-row .commission {
  color: #ffd27a;
}

.list-row > div:first-child {
  text-align: center;
}

.list-row > div:nth-child(2),
.list-row > div:nth-child(3) {
  text-align: left;
  padding-left: 6px;
}

/* 未筛选身份时：隐藏「身份」列 */
.list-card.role-hidden .list-head,
.list-card.role-hidden .list-row {
  grid-template-columns: 1fr 1.1fr 70px 70px;
}

.list-card.role-hidden .col-role,
.list-card.role-hidden .list-row > div:first-child {
  display: none;
}

/* 加载 / 没有更多 / 空数据 占位 */
.list-sentinel {
  padding: 14px 8px;
  text-align: center;
  font-size: 12px;
  color: #7da3d8;
  min-height: 44px;
}

.list-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.loading-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(120, 185, 255, 0.25);
  border-top-color: #6ac0ff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.list-no-more,
.list-empty {
  color: #6f8fc6;
  letter-spacing: 1px;
}

/* 结算状态标签 */
.settle-status {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 500;
}

.settle-status.settled {
  background: rgba(80, 200, 120, 0.2);
  color: #5fd48a;
  border: 1px solid rgba(80, 200, 120, 0.4);
}

.settle-status.unsettled {
  background: rgba(255, 160, 80, 0.2);
  color: #ffa050;
  border: 1px solid rgba(255, 160, 80, 0.4);
}
