body {
  font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans","PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
  margin: 0;
  background: #f7f7f8;
  color: #111;
}

.container {
  max-width: 1200px;
  margin: 24px auto;
  padding: 0 16px;
}

.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(0,0,0,.06);
  padding: 16px;
  margin-bottom: 16px;
}

h1 {
  font-size: 20px;
  margin: 0 0 12px;
}

.topbar {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.small {
  color: #666;
  font-size: 12px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th, td {
  border-bottom: 1px solid #eee;
  padding: 10px 8px;
  vertical-align: top;
}

th {
  text-align: left;
  color: #333;
  font-weight: 600;
  background: #fafafa;
  position: sticky;
  top: 0;
}

.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: #f0f0f0;
  font-size: 12px;
}

.badge.up {
  background: #ffecec;
}

.badge.down {
  background: #ecf7ff;
}

.hl {
  background: transparent; /* 不再高亮持仓变化 */
}

.num {
  font-variant-numeric: tabular-nums;
}

.right {
  text-align: right;
}

footer {
  margin-top: 10px;
  color: #999;
  font-size: 12px;
}

a {
  color: #1677ff;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.form-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

input, select, textarea {
  padding: 8px 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
}

textarea {
  width: 520px;
  min-height: 70px;
}

button {
  padding: 9px 14px;
  border: 0;
  border-radius: 10px;
  background: #1677ff;
  color: #fff;
  cursor: pointer;
}

button.secondary {
  background: #444;
}

button.danger {
  background: #d4380d;
}

.msg {
  padding: 10px 12px;
  border-radius: 10px;
  background: #f6ffed;
  border: 1px solid #b7eb8f;
  color: #135200;
  margin-bottom: 12px;
}

.err {
  background: #fff2f0;
  border-color: #ffccc7;
  color: #a8071a;
}

/* 板块分区行：移动端/微信浏览器可能会覆盖颜色，使用更强选择器 */
.sector-row td {
  background: #f0f5ff;
  color: #10239e !important;
  -webkit-text-fill-color: #10239e !important;
  font-weight: 700;
  border-bottom: 1px solid #d6e4ff;
}

.sector-row td * {
  color: #10239e !important;
  -webkit-text-fill-color: #10239e !important;
}

.sector-row td .meta {
  font-weight: 400;
  color: #4b5563 !important;
  -webkit-text-fill-color: #4b5563 !important;
  margin-left: 10px;
}

.sector-row td .meta.small {
  font-size: 12px;
}

.sector-name {
  color: #10239e !important;
  -webkit-text-fill-color: #10239e !important;
}

/* 标题上方的圆形头像 */
.avatar-top {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: #ddd;
  background-image: url("/assets/avatar.png"); /* 你的头像路径 */
  background-size: cover;
  background-position: center;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .10);
  margin-bottom: 10px;
}

/* 顶部图片 */
.hero {
  width: 100%;
  margin-bottom: 12px;
}

.hero img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

/* 联系方式按钮 */
.contact-row {
  margin-top: 10px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-link {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 10px;
  text-decoration: none;
  border: 1px solid #ddd;
  font-weight: 700;
}

.btn-link:hover {
  opacity: 0.9;
}

/* 汇总区放大 */
.stats-row .badge-big {
  padding: 12px 14px;
}

.stats-row .badge-big .num {
  font-size: 28px; /* 放大总持仓/总涨跌/加权涨跌 */
  font-weight: 800;
  letter-spacing: 0.3px;
}

/* 表格：基金分涨跌（实时涨跌、当日预估盈亏）放大+加粗+红涨绿跌 */
td.chg {
  font-size: 18px;   /* 放大 */
  font-weight: 800;  /* 加粗 */
}

td.chg.chg-up{
  color:#d40000 !important;
  -webkit-text-fill-color:#d40000 !important;
  font-weight:800;
  font-size:18px;
}
td.chg.chg-down{
  color:#0a8a0a !important;
  -webkit-text-fill-color:#0a8a0a !important;
  font-weight:800;
  font-size:18px;
}

.up {
  color: #d40000;
}

.down {
  color: #0a8a0a;
}

/* 顶部：左图右信息（替代原 hero 全宽） */
.hero-split{
  display:flex;
  gap:14px;
  align-items:stretch;
}

/* 左侧图片容器 */
/* 顶部左侧图片：缩小版 */
.hero-left{
  flex: 0 0 160px;     /* 原来 260 → 改成 160 */
  max-width: 180px;
}

.hero-left img{
  width:100%;
  height:100px;        /* 原来 160 → 改成 100 */
  object-fit:cover;
  display:block;
  border-radius:10px;
}


/* 右侧信息区域 */
.hero-right{
  flex:1;
  min-width: 50px;
}

/* 移动端：改成上下排 */
/* 手机端：上下显示（图在上，信息在下） */
/* 手机端：不分左右，上下排列 */
@media (max-width: 768px){
  .hero-split{
    flex-direction: column;
    gap: 10px;
  }

  /* 左右两块都当成“整行” */
  .hero-left,
  .hero-right{
    flex: none;
    width: 100%;
    max-width: 100%;
  }

  .hero-left img{
    width: 100%;
    height: 200px;        /* 想更小就 90 / 80 */
    object-fit: cover;
    border-radius: 12px;
    display: block;
  }

  .hero-right{
    min-width: 0;
  }
}

/* ===== Dashboard theme overrides (front page only) ===== */
.dashboard {
  font-family: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: #0f172a;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(219, 234, 254, 0.9), transparent 60%),
    radial-gradient(900px 500px at 90% 0%, rgba(254, 226, 226, 0.6), transparent 55%),
    linear-gradient(135deg, #f8fafc 0%, #eef2ff 45%, #fdf2f8 100%);
  min-height: 100vh;
}

.dashboard .container {
  max-width: 1200px;
  margin: 28px auto 40px;
  padding: 0 18px;
}

.dashboard .card {
  background: rgba(255, 255, 255, 0.68);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 20px;
  margin-bottom: 18px;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .dashboard .card {
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
  }
}

.dashboard h1 {
  font-size: 22px;
  margin: 0 0 6px;
  letter-spacing: 0.3px;
}

.dashboard .small {
  color: #64748b;
}

.dashboard a {
  color: #2563eb;
}

.dashboard .hero-split {
  gap: 18px;
  align-items: stretch;
}

.dashboard .hero-left {
  flex: 0 0 180px;
}

.dashboard .hero-left img {
  height: 120px;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
}

.dashboard .topbar-dashboard {
  gap: 18px;
  align-items: center;
}

.dashboard .title-area {
  display: flex;
  align-items: center;
  gap: 14px;
}

.dashboard .title-block {
  min-width: 0;
}

.dashboard .avatar-top {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: linear-gradient(135deg, #f59e0b 0%, #fb7185 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  font-size: 20px;
  box-shadow: 0 10px 24px rgba(248, 113, 113, 0.35);
}

.dashboard .date-form {
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.dashboard input,
.dashboard select,
.dashboard textarea {
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(255, 255, 255, 0.8);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.dashboard input:focus,
.dashboard select:focus,
.dashboard textarea:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.25);
  outline: none;
}

.dashboard button,
.dashboard .btn-link {
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.dashboard button {
  border-radius: 12px;
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  box-shadow: 0 10px 18px rgba(37, 99, 235, 0.2);
}

.dashboard button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(37, 99, 235, 0.28);
}

.dashboard button:active {
  transform: translateY(0);
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.2);
}

.dashboard .contact-row {
  margin-top: 12px;
  gap: 10px;
}

.dashboard .btn-link {
  border-radius: 999px;
  padding: 8px 14px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  color: #334155;
  background: rgba(255, 255, 255, 0.7);
}

.dashboard .btn-link:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.95);
}

.dashboard .stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.dashboard .stat-card {
  border-radius: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(255, 255, 255, 0.7);
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 86px;
}

.dashboard .stat-label {
  font-size: 12px;
  color: #64748b;
}

.dashboard .stat-value {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.3px;
  color: #0f172a;
}

.dashboard .stat-card.up {
  --stat-color: #dc2626;
  border-color: rgba(220, 38, 38, 0.25);
}

.dashboard .stat-card.down {
  --stat-color: #16a34a;
  border-color: rgba(22, 163, 74, 0.25);
}

.dashboard .stat-card.neutral {
  --stat-color: #64748b;
}

.dashboard .stat-card.up .stat-value,
.dashboard .stat-card.down .stat-value,
.dashboard .stat-card.neutral .stat-value {
  color: var(--stat-color);
}

.dashboard .table-card {
  padding: 18px 18px 14px;
}

.dashboard .table-meta {
  margin: 6px 2px 10px;
}

.dashboard .table-wrap {
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 1, 0);
  background: rgba(255, 255, 255, 0.6);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.dashboard .data-table {
  width: 100%;
  min-width: 980px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14px;
}

.dashboard .data-table th,
.dashboard .data-table td {
  padding: 12px 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0);
  vertical-align: middle;
}

