:root {
  --bg: #f3f6fa;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --ink: #152033;
  --muted: #5d6778;
  --line: #dbe3ed;
  --line-strong: #c6d2df;
  --brand: #145c8e;
  --brand-strong: #0d466e;
  --brand-soft: #e8f2fa;
  --teal: #0f766e;
  --teal-soft: #e7f6f4;
  --low-bg: #e8f7ee;
  --low-ink: #17663a;
  --medium-bg: #fff4d8;
  --medium-ink: #8a5600;
  --high-bg: #fdeceb;
  --high-ink: #a12820;
  --shadow: 0 14px 40px rgba(21, 32, 51, 0.08);
  --shadow-soft: 0 6px 20px rgba(21, 32, 51, 0.06);
  --radius: 18px;
  --radius-sm: 12px;
  --container: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 8% 0%, rgba(20, 92, 142, 0.08), transparent 32rem),
    var(--bg);
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid rgba(20, 92, 142, 0.42);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(219, 227, 237, 0.8);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
}

.header-inner {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 0.01em;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--brand), var(--teal));
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow: 0 8px 18px rgba(20, 92, 142, 0.22);
}

.brand-sub {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 14px;
}

.site-nav a {
  color: var(--muted);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--brand);
  text-decoration: none;
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

.page-main {
  padding: 44px 0 72px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.7fr);
  gap: 28px;
  align-items: stretch;
  padding: 34px 0 42px;
}

.hero-copy {
  padding: 24px 10px 20px 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--brand);
  border-radius: 2px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.hero-copy > p {
  max-width: 690px;
  margin-bottom: 26px;
  color: var(--muted);
  font-size: 17px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hero-notice {
  max-width: 680px;
  margin-top: 18px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.button-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 10px 22px rgba(20, 92, 142, 0.2);
}

.button-primary:hover {
  background: var(--brand-strong);
}

.button-secondary {
  border-color: var(--line-strong);
  background: var(--surface);
  color: var(--ink);
}

.button-secondary:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.button-ghost {
  padding-inline: 4px;
  color: var(--brand);
}

.safety-card {
  position: relative;
  overflow: hidden;
  padding: 26px;
  border: 1px solid rgba(198, 210, 223, 0.8);
  border-radius: var(--radius);
  background: linear-gradient(160deg, #ffffff 0%, #f4f9fd 100%);
  box-shadow: var(--shadow);
}

.safety-card::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -56px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(15, 118, 110, 0.07);
}

.safety-card h2 {
  position: relative;
  margin-bottom: 10px;
  font-size: 20px;
}

.safety-card > p {
  position: relative;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 14px;
}

.mini-steps {
  position: relative;
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: safety;
}

.mini-steps li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  color: var(--ink);
  font-size: 14px;
}

.mini-steps li::before {
  counter-increment: safety;
  content: counter(safety);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
}

.verified-line {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.verified-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.1);
}

.section {
  margin-top: 34px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}

.section-heading h2 {
  margin-bottom: 0;
  font-size: 24px;
  line-height: 1.25;
}

.section-heading p {
  max-width: 540px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.filter-panel {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.filter-grid.is-compact {
  grid-template-columns: minmax(180px, 0.7fr) minmax(0, 1.8fr);
}

.filter-grid.is-compact .search-field {
  grid-column: auto;
}

.field {
  display: grid;
  gap: 7px;
}

.field label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.field select,
.field input {
  width: 100%;
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  outline: none;
}

.field select:focus,
.field input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(20, 92, 142, 0.1);
}

.search-field {
  grid-column: span 2;
}

.field-help {
  align-self: center;
  color: var(--muted);
  font-size: 12px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.chip {
  min-height: 34px;
  padding: 5px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.chip:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.chip.is-active {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

.result-bar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin: 22px 0 14px;
  color: var(--muted);
  font-size: 13px;
}

.result-bar strong {
  color: var(--ink);
}

.offer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.offer-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  box-shadow: 0 2px 0 rgba(21, 32, 51, 0.02);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.offer-card:hover {
  transform: translateY(-2px);
  border-color: #bfd2e2;
  box-shadow: var(--shadow-soft);
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.card-top > div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  justify-content: flex-end;
}

.operator-mark {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.operator-mark::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 3px;
  background: var(--brand);
}

.operator-mark[data-operator="cucc"]::before {
  background: #c2410c;
}

.operator-mark[data-operator="ctcc"]::before {
  background: #0f766e;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
}

.badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.badge-low,
.level-low {
  background: var(--low-bg);
  color: var(--low-ink);
}

.badge-medium,
.level-medium {
  background: var(--medium-bg);
  color: var(--medium-ink);
}

.badge-high,
.level-high {
  background: var(--high-bg);
  color: var(--high-ink);
}

.badge-estimate {
  background: var(--surface-soft);
  color: var(--muted);
}

.badge-estimate::before {
  background: var(--muted);
}

.offer-card h3 {
  margin-bottom: 8px;
  font-size: 18px;
  line-height: 1.35;
}

.card-summary {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 14px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 12px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--teal);
  font-weight: 700;
}

.status-pill.is-unknown {
  color: var(--medium-ink);
}

.status-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
}

.favorite-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 32px;
  padding: 4px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.favorite-button:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.favorite-button.is-active {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--brand);
}

