/* GifGiggle — dark studio aesthetic.
   Palette: near-black canvas, warm magenta→amber accent, high-contrast type.
   Nothing here is decorative for its own sake: every panel is a container for
   image output, and images need a neutral backdrop to read correctly. */

:root {
  --bg: #08080c;
  --bg-2: #0b0b11;
  --panel: #111119;
  --panel-2: #17171f;
  --line: rgba(255, 255, 255, 0.085);
  --line-2: rgba(255, 255, 255, 0.16);
  --text: #f4f4f8;
  --muted: #9a9aab;
  --dim: #6c6c80;
  --pink: #ff3d7f;
  --amber: #ffb020;
  --violet: #7c5cff;
  --ok: #38d39f;
  --grad: linear-gradient(100deg, #ff3d7f 0%, #ff7a3d 55%, #ffb020 100%);
  --r: 18px;
  --shadow: 0 24px 70px -30px rgba(0, 0, 0, 0.9), 0 2px 0 rgba(255, 255, 255, 0.03) inset;
}

* { box-sizing: border-box; }

/* 作者样式里的 display 会盖掉 UA 的 [hidden]，必须显式兜底 */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: "Space Grotesk", Inter, sans-serif; letter-spacing: -0.02em; }

a { color: inherit; text-decoration: none; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 28px;
  padding: 14px max(24px, calc((100vw - 1180px) / 2));
  background: rgba(8, 8, 12, 0.72);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 13px; font-weight: 600; }
/* 品牌标是绘制的菱形笑脸贴纸，不是文字徽标：用图片而非字体，避免字体缺失时退回方框。
   图标自带白色模切边，与字标的白描边是同一套语言；白边本身已经让它从深色底上浮起来，
   再叠投影会在白边外圈加一层粉色光晕，反而糊，所以不加 filter。 */
.brand-mark {
  width: 34px; height: 34px; flex: none;
  background: url("/static/img/logo.svg") center / contain no-repeat;
}
.brand.small .brand-mark { width: 30px; height: 30px; }

/* 贴纸字标。两层结构是必需的：
   ::before 用白色字 + 向外膨胀的描边做出模切白边，自身 z-index:-1 沉在底下；
   内层 <i> 只负责渐变填充并被裁剪到字形内。若把描边和渐变放在同一层，
   -webkit-text-fill-color:transparent 会让描边失去填充，字退化成空心。
   拆成 "Gif" / "Giggle" 两段是因为白边会横向膨胀约半个描边宽，驼峰交界处
   的负空间会被吃掉、两词粘成一串；段间 gap 用来把这部分空间补回来。
   字号不能低于 24px：白边外扩是绝对值，字越小，被填掉的字间空隙占比越大，
   18px 时 "i/f"、"g/g" 之间会出现白色桥接，实测不可用。 */
