:root {
      --bg: #060914;
      --card: #10172d;
      --text: #e8f0ff;
      --muted: #9fb0d0;
      --primary: #5f93ff;
      --primary-soft: rgba(95, 147, 255, 0.18);
      --line: rgba(255, 255, 255, 0.08);
      --glow: 0 12px 45px rgba(77, 125, 255, 0.35);
      --radius: 16px;
    }

    * { box-sizing: border-box; margin: 0; padding: 0; }

    html, body {
      width: 100%;
      background: var(--bg);
      color: var(--text);
      font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif;
      scroll-behavior: smooth;
    }

    a { color: inherit; text-decoration: none; }

    .container {
      width: min(1280px, 94vw);
      margin: 0 auto;
    }

    .header {
      position: sticky;
      top: 0;
      z-index: 40;
      backdrop-filter: blur(10px);
      background: rgba(6, 9, 20, 0.72);
      border-bottom: 1px solid var(--line);
    }

    .nav {
      height: 72px;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .logo {
      font-size: 20px;
      font-weight: 700;
      letter-spacing: 0.5px;
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .logo-link {
      display: inline-flex;
      align-items: center;
      gap: 10px;
    }

    .logo-dot {
      width: 12px;
      height: 12px;
      border-radius: 50%;
      background: linear-gradient(120deg, #79d9ff, #5f93ff);
      box-shadow: 0 0 14px #5f93ff;
    }

    .nav-links {
      display: flex;
      align-items: center;
      gap: 28px;
      color: var(--muted);
      font-size: 14px;
    }

    .nav-links a.active { color: #dce9ff; }

    .page-hero {
      position: relative;
      padding: 72px 0 48px;
      border-bottom: 1px solid var(--line);
      overflow: hidden;
    }

    .page-hero::before {
      content: "";
      position: absolute;
      inset: 0;
      background:
        radial-gradient(ellipse at 20% 0%, rgba(95, 147, 255, 0.22), transparent 55%),
        radial-gradient(ellipse at 90% 30%, rgba(121, 217, 255, 0.12), transparent 45%),
        linear-gradient(180deg, #0a1228 0%, #060914 100%);
    }

    .page-hero .container { position: relative; z-index: 1; text-align: center; }

    .tag {
      display: inline-block;
      padding: 8px 14px;
      border: 1px solid rgba(121, 217, 255, 0.5);
      border-radius: 999px;
      font-size: 13px;
      color: #c8ecff;
      background: rgba(34, 89, 124, 0.24);
      margin-bottom: 18px;
    }

    .page-hero h1 {
      font-size: clamp(28px, 4.5vw, 44px);
      margin-bottom: 14px;
      line-height: 1.25;
    }

    .page-hero p {
      color: var(--muted);
      font-size: 15px;
      line-height: 1.85;
      max-width: 760px;
      margin: 0 auto;
    }

    section {
      padding: 56px 0;
      border-bottom: 1px solid var(--line);
    }

    #rankSection,
    #table {
      scroll-margin-top: 84px;
    }

    /* 对照页：得分一览（标题+分类+品牌卡）整页吸顶 */
    #rankSection {
      position: sticky;
      top: var(--compare-header-h, 72px);
      z-index: 26;
      background: rgba(6, 9, 20, 0.96);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      padding: 12px 0 14px;
      border-bottom: 1px solid var(--line);
      box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
    }

    #rankSection .section-title {
      margin-bottom: 8px;
      font-size: clamp(18px, 2.6vw, 26px);
    }

    #rankSection .toolbar {
      margin-bottom: 12px;
    }

    #rankSection .data-source-tip {
      margin-top: 6px;
      margin-bottom: 0;
    }

    .section-title {
      font-size: clamp(22px, 3vw, 32px);
      margin-bottom: 10px;
      text-align: center;
    }

    .section-subtitle {
      color: var(--muted);
      text-align: center;
      max-width: 760px;
      margin: 0 auto 32px;
      line-height: 1.8;
      font-size: 14px;
    }

    #tableSubtitle {
      color: #ff6b6b;
      font-weight: 600;
      background: rgba(255, 80, 80, 0.14);
      border: 1px solid rgba(255, 107, 107, 0.4);
      border-radius: 10px;
      padding: 8px 14px;
      max-width: max-content;
      margin-left: auto;
      margin-right: auto;
    }

    .rank-grid {
      display: flex;
      flex-wrap: nowrap;
      justify-content: center;
      align-items: stretch;
      gap: 8px;
    }

    .rank-card {
      flex: 1 1 0;
      min-width: 0;
      max-width: 128px;
      background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
      border: 1px solid var(--line);
      border-radius: 12px;
      padding: 10px 6px;
      text-align: center;
      transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
      cursor: pointer;
      user-select: none;
      box-sizing: border-box;
    }

    .rank-card:hover {
      transform: translateY(-2px);
      border-color: rgba(114, 174, 255, 0.45);
    }

    .rank-card.is-active {
      border-color: rgba(121, 217, 255, 0.7);
      box-shadow: 0 0 0 1px rgba(121, 217, 255, 0.25), var(--glow);
      background: linear-gradient(180deg, rgba(95, 147, 255, 0.18), rgba(255,255,255,0.03));
    }

    .rank-card.custom-rank {
      border-style: dashed;
      border-color: rgba(255, 196, 120, 0.45);
      background: linear-gradient(180deg, rgba(255, 180, 80, 0.12), rgba(255,255,255,0.02));
    }

    .rank-card.custom-rank.is-active {
      border-style: solid;
      border-color: rgba(255, 196, 120, 0.85);
      box-shadow: 0 0 0 1px rgba(255, 196, 120, 0.28), var(--glow);
      background: linear-gradient(180deg, rgba(255, 180, 80, 0.22), rgba(255,255,255,0.03));
    }

    .rank-card.custom-rank .rank-name {
      color: #ffe1b5;
    }

    .rank-name {
      font-size: 12px;
      color: #d7e5ff;
      margin-bottom: 6px;
      min-height: 32px;
      display: flex;
      align-items: center;
      justify-content: center;
      line-height: 1.35;
    }

    .rank-score {
      font-size: 26px;
      font-weight: 700;
      color: #eef5ff;
      line-height: 1;
    }

    .rank-score span {
      font-size: 12px;
      font-weight: 500;
      color: var(--muted);
      margin-left: 3px;
    }

    .rank-label {
      margin-top: 5px;
      font-size: 11px;
      color: var(--muted);
    }

    .toolbar {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      justify-content: center;
      margin-bottom: 22px;
    }

    .filter-btn {
      border: 1px solid var(--line);
      background: rgba(255,255,255,0.03);
      color: var(--muted);
      border-radius: 999px;
      padding: 8px 14px;
      font-size: 13px;
      cursor: pointer;
      transition: all .2s ease;
    }

    .filter-btn:hover {
      color: #e8f0ff;
      border-color: rgba(114, 174, 255, 0.45);
    }

    .filter-btn.active {
      color: #07152e;
      background: linear-gradient(120deg, #72d6ff, #5f93ff);
      border-color: transparent;
      font-weight: 700;
    }

    .table-wrap {
      border: 1px solid var(--line);
      border-radius: var(--radius);
      overflow: visible;
      background: #0b1226;
    }

    .mobile-compare { display: none; }

    .m-compare-tip,
    .m-compare-empty {
      color: var(--muted);
      font-size: 13px;
      line-height: 1.65;
      text-align: center;
      margin-bottom: 14px;
    }

    .m-compare-empty { margin: 24px 0; }

    .m-sub-group {
      border: 1px solid var(--line);
      border-radius: 14px;
      margin-bottom: 14px;
      overflow: hidden;
    }

    .m-sub-group.tone-0 {
      background: #0b1326;
      border-color: rgba(255, 255, 255, 0.08);
    }

    .m-sub-group.tone-1 {
      background: #15233f;
      border-color: rgba(121, 217, 255, 0.14);
    }

    .m-sub-head {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 8px 10px;
      padding: 12px 14px;
      border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .m-sub-group.tone-0 .m-sub-head {
      background: rgba(0, 0, 0, 0.16);
    }

    .m-sub-group.tone-1 .m-sub-head {
      background: rgba(95, 147, 255, 0.1);
    }

    .m-cat-tag {
      font-size: 11px;
      color: #9ec6ff;
      background: rgba(95, 147, 255, 0.14);
      border-radius: 999px;
      padding: 3px 8px;
    }

    .m-sub-title {
      margin: 0;
      font-size: 16px;
      font-weight: 700;
      color: #e8f0ff;
    }

    .m-sub-body { padding: 4px 10px 10px; }

    .m-item-block {
      padding: 12px 4px;
      border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
    }

    .m-item-block:last-child { border-bottom: none; }

    .m-item-name {
      font-size: 14px;
      color: #e8f0ff;
      line-height: 1.55;
      margin-bottom: 8px;
      word-break: break-word;
    }

    .m-item-meta {
      display: flex;
      gap: 16px;
      font-size: 12px;
      color: var(--muted);
      margin-bottom: 10px;
    }

    .m-item-meta b { color: #d7e5ff; font-weight: 600; }

    .m-item-note {
      font-size: 12px;
      color: #ff6b6b;
      line-height: 1.5;
      margin: 0 0 10px;
      padding: 6px 8px;
      border-radius: 8px;
      background: rgba(255, 80, 80, 0.1);
      border: 1px solid rgba(255, 107, 107, 0.35);
      word-break: break-word;
    }

    .m-brand-list {
      display: grid;
      gap: 8px;
    }

    .m-brand-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding: 8px 10px;
      border-radius: 10px;
      background: rgba(95, 147, 255, 0.12);
      border: 1px solid rgba(121, 217, 255, 0.28);
    }

    .m-brand-name {
      font-size: 13px;
      color: #c8dbff;
      min-width: 0;
      word-break: break-word;
    }

    .m-brand-val {
      font-size: 15px;
      font-weight: 700;
      color: #eef5ff;
      white-space: nowrap;
    }

    /* 对比页：详细评分表居中，列多时向两侧扩展
       注意：table-wrap 不能设 overflow-x:auto，否则会破坏 thead sticky，
       并把 top:72px 作用到错误的滚动容器上，遮挡首行数据 */
    #table > .container {
      width: max-content;
      min-width: min(1280px, 94vw);
      max-width: none;
      margin-inline: auto;
      padding-inline: 1vw;
      box-sizing: border-box;
    }

    #table .section-title,
    #table .section-subtitle {
      max-width: min(1280px, 94vw);
      margin-left: auto;
      margin-right: auto;
    }

    #table .table-wrap {
      width: max-content;
      max-width: none;
      margin-inline: auto;
      overflow: visible;
    }

    #table .config-table {
      width: max-content;
      min-width: 0;
    }

    table.config-table {
      width: 100%;
      border-collapse: separate;
      border-spacing: 0;
      min-width: 1180px;
      font-size: 13px;
    }

    .config-table th,
    .config-table td {
      border-bottom: 1px solid var(--line);
      border-right: 1px solid rgba(255,255,255,0.04);
      padding: 10px 12px;
      vertical-align: middle;
    }

    .config-table thead th {
      position: sticky;
      top: var(--compare-thead-top, 72px);
      z-index: 5;
      background: #121b36;
      color: #c8dbff;
      font-weight: 600;
      text-align: center;
      white-space: nowrap;
      box-shadow: 0 1px 0 var(--line);
    }

    .config-table thead th small {
      display: block;
      margin-top: 4px;
      color: #79d9ff;
      font-weight: 500;
      font-size: 12px;
    }

    .config-table .sticky-l1 {
      position: sticky;
      left: 0;
      z-index: 3;
      background: #0e1630;
      min-width: 88px;
    }

    .config-table thead .sticky-l1 {
      z-index: 7;
      top: var(--compare-thead-top, 72px);
      background: #121b36;
    }

    .config-table .sticky-l2 {
      position: sticky;
      left: 88px;
      z-index: 3;
      background: #0e1630;
      min-width: 110px;
    }

    .config-table thead .sticky-l2 {
      z-index: 7;
      top: var(--compare-thead-top, 72px);
      background: #121b36;
    }

    .config-table thead .sticky-l3 {
      z-index: 7;
      top: var(--compare-thead-top, 72px);
      background: #121b36;
    }

    .config-table .sticky-l3 {
      position: sticky;
      left: 198px;
      z-index: 3;
      background: #0e1630;
      min-width: 220px;
      text-align: left;
    }

    .cat-cell {
      background: #101a36 !important;
      color: #9ec6ff;
      font-weight: 600;
      text-align: center;
      width: 88px;
      white-space: nowrap;
      vertical-align: middle;
    }

    .sub-cell {
      color: #c5d7f5;
      text-align: center;
      font-weight: 500;
      width: 110px;
      vertical-align: middle;
    }

    .item-cell {
      color: #d7e5ff;
      line-height: 1.55;
    }

    .num-cell {
      text-align: center;
      color: #b7c9e8;
      white-space: nowrap;
    }

    .brand-col { min-width: 108px; }

    .brand-col.custom-col {
      min-width: 96px;
      color: #ffe1b5;
      background: rgba(255, 180, 80, 0.08);
    }

    .mark-cell {
      text-align: center;
      color: #9fb0d0;
    }

    .mark-cell.custom-cell {
      background: rgba(255, 180, 80, 0.06);
      vertical-align: middle;
    }

    .custom-check {
      display: inline-flex;
      flex-direction: column;
      align-items: center;
      gap: 4px;
      cursor: pointer;
      margin: 0;
    }

    .custom-check input[type="checkbox"] {
      width: 16px;
      height: 16px;
      cursor: pointer;
      accent-color: #e8a045;
    }

    /* PC 自定义列只保留勾选框，不显示行内分数（总分仍在表头） */
    .custom-check .custom-tick {
      display: none !important;
    }

    .m-brand-row-custom {
      cursor: pointer;
      user-select: none;
      -webkit-tap-highlight-color: transparent;
      border-color: rgba(255, 196, 120, 0.45);
      background: rgba(255, 180, 80, 0.12);
    }

    .m-brand-row-custom:active {
      background: rgba(255, 180, 80, 0.22);
    }

    .m-brand-row-custom .m-brand-name {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      color: #ffe1b5;
    }

    .m-custom-check-input {
      width: 18px;
      height: 18px;
      margin: 0;
      flex: 0 0 auto;
      accent-color: #e8a045;
      cursor: pointer;
      pointer-events: none; /* 整行 label 统一接收点击，避免双触发 */
    }

    .m-custom-check {
      display: inline-flex;
      align-items: center;
      margin: 0;
      vertical-align: middle;
      cursor: pointer;
    }

    .m-custom-check input {
      width: 16px;
      height: 16px;
      accent-color: #e8a045;
      cursor: pointer;
    }

    .config-table tbody tr.sub-tone-0 td {
      background: #0b1326;
    }

    .config-table tbody tr.sub-tone-1 td {
      background: #15233f;
    }

    .config-table tbody tr.sub-tone-0 td.sub-cell {
      background: #0d162c;
    }

    .config-table tbody tr.sub-tone-1 td.sub-cell {
      background: #182846;
    }

    .config-table tbody tr:hover td,
    .config-table tbody tr:hover td.sub-cell,
    .config-table tbody tr:hover td.sticky-l1,
    .config-table tbody tr:hover td.sticky-l2,
    .config-table tbody tr:hover td.sticky-l3 {
      background: #243968;
    }

    .config-table td.col-hi,
    .config-table th.col-hi,
    .config-table tbody tr.sub-tone-0 td.col-hi,
    .config-table tbody tr.sub-tone-1 td.col-hi,
    .config-table tbody tr.sub-tone-0 td.sub-cell.col-hi,
    .config-table tbody tr.sub-tone-1 td.sub-cell.col-hi,
    .config-table .sticky-l1.col-hi,
    .config-table .sticky-l2.col-hi,
    .config-table .sticky-l3.col-hi {
      background: #1e335c;
    }

    .config-table tbody tr:hover td.col-hi,
    .config-table tbody tr:hover td.sub-cell.col-hi,
    .config-table tbody tr:hover td.sticky-l1.col-hi,
    .config-table tbody tr:hover td.sticky-l2.col-hi,
    .config-table tbody tr:hover td.sticky-l3.col-hi {
      background: #355890;
    }

    .editor-table tbody tr:hover td,
    .editor-table tbody tr:hover td.sticky-op {
      background: #243968;
    }

    .editor-table td.col-hi,
    .editor-table th.col-hi,
    .editor-table tbody td.sticky-op.col-hi,
    .editor-table thead th.sticky-op.col-hi {
      background: #1e335c;
    }

    .editor-table tbody tr:hover td.col-hi,
    .editor-table tbody tr:hover td.sticky-op.col-hi {
      background: #355890;
    }

    .tick {
      color: #79d9ff;
      font-weight: 700;
      margin-right: 4px;
    }

    .tick-score {
      color: #d7e5ff;
    }

    .score-na {
      color: #7d8aa8;
      font-size: 12px;
    }

    .score-neg {
      color: #ff8d8d;
    }

    .btn {
      padding: 12px 22px;
      border-radius: 999px;
      font-size: 14px;
      border: 1px solid transparent;
      transition: all .25s ease;
      display: inline-block;
    }

    .btn.primary {
      background: linear-gradient(120deg, #72d6ff, #5f93ff);
      color: #051028;
      box-shadow: var(--glow);
      font-weight: 700;
    }

    .btn.primary:hover { transform: translateY(-2px); }

    .foot-cta {
      text-align: center;
      padding: 72px 0 56px;
      background:
        linear-gradient(180deg, rgba(95, 147, 255, 0.08), rgba(95, 147, 255, 0)),
        #060914;
      border-bottom: none;
    }

    .foot-cta p {
      margin: 14px auto 24px;
      max-width: 760px;
      color: var(--muted);
      line-height: 1.85;
    }

    footer {
      border-top: 1px solid var(--line);
      padding: 22px 0;
      text-align: center;
      color: #8ea1c5;
      font-size: 13px;
    }

    footer a {
      color: #9ec6ff;
      text-decoration: underline;
      text-underline-offset: 3px;
    }

    .phone-modal {
      position: fixed;
      inset: 0;
      background: rgba(3, 8, 18, 0.68);
      display: none;
      align-items: center;
      justify-content: center;
      z-index: 99;
      padding: 16px;
    }

    .phone-modal.show { display: flex; }

    .phone-dialog {
      width: min(420px, 92vw);
      background: #0f1730;
      border: 1px solid var(--line);
      border-radius: 14px;
      padding: 18px;
      box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
    }

    .phone-dialog h3 { font-size: 18px; margin-bottom: 8px; }
    .phone-dialog p { color: var(--muted); font-size: 14px; margin-bottom: 14px; }

    .phone-actions {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 10px;
    }

    .phone-action {
      border: 1px solid var(--line);
      border-radius: 10px;
      padding: 10px 12px;
      background: #111d3d;
      color: #dce9ff;
      cursor: pointer;
      font-size: 14px;
    }

    .phone-action.primary {
      background: linear-gradient(120deg, #79d9ff, #5f93ff);
      color: #07152e;
      font-weight: 700;
      border: none;
    }

    .note {
      margin-top: 14px;
      color: #8091b3;
      font-size: 12px;
      line-height: 1.7;
      text-align: center;
    }

    @media (max-width: 720px) {
      /* clip 不创建滚动容器，避免破坏 sticky/fixed 吸顶 */
      html, body {
        overflow-x: clip;
        overflow-y: visible;
        max-width: 100%;
      }

      .container { width: min(1280px, 92vw); }

      .header {
        background: rgba(6, 9, 20, 0.94);
      }

      .nav {
        height: 52px;
        min-height: 52px;
        padding: 0;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
      }

      .logo {
        font-size: 17px;
        gap: 8px;
        flex: 0 0 auto;
      }

      .logo-dot {
        width: 10px;
        height: 10px;
      }

      .nav-links {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: flex-end;
        gap: 4px;
        margin-left: auto;
        font-size: 12px;
        color: #a9bbd8;
      }

      .nav-links a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 6px 9px;
        border-radius: 999px;
        white-space: nowrap;
        line-height: 1;
        transition: background .15s ease, color .15s ease;
      }

      .nav-links a.active {
        color: #07152e;
        background: linear-gradient(120deg, #72d6ff, #5f93ff);
        font-weight: 700;
      }

      .nav-links a:not(.active):active {
        background: rgba(255, 255, 255, 0.08);
        color: #e8f0ff;
      }

      .page-hero { padding: 36px 0 28px; }
      .page-hero h1 { font-size: clamp(24px, 7vw, 32px); }
      .page-hero p { font-size: 14px; line-height: 1.7; }
      .section-title { font-size: clamp(20px, 5.5vw, 26px); }
      .section-subtitle { font-size: 13px; padding: 0 4px; }
      section { padding: 32px 0; }

      /* 手机改用 JS fixed 吸顶，避免 overflow/iOS sticky 失效 */
      #rankSection {
        position: relative;
        top: auto;
        padding: 8px 0 10px;
      }
      #rankSection.is-rank-pinned {
        position: fixed;
        left: 0;
        right: 0;
        width: 100%;
        top: var(--compare-header-h, 52px);
        z-index: 26;
        margin: 0;
        border-bottom: 1px solid var(--line);
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
      }
      .rank-pin-place {
        display: block;
        width: 100%;
        height: 0;
        margin: 0;
        padding: 0;
        pointer-events: none;
      }
      #rankSection .section-title {
        font-size: 16px;
        margin-bottom: 6px;
      }
      #rankSection .toolbar {
        margin-bottom: 8px;
      }

      .toolbar {
        gap: 8px;
        margin-bottom: 16px;
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 4px;
      }
      .filter-btn {
        flex: 0 0 auto;
        padding: 7px 12px;
        font-size: 12px;
      }

      .rank-grid {
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 8px;
      }
      .rank-card {
        flex: 0 0 calc(50% - 4px);
        width: calc(50% - 4px);
        max-width: none;
        padding: 8px 8px 7px;
        border-radius: 10px;
      }
      .rank-card:hover { transform: none; }
      .rank-name {
        font-size: 11px;
        min-height: 0;
        margin-bottom: 2px;
        line-height: 1.3;
      }
      .rank-score {
        font-size: 20px;
        line-height: 1.15;
      }
      .rank-score span { font-size: 11px; }
      .rank-label {
        margin-top: 2px;
        font-size: 10px;
      }

      /* 手机端：彻底隐藏宽表，改用竖向卡片，无左右滑屏 */
      #table > .container {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        padding-inline: 4vw;
        margin-inline: 0;
        box-sizing: border-box;
      }
      #table .section-title,
      #table .section-subtitle {
        max-width: 100%;
      }
      #table .table-wrap {
        display: none !important;
      }
      #table .mobile-compare {
        display: block;
        width: 100%;
        max-width: 100%;
      }

      .foot-cta { padding: 48px 0 40px; }
      .foot-cta p { font-size: 14px; }
      footer { font-size: 12px; padding: 16px 12px; }
    }

    @media (max-width: 360px) {
      .rank-grid { gap: 6px; }
      .rank-card {
        flex: 0 0 calc(50% - 3px);
        width: calc(50% - 3px);
        padding: 7px 6px;
      }
      .rank-score { font-size: 18px; }
    }

    /* 品牌很多时 PC 端仍尽量单行，再略缩小字号 */
    @media (min-width: 721px) and (max-width: 1100px) {
      .rank-card { padding: 8px 4px; max-width: 110px; }
      .rank-name { font-size: 11px; min-height: 28px; margin-bottom: 4px; }
      .rank-score { font-size: 22px; }
      .rank-label { font-size: 10px; }
    }


    .import-box {
      border: 1px dashed rgba(121, 217, 255, 0.4);
      border-radius: var(--radius);
      padding: 28px 22px;
      text-align: center;
      background: rgba(255,255,255,0.03);
    }
    .import-box input[type=file] { display: none; }
    .import-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }
    .status-ok { color: #79d9ff; }
    .status-err { color: #ff8d8d; }
    .meta-line { color: var(--muted); font-size: 13px; margin-top: 10px; line-height: 1.7; }
    .btn.ghost {
      border: 1px solid rgba(255,255,255,0.3);
      color: #e4eeff;
      background: rgba(255,255,255,0.03);
      cursor: pointer;
    }
    .data-source-tip {
      text-align: center;
      color: #8091b3;
      font-size: 12px;
      margin-top: 8px;
    }

    .editor-hero { padding: 48px 0 28px; }
    .editor-section { padding: 24px 0 56px; border-bottom: none; }
    .editor-wide { width: 98vw; max-width: none; }

    .editor-toolbar {
      position: sticky;
      top: var(--editor-header-h, 72px);
      z-index: 30;
      background: rgba(6, 9, 20, 0.94);
      backdrop-filter: blur(10px);
      border-bottom: 1px solid var(--line);
      padding: 12px 0;
    }

    .editor-brand-sticky {
      position: sticky;
      top: var(--editor-brand-top, 120px);
      z-index: 28;
      background: rgba(6, 9, 20, 0.96);
      backdrop-filter: blur(10px);
      padding: 12px 0 14px;
      margin: 0 0 8px;
      border-bottom: 1px solid var(--line);
      box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
    }

    .editor-sticky-title {
      text-align: left !important;
      margin: 0 0 8px !important;
      font-size: 1.15rem;
    }

    .editor-sticky-desc {
      text-align: left !important;
      margin: 0 0 12px !important;
      font-size: 12px;
      line-height: 1.5;
    }

    .editor-sub-title {
      text-align: left !important;
      margin: 20px 0 10px !important;
    }

    .editor-sub-desc {
      text-align: left !important;
      margin: 0 0 14px !important;
    }
    .editor-toolbar-inner {
      display: flex;
      flex-wrap: wrap;
      gap: 10px 16px;
      align-items: center;
      justify-content: space-between;
    }
    .editor-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      align-items: center;
    }
    .editor-toolbar .meta-line { margin: 0; }

    .brand-bar {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
    }
    .brand-chip {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 8px 10px;
      border: 1px solid var(--line);
      border-radius: 12px;
      background: rgba(255,255,255,0.03);
    }
    .brand-name-input {
      width: 140px;
      background: #0f1832;
      border: 1px solid rgba(255,255,255,0.12);
      color: #e8f0ff;
      border-radius: 8px;
      padding: 6px 8px;
      font-size: 13px;
    }
    .brand-feat {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      font-size: 12px;
      color: #9ec6ff;
      white-space: nowrap;
      cursor: pointer;
    }
    .brand-feat input { accent-color: #5f93ff; }
    .brand-chip-total {
      color: #79d9ff;
      font-size: 12px;
      white-space: nowrap;
    }
    .chip-del {
      border: none;
      background: transparent;
      color: #ff8d8d;
      font-size: 18px;
      cursor: pointer;
      line-height: 1;
      padding: 0 2px;
    }

    .sort-level-label {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      color: var(--muted);
      font-size: 13px;
    }
    .sort-level-label select {
      background: #0f1832;
      color: #e8f0ff;
      border: 1px solid rgba(255,255,255,0.18);
      border-radius: 8px;
      padding: 6px 8px;
    }

    /* 不设 overflow，才能让 thead 相对整页吸顶 */
    .editor-table-wrap {
      overflow: visible;
      max-height: none;
    }
    .editor-table { min-width: 1100px; }
    .editor-table thead th {
      position: sticky;
      top: var(--editor-thead-top, 220px);
      z-index: 22;
      background: #121b36;
      box-shadow: 0 1px 0 var(--line);
    }
    .editor-table .feat-tag {
      display: inline-block;
      margin-left: 4px;
      font-style: normal;
      font-size: 10px;
      color: #07152e;
      background: linear-gradient(120deg, #72d6ff, #5f93ff);
      border-radius: 999px;
      padding: 1px 6px;
      vertical-align: middle;
    }
    .editor-table input[type="text"],
    .editor-table input:not([type]),
    .editor-table input[type="number"] {
      width: 100%;
      min-width: 72px;
      background: #0c1428;
      border: 1px solid rgba(255,255,255,0.1);
      color: #e8f0ff;
      border-radius: 6px;
      padding: 6px 8px;
      font-size: 12px;
    }
    .editor-table .ed-item input { min-width: 180px; }
    .editor-table .ed-note-h { min-width: 140px; }
    .editor-table .ed-note input { min-width: 120px; }
    .editor-table .ed-num { width: 64px; min-width: 64px; text-align: center; }
    .editor-table .ed-op { width: 52px; text-align: center; white-space: nowrap; }
    .editor-table .sticky-op {
      position: sticky;
      left: 0;
      z-index: 23;
      background: #121b36;
    }
    .editor-table thead th.sticky-op {
      z-index: 24;
    }
    .editor-table tbody .sticky-op { background: #0c1428; z-index: 4; }
    .editor-table .ed-brand-h { min-width: 110px; }
    .editor-table .ed-mark {
      text-align: center;
      white-space: nowrap;
      min-width: 108px;
    }
    .editor-table .ed-check {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      cursor: pointer;
      color: #79d9ff;
      font-weight: 700;
      margin-right: 4px;
    }
    .editor-table .ed-check input { accent-color: #5f93ff; }
    .editor-table .ed-score {
      width: 52px !important;
      min-width: 52px !important;
      text-align: center;
    }
    .editor-table .ed-score:disabled { opacity: 0.35; }
    .op-stack {
      display: flex;
      flex-direction: column;
      gap: 4px;
      align-items: center;
    }
    .row-move, .row-del {
      border: 1px solid rgba(255,255,255,0.18);
      background: rgba(255,255,255,0.04);
      color: #d7e5ff;
      border-radius: 6px;
      padding: 2px 8px;
      font-size: 12px;
      cursor: pointer;
      min-width: 36px;
    }
    .row-del {
      border-color: rgba(255,141,141,0.35);
      background: rgba(255,141,141,0.08);
      color: #ffb0b0;
    }

    .editor-dialog { width: min(480px, 92vw); }
    .editor-form { display: grid; gap: 12px; }
    .editor-form label {
      display: grid;
      gap: 6px;
      color: #c8dbff;
      font-size: 13px;
    }
    .editor-form select,
    .editor-form input {
      width: 100%;
      background: #0c1428;
      border: 1px solid rgba(255,255,255,0.14);
      color: #e8f0ff;
      border-radius: 8px;
      padding: 9px 10px;
      font-size: 14px;
    }
    .editor-form .hint {
      color: #8091b3;
      font-size: 12px;
      line-height: 1.5;
    }

    @media (max-width: 720px) {
      .editor-sticky-desc { display: none; }
      .editor-brand-sticky { padding: 8px 0 10px; }
      .brand-name-input { width: 110px; }
    }
