/* ============================================================
   AI photo — 共用样式
   暗调底 + 暖金点缀，让婚纱照自己发光
   ============================================================ */

:root {
  --bg:          #0c0b0a;
  --bg-soft:     #141210;
  --surface:     #1b1815;
  --surface-2:   #242019;
  --line:        #322c25;
  --gold:        #c9a961;
  --gold-bright: #e6cd8f;
  --gold-dim:    #8a7548;
  --text:        #f4efe6;
  --text-soft:   #b5aa9b;
  --text-mute:   #7c7367;
  --danger:      #d96b5a;
  --ok:          #7fb069;

  --radius:   14px;
  --radius-s: 9px;
  --shadow:   0 18px 50px rgba(0, 0, 0, .55);
  --serif: 'Noto Serif SC', 'Source Han Serif SC', 'Songti SC', 'SimSun', serif;
  --sans:  'PingFang SC', 'Microsoft YaHei', -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-bright); }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: .02em; margin: 0; }

/* ── 顶栏 ── */
/* 三轨网格：品牌居左、中段整组居中、右侧（若有）靠右 */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center; gap: 18px;
  padding: 16px 32px;
  background: rgba(12, 11, 10, .82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar a.brand { color: var(--text); }
.topbar a.brand:hover { color: var(--text); }
.topbar .brand small {
  display: block; font-family: var(--sans); font-size: 10px; letter-spacing: .28em;
  color: var(--text-mute); margin-top: -3px; text-transform: uppercase;
}
.topbar .brand { justify-self: start; font-family: var(--serif); font-size: 19px; letter-spacing: .16em; }
.topbar .brand em { color: var(--gold); font-style: normal; }
.topbar nav { justify-self: end; display: flex; gap: 26px; align-items: center; font-size: 14px; }
.topbar nav a { color: var(--text-soft); }
.topbar nav a:hover, .topbar nav a.active { color: var(--gold); }
.topbar nav a.btn-primary { color: #1a1509; }

/* 顶栏版本切换 */
.ver-switch {
  display: inline-flex; gap: 3px; padding: 3px;
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 999px;
}
.ver-switch button {
  border: none; background: transparent; color: var(--text-soft);
  font-family: var(--sans); font-size: 13px; padding: 6px 18px; border-radius: 999px;
  cursor: pointer; transition: background .18s, color .18s;
}
.ver-switch button:hover { color: var(--text); }
.ver-switch button.active {
  background: linear-gradient(135deg, var(--gold), var(--gold-bright));
  color: #1a1509; font-weight: 600;
}

/* 顶栏中段：版本切换 + 视图标签并排（后台 / 会员中心） */
.topbar-center { justify-self: center; display: flex; align-items: center; gap: 14px; }

/* ═══════════════════════════════════════════════════════════
   统一主导航（2026-10-11 二次重构）
   全站所有页面入口都在这一条里：
     对外创作台 4 个（所有人可见） + 后台工具 5 个（仅管理员可见）
   ═══════════════════════════════════════════════════════════ */
.topbar .main-nav {
  justify-self: center;
  display: flex; align-items: center; flex-wrap: wrap; gap: 4px;
}
.topbar .main-group { display: flex; align-items: center; gap: 4px; }
.topbar .main-group.hidden { display: none; }
.topbar .nav-item {
  padding: 6px 12px; border-radius: 999px; font-size: 13.5px; line-height: 1.35;
  color: var(--text-soft); background: transparent; border: 1px solid transparent;
  white-space: nowrap; cursor: pointer; font-family: inherit; text-decoration: none;
}
.topbar .nav-item:hover { color: var(--text); background: rgba(255, 255, 255, .07); }
.topbar .nav-item.active {
  color: #1a1509; font-weight: 600;
  background: linear-gradient(135deg, var(--gold), var(--gold-bright));
}
.topbar .nav-divider { width: 1px; height: 16px; background: var(--line); margin: 0 6px; flex: none; }
.topbar .main-nav .ver-switch { padding: 2px; }
.topbar .main-nav .ver-switch button { padding: 5px 13px; font-size: 12.5px; }


/* ═══════════════════════════════════════════════════════════
   全站统一导航（2026-10-11 重构）
   分组：品牌(→首页) | 创作台 4 个 | 账户；首页另有一条「本页」锚点条
   ═══════════════════════════════════════════════════════════ */
.topbar .nav-group-label {
  font-size: 11.5px; letter-spacing: .16em; color: var(--text-mute);
  text-transform: uppercase; white-space: nowrap;
}
.topbar .nav-link {
  color: var(--text-soft); position: relative; padding: 3px 0;
  display: inline-flex; align-items: center; gap: 5px; white-space: nowrap;
}
.topbar .nav-link:hover { color: var(--text); }
.topbar .nav-link.active { color: var(--gold); font-weight: 600; }
.topbar .nav-link.active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -3px;
  height: 2px; border-radius: 2px; background: currentColor;
}
.topbar .acct { justify-self: end; display: flex; align-items: center; gap: 16px; font-size: 14px; }

/* 首页第二条：本页锚点 + 版本切换，横跨三轨网格，跟着顶栏一起吸顶 */
.topbar .anchor-bar {
  grid-column: 1 / -1;
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px 22px;
  margin-top: 13px; padding-top: 12px; border-top: 1px solid var(--line);
  font-size: 13.5px;
}
.topbar .anchor-bar .ver-switch { margin-left: auto; }

/* 后台顶栏第二行：独立创作台入口（写真馆 / 婚纱全家桶 / 萌宠工作室 / 绘本工坊）
   横跨三轨网格，用 ↗ 提示是新开标签，和上面「切视图」的标签区分开 */
.topbar-sub {
  grid-column: 1 / -1;
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px 20px;
  margin-top: 13px; padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}
.topbar-sub .ts-label {
  color: var(--text-mute); font-size: 11.5px; letter-spacing: .14em;
  text-transform: uppercase;
}
.topbar-sub a { color: var(--text-soft); display: inline-flex; align-items: center; gap: 5px; }
.topbar-sub a:hover { color: var(--gold); }
.topbar-sub a::before { content: '↗'; font-size: 11px; opacity: .5; }
.topbar-sub a:hover::before { opacity: 1; }
.topbar-sub .sub-group { display: flex; align-items: center; gap: 14px; }
.topbar-sub .sub-divider { width: 1px; height: 15px; background: var(--line); }

/* 展示页顶栏中段：版本切换 + 导航链接，整组一起居中 */
.topbar-nav { justify-self: center; display: flex; align-items: center; gap: 26px; }

/* 登录页顶栏：只有品牌 + 右侧链接，不需要三轨网格 */
.topbar-simple { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }

/* ═══════════════════════════════════════════════════════════
   首页新增：四个创作台（2026-10-11）
   每个台子用自己那套主色，和进入后的页面呼应
   ═══════════════════════════════════════════════════════════ */
.studio-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(252px, 1fr));
  gap: 18px;
}
.studio-card {
  --sa: var(--gold); --sa-2: var(--gold-bright);
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 11px;
  padding: 24px 22px 20px; border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .018));
  border: 1px solid var(--line);
  transition: transform .28s cubic-bezier(.16, 1, .3, 1), border-color .28s, box-shadow .28s;
}
.studio-card[data-accent="teal"]  { --sa: #2ee6c5; --sa-2: #59f0d6; }
.studio-card[data-accent="rose"]  { --sa: #ff5fa2; --sa-2: #ff8dbb; }
.studio-card[data-accent="green"] { --sa: #34d399; --sa-2: #6ee7b7; }
.studio-card[data-accent="blue"]  { --sa: #60a5fa; --sa-2: #93c5fd; }
.studio-card::before {                    /* 顶部主题色光带 */
  content: ''; position: absolute; inset: 0 0 auto 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--sa), transparent);
  opacity: .6;
}
.studio-card::after {                     /* 右上角光晕 */
  content: ''; position: absolute; right: -70px; top: -70px;
  width: 190px; height: 190px; border-radius: 50%;
  background: radial-gradient(circle, var(--sa), transparent 68%);
  opacity: .13; transition: opacity .3s;
}
.studio-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--sa) 50%, transparent);
  box-shadow: 0 20px 44px rgba(0, 0, 0, .5);
}
.studio-card:hover::after { opacity: .26; }
.studio-card .sc-icon {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  color: var(--sa);
  background: color-mix(in srgb, var(--sa) 13%, transparent);
  border: 1px solid color-mix(in srgb, var(--sa) 38%, transparent);
  box-shadow: 0 0 22px color-mix(in srgb, var(--sa) 22%, transparent);
}
.studio-card .sc-icon svg { width: 25px; height: 25px; }
.studio-card strong {
  font-family: var(--serif); font-size: 20px; font-weight: 600;
  color: var(--text); letter-spacing: .02em;
}
.studio-card .sc-desc { font-size: 13.5px; line-height: 1.75; color: var(--text-soft); }
.studio-card .sc-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.studio-card .sc-tags i {
  font-style: normal; font-size: 11.5px; padding: 3px 10px; border-radius: 999px;
  color: var(--sa);
  background: color-mix(in srgb, var(--sa) 11%, transparent);
  border: 1px solid color-mix(in srgb, var(--sa) 26%, transparent);
}
.studio-card .sc-go {
  margin-top: auto; padding-top: 14px;
  font-size: 13.5px; font-weight: 600; color: var(--sa);
}
.studio-card:hover .sc-go { text-decoration: underline; text-underline-offset: 3px; }

