/* ============================================================
   娃娃学姐 Doll Senior — 设计升级版样式表
   设计方向：暗夜画廊 × 东方衬线 × 香槟金
   注：保留全部原有类名/变量契约，login.php / register.php
   内联样式所引用的 CSS 变量均继续有效。
   ============================================================ */

/* ============ Variables & Reset ============ */
:root {
  --bg-deep: #060605;
  --bg-card: #0c0b09;
  --glass-border: rgba(242, 237, 227, 0.07);
  --text-primary: #f2ede3;
  --text-secondary: #9d9789;
  --text-muted: #5c584f;
  --accent-gold: #c9a45f;
  --accent-gold-hi: #e8cd93;
  --gold-soft: rgba(201, 164, 95, 0.14);
  --error: #ff4d4f;
  --font-serif: 'Cormorant Garamond', 'Noto Serif SC', 'Songti SC', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --transition: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --container-padding: 40px;
  --gallery-gap: 24px;
  --header-h: 80px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  background: var(--bg-deep); color: var(--text-primary);
  font-family: var(--font-sans); font-weight: 300; line-height: 1.6;
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; transition: color .3s; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; color: inherit; -webkit-tap-highlight-color: transparent; }
.container { max-width: 1400px; margin: 0 auto; padding: 0 var(--container-padding); }
.container-narrow { max-width: 900px; }
em.gold { font-style: normal; color: var(--accent-gold-hi); }

::selection { background: rgba(201, 164, 95, 0.28); color: var(--text-primary); }

/* ============ 全局质感层：胶片颗粒 ============ */
.grain {
  position: fixed; inset: -50%; z-index: 60; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.045;
  animation: grainShift 1.2s steps(4) infinite;
}
@keyframes grainShift {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-2%, 1.4%); }
  50% { transform: translate(1.6%, -1%); }
  75% { transform: translate(-1%, -1.8%); }
  100% { transform: translate(0, 0); }
}

/* ============ 顶部滚动进度条 ============ */
#scroll-progress {
  position: fixed; top: 0; left: 0; z-index: 210;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--accent-gold), var(--accent-gold-hi));
  transform-origin: left; transform: scaleX(0);
  pointer-events: none;
}

