/* ==========================================================
   龙城传世 · 官网样式（复古传世风格）
   ========================================================== */
:root {
  --bg: #2a2018;
  --bg-2: #1f1812;
  --bg-3: #15100b;
  --gold: #d8b46a;
  --gold-l: #f3dfa6;
  --gold-d: #9c7536;
  --red: #c9332a;
  --text: #d9cbb0;
  --muted: #a08c6c;
  --font-brush: "STXingkai", "华文行楷", "STKaiti", "华文楷体", "KaiTi", "楷体", serif;
  --font-serif: "STZhongsong", "华文中宋", "Noto Serif SC", "Source Han Serif SC", "SimSun", "宋体", serif;
  --font-body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", sans-serif;
  --topbar-h: 50px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 14px/1.7 var(--font-body);
  color: var(--text);
  background: var(--bg);
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
body.modal-open, body.nav-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }
img, svg { display: block; max-width: 100%; }
table { border-collapse: collapse; }
[hidden] { display: none !important; }
section[id] { scroll-margin-top: var(--topbar-h); }

.wrap { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* ---------- 顶部导航 ---------- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--topbar-h);
  background: rgba(0, 0, 0, .86);
  border-bottom: 1px solid rgba(216, 180, 106, .15);
}
.topbar-inner { display: flex; align-items: center; height: 100%; gap: 30px; }
.tb-logo { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.tb-logo i, .footer-logo i {
  width: 34px; height: 34px; display: grid; place-items: center;
  font: normal 22px/1 var(--font-brush); color: #fff;
  background: radial-gradient(circle at 35% 30%, #e0453a, #8a120c);
  border-radius: 50%; box-shadow: 0 0 0 2px rgba(0, 0, 0, .6), 0 0 0 3px #8a120c;
}
.tb-logo span { font: 22px/1 var(--font-brush); color: var(--gold-l); letter-spacing: 2px; }
.tb-nav { display: flex; gap: 4px; }
.tb-nav a { position: relative; padding: 0 12px; line-height: var(--topbar-h); color: #ddd; transition: color .2s; }
.tb-nav a:hover, .tb-nav a.active { color: var(--gold); }
.tb-nav a.active::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 2px; background: var(--gold);
}

.nav-toggle { display: none; position: relative; width: 40px; height: 40px; margin-left: auto; }
.nav-toggle span { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--gold); border-radius: 2px; transition: transform .3s, opacity .3s; }
.nav-toggle span:nth-child(1) { top: 13px; }
.nav-toggle span:nth-child(2) { top: 19px; }
.nav-toggle span:nth-child(3) { top: 25px; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.nav-mask { display: none; }

/* ---------- 首屏横幅 ---------- */
.banner {
  position: relative; overflow: hidden;
  height: clamp(540px, 50vw, 780px);
  margin-top: var(--topbar-h);
  background: #3a2a22;
}
.banner-art { position: absolute; inset: 0; background-size: cover; background-position: center top; }
.banner-art.has-img > * { display: none; }
.sky {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, #46364a 0%, #7d5a6a 26%, #b88180 46%, #dca684 62%, #e9be8f 70%, #8a5d44 86%, #3a2418 100%);
}
.sun {
  position: absolute; left: 22%; top: 58%; width: 520px; height: 520px; max-width: 80vw;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255, 236, 190, .85) 0%, rgba(255, 200, 140, .35) 20%, transparent 60%);
}
.clouds {
  position: absolute; left: 0; right: 0; top: 0; height: 70%;
  background:
    radial-gradient(ellipse 22% 7% at 15% 22%, rgba(255, 225, 220, .35), transparent 70%),
    radial-gradient(ellipse 30% 8% at 60% 16%, rgba(255, 220, 215, .3), transparent 70%),
    radial-gradient(ellipse 26% 6% at 85% 34%, rgba(255, 215, 200, .3), transparent 70%),
    radial-gradient(ellipse 34% 7% at 40% 44%, rgba(255, 210, 190, .28), transparent 70%),
    radial-gradient(ellipse 20% 5% at 75% 52%, rgba(255, 220, 190, .25), transparent 70%);
  background-size: 140% 100%;
  animation: drift 60s linear infinite alternate;
}
@keyframes drift { to { background-position: -40vw 0; } }
.ribbon {
  position: absolute; left: -5%; top: 4%; width: 110%; height: 46%;
  transform-origin: 0 50%;
  animation: sway 9s ease-in-out infinite alternate;
  filter: drop-shadow(0 6px 10px rgba(80, 0, 0, .3));
}
@keyframes sway { to { transform: translateY(14px) skewY(-2deg) scaleY(1.08); } }
.roofs { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 58%; }

.banner-role {
  position: absolute; right: 6%; bottom: 0; z-index: 1;
  height: 96%; width: auto; max-width: 60%; object-fit: contain; object-position: bottom;
  pointer-events: none;
}

.banner-inner { position: relative; z-index: 2; height: 100%; }

