/* ================= 龙域传奇·高爆版 演示站样式 ================= */
:root {
  --gold: #d4a94e;
  --gold-lt: #f5d78e;
  --gold-dp: #8a6524;
  --red: #c0392b;
  --bg: #0d0805;
  --bg2: #17100a;
  --card: #1e150c;
  --line: #3a2a14;
  --txt: #e8dcc2;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--txt);
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ---------- 顶部导航 ---------- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 99;
  background: linear-gradient(180deg, rgba(10,6,3,.96), rgba(10,6,3,.82));
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.topbar-inner {
  max-width: 1200px; margin: 0 auto; height: 62px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px;
}
.logo { display: flex; align-items: center; gap: 8px; }
.logo-icon {
  font-size: 26px; color: var(--gold-lt);
  text-shadow: 0 0 12px rgba(212,169,78,.8);
}
.logo-text {
  font-size: 22px; font-weight: 900; letter-spacing: 2px;
  color: var(--gold-lt);
  text-shadow: 0 2px 6px rgba(0,0,0,.8), 0 0 18px rgba(212,169,78,.45);
}
.logo-text em {
  font-style: normal; font-size: 13px; margin-left: 4px;
  color: var(--red); background: var(--gold-lt);
  padding: 1px 6px; border-radius: 3px; vertical-align: 3px;
}
.topnav { display: flex; gap: 8px; align-items: center; }
.nav-btn {
  cursor: pointer; font-family: inherit;
  background: transparent; color: var(--txt);
  border: 1px solid var(--gold-dp); border-radius: 4px;
  padding: 7px 14px; font-size: 14px; letter-spacing: 1px;
  transition: all .25s;
}
.nav-btn:hover { color: var(--gold-lt); border-color: var(--gold); box-shadow: 0 0 10px rgba(212,169,78,.35); }
.nav-btn.gold {
  background: linear-gradient(180deg, var(--gold-lt), var(--gold));
  color: #3a2405; font-weight: 700; border: none;
}
.nav-btn.gold:hover { filter: brightness(1.1); box-shadow: 0 0 14px rgba(245,215,142,.6); }
.eq { display: none; margin-left: 4px; }
.eq i {
  display: inline-block; width: 2px; height: 8px; margin-right: 2px;
  background: var(--gold-lt); vertical-align: middle;
  animation: eq 1s infinite ease-in-out;
}
.eq i:nth-child(2) { animation-delay: .2s; }
.eq i:nth-child(3) { animation-delay: .4s; }
@keyframes eq { 0%,100% { transform: scaleY(.4); } 50% { transform: scaleY(1); } }
.playing .eq { display: inline-block; }

/* ---------- 微信浮窗 ---------- */
.popup {
  display: none; position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,.7);
  align-items: center; justify-content: center;
}
.popup.show { display: flex; }
.popup-box {
  position: relative; background: var(--bg2);
  border: 1px solid var(--gold-dp); border-radius: 8px;
  padding: 28px 36px; text-align: center;
}
.popup-close {
  position: absolute; top: 6px; right: 10px;
  background: none; border: none; color: var(--txt);
  font-size: 24px; cursor: pointer;
}
.popup-title { color: var(--gold-lt); margin-bottom: 14px; letter-spacing: 2px; }
.popup-box img {
  max-width: 300px; width: 100%; height: auto;
  object-fit: contain; margin: 0 auto; border-radius: 6px;
}
.qr-ph {
  width: 160px; height: 160px; margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
  background: repeating-linear-gradient(45deg, #241a0e, #241a0e 8px, #2c2012 8px, #2c2012 16px);
  border: 2px dashed var(--gold-dp); color: #9c8a66; font-size: 13px; line-height: 1.8;
}

/* ---------- 主视觉轮播 ---------- */
.hero {
  position: relative; margin-top: 62px;
  width: 100%; aspect-ratio: 2112 / 1024;
  overflow: hidden; background: var(--bg2);
}
.slide {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity .8s;
}
.slide.active { opacity: 1; }
/* 视频/图片铺满主视觉区域 */
.slide video, .slide img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}
/* 图片未生成时的渐变占位 */
.slide .broken { opacity: 0; }
.s1 { background: radial-gradient(ellipse at 50% 80%, #5a2c0e 0%, #1a0c04 60%, #0d0805 100%); }
.s2 { background: radial-gradient(ellipse at 30% 30%, #123c5a 0%, #0a1622 60%, #0d0805 100%); }
.s3 { background: radial-gradient(ellipse at 70% 40%, #5a0e2c 0%, #22040c 60%, #0d0805 100%); }
.s4 { background: radial-gradient(ellipse at 50% 20%, #4a450e 0%, #1c1a04 60%, #0d0805 100%); }
.s5 { background: radial-gradient(ellipse at 40% 70%, #2e1250 0%, #14081f 60%, #0d0805 100%); }
.slide-caption {
  position: absolute; left: 0; right: 0; bottom: 26%;
  text-align: center; font-size: 46px; font-weight: 900;
  letter-spacing: 10px; color: var(--gold-lt);
  text-shadow: 0 0 24px rgba(212,169,78,.7), 0 4px 10px rgba(0,0,0,.9);
  pointer-events: none;
}
.arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 10; width: 44px; height: 72px;
  background: rgba(0,0,0,.45); color: var(--gold-lt);
  border: 1px solid var(--gold-dp); cursor: pointer;
  font-size: 30px; transition: all .2s;
}
.arrow:hover { background: rgba(212,169,78,.25); }
.arrow.prev { left: 0; border-radius: 0 8px 8px 0; }
.arrow.next { right: 0; border-radius: 8px 0 0 8px; }
.dots {
  position: absolute; bottom: 70px; left: 0; right: 0; z-index: 10;
  display: flex; justify-content: center; gap: 10px;
}
.dots span {
  width: 12px; height: 12px; border-radius: 50%;
  background: #3a2a14; border: 1px solid var(--gold-dp);
  cursor: pointer; transition: all .3s;
}
.dots span.on { background: var(--gold-lt); box-shadow: 0 0 10px var(--gold); }
.hero-ctas {
  position: absolute; left: 50%; bottom: 100px; transform: translateX(-50%);
  z-index: 10; display: flex; align-items: center; gap: 22px;
}
.dl-main {
  display: flex; align-items: center; gap: 10px;
  padding: 18px 66px; font-size: 26px; font-weight: 900; letter-spacing: 4px;
  color: #3a2405; border-radius: 40px; white-space: nowrap;
  background: linear-gradient(180deg, #ffe9ad, var(--gold) 55%, #a8781f);
  box-shadow: 0 0 24px rgba(245,215,142,.55), inset 0 1px 0 #fff8;
  animation: pulse 2s infinite;
}
.dl-main:hover { filter: brightness(1.08); }
/* 充值按钮:红金配色以示区分 */
.dl-main.pay {
  color: #fff4e0; text-shadow: 0 1px 3px rgba(0,0,0,.5);
  background: linear-gradient(180deg, #ff9d6b, #d9432b 55%, #8c1f12);
  box-shadow: 0 0 24px rgba(217,67,43,.55), inset 0 1px 0 #fff5;
  animation: pulse-pay 2s infinite;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 16px rgba(245,215,142,.45); }
  50% { box-shadow: 0 0 34px rgba(245,215,142,.85); }
}
@keyframes pulse-pay {
  0%,100% { box-shadow: 0 0 16px rgba(217,67,43,.4); }
  50% { box-shadow: 0 0 34px rgba(255,120,80,.8); }
}

/* ---------- 右侧悬浮联系按钮（QQ / 微信） ---------- */
.side-contact {
  position: fixed; right: 20px; top: 50%;
  transform: translateY(-50%);
  z-index: 120;
  display: flex; flex-direction: column; gap: 18px;
}
.side-btn {
  width: 82px; height: 82px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  color: #fff; font-size: 20px; font-weight: 800; letter-spacing: 1px;
  box-shadow: 0 6px 20px rgba(0,0,0,.5);
  transition: transform .2s, box-shadow .2s;
}
.side-btn:hover { transform: scale(1.08); box-shadow: 0 8px 24px rgba(0,0,0,.6); }
.side-btn.qq { background: linear-gradient(180deg, #45b0f8, #1f7ad0); }
.side-btn.wx { background: linear-gradient(180deg, #35c95e, #1ea84d); }

/* ---------- 版块通用 ---------- */
.sect { max-width: 1200px; margin: 0 auto; padding: 56px 16px; }
.sect-dark { max-width: none; background: linear-gradient(180deg, var(--bg), var(--bg2) 30%, var(--bg2) 70%, var(--bg)); }
.sect-dark > * { max-width: 1200px; margin-left: auto; margin-right: auto; }
.sect-title {
  text-align: center; font-size: 26px; letter-spacing: 6px;
  color: var(--gold-lt); margin-bottom: 36px;
}
.sect-title span { position: relative; padding: 0 28px; }
.sect-title span::before, .sect-title span::after {
  content: ""; position: absolute; top: 50%; width: 60px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.sect-title span::before { left: -50px; }
.sect-title span::after { right: -50px; transform: scaleX(-1); }

/* ---------- 开服表 ---------- */
.server-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
.server-card {
  background: linear-gradient(180deg, var(--card), #120b06);
  border: 1px solid var(--line); border-radius: 6px;
  padding: 18px 14px; text-align: center;
  transition: all .3s;
}
.server-card:hover { transform: translateY(-4px); border-color: var(--gold); box-shadow: 0 8px 24px rgba(0,0,0,.6); }
.server-card.hot { border-color: var(--red); }
.server-card.new { border-color: var(--gold); }
.sc-name { font-size: 17px; font-weight: 700; color: var(--gold-lt); margin-bottom: 8px; }
.sc-time { font-size: 13px; color: #a08d68; margin-bottom: 12px; }
.sc-time em { font-style: normal; color: var(--red); font-weight: 700; }
.sc-btn {
  display: inline-block; padding: 6px 22px; font-size: 13px;
  color: var(--gold-lt); border: 1px solid var(--gold-dp); border-radius: 20px;
  transition: all .25s;
}
.sc-btn:hover { background: var(--gold); color: #3a2405; }

/* ---------- 特色墙 ---------- */
.feat-grid {
  display: grid; grid-template-columns: repeat(8, 1fr); gap: 12px;
  max-width: 1100px;
}
.feat {
  background: var(--card); border: 1px solid var(--line); border-radius: 6px;
  overflow: hidden; cursor: pointer; transition: all .3s;
}
.feat:hover { transform: scale(1.08); border-color: var(--gold); z-index: 2; box-shadow: 0 0 18px rgba(212,169,78,.4); }
.feat figure, .feat { aspect-ratio: 1; }
.feat img.broken { opacity: 0; }
.feat { position: relative; background: radial-gradient(circle at 50% 40%, #4a3312, #1a1108 70%); }
.feat figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  font-size: 12px; text-align: center; padding: 4px 0;
  background: rgba(0,0,0,.72); color: var(--gold-lt); letter-spacing: 1px;
}

/* ---------- 玩法截图轮播 ---------- */
.shot-wrap { position: relative; overflow: hidden; border-radius: 8px; border: 1px solid var(--line); }
.shot-track { display: flex; transition: transform .5s ease; }
.shot-track figure { position: relative; flex: 0 0 50%; height: 340px; }
.shot-track img.broken { opacity: 0; }
.shot-track figure:nth-child(odd) { background: radial-gradient(ellipse at 50% 60%, #3a2408, #120b05); }
.shot-track figure:nth-child(even) { background: radial-gradient(ellipse at 50% 60%, #16303a, #060d12); }
.shot-track figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 10px; text-align: center; letter-spacing: 3px;
  background: linear-gradient(transparent, rgba(0,0,0,.85));
  color: var(--gold-lt);
}
.shot-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 38px; height: 60px; z-index: 5; cursor: pointer;
  background: rgba(0,0,0,.5); color: var(--gold-lt);
  border: 1px solid var(--gold-dp); font-size: 24px;
}
.sa-prev { left: 0; border-radius: 0 6px 6px 0; }
.sa-next { right: 0; border-radius: 6px 0 0 6px; }
.shot-arrow:hover { background: rgba(212,169,78,.3); }

/* ---------- BOSS ---------- */
.boss-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.boss {
  position: relative; height: 260px; border-radius: 8px; overflow: hidden;
  border: 1px solid var(--line); transition: all .3s;
}
.boss:nth-child(1) { background: radial-gradient(circle at 50% 60%, #5a120a, #14040a); }
.boss:nth-child(2) { background: radial-gradient(circle at 50% 60%, #0e3a1e, #04120a); }
.boss:nth-child(3) { background: radial-gradient(circle at 50% 60%, #3a2a0e, #120c04); }
.boss:nth-child(4) { background: radial-gradient(circle at 50% 60%, #24103a, #0a0412); }
.boss img.broken { opacity: 0; }
.boss:hover { transform: translateY(-6px); border-color: var(--red); box-shadow: 0 10px 26px rgba(192,57,43,.35); }
.boss figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 8px;
  text-align: center; font-size: 13px; letter-spacing: 1px;
  background: linear-gradient(transparent, rgba(0,0,0,.9)); color: var(--gold-lt);
}

/* ---------- 下载引导横幅 ---------- */
.cta-band {
  text-align: center; padding: 54px 16px;
  background:
    radial-gradient(ellipse at 50% 120%, rgba(212,169,78,.25), transparent 60%),
    linear-gradient(180deg, #1c1206, #0d0805);
  border-top: 1px solid var(--line);
}
.cta-band p { font-size: 20px; letter-spacing: 4px; color: #b89a5e; margin-bottom: 18px; }
.cta-band a {
  display: inline-block; padding: 14px 46px; font-size: 19px; font-weight: 700;
  letter-spacing: 2px; color: #3a2405; border-radius: 8px;
  background: linear-gradient(180deg, #ffe9ad, var(--gold) 60%, #a8781f);
  box-shadow: 0 0 22px rgba(245,215,142,.5);
}
.cta-band a:hover { filter: brightness(1.1); }

/* ---------- 页脚 ---------- */
.footer {
  padding: 30px 16px 40px; text-align: center;
  border-top: 1px solid var(--line); background: #080503;
}
.healthy {
  color: #6b5c40; font-size: 13px; letter-spacing: 2px;
  margin-bottom: 10px; line-height: 2;
}
.footer p:last-child { color: #4a4030; font-size: 12px; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .server-grid, .boss-grid { grid-template-columns: repeat(2, 1fr); }
  .feat-grid { grid-template-columns: repeat(4, 1fr); }
  .slide-caption { font-size: 28px; letter-spacing: 5px; }
  .shot-track figure { flex: 0 0 100%; }
  .topnav { gap: 4px; }
  .nav-btn { padding: 6px 8px; font-size: 12px; }
}
@media (max-width: 520px) {
  .topbar-inner { flex-direction: column; height: auto; padding: 8px; gap: 6px; }
  .hero { margin-top: 104px; }
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .side-contact { right: 8px; gap: 12px; }
  .side-btn { width: 62px; height: 62px; font-size: 15px; }
}