/* ============ 右侧锚点导航 ============ */
#dot-nav {
  position: fixed; right: 28px; top: 50%; transform: translateY(-50%);
  z-index: 90; display: flex; flex-direction: column; gap: 18px;
}
#dot-nav a { position: relative; width: 10px; height: 10px; display: block; }
#dot-nav a::before {
  content: ''; position: absolute; inset: 3px; border-radius: 50%;
  background: rgba(242, 237, 227, 0.28); transition: all .35s var(--transition);
}
#dot-nav a::after {
  content: attr(data-label);
  position: absolute; right: 20px; top: 50%; transform: translateY(-50%) translateX(6px);
  font-size: 11px; letter-spacing: 2px; color: var(--accent-gold-hi);
  white-space: nowrap; opacity: 0; transition: all .35s var(--transition);
  pointer-events: none;
}
#dot-nav a:hover::after, #dot-nav a.active::after { opacity: 1; transform: translateY(-50%) translateX(0); }
#dot-nav a.active::before {
  inset: 0; background: transparent;
  border: 1px solid var(--accent-gold);
  box-shadow: inset 0 0 0 2px var(--bg-deep), inset 0 0 0 4px var(--accent-gold);
}
@media (max-width: 1100px) { #dot-nav { display: none; } }

/* ============ 桌面端金色光标环 ============ */
#cursor-ring {
  position: fixed; left: 0; top: 0; z-index: 9998; pointer-events: none;
  width: 34px; height: 34px; margin: -17px 0 0 -17px;
  border: 1px solid rgba(201, 164, 95, 0.55); border-radius: 50%;
  opacity: 0; transition: opacity .3s, width .3s, height .3s, margin .3s, border-color .3s;
}
#cursor-ring::after {
  content: ''; position: absolute; left: 50%; top: 50%;
  width: 3px; height: 3px; margin: -1.5px 0 0 -1.5px;
  border-radius: 50%; background: var(--accent-gold-hi);
}
#cursor-ring.on { opacity: 1; }
#cursor-ring.grow { width: 56px; height: 56px; margin: -28px 0 0 -28px; border-color: rgba(232, 205, 147, 0.9); }
@media (pointer: coarse) { #cursor-ring { display: none; } }

/* ============ 媒体卡片：自适应裁切铺满 ============ */
.placeholder-media {
  position: relative; width: 100%; overflow: hidden;
  background: linear-gradient(135deg, #121215 0%, #050505 100%);
  border: 1px solid var(--glass-border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  text-align: center; padding: 20px;
}
.placeholder-media[data-ratio="16:9"] { aspect-ratio: 16 / 9; }
.placeholder-media[data-ratio="9:16"] { aspect-ratio: 9 / 16; }
.placeholder-media[data-ratio="3:4"] { aspect-ratio: 3 / 4; }
.placeholder-media[data-ratio="4:5"] { aspect-ratio: 4 / 5; }
.placeholder-media[data-ratio="1:1"] { aspect-ratio: 1 / 1; }
.placeholder-media[data-ratio="21:9"] { aspect-ratio: 21 / 9; }
.placeholder-media[data-ratio="1200:630"] { aspect-ratio: 1200 / 630; }
.placeholder-media.full-width { width: 100%; }
.placeholder-media img, .placeholder-media video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}
/* 画廊级描金边框：金线四角 + 内阴影 */
.frame-gold { border: 1px solid rgba(201, 164, 95, 0.22); }
.frame-gold::before {
  content: ''; position: absolute; inset: 10px; z-index: 4;
  border: 1px solid rgba(201, 164, 95, 0.12); pointer-events: none;
}
.frame-gold::after {
  content: ''; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  box-shadow: inset 0 0 80px rgba(0, 0, 0, 0.45);
}

/* 有声自动播被拦截时：金色圆形播放按钮 + 呼吸脉冲 */
.placeholder-media.needs-tap { cursor: pointer; }
.placeholder-media.needs-tap::before {
  content: '';
  position: absolute; left: 50%; top: 50%; z-index: 6;
  transform: translate(-50%, -50%);
  width: 76px; height: 76px; border-radius: 50%;
  background: rgba(5, 5, 5, 0.5);
  border: 1px solid rgba(197, 160, 89, 0.45);
  backdrop-filter: blur(6px);
  animation: playPulse 2.4s ease-in-out infinite;
}
.placeholder-media.needs-tap::after {
  content: '';
  position: absolute; left: calc(50% + 3px); top: 50%; z-index: 7;
  transform: translate(-50%, -50%);
  border-left: 22px solid var(--accent-gold);
  border-top: 13px solid transparent;
  border-bottom: 13px solid transparent;
  filter: drop-shadow(0 0 12px rgba(197, 160, 89, 0.55));
}
@keyframes playPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  50% { transform: translate(-50%, -50%) scale(1.07); opacity: 0.8; }
}

/* ============ Header ============ */
.site-header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 100;
  backdrop-filter: blur(20px); background: rgba(6, 6, 5, 0.55);
  border-bottom: 1px solid var(--glass-border);
  transition: background .4s, border-color .4s;
}
.header-inner { display: flex; justify-content: space-between; align-items: center; height: var(--header-h); transition: height .4s var(--transition); }
.site-header.scrolled { background: rgba(6, 6, 5, 0.86); border-bottom-color: rgba(201, 164, 95, 0.14); }
.site-header.scrolled .header-inner { height: 64px; }
.logo { font-size: 18px; font-weight: 500; letter-spacing: 4px; white-space: nowrap; }
.logo span { color: var(--accent-gold); font-weight: 200; margin-left: 4px; }
.main-nav { display: flex; gap: 40px; align-items: center; }
.nav-link { position: relative; font-size: 14px; letter-spacing: 3px; color: var(--text-secondary); white-space: nowrap; }
.nav-link:not(.nav-highlight)::after {
  content: ''; position: absolute; left: 0; bottom: -6px;
  width: 100%; height: 1px; background: var(--accent-gold);
  transform: scaleX(0); transform-origin: right; transition: transform .4s var(--transition);
}
.nav-link:not(.nav-highlight):hover::after { transform: scaleX(1); transform-origin: left; }
.nav-link:hover { color: var(--text-primary); }
.nav-highlight {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--accent-gold) !important;
  border: 1px solid rgba(201, 164, 95, 0.35); padding: 9px 20px; border-radius: 2px;
  transition: all .3s;
}
.nav-highlight:hover { background: var(--gold-soft); border-color: rgba(201, 164, 95, 0.6); }
.mobile-menu-btn { display: none; flex-direction: column; gap: 6px; z-index: 101; }
.mobile-menu-btn span { display: block; width: 24px; height: 1px; background: var(--text-primary); transition: .3s; }
.mobile-menu {
  position: fixed; inset: 0; background: var(--bg-deep); z-index: 99;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  transform: translateX(100%); transition: transform .4s var(--transition);
}
.mobile-menu.active { transform: translateX(0); }
.mobile-nav { display: flex; flex-direction: column; gap: 32px; text-align: center; }
.mobile-link { font-family: var(--font-serif); font-size: 28px; font-weight: 300; letter-spacing: 2px; }
.mobile-link.nav-highlight { border: none; padding: 0; font-size: 28px; }

