/* =============================================================
   VectorShop — 产品官网样式(中英双语共享,无语言相关逻辑)
   亮色 · 设计工具风(编辑器/画板质感)· 零外链
   ============================================================= */

/* ---------- Design tokens ---------- */
:root {
  /* 画纸与表面 */
  --paper:        #f4f1ea;   /* 暖白画布 */
  --paper-2:      #efece3;   /* 略深底纹 */
  --surface:      #fbfaf6;   /* 卡片 */
  --surface-ink:  #14172a;   /* 深色区块 */

  /* 墨色文字 */
  --ink:          #171b2e;   /* 主文字 · 近墨蓝 */
  --ink-soft:     #565c72;   /* 次要文字 */
  --ink-faint:    #8a8fa1;   /* 更弱 */
  --ink-invert:   #f4f1ea;   /* 深底上的文字 */

  /* 线与阴影 */
  --line:         #e4e0d4;   /* 发丝分隔线 */
  --line-strong:  #d3cebe;

  /* 品牌色 */
  --accent:       #e14b32;   /* 朱砂 · 主行动色 */
  --accent-deep:  #bf3a24;   /* 悬停 */
  --accent-soft:  #fbe6df;   /* 浅底 */
  --indigo:       #4b47d6;   /* 靛蓝 · 可编辑/节点母题 */
  --indigo-soft:  #e7e6fb;
  --brass:        #b98a2e;   /* 黄铜 · 细节点缀 */

  /* 品牌渐变(取自 App 图标:靛→品→珊瑚) */
  --brand-grad: linear-gradient(135deg, #4b47d6 0%, #a748c4 48%, #e14b32 100%);

  /* 字体:系统栈,中文回落 PingFang SC,不外链 */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
               "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, "Cascadia Mono",
               Consolas, monospace;
  --font-serif: "Songti SC", Georgia, "Times New Roman", "Noto Serif SC", serif;

  /* 字号(流式) */
  --fs-display: clamp(2.7rem, 6.4vw, 5rem);
  --fs-h2:      clamp(1.75rem, 3.6vw, 2.9rem);
  --fs-h3:      clamp(1.15rem, 1.9vw, 1.45rem);
  --fs-lead:    clamp(1.05rem, 1.7vw, 1.3rem);
  --fs-body:    1rem;
  --fs-sm:      0.875rem;
  --fs-mono:    0.72rem;

  /* 间距节奏 */
  --pad-x:      clamp(1.25rem, 5vw, 5.5rem);
  --sec-y:      clamp(4rem, 9vw, 8rem);
  --gap:        clamp(1rem, 2.2vw, 1.75rem);

  /* 圆角 */
  --r-lg: 22px;
  --r-md: 15px;
  --r-sm: 9px;
  --r-pill: 999px;

  /* 阴影(暖调) */
  --sh-1: 0 1px 2px rgba(20,23,42,.05), 0 10px 26px -14px rgba(20,23,42,.16);
  --sh-2: 0 2px 6px rgba(20,23,42,.06), 0 26px 54px -22px rgba(20,23,42,.24);
  --sh-accent: 0 10px 26px -10px rgba(225,75,50,.5);

  --maxw: 1200px;
}

/* ---------- Reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; overflow-x: hidden; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.62;
  color: var(--ink);
  background-color: var(--paper);
  /* 画板点阵纹理:极淡,营造编辑器画布氛围 */
  background-image:
    radial-gradient(rgba(23,27,46,.045) 1px, transparent 1px);
  background-size: 26px 26px;
  background-position: -13px -13px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul { list-style: none; padding: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
:focus-visible { outline: 2.5px solid var(--indigo); outline-offset: 3px; border-radius: 4px; }

/* ---------- Shared bits ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad-x); }
.section { padding-block: var(--sec-y); }

.kicker {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent-deep);
  display: inline-flex;
  align-items: center;
  gap: .55em;
  margin-bottom: 1.1rem;
}
.kicker::before {
  content: "";
  width: 1.6rem; height: 1px;
  background: var(--accent);
}
.section-head { max-width: 42rem; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head h2 {
  font-size: var(--fs-h2);
  line-height: 1.12;
  letter-spacing: -.015em;
  font-weight: 800;
}
.section-head p { margin-top: .9rem; color: var(--ink-soft); font-size: var(--fs-lead); }

.eyebrow-num { font-family: var(--font-mono); color: var(--ink-faint); }

/* Buttons */
.btn {
  --_bg: var(--ink);
  --_fg: var(--ink-invert);
  display: inline-flex; align-items: center; gap: .55em;
  padding: .72em 1.35em;
  border-radius: var(--r-pill);
  background: var(--_bg);
  color: var(--_fg);
  font-weight: 650;
  font-size: var(--fs-sm);
  line-height: 1;
  white-space: nowrap;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn--accent { --_bg: var(--accent); --_fg: #fff; box-shadow: var(--sh-accent); }
.btn--accent:hover { --_bg: var(--accent-deep); }
.btn--ghost {
  --_bg: transparent; --_fg: var(--ink);
  border: 1.5px solid var(--line-strong);
}
.btn--ghost:hover { --_bg: var(--surface); border-color: var(--ink); }
.btn .apple { width: 1.05em; height: 1.05em; margin-top: -2px; }
/* 按钮文案窄屏缩短:.btn__short 默认隐藏,窄屏时与 .btn__full 互换(见 RESPONSIVE) */
.btn__short { display: none; }

.badge {
  display: inline-flex; align-items: center; gap: .4em;
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brass);
  padding: .3em .7em;
  border: 1px solid color-mix(in srgb, var(--brass) 40%, transparent);
  border-radius: var(--r-pill);
}
.badge .dot { width: .45em; height: .45em; border-radius: 50%; background: var(--brass); }

/* App Store 徽章按钮 */
.appstore {
  display: inline-flex; align-items: center; gap: .65em;
  padding: .7em 1.4em .7em 1.2em;
  border-radius: 14px;
  background: var(--ink);
  color: #fff;
}
.appstore svg { width: 1.85em; height: 1.85em; }
.appstore .t { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.appstore .t small { font-size: .62em; letter-spacing: .04em; opacity: .8; }
.appstore .t b { font-size: 1.05em; font-weight: 650; letter-spacing: .01em; }
.appstore:hover { transform: translateY(-2px); }
.appstore { transition: transform .18s ease; }

/* =============================================================
   NAV
   ============================================================= */
.nav {
  position: sticky; top: 0; z-index: 100;
  transition: background .25s ease, box-shadow .25s ease, border-color .25s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom-color: var(--line);
  box-shadow: 0 8px 30px -22px rgba(20,23,42,.5);
}
.nav__inner {
  max-width: var(--maxw); margin-inline: auto;
  padding: .85rem var(--pad-x);
  display: flex; align-items: center; gap: 1.5rem;
}
.brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 800; letter-spacing: -.01em; font-size: 1.12rem; }
.brand__mark { width: 30px; height: 30px; border-radius: 8px; display: block; box-shadow: 0 2px 8px -2px rgba(75,71,214,.5); }
.nav__links { display: flex; gap: 1.4rem; margin-left: auto; }
.nav__links a { font-size: var(--fs-sm); color: var(--ink-soft); font-weight: 550; transition: color .15s ease; }
.nav__links a:hover { color: var(--ink); }
.nav__actions { display: flex; align-items: center; gap: .85rem; }
.lang-switch {
  font-family: var(--font-mono); font-size: .74rem; font-weight: 600;
  letter-spacing: .1em; color: var(--ink-soft);
  padding: .35em .6em; border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  transition: border-color .15s ease, color .15s ease;
}
.lang-switch:hover { color: var(--ink); border-color: var(--ink); }

/* =============================================================
   HERO
   ============================================================= */
.hero { position: relative; padding-top: clamp(2.5rem, 6vw, 5rem); padding-bottom: var(--sec-y); }
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero__tag {
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--font-mono); font-size: var(--fs-mono);
  letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft);
  padding: .4em .8em; border: 1px solid var(--line-strong); border-radius: var(--r-pill);
  background: var(--surface);
  margin-bottom: 1.6rem;
}
.hero__tag i { width: .5em; height: .5em; border-radius: 50%; background: var(--brand-grad); }
.hero h1 {
  font-size: var(--fs-display);
  line-height: 1.04;
  letter-spacing: -.02em;
  font-weight: 850;
}
.hero h1 .grad {
  background: var(--brand-grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero__lead {
  margin-top: 1.5rem;
  font-size: var(--fs-lead);
  color: var(--ink-soft);
  max-width: 34rem;
}
.hero__cta { margin-top: 2.1rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.hero__cta .with-badge { display: inline-flex; align-items: center; gap: .7rem; }

/* Hero 拼贴画板 */
.collage {
  position: relative;
  aspect-ratio: 5 / 5.2;
  --card-r: 16px;
}
.collage__board {
  position: absolute; inset: 0;
  border-radius: var(--r-lg);
  background:
    radial-gradient(rgba(23,27,46,.06) 1px, transparent 1px) 0 0 / 22px 22px,
    var(--paper-2);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6);
}
.collage__note {
  position: absolute; left: 14px; bottom: 12px; z-index: 5;
  font-family: var(--font-mono); font-size: .64rem; letter-spacing: .08em;
  color: var(--ink-faint);
}
.collage figure { position: absolute; margin: 0; border-radius: var(--card-r); overflow: hidden; background: var(--surface); box-shadow: var(--sh-2); border: 1px solid rgba(255,255,255,.7); }
.collage figure img { width: 100%; height: 100%; object-fit: cover; }
.collage .c1 { width: 46%; top: 6%;  left: 6%;  aspect-ratio: 762/1200; transform: rotate(-4deg); z-index: 3; }
.collage .c2 { width: 44%; top: 2%;  right: 5%; aspect-ratio: 1/1;     transform: rotate(3deg);  z-index: 2; }
.collage .c3 { width: 52%; bottom: 5%; right: 7%; aspect-ratio: 900/1200; transform: rotate(-2deg); z-index: 4; }
.collage .c4 { width: 34%; bottom: 9%; left: 4%; aspect-ratio: 1200/675; transform: rotate(5deg);  z-index: 1; }
/* 悬停微交互 */
.collage figure { transition: transform .3s ease; }
.collage:hover .c1 { transform: rotate(-4deg) translateY(-6px); }
.collage:hover .c3 { transform: rotate(-2deg) translateY(-6px); }

/* 画布节点母题:一个漂浮的锚点手柄 */
.node-handle {
  position: absolute; z-index: 6; width: 13px; height: 13px;
  border: 2px solid var(--indigo); background: #fff; border-radius: 3px;
  box-shadow: 0 2px 6px rgba(75,71,214,.4);
}
.collage .nh1 { top: 4%; left: 4%; }
.collage .nh2 { bottom: 3%; right: 4%; border-radius: 50%; border-color: var(--accent); }

/* =============================================================
   PAIN
   ============================================================= */
.pain__cards { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.compare {
  position: relative;
  padding: clamp(1.5rem, 3vw, 2.3rem);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--surface);
}
.compare--bad { background: var(--paper-2); }
.compare--good {
  border-color: color-mix(in srgb, var(--indigo) 30%, var(--line));
  box-shadow: var(--sh-1);
}
.compare__label {
  display: inline-flex; align-items: center; gap: .55em;
  font-weight: 750; font-size: var(--fs-h3); letter-spacing: -.01em;
  margin-bottom: 1.2rem;
}
.compare--bad .compare__label { color: var(--ink-soft); }
.compare__icon { width: 34px; height: 34px; flex: none; }
.compare ul { display: grid; gap: .85rem; }
.compare li { position: relative; padding-left: 1.6rem; color: var(--ink-soft); }
.compare li::before {
  position: absolute; left: 0; top: .1em; font-family: var(--font-mono); font-weight: 700;
}
.compare--bad li::before { content: "×"; color: var(--ink-faint); font-size: 1.1em; }
.compare--good li { color: var(--ink); }
.compare--good li::before { content: "✓"; color: var(--indigo); }
.compare--good::after {
  content: ""; position: absolute; inset: 0; border-radius: var(--r-lg);
  background: linear-gradient(180deg, color-mix(in srgb, var(--indigo) 5%, transparent), transparent 40%);
  pointer-events: none;
}

/* =============================================================
   FEATURES
   ============================================================= */
.features__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.feature {
  padding: clamp(1.5rem, 2.6vw, 2.2rem);
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--sh-1); border-color: var(--line-strong); }
.feature__top { display: flex; align-items: baseline; gap: .75rem; margin-bottom: 1.1rem; }
.feature__num {
  font-family: var(--font-mono); font-size: .8rem; font-weight: 700;
  color: #fff; background: var(--ink); width: 1.9em; height: 1.9em;
  display: grid; place-items: center; border-radius: 7px; flex: none;
}
.feature h3 { font-size: var(--fs-h3); font-weight: 750; letter-spacing: -.01em; line-height: 1.25; }
.feature ul { display: grid; gap: .7rem; }
.feature li { position: relative; padding-left: 1.35rem; color: var(--ink-soft); font-size: .96rem; }
.feature li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 6px; height: 6px; border-radius: 2px; background: var(--accent);
}
.feature--wide { grid-column: 1 / -1; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(1.5rem, 3vw, 2.5rem); align-items: center; }
.feature--wide .feature__body { align-self: center; }

/* 灰底占位:App 界面截图 */
.shot-img { display: block; width: 100%; height: auto; }

/* =============================================================
   GALLERY
   ============================================================= */
.gallery__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1.5rem; }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.chip {
  padding: .5em 1em;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink-soft);
  font-size: var(--fs-sm); font-weight: 600;
  transition: all .16s ease;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.is-active { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* 瀑布流:CSS 多列 */
.masonry { column-count: 3; column-gap: var(--gap); }
.masonry figure {
  break-inside: avoid;
  margin: 0 0 var(--gap);
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--sh-1);
  transition: transform .22s ease, box-shadow .22s ease;
}
.masonry figure:hover { transform: translateY(-4px); box-shadow: var(--sh-2); }
.masonry .shot { aspect-ratio: var(--ar, 1 / 1); }
.masonry img { width: 100%; height: 100%; object-fit: cover; }
.masonry figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1.4rem .9rem .7rem;
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase;
  color: #fff;
  background: linear-gradient(to top, rgba(15,17,30,.66), transparent);
  opacity: 0; transform: translateY(6px);
  transition: opacity .22s ease, transform .22s ease;
}
.masonry figure:hover figcaption { opacity: 1; transform: none; }

