:root {
  --paper: #f7f8fa; --paper-2: #eef1f5; --ink: #1e2b3a; --muted: #5b6878; --line: #d9dee6;
  --accent: #c8711f; --accent-2: #f6dec4; --silver: #8e9aab; --good: #2e7d4f; --bad: #b8322c; --card: #ffffff;
  --serif: "Noto Serif CJK SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --sans: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.75 var(--sans); }
a { color: inherit; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
[hidden] { display: none !important; }

header.top { border-bottom: 1px solid var(--line); background: rgba(247, 248, 250, 0.94); position: sticky; top: 0; z-index: 5; backdrop-filter: blur(6px); }
header.top .wrap { display: flex; align-items: center; gap: 12px; height: 60px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; white-space: nowrap; }
.logo svg { width: 30px; height: 30px; flex: none; }
header.top nav { margin-left: auto; display: flex; gap: 20px; font-size: 15px; }
header.top nav a { text-decoration: none; color: var(--muted); white-space: nowrap; }
header.top nav a:hover, header.top nav a.on { color: var(--accent); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 8px; text-decoration: none;
  font: inherit; font-weight: 600; font-size: 15px; border: 1px solid var(--ink); background: var(--card); color: var(--ink); cursor: pointer; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.big { padding: 14px 24px; font-size: 17px; }
.btn:hover { filter: brightness(0.95); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.link { background: none; border: none; padding: 0; font: inherit; color: var(--muted); text-decoration: underline; cursor: pointer; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 22px 24px; }
.card + .card { margin-top: 16px; }
.card h2 { font-family: var(--serif); font-size: 22px; margin: 0 0 12px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.msg { color: var(--bad); font-weight: 600; min-height: 1.6em; margin: 8px 0 0; }

label.field { display: block; margin-bottom: 14px; font-weight: 600; font-size: 15px; }
label.field input, label.field select, textarea { display: block; width: 100%; margin-top: 6px; font: inherit; font-weight: 400; padding: 10px 12px;
  border: 1px solid #c3cad4; border-radius: 8px; background: #fff; color: var(--ink); }
label.field input:focus, textarea:focus { outline: 2px solid var(--accent-2); border-color: var(--accent); }

.page-title { padding: 32px 0 8px; }
.page-title .kicker { color: var(--accent); font-weight: 600; letter-spacing: 0.06em; font-size: 14px; margin: 0 0 6px; }
.page-title h1 { font-family: var(--serif); font-size: clamp(26px, 3.6vw, 34px); margin: 0 0 6px; line-height: 1.35; }
.page-title p { margin: 0; color: var(--muted); }
main.page { padding-bottom: 56px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0; padding: 0; list-style: none; counter-reset: s; }
.steps li { background: var(--paper-2); border-radius: 10px; padding: 12px 14px 12px 50px; position: relative; font-size: 15px; }
.steps li::before { counter-increment: s; content: counter(s); position: absolute; left: 14px; top: 12px; width: 26px; height: 26px; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 14px; }

.spinner { width: 18px; height: 18px; border: 3px solid var(--accent-2); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.9s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }

footer.foot { padding: 28px 0 40px; color: var(--muted); font-size: 13px; border-top: 1px solid var(--line); }
footer.foot .wrap { display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer.foot a { color: var(--muted); }
footer.foot .right { margin-left: auto; }

@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  header.top nav { gap: 14px; font-size: 14px; }
  .steps { grid-template-columns: 1fr; }
  .card { padding: 18px 16px; }
}
@media (max-width: 560px) {
  header.top nav .wide { display: none; }
}