.brand-name {
  display: inline-flex; align-items: baseline; gap: .10em;
  font-family: "Baloo 2", "Space Grotesk", Inter, cursive; font-weight: 800;
  font-size: 24px; line-height: 1;
}
.brand-name .bn {
  position: relative; display: inline-block; isolation: isolate;
  letter-spacing: .045em;
}
.brand-name .bn::before {
  content: attr(data-t);
  position: absolute; left: 0; top: 0; white-space: nowrap;
  color: #fff; -webkit-text-stroke: .06em #fff;
  letter-spacing: inherit; z-index: -1;
}
.brand-name .bn > i {
  font-style: normal;
  display: inline-block; /* inline 盒上 background-clip:text 不生效，渐变会丢，必须是 inline-block */
  background-image: linear-gradient(100deg, #ff3d7f, #ff7a3d 55%, #ffb020);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
/* 两段各取整体渐变的一段：若两段都跑完整渐变，"Gif" 尾部偏橙而 "Giggle" 头部又回到粉，
   交界处会色相回跳。分段后整串从粉到橙连续，方向也和图标一致。 */
.brand-name .bn:first-child > i { background-image: linear-gradient(100deg, #ff3d7f, #ff6a5c); }
.brand-name .bn:last-child > i { background-image: linear-gradient(100deg, #ff7a3d, #ffb020); }
/* 页脚只缩图标，字标字号不变：缩到 20px 以下白边会重新粘连 */
.nav-links { display: flex; gap: 24px; margin-left: auto; font-size: 14.5px; color: var(--muted); }
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; gap: 10px; margin-left: auto; align-items: center; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 11px 20px; border-radius: 12px; border: 1px solid transparent;
  font: 600 14.5px/1 Inter, sans-serif; cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn-primary {
  background: var(--grad); color: #180f12;
  box-shadow: 0 14px 34px -16px rgba(255, 61, 127, 0.85);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 18px 40px -14px rgba(255, 61, 127, 0.9); }
.btn-ghost { background: rgba(255, 255, 255, 0.05); border-color: var(--line); color: var(--text); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.09); border-color: var(--line-2); }
.btn-block { width: 100%; padding: 15px 20px; font-size: 15.5px; }
.btn-lg { padding: 16px 28px; font-size: 16px; }
.btn[disabled] { opacity: 0.55; pointer-events: none; }

/* ---------- hero ---------- */
.hero {
  display: grid; grid-template-columns: 1fr 520px; gap: 56px;
  max-width: 1180px; margin: 0 auto; padding: 64px 24px 72px;
  align-items: start;
}
.hero-copy { padding-top: 12px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--amber);
  background: rgba(255, 176, 32, 0.08);
  border: 1px solid rgba(255, 176, 32, 0.22);
  padding: 6px 12px; border-radius: 999px;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 10px var(--amber); }
.hero h1 {
  font-size: clamp(38px, 4.6vw, 62px); line-height: 1.02; margin: 22px 0 20px;
  font-weight: 700; letter-spacing: -0.035em;
}
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { font-size: 17.5px; color: var(--muted); max-width: 46ch; }
.lede strong { color: var(--text); font-weight: 600; }
.facts { display: flex; gap: 36px; list-style: none; padding: 0; margin: 32px 0 0; }
.facts li { display: flex; flex-direction: column; }
.facts b { font-family: "Space Grotesk", sans-serif; font-size: 27px; font-weight: 600; }
.facts span { font-size: 12.5px; color: var(--dim); letter-spacing: 0.02em; }
.hero-note {
  display: flex; gap: 9px; align-items: flex-start; margin-top: 30px;
  padding: 13px 15px; border-radius: 12px;
  background: rgba(124, 92, 255, 0.07); border: 1px solid rgba(124, 92, 255, 0.2);
  font-size: 13.5px; color: #c9c1ee; max-width: 44ch;
}
.hero-note svg { width: 16px; height: 16px; fill: var(--violet); flex: none; margin-top: 2px; }

.exports { margin-top: 34px; }
.exports-label { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); }
.exports-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 9px; }
.exp {
  display: flex; flex-direction: column; gap: 1px;
  padding: 8px 12px; border-radius: 10px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.025);
  font-size: 12.5px; font-weight: 600;
}
.exp em { font-style: normal; font-size: 10.5px; font-weight: 400; color: var(--dim); }

.strip { margin-top: 30px; }
.strip-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.strip-head span { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); }
.strip-head a { font-size: 11.5px; color: var(--muted); }
.strip-head a:hover { color: var(--pink); }
.strip-row { display: flex; gap: 10px; margin-top: 10px; }
.strip-item {
  width: 108px; height: 108px; border-radius: 15px; padding: 6px;
  border: 1px solid var(--line); background: var(--panel);
  display: grid; place-items: center;
  transition: border-color 0.18s, transform 0.18s;
}
.strip-item:hover { border-color: rgba(255, 61, 127, 0.5); transform: translateY(-2px); }
.strip-item img { width: 100%; height: 100%; object-fit: contain; }