/* ============ 中英文切换按钮 ============ */
.lang-toggle {
  flex: none; padding: 8px 14px;
  border: 1px solid var(--glass-border); border-radius: 2px;
  font-size: 12px; letter-spacing: 2px; color: var(--text-secondary);
  transition: all .3s;
}
.lang-toggle:hover { color: var(--accent-gold-hi); border-color: rgba(201, 164, 95, 0.5); }
.mobile-lang { margin-top: 4px; padding: 10px 28px; font-size: 14px; }
/* 英文模式排版微调：收紧中式大字距，标题略缩，导航改全大写 */
html[lang="en"] .nav-link:not(.nav-highlight) { text-transform: uppercase; font-size: 12px; letter-spacing: 2px; }
html[lang="en"] .hero-title { letter-spacing: 1px; font-size: clamp(32px, 4.6vw, 60px); }
html[lang="en"] .section-header h2, html[lang="en"] .text-block h2,
html[lang="en"] .community-text h2, html[lang="en"] .gallery-heading h2 { letter-spacing: 1px; }
html[lang="en"] .hero-subtitle, html[lang="en"] .text-block .lead,
html[lang="en"] .text-block p, html[lang="en"] .craft-info p { letter-spacing: 0.3px; }
html[lang="en"] .journey-step h4 { letter-spacing: 2px; }
html[lang="en"] .heritage-label { letter-spacing: 1.5px; }
@media (max-width: 480px) {
  html[lang="en"] .hero-title { font-size: 26px; }
}

