:root {
  --bg: #0e0f13;
  --bg-soft: #15171d;
  --card: #1a1d25;
  --line: rgba(245, 241, 232, 0.1);
  --text: #ece7dc;
  --muted: #9a958a;
  --accent: #c9a86a;
  --accent-soft: rgba(201, 168, 106, 0.15);
  --serif: Georgia, "Times New Roman", "Songti SC", "Noto Serif SC", "STSong", serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
  color-scheme: dark;
  /* hero scene (night) */
  --sky-1: #0b0e14;
  --sky-2: #141c2c;
  --sky-3: #2a2438;
  --mtn-1: #0d1119;
  --mtn-2: #11161f;
  --lum: #ece7dc;
  --lum-halo: rgba(236, 231, 220, 0.18);
  --snow: rgba(236, 231, 220, 0.3);
  --stars-op: 0.9;
  --beam: #c9a86a;
  --beam-op: 0.25;
  --sun-t: translateY(340px) scale(0.7);
  --sun-op: 0;
  --moon-t: translateY(0) rotate(0deg);
  --moon-op: 1;
  --hero-wash: rgba(11, 13, 20, 0.45);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* 加载期禁用过渡，防止主题纠正被播放成动画（main.js 首帧后移除） */
.no-boot-anim, .no-boot-anim *, .no-boot-anim *::before, .no-boot-anim *::after {
  transition: none !important;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.35s ease, color 0.35s ease;
}

header, footer, .stat, .account {
  transition: background-color 0.9s ease, color 0.9s ease, border-color 0.9s ease;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------- Light theme ---------- */
:root[data-theme="light"] {
  --bg: #f5f1e8;
  --bg-soft: #ebe5d8;
  --card: #fffdf8;
  --line: rgba(43, 37, 24, 0.14);
  --text: #2a261b;
  --muted: #7b7263;
  --accent: #9d7a35;
  --accent-soft: rgba(157, 122, 53, 0.14);
  color-scheme: light;
  /* hero scene (day) */
  --sky-1: #f6efdd;
  --sky-2: #ecdcb8;
  --sky-3: #d9c096;
  --mtn-1: #b89a68;
  --mtn-2: #a68752;
  --lum: #fffdf6;
  --lum-halo: rgba(255, 253, 246, 0.45);
  --snow: rgba(255, 255, 255, 0.85);
  --stars-op: 0;
  --beam: #ffffff;
  --beam-op: 0.55;
  --sun-t: translateY(0) scale(1);
  --sun-op: 1;
  --moon-t: translateY(-260px) rotate(24deg);
  --moon-op: 0;
  --hero-wash: rgba(246, 239, 221, 0.35);
}
:root[data-theme="light"] header.scrolled { background: rgba(245, 241, 232, 0.88); }
:root[data-theme="light"] .btn-ghost:hover { color: var(--accent); }
:root[data-theme="light"] .lightbox { background: rgba(28, 24, 16, 0.94); }
:root[data-theme="light"] .lightbox-caption,
:root[data-theme="light"] .lb-count { color: #cfc8b8; }
:root[data-theme="light"] .lb-close,
:root[data-theme="light"] .lb-prev,
:root[data-theme="light"] .lb-next { color: #f5f1e8; }
:root[data-theme="light"] .stat b { color: var(--accent); }

/* ---------- Header ---------- */
header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background 0.35s, border-color 0.35s;
  border-bottom: 1px solid transparent;
}
header.scrolled {
  background: rgba(14, 15, 19, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}
.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand { font-family: var(--serif); font-size: 1.5rem; letter-spacing: 0.05em; }
.brand small {
  display: block;
  font-family: var(--sans);
  font-size: 0.62rem;
  letter-spacing: 0.42em;
  color: var(--accent);
  text-transform: uppercase;
}
nav ul { display: flex; gap: 34px; align-items: center; }
nav a {
  font-size: 0.92rem;
  color: var(--muted);
  transition: color 0.25s;
  letter-spacing: 0.06em;
}
nav a:hover, nav a.active { color: var(--text); }
nav a.active { border-bottom: 1px solid var(--accent); padding-bottom: 3px; }
.header-actions { display: flex; align-items: center; gap: 14px; }
.theme-btn {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.25s, color 0.25s;
  font-family: inherit;
}
.theme-btn {
  width: 36px;
  height: 36px;
  padding: 0;
  display: grid;
  place-items: center;
}
.theme-btn svg {
  grid-area: 1 / 1;
  width: 18px;
  height: 18px;
  overflow: visible;
  transform-origin: center;
  transition: transform 0.7s cubic-bezier(0.22, 1.2, 0.36, 1), opacity 0.45s ease;
}
.theme-btn .tb-moon { opacity: 1; transform: none; }
.theme-btn .tb-sun { opacity: 0; transform: rotate(-70deg) scale(0.35); }
.theme-btn .tb-rays {
  transform-box: fill-box;
  transform-origin: center;
  transform: rotate(50deg) scale(0.3);
  opacity: 0;
  transition: transform 0.7s cubic-bezier(0.22, 1.2, 0.36, 1), opacity 0.5s ease 0.1s;
}
:root[data-theme="light"] .theme-btn .tb-sun { opacity: 1; transform: none; }
:root[data-theme="light"] .theme-btn .tb-moon { opacity: 0; transform: rotate(80deg) scale(0.35); }
:root[data-theme="light"] .theme-btn .tb-rays { transform: none; opacity: 1; }
.theme-btn:hover { border-color: var(--accent); color: var(--accent); }
.menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 22px;
  position: relative;
}
.menu-btn span,
.menu-btn span::before,
.menu-btn span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--text);
  transition: transform 0.3s, opacity 0.3s, top 0.3s;
}
.menu-btn span { top: 10px; }
.menu-btn span::before { top: -8px; }
.menu-btn span::after { top: 8px; }
header.nav-open .menu-btn span { background: transparent; }
header.nav-open .menu-btn span::before { top: 0; transform: rotate(45deg); }
header.nav-open .menu-btn span::after { top: 0; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--hero-wash), transparent 55%, var(--bg) 100%);
}
/* Hero 内联 SVG 场景：日转夜动画 */
.hero-scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-scene stop { transition: stop-color 1.1s ease, stop-opacity 1.1s ease; }
.hero-scene .stop-1 { stop-color: var(--sky-1); }
.hero-scene .stop-2 { stop-color: var(--sky-2); }
.hero-scene .stop-3 { stop-color: var(--sky-3); }
.hero-scene .beam-1 { stop-color: var(--beam); stop-opacity: var(--beam-op); }
.hero-scene .beam-2 { stop-color: var(--beam); stop-opacity: 0; }
.hero-scene .mtn-a { fill: var(--mtn-1); transition: fill 1.1s ease; }
.hero-scene .mtn-b { fill: var(--mtn-2); transition: fill 1.1s ease; }
.hero-scene .snow { fill: var(--snow); transition: fill 1.1s ease; }
.hero-scene .stars { opacity: var(--stars-op); transition: opacity 1.2s ease 0.15s; }
.hero-scene .stars circle { fill: #fff; }
.hero-scene .sun, .hero-scene .moon {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 1.3s cubic-bezier(0.45, 0.05, 0.35, 1), opacity 1.3s ease;
}
.hero-scene .sun { transform: var(--sun-t); opacity: var(--sun-op); }
.hero-scene .moon { transform: var(--moon-t); opacity: var(--moon-op); }
.hero-scene .lum-core { fill: var(--lum); transition: fill 1.1s ease; }
.hero-scene .lum-halo { fill: var(--lum-halo); transition: fill 1.1s ease; }
@media (prefers-reduced-motion: reduce) {
  .hero-scene .sun, .hero-scene .moon, .hero-scene .stars,
  .hero-scene stop, .hero-scene .mtn-a, .hero-scene .mtn-b, .hero-scene .snow { transition: none; }
}
@keyframes twinkle { from { opacity: 1; } to { opacity: 0.15; } }
.hero-scene .stars .tw { animation: twinkle 2.8s ease-in-out infinite alternate; }
.hero .container { position: relative; z-index: 1; padding-top: 90px; }
.hero-kicker {
  color: var(--accent);
  font-size: 0.85rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 400;
  line-height: 1.25;
  max-width: 14em;
  margin-bottom: 22px;
}
.hero p { color: var(--muted); max-width: 34em; margin-bottom: 40px; }
.btn {
  display: inline-block;
  padding: 14px 34px;
  font-size: 0.92rem;
  letter-spacing: 0.12em;
  border-radius: 2px;
  transition: transform 0.25s, box-shadow 0.25s, background 0.25s, color 0.25s;
  cursor: pointer;
  font-family: inherit;
}
.btn-primary { background: var(--accent); color: #17130a; border: 1px solid var(--accent); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(201, 168, 106, 0.25); }
.btn-ghost { border: 1px solid var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.scroll-hint {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  color: var(--muted);
  font-size: 1.4rem;
  animation: bob 2.2s ease-in-out infinite;
}
@keyframes bob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 10px); } }

