/* MaxModel 全站统一样式：colors token + header.site-nav + footer.site-footer + .btn */
/* 仅放跨页共用样式；页面独有样式（hero/sidebar/qr-box 等）保留在页内 <style> */

:root {
  --bg: #ffffff;
  --surface: #f5f5f7;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --line: #d2d2d7;
  --accent: #0066ff;
  --accent-hover: #0052cc;
  --dark: #0a0a0a;
  --dark-2: #161617;
  --dark-text: #f5f5f7;
  --dark-line: #2a2a2c;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --mono: "SF Mono", ui-monospace, "JetBrains Mono", "Cascadia Code", Menlo, Consolas, monospace;
  --nav-h: 53px;
  --site-maxw: 1120px;
}

/* 重置 */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 70px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.01em;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { display: block; max-width: 100%; height: auto; }

/* ===== 顶部导航 ===== */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.site-nav-in {
  max-width: var(--site-maxw);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  gap: 24px;
}
.site-logo {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
  color: var(--text);
  flex-shrink: 0;
}
.site-logo:hover { text-decoration: none; }
.site-logo b { color: var(--accent); font-weight: 600; }
.site-logo-mark {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  display: block;
  margin-right: 9px;
}
.site-nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}
.site-nav-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--text);
  opacity: 0.85;
}
.site-nav-links a:hover {
  opacity: 1;
  text-decoration: none;
}
.site-nav-links .ni {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.65;
}
.site-nav-links a:hover .ni { opacity: 1; }

/* ===== 按钮 ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 500;
  border-radius: 980px;
  padding: 8px 18px;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  color: #fff;
  background: var(--accent);
}
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-ghost {
  color: var(--text);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.6);
}
.btn-ghost:hover { border-color: var(--text); }

/* 移动端 nav 收紧 */
@media (max-width: 720px) {
  .site-nav-in { padding: 0 16px; gap: 12px; }
  .site-nav-links { gap: 16px; }
  .site-nav-links a { font-size: 13px; }
  .btn { padding: 6px 14px; font-size: 13px; }
}
@media (max-width: 520px) {
  .site-nav-links a:not(:last-child) { display: none; } /* 极窄屏只保留最后一个链接，logo+btn 永远在 */
}

/* ===== 页脚 ===== */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: 48px 24px 32px;
  color: var(--muted);
  font-size: 14px;
}
.site-footer-in {
  max-width: var(--site-maxw);
  margin: 0 auto;
}
.site-footer-brand .site-logo { font-size: 18px; margin-bottom: 12px; }
.site-footer-brand p { margin: 6px 0; line-height: 1.55; max-width: 560px; }
.site-footer-bottom {
  max-width: var(--site-maxw);
  margin: 24px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
}
.site-footer-bottom a { color: var(--muted); }
.site-footer-bottom a:hover { color: var(--text); }

@media (max-width: 720px) {
  .site-footer { padding: 32px 16px 24px; }
}

/* ===== 官方客服二维码（about / payment 共用）===== */
.support-qr { text-align: center; margin: 24px auto; }
.support-qr img {
  width: 220px;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  margin: 0 auto;
}
.support-qr .hint { color: var(--muted); font-size: 13px; margin-top: 10px; }