/* ---------- builder ---------- */
.builder {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px;
  box-shadow: var(--shadow);
  position: relative;
}
.form-step + .step { margin-top: 0; }
.step { padding: 16px 0; border-bottom: 1px solid var(--line); }
.step:first-of-type { padding-top: 4px; }
.step:last-of-type { border-bottom: 0; }
.step-head { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; }
.step-head h3 { font-size: 14.5px; margin: 0; font-weight: 600; letter-spacing: 0; }
.step-no {
  width: 20px; height: 20px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.07); border: 1px solid var(--line-2);
  display: grid; place-items: center;
  font-size: 11px; font-weight: 700; color: var(--muted);
}
.step-no.soft {
  background: rgba(255, 176, 32, 0.14);
  border-color: rgba(255, 176, 32, 0.4);
  color: var(--amber); font-size: 11px;
}
.opt, .mini { margin-left: auto; font-size: 11.5px; color: var(--dim); text-transform: uppercase; letter-spacing: 0.06em; }
.mini {
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line);
  color: var(--muted); padding: 4px 9px; border-radius: 7px; cursor: pointer;
  text-transform: capitalize; letter-spacing: 0.02em; font-size: 11.5px;
  margin-left: 6px; font-family: inherit;
}
.mini:hover { color: var(--text); border-color: var(--line-2); }
.mini.active { color: #180f12; background: var(--amber); border-color: var(--amber); }

/* drop zone */
.drop {
  display: block; position: relative; cursor: pointer;
  border: 1.5px dashed rgba(255, 255, 255, 0.18);
  border-radius: 14px; padding: 20px; text-align: center;
  transition: border-color 0.18s, background 0.18s;
  background: rgba(255, 255, 255, 0.015);
}
.drop:hover, .drop.hot { border-color: rgba(255, 61, 127, 0.65); background: rgba(255, 61, 127, 0.05); }
.drop-empty { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.drop-empty svg { width: 26px; height: 26px; fill: none; stroke: var(--muted); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 4px; }
.drop-empty span { font-size: 14px; color: var(--muted); }
.drop-empty b { color: var(--text); }
.drop-empty em { font-size: 12px; color: var(--dim); font-style: normal; }
.drop-preview { display: flex; align-items: center; gap: 14px; text-align: left; }
.drop-preview img { width: 62px; height: 62px; object-fit: cover; border-radius: 12px; border: 1px solid var(--line-2); }
.drop-x {
  margin-left: auto; width: 26px; height: 26px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.08); border: 0; color: var(--muted);
  font-size: 17px; line-height: 1; cursor: pointer;
}
.drop-x:hover { background: rgba(255, 61, 127, 0.2); color: #fff; }
.drop-preview .pv-name { font-size: 13.5px; color: var(--text); word-break: break-all; }
.drop-preview .pv-sub { font-size: 12px; color: var(--dim); }

.input {
  width: 100%; padding: 12px 14px; border-radius: 11px;
  background: rgba(0, 0, 0, 0.35); border: 1px solid var(--line-2);
  color: var(--text); font: 15px Inter, sans-serif;
  transition: border-color 0.16s, box-shadow 0.16s;
}
.input::placeholder { color: #5c5c70; }
.input:focus { outline: none; border-color: rgba(255, 61, 127, 0.7); box-shadow: 0 0 0 3px rgba(255, 61, 127, 0.14); }
.input.bad { border-color: rgba(255, 61, 127, 0.9); }

.quick { display: flex; gap: 7px; margin-top: 9px; flex-wrap: wrap; }
.chip {
  font: 500 12.5px Inter, sans-serif; color: var(--muted);
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line);
  border-radius: 999px; padding: 5px 11px; cursor: pointer;
}
.chip:hover { color: var(--text); border-color: var(--line-2); background: rgba(255, 255, 255, 0.08); }

.hint { font-size: 12.5px; color: var(--dim); margin: 9px 0 0; line-height: 1.5; }
.hint.warn { color: var(--pink); }

/* ---------- feature card ---------- */
.feat { display: flex; flex-direction: column; gap: 2px; margin-bottom: 10px; }
.feat-row {
  display: grid; grid-template-columns: 132px minmax(0, 1fr) 10px;
  align-items: center; gap: 8px;
  padding: 5px 6px; border-radius: 8px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.06);
}
.feat-row:last-child { border-bottom: 0; }
.feat-row:hover { background: rgba(255, 255, 255, 0.025); }
.feat-key {
  font-size: 10px; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.feat-val {
  width: 100%; min-width: 0;
  padding: 6px 8px; border-radius: 7px;
  background: rgba(0, 0, 0, 0.28); border: 1px solid transparent;
  color: var(--text); font: 500 13px Inter, sans-serif;
  appearance: none;
}
select.feat-val {
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
                    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 14px) 52%, calc(100% - 9px) 52%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 26px;
}
.feat-val:hover { border-color: var(--line); }
.feat-val:focus { outline: none; border-color: rgba(255, 176, 32, 0.6); background: rgba(0, 0, 0, 0.45); }
.feat-sw {
  width: 10px; height: 10px; border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.25); display: block;
}
.feat-sw.ghost { border-color: transparent; }
.feat-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 12px; }
.feat-tag {
  font-size: 11px; color: var(--muted);
  padding: 3px 9px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.035); border: 1px solid var(--line);
}
.acc { margin-bottom: 10px; }
.acc-label {
  display: block; font-size: 10.5px; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--dim); margin-bottom: 6px;
}
.chip.acc { text-transform: capitalize; }
.chip.acc.active, .chip.kind.active {
  color: #180f12; background: var(--amber); border-color: var(--amber);
}
.feat-extra { font-size: 13px; padding: 9px 11px; }