.side-actions .favorite-button {
  width: 100%;
  min-height: 42px;
}

.text-link {
  font-size: 13px;
  font-weight: 700;
}

.text-link::after {
  content: " →";
}

.empty-state {
  display: none;
  padding: 44px 24px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface-soft);
  text-align: center;
}

.empty-state.is-visible {
  display: block;
}

.empty-state h3 {
  margin-bottom: 8px;
}

.empty-state p {
  margin-bottom: 18px;
  color: var(--muted);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.info-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.info-card span {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-bottom: 12px;
  border-radius: 9px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
}

.info-card h3 {
  margin-bottom: 6px;
  font-size: 15px;
}

.info-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.faq-item summary {
  padding: 16px 18px;
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  float: right;
  color: var(--brand);
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin: 0;
  padding: 0 18px 18px;
  color: var(--muted);
  font-size: 14px;
}

.notice {
  padding: 16px 18px;
  border: 1px solid #cfe0ec;
  border-radius: var(--radius-sm);
  background: var(--brand-soft);
  color: #24445d;
  font-size: 13px;
}

.notice strong {
  color: var(--brand-strong);
}

.site-footer {
  margin-top: 54px;
  padding: 30px 0 40px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.5);
}

.footer-inner {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 26px;
}

.footer-inner p {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 12px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 12px;
}

.page-head {
  padding: 26px 0 8px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 13px;
}

.breadcrumb span {
  color: var(--line-strong);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 22px;
  align-items: start;
}

.detail-main {
  min-width: 0;
}

.detail-card,
.side-card,
.go-card,
.about-card,
.calculator-card,
.result-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.detail-card {
  padding: 28px;
}

.detail-card h1 {
  margin-bottom: 12px;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.03em;
}

.detail-lead {
  color: var(--muted);
  font-size: 16px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 22px;
}

.detail-section {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.detail-section h2 {
  margin-bottom: 12px;
  font-size: 20px;
}

.detail-list {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.detail-list li + li {
  margin-top: 7px;
}

.steps-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: steps;
}

.steps-list li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  color: var(--muted);
}

.steps-list li::before {
  counter-increment: steps;
  content: counter(steps);
  width: 28px;
  height: 28px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
}

.side-card {
  padding: 20px;
}

.side-card + .side-card {
  margin-top: 14px;
}

.side-card h2 {
  margin-bottom: 12px;
  font-size: 16px;
}

.side-card p {
  color: var(--muted);
  font-size: 13px;
}

.side-actions {
  display: grid;
  gap: 9px;
  margin-top: 16px;
}

.side-actions .button {
  width: 100%;
}

.score-list {
  display: grid;
  gap: 11px;
}

.score-row {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) 22px;
  gap: 9px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
}

.score-track {
  height: 7px;
  overflow: hidden;
  border-radius: 99px;
  background: #edf1f5;
}

.score-fill {
  height: 100%;
  border-radius: inherit;
  background: var(--brand);
}

.score-value {
  color: var(--ink);
  font-weight: 800;
  text-align: right;
}

.summary-box {
  padding: 13px 14px;
  border-radius: 10px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 13px;
}

.go-wrap {
  display: grid;
  place-items: center;
  min-height: 62vh;
}

.go-card {
  width: min(560px, 100%);
  padding: 30px;
  text-align: center;
}

.go-card h1 {
  margin-bottom: 10px;
  font-size: clamp(26px, 4vw, 38px);
  letter-spacing: -0.03em;
}

.go-card > p {
  color: var(--muted);
}

.go-domain {
  display: grid;
  gap: 5px;
  margin: 22px 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
}

.go-domain span {
  color: var(--muted);
  font-size: 12px;
}

.go-domain strong {
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 15px;
}

.confirm-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 18px 0;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 13px;
  text-align: left;
}

.confirm-check input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--brand);
}

.go-actions {
  display: grid;
  gap: 10px;
}

.go-actions .button[disabled] {
  cursor: not-allowed;
  opacity: 0.45;
  transform: none;
}

