:root {
  --paper: #f5f0e6;
  --paper-deep: #e9e0d0;
  --ink: #182526;
  --muted: #617071;
  --line: #cfc6b8;
  --card: rgba(255, 253, 248, 0.82);
  --teal: #245b55;
  --teal-dark: #173f3b;
  --orange: #d76b45;
  --yellow: #f4c45d;
  --shadow: 0 24px 70px rgba(42, 50, 45, 0.1);
  --serif: "Songti SC", "Noto Serif CJK SC", "Source Han Serif SC", serif;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 0%, rgba(244, 196, 93, 0.22), transparent 27rem),
    radial-gradient(circle at 100% 18%, rgba(36, 91, 85, 0.12), transparent 30rem),
    var(--paper);
  font-family: var(--sans);
  line-height: 1.7;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
.container { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.narrow { max-width: 760px; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(245, 240, 230, 0.9);
  border-bottom: 1px solid rgba(24, 37, 38, 0.1);
  backdrop-filter: blur(16px);
}
.header-row { min-height: 76px; display: flex; align-items: center; gap: 32px; }
.brand { display: flex; align-items: center; gap: 11px; margin-right: auto; }
.brand-mark {
  display: grid; place-items: center; width: 38px; height: 38px;
  color: var(--paper); background: var(--teal); border-radius: 50% 50% 44% 44%;
  font-family: var(--serif); font-size: 22px;
}
.brand b { display: block; font-family: var(--serif); font-size: 18px; letter-spacing: 0.06em; }
.brand small { display: block; margin-top: -4px; color: var(--muted); font-size: 10px; letter-spacing: 0.18em; }
.nav { display: flex; gap: 24px; color: var(--muted); font-size: 14px; }
.nav a:hover, .footer-links a:hover, .text-link:hover { color: var(--orange); }
.language-switch { position: relative; color: var(--muted); font-size: 12px; }
.language-switch summary { cursor: pointer; list-style: none; }
.language-switch summary::-webkit-details-marker { display: none; }
.language-links {
  position: absolute; top: 28px; right: 0; z-index: 30;
  min-width: 132px; padding: 9px; border: 1px solid var(--line);
  border-radius: 12px; background: #fffdf8; box-shadow: var(--shadow);
}
.language-links a { display: block; padding: 6px 9px; border-radius: 7px; white-space: nowrap; }
.language-links a:hover { background: var(--paper-deep); }
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 22px; border: 0; border-radius: 999px;
  color: #fff; background: var(--teal); font: 600 14px/1 var(--sans);
  cursor: pointer; transition: transform .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-2px); background: var(--teal-dark); }