/* hero 里的创作台小胶囊 */
.hero-tools {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
  margin: 0 0 26px;
}
.hero-tools a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: 999px; font-size: 13.5px;
  color: var(--text-soft);
  background: rgba(255, 255, 255, .05); border: 1px solid var(--line);
  backdrop-filter: blur(8px);
  transition: color .2s, border-color .2s, transform .2s;
}
.hero-tools a::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--sa, var(--gold)); box-shadow: 0 0 8px var(--sa, var(--gold));
}
.hero-tools a[data-accent="teal"]  { --sa: #2ee6c5; }
.hero-tools a[data-accent="rose"]  { --sa: #ff5fa2; }
.hero-tools a[data-accent="green"] { --sa: #34d399; }
.hero-tools a[data-accent="blue"]  { --sa: #60a5fa; }
.hero-tools a:hover { color: var(--text); border-color: var(--sa); transform: translateY(-2px); }

/* ── 首屏：成片拼贴背景 ── */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 110px 24px 96px;
  overflow: hidden;
}

/* 12 张风格缩略图铺满首屏；四周外扩一点，错位的瓦片不会露出边缘 */
.hero-collage {
  position: absolute; inset: -5% -1.5% -4%;
  display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 1fr; gap: 6px;
  pointer-events: none;
}
.hero-collage img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: saturate(.82) brightness(.6);
  animation: collageIn 1.4s cubic-bezier(.2, .7, .3, 1) both;
}
.hero-collage img:nth-child(even) { transform: translateY(16px); }
.hero-collage img:nth-child(3n) { transform: translateY(-16px); }
@keyframes collageIn { from { opacity: 0; } to { opacity: 1; } }

/* 暗纱 + 金色顶光，压在拼贴之上、文字之下 */
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(ellipse at 50% 34%, rgba(201, 169, 97, .2), transparent 58%),
    linear-gradient(180deg, rgba(12, 11, 10, .66) 0%, rgba(12, 11, 10, .84) 50%, var(--bg) 100%);
  pointer-events: none;
}

.hero-inner {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center; max-width: 900px;
}
.hero-eyebrow {
  font-size: 12px; letter-spacing: .42em; color: var(--gold-dim);
  text-transform: uppercase; margin-bottom: 26px;
}
.hero h1 {
  font-size: clamp(34px, 6.4vw, 74px);
  line-height: 1.16; margin-bottom: 22px;
  background: linear-gradient(180deg, #fffdf8 25%, var(--gold) 108%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.sub {
  max-width: 620px; color: var(--text-soft); font-size: 16.5px; margin: 0 0 40px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; position: relative; }

/* 首屏底部滚动提示 */
.hero-scroll {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 2;
  width: 22px; height: 38px; border: 1px solid var(--gold-dim); border-radius: 999px;
  display: flex; justify-content: center; padding-top: 7px;
}
.hero-scroll i { width: 2px; height: 8px; border-radius: 2px; background: var(--gold); animation: scrollDot 1.8s ease-in-out infinite; }
@keyframes scrollDot {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(12px); opacity: .15; }
}

/* ── 版本选择（进站第一件事）── */
.version-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.version-card {
  position: relative; display: block; padding: 0; cursor: pointer; overflow: hidden;
  aspect-ratio: 16 / 10; border-radius: 18px; border: 1px solid var(--line);
  background: linear-gradient(160deg, var(--surface) 0%, var(--bg-soft) 100%);
  text-align: left; font-family: var(--sans); color: var(--text);
  transition: transform .3s cubic-bezier(.2,.7,.3,1), border-color .3s, box-shadow .3s;
}
.version-card:hover { transform: translateY(-6px); border-color: var(--gold-dim); box-shadow: 0 26px 60px rgba(0, 0, 0, .62); }
.version-card .vc-bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: .46; transition: transform .6s cubic-bezier(.2,.7,.3,1), opacity .3s;
}
.version-card:hover .vc-bg { transform: scale(1.05); opacity: .58; }
.version-card::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(12, 11, 10, .95) 4%, rgba(12, 11, 10, .34) 56%, rgba(12, 11, 10, .14) 100%);
}
.version-card .vc-body { position: absolute; inset: auto 0 0 0; z-index: 2; display: block; padding: 30px 32px 28px; }
.version-card .vc-kicker { display: block; font-size: 11.5px; letter-spacing: .34em; color: var(--gold-dim); margin-bottom: 10px; }
.version-card strong { display: block; font-family: var(--serif); font-size: clamp(26px, 2.6vw, 34px); letter-spacing: .04em; margin-bottom: 8px; }
.version-card .vc-desc { display: block; color: var(--text-soft); font-size: 14px; }
.version-card .vc-go { display: inline-block; margin-top: 16px; font-size: 13.5px; color: var(--gold); }
.version-card:hover .vc-go { color: var(--gold-bright); }