/* =============================================================
   IO — 导进来 / 交出去
   ============================================================= */
.io__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.io__panel {
  padding: clamp(1.6rem, 3vw, 2.4rem);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--surface);
}
.io__panel h3 { display: flex; align-items: center; gap: .6rem; font-size: var(--fs-h3); font-weight: 750; margin-bottom: 1.2rem; }
.io__panel .arrow { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: #fff; flex: none; }
.io--in  .arrow { background: var(--indigo); }
.io--out .arrow { background: var(--accent); }
.io__panel ul { display: grid; gap: .95rem; }
.io__panel li { position: relative; padding-left: 1.4rem; color: var(--ink-soft); }
.io__panel li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--line-strong); }
.io--in li::before { background: var(--indigo); }
.io--out li::before { background: var(--accent); }
.fmt { display: inline-block; font-family: var(--font-mono); font-size: .8em; padding: .05em .35em; border-radius: 5px; background: var(--paper-2); color: var(--ink); }

/* =============================================================
   WHO
   ============================================================= */
.who__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.who__card {
  padding: clamp(1.4rem, 2.4vw, 1.9rem);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  transition: transform .2s ease, box-shadow .2s ease;
}
.who__card:hover { transform: translateY(-4px); box-shadow: var(--sh-1); }
.who__card .n { font-family: var(--font-mono); font-size: .72rem; color: var(--ink-faint); }
.who__card h3 { font-size: 1.18rem; font-weight: 750; margin: .55rem 0 .6rem; }
.who__card p { color: var(--ink-soft); font-size: .95rem; }

