/* 官网全局设计 token；工作台 Tailwind 不读取本文件。 */
:root {
  color-scheme: light;
  --night: #06111f;
  --night-soft: #0a1728;
  --ink: #0b1625;
  --paper: #ffffff;
  --ice: #f4f7fa;
  --muted: #647184;
  --line: #dce3eb;
  --mint: #67e4c1;
  --blue: #5e7ef5;
  --violet: #8173f6;
  --container: 1280px;
  --font: "Microsoft YaHei", "微软雅黑", "PingFang SC", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--paper); color: var(--ink); font-family: var(--font); -webkit-font-smoothing: antialiased; }
body.is-modal-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid rgba(103, 228, 193, .55); outline-offset: 3px; }
::selection { background: var(--mint); color: var(--night); }

.site-header { position: relative; z-index: 30; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .92); backdrop-filter: blur(18px); }
.site-header--dark { position: absolute; inset: 0 0 auto; border-color: rgba(255, 255, 255, .15); background: rgba(6, 17, 31, .78); color: #fff; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; width: min(calc(100% - 40px), 1380px); height: 88px; margin: 0 auto; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-size: 20px; font-weight: 700; letter-spacing: .06em; }
.brand__mark { width: 35px; height: 28px; }
.site-nav { display: flex; align-items: center; gap: 48px; color: var(--muted); font-size: 15px; }
.site-header--dark .site-nav { color: rgba(255, 255, 255, .7); }
.site-nav a:hover { color: var(--ink); }
.site-header--dark .site-nav a:hover { color: #fff; }
.header-action { display: inline-flex; align-items: center; justify-content: center; min-width: 78px; height: 42px; border: 1px solid currentColor; padding: 0 20px; font-size: 14px; font-weight: 700; }
.header-action:hover { background: var(--ink); color: #fff; }
.site-header--dark .header-action:hover { background: #fff; color: var(--night); }

.button { display: inline-flex; min-height: 54px; align-items: center; justify-content: center; gap: 14px; padding: 0 26px; border: 1px solid transparent; border-radius: 10px; font-size: 15px; font-weight: 700; transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease; }
.button:hover { transform: translateY(-1px); }
.button--accent { background: linear-gradient(100deg, var(--mint), #73a5ff 72%, var(--violet)); color: var(--night); }
.button--accent:hover { background: #fff; }
.button--primary { background: var(--ink); color: #fff; }
.button--outline { border-color: #84a7ff; color: #b2c2ff; }
.button--outline:hover { border-color: #fff; background: #fff; color: var(--night); }
.spectrum-rule { height: 3px; background: linear-gradient(90deg, var(--mint), #43cdd9 42%, #84a7ff 72%, var(--violet)); }
.section-label { margin: 0 0 18px; color: #4d6ff4; font-size: 13px; font-weight: 700; letter-spacing: .1em; }
.section-label--dark { color: var(--mint); }

/* 页脚在官网所有页面保持一致，避免不同模板出现视觉漂移。 */
.site-footer { background: var(--night); color: #fff; }
.site-footer__inner { width: min(calc(100% - 40px), 1380px); margin: 0 auto; padding: 72px 0 38px; }
.footer-cta { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 40px; padding-bottom: 58px; border-bottom: 1px solid rgba(255, 255, 255, .16); }
.footer-cta h2 { max-width: 760px; margin: 0; font-size: clamp(34px, 4vw, 56px); line-height: 1.18; letter-spacing: -.04em; }
.footer-cta p { margin: 16px 0 0; color: rgba(255, 255, 255, .55); }
.footer-meta { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding-top: 30px; color: rgba(255, 255, 255, .5); font-size: 13px; }
.brand--light { color: #fff; }
.footer-meta nav { display: flex; gap: 28px; }
.footer-meta a:hover { color: #fff; }
.footer-meta__legal { display: flex; align-items: center; justify-content: flex-end; gap: 14px; }
.footer-meta__legal p { margin: 0; white-space: nowrap; }
.footer-record { color: rgba(255, 255, 255, .58); text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .24); text-underline-offset: 4px; white-space: nowrap; transition: color .18s ease, text-decoration-color .18s ease; }
.footer-record:hover { color: #fff; text-decoration-color: var(--mint); }

@media (max-width: 760px) {
  .site-header__inner { width: min(calc(100% - 32px), 1380px); height: 80px; }
  .site-nav { display: none; }
  .brand { font-size: 18px; }
  .brand__mark { width: 31px; }
  .header-action { min-width: 72px; height: 40px; padding: 0 16px; }
  .footer-cta { grid-template-columns: 1fr; align-items: start; }
  .site-footer__inner { width: min(calc(100% - 32px), 1380px); padding-top: 58px; }
  .footer-meta { align-items: flex-start; flex-direction: column; }
  .footer-meta nav { flex-wrap: wrap; }
  .footer-meta__legal { align-items: flex-start; flex-direction: column; gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