/* caption grid */
.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.slot { display: flex; flex-direction: column; gap: 4px; }
.slot-label { font-size: 10.5px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--dim); padding-left: 2px; }
.slot input {
  width: 100%; padding: 8px 9px; border-radius: 8px;
  background: rgba(0, 0, 0, 0.35); border: 1px solid var(--line);
  color: var(--text); font: 600 11.5px Inter, sans-serif;
  text-align: center; text-transform: none;
}
.slot input:focus { outline: none; border-color: rgba(255, 176, 32, 0.7); background: rgba(0, 0, 0, 0.5); }
.slot input.bad { border-color: rgba(255, 61, 127, 0.85); color: #ffb3c9; }
.slot-warn { font-size: 10px; color: var(--pink); text-align: center; }

/* platforms */
.plats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.plat { position: relative; cursor: pointer; }
.plat input { position: absolute; opacity: 0; pointer-events: none; }
.plat span {
  display: flex; flex-direction: column; gap: 1px;
  padding: 10px 11px; border-radius: 10px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.16s, background 0.16s;
}
.plat b { font-size: 12.5px; font-weight: 600; }
.plat em { font-size: 10.5px; color: var(--dim); font-style: normal; }
.plat input:checked + span { border-color: rgba(255, 176, 32, 0.55); background: rgba(255, 176, 32, 0.08); }
.plat input:focus-visible + span { box-shadow: 0 0 0 3px rgba(255, 176, 32, 0.2); }

.fine { text-align: center; font-size: 12px; color: var(--dim); margin: 10px 0 0; }
.err {
  margin: 12px 0 0; padding: 11px 13px; border-radius: 10px;
  background: rgba(255, 61, 127, 0.1); border: 1px solid rgba(255, 61, 127, 0.3);
  color: #ffc2d5; font-size: 13px;
}

/* ---------- working state ---------- */
.working { padding: 6px 2px; }
.working-head { display: flex; gap: 13px; align-items: flex-start; margin-bottom: 16px; }
.working-head b { display: block; font-size: 15px; font-family: "Space Grotesk", sans-serif; }
.working-head span { font-size: 12.5px; color: var(--dim); }
.spinner {
  width: 18px; height: 18px; flex: none; margin-top: 4px;
  border: 2px solid rgba(255, 255, 255, 0.14); border-top-color: var(--pink);
  border-radius: 50%; animation: spin 0.85s linear infinite;
}
.spinner.big { width: 34px; height: 34px; border-width: 3px; margin: 0 auto 18px; }
@keyframes spin { to { transform: rotate(360deg); } }

.bar { height: 5px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.bar.wide { max-width: 420px; margin: 20px auto 10px; }
.bar i { display: block; height: 100%; width: 0; border-radius: 999px; background: var(--grad); transition: width 0.5s ease; }

.skeletons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 18px 0 0; }
.skel {
  aspect-ratio: 1; border-radius: 12px; position: relative; overflow: hidden;
  background: rgba(255, 255, 255, 0.035); border: 1px solid var(--line);
  display: grid; place-items: center;
}
.skel span { font-size: 10.5px; color: var(--dim); letter-spacing: 0.05em; text-transform: uppercase; }
.skel::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, 0.07) 50%, transparent 80%);
  transform: translateX(-100%); animation: sweep 1.7s infinite;
}
.skel.done::after { display: none; }
.skel.done { border-color: rgba(56, 211, 159, 0.35); background: rgba(56, 211, 159, 0.06); }
@keyframes sweep { to { transform: translateX(100%); } }