/* ── 按钮 ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 30px; border-radius: 999px; border: 1px solid transparent;
  font-family: var(--sans); font-size: 14.5px; font-weight: 500;
  cursor: pointer; transition: transform .16s, box-shadow .16s, background .16s, color .16s;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-bright) 100%);
  color: #1a1509;
  box-shadow: 0 10px 30px rgba(201, 169, 97, .3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(201, 169, 97, .42); color: #1a1509; }
.btn-ghost { background: transparent; border-color: var(--gold-dim); color: var(--gold); }
.btn-ghost:hover { background: rgba(201, 169, 97, .12); color: var(--gold-bright); }
.btn-quiet { background: var(--surface-2); border-color: var(--line); color: var(--text-soft); }
.btn-quiet:hover { background: #2e2820; color: var(--text); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn-sm { padding: 8px 16px; font-size: 13px; }

/* ── 区块 ── */
.section { padding: 88px 32px; max-width: 1320px; margin: 0 auto; }
.section-head { text-align: center; margin-bottom: 54px; }
.section-head .eyebrow { font-size: 12px; letter-spacing: .34em; color: var(--gold-dim); margin-bottom: 14px; }
.section-head h2 { font-size: clamp(25px, 3.4vw, 38px); margin-bottom: 14px; }
.section-head p { color: var(--text-mute); max-width: 560px; margin: 0 auto; }

/* ── 风格卡片 ── */
.style-grid {
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
}
.style-card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: var(--surface); border: 1px solid var(--line);
  cursor: pointer; transition: transform .3s cubic-bezier(.2,.7,.3,1), border-color .3s, box-shadow .3s;
}
.style-card:hover { transform: translateY(-6px); border-color: var(--gold-dim); box-shadow: 0 24px 54px rgba(0,0,0,.62); }
.style-card .thumb { position: relative; aspect-ratio: 1 / 1; overflow: hidden; }
.style-card .thumb.no-img { background: linear-gradient(160deg, var(--surface-2), var(--bg-soft)); }
.style-card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .55s cubic-bezier(.2,.7,.3,1); }
.style-card:hover .thumb img { transform: scale(1.06); }
.style-card .thumb::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(12,11,10,.94) 6%, rgba(12,11,10,.12) 52%, transparent 76%);
}
.style-card .idx {
  position: absolute; top: 14px; left: 16px; z-index: 2;
  font-family: var(--serif); font-size: 13px; letter-spacing: .1em;
  color: var(--gold); background: rgba(12,11,10,.6); border: 1px solid var(--gold-dim);
  border-radius: 999px; padding: 3px 12px; backdrop-filter: blur(6px);
}
.style-card .body { position: absolute; bottom: 0; left: 0; right: 0; z-index: 2; padding: 20px 20px 22px; }
.style-card h3 { font-size: 20px; margin-bottom: 5px; }
.style-card .tagline { color: var(--text-soft); font-size: 13.5px; }
.style-card .peek {
  margin-top: 12px; font-size: 12.5px; color: var(--gold);
  opacity: 0; transform: translateY(6px); transition: .3s;
}
.style-card:hover .peek { opacity: 1; transform: translateY(0); }