.game-logo { position: absolute; left: 30px; top: 9%; }
.game-logo img { max-width: 260px; max-height: 220px; filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .5)); }
.game-logo.has-img .gl-text { display: none; }
.gl-text { position: relative; display: inline-block; }
.gl-main {
  display: block; width: 2.15em; text-align: center;
  font: 84px/1.02 var(--font-brush);
  background: linear-gradient(180deg, #fff6d0 0%, #f2c766 45%, #b9741e 80%, #f7d98a 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(2px 3px 0 #4a1f0a) drop-shadow(0 0 14px rgba(120, 30, 0, .55));
}
.gl-seal {
  position: absolute; right: -26px; bottom: 6px;
  width: 30px; padding: 4px 0; text-align: center;
  font: 15px/1.15 var(--font-serif); font-weight: bold; color: #fff;
  background: #b5241b; border: 1px solid #ffcfa8; border-radius: 3px;
  writing-mode: vertical-rl; letter-spacing: 2px;
}

.slogan-wrap { position: absolute; right: 30px; top: 7%; }
.slogan {
  position: relative;
  font: 76px/1.1 var(--font-brush); letter-spacing: 4px;
  background: linear-gradient(180deg, #fff3c4 0%, #f0c35a 50%, #a8601a 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(3px 3px 0 #3a1406) drop-shadow(0 0 20px rgba(255, 140, 40, .55));
  transform: rotate(-5deg);
}

.gamedown {
  position: absolute; left: 30px; top: 54%;
  display: grid; grid-template-columns: auto auto; gap: 12px 14px; align-items: end;
}
.dl-mobile { position: relative; grid-column: 1; }
.btn-dl {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 220px; height: 56px; border-radius: 4px; color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .5);
  transition: transform .2s, filter .2s, box-shadow .2s;
}
.btn-dl svg { width: 26px; height: 26px; fill: #fff; flex-shrink: 0; }
.btn-dl span { display: flex; flex-direction: column; line-height: 1.1; text-align: center; }
.btn-dl b { font-size: 22px; letter-spacing: 1px; font-weight: normal; }
.btn-dl small { margin-top: 3px; font-size: 11px; opacity: .85; }
.btn-dl-red {
  background: linear-gradient(180deg, #ff7356 0%, #e2392a 45%, #a91a12 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 190, 170, .6), 0 0 0 1px #6a0f08, 0 6px 16px rgba(0, 0, 0, .35);
}
.btn-dl-gold {
  grid-column: 1;
  background: linear-gradient(180deg, #e9cf8c 0%, #c19a4e 45%, #8a6528 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 240, 200, .6), 0 0 0 1px #4f3410, 0 6px 16px rgba(0, 0, 0, .35);
}
.btn-dl:hover { transform: translateY(-2px); filter: brightness(1.08); }

.dl-qr {
  position: absolute; left: calc(100% + 14px); top: 50%; z-index: 3;
  padding: 8px; background: #fff; border-radius: 4px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .4);
  opacity: 0; visibility: hidden; transform: translate(-6px, -50%);
  transition: opacity .2s, transform .2s, visibility .2s;
}
.dl-qr::before {
  content: ""; position: absolute; left: -6px; top: 50%; margin-top: -6px;
  border: 6px solid transparent; border-left: 0; border-right-color: #fff;
}
.dl-qr .qr-box { width: 120px; height: 120px; border: 0; }
@media (hover: hover) {
  .dl-mobile:hover .dl-qr { opacity: 1; visibility: visible; transform: translate(0, -50%); }
}

.cadpa {
  grid-column: 2; grid-row: 1 / span 2; align-self: end;
  display: flex; flex-direction: column; align-items: center;
  width: 54px; padding: 3px 3px 4px;
  background: #fff; border: 2px solid #222; border-radius: 3px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .35);
}
.cadpa b { width: 100%; font: 700 20px/26px Arial, sans-serif; color: #fff; background: #f5a20f; text-align: center; }
.cadpa small { font: 700 8px/12px Arial, sans-serif; color: #f5a20f; letter-spacing: 1px; }
.cadpa em { width: 100%; font-style: normal; font-size: 11px; line-height: 16px; color: #fff; background: #222; text-align: center; }

/* ---------- 二维码 ---------- */
.qr-box {
  position: relative; display: grid; place-items: center;
  background: #fff; overflow: hidden;
}
.qr-box img { width: 100%; height: 100%; object-fit: contain; }
.qr-box:not(.has-img) {
  background:
    linear-gradient(#fff, #fff) center / 46% 46% no-repeat,
    repeating-linear-gradient(0deg, #fff 0 6px, transparent 6px 9px),
    repeating-linear-gradient(90deg, #e9e2d4 0 3px, #fff 3px 7px, #d8cfbd 7px 9px);
}
.qr-box:not(.has-img)::before, .qr-box:not(.has-img)::after {
  content: ""; position: absolute; width: 22%; height: 22%;
  border: 4px solid #6b5a3e; outline: 3px solid #fff; outline-offset: -9px;
  background: radial-gradient(#6b5a3e 38%, transparent 40%);
}
.qr-box:not(.has-img)::before { left: 6%; top: 6%; }
.qr-box:not(.has-img)::after { right: 6%; top: 6%; }
.qr-box span { position: relative; z-index: 1; font-size: 12px; line-height: 1.4; color: #6b5a3e; text-align: center; font-weight: 600; }
.qr-box.has-img span { display: none; }

/* ---------- 栏目标题 ---------- */
.title {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  padding: 36px 20px 28px;
}
.title::before, .title::after {
  content: ""; flex: 0 1 260px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-d) 40%, var(--gold-d));
}
.title::after { transform: scaleX(-1); }
.title span {
  display: inline-flex; align-items: center; gap: 14px; flex-shrink: 0;
  font: 900 34px/1.2 var(--font-serif); letter-spacing: 4px;
  background: linear-gradient(180deg, #fff1c8 0%, #e2bf72 55%, #a7782f 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.title span::before, .title span::after {
  content: ""; width: 14px; height: 14px; flex-shrink: 0;
  border: 2px solid var(--gold); transform: rotate(45deg);
  background: radial-gradient(var(--gold) 30%, transparent 34%);
}

/* ---------- 轮播 ---------- */
.slider { position: relative; }
.sl-viewport { position: relative; overflow: hidden; height: 100%; }
.is-slide .sl-track { display: flex; height: 100%; transition: transform .5s ease; }
.is-slide .slide { flex: 0 0 100%; min-width: 0; }
.is-fade .sl-track { display: grid; }
.is-fade .slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility .7s; }
.is-fade .slide.active { opacity: 1; visibility: visible; }

.sl-arrow {
  position: absolute; top: 50%; z-index: 3; width: 36px; height: 60px; margin-top: -30px;
  opacity: .8; transition: opacity .2s;
}
.sl-arrow:hover { opacity: 1; }
.sl-arrow::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 18px;
  border-left: 2px solid #fff; border-bottom: 2px solid #fff;
}
.sl-prev { left: 4px; }
.sl-next { right: 4px; }
.sl-prev::before { transform: translate(-30%, -50%) rotate(45deg); }
.sl-next::before { transform: translate(-70%, -50%) rotate(-135deg); }
.sl-dots { position: absolute; left: 0; right: 0; bottom: 10px; z-index: 3; display: flex; justify-content: center; gap: 8px; }
.sl-dots button { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .5); transition: background .2s, transform .2s; }
.sl-dots button.on { background: var(--gold); transform: scale(1.25); }

/* ---------- 占位美术 ---------- */
.ph {
  position: relative; width: 100%; height: 100%; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
}
.ph-sunset { background: linear-gradient(180deg, #4b3b4a, #b88180 50%, #e8b98a 72%, #6a4632); }
.ph-dusk   { background: linear-gradient(180deg, #1f2440, #5a4a6a 45%, #c7856a 74%, #3a2a20); }
.ph-fire   { background: linear-gradient(180deg, #2a0a06, #7a1c0c 45%, #e0702a 74%, #3a1408); }
.ph-jade   { background: linear-gradient(180deg, #0f2a2a, #2f6a5a 50%, #a8c9a0 76%, #203a2a); }
.ph-night  { background: linear-gradient(180deg, #05070f, #1a2140 50%, #47506e 76%, #151a28); }
.ph-gold   { background: linear-gradient(180deg, #2a1a08, #8a5a1a 50%, #e8c06a 76%, #3a2408); }
.ph-scene { position: absolute; left: 0; bottom: 0; width: 100%; height: 62%; }
.ph-title, .ph-char {
  position: relative; z-index: 1; text-align: center; padding: 0 12px;
  font: 40px/1.2 var(--font-brush);
  background: linear-gradient(180deg, #fff6d6, #e9b850 60%, #b07020);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(2px 2px 0 rgba(40, 10, 0, .8));
}
.ph-title-lg { font-size: 72px; letter-spacing: 6px; }
.ph-char { font-size: 76px; opacity: .9; }
.ph-note { position: relative; z-index: 1; font-size: 13px; color: rgba(255, 240, 210, .75); letter-spacing: 3px; }

/* ---------- 新闻区 ---------- */
.mainbox-top {
  padding: 40px 0 10px;
  background:
    radial-gradient(ellipse 60% 80% at 50% 0%, rgba(120, 80, 40, .25), transparent 70%),
    var(--bg);
}
.mainbox {
  display: grid; grid-template-columns: 150px minmax(0, 1fr) 340px;
  height: 320px;
}
.mainbox > * { box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }

.left-code {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  padding: 18px 12px;
  background: linear-gradient(180deg, #3b2e23, #261d15);
  border: 1px solid #4a3a2a; border-right: 0;
}
.codebox { text-align: center; }
.codebox .qr-box { width: 112px; height: 112px; border: 3px solid #c9a45a; box-shadow: 0 0 0 1px #5a4326; }
.codebox p { margin-top: 10px; font-size: 15px; font-weight: bold; color: var(--gold); }
.servicetime { text-align: center; }
.servicetime p { display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--gold); }
.servicetime span { color: #cbb998; }
.tri { width: 0; height: 0; border: 5px solid transparent; }
.tri.l { border-right-color: var(--gold-d); border-left: 0; }
.tri.r { border-left-color: var(--gold-d); border-right: 0; }

.newsbox {
  display: flex; flex-direction: column; padding: 0 22px 10px; min-width: 0; color: #cbb998;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(216, 180, 106, .1), transparent 70%),
    linear-gradient(180deg, #241a12, #16100b);
}
.news-hd { display: flex; gap: 6px; border-bottom: 1px solid rgba(216, 180, 106, .2); }
.news-hd button {
  position: relative; height: 52px; padding: 0 18px; font-size: 15px; color: #a08c6c;
  transition: color .2s, text-shadow .2s;
}
.news-hd button:hover { color: var(--gold-l); }
.news-hd button.on { color: var(--gold-l); font-weight: bold; text-shadow: 0 0 12px rgba(255, 200, 100, .6); }
.news-hd button.on::after {
  content: ""; position: absolute; left: 6px; right: 6px; bottom: -1px; height: 2px;
  background: linear-gradient(90deg, transparent, #ffd889, transparent);
  box-shadow: 0 0 10px #ffb84a;
}
.tuijian {
  display: flex; align-items: center; gap: 10px; height: 32px; margin: 14px 0 8px;
  background: linear-gradient(90deg, rgba(210, 58, 42, .22), rgba(216, 180, 106, .05)); overflow: hidden;
  border: 1px solid rgba(210, 58, 42, .3);
}
.tuijian b {
  flex-shrink: 0; height: 100%; padding: 0 18px 0 12px; line-height: 32px;
  font-size: 14px; color: #fff; background: #d23a2a;
  clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}
.tuijian a { flex: 1; min-width: 0; font-size: 13px; color: #f0e2c4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tuijian a:hover { color: #ffd889; }
.tuijian em { font-style: normal; color: #ff6a4a; margin-left: 6px; font-family: Consolas, monospace; text-shadow: 0 0 8px rgba(255, 80, 40, .6); }
.news-bd { flex: 1; min-height: 0; overflow: hidden; }
.news-ul { display: none; }
.news-ul.on { display: block; animation: fade .35s ease; }
@keyframes fade { from { opacity: 0; } }
.news-ul li { display: flex; align-items: center; gap: 12px; height: 38px; border-bottom: 1px dashed rgba(216, 180, 106, .12); }
.news-ul li:last-child { border-bottom: 0; }
.news-ul a {
  position: relative; flex: 1; min-width: 0; padding-left: 12px; color: #cbb998; font-size: 13px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .2s, padding .2s;
}
.news-ul a::before {
  content: ""; position: absolute; left: 0; top: 50%; width: 5px; height: 5px; margin-top: -3px;
  background: var(--gold-d); transform: rotate(45deg); transition: background .2s, box-shadow .2s;
}
.news-ul a:hover { color: #ffe3a3; padding-left: 18px; }
.news-ul a:hover::before { background: #ffd889; box-shadow: 0 0 8px #ffb84a; }
.news-ul span { flex-shrink: 0; font-size: 12px; color: #7d6d55; font-family: Consolas, monospace; }
.news-ul .empty { justify-content: center; color: #7d6d55; }
.st { display: inline-block; margin-right: 8px; padding: 0 6px; font-style: normal; font-size: 12px; line-height: 18px; color: #8a7a62; border: 1px solid rgba(216, 180, 106, .25); border-radius: 2px; }
.st-soon { color: #fff; background: #d8a03a; border-color: #d8a03a; }
.st-hot { color: #fff; background: #d23a2a; border-color: #d23a2a; }

.focus { height: 100%; background: #000; }
.focus .slide a { position: relative; display: block; height: 100%; }
.focus .slide img { width: 100%; height: 100%; object-fit: cover; }
.slide-cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 8px 14px 26px;
  font-size: 13px; color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, .75));
}
.ph + .slide-cap { display: none; }

/* ---------- 职业介绍 ---------- */
.job { background: var(--bg); }
.job-stage {
  position: relative; overflow: hidden; padding: 50px 0 56px;
  background: linear-gradient(180deg, #d6c3a0 0%, #bba383 40%, #93795b 100%);
}
.job-bg { position: absolute; inset: 0; pointer-events: none; }
.job-bg .moon {
  position: absolute; left: 50%; top: 8%; width: 420px; height: 420px; max-width: 90vw;
  transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 250, 235, .85) 0%, rgba(255, 246, 225, .45) 45%, transparent 70%);
}
.job-bg svg { position: absolute; left: 0; bottom: 0; width: 100%; height: 58%; }

.job-slider { padding: 0 60px; }
.job-slider .sl-arrow { width: 46px; height: 90px; margin-top: -45px; opacity: .9; }
.job-slider .sl-arrow::before { width: 34px; height: 34px; border-width: 3px; border-color: #f2d58e; filter: drop-shadow(1px 1px 0 #6a4a1a); }
.job-slider .sl-arrow::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 22px; height: 22px;
  border-left: 1px solid #f2d58e; border-bottom: 1px solid #f2d58e;
}
.job-slider .sl-prev::after { transform: translate(0, -50%) rotate(45deg); }
.job-slider .sl-next::after { transform: translate(-100%, -50%) rotate(-135deg); }
.job-slider .sl-prev { left: 0; }
.job-slider .sl-next { right: 0; }
.job-slider .sl-dots { bottom: -36px; }
.job-slider .sl-dots button { background: rgba(80, 50, 20, .35); }
.job-slider .sl-dots button.on { background: #7a4f1a; }

.jobbox { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 40px; min-height: 440px; }
.jobinfo {
  max-width: 420px; justify-self: end; padding: 24px 26px;
  background: linear-gradient(135deg, rgba(255, 250, 238, .62), rgba(255, 246, 228, .38));
  border: 1px solid rgba(255, 255, 255, .6);
  box-shadow: 0 10px 30px rgba(60, 30, 0, .15);
}
.jobinfo .copy { font-size: 14px; line-height: 2; color: #3a2a1a; text-indent: 2em; }
.detail { margin-top: 26px; display: grid; gap: 10px; }
.detail p { display: flex; align-items: center; gap: 14px; color: #3a2a1a; font-size: 14px; }
.detail span {
  width: 84px; height: 28px; line-height: 28px; text-align: center; flex-shrink: 0;
  font-size: 13px; color: #fff; background: linear-gradient(180deg, #c7a35d, #9c7a3a);
  box-shadow: inset 0 0 0 1px rgba(255, 240, 200, .4);
}
.detail b { color: #7a4f1a; letter-spacing: 2px; font-size: 15px; }

.imgarea { position: relative; display: flex; justify-content: flex-start; padding-left: 70px; }
.job-frame {
  position: relative; width: 300px; height: 400px;
  background: rgba(255, 255, 255, .22);
  border: 1px solid rgba(255, 255, 255, .7);
  box-shadow: 0 20px 40px rgba(60, 30, 0, .25);
  display: grid; place-items: center; overflow: visible;
}
.job-frame::before {
  content: ""; position: absolute; inset: -10px 10px 10px -10px;
  border: 1px solid rgba(255, 255, 255, .45); pointer-events: none;
}
.job-frame img { width: 100%; height: 100%; object-fit: contain; object-position: bottom; }
.job-frame.has-img img { width: 120%; height: 115%; max-width: none; margin-top: -15%; }
.job-emblem { width: 58%; filter: drop-shadow(0 0 22px rgba(255, 200, 100, .8)); animation: float 4s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px); } }
.job-warrior { background: radial-gradient(circle at 50% 45%, rgba(200, 60, 30, .35), rgba(255, 255, 255, .18) 65%); }
.job-mage    { background: radial-gradient(circle at 50% 45%, rgba(60, 110, 230, .35), rgba(255, 255, 255, .18) 65%); }
.job-taoist  { background: radial-gradient(circle at 50% 45%, rgba(40, 150, 110, .35), rgba(255, 255, 255, .18) 65%); }
.job-name {
  position: absolute; left: 0; top: 4%; z-index: 2;
  font: 118px/1 var(--font-brush);
  background: linear-gradient(180deg, #ffe7a0, #f0b73c 55%, #d48a1c);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(2px 3px 0 rgba(120, 70, 10, .5));
}
.jobbox.active .job-name { animation: nameIn .8s ease both; }
.jobbox.active .jobinfo { animation: infoIn .8s ease both; }
@keyframes nameIn { from { opacity: 0; transform: translateY(-30px); } }
@keyframes infoIn { from { opacity: 0; transform: translateX(-30px); } }

/* ---------- 视频中心 ---------- */
.videobox { background: var(--bg); padding-bottom: 20px; }
.video-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 8px; }
.videokey .play-video { height: 100%; }
.videolist { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.videolist .play-video { aspect-ratio: 230 / 130; }
.play-video {
  position: relative; display: block; overflow: hidden;
  border: 1px solid #5a4632; background: #000;
}
.play-video img, .play-video .ph { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.play-video:hover img, .play-video:hover .ph { transform: scale(1.06); }
.play-video .ph-char { font-size: 54px; }
.videokey .ph { justify-content: flex-start; padding-top: 6%; }
.videokey .ph-char { font-size: 80px; }
.play-video .des {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 4px 8px 4px 28px; font-size: 12px; color: #eee;
  background: rgba(0, 0, 0, .6); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.play {
  position: absolute; left: 7px; bottom: 6px; z-index: 3; width: 16px; height: 16px;
  border: 1px solid #fff; border-radius: 50%;
}
.play::after {
  content: ""; position: absolute; left: 5px; top: 3px;
  border: 4px solid transparent; border-left: 6px solid #fff; border-right: 0;
}
.play-big {
  left: 50%; top: 50%; bottom: auto; width: 68px; height: 68px; margin: -34px 0 0 -34px;
  border-width: 2px; background: rgba(0, 0, 0, .25); transition: transform .2s, background .2s;
}
.play-big::after { left: 26px; top: 20px; border-width: 13px; border-left-width: 20px; }
.play-video:hover .play-big { transform: scale(1.1); background: rgba(200, 50, 30, .6); }
.videokey .des { padding: 8px 14px; font-size: 14px; text-align: center; }

/* ---------- 装备展示 ---------- */
.show { background: var(--bg); padding-bottom: 20px; }
.show-slider { max-width: 640px; margin: 0 auto; padding: 0 50px; }
.show-slider .sl-arrow::before { border-color: var(--gold); }
.show-slider .sl-prev { left: 0; }
.show-slider .sl-next { right: 0; }
.show-slider .sl-dots { position: static; margin-top: 14px; }
.equip {
  position: relative; padding: 0 0 22px;
  background: radial-gradient(ellipse at 50% 30%, #2a1f15, #120d08 75%);
  border: 2px solid #6d5330; outline: 1px solid #2c2014; outline-offset: -6px;
  box-shadow: 0 0 0 1px #000, 0 20px 40px rgba(0, 0, 0, .5);
}
.equip-hd {
  height: 36px; line-height: 36px; text-align: center;
  background: linear-gradient(180deg, #5a4127, #2c1f13);
  border-bottom: 1px solid #6d5330;
}
.equip-hd span { font-size: 15px; color: #f0d79c; letter-spacing: 4px; }
.equip-main { display: flex; gap: 26px; padding: 26px 30px 16px; align-items: center; }
.equip-icon {
  flex-shrink: 0; width: 160px; height: 160px; padding: 18px; display: grid; place-items: center;
  background: radial-gradient(circle, rgba(255, 190, 90, .25), transparent 70%), #0d0906;
  border: 2px solid var(--qc, #6d5330);
  box-shadow: inset 0 0 30px rgba(0, 0, 0, .8), 0 0 18px var(--qg, transparent);
}
.equip-icon svg, .equip-icon img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 0 10px rgba(255, 210, 120, .5)); }
.equip-info { flex: 1; min-width: 0; }
.equip-info h3 { display: flex; align-items: center; gap: 10px; font: 900 28px/1.3 var(--font-serif); color: var(--qc, #eee); }
.equip-info h3 em {
  font: normal 12px/20px var(--font-body); padding: 0 8px; color: #120d08;
  background: var(--qc, #eee); border-radius: 2px;
}
.equip-type { margin: 2px 0 12px; color: var(--muted); font-size: 13px; }
.equip-info table { width: 100%; font-size: 14px; }
.equip-info th { width: 84px; padding: 4px 0; text-align: left; font-weight: normal; color: #a58d6a; }
.equip-info td { padding: 4px 0; color: #8be36f; font-family: Consolas, var(--font-body); }
.equip-desc { margin: 0 30px; padding-top: 12px; border-top: 1px dashed #4a3a26; color: #c0a77c; font-size: 13px; font-style: italic; }
.q-normal { --qc: #e0d6c2; }
.q-rare   { --qc: #4aa3ff; --qg: rgba(74, 163, 255, .35); }
.q-epic   { --qc: #c07bff; --qg: rgba(192, 123, 255, .35); }
.q-legend { --qc: #ff9d2e; --qg: rgba(255, 157, 46, .45); }

/* ---------- 游戏截图 ---------- */
.jietu { background: var(--bg); padding-bottom: 60px; }
.jietu-slider { max-width: 1000px; margin: 0 auto; aspect-ratio: 1000 / 560; border: 1px solid #5a4632; box-shadow: 0 20px 40px rgba(0, 0, 0, .4); }
.jietu-slider .slide img { width: 100%; height: 100%; object-fit: cover; }
.jietu-slider .sl-arrow { width: 50px; height: 80px; margin-top: -40px; background: rgba(0, 0, 0, .35); }
.jietu-slider .sl-prev { left: 0; }
.jietu-slider .sl-next { right: 0; }

/* ---------- 页脚 ---------- */
.footer { padding: 34px 0; background: var(--bg-3); border-top: 1px solid #3a2c1e; }
.footer-inner { display: flex; align-items: center; gap: 40px; }
.footer-logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; padding-right: 40px; border-right: 1px solid #3a2c1e; }
.footer-logo i { width: 46px; height: 46px; font-size: 30px; }
.footer-logo span { font: 34px/1 var(--font-brush); color: var(--gold); letter-spacing: 3px; }
.copyright { font-size: 12px; line-height: 2; color: #8a7a62; }
.copyright b { color: #b59a6a; font-weight: normal; }
.copyright .beian a:hover { color: var(--gold); }
.copyright .beian span { margin-left: 24px; }

/* ---------- 右侧客服浮窗 ---------- */
.fixedbox {
  position: fixed; right: 12px; top: 50%; z-index: 90; transform: translateY(-50%);
  width: 140px;
  background: #1d1813; border: 1px solid #7a5f36; border-radius: 4px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
  animation: slideIn .6s ease both;
}
@keyframes slideIn { from { opacity: 0; transform: translate(60px, -50%); } }
.fb-toggle {
  position: absolute; left: -22px; top: 50%; width: 22px; height: 76px; margin-top: -38px;
  font-size: 12px; line-height: 1.3; color: #3a2610;
  background: linear-gradient(90deg, #c9a45a, #a4803d); border-radius: 4px 0 0 4px;
}
.fb-toggle i { display: block; margin: 3px auto 0; width: 14px; height: 14px; line-height: 12px; font-style: normal; border: 1px solid #3a2610; border-radius: 50%; }
.fb-body { padding: 12px 10px 0; text-align: center; font-size: 12px; color: #bba98a; }
.fb-title { color: var(--gold); font-size: 12px; margin-bottom: 8px; white-space: nowrap; }
.fb-body .qr-box { width: 100px; height: 100px; margin: 0 auto; border: 3px solid #3a2c1e; }
.fb-group { display: flex; align-items: center; justify-content: center; gap: 4px; margin: 10px 0 6px; }
.fb-group { white-space: nowrap; }
.fb-join { padding: 0 5px; line-height: 18px; color: #fff; background: #1e9fff; border-radius: 2px; }
.fb-join:hover { background: #3cb0ff; }
.fb-text p { line-height: 1.7; }
.fb-kefu {
  display: block; margin: 10px -2px 6px; height: 40px; line-height: 40px;
  font: 22px/40px var(--font-brush); color: #fff3cf; letter-spacing: 2px;
  background: linear-gradient(180deg, #f2a43a, #c8621a 60%, #8f3a0e);
  border: 1px solid #ffcf86; border-radius: 3px; text-shadow: 0 1px 2px #5a1f00;
}
.fb-kefu:hover { filter: brightness(1.1); }
.fb-top { display: block; width: 100%; padding: 8px 0 10px; color: #ddd; font-size: 13px; font-weight: bold; border-top: 1px solid #3a2c1e; }
.fb-top i { display: block; width: 0; height: 0; margin: 0 auto 2px; border: 6px solid transparent; border-top: 0; border-bottom-color: #ddd; }
.fb-top:hover { color: var(--gold); }
.fixed-open {
  position: fixed; right: 0; top: 50%; z-index: 90; transform: translateY(-50%);
  width: 30px; padding: 10px 0; font-size: 13px; line-height: 1.4; color: #3a2610;
  background: linear-gradient(90deg, #d8b46a, #a4803d); border-radius: 4px 0 0 4px;
}
.fixed-open i { display: block; font-style: normal; font-size: 18px; }

/* ---------- 手机底部栏 ---------- */
.mobile-bar { display: none; }

/* ---------- 弹窗 ---------- */
.modal { position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center; padding: 20px; visibility: hidden; opacity: 0; transition: opacity .25s, visibility .25s; }
.modal.open { visibility: visible; opacity: 1; }
.modal-mask { position: absolute; inset: 0; background: rgba(0, 0, 0, .78); }
.modal-box {
  position: relative; width: 100%; max-width: 620px; max-height: 82vh; overflow-y: auto;
  padding: 30px 30px 26px;
  background: linear-gradient(180deg, #2c2118, #1a130d); border: 1px solid #7a5f36; border-radius: 4px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .7);
  transform: translateY(16px); transition: transform .25s;
}
.modal.open .modal-box { transform: none; }
.modal-wide .modal-box { max-width: 900px; padding: 46px 16px 16px; }
.modal-close { position: absolute; right: 8px; top: 4px; width: 36px; height: 36px; font-size: 28px; color: var(--muted); }
.modal-close:hover { color: var(--gold); }
.modal-box h3 { padding-right: 28px; font: 900 20px/1.5 var(--font-serif); color: var(--gold-l); }
.modal-wide .modal-box h3 { position: absolute; left: 16px; top: 12px; font-size: 15px; }
.modal-meta { margin: 6px 0 16px; padding-bottom: 12px; color: var(--muted); font-size: 12px; border-bottom: 1px solid #4a3a26; }
.modal-body { margin-top: 12px; }
.modal-meta + .modal-body { margin-top: 0; }
.modal-body p { margin-bottom: 10px; line-height: 1.9; color: #d9cbb0; }
.modal-body b { color: #ffcf6e; }
.modal-body video { width: 100%; max-height: 70vh; background: #000; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; top: 50%; z-index: 400;
  max-width: 86vw; padding: 12px 22px; text-align: center;
  color: #fff3cf; background: rgba(20, 14, 8, .95); border: 1px solid #7a5f36; border-radius: 4px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .6);
  transform: translate(-50%, -40%); opacity: 0; visibility: hidden;
  transition: opacity .25s, transform .25s, visibility .25s;
}
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, -50%); }

/* ==========================================================
   窄屏 PC / 平板
   ========================================================== */
@media (max-width: 1280px) {
  .fixedbox { transform: translateY(-50%) scale(.9); transform-origin: right center; }
}

@media (max-width: 1100px) {
  .mainbox { grid-template-columns: 140px minmax(0, 1fr) 300px; }
  .slogan { font-size: 60px; }
}

@media (max-width: 992px) {
  .nav-toggle { display: block; }
  .tb-nav {
    position: fixed; top: var(--topbar-h); right: 0; bottom: 0; z-index: 101;
    width: 70%; max-width: 280px; flex-direction: column; gap: 0; padding: 8px 0;
    background: #17110c; border-left: 1px solid #4a3a26;
    transform: translateX(100%); transition: transform .3s ease; overflow-y: auto;
  }
  .tb-nav a { padding: 0 26px; line-height: 52px; font-size: 15px; border-bottom: 1px solid #2a2018; }
  .tb-nav a.active { background: linear-gradient(90deg, rgba(216, 180, 106, .18), transparent); }
  .tb-nav a.active::after { left: 0; right: auto; top: 0; width: 3px; height: 100%; }
  .nav-open .tb-nav { transform: none; }
  .nav-mask {
    display: block; position: fixed; inset: var(--topbar-h) 0 0 0; z-index: 99;
    background: rgba(0, 0, 0, .6); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
  }
  .nav-open .nav-mask { opacity: 1; visibility: visible; }

  .mainbox { grid-template-columns: minmax(0, 1fr) 300px; height: auto; }
  .left-code { display: none; }
  .newsbox { min-height: 320px; }
  .focus { height: 320px; }

  .jobbox { gap: 20px; }
  .imgarea { padding-left: 50px; }
  .job-frame { width: 250px; height: 340px; }
  .job-name { font-size: 96px; }

  .fixedbox, .fixed-open { display: none !important; }
}

/* ==========================================================
   手机
   ========================================================== */
@media (max-width: 768px) {
  :root { --topbar-h: 48px; }
  body { font-size: 14px; padding-bottom: calc(58px + var(--safe-bottom)); }
  .wrap { padding: 0 12px; }

  .banner { height: auto; min-height: 560px; height: 100svh; max-height: 720px; }
  .banner-role { right: -12%; height: 78%; max-width: 90%; opacity: .95; }
  .game-logo { left: 50%; top: 7%; transform: translateX(-50%); text-align: center; }
  .gl-main { font-size: 68px; }
  .game-logo img { max-width: 200px; max-height: 170px; margin: 0 auto; }
  .slogan-wrap { display: none; }
  .gamedown {
    left: 0; right: 0; top: auto; bottom: 30px; padding: 0 12px;
    grid-template-columns: 1fr 1fr auto; gap: 10px; align-items: stretch;
  }
  .dl-mobile, .btn-dl-gold { grid-column: auto; grid-row: 1; }
  .cadpa { grid-column: 3; grid-row: 1; width: 50px; align-self: center; }
  .cadpa b { font-size: 16px; line-height: 20px; }
  .cadpa em { font-size: 10px; white-space: nowrap; letter-spacing: -.5px; }
  .btn-dl { width: 100%; height: 52px; gap: 6px; }
  .btn-dl svg { width: 20px; height: 20px; }
  .btn-dl b { font-size: 18px; }
  .btn-dl small { font-size: 10px; }
  .dl-qr { display: none; }

  .title { padding: 30px 12px 20px; gap: 10px; }
  .title span { font-size: 26px; gap: 10px; letter-spacing: 2px; }
  .title span::before, .title span::after { width: 10px; height: 10px; }

  .mainbox-top { padding: 20px 0 0; }
  .mainbox { grid-template-columns: 1fr; gap: 12px; }
  .newsbox { min-height: 0; padding: 0 14px 6px; }
  .news-hd button { flex: 1; padding: 0 4px; height: 46px; font-size: 14px; }
  .news-bd { overflow: visible; }
  .focus { height: auto; aspect-ratio: 340 / 220; }

  .job-stage { padding: 30px 0 60px; }
  .job-slider { padding: 0; }
  .job-slider .sl-arrow { top: 170px; width: 36px; height: 60px; margin-top: -30px; }
  .job-slider .sl-arrow::before { width: 22px; height: 22px; }
  .job-slider .sl-arrow::after { width: 14px; height: 14px; }
  .job-slider .sl-dots { bottom: -40px; }
  .jobbox { grid-template-columns: 1fr; gap: 24px; min-height: 0; }
  .imgarea { order: -1; justify-content: center; padding-left: 0; }
  .job-frame { width: 230px; height: 310px; }
  .job-name { left: 50%; margin-left: -170px; top: 0; font-size: 76px; }
  .jobinfo { justify-self: stretch; max-width: none; padding: 16px; }
  .jobinfo .copy { font-size: 13px; line-height: 1.9; }
  .detail { margin-top: 14px; }
  .detail span { width: 72px; height: 26px; line-height: 26px; font-size: 12px; }

  .video-grid { grid-template-columns: 1fr; gap: 6px; }
  .videokey .play-video { height: auto; aspect-ratio: 16 / 9; }
  .videokey .ph-char { font-size: 80px; }
  .play-video .ph-char { font-size: 44px; }

  .show-slider { padding: 0; }
  .show-slider .sl-arrow { display: none; }
  .equip-main { flex-direction: column; gap: 16px; padding: 20px 18px 12px; text-align: center; }
  .equip-icon { width: 130px; height: 130px; }
  .equip-info h3 { justify-content: center; font-size: 24px; }
  .equip-info { width: 100%; }
  .equip-info th { width: 50%; text-align: right; padding-right: 14px; white-space: nowrap; }
  .equip-info td { text-align: left; }
  .equip-desc { margin: 0 18px; text-align: center; }

  .jietu { padding-bottom: 36px; }
  .jietu-slider .sl-arrow { width: 34px; height: 54px; margin-top: -27px; }
  .ph-title-lg { font-size: 44px; }

  .footer { padding: 24px 0; }
  .footer-inner { flex-direction: column; gap: 14px; text-align: center; }
  .footer-logo { padding: 0; border: 0; }
  .footer-logo span { font-size: 28px; }
  .copyright .beian span { display: block; margin: 0; }

  .modal { align-items: flex-end; padding: 0; }
  .modal-box { max-height: 86vh; padding: 26px 18px calc(22px + var(--safe-bottom)); border-radius: 10px 10px 0 0; transform: translateY(100%); }
  .modal-wide .modal-box { padding: 44px 0 var(--safe-bottom); }
  .modal-wide .modal-box h3 { left: 14px; right: 44px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

  .mobile-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
    display: grid; grid-template-columns: repeat(5, 1fr);
    height: calc(58px + var(--safe-bottom)); padding-bottom: var(--safe-bottom);
    background: rgba(18, 13, 9, .97); border-top: 1px solid #4a3a26;
    box-shadow: 0 -6px 20px rgba(0, 0, 0, .5);
  }
  .mobile-bar > a, .mobile-bar > button {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    font-size: 11px; color: var(--muted);
  }
  .mobile-bar i {
    width: 26px; height: 26px; display: grid; place-items: center;
    font: normal 15px/1 var(--font-brush); color: var(--gold);
    border: 1px solid #5a4632; border-radius: 50%;
  }
  .mobile-bar .mb-main { color: var(--gold); }
  .mobile-bar .mb-main i {
    width: 52px; height: 52px; margin-top: -26px; font-size: 26px; color: #fff;
    background: linear-gradient(180deg, #ff7356, #c4251a 60%, #8a120c);
    border: 2px solid #ffcf86; box-shadow: 0 0 16px rgba(220, 60, 30, .6);
  }

  .toast { top: auto; bottom: calc(86px + var(--safe-bottom)); transform: translate(-50%, 20px); }
  .toast.show { transform: translate(-50%, 0); }
}

@media (max-width: 360px) {
  .gl-main { font-size: 56px; }
  .btn-dl b { font-size: 16px; }
  .btn-dl svg { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