.about-grid {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.about-toc {
  position: sticky;
  top: 92px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.about-toc strong {
  display: block;
  margin-bottom: 10px;
  font-size: 13px;
}

.about-toc a {
  display: block;
  padding: 5px 0;
  color: var(--muted);
  font-size: 13px;
}

.about-card {
  padding: 28px;
}

.about-card section + section {
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.about-card h1 {
  margin-bottom: 12px;
  font-size: clamp(30px, 4vw, 46px);
}

.about-card h2 {
  margin-bottom: 12px;
  font-size: 21px;
}

.about-card p,
.about-card li {
  color: var(--muted);
}

.about-card ul {
  padding-left: 20px;
}

.rule-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.rule-card,
.level-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.rule-card span {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
}

.rule-card h3,
.level-card h3 {
  margin-bottom: 7px;
  font-size: 15px;
}

.rule-card p,
.level-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
}

.level-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.level-card .badge {
  margin-bottom: 10px;
}

.timeline {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0 0 0 22px;
  border-left: 2px solid var(--line);
  list-style: none;
}

.timeline-item {
  position: relative;
  padding: 0 0 26px 18px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -29px;
  top: 6px;
  width: 12px;
  height: 12px;
  border: 2px solid var(--surface);
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 1px var(--brand);
}

.timeline-date {
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
}

.timeline-item h2 {
  margin: 4px 0 7px;
  font-size: 18px;
}

.timeline-item p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.difficulty-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 22px;
  align-items: start;
}

.calculator-card {
  padding: 26px;
}

.calculator-card h1 {
  margin-bottom: 10px;
  font-size: clamp(30px, 4vw, 46px);
}

.calculator-card > p {
  color: var(--muted);
}

.dim-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 16px;
  align-items: center;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.dim-control:first-of-type {
  margin-top: 18px;
}

.dim-control label {
  font-weight: 700;
}

.dim-control small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}

.range-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.range-wrap input[type="range"] {
  width: 150px;
  accent-color: var(--brand);
}

.range-value {
  min-width: 24px;
  color: var(--brand);
  font-weight: 800;
  text-align: center;
}

.flag-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.flag-option {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  color: var(--muted);
  font-size: 13px;
}

.flag-option input {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  margin-top: 2px;
  accent-color: var(--brand);
}

.result-panel {
  position: sticky;
  top: 92px;
  padding: 24px;
}

.level-preview {
  display: grid;
  gap: 10px;
  padding: 20px;
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
}

.level-preview .badge {
  width: max-content;
  font-size: 14px;
}

.level-preview strong {
  font-size: 28px;
  line-height: 1.1;
}

.level-preview p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
}

.reason-list {
  margin: 18px 0 0;
  padding-left: 20px;
  color: var(--muted);
  font-size: 13px;
}

.reason-list li + li {
  margin-top: 6px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 40;
  transform: translate(-50%, 20px);
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.hidden {
  display: none !important;
}

@media (max-width: 960px) {
  .hero,
  .detail-layout,
  .difficulty-layout,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding-right: 0;
  }

  .offer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rule-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .level-grid {
    grid-template-columns: 1fr;
  }

  .about-toc,
  .result-panel {
    position: static;
  }

  .about-toc {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 14px;
    align-items: center;
  }

  .about-toc strong {
    width: 100%;
    margin-bottom: 4px;
  }

  .about-toc a {
    padding: 0;
  }
}

@media (max-width: 720px) {
  .header-inner {
    min-height: 62px;
  }

  .site-nav {
    gap: 10px;
    font-size: 12.5px;
  }

  .site-nav a:first-child {
    display: none;
  }

  .brand-sub {
    display: none;
  }

  .brand {
    gap: 9px;
    font-size: 15px;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    font-size: 11px;
  }

  .page-main {
    padding-top: 22px;
  }

  .hero {
    padding-top: 14px;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(28px, 8.4vw, 40px);
    letter-spacing: -0.05em;
  }

  .hero-copy > p {
    font-size: 16px;
  }

  .filter-grid,
  .filter-grid.is-compact,
  .offer-grid,
  .info-grid,
  .rule-grid,
  .flag-grid {
    grid-template-columns: 1fr;
  }

  .search-field {
    grid-column: auto;
  }

  .section-heading,
  .footer-inner,
  .result-bar {
    align-items: flex-start;
    flex-direction: column;
  }

  .offer-card {
    padding: 18px;
  }

  .detail-card,
  .about-card,
  .calculator-card,
  .go-card {
    padding: 20px;
  }

  .safety-card {
    padding: 20px;
  }

  .dim-control {
    grid-template-columns: 1fr;
  }

  .range-wrap {
    justify-content: space-between;
  }

  .range-wrap input[type="range"] {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
