:root {
  --bg: #f3eee6;
  --bg-deep: #e7f0ea;
  --paper: #fffcf8;
  --ink: #1e1915;
  --muted: #5f574f;
  --line: rgba(30, 25, 21, 0.12);
  --clay: #9a4630;
  --clay-deep: #6f3120;
  --celadon: #2c5e4e;
  --gold: #a68456;
  --danger: #8d2d2d;
  --shadow: 0 18px 50px rgba(62, 40, 24, 0.08);
  --sans: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --serif: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", PMingLiU, serif;
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 78px; }
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  background:
    radial-gradient(900px 420px at 0% -10%, rgba(154, 70, 48, 0.09), transparent 55%),
    radial-gradient(800px 380px at 100% 0%, rgba(44, 94, 78, 0.1), transparent 50%),
    var(--bg);
}
img, svg { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }

.skip {
  position: absolute;
  left: 16px;
  top: -40px;
  background: var(--ink);
  color: #fff;
  padding: 8px 12px;
  z-index: 50;
}
.skip:focus { top: 12px; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(243, 238, 230, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
}
.site-header.is-stuck { border-bottom-color: var(--line); }
.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 74px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  min-width: 0;
}
.brand__mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--celadon);
  background: #fff;
  border: 1px solid var(--line);
  flex: none;
}
.brand__text { display: flex; flex-direction: column; min-width: 0; }
.brand__text strong {
  font-size: 15px;
  font-weight: 650;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand__short { display: none; }
.brand__text small { color: var(--muted); font-size: 12px; }

.site-nav { display: flex; gap: 22px; }
.site-nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 15px;
}
.site-nav a:hover { color: var(--ink); }

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 999px;
  padding: 8px 12px;
  align-items: center;
  gap: 8px;
}
.nav-toggle__bars {
  width: 16px;
  height: 10px;
  background:
    linear-gradient(var(--ink), var(--ink)) 0 0 / 100% 1.5px no-repeat,
    linear-gradient(var(--ink), var(--ink)) 0 50% / 100% 1.5px no-repeat,
    linear-gradient(var(--ink), var(--ink)) 0 100% / 100% 1.5px no-repeat;
}
.nav-toggle__label { font-size: 13px; }

.hero { padding: 54px 0 28px; }
.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 42px;
  align-items: center;
}
.eyebrow {
  margin: 0 0 12px;
  color: var(--celadon);
  letter-spacing: 0.14em;
  font-size: 13px;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: 0.01em; }
h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.25;
}
.lead {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 17px;
  max-width: 40em;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}
.pills li {
  border: 1px solid var(--line);
  background: rgba(255, 252, 248, 0.7);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, opacity 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: 0.7; cursor: progress; transform: none; }
.btn--primary { background: var(--celadon); color: #f7fbf8; }
.btn--primary:hover { background: #244f42; }
.btn--ghost { background: transparent; border-color: rgba(30, 25, 21, 0.22); }
.btn--block { width: 100%; }

.still {
  background: linear-gradient(180deg, #fff, #f7f1e8);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.still svg { display: block; width: 100%; height: auto; }
.still__caption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 22px 18px;
  color: var(--muted);
  font-size: 13px;
}
.still__caption strong { color: var(--ink); font-weight: 600; }

.factbar { padding: 8px 0 10px; }
.factbar__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr 0.9fr;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 252, 248, 0.76);
  overflow: hidden;
}
.fact { padding: 16px 18px; }
.fact + .fact { border-left: 1px solid var(--line); }
.fact span, .info-list dt {
  display: block;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.06em;
}
.fact strong, .info-list dd { display: block; margin: 4px 0 0; font-size: 14px; font-weight: 600; }

.section { padding: 64px 0; }
.section--alt {
  background: linear-gradient(180deg, rgba(44, 94, 78, 0.06), rgba(44, 94, 78, 0.02));
  border-block: 1px solid var(--line);
}
.section__head {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 26px;
}
.section__head h2 { margin: 0; font-size: 32px; }
.section__head p { margin: 8px 0 0; color: var(--muted); max-width: 40em; }
.section__index {
  font-family: var(--serif);
  color: var(--gold);
  font-size: 14px;
  padding-top: 10px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px 18px 20px;
  box-shadow: 0 10px 30px rgba(62, 40, 24, 0.04);
}
.card__art {
  height: 112px;
  border-radius: 16px;
  background:
    radial-gradient(80px 50px at 70% 30%, rgba(154, 70, 48, 0.12), transparent 70%),
    #f6f1e8;
  color: var(--celadon);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}
.card__art svg { width: 150px; height: 110px; }
.card h3 { margin: 0 0 8px; font-size: 24px; }
.card p { margin: 0; color: var(--muted); min-height: 4.8em; }
.text-btn {
  margin-top: 14px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--clay);
  cursor: pointer;
  font-weight: 600;
}
.text-btn:hover { color: var(--clay-deep); }