.dashboard .data-table th {
  background: rgba(248, 250, 252, 0.9);
  color: #1e293b;
  font-weight: 600;
  position: sticky;
  top: 0;
  z-index: 2;
  backdrop-filter: blur(8px);
}

/* 替换掉 not(...) 的重选择器，用 .fund-row 直接命中 */
.dashboard .data-table tbody tr.fund-row td {
  background: inherit;
}

.dashboard .data-table tbody tr.fund-row:hover td {
  background: inherit;
}

.dashboard .data-table tr.hl td {
  background: inherit;
}

.dashboard .sector-row td {
  background: rgba(224, 231, 255, 0.7);
  color: #1e3a8a !important;
  -webkit-text-fill-color: #1e3a8a !important;
  border-bottom: 1px solid rgba(191, 219, 254, 0.9);
}

.dashboard .sector-row td .meta {
  color: #475569 !important;
  -webkit-text-fill-color: #475569 !important;
}

.dashboard .cell-ellipsis {
  max-width: 240px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.dashboard td.col-detail .cell-ellipsis {
  max-width: 280px;
}

.dashboard td.chg {
  font-size: 18px;
  font-weight: 800;
}

.dashboard td.chg.chg-up {
  /* 红涨 */
  color: #d40000 !important;
  -webkit-text-fill-color: #d40000 !important;
}

.dashboard td.chg.chg-down {
  /* 绿跌 */
  color: #0a8a0a !important;
  -webkit-text-fill-color: #0a8a0a !important;
}

.dashboard td.chg.chg-neutral {
  color: #334155 !important;
  -webkit-text-fill-color: #334155 !important;
}

.dashboard .empty-state {
  padding: 32px 12px;
  text-align: center;
  color: #64748b;
}

.dashboard .empty-row td {
  background: transparent;
  border-bottom: none;
}

.dashboard .empty-icon {
  font-size: 32px;
  line-height: 1;
}

.dashboard .empty-text {
  margin-top: 6px;
  font-size: 14px;
  color: #334155;
}

.dashboard .footer-note {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px dashed rgba(148, 163, 184, 0.4);
  background: rgba(255, 255, 255, 0.6);
  color: #64748b;
}

.dashboard .table-wrap::-webkit-scrollbar {
  height: 10px;
  width: 10px;
}

.dashboard .table-wrap::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.6);
  border-radius: 999px;
  border: 2px solid rgba(248, 250, 252, 0.9);
}

