:root {
  --ink: #122746;
  --ink-soft: #1e3555;
  --paper: #f4f1ea;
  --sand: #eae6dc;
  --gold: #d5b46d;
  --gold-text: #8f6f3f;
  --text: #122746;
  --muted: #506071;
  --line: #dce2e7;
  --reporter-name: #185ea8;
  --reporter-unit-label: #667085;
  --reporter-unit-value: #475467;
  --reporter-reading: #08776b;
  --reporter-trend: #805d16;
  --font-sans: "Microsoft YaHei", "微软雅黑", "Microsoft YaHei UI", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", SimHei, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--text); background: var(--paper); font-family: var(--font-sans); }
button, a, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, select:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--font-sans); font-weight: 700; letter-spacing: .01em; }
.wrap { width: min(1280px, calc(100% - 80px)); margin-inline: auto; }
.noscript-note { margin: 0; padding: 14px 20px; background: #fffdf8; border-bottom: 1px solid #dccca8; color: var(--ink); font-size: 14px; line-height: 1.7; text-align: center; }
.noscript-note a { color: var(--gold-text); text-decoration: underline; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -10000px; top: 8px; z-index: 9; padding: 10px; background: #fff; }
.skip-link:focus { left: 8px; }

.site-header, .hero, .method, .site-footer { background: var(--ink); color: #f5e9ca; }
.header-inner { height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.brand-mark, .brand-mark img { display: block; width: 52px; height: 52px; flex: none; }
.brand-name { font: 700 24px/1.25 var(--font-sans); white-space: nowrap; }
.brand-name small { display: block; margin-top: 7px; color: var(--gold); font: 500 10px/1.4 var(--font-sans); letter-spacing: .12em; }
.main-nav { display: flex; gap: 34px; color: #d9e0e9; font-size: 15px; }
.main-nav a:hover, .site-footer a:hover { color: var(--gold); }

.hero { overflow: hidden; }
.hero-inner { position: relative; padding: 26px 0 26px; }
.hero-inner::after { content: ""; position: absolute; width: 560px; height: 560px; right: -190px; top: -260px; border: 1px solid rgba(213,180,109,.16); border-radius: 50%; box-shadow: 0 0 0 72px rgba(213,180,109,.025), 0 0 0 144px rgba(213,180,109,.018); pointer-events: none; }
.eyebrow, .section-index { margin: 0 0 14px; color: var(--gold-text); font-size: 13px; font-weight: 600; letter-spacing: .13em; }
.eyebrow { color: var(--gold); }
h1 br { display: none; }
h1 { font-size: clamp(40px, 4.1vw, 58px); line-height: 1.3; margin-bottom: 16px; }
.hero-copy { font-size: 18px; color: #c7d1de; margin-bottom: 16px; }
.period-bar { display: flex; justify-content: space-between; align-items: center; gap: 20px; max-width: 1040px; background: var(--ink-soft); padding: 8px 15px; border: 1px solid rgba(255,255,255,.08); }
.period-switch { display: flex; gap: 6px; }
.period-switch button { min-height: 44px; background: transparent; border: 0; color: #d4dbe5; padding: 10px 20px; border-radius: 4px; }
.period-switch button.is-active { background: var(--gold); color: var(--ink); font-weight: 700; }
.period-note { font-size: 13px; color: #c7d1de; }
.feature-period-bar { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin: 0 0 18px; padding: 8px 15px; border: 1px solid #dccca8; background: #fffdf8; }
.feature-period-bar .period-switch button { color: var(--ink); }
.feature-period-bar .period-note { color: var(--muted); }
.hero-link { display: inline-flex; margin-top: 12px; color: var(--gold); font-size: 14px; }
.hero-link:hover { text-decoration: underline; }

.section { padding: 67px 0; }
.today { padding-top: 30px; }
.section h2, .other-section h2, .method h2 { font-size: 34px; line-height: 1.4; margin-bottom: 16px; }
.section-head { display: flex; justify-content: space-between; gap: 20px; align-items: end; margin-bottom: 16px; }
.section-head p, .section-lead { color: var(--muted); font-size: 16px; line-height: 1.8; margin-bottom: 0; }
.update-state { color: var(--gold-text); font-size: 13px; border: 1px solid #dccca8; padding: 8px 12px; line-height: 1.6; flex-shrink: 0; max-width: 260px; }
.feature-section { background: var(--sand); }
.rank-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; margin-top: 28px; }
.rank-card { min-width: 0; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 26px 26px 20px; transition: border-color .2s; }
.rank-card:hover { border-color: #b99b66; }
.card-kicker { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.card-number { color: var(--gold-text); font-size: 14px; letter-spacing: .1em; }
.scope-label { border: 1px solid #d8c8a7; background: #faf7ef; color: var(--gold-text); border-radius: 3px; padding: 3px 8px; font-size: 12px; }
.rank-card h3 { font-size: 24px; line-height: 1.4; margin-bottom: 10px; }
.rank-card .desc { color: var(--muted); font-size: 14px; line-height: 1.6; margin-bottom: 20px; }
.rank-column-head { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding: 13px 0 10px; color: #718092; font-size: 11px; letter-spacing: .04em; }
.rank-preview { flex: 1; min-height: 140px; }
.ranking-list { list-style: none; margin: 0; padding: 0; }
.ranking-item { display: grid; grid-template-columns: 30px minmax(0,1fr) auto; gap: 9px; align-items: start; padding: 10px 0; border-top: 1px solid #eff1f2; min-width: 0; }
.ranking-item:first-child { border-top: 0; }
.place { color: var(--gold-text); font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.5; }
.place--tied { text-decoration: underline dotted; text-underline-offset: 3px; cursor: help; }
.ranking-item-body { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.name { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; color: var(--ink); font-size: 15px; line-height: 1.4; overflow-wrap: anywhere; }
.row-details { color: var(--muted); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.reporter-name { color: var(--reporter-name); font-weight: 700; }
.reporter-details { display: flex; flex-wrap: wrap; gap: 3px 0; }
.reporter-detail { display: inline-flex; align-items: baseline; white-space: nowrap; }
.reporter-detail + .reporter-detail::before { content: "·"; margin: 0 6px; color: #98a2b3; }
.reporter-detail-label { color: var(--reporter-unit-label); }
.reporter-detail-value { margin-left: 2px; color: var(--reporter-unit-value); font-weight: 600; font-variant-numeric: tabular-nums; }
.reporter-works .reporter-detail-value { color: var(--ink-soft); }
.reporter-reads .reporter-detail-value { color: var(--reporter-reading); }
.reporter-trend .reporter-detail-value { color: var(--reporter-trend); }
.reporter-trend-up .reporter-detail-value { color: var(--reporter-reading); }
.score { color: var(--ink); font-weight: 700; font-size: 14px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.note { margin: 15px 0; color: #6d7b8b; font-size: 13px; line-height: 1.55; }
.note.error { color: #9c503c; }
.note.note--rule { margin: 4px 0 10px; padding: 6px 10px; border-left: 3px solid #b8893b; background: #faf5ea; color: #5a4a2c; }
.rank-meta { border-top: 1px solid var(--line); padding-top: 12px; margin: 8px 0 0; min-height: 35px; color: #6d7b8b; font-size: 12px; line-height: 1.5; }
.card-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; min-height: 40px; }
.retry-card { min-height: 44px; border: 1px solid #b9c4cf; border-radius: 4px; background: #fff; padding: 6px 12px; color: var(--ink); font-size: 13px; }
.card-link { min-height: 44px; border: 0; background: transparent; padding: 6px 0; color: var(--gold-text); font-size: 14px; font-weight: 700; text-align: left; }
.source-link { color: #6d7b8b; font-size: 12px; }
.card-link:hover, .source-link:hover { text-decoration: underline; }

@media (min-width: 601px) {
  /* A pair shares its four header rows, ten places and two footer rows. */
  .rank-grid > .rank-card { display: grid; grid-template-rows: subgrid; grid-row: span 16; row-gap: 0; }
  .rank-grid .rank-preview { display: grid; grid-template-rows: subgrid; grid-row: span 10; row-gap: 0; }
  .rank-grid .rank-preview > .ranking-list { display: grid; grid-template-rows: subgrid; grid-row: 1 / -1; row-gap: 0; }
}

.other-section { padding: 55px 0; background: var(--sand); }
.other-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.other-inner p:last-child { color: var(--muted); margin-bottom: 0; }
.other-inner ul { list-style: none; display: flex; flex-wrap: wrap; gap: 12px; margin: 0; padding: 0; }
.other-inner li a { display: block; background: #fff; border: 1px solid var(--line); padding: 15px 18px; color: var(--ink); font-weight: 600; }
.other-inner li a:hover { color: var(--gold-text); border-color: var(--gold-text); }
.method { padding: 62px 0; }
.method-inner { display: flex; justify-content: space-between; align-items: center; gap: 65px; }
.method .section-index { color: var(--gold); }
.method h2 { margin: 0; }
.method-copy { max-width: 640px; }
.method-copy p { color: #c7d1de; line-height: 1.8; margin: 0 0 12px; }
.method-copy p:last-child { margin-bottom: 0; }
.method-copy strong { color: var(--gold); margin-right: 8px; }
.back-top { position: fixed; right: 16px; bottom: 80px; z-index: 2; min-height: 44px; display: inline-flex; align-items: center; padding: 10px 14px; border: 1px solid #d8c8a7; border-radius: 4px; background: var(--ink); color: var(--gold); font-size: 12px; }
.site-footer { border-top: 1px solid #41536d; }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; padding: 24px 0; color: #b9c5d3; font-size: 12px; }

.ranking-dialog { width: min(1000px, calc(100% - 32px)); max-height: min(90vh, 1000px); border: 1px solid var(--line); border-radius: 12px; padding: 0; color: var(--ink); background: var(--paper); box-shadow: 0 22px 80px rgba(7,19,37,.3); }
.ranking-dialog[open] { display: flex; flex-direction: column; overflow: hidden; }
body.dialog-open { overflow: hidden; }
.ranking-dialog::backdrop { background: rgba(10,26,47,.7); }
.dialog-head { display: flex; justify-content: space-between; gap: 20px; padding: 26px 30px 16px; border-bottom: 1px solid var(--line); flex-shrink: 0; }
.dialog-head .section-index { margin-bottom: 8px; }
.dialog-head h2 { font-size: 28px; margin-bottom: 8px; }
.dialog-summary { color: var(--muted); font-size: 13px; line-height: 1.7; margin: 0; }
.dialog-close { align-self: start; flex-shrink: 0; width: 44px; height: 44px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 24px; line-height: 1; }
.dialog-results { padding: 12px 30px; background: #fff; min-height: 120px; overflow-y: auto; overscroll-behavior: contain; }
.dialog-results .ranking-item { grid-template-columns: 45px minmax(0,1fr) 100px; padding: 12px 0; }
.dialog-foot { display: flex; flex-direction: column; gap: 12px; padding: 14px 30px; background: var(--paper); border-top: 1px solid var(--line); flex-shrink: 0; }
.dialog-foot-meta { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; color: var(--muted); }
.dialog-foot a { color: var(--gold-text); font-size: 13px; }
.pager { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.page-picker { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.page-picker select { min-height: 44px; max-width: 100%; padding: 7px; color: var(--ink); background: #fff; border: 1px solid #b9c4cf; }
.pager button { min-height: 44px; border: 1px solid #b9c4cf; background: #fff; padding: 8px 12px; color: var(--ink); }
.pager button:disabled { opacity: .45; cursor: default; }
.pager span { color: var(--muted); font-size: 13px; }

@media (max-width: 900px) {
  .wrap { width: min(100% - 40px, 680px); }
  .header-inner { height: 76px; }
  .main-nav { gap: 14px; font-size: 13px; }
  .brand-name { font-size: 19px; }
  .brand-mark, .brand-mark img { width: 44px; height: 44px; }
  .hero-inner { padding: 48px 0; }
  .hero-inner::after { right: -350px; }
  .rank-grid { gap: 12px; }
  .rank-card { padding: 20px; }
  .rank-card h3 { font-size: 21px; }
  .ranking-item { grid-template-columns: 24px minmax(0,1fr) auto; gap: 5px; }
  .name { font-size: 14px; }
  .row-details { font-size: 12px; }
  .score { font-size: 12px; }
  .method-inner { display: block; }
  .method-copy { margin-top: 20px; }
}
@media (max-width: 600px) {
  .wrap { width: calc(100% - 40px); }
  .header-inner { height: auto; padding-block: 18px; flex-wrap: wrap; gap: 18px; }
  .main-nav { width: 100%; justify-content: space-between; gap: 10px; }
  .brand-name small { font-size: 8px; }
  .hero-inner { padding: 22px 0 26px; }
  .hero-inner::after { display: none; }
  h1 br { display: initial; }
  h1 { font-size: 34px; line-height: 1.35; }
  .hero-copy { font-size: 15px; line-height: 1.7; }
  .period-bar { display: block; padding: 10px; }
  .feature-period-bar { display: block; padding: 10px; }
  .period-switch { justify-content: space-between; }
  .period-switch button { flex: 1; padding: 10px 4px; }
  .period-note { display: block; padding: 8px 3px 2px; font-size: 11px; }
  .section { padding: 37px 0; }
  .today { padding-top: 26px; }
  .section-index { margin-bottom: 14px; font-size: 11px; }
  .section h2, .other-section h2, .method h2 { font-size: 27px; }
  .section-head { display: block; }
  .section-head p, .section-lead { font-size: 14px; }
  .update-state { display: inline-block; margin: 15px 0 0; }
  .rank-grid { grid-template-columns: 1fr; gap: 12px; }
  .rank-card { min-height: 0; }
  .rank-card h3 { font-size: 21px; }
  .rank-card .desc { margin-bottom: 14px; }
  .ranking-item { grid-template-columns: 24px minmax(0,1fr) auto; gap: 6px; }
  .row-details { font-size: 12px; }
  .score { font-size: 12px; }
  .other-section { padding: 37px 0; }
  .other-inner { display: block; }
  .other-inner ul { margin-top: 18px; }
  .other-inner li { width: 100%; }
  .method { padding: 39px 0; }
  .method-copy p { font-size: 13px; }
  .footer-inner { display: block; line-height: 1.8; }
  .dialog-head { padding: 20px 18px 12px; }
  .dialog-head h2 { font-size: 23px; }
  .dialog-results { padding: 8px 18px; }
  .dialog-results .ranking-item { grid-template-columns: 40px minmax(0,1fr) auto; }
  .dialog-foot { padding: 12px; }
  .page-picker { font-size: 0; gap: 0; }
  .page-picker select { font-size: 12px; width: 148px; }
  .pager { gap: 6px; }
  .pager button { padding: 10px 8px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rank-card { transition: none; }
}