.about {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: start;
}
.about__copy p { margin: 0 0 14px; }
.quiet { color: var(--muted); font-size: 14px; }
.points {
  list-style: none;
  margin: 46px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.points li {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
}
.points strong { display: block; }
.points span { color: var(--muted); font-size: 14px; }

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.steps li {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  min-height: 180px;
}
.steps span {
  font-family: var(--serif);
  color: var(--celadon);
  font-size: 20px;
}
.steps h3 { margin: 10px 0 6px; font-size: 22px; }
.steps p { margin: 0; color: var(--muted); font-size: 14px; }

.section--contact { padding-top: 28px; }
.contact {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 18px;
  align-items: stretch;
}
.info-card, .form-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--paper);
  padding: 28px;
  box-shadow: var(--shadow);
}
.info-card {
  background:
    linear-gradient(180deg, rgba(44, 94, 78, 0.1), rgba(255, 252, 248, 0.4) 36%),
    var(--paper);
}
.info-card h2, .form-card h2 { margin: 0 0 8px; font-size: 30px; }
.info-card > p, .form-lead { margin: 0; color: var(--muted); }
.info-list { margin: 22px 0 0; }
.info-list div { padding: 12px 0; border-top: 1px solid var(--line); }
.info-list dd { line-height: 1.5; }

.form-lead.is-picked { color: var(--celadon); }
.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 14px;
  margin-top: 18px;
}
.field--wide { grid-column: 1 / -1; }
.field label, .agree span { font-size: 14px; }
.field input, .field select, .field textarea {
  width: 100%;
  margin-top: 6px;
  border: 1px solid rgba(30, 25, 21, 0.16);
  background: #fff;
  border-radius: 12px;
  padding: 12px 12px;
  outline: none;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--celadon);
  box-shadow: 0 0 0 4px rgba(44, 94, 78, 0.12);
}
.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 18px) 22px, calc(100% - 12px) 22px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}
.field.error input, .field.error select, .field.error textarea { border-color: var(--danger); }
.err { min-height: 0; margin: 4px 0 0; color: var(--danger); font-size: 12px; }
.err:empty { display: none; }
.agree {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 16px 0 0;
}
.agree input { margin-top: 4px; accent-color: var(--celadon); }
.err--agree { margin: 4px 0 12px; }
.form-foot { margin: 10px 0 0; color: var(--muted); font-size: 13px; }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 36px;
}
.footer__grid {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
}
.site-footer p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.footer__copy { margin: 0; }

.dialog[hidden] { display: none; }
.dialog {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 20px;
}
.dialog__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(30, 25, 21, 0.46);
}
.dialog__panel {
  position: relative;
  width: min(440px, 100%);
  background: var(--paper);
  border-radius: 24px;
  padding: 32px 28px 24px;
  text-align: center;
  box-shadow: 0 30px 80px rgba(30, 25, 21, 0.22);
  animation: rise 0.28s ease;
}
.dialog__mark {
  width: 72px;
  height: 72px;
  margin: 0 auto 8px;
  border-radius: 50%;
  background: rgba(44, 94, 78, 0.1);
  display: grid;
  place-items: center;
}
.dialog__mark svg { width: 64px; height: 64px; }
.dialog__mark circle, .dialog__mark path {
  fill: none;
  stroke: var(--celadon);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.dialog__mark path {
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  animation: draw 0.45s 0.12s ease forwards;
}
.dialog__kicker {
  margin: 0;
  color: var(--celadon);
  letter-spacing: 0.12em;
  font-size: 13px;
}
.dialog__panel h2 { margin: 6px 0 8px; font-size: 32px; }
.dialog__panel p { margin: 0; color: var(--muted); }
.dialog__next { margin-top: 10px !important; }
.dialog__panel .btn { margin-top: 20px; }

.noscript {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  margin: 0;
  background: #fff8e8;
  border: 1px solid #e2c98a;
  border-radius: 12px;
  padding: 10px 12px;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }

@media (max-width: 980px) {
  .hero__grid, .about, .contact, .cards, .steps, .factbar__grid {
    grid-template-columns: 1fr;
  }
  .fact + .fact { border-left: 0; border-top: 1px solid var(--line); }
  .points { margin-top: 8px; }
  .card p { min-height: 0; }
}

@media (max-width: 760px) {
  .container { width: min(1120px, calc(100% - 28px)); }
  .brand__full { display: none; }
  .brand__short { display: block; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 74px;
    left: 14px;
    right: 14px;
    flex-direction: column;
    gap: 0;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 8px;
    box-shadow: var(--shadow);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 12px; }
  .hero { padding-top: 28px; }
  h1 { font-size: 28px; }
  .section { padding: 46px 0; }
  .section__head h2, .info-card h2, .form-card h2 { font-size: 26px; }
  .fields { grid-template-columns: 1fr; }
  .footer__grid { flex-direction: column; align-items: flex-start; }
  .info-card, .form-card { padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .dialog__panel, .dialog__mark path { animation: none; transition: none; }
  .dialog__mark path { stroke-dashoffset: 0; }
}