.dashboard .table-wrap::-webkit-scrollbar-track {
  background: rgba(248, 250, 252, 0.8);
  border-radius: 999px;
}

@media (max-width: 768px) {
  .dashboard .topbar-dashboard {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .dashboard .date-form {
    width: 100%;
    justify-content: flex-start;
  }

  .dashboard .date-form input,
  .dashboard .date-form button {
    flex: 1 1 160px;
  }

  .dashboard .hero-left {
    flex: none;
  }

  .dashboard .hero-left img {
    height: 200px;
  }

  .dashboard .stats-grid {
    grid-template-columns: 1fr;
  }
}


/* ===== Dashboard extra polish ===== */
.dashboard .hero-card {
  padding: 18px;
}

.dashboard .topbar-dashboard {
  align-items: center;
}

.dashboard .stats-grid {
  margin-top: 16px;
}

.dashboard .data-table th {
  letter-spacing: 0.2px;
}

.dashboard .data-table td.col-action {
  white-space: nowrap;
}

/* ===== Fund row expand/collapse (desktop + mobile) ===== */
.fund-detail-row {
  display: none;
}

tr.fund-row.is-expanded + tr.fund-detail-row {
  display: table-row;
}

.action-cell {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.fund-detail {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(255, 255, 255, 0.75);
}

.fund-title {
  display: flex;
  gap: 10px;
  align-items: baseline;
  flex-wrap: wrap;
}

.fund-title strong {
  font-size: 15px;
}

.fund-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 12px;
}

.detail-label {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 4px;
  font-weight: 600;
}

.detail-value {
  font-size: 14px;
  color: #0f172a;
  line-height: 1.45;
}

.diff.up { color: #d40000; }
.diff.down { color: #0a8a0a; }
.diff.neutral { color: #64748b; }

@media (max-width: 900px) {
  tr.fund-row.is-expanded + tr.fund-detail-row {
    display: block;
  }

  .fund-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Desktop: add spacing + borders so each fund is visually separated ===== */
@media (min-width: 901px) {
  /* Use row spacing instead of tight collapsed borders */
  .dashboard .data-table {
    border-collapse: separate;
    border-spacing: 0 10px; /* vertical gap between funds */
  }

  /* Summary (fund-row) looks like a card */
  .dashboard .data-table tbody tr.fund-row td {
    background: rgba(255, 255, 255, 0.85);
    border-top: 1px solid rgba(148, 163, 184, 0.25);
    border-bottom: 1px solid rgba(148, 163, 184, 0.25);
    /* override global table borders */
    border-left: none;
    border-right: none;
    /* keep inside clean */
  }

  .dashboard .data-table tbody tr.fund-row td:first-child {
    border-left: 1px solid rgba(148, 163, 184, 0.25);
    border-top-left-radius: 14px;
    border-bottom-left-radius: 14px;
  }

  .dashboard .data-table tbody tr.fund-row td:last-child {
    border-right: 1px solid rgba(148, 163, 184, 0.25);
    border-top-right-radius: 14px;
    border-bottom-right-radius: 14px;
  }

  /* When expanded, connect summary + detail visually */
  .dashboard .data-table tbody tr.fund-row.is-expanded td:first-child {
    border-bottom-left-radius: 0;
  }

  .dashboard .data-table tbody tr.fund-row.is-expanded td:last-child {
    border-bottom-right-radius: 0;
  }

  .dashboard .data-table tbody tr.fund-row.is-expanded + tr.fund-detail-row td {
    padding-top: 0;
  }

  /* Detail row: reuse the same border radius as a continuation */
  .dashboard .data-table tbody tr.fund-row.is-expanded + tr.fund-detail-row td .fund-detail {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
  }
}


.dashboard tr.cleared td {
  background: inherit;
}

.amount-compare {
  margin-top: 4px;
}

.action-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid transparent;
  line-height: 1.1;
  white-space: nowrap;
}

/* 决策颜色映射：
   1. 清仓避险 = 红色
   2. 减仓观望 = 橙色
   3. 不动观望 = 白色
   4. 加仓冲高 = 绿色
   5. 建仓     = 绿色
*/
.action-red {
  background: #d4380d;
  border-color: #d4380d;
  color: #fff;
  -webkit-text-fill-color: #fff;
}

.action-orange {
  background: #fa8c16;
  border-color: #fa8c16;
  color: #fff;
  -webkit-text-fill-color: #fff;
}

.action-green {
  background: #389e0d;
  border-color: #389e0d;
  color: #fff;
  -webkit-text-fill-color: #fff;
}

.action-white {
  background: #fff;
  border-color: rgba(148, 163, 184, 0.55);
  color: #111;
  -webkit-text-fill-color: #111;
}

.action-neutral {
  background: rgba(148, 163, 184, 0.15);
  border-color: rgba(148, 163, 184, 0.25);
  color: #334155;
  -webkit-text-fill-color: #334155;
}

.dashboard .tag-clear {
  display: inline-block;
  margin: 0 6px 0 0;
  padding: 0;
  border-radius: 0;
  font-size: 12px;
  background: transparent;
  color: inherit;
  border: 0;
}

.dashboard .name-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.row-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: transparent;
  color: inherit;
  font-size: 12px;
  cursor: pointer;
}


.row-toggle:active {
  transform: translateY(1px);
}

@media (max-width: 768px) {
  .dashboard .container {
    padding: 0 14px;
  }

  .dashboard .card {
    padding: 16px;
  }

  .dashboard .title-area {
    align-items: flex-start;
  }

  .dashboard h1 {
    font-size: 20px;
  }

  .dashboard .avatar-top {
    width: 48px;
    height: 48px;
    font-size: 18px;
  }

  .dashboard .hero-left img {
    height: 160px;
  }

  .dashboard .stats-grid {
    grid-template-columns: 1fr;
  }

  .dashboard .stat-card {
    min-height: 76px;
  }

  .dashboard .stat-value {
    font-size: 24px;
  }

  .dashboard .table-card {
    padding: 14px;
  }

  .dashboard .table-wrap {
    border-radius: 12px;
  }

  .dashboard .data-table {
    font-size: 13px;
    min-width: 860px;
  }

  .dashboard .data-table th,
  .dashboard .data-table td {
    padding: 10px 10px;
  }

  .dashboard .cell-ellipsis {
    max-width: 180px;
  }

  .dashboard td.chg {
    font-size: 16px;
  }
}

/* ===== Mobile-first table cards (new layout) ===== */
@media (max-width: 900px) {
  .dashboard .table-wrap {
    border: none;
    background: transparent;
    overflow: visible;
  }

  .dashboard .data-table {
    min-width: 0;
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
  }

  .dashboard .data-table thead {
    display: none;
  }

  .dashboard .data-table tbody {
    display: block;
  }

  .dashboard .data-table tbody tr {
    display: block;
    margin: 14px 0;
    background: rgba(255, 255, 255, 0.85);
    border: 2px solid rgba(148, 163, 184, 0.28);
    border-radius: 16px;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
    overflow: hidden;
  }

  /* IMPORTANT: keep detail rows collapsed by default on mobile.
     The generic `tbody tr { display:block; }` rule above would otherwise
     force detail rows to always show and make the toggle appear broken. */
  .dashboard .data-table tbody tr.fund-detail-row {
    display: none;
  }

  .dashboard .data-table tbody tr.fund-row.is-expanded + tr.fund-detail-row {
    display: block;
  }

  /* Pair summary + detail into one card feel */
  .dashboard .data-table tbody tr.fund-row {
    margin: 14px 0 0;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
  }

  .dashboard .data-table tbody tr.fund-detail-row {
    margin: 0 0 14px;
    border-top: none;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
  }

  /* Make the summary row the “card shell”; make the detail row feel like an inset panel */
  .dashboard .data-table tbody tr.fund-detail-row {
    border: none;
    box-shadow: none;
    background: transparent;
  }

  .dashboard .data-table tbody tr.fund-detail-row td {
    padding: 0 12px 12px;
  }

  .dashboard .data-table tbody tr.fund-detail-row td .fund-detail {
    background: rgba(248, 250, 252, 0.95);
    border: 1px solid rgba(148, 163, 184, 0.22);
  }

  .dashboard .data-table tbody tr.cleared {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(148, 163, 184, 0.25);
  }

  .dashboard .data-table tbody tr td {
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 8px;
    padding: 10px 12px;
    border-bottom: 1px dashed rgba(148, 163, 184, 0.25);
    text-align: left;
  }

  /* fund detail row: single cell, no label grid */
  .dashboard .data-table tbody tr.fund-detail-row td {
    display: block;
    grid-template-columns: none;
    gap: 0;
    border-bottom: none;
  }

  .dashboard .data-table tbody tr.fund-detail-row td::before {
    content: none;
  }


  .dashboard .data-table tbody tr td::before {
    content: attr(data-label);
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
  }

  .dashboard .data-table tbody tr td:last-child {
    border-bottom: none;
  }

  .dashboard .data-table tbody tr td.right {
    text-align: left;
  }

  .dashboard .row-toggle {
    display: inline-flex;
    align-items: center;
  }

  .dashboard .cell-ellipsis {
    max-width: none;
    white-space: normal;
  }

  .dashboard td.chg {
    font-size: 16px;
  }

  .dashboard .col-action {
    white-space: normal;
  }

  .dashboard .tag-clear {
    margin-left: 0;
  }

  .dashboard .amount-compare {
    margin-top: 4px;
  }

  .dashboard .data-table tbody tr.sector-row {
    background: transparent;
    border: none;
    box-shadow: none;
    margin: 18px 0 6px;
  }

  .dashboard .data-table tbody tr.sector-row td {
    display: block;
    padding: 8px 12px;
    border: 1px solid rgba(191, 219, 254, 0.9);
    border-radius: 12px;
    background: rgba(224, 231, 255, 0.85);
  }

  .dashboard .data-table tbody tr.sector-row td::before {
    content: none;
  }

  .dashboard .data-table tbody tr.empty-row {
    background: transparent;
    border: none;
    box-shadow: none;
  }

  .dashboard .data-table tbody tr.empty-row td {
    border-bottom: none;
  }

  .dashboard .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .dashboard .stats-grid {
    grid-template-columns: 1fr;
  }

  .dashboard .data-table tbody tr td {
    grid-template-columns: 80px 1fr;
  }
}
/* 板块之间加分割线：给“非第一个板块标题行”加一条上边框 */
.dashboard .data-table tbody tr.sector-row:not(:first-child) td{
  border-top: 2px solid rgba(148, 163, 184, 0.45);
  padding-top: 14px; /* 可选：让线和内容有点呼吸感 */
}
/* === 性能优先：移动端/低性能设备降低玻璃效果与阴影 === */
@media (max-width: 900px) {
  .dashboard {
    /* 少一层渐变就能省很多重绘 */
    background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 60%, #fdf2f8 100%);
  }

  /* 关键：关掉 blur（微信浏览器最明显） */
  .dashboard .card {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: #fff !important;            /* 直接不透明，减少合成层 */
    box-shadow: 0 6px 16px rgba(15,23,42,.06) !important; /* 阴影变轻 */
    border: 1px solid rgba(148,163,184,.22) !important;
  }

  /* 行卡片阴影也降级（你这里每个基金都有卡片阴影，数量多就很吃力） */
  .dashboard .data-table tbody tr {
    box-shadow: 0 4px 12px rgba(15,23,42,.06) !important;
  }

  /* 顶部图片阴影降级 */
  .dashboard .hero-left img {
    box-shadow: 0 4px 10px rgba(15,23,42,.08) !important;
  }
}
/* === 长列表懒渲染：让屏幕外的基金卡片不渲染（支持的浏览器收益巨大） === */
@supports (content-visibility: auto) {
  /* 移动端的“行卡片”最适合用这个 */
  @media (max-width: 900px) {
    .dashboard .data-table tbody tr.fund-row {
      content-visibility: auto;
      contain-intrinsic-size: 160px; /* 给浏览器一个预估高度，避免跳动 */
    }
    /* detail 行通常隐藏，保持默认即可 */
  }

  /* 桌面端也可以用，但收益没移动端大 */
  @media (min-width: 901px) {
    .dashboard .data-table tbody tr.fund-row {
      content-visibility: auto;
      contain-intrinsic-size: 56px;
    }
  }
}
.dashboard .table-meta,
.dashboard .footer-note{
  color: #d40000 !important;
  -webkit-text-fill-color: #d40000 !important; /* 兼容微信/部分内核 */
  font-size: 15px !important;                 /* 你想更大就调这里 */
  font-weight: 700;
  line-height: 1.5;
}

/* 如果你想“提示”更显眼，可以单独再大一点 */
.dashboard .footer-note{
  font-size: 16px !important;
}