@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600&family=Noto+Sans+SC:wght@300;400;500&display=swap');

:root {
  --gold: #c9a84c;
  --gold-light: #d9c48f;
  --gold-dim: rgba(201, 168, 76, .5);
  --ink: #f0ebe0;
  --ink-dim: rgba(240, 235, 224, .66);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --font-en: 'Cinzel', serif;
  --font-zh: 'Noto Sans SC', -apple-system, 'Microsoft YaHei', sans-serif;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { background: #04060b; color: var(--ink); font-family: var(--font-zh); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }

.container {
  width: 100%; height: 100vh; overflow: hidden;
  display: flex; flex-direction: column;
}
.stage-wrap { position: relative; flex: 1 1 auto; min-height: 0; width: 100%; overflow: hidden; }

/* 背景主视觉 */
.bg-art {
  position: absolute; inset: 0; z-index: 0;
  background-image: url('assets/hero.jpg');
  background-size: cover; background-position: center 34%;
  filter: saturate(.92) brightness(.9);
  transform: scale(1.04);
  animation: slowZoom 30s var(--ease) infinite alternate;
}
.overlay {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 60% at 50% 44%, transparent 0%, rgba(4,6,12,.4) 76%, rgba(4,6,12,.82) 100%),
    linear-gradient(180deg, rgba(4,6,12,.6) 0%, rgba(4,6,12,.05) 24%, rgba(4,6,12,.08) 66%, rgba(4,6,12,.8) 100%);
}
.vignette {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  box-shadow: inset 0 0 220px rgba(0,0,0,.7);
  background: linear-gradient(90deg, rgba(4,6,12,.38) 0%, transparent 18%, transparent 82%, rgba(4,6,12,.38) 100%);
}

/* 金辉尘埃 */
.dust { position: absolute; inset: 0; z-index: 3; pointer-events: none; overflow: hidden; }
.dust i {
  position: absolute; bottom: -8px; border-radius: 50%;
  background: radial-gradient(circle, #ffe9b0 0%, rgba(201,168,76,.6) 45%, transparent 70%);
  opacity: 0; animation: rise linear infinite;
}

/* 中心暖金呼吸光晕 */
.aura {
  position: absolute; left: 50%; top: 44%; width: 760px; height: 540px; z-index: 1;
  transform: translate(-50%, -50%); pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(224,178,74,.18), transparent 62%);
  animation: auraBreath 6s ease-in-out infinite;
}
/* 斜向暖光扫过 */
.sweep {
  position: absolute; inset: -20%; z-index: 2; pointer-events: none;
  background: linear-gradient(115deg, transparent 42%, rgba(232,196,120,.10) 50%, transparent 58%);
  transform: translateX(-120%);
  animation: sweep 9s var(--ease) infinite;
}
/* 上升火星 */
.embers { position: absolute; inset: 0; z-index: 3; pointer-events: none; overflow: hidden; }
.embers i {
  position: absolute; bottom: -12px; border-radius: 50%;
  background: radial-gradient(circle, #ffe0a0 0%, #e89b3c 52%, transparent 74%);
  opacity: 0; animation: emberRise linear infinite;
}

/* 顶栏 */
.topbar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 48px;
  animation: fadeDown .9s var(--ease) .25s both;
}
.top-logo { display: block; }
.top-logo img { height: 62px; width: auto; display: block; }
.topbar-right { display: flex; align-items: center; gap: 34px; margin-left: auto; }
.topbar-right a {
  position: relative; color: var(--ink-dim); font-size: 14px; letter-spacing: 1px;
  transition: color .3s;
}
.topbar-right a::after {
  content: ''; position: absolute; left: 0; bottom: -7px; height: 1px; width: 0;
  background: linear-gradient(90deg, var(--gold), transparent); transition: width .35s var(--ease);
}
.topbar-right a:hover { color: var(--gold-light); }
.topbar-right a:hover::after { width: 100%; }
.arrow { color: var(--gold); margin-left: 4px; }

/* 主舞台 */
.stage {
  position: relative; z-index: 5; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 90px 32px 40px;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 20px;
  font-family: var(--font-zh); font-size: 15px; letter-spacing: 5px;
  color: #e6cf8f; margin-bottom: 34px;
  opacity: 0; animation: riseIn 1s var(--ease) .5s forwards;
}
.eyebrow::before, .eyebrow::after {
  content: ''; height: 1px; width: 130px;
  background: linear-gradient(90deg, transparent, var(--gold-dim));
}
.eyebrow::after { background: linear-gradient(90deg, var(--gold-dim), transparent); }

.logo-wrap {
  position: relative; display: flex; flex-direction: column; align-items: center;
  opacity: 0; animation: riseIn 1.2s var(--ease) .75s forwards;
}
.logo-glow {
  position: absolute; left: 50%; top: 42%; transform: translate(-50%,-50%);
  width: 520px; height: 240px; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(232,200,140,.2), transparent 66%);
  animation: breath 4.5s ease-in-out infinite;
}
.logo-img {
  display: block; width: clamp(280px, 32vw, 440px); height: auto;
  animation: logoFloat 6s ease-in-out infinite;
}
.slogan {
  margin-top: 26px; font-size: 14px; letter-spacing: 8px; color: var(--ink-dim);
  opacity: 0; animation: riseIn 1s var(--ease) 1s forwards;
}

