:root {
  --bg: #fffaf5;
  --surface: #ffffff;
  --surface-2: #fff8f1;
  --stroke: #f0e1d4;
  --text: #1d140f;
  --muted: #6b5849;
  --muted-2: #9c8879;
  --accent: #f37021;
  --accent-deep: #9a3412;
  --radius: 22px;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html[lang="zh-CN"] body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", var(--font);
  line-height: 1.75;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-deep); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
.wrap { width: min(920px, 100% - 40px); margin: 0 auto; }

.site-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding: 22px 0 18px;
  border-bottom: 1px solid var(--stroke);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.brand span { font-size: 18px; }
.site-nav { display: flex; gap: 16px; flex-wrap: wrap; font-size: 14px; }
.site-nav a { color: var(--muted); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--accent-deep); }
.lang {
  padding: 4px 10px;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  font-size: 13px;
}

.launch {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 15px;
  border-radius: 999px;
  background: var(--accent-deep);
  color: #fff !important;
  text-decoration: none;
  font-weight: 650;
  font-size: 14px;
}
.launch:hover { background: #7c2d12; color: #fff !important; }

main { padding: 46px 0 30px; }
.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-deep);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  font-weight: 700;
}
h1 { margin: 0 0 16px; font-size: clamp(34px, 5vw, 52px); line-height: 1.08; letter-spacing: -0.035em; }
h2 { margin: 38px 0 12px; font-size: clamp(23px, 3vw, 30px); letter-spacing: -0.02em; }
h3 { margin: 26px 0 8px; font-size: 19px; }
p { margin: 0 0 15px; }
.lede { font-size: clamp(18px, 2.2vw, 21px); color: var(--muted); max-width: 760px; }
.muted { color: var(--muted); }
.small { font-size: 13.5px; color: var(--muted); }

.card {
  padding: 22px;
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 18px 50px rgba(120, 60, 20, 0.06);
}
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin: 20px 0 8px; }
.grid .card h3 { margin-top: 0; }
.grid .card p { margin-bottom: 0; font-size: 14.5px; color: var(--muted); }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 20px 0; display: grid; gap: 12px; }
.steps li { position: relative; padding: 16px 18px 16px 56px; background: var(--surface); border: 1px solid var(--stroke); border-radius: 16px; }
.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute; left: 16px; top: 15px;
  width: 27px; height: 27px; border-radius: 50%;
  background: var(--surface-2); color: var(--accent-deep);
  display: grid; place-items: center; font-weight: 700; font-size: 14px;
}

table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 14.5px; background: var(--surface); border: 1px solid var(--stroke); border-radius: 14px; overflow: hidden; }
th, td { padding: 11px 13px; text-align: left; border-bottom: 1px solid var(--stroke); vertical-align: top; }
th { background: var(--surface-2); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
tr:last-child td { border-bottom: 0; }

.faq details { background: var(--surface); border: 1px solid var(--stroke); border-radius: 14px; padding: 16px 18px; margin: 10px 0; }
.faq summary { cursor: pointer; font-weight: 650; }
.faq details[open] summary { color: var(--accent-deep); }
.faq details p { margin: 10px 0 0; color: var(--muted); }

.crumbs { font-size: 13px; color: var(--muted); margin: 0 0 22px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent-deep); }