.failed { text-align: center; padding: 10px 0; }
.failed h3 { font-family: "Space Grotesk", sans-serif; margin: 0 0 6px; }
.failed p { color: var(--muted); font-size: 13.5px; }

/* ---------- bands / cards ---------- */
.band { padding: 92px 0; border-top: 1px solid var(--line); }
.band-alt { background: var(--bg-2); }
.band h2 { font-size: clamp(26px, 3vw, 38px); margin: 0 0 12px; letter-spacing: -0.03em; }
.band .sub { color: var(--muted); max-width: 60ch; margin: 0 0 40px; font-size: 16px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line); border-radius: var(--r);
  padding: 24px; transition: border-color 0.2s, transform 0.2s;
}
.card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.card-ico { margin-bottom: 14px; }
.card-ico svg {
  width: 26px; height: 26px; fill: none; stroke: var(--amber);
  stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.card h3 { font-size: 16.5px; margin: 0 0 8px; }
.card p { color: var(--muted); font-size: 14px; margin: 0; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 26px; max-width: 780px; }
.steps li { display: flex; gap: 20px; }
.steps .n {
  font-family: "Space Grotesk", sans-serif; font-size: 13px; font-weight: 600;
  color: var(--amber); padding-top: 3px; letter-spacing: 0.08em;
}
.steps h3 { font-size: 17px; margin: 0 0 5px; }
.steps p { color: var(--muted); font-size: 14.5px; margin: 0; max-width: 62ch; }
.faq-list { max-width: 780px; margin: 34px 0 0; }
.faq-list > div { padding: 18px 0; border-bottom: 1px solid var(--line); }
.faq-list dt h3 { font-size: 16px; margin: 0 0 6px; }
.faq-list dd { margin: 0; }
.faq-list dd p { color: var(--muted); font-size: 14.5px; margin: 0; max-width: 70ch; }
.caveat {
  margin: 40px 0 0; padding: 16px 18px; border-radius: 12px;
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line);
  color: var(--muted); font-size: 13.5px; max-width: 720px;
}
.caveat b { color: var(--text); }

/* gallery */
.gal { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.gal-item {
  position: relative; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--line); background: var(--panel);
  aspect-ratio: 1; display: grid; place-items: center;
}
.gal-item img { width: 100%; height: 100%; object-fit: contain; }
.gal-item:hover { border-color: rgba(255, 61, 127, 0.5); }
.gal-meta {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 18px 10px 8px; font-size: 11px; color: #ddd;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); padding: 44px 0; background: var(--bg-2); }
.foot-in { display: flex; flex-direction: column; gap: 10px; }
.foot-in p { color: var(--muted); font-size: 13.5px; margin: 0; max-width: 60ch; }
.tiny { font-size: 11.5px; color: var(--dim); }
.mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12.5px; color: #ffb3c9; word-break: break-word; }

/* ---------- pack page ---------- */
.page-pack .pack { padding-top: 48px; padding-bottom: 80px; }
.pack-head h1 { font-size: clamp(30px, 3.6vw, 46px); margin: 16px 0 6px; line-height: 1.08; }
.pack-sub { color: var(--muted); font-size: 14px; margin: 0 0 14px; max-width: 70ch; }
.pack-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.pack-badges span {
  font-size: 12px; color: var(--muted); padding: 5px 11px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line);
}
.pack-cta {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  margin: 30px 0 40px; padding: 18px; border-radius: 16px;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
}
.cta-note { font-size: 13px; color: var(--dim); }

.stickers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.sticker {
  margin: 0; border-radius: 16px; overflow: hidden;
  border: 1px solid var(--line); background: var(--panel);
  transition: border-color 0.2s, transform 0.2s;
}
.sticker:hover { border-color: rgba(255, 61, 127, 0.45); transform: translateY(-2px); }
.sticker-stage {
  aspect-ratio: 1; display: grid; place-items: center; padding: 14px;
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.055), transparent 65%),
    repeating-conic-gradient(from 0deg, rgba(255,255,255,0.018) 0% 25%, transparent 0% 50%)
      0 0 / 18px 18px;
}
.sticker-stage { position: relative; }
.sticker-stage img { width: 100%; height: 100%; object-fit: contain; }
.redraw {
  position: absolute; top: 8px; right: 8px;
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(10, 10, 14, 0.72); border: 1px solid var(--line-2);
  color: var(--muted); font-size: 14px; line-height: 1; cursor: pointer;
  opacity: 0; transition: opacity 0.16s, background 0.16s, color 0.16s;
}
.sticker:hover .redraw { opacity: 1; }
.redraw:hover { background: rgba(255, 61, 127, 0.85); color: #fff; border-color: transparent; }
.redraw.busy { opacity: 1; background: rgba(255, 176, 32, 0.85); color: #180f12; }
.sec-note { margin: -8px 0 16px; max-width: 66ch; color: var(--dim); }
.sticker figcaption { padding: 11px 14px 14px; display: flex; flex-direction: column; gap: 2px; }
.st-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--dim); }
.st-cap { font-size: 14.5px; font-weight: 600; }
.st-meta { font-size: 11px; color: var(--dim); }

