/* AppPermit site — restrained, dark, macOS-native. No frameworks. */
:root {
  /* Matched to the narrative card artwork (near-black blue) so the images
     sit in the page instead of on it. */
  --bg: #05070d;
  --panel: #0d1119;
  --panel-2: #12161f;
  --line: rgba(225, 232, 245, .08);
  --text: #eef2f8;
  --muted: rgba(233, 238, 246, .64);
  --faint: rgba(233, 238, 246, .42);
  --blue: #2f80ed;
  --violet: #9b8cff;
  --green: #34c759;
  --red: #ff453a;
  --orange: #ff9f0a;
  --radius: 14px;
}
::selection { background: rgba(47, 128, 237, .35); }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, "PingFang SC", "Hiragino Sans", "Apple SD Gothic Neo", sans-serif;
  font-size: 16px; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; height: auto; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 28px; }

/* ---------- Nav ---------- */
header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(5, 7, 13, .78); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 22px; height: 60px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 650; font-size: 17px; color: var(--text); }
.brand img { width: 26px; height: 26px; }
.nav nav { margin-left: auto; display: flex; align-items: center; gap: 18px; font-size: 14px; }
.nav nav a { color: var(--muted); }
.nav nav a:hover { color: var(--text); text-decoration: none; }
.nav .dl {
  background: var(--blue); color: #fff; padding: 7px 15px; border-radius: 9px; font-weight: 560;
}
.nav .dl:hover { filter: brightness(1.08); text-decoration: none; }
@media (max-width: 760px) { .nav nav a:not(.dl):not(.lang) { display: none; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; border: 0; cursor: pointer; font: inherit; font-weight: 590; font-size: 15.5px;
  padding: 12px 24px; border-radius: 11px; color: var(--text); text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { background: transparent; border: 1px solid rgba(235, 238, 245, .22); }
.btn-ghost:hover { border-color: rgba(235, 238, 245, .4); }

/* ---------- Hero ---------- */
.hero {
  position: relative; padding: 96px 0 104px; text-align: center;
}
/* One restrained stage light behind the headline — no blobs, no gradients
   fighting the artwork. */
.hero::before {
  content: ""; position: absolute; inset: -60px 0 auto 0; height: 560px;
  background: radial-gradient(52% 62% at 50% 0%, rgba(47, 128, 237, .16), rgba(47, 128, 237, 0) 70%);
  pointer-events: none;
}
.hero > * { position: relative; }
.hero h1 {
  font-size: clamp(42px, 6.2vw, 68px); line-height: 1.12;
  letter-spacing: -.022em; margin: 0 auto 18px; font-weight: 700; max-width: 900px;
  background: linear-gradient(115deg, #f4f7fc 30%, #9fc0ff 62%, var(--violet) 92%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .sub {
  font-size: clamp(16px, 2vw, 19px); line-height: 1.75; color: var(--muted);
  max-width: 660px; margin: 0 auto 30px;
}
.hero .cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero .note { color: var(--faint); font-size: 13px; margin-top: 16px; }
/* Capability capsules — the at-a-glance row under the CTA (Shotora-style). */
.quick {
  display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
  max-width: 900px; margin: 40px auto 0;
}
.quick span {
  background: var(--panel); border: 1px solid rgba(120, 160, 235, .18);
  border-radius: 999px; padding: 7px 18px; font-size: 13.5px; color: var(--muted);
  transition: border-color .3s ease, color .3s ease;
}
.quick span:hover { border-color: rgba(120, 160, 235, .4); color: var(--text); }
.shot {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: var(--panel); box-shadow: 0 24px 70px rgba(0, 0, 0, .5);
}
.hero .shot {
  max-width: 1120px; margin: 48px auto 0;
  border-color: rgba(120, 160, 235, .16);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .4), 0 30px 90px rgba(0, 0, 0, .55), 0 8px 60px rgba(47, 128, 237, .10);
}

/* ---------- Sections ---------- */
section { padding: 100px 0; scroll-margin-top: 64px; }
section.alt { background: #080b12; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
h2 { font-size: clamp(28px, 3.4vw, 36px); letter-spacing: -.018em; margin: 0 0 10px; text-align: center; }
.section-lead { text-align: center; color: var(--muted); max-width: 640px; margin: 0 auto 48px; font-size: 16.5px; }

/* Scroll reveal — subtle, and off entirely for reduced-motion users. */
.fade { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.fade.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .fade { opacity: 1; transform: none; transition: none; } }

/* Feature rows: big screenshot + text, alternating */
.feature { display: grid; grid-template-columns: 1.35fr 1fr; gap: 44px; align-items: center; margin-bottom: 66px; }
.feature:last-child { margin-bottom: 0; }
.feature.flip { grid-template-columns: 1fr 1.35fr; }
.feature.flip .shot { order: 2; }
.feature h3 { font-size: 21px; margin: 0 0 8px; }
.feature p { color: var(--muted); margin: 0; font-size: 15.5px; }
.feature .tag { font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--blue); }
@media (max-width: 860px) {
  .feature, .feature.flip { grid-template-columns: 1fr; gap: 18px; }
  .feature.flip .shot { order: 0; }
}

/* AI duo */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.duo figure { margin: 0; }
.duo figcaption { padding: 14px 4px 0; font-size: 14.5px; color: var(--muted); }
.duo figcaption b { color: var(--text); font-weight: 600; }
@media (max-width: 860px) { .duo { grid-template-columns: 1fr; } }

/* ---------- Language tabs ---------- */
.tabs { display: flex; gap: 8px; justify-content: center; margin-bottom: 28px; flex-wrap: wrap; }
.tabs button {
  font: inherit; font-size: 14.5px; cursor: pointer; color: var(--muted);
  background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 7px 18px;
}
.tabs button.on { color: #fff; background: var(--blue); border-color: var(--blue); }
.strip { display: flex; gap: 18px; overflow-x: auto; padding: 4px 4px 18px; scroll-snap-type: x mandatory; }
.strip .shot { flex: 0 0 min(78%, 620px); scroll-snap-align: start; box-shadow: 0 12px 34px rgba(0,0,0,.4); }

/* ---------- Use cases ---------- */
.qgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 860px; margin: 0 auto 34px; }
.qgrid div {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; font-size: 15.5px;
}
.qgrid div::before { content: "?"; display: inline-block; color: var(--orange); font-weight: 700; margin-right: 10px; }
.chips { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.chips span {
  font-size: 13.5px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px;
}
@media (max-width: 700px) { .qgrid { grid-template-columns: 1fr; } }

/* ---------- Trust ---------- */
.trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; max-width: 1020px; margin: 0 auto; }
.trust div {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 26px; transition: border-color .3s ease, background .3s ease;
}
.trust div:hover { border-color: rgba(120, 160, 235, .3); background: var(--panel-2); }
.trust b { display: block; margin-bottom: 6px; font-size: 16px; }
.trust b::before { content: "✓"; color: var(--green); margin-right: 9px; }
.trust p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }

/* ---------- Pricing ---------- */
.price-card {
  position: relative; max-width: 460px; margin: 0 auto; text-align: center;
  background: var(--panel); border: 1px solid rgba(120, 160, 235, .18);
  border-radius: 18px; padding: 42px 38px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .45), 0 4px 40px rgba(47, 128, 237, .07);
  overflow: hidden;
}
/* A hairline of light along the top edge — the only ornament it needs. */
.price-card::before {
  content: ""; position: absolute; top: 0; left: 12%; right: 12%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(159, 192, 255, .55), transparent);
}
.price-card .amount { font-size: 48px; font-weight: 700; margin: 8px 0; letter-spacing: -.02em; }
.price-card .terms { font-size: 13.5px; color: var(--faint); margin-bottom: 22px; }
.price-card .btn { width: 100%; }
.price-card .after { font-size: 12.5px; color: var(--faint); margin-top: 12px; }