/* ============ Hero ============ */
.hero { height: 100vh; min-height: 640px; position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hero-media { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: none; }
.hero-media img { animation: heroKenBurns 18s ease-in-out infinite alternate; will-change: transform; }
@keyframes heroKenBurns { from { transform: scale(1); } to { transform: scale(1.08); } }
.hero-overlay { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(6,6,5,0.5) 0%, rgba(6,6,5,0.55) 55%, rgba(6,6,5,0.94) 100%); }
.hero-content { position: relative; z-index: 2; text-align: center; max-width: 900px; padding: 80px 24px 0; will-change: transform; }
.hero-logo {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -52%);
  width: min(760px, 84%);
  opacity: .3; z-index: -1;
  pointer-events: none; user-select: none;
  filter: drop-shadow(0 0 40px rgba(201, 164, 95, 0.15));
}
.hero-tag {
  display: inline-block; font-size: 11px; letter-spacing: 6px; color: var(--accent-gold-hi);
  margin-bottom: 32px; text-transform: uppercase;
  opacity: 0; animation: heroFade 1s var(--transition) .3s forwards;
}
.hero-title { font-family: var(--font-serif); font-size: clamp(38px, 5.6vw, 76px); font-weight: 300; letter-spacing: 4px; line-height: 1.3; margin-bottom: 36px; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.12em; margin-bottom: -0.12em; }
.hero-title .line-inner { display: inline-block; transform: translateY(115%); animation: lineUp 1.15s var(--transition) forwards; }
.hero-title .line:nth-child(1) .line-inner { animation-delay: .55s; }
.hero-title .line:nth-child(2) .line-inner { animation-delay: .75s; }
@keyframes lineUp { to { transform: translateY(0); } }
.hero-title em { font-style: normal; color: transparent; background: linear-gradient(120deg, var(--accent-gold) 10%, var(--accent-gold-hi) 50%, var(--accent-gold) 90%); -webkit-background-clip: text; background-clip: text; }
.hero-subtitle {
  font-size: clamp(13px, 1.4vw, 16px); color: var(--text-secondary); line-height: 2.1; letter-spacing: 2px;
  opacity: 0; animation: heroFade 1s var(--transition) 1.15s forwards;
}
.hero-actions {
  display: flex; gap: 20px; justify-content: center; align-items: center; flex-wrap: wrap;
  margin-top: 44px;
  opacity: 0; animation: heroFade 1s var(--transition) 1.45s forwards;
}
@keyframes heroFade { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
.btn-line {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 15px 46px; border: 1px solid rgba(201, 164, 95, 0.5); border-radius: 2px;
  font-size: 12px; letter-spacing: 4px; text-indent: 4px; color: var(--accent-gold-hi);
  transition: all .35s var(--transition);
}
.btn-line:hover { background: var(--accent-gold); border-color: var(--accent-gold); color: #0c0b09; }
.btn-play {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 8px; font-size: 12px; letter-spacing: 3px; color: var(--text-secondary);
  border-bottom: 1px solid rgba(242, 237, 227, 0.18);
  transition: all .35s var(--transition);
}
.btn-play svg { color: var(--accent-gold); transition: transform .35s var(--transition); }
.btn-play:hover { color: var(--text-primary); border-bottom-color: var(--accent-gold); }
.btn-play:hover svg { transform: translateX(4px); }
.scroll-hint { position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 12px; z-index: 2; }
.scroll-hint span { font-size: 10px; letter-spacing: 4px; color: var(--text-muted); }
.scroll-line { width: 1px; height: 40px; background: linear-gradient(var(--accent-gold), transparent); animation: scrollPulse 2s infinite; }
@keyframes scrollPulse { 0%{transform:scaleY(0);transform-origin:top} 50%{transform:scaleY(1);transform-origin:top} 51%{transform-origin:bottom} 100%{transform:scaleY(0);transform-origin:bottom} }

/* ============ 品牌关键词跑马灯 ============ */
.marquee {
  overflow: hidden; border-top: 1px solid var(--glass-border); border-bottom: 1px solid var(--glass-border);
  padding: 22px 0; background: rgba(12, 11, 9, 0.6);
}
.marquee-track {
  display: flex; align-items: center; gap: 56px; width: max-content;
  animation: marquee 36s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  font-family: var(--font-serif); font-size: 15px; letter-spacing: 5px;
  color: var(--text-secondary); white-space: nowrap;
}
.marquee-track i { font-style: normal; font-size: 8px; color: var(--accent-gold); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============ 通用 Section ============ */
.section { padding: 160px 0; position: relative; overflow: hidden; }
.section-tag { display: block; font-size: 11px; letter-spacing: 6px; color: var(--accent-gold); margin-bottom: 24px; text-transform: uppercase; }
.section-header { text-align: center; margin-bottom: 100px; }
.section-header h2 { font-family: var(--font-serif); font-size: clamp(32px, 4vw, 56px); font-weight: 300; letter-spacing: 3px; }
.section-desc { margin-top: 22px; font-size: 14px; letter-spacing: 2px; color: var(--text-secondary); }
/* 描边幽灵大字（装饰） */
.ghost {
  position: absolute; top: 48px; right: -0.5%; z-index: 0;
  font-family: var(--font-serif); font-weight: 600;
  font-size: clamp(90px, 13vw, 210px); line-height: 1; letter-spacing: 8px;
  color: transparent; -webkit-text-stroke: 1px rgba(201, 164, 95, 0.09);
  pointer-events: none; user-select: none; white-space: nowrap;
}
.section .container { position: relative; z-index: 1; }

/* ============ 按钮 ============ */
.btn-solid {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 16px 64px; background: linear-gradient(120deg, var(--accent-gold), var(--accent-gold-hi)); color: #0c0b09;
  font-size: 13px; font-weight: 500; letter-spacing: 4px; text-indent: 4px;
  border: 1px solid var(--accent-gold); border-radius: 2px;
  transition: all .35s var(--transition);
}
.btn-solid:hover { background: transparent; color: var(--accent-gold-hi); }

/* ============ Philosophy / Craft ============ */
.split-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.text-block h2 { font-family: var(--font-serif); font-size: clamp(30px, 3.2vw, 44px); font-weight: 300; letter-spacing: 2px; line-height: 1.4; margin-bottom: 32px; }
.text-block .lead { font-size: 16px; color: var(--text-primary); margin-bottom: 24px; line-height: 2; letter-spacing: 1px; }
.text-block p { color: var(--text-secondary); line-height: 2; letter-spacing: 1px; }
.media-block .placeholder-media img { transition: transform 1.2s var(--transition); }
.media-block .placeholder-media:hover img { transform: scale(1.04); }
.craft-grid { display: flex; flex-direction: column; gap: 160px; }
.craft-item { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.craft-item.reverse { direction: rtl; }
.craft-item.reverse .craft-info { direction: ltr; }
.craft-index {
  position: absolute; top: -56px; left: -8px; z-index: 2;
  font-family: var(--font-serif); font-size: clamp(64px, 7vw, 110px); font-weight: 300;
  color: transparent; -webkit-text-stroke: 1px rgba(201, 164, 95, 0.28);
  pointer-events: none; user-select: none; line-height: 1;
}
.craft-item.reverse .craft-index { left: auto; right: -8px; }
.craft-item .placeholder-media img, .craft-item .placeholder-media video { transition: transform 1.2s var(--transition); }
.craft-item .placeholder-media:hover img, .craft-item .placeholder-media:hover video { transform: scale(1.04); }
.craft-info h3 { font-family: var(--font-serif); font-size: clamp(26px, 2.6vw, 34px); font-weight: 300; letter-spacing: 2px; margin-bottom: 24px; }
.craft-info h3::after { content: ''; display: block; width: 44px; height: 1px; margin-top: 20px; background: linear-gradient(90deg, var(--accent-gold), transparent); }
.craft-info p { color: var(--text-secondary); line-height: 2; font-size: 15px; letter-spacing: 1px; }

/* ============ 品牌数字 ============ */
.heritage { padding: 110px 0; background: linear-gradient(180deg, var(--bg-deep) 0%, #0b0a08 50%, var(--bg-deep) 100%); border-top: 1px solid var(--glass-border); border-bottom: 1px solid var(--glass-border); }
.heritage-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 48px; }
.heritage-item { text-align: center; position: relative; }
.heritage-item:not(:last-child)::after {
  content: ''; position: absolute; right: -24px; top: 50%; transform: translateY(-50%);
  width: 1px; height: 56px; background: linear-gradient(transparent, rgba(201, 164, 95, 0.25), transparent);
}
.heritage-num { font-family: var(--font-serif); font-weight: 300; font-size: clamp(34px, 3.6vw, 52px); letter-spacing: 1px; color: var(--text-primary); line-height: 1.1; }
.heritage-num .unit { font-size: 0.5em; color: var(--accent-gold-hi); margin-left: 6px; letter-spacing: 2px; }
.heritage-label { margin-top: 16px; font-size: 12px; letter-spacing: 3px; color: var(--text-muted); }

/* ============ 高定之旅 ============ */
.journey-track { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; position: relative; }
.journey-track::before {
  content: ''; position: absolute; top: 34px; left: 4%; right: 4%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 164, 95, 0.3), rgba(201, 164, 95, 0.3), transparent);
}
.journey-step { position: relative; text-align: center; padding: 0 8px; }
.journey-index {
  display: inline-flex; align-items: center; justify-content: center;
  width: 68px; height: 68px; border-radius: 50%;
  border: 1px solid rgba(201, 164, 95, 0.4); background: var(--bg-deep);
  font-family: var(--font-serif); font-size: 24px; color: var(--accent-gold-hi);
  position: relative; z-index: 1; margin-bottom: 28px;
  transition: all .4s var(--transition);
}
.journey-step:hover .journey-index { background: var(--gold-soft); border-color: var(--accent-gold); box-shadow: 0 0 32px rgba(201, 164, 95, 0.18); }
.journey-step h4 { font-family: var(--font-serif); font-size: 22px; font-weight: 500; letter-spacing: 4px; margin-bottom: 14px; }
.journey-step p { font-size: 13px; color: var(--text-secondary); line-height: 1.9; letter-spacing: 1px; }

/* ============ Gallery ============ */
.gallery-header { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 64px; }
.gallery-heading h2 { font-family: var(--font-serif); font-size: clamp(32px, 4vw, 56px); font-weight: 300; letter-spacing: 2px; }
.gallery-arrows { display: flex; gap: 16px; flex: none; }
.arrow-btn {
  width: 52px; height: 52px; border: 1px solid var(--glass-border); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary); transition: all .3s;
}
.arrow-btn:hover { border-color: var(--accent-gold); color: var(--accent-gold); transform: translateY(-2px); }
.gallery-track {
  display: flex; gap: var(--gallery-gap); overflow-x: auto;
  scroll-snap-type: x mandatory; padding-bottom: 8px;
  scrollbar-width: none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-item { flex: 0 0 calc((100% - var(--gallery-gap) * 2) / 3); scroll-snap-align: start; }
.gallery-item .placeholder-media { transition: border-color .4s; }
.gallery-item .placeholder-media img { transition: transform 1s var(--transition), filter 1s var(--transition); }
.gallery-item:hover .placeholder-media { border-color: rgba(201, 164, 95, 0.4); }
.gallery-item:hover .placeholder-media img { transform: scale(1.06); filter: brightness(1.06); }
.gallery-caption { padding: 24px 0; }
.gallery-no { display: block; font-family: var(--font-serif); font-size: 12px; letter-spacing: 4px; color: var(--accent-gold); margin-bottom: 10px; }
.gallery-caption h4 { font-family: var(--font-serif); font-size: 26px; font-weight: 300; letter-spacing: 3px; margin-bottom: 8px; }
.gallery-caption p { font-size: 13px; color: var(--text-muted); letter-spacing: 1px; }
.gallery-cta {
  display: inline-flex; align-items: center; justify-content: center;
  margin-top: 16px; padding: 9px 30px;
  border: 1px solid rgba(201, 164, 95, 0.45); border-radius: 2px;
  font-size: 11px; letter-spacing: 3px; color: var(--accent-gold);
  transition: all .3s;
}
.gallery-cta:hover { background: var(--accent-gold); color: #0c0b09; }

/* ============ Community ============ */
.community { background: linear-gradient(180deg, var(--bg-deep) 0%, #0b0a08 100%); }
.community-layout { display: grid; grid-template-columns: 1.05fr 1fr; gap: 80px; align-items: center; }
.community-text h2 { font-family: var(--font-serif); font-size: clamp(32px, 3.4vw, 48px); font-weight: 300; letter-spacing: 2px; margin-bottom: 12px; }
.community-lead { font-size: 14px; color: var(--text-secondary); letter-spacing: 2px; }
.community-features { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 28px 40px; margin-top: 48px; }
.community-features li { border-left: 1px solid rgba(201, 164, 95, 0.4); padding-left: 16px; transition: border-color .3s, transform .3s var(--transition); }
.community-features li:hover { border-left-color: var(--accent-gold-hi); transform: translateX(4px); }
.community-features b { display: block; font-size: 15px; font-weight: 500; letter-spacing: 3px; margin-bottom: 4px; }
.community-features span { font-size: 12px; color: var(--text-secondary); letter-spacing: 1px; }
.community-cta { width: 100%; margin-top: 24px; }
/* 契约保留类 */
.locked-content { filter: blur(16px) brightness(0.5); user-select: none; pointer-events: none; transition: filter .5s; }
.is-unlocked .locked-content { filter: none; pointer-events: auto; }

/* ============ 页内 FAQ 手风琴 ============ */
.faq { background: var(--bg-deep); }
.acc-list { border-top: 1px solid var(--glass-border); }
.acc-item { border-bottom: 1px solid var(--glass-border); }
.acc-btn {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 30px 8px; text-align: left;
  font-family: var(--font-serif); font-size: clamp(18px, 2vw, 23px); font-weight: 300; letter-spacing: 2px;
  color: var(--text-primary); transition: color .3s;
}
.acc-btn:hover { color: var(--accent-gold-hi); }
.acc-icon { flex: none; color: var(--accent-gold); transition: transform .4s var(--transition); }
.acc-item.open .acc-icon { transform: rotate(135deg); }
.acc-panel { height: 0; overflow: hidden; transition: height .45s var(--transition); }
.acc-inner { padding: 0 8px 32px; }
.acc-inner p { color: var(--text-secondary); font-size: 14px; line-height: 2; letter-spacing: 1px; max-width: 720px; }

/* ============ Footer ============ */
.site-footer { padding: 90px 0 48px; border-top: 1px solid var(--glass-border); background: #080807; }
.footer-inner { display: grid; grid-template-columns: 1.2fr 0.8fr 1.1fr 0.9fr; gap: 48px; }
.footer-brand h3 { font-size: 18px; letter-spacing: 4px; margin-bottom: 16px; font-weight: 500; }
.footer-brand p { font-size: 13px; color: var(--text-secondary); margin-bottom: 8px; letter-spacing: 1px; }
.footer-brand .parent { color: var(--accent-gold); font-size: 12px; letter-spacing: 2px; }
.footer-links { display: flex; flex-direction: column; gap: 16px; }
.footer-links a { font-size: 13px; color: var(--text-secondary); cursor: pointer; letter-spacing: 1px; width: fit-content; }
.footer-links a:hover { color: var(--accent-gold-hi); }
.footer-channels-grid { display: grid; grid-template-columns: 1fr; gap: 16px; align-content: start; }
.footer-channels-grid a {
  font-size: 13px; color: var(--text-secondary); letter-spacing: 1px;
  display: inline-flex; align-items: center; gap: 6px; width: fit-content;
}
.footer-channels-grid a::before { content: '◆'; font-size: 6px; color: var(--accent-gold); }
.footer-channels-grid a:hover { color: var(--accent-gold-hi); }
.footer-legal { text-align: right; font-size: 12px; color: var(--text-muted); letter-spacing: 1px; }
.footer-legal .icp { margin-top: 8px; }
.footer-contact { display: inline-block; margin-top: 14px; font-size: 12px; color: var(--text-secondary); cursor: pointer; }
.footer-contact:hover { color: var(--accent-gold-hi); }

/* ============ Modals & Toast ============ */
.auth-modal, .faq-modal {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(6, 6, 5, 0.9); backdrop-filter: blur(24px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: all .4s;
}
.auth-modal.active, .faq-modal.active { opacity: 1; visibility: visible; }
.auth-card, .faq-card {
  background: var(--bg-card); border: 1px solid rgba(201, 164, 95, 0.18);
  width: 100%; max-width: 440px; padding: 48px; border-radius: 4px;
  position: relative; transform: translateY(20px); transition: transform .4s;
  max-height: 90vh; overflow-y: auto;
  overscroll-behavior: contain;
}
.faq-card { max-width: 600px; }
.auth-modal.active .auth-card, .faq-modal.active .faq-card { transform: translateY(0); }
.auth-close { position: absolute; top: 24px; right: 24px; font-size: 24px; color: var(--text-muted); transition: color .3s; }
.auth-close:hover { color: var(--accent-gold-hi); }
/* FAQ 弹窗关闭键：sticky 吸顶，长内容滚动时始终可见 */
.faq-card .auth-close {
  position: sticky; top: 12px; right: auto;
  display: block; width: -webkit-fit-content; width: fit-content;
  margin: -12px -12px 0 auto;
  padding: 12px; background: var(--bg-card); z-index: 5;
}
.auth-header { text-align: center; margin-bottom: 32px; }
.auth-header h3 { font-family: var(--font-serif); font-size: 28px; font-weight: 300; letter-spacing: 2px; }
.auth-header p { font-size: 12px; color: var(--text-muted); letter-spacing: 4px; margin-top: 8px; }
.auth-tabs { display: flex; gap: 32px; justify-content: center; margin-bottom: 32px; border-bottom: 1px solid var(--glass-border); }
.tab { padding-bottom: 12px; font-size: 12px; letter-spacing: 2px; color: var(--text-muted); border-bottom: 2px solid transparent; transition: all .3s; text-transform: uppercase; }
.tab.active { color: var(--text-primary); border-color: var(--accent-gold); }
.auth-row { margin-bottom: 24px; }
.auth-row label { display: block; font-size: 11px; letter-spacing: 2px; color: var(--text-muted); margin-bottom: 8px; text-transform: uppercase; }
.auth-form input {
  width: 100%; padding: 14px 0; background: transparent; border: none;
  border-bottom: 1px solid var(--glass-border); color: var(--text-primary);
  font-size: 15px; outline: none; transition: border-color .3s;
}
.auth-form input:focus { border-bottom-color: var(--accent-gold); }
.sms-row { display: flex; gap: 24px; align-items: flex-end; }
.sms-row .input-wrapper { flex: 1; }
.sms-btn { padding: 14px 0; white-space: nowrap; font-size: 11px; letter-spacing: 1px; color: var(--accent-gold); border-bottom: 1px solid var(--glass-border); text-transform: uppercase; }
.sms-btn:disabled { color: var(--text-muted); cursor: not-allowed; }
.invite-field { display: none; }
.auth-submit { width: 100%; padding: 16px; background: var(--accent-gold); color: var(--bg-deep); font-weight: 500; font-size: 12px; letter-spacing: 4px; text-transform: uppercase; margin-top: 32px; transition: opacity .3s; }
.auth-submit:hover { opacity: .88; }
.faq-section { margin-bottom: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--glass-border); scroll-margin-top: 56px; }
.faq-section:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.faq-section h3 { font-family: var(--font-serif); font-size: 24px; font-weight: 300; margin-bottom: 16px; color: var(--accent-gold); letter-spacing: 1px; }
.faq-section p { color: var(--text-secondary); line-height: 1.8; font-size: 14px; }
#toast {
  position: fixed; bottom: 40px; left: 50%; transform: translateX(-50%) translateY(100px);
  background: rgba(242, 237, 227, 0.95); color: #111; padding: 14px 28px; border-radius: 2px;
  font-size: 13px; letter-spacing: 1px; box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  opacity: 0; transition: all .4s var(--transition); z-index: 2000; pointer-events: none;
}
#toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

/* ============ 动效 & 响应式 ============ */
.fade-in-up { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--transition), transform 1s var(--transition); }
.fade-in-up.visible { opacity: 1; transform: translateY(0); }
@media (max-width: 1100px) {
  :root { --container-padding: 24px; --gallery-gap: 20px; }
  .main-nav { display: none; }
  .mobile-menu-btn { display: flex; }
  .section { padding: 100px 0; }
  .section-header { margin-bottom: 60px; }
  .ghost { display: none; }
  /* 移动端首屏：顶部锚定，LOGO 紧贴导航下沿 */
  .hero {
    height: auto;
    min-height: 100vh;
    min-height: 100svh;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-bottom: 56px;
  }
  .hero-content {
    width: 100%;
    padding-top: calc(88px + clamp(24px, 6vh, 64px));
  }
  .hero-logo {
    position: static; transform: none; opacity: 1;
    width: min(460px, 86%); margin: 0 auto 36px;
    filter: drop-shadow(0 0 24px rgba(201, 164, 95, 0.2));
  }
  .hero-actions { margin-top: 36px; }
  /* SCROLL 指示器：入文档流，紧跟文字，首屏必见 */
  .scroll-hint {
    position: static;
    transform: none;
    margin: clamp(36px, 6vh, 64px) auto 0;
  }
  .hero-overlay {
    background: linear-gradient(180deg, rgba(6,6,5,0.25) 0%, rgba(6,6,5,0.6) 55%, rgba(6,6,5,0.92) 100%);
  }
  .hero-title, .hero-subtitle { text-shadow: 0 2px 24px rgba(0,0,0,0.55); }
  .split-layout, .craft-item, .community-layout { grid-template-columns: 1fr; gap: 48px; }
  .craft-item.reverse { direction: ltr; }
  .craft-index { top: -40px; left: 0; }
  .craft-item.reverse .craft-index { right: 0; }
  .craft-grid { gap: 110px; }
  .text-block h2 { font-size: 30px; }
  .heritage { padding: 72px 0; }
  .heritage-grid { grid-template-columns: 1fr 1fr; gap: 40px 24px; }
  .heritage-item:nth-child(2)::after { display: none; }
  .journey-track { grid-template-columns: 1fr; gap: 44px; }
  .journey-track::before { display: none; }
  .journey-step { max-width: 420px; margin: 0 auto; }
  .gallery-header { align-items: center; margin-bottom: 40px; }
  .gallery-track { padding-left: 11%; padding-right: 11%; }
  .gallery-item { flex: 0 0 100%; scroll-snap-align: center; }
  .community-cta { margin-top: 20px; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; gap: 44px; }
  .footer-links { align-items: center; }
  .footer-links a, .footer-channels-grid a { width: auto; }
  .footer-channels-grid { justify-items: center; }
  .footer-legal { text-align: center; }
  .auth-card, .faq-card { padding: 32px 24px; margin: 0 20px; }
  .marquee-track { gap: 36px; animation-duration: 24s; }
}
@media (max-width: 480px) {
  .hero-title { font-size: 30px; letter-spacing: 2px; }
  .hero-subtitle { letter-spacing: 1px; }
}

/* ============ 动效降级：尊重系统减弱动态设置 ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .grain, .marquee-track, .hero-media img, .scroll-line { animation: none !important; }
  .hero-tag, .hero-subtitle, .hero-actions { animation: none !important; opacity: 1 !important; }
  .hero-title .line-inner { animation: none !important; transform: none !important; }
  .fade-in-up { opacity: 1; transform: none; transition: none; }
  #cursor-ring { display: none !important; }
}

/* ============ 【设计师署名模块】START （含 index.html 对应段落） ============
   两张图片署名，无任何文字。以二维码 150px 高度为标尺：两图等高，
   宽度随原始比例自适应（名片 2:1 → 300px 宽；换 16:9 / 4:3 自动变窄，
   无需改样式）。二维码垫米白底色（留白静区，低像素摄像头也易扫）；
   名片套细金边圆角框，出名片感。整行居中、不铺满。 */
.credit-section { padding: 56px 24px; }
.credit-row { display: flex; align-items: center; justify-content: center; gap: 36px; flex-wrap: wrap; }
.credit-row img { display: block; height: 150px; width: auto; }
.credit-qr-box { background: #f6f1e2; padding: 10px; border-radius: 12px; }
.credit-card-box { border: 1px solid rgba(197,160,89,.55); background: var(--bg-card, #0a0a0c); padding: 6px; border-radius: 10px; }
.credit-card-box img { border-radius: 6px; }
@media (max-width: 640px) {
  .credit-section { padding: 44px 20px; }
  .credit-row { flex-direction: column; gap: 24px; }
}
/* ============ 【设计师署名模块】END ============ */