/* ── 十八种风格：两条线左右并排，各自 3×3 ── */
.style-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.style-col-head { margin-bottom: 20px; }
.style-col-head .eyebrow { font-size: 11.5px; letter-spacing: .32em; color: var(--gold-dim); margin-bottom: 8px; }
.style-col-head h3 { font-family: var(--serif); font-size: clamp(21px, 2.2vw, 27px); margin-bottom: 6px; }
.style-col-head p { color: var(--text-mute); font-size: 13.5px; }
.style-col .style-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
/* 栏内卡片变窄，字号与留白同步收紧，避免标题压出框 */
.style-col .style-card h3 { font-size: 16px; }
.style-col .style-card .tagline { font-size: 12px; }
.style-col .style-card .idx { top: 9px; left: 10px; font-size: 11px; padding: 2px 9px; }
.style-col .style-card .body { padding: 14px 14px 15px; }
.style-col .style-card .peek { margin-top: 8px; font-size: 11.5px; }
@media (max-width: 1080px) {
  .style-cols { grid-template-columns: 1fr; gap: 60px; }
  /* 首屏拼贴：平板三列 */
  .hero-collage { grid-template-columns: repeat(3, 1fr); }
}

/* ── 流程 ── */
.flow { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.flow-step {
  padding: 26px 22px; border-radius: var(--radius);
  background: linear-gradient(160deg, var(--surface) 0%, var(--bg-soft) 100%);
  border: 1px solid var(--line); position: relative;
}
.flow-step .n {
  font-family: var(--serif); font-size: 34px; color: var(--gold-dim);
  line-height: 1; margin-bottom: 14px;
}
.flow-step h4 { margin: 0 0 8px; font-size: 16px; font-family: var(--serif); }
.flow-step p { margin: 0; color: var(--text-mute); font-size: 13.5px; }

/* ── 成片效果墙 ── */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery-item {
  position: relative; overflow: hidden; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--surface); aspect-ratio: 3 / 4;
}
/* 中列整体上移，避免六宫格太整齐（用 translate 而非 transform，免得被 .reveal 覆盖） */
.gallery-item:nth-child(2), .gallery-item:nth-child(5) { translate: 0 -24px; }
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .8s cubic-bezier(.2, .7, .3, 1);
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(10, 9, 8, .9) 0%, rgba(10, 9, 8, .18) 46%, transparent 72%);
}
.gallery-item .g-cap {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 16px 16px 14px;
  font-family: var(--serif); font-size: 15px; color: var(--text);
}
.gallery-item .g-cap em {
  display: block; font-style: normal; font-family: var(--sans); font-size: 10.5px;
  letter-spacing: .24em; color: var(--gold-dim); margin-bottom: 5px; text-transform: uppercase;
}

/* ── 常见问题 ── */
.faq-list { max-width: 880px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item {
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-soft);
  padding: 0 22px; transition: border-color .3s, background .3s;
}
.faq-item[open] { border-color: var(--gold-dim); background: var(--surface); }
.faq-item summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 17px 32px 17px 0; font-family: var(--serif); font-size: 16px; color: var(--text);
  transition: color .2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--gold-bright); }
.faq-item summary::after {
  content: ''; position: absolute; right: 5px; top: 50%; width: 9px; height: 9px;
  border-right: 1.5px solid var(--gold); border-bottom: 1.5px solid var(--gold);
  transform: translateY(-70%) rotate(45deg); transition: transform .28s;
}
.faq-item[open] summary::after { transform: translateY(-25%) rotate(-135deg); }
.faq-item p { margin: 0 0 19px; color: var(--text-mute); font-size: 14px; line-height: 1.9; }

/* ── 底部 CTA ── */
.cta-band { max-width: 1320px; margin: 0 auto; padding: 0 32px 88px; }
.cta-inner {
  padding: 66px 32px; border-radius: 22px; border: 1px solid var(--gold-dim); text-align: center;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(201, 169, 97, .18), transparent 62%),
    linear-gradient(160deg, var(--surface-2) 0%, var(--bg-soft) 100%);
}
.cta-inner h2 { font-size: clamp(24px, 3.2vw, 34px); margin-bottom: 12px; }
.cta-inner p { margin: 0 0 28px; color: var(--text-mute); }
.cta-inner .hero-actions { justify-content: center; }

/* ── 滚动入场 ── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .3, 1); }
.reveal.in { opacity: 1; transform: none; }
.row.center { justify-content: center; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-collage img, .hero-scroll i { animation: none; }
}

.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 13px; color: var(--text-soft); }
.field .req { color: var(--gold); }
/* 会员工作台：分辨率旁标出该档每帧实扣多少分（管理员不渲染） */
.res-cost { font-size: 12px; color: var(--gold); letter-spacing: .02em; }
.res-cost:empty { display: none; }

input, select, textarea {
  width: 100%; padding: 12px 14px; font-family: var(--sans); font-size: 14.5px;
  background: var(--bg); color: var(--text);
  border: 1px solid var(--line); border-radius: var(--radius-s);
  outline: none; transition: border-color .18s, box-shadow .18s;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--gold-dim); box-shadow: 0 0 0 3px rgba(201, 169, 97, .14);
}
input::placeholder, textarea::placeholder { color: var(--text-mute); }
textarea { resize: vertical; min-height: 84px; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--gold-dim) 50%), linear-gradient(135deg, var(--gold-dim) 50%, transparent 50%); background-position: calc(100% - 19px) center, calc(100% - 14px) center; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 38px; }

/* ── 页脚 ── */
.footer {
  border-top: 1px solid var(--line); padding: 56px 32px 30px;
  color: var(--text-mute); font-size: 13px;
}
.footer-cols {
  max-width: 1320px; margin: 0 auto;
  display: grid; grid-template-columns: 1.7fr 1fr 1fr; gap: 40px;
}
.footer-brand .brand { font-family: var(--serif); font-size: 18px; letter-spacing: .16em; color: var(--text); margin-bottom: 14px; }
.footer-brand .brand em { color: var(--gold); font-style: normal; }
.footer-brand p { margin: 0; max-width: 330px; line-height: 1.95; }
.footer-col h5 {
  margin: 0 0 14px; font-family: var(--sans); font-size: 12px; font-weight: 400;
  letter-spacing: .24em; color: var(--gold-dim);
}
.footer-col a { display: block; padding: 5px 0; color: var(--text-mute); transition: color .18s; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  max-width: 1320px; margin: 40px auto 0; padding-top: 22px;
  border-top: 1px solid var(--line); text-align: center; font-size: 12.5px;
}