/* ---------- Download / requirements ---------- */
.reqs { display: flex; gap: 26px; justify-content: center; flex-wrap: wrap; color: var(--muted); font-size: 14px; margin-top: 22px; }
.reqs span::before { content: "·"; margin-right: 7px; color: var(--faint); }
.reqs span:first-child::before { content: ""; margin: 0; }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; font-weight: 560; padding: 13px 0; font-size: 15.5px; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "＋"; float: right; color: var(--faint); }
.faq details[open] summary::after { content: "－"; }
.faq p { color: var(--muted); margin: 0 0 14px; font-size: 14.5px; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); padding: 36px 0 46px; text-align: center; color: var(--faint); font-size: 13px; }
footer a { color: var(--muted); margin: 0 9px; }

/* ---------- WeChat modal (zh page) ---------- */
.modal-mask {
  display: none; position: fixed; inset: 0; z-index: 90;
  background: rgba(6, 8, 11, .72); backdrop-filter: blur(4px);
  align-items: center; justify-content: center;
}
.modal-mask.show { display: flex; }
.wx-modal {
  position: relative; width: min(420px, calc(100vw - 40px));
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 18px;
  padding: 32px 30px; text-align: center;
}
.wx-modal h3 { margin: 0 0 6px; font-size: 19px; }
.wx-modal .price { font-size: 30px; font-weight: 700; margin: 6px 0 4px; }
.wx-modal .close {
  position: absolute; top: 12px; right: 14px; background: none; border: 0;
  color: var(--faint); font-size: 16px; cursor: pointer;
}
.wx-qr { display: flex; justify-content: center; margin: 16px 0; }
.wx-qr img, .wx-qr canvas { border-radius: 8px; background: #fff; padding: 8px; }

/* ---------- Story cards (01–09 narrative assets) ---------- */
.hero .shot.card-shot, .story-item .shot { max-width: 1120px; margin-left: auto; margin-right: auto; }
.story-item { max-width: 1120px; margin: 0 auto 84px; }
.story-item:last-child { margin-bottom: 0; }
.story-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 6px; }
.story-head .num {
  flex: none; font-size: 13px; font-weight: 650; color: #9fc0ff;
  border: 1px solid rgba(120, 160, 235, .35); border-radius: 8px; padding: 1px 9px;
  background: rgba(47, 128, 237, .08);
}
.story-head h3 { font-size: clamp(19px, 2.4vw, 25px); letter-spacing: -.014em; margin: 0; }
.story-sub { color: var(--muted); font-size: 15.5px; margin: 0 0 20px; }
/* 次要说明：紧跟 story-sub，更小更淡（边界 / 数据流向类提示） */
.story-note { color: var(--muted); opacity: .72; font-size: 13.5px; line-height: 1.7; margin: -10px 0 20px; }
.story-item .shot {
  border-color: rgba(120, 160, 235, .14);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .4), 0 24px 70px rgba(0, 0, 0, .5);
  transition: border-color .35s ease, box-shadow .35s ease;
}
.story-item .shot:hover {
  border-color: rgba(120, 160, 235, .3);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .4), 0 24px 70px rgba(0, 0, 0, .5), 0 6px 50px rgba(47, 128, 237, .12);
}
.story-item .shot img, .card-shot img { width: 100%; height: auto; display: block; }
/* Chapter markers give the long scroll a rhythm. */
.chapter { text-align: center; margin: 0 0 46px; }
.story-item + .chapter { margin-top: 96px; }
.chapter .kicker {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 13px; font-weight: 650; letter-spacing: .18em; text-transform: uppercase;
  color: #9fc0ff;
}
.chapter .kicker::before, .chapter .kicker::after {
  content: ""; width: 44px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(120, 160, 235, .5));
}
.chapter .kicker::after { transform: scaleX(-1); }
@media (max-width: 700px) {
  .story-item { margin-bottom: 56px; }
  .story-item + .chapter { margin-top: 64px; }
}

