:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --ink: #172033;
  --muted: #64748b;
  --line: #dce4ef;
  --line-soft: #edf1f6;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --blue-soft: #eaf1ff;
  --green: #14845f;
  --green-soft: #e9f7f1;
  --amber: #b76818;
  --amber-soft: #fff5e8;
  --red: #d4493f;
  --red-soft: #fff0ef;
  --purple: #7c4fc2;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; background: var(--bg); }
body { margin: 0; color: var(--ink); background: var(--bg); font-family: "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif; font-size: 16px; }
button, input, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
svg { width: 18px; height: 18px; stroke-width: 2; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.app-shell { width: min(1460px, 100%); min-height: 100vh; margin: 0 auto; padding: 0 38px; }

.topbar { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 11px; min-width: 190px; }
.brand-mark { width: 40px; height: 40px; display: grid; place-items: center; flex: none; border-radius: 8px; color: #fff; background: #172033; }
.brand-mark svg { width: 21px; height: 21px; }
.brand-copy strong, .brand-copy small { display: block; }
.brand-copy strong { font-size: 18px; font-weight: 800; }
.brand-copy small { margin-top: 2px; color: var(--muted); font-size: 12px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { padding: 9px 13px; border-radius: 7px; color: var(--muted); font-size: 14px; font-weight: 650; }
.nav a:hover, .nav a.active { color: var(--blue-dark); background: var(--blue-soft); }
.top-actions { min-width: 190px; display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.source-state { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 13px; font-weight: 650; }
.source-state i { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 4px var(--amber-soft); }
.source-state.live { color: var(--green); }
.source-state.live i { background: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }
.source-state.loading i { background: var(--blue); box-shadow: 0 0 0 4px var(--blue-soft); }
.source-state.cached i { background: var(--amber); box-shadow: 0 0 0 4px var(--amber-soft); }
.source-state.error { color: var(--red); }
.source-state.error i { background: var(--red); box-shadow: 0 0 0 4px var(--red-soft); }
.icon-button { width: 36px; height: 36px; display: grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 7px; color: var(--ink); background: var(--surface); }
.icon-button:hover { color: var(--blue); border-color: #a9c3f8; background: var(--blue-soft); }
.icon-button:disabled { cursor: wait; opacity: .65; }
.icon-button.refreshing svg { animation: refresh-spin .8s linear infinite; }
@keyframes refresh-spin { to { transform: rotate(360deg); } }

.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; padding: 48px 0 28px; }
.eyebrow { margin: 0 0 9px; color: var(--blue-dark); font-size: 11px; font-weight: 850; letter-spacing: 0; }
.page-heading h1 { margin: 0; font-size: 39px; line-height: 1.18; letter-spacing: 0; }
.page-heading > div:first-child > p:last-child { margin: 12px 0 0; color: var(--muted); font-size: 15px; }
.updated-block { min-width: 210px; padding-left: 22px; border-left: 2px solid var(--line); }
.updated-block span, .updated-block strong, .updated-block small { display: block; }
.updated-block span { color: var(--muted); font-size: 12px; }
.updated-block strong { margin-top: 5px; font-size: 15px; }
.updated-block small { margin-top: 3px; color: var(--muted); font-size: 12px; }

.demo-notice { min-height: 56px; display: flex; align-items: center; gap: 12px; padding: 10px 15px; border: 1px solid #f0d2aa; border-radius: 7px; color: #865019; background: var(--amber-soft); }
.demo-notice > svg { flex: none; }
.demo-notice div { min-width: 0; flex: 1; display: flex; align-items: baseline; gap: 10px; }
.demo-notice strong { flex: none; font-size: 14px; white-space: nowrap; }
.demo-notice div span { color: #9d6c38; font-size: 14px; }
.notice-tag { flex: none; padding: 5px 8px; border-radius: 4px; color: #8b571f; background: #fce5c7; font-size: 10px; font-weight: 800; }
.demo-notice.real { color: #165f49; border-color: #b8dfd0; background: var(--green-soft); }
.demo-notice.real div span { color: #477565; }
.demo-notice.real .notice-tag { color: #146449; background: #d6f0e5; }
.notice-copy { min-width: 0; flex: 1; display: flex; align-items: baseline; gap: 10px; }
.demo-notice > .notice-copy { min-width: 0; flex: 1; }
.notice-actions { display: inline-flex; align-items: center; gap: 12px; flex: none; }
.demo-notice > .notice-actions { flex: none; margin-left: auto; align-items: center; }
.notice-actions .source-state { display: none; }
.notice-actions .icon-button { width: 34px; height: 34px; }

.control-band { display: grid; grid-template-columns: 1.1fr 1.25fr 1fr 1.15fr; gap: 0; margin-top: 18px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); }
.control-group { min-width: 0; padding: 17px 18px; border-right: 1px solid var(--line); }
.control-group:last-child { border-right: 0; }
.control-label { display: block; margin-bottom: 9px; color: var(--muted); font-size: 12px; font-weight: 700; }
.segmented { min-height: 40px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 3px; border: 1px solid var(--line); border-radius: 7px; background: #f7f9fc; }
.segmented button { min-width: 0; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 7px 11px; border: 0; border-radius: 5px; color: var(--muted); background: transparent; font-size: 13px; font-weight: 750; white-space: nowrap; }
.segmented button:hover { color: var(--ink); }
.segmented button.active { color: var(--blue-dark); background: var(--surface); box-shadow: 0 1px 4px rgba(33, 51, 82, .12); }
.segmented button small { color: #9aa6b6; font-size: 9px; }
.platform-dot { width: 8px; height: 8px; border-radius: 50%; }
.openai-dot { background: #172033; }
.claude-dot { background: #c87839; }
.select-wrap { min-height: 40px; display: flex; align-items: center; gap: 9px; padding: 0 11px; border: 1px solid var(--line); border-radius: 7px; background: #f9fafc; }
.select-wrap:focus-within { border-color: #8bb0f7; box-shadow: 0 0 0 3px rgba(37, 99, 235, .1); }
.select-wrap > svg { width: 16px; height: 16px; color: var(--muted); flex: none; }
.select-wrap > svg:last-child { width: 14px; height: 14px; }
.select-wrap select { width: 100%; min-width: 0; border: 0; outline: 0; appearance: none; color: var(--ink); background: transparent; font-size: 13px; font-weight: 700; }

.summary-strip { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 18px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .62); }
.summary-strip > div { min-height: 104px; display: flex; flex-direction: column; justify-content: center; padding: 17px 20px; border-right: 1px solid var(--line); }
.summary-strip > div:last-child { border-right: 0; }
.summary-strip span, .summary-strip small { color: var(--muted); font-size: 12px; }
.summary-strip strong { margin: 7px 0 4px; font-size: 24px; line-height: 1; }
.summary-strip strong.saving { color: var(--green); }

.radar-layout { display: grid; grid-template-columns: minmax(0, 1fr) 294px; gap: 30px; padding: 44px 0 52px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 18px; }
.section-head h2, .insight-head h2, .methodology h2 { margin: 0; font-size: 25px; line-height: 1.2; }
.section-head > div:first-child > span, .insight-head > span { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; }
.list-tools { display: flex; align-items: center; gap: 8px; }
.search-box { width: 210px; min-height: 39px; display: flex; align-items: center; gap: 8px; padding: 0 8px 0 11px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); }
.search-box:focus-within { border-color: #8bb0f7; box-shadow: 0 0 0 3px rgba(37, 99, 235, .1); }
.search-box > svg { width: 16px; height: 16px; flex: none; color: var(--muted); }
.search-box input { width: 100%; min-width: 0; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 13px; }
.search-box button { width: 26px; height: 26px; display: grid; place-items: center; flex: none; padding: 0; border: 0; border-radius: 5px; color: var(--muted); background: transparent; }
.search-box button:hover { color: var(--ink); background: var(--line-soft); }
.search-box button svg { width: 14px; height: 14px; }
.select-wrap.small { width: 132px; min-height: 39px; background: var(--surface); }

.price-table { border-top: 1px solid var(--line); }
.table-header, .price-row { display: grid; grid-template-columns: minmax(180px, 1.7fr) minmax(115px, .9fr) minmax(110px, .9fr) minmax(110px, .9fr) minmax(95px, .75fr) minmax(90px, .7fr); gap: 16px; align-items: center; }
.table-header { min-height: 43px; padding: 0 10px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 11px; font-weight: 800; }
.price-row { min-height: 86px; padding: 14px 10px; border-bottom: 1px solid var(--line-soft); background: transparent; }
.price-row:hover { background: rgba(255, 255, 255, .7); }
.country-cell { min-width: 0; display: flex; align-items: center; gap: 11px; }
.rank { width: 23px; flex: none; color: #9aa6b6; font-size: 12px; font-weight: 800; text-align: center; }
.rank.top { color: var(--blue-dark); }
.flag { width: 34px; height: 25px; display: grid; place-items: center; flex: none; border: 1px solid #e4e9f0; border-radius: 4px; background: var(--surface); font-size: 18px; line-height: 1; }
.country-cell strong, .price-cell strong, .compare-cell strong { display: block; font-size: 17px; }
.country-cell small, .price-cell small, .compare-cell small, .status-cell small { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }
.price-cell { min-width: 0; }
.price-cell.primary strong { color: var(--blue-dark); font-size: 18px; }
.price-cell.unknown strong { color: var(--muted); font-size: 13px; }
.compare-cell.cheap strong { color: var(--green); }
.compare-cell.expensive strong { color: var(--red); }
.compare-cell.equal strong { color: var(--muted); }
.status-cell { min-width: 0; }
.status-badge { display: inline-flex; align-items: center; gap: 5px; padding: 6px 8px; border-radius: 4px; font-size: 12px; font-weight: 800; }
.status-badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; }
.status-badge.included { color: var(--green); background: var(--green-soft); }
.status-badge.included::before { background: var(--green); }
.status-badge.excluded { color: var(--amber); background: var(--amber-soft); }
.status-badge.excluded::before { background: var(--amber); }
.status-badge.unknown { color: var(--muted); background: var(--line-soft); }
.status-badge.unknown::before { background: #94a3b8; }
.status-badge.verified { color: var(--green); background: var(--green-soft); }
.status-badge.verified::before { background: var(--green); }
.status-badge.verified:hover { box-shadow: inset 0 0 0 1px #9ed3bf; }
.chart-empty { padding: 20px 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.empty-state { min-height: 220px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; border-bottom: 1px solid var(--line); color: var(--muted); }
.empty-state svg { width: 24px; height: 24px; }
.empty-state strong { color: var(--ink); }
.empty-state span { font-size: 12px; }

.insight-panel { min-width: 0; padding-left: 25px; border-left: 1px solid var(--line); }
.insight-head { margin-bottom: 23px; }
.bar-chart { display: flex; flex-direction: column; gap: 15px; }
.bar-item { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 10px; align-items: center; }
.bar-label { min-width: 0; }
.bar-label strong, .bar-label small { display: block; }
.bar-label strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.bar-label small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.bar-track { height: 24px; position: relative; overflow: hidden; border-radius: 4px; background: #e9eef5; }
.bar-fill { height: 100%; display: flex; align-items: center; justify-content: flex-end; min-width: 48px; padding-right: 7px; border-radius: 4px; color: #fff; background: var(--blue); font-size: 9px; font-weight: 800; white-space: nowrap; }
.bar-item:first-child .bar-fill { background: var(--green); }
.unit-audit { margin-top: 32px; padding-top: 21px; border-top: 1px solid var(--line); }
.unit-audit-title { display: flex; align-items: center; gap: 8px; color: var(--green); }
.unit-audit-title svg { width: 17px; height: 17px; }
.unit-audit-title strong { color: var(--ink); font-size: 13px; }
.unit-audit dl { margin: 14px 0 0; }
.unit-audit dl div { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 34px; border-bottom: 1px dashed var(--line); }
.unit-audit dt, .unit-audit dd { margin: 0; font-size: 10px; }
.unit-audit dt { color: var(--muted); }
.unit-audit dd { color: var(--ink); font-weight: 750; }

.methodology { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 40px; align-items: start; padding: 35px 0 42px; border-top: 1px solid var(--line); }
.method-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.method-list > div { min-width: 0; display: flex; align-items: flex-start; gap: 10px; }
.method-list svg { width: 18px; height: 18px; flex: none; color: var(--blue); }
.method-list strong, .method-list small { display: block; }
.method-list strong { font-size: 12px; }
.method-list small { margin-top: 5px; color: var(--muted); font-size: 10px; line-height: 1.6; }

footer { min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }

@media (max-width: 1120px) {
  .control-band { grid-template-columns: repeat(2, 1fr); }
  .control-group:nth-child(2) { border-right: 0; }
  .control-group:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .radar-layout { grid-template-columns: 1fr; }
  .insight-panel { display: grid; grid-template-columns: 220px minmax(0, 1fr) 250px; gap: 24px; padding: 26px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .insight-head, .unit-audit { margin: 0; }
  .method-list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  .app-shell { padding: 0 20px; }
  .topbar { flex-wrap: wrap; padding: 10px 0; }
  .nav { order: 3; width: 100%; }
  .top-actions { min-width: 0; }
  .page-heading { align-items: flex-start; flex-direction: column; gap: 22px; padding-top: 36px; }
  .page-heading h1 { font-size: 34px; }
  .updated-block { padding-left: 0; border-left: 0; }
  .summary-strip { grid-template-columns: repeat(2, 1fr); }
  .summary-strip > div:nth-child(2) { border-right: 0; }
  .summary-strip > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .section-head { align-items: flex-start; flex-direction: column; }
  .list-tools { width: 100%; }
  .search-box { flex: 1; width: auto; }
  .table-header { display: none; }
  .price-table { border-top: 0; }
  .price-row { grid-template-columns: minmax(0, 1.4fr) minmax(90px, .8fr) minmax(90px, .8fr); gap: 12px; padding: 17px 5px; }
  .country-cell { grid-column: 1 / -1; }
  .price-row > .price-cell:nth-child(2) { grid-column: 1; }
  .price-row > .price-cell:nth-child(3) { grid-column: 2; }
  .price-row > .price-cell:nth-child(4) { grid-column: 3; }
  .compare-cell { grid-column: 1 / 3; }
  .status-cell { grid-column: 3; justify-self: end; }
  .price-cell::before, .compare-cell::before { display: block; margin-bottom: 5px; color: var(--muted); font-size: 10px; font-weight: 750; }
  .price-row > .price-cell:nth-child(2)::before { content: "官方原价"; }
  .price-row > .price-cell:nth-child(3)::before { content: "汇率换算"; }
  .price-row > .price-cell:nth-child(4)::before { content: "含税预计"; }
  .compare-cell::before { content: "对比美国"; }
  .insight-panel { grid-template-columns: 1fr; }
  .methodology { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 560px) {
  body { font-size: 15px; }
  .app-shell { padding: 0 14px; }
  .topbar { gap: 12px; }
  .brand { min-width: 0; }
  .brand-mark { width: 36px; height: 36px; }
  .brand-copy strong { font-size: 16px; }
  .source-state { font-size: 11px; }
  .nav a { padding: 8px 10px; font-size: 13px; }
  .page-heading { gap: 12px; padding: 20px 0 15px; }
  .page-heading h1 { font-size: 25px; line-height: 1.25; }
  .page-heading > div:first-child > p:last-child { display: none; }
  .updated-block { display: grid; grid-template-columns: auto auto; align-items: baseline; gap: 2px 10px; }
  .updated-block span { grid-column: 1; }
  .updated-block strong { grid-column: 2; grid-row: 1; margin: 0; }
  .updated-block small { grid-column: 1 / -1; margin: 0; }
  .demo-notice { min-height: 50px; align-items: center; padding: 10px 12px; }
  .demo-notice > .notice-copy { display: block; }
  .demo-notice strong { white-space: normal; }
  .demo-notice div span { display: none; }
  .demo-notice > .notice-actions { margin-left: auto; }
  .notice-tag { display: none; }
  .control-band { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 12px; }
  .platform-group { display: none; }
  .control-group { padding: 11px 10px; border-bottom: 0; }
  .control-group:nth-child(2) { grid-column: 1 / -1; border-right: 0; border-bottom: 1px solid var(--line); }
  .control-group:nth-child(3) { border-right: 1px solid var(--line); }
  .control-label { margin-bottom: 6px; font-size: 11px; }
  .segmented, .select-wrap { min-height: 36px; }
  .segmented button { padding: 6px; font-size: 12px; }
  .summary-strip { display: none; }
  .radar-layout { padding: 22px 0 42px; }
  .section-head { gap: 13px; margin-bottom: 12px; }
  .list-tools { display: grid; grid-template-columns: minmax(0, 1fr) 124px; gap: 7px; }
  .search-box, .select-wrap.small { width: 100%; min-height: 37px; }
  .select-wrap.small { padding: 0 8px; }
  .price-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px 10px; }
  .country-cell { grid-column: 1 / -1; }
  .price-row > .price-cell:nth-child(2) { grid-column: 1; }
  .price-row > .price-cell:nth-child(3) { grid-column: 2; text-align: right; }
  .price-row > .price-cell:nth-child(4) { grid-column: 1; }
  .compare-cell { grid-column: 2; text-align: right; }
  .status-cell { grid-column: 1 / -1; justify-self: start; }
  .method-list { grid-template-columns: 1fr; }
  footer { align-items: flex-start; flex-direction: column; justify-content: center; padding: 17px 0; }
}
