/* 闪映 ShinyReel 静态营销与法务层样式。
 *
 * 这一层不依赖 Flutter：审核方、爬虫和关闭 JS 的访客都能直接读到内容。
 * 因此这里只用系统字体和内联资源 —— nginx 的 CSP 里 font-src 只放行
 * 'self' 和 data:，任何外链字体都会被拦掉。
 */

:root {
  --brand: #7c3aed;
  --brand-strong: #6d28d9;
  --brand-soft: rgb(124 58 237 / 8%);
  --accent: #ec4899;
  --bg: #f8fafc;
  --surface: #ffffff;
  --text: #0f172a;
  --text-muted: #475569;
  --border: #e2e8f0;
  --radius: 16px;
  --shadow: 0 12px 32px rgb(15 23 42 / 8%);
  --max-width: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand: #a78bfa;
    --brand-strong: #c4b5fd;
    --brand-soft: rgb(167 139 250 / 12%);
    --bg: #0e0e1a;
    --surface: #1a1730;
    --text: #f8fafc;
    --text-muted: #cbd5e1;
    --border: #2e2a45;
    --shadow: 0 12px 32px rgb(0 0 0 / 40%);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

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

img {
  max-width: 100%;
  height: auto;
}

.wrap {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- 顶栏 ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
}

.site-header .wrap {
  display: flex;
  min-height: 68px;
  align-items: center;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 19px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 9px;
}

.site-nav {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 24px;
}

.site-nav a {
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--brand);
}

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

.btn {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: filter 180ms ease, box-shadow 180ms ease;
}

.btn-primary {
  background: linear-gradient(120deg, var(--brand-strong), var(--accent));
  color: #fff;
  box-shadow: 0 10px 24px rgb(124 58 237 / 30%);
}

.btn-primary:hover {
  filter: brightness(1.06);
}

.btn-ghost {
  border-color: var(--border);
  background: var(--surface);
  color: var(--text);
}

.btn-lg {
  min-height: 52px;
  padding: 15px 30px;
  font-size: 17px;
}

/* ---------- 通用版式 ---------- */

section {
  padding: 72px 0;
}

h1,
h2,
h3 {
  line-height: 1.22;
  letter-spacing: -0.02em;
}

h1 {
  margin: 0 0 20px;
  font-size: clamp(34px, 5.2vw, 52px);
  font-weight: 800;
}

h2 {
  margin: 0 0 14px;
  font-size: clamp(26px, 3.4vw, 34px);
  font-weight: 750;
}

h3 {
  margin: 0 0 8px;
  font-size: 19px;
  font-weight: 700;
}

.lede {
  max-width: 62ch;
  margin: 0 0 28px;
  color: var(--text-muted);
  font-size: clamp(17px, 2vw, 20px);
}

.section-head {
  margin-bottom: 40px;
}

.section-head p {
  max-width: 62ch;
  margin: 0;
  color: var(--text-muted);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 16px;
  padding: 6px 14px;
  border: 1px solid var(--brand-soft);
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* ---------- 首屏 ---------- */

.hero {
  padding-top: 64px;
  background:
    radial-gradient(900px 420px at 12% -8%, rgb(124 58 237 / 14%), transparent),
    radial-gradient(760px 380px at 92% 4%, rgb(236 72 153 / 12%), transparent);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
}

.hero-note {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
}

.shot {
  margin-top: 48px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.shot img {
  display: block;
  width: 100%;
}

.shot figcaption {
  padding: 12px 18px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 14px;
}

/* ---------- 卡片栅格 ---------- */

.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
}

.card .tool-list {
  margin: 10px 0 0;
  padding-left: 20px;
  color: var(--text-muted);
  font-size: 15px;
}

/* ---------- 数字产品声明 ---------- */

.notice {
  padding: 28px 30px;
  border: 1px solid var(--brand-soft);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius);
  background: var(--brand-soft);
}

.notice h2 {
  font-size: 22px;
}

.notice p {
  max-width: 80ch;
  margin: 0 0 10px;
  color: var(--text-muted);
  font-size: 16px;
}

.notice p:last-child {
  margin-bottom: 0;
}

/* ---------- 步骤 ---------- */

.steps {
  display: grid;
  gap: 24px;
  counter-reset: step;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}

.steps li {
  counter-increment: step;
  padding-top: 54px;
  position: relative;
  color: var(--text-muted);
  font-size: 15px;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  top: 0;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(120deg, var(--brand-strong), var(--accent));
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}

.steps strong {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
  font-size: 17px;
}

/* ---------- 定价 ---------- */

.plans {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.plan {
  display: flex;
  flex-direction: column;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.plan.featured {
  border-color: var(--brand);
  box-shadow: var(--shadow);
}

.plan .tag {
  display: inline-block;
  align-self: flex-start;
  margin-bottom: 12px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.price {
  margin: 6px 0 4px;
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.price span {
  color: var(--text-muted);
  font-size: 16px;
  font-weight: 500;
}

.plan .meta {
  margin: 0 0 18px;
  color: var(--text-muted);
  font-size: 15px;
}

.plan .btn {
  margin-top: auto;
}

table.pricing {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
  font-size: 16px;
}

table.pricing th,
table.pricing td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

table.pricing th {
  background: var(--brand-soft);
  font-size: 14px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

table.pricing td:last-child,
table.pricing th:last-child {
  text-align: right;
}

table.pricing tr:last-child td {
  border-bottom: 0;
}

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

/* ---------- FAQ ---------- */

.faq {
  display: grid;
  gap: 12px;
}

.faq details {
  padding: 18px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.faq summary {
  cursor: pointer;
  font-size: 17px;
  font-weight: 650;
}

.faq p {
  margin: 12px 0 0;
  color: var(--text-muted);
  font-size: 16px;
}

/* ---------- 法务长文 ---------- */

.doc {
  max-width: 78ch;
  margin: 0 auto;
  padding: 56px 24px 88px;
}

.doc h1 {
  margin-bottom: 8px;
  font-size: clamp(28px, 4vw, 38px);
}

.doc .updated {
  margin: 0 0 40px;
  color: var(--text-muted);
  font-size: 15px;
}

.doc h2 {
  margin: 40px 0 12px;
  font-size: 21px;
  font-weight: 700;
}

.doc p,
.doc li {
  color: var(--text-muted);
  font-size: 16.5px;
}

.doc ul {
  padding-left: 22px;
}

.doc li {
  margin-bottom: 6px;
}

/* ---------- 页脚 ---------- */

.site-footer {
  padding: 56px 0 40px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.footer-cols {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  margin-bottom: 36px;
}

.footer-cols h4 {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.footer-cols ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-cols li {
  margin-bottom: 10px;
}

.footer-cols a {
  color: var(--text-muted);
  font-size: 15px;
  text-decoration: none;
}

.footer-cols a:hover {
  color: var(--brand);
}

.legal-line {
  padding-top: 26px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 14px;
}

.legal-line p {
  margin: 0 0 6px;
}

@media (max-width: 720px) {
  section {
    padding: 52px 0;
  }

  .site-nav {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn {
    transition: none;
  }
}