/* ---------- Personas (who it's for) ---------- */
.personas { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; max-width: 1020px; margin: 38px auto 0; }
.personas div {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; transition: border-color .3s ease, background .3s ease;
}
.personas div:hover { border-color: rgba(120, 160, 235, .3); background: var(--panel-2); }
.personas b { display: block; margin-bottom: 7px; font-size: 16.5px; }
.personas p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }

/* ---------- Plan picker (annual vs lifetime) ---------- */
.price-card .year-line { font-size: 14px; color: var(--muted); margin: 2px 0 10px; }
/* 两档并列：年付为主视觉（入口价放大），买断并列可见（差异化卖点不缩小字） */
.price-card { max-width: 560px; }
.tiers { display: flex; gap: 14px; margin: 4px 0 18px; text-align: left; }
.tier { flex: 1; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 18px 16px; }
.tier-main { border-color: var(--blue); box-shadow: 0 0 0 1px rgba(47, 128, 237, .25) inset; }
.tier-name { font-size: 13.5px; color: var(--muted); }
.tier .amount { font-size: 40px; margin: 6px 0 4px; line-height: 1.1; }
.tier .amount .per { font-size: 16px; font-weight: 500; color: var(--muted); margin-left: 3px; }
.tier .amount-sm { font-size: 30px; margin-top: 10px; }
.tier-sub { font-size: 12.5px; color: var(--faint); }
.tier .tag { display: inline-block; font-size: 11px; color: var(--blue); border: 1px solid rgba(47, 128, 237, .45);
  border-radius: 999px; padding: 1px 7px; margin-left: 7px; vertical-align: 1px; }