.warnbox { margin-top: 26px; border: 1px solid rgba(255, 176, 32, 0.28); border-radius: 12px; padding: 12px 16px; background: rgba(255, 176, 32, 0.05); }
.warnbox summary { cursor: pointer; font-size: 13.5px; color: var(--amber); }
.warnbox ul { color: var(--muted); font-size: 13px; padding-left: 18px; }

.import { margin-top: 56px; }
.import h2 { font-size: 24px; margin-bottom: 20px; }
.import-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.import-grid article { border: 1px solid var(--line); border-radius: 14px; padding: 18px; background: var(--panel); }
.import-grid h3 { font-size: 15px; margin: 0 0 10px; }
.import-grid h3 em { font-style: normal; font-size: 11px; color: var(--dim); text-transform: uppercase; letter-spacing: 0.06em; margin-left: 6px; }
.import-grid ol { margin: 0; padding-left: 18px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.import-grid code { font-size: 11.5px; background: rgba(255, 255, 255, 0.06); padding: 1px 5px; border-radius: 4px; }

.pack-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 48px; padding-top: 26px; border-top: 1px solid var(--line); }

/* ---------- character sheet ---------- */
.sheet {
  display: grid; grid-template-columns: 260px 1fr; gap: 26px;
  margin: 8px 0 30px; padding: 20px; border-radius: 18px;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
}
.sheet-fig { margin: 0; }
.sheet-fig img {
  width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: 14px;
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.06), transparent 65%),
    repeating-conic-gradient(from 0deg, rgba(255,255,255,0.02) 0% 25%, transparent 0% 50%)
      0 0 / 18px 18px;
}
.sheet-fig figcaption { font-size: 11px; color: var(--dim); margin-top: 8px; text-align: center; }
.sheet-copy h2 { font-size: 19px; margin: 2px 0 8px; }
.sheet-copy .tiny { color: var(--dim); font-size: 12px; margin: 0 0 14px; max-width: 56ch; }
.feat-list { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 18px; }
.feat-list div { display: flex; gap: 8px; align-items: baseline; border-bottom: 1px dashed rgba(255,255,255,0.06); padding-bottom: 4px; }
.feat-list dt { font-size: 10.5px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--dim); min-width: 92px; flex: none; }
.feat-list dd { margin: 0; font-size: 13px; color: var(--text); }
.sec-title { font-size: 20px; margin: 40px 0 16px; }