/* ── 提示条 ── */
.toast {
  position: fixed; left: 50%; bottom: 34px; transform: translate(-50%, 20px);
  padding: 13px 26px; border-radius: 999px; font-size: 14px; z-index: 200;
  background: var(--surface-2); border: 1px solid var(--gold-dim); color: var(--text);
  box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: .28s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.err { border-color: var(--danger); color: #ffd9d2; }
.toast.ok  { border-color: var(--ok); color: #e3f5d8; }

/* ── 后台 ── */
.admin-body { background: var(--bg); }
.admin-wrap { max-width: 1180px; margin: 0 auto; padding: 32px; }

.panel {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px; margin-bottom: 20px;
}
.panel-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; margin-bottom: 20px; flex-wrap: wrap;
}
.panel-head h3 { font-size: 18px; }
.panel-head .step-no {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%; margin-right: 10px;
  background: var(--gold); color: #1a1509; font-size: 13px; font-weight: 700;
  font-family: var(--sans);
}

.grid-2 { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid-3 { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }

/* 画幅比例选择器 */
.ratio-picker { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); }
.ratio-opt {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  padding: 11px 4px 8px; border-radius: var(--radius-s); cursor: pointer;
  background: var(--bg); border: 1.5px solid var(--line); color: var(--text-mute);
  font-family: var(--sans); font-size: 11.5px; line-height: 1;
  transition: border-color .18s, background .18s, color .18s;
}
.ratio-opt:hover { border-color: var(--gold-dim); color: var(--text-soft); }
.ratio-opt.sel { border-color: var(--gold); background: rgba(201, 169, 97, .1); color: var(--gold-bright); }
.ratio-opt .glyph {
  display: block; border: 1.5px solid currentColor; border-radius: 3px; opacity: .85;
}

/* 风格选择器 */
.picker { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); }
.picker .opt {
  position: relative; border-radius: var(--radius-s); overflow: hidden;
  border: 2px solid var(--line); cursor: pointer; aspect-ratio: 1/1;
  transition: border-color .2s, transform .2s;
}
.picker .opt img { width: 100%; height: 100%; object-fit: cover; display: block; }
.picker .opt span {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 16px 8px 7px;
  font-size: 12.5px; text-align: center;
  background: linear-gradient(to top, rgba(12,11,10,.95), transparent);
}
.picker .opt:hover { transform: translateY(-3px); border-color: var(--gold-dim); }
.picker .opt.sel { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,169,97,.22); }
.picker .opt.sel::after {
  content: '✓'; position: absolute; top: 7px; right: 8px;
  width: 22px; height: 22px; border-radius: 50%; background: var(--gold); color: #1a1509;
  display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700;
}

/* 参考图 */
.refs { display: flex; gap: 12px; flex-wrap: wrap; }
.ref-item {
  position: relative; width: 104px; height: 104px; border-radius: var(--radius-s);
  overflow: hidden; border: 1px solid var(--line);
}
.ref-item img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: zoom-in; }
.ref-item.primary { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(201, 169, 97, .28); }
.ref-item .del {
  position: absolute; top: 4px; right: 4px; width: 22px; height: 22px;
  border-radius: 50%; border: none; cursor: pointer;
  background: rgba(12,11,10,.8); color: #fff; font-size: 13px; line-height: 1;
}
.ref-item .ref-no {
  position: absolute; top: 4px; left: 4px; z-index: 2;
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(12,11,10,.78); color: var(--text-soft); font-size: 11px;
}
.ref-item .ref-kind {
  position: absolute; bottom: 32px; left: 4px; z-index: 2;
  padding: 1px 7px; border-radius: 999px; font-size: 10.5px;
  background: rgba(201,169,97,.9); color: #1a1509;
}
.ref-item .ref-star {
  position: absolute; top: 4px; right: 30px; z-index: 2;
  width: 22px; height: 22px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(12,11,10,.78); color: var(--text-soft); font-size: 12px; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center; padding: 0;
}
.ref-item .ref-star:hover { color: var(--gold-bright); }
.ref-item .ref-star.on { color: var(--gold); background: rgba(12,11,10,.9); cursor: default; }
.ref-item .ref-op {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; border: none; cursor: pointer;
  padding: 6px 0; font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: .04em;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  color: #1a1509;
  box-shadow: 0 -3px 12px rgba(201,169,97,.5);
}
.ref-item .ref-op:hover { background: var(--gold-bright); filter: brightness(1.06); }

/* 参考图优化模式卡 */
.opt-modes { display: grid; gap: 12px; }
.opt-mode {
  display: grid; gap: 6px; text-align: left; cursor: pointer;
  padding: 16px 18px; border-radius: var(--radius-s); font-family: var(--sans);
  background: var(--bg); border: 1.5px solid var(--line); color: var(--text);
  transition: border-color .18s, background .18s;
}
.opt-mode:hover { border-color: var(--gold-dim); background: rgba(201,169,97,.06); }
.opt-mode:disabled { opacity: .45; cursor: not-allowed; }
.opt-mode .om-top { display: flex; align-items: center; gap: 10px; }
.opt-mode .om-top strong { font-size: 15px; font-family: var(--serif); }
.opt-mode .om-desc { color: var(--text-soft); font-size: 13px; }
.opt-mode .om-eta { color: var(--text-mute); font-size: 12px; }
.ref-add {
  width: 104px; height: 104px; border-radius: var(--radius-s);
  border: 1.5px dashed var(--gold-dim); background: transparent; color: var(--gold);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 5px; cursor: pointer; font-size: 12px; font-family: var(--sans);
}
.ref-add:hover { background: rgba(201,169,97,.09); }
.ref-add .plus { font-size: 24px; line-height: 1; }