/* ---------- Sections ---------- */
section { padding: 110px 0; }
.section-alt { background: var(--bg-soft); }
.section-head { margin-bottom: 56px; }
.section-head .kicker {
  color: var(--accent);
  font-size: 0.78rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}
.section-head h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  margin-top: 10px;
}
.section-head .sub { color: var(--muted); margin-top: 12px; max-width: 40em; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 60px; align-items: center; }
.about-text p { color: var(--muted); margin-bottom: 18px; }
.about-text p strong { color: var(--text); font-weight: 600; }
.about-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.stat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 26px 20px;
  text-align: center;
}
.stat b { display: block; font-family: var(--serif); font-size: 2rem; color: var(--accent); font-weight: 400; }
.stat span { font-size: 0.82rem; color: var(--muted); letter-spacing: 0.08em; }

/* ---------- Portrait showcase（1 横 + 2 竖 对齐排版） ---------- */
/* 横屏时上方横图几乎铺满屏幕（两侧留空边），下方两张竖图与横图等宽对齐 */
.showcase-wrap {
  width: 80%;
  max-width: 1720px;
  margin-inline: auto;
}
.showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.showcase-grid figure { position: relative; overflow: hidden; border-radius: 4px; cursor: zoom-in; }
.showcase-grid .sc-wide { grid-column: 1 / -1; aspect-ratio: 3 / 2; }
.showcase-grid .sc-tall { aspect-ratio: 2 / 3; }
.showcase-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease, opacity 0.45s ease;
}
.showcase-grid figure:hover img { transform: scale(1.05); }
.showcase-grid img.swapping { opacity: 0; }
.showcase-bar { display: flex; align-items: center; gap: 18px; margin-top: 32px; }
.showcase-count { margin-left: auto; color: var(--muted); font-size: 0.85rem; letter-spacing: 0.08em; }

