/* =========================================================
   GoF 支付官网 — 原创样式（雪原蓝橙主题）
   素材为自家产品资产，本文件 CSS 全部自写，未复制任何第三方样式
   ========================================================= */

:root {
  --ink:   #f2f8ff;
  --muted: #b9cde0;
  --ice:   #6fd0ff;
  --ice-deep: #2b8fd6;
  --ember: #ff9a3c;        /* 橙 — 商城/CTA */
  --ember-deep: #ef7d1e;
  --gold:  #ffc23d;        /* BONUS 角标 */
  --bg-0:  #0a1422;
  --bg-1:  #102338;
  --line:  rgba(255,255,255,.16);
  --card:  rgba(12,26,44,.72);
  --shadow: 0 18px 48px rgba(0,0,0,.45);
  --header-h: 64px;
  --font: "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
body {
  font-family: var(--font); color: var(--ink); background: var(--bg-0);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }

/* ---------- 顶栏 ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 60; height: var(--header-h);
  display: flex; align-items: center;
  background: linear-gradient(180deg, rgba(8,16,28,.9), rgba(8,16,28,0));
  transition: background .3s, box-shadow .3s;
}
.site-header.scrolled { background: rgba(8,16,28,.94); box-shadow: 0 6px 24px rgba(0,0,0,.45); backdrop-filter: blur(8px); }
.header-inner { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 26px; display: flex; align-items: center; gap: 26px; }
.brand { display: flex; flex-direction: column; line-height: 1.05; }
.brand-zh { font-size: 20px; font-weight: 800; letter-spacing: .06em; text-shadow: 0 2px 10px rgba(0,0,0,.6); }
.brand-en { font-size: 16px; font-weight: 800; letter-spacing: .14em; color: var(--ink); }
.main-nav { display: flex; gap: 30px; margin-left: 10px; }
.main-nav a { position: relative; font-size: 15px; font-weight: 600; letter-spacing: .04em; color: #d6e6f5; padding: 8px 0; transition: color .2s; }
.main-nav a::after { content: ""; position: absolute; left: 0; bottom: 2px; height: 2px; width: 0; background: var(--ember); transition: width .25s; }
.main-nav a:hover, .main-nav a.active { color: #fff; }
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }
.header-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.lang-toggle { background: transparent; color: var(--ink); border: 1px solid var(--line); border-radius: 999px; padding: 6px 15px; font-size: 13px; letter-spacing: .08em; transition: border-color .2s, color .2s; }
.lang-toggle:hover { border-color: var(--ice); color: var(--ice); }

/* ---------- 右侧固定社交栏 ---------- */
.social-rail {
  position: fixed; right: 14px; top: 50%; transform: translateY(-50%); z-index: 55;
  display: flex; flex-direction: column; gap: 10px;
}
.social-rail a {
  width: 38px; height: 38px; display: flex; align-items: center; justify-content: center;
  color: #cfe2f4; background: rgba(10,20,34,.6); border: 1px solid var(--line); border-radius: 10px;
  transition: transform .15s, color .2s, background .2s, border-color .2s;
}
.social-rail a:hover { color: #fff; background: var(--ember); border-color: var(--ember); transform: translateX(-3px); }

/* ---------- 左下固定充值浮标 ---------- */
.store-float {
  position: fixed; left: 18px; bottom: 22px; z-index: 55;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  width: 96px; height: 96px; padding: 10px 6px;
  border: none; border-radius: 18px; color: #3a1c02;
  background: radial-gradient(circle at 50% 35%, #ffd27a, var(--ember) 70%);
  box-shadow: 0 10px 26px rgba(239,125,30,.5);
  animation: floatBob 2.6s ease-in-out infinite;
}
.store-float:hover { filter: brightness(1.06); }
.store-float-ico { font-size: 30px; line-height: 1; }
.store-float-txt { font-size: 13px; font-weight: 800; letter-spacing: .02em; }
.store-float-bonus, .btn-store-bonus {
  position: absolute; top: -8px; right: -8px;
  background: #e23b3b; color: #fff; font-size: 11px; font-weight: 800;
  padding: 2px 8px; border-radius: 999px; box-shadow: 0 3px 10px rgba(0,0,0,.4);
}
@keyframes floatBob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* ---------- 通用 section ---------- */
.section {
  position: relative; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  padding: var(--header-h) 26px 26px;
  background-position: center; background-size: cover; background-repeat: no-repeat;
}
.overlay { position: absolute; inset: 0; z-index: 0; background: linear-gradient(180deg, rgba(8,16,28,.45), rgba(8,16,28,.7)); }
.section > *:not(.overlay) { position: relative; z-index: 1; }
.section-title {
  font-size: clamp(28px, 4vw, 50px); margin: 0 0 26px; letter-spacing: .04em;
  text-shadow: 0 4px 18px rgba(0,0,0,.6);
}
.section-title::before {
  content: ""; display: inline-block; width: 26px; height: 26px; margin-right: 12px; vertical-align: -4px;
  background: url("../assets/img/wj/icon_home_title_prev.png") center/contain no-repeat;
}

/* ---------- 1. Home / Banner ---------- */
.sec-home { background-image: url("../assets/img/wj/bg_p1.jpg"); }
.sec-home .overlay { background: linear-gradient(180deg, rgba(8,16,28,.5) 0%, rgba(8,16,28,.25) 45%, rgba(8,16,28,.85) 100%); }
.home-inner { max-width: 880px; }
.hero-slogan { font-size: clamp(28px, 4.6vw, 58px); margin: 0 0 16px; line-height: 1.18; text-shadow: 0 4px 22px rgba(0,0,0,.75); }
.hero-subtitle { font-size: clamp(15px, 1.6vw, 20px); color: #dceaf7; max-width: 660px; margin: 0 auto 30px; line-height: 1.7; }
.cta-row { margin: 0 0 24px; }
.btn-store {
  position: relative; border: none; border-radius: 12px;
  padding: 15px 40px; font-size: 18px; font-weight: 800; letter-spacing: .03em; color: #3a1c02;
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, #ffd27a, var(--ember));
  box-shadow: 0 12px 32px rgba(239,125,30,.5);
  transition: transform .15s, box-shadow .2s, filter .2s;
}
.btn-store:hover { transform: translateY(-2px); box-shadow: 0 16px 42px rgba(239,125,30,.65); filter: brightness(1.04); }
.btn-store:active { transform: translateY(0); }
.store-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; align-items: center; }
.btn-download {
  display: inline-flex; align-items: center; gap: 16px;
  min-height: 56px; padding: 0 32px 0 22px;
  background: linear-gradient(180deg, #383838 0%, #131313 55%, #000 100%);
  border: 1px solid rgba(255,255,255,.12); border-radius: 14px;
  color: #fff; text-decoration: none;
  box-shadow: 0 12px 30px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.14);
  transition: transform .15s, box-shadow .2s, filter .2s;
}
.btn-download:hover { transform: translateY(-2px); filter: brightness(1.12); box-shadow: 0 16px 40px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.14); }
.btn-download:active { transform: translateY(0); }
.btn-download .dl-icon { width: 25px; height: 25px; flex: 0 0 auto; color: #fff; opacity: .92; }
.btn-download .dl-text { font-size: 20px; font-weight: 800; letter-spacing: .02em; line-height: 1; margin-top: -2px; }
.scroll-hint { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.5); border-radius: 14px; z-index: 1; }
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; background: #fff; border-radius: 2px; animation: scrollDot 1.6s infinite; }
@keyframes scrollDot { 0%{opacity:0;transform:translateY(0)} 40%{opacity:1} 80%{opacity:0;transform:translateY(14px)} 100%{opacity:0} }

/* ---------- 2. 英雄一览 ---------- */
.sec-hero { background-image: url("../assets/img/wj/bg_p4_orange.jpg"); }
.sec-hero .overlay { background: linear-gradient(90deg, rgba(20,12,4,.55), rgba(20,12,4,.25)); }
.hero-stage { display: flex; align-items: center; justify-content: center; gap: 48px; max-width: 1100px; width: 100%; flex-wrap: wrap; }
.hero-portrait img { max-height: 56vh; width: auto; filter: drop-shadow(0 16px 32px rgba(0,0,0,.55)); }
.hero-side { text-align: left; max-width: 360px; }
.hero-name { font-size: clamp(26px, 3.2vw, 44px); font-weight: 800; color: var(--gold); text-shadow: 0 3px 14px rgba(0,0,0,.6); margin: 0 0 14px; }
.hero-desc { font-size: clamp(15px, 1.5vw, 18px); line-height: 1.8; color: #f1e6d6; margin: 0 0 22px; }
.hero-skills-label { font-size: 14px; letter-spacing: .12em; color: #ffe0b8; margin: 0 0 10px; }
.hero-skills { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-skills img { width: 52px; height: 52px; border-radius: 12px; background: rgba(0,0,0,.25); border: 1px solid rgba(255,255,255,.2); padding: 4px; transition: transform .15s; }
.hero-skills img:hover { transform: translateY(-3px); }

/* ---------- 3. 游戏特色 ---------- */
.sec-features { background-image: url("../assets/img/wj/bg_p3.jpg"); }
.sec-features .overlay { background: linear-gradient(180deg, rgba(10,24,40,.4), rgba(10,24,40,.72)); }
.feat-swiper { width: 100%; max-width: 1280px; padding-bottom: 46px; }
.feat-swiper .swiper-slide {
  width: 62%; max-width: 860px; border-radius: 14px; overflow: hidden;
  box-shadow: var(--shadow); border: 2px solid rgba(174,214,247,.35);
  transition: transform .35s, opacity .35s; opacity: .55; background: var(--bg-1);
}
.feat-swiper .swiper-slide-active { opacity: 1; }
.feat-swiper .swiper-slide img { width: 100%; height: auto; display: block; }
.slide-cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 22px 18px;
  text-align: left; font-size: clamp(15px,1.6vw,20px); font-weight: 600; color: var(--ink);
  background: linear-gradient(0deg, rgba(8,16,28,.92), transparent);
}
.swiper-pagination-bullet { background: #fff; opacity: .4; }
.swiper-pagination-bullet-active { background: var(--ember); opacity: 1; }

/* ---------- 4. 充值 ---------- */
.sec-recharge { background-image: url("../assets/img/wj/bg_p5.jpg"); }
.sec-recharge .overlay { background: linear-gradient(180deg, rgba(8,16,28,.72), rgba(8,16,28,.86)); }
.recharge-wrap { max-width: 760px; width: 100%; }
.recharge-desc { color: var(--muted); font-size: clamp(14px,1.5vw,18px); margin: 0 0 26px; line-height: 1.7; }
.recharge-card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 32px 28px; box-shadow: var(--shadow); backdrop-filter: blur(6px); }
.lord-label { display: block; text-align: left; font-size: 14px; color: var(--muted); margin: 0 0 8px; }
.lord-input { width: 100%; padding: 14px 16px; font-size: 16px; background: rgba(0,0,0,.35); color: var(--ink); border: 1px solid var(--line); border-radius: 10px; outline: none; transition: border-color .2s, box-shadow .2s; }
.lord-input:focus { border-color: var(--ice); box-shadow: 0 0 0 3px rgba(95,203,255,.18); }
.tiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 22px 0; }
.tier { position: relative; display: flex; flex-direction: column; gap: 6px; align-items: center; padding: 18px 10px; border-radius: 12px; background: rgba(255,255,255,.05); border: 1px solid var(--line); color: var(--ink); transition: transform .15s, border-color .2s, background .2s; }
.tier:hover { transform: translateY(-3px); border-color: var(--ice); background: rgba(95,203,255,.1); }
.tier.hot { border-color: var(--ember); background: rgba(255,154,60,.12); }
.tier-amt { font-size: 20px; font-weight: 700; }
.tier-bonus { font-size: 12px; color: var(--muted); }
.tier-badge { position: absolute; top: -10px; right: -6px; background: linear-gradient(135deg, #ffd27a, var(--ember)); color: #3a1c02; font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 999px; }
#goPay { margin-top: 4px; }
.benefits { list-style: none; padding: 0; margin: 26px 0 0; display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; color: var(--muted); font-size: 14px; }
.benefits li::before { content: "❄ "; color: var(--ice); }

/* ---------- 5. 页脚 ---------- */
.sec-footer { background: var(--bg-0); }
.footer-inner { width: 100%; max-width: 760px; margin: 0 auto; padding: 56px 24px 40px; }
.footer-brand { display: flex; flex-direction: column; line-height: 1.1; align-items: center; margin: 0 0 16px; }
.footer-brand .brand-zh { font-size: 22px; }
.footer-desc { color: var(--muted); line-height: 1.8; margin: 0 0 22px; }
.footer-links { color: var(--muted); font-size: 14px; margin: 0 0 14px; }
.footer-links a:hover { color: var(--ice); }
.footer-links .sep { margin: 0 12px; opacity: .5; }
.copyright { color: var(--muted); font-size: 13px; margin: 0; opacity: .8; }

/* ---------- 弹窗 ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; }
.modal[hidden] { display: none; }
.modal-mask { position: absolute; inset: 0; background: rgba(3,7,12,.72); backdrop-filter: blur(4px); }
.modal-box { position: relative; width: min(420px, 90vw); background: var(--bg-1); border: 1px solid var(--line); border-radius: 16px; padding: 32px 28px; text-align: center; box-shadow: var(--shadow); animation: modalIn .25s ease; }
@keyframes modalIn { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-box h3 { margin: 0 0 12px; font-size: 22px; }
.modal-tip { color: var(--muted); line-height: 1.7; margin: 0 0 16px; font-size: 14px; }
.modal-lord { font-size: 15px; margin: 0 0 22px; }
.modal-lord b { color: var(--ice); }
.modal-close { position: absolute; top: 12px; right: 14px; background: none; border: none; color: var(--muted); font-size: 26px; line-height: 1; transition: color .2s; }
.modal-close:hover { color: var(--ink); }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .hero-stage { gap: 24px; }
  .hero-portrait img { max-height: 42vh; }
  .hero-side { text-align: center; max-width: 90%; }
  .hero-skills { justify-content: center; }
  .feat-swiper .swiper-slide { width: 82%; }
}
@media (max-width: 640px) {
  .header-inner { gap: 12px; padding: 0 14px; }
  .main-nav { display: none; }
  .social-rail { right: 8px; gap: 7px; }
  .social-rail a { width: 32px; height: 32px; }
  .store-float { width: 78px; height: 78px; left: 10px; bottom: 14px; }
  .store-float-ico { font-size: 24px; }
  .store-float-txt { font-size: 11px; }
  .tiers { grid-template-columns: repeat(2, 1fr); }
  .btn-download { min-height: 50px; padding: 0 26px 0 18px; gap: 13px; }
  .btn-download .dl-icon { width: 22px; height: 22px; }
  .btn-download .dl-text { font-size: 18px; }
  .benefits { gap: 14px; }
  .recharge-card { padding: 24px 18px; }
}
