/* ===== 设计令牌（取自角色设定图配色：品牌绿 / 墨黑绿 / 暖白 / 灰绿） ===== */
:root {
  --green: #00a857;
  --green-strong: #008f4a;
  --green-soft: #e3f4ea;
  --green-glow: rgba(0, 168, 87, 0.35);
  --ink: #081110;
  --ink-2: #0e1b19;
  --ink-3: #152925;
  --ink-line: rgba(237, 234, 225, 0.12);
  --paper: #edeae1;
  --paper-2: #f6f4ee;
  --white: #ffffff;
  --sage: #71897a;
  --text: #121b19;
  --text-2: #3e4c47;
  --muted: #6b7a74;
  --line: #dcd8cc;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(8, 17, 16, 0.06), 0 2px 8px rgba(8, 17, 16, 0.05);
  --shadow: 0 10px 30px rgba(8, 17, 16, 0.1);
  --shadow-lg: 0 30px 80px rgba(8, 17, 16, 0.22);

  --font: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Segoe UI', Roboto,
    'Helvetica Neue', Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;

  --header-h: 64px;
  --container: 1200px;
}

/* ===== 基础 ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--paper-2);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img,
svg,
video {
  display: block;
  max-width: 100%;
}
a {
  color: var(--green-strong);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: inherit;
}
p {
  margin: 0;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
kbd {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 1px 6px;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: var(--white);
  color: var(--muted);
}
:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 100;
  padding: 8px 14px;
  background: var(--green);
  color: var(--white);
  border-radius: var(--radius-sm);
}
.skip-link:focus {
  left: 8px;
}

/* 待填文案标记：构建时会统计并提示，上线前应全部替换 */
mark.todo {
  background: repeating-linear-gradient(-45deg, rgba(255, 196, 0, 0.22) 0 6px, rgba(255, 196, 0, 0.1) 6px 12px);
  color: inherit;
  outline: 1px dashed rgba(200, 150, 0, 0.7);
  border-radius: 4px;
  padding: 0 4px;
}

/* 中文标题按短语换行，避免末尾单字掉到下一行 */
.nobr {
  display: inline-block;
}

/* ===== 按钮 ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none !important;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}
.btn-sm {
  height: 36px;
  padding: 0 16px;
  font-size: 14px;
}
.btn-lg {
  height: 56px;
  padding: 0 28px;
  font-size: 17px;
}
.btn-primary {
  background: var(--green);
  color: var(--white);
  box-shadow: 0 6px 20px var(--green-glow);
}
.btn-primary:hover {
  background: var(--green-strong);
  transform: translateY(-1px);
  box-shadow: 0 10px 28px var(--green-glow);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}
.btn-ghost:hover {
  border-color: var(--text);
}
.on-dark .btn-ghost {
  color: var(--paper);
  border-color: rgba(237, 234, 225, 0.28);
}
.on-dark .btn-ghost:hover {
  border-color: var(--paper);
}
.btn[aria-disabled='true'] {
  opacity: 0.6;
  pointer-events: none;
}
.btn-sub {
  font-size: 0.78em;
  font-weight: 500;
  opacity: 0.85;
}

/* ===== 页头 ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(246, 244, 238, 0.82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(8, 17, 16, 0.06);
  transition: background-color 0.25s ease, border-color 0.25s ease;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 100%;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  text-decoration: none !important;
}
.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}
.brand-name {
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.01em;
}
.brand-cn {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  padding-left: 9px;
  border-left: 1px solid var(--line);
  line-height: 1;
}
.nav {
  display: flex;
  gap: 4px;
  flex: 1;
}
.nav-link {
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--text-2);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none !important;
}
.nav-link:hover,
.nav-link[aria-current='page'] {
  color: var(--text);
  background: rgba(8, 17, 16, 0.06);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.2s ease;
}
.nav-toggle span:first-child {
  top: 15px;
}
.nav-toggle span:last-child {
  top: 23px;
}
.nav-open .nav-toggle span:first-child {
  transform: translateY(4px) rotate(45deg);
}
.nav-open .nav-toggle span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

/* 深色页头（首页首屏） */
.header-dark {
  background: transparent;
  border-bottom-color: transparent;
  color: var(--paper);
}
.header-dark .brand,
.header-dark .nav-link {
  color: var(--paper);
}
.header-dark .brand-cn {
  color: rgba(237, 234, 225, 0.7);
  border-color: rgba(237, 234, 225, 0.22);
}
.header-dark .nav-link:hover,
.header-dark .nav-link[aria-current='page'] {
  background: rgba(237, 234, 225, 0.1);
  color: var(--white);
}
.header-dark.is-scrolled,
.header-dark.nav-open {
  background: rgba(8, 17, 16, 0.86);
  border-bottom-color: var(--ink-line);
}

