/* ===== 变量 ===== */
:root {
  --gold: #c9a962;
  --gold-light: #e8d5a3;
  --gold-dim: rgba(201, 169, 98, 0.45);
  --bg-dark: #0a0c12;
  --text: #f0ece2;
  --text-dim: rgba(240, 236, 226, 0.55);
  --glass: rgba(10, 12, 18, 0.55);
  --border: rgba(201, 169, 98, 0.35);
  --font-display: "Cinzel", "Noto Sans SC", serif;
  --font-body: "Noto Sans SC", -apple-system, sans-serif;
}

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

html, body {
  width: 100%;
  height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg-dark);
  overflow-x: hidden;
}

/* ===== 背景：等比 cover 铺满，不变形 ===== */
.bg-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #0a0c12;
}

.bg-img {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  object-position: center center;
}

.bg-vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5) 0%, transparent 40%);
  pointer-events: none;
}

/* ===== 粒子 ===== */
.particles {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

/* ===== 左上角 Logo ===== */
.site-logo {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 10;
  display: block;
  line-height: 0;
}

.site-logo img {
  display: block;
  height: clamp(96px, 16vw, 144px);
  width: auto;
}

/* ===== 主布局：中间偏下 ===== */
.container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 80px 24px 12vh;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transform: translateY(6vh);
}

/* ===== 标题（放大） ===== */
.hero-title {
  margin-bottom: 18px;
}

.hero-title-cn {
  font-size: clamp(3rem, 8vw, 4.8rem);
  font-weight: 700;
  letter-spacing: 0.22em;
  color: #e9c4a6;
}

.hero-slogan {
  font-size: clamp(1.05rem, 3vw, 1.45rem);
  font-weight: 500;
  letter-spacing: 0.28em;
  color: #e9c4a6;
  margin-bottom: 28px;
}

.hero-line {
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #e9c4a6, transparent);
  margin-bottom: 28px;
}

/* ===== 按钮组（放大） ===== */
.btn-group {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  width: min(100%, 680px);
  margin-top: 8px;
}

/* ===== 入场动画 ===== */
.anim-in {
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: var(--d, 0s);
}

.btn-row {
  display: flex;
  gap: 10px;
}

.btn-row .btn {
  flex: 1;
}

.btn {
  position: relative;
  display: block;
  width: 100%;
  padding: 1px;
  border: none;
  border-radius: 4px;
  background: linear-gradient(135deg, rgba(201, 169, 98, 0.4), rgba(255, 255, 255, 0.08), rgba(201, 169, 98, 0.4));
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  flex-shrink: 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(201, 169, 98, 0.15) 50%, transparent 60%);
  background-size: 200% 200%;
  animation: shimmer 4s linear infinite;
  pointer-events: none;
}

.btn-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 24px;
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 3px;
  color: var(--text);
  font-size: 1.02rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  white-space: nowrap;
  transition: background 0.3s ease, color 0.3s ease;
}

.btn-icon {
  width: 22px;
  height: 22px;
  opacity: 0.7;
  flex-shrink: 0;
  transition: opacity 0.3s ease;
}

.btn-arrow {
  font-size: 1.05rem;
  opacity: 0.5;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(201, 169, 98, 0.25);
}

.btn:hover .btn-inner {
  background: rgba(201, 169, 98, 0.12);
  color: var(--gold-light);
}

.btn:hover .btn-icon {
  opacity: 1;
}

.btn:hover .btn-arrow {
  opacity: 1;
  transform: translateX(4px);
}

/* 微信主按钮：呼吸光效用伪元素，避免覆盖入场动画 */
.btn-primary {
  background: linear-gradient(135deg, var(--gold), rgba(180, 40, 40, 0.6), var(--gold));
}

.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 4px;
  animation: borderPulse 3s ease-in-out infinite;
  pointer-events: none;
}

.btn-primary .btn-inner {
  background: rgba(10, 12, 18, 0.7);
}

.btn-primary:hover {
  box-shadow: 0 8px 40px rgba(201, 169, 98, 0.4), 0 0 60px rgba(180, 40, 40, 0.15);
}

/* 桌面端三按钮横排 */
@media (min-width: 641px) {
  .btn-group {
    flex-direction: row;
    flex-wrap: nowrap;
    width: min(100%, 900px);
  }

  .btn-row {
    display: contents;
  }

  .btn-wechat,
  .btn-row .btn {
    flex: 1 1 0;
    min-width: 0;
    width: auto;
  }
}

/* ===== 弹窗 ===== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal[hidden] {
  display: none;
}

.modal-mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(6px);
}

.modal-panel {
  position: relative;
  width: 100%;
  max-width: 320px;
  padding: 32px 24px 24px;
  background: rgba(12, 14, 20, 0.96);
  border: 1px solid var(--gold-dim);
  text-align: center;
  animation: modalIn 0.35s ease;
}

.modal-close {
  position: absolute;
  top: 8px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  font-size: 1.4rem;
  color: var(--text-dim);
  cursor: pointer;
}

.modal-close:hover {
  color: var(--gold);
}

.modal-title {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--gold-light);
  margin-bottom: 16px;
}

.modal-qrcode-wrap {
  padding: 10px;
  background: #fff;
  display: inline-block;
}

.modal-qrcode {
  display: block;
  width: 200px;
  height: 200px;
  object-fit: contain;
}

.modal-tip {
  margin-top: 14px;
  font-size: 0.82rem;
  color: var(--text-dim);
}


/* ===== 关键帧 ===== */
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@keyframes borderPulse {
  0%, 100% { box-shadow: inset 0 0 20px rgba(201, 169, 98, 0.1); }
  50%      { box-shadow: inset 0 0 30px rgba(201, 169, 98, 0.25); }
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}

/* ===== 移动端 ===== */
@media (max-width: 640px) {
  .site-logo {
    top: 14px;
    left: 14px;
  }

  .site-logo img {
    height: 88px;
  }

  .container {
    padding: 70px 16px 10vh;
  }

  .hero {
    transform: translateY(4vh);
  }

  .hero-title-cn {
    letter-spacing: 0.12em;
    font-size: clamp(2.4rem, 10vw, 3.2rem);
  }

  .hero-slogan {
    font-size: 0.88rem;
    letter-spacing: 0.15em;
    margin-bottom: 20px;
  }

  .hero-line {
    margin-bottom: 22px;
  }

  .btn-group {
    width: 100%;
    max-width: 380px;
  }

  .btn-wechat .btn-inner {
    padding: 16px 18px;
    font-size: 0.95rem;
    font-weight: 500;
  }

  .btn-row .btn-inner {
    padding: 15px 12px;
    font-size: 0.88rem;
  }

  .btn-icon {
    width: 20px;
    height: 20px;
  }

  .btn-arrow {
    display: none;
  }
}