/* ---------- Pricing（复用全站配色变量，跟随主题） ---------- */
.pricing-section {
  --pc-ink: var(--text);
  --pc-muted: var(--muted);
  --pc-accent: var(--accent);
  --pc-strong: var(--accent);
  --pc-card: var(--card);
  --pc-line: var(--line);
  --pc-active: var(--accent-soft);
  --pc-shadow: 0 14px 34px rgba(0, 0, 0, 0.25);
}
:root[data-theme="light"] .pricing-section { --pc-shadow: 0 14px 34px rgba(157, 122, 53, 0.12); }
.pricing-head { text-align: center; margin-bottom: 38px; }
.pricing-head h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.9rem, 4vw, 2.7rem); color: var(--pc-ink); }
.pricing-head p { margin-top: 12px; color: var(--pc-muted); font-size: 0.9rem; font-weight: 300; letter-spacing: 0.06em; }
.pricing-head b { color: var(--pc-strong); font-weight: 500; }
.price-tabs { display: flex; justify-content: center; gap: 6px; width: max-content; max-width: 100%; margin: 0 auto 46px; padding: 6px; background: var(--pc-card); border: 1px solid var(--pc-line); border-radius: 999px; box-shadow: var(--pc-shadow); }
.price-tab { display: inline-flex; align-items: center; gap: 8px; padding: 10px 24px; border: none; border-radius: 999px; background: transparent; color: var(--pc-muted); font-family: inherit; font-size: 0.9rem; letter-spacing: 0.05em; cursor: pointer; transition: background 0.3s ease, color 0.3s ease; }
.price-tab svg { width: 16px; height: 16px; }
.price-tab:hover:not(.active) { color: var(--pc-ink); }
.price-tab.active { background: var(--pc-active); color: var(--pc-strong); font-weight: 500; }
.price-panel { display: none; }
.price-panel.active { display: block; animation: panelIn 0.45s ease; }
@keyframes panelIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.price-cards { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; }
.price-cards .pcard { flex: 0 1 560px; }
.pcard { position: relative; background: var(--pc-card); border: 1px solid var(--pc-line); border-radius: 20px; padding: 28px; box-shadow: var(--pc-shadow); transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.9s ease, border-color 0.9s ease; }
.pcard:hover { transform: translateY(-4px); box-shadow: 0 20px 44px rgba(0, 0, 0, 0.3); }
:root[data-theme="light"] .pcard:hover { box-shadow: 0 20px 44px rgba(157, 122, 53, 0.18); }
.pcard h3 { display: flex; align-items: center; gap: 10px; color: var(--pc-ink); font-size: 1.05rem; font-weight: 600; letter-spacing: 0.02em; }
.pcard h3 svg { width: 18px; height: 18px; color: var(--pc-accent); flex: none; }
.pcard-sub { margin: 8px 0 4px; color: var(--pc-muted); font-size: 0.82rem; font-weight: 300; }
.pcard-badge { position: absolute; top: 18px; right: 18px; padding: 4px 12px; border-radius: 999px; background: var(--pc-active); color: var(--pc-strong); font-size: 0.74rem; letter-spacing: 0.04em; }
.prow { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; padding: 14px 0; border-top: 1px dashed var(--pc-line); }
.pl { display: flex; flex-direction: column; gap: 2px; }
.pl b { color: var(--pc-ink); font-weight: 600; font-size: 0.92rem; }
.pl span { color: var(--pc-muted); font-size: 0.78rem; font-weight: 300; }
.pr { text-align: right; display: flex; flex-direction: column; gap: 2px; }
.pr strong { color: var(--pc-strong); font-size: 1.25rem; font-weight: 600; line-height: 1.2; }
.pr strong i { font-style: normal; font-size: 0.78rem; font-weight: 400; color: var(--pc-muted); }
.pr span { color: var(--pc-muted); font-size: 0.75rem; font-weight: 300; }