/* =============================================================
   PRICING
   ============================================================= */
.pricing__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); max-width: 60rem; }
.plan {
  padding: clamp(1.7rem, 3vw, 2.4rem);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--surface);
}
.plan--pro { position: relative; border-color: transparent; background: var(--surface-ink); color: var(--ink-invert); box-shadow: var(--sh-2); }
.plan--pro::before {
  content: ""; position: absolute; inset: 0; border-radius: var(--r-lg); padding: 1.5px;
  background: var(--brand-grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}
.plan__name { display: flex; align-items: center; justify-content: space-between; }
.plan__name h3 { font-size: 1.35rem; font-weight: 800; }
.plan__price { margin: 1rem 0 1.4rem; font-family: var(--font-mono); font-size: 1.1rem; color: var(--brass); }
.plan--pro .plan__price { color: color-mix(in srgb, var(--brass) 70%, #fff); }
.plan ul { display: grid; gap: .8rem; }
.plan li { position: relative; padding-left: 1.5rem; font-size: .96rem; color: var(--ink-soft); }
.plan--pro li { color: color-mix(in srgb, var(--ink-invert) 82%, transparent); }
.plan li::before { content: "—"; position: absolute; left: 0; color: var(--ink-faint); }
.plan .tier-tag { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; padding: .3em .7em; border-radius: var(--r-pill); }
.plan--free .tier-tag { color: var(--ink-soft); border: 1px solid var(--line-strong); }
.plan--pro .tier-tag { color: #fff; background: var(--brand-grad); }
.plan__price small { font-family: var(--font-sans); font-size: .82rem; color: var(--ink-faint); letter-spacing: 0; }
.plan--pro .plan__price small { color: color-mix(in srgb, var(--ink-invert) 55%, transparent); }

/* Pro 卡里的三种购买方式 */
.plan__options { margin-bottom: 1.5rem; padding-bottom: 1.4rem; border-bottom: 1px solid color-mix(in srgb, var(--ink-invert) 14%, transparent); }
.plan__options li { display: flex; align-items: baseline; gap: .6rem; padding-left: 0; font-size: .92rem; }
.plan__options li::before { content: none; }
.plan__options b { flex: none; min-width: 3.6em; font-weight: 650; color: var(--ink-invert); }
.plan__options span { font-family: var(--font-mono); font-size: .88em; }
.plan__options em {
  font-family: var(--font-mono); font-style: normal; font-size: .66rem;
  letter-spacing: .1em; text-transform: uppercase;
  padding: .2em .6em; border-radius: var(--r-pill);
  color: #fff; background: var(--brand-grad);
}
.plan__note {
  margin-top: 1.5rem; padding: .9rem 1rem;
  border-radius: var(--r-sm);
  background: color-mix(in srgb, var(--brass) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--brass) 34%, transparent);
  font-size: .86rem; line-height: 1.55;
  color: color-mix(in srgb, var(--ink-invert) 88%, transparent);
}
.plan__note b { color: var(--ink-invert); font-weight: 700; }
.pricing__fineprint { max-width: 60rem; margin-top: 1.4rem; font-size: var(--fs-sm); color: var(--ink-faint); }

/* =============================================================
   FAQ
   ============================================================= */
.faq__list { max-width: 52rem; border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  list-style: none; cursor: pointer;
  padding: 1.35rem 0;
  display: flex; align-items: center; gap: 1rem;
  font-weight: 650; font-size: 1.08rem;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary .q { font-family: var(--font-mono); color: var(--accent); font-size: .85rem; flex: none; }
.faq__item summary .plus { margin-left: auto; position: relative; width: 18px; height: 18px; flex: none; }
.faq__item summary .plus::before,
.faq__item summary .plus::after { content: ""; position: absolute; background: var(--ink-soft); transition: transform .22s ease; }
.faq__item summary .plus::before { top: 8px; left: 0; width: 18px; height: 2px; }
.faq__item summary .plus::after  { left: 8px; top: 0; width: 2px; height: 18px; }
.faq__item[open] summary .plus::after { transform: rotate(90deg); opacity: 0; }
.faq__answer { padding: 0 0 1.5rem 2.6rem; color: var(--ink-soft); max-width: 44rem; }

/* =============================================================
   DOWNLOAD
   ============================================================= */
.download__band {
  position: relative; overflow: hidden;
  border-radius: clamp(20px, 3vw, 30px);
  background: var(--surface-ink);
  color: var(--ink-invert);
  padding: clamp(2.6rem, 6vw, 5rem) clamp(1.5rem, 5vw, 4.5rem);
  text-align: center;
}
.download__band::before {
  content: ""; position: absolute; inset: -40% -10% auto; height: 120%;
  background: var(--brand-grad); filter: blur(80px); opacity: .28; pointer-events: none;
}
.download__band::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px) 0 0 / 24px 24px;
  pointer-events: none;
}
.download__band > * { position: relative; z-index: 1; }
.download__band h2 { font-size: var(--fs-h2); font-weight: 850; letter-spacing: -.015em; }
.download__cta { margin-top: 2rem; display: inline-flex; flex-direction: column; align-items: center; gap: 1rem; }

/* =============================================================
   FOOTER
   ============================================================= */
.footer { border-top: 1px solid var(--line); }
.footer__inner {
  max-width: var(--maxw); margin-inline: auto;
  padding: 2.2rem var(--pad-x);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
}
.footer .brand { font-size: 1rem; }
.footer__meta { display: flex; align-items: center; gap: 1.2rem; color: var(--ink-faint); font-size: var(--fs-sm); }
.footer__meta .lang-switch { color: var(--ink-soft); }

/* =============================================================
   REVEAL ANIMATIONS
   ============================================================= */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(18px); animation: reveal .7s cubic-bezier(.2,.7,.2,1) forwards; }
  .reveal.d1 { animation-delay: .06s; }
  .reveal.d2 { animation-delay: .14s; }
  .reveal.d3 { animation-delay: .22s; }
  .reveal.d4 { animation-delay: .3s; }
  @keyframes reveal { to { opacity: 1; transform: none; } }
}