/* 分镜表 */
.shot-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.shot-table th, .shot-table td {
  border: 1px solid var(--line); padding: 9px 11px; text-align: left; vertical-align: top;
}
.shot-table th { background: var(--surface-2); color: var(--gold); font-weight: 500; white-space: nowrap; }
.shot-table tr:hover td { background: rgba(201,169,97,.05); }
.table-scroll { overflow-x: auto; }

/* 逐帧出图卡 */
.frame-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); }
.frame-card {
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
}
.frame-card .fc-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 13px 16px; border-bottom: 1px solid var(--line);
}
.frame-card .fc-head strong { font-size: 14px; }
.frame-card .fc-body { padding: 16px; }
.frame-card .fc-prompt {
  font-size: 12.5px; color: var(--text-mute); line-height: 1.65;
  max-height: 108px; overflow-y: auto; white-space: pre-wrap;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-s);
  padding: 11px; margin-bottom: 12px;
}
.frame-card .fc-result { margin-top: 14px; }
.frame-card .fc-result img { width: 100%; border-radius: var(--radius-s); display: block; cursor: zoom-in; }
.frame-card .fc-meta { display: flex; gap: 10px; align-items: center; font-size: 12px; color: var(--text-mute); margin-top: 9px; }

.badge {
  display: inline-block; padding: 3px 11px; border-radius: 999px; font-size: 12px;
  background: var(--surface-2); color: var(--text-soft); border: 1px solid var(--line);
}
.badge.run  { border-color: var(--gold-dim); color: var(--gold); }
.badge.ok   { border-color: var(--ok); color: #cfe8bf; }
.badge.err  { border-color: var(--danger); color: #ffcabf; }

/* 进度条 */
.bar { height: 5px; border-radius: 999px; background: var(--surface-2); overflow: hidden; margin-top: 11px; }
.bar > i { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--gold-dim), var(--gold-bright)); transition: width .5s; }

/* 弹窗 */
.modal-mask {
  position: fixed; inset: 0; z-index: 150; display: none;
  align-items: center; justify-content: center; padding: 24px;
  background: rgba(6, 5, 4, .86); backdrop-filter: blur(7px);
}
.modal-mask.show { display: flex; }
.modal {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius);
  max-width: 940px; width: 100%; max-height: 88vh; overflow: auto; box-shadow: var(--shadow);
}
.modal img { width: 100%; display: block; }

/* 查看大图灯箱 */
.lightbox {
  position: fixed; inset: 0; z-index: 200; display: none;
  align-items: center; justify-content: center; padding: 28px;
  background: rgba(6, 5, 4, .93); backdrop-filter: blur(8px); cursor: zoom-out;
}
.lightbox.show { display: flex; }
.lightbox img {
  max-width: 92vw; max-height: 86vh; width: auto; height: auto;
  object-fit: contain; border-radius: var(--radius-s); background: #fff;
  box-shadow: 0 26px 70px rgba(0, 0, 0, .65);
}
.lightbox-hint {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  font-size: 12.5px; color: var(--text-soft); letter-spacing: .06em;
}

/* 生成历史：一条记录 + 它的成片缩略图 */
.hist-item { border-bottom: 1px solid var(--line); }
.hist-item:last-child { border-bottom: none; }
.hist-frames { display: flex; gap: 8px; flex-wrap: wrap; padding-bottom: 14px; }
.hist-frames img {
  width: 92px; height: 92px; object-fit: cover; display: block;
  border-radius: var(--radius-s); border: 1px solid var(--line); cursor: zoom-in;
}
.hist-frames img:hover { border-color: var(--gold-dim); }

.notice {
  padding: 13px 16px; border-radius: var(--radius-s); font-size: 13.5px;
  border: 1px solid var(--gold-dim); background: rgba(201,169,97,.09); color: var(--gold-bright);
  margin-bottom: 18px;
}
.notice.err { border-color: var(--danger); background: rgba(217,107,90,.1); color: #ffcabf; }
.notice.warn { border-color: var(--gold); background: rgba(201,169,97,.16); color: var(--gold-bright); }

.muted { color: var(--text-mute); }
.small { font-size: 12.5px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
.hidden { display: none !important; }

.login-box { max-width: 380px; margin: 12vh auto; }

@media (max-width: 720px) {
  .topbar { grid-template-columns: 1fr; justify-items: center; padding: 13px 18px; gap: 10px; }
  .topbar .brand { justify-self: center; }
  .topbar-center, .topbar-nav { flex-wrap: wrap; justify-content: center; gap: 10px; }
  .topbar nav { flex-wrap: wrap; justify-content: center; gap: 16px; font-size: 13px; }
  .ver-switch button { padding: 5px 14px; font-size: 12.5px; }
  .version-card { aspect-ratio: 4 / 3; }
  .version-card .vc-body { padding: 22px 22px 20px; }
  .section { padding: 60px 18px; }
  .admin-wrap { padding: 18px; }
  .panel { padding: 18px; }

  /* 首屏拼贴：手机两列、只留 8 张、取消错位 */
  .hero { min-height: 88vh; padding: 92px 20px 88px; }
  .hero-collage { grid-template-columns: repeat(2, 1fr); }
  .hero-collage img:nth-child(n + 9) { display: none; }
  .hero-collage img:nth-child(even), .hero-collage img:nth-child(3n) { transform: none; }
  .hero-actions { flex-direction: column; width: 100%; max-width: 306px; }
  .hero-actions .btn { width: 100%; }

  /* 成片墙两列、取消交错；对比滑杆用 4:3 省高度 */
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .gallery-item:nth-child(2), .gallery-item:nth-child(5) { translate: none; }

  .faq-item { padding: 0 18px; }
  .cta-band { padding: 0 18px 60px; }
  .cta-inner { padding: 46px 22px; }

  .footer { padding: 44px 18px 26px; }
  .footer-cols { grid-template-columns: 1fr; gap: 28px; }
}

/* ============================================================
   创作工具（后台视图二 / 视图三）：小红书文案 + 作图
   ============================================================ */

/* 顶栏中段第一个 pill（#verSwitch）+ 第二个 pill（#mainTabs）共用同一套外观 */
.tabs {
  display: inline-flex; gap: 3px; padding: 3px;
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 999px;
}
.tabs button {
  border: none; background: transparent; color: var(--text-soft);
  font-family: var(--sans); font-size: 13px; padding: 6px 20px; border-radius: 999px;
  cursor: pointer; transition: background .18s, color .18s;
}
.tabs button:hover { color: var(--text); }
.tabs button.active {
  background: linear-gradient(135deg, var(--gold), var(--gold-bright));
  color: #1a1509; font-weight: 600;
}

/* 小红书：内容风格卡片 */
.tag-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); }
.tag-card {
  display: flex; flex-direction: column; gap: 3px; text-align: left; cursor: pointer;
  padding: 12px 14px; border-radius: var(--radius-s);
  background: var(--bg); border: 1.5px solid var(--line); color: var(--text-soft);
  font-family: var(--sans); transition: border-color .18s, background .18s, transform .18s;
}
.tag-card:hover { border-color: var(--gold-dim); transform: translateY(-2px); }
.tag-card.on { border-color: var(--gold); background: rgba(201, 169, 97, .1); }
.tag-card .tc-icon { font-size: 17px; }
.tag-card .tc-name { font-size: 14px; font-weight: 600; color: var(--text); }
.tag-card.on .tc-name { color: var(--gold-bright); }
.tag-card .tc-desc { font-size: 11.5px; color: var(--text-mute); line-height: 1.5; }