.note { border-left: 3px solid var(--accent); background: var(--surface-2); padding: 13px 16px; border-radius: 0 12px 12px 0; color: var(--muted); font-size: 14.5px; }
.cta { margin: 34px 0 8px; padding: 24px; border-radius: var(--radius); background: linear-gradient(135deg, #fff2e8, #fffaf5); border: 1px solid var(--stroke); }
.cta h2 { margin-top: 0; }

.site-foot { margin-top: 48px; padding: 22px 0 36px; border-top: 1px solid var(--stroke); color: var(--muted); font-size: 13px; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.site-foot a { color: var(--muted); text-decoration: none; }
.site-foot a:hover { color: var(--accent-deep); }
.links { display: flex; gap: 14px; flex-wrap: wrap; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 640px) {
  .site-head { align-items: flex-start; }
  .site-nav { order: 3; width: 100%; }
  main { padding-top: 32px; }
  table { font-size: 13.5px; }
  th, td { padding: 9px 10px; }
}

/* ---------------------------------------------------------------- blog */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin: 24px 0 10px;
}
.post-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: 18px;
  box-shadow: 0 14px 40px rgba(120, 60, 20, 0.05);
}
.post-card .post-date { color: var(--muted-2); font-size: 12.5px; }
.post-card h2 { margin: 0; font-size: 20px; line-height: 1.3; }
.post-card h2 a { color: var(--text); text-decoration: none; }
.post-card h2 a:hover { color: var(--accent-deep); }
.post-card p { margin: 0; color: var(--muted); font-size: 14.5px; }
.post-card .read { margin-top: auto; padding-top: 6px; font-size: 13.5px; font-weight: 650; }
.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 13px;
}
.post-body { max-width: 780px; }
.post-body p, .post-body li { font-size: 16.5px; }
.post-body ul, .post-body ol { padding-left: 22px; }
.post-body li { margin: 6px 0; }
.post-body h2 { margin-top: 34px; }
.post-body table { font-size: 14px; }
.post-body .note { margin: 20px 0; }
.post-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 40px;
  padding-top: 18px;
  border-top: 1px solid var(--stroke);
  font-size: 14px;
}
.post-nav a { color: var(--muted); text-decoration: none; }
.post-nav a:hover { color: var(--accent-deep); }
.feed-link { font-size: 13px; color: var(--muted); }

/* ------------------------------------------------------------ calculator */

.calc {
  margin: 24px 0;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: 20px;
  box-shadow: 0 18px 50px rgba(120, 60, 20, 0.07);
}
.calc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.calc-field { display: flex; flex-direction: column; gap: 6px; }
.calc-field label { font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.calc-field input, .calc-field select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--stroke-strong, #e4cbb7);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 15px;
}
.calc-field input:focus, .calc-field select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.calc-result {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--stroke);
}
.calc-cell { padding: 12px 14px; border-radius: 12px; background: var(--surface-2); }
.calc-cell span { display: block; color: var(--muted); font-size: 12.5px; }
.calc-cell strong { display: block; margin-top: 4px; font-size: 20px; letter-spacing: -0.02em; }
.calc-cell.total { background: #fff1e7; }
.calc-cell.total strong { color: var(--accent-deep); }
.calc-note { margin: 14px 0 0; color: var(--muted); font-size: 13.5px; }
.calc-error { margin: 14px 0 0; padding: 10px 13px; border-radius: 10px; background: #fff1f0; color: #b42318; font-size: 14px; }
.calc-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 16px; }
.calc-actions .launch { font-size: 14px; }
.calc-table { margin-top: 8px; }
.calc-table td:last-child { font-weight: 650; }

.calc-actions button {
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid var(--stroke-strong, #e4cbb7);
  background: #fff;
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
.calc-actions button:hover { border-color: var(--accent); color: var(--accent-deep); }

/* --------------------------------------------------------------- press kit */

.press-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin: 20px 0;
}
.asset-card {
  padding: 16px;
  border: 1px solid var(--stroke);
  border-radius: 16px;
  background: var(--surface);
}
.asset-card img { display: block; width: 100%; height: auto; border-radius: 10px; background: var(--surface-2); }
.asset-card h3 { margin: 12px 0 4px; font-size: 16px; }
.asset-card p { margin: 0 0 10px; font-size: 13px; color: var(--muted); }
.asset-card .downloads { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; }
.asset-card a { text-decoration: none; }
.press-shot { border-radius: 12px; border: 1px solid var(--stroke); box-shadow: 0 12px 34px rgba(120, 60, 20, 0.07); }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; }
.swatch { width: 130px; padding: 10px; border: 1px solid var(--stroke); border-radius: 12px; background: var(--surface); font-size: 12px; }
.swatch i { display: block; height: 36px; border-radius: 7px; margin-bottom: 7px; }
.swatch code { font-family: var(--mono); color: var(--muted); }
.copy-block { position: relative; margin: 14px 0; }
.copy-block pre {
  margin: 0;
  padding: 16px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--stroke);
  white-space: pre-wrap;
  font-family: var(--font);
  font-size: 14.5px;
  line-height: 1.6;
}
.copy-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--stroke-strong, #e4cbb7);
  background: #fff;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.copy-btn:hover { color: var(--accent-deep); border-color: var(--accent); }