/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; }
  .collage { max-width: 30rem; margin-inline: auto; width: 100%; }
  .who__grid { grid-template-columns: repeat(2, 1fr); }
  .masonry { column-count: 2; }
  .feature--wide { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  html { scroll-padding-top: 68px; }
  .nav__links { display: none; }               /* 折叠为锚点行:见 nav__anchors */
  .nav__anchors { display: flex; }
  .pain__cards,
  .features__grid,
  .io__grid,
  .pricing__grid { grid-template-columns: 1fr; }
  .who__grid { grid-template-columns: 1fr; }
  .faq__answer { padding-left: 0; }
}

/* 移动端锚点行(默认隐藏,≤768 显示) */
.nav__anchors { display: none; }
@media (max-width: 768px) {
  .nav__anchors {
    display: flex; gap: 1.25rem; overflow-x: auto;
    padding: .55rem var(--pad-x) .7rem;
    border-top: 1px solid var(--line);
    -webkit-overflow-scrolling: touch;
  }
  .nav__anchors a { font-size: var(--fs-sm); color: var(--ink-soft); white-space: nowrap; }
  .nav.is-scrolled .nav__anchors { border-top-color: var(--line); }
}

@media (max-width: 460px) {
  .masonry { column-count: 1; }
  .hero__cta { gap: .75rem; }
  .btn__full { display: none; }
  .btn__short { display: inline; }
}

