:root {
  --accent: #33567f;
  --accent-soft: #eef2f7;
  --bg: #f6f5f2;
  --surface: #ffffff;
  --ink: #1a1c20;
  --text: #1a1c20;
  --muted: #8b909a;
  --faint: #b7bbc3;
  --border: #e9e7e2;
  --border-strong: #d9d6cf;
  --good: #2f6b4f;
  --warn: #a86a2f;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(26, 28, 32, .03);
  --shadow-lg: 0 18px 50px -20px rgba(26, 28, 32, .18);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text); background: var(--bg);
  line-height: 1.7; font-size: 15px;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 14px;
  padding: 18px 32px;
  background: rgba(246, 245, 242, .82);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand .logo { width: 32px; height: 32px; flex: 0 0 auto; border-radius: 9px; }
.brand b { font-size: 15px; font-weight: 600; letter-spacing: .02em; }
.brand-sub { display: block; font-size: 10px; color: var(--faint); letter-spacing: .22em; font-weight: 500; }
.topbar .spacer { flex: 1; }
.topbar .tag {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11px; color: var(--muted); letter-spacing: .06em;
  border: 1px solid var(--border-strong); padding: 5px 12px; border-radius: 999px; white-space: nowrap;
}
.topbar .tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--good); }

.wrap { max-width: 1040px; margin: 0 auto; padding: 56px 32px 96px; }
.page-head { margin: 0 0 40px; }
.page-head h1 { font-size: clamp(30px, 5vw, 44px); font-weight: 600; letter-spacing: -.02em; line-height: 1.12; margin: 0 0 14px; }
.page-head .lead { color: var(--muted); margin: 0; font-size: 16px; max-width: 62ch; }

.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 32px; margin-bottom: 24px;
}
.card > h2 { font-size: 18px; font-weight: 600; letter-spacing: -.01em; margin: 0 0 6px; display: flex; align-items: center; gap: 10px; }
.card-sub { color: var(--muted); font-size: 13px; margin: 0 0 24px; }

.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field > label { font-size: 12px; color: var(--muted); font-weight: 500; letter-spacing: .04em; }
.field .hint { font-size: 12px; color: var(--faint); }
.field .unit { position: relative; }
.field .unit > span { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--faint); font-size: 13px; pointer-events: none; }
input, select, textarea {
  width: 100%; padding: 12px 14px; font-size: 15px; color: var(--text);
  background: #fff; border: 1px solid var(--border-strong); border-radius: 10px;
  outline: none; transition: border-color .18s, box-shadow .18s; font-family: inherit;
}
input::placeholder, textarea::placeholder { color: var(--faint); }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
input[readonly] { background: #fbfaf8; color: var(--muted); }
.field .unit input { padding-right: 46px; }
textarea { resize: vertical; min-height: 92px; line-height: 1.6; }

.seg { display: inline-flex; background: #f0efeb; border-radius: 10px; padding: 3px; gap: 3px; flex-wrap: wrap; }
.seg button { border: 0; background: transparent; padding: 8px 16px; border-radius: 8px; font-size: 14px; color: var(--muted); cursor: pointer; font-family: inherit; transition: all .18s; }
.seg button.active { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(26, 28, 32, .12); font-weight: 600; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 12px 22px; border-radius: 10px; border: 1px solid var(--border-strong);
  background: #fff; color: var(--ink); font-size: 14px; cursor: pointer; font-family: inherit;
  transition: all .18s; font-weight: 500; letter-spacing: .01em;
}
.btn:hover { border-color: var(--ink); }
.btn-primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-primary:hover { background: #000; border-color: #000; color: #fff; }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }

.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.stat { padding: 4px 0; min-width: 0; }
.stat .k { font-size: 12px; color: var(--muted); letter-spacing: .05em; margin-bottom: 8px; font-weight: 500; }
.stat .v { font-size: 32px; font-weight: 600; letter-spacing: -.02em; color: var(--ink); line-height: 1.1; word-break: break-word; font-variant-numeric: tabular-nums; }
.stat .v small { font-size: 14px; font-weight: 500; color: var(--muted); }
.stat.accent .v { color: var(--accent); }
.stat.good .v { color: var(--good); }

.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.compare .col { border: 1px solid var(--border); border-radius: 14px; padding: 24px; }
.compare .col h3 { margin: 0 0 16px; font-size: 15px; font-weight: 600; letter-spacing: .01em; }
.compare .col.best { border-color: var(--accent); box-shadow: inset 3px 0 0 var(--accent); }
.kv { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.kv:last-child { border-bottom: 0; }
.kv .k { color: var(--muted); }
.kv .v { font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }

.table-wrap { overflow: auto; border: 1px solid var(--border); border-radius: 14px; max-height: 440px; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 12px 18px; text-align: right; white-space: nowrap; border-bottom: 1px solid var(--border); }
th:first-child, td:first-child { text-align: left; }
thead th { position: sticky; top: 0; background: #fbfaf8; color: var(--muted); font-weight: 500; letter-spacing: .04em; font-size: 12px; z-index: 1; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--accent-soft); }
td.num, td { font-variant-numeric: tabular-nums; }

.note { font-size: 13px; color: var(--muted); background: #fbfaf8; border: 1px solid var(--border); border-radius: 12px; padding: 14px 18px; margin-top: 20px; }
.disclaimer { font-size: 12px; color: var(--warn); background: #fbf7f0; border: 1px solid #efe3d2; border-radius: 12px; padding: 14px 18px; margin-top: 20px; line-height: 1.7; }
.badge { display: inline-block; font-size: 11px; padding: 2px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-weight: 600; letter-spacing: .02em; }
.badge.good { background: #eaf3ee; color: var(--good); }

.tabs { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 28px; border-bottom: 1px solid var(--border); }
.tab { border: 0; background: transparent; padding: 12px 18px; font-size: 14px; cursor: pointer; color: var(--muted); font-family: inherit; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: all .18s; }
.tab:hover { color: var(--ink); }
.tab.active { color: var(--ink); border-bottom-color: var(--accent); font-weight: 600; }

.check-row { display: flex; flex-wrap: wrap; gap: 12px 22px; }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.check input { width: auto; }

details { border: 1px solid var(--border); border-radius: 12px; padding: 4px 20px; margin-top: 20px; }
details summary { cursor: pointer; font-weight: 600; padding: 14px 0; font-size: 14px; }
details[open] summary { border-bottom: 1px solid var(--border); margin-bottom: 14px; }

.foot { max-width: 1040px; margin: 0 auto; padding: 32px 32px 72px; color: var(--faint); font-size: 12px; border-top: 1px solid var(--border); }
.foot p { margin: 5px 0; }

.toast { position: fixed; left: 50%; bottom: 36px; transform: translateX(-50%) translateY(20px); background: var(--ink); color: #fff; padding: 12px 22px; border-radius: 10px; font-size: 14px; opacity: 0; transition: all .22s; z-index: 100; pointer-events: none; box-shadow: var(--shadow-lg); }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.hidden { display: none !important; }
.muted { color: var(--muted); }
.mt { margin-top: 24px; }
.nowrap { white-space: nowrap; }

@media (max-width: 680px) {
  .grid, .grid-3, .stat-grid, .compare { grid-template-columns: 1fr; }
  .stat-grid { gap: 20px; }
  .wrap { padding: 36px 20px 64px; }
  .card { padding: 24px; }
  .topbar { padding: 14px 20px; }
  .stat .v { font-size: 28px; }
  .foot { padding: 28px 20px 56px; }
}