/* 菱形分隔 */
.orn {
  margin: 22px auto 0; display: flex; align-items: center; gap: 18px; justify-content: center;
  opacity: 0; animation: riseIn 1s var(--ease) 1.15s forwards;
}
.orn::before, .orn::after {
  content: ''; height: 1px; width: 130px;
  background: linear-gradient(90deg, transparent, var(--gold-dim));
}
.orn::after { background: linear-gradient(90deg, var(--gold-dim), transparent); }
.orn .dia { width: 9px; height: 9px; transform: rotate(45deg); border: 1px solid var(--gold); }

/* 按钮 */
.actions {
  margin-top: 26px; display: flex; flex-direction: column; align-items: center; gap: 28px;
  opacity: 0; animation: riseIn 1s var(--ease) 1.35s forwards;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; user-select: none; border-radius: 3px;
  transition: transform .35s var(--ease), background .3s, border-color .3s, box-shadow .3s, color .3s;
}
.btn-download {
  min-width: 308px; height: 60px; padding: 0 58px;
  background: linear-gradient(180deg, #f8e7ab 0%, #ecc76e 36%, #cd9f41 72%, #9a7426 100%);
  color: #231704; font-size: 16px; font-weight: 700; letter-spacing: 5px;
  clip-path: polygon(18px 0, calc(100% - 18px) 0, 100% 50%, calc(100% - 18px) 100%, 18px 100%, 0 50%);
  filter: drop-shadow(0 14px 22px rgba(0,0,0,.55)) drop-shadow(0 0 22px rgba(224,178,74,.30));
  box-shadow: inset 0 1px 0 rgba(255,248,220,.65), inset 0 -3px 6px rgba(90,60,10,.45);
  position: relative; text-shadow: 0 1px 0 rgba(255,244,210,.3);
}
.btn-download::before, .btn-download::after {
  content: ''; position: absolute; top: 50%; width: 8px; height: 8px;
  transform: translateY(-50%) rotate(45deg);
  background: #7a5a1c; border: 1px solid rgba(60,40,8,.5);
}
.btn-download::before { left: 20px; }
.btn-download::after { right: 20px; }
.btn-download:hover {
  background: linear-gradient(180deg, #fceeb6 0%, #f2d27c 36%, #d9aa48 72%, #a67f2c 100%);
  filter: drop-shadow(0 16px 26px rgba(0,0,0,.6)) drop-shadow(0 0 30px rgba(224,178,74,.42));
  transform: translateY(-3px);
}
.btn-download:active { transform: translateY(0); }
.btn-row { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; }
.btn-gate {
  min-width: 190px; height: 50px; padding: 0 38px;
  background: linear-gradient(180deg, rgba(28,22,12,.72), rgba(14,11,7,.78));
  color: #ece4d2; font-size: 13px; font-weight: 500; letter-spacing: 2.5px;
  clip-path: polygon(14px 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 14px 100%, 0 50%);
  box-shadow: inset 0 0 0 1px rgba(201,168,76,.5), inset 0 1px 0 rgba(255,255,255,.06);
}
.btn-gate:hover {
  color: #f0d98f; transform: translateY(-3px);
  box-shadow: inset 0 0 0 1px rgba(224,178,74,.8), inset 0 1px 0 rgba(255,255,255,.08);
}

/* Toast */
.toast {
  position: fixed; bottom: 30px; left: 50%; z-index: 100;
  padding: 12px 26px; background: rgba(12,12,16,.92); border: 1px solid var(--gold-dim);
  color: var(--gold-light); font-size: 13px; letter-spacing: 1px;
  transform: translateX(-50%) translateY(80px); opacity: 0; transition: all .35s var(--ease);
  pointer-events: none;
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

/* 右侧常驻客服卡片 */
.side-support {
  position: fixed; right: 26px; top: 50%; transform: translateY(-50%); z-index: 20;
  width: 170px; padding: 18px 16px;
  background: linear-gradient(180deg, rgba(28,22,12,.82), rgba(14,11,7,.88));
  border: 1px solid var(--gold-dim); border-radius: 4px;
  box-shadow: 0 18px 40px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.06);
  backdrop-filter: blur(6px);
  display: flex; flex-direction: column; gap: 14px;
  animation: fadeDown .9s var(--ease) .4s both;
}
.ss-head { display: flex; align-items: center; gap: 10px; }
.ss-icon {
  width: 34px; height: 34px; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--gold-dim); color: var(--gold); font-size: 15px;
}
.ss-title { font-size: 14px; letter-spacing: 2px; color: var(--gold-light); }
.ss-status { display: flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 11px; color: var(--ink-dim); }
.ss-dot { width: 7px; height: 7px; border-radius: 50%; background: #6fb98f; box-shadow: 0 0 6px rgba(111,185,143,.6); }
.ss-btn {
  display: flex; align-items: center; justify-content: center; height: 40px;
  font-size: 13px; letter-spacing: 2px; color: #ece4d2;
  background: linear-gradient(180deg, rgba(201,168,76,.22), rgba(201,168,76,.10));
  border: 1px solid var(--gold-dim); border-radius: 3px;
  transition: background .3s, color .3s, border-color .3s, transform .3s var(--ease);
}
.ss-btn:hover { color: #231704; background: linear-gradient(180deg, #f8e7ab, #cd9f41); border-color: var(--gold); transform: translateY(-2px); }

/* 版本号条 */
.version-banner {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  padding: 6px 16px 2px;
  font-family: var(--font-zh); font-weight: 400; font-size: 12px; line-height: 1.9;
  letter-spacing: .12em; color: #c9a961; white-space: nowrap;
}
.vb-text { padding: 0 2px; }
.vb-line { flex: 0 0 64px; height: 1px; }
.vb-line-l { background: linear-gradient(90deg, transparent, #8a6d3b); }
.vb-line-r { background: linear-gradient(90deg, #8a6d3b, transparent); }

/* 页脚 */
.site-footer {
  display: flex; align-items: center; justify-content: center; gap: 24px;
  padding: 8px 12px 20px; line-height: 1.8;
}
.footer-link {
  font-size: 12.5px; letter-spacing: 1.5px; color: #7d776d;
  transition: color .3s;
}
.footer-link-gold { color: #b79b58; }
.footer-link:hover { color: var(--gold-light); }

/* 动画 */
@keyframes slowZoom { from { transform: scale(1.04); } to { transform: scale(1.12); } }
@keyframes rise {
  0% { transform: translateY(0) translateX(0); opacity: 0; }
  12% { opacity: .8; }
  88% { opacity: .5; }
  100% { transform: translateY(-105vh) translateX(36px); opacity: 0; }
}
@keyframes riseIn { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }
@keyframes logoFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes breath {
  0%,100% { opacity: .55; transform: translate(-50%,-50%) scale(.98); }
  50% { opacity: 1; transform: translate(-50%,-50%) scale(1.04); }
}
@keyframes auraBreath {
  0%,100% { opacity: .5; transform: translate(-50%,-50%) scale(.96); }
  50%     { opacity: .95; transform: translate(-50%,-50%) scale(1.06); }
}
@keyframes sweep {
  0%        { transform: translateX(-120%) skewX(-8deg); }
  55%,100%  { transform: translateX(120%) skewX(-8deg); }
}
@keyframes emberRise {
  0%   { transform: translate(0,0) scale(.6); opacity: 0; }
  12%  { opacity: .9; }
  60%  { opacity: .65; }
  100% { transform: translate(var(--dx,20px), -108vh) scale(.3); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; }
}
@media (max-width: 900px) {
  .topbar { padding: 18px 24px; }
  .top-logo img { height: 48px; }
  .topbar-right { gap: 18px; }
  .topbar-right a { font-size: 12px; }
  .eyebrow::before, .eyebrow::after, .orn::before, .orn::after { width: 60px; }
  .eyebrow { font-size: 11px; letter-spacing: 5px; }
}
@media (max-width: 600px) {
  .topbar-right a:first-child { display: none; }
  .stage { padding: 72px 20px 24px; }
  .actions { gap: 22px; margin-top: 20px; }
  .btn-download { min-width: 240px; height: 52px; padding: 0 32px; letter-spacing: 4px; }
  .btn-row { gap: 16px; }
  .btn-gate { min-width: 150px; height: 44px; padding: 0 22px; font-size: 12px; letter-spacing: 2px; }
  .eyebrow { gap: 10px; letter-spacing: 3px; }
  .eyebrow::before, .eyebrow::after { width: 30px; }
  .version-banner { gap: 8px; white-space: normal; letter-spacing: .12em; padding: 4px 16px 2px; text-align: center; font-size: 11px; }
  .vb-line { display: none; }
  .site-footer { padding: 6px 12px 16px; gap: 20px; }
  .side-support { top: auto; right: 8px; bottom: 70px; width: 58px; padding: 10px 6px; gap: 8px; align-items: center; text-align: center; }
  .ss-head { flex-direction: column; gap: 6px; }
  .ss-head-text { text-align: center; }
  .ss-status { display: none; }
  .ss-icon { width: 26px; height: 26px; font-size: 12px; }
  .ss-title { font-size: 10px; letter-spacing: 0; line-height: 1.3; }
  .ss-btn { width: 100%; height: 30px; font-size: 10px; letter-spacing: 0; padding: 0 2px; }
}