/* =============================================================
   EXAMPLES 范例画廊页 (examples.html · 数据驱动自 manifest.js)
   ============================================================= */
.examples-stats {
  display: flex; gap: 2rem; flex-wrap: wrap;
  margin-top: 1rem; font-family: var(--font-mono);
  font-size: var(--fs-sm); color: var(--ink-soft);
}
.examples-stats b { color: var(--ink); font-size: 1.35rem; font-weight: 700; margin-right: .35em; }
/* 类别筛选:全部 54 类平铺成胶囊云(点选=筛选到该类别 section) */
#examples-filters { margin-bottom: 2.25rem; }
.cat-section { margin-bottom: clamp(2.5rem, 5vw, 4rem); scroll-margin-top: 90px; }
.cat-section[hidden] { display: none; }
.cat-head {
  display: flex; align-items: baseline; gap: .7rem;
  margin-bottom: 1.25rem; font-size: clamp(1.15rem, 2.4vw, 1.6rem); font-weight: 700;
  padding-bottom: .6rem; border-bottom: 1px solid var(--line);
}
.cat-head em { font-family: var(--font-mono); font-style: normal; font-weight: 600;
  font-size: .8rem; color: var(--ink-faint); }
.masonry .shot { display: block; }
.examples-empty { color: var(--ink-soft); font-size: var(--fs-lead); padding: 2rem 0; }