/* ===== 下载组件（site.js 渲染） ===== */
.dl {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.dl-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.dl-meta {
  font-size: 13px;
  color: var(--muted);
}
.dl-meta a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.dl-alt {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  font-size: 13px;
  color: var(--muted);
}
.dl-alt a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--text-2);
  font-weight: 500;
}
.dl-alt svg {
  width: 14px;
  height: 14px;
}
.dl-error {
  font-size: 13px;
  color: #b4441c;
}
.dl-error button {
  border: 0;
  padding: 0;
  background: none;
  color: inherit;
  text-decoration: underline;
}
.on-dark .dl-meta,
.on-dark .dl-alt {
  color: rgba(237, 234, 225, 0.6);
}
.on-dark .dl-alt a {
  color: rgba(237, 234, 225, 0.88);
}
.on-dark .dl-error {
  color: #ffb38a;
}

/* ===== 通用区块 ===== */
.section {
  padding: 112px 0;
}
.section-tight {
  padding: 72px 0;
}
.section-head {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-strong);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: '';
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}
.section-title {
  font-size: clamp(28px, 3.6vw, 42px);
  font-weight: 800;
}
.section-desc {
  margin-top: 16px;
  font-size: 18px;
  color: var(--text-2);
}
.on-dark {
  color: var(--paper);
}
.on-dark .eyebrow {
  color: #3ad48a;
}
.on-dark .section-desc {
  color: rgba(237, 234, 225, 0.72);
}

/* ===== 折叠问答（首页 / 价格页共用） ===== */
.faq-list {
  display: grid;
  gap: 12px;
}
.faq-list details {
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
  padding: 0 24px;
}
.faq-list summary {
  position: relative;
  padding: 20px 32px 20px 0;
  font-weight: 600;
  font-size: 17px;
  cursor: pointer;
  list-style: none;
}
.faq-list summary::-webkit-details-marker {
  display: none;
}
.faq-list summary::after {
  content: '';
  position: absolute;
  right: 2px;
  top: 50%;
  width: 12px;
  height: 12px;
  margin-top: -8px;
  border-right: 2px solid var(--sage);
  border-bottom: 2px solid var(--sage);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}
.faq-list details[open] summary::after {
  transform: rotate(-135deg);
  margin-top: -2px;
}
.faq-list details p {
  padding-bottom: 22px;
  color: var(--text-2);
}

/* ===== 页脚 ===== */
.site-footer {
  background: var(--ink);
  color: rgba(237, 234, 225, 0.72);
  padding: 64px 0 28px;
  font-size: 14px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 32px;
}
.site-footer .brand {
  color: var(--paper);
}
.site-footer .brand-cn {
  color: rgba(237, 234, 225, 0.6);
  border-color: rgba(237, 234, 225, 0.2);
}
.footer-slogan {
  margin-top: 14px;
  font-style: italic;
  color: var(--sage);
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col a {
  color: rgba(237, 234, 225, 0.72);
}
.footer-col a:hover {
  color: var(--white);
}
.footer-title {
  color: var(--paper);
  font-weight: 600;
  margin-bottom: 4px;
}
.footer-qr img {
  border-radius: var(--radius-sm);
  background: var(--white);
  padding: 4px;
}
.footer-bottom {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--ink-line);
  font-size: 13px;
  color: rgba(237, 234, 225, 0.45);
}

/* ===== 滚动进入动画 ===== */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
.no-js .reveal {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* ===== 响应式 ===== */
@media (max-width: 960px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}
@media (max-width: 860px) {
  .nav-toggle {
    display: block;
  }
  .nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 8px 16px 16px;
    background: var(--paper-2);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: none;
  }
  .nav-open .nav {
    display: flex;
  }
  .nav-link {
    padding: 12px;
    border-radius: var(--radius-sm);
  }
  .header-dark .nav {
    background: var(--ink);
    border-bottom-color: var(--ink-line);
  }
  .header-inner {
    gap: 12px;
  }
  .brand {
    margin-right: auto;
  }
  .section {
    padding: 80px 0;
  }
}
@media (max-width: 520px) {
  .container {
    padding: 0 18px;
  }
  .brand-cn {
    display: none;
  }
  .header-actions .btn {
    padding: 0 12px;
  }
  .btn-lg {
    height: 52px;
    padding: 0 22px;
    font-size: 16px;
  }
}