.button-small { min-height: 38px; padding: 0 17px; font-size: 13px; }
.button-ghost { color: var(--teal); background: transparent; border: 1px solid var(--teal); }
.button-ghost:hover { color: #fff; }
.button-wide { width: 100%; }
.hero { padding: 84px 0 92px; }
.hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; gap: 70px; }
.eyebrow, .mini-label {
  margin: 0 0 16px; color: var(--orange); font-size: 12px;
  font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
}
.hero h1, .page-hero h1 {
  margin: 0; font-family: var(--serif); font-weight: 600;
  line-height: 1.08; letter-spacing: -.04em;
}
.hero h1 { font-size: clamp(54px, 8vw, 94px); }
.hero-lead { max-width: 650px; margin: 28px 0; color: #425153; font-size: 19px; }
.hero-actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.text-link { color: var(--teal); font-weight: 700; }
.micro-note { margin: 18px 0 0; color: var(--muted); font-size: 12px; }
.hero-card {
  padding: 30px; border: 1px solid rgba(36, 91, 85, .2); border-radius: 30px;
  background: var(--card); box-shadow: var(--shadow); transform: rotate(1.5deg);
}
.hero-card ol { padding: 0; margin: 0 0 24px; list-style: none; }
.hero-card li { display: grid; gap: 3px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.hero-card li span { color: var(--muted); font-size: 13px; }
.section { padding: 86px 0; }
.section-contrast {
  background: var(--teal);
  color: #f8f4eb;
}
.section-contrast .eyebrow { color: var(--yellow); }
.section-heading { max-width: 760px; margin-bottom: 36px; }
.section h2, .tool-banner h2, .side-card h2, .guidance-result h2 {
  margin: 0; font-family: var(--serif); font-weight: 600; line-height: 1.25;
}
.section h2 { font-size: clamp(32px, 4vw, 50px); }
.feature-grid, .steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-card, .step-card, .sign-card {
  position: relative; padding: 28px; border: 1px solid var(--line);
  border-radius: 24px; background: var(--card); transition: transform .2s ease, box-shadow .2s ease;
}
a.feature-card:hover, a.sign-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-card span { color: var(--orange); font: 600 12px/1 var(--sans); }
.feature-card h2, .feature-card h3, .step-card h2, .sign-card h3 {
  margin: 28px 0 10px; font-family: var(--serif); font-weight: 600;
}
.feature-card h3, .sign-card h3, .step-card h2 { font-size: 28px; }
.feature-card p, .step-card p, .sign-card p { margin: 0; color: var(--muted); }
.feature-card.muted { opacity: .62; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: start; }
.split p { color: rgba(255,255,255,.72); }
.outcome-list { display: grid; gap: 2px; }
.outcome-list article { padding: 20px 0; border-bottom: 1px solid rgba(255,255,255,.16); }
.outcome-list b { color: var(--yellow); }
.outcome-list p { margin: 4px 0 0; }
.inline-heading { max-width: none; display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.sign-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.sign-card span { color: var(--orange); font-size: 12px; }
.sign-card em { display: block; margin-top: 20px; color: var(--teal); font-style: normal; font-weight: 700; }
.tool-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 50px;
  padding: 52px; border-radius: 32px; background: var(--paper-deep);
  border: 1px solid var(--line);
}
.tool-banner p:not(.eyebrow) { max-width: 680px; margin-bottom: 0; color: var(--muted); }
.page-hero { padding: 82px 0 54px; border-bottom: 1px solid rgba(24,37,38,.1); }
.page-hero h1 { font-size: clamp(46px, 7vw, 76px); }
.page-hero .container > p:last-child { max-width: 710px; margin-top: 24px; color: #4c5e60; font-size: 18px; }
.date-line { margin: 14px 0 0; color: var(--orange); font-size: 14px; }
.article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 64px; align-items: start; }
.prose h2 { margin-top: 46px; font-family: var(--serif); font-size: 32px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: #435355; }
.prose ul { padding-left: 22px; }
.prose li { margin: 8px 0; }
.callout, .side-card {
  padding: 28px; border-radius: 22px; background: var(--card); border: 1px solid var(--line);
}
.callout { margin: 28px 0; border-left: 4px solid var(--orange); }
.callout p { margin-bottom: 0; }
.side-card { position: sticky; top: 100px; box-shadow: var(--shadow); }
.form-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.guidance-form, .guidance-result {
  padding: 34px; border-radius: 28px; background: var(--card); border: 1px solid var(--line);
}
.guidance-form label { display: grid; gap: 8px; margin-bottom: 18px; font-size: 13px; font-weight: 700; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
select, input {
  width: 100%; min-height: 50px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 12px;
  color: var(--ink); background: #fffdf8; font: inherit;
}
select:focus, input:focus { outline: 2px solid rgba(36,91,85,.25); border-color: var(--teal); }
.guidance-result { position: sticky; top: 100px; min-height: 380px; }
.guidance-result.empty { display: flex; flex-direction: column; justify-content: center; color: var(--muted); }
.result-block { padding: 18px 0; border-bottom: 1px solid var(--line); }
.result-block:last-child { border-bottom: 0; }
.result-block h3 { margin: 0 0 6px; font-family: var(--serif); font-size: 21px; }
.result-block p { margin: 0; color: #4a5b5c; }
.result-script { padding: 15px 17px; margin-top: 10px; border-radius: 14px; background: #edf1eb; }
.warning-box { padding: 14px 17px; margin-top: 18px; border-radius: 14px; background: #f8e6dc; color: #713c2c; font-size: 13px; }
.steps-grid { grid-template-columns: repeat(3, 1fr); }
.question-list p { color: rgba(255,255,255,.78); }
.site-footer { padding: 56px 0 40px; border-top: 1px solid rgba(24,37,38,.12); }
.footer-grid { display: flex; justify-content: space-between; gap: 40px; }
.footer-grid p { color: var(--muted); margin-bottom: 0; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px 22px; color: var(--muted); font-size: 13px; }
.error-code { color: var(--orange); font-family: var(--serif); font-size: 18px; }

@media (max-width: 900px) {
  .nav { display: none; }
  .hero-grid, .split, .form-layout, .article-grid { grid-template-columns: 1fr; }
  .hero-card, .guidance-result, .side-card { position: static; transform: none; }
  .feature-grid, .sign-grid, .steps-grid { grid-template-columns: 1fr 1fr; }
  .tool-banner { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 620px) {
  .container { width: min(100% - 28px, 1120px); }
  .header-row { min-height: 66px; }
  .brand small { display: none; }
  .header-row > .button { display: none; }
  .language-switch { margin-left: auto; }
  .hero { padding: 56px 0; }
  .hero h1 { font-size: 54px; }
  .section { padding: 58px 0; }
  .feature-grid, .sign-grid, .steps-grid, .field-grid { grid-template-columns: 1fr; }
  .inline-heading { align-items: flex-start; flex-direction: column; }
  .tool-banner, .guidance-form, .guidance-result { padding: 24px; }
  .footer-grid { flex-direction: column; }
  .footer-links { justify-content: flex-start; }
}