/* ---------- 底部悬浮导航 ---------- */
.dock { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 150; display: flex; align-items: center; gap: 4px; padding: 8px; border-radius: 999px; background: rgba(14, 15, 19, 0.75); border: 1px solid var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35); }
:root[data-theme="light"] .dock { background: rgba(255, 253, 248, 0.8); box-shadow: 0 12px 40px rgba(157, 122, 53, 0.15); }
.dock a { display: inline-flex; align-items: center; gap: 7px; padding: 9px 16px; border-radius: 999px; color: var(--muted); font-size: 0.85rem; letter-spacing: 0.05em; white-space: nowrap; transition: background 0.25s ease, color 0.25s ease; }
.dock a svg { width: 15px; height: 15px; }
.dock a:hover { color: var(--text); }
.dock a.active { background: var(--accent-soft); color: var(--accent); font-weight: 500; }
:root[data-theme="light"] .dock a.active { background: var(--accent-soft); color: var(--accent); }

/* ---------- Contact ---------- */
.contact-list {
  display: grid;
  grid-template-columns: repeat(2, 240px);
  justify-content: center;
  gap: 64px 56px;
}
.contact-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.platform {
  margin-top: 18px;
  font-size: 0.78rem;
  font-weight: 300;
  letter-spacing: 0.24em;
  color: var(--muted);
}
.account {
  margin-top: 4px;
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--text);
  cursor: pointer;
  transition: color 0.25s ease;
}
.account:hover, .account:focus-visible { color: var(--accent); outline: none; }
.copy-btn {
  margin-top: 16px;
  padding: 10px 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--muted);
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 300;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: color 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}
.copy-btn:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 300;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 300;
  letter-spacing: 0.06em;
  padding: 12px 24px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.toast.show { opacity: 1; transform: none; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(8, 9, 12, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: 88vw; max-height: 82vh; object-fit: contain; border-radius: 3px; }
.lightbox-caption { margin-top: 14px; text-align: center; color: var(--muted); font-size: 0.9rem; letter-spacing: 0.08em; }
.lightbox-body { max-width: 88vw; }
.lb-close, .lb-prev, .lb-next {
  position: absolute;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  color: var(--text);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 1.15rem;
  cursor: pointer;
  transition: background 0.25s, color 0.25s;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: var(--accent); color: #17130a; }
.lb-close { top: 24px; right: 24px; }
.lb-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 24px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); color: var(--muted); font-size: 0.8rem; letter-spacing: 0.15em; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); padding: 46px 0 118px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer-inner .brand { font-size: 1.15rem; }
.footer-inner p { color: var(--muted); font-size: 0.82rem; }
.to-top { color: var(--muted); font-size: 0.82rem; letter-spacing: 0.1em; }
.to-top:hover { color: var(--accent); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
/* 窄屏时 slice 裁切会裁掉画面两侧，把太阳/月亮挪进可视带 */
@media (max-width: 1024px) {
  .hero-scene .sun-pos { transform: translateX(-360px); }
  .hero-scene .moon-pos { transform: translateX(360px); }
}
@media (max-width: 960px) {
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 720px) {
  .menu-btn { display: block; }
  #nav {
    position: fixed;
    top: 0; right: 0;
    width: min(74vw, 300px);
    height: 100vh;
    background: var(--bg-soft);
    border-left: 1px solid var(--line);
    padding: 100px 34px;
    transform: translateX(100%);
    transition: transform 0.35s ease;
  }
  header.nav-open #nav { transform: none; }
  #nav ul { flex-direction: column; align-items: flex-start; gap: 26px; }
  #nav a { font-size: 1.05rem; }
}
@media (max-width: 720px) {
  .contact-list { grid-template-columns: 1fr; justify-items: center; gap: 48px; }
  .price-tabs { width: 100%; }
  .price-tab { flex: 1; justify-content: center; padding: 10px 8px; font-size: 0.82rem; }
}
@media (max-width: 560px) {
  section { padding: 80px 0; }
  .contact-list { gap: 44px; }
    .lb-prev { left: 10px; }
  .lb-next { right: 10px; }
}
