/* 辰枢智媒 官网样式
   移动优先：绝大多数访客来自小红书 / 抖音 / 微信，都是手机。
   1rem = 16px（375px 屏），随视口缩放并夹紧，小屏不挤、大屏不肿。
   零外部依赖：不引 CDN 字体和框架，国内加载快且不泄露访客数据。 */

html {
  font-size: clamp(14px, 4.267vw, 18px);
  -webkit-text-size-adjust: 100%;
}

:root {
  color-scheme: dark;
  --bg: #0e1014;
  --surface: #16191f;
  --surface-2: #1b1f27;
  --line: #2c333d;
  --text: #f5f7fb;
  --muted: #9aa4b2;
  --dim: #7c8695;
  --accent: #66a9ff;
  --accent-soft: #3184e826;
  --ok: #7be2a8;
  --radius: 0.875rem;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  line-height: 1.7;
  overflow-wrap: break-word;
}

/* ---------- 布局 ---------- */

.wrap {
  width: 100%;
  max-width: 46rem;
  margin: 0 auto;
  padding: 0 1.25rem;
  padding-left: calc(1.25rem + env(safe-area-inset-left));
  padding-right: calc(1.25rem + env(safe-area-inset-right));
}

header.site {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(14, 16, 20, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 3.25rem;
}

.brand {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}

/* 手机上导航横向滚动，不换行不挤压 */
nav.site {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
nav.site::-webkit-scrollbar { display: none; }

nav.site a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.875rem;
  white-space: nowrap;
  padding: 0.25rem 0;
}
nav.site a:hover, nav.site a[aria-current="page"] { color: var(--text); }

main { padding: 2rem 0 3rem; }

section { margin-bottom: 2.75rem; }

footer.site {
  border-top: 1px solid var(--line);
  padding: 1.75rem 0 calc(2rem + env(safe-area-inset-bottom));
  color: var(--dim);
  font-size: 0.8125rem;
}
footer.site a { color: var(--muted); }

/* ---------- 文字 ---------- */

h1 { font-size: 1.75rem; line-height: 1.35; margin: 0 0 0.75rem; letter-spacing: -0.01em; }
h2 { font-size: 1.25rem; line-height: 1.4; margin: 0 0 0.875rem; }
h3 { font-size: 1rem; margin: 0 0 0.5rem; }
p  { margin: 0 0 1rem; }

.lead { font-size: 1.0625rem; color: var(--muted); margin-bottom: 1.75rem; }
.muted { color: var(--muted); }
.dim { color: var(--dim); font-size: 0.8125rem; }
.big { font-size: 2rem; font-weight: 700; letter-spacing: -0.02em; }

/* ---------- 卡片 ---------- */

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.cards { display: grid; gap: 1rem; }
@media (min-width: 40rem) { .cards.two { grid-template-columns: 1fr 1fr; } }

.tag {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 0.125rem 0.625rem;
  margin-bottom: 0.5rem;
}

/* ---------- 按钮 ---------- */

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 2.875rem;
  padding: 0 1.25rem;
  border: 0;
  border-radius: 0.625rem;
  background: var(--text);
  color: #101319;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  -webkit-appearance: none;
}
.btn.ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}
.btn + .btn { margin-top: 0.75rem; }

.btns { margin: 1.5rem 0; }
@media (min-width: 30rem) {
  .btns { display: flex; gap: 0.75rem; }
  .btn { width: auto; flex: 1; }
  .btn + .btn { margin-top: 0; }
}

/* ---------- 列表 ---------- */

ul.plain { list-style: none; padding: 0; margin: 0; }
ul.plain li {
  padding: 0.625rem 0 0.625rem 1.375rem;
  position: relative;
  border-bottom: 1px solid var(--line);
}
ul.plain li:last-child { border-bottom: 0; }
ul.plain li::before {
  content: "";
  position: absolute;
  left: 0.25rem;
  top: 1.1875rem;
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------- 价格 ---------- */

.price { display: flex; align-items: baseline; gap: 0.375rem; margin: 0.5rem 0 1rem; }
.price .unit { color: var(--muted); font-size: 0.875rem; }

/* ---------- 详情折叠（FAQ） ---------- */

details {
  border-bottom: 1px solid var(--line);
  padding: 0.875rem 0;
}
details summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9375rem;
  list-style: none;
  padding-right: 1.5rem;
  position: relative;
}
details summary::-webkit-details-marker { display: none; }
details summary::after {
  content: "+";
  position: absolute;
  right: 0;
  color: var(--muted);
  font-weight: 400;
}
details[open] summary::after { content: "−"; }
details p { margin: 0.75rem 0 0; color: var(--muted); font-size: 0.9375rem; }

/* ---------- 提示条 ---------- */

.note {
  background: var(--surface-2);
  border-left: 3px solid var(--accent);
  border-radius: 0.5rem;
  padding: 0.875rem 1rem;
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 1rem;
}
.note strong { color: var(--text); }

code {
  background: var(--surface-2);
  border-radius: 0.25rem;
  padding: 0.125rem 0.375rem;
  font-size: 0.875em;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  overflow-wrap: anywhere;
}
