  * { box-sizing: border-box; margin: 0; padding: 0; }
  body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    background: #f4f6f8; color: #1a1f25; padding: 70px 20px 56px;   /* 70px = 顶部提示条 38px + 原 32px */
    -webkit-font-smoothing: antialiased;
    -webkit-text-size-adjust: 100%;
  }
  /* 页面最顶端固定的蓝字免责提示 */
  .top-tip {
    position: fixed; top: 0; left: 0; right: 0; z-index: 999;
    height: 38px; display: flex; align-items: center; justify-content: center;
    padding: 0 12px;
    background: #eaf3ff; color: #1a63c8;
    font-size: 13px; font-weight: 700; letter-spacing: .3px;
    border-bottom: 1px solid #cfe2fb;
    box-shadow: 0 1px 6px rgba(26, 99, 200, .08);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .wrap { max-width: 1080px; margin: 0 auto; }
  header { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
  header h1 { font-size: 20px; font-weight: 600; letter-spacing: .3px; }
  header h1 span { color: #8a94a0; font-weight: 400; font-size: 14px; margin-left: 10px; }
  .date-tag { font-size: 13px; color: #5b6672; background: #fff; border: 1px solid #e3e7ec; padding: 5px 12px; border-radius: 999px; }
  .card { background: #fff; border: 1px solid #e8ecf1; border-radius: 16px; box-shadow: 0 1px 3px rgba(16,24,40,.04), 0 8px 24px -12px rgba(16,24,40,.10); }
  .hero { padding: 26px 28px 24px; margin-bottom: 18px; }
  .hero .label { font-size: 13px; color: #7a8593; letter-spacing: .5px; margin-bottom: 6px; }
  .hero .value { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; }
  .hero .num { font-size: 62px; font-weight: 700; line-height: 1; letter-spacing: -1.5px; font-variant-numeric: tabular-nums; }
  .hero .unit { font-size: 15px; color: #8a94a0; margin-bottom: 9px; }
  .chip { display: inline-block; font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 8px; margin-bottom: 10px; font-variant-numeric: tabular-nums; }
  .chip.up { color: #c62f24; background: #fdecea; }
  .chip.down { color: #12805c; background: #e7f6f0; }
  .stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: #eef1f5; border-radius: 12px; overflow: hidden; margin-top: 22px; }
  .stat { background: #fbfcfd; padding: 14px 16px; }
  .stat .k { font-size: 12px; color: #7a8593; margin-bottom: 6px; }
  .stat .v { font-size: 19px; font-weight: 600; font-variant-numeric: tabular-nums; }
  .stat .v small { font-size: 12px; font-weight: 400; color: #8a94a0; margin-left: 4px; }
  .up { color: #c62f24; } .down { color: #12805c; }
  .section-title { font-size: 14px; font-weight: 600; color: #3c4652; margin: 26px 0 12px; letter-spacing: .3px; }
  .chart-card { padding: 14px; }
  .cholder { position: relative; width: 100%; }
  .cholder canvas { width: 100%; height: 336px; display: block; border-radius: 10px; }
  .tip { position: absolute; pointer-events: none; background: rgba(26,31,37,.92); color: #fff; font-size: 12px; line-height: 1.7; padding: 8px 12px; border-radius: 8px; white-space: nowrap; z-index: 5; display: none; }
  .tip b { font-weight: 600; }
  .table-card { padding: 6px 4px; }
  table { width: 100%; border-collapse: collapse; font-size: 13px; }
  th { text-align: right; font-weight: 500; color: #8a94a0; padding: 12px 16px; border-bottom: 1px solid #eef1f5; font-size: 12px; }
  th:first-child, td:first-child { text-align: left; }
  td { text-align: right; padding: 11px 16px; border-bottom: 1px solid #f3f5f8; font-variant-numeric: tabular-nums; }
  tr:last-child td { border-bottom: none; }
  tr:nth-child(even) td { background: #fbfcfd; }
  td.mono { font-weight: 600; }
  .bar-wrap { margin-top: 18px; }
  .bar { height: 8px; background: linear-gradient(90deg, #0f9e8e 0%, #9cc9c2 35%, #e8a9a1 65%, #d9452f 100%); border-radius: 99px; position: relative; }
  .bar .dot { position: absolute; top: 50%; width: 14px; height: 14px; background: #fff; border: 3px solid #1a1f25; border-radius: 50%; transform: translate(-50%, -50%); }
  .bar-legend { display: flex; justify-content: space-between; font-size: 11px; color: #8a94a0; margin-top: 8px; }
  footer { margin-top: 26px; font-size: 12px; color: #98a2ae; line-height: 1.9; }
  .note { background: #fffdf5; border: 1px solid #f2e7c9; color: #7a6a3d; border-radius: 10px; padding: 10px 14px; font-size: 12.5px; line-height: 1.7; margin-top: 14px; }
  .tabs { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
  .tab { font-size: 14px; font-weight: 600; padding: 10px 22px; border-radius: 12px; border: 1px solid #e3e7ec; background: #fff; color: #5b6672; cursor: pointer; transition: all .15s; }
  .tab:hover { border-color: #b9c4cf; }
  .tab.active { background: #1a1f25; color: #fff; border-color: #1a1f25; }
  .mini-tag { display: inline-block; font-size: 10.5px; font-weight: 600; color: #b97a1e; background: #fdf3e3; border-radius: 6px; padding: 2px 7px; margin-left: 4px; vertical-align: middle; }
  .tbl-scroll { max-height: 460px; overflow: auto; border-radius: 12px; }
  .tbl-scroll th { position: sticky; top: 0; background: #fff; z-index: 2; }
  .t2table { font-size: 12.5px; white-space: nowrap; }
  .t2table td, .t2table th { padding: 10px 12px; }

  .hero .rule-text { font-size: 23px; font-weight: 700; line-height: 1.3; }
  .sub-note { margin-top: 10px; font-size: 13px; color: #7a8593; }
  .sub-note + .sub-note { margin-top: 5px; }
  .sub-foot { margin-top: 12px; font-size: 12px; color: #7a8593; line-height: 1.6; }
  .mark-red { color: #d9452f !important; font-weight: 700; }

  /* 交易清单操作类型配色：买入创业板=红，买入中证红利=橙 */
  .op-buy-cyb { color: #d9452f; font-weight: 600; }
  .op-buy-hl  { color: #d9821f; font-weight: 600; }


  .title-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 26px 0 12px; }
  .title-row .section-title { margin: 0; }
  .seg { display: inline-flex; background: #f1f4f7; border-radius: 10px; padding: 3px; gap: 2px; margin-left: auto; }
  .segb { font-size: 13px; font-weight: 600; white-space: nowrap; padding: 7px 16px; border: none; background: transparent; color: #5b6672; border-radius: 8px; cursor: pointer; transition: all .15s; }
  .segb:hover { color: #1a1f25; }
  .segb.active { background: #1a1f25; color: #fff; }
  .rt-src { font-size: 12px; color: #8a94a0; font-variant-numeric: tabular-nums; }
  .rt-src b { color: #12805c; }
  .rt-src .err { color: #b97a1e; }

  .rule-item { margin: 7px 0; line-height: 1.75; }
  .rule-item b { color: #5c4f2c; }
  .note-sub { margin-top: 12px; padding-top: 10px; border-top: 1px dashed #ece0c4; line-height: 1.75; }

  /* ---------- 溢出治理：表格容器统一可横向滚动，说明列允许换行 ---------- */
  .table-card { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .table-card::-webkit-scrollbar, .tbl-scroll::-webkit-scrollbar { height: 8px; width: 8px; }
  .table-card::-webkit-scrollbar-thumb, .tbl-scroll::-webkit-scrollbar-thumb { background: #d4dbe3; border-radius: 99px; }
  .table-card::-webkit-scrollbar-track, .tbl-scroll::-webkit-scrollbar-track { background: transparent; }
  .t2table th { white-space: normal; line-height: 1.35; vertical-align: bottom; }
  .t2table td.desc { white-space: normal; min-width: 190px; max-width: 320px; line-height: 1.6; }
  .round-table { font-size: 12px; }
  .round-table td, .round-table th { padding: 9px 9px; }
  .round-table td { white-space: normal; }      /* 日期区间允许换行，避免桌面横向滚动 */
  .round-table td:first-child { white-space: nowrap; }
  .round-table td.mono { white-space: nowrap; } /* 金额列不拆行 */
  /* 图表 tooltip 不得撑破卡片 */
  .tip { max-width: calc(100% - 16px); }

  /* ---------- 每年区间收益（交易流水下方一行） ---------- */
  .year-ret-wrap { margin-top: 14px; padding: 12px 14px 2px; border-top: 1px dashed #e3e9f0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
  .year-ret-title { flex: 0 0 auto; font-size: 12.5px; font-weight: 600; color: #7a8593; white-space: nowrap; }
  .year-ret { display: flex; flex-wrap: wrap; gap: 7px; }
  .year-item { display: flex; flex-direction: column; align-items: center; gap: 1px; min-width: 66px; padding: 5px 9px; background: #f7f9fb; border: 1px solid #edf1f6; border-radius: 9px; }
  .year-item .y { font-size: 11px; color: #8b95a1; line-height: 1.2; }
  .year-item .r { font-size: 13px; font-weight: 700; line-height: 1.25; font-variant-numeric: tabular-nums; }

  /* ---------- 移动端 / 小屏适配 ---------- */
  @media (max-width: 760px) {
    body { padding: 50px 8px 40px; }          /* 50px = 提示条 34px + 原 16px；左右仅留 8px，把宽度让给图表 */
    .top-tip { height: 34px; font-size: 12px; }
    header { margin-bottom: 14px; gap: 6px; }
    header h1 { font-size: 17px; }
    header h1 span { display: block; margin: 4px 0 0; font-size: 12px; }
    .date-tag { font-size: 12px; padding: 4px 10px; }
    .tabs { gap: 6px; margin-bottom: 14px; }
    .tab { flex: 1 1 0; text-align: center; padding: 9px 6px; font-size: 13px; border-radius: 10px; }
    .card { border-radius: 14px; }
    .hero { padding: 18px 15px 16px; margin-bottom: 14px; }
    .hero .num { font-size: 40px; letter-spacing: -.8px; }
    .hero .unit { font-size: 13px; margin-bottom: 5px; }
    .hero .rule-text { font-size: 15px !important; line-height: 1.5 !important; }
    .sub-note, .sub-foot { font-size: 12px; }
    .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 14px; }
    .stat { padding: 11px 12px; }
    .stat .k { font-size: 11px; margin-bottom: 4px; }
    .stat .v { font-size: 16px; }
    .stat .v small { display: block; margin: 2px 0 0; font-size: 11px; }
    .cholder canvas { height: 262px; }
    .chart-card { padding: 8px 2px 6px; }      /* 手机端图表卡片左右边距压到 2px，曲线尽量占满宽度 */
    .section-title { font-size: 13px; margin: 20px 0 8px; }
    .title-row { gap: 8px; margin: 20px 0 8px; }
    .seg { margin-left: 0; width: 100%; }
    .segb { flex: 1 1 0; min-width: 0; text-align: center; padding: 7px 4px; font-size: 12px; white-space: nowrap; overflow: hidden; }
    .rt-src { font-size: 11px; width: 100%; }
    .note { padding: 9px 11px; font-size: 12px; line-height: 1.75; border-radius: 10px; }
    .table-card { padding: 4px 0; }
    table { font-size: 12px; min-width: 460px; }
    th, td { padding: 8px 9px; }
    .t2table { font-size: 11.5px; min-width: 720px; }
    .t2table td, .t2table th { padding: 8px 9px; }
    .tbl-scroll { max-height: 380px; }
    footer { font-size: 11px; line-height: 1.8; margin-top: 18px; }
    .tip { max-width: 76vw; white-space: normal; font-size: 11px; line-height: 1.6; }
    .bar-legend { font-size: 10px; gap: 10px; }
    .bar-legend span { flex: 1; }
  }

  @media (max-width: 400px) {
    .hero .num { font-size: 34px; }
    .hero .rule-text { font-size: 16px !important; }
    .cholder canvas { height: 220px; }
    .stat .v { font-size: 15px; }
  }
