:root {
      --orange: oklch(62% 0.14 248);
      --orange-red: oklch(56% 0.16 250);
      --red: oklch(56% 0.2 24);
      --red-pink: oklch(62% 0.2 8);
      --pink: oklch(73% 0.17 344);
      --blue-violet: oklch(54% 0.17 258);
      --navy: oklch(30% 0.08 255);
      --blue-green: oklch(62% 0.14 238);
      --brand: var(--blue-violet);
      --brand-deep: var(--navy);
      --brand-soft: oklch(96.5% 0.026 248);
      --coral: var(--red-pink);
      --rose: var(--red-pink);
      --bg: oklch(97.8% 0.01 235);
      --card: rgba(255, 255, 255, 0.88);
      --ink: #17191c;
      --muted: #69717a;
      --line: rgba(229, 218, 221, 0.9);
      --shadow: 0 18px 44px rgba(31, 41, 75, 0.09);
      --font-main: "MiSans", "OPPO Sans", "OPPOSans", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    }

    * { box-sizing: border-box; }

    body {
      margin: 0;
      min-height: 100vh;
      background:
        radial-gradient(circle at 14% 0%, oklch(82% 0.07 238 / 0.08), transparent 34rem),
        radial-gradient(circle at 92% 18%, oklch(82% 0.08 258 / 0.07), transparent 32rem),
        linear-gradient(180deg, oklch(99% 0.004 235), var(--bg));
      color: var(--ink);
      font-family: var(--font-main);
      font-size: 18px;
    }

    button, input, select { font: inherit; }
    button { cursor: pointer; }
    button, select, input, textarea, .hero-card, .filter-panel, .range-panel, .wish-panel, .collapse-toggle, .suggest-option, .tab, .stat-card, .result-item, .pill, .page-btn, .bottom-nav a, .system-switch-card, .sheet button {
      transition: transform 0.2s cubic-bezier(0.2, 0.72, 0.22, 1), box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
      transform-origin: center;
    }

    button:active:not(:disabled), .system-switch-card:active, .pill-city:active, .subject-check:active { transform: translateY(1px) scale(0.976); }
    .motion-tap { animation: motion-tap 0.34s cubic-bezier(0.2, 0.72, 0.22, 1) both; }
    @keyframes motion-tap {
      0% { box-shadow: none; }
      45% { transform: translateY(1px) scale(0.972); box-shadow: 0 0 0 5px oklch(52% 0.16 255 / 0.1); }
      100% { box-shadow: none; }
    }

    @media (hover: hover) {
      button:hover:not(:disabled), select:hover, input:hover, .hero-card:hover, .filter-panel:hover, .range-panel:hover, .wish-panel:hover, .collapse-toggle:hover, .suggest-option:hover, .tab:hover, .stat-card:hover, .result-item:hover, .pill:hover, .page-btn:hover:not(:disabled), .bottom-nav a:hover, .sheet button:hover {
        transform: translateY(-1px) scale(1.012);
      }
    }

    .app {
      position: relative;
      z-index: 1;
      width: min(100%, 940px);
      margin: 0 auto;
      padding: 0 16px 118px;
      /* fill=backwards：入场动画播完后必须回到基础样式（transform:none）。
         若用 both，结束帧的 transform:translateY(0) scale(1) 会以
         matrix(1,0,0,1,0,0) 永久留存，使 .app 成为后代 position:sticky 的
         包含块，直接打断 header.topbar 的吸顶（PC 端实测 fixedBroken=1）。
         视觉与 both 完全一致，仅去掉残留 transform。 */
      animation: app-open 0.36s cubic-bezier(0.2, 0.72, 0.22, 1) backwards;
    }

    .app > * { animation: page-pop 0.42s cubic-bezier(0.2, 0.72, 0.22, 1) backwards; }
    .app > *:nth-child(2) { animation-delay: 0.04s; }
    .app > *:nth-child(3) { animation-delay: 0.08s; }
    .app > *:nth-child(n + 4) { animation-delay: 0.12s; }

    @keyframes page-pop {
      from { opacity: 0; transform: translateY(14px) scale(0.985); }
      to { opacity: 1; transform: translateY(0) scale(1); }
    }
    @keyframes app-open {
      from { opacity: 0; transform: translateY(12px) scale(0.985); }
      to { opacity: 1; transform: translateY(0) scale(1); }
    }

    .watermark {
      position: fixed;
      left: 50%;
      top: 62%;
      z-index: 0;
      width: min(56vw, 330px);
      height: min(56vw, 330px);
      max-width: 70%;
      border-radius: 42%;
      opacity: 0.13;
      pointer-events: none;
      transform: translate(-50%, -50%) rotate(-8deg);
      background:
        radial-gradient(circle at 50% 45%, oklch(93% 0.035 205 / 0.78), transparent 58%),
        linear-gradient(135deg, oklch(84% 0.06 205 / 0.14), oklch(82% 0.08 230 / 0.1));
    }

    .topbar {
      position: sticky;
      top: 0;
      z-index: 20;
      padding: 16px 0 12px;
      background: linear-gradient(180deg, rgba(250, 253, 255, 0.9), rgba(250, 251, 255, 0.7));
      backdrop-filter: blur(18px) saturate(1.12);
      -webkit-backdrop-filter: blur(18px) saturate(1.12);
    }

    .brand { display: flex; align-items: center; gap: 13px; min-height: 58px; }
    .logo {
      display: grid;
      width: 50px;
      height: 50px;
      place-items: center;
      border-radius: 14px;
      border: 1px solid rgba(255,255,255,0.82);
      background: linear-gradient(135deg, oklch(96% 0.026 238 / 0.9), oklch(94% 0.032 250 / 0.84));
      color: var(--brand-deep);
      font-weight: 800;
      box-shadow: 0 12px 24px oklch(30% 0.08 255 / 0.13);
    }

    h1 { margin: 0; font-size: 24px; font-weight: 760; letter-spacing: 0; }
    .brand-name-line { margin-top: 2px; color: var(--brand); font-size: 18px; font-weight: 650; }
    .brand-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 5px; }
    .brand-tags span {
      display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px;
      border: 1px solid oklch(62% 0.14 238 / 0.28);
      border-radius: 999px; color: var(--brand-deep);
      background: rgba(255,255,255,0.56); font-size: 16px; font-weight: 550;
    }
    .brand-tags span:nth-child(2) { color: var(--blue-violet); background: oklch(96% 0.035 282 / 0.82); }
    .brand-tags span:nth-child(3) { color: var(--blue-green); border-color: oklch(62% 0.14 238 / 0.28); }

    .title-row, .label-with-icon, .button-with-icon { display: inline-flex; align-items: center; gap: 6px; }
    .line-icon { width: 18px; height: 18px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }

    .hero-card, .filter-panel, .range-panel {
      border: 1px solid rgba(255,255,255,0.72);
      color: var(--ink);
      box-shadow: var(--shadow);
      backdrop-filter: blur(18px) saturate(1.1);
      -webkit-backdrop-filter: blur(18px) saturate(1.1);
    }
    .collapsible-card { overflow: hidden; }
    .collapsible-body {
      display: block;
      overflow: hidden;
      opacity: 1;
      transform: translateY(0);
    }
    .collapsible-body[hidden] { display: none !important; }
    .collapsible-card.collapsed .collapsible-body {
      opacity: 0;
      transform: translateY(-6px);
    }
    .collapsible-card:not(.collapsed), .collapsible-card:not(.collapsed) .collapsible-body { overflow: visible; }
    .collapsible-card.is-layer-active {
      position: relative;
      z-index: 60;
      overflow: visible;
    }
    .collapsible-card.is-layer-active .collapsible-body { overflow: visible; }
    .section-head, .wish-head-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
    .section-head { margin-bottom: 12px; }
    .collapse-toggle {
      flex-shrink: 0;
      border: 1px solid rgba(255,255,255,0.72);
      border-radius: 999px;
      background: rgba(255,255,255,0.42);
      color: var(--blue-green);
      padding: 7px 11px;
      font-size: 16px;
      font-weight: 760;
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
    }

    .hero-card {
      margin: 14px 0;
      padding: 16px;
      border-radius: 22px;
      background:
        linear-gradient(135deg, oklch(99% 0.008 238 / 0.92), oklch(98% 0.012 250 / 0.86)),
        linear-gradient(120deg, oklch(62% 0.14 238 / 0.09), oklch(52% 0.16 255 / 0.06));
    }

    .info-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
    .info-text { min-width: 0; font-size: 16px; font-weight: 650; line-height: 1.5; }
    .info-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
    .ghost-btn {
      flex-shrink: 0; border: 1px solid rgba(214,224,232,0.9); border-radius: 999px;
      background: rgba(255,255,255,0.22); color: var(--brand-deep); padding: 7px 12px;
      font-size: 16px; font-weight: 650; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
      box-shadow: inset 0 0 0 1px rgba(255,255,255,0.74);
    }
    .upload-btn { color: var(--blue-green); background: oklch(97% 0.028 238 / 0.82); }
    .template-btn { color: var(--red-pink); background: oklch(98% 0.024 344 / 0.82); }
    .danger-btn { color: var(--red); background: oklch(97% 0.03 18 / 0.78); }

    .search-box {
      display: grid; grid-template-columns: 1fr 1fr minmax(118px, 0.55fr) auto; gap: 8px;
      padding: 8px; border-radius: 14px; background: rgba(255,255,255,0.54);
      backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    }
    .search-box input, .field input, .field select {
      width: 100%; min-width: 0; height: 46px; border: 1px solid rgba(204,216,228,0.96);
      border-radius: 10px; outline: none; padding: 0 12px;
      background: rgba(255,255,255,0.92); color: var(--ink); font-size: 18px;
      box-shadow: inset 0 0 0 1px rgba(255,255,255,0.78);
    }
    .primary-btn {
      min-height: 46px; border: 0; border-radius: 10px; background: var(--navy); color: #fff;
      padding: 0 16px; font-weight: 760; font-size: 18px; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.28), 0 8px 16px oklch(30% 0.08 255 / 0.18);
    }

    .filter-panel, .range-panel {
      margin: 14px 0; padding: 15px; border-radius: 18px; background: rgba(255,255,255,0.84);
    }
    .controls { display: grid; grid-template-columns: repeat(4, minmax(112px, 1fr)); gap: 8px; overflow: visible; padding-bottom: 2px; }
    .location-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 12px; }
    .province-cascade { padding: 10px; border: 1px solid rgba(204,216,228,0.96); border-radius: 14px; background: rgba(255,255,255,0.58); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.72); }
    .field { display: grid; gap: 6px; }
    .field label, .panel-title { color: var(--muted); font-size: 16px; font-weight: 650; }
    .combo-field { position: relative; }
    .combo-input { touch-action: pan-y pinch-zoom; }
    .suggest-list {
      position: absolute;
      left: 0;
      right: 0;
      top: calc(100% + 6px);
      z-index: 70;
      display: none;
      max-height: 232px;
      overflow: auto;
      overscroll-behavior: contain;
      scrollbar-gutter: stable;
      border: 1px solid rgba(255,255,255,0.82);
      border-radius: 14px;
      background: rgba(255,255,255,0.96);
      box-shadow: 0 18px 42px rgba(31,41,55,0.14);
      backdrop-filter: blur(16px) saturate(1.08);
      -webkit-backdrop-filter: blur(16px) saturate(1.08);
    }
    .suggest-list.show { display: grid; animation: suggest-pop 0.18s cubic-bezier(0.2, 0.72, 0.22, 1) both; will-change: opacity, transform; }
    @keyframes suggest-pop {
      from { opacity: 0; transform: translateY(-6px) scale(0.985); }
      to { opacity: 1; transform: translateY(0) scale(1); }
    }
    .suggest-option {
      border: 0;
      border-radius: 12px;
      background: rgba(255,255,255,0.72);
      color: var(--ink);
      padding: 10px 12px;
      text-align: left;
      font-size: 16px;
      line-height: 1.4;
    }
    .suggest-option:hover, .suggest-option:focus { background: oklch(96% 0.026 238 / 0.76); color: var(--brand-deep); }
    .suggest-option:active { transform: translateX(3px) scale(0.99); }
    .suggest-option small { display: block; margin-top: 2px; color: var(--muted); font-size: 16px; }
    .rich-suggest .suggest-option { border: 1px solid rgba(226,232,240,0.86); margin: 6px; }
    .city-menu { display: flex; flex-wrap: wrap; gap: 8px; min-height: 46px; margin-top: 9px; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,0.86); }
    .city-option { min-height: 34px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,0.72); color: var(--muted); padding: 0 12px; font-size: 16px; font-weight: 760; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.72); }
    .city-option.active { border-color: oklch(62% 0.14 248 / 0.44); background: oklch(94% 0.045 248 / 0.88); color: var(--blue-violet); box-shadow: inset 0 0 0 1px oklch(62% 0.14 248 / 0.22), 0 8px 18px oklch(62% 0.14 248 / 0.12); }
    .city-empty { min-height: 34px; display: inline-flex; align-items: center; color: var(--muted); font-size: 16px; padding: 0 4px; }

    .subject-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-top: 12px; }
    .subject-check input { position: absolute; opacity: 0; pointer-events: none; }
    .subject-check span {
      display: grid; height: 38px; place-items: center; border: 1px solid var(--line); border-radius: 12px;
      color: var(--muted); background: rgba(255,255,255,0.72); font-size: 16px; font-weight: 650;
      box-shadow: inset 0 0 0 1px rgba(255,255,255,0.78);
      transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
    }
    .subject-check input:checked + span {
      border-color: transparent; color: #fff;
      background: linear-gradient(135deg, var(--blue-violet), var(--navy));
      box-shadow: 0 10px 20px oklch(30% 0.08 255 / 0.18);
    }

    .range-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
    .range-card {
      position: relative;
      display: grid;
      gap: 10px;
      min-height: 112px;
      border: 1px solid rgba(255,255,255,0.74);
      border-radius: 16px;
      background: rgba(255,255,255,0.68);
      padding: 12px;
      box-shadow: 0 10px 26px rgba(15,23,42,0.055);
    }
    .range-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      min-height: 34px;
      padding-right: 148px;
      color: var(--muted);
      font-size: 16px;
      font-weight: 650;
    }
    .range-head span:first-child {
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .range-head span:last-child {
      display: none;
    }
    .range-values {
      position: absolute;
      top: 11px;
      right: 12px;
      z-index: 2;
      display: flex;
      justify-content: flex-end;
      gap: 7px;
      width: auto;
    }
    .range-values input {
      width: 68px;
      height: 32px;
      border: 1px solid var(--line);
      border-radius: 10px;
      background: rgba(255,255,255,0.88);
      padding: 0 7px;
      outline: none;
      font-size: 16px;
      font-weight: 760;
      text-align: center;
    }
    .range-card.is-single .range-head { padding-right: 90px; }
    .range-card.is-single .range-values input { width: 78px; }
    .range-wrap { position: relative; height: 34px; --start: 0%; --end: 100%; }
    .range-track { position: absolute; left: 0; right: 0; top: 15px; height: 5px; border-radius: 999px; background: oklch(91% 0.02 205 / 0.72); }
    .range-fill { position: absolute; left: var(--start); top: 15px; width: calc(var(--end) - var(--start)); height: 5px; border-radius: 999px; background: linear-gradient(90deg, oklch(66% 0.1 238), var(--blue-green)); }
    .range-wrap input[type="range"] { position: absolute; left: 0; top: 0; width: 100%; height: 34px; margin: 0; appearance: none; background: transparent; pointer-events: none; }
    .range-wrap input[type="range"]::-webkit-slider-thumb { appearance: none; width: 22px; height: 22px; border: 3px solid #fff; border-radius: 50%; background: var(--blue-green); box-shadow: 0 5px 14px rgba(31,41,55,0.18); pointer-events: auto; }
    .range-wrap input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border: 3px solid #fff; border-radius: 50%; background: var(--blue-green); box-shadow: 0 5px 14px rgba(31,41,55,0.18); pointer-events: auto; }
    .range-card.is-single .range-values { grid-template-columns: 1fr; }

    .summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 14px 0; }
    .wish-panel {
      margin: 14px 0;
      padding: 15px;
      border: 1px solid rgba(255,255,255,0.72);
      border-radius: 18px;
      background: rgba(255,255,255,0.84);
      box-shadow: var(--shadow);
      backdrop-filter: blur(18px) saturate(1.1);
      -webkit-backdrop-filter: blur(18px) saturate(1.1);
    }
    .wish-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
    .wish-subtitle { margin-top: 3px; color: var(--muted); font-size: 16px; }
    .wish-count { color: var(--brand); font-weight: 760; font-variant-numeric: tabular-nums; }
    .mode-tabs { display: inline-flex; gap: 8px; padding: 0; border-radius: 14px; background: transparent; margin-bottom: 12px; }
    .mode-btn { min-width: 96px; height: 38px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,0.86); color: var(--muted); font-size: 16px; font-weight: 700; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.76); }
    .mode-btn.active { border-color: var(--navy); background: var(--navy); color: #fff; box-shadow: 0 8px 18px oklch(30% 0.08 255 / 0.16); }
    .wish-entry { display: grid; grid-template-columns: 1fr 1fr auto auto; gap: 8px; align-items: end; }
    .wish-list { display: grid; gap: 8px; margin-top: 12px; }
    .wish-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 10px; border: 1px solid rgba(229,218,221,0.76); border-radius: 14px; background: rgba(255,255,255,0.68); }
    .wish-order { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 10px; background: oklch(96% 0.026 238); color: var(--brand-deep); font-weight: 800; font-size: 16px; }
    .wish-main { min-width: 0; }
    .wish-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 16px; font-weight: 720; }
    .wish-meta { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 2px; color: var(--muted); font-size: 16px; }
    .wish-status { border-radius: 999px; padding: 5px 9px; font-size: 16px; font-weight: 760; white-space: nowrap; }
    .wish-status.passed { background: oklch(93% 0.055 282); color: var(--blue-violet); }
    .wish-status.failed { background: oklch(94% 0.06 18); color: oklch(42% 0.15 18); }
    .wish-status.unknown { background: oklch(96% 0.028 238); color: var(--blue-green); }
    .wish-delete { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--red); }
    .prefill-panel {
      background:
        linear-gradient(135deg, oklch(98% 0.018 205 / 0.84), rgba(255, 255, 255, 0.78)),
        rgba(255, 255, 255, 0.76);
    }
    .prefill-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
    .small-danger-btn {
      min-height: 38px;
      border: 1px solid oklch(64% 0.18 34 / 0.28);
      border-radius: 999px;
      background: oklch(97% 0.03 18 / 0.78);
      color: var(--red);
      padding: 7px 11px;
      font-size: 16px;
      font-weight: 760;
    }
    .prefill-meta {
      margin-bottom: 9px;
      color: var(--muted);
      font-size: 16px;
      font-weight: 700;
      text-align: right;
    }
    .prefill-table-wrap {
      overflow-x: auto;
      border: 1px solid rgba(226, 232, 240, 0.85);
      border-radius: 12px;
      background: rgba(255, 255, 255, 0.78);
    }
    .prefill-table {
      width: 100%;
      min-width: 1040px;
      border-collapse: collapse;
      font-size: 16px;
    }
    .prefill-table th,
    .prefill-table td {
      border-bottom: 1px solid rgba(226, 232, 240, 0.72);
      padding: 8px 9px;
      text-align: left;
      white-space: nowrap;
    }
    .prefill-table th {
      background: oklch(96% 0.018 248 / 0.78);
      color: var(--muted);
      font-weight: 850;
    }
    .prefill-table tbody tr {
      transition: background 0.18s ease;
    }
    .prefill-table tbody tr:hover {
      background: oklch(97% 0.02 205 / 0.62);
    }
    .item-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 7px;
      margin-top: 9px;
    }
    .mini-action-btn,
    .prefill-delete {
      border: 1px solid #2457d6;
      border-radius: 6px;
      padding: 8px 12px;
      background: #2457d6;
      color: #fff;
      font-size: 16px;
      font-weight: 780;
      white-space: nowrap;
      cursor: pointer;
      box-shadow: 0 7px 17px rgba(36,87,214,0.18);
      transition: transform var(--query-motion-duration, 220ms) var(--query-motion-ease, ease), box-shadow var(--query-motion-duration, 220ms) var(--query-motion-ease, ease), background var(--query-motion-duration, 220ms) ease;
    }
    .mini-action-btn:hover,
    .prefill-delete:hover {
      border-color: #194bc5;
      background: #194bc5;
      transform: translateY(-1px);
      box-shadow: 0 10px 22px rgba(36,87,214,0.24);
    }
    .mini-action-btn.is-added {
      border-color: var(--navy);
      background: var(--navy);
      color: #fff;
      box-shadow: none;
    }
    .mini-action-btn.is-added:hover {
      box-shadow: none;
    }
    .prefill-delete {
      border-color: #f0b5bf;
      background: #fff7f8;
      color: #c32f52;
      box-shadow: none;
    }
    .prefill-delete:hover {
      border-color: #df7890;
      background: #fff0f3;
      color: #a91f41;
      box-shadow: 0 7px 16px rgba(195,47,82,0.12);
    }
    .stat-card, .result-item, .pager, .empty {
      border: 1px solid rgba(255,255,255,0.72); background: var(--card); box-shadow: 0 10px 26px rgba(15,23,42,0.06);
      backdrop-filter: blur(16px) saturate(1.08); -webkit-backdrop-filter: blur(16px) saturate(1.08);
    }
    .stat-card { border-radius: 16px; padding: 14px; }
    .stat-label { color: var(--muted); font-size: 16px; font-weight: 520; }
    .stat-value { margin-top: 5px; font-size: 24px; font-weight: 760; font-variant-numeric: tabular-nums; }
    .tabs { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; }
    .tab { min-height: 42px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,0.86); color: var(--muted); padding: 8px 16px; font-size: 16px; font-weight: 650; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.76); }
    .tab.active { border-color: var(--navy); background: var(--navy); color: #fff; animation: tab-select 0.3s cubic-bezier(0.2, 0.72, 0.22, 1) both; }
    .tab.failed.active { background: var(--rose); }
    .tab.passed.active { background: var(--blue-violet); }
    @keyframes tab-select {
      0% { transform: scale(0.94); opacity: 0.72; }
      70% { transform: scale(1.025); }
      100% { transform: scale(1); opacity: 1; }
    }

    .result-list { display: grid; gap: 12px; }
    .result-list.is-querying { opacity: 0.48; transform: translateY(8px) scale(0.992); transition: opacity 0.18s ease, transform 0.18s ease; }
    .result-list.just-rendered .result-item { animation: result-rise 0.34s cubic-bezier(0.2, 0.72, 0.22, 1) both; }
    .result-list.just-rendered .result-item:nth-child(2) { animation-delay: 0.03s; }
    .result-list.just-rendered .result-item:nth-child(3) { animation-delay: 0.06s; }
    .result-list.just-rendered .result-item:nth-child(4) { animation-delay: 0.09s; }
    .result-list.just-rendered .result-item:nth-child(5) { animation-delay: 0.12s; }
    .result-list.just-rendered .result-item:nth-child(n + 6) { animation-delay: 0.15s; }
    @keyframes result-rise {
      from { opacity: 0; transform: translateY(10px) scale(0.992); }
      to { opacity: 1; transform: translateY(0) scale(1); }
    }
    .result-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; border-radius: 18px; padding: 16px; }
    .school-brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
    .school-logo {
      display: grid;
      flex: 0 0 42px;
      width: 42px;
      height: 42px;
      place-items: center;
      overflow: hidden;
      border: 1px solid oklch(84% 0.045 205 / 0.72);
      border-radius: 999px;
      background: linear-gradient(135deg, oklch(98% 0.016 205 / 0.96), oklch(96% 0.024 344 / 0.86));
      color: var(--brand-deep);
      font-size: 16px;
      font-weight: 900;
      box-shadow: 0 8px 18px oklch(58% 0.11 238 / 0.12);
    }
    .school-logo img { display: block; width: 100%; height: 100%; object-fit: cover; }
    .school-logo.placeholder { background: linear-gradient(135deg, oklch(96% 0.026 238), oklch(95% 0.03 258)); }
    .school { margin: 0; font-size: 18px; font-weight: 760; }
    .school-brand .school { min-width: 0; }
    .major { margin-top: 4px; color: var(--muted); font-size: 16px; line-height: 1.45; }
    .item-code { display: inline-block; margin-right: 7px; color: var(--brand); font-weight: 800; font-variant-numeric: tabular-nums; }
    .meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
    /* 结果卡片：标签行（.meta）与「加入预填表」按钮同处一行，按钮靠右。
       与春考/单招的 .result-meta-actions 保持同一结构。
       meta 的 margin-right:auto 吸收剩余空间 → 同一行时按钮贴右；
       父级 justify-content:flex-end → 换行后按钮仍贴右（不会掉到左边）。 */
    .result-meta-actions { display: flex; align-items: flex-end; justify-content: flex-end; gap: 12px; flex-wrap: wrap; }
    .result-meta-actions .meta { flex: 0 1 auto; min-width: 0; margin-right: auto; }
    .result-meta-actions .item-actions { flex: 0 0 auto; margin-top: 8px; }
    /* 2026-09-17 (r9) 用户要求：结果卡该区域电脑端统一「小 4px」→ 20px → 16px。
       基准值就地降到 16px，这样 761–1023px（不命中 desktop-font-floor 的窄桌面/平板区间）
       也能保持 16px；否则该区间会漏回 20px（跨宽度扫描实测发现）。
       手机端（≤760px）由更具体的 .result-item .meta .pill(14px !important) 覆盖，不受此处影响。
       2026-09-17 (r11)：用户红框再次确认该区域（**含药丸行**）字号 +2px ⇒ 基准值 16px → 18px，
       与 .metric 同步；761–1023px 同样取 18px。 */
    .pill { display: inline-flex; align-items: center; gap: 4px; border-radius: 10px; background: oklch(96% 0.026 238); color: var(--brand-deep); padding: 3px 8px; font-size: 18px; font-weight: 560; }
    .pill:nth-child(3n) { background: oklch(97% 0.026 344); color: var(--red-pink); }
    .pill:nth-child(4n) { background: oklch(96% 0.028 238); color: var(--blue-green); }
    .pill .line-icon { width: 13px; height: 13px; stroke-width: 2.2; }
    .metrics { display: grid; grid-template-columns: repeat(5, minmax(64px, 1fr)); gap: 1px; margin-top: 10px; overflow: hidden; border-radius: 12px; border: 1px solid rgba(226,232,240,0.8); background: rgba(226,232,240,0.8); }
    .metric { padding: 10px 6px; background: rgba(255,255,255,0.72); text-align: center; }
    /* 2026-09-17 (r11) 用户标注（结果卡红框 = .metrics 四格「2026计划/最低分/最低位次/学费」）：
       字号再 +2px ⇒ 桌面 16px → 18px、手机 14px → 16px。只动这四格，上方药丸行（.meta）不在框内、不改。
       基准值就地抬到 18px：这样 761–1023px（既不命中 desktop-font-floor 也不命中手机块）也取 18px。
       实测（37,942 条真实数据，最坏值 347人 / 697分 / 100005 / 160,000元）：
       桌面 761–1920px 全绿，761px 时格内可用 154px、最宽文本 97.9px（余量 +49px）。 */
    .metric b { display: block; font-size: 18px; font-weight: 760; font-variant-numeric: tabular-nums; }
    .metric span { display: block; margin-top: 2px; color: var(--muted); font-size: 18px; }
    .badge { display: inline-flex; align-items: center; justify-content: center; min-width: 64px; border-radius: 999px; padding: 6px 10px; font-size: 16px; font-weight: 760; white-space: nowrap; }
    .badge.passed { background: oklch(93% 0.055 282); color: var(--blue-violet); }
    .badge.failed { background: oklch(94% 0.06 18); color: oklch(42% 0.15 18); }
    .badge.unknown { background: oklch(96% 0.028 238); color: var(--blue-green); }
    .empty { border-radius: 18px; padding: 42px 18px; color: var(--muted); text-align: center; line-height: 1.8; }
    .load-hint { margin: 12px 0 2px; color: var(--muted); font-size: 16px; text-align: center; }
    .pager { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 7px; margin-top: 14px; border-radius: 16px; padding: 10px; }
    .page-btn { min-width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,0.78); color: var(--ink); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.76); }
    .page-btn.active { border-color: var(--navy); background: var(--navy); color: #fff; }
    .page-btn:disabled { opacity: 0.45; cursor: default; }

    .toast { position: fixed; left: 50%; bottom: 82px; z-index: 120; max-width: min(88vw, 380px); padding: 10px 14px; border: 1px solid rgba(255,255,255,0.72); border-radius: 999px; background: rgba(39,43,75,0.88); color: #fff; box-shadow: 0 16px 34px rgba(15,23,42,0.18); font-size: 16px; line-height: 1.35; text-align: center; opacity: 0; pointer-events: none; transform: translate(-50%, 8px) scale(0.98); transition: opacity 0.18s ease, transform 0.18s ease; backdrop-filter: blur(12px) saturate(1.08); -webkit-backdrop-filter: blur(12px) saturate(1.08); }
    .toast.show { opacity: 1; transform: translate(-50%, 0) scale(1); }
    .toast.error { background: oklch(38% 0.13 18 / 0.92); }
    .query-loader {
      position: fixed; left: 50%; top: 50%; z-index: 150; display: flex; align-items: center; gap: 10px;
      min-width: 166px; padding: 11px 14px; border: 1px solid oklch(72% 0.08 250 / 0.35); border-radius: 14px;
      background: oklch(99% 0.012 245 / 0.92); color: var(--brand-deep); box-shadow: 0 18px 44px oklch(30% 0.08 255 / 0.18);
      font-size: 16px; font-weight: 720; opacity: 0; pointer-events: none; transform: translate(-50%, -42%) scale(0.96);
      transition: opacity 0.2s ease, transform 0.26s cubic-bezier(0.2, 0.72, 0.22, 1); backdrop-filter: blur(18px) saturate(1.12); -webkit-backdrop-filter: blur(18px) saturate(1.12);
    }
    .query-loader.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    .spinner-loader { width: 24px; height: 24px; flex: 0 0 24px; border: 3px solid oklch(88% 0.045 250); border-top-color: oklch(47% 0.15 250); border-radius: 999px; animation: spinner-turn 0.72s linear infinite; }
    @keyframes spinner-turn { to { transform: rotate(360deg); } }

    .sheet-mask { position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center; padding: 18px; background: rgba(15,23,42,0.36); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity var(--query-motion-duration, 260ms) var(--query-motion-ease, ease), visibility var(--query-motion-duration, 260ms) ease; }
    .sheet-mask.show { opacity: 1; visibility: visible; pointer-events: auto; }
    .sheet { width: min(100%, 450px); border-radius: 6px; background: rgba(255,255,255,0.94); box-shadow: 0 28px 70px rgba(15,23,42,0.28); padding: 20px; opacity: 0; transform: translateY(14px) scale(.97); transition: opacity var(--query-motion-duration, 280ms) var(--query-motion-ease, ease), transform var(--query-motion-duration, 280ms) var(--query-motion-ease, ease); }
    .sheet-mask.show .sheet { opacity: 1; transform: translateY(0) scale(1); }
    .admin-motion-disabled *, .admin-motion-disabled *::before, .admin-motion-disabled *::after { animation: none !important; transition-duration: 0.01ms !important; }
    .sheet h2 { margin: 0 0 14px; font-size: 18px; }
    .sheet-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
    /* 批次必选态：隐藏「取消」，按钮区收成两列（暂不选择位次 / 确定）。
       剩两个按钮仍按原有顺序排布，确定靠右且拿到更宽的一栏。 */
    .sheet-mask.is-batch-required #cancelSetup { display: none; }
    .sheet-mask.is-batch-required .sheet-actions { grid-template-columns: 1fr 1.45fr; }
    .sheet button { height: 44px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-weight: 650; }
    .sheet button.confirm, .admit-card button.confirm { border: 0; background: var(--brand); color: #fff; }
    .validation-card p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.75; white-space: pre-line; }
    .validation-actions { grid-template-columns: 1fr; }
    .admit-card {
      display: grid;
      align-content: center;
      gap: 9px;
      text-align: center;
      aspect-ratio: 1 / 1;
      border-radius: 29% 22% 26% 20% / 20% 27% 22% 28%;
      background:
        linear-gradient(135deg, rgba(255,255,255,0.96), rgba(255,246,249,0.94)),
        linear-gradient(135deg, oklch(97% 0.035 344 / 0.9), oklch(96% 0.04 8 / 0.8));
      overflow: hidden;
    }
    .admit-icon { display: grid; width: 58px; height: 58px; place-items: center; margin: 0 auto 2px; border-radius: 999px; background: oklch(96% 0.038 344); color: var(--red-pink); box-shadow: 0 12px 28px oklch(62% 0.2 8 / 0.18); }
    .admit-icon .line-icon { width: 31px; height: 31px; stroke-width: 1.9; }
    .admit-kicker { color: var(--brand); font-size: 16px; font-weight: 760; }
    .admit-school { font-size: 22px; font-weight: 800; color: var(--ink); }
    .admit-major { color: var(--muted); line-height: 1.45; }
    .admit-note { border-radius: 14px; padding: 12px; background: oklch(97% 0.026 205 / 0.74); color: var(--brand-deep); font-size: 16px; line-height: 1.6; }
    .confetti-layer { position: fixed; inset: 0; z-index: 110; pointer-events: none; overflow: hidden; }
    .confetti-piece { position: absolute; top: -18px; width: 8px; height: 14px; border-radius: 4px; opacity: 0; animation: confetti-fall 1.8s ease-out forwards; }
    @keyframes confetti-fall {
      0% { opacity: 0; transform: translate3d(0, -20px, 0) rotate(0deg) scale(0.92); }
      15% { opacity: 0.9; }
      100% { opacity: 0; transform: translate3d(var(--dx), calc(100vh + 40px), 0) rotate(var(--rot)) scale(0.96); }
    }

    .bottom-nav { position: fixed; left: 50%; bottom: 18px; z-index: 50; display: flex; gap: 8px; padding: 8px; border: 1px solid rgba(202,216,232,0.86); border-radius: 18px; background: rgba(248,252,255,0.72); box-shadow: 0 18px 44px rgba(31,41,55,0.1), inset 0 1px 0 rgba(255,255,255,0.88); transform: translateX(-50%); backdrop-filter: blur(24px) saturate(1.16); -webkit-backdrop-filter: blur(24px) saturate(1.16); }
    .bottom-nav a { display: inline-grid; min-width: 108px; height: 44px; place-items: center; border: 1px solid rgba(197,213,230,0.9); border-radius: 12px; color: var(--ink); font-size: 16px; font-weight: 650; text-decoration: none; background: rgba(255,255,255,0.56); box-shadow: inset 0 1px 0 rgba(255,255,255,0.92), 0 6px 16px rgba(38,66,98,0.07); }
    .bottom-nav a.active { border-color: var(--navy); background: var(--navy); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,0.28), 0 8px 18px oklch(30% 0.08 255 / 0.18); }

    .summer-query-mode .line-only,
    .summer-line-mode .query-only { display: none !important; }
    .summer-query-mode .query-system-link,
    .summer-line-mode .line-system-link { display: none; }

    .system-switcher { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 8px; margin: 12px 0 14px; }
    .system-switch-card { display: grid; gap: 3px; min-height: 68px; border: 1px solid rgba(255,255,255,.86); border-radius: 14px; padding: 12px; color: var(--ink); text-decoration: none; box-shadow: 0 8px 20px rgba(31,41,75,.08); transition: transform .2s ease, box-shadow .2s ease; }
    .system-switch-card:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(31,41,75,.13); }
    .system-switch-card span { font-size: 16px; font-weight: 800; }
    .system-switch-card small { color: var(--muted); font-size: 16px; }
    .system-switch-card[hidden] { display: none !important; }
    .system-spring { background: oklch(94% .05 248); }
    .system-line { background: oklch(95% .045 300); }
    .system-zsb { background: oklch(95% .05 72); }
    .system-summer { background: oklch(94% .045 218); }
    .system-summer-line { background: oklch(95% .04 58); }

    .smart-panel { margin: 14px 0; }
    .smart-body { padding-top: 12px; }
    .smart-entry { display: grid; grid-template-columns: minmax(0, 1fr) 132px; gap: 10px; align-items: stretch; }
    .smart-entry textarea { min-height: 92px; width: 100%; resize: vertical; border: 1px solid var(--line); border-radius: 14px; padding: 13px 14px; background: rgba(255,255,255,.8); color: var(--ink); font: inherit; line-height: 1.55; outline: 0; transition: border-color .18s ease, box-shadow .18s ease; }
    .smart-entry textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px oklch(62% .12 245 / .13); }
    .smart-entry .primary-btn { min-height: 50px; align-self: center; }
    .smart-note { min-height: 22px; margin-top: 9px; color: var(--muted); font-size: 16px; line-height: 1.55; }
    .smart-result-list { display: grid; gap: 8px; margin-top: 8px; }
    .smart-result { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.7); animation: result-rise var(--query-motion-duration, 280ms) var(--query-motion-ease, ease) both; }
    .smart-result strong { display: block; font-size: 16px; color: var(--ink); }
    .smart-result small { display: block; margin-top: 3px; color: var(--muted); font-size: 16px; line-height: 1.45; }
    .smart-reason { flex: 0 0 auto; max-width: 42%; color: var(--brand-deep); font-size: 16px; line-height: 1.45; text-align: right; }
    .smart-pager { display: flex; justify-content: center; gap: 8px; margin-top: 12px; }
    .smart-pager:empty, .smart-result-list:empty { display: none; }
    .multi-select-option { display: flex; align-items: center; gap: 8px; text-align: left; }
    .multi-select-option.selected { background: oklch(94% .045 248); color: var(--brand-deep); }
    .multi-check { display: inline-grid; flex: 0 0 16px; width: 16px; height: 16px; place-items: center; border: 1px solid currentColor; border-radius: 4px; font-size: 16px; line-height: 1; }
    .meta .pill-level { background: oklch(94% .045 248); color: oklch(42% .13 248); }
    .meta .pill-type { background: oklch(95% .045 300); color: oklch(42% .12 300); }
    /* 2026-09-17 (r10) 用户要求「该区域电脑端小 4px」也覆盖「省份/地区」这颗药丸。
       该规则是裸选择器（特异性 0,2,0）、且无 !important ⇒ 是 761–1023px 区间唯一命中的规则：
       桌面底线块从 1024px 起、手机块到 760px 止，中间这段只有它生效。
       20px 会与同排的 4 颗 16px 药丸明显不齐（实测：1023/900/800/761px 均 20px）。
       就地降到 16px，与基础 .pill 对齐；手机端由 .result-item .meta .pill-city 的
       14px !important 覆盖，不受此处影响。 */
    .meta .pill-city { border: 0; background: oklch(94% .04 185); color: oklch(40% .1 185); font-size: 18px; font-weight: 560; line-height: normal; cursor: pointer; }
    .meta .pill-attr { background: oklch(95% .045 72); color: oklch(42% .12 72); }
    .meta .pill-major { background: oklch(95% .035 145); color: oklch(38% .1 145); }
    .meta .pill-subjects { background: oklch(95% .035 320); color: oklch(42% .1 320); }

    @media (max-width: 760px) {
      .controls, .range-grid, .summary { grid-template-columns: 1fr 1fr; }
      .location-grid { grid-template-columns: 1fr; }
      .search-box { grid-template-columns: 1fr 1fr; }
      .wish-entry { grid-template-columns: 1fr 1fr; }
      .subject-grid { grid-template-columns: repeat(3, 1fr); }
      .metrics { grid-template-columns: repeat(2, 1fr); }
    }
    @media (max-width: 560px) {
      /* 窄屏：标签行与按钮各占一行，按钮靠右对齐（不用 width:100%，保持与春考同一节奏）。 */
      .result-meta-actions { align-items: flex-end; gap: 8px; }
      .result-meta-actions .meta { flex: 1 1 100%; }
      .result-meta-actions .item-actions { flex: 0 0 auto; margin-top: 0; margin-left: auto; }
      .system-switcher { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .system-switch-card { min-height: 60px; padding: 10px; }
      .app { padding-inline: 12px; }
      .info-row, .result-item { grid-template-columns: 1fr; display: grid; }
      .info-actions { justify-content: stretch; }
      .info-actions button { justify-content: center; }
      .search-box, .controls, .range-grid, .summary { grid-template-columns: 1fr; }
      .smart-entry { grid-template-columns: 1fr; }
      .smart-entry .primary-btn { width: 100%; }
      .smart-result { align-items: flex-start; flex-direction: column; }
      .smart-reason { max-width: none; text-align: left; }
      .wish-entry { grid-template-columns: 1fr; }
      .wish-row { grid-template-columns: auto minmax(0, 1fr) auto; }
      .wish-delete { grid-column: 3; }
      .prefill-actions { justify-content: stretch; }
      .prefill-actions button { justify-content: center; }
      .sheet-actions { grid-template-columns: 1fr; }
      .subject-grid { grid-template-columns: repeat(2, 1fr); }
      .school-brand { gap: 8px; }
      .school-logo { flex-basis: 36px; width: 36px; height: 36px; font-size: 16px; }
      .badge { width: max-content; }
    }
    @media (max-width: 430px) {
      body { font-size: 16px; }
      .app { padding-inline: 10px; padding-bottom: 104px; }
      .topbar { padding-top: 12px; }
      h1 { font-size: 20px; }
      .brand-name-line { font-size: 16px; }
      .brand-tags span { font-size: 16px; }
      .hero-card, .filter-panel, .range-panel, .wish-panel { padding: 12px; border-radius: 16px; }
      .info-row, .wish-head, .section-head { align-items: stretch; }
      .info-actions, .prefill-actions, .wish-head-actions { display: grid; grid-template-columns: 1fr 1fr; justify-content: stretch; }
      .ghost-btn, .collapse-toggle, .small-danger-btn { justify-content: center; min-height: 36px; padding: 6px 8px; font-size: 16px; }
      .search-box input, .field input, .field select { height: 42px; font-size: 16px; }
      .subject-grid { gap: 6px; }
      .range-card { min-height: 106px; padding: 11px; }
      .range-head { padding-right: 132px; font-size: 16px; }
      .range-values { right: 11px; gap: 5px; }
      .range-values input { width: 60px; height: 30px; padding-inline: 5px; font-size: 16px; }
      .range-card.is-single .range-head { padding-right: 82px; }
      .range-card.is-single .range-values input { width: 72px; }
      .school-logo { flex-basis: 32px; width: 32px; height: 32px; font-size: 16px; }
      .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .metric b { font-size: 16px; }
      .bottom-nav { bottom: 12px; width: calc(100% - 20px); }
      .bottom-nav a { min-width: 0; flex: 1 1 0; font-size: 16px; }
      .toast { bottom: 74px; }
    }
    @media (prefers-reduced-motion: reduce) {
      .app, .app > * { animation: none; }
      button, select, input, textarea, .hero-card, .filter-panel, .range-panel, .tab, .stat-card, .result-item, .pill, .page-btn, .bottom-nav a, .sheet button, .query-loader { transition: none; }
      .motion-tap, .tab.active, .result-list.just-rendered .result-item, .spinner-loader { animation: none; }
    }
  
/* Unified interaction rhythm; Summer cards settle with a light scale. */
:root { --interaction-duration: var(--query-motion-duration, 240ms); --interaction-ease: var(--query-motion-ease, cubic-bezier(.2,.72,.22,1)); }
button, select, input, textarea, .tab, .result-item, .page-btn { transition-duration: var(--interaction-duration); transition-timing-function: var(--interaction-ease); }
.result-list.just-rendered .result-item { animation-name: summer-result-enter; animation-duration: var(--interaction-duration); animation-timing-function: var(--interaction-ease); }
@keyframes summer-result-enter { from { opacity: 0; transform: translateY(6px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
@media (prefers-reduced-motion: reduce) { .result-list.just-rendered .result-item { animation: none; } }

.site-carousel { display: none; }
.site-carousel.ready { position: relative; display: block; aspect-ratio: 16 / 5; margin: 0 0 12px; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: var(--shadow); }
.site-carousel-track, .site-carousel-slide { position: absolute; inset: 0; }
.site-carousel-slide { display: block; opacity: 0; pointer-events: none; transition: opacity .42s cubic-bezier(.2,.72,.22,1), transform .52s cubic-bezier(.2,.72,.22,1); transform: scale(1.012); }
.site-carousel-slide.active { opacity: 1; pointer-events: auto; transform: scale(1); }
.site-carousel-slide img { width: 100%; height: 100%; display: block; object-fit: cover; }
.site-carousel-slide strong { position: absolute; left: 18px; bottom: 16px; max-width: calc(100% - 36px); padding: 7px 10px; border-radius: 6px; background: rgba(15,23,42,.74); color: #fff; font-size: 16px; }
.site-carousel-arrow { position: absolute; top: 50%; z-index: 2; width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(255,255,255,.86); color: var(--ink); font-size: 24px; transform: translateY(-50%); }
.site-carousel-arrow.prev { left: 12px; } .site-carousel-arrow.next { right: 12px; }
.site-carousel-dots { position: absolute; z-index: 2; left: 50%; bottom: 10px; display: flex; gap: 6px; transform: translateX(-50%); }
.site-carousel-dots button { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.65); }
.site-carousel-dots button.active { width: 20px; border-radius: 5px; background: #fff; }
.summer-module-tabs { display: flex; gap: 7px; margin: 0 0 14px; padding: 8px; overflow-x: auto; scrollbar-width: thin; border: 1px solid rgba(215,224,236,.86); border-radius: 14px; background: rgba(255,255,255,.72); box-shadow: 0 10px 24px rgba(31,41,75,.06); }
.summer-module-tabs a { flex: 0 0 auto; min-height: 38px; display: inline-flex; align-items: center; padding: 0 13px; border-radius: 8px; color: var(--muted); font-size: 16px; font-weight: 650; text-decoration: none; white-space: nowrap; transition: background .2s ease, color .2s ease, transform .2s ease; }
.summer-module-tabs a:hover { background: var(--brand-soft); color: var(--brand-deep); transform: translateY(-1px); }
.summer-module-tabs a.active { background: var(--brand-deep); color: #fff; }
@media (min-width: 1024px) {
  .app { width: min(1440px, calc(100% - 48px)); padding-inline: 0; }
  .system-switcher { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .controls { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .location-grid { grid-template-columns: minmax(0, 1fr); }
  .range-grid, .summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .site-carousel.ready { border-radius: 18px; }
  .summer-module-tabs { justify-content: flex-start; }
}


/* 2026 desktop composition, modal safety and backend icon overrides. */
.admin-custom-icon { width:1.15em; height:1.15em; flex:0 0 auto; object-fit:contain; vertical-align:-.16em; }
.sheet-mask { padding:18px; overflow-y:auto; overscroll-behavior:contain; }
.sheet { width:min(520px,100%); max-height:calc(100dvh - 36px); overflow:auto; overscroll-behavior:contain; }
.sheet h2,.sheet p { overflow-wrap:anywhere; }
.sheet button { min-width:0; height:auto; min-height:44px; white-space:normal; line-height:1.35; }
@media (min-width:1024px) {
  .app { width:min(1240px,calc(100% - 48px)); }
  .controls { gap:14px; }
  .query-panel { padding:24px; }
  .result-item { padding-inline:22px; }
  .summer-module-tabs { padding:7px; }
}
@media (max-width:640px) {
  .sheet-mask { padding:12px; align-items:center; }
  .sheet { max-height:calc(100dvh - 24px); }
}

/* Balanced desktop workspace: denser controls without stretching cards. */
.prefill-panel:not(.has-prefill-items) .prefill-list .empty { min-height: 0; padding: 22px 16px; }
.prefill-panel.has-prefill-items { border-color: oklch(72% .08 245 / .34); }
.mini-action-btn.is-added { border-color: oklch(48% .15 250); background: oklch(42% .15 250); color: #fff; }
.combo-field .multi-select-option { min-height: 42px; font-size: 16px; }
.multi-clear-option { color: var(--brand-deep); font-weight: 700; }
.province-city-group { padding: 10px 0; border-top: 1px solid rgba(215,224,236,.78); }
.province-city-group:first-child { border-top: 0; }
.province-city-group > strong { display: block; margin-bottom: 8px; color: var(--ink); }
.school-overview { margin-bottom: 14px; padding: 20px 22px; border: 1px solid rgba(173,202,231,.82); border-radius: 8px; background: rgba(247,251,255,.92); box-shadow: 0 12px 30px rgba(35,73,112,.07); }
.school-overview-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.school-overview-head h2 { margin: 4px 0 0; color: var(--ink); font-size: 22px; }
.school-overview-kicker { color: var(--brand); font-weight: 750; }
.school-overview-scope { padding: 7px 10px; border: 1px solid rgba(163,195,226,.8); border-radius: 999px; color: var(--brand-deep); background: rgba(255,255,255,.78); font-weight: 650; }
.school-overview-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); margin-top: 16px; border: 1px solid rgba(214,224,235,.9); border-radius: 8px; overflow: hidden; }
.school-overview-grid > div { display: grid; gap: 4px; min-width: 0; padding: 13px 10px; text-align: center; background: rgba(255,255,255,.72); }
.school-overview-grid > div + div { border-left: 1px solid rgba(214,224,235,.9); }
.school-overview-grid b { color: var(--ink); font-size: 18px; overflow-wrap: anywhere; }
.school-overview-grid span, .school-overview p { color: var(--muted); }
.school-overview p { margin: 12px 0 0; line-height: 1.65; }
.school-overview-scopes { display: grid; gap: 14px; margin-top: 16px; }
.school-overview-scope-card { padding-top: 14px; border-top: 1px solid rgba(214,224,235,.9); background: transparent; }
.school-overview-scope-card:first-child { padding-top: 0; border-top: 0; }
.school-overview-scope-card h3 { margin: 0; color: var(--ink); font-size: 18px; }
.school-overview-scope-card .school-overview-grid { margin-top: 10px; }
.school-overview details { margin-top: 10px; color: var(--muted); }
.school-overview summary { min-height: 40px; display: inline-flex; align-items: center; color: var(--brand-deep); font-size: 16px; font-weight: 700; cursor: pointer; }
.source-disclaimer { padding-top: 10px; border-top: 1px solid rgba(214,224,235,.72); }

@media (min-width:1024px) {
  .app { width:min(1160px,calc(100% - 48px)); padding-inline:0; }
  .hero-card { padding:22px 24px; }
  .filter-panel,
  .range-panel,
  .wish-panel,
  .smart-panel { padding:22px; }
  .controls { grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; }
  .search-box { grid-template-columns:minmax(0,1fr) minmax(0,1fr) 132px; }
  .range-grid,
  .summary { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .result-item { padding:20px 22px; }
  .result-list { max-width:100%; }
  .smart-entry { grid-template-columns:minmax(0,1fr) 144px; }
  .summer-module-tabs { max-width:100%; }
}
/* Desktop workspace: preserve card proportions while increasing scanability. */
@media (min-width: 1024px) {
  .app { width: min(1240px, calc(100% - 48px)); padding-bottom: 124px; }
  .topbar, .hero-card, .filter-panel, .range-panel, .wish-panel, .smart-panel { padding: 22px 24px; }
  .system-switcher { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .system-switch-card { min-height: 88px; padding: 16px 18px; align-content: center; }
  .system-switch-card span { font-size: 18px !important; }
  .summer-module-tabs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; overflow: visible; padding: 8px; }
  .summer-module-tabs a { min-height: 46px; justify-content: center; padding-inline: 12px; white-space: normal; text-align: center; }
  .controls { grid-template-columns: repeat(4, minmax(190px, 1fr)); gap: 16px; }
  .location-grid { grid-template-columns: minmax(0, 1fr); }
  .field input, .field select, .combo-input, .search-box input { min-height: 50px; padding-inline: 16px; }
  .search-box { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 136px; gap: 12px; }
  .subject-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
  .subject-check { min-height: 46px; padding-inline: 14px; }
  .tabs { gap: 10px; margin-block: 18px; }
  .tab, .mode-btn, .collapse-toggle, .ghost-btn, .primary-btn { min-height: 46px; padding-inline: 18px; }
  .range-grid, .summary { gap: 14px; }
  .range-card, .stat-card { min-height: 96px; padding: 16px 18px; }
  .result-item, .smart-result { padding: 20px 22px; }
  .sheet-card, .validation-dialog { max-width: 560px; padding: 26px; }
}


/* desktop-font-floor:start */
@media (min-width: 1024px) {
  body { font-size: 16px !important; }
  .admit-kicker, .admit-note, .badge, .brand-tags span, .city-empty, .city-option,
  .combo-field .multi-select-option, .load-hint, .multi-check,
  .prefill-delete, .prefill-meta, .prefill-table, .query-loader,
  .smart-note, .smart-reason, .smart-result small, .stat-label,
  .suggest-option small, .system-switch-card small, .wish-meta, .wish-order,
  .wish-status, .wish-subtitle, .school-overview-grid span, .school-overview p,
  .school-overview-kicker, .school-overview-scope { font-size: 16px !important; }
  .bottom-nav a, .collapse-toggle, .field input, .field label, .field select,
  .ghost-btn, .major, .mini-action-btn, .mode-btn,
  .prefill-delete, .primary-btn, .range-head, .range-values input,
  .search-box input, .site-carousel-slide strong, .small-danger-btn,
  .subject-check span, .suggest-option, .summer-module-tabs a, .tab,
  .toast, .validation-card p, .wish-title { font-size: 18px !important; }
  .brand-name-line, .info-text, .panel-title,
  .smart-result strong, .system-switch-card span { font-size: 18px !important; }
  .school { font-size: 20px !important; }
  /* 2026-09-16 user annotation: result-card label row + metrics lifted 2 sizes (16px -> 20px).
     Kept inside the floor block so the desktop !important cascade cannot pull them back down. */
  /* 2026-09-17 (r9) 用户要求：电脑端该区域统一「小 4px」→ 20px → 16px。
     同时提升选择器权重（.result-item 前缀）：命中范围与手机端 .result-item .meta .pill
     完全对齐（结果卡内 5 个标签 + 指标格），且不易被后置的普通规则盖过。
     注意 .pill 不再被抬升：新版块把手机端 14px 的 !important 规则一并收窄到 .result-item，
     若不提升会选择器权重，桌面端会在所有宽度下被 14px 反压（!important 同权，后者胜）。
     16px 也是本站桌面端可读性下限（desktop-font-floor）。
    2026-09-17 (r10)：上述 r9 的「就地降基础值」只做了 .pill / .metric，漏了裸选择器的
    .meta .pill-city（它没进 desktop-font-floor 块，故 761–1023px 仍回 20px，与同排 4 颗 16px 不齐）。
    已把 L656 的基准值也降到 16px；此处保留 .pill-city 是防止将来它被抬回。
    2026-09-17 (r11)：用户再次标注同一区域「字号再大 2px」。复核原截图后确认：
    **红框同时圈住了药丸行（.meta 的 5 颗标签）与指标格（.metrics 四格）**，
    两者都在框内 ⇒ 两类元素一起 +2px：桌面 16px → 18px（手机 14px → 16px，见手机块）。
    因此这里恢复成一条 18px 规则同时覆盖两者，并把基准值（L546 .pill / L667 .pill-city）
    也一并抬到 18px，保证 761–1023px 不漏回 16px。
    注意必须保留 .result-item 前缀提权：手机块里 14px 的 !important 规则同权，靠后者胜；
    若不提权，桌面端会在所有宽度下被手机规则反压。 */
  .result-item .meta .pill,
  .result-item .meta .pill-city,
  .result-item .metric b,
  .result-item .metric span { font-size: 18px !important; }
  .sheet h2, .school-overview-head h2 { font-size: 22px !important; }
}
@media (max-width: 760px) {
  .school-overview-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .school-overview-grid > div + div { border-left: 0; border-top: 1px solid rgba(214,224,235,.9); }
  .school-overview-head { align-items: flex-start; flex-direction: column; }
}
/* desktop-font-floor:end */

/* Smart recommendations stay visually aligned with the standard result list. */
.smart-result-list .smart-result,
.smart-result-list .result-item,
.smart-query-results .smart-result,
.smart-query-results .result-item {
  background: #fff !important;
  background-image: none !important;
  border-color: #dce4ef !important;
  box-shadow: 0 10px 24px rgba(35, 66, 102, .07) !important;
}
.smart-result-list .smart-result:hover,
.smart-query-results .smart-result:hover {
  background: #fbfcff !important;
  border-color: rgba(74, 134, 219, .48) !important;
}

/* Province selection and its cities share one scrollable menu. */
#provinceSuggest.show {
  display: grid;
  max-height: min(520px, 62vh);
  overflow: auto;
  overscroll-behavior: contain;
}
#provinceSuggest .province-suggest-group {
  display: grid;
  gap: 8px;
  padding: 4px 0 10px;
  border-bottom: 1px solid rgba(215, 224, 236, .82);
}
#provinceSuggest .province-suggest-group:last-child { border-bottom: 0; }
#provinceSuggest .province-city-options {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 0 8px 2px 36px;
}
#provinceSuggest .city-option {
  min-height: 36px;
  padding: 6px 11px;
  border: 1px solid rgba(199, 211, 226, .95);
  border-radius: 7px;
  background: #fff;
  color: var(--muted);
  font-weight: 650;
}
#provinceSuggest .city-option:hover,
#provinceSuggest .city-option.active {
  border-color: rgba(64, 132, 224, .56);
  background: var(--brand-soft);
  color: var(--brand-deep);
}
#regionMenu[hidden] { display: none !important; }

/* Interaction hardening: top-level menus, neutral recommendations and mobile rendering. */
:root {
  --query-motion-duration: 220ms;
  --query-motion-ease: cubic-bezier(.22, 1, .36, 1);
  --query-motion-distance: 8px;
}
html[data-query-motion-theme="ios"] { --query-motion-ease: cubic-bezier(.22, 1, .36, 1); }
html[data-query-motion-theme="macos"] { --query-motion-ease: cubic-bezier(.2, .8, .2, 1); }
html[data-query-motion-theme="android"] { --query-motion-ease: cubic-bezier(.2, 0, 0, 1); }
html.admin-motion-disabled *,
html.admin-motion-disabled *::before,
html.admin-motion-disabled *::after {
  animation: none !important;
  scroll-behavior: auto !important;
  transition: none !important;
}
.smart-panel {
  background: #fff !important;
  background-image: none !important;
}
.suggest-list[data-floating-suggest="true"] {
  position: fixed !important;
  inset: auto;
  z-index: var(--query-layer-dropdown, 2147483000) !important;
  contain: layout paint;
  transform-origin: top center;
}
.suggest-list[data-floating-suggest="true"]:not([data-positioned="true"]) { visibility: hidden !important; }
.suggest-list[data-floating-suggest="true"].show {
  animation: query-floating-suggest-enter var(--motion-duration-fast, 140ms) var(--motion-ease-emphasized, cubic-bezier(.22, 1, .36, 1)) both;
}
.suggest-list[data-floating-suggest="true"].above { transform-origin: bottom center; }
body:has(.suggest-list[data-floating-suggest="true"].show) .bottom-nav {
  opacity: .18;
  pointer-events: none;
}
@keyframes query-floating-suggest-enter {
  from { opacity: 0; transform: translate3d(0, -4px, 0) scale(.99); }
  to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}
@media (max-width: 760px) {
  .suggest-list[data-floating-suggest="true"] {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    background: rgba(255, 255, 255, .985) !important;
  }
  .app, .app > * { animation: none !important; }
  .topbar, .hero-card, .filter-panel, .range-panel, .wish-panel, .smart-panel,
  .sheet, .stat-card, .result-item, .school-overview {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }
  .bottom-nav {
    -webkit-backdrop-filter: blur(10px) saturate(1.08) !important;
    backdrop-filter: blur(10px) saturate(1.08) !important;
  }
  .result-item, .smart-result, .school-overview, .wish-row {
    contain: layout paint style;
    content-visibility: auto;
    contain-intrinsic-size: 220px;
  }
  .smart-panel .section-head { align-items: flex-start; }
  .smart-panel .collapse-toggle { min-width: 76px; min-height: 44px; }
  .info-actions, .prefill-actions, .wish-head-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }
  .info-actions > *, .prefill-actions > *, .wish-head-actions > * {
    min-width: 0;
    min-height: 44px;
    white-space: normal;
  }
  body :is(small, label, button, input, select, textarea, a, p, li, td, th, span) {
    font-size: max(16px, 1em) !important;
  }
  .page-subtitle, .info-text, .wish-subtitle, .prefill-meta, .smart-note,
  .smart-reason, .stat-label, .city-empty, .load-hint, .query-loader,
  .school-overview-kicker, .school-overview-scope { font-size: 16px !important; }
  #pageSubtitle, .school, .major, .metric b, .smart-result strong,
  .school-overview-grid b { font-size: 16px !important; }
  /* 2026-09-16: result-card label row + metrics stay on the 16px floor here.
     Measured on a 390px viewport: each metric cell gives only ~81px of text width, and the
     four-metric single-row contract (summer-mobile-density-e2e.js) leaves no slack. At 18px
     "2026计划" wraps and every tuition >= 10,000 prints as "10,000" + "元" on two lines
     (22% of all 37,942 records); at 20px "5,175元" wraps as well. See the desktop floor
     below for the enlarged sizes, which do fit from 761px upwards. */
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; transition-duration: 1ms !important; }
}

/* Summer query upper workspace redesign. Result and school/major cards intentionally stay untouched. */
body {
  background: linear-gradient(180deg, #f7fafc 0, #f3f7fb 42rem, #f7f9fc 100%);
}

.summer-topbar {
  padding: 18px 4px 15px;
  border-bottom: 1px solid rgba(201, 214, 228, .78);
  background: rgba(248, 251, 254, .94);
  box-shadow: 0 8px 24px rgba(31, 55, 82, .045);
}

.summer-topbar .brand {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  min-height: 68px;
}

.summer-topbar .logo {
  position: relative;
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  padding: 0;
  overflow: hidden;
  border: 1px solid #c8d9e9;
  border-radius: 18px;
  background: #e9f4fa;
  color: #153c66;
  box-shadow: 0 10px 24px rgba(33, 83, 119, .11);
}

.summer-topbar .logo > svg {
  width: 30px;
  height: 30px;
  margin-top: -8px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.summer-topbar .logo > span {
  position: absolute;
  right: 7px;
  bottom: 6px;
  left: 7px;
  padding-top: 3px;
  border-top: 1px solid rgba(21, 60, 102, .18);
  color: #177d8f;
  font-size: 16px;
  font-weight: 780;
  line-height: 1;
  text-align: center;
}

.summer-topbar .logo > img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.brand-copy { min-width: 0; }
.brand-overline {
  margin-bottom: 2px;
  color: #6b7280;
  font-size: 16px;
  font-weight: 620;
}

.summer-topbar h1 {
  color: #17191c;
  font-size: 26px;
  font-weight: 780;
  line-height: 1.24;
}

.summer-topbar .title-row .line-icon { color: #1e7895; }
.summer-topbar .brand-name-line {
  margin-top: 3px;
  color: #4b5563;
  font-size: 18px;
  font-weight: 650;
}

.summer-topbar .brand-tags {
  gap: 7px;
  margin-top: 8px;
}

.summer-topbar .brand-tags span {
  min-height: 30px;
  padding: 4px 9px;
  border-color: #cadbe8;
  border-radius: 7px;
  background: #fff;
  color: #374151;
  font-size: 16px;
  font-weight: 600;
  box-shadow: 0 3px 10px rgba(39, 73, 105, .04);
}

.summer-topbar .brand-tags span:nth-child(2) {
  border-color: #c9d9ee;
  background: #f2f6fc;
  color: #4b5563;
}

.summer-topbar .brand-tags span:nth-child(3) {
  border-color: #c6e1dc;
  background: #f1faf7;
  color: #4b5563;
}

.summer-topbar .brand-tags svg,
.related-query-band svg,
.module-nav-section svg,
.surface-heading svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.related-query-band {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  margin: 14px 0;
  padding: 12px 14px;
  border: 1px solid #d8e2ec;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(31, 55, 82, .05);
}

.related-query-title {
  padding-right: 16px;
  border-right: 1px solid #dde6ee;
  color: #1f2937;
  font-size: 18px;
  font-weight: 750;
  white-space: nowrap;
}

.related-query-band .system-switcher {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.related-query-band .system-switch-card {
  display: flex;
  min-height: 66px;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border: 1px solid #dbe5ed;
  border-radius: 8px;
  background: #f8fafc;
  box-shadow: none;
}

.related-query-band .system-switch-card:hover {
  border-color: #abc9dc;
  background: #f3f9fc;
  box-shadow: 0 7px 16px rgba(32, 82, 114, .08);
  transform: none;
}

.system-switch-icon {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  border-radius: 8px;
  background: #e4f1f7;
  color: #176c8a;
}

.system-zsb .system-switch-icon { background: #f8eedf; color: #9b621d; }
.system-switch-copy { display: grid; min-width: 0; gap: 2px; }
.system-switch-copy strong { color: #1f2937; font-size: 18px; font-weight: 740; }
.related-query-band .system-switch-card small { color: #6b7280; font-size: 16px; line-height: 1.35; }

.module-nav-section {
  margin: 14px 0;
  padding: 14px;
  border: 1px solid #d8e2ec;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(31, 55, 82, .055);
}

.module-nav-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.module-nav-heading > span { color: #1f2937; font-size: 18px; font-weight: 760; }
.module-nav-heading small {
  padding: 3px 8px;
  border-radius: 6px;
  background: #eef4f8;
  color: #6b7280;
  font-size: 16px;
  font-weight: 650;
}

.module-nav-section .summer-module-tabs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.module-nav-section .summer-module-tabs a {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  padding: 9px 11px;
  border: 1px solid #e0e7ee;
  border-radius: 7px;
  background: #fafbfd;
  color: #4b5563;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.3;
  white-space: normal;
}

.module-nav-section .summer-module-tabs a svg { color: #5683a5; }
.module-nav-section .summer-module-tabs a:nth-child(4n + 2) svg { color: #387a70; }
.module-nav-section .summer-module-tabs a:nth-child(4n + 3) svg { color: #91632b; }
.module-nav-section .summer-module-tabs a:nth-child(4n) svg { color: #8b5375; }
.module-nav-section .summer-module-tabs a:hover {
  border-color: #b9ccda;
  background: #f5f9fc;
  color: #1f2937;
  transform: none;
}

.module-nav-section .summer-module-tabs a.active {
  border-color: #1b4d76;
  background: #173f66;
  color: #fff;
  box-shadow: 0 7px 16px rgba(23, 63, 102, .16);
}

.module-nav-section .summer-module-tabs a.active svg { color: #fff; }

.hero-card,
.filter-panel,
.prefill-panel,
.smart-panel,
.range-panel {
  border: 1px solid #d8e2ec;
  border-radius: 8px;
  background: #fff !important;
  background-image: none !important;
  box-shadow: 0 10px 26px rgba(31, 55, 82, .055);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.hero-card:hover,
.filter-panel:hover,
.prefill-panel:hover,
.smart-panel:hover,
.range-panel:hover { transform: none; }

.hero-card { margin: 14px 0; padding: 18px 20px; border-top: 3px solid #2d789a; }
.filter-panel { border-top: 3px solid #607d9a; }
.smart-panel { border-top: 3px solid #2d8b80; }
.prefill-panel { border-top: 3px solid #b37a34; }
.range-panel { border-top: 3px solid #8b6283; }

.hero-card .info-row {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) auto;
  align-items: center;
  gap: 18px;
  margin-bottom: 14px;
}

.info-copy { display: grid; gap: 3px; min-width: 0; }
.info-kicker {
  color: #6b7280;
  font-size: 16px;
  font-weight: 650;
}

.hero-card .info-text { color: #1f2937; font-size: 18px; font-weight: 750; }
.hero-card .info-actions { justify-content: flex-end; }

.surface-heading {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #1f2937;
  font-size: 18px;
  font-weight: 760;
}

.filter-panel .surface-heading svg { color: #607d9a; }
.smart-panel .surface-heading svg { color: #2d8b80; }
.prefill-panel .surface-heading svg { color: #a36d2b; }
.range-panel .surface-heading svg { color: #805878; }

.range-panel-heading {
  display: flex;
  align-items: center;
  min-height: 34px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e1e8ef;
}

.range-panel .range-grid { gap: 0; }
.range-panel .range-card {
  min-height: 104px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.range-panel .range-card + .range-card { border-left: 1px solid #e1e8ef; }

@media (max-width: 760px) {
  .app { padding-inline: 12px; }
  .summer-topbar { position: relative; padding: 14px 0; border-bottom: 0; box-shadow: none; }
  .summer-topbar .brand { grid-template-columns: 60px minmax(0, 1fr); gap: 12px; }
  .summer-topbar .logo { width: 58px; height: 58px; border-radius: 15px; }
  .summer-topbar .logo > svg { width: 27px; height: 27px; }
  .summer-topbar .logo > span { right: 6px; bottom: 5px; left: 6px; font-size: 16px !important; }
  .summer-topbar h1 { font-size: 22px; }
  .brand-overline { font-size: 16px; }
  .summer-topbar .brand-name-line { font-size: 16px; line-height: 1.4; }
  .summer-topbar .brand-tags { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; margin-top: 9px; }
  .summer-topbar .brand-tags span { justify-content: center; min-width: 0; padding-inline: 7px; }
  .summer-topbar .brand-tags span:first-child { grid-column: 1 / -1; }

  .related-query-band { display: block; padding: 12px; }
  .related-query-title { margin-bottom: 9px; padding: 0 0 9px; border-right: 0; border-bottom: 1px solid #e1e8ef; }
  .related-query-band .system-switcher { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .related-query-band .system-switch-card { min-height: 68px; gap: 8px; padding: 9px; }
  .system-switch-icon { width: 34px; height: 34px; flex-basis: 34px; }
  .system-switch-icon svg { width: 17px; height: 17px; }
  .system-switch-copy strong,
  .related-query-band .system-switch-card small { font-size: 16px; }

  .module-nav-section { padding: 12px; }
  .module-nav-section .summer-module-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
  .module-nav-section .summer-module-tabs a {
    min-height: 72px;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    padding: 8px 5px;
    text-align: center;
  }
  .module-nav-section .summer-module-tabs a svg { width: 20px; height: 20px; }

  .hero-card,
  .filter-panel,
  .prefill-panel,
  .smart-panel,
  .range-panel { border-radius: 8px; }

  .hero-card .info-row { grid-template-columns: 1fr; gap: 12px; }
  .hero-card .info-actions { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-card .info-text { font-size: 18px; }
  .filter-panel,
  .prefill-panel,
  .smart-panel,
  .range-panel { padding: 16px 14px; }
  .range-panel .range-grid { grid-template-columns: 1fr; }
  .range-panel .range-card + .range-card { border-left: 0; border-top: 1px solid #e1e8ef; }
}

/* Shared Spring/Summer typography and chrome contract. */
.bottom-nav {
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, .76) !important;
  border-radius: 999px;
  background: rgba(255, 255, 255, .68) !important;
  box-shadow: 0 18px 42px rgba(28, 56, 91, .14), inset 0 1px 0 rgba(255, 255, 255, .94) !important;
  -webkit-backdrop-filter: blur(18px) saturate(1.35) !important;
  backdrop-filter: blur(18px) saturate(1.35) !important;
}
.bottom-nav a {
  min-width: 118px;
  height: 44px;
  border: 0 !important;
  border-radius: 999px;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 18px;
  font-weight: 600;
}
.bottom-nav a.active {
  border: 0 !important;
  background: var(--navy) !important;
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 8px 18px oklch(30% .08 255 / .18) !important;
}

@media (min-width: 1024px) {
  .module-nav-section .summer-module-tabs a,
  .summer-module-tabs a,
  .field label,
  .suggest-option,
  .suggest-option small {
    font-size: 16px !important;
  }
  .bottom-nav a {
    min-height: 48px;
  }
}

@media (max-width: 760px) {
  .summer-topbar {
    padding: 10px 0 9px;
  }
  .summer-topbar .brand {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 10px;
    min-height: 48px;
  }
  .summer-topbar .logo {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 12px;
  }
  .summer-topbar h1 {
    font-size: 20px;
    line-height: 1.2;
  }
  .brand-overline {
    display: none;
  }
  .summer-topbar .brand-name-line {
    margin-top: 1px;
    font-size: 16px;
    line-height: 1.25;
  }
  .summer-topbar .brand-tags {
    grid-column: auto;
    display: grid;
    grid-template-columns: 1fr 1.1fr .9fr;
    gap: 4px;
    margin-top: 4px;
    padding-bottom: 1px;
  }
  .summer-topbar .brand-tags span,
  .summer-topbar .brand-tags span:first-child {
    min-width: 0;
    min-height: 26px;
    grid-column: auto;
    justify-content: center;
    padding: 2px 7px;
    white-space: nowrap;
  }
  .summer-topbar .brand-tags svg {
    display: none;
  }
  .bottom-nav {
    bottom: 12px;
    width: calc(100% - 18px);
    gap: 6px;
    padding: 7px;
    border-radius: 18px;
    -webkit-backdrop-filter: blur(10px) saturate(1.12) !important;
    backdrop-filter: blur(10px) saturate(1.12) !important;
  }
  .bottom-nav a {
    min-width: 0;
    min-height: 42px;
    height: 42px;
    flex: 1 1 0;
    font-size: 16px;
  }
}

/* Mobile information hierarchy and density pass. */
.related-query-band .system-switch-copy strong {
  color: #1f2937;
  font-size: 18px;
  font-weight: 780;
  line-height: 1.2;
}
.related-query-band .system-switch-card small {
  color: #6b7280;
  font-size: 16px;
  font-weight: 520;
}
.related-query-band .system-summer-line .system-switch-icon {
  background: #e1f2f6;
  color: #17788b;
}
.related-query-band .system-zsb .system-switch-icon {
  background: #fff0d8;
  color: #9a621d;
}

.module-nav-section .summer-module-tabs a {
  color: #334c5f;
}
.module-nav-section .summer-module-tabs a:nth-child(4n + 1) { border-top: 3px solid #2d789a; background: #f5fbfd; }
.module-nav-section .summer-module-tabs a:nth-child(4n + 2) { border-top: 3px solid #2f8b78; background: #f4fbf8; }
.module-nav-section .summer-module-tabs a:nth-child(4n + 3) { border-top: 3px solid #b67a2d; background: #fffaf2; }
.module-nav-section .summer-module-tabs a:nth-child(4n) { border-top: 3px solid #945c82; background: #fcf7fb; }
.module-nav-section .summer-module-tabs a.active {
  border-top-color: #173f66;
  background: #173f66;
}

.score-rank-link-note {
  color: #6b7885;
  /* 2026-09-16: +2 sizes (16px -> 20px) per user annotation. */
  font-size: 20px;
  line-height: 1.35;
}
.score-rank-link-note[data-state="loading"] { color: #28738a; }
.score-rank-link-note[data-state="ready"] { color: #287765; }
.score-rank-link-note[data-state="error"] { color: #a05f27; }

@media (max-width: 760px) {
  .related-query-band .system-switch-card {
    min-height: 72px;
    border-color: #d9e3e9;
    background: #fff;
  }
  .related-query-band .system-switch-copy strong {
    font-size: 18px !important;
  }
  .related-query-band .system-switch-card small {
    color: #6b7280;
    font-size: 16px !important;
  }

  .module-nav-section .summer-module-tabs a {
    min-height: 68px;
    font-size: 16px !important;
  }

  .hero-card,
  .filter-panel,
  .prefill-panel,
  .smart-panel,
  .range-panel {
    padding: 14px 12px;
  }
  .hero-card .info-row {
    gap: 9px;
    margin-bottom: 10px;
  }
  .hero-card .info-actions {
    gap: 6px;
  }
  .hero-card .info-actions > button {
    min-height: 40px;
    padding: 5px 7px;
    font-size: 16px !important;
    line-height: 1.2;
  }
  .hero-card .info-text {
    font-size: 16px !important;
    line-height: 1.35;
  }
  .hero-card .search-box {
    gap: 8px;
  }
  .hero-card .search-box input,
  .hero-card .search-box button {
    min-height: 42px;
  }

  .filter-panel .controls {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px;
  }
  .filter-panel .location-grid {
    width: calc(50% - 4px);
    margin-top: 8px;
  }
  .filter-panel .province-cascade {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }
  .filter-panel .field {
    min-width: 0;
    gap: 4px;
  }
  .filter-panel .field input {
    width: 100%;
    min-width: 0;
    height: 42px;
    padding-inline: 10px;
  }

  .prefill-panel .wish-head {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .prefill-panel .wish-subtitle {
    margin-top: 3px;
    font-size: 16px !important;
    line-height: 1.4;
  }
  .prefill-panel .prefill-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    gap: 6px;
  }
  .prefill-panel .prefill-actions > button {
    min-width: 0;
    min-height: 42px;
    padding: 5px 4px;
    border-radius: 12px;
    font-size: 16px !important;
    line-height: 1.2;
    white-space: normal;
  }
  .prefill-panel .prefill-list .empty {
    padding: 16px 8px;
    font-size: 16px !important;
    line-height: 1.55;
  }

  .range-panel-heading {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 10px;
  }
  .score-rank-link-note {
    text-align: right;
  }
  .range-panel .range-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .range-panel .range-card {
    min-width: 0;
    min-height: 126px;
    gap: 7px;
    padding: 10px;
  }
  .range-panel .range-card.is-single {
    grid-column: 1 / -1;
    min-height: 102px;
  }
  .range-panel .range-head,
  .range-panel .range-card.is-single .range-head {
    min-width: 0;
    padding-right: 0;
  }
  .range-panel .range-values {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    order: 2;
    width: 100%;
    gap: 5px;
  }
  .range-panel .range-values input,
  .range-panel .range-card.is-single .range-values input {
    width: 100%;
    min-width: 0;
    height: 32px;
    padding-inline: 3px;
    font-size: 16px !important;
  }
  .range-panel .range-wrap {
    order: 3;
  }
  .range-panel .range-card.is-single .range-values {
    grid-template-columns: minmax(0, 120px);
    justify-content: end;
  }

  .smart-panel .wish-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 10px;
  }
  .smart-panel .wish-subtitle {
    margin-top: 4px;
    color: #6b7280;
    font-size: 16px !important;
    line-height: 1.4;
  }
  .smart-panel .collapse-toggle {
    width: auto;
    min-width: 72px;
    min-height: 40px;
    height: 40px;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 16px !important;
  }
  .smart-panel .smart-body {
    padding-top: 10px;
  }
  .smart-panel .smart-entry {
    gap: 8px;
  }
  .smart-panel .smart-entry textarea {
    min-height: 86px;
    padding: 11px 12px;
  }
  .smart-panel .smart-entry .primary-btn {
    min-height: 44px;
  }

  .result-item {
    padding: 14px 12px;
  }
  .result-item .school-logo {
    flex-basis: 42px;
    width: 42px;
    height: 42px;
  }
  .result-item .school,
  .result-item .school .item-code {
    color: #111827;
    font-size: 22px !important;
    font-weight: 800;
    line-height: 1.25;
  }
  .result-item .school .item-code {
    color: #2375bd;
  }
  .result-item .major {
    margin-top: 5px;
    color: #5b6470;
    font-size: 16px !important;
    font-weight: 620;
    line-height: 1.35;
  }
  .result-item .meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    margin-top: 7px;
    line-height: 24px;
  }
  .result-item .metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .result-item .pill,
  .result-item .meta .pill-city {
    box-sizing: border-box;
    width: 100%;
    /* min-height/line-height intentionally untouched: the mobile meta block must stay
       within two 26px rows (<= 56px) or summer-mobile-density-e2e.js fails.
       Font size also stays at the 14px floor: a 112px cell cannot hold
       "新疆 / 乌鲁木齐" (119px) once the text is enlarged.
       2026-09-17 (r9): 选择器由 .pill → .result-item .pill 收窄。原先 .pill 的通配写法在
       「!important 同权、后者胜」的规则下会把桌面端结果卡标签一并压到 16px —— 一旦桌面端
       选择器权重提升（r9 已提升以支持「电脑端小 4px」），这条就会反压桌面。收窄后语义更准确：
       本条只负责结果卡，站内其它 .pill 不在此列（实测站内 .pill 仅由结果卡生成）。 */
    min-height: 26px;
    padding: 1px 6px;
    border-radius: 7px;
    font-size: 16px !important;
    line-height: 24px;
    justify-content: center;
    white-space: nowrap;
  }
  .result-item .pill .line-icon {
    display: none;
  }
}

/* Six-area refinement: each annotated region owns its layout contract. */
.prefill-panel[hidden] { display: none !important; }

.module-nav-section .summer-module-tabs a { color: #1f2937; }
.module-nav-section .summer-module-tabs a.active { color: #fff; }

.result-item .school .item-code { margin-right: 11px; }
.result-item .major .item-code { margin-right: 9px; }
.result-item .item-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}
.result-item .item-actions .mini-action-btn {
  min-width: 0;
  min-height: 40px;
  justify-content: center;
  margin: 0;
}
.result-item .secondary-action-btn {
  border-color: #cbd5df;
  background: #fff;
  color: #1f2937;
  box-shadow: none;
}
.result-item .secondary-action-btn:hover {
  border-color: #9aa8b6;
  background: #f6f8fa;
  color: #111827;
  box-shadow: none;
}

body.school-overview-open { overflow: hidden; }
.school-overview-mask { padding: 18px; }
.school-overview-sheet {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(760px, calc(100vw - 36px));
  max-width: 760px;
  max-height: min(84vh, 760px);
  padding: 0;
  overflow: hidden;
  border-radius: 12px;
}
.school-overview-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-bottom: 1px solid #dce4ec;
}
.school-overview-dialog-head h2 { margin: 0; color: #111827; font-size: 20px; }
.overview-close {
  display: grid;
  width: 40px;
  height: 40px;
  min-width: 40px;
  place-items: center;
  border: 1px solid #d5dee7;
  border-radius: 50%;
  background: #fff;
  color: #1f2937;
  padding: 0;
  font-size: 24px;
  line-height: 1;
}
.school-overview-dialog-content {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 16px;
  scrollbar-gutter: stable;
}
.school-overview-dialog-content .school-overview {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  content-visibility: visible;
  contain: none;
}

@media (min-width: 761px) {
  .filter-panel .controls { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; }
  .filter-panel .province-cascade { padding: 0; border: 0; background: transparent; box-shadow: none; }
}

@media (max-width: 760px) {
  .filter-panel .controls {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px 6px;
  }
  .filter-panel .field label {
    min-height: 40px;
    display: flex;
    align-items: flex-end;
    line-height: 1.25;
  }
  .filter-panel .field input { padding-inline: 8px; }

  .range-panel { padding-inline: 10px; }
  .range-panel .range-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    align-items: stretch;
    gap: 0;
  }
  .range-panel .range-card,
  .range-panel .range-card.is-single {
    grid-column: auto;
    grid-template-rows: 40px minmax(64px, auto) 34px;
    min-width: 0;
    min-height: 150px;
    gap: 5px;
    padding: 7px 6px;
    border-top: 0;
  }
  .range-panel .range-card + .range-card {
    border-top: 0;
    border-left: 1px solid #e1e8ef;
  }
  .range-panel .range-head,
  .range-panel .range-card.is-single .range-head {
    min-height: 40px;
    align-items: flex-start;
    padding-right: 0;
    color: #5f6872;
    font-size: 16px;
    font-weight: 620;
    line-height: 1.25;
  }
  .range-panel .range-head span:first-child {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
  }
  .range-panel .range-values,
  .range-panel .range-card.is-single .range-values {
    position: static;
    order: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
    justify-content: stretch;
    width: 100%;
    gap: 4px;
  }
  .range-panel .range-values input,
  .range-panel .range-card.is-single .range-values input {
    width: 100%;
    min-width: 0;
    height: 28px;
    padding-inline: 3px;
    border-radius: 7px;
    font-size: 16px !important;
    font-weight: 650;
  }
  .range-panel .range-wrap { order: 3; height: 34px; }

  .result-item { padding: 13px 12px 12px; }
  .result-item .school,
  .result-item .school .item-code {
    font-size: 20px !important;
    line-height: 1.3;
  }
  .result-item .school-brand { align-items: flex-start; gap: 9px; }
  .result-item .major { margin-top: 7px; }
  .result-item .meta { margin-top: 8px; }
  .result-item .metrics {
    gap: 5px;
    margin-top: 9px;
    overflow: visible;
    border: 0;
    background: transparent;
  }
  .result-item .metric {
    min-height: 64px;
    padding: 8px 4px;
    border: 1px solid #e0e6ed;
    border-radius: 8px;
    background: #f8fafc;
  }
  .result-item .item-actions { margin-top: 9px; }

  .school-overview-mask { align-items: flex-end; padding: 10px; }
  .school-overview-sheet {
    width: 100%;
    max-height: calc(100dvh - 28px);
    border-radius: 14px 14px 8px 8px;
  }
  .school-overview-dialog-content { padding: 14px 12px 18px; }
  .school-overview-head { align-items: flex-start; }
  .school-overview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .school-overview-grid > div + div { border-left: 0; }
  .school-overview-grid > div:nth-child(even) { border-left: 1px solid rgba(214,224,235,.9); }
  .school-overview-grid > div:nth-child(n + 3) { border-top: 1px solid rgba(214,224,235,.9); }
}

/* Spring-aligned Summer chrome and smart-panel containment. */
.app > .smart-panel,
.app > .module-nav-section,
.app > .filter-panel {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin-inline: 0;
}

.related-query-band,
.module-nav-section,
.hero-card,
.filter-panel,
.prefill-panel,
.smart-panel,
.range-panel {
  border-color: rgba(205, 217, 228, .92);
  border-radius: 8px;
  background: rgba(255, 255, 255, .78) !important;
  box-shadow: 0 10px 28px rgba(31, 55, 82, .06), inset 0 1px 0 rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: blur(16px) saturate(1.16);
  backdrop-filter: blur(16px) saturate(1.16);
}

.module-nav-section .summer-module-tabs a {
  min-width: 0;
  border: 1px solid #dce4eb;
  border-top-width: 1px;
  border-radius: 7px;
  background: rgba(250, 251, 252, .88);
  color: #303740;
  box-shadow: none;
  font-size: 16px !important;
  font-weight: 680;
}
.module-nav-section .summer-module-tabs a:nth-child(n) {
  border-top-color: #dce4eb;
  background: rgba(250, 251, 252, .88);
}
.module-nav-section .summer-module-tabs a svg { color: #68737f; }
.module-nav-section .summer-module-tabs a:hover {
  border-color: #b9c8d5;
  background: #f4f7f9;
  color: #171b22;
}
.module-nav-section .summer-module-tabs a.active,
.module-nav-section .summer-module-tabs a.active:nth-child(n) {
  border-color: #173f66;
  background: #173f66;
  color: #fff;
}

.smart-panel .wish-head,
.smart-panel .smart-body,
.smart-panel .smart-entry,
.smart-panel .smart-entry textarea {
  min-width: 0;
  max-width: 100%;
}
.smart-panel .smart-entry { grid-template-columns: minmax(0, 1fr) 132px; }
.smart-panel .smart-entry textarea { box-sizing: border-box; }
.smart-panel :is(.panel-title, .wish-subtitle, textarea) { color: #1f252c; }
.smart-panel .wish-subtitle { color: #68727d; }
.smart-panel .primary-btn { color: #fff; }

@media (min-width: 761px) and (max-width: 1500px) {
  .app { width: min(1240px, calc(100% - 64px)); }
  .app > .smart-panel { padding: 18px 20px; }
  .smart-panel .smart-entry { grid-template-columns: minmax(0, 1fr) 124px; gap: 10px; }
}

@media (max-width: 760px) {
  .related-query-band,
  .module-nav-section,
  .hero-card,
  .filter-panel,
  .prefill-panel,
  .smart-panel,
  .range-panel {
    background: rgba(255, 255, 255, .94) !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }
  .module-nav-section .summer-module-tabs a {
    min-height: 64px;
    color: #303740;
    font-size: 16px !important;
  }
  .smart-panel .smart-entry { grid-template-columns: minmax(0, 1fr); }
  .smart-panel .smart-entry textarea { min-height: 84px; }
  .smart-panel .smart-entry .primary-btn { width: 100%; min-height: 42px; }
}

/* Spring visual parity for the Summer query workspace. Results stay unchanged. */
:root {
  --summer-spring-blue: oklch(58% .16 248);
  --summer-spring-blue-deep: oklch(50% .18 254);
  --summer-spring-coral: oklch(68% .17 32);
  --summer-spring-pink: oklch(65% .18 8);
  --summer-spring-mint: oklch(97% .035 174);
  --summer-spring-sky: oklch(95% .045 232);
  --summer-spring-violet: oklch(95% .045 305);
  --summer-spring-peach: oklch(95% .055 65);
}

body {
  background:
    radial-gradient(circle at 16% 0%, oklch(82% .1 232 / .13), transparent 32rem),
    radial-gradient(circle at 92% 16%, oklch(84% .08 32 / .08), transparent 30rem),
    linear-gradient(180deg, #fbfdff 0%, oklch(97.5% .012 250) 100%);
}

.watermark {
  width: min(42vw, 220px);
  height: min(42vw, 220px);
  border-radius: 0;
  opacity: .1;
  transform: translate(-50%, -50%);
  background: url("../images/summer-avatar.png") center / contain no-repeat;
}

.summer-topbar {
  position: sticky;
  top: 0;
  padding: 16px 0 12px;
  border-bottom: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.88), rgba(255,255,255,.68));
  box-shadow: none;
  -webkit-backdrop-filter: blur(18px) saturate(1.12);
  backdrop-filter: blur(18px) saturate(1.12);
}

.summer-topbar .brand {
  display: flex;
  min-height: 58px;
  gap: 13px;
}

.summer-topbar .logo {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  padding: 4px;
  border: 1px solid rgba(255,255,255,.84);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255,255,255,.88), rgba(255,255,255,.62));
  box-shadow: 0 12px 24px oklch(54% .17 258 / .16);
}

.summer-topbar .logo > img { border-radius: 11px; }
.brand-overline { color: #6a7480; }
.summer-topbar h1 { color: #17191c; font-size: 22px; font-weight: 760; }
.summer-topbar .title-row .line-icon { color: var(--summer-spring-blue); }
.summer-topbar .brand-name-line { color: var(--summer-spring-blue-deep); font-size: 16px; }
.summer-topbar .brand-tags { gap: 5px; margin-top: 5px; }

.summer-topbar .brand-tags span,
.summer-topbar .brand-tags span:nth-child(2),
.summer-topbar .brand-tags span:nth-child(3) {
  min-height: 28px;
  padding: 2px 8px;
  border: 1px solid oklch(64% .15 38 / .3);
  border-radius: 999px;
  background: rgba(255,255,255,.58);
  color: var(--summer-spring-blue-deep);
  box-shadow: none;
  font-weight: 600;
}

.summer-topbar .brand-tags span:nth-child(2) {
  border-color: transparent;
  background: linear-gradient(90deg, oklch(58% .2 22), oklch(72% .17 46));
  color: #fff;
  box-shadow: 0 8px 18px oklch(62% .18 32 / .18);
}

.summer-topbar .brand-tags span:nth-child(3) {
  border-color: oklch(62% .14 248 / .3);
  color: var(--summer-spring-blue);
}

.related-query-band,
.module-nav-section {
  border: 0;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.related-query-band { padding: 0; }
.related-query-title {
  border-right-color: rgba(205,217,230,.9);
  color: #1f2937;
}

.related-query-band .system-switch-card,
.module-nav-section .summer-module-tabs a,
.module-nav-section .summer-module-tabs a:nth-child(n) {
  border: 1px solid rgba(255,255,255,.88);
  border-radius: 14px;
  background: var(--summer-spring-sky);
  color: #17202b;
  box-shadow: 0 8px 20px rgba(31,41,75,.08);
}

.related-query-band .system-switch-card:nth-child(2),
.module-nav-section .summer-module-tabs a:nth-child(4n + 1) {
  background: var(--summer-spring-violet);
}

.related-query-band .system-switch-card:nth-child(3),
.module-nav-section .summer-module-tabs a:nth-child(4n + 3) {
  background: var(--summer-spring-peach);
}

.module-nav-section .summer-module-tabs a:nth-child(4n) {
  background: var(--summer-spring-mint);
}

.related-query-band .system-switch-card:hover,
.module-nav-section .summer-module-tabs a:hover {
  border-color: rgba(112,161,219,.34);
  background: #fff;
  box-shadow: 0 12px 24px rgba(31,41,75,.12);
  transform: translateY(-1px);
}

.module-nav-section .summer-module-tabs a.active,
.module-nav-section .summer-module-tabs a.active:nth-child(n) {
  border-color: transparent;
  background: linear-gradient(135deg, var(--summer-spring-blue-deep), var(--summer-spring-blue));
  color: #fff;
  box-shadow: 0 12px 26px oklch(54% .17 258 / .22);
}

.related-query-band .system-switch-card strong,
.module-nav-section .summer-module-tabs a { font-weight: 750; }
.module-nav-section .summer-module-tabs a svg { color: var(--summer-spring-blue-deep); }
.module-nav-section .summer-module-tabs a.active svg { color: #fff; }
.module-nav-heading > span { color: #1f2937; }
.module-nav-heading small {
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  color: var(--summer-spring-blue-deep);
}

.hero-card,
.filter-panel,
.prefill-panel,
.smart-panel,
.range-panel {
  border: 1px solid rgba(255,255,255,.76);
  border-radius: 20px;
  box-shadow: 0 12px 32px rgba(31,41,75,.07);
  -webkit-backdrop-filter: blur(16px) saturate(1.1);
  backdrop-filter: blur(16px) saturate(1.1);
}

.hero-card {
  border-top: 0;
  background:
    linear-gradient(135deg, oklch(93% .055 232 / .94), oklch(98% .02 236 / .88)),
    rgba(255,255,255,.76) !important;
}

.filter-panel {
  border-top: 0;
  background:
    linear-gradient(135deg, oklch(98% .02 305 / .82), rgba(255,255,255,.8)),
    rgba(255,255,255,.78) !important;
}

.smart-panel {
  border-top: 0;
  background: rgba(255,255,255,.88) !important;
}

.prefill-panel {
  border-top: 0;
  background:
    linear-gradient(135deg, var(--summer-spring-mint), rgba(255,255,255,.82)),
    rgba(255,255,255,.78) !important;
}

.range-panel {
  border-top: 0;
  background:
    linear-gradient(135deg, oklch(98% .025 65 / .72), rgba(255,255,255,.84)),
    rgba(255,255,255,.8) !important;
}

.hero-card .info-kicker,
.wish-subtitle,
.smart-panel .wish-subtitle { color: #657180; }
.hero-card .info-text,
.surface-heading,
.panel-title { color: #1d2733; }
.surface-heading svg,
.filter-panel .surface-heading svg,
.smart-panel .surface-heading svg,
.prefill-panel .surface-heading svg,
.range-panel .surface-heading svg { color: var(--summer-spring-blue); }

.collapse-toggle,
.ghost-btn,
.small-danger-btn {
  border-color: rgba(207,220,234,.88);
  border-radius: 999px;
  background: rgba(255,255,255,.7);
  color: var(--summer-spring-blue-deep);
  box-shadow: 0 8px 20px rgba(35,66,102,.07);
}

.danger-btn,
.small-danger-btn { color: var(--summer-spring-pink); }

.hero-card .search-box,
.smart-panel .smart-entry {
  border-color: rgba(255,255,255,.82);
  background: rgba(255,255,255,.38);
}

.hero-card .primary-btn,
.smart-panel .primary-btn {
  border: 0;
  border-radius: 10px;
  background: #fff;
  color: var(--summer-spring-blue-deep);
  box-shadow: 0 10px 22px rgba(35,66,102,.12);
}

.bottom-nav a.active {
  background: linear-gradient(135deg, var(--summer-spring-coral), oklch(72% .16 28)) !important;
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 8px 18px oklch(64% .18 32 / .22) !important;
}

/* Desktop: Spring's broad, airy card rhythm. */
@media (min-width: 1024px) {
  .app { width: min(1160px, calc(100% - 48px)); }
  .related-query-band { grid-template-columns: 104px minmax(0, 1fr); gap: 14px; }
  .related-query-band .system-switch-card { min-height: 82px; padding: 14px 16px; }
  .module-nav-section { padding: 0; }
  .module-nav-heading { margin-bottom: 12px; padding-inline: 2px; }
  .module-nav-section .summer-module-tabs { gap: 12px; }
  .module-nav-section .summer-module-tabs a { min-height: 76px; padding: 12px 14px; }
  .hero-card,
  .filter-panel,
  .prefill-panel,
  .smart-panel,
  .range-panel { padding: 22px 24px; }
  .hero-card .info-row { margin-bottom: 16px; }
  .hero-card .search-box { padding: 10px; border-radius: 16px; }
}

/* Mobile: independent compact composition with the same Spring palette. */
@media (max-width: 760px) {
  body { background: linear-gradient(180deg, #fbfdff 0, #f4f8fc 100%); }
  .app { padding-inline: 10px; }
  .watermark { width: 180px; height: 180px; opacity: .08; }
  .summer-topbar { position: relative; padding: 10px 0 9px; }
  .summer-topbar .brand { display: grid; grid-template-columns: 48px minmax(0,1fr); gap: 10px; }
  .summer-topbar .logo { width: 48px; height: 48px; flex-basis: 48px; padding: 3px; border-radius: 12px; }
  .summer-topbar h1 { font-size: 20px; }
  .summer-topbar .brand-tags {
    display: flex;
    /* 2026-09-18：与春考同款「单行横向滚动」契约。此前漏了 flex-wrap:nowrap，
       容器只有 overflow-x:auto，flex 仍按基础规则的 wrap 折成两行，
       白白把手机端页头撑高 32px（393px 宽下 132px）。补上即与春考一致。 */
    flex-wrap: nowrap;
    grid-column: auto;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .summer-topbar .brand-tags::-webkit-scrollbar { display: none; }
  /* 副标题在窄屏（≤375px）会折成两行、再撑高 20px；改为单行省略，
     390px 以上仍完整显示。与页头「一行一项」的紧凑契约一致。 */
  .summer-topbar .brand-name-line {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .summer-topbar .brand-tags span,
  .summer-topbar .brand-tags span:first-child {
    min-width: max-content;
    min-height: 26px;
    flex: 0 0 auto;
    grid-column: auto;
    padding: 2px 7px;
  }

  .related-query-band { margin: 10px 0 14px; padding: 0; }
  .related-query-title { margin-bottom: 8px; padding-bottom: 8px; }
  .related-query-band .system-switcher { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .related-query-band .system-switch-card { min-height: 74px; padding: 10px; border-radius: 14px; }

  .module-nav-section { margin: 14px 0; padding: 0; }
  .module-nav-section .summer-module-tabs { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 7px; }
  .module-nav-section .summer-module-tabs a {
    min-height: 68px;
    padding: 8px 5px;
    border-radius: 12px;
  }

  .hero-card,
  .filter-panel,
  .prefill-panel,
  .smart-panel,
  .range-panel {
    padding: 14px 12px;
    border-radius: 18px;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .hero-card .info-row { gap: 10px; }
  .hero-card .info-actions { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 6px; }
  .hero-card .info-actions > button {
    min-width: 0;
    min-height: 42px;
    padding: 5px 6px;
    white-space: normal;
  }
  .collapse-toggle,
  .ghost-btn,
  .small-danger-btn { box-shadow: 0 6px 16px rgba(35,66,102,.06); }

  .smart-panel .smart-entry { padding: 0; background: transparent; }
  .bottom-nav a.active {
    background: linear-gradient(135deg, var(--summer-spring-coral), oklch(72% .16 28)) !important;
  }
}

/* Annotated refinements: neutral services, low-saturation query blue, white utility panels. */
.module-nav-section {
  margin: 14px 0;
  padding: 14px;
  border: 1px solid #d8e2ec;
  border-radius: 8px;
  background: #fff !important;
  box-shadow: 0 10px 26px rgba(31,55,82,.055);
}

.module-nav-section .summer-module-tabs { gap: 8px; }
.module-nav-section .summer-module-tabs a,
.module-nav-section .summer-module-tabs a:nth-child(n) {
  min-height: 58px;
  padding: 9px 11px;
  border: 1px solid #e0e7ee;
  border-radius: 7px;
  background: #fafbfd;
  color: #303740;
  box-shadow: none;
}

.module-nav-section .summer-module-tabs a svg { color: #68737f; }
.module-nav-section .summer-module-tabs a:hover,
.module-nav-section .summer-module-tabs a:nth-child(n):hover {
  border-color: #b9c8d5;
  background: #f4f7f9;
  color: #171b22;
  box-shadow: none;
  transform: none;
}

.module-nav-section .summer-module-tabs a.active,
.module-nav-section .summer-module-tabs a.active:nth-child(n) {
  border-color: #173f66;
  background: #173f66;
  color: #fff;
  box-shadow: 0 7px 16px rgba(23,63,102,.16);
}

.module-nav-section .summer-module-tabs a.active svg { color: #fff; }

.hero-card {
  background:
    linear-gradient(135deg, rgba(235,248,253,.9), rgba(251,253,255,.94)),
    rgba(255,255,255,.86) !important;
}

.prefill-panel,
.range-panel {
  background: rgba(255,255,255,.9) !important;
  background-image: none !important;
}

@media (min-width: 1024px) {
  .module-nav-section { padding: 14px; }
  .module-nav-section .summer-module-tabs { gap: 8px; }
  .module-nav-section .summer-module-tabs a { min-height: 58px; padding: 9px 11px; }
}

@media (max-width: 760px) {
  .module-nav-section { padding: 12px; }
  .module-nav-section .summer-module-tabs a,
  .module-nav-section .summer-module-tabs a:nth-child(n) {
    min-height: 68px;
    padding: 8px 5px;
    border-radius: 7px;
  }
  .hero-card {
    background: linear-gradient(135deg, #f0f9fd, #fbfdff) !important;
  }
  .prefill-panel,
  .range-panel { background: #fff !important; }
}

/* Result-card hierarchy: clickable major class in the title row and four compact metrics. */
.result-item .school-brand {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.result-item .school-brand .school {
  min-width: 0;
  font-size: 18px !important;
  line-height: 1.3;
}

.result-item .school-brand .school .item-code {
  margin-right: 7px;
  font-size: inherit !important;
}

.result-item .major-class-chip {
  display: inline-flex;
  min-width: 0;
  max-width: 150px;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  padding: 4px 9px;
  border: 1px solid oklch(82% .075 145);
  border-radius: 8px;
  background: oklch(95% .035 145);
  color: oklch(38% .1 145);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
}

.result-item .major-class-chip:hover,
.result-item .major-class-chip:focus-visible {
  border-color: oklch(62% .11 145);
  background: oklch(92% .055 145);
}

.result-item .metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 760px) {
  .result-item .school-brand {
    grid-template-columns: 42px minmax(0, 1fr) minmax(72px, 90px);
    align-items: center;
    gap: 4px;
  }

  .result-item .school-brand .school {
    font-size: 18px !important;
    line-height: 1.25;
  }

  .result-item .major-class-chip {
    max-width: 90px;
    min-height: 30px;
    padding: 3px 4px;
    border-radius: 7px;
    font-size: 16px;
  }

  .result-item .school-brand .school .item-code { margin-right: 4px; }

  .result-item .major {
    margin-top: 6px;
    font-size: 16px !important;
    line-height: 1.3;
  }

  .result-item .meta {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 7px;
  }

  .result-item .metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
    margin-top: 8px;
  }

  .result-item .metric {
    min-width: 0;
    min-height: 62px;
    padding: 7px 2px;
  }

  .result-item .metric b,
  .result-item .metric span {
    font-size: 16px !important;
    line-height: 1.25;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 380px) {
  .result-item .school-brand .school { font-size: 16px !important; }
  .result-item .major-class-chip { max-width: 82px; padding-inline: 3px; }
}

/* ============================================================================
   2026-09-17 手机端结果卡与范围筛选（r3）
   1) 范围筛选三列 → 两列：【分数/位次】+【学费不高于】，每列更宽；
      分数/位次默认只显示入口，点击后必须二选一（按分数 / 按位次）。
   2) 手机端字号下调：联动词条 20→16px；结果卡五个标签 16→14px。
   3) 结果卡指标格改为「标签在上、数值在下」，并适度加大行间距。
   桌面端（≥761px）除「范围筛选列数」与「指标格换位」外保持原样。
   ============================================================================ */

/* ---------- A. 指标格：标签在上、数值在下（标签不再下压，行距交给数值） ---------- */
.result-item .metric span { margin-top: 0; }
.result-item .metric b { margin-top: 2px; }

/* ---------- B. 范围筛选：三列 → 两列 ---------- */
.range-panel .range-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.range-card-dimension .range-head { padding-right: 148px; }

.range-dimension-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  min-height: 32px;
  padding: 4px 10px;
  border: 1px solid oklch(88% .03 238);
  border-radius: 10px;
  background: rgba(255, 255, 255, .88);
  color: var(--brand-deep);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.range-dimension-caret {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  stroke-width: 2.2;
  transition: transform .16s ease;
}

.range-dimension-toggle.is-open .range-dimension-caret { transform: rotate(180deg); }

.range-dimension-picker {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.range-dimension-option {
  min-width: 0;
  min-height: 34px;
  padding: 4px 10px;
  border: 1px solid oklch(86% .04 238);
  border-radius: 10px;
  background: #fff;
  color: var(--brand-deep);
  font-size: 16px;
  font-weight: 650;
  cursor: pointer;
}

.range-dimension-option.is-active {
  border-color: var(--blue-green);
  background: oklch(95% .05 185);
  color: oklch(38% .1 185);
}

.range-dimension-hint {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.35;
}

/* 未选维度 / 选择中：只显示该显示的那一块，避免高度抖动 */
.range-dimension-picker[hidden],
.range-dimension-body[hidden],
.range-dimension-hint[hidden],
.range-value-text[hidden] { display: none !important; }

.range-card-dimension.is-picking .range-dimension-body,
.range-card-dimension.is-picking .range-dimension-hint { display: none !important; }

/* ---------- C. 手机端（≤760px）：字号下调 + 行间距放松 ---------- */
@media (max-width: 760px) {
  /* 修改1：联动词条 20px → 16px（次级提示，仍取偶数档） */
  .score-rank-link-note {
    font-size: 16px;
    line-height: 1.4;
  }

  /* 修改3：结果卡五个标签 16px → 14px；
     line-height / min-height 不动，保证 .meta 仍是两行 56px。
     2026-09-17 (r9)：桌面端选择器已提升权重（.result-item 前缀）以支持「电脑端小 4px」，
     此处必须同步加 .result-item 前缀，否则桌面端会被这条 !important 反压成 14px。 */
  .result-item .meta .pill,
  .result-item .meta .pill-city { font-size: 14px !important; }

  /* 修改3b（r9 用户要求）：手机端该区域再「小 2px」→ 指标格 16px → 14px。
     只动字号，不动 min-height(62px)、padding、line-height(1.35) 与列数：
     summer-mobile-density-e2e.js 锁定「四指标同一行」与「行距 ≥ 字号×1.3」，14px×1.35 ≈ 18.9px 仍满足。
     标签行不动：先前已按你确认降到 14px（该测试显式锁 14px）。

     2026-09-17 (r11)：用户要求指标格再 +2px ⇒ 14px → 16px。
     实测（真实 Chrome，最坏值 347人/697分/100005/160,000元）：
       430px、390px：16px 与 14px 同样 0 折行，直接抬到 16px 即可；
       360px：16px 下「2026计划」标签需 69.5px，而 padding 7px 2px 时格内只有 70px —— 差之毫厘即折行。
       故把 .metric 横向 padding 由 2px 收到 0（纵向仍 7px，行距/高度不变），
       格内可用宽度升到 74~76px ⇒ 360px 也稳定单行（余量 +5px 以上）。
       纵向 padding 与 min-height(62px) 不动，保证「四指标同一行」「行距 ≥ 字号×1.3」两项断言不破。 */
  .result-item .metric b,
  .result-item .metric span { font-size: 16px !important; }
  .result-item .metric { padding-left: 0; padding-right: 0; }

  /* 范围筛选：两列后每列更宽，上下限两个数值并排显示 */
  .range-panel .range-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .range-panel .range-card.range-card-dimension {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 5px;
    min-height: 150px;
    padding: 7px 6px;
  }
  .range-panel .range-card-dimension .range-head {
    min-height: 40px;
    align-items: flex-start;
    padding-right: 0;
  }
  .range-dimension-toggle {
    width: 100%;
    min-height: 34px;
    justify-content: space-between;
    padding: 3px 8px;
    font-size: 16px;
  }
  .range-panel .range-dimension-body,
  .range-panel .range-dimension-picker {
    display: grid;
    grid-template-rows: minmax(64px, auto) 34px;
    gap: 5px;
    min-width: 0;
  }
  .range-panel .range-dimension-picker {
    grid-template-rows: minmax(64px, auto);
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
    gap: 6px;
  }
  .range-dimension-option { min-height: 32px; padding: 3px 8px; font-size: 16px; }

  /* 数值输入保持单列（上下两个）：并排时 16px 字号的 708815 会被截断。
     两列后卡片本身已宽 ~50%，输入框比原三列布局更宽，信息量并未减少。 */

  /* 修改4：行间距适度加大（指标格两行 + 卡片块间距） */
  .result-item .metric span { margin-top: 0; }
  .result-item .metric b { margin-top: 4px; }
  .result-item .metric b,
  .result-item .metric span { line-height: 1.35; }
  .result-item .major { line-height: 1.4; }
  .result-item .meta { margin-top: 8px; }
  .result-item .metrics { margin-top: 10px; }
  .result-item .item-actions { margin-top: 11px; }
}

@media (max-width: 380px) {
  .range-dimension-toggle { padding-inline: 6px; }
  .range-dimension-option { padding-inline: 5px; }
}

/* 2026-09-17 (r11) 极窄屏补偿：≤360px 时指标格间距由 4px 收到 2px。
   为什么需要：r11 把手机端指标格字号提到 16px 后，「2026计划」标签的内在宽度是 69.55px。
     · 390/375/360px：格内可用 74~77px，直接放得下（实测 0 折行）；
     · 340px：内宽 69px < 69.55px —— 只差 0.55px 就折行，收 gap 4→2 后内宽 70px，稳定单行；
     · 320px：即使 gap 收到 0 内宽也只有 67px，仍差 2.55px ⇒ 320px 属物理不足，
       交由下方的超窄兜底降回 15px（与 14px 基线同为偶数档之上一档，肉眼与 16px 几乎无差）。
   注意：只改横向 gap，不动列数（仍 4 列同一行）、不动 min-height/padding/line-height，
   因此 summer-mobile-density-e2e.js 的「四指标同一行」「行距 ≥ 字号×1.3」两项断言不受影响。 */
@media (max-width: 360px) {
  .result-item .metrics { gap: 2px; }
}

/* 320px（iPhone SE 1 代 / 极老安卓）兜底：4 列 × 16px 在数学上放不下 69.55px 的标签。
   注意 .metric 在 ≤760px 各带 1px 边框（L2039），每格实际再少 2px：
     320px 下格宽 67px − 2px 边框 = 内宽 65px；15px 的标签需 65.2px，仍差 0.2px ⇒ 折行。
   故这一档回到 14px（标签 60.9px < 65px，稳定单行），即 r10 的手机端原值。
   仅覆盖 ≤320px；321px 以上不受影响，仍是本次目标的 16px。 */
@media (max-width: 320px) {
  .result-item .metric b,
  .result-item .metric span { font-size: 14px !important; }
}

/* ============================================================================
   2026-09-17 桌面端范围筛选数值框加宽（r4）
   位次上限 708815、学费上限 160000 都是 6 位数，而桌面端输入框内容区
   只有 52px / 62px（number 输入框还会吃掉约 14px 的 stepper 保留位），
   真实渲染会被截断成「7088」「1600」——把学费上限误读成 1600 元。
   判定口径用 el.scrollWidth <= el.clientWidth（clientWidth 未扣 stepper）。
   断点策略：
     ≥1024px 卡片够宽（463px 起）→ 两个输入框并排加宽到 108px；
     761–1023px 放不下「两个 6 位数输入框 + 入口按钮」并排
       （761px 卡宽仅 316px）→ 改为像手机端一样上下堆叠，宽度 100%。
   ============================================================================ */
@media (min-width: 761px) {
  .range-panel .range-card.is-single .range-values input { width: 104px; }
  .range-panel .range-card.is-single .range-head { padding-right: 118px; }
}

@media (min-width: 761px) and (max-width: 1023px) {
  .range-panel .range-card-dimension .range-head { padding-right: 0; }
  .range-panel .range-card-dimension .range-dimension-body {
    display: grid;
    grid-template-rows: auto auto;
    gap: 6px;
  }
  .range-panel .range-card-dimension .range-values {
    position: static;
    order: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    gap: 5px;
  }
  .range-panel .range-card-dimension .range-values input { width: 100%; min-width: 0; }
}

@media (min-width: 1024px) {
  .range-panel .range-dimension-body .range-values input { width: 108px; }
}

    /* ==========================================================================
       退出系统 · 本机缓存清理确认层（20260917-exit-cache-r1）
       只新增自有类名 .exit-*，不改动任何既有规则；页头改为弹性行以容纳右侧「退出」。
       字号一律 ≥16px（沿用站点 16px 可读性下限）。
       ========================================================================== */
    .topbar {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      justify-content: space-between;
      gap: 10px 12px;
    }
    .topbar > .brand {
      flex: 1 1 260px;
      min-width: 0;
    }
    .exit-entry {
      flex: 0 0 auto;
      margin-left: auto;
      display: flex;
      align-items: center;
    }
    .exit-btn {
      min-height: 38px;
      padding: 0 18px;
      border: 1px solid var(--line);
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.92);
      color: var(--ink);
      font-family: var(--font-main);
      font-size: 16px;
      font-weight: 600;
      line-height: 1;
      cursor: pointer;
      transition: background 0.18s var(--ease-out, cubic-bezier(0.2, 0.72, 0.22, 1)), border-color 0.18s var(--ease-out, cubic-bezier(0.2, 0.72, 0.22, 1)), color 0.18s var(--ease-out, cubic-bezier(0.2, 0.72, 0.22, 1));
    }
    .exit-btn:hover {
      background: var(--brand-soft);
      border-color: var(--brand);
      color: var(--brand);
    }
    .exit-btn:focus-visible {
      outline: 3px solid oklch(70% 0.12 250 / 0.5);
      outline-offset: 2px;
    }
    html.exit-dialog-open,
    html.exit-dialog-open body {
      overflow: hidden;
    }
    .exit-dialog[hidden] {
      display: none !important;
    }
    .exit-dialog {
      position: fixed;
      inset: 0;
      z-index: 9000;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 20px;
      background: rgba(23, 32, 51, 0.46);
    }
    .exit-dialog-card {
      width: min(92vw, 460px);
      padding: 22px 22px 18px;
      border: 1px solid var(--line);
      border-radius: var(--radius, 16px);
      background: #fff;
      box-shadow: var(--shadow);
      color: var(--ink);
      font-family: var(--font-main);
    }
    .exit-dialog-card h2 {
      margin: 0 0 10px;
      font-size: 20px;
      font-weight: 700;
      line-height: 1.35;
    }
    .exit-dialog-card p {
      margin: 0 0 18px;
      font-size: 16px;
      line-height: 1.6;
      color: var(--muted);
    }
    .exit-dialog-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
    }
    .exit-dialog-actions button {
      flex: 1 1 150px;
      min-height: 44px;
      padding: 0 16px;
      border: 1px solid var(--line);
      border-radius: 12px;
      background: #fff;
      color: var(--ink);
      font-family: var(--font-main);
      font-size: 16px;
      font-weight: 600;
      cursor: pointer;
      transition: background 0.18s var(--ease-out, cubic-bezier(0.2, 0.72, 0.22, 1)), border-color 0.18s var(--ease-out, cubic-bezier(0.2, 0.72, 0.22, 1)), color 0.18s var(--ease-out, cubic-bezier(0.2, 0.72, 0.22, 1));
    }
    .exit-dialog-actions .exit-btn-primary {
      background: var(--brand);
      border-color: var(--brand);
      color: #fff;
    }
    .exit-dialog-actions .exit-btn-primary:hover {
      filter: brightness(1.05);
    }
    .exit-dialog-actions .exit-btn-ghost:hover {
      background: var(--brand-soft);
      border-color: var(--brand);
      color: var(--brand);
    }
    .exit-dialog-actions .exit-btn-text {
      flex: 1 1 100%;
      border-color: transparent;
      background: transparent;
      color: var(--muted);
      font-weight: 500;
    }
    .exit-dialog-actions .exit-btn-text:hover {
      color: var(--ink);
      text-decoration: underline;
    }
    @media (max-width: 480px) {
      .topbar > .brand {
        flex: 1 1 200px;
      }
      .exit-btn {
        min-height: 34px;
        padding: 0 13px;
      }
      .exit-dialog-actions button {
        flex: 1 1 100%;
      }
    }

    /* ==========================================================================
       层次独立卡片（20260918-level-card-r1）
       需求：「把夏考的层次选择，挪到上面，按照上面的样式作为一个单独的卡片」，
       用户拍板「仅电脑端」⇒ ≥761px 显示本卡，由 app.js 把 #levelSelect 的 .field 搬进来；
       ≤760px 本卡隐藏、字段搬回 .filter-panel .controls（搬迁逻辑见 app.js 同名注释块）。

       ★ 与 .hero-card 的关系：**只复制视觉值，刻意不复用类名**。
         三个回归脚本用严格定位命中「当前查询」卡，复用类名会让它们同时命中两张卡而失败：
           · summer-header-ui-e2e.js      → `.hero-card .collapse-toggle`
           · summer-mobile-density-e2e.js → `locator('.hero-card')`
           · summer-spring-style-regression.mjs → `getComputedStyle('.hero-card')`
         故下面把 border / radius / background / box-shadow / border-top 色值手抄一遍。

       ★ 字号一律偶数（16 / 18），满足桌面端 oddVisibleFonts 断言（>=14 且为偶数）。
       ========================================================================== */
    /* 默认隐藏：只有 app.js 成功把字段搬进来并加 .is-active 才显示。
       ⇒「零 JS」「JS 抛错」「手机端」三种路径都不会留下空壳卡片。
       :not(:has(.field)) 是附加兜底；:has() 不被支持时上面那条 display:none 仍然兜住。 */
    .level-card { display: none; }
    .level-card:not(:has(.field)) { display: none !important; }

    @media (min-width: 761px) {
      /* 视觉值逐条对齐 .hero-card：margin 14px 0 / padding 18px 20px /
         border-top 3px #2d789a / radius 8px / 同款边框与阴影。 */
      .level-card.is-active {
        display: block;
        margin: 14px 0;
        padding: 18px 20px;
        border: 1px solid #d8e2ec;
        border-radius: 8px;
        border-top: 3px solid #2d789a;
        background: #fff;
        box-shadow: 0 10px 26px rgba(31, 55, 82, .055);
      }
      .level-card-head {
        display: flex;
        flex-wrap: wrap;
        align-items: baseline;
        gap: 6px 14px;
        margin-bottom: 12px;
      }
      /* 照 .info-kicker（灰、650 字重）与 .hero-card .info-text（深色、750 字重）。 */
      .level-card-kicker { color: #6b7280; font-size: 16px; font-weight: 650; }
      .level-card-hint { color: #1f2937; font-size: 18px; font-weight: 750; }
      /* 字段沿用 .field / .field label / .field input 的既有样式（全局规则，无需重写），
         这里只加宽度上限：层次取值最长是「本科2次征集」，360px 足够且不拉成空旷长条。 */
      .level-card-body .field { display: grid; gap: 6px; max-width: 360px; }

      /* 层次搬走后筛选卡只剩 4 个控件：5 列改 4 列铺满，避免右侧空出一列把字段压窄。
         权重 (0,3,0) + !important 高于既有 `.filter-panel .controls`（0,2,0）与
         `@media(min-width:1024px) .controls{repeat(4,minmax(190px,1fr))}`（无 !important）。 */
      .filter-panel .controls.is-level-moved {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
      }
    }

    @media (min-width: 1024px) {
      /* 与 .hero-card 在 1024px+ 的 padding 保持一致（见 @media(min-width:1024px) 块）。 */
      .level-card.is-active { padding: 22px 24px; }
    }

    @media (max-width: 760px) {
      /* 手机端显式隐藏：与 app.js 的搬迁判断互为双保险，避免 resize 跨断点时闪现卡片。
         同时把 .is-level-moved 的列数压回三列 —— 手机端依赖「前 5 个筛选 3+2 两行」
         断言（summer-mobile-density-e2e.js），层次必须留在筛选卡内。 */
      .level-card,
      .level-card.is-active { display: none !important; }
      .filter-panel .controls.is-level-moved {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
      }
    }

/* 相关查询卡片配色跟 data-system 走，不再跟 DOM 顺序走（2026-10-22 新增「春考查询」后修正）。
   原来配色写在 :nth-child(2)/(3) 上，往前面插一张卡会让后面所有卡片整体错位变色。
   这里特异性与 nth-child 规则相同，但声明在文件末尾，故优先生效。 */
.related-query-band .system-switch-card.system-spring { background: var(--summer-spring-mint); }
.related-query-band .system-switch-card.system-summer { background: var(--summer-spring-sky); }
.related-query-band .system-switch-card.system-summer-line { background: var(--summer-spring-violet); }
.related-query-band .system-switch-card.system-zsb { background: var(--summer-spring-peach); }
