:root {
  color-scheme: dark;
  --canvas: #101817;
  --surface: #17211f;
  --raised: #1d2b27;
  --hover: #21332d;
  --line: #2d4039;
  --text: #e9f1ee;
  --secondary: #b3c4bd;
  --muted: #91a69c;
  --accent: #6ad6b0;
  --accent-bg: #163d2e;
  --radius: 10px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}
* {box-sizing: border-box;}
html {scroll-behavior: smooth;}
body {margin: 0; background: var(--canvas); color: var(--text); font-family: var(--font); font-size: 14px; line-height: 1.6; -webkit-font-smoothing: antialiased;}
button, input, select {font: inherit;}
button, a, select, label {touch-action: manipulation; -webkit-tap-highlight-color: #6ad6b026;}
button, select {cursor: pointer;}
a {color: inherit; text-decoration: none;}
a:hover {color: var(--accent);}
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible, [tabindex]:focus-visible {outline: 2px solid var(--accent); outline-offset: 4px;}
[hidden] {display: none !important;}
.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;}
.skip-link {position: fixed; left: 20px; top: -80px; padding: 10px 18px; border-radius: 6px; background: var(--accent); color: var(--canvas); z-index: 20;}
.skip-link:focus {top: 12px; color: var(--canvas);}
.shell {max-width: 1216px; padding-inline: 32px; margin-inline: auto;}
.topbar {border-bottom: 1px solid var(--line);}
.topbar-inner {min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 20px;}
.wordmark {display: flex; align-items: center; gap: 12px; font-size: 16px; letter-spacing: -.02em; font-weight: 600;}
.brand-icon {width: 30px; height: 30px; color: var(--accent); flex-shrink: 0;}
.brand-note {display: inline-block; border-left: 1px solid var(--line); margin-left: 6px; padding-left: 14px; color: var(--muted); font-size: 12px; font-weight: 400; letter-spacing: .01em;}
.download {display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 42px; border: 1px solid #4d7966; border-radius: 8px; padding: 8px 15px; color: #a6eccd; background: #1c352b; font-size: 13px; font-weight: 500; white-space: nowrap;}
.download:hover {background: #244b3b; color: #c6ffe1; border-color: #6d9d85;}
.icon {width: 17px; height: 17px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;}
main {padding-block: 29px 38px;}
.heading-row {display: flex; align-items: flex-start; justify-content: space-between; gap: 22px;}
h1 {font-size: 28px; font-weight: 560; line-height: 1.25; letter-spacing: -.035em; margin: 0 0 9px; text-wrap: balance;}
.description {margin: 0; color: var(--secondary); font-size: 13px;}
.description strong {font-weight: 500; color: var(--text);}
.channel {border: 1px solid #355747; color: #9fdbbe; background: #152b22; border-radius: 5px; padding: 4px 9px; font-size: 12px; white-space: nowrap; margin-top: 3px;}
.metadata {display: flex; flex-wrap: wrap; column-gap: 20px; row-gap: 2px; color: var(--muted); font-size: 11px; margin: 12px 0 20px;}
.metadata time {font-variant-numeric: tabular-nums;}
.lowest-strip {display: grid; grid-template-columns: repeat(3,1fr); border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); overflow: hidden; margin-bottom: 22px;}
.lowest {position: relative; text-align: left; background: transparent; border: 0; color: var(--text); padding: 12px 18px; display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: baseline; min-width: 0;}
.lowest + .lowest {border-left: 1px solid var(--line);}
.lowest:hover {background: var(--hover);}
.lowest:focus-visible {outline-offset: -4px; border-radius: 8px;}
.lowest-plan {font-size: 12px; color: var(--secondary); font-weight: 500;}
.lowest-value {font-size: 24px; font-weight: 550; line-height: 1.35; letter-spacing: -.04em; color: var(--accent); font-variant-numeric: tabular-nums; grid-column: 2; grid-row: 1 / 3;}
.lowest-value small {font-size: 15px; margin-right: 3px;}
.lowest-note {font-size: 11px; color: var(--muted);}
.filters {display: grid; grid-template-columns: minmax(200px,1fr) 192px 192px; gap: 12px; align-items: end; margin-bottom: 14px;}
.field {min-width: 0;}
.field-label {display: block; font-size: 11px; color: var(--muted); margin-bottom: 5px;}
.search-control {position: relative; display: flex; align-items: center; gap: 9px; padding-left: 13px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; color: var(--muted);}
.search-control:focus-within {border-color: #6a9e84;}
.search-control input {appearance: none; min-width: 0; width: 100%; height: 42px; border: 0; border-radius: 8px; background: transparent; color: var(--text); padding: 9px 38px 9px 0; font-size: 14px;}
.search-control input::-webkit-search-cancel-button {appearance: none;}
.search-control input::placeholder {color: var(--muted);}
.search-control input:focus-visible {outline: none;}
.clear-search {position: absolute; right: 2px; top: 1px; width: 40px; height: 40px; display: grid; place-items: center; border: none; background: transparent; color: var(--secondary); border-radius: 6px;}
.clear-search:hover {background: var(--raised); color: var(--text);}
.select-wrap {position: relative;}
.select-wrap::after {content: ''; position: absolute; right: 14px; top: 17px; width: 6px; height: 6px; transform: rotate(45deg); border-right: 1px solid var(--secondary); border-bottom: 1px solid var(--secondary); pointer-events: none;}
select {appearance: none; width: 100%; height: 44px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--text); padding: 9px 34px 9px 12px; font-size: 13px;}
.results-toolbar {display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 36px; margin-bottom: 7px; font-size: 12px; color: var(--muted);}
.results-count strong {color: var(--text); font-weight: 500;}
.results-actions {display: flex; align-items: center; gap: 20px;}
.original-toggle {display: inline-flex; align-items: center; gap: 7px; min-height: 36px; white-space: nowrap; cursor: pointer; color: var(--secondary);}
.original-toggle input {width: 14px; height: 14px; margin: 0; accent-color: var(--accent);}
.text-button {border: 0; background: transparent; color: var(--accent); min-height: 36px; padding: 4px 0; font-size: 12px; white-space: nowrap;}
.text-button:hover {color: #b5f5d6; text-decoration: underline; text-underline-offset: 4px;}
.text-button:disabled {cursor: default; color: #86988f; text-decoration: none;}
.table-shell {border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); overflow: hidden;}
.table-scroll {overflow: auto; max-height: 690px; scrollbar-color: #456354 var(--surface); scrollbar-width: thin; overscroll-behavior: contain;}
table {width: 100%; border-spacing: 0; border-collapse: separate; table-layout: fixed; font-size: 14px;}
col.country-column {width: 34%;}
col.price-column {width: 22%;}
th, td {border-bottom: 1px solid var(--line); padding: 11px 22px;}
thead th {position: sticky; top: 0; z-index: 3; background: #20302a; text-align: right; height: 48px; font-size: 12px; font-weight: 500; color: var(--secondary);}
thead th:first-child {text-align: left; left: 0; z-index: 4;}
.country-head {display: flex; align-items: baseline; gap: 12px;}
.country-head small {color: #a8bdb0; font-size: 11px; font-weight: 400;}
.sort-button {border: 0; background: transparent; color: inherit; padding: 7px 0 7px 9px; display: inline-flex; justify-content: flex-end; align-items: center; gap: 8px; min-height: 32px; font-size: 13px; font-weight: 550; white-space: nowrap;}
.sort-button:hover {color: var(--accent);}
.sort-mark {width: 12px; font-size: 14px; color: #9fb4a8; font-weight: 400;}
th[aria-sort='ascending'] .sort-mark, th[aria-sort='descending'] .sort-mark {color: var(--accent);}
tbody th {position: sticky; left: 0; z-index: 1; text-align: left; background: var(--surface); font-weight: 450; line-height: 1.45;}
tbody td {text-align: right; background: var(--surface); vertical-align: middle;}
tbody tr:hover th, tbody tr:hover td {background: var(--hover);}
tbody tr:last-child th, tbody tr:last-child td {border-bottom: 0;}
.country-name {display: block; font-size: 14px;}
.country-meta {display: block; margin-top: 4px; font-size: 10px; line-height: 1.4; color: var(--muted); font-weight: 400;}
.country-code {display: inline-block; min-width: 28px; letter-spacing: .03em; font-variant-numeric: tabular-nums;}
.scope-name {padding-left: 8px; border-left: 1px solid #3d5147;}
.price-value {font-size: 16px; font-variant-numeric: tabular-nums; letter-spacing: -.015em; font-weight: 500; white-space: nowrap;}
.price-value.is-minimum {color: var(--accent);}
.price-value.is-minimum::after {content: '最低'; display: inline-block; margin-left: 7px; padding: 0 4px; border: 1px solid #426954; border-radius: 3px; font-size: 9px; font-weight: 400; letter-spacing: 0; vertical-align: 2px; line-height: 1.5;}
.missing {color: var(--muted); font-weight: 400;}
.original {display: inline-block; margin-top: 4px; color: var(--secondary); font-size: 11px; font-variant-numeric: tabular-nums; text-decoration: underline; text-decoration-color: #4b6658; text-underline-offset: 3px; white-space: nowrap;}
.original:hover {color: var(--accent); text-decoration-color: var(--accent);}
.hide-originals .original {display: none;}
.table-footnote {display: flex; justify-content: space-between; align-items: center; gap: 10px; border-top: 1px solid var(--line); padding: 9px 18px; font-size: 11px; color: var(--muted); background: #16201c;}
.mobile-hint {display: none;}
.empty-state {padding: 50px 20px; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);}
.empty-state h2 {margin: 0 0 8px; font-size: 18px; font-weight: 500;}
.empty-state p {margin: 0 0 18px; color: var(--secondary); font-size: 13px;}
.empty-state button {border: 1px solid #4c735e; color: var(--accent); background: var(--accent-bg); padding: 9px 16px; border-radius: 7px; min-height: 44px;}
.method {margin-top: 19px; color: var(--muted); font-size: 12px;}
.method summary {cursor: pointer; color: var(--secondary); width: fit-content; min-height: 34px; padding-top: 5px;}
.method-content {padding-top: 2px; max-width: 1000px;}
.method-content p {margin: 5px 0 10px;}
.source-links {display: flex; gap: 18px; flex-wrap: wrap;}
.source-links a {color: #9ed6b9; text-decoration: underline; text-underline-offset: 3px;}
.page-footer {border-top: 1px solid var(--line); color: var(--muted); font-size: 11px;}
.footer-inner {display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-block: 16px;}
.footer-inner a {color: var(--secondary); text-decoration: underline; text-underline-offset: 3px;}
@media (min-width: 1400px) {.table-scroll {max-height: 760px;}}
@media (max-width: 760px) {
  .shell {padding-inline: 20px;}
  .brand-note {display: none;}
  .filters {grid-template-columns: 1fr 1fr; gap: 10px;}
  .search-field {grid-column: 1/-1;}
  .search-control input {font-size: 16px;}
  .lowest {padding: 11px 13px; grid-template-columns: 1fr; gap: 0;}
  .lowest-value {grid-column: 1; grid-row: 2; font-size: 22px; margin: 3px 0 2px;}
  .lowest-note {grid-row: 3;}
  .metadata {column-gap: 14px; font-size: 10px; margin-bottom: 17px;}
  .lowest-strip {margin-bottom: 17px;}
  table {min-width: 670px;}
  col.country-column {width: 196px;}
  col.price-column {width: 158px;}
  th, td {padding: 11px 16px;}
  .country-head {display: block;}
  .country-head small {display: block; font-size: 9px;}
  tbody th, thead th:first-child {border-right: 1px solid #3a5144;}
  .table-footnote {padding-inline: 12px;}
  .mobile-hint {display: inline; color: var(--secondary);}
  .desktop-hint {display: none;}
  .table-scroll {max-height: 64vh; min-height: 180px;}
}
@media (max-width: 430px) {
  .shell {padding-inline: 16px;}
  .topbar-inner {min-height: 66px; gap: 10px;}
  .wordmark {font-size: 14px; gap: 8px;}
  .brand-icon {width: 24px; height: 24px;}
  .download {font-size: 11px; min-height: 40px; padding: 7px 10px; gap: 6px;}
  .download .icon {width: 14px; height: 14px;}
  main {padding-top: 22px;}
  h1 {font-size: 23px; margin-bottom: 8px;}
  .channel {font-size: 10px; padding: 3px 6px; margin-top: 2px;}
  .heading-row {gap: 8px;}
  .description {font-size: 11px; line-height: 1.75;}
  .metadata {display: block; line-height: 1.8; margin-top: 9px;}
  .metadata span {display: inline; margin-right: 9px;}
  .metadata span:last-child {display: block;}
  .lowest {padding: 10px;}
  .lowest-plan {font-size: 11px;}
  .lowest-value {font-size: 21px;}
  .lowest-value small {font-size: 12px; margin-right: 2px;}
  .lowest-note {font-size: 10px;}
  .results-toolbar {gap: 5px; font-size: 10px; margin-bottom: 6px;}
  .results-actions {gap: 10px;}
  .original-toggle {font-size: 10px; gap: 5px;}
  .text-button {font-size: 10px;}
  .results-count .count-suffix {display: none;}
  table {min-width: 589px;}
  col.country-column {width: 151px;}
  col.price-column {width: 146px;}
  th, td {padding: 11px 13px;}
  .country-name {font-size: 12px;}
  .country-meta {font-size: 9px;}
  .country-code {min-width: 22px;}
  .scope-name {padding-left: 5px;}
  .price-value {font-size: 15px;}
  .sort-button {font-size: 12px;}
  .table-footnote {font-size: 9px;}
  .footer-inner {align-items: flex-start; font-size: 10px;}
  .footer-inner p {margin: 0; max-width: 245px;}
}
@media (prefers-reduced-motion: reduce) {html {scroll-behavior: auto;}}
@media print {
  :root {color-scheme: light; --canvas: #fff; --surface: #fff; --text: #111; --secondary: #333; --muted: #555; --line: #ccc;}
  body {font-size: 10px;}
  .filters, .results-actions, .lowest-strip, .download, .skip-link, .page-footer, .mobile-hint {display: none;}
  .shell {max-width: none; padding-inline: 0;}
  .table-scroll {max-height: none; overflow: visible;}
  table {min-width: 0; font-size: 11px;}
  th, td {padding: 5px 10px;}
  thead th, tbody th {position: static; background: #eee; color: #111;}
  tbody th {background: #fff;}
  .price-value {font-size: 12px;}
  .price-value.is-minimum {color: #075b3e;}
  .method {break-inside: avoid;}
}
