/* NihaoMap 站点共享样式（产品介绍页 / 支持页）。
 *
 * 边界（见 docs/60-发布与运营/产品网站与支持页方案.md §4、§5.4）：
 * - 零外部依赖：字体自托管在 /assets/fonts/，页面无 JS、无 cookie、无第三方请求。
 * - 颜色只使用品牌 Token（docs/20-体验设计/品牌视觉规范.md §3）：
 *   Jade 700 / Mint 300 / Rice 50 / Night 800 / Coral 500 / Ink 900。
 * - 字标按品牌规范 §6.4 重建：W1 = A0+ 图标 + Inter SemiBold(600) Night 800，
 *   图标圆角比例 32/152 ≈ 21%，图标与文字间距约为图标宽度的 26%；
 *   W3 次级字标 = 同字体 Bold(700)，Nihao 用 Night、Map 用 Jade。
 * - Inter 4.1 由 scripts/brand/export_native_brand_assets.py 从
 *   store-assets/brand/fonts/inter/4.1 导出（OFL 1.1，LICENSE.txt 随字体一起发布）。
 */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/Inter-Medium.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/Inter-SemiBold.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/Inter-Bold.woff2") format("woff2");
}

:root {
  --jade: #0e766e;
  --mint: #9fe3d6;
  --rice: #f7f4ec;
  --night: #113245;
  --coral: #f45b4e;
  --ink: #18201e;
  --muted: #55605d;
  --line: rgba(17, 50, 69, 0.14);
  --surface: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--rice);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px;
}

a {
  color: var(--jade);
}

a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--jade);
  outline-offset: 3px;
  border-radius: 4px;
}

/* 站头：W1 字标 + 站点导航 */
.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  padding-top: 22px;
  padding-bottom: 22px;
}

.lockup {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--night);
  font-size: 1.16rem;
  font-weight: 600;
  letter-spacing: -0.038em;
  text-decoration: none;
}

.lockup img {
  width: 34px;
  height: 34px;
  border-radius: 21%;
  display: block;
}

.site-nav {
  display: flex;
  gap: 20px;
  font-size: 0.95rem;
  font-weight: 500;
}

.site-nav a {
  color: var(--jade);
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  text-decoration: underline;
}

main {
  padding-bottom: 8px;
}

h1 {
  margin: 18px 0 12px;
  color: var(--night);
  font-size: clamp(1.85rem, 5vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.14;
}

h2 {
  margin: 0 0 0.5em;
  color: var(--night);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

h3 {
  margin: 0 0 6px;
  color: var(--jade);
  font-size: 1.03rem;
  font-weight: 600;
}

p {
  margin: 0 0 1em;
}

section {
  margin: 52px 0;
}

.badge {
  display: inline-block;
  margin: 0 0 4px;
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--mint);
  color: var(--night);
  font-size: 0.83rem;
  font-weight: 600;
}

.lede {
  font-size: 1.12rem;
  color: var(--ink);
}

.note,
.muted {
  color: var(--muted);
  font-size: 0.94rem;
}

.cards {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  margin-bottom: 14px;
}

.card {
  padding: 18px 18px 6px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.card p {
  font-size: 0.97rem;
}

.checks {
  margin: 0 0 1em;
  padding: 0;
  list-style: none;
}

.checks li {
  position: relative;
  padding-left: 24px;
  margin: 9px 0;
}

.checks li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--jade);
}

/* 支持页：联系方式块 */
.contact {
  padding: 18px 20px 6px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.contact p {
  margin-bottom: 1em;
}

/* 支持页：FAQ 用原生 details，不需要任何脚本 */
details {
  border-bottom: 1px solid var(--line);
}

details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 14px 0;
  color: var(--night);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

details summary::-webkit-details-marker {
  display: none;
}

details summary::after {
  content: "+";
  flex: 0 0 auto;
  color: var(--jade);
  font-weight: 600;
}

details[open] summary::after {
  content: "\2013";
}

details p {
  margin: 0 0 18px;
  font-size: 0.97rem;
}

/* 站脚：W3 次级字标 + 链接 */
.site-footer {
  margin-top: 68px;
  padding-top: 26px;
  padding-bottom: 44px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.wordmark-text {
  font-size: 1.06rem;
  font-weight: 700;
  letter-spacing: -0.038em;
}

.wordmark-text .nihao {
  color: var(--night);
}

.wordmark-text .map {
  color: var(--jade);
}

.site-footer p {
  margin: 0 0 8px;
}
