/* ============================================================
   完美世界 173 · 官网样式
   暗色仙侠风：墨蓝底 + 鎏金 + 黛青
   ============================================================ */

:root {
  --bg: #0a0e18;
  --bg-2: #0d1322;
  --panel: #121a2b;
  --panel-2: #16203300;
  --line: #26314a;
  --line-soft: #1b2438;
  --gold: #d4af6e;
  --gold-bright: #f0d9a8;
  --gold-dim: #8a6d3f;
  --jade: #6db3c8;
  --jade-dim: #3d7a8c;
  --red: #c25850;
  --text: #e8e4d8;
  --text-2: #a8b0c0;
  --text-3: #6b7488;
  --serif: "Noto Serif SC", "Source Han Serif SC", "STSong", "SimSun", serif;
  --sans: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  --shadow: 0 8px 32px rgb(0 0 0 / .45);
  --gold-glow: 0 0 18px rgb(212 175 110 / .25);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 76px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.75;
  overflow-x: hidden;
}

::selection { background: rgb(212 175 110 / .35); color: #fff; }

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

/* 滚动条 */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: #2c3a58; border-radius: 5px; border: 2px solid var(--bg-2); }
::-webkit-scrollbar-thumb:hover { background: var(--gold-dim); }

/* ============ 通用 ============ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 30px; border-radius: 4px;
  font-size: 15px; font-weight: 600; letter-spacing: 2px;
  transition: all .25s ease; cursor: pointer; border: 1px solid transparent;
  font-family: var(--serif);
}
.btn-icon { width: 18px; height: 18px; }
.btn-gold {
  background: linear-gradient(135deg, #c9a269, #e8cf9a 45%, #c9a269);
  color: #1a1408; border-color: #a8874e;
  box-shadow: 0 4px 18px rgb(201 162 105 / .35), inset 0 1px 0 rgb(255 255 255 / .35);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 8px 26px rgb(201 162 105 / .5), inset 0 1px 0 rgb(255 255 255 / .45); }
.btn-ghost {
  background: rgb(212 175 110 / .06); color: var(--gold);
  border-color: rgb(212 175 110 / .45);
}
.btn-ghost:hover { background: rgb(212 175 110 / .14); border-color: var(--gold); transform: translateY(-2px); }
.btn-sm { padding: 8px 20px; font-size: 13px; letter-spacing: 1px; }

.badge {
  display: inline-block; padding: 3px 12px; border-radius: 999px;
  font-size: 12px; letter-spacing: 2px; color: var(--text-2);
  border: 1px solid var(--line); background: rgb(18 26 43 / .6);
  backdrop-filter: blur(4px);
}
.badge-gold {
  color: #1a1408; font-weight: 700;
  background: linear-gradient(135deg, #c9a269, #e8cf9a);
  border-color: #a8874e;
}

/* ============ 导航 ============ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .3s ease, box-shadow .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgb(10 14 24 / .88);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--line-soft);
  box-shadow: 0 4px 24px rgb(0 0 0 / .35);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; height: 68px;
  display: flex; align-items: center; gap: 28px; padding: 0 24px;
}
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-mark { width: 34px; height: 34px; }
.brand-name { font-family: var(--serif); font-size: 19px; font-weight: 700; letter-spacing: 3px; color: var(--text); }
.brand-ver {
  font-size: 11px; color: var(--gold); border: 1px solid rgb(212 175 110 / .4);
  padding: 1px 7px; border-radius: 3px; letter-spacing: 1px; transform: translateY(-1px);
}
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a {
  position: relative; padding: 8px 13px; font-size: 14px; color: var(--text-2);
  letter-spacing: 1px; transition: color .2s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 50%; bottom: 2px; width: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transition: all .25s ease; transform: translateX(-50%);
}
.nav-links a:hover, .nav-links a.active { color: var(--gold-bright); }
.nav-links a:hover::after, .nav-links a.active::after { width: 70%; }
.nav-cta {
  flex-shrink: 0; padding: 8px 22px; font-size: 13px; font-weight: 600;
  color: #1a1408; letter-spacing: 2px; border-radius: 3px;
  background: linear-gradient(135deg, #c9a269, #e8cf9a 50%, #c9a269);
  box-shadow: 0 2px 12px rgb(201 162 105 / .35);
  transition: all .25s;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgb(201 162 105 / .55); }
.nav-burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; margin-left: auto; }
.nav-burger span { width: 22px; height: 2px; background: var(--gold); transition: all .3s; }

/* ============ Hero ============ */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; overflow: hidden;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgb(50 70 120 / .35), transparent),
    radial-gradient(ellipse 60% 40% at 50% 110%, rgb(109 179 200 / .08), transparent),
    linear-gradient(180deg, #0b1120 0%, #0a0e18 60%, #0a0e18 100%);
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-moon {
  position: absolute; top: 12%; left: 50%; width: 130px; height: 130px;
  transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(circle at 40% 38%, #fdf6e3, #e8d9b0 55%, #c9b480);
  box-shadow: 0 0 80px 24px rgb(240 217 168 / .16), 0 0 200px 60px rgb(212 175 110 / .07);
  opacity: .9;
}
.hero-mountains { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 42vh; min-height: 260px; }
.hero-mist {
  position: absolute; left: 0; right: 0; bottom: 0; height: 45%;
  background: linear-gradient(180deg, transparent, rgb(10 14 24 / .55) 60%, var(--bg));
}
.hero-particles { position: absolute; inset: 0; }
.particle {
  position: absolute; width: 3px; height: 3px; border-radius: 50%;
  background: var(--gold-bright); opacity: 0;
  animation: floatUp linear infinite;
  box-shadow: 0 0 6px rgb(240 217 168 / .8);
}
@keyframes floatUp {
  0% { transform: translateY(0) scale(.6); opacity: 0; }
  12% { opacity: .9; }
  85% { opacity: .5; }
  100% { transform: translateY(-58vh) scale(1.1); opacity: 0; }
}

.hero-content { position: relative; z-index: 2; padding: 120px 24px 80px; max-width: 900px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 26px; }
.hero-title {
  font-family: var(--serif); font-weight: 900;
  font-size: clamp(44px, 8vw, 84px); letter-spacing: .12em; line-height: 1.15;
  background: linear-gradient(180deg, #fdf3dd 20%, #e8cf9a 55%, #b08d4a 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 4px 40px rgb(212 175 110 / .25);
  margin-left: .12em; /* 视觉居中补偿 letter-spacing */
}
.hero-slogan {
  font-family: var(--serif); font-size: clamp(16px, 2.6vw, 22px);
  letter-spacing: .5em; margin-left: .5em; color: var(--gold);
  margin-top: 14px; margin-bottom: 18px;
}
.hero-sub { color: var(--text-2); font-size: 15px; max-width: 620px; margin: 0 auto 38px; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 54px; }

/* Hero 实时状态条 */
.hero-status {
  display: inline-grid; grid-template-columns: repeat(4, auto); gap: 0;
  border: 1px solid rgb(212 175 110 / .25); border-radius: 6px;
  background: rgb(13 19 34 / .72); backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.hs-item {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 30px; min-width: 150px;
}
.hs-item + .hs-item { border-left: 1px solid rgb(212 175 110 / .15); }
.hs-num {
  font-family: "DIN Alternate", var(--serif); font-size: 26px; font-weight: 700;
  color: var(--gold-bright); line-height: 1.2; font-variant-numeric: tabular-nums;
}
.hs-label { font-size: 12px; color: var(--text-3); letter-spacing: 2px; }
.hs-dot { width: 9px; height: 9px; border-radius: 50%; background: #4c5a75; flex-shrink: 0; transition: all .3s; }
.hs-dot.on { background: #4ade80; box-shadow: 0 0 10px rgb(74 222 128 / .8); animation: pulse 2s infinite; }
.hs-dot.off { background: var(--red); box-shadow: 0 0 10px rgb(194 88 80 / .6); }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .45; } }

.hero-scroll {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  width: 24px; height: 40px; border: 1.5px solid rgb(212 175 110 / .5); border-radius: 12px;
  display: flex; justify-content: center; padding-top: 8px; z-index: 2;
}
.hero-scroll span { width: 3px; height: 8px; border-radius: 2px; background: var(--gold); animation: scrollHint 1.8s infinite; }
@keyframes scrollHint { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

/* ============ 区块通用 ============ */
.section { position: relative; padding: 96px 24px; max-width: 1200px; margin: 0 auto; }
.section-alt { max-width: none; background: var(--bg-2); }
.section-alt > * { max-width: 1200px; margin-left: auto; margin-right: auto; }
.section-head { text-align: center; margin-bottom: 56px; }
.section-kicker {
  font-size: 12px; letter-spacing: 5px; color: var(--gold-dim);
  text-transform: uppercase; font-weight: 600;
}
.section-title {
  font-family: var(--serif); font-size: clamp(28px, 4.5vw, 40px); font-weight: 700;
  letter-spacing: .18em; margin: 10px 0 14px; color: var(--text);
}
.section-desc { color: var(--text-2); font-size: 14.5px; max-width: 640px; margin: 0 auto; }
.section-ornament { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 18px; }
.section-ornament i { width: 90px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-dim)); }
.section-ornament i:last-child { background: linear-gradient(90deg, var(--gold-dim), transparent); }
.section-ornament b { color: var(--gold); font-size: 12px; }

/* 入场动画 */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ============ 本服特色高亮条 ============ */
.highlight-wrap { margin-bottom: 40px; }
.highlight-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.highlight-kicker {
  flex-shrink: 0; font-size: 12px; letter-spacing: 3px; color: var(--gold);
  font-weight: 600; padding-left: 12px; border-left: 3px solid var(--gold);
}
.highlight-line { flex: 1; height: 1px; background: linear-gradient(90deg, rgb(212 175 110 / .45), transparent); }
.highlight-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.highlight-card {
  position: relative; display: flex; gap: 14px; align-items: flex-start;
  padding: 20px 18px; border-radius: 8px; overflow: hidden;
  background: linear-gradient(160deg, #1a2338, #101827);
  border: 1px solid rgb(212 175 110 / .28);
  transition: all .3s ease;
}
.highlight-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: .7;
}
.highlight-card:hover { transform: translateY(-4px); border-color: rgb(212 175 110 / .55); box-shadow: var(--shadow), var(--gold-glow); }
.highlight-icon {
  flex-shrink: 0; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 9px;
  background: linear-gradient(135deg, rgb(212 175 110 / .18), rgb(212 175 110 / .05));
  border: 1px solid rgb(212 175 110 / .35);
}
.highlight-icon svg { width: 22px; height: 22px; color: var(--gold); }
.highlight-body h3 { font-family: var(--serif); font-size: 15.5px; letter-spacing: 1.5px; margin-bottom: 7px; color: var(--text); }
.highlight-body p { font-size: 12.5px; line-height: 1.7; color: var(--text-2); }

/* ============ 游戏特色 ============ */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature-card {
  position: relative; padding: 34px 28px 30px; border-radius: 8px;
  background: linear-gradient(160deg, var(--panel), #0e1524);
  border: 1px solid var(--line-soft);
  transition: all .35s ease; overflow: hidden;
}
.feature-card::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% -20%, rgb(212 175 110 / .14), transparent 60%);
  opacity: 0; transition: opacity .35s;
}
.feature-card:hover { transform: translateY(-6px); border-color: rgb(212 175 110 / .45); box-shadow: var(--shadow), var(--gold-glow); }
.feature-card:hover::before { opacity: 1; }
.feature-icon {
  position: relative; width: 52px; height: 52px; margin-bottom: 18px;
  display: grid; place-items: center; border-radius: 10px;
  background: linear-gradient(135deg, rgb(212 175 110 / .16), rgb(212 175 110 / .04));
  border: 1px solid rgb(212 175 110 / .3);
}
.feature-icon svg { width: 26px; height: 26px; color: var(--gold); }
.feature-card h3 { position: relative; font-family: var(--serif); font-size: 19px; letter-spacing: 2px; margin-bottom: 10px; color: var(--text); }
.feature-card p { position: relative; font-size: 13.5px; color: var(--text-2); }

/* ============ 职业 ============ */
.class-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-bottom: 60px; }
.class-card {
  position: relative; padding: 26px 24px; border-radius: 8px;
  background: linear-gradient(165deg, #141d31, #0e1524);
  border: 1px solid var(--line-soft); transition: all .3s ease; cursor: default;
}
.class-card:hover { border-color: rgb(109 179 200 / .5); transform: translateY(-4px); box-shadow: var(--shadow); }
.class-head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.class-emblem {
  width: 46px; height: 46px; flex-shrink: 0; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--serif); font-weight: 700; font-size: 20px;
  color: #10131c; background: linear-gradient(135deg, #e8cf9a, #c9a269);
  box-shadow: 0 0 0 1px rgb(212 175 110 / .4), 0 0 16px rgb(212 175 110 / .25);
}
.class-name { font-family: var(--serif); font-size: 20px; font-weight: 700; letter-spacing: 4px; }
.class-race { font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: 0; color: var(--gold); background: rgba(212,175,55,.14); border: 1px solid rgba(212,175,55,.35); border-radius: 999px; padding: 1px 8px; margin-left: 8px; vertical-align: middle; }
.class-role { font-size: 12px; color: var(--jade); letter-spacing: 1px; }
.class-desc { font-size: 13px; color: var(--text-2); margin-bottom: 14px; }
.class-stats { display: flex; flex-wrap: wrap; gap: 6px; }
.class-stat {
  font-size: 11.5px; color: var(--text-2); padding: 2px 9px; border-radius: 3px;
  background: rgb(38 49 74 / .5); border: 1px solid var(--line-soft);
  font-variant-numeric: tabular-nums;
}
.class-stat b { color: var(--gold); font-weight: 600; margin-left: 2px; }

/* 属性对比表 */
.stat-table-wrap {
  border: 1px solid var(--line-soft); border-radius: 8px; overflow: hidden;
  background: linear-gradient(160deg, var(--panel), #0e1524);
}
.stat-table-title {
  font-family: var(--serif); font-size: 16px; letter-spacing: 2px; color: var(--gold);
  padding: 18px 24px; border-bottom: 1px solid var(--line-soft);
  display: flex; align-items: center; gap: 10px;
}
.stat-table-title::before { content: "◆"; font-size: 11px; }
.stat-table-scroll { overflow-x: auto; }
.stat-table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 720px; }
.stat-table th {
  padding: 12px 14px; text-align: center; font-size: 12.5px; letter-spacing: 1px;
  color: var(--gold); background: rgb(38 49 74 / .4); border-bottom: 1px solid var(--line-soft);
  white-space: nowrap;
}
.stat-table td { padding: 11px 14px; text-align: center; border-bottom: 1px solid var(--line-soft); color: var(--text-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.stat-table tbody tr:last-child td { border-bottom: 0; }
.stat-table tbody tr:hover td { background: rgb(212 175 110 / .05); color: var(--text); }
.stat-table td:first-child { font-family: var(--serif); font-weight: 700; color: var(--gold-bright); letter-spacing: 2px; }
.stat-table td:last-child { font-size: 12px; color: var(--jade); }

/* ============ BOSS 监控 ============ */
.boss-panel {
  border: 1px solid rgb(212 175 110 / .22); border-radius: 10px; overflow: hidden;
  background: linear-gradient(165deg, #131c30, #0c1322);
  box-shadow: var(--shadow);
}
.boss-panel-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 22px; border-bottom: 1px solid var(--line-soft);
  background: rgb(38 49 74 / .25); flex-wrap: wrap;
}
.boss-live-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; letter-spacing: 2px; color: var(--gold); font-weight: 600;
}
.boss-pulse { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 8px rgb(74 222 128 / .9); animation: pulse 1.6s infinite; }
.boss-updated { font-size: 12px; color: var(--text-3); }
.boss-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 14px; padding: 20px; }
.boss-card {
  position: relative; padding: 16px 16px 14px; border-radius: 7px;
  background: rgb(18 26 43 / .8); border: 1px solid var(--line-soft);
  transition: all .3s;
}
.boss-card.alive { border-color: rgb(74 222 128 / .45); background: linear-gradient(160deg, rgb(20 40 30 / .55), rgb(18 26 43 / .8)); }
.boss-card.alive::after {
  content: "已刷新"; position: absolute; top: 12px; right: 12px;
  font-size: 10.5px; letter-spacing: 1px; color: #4ade80;
  border: 1px solid rgb(74 222 128 / .5); border-radius: 3px; padding: 1px 7px;
}
.boss-card.dead { opacity: .72; }
.boss-card.dead::after {
  content: "未刷新"; position: absolute; top: 12px; right: 12px;
  font-size: 10.5px; letter-spacing: 1px; color: var(--text-3);
  border: 1px solid var(--line); border-radius: 3px; padding: 1px 7px;
}
.boss-name { font-family: var(--serif); font-size: 16px; font-weight: 700; letter-spacing: 1px; color: var(--gold-bright); margin-bottom: 6px; padding-right: 64px; }
.boss-meta { font-size: 12px; color: var(--text-3); line-height: 1.7; }
.boss-meta b { color: var(--text-2); font-weight: 400; }
.boss-empty { grid-column: 1 / -1; text-align: center; color: var(--text-3); padding: 34px 0; font-size: 13.5px; }

/* ============ 下载中心 ============ */
.dl-grid { display: flex; flex-wrap: wrap; gap: 22px; justify-content: center; margin-bottom: 46px; }
.dl-card {
  position: relative; padding: 30px 26px; border-radius: 8px; text-align: center;
  background: linear-gradient(170deg, var(--panel), #0d1423);
  border: 1px solid var(--line-soft); transition: all .3s ease;
  display: flex; flex-direction: column; align-items: center;
  flex: 0 1 calc((100% - 44px) / 3); min-width: 280px; max-width: 420px;
}
.dl-card:hover { transform: translateY(-5px); border-color: rgb(212 175 110 / .5); box-shadow: var(--shadow), var(--gold-glow); }
.dl-card.featured { border-color: rgb(212 175 110 / .55); background: linear-gradient(170deg, #1a2338, #101827); }
.dl-card.featured::before {
  content: "推荐"; position: absolute; top: -1px; right: 20px;
  font-size: 11px; letter-spacing: 2px; color: #1a1408; padding: 3px 12px 4px;
  background: linear-gradient(135deg, #c9a269, #e8cf9a); border-radius: 0 0 4px 4px;
}
.dl-icon {
  width: 60px; height: 60px; margin-bottom: 16px; border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, rgb(212 175 110 / .25), rgb(212 175 110 / .05));
  border: 1px solid rgb(212 175 110 / .35);
}
.dl-icon svg { width: 28px; height: 28px; color: var(--gold); }
.dl-card h3 { font-family: var(--serif); font-size: 19px; letter-spacing: 3px; margin-bottom: 8px; }
.dl-card .dl-desc { font-size: 13px; color: var(--text-2); margin-bottom: 14px; min-height: 44px; }
.dl-meta { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 20px; }
.dl-meta span { font-size: 11.5px; color: var(--text-3); border: 1px solid var(--line-soft); background: rgb(38 49 74 / .35); padding: 2px 10px; border-radius: 3px; }
.dl-card .btn { margin-top: auto; }

/* 云盘分享卡片（带提取码 · 一键复制） */
.dl-cloud { position: relative; }
.dl-badge-cloud {
  position: absolute; top: 16px; left: 16px; font-size: 11px; letter-spacing: 1px;
  color: #0c1322; padding: 3px 10px; border-radius: 4px; font-weight: 700;
  background: linear-gradient(135deg, #4fc3f7, #29b6f6); box-shadow: 0 2px 8px rgb(41 182 246 / .4);
}
.dl-cloud.featured::before { right: 40px; }
.dl-file {
  width: 100%; font-size: 12.5px; color: var(--text-2); margin-bottom: 12px;
  padding: 8px 12px; border-radius: 5px; background: rgb(38 49 74 / .35);
  border: 1px solid var(--line-soft); text-align: left;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.dl-pwd {
  display: flex; align-items: center; gap: 8px; justify-content: center;
  font-size: 13px; color: var(--text-2); margin-bottom: 16px;
}
.dl-pwd b { color: var(--gold); font-family: var(--serif); letter-spacing: 2px; font-size: 15px; }
.dl-copy {
  font-size: 11.5px; color: var(--gold); cursor: pointer;
  border: 1px solid rgb(212 175 110 / .5); background: transparent;
  padding: 2px 10px; border-radius: 3px; transition: all .2s ease;
}
.dl-copy:hover { background: rgb(212 175 110 / .15); }
.dl-copy:disabled { color: #7fdca0; border-color: rgb(127 220 160 / .6); cursor: default; background: transparent; }

.install-steps {
  border: 1px solid var(--line-soft); border-radius: 8px; padding: 28px 30px;
  background: linear-gradient(160deg, var(--panel), #0e1524);
}
.install-title { font-family: var(--serif); font-size: 17px; letter-spacing: 3px; color: var(--gold); margin-bottom: 18px; }
.install-steps ol { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.install-steps li { counter-increment: step; position: relative; padding: 18px 16px 16px 58px; background: rgb(38 49 74 / .25); border: 1px solid var(--line-soft); border-radius: 6px; font-size: 13px; color: var(--text-2); }
.install-steps li::before {
  content: counter(step, decimal-leading-zero); position: absolute; left: 16px; top: 16px;
  font-family: var(--serif); font-size: 20px; font-weight: 700; color: var(--gold);
  font-variant-numeric: tabular-nums;
}

/* ============ 新闻公告 ============ */
.news-list { display: flex; flex-direction: column; gap: 12px; }
.news-item {
  display: flex; align-items: center; gap: 20px; padding: 20px 24px;
  background: linear-gradient(160deg, var(--panel), #0e1524);
  border: 1px solid var(--line-soft); border-radius: 7px;
  transition: all .25s ease; cursor: pointer;
}
.news-item:hover { border-color: rgb(212 175 110 / .4); transform: translateX(6px); background: linear-gradient(160deg, #17203a, #101827); }
.news-tag {
  flex-shrink: 0; width: 52px; height: 52px; border-radius: 6px;
  display: grid; place-items: center; font-family: var(--serif); font-size: 15px; font-weight: 700;
  color: var(--gold); background: rgb(212 175 110 / .08); border: 1px solid rgb(212 175 110 / .3);
}
.news-body { flex: 1; min-width: 0; }
.news-body h3 { font-size: 15.5px; font-weight: 600; letter-spacing: .5px; margin-bottom: 3px; }
.news-body p { font-size: 13px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.news-date { flex-shrink: 0; font-size: 12.5px; color: var(--text-3); font-variant-numeric: tabular-nums; letter-spacing: 1px; }

/* ============ 攻略 ============ */
.guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 54px; }
.guide-card {
  display: flex; align-items: center; gap: 14px; padding: 17px 20px;
  background: linear-gradient(160deg, var(--panel), #0e1524);
  border: 1px solid var(--line-soft); border-radius: 7px;
  transition: all .25s ease; cursor: pointer;
}
.guide-card:hover { border-color: rgb(109 179 200 / .45); transform: translateY(-3px); }
.guide-card h3 { font-size: 14px; font-weight: 500; line-height: 1.5; flex: 1; }
.guide-tag { flex-shrink: 0; font-size: 11px; color: var(--jade); border: 1px solid rgb(109 179 200 / .35); padding: 2px 9px; border-radius: 3px; letter-spacing: 1px; }
.guide-hot { flex-shrink: 0; font-size: 10.5px; color: var(--red); border: 1px solid rgb(194 88 80 / .45); padding: 2px 8px; border-radius: 3px; letter-spacing: 1px; }

.faq-wrap { border: 1px solid var(--line-soft); border-radius: 8px; background: linear-gradient(160deg, var(--panel), #0e1524); overflow: hidden; }
.faq-title { font-family: var(--serif); font-size: 17px; letter-spacing: 3px; color: var(--gold); padding: 20px 26px; border-bottom: 1px solid var(--line-soft); }
.faq-item { border-bottom: 1px solid var(--line-soft); }
.faq-item:last-child { border-bottom: 0; }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 17px 26px; background: none; border: 0; cursor: pointer; text-align: left;
  font-size: 14.5px; font-weight: 500; color: var(--text); font-family: var(--sans);
}
.faq-q .faq-arrow { flex-shrink: 0; width: 18px; height: 18px; color: var(--gold); transition: transform .3s; }
.faq-item.open .faq-arrow { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-a-inner { padding: 0 26px 18px; font-size: 13.5px; color: var(--text-2); }

/* ============ 客服 ============ */
.support-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.support-card {
  padding: 34px 24px 30px; border-radius: 8px; text-align: center;
  background: linear-gradient(170deg, var(--panel), #0d1423);
  border: 1px solid var(--line-soft); transition: all .3s ease;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.support-card:hover { transform: translateY(-5px); border-color: rgb(212 175 110 / .45); box-shadow: var(--shadow); }
.support-icon {
  width: 56px; height: 56px; margin-bottom: 12px; border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, rgb(212 175 110 / .2), rgb(212 175 110 / .04));
  border: 1px solid rgb(212 175 110 / .3);
}
.support-icon svg { width: 26px; height: 26px; color: var(--gold); }
.support-card h3 { font-family: var(--serif); font-size: 17px; letter-spacing: 2px; }
.support-num { font-size: 17px; font-weight: 700; color: var(--gold-bright); font-variant-numeric: tabular-nums; letter-spacing: 1px; }
.support-desc { font-size: 12.5px; color: var(--text-3); }
.support-card .btn { margin-top: 14px; }

/* ============ 页脚 ============ */
.footer { border-top: 1px solid var(--line-soft); background: #080b13; }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 46px 24px 36px; text-align: center; }
.footer-brand { display: flex; align-items: baseline; justify-content: center; gap: 10px; margin-bottom: 8px; }
.footer-brand span:first-child { font-family: var(--serif); font-size: 22px; font-weight: 700; letter-spacing: 4px; color: var(--text); }
.footer-ver { font-size: 12px; color: var(--gold); letter-spacing: 1px; }
.footer-line { font-size: 13px; color: var(--text-3); letter-spacing: 2px; margin-bottom: 22px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin-bottom: 22px; }
.footer-links a { font-size: 13px; color: var(--text-2); transition: color .2s; }
.footer-links a:hover { color: var(--gold); }
.footer-copy { font-size: 12px; color: var(--text-3); margin-bottom: 6px; }
.footer-tip { font-size: 11.5px; color: #4a5265; }

/* ============ 悬浮条 ============ */
.float-bar { position: fixed; right: 18px; bottom: 18px; z-index: 90; display: flex; flex-direction: column; gap: 10px; }
.float-btn {
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; gap: 0;
  background: rgb(13 19 34 / .9); border: 1px solid rgb(212 175 110 / .35);
  color: var(--gold); backdrop-filter: blur(8px);
  box-shadow: var(--shadow); transition: all .25s;
  font-size: 10px; letter-spacing: 0;
}
.float-btn svg { width: 20px; height: 20px; }
.float-btn:hover { background: linear-gradient(135deg, #c9a269, #e8cf9a); color: #1a1408; transform: translateY(-3px); }
.float-top { opacity: 0; pointer-events: none; transition: all .3s; }
.float-top.show { opacity: 1; pointer-events: auto; }

/* ============ 充值中心 ============ */
.section-recharge {
  background:
    radial-gradient(ellipse 70% 40% at 50% 0%, rgb(212 175 110 / .07), transparent),
    var(--bg-2);
}
.rc-flow {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 14px; margin-bottom: 40px;
}
.rc-step {
  position: relative; padding: 20px 18px 18px;
  background: linear-gradient(160deg, var(--panel), #0e1524);
  border: 1px solid var(--line-soft); border-radius: 8px;
}
.rc-step-no {
  font-family: var(--serif); font-size: 26px; font-weight: 700; color: var(--gold);
  line-height: 1; margin-bottom: 8px; opacity: .85;
}
.rc-step-title { font-family: var(--serif); font-size: 16px; letter-spacing: 2px; margin-bottom: 5px; }
.rc-step-desc { font-size: 12.5px; color: var(--text-2); line-height: 1.65; }

.rc-tiers {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 40px;
}
.rc-tier {
  position: relative; padding: 26px 22px 24px; border-radius: 8px; text-align: center;
  background: linear-gradient(170deg, #141d31, #0d1423);
  border: 1px solid var(--line-soft); transition: all .3s ease;
  display: flex; flex-direction: column; align-items: center;
}
.rc-tier:hover { transform: translateY(-5px); border-color: rgb(212 175 110 / .5); box-shadow: var(--shadow), var(--gold-glow); }
.rc-tier.featured { border-color: rgb(212 175 110 / .55); background: linear-gradient(170deg, #1a2338, #101827); }
.rc-tier.featured::before {
  content: "热销"; position: absolute; top: -1px; right: 20px;
  font-size: 11px; letter-spacing: 2px; color: #1a1408; padding: 3px 12px 4px;
  background: linear-gradient(135deg, #c9a269, #e8cf9a); border-radius: 0 0 4px 4px;
}
.rc-tier-name { font-family: var(--serif); font-size: 17px; letter-spacing: 3px; color: var(--text); }
.rc-tier-price { font-family: var(--serif); font-size: 38px; font-weight: 700; color: var(--gold-bright); line-height: 1.25; font-variant-numeric: tabular-nums; }
.rc-yen { font-size: 20px; margin-right: 2px; }
.rc-tier-coins { font-size: 13px; color: var(--jade); margin-bottom: 4px; }
.rc-tier-bonus { font-size: 12px; color: #e8b4a0; margin-bottom: 18px; }
.rc-tier-bonus.rc-none { color: var(--text-3); }
.rc-buy { margin-top: auto; }

.rc-panels { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 34px; }
.rc-panel {
  padding: 28px 26px; border-radius: 8px;
  background: linear-gradient(165deg, var(--panel), #0e1524);
  border: 1px solid var(--line-soft);
}
.rc-panel-title { font-family: var(--serif); font-size: 18px; letter-spacing: 2px; margin-bottom: 6px; color: var(--gold-bright); }
.rc-panel-desc { font-size: 13px; color: var(--text-2); margin-bottom: 20px; }
.rc-form { display: flex; flex-direction: column; gap: 14px; }
.rc-label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--text-2); letter-spacing: 1px; }
.rc-input {
  padding: 11px 14px; border-radius: 5px; font-size: 14px;
  background: rgb(10 14 24 / .8); border: 1px solid var(--line);
  color: var(--text); outline: none; transition: border-color .2s;
  font-family: var(--sans);
}
.rc-input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgb(212 175 110 / .12); }
.rc-submit { justify-content: center; margin-top: 4px; }
.rc-result {
  margin-top: 16px; padding: 14px 16px; border-radius: 6px;
  font-size: 13px; line-height: 1.8;
}
.rc-result.rc-ok { background: rgb(74 222 128 / .07); border: 1px solid rgb(74 222 128 / .3); color: #bbf7d0; }
.rc-result.rc-err { background: rgb(194 88 80 / .08); border: 1px solid rgb(194 88 80 / .35); color: #fca5a5; }
.rc-status-pending { color: var(--gold); }
.rc-status-verified { color: var(--jade); }
.rc-status-done { color: #4ade80; }
.rc-status-rejected { color: #fca5a5; }

/* 卡密兑换：主面板高亮（这是主要到账通道） */
.rc-panel-primary {
  position: relative;
  border-color: rgb(212 175 110 / .45);
  background: linear-gradient(165deg, #1a2338, #101827);
  box-shadow: var(--shadow), 0 0 32px -18px rgb(212 175 110 / .5);
}
.rc-panel-primary::before {
  content: "推荐通道 · 秒到账"; position: absolute; top: -1px; left: 26px;
  font-size: 11px; letter-spacing: 2px; color: #1a1408; padding: 3px 12px 4px;
  background: linear-gradient(135deg, #c9a269, #e8cf9a); border-radius: 0 0 4px 4px;
}
.rc-panel-primary .rc-panel-title { margin-top: 6px; }
.rc-panel-desc strong { color: var(--gold-bright); font-weight: 600; }

/* 元宝余额数字（金色强调） */
.rc-gold { color: var(--gold-bright); font-family: var(--serif); font-size: 15px; font-weight: 700; }
.rc-hint { color: var(--text-3); font-size: 12px; }

/* 未收到卡密时的兜底通道（折叠） */
.rc-manual {
  margin-bottom: 26px; border-radius: 8px;
  border: 1px solid var(--line-soft); background: rgb(10 14 24 / .5);
}
.rc-manual > summary {
  padding: 15px 22px; cursor: pointer; list-style: none;
  font-size: 13.5px; color: var(--text-2); letter-spacing: 1px;
  display: flex; align-items: center; gap: 8px; transition: color .2s;
}
.rc-manual > summary::-webkit-details-marker { display: none; }
.rc-manual > summary::before {
  content: "▸"; color: var(--gold-dim); font-size: 12px; transition: transform .2s;
}
.rc-manual[open] > summary::before { transform: rotate(90deg); }
.rc-manual > summary:hover { color: var(--gold); }
.rc-manual-body { padding: 4px 22px 22px; border-top: 1px solid var(--line-soft); }
.rc-manual-body .rc-panel-desc { margin: 16px 0 18px; }

/* 行内表单（兜底通道用，宽屏下多列） */
.rc-form-inline { display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: 12px; align-items: end; }
.rc-form-inline .rc-submit { margin-top: 0; height: 42px; }

.rc-notice {
  padding: 20px 24px; border-radius: 8px;
  border: 1px dashed rgb(212 175 110 / .3); background: rgb(212 175 110 / .04);
}
.rc-notice-title { font-family: var(--serif); font-size: 15px; letter-spacing: 2px; color: var(--gold); margin-bottom: 10px; }
.rc-notice ul { list-style: none; display: grid; gap: 7px; }
.rc-notice li { font-size: 12.5px; color: var(--text-2); padding-left: 18px; position: relative; }
.rc-notice li::before { content: "◆"; position: absolute; left: 0; top: 1px; font-size: 8px; color: var(--gold-dim); }

/* ============ 响应式 ============ */
@media (max-width: 1024px) {
  .feature-grid, .class-grid, .guide-grid, .dl-grid { grid-template-columns: repeat(2, 1fr); }
  .highlight-grid { grid-template-columns: repeat(2, 1fr); }
  .support-grid { grid-template-columns: repeat(2, 1fr); }
  .install-steps ol { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: flex; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0;
    background: rgb(10 14 24 / .97); backdrop-filter: blur(12px);
    padding: 12px 24px 20px; border-bottom: 1px solid var(--line-soft);
  }
  .section { padding: 64px 18px; }
  .hero-status { grid-template-columns: repeat(2, 1fr); width: 100%; max-width: 420px; }
  .hs-item { justify-content: center; padding: 13px 10px; min-width: 0; }
  .hs-item + .hs-item { border-left: 0; }
  .hs-item:nth-child(even) { border-left: 1px solid rgb(212 175 110 / .15); }
  .hs-item:nth-child(n+3) { border-top: 1px solid rgb(212 175 110 / .15); }
  .feature-grid, .class-grid, .guide-grid, .dl-grid, .support-grid, .install-steps ol { grid-template-columns: 1fr; }
  .highlight-grid { grid-template-columns: 1fr; }
  .rc-flow, .rc-tiers, .rc-panels { grid-template-columns: 1fr; }
  .rc-form-inline { grid-template-columns: 1fr; }
  .news-item { flex-wrap: wrap; gap: 12px; }
  .news-body p { white-space: normal; }
  .hero-title { letter-spacing: .06em; margin-left: .06em; }
  .hero-slogan { letter-spacing: .3em; margin-left: .3em; }
}

/* ============ 注册游戏账号 弹窗 ============ */
.btn-block { width: 100%; justify-content: center; }
.modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center;
  padding: 20px; opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s ease; }
.modal.open { opacity: 1; visibility: visible; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(4, 7, 14, .72); backdrop-filter: blur(3px); }
.modal-box { position: relative; width: 100%; max-width: 420px; padding: 30px 28px 26px; border-radius: 12px;
  background: linear-gradient(165deg, #141a28, #0b0e14); border: 1px solid rgb(212 175 110 / .35);
  box-shadow: 0 24px 70px rgb(0 0 0 / .65); transform: translateY(14px) scale(.98); transition: transform .25s ease; }
.modal.open .modal-box { transform: translateY(0) scale(1); }
.modal-close { position: absolute; top: 10px; right: 14px; width: 34px; height: 34px; border: 0; border-radius: 50%;
  background: transparent; color: var(--muted, #8a93a6); font-size: 26px; line-height: 1; cursor: pointer; transition: color .2s; }
.modal-close:hover { color: var(--gold, #d4af6e); }
.modal-title { font-family: var(--serif); font-size: 23px; font-weight: 700; color: var(--gold, #d4af6e);
  letter-spacing: 2px; text-align: center; margin: 0 0 6px; }
.modal-sub { text-align: center; color: var(--muted, #8a93a6); font-size: 13px; margin: 0 0 22px; }
.reg-form { display: flex; flex-direction: column; gap: 14px; }
.reg-field { display: flex; flex-direction: column; gap: 6px; }
.reg-field > span { font-size: 13px; color: var(--muted, #aeb6c6); letter-spacing: 1px; }
.reg-field input { width: 100%; padding: 12px 14px; border-radius: 8px; font-size: 15px; color: #eef2f8;
  background: #0a0f1c; border: 1px solid var(--line-soft, #2a3142); outline: none; transition: border-color .2s, box-shadow .2s; }
.reg-field input:focus { border-color: var(--gold, #d4af6e); box-shadow: 0 0 0 3px rgb(212 175 110 / .15); }
.reg-field input::placeholder { color: #5b657a; }
.reg-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.reg-msg { min-height: 18px; font-size: 13px; line-height: 1.5; margin: -4px 0 2px; }
.reg-msg.reg-ok { color: #6fcf97; }
.reg-msg.reg-err { color: #ff7a7a; }
.reg-msg.reg-info { color: var(--muted, #9aa3b5); }
.reg-tip { text-align: center; color: var(--muted, #6b7488); font-size: 12px; margin: 16px 0 0; }
.modal .btn[disabled] { opacity: .6; cursor: not-allowed; }

@media (max-width: 520px) {
  .modal-box { padding: 26px 20px 22px; }
}