/* 小红书：候选标题 */
.title-list { display: grid; gap: 10px; }
.title-item {
  display: flex; gap: 12px; align-items: flex-start; text-align: left; cursor: pointer;
  padding: 13px 16px; border-radius: var(--radius-s);
  background: var(--bg); border: 1.5px solid var(--line); color: var(--text);
  font-family: var(--sans); font-size: 14.5px; line-height: 1.6;
  transition: border-color .18s, background .18s;
}
.title-item:hover { border-color: var(--gold-dim); }
.title-item.sel { border-color: var(--gold); background: rgba(201, 169, 97, .1); }
.title-item .ti-no {
  flex: none; width: 22px; height: 22px; border-radius: 50%; margin-top: 1px;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface-2); color: var(--text-mute); font-size: 12px; font-weight: 700;
}
.title-item.sel .ti-no { background: var(--gold); color: #1a1509; }

/* 小红书：笔记输出 */
.note-head { border-left: 3px solid var(--gold); padding-left: 14px; margin-bottom: 18px; }
.note-title { font-family: var(--serif); font-size: 21px; line-height: 1.5; }
.note-body { white-space: pre-wrap; font-size: 14.5px; line-height: 1.95; }
.note-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.note-tag {
  font-size: 12.5px; color: var(--gold); background: rgba(201, 169, 97, .1);
  border: 1px solid var(--line); padding: 4px 11px; border-radius: 999px;
}

/* 作图：预设模板 */
.preset-group { margin-bottom: 20px; }
.preset-group:last-child { margin-bottom: 0; }
.preset-group-head { font-size: 13px; color: var(--text-soft); margin-bottom: 10px; }
.preset-row { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); }
.preset-card {
  display: flex; flex-direction: column; gap: 4px; text-align: left; cursor: pointer;
  padding: 12px 14px; border-radius: var(--radius-s);
  background: var(--bg); border: 1.5px solid var(--line); color: var(--text-soft);
  font-family: var(--sans); transition: border-color .18s, background .18s, transform .18s;
}
.preset-card:hover { border-color: var(--gold-dim); transform: translateY(-2px); }
.preset-card.sel { border-color: var(--gold); background: rgba(201, 169, 97, .1); }
.preset-card .pc-icon { font-size: 17px; }
.preset-card strong { font-size: 13.5px; color: var(--text); font-weight: 600; }
.preset-card.sel strong { color: var(--gold-bright); }
.preset-card .pc-desc { font-size: 11.5px; color: var(--text-mute); line-height: 1.5; }

/* 作图：风格标签 */
.tag-row { margin-bottom: 12px; }
.tag-row:last-child { margin-bottom: 0; }
.tag-row-head { font-size: 12.5px; color: var(--text-mute); margin-bottom: 8px; }
.tag-row-body { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  cursor: pointer; padding: 6px 14px; border-radius: 999px;
  background: var(--bg); border: 1.5px solid var(--line); color: var(--text-soft);
  font-family: var(--sans); font-size: 12.5px;
  transition: border-color .16s, background .16s, color .16s;
}
.chip:hover { border-color: var(--gold-dim); color: var(--text); }
.chip.on { border-color: var(--gold); background: rgba(201, 169, 97, .14); color: var(--gold-bright); font-weight: 600; }

/* 作图：成图 */
.poster-img { width: 100%; max-width: 760px; border-radius: var(--radius-s); display: block; cursor: zoom-in; }