.state { text-align: center; padding: 80px 0; max-width: 520px; margin: 0 auto; }
.state h1 { font-size: 28px; margin: 0 0 10px; }
.state p { color: var(--muted); }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 44px; }
  .hero h1 { font-size: clamp(36px, 7vw, 54px); }
  .builder { max-width: 560px; }
  .cards, .import-grid { grid-template-columns: 1fr; }
  .gal { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-actions .btn-ghost { display: none; }
  .stickers { grid-template-columns: repeat(2, 1fr); }
  .slots { grid-template-columns: repeat(2, 1fr); }
  .plats { grid-template-columns: 1fr; }
  .facts { gap: 24px; }
  .band { padding: 64px 0; }
  .gal { grid-template-columns: repeat(2, 1fr); }
  .sheet { grid-template-columns: 1fr; }
  .feat-list { grid-template-columns: 1fr; }
  .feat-row { grid-template-columns: 104px minmax(0, 1fr) 10px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ---------- 付费层 ---------- */
.nav-right { display: flex; align-items: center; gap: 10px; }

.wallet {
  display: inline-flex; align-items: center;
  padding: 7px 13px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--panel);
  color: var(--text); font: inherit; font-size: 13px; font-weight: 500;
  cursor: pointer; transition: border-color .18s;
}
.wallet:hover { border-color: rgba(255, 61, 127, .55); }
.wallet.wallet-empty { border-color: rgba(255, 176, 32, .5); color: var(--amber); }
.wallet[hidden] { display: none; }

body.pay-open { overflow: hidden; }

.pay-modal {
  position: fixed; inset: 0; z-index: 90; display: flex;
  align-items: center; justify-content: center; padding: 20px;
}
.pay-modal[hidden] { display: none; }
.pay-backdrop { position: absolute; inset: 0; background: rgba(4, 4, 8, .8); }
.pay-card {
  position: relative; width: min(680px, 100%); max-height: 90vh; overflow: auto;
  background: var(--panel); border: 1px solid var(--line-2);
  border-radius: var(--r); padding: 26px; box-shadow: var(--shadow);
}
.pay-x {
  position: absolute; top: 12px; right: 14px; width: 32px; height: 32px;
  border-radius: 50%; border: 1px solid var(--line); background: transparent;
  color: var(--muted); font-size: 20px; line-height: 1; cursor: pointer;
}
.pay-x:hover { color: var(--text); border-color: var(--line-2); }
.pay-card h2 { font-size: 22px; margin: 0 0 6px; font-family: 'Space Grotesk', sans-serif; }
.pay-sub { color: var(--muted); font-size: 14px; margin: 0 0 18px; }

.pay-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.pay-grid[hidden] { display: none; }
.pay-sku {
  position: relative; display: flex; flex-direction: column; gap: 4px;
  text-align: left; padding: 18px 14px 14px; border-radius: 14px;
  border: 1px solid var(--line); background: var(--panel-2);
  color: var(--text); font: inherit; cursor: pointer;
  transition: border-color .18s, transform .18s;
}
.pay-sku:hover { border-color: var(--line-2); transform: translateY(-2px); }
.pay-sku.hot { border-color: rgba(255, 61, 127, .55); }
.pay-sku:disabled { opacity: .5; cursor: default; transform: none; }
.pay-badge {
  position: absolute; top: -10px; left: 14px; font-size: 10px;
  letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px;
  border-radius: 999px; background: var(--grad); color: #16070d;
  font-weight: 700;
}
.pay-name { font-size: 13px; color: var(--muted); }
.pay-amount { display: flex; align-items: baseline; gap: 8px; }
.pay-amount b { font-size: 24px; font-weight: 600; }
.pay-amount s { color: var(--dim); font-size: 13px; }
.pay-per { font-size: 12px; color: var(--amber); }
.pay-tag { font-size: 12px; color: var(--dim); line-height: 1.45; }

.pay-fine { margin: 16px 0 0; font-size: 12px; color: var(--dim); }
.pay-err { margin: 12px 0 0; font-size: 13px; color: var(--ok); }
.pay-err[hidden] { display: none; }
.pay-err.bad { color: #ff6b6b; }
.pay-mock { margin: 14px 0 0; }

.pay-restore { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.pay-link {
  background: none; border: 0; padding: 0; color: var(--muted);
  font: inherit; font-size: 12px; text-decoration: underline; cursor: pointer;
}
.pay-link:hover { color: var(--text); }
#pay-restore-form { display: flex; gap: 8px; margin-top: 10px; }
#pay-restore-form[hidden] { display: none; }
#pay-restore-code {
  flex: 1; min-width: 0; padding: 9px 12px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--bg-2);
  color: var(--text); font: inherit; font-size: 13px;
}
#pay-restore-code::placeholder { color: var(--dim); }

.linklike {
  background: none; border: 0; padding: 0; font: inherit; font-size: inherit;
  color: var(--pink); text-decoration: underline; cursor: pointer;
}
/* 单独一行，否则会挂在说明文字的最后一个词后面，读起来像句子的尾巴 */
.cta-more { display: block; margin-top: 4px; }
.redraw-left { color: var(--amber); white-space: nowrap; }

@media (max-width: 640px) {
  .pay-grid { grid-template-columns: 1fr; }
  .pay-card { padding: 20px 16px; }
  .nav-right { gap: 6px; }
  .wallet { padding: 6px 10px; font-size: 12px; }
}