/* ---------- Lightbox:大图预览 + 左右箭头切换 ---------- */
body.lb-open { overflow: hidden; }
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 3.2rem clamp(3.4rem, 7vw, 5rem) 2.2rem;
  background: color-mix(in srgb, var(--surface-ink) 90%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.lightbox[hidden] { display: none; }
.lightbox__stage {
  display: flex; flex-direction: column; align-items: center;
  gap: .8rem; max-width: 100%; max-height: 100%;
}
.lightbox__img {
  max-width: 100%; width: auto; height: auto; object-fit: contain;
  max-height: calc(100vh - 8.5rem);
  max-height: calc(100dvh - 8.5rem);
  border-radius: var(--r-md); background: var(--surface); box-shadow: var(--sh-2);
}
.lightbox__meta {
  display: flex; align-items: baseline; gap: .9em; max-width: 100%;
  color: var(--ink-invert); font-size: var(--fs-sm);
}
.lightbox__cap { opacity: .85; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lightbox__count {
  font-family: var(--font-mono); font-size: var(--fs-mono);
  letter-spacing: .12em; opacity: .6; white-space: nowrap;
}
.lightbox__nav, .lightbox__close {
  position: absolute; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 50%;
  color: var(--ink-invert);
  background: color-mix(in srgb, var(--surface-ink) 55%, transparent);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  transition: background .15s ease, transform .15s ease;
}
.lightbox__nav:hover, .lightbox__close:hover {
  background: color-mix(in srgb, var(--surface-ink) 80%, transparent);
}
.lightbox__nav svg, .lightbox__close svg { width: 22px; height: 22px; }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__nav:hover { transform: translateY(-50%) scale(1.06); }
.lightbox__nav--prev { left: clamp(.6rem, 2.2vw, 1.6rem); }
.lightbox__nav--next { right: clamp(.6rem, 2.2vw, 1.6rem); }
.lightbox__close { top: clamp(.6rem, 2vh, 1.1rem); right: clamp(.6rem, 2.2vw, 1.6rem); }
@media (max-width: 640px) {
  .lightbox { padding: 2.8rem .9rem 2rem; }
  .lightbox__nav { width: 40px; height: 40px; }
  .lightbox__nav--prev { left: .35rem; }
  .lightbox__nav--next { right: .35rem; }
}
@media (prefers-reduced-motion: no-preference) {
  .lightbox { animation: lb-fade .18s ease; }
  @keyframes lb-fade { from { opacity: 0; } }
}

/* ---- 本地策展模式(curate.js);线上站不会加载,这些规则永不生效 ---- */
.curating #examples-root figure { position: relative; }
.curating #examples-root figure.is-featured .shot { outline: 3px solid var(--accent); outline-offset: 2px; }
.curate-badge {
  position: absolute; top: .4rem; right: .4rem; z-index: 2;
  padding: .15rem .45rem; border-radius: 999px;
  font-size: .68rem; font-weight: 600; letter-spacing: .04em;
  background: var(--accent); color: #fff;
}
.curate-badge.is-hero { background: #111; }
.curate-menu {
  position: fixed; z-index: 999; min-width: 12rem; padding: .3rem;
  background: #fff; border-radius: .5rem; box-shadow: 0 8px 30px rgba(0,0,0,.18);
  display: flex; flex-direction: column;
}
.curate-menu button {
  appearance: none; border: 0; background: none; cursor: pointer;
  padding: .45rem .6rem; border-radius: .35rem; text-align: left; font-size: .85rem;
}
.curate-menu button:hover { background: rgba(0,0,0,.06); }
.curate-bar {
  position: fixed; left: 50%; bottom: 1rem; transform: translateX(-50%); z-index: 998;
  display: flex; align-items: center; gap: .75rem;
  padding: .5rem .75rem .5rem 1rem; border-radius: 999px;
  background: #111; color: #fff; font-size: .85rem;
  box-shadow: 0 8px 30px rgba(0,0,0,.25);
}
.curate-bar__save {
  appearance: none; border: 0; cursor: pointer;
  padding: .3rem .8rem; border-radius: 999px;
  background: var(--accent); color: #fff; font-size: .8rem; font-weight: 600;
}