@media (max-width: 720px) {
  .tabs button { padding: 6px 13px; font-size: 12.5px; }
  .tag-grid, .preset-row { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .poster-img { max-width: 100%; }
}

/* ============================================================
   会员中心：登录卡 / 余额 / 充值 / 我的作品 / 账户 / 后台会员管理
   ============================================================ */

/* 工作台自己渲染的「婚纱 / 儿童」切换（会员中心用；后台把它放在顶栏） */
.studio-head { display: flex; justify-content: center; margin-bottom: 20px; }

/* 顶栏余额胶囊 */
.balance-pill {
  display: inline-flex; align-items: center; gap: 5px; cursor: pointer;
  padding: 6px 16px; border-radius: 999px; font-size: 13px;
  background: linear-gradient(135deg, rgba(201,169,97,.22), rgba(230,205,143,.14));
  border: 1px solid var(--gold-dim); color: var(--gold-bright);
  transition: background .18s, transform .18s;
}
.balance-pill:hover { background: rgba(201,169,97,.3); transform: translateY(-1px); }
.balance-pill b { font-size: 15px; color: var(--gold-bright); }

/* 登录卡里的「登录 / 注册」切换 */
.auth-tabs { display: flex; width: 100%; margin-bottom: 20px; }
.auth-tabs button { flex: 1; text-align: center; justify-content: center; }

/* ── 充值：余额条 ── */
.balance-bar {
  position: relative; overflow: hidden;
  padding: 28px 32px; border-radius: var(--radius); margin-bottom: 22px;
  background: linear-gradient(120deg, #2a2214 0%, #1b1815 55%, #241d12 100%);
  border: 1px solid var(--gold-dim);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .45), inset 0 0 60px rgba(201,169,97,.09);
}
.balance-bar::after {
  content: ''; position: absolute; right: -60px; top: -60px; width: 240px; height: 240px;
  border-radius: 50%; background: radial-gradient(circle, rgba(201,169,97,.28), transparent 68%);
  pointer-events: none;
}
.balance-bar .b-label { font-size: 12.5px; letter-spacing: .22em; color: var(--gold-dim); text-transform: uppercase; }
.balance-bar .b-value { font-family: var(--serif); font-size: 46px; line-height: 1.2; color: var(--gold-bright); }
.balance-bar .b-value span { font-size: 16px; color: var(--text-soft); font-family: var(--sans); margin-left: 6px; }
.balance-bar .b-sub { color: var(--text-soft); font-size: 13.5px; }

/* ── 充值：主区 + 结算侧栏 ── */
.recharge-layout { display: grid; grid-template-columns: 1fr 340px; gap: 22px; align-items: start; }
.sec-title {
  font-family: var(--serif); font-size: 16px; margin-bottom: 14px;
  padding-left: 11px; border-left: 3px solid var(--gold);
}

.credit-grid { display: grid; gap: 14px; grid-template-columns: repeat(3, 1fr); }
.credit-card {
  position: relative; cursor: pointer; text-align: left; font-family: var(--sans);
  padding: 20px 18px; border-radius: var(--radius);
  background: linear-gradient(160deg, var(--surface) 0%, var(--bg-soft) 100%);
  border: 1.5px solid var(--line); color: var(--text);
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.credit-card:hover { border-color: var(--gold-dim); transform: translateY(-3px); }
.credit-card.on {
  border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,169,97,.2), 0 16px 40px rgba(0,0,0,.5);
}
.credit-card.on::after {
  content: '✓'; position: absolute; top: 10px; right: 12px;
  width: 22px; height: 22px; border-radius: 50%; background: var(--gold); color: #1a1509;
  display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700;
}
.credit-card .cc-credits { font-size: 15px; color: var(--text-soft); }
.credit-card .cc-credits b { font-family: var(--serif); font-size: 30px; color: var(--gold-bright); margin-right: 3px; }
.credit-card .cc-price { margin-top: 8px; font-size: 19px; font-weight: 600; }
.credit-card .cc-bonus { margin-top: 4px; font-size: 12.5px; color: var(--gold); }
.credit-card .cc-bonus.muted { color: var(--text-mute); }
/* 会员卡：标题较长，字号收小，避免溢出 */
.credit-card.plan .cc-credits b { font-size: 21px; margin-right: 0; }

.checkout {
  position: sticky; top: 92px; padding: 24px;
  background: linear-gradient(160deg, var(--surface) 0%, var(--bg-soft) 100%);
  border: 1px solid var(--line); border-radius: var(--radius);
}
.co-pack {
  padding: 13px 16px; border-radius: var(--radius-s); margin-bottom: 14px;
  background: var(--bg); border: 1px dashed var(--gold-dim);
  font-size: 14px; color: var(--gold-bright);
}
.co-row { display: flex; justify-content: space-between; align-items: baseline; padding: 7px 0; font-size: 14px; color: var(--text-soft); }
.co-row b { color: var(--text); font-size: 15px; }

.pay-methods { display: grid; gap: 10px; }
.pm {
  display: flex; align-items: center; gap: 11px; cursor: pointer; font-family: var(--sans);
  padding: 13px 16px; border-radius: var(--radius-s); font-size: 14.5px;
  background: var(--bg); border: 1.5px solid var(--line); color: var(--text-soft);
  transition: border-color .18s, background .18s;
}
.pm:hover { border-color: var(--gold-dim); }
.pm.on { border-color: var(--gold); background: rgba(201,169,97,.1); color: var(--text); }
.pm .pm-ic { font-size: 18px; }
.pm .pm-name { flex: 1; }
.pm .pm-check { opacity: 0; color: var(--gold); font-weight: 700; }
.pm.on .pm-check { opacity: 1; }

/* ── 会员：详情摘要（后台会员详情 + 会员中心账户共用） ── */
.member-summary {
  display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  padding: 18px 20px; border-radius: var(--radius-s);
  background: var(--bg); border: 1px solid var(--line);
}
.member-summary > div > div { margin-top: 3px; font-size: 15px; }

/* ── 我的作品 ── */
.work-card { border-bottom: 1px solid var(--line); padding-bottom: 16px; margin-bottom: 16px; }
.work-card:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.wc-head { display: flex; gap: 16px; align-items: flex-start; justify-content: space-between; margin-bottom: 12px; flex-wrap: wrap; }

/* ── 小控件 ── */
.input-sm { padding: 8px 11px; font-size: 13.5px; border-radius: var(--radius-s); }
.check-inline { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text-soft); padding-top: 12px; }
.check-inline input { width: auto; }

/* 后台设置页：积分包一览 */
.credit-pack-row { display: flex; flex-wrap: wrap; gap: 10px; }
.credit-pack-chip {
  padding: 9px 16px; border-radius: 999px; font-size: 13px;
  background: var(--bg); border: 1px solid var(--line); color: var(--text-soft);
}
.credit-pack-chip b { color: var(--gold-bright); font-size: 15px; }

@media (max-width: 900px) {
  .recharge-layout { grid-template-columns: 1fr; }
  .checkout { position: static; }
  .credit-grid { grid-template-columns: repeat(2, 1fr); }
}