@media (max-width: 520px) { .tiers { flex-direction: column; } }
.price-card .year-line b { color: var(--text); }
.plan-pick { display: flex; gap: 10px; margin: 14px 0 16px; }
.plan-pick .plan-opt {
  flex: 1; font: inherit; cursor: pointer; background: var(--bg); color: var(--text);
  border: 1px solid var(--line); border-radius: 12px; padding: 12px 8px;
}
.plan-pick .plan-opt.sel { border-color: var(--blue); }
.plan-pick .plan-opt b { font-size: 17px; }
.plan-pick .plan-opt small { display: block; margin-top: 3px; font-size: 12px; color: var(--muted); }

/* ---------- Languages (text-only) ---------- */
.langs { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; max-width: 900px; margin: 38px auto 0; }
.langs div {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 20px; text-align: center; transition: border-color .3s ease;
}
.langs div:hover { border-color: rgba(120, 160, 235, .3); }
.langs .name { font-size: 21px; font-weight: 650; margin-bottom: 6px; }
.langs .sub { font-size: 13px; color: var(--muted); }

/* ---------- 教程页（guides） ---------- */
.article-wrap { max-width: 820px; padding-top: 40px; padding-bottom: 60px; }
.article .crumbs { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.article .crumbs a { color: var(--muted); }
.article h1 { font-size: 36px; line-height: 1.25; margin: 0 0 10px; letter-spacing: -.5px; }
.article .article-meta { color: var(--muted); font-size: 13px; margin: 0 0 28px; }
.article .lead { font-size: 17px; color: var(--muted); line-height: 1.8; }
.article h1, .article h2 { text-align: left; }
.article h2 { font-size: 23px; margin: 40px 0 14px; }
.article p, .article li { font-size: 15.5px; line-height: 1.8; }
.article ol, .article ul { padding-left: 22px; }
.article li { margin: 6px 0; }
.article code { background: var(--panel); border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; font-size: 13.5px; }
.article table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14.5px; }
.article th, .article td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; vertical-align: top; }
.article th { background: var(--panel); }
.article .tip { background: var(--panel); border-left: 3px solid var(--blue); border-radius: 8px; padding: 12px 16px; margin: 18px 0; font-size: 14.5px; color: var(--muted); }
.article .faq { max-width: none; margin: 0; }
.article .cta-box { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; margin: 36px 0 8px; }
.article .cta-box span { color: var(--muted); font-size: 13.5px; }
.article .cta-btns { display: flex; gap: 10px; }
.article .cta-btns .btn { padding: 11px 20px; font-size: 14.5px; }
.article .related a { color: var(--blue); }
.guides-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.guides-list a { display: block; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; color: var(--text); }
.guides-list a:hover { border-color: var(--blue); }
.guides-list b { display: block; font-size: 16px; margin-bottom: 4px; }
.guides-list span { color: var(--muted); font-size: 14px; }
