:root {
  --bg: #090d0e;
  --panel: #121a1a;
  --panel2: #172120;
  --gold: #dfb95e;
  --gold-soft: #f0d88d;
  --gold-deep: #8e682a;
  --text: #eee6d4;
  --muted: #aab0a6;
  --dim: #8f978e;
  --line: rgba(225, 185, 94, 0.22);
  --red: #9e3f35;
  --serif: Georgia, "Microsoft YaHei", serif;
  --sans: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; color-scheme: dark; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
html:lang(en) { --serif: "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, "Microsoft YaHei", sans-serif; --sans: "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, "Microsoft YaHei", sans-serif; }
html:lang(ja) { --serif: Georgia, "Yu Mincho", "Hiragino Mincho ProN", serif; --sans: "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, system-ui, sans-serif; }
html:lang(ko) { --serif: Georgia, "Nanum Myeongjo", "Batang", serif; --sans: "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif; }
.lang { white-space: nowrap; }
body { margin: 0; background: radial-gradient(circle at 82% 0, #2b3734, #0a0e0f 52%) fixed, var(--bg); color: var(--text); font: 15px/1.75 var(--sans); }
a { color: #edc76f; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
.wrap { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
h1, h2, h3 { line-height: 1.3; }

/* 顶栏 */
.top { position: sticky; top: 0; z-index: 20; background: rgba(7, 11, 12, 0.92); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
.nav-row { display: flex; align-items: center; gap: 20px; min-height: 66px; }
.brand { display: flex; align-items: center; font-family: var(--serif); font-weight: bold; letter-spacing: 1px; color: #f0d27c; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.crest { display: inline-grid; place-items: center; width: 28px; height: 33px; margin-right: 9px; color: #1a1207; font-size: 15px; background: linear-gradient(135deg, #f2d77f, #8f6b2b); clip-path: polygon(50% 0, 94% 17%, 88% 76%, 50% 100%, 12% 76%, 6% 17%); }
.nav { display: flex; gap: 18px; margin-left: auto; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.nav a { color: #b9beb5; font-size: 13px; padding: 4px 0; }
.nav a:hover { color: #efca71; text-decoration: none; }
.nav a[aria-current="page"] { color: #efca71; border-bottom: 2px solid var(--gold); }
.lang { white-space: nowrap; border: 1px solid #9d7936; padding: 4px 11px; color: #9da49a; font-size: 12px; }
.lang a { color: #9da49a; }
.lang a[aria-current="true"] { color: #ecc970; font-weight: bold; }
.nav-toggle { display: none; padding: 5px 12px; border: 1px solid #9d7936; background: #101617; color: #f0d88d; font: 13px var(--sans); cursor: pointer; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* 首页横幅 */
.hero { display: flex; align-items: center; min-height: 560px; padding: 48px 0; background: linear-gradient(90deg, rgba(8, 13, 14, 0.94) 0%, rgba(8, 13, 14, 0.8) 42%, rgba(8, 13, 14, 0.25) 78%), url("../img/tpl/classes-key.jpg") center / cover; }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 32px; align-items: center; }
.eyebrow { color: #e5bd64; font-size: 12px; letter-spacing: 3px; text-transform: uppercase; }
.hero h1 { font-family: var(--serif); font-size: clamp(40px, 6.5vw, 72px); line-height: 1.1; letter-spacing: 3px; margin: 16px 0; }
.hero p { max-width: 570px; color: #c2c7bd; line-height: 1.9; }
.actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 24px; }
.btn { display: inline-block; padding: 12px 18px; font-size: 14px; border: 0; }
.btn:hover { text-decoration: none; filter: brightness(1.08); }
.primary { background: linear-gradient(135deg, #e4bf66, #966d2c); color: #1d1609; font-weight: bold; }
.secondary { border: 1px solid #647068; color: #d8ddd2; background: #101617; }
.login-note { display: inline-block; margin-top: 18px; padding: 6px 12px; border-left: 3px solid var(--gold); background: rgba(223, 185, 94, 0.08); color: #f0d88d; font-size: 13px; }

/* PVP 战场与技能轮播 */
.showcase { position: relative; height: 410px; overflow: hidden; border: 1px solid rgba(229, 189, 100, 0.38); background: radial-gradient(circle at 50% 45%, rgba(194, 80, 31, 0.28), transparent 45%), linear-gradient(135deg, #21130d, #090e0f 70%); box-shadow: 0 20px 60px #0009; }
.showcase-label { position: absolute; z-index: 3; top: 16px; left: 20px; color: #f1cc75; font: 600 11px var(--serif); letter-spacing: 2px; text-shadow: 0 1px 4px #000; }
.showcase-label b { display: block; margin-top: 4px; color: #f3e2b0; font: 700 21px var(--sans); letter-spacing: 1px; }
.slides { position: absolute; inset: 0; }
.slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 0.6s ease; }
.slide.is-active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: contain; display: block; padding: 70px 14px 66px; }
.slide figcaption { position: absolute; left: 20px; right: 20px; bottom: 10px; color: #e8dcc0; font-size: 13px; line-height: 1.4; text-shadow: 0 1px 4px #000; }
.slide figcaption b { color: var(--gold); font-family: var(--serif); margin-right: 6px; }
.showcase-caption { position: absolute; z-index: 3; right: 16px; bottom: 38px; color: #d0b77d; font-size: 11px; letter-spacing: 1.5px; }

/* 版本焦点条 */
.ticker { background: #141b1b; border-block: 1px solid var(--line); }
.ticker .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; min-height: 50px; padding: 8px 0; font-size: 13px; color: #c1c6bc; }
.m-pic { width: 104px; padding: 2px 8px !important; text-align: center; }
table.data td.m-pic ~ td { vertical-align: middle; }
/* 变身造型：头像卡与游戏造型图同样大小、同样边框（造型图垫深色底），整张表一致 */
.m-pic img { display: block; width: 70px; height: 96px; margin: 0 auto; object-fit: contain; border: 1px solid rgba(223, 185, 94, 0.35); background: radial-gradient(circle at 50% 62%, rgba(223, 185, 94, 0.14), transparent 70%), #141a1b; }
.m-card img { object-fit: cover; background: none; }
.rank-morphs { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin: 14px 0 10px; }
.rank-morph { margin: 0; padding: 12px 10px 10px; border: 1px solid rgba(229, 189, 100, 0.26); background: linear-gradient(180deg, rgba(36, 24, 16, 0.9), rgba(12, 15, 16, 0.95)); text-align: center; }
.rank-pair { display: flex; justify-content: center; gap: 8px; }
.rank-pair img { width: 88px; height: 121px; display: block; border: 1px solid rgba(229, 189, 100, 0.2); box-shadow: 0 6px 16px #0008; }
.rank-morph figcaption { margin-top: 8px; color: var(--gold); font-family: var(--serif); font-size: 15px; }
@keyframes online-pulse { 0% { box-shadow: 0 0 0 0 rgba(88, 224, 151, 0.55); } 70% { box-shadow: 0 0 0 7px rgba(88, 224, 151, 0); } 100% { box-shadow: 0 0 0 0 rgba(88, 224, 151, 0); } }
/* 标题后的绿色在线指示灯 */
.live-dot { display: inline-block; width: 10px; height: 10px; margin-left: 10px; border-radius: 50%; background: #58e097; vertical-align: middle; animation: online-pulse 2s infinite; }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }
.class-online ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; list-style: none; margin: 0; padding: 0; }
.class-online li { position: relative; display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 10px; padding: 8px 12px 12px 8px; background: linear-gradient(145deg, #1a2422, #111817); border: 1px solid var(--line); overflow: hidden; }
.class-online li img { width: 40px; height: 55px; object-fit: cover; border: 1px solid rgba(223, 185, 94, 0.3); }
.class-online li span { color: #f0d382; font-family: var(--serif); font-size: 15px; }
.class-online li b { color: #e8c46d; font-family: var(--serif); font-size: 20px; }
.class-online .bar { position: absolute; left: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, #d8ae54, #8e682a); }
@media (max-width: 640px) { .class-online ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 340px) { .class-online ul { grid-template-columns: 1fr; } }
.badge { background: var(--red); color: #fff; font-size: 11px; font-weight: bold; padding: 4px 8px; white-space: nowrap; }

/* 通用区块 */
.block { padding: 56px 0 0; }
main > .block:last-child { padding-bottom: 64px; }
.section-top { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.section-top h2 { margin: 0; font-size: 25px; color: var(--gold-soft); font-family: var(--serif); }
.section-top p { margin: 0; color: var(--dim); font-size: 13px; max-width: 640px; }
.sub-title { margin: 32px 0 12px; color: var(--gold-soft); font-size: 19px; font-family: var(--serif); }
.note { color: var(--dim); font-size: 13px; }
.more { font-size: 13px; }
.panel { padding: 20px 22px; background: linear-gradient(145deg, #182220, #111817); border: 1px solid var(--line); margin-top: 16px; }
.panel h2, .panel h3 { margin-top: 0; color: var(--gold-soft); font-family: var(--serif); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; }

/* 页面横幅 */
/* 页面横幅：只用两张无文字的高清场景图，左侧加深、底部渐隐到页面底色 */
.page-hero { position: relative; display: flex; align-items: center; min-height: 300px; padding: 64px 0 52px; border-bottom: 1px solid var(--line); background:
  linear-gradient(180deg, rgba(9, 13, 14, 0) 55%, var(--bg) 100%),
  linear-gradient(90deg, rgba(9, 13, 14, 0.96) 0%, rgba(9, 13, 14, 0.78) 40%, rgba(9, 13, 14, 0.18) 100%),
  var(--hero-img) var(--hero-pos, center 40%) / cover no-repeat, var(--bg); }
.page-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: linear-gradient(90deg, transparent, rgba(223, 185, 94, 0.7), transparent); }
.page-hero h1 { margin: 12px 0 8px; font-family: var(--serif); font-size: clamp(32px, 5vw, 50px); letter-spacing: 2px; text-shadow: 0 2px 10px #000; }
.page-hero p { margin: 0; max-width: 680px; color: #c2c7bd; }
.hero-classes, .hero-features, .hero-guide, .hero-news, .hero-download { --hero-img: url("../img/tpl/classes-key.jpg"); }
.hero-gear, .hero-dolls, .hero-dragons, .hero-server { --hero-img: url("../img/tpl/dragon-bg.jpg"); --hero-pos: center 45%; }

/* 攻略中心入口 */
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.portal { display: block; min-height: 140px; padding: 20px; background: linear-gradient(145deg, #1d2826, #111819); border: 1px solid var(--line); color: var(--text); transition: transform 0.2s, border-color 0.2s; }
.portal:hover { transform: translateY(-4px); border-color: #c5a052; text-decoration: none; }
.portal i { font-style: normal; color: #e5bf68; font-size: 26px; }
.portal b { display: block; margin: 12px 0 4px; font-size: 17px; }
.portal small { color: #9fa69d; }

/* 版本介绍 */
.version { margin-top: 56px; padding: 56px 0; background: #101615; border-block: 1px solid var(--line); }
.version-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 30px; align-items: stretch; }
.version-title { font-family: var(--serif); font-size: 40px; color: #e5c16c; margin: 6px 0; }
.version p { color: #b1b8ae; }
.facts { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.facts li { padding-left: 18px; position: relative; color: #d0d5cb; }
.facts li::before { content: "◆"; position: absolute; left: 0; top: 2px; color: #d8ae54; font-size: 10px; }
.update-card { padding: 26px; background: linear-gradient(145deg, #202722, #131a19); border-top: 3px solid var(--gold); }
.update-card span { color: #978951; font-size: 12px; letter-spacing: 2px; }
.update-card h3 { margin: 8px 0; color: #f1d68a; font-size: 22px; }

/* 公告 */
.news-list { list-style: none; margin: 0; padding: 0; }
.news-list li { display: flex; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line); }
.news-list li:first-child { border-top: 0; }
.news-list time, .news-item time { color: var(--dim); font-size: 13px; white-space: nowrap; }
.news-item { margin-top: 16px; padding: 20px 24px; background: linear-gradient(145deg, #182220, #111817); border: 1px solid var(--line); scroll-margin-top: 90px; }
.news-item:target { border-color: var(--gold); }
.news-item h2 { margin: 0 0 4px; font-size: 20px; }

/* 图集 */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.gallery-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.shot { margin: 0; background: #101616; border: 1px solid var(--line); overflow: hidden; }
.shot img { width: 100%; height: 220px; object-fit: contain; display: block; background: #050707; }
.gallery-tall .shot img { height: 420px; object-fit: contain; }
.gallery-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gallery-4 .shot img { height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.gallery-compare .shot img { height: 300px; }
.shot figcaption { padding: 14px 16px; }
.shot b { color: #efd281; }
.shot p { margin: 6px 0 0; color: #9da49a; font-size: 13px; line-height: 1.6; }
.feature-img { margin: 0 0 16px; border: 1px solid var(--line); background: #070a0b; }
.feature-img img { display: block; width: 100%; height: auto; }
.feature-img figcaption { padding: 8px 12px; color: var(--dim); font-size: 12px; }

/* 卡片 */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { padding: 18px 20px; background: linear-gradient(145deg, #1a2422, #111817); border: 1px solid var(--line); border-top: 2px solid rgba(223, 185, 94, 0.55); }
.card h3 { margin: 0 0 6px; color: #f0d382; font-size: 18px; }
.card p { margin: 0 0 8px; color: #b8beb4; font-size: 14px; }
.card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.card-head h3 { margin: 0; }
.card-head small { color: #c9b27a; font-size: 12px; }
.card-icon { width: 48px; height: 48px; object-fit: contain; flex: none; border: 1px solid rgba(223, 185, 94, 0.45); background: #0b0f10; padding: 3px; }
.card-list { margin: 8px 0 0; padding-left: 18px; color: #d3d7ce; font-size: 13px; }
.card-list li { margin: 4px 0; }
.card-list b { color: #efd281; font-weight: 600; }

/* 下载 */
.dl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; }
.dl-card { display: flex; flex-direction: column; gap: 8px; padding: 20px; background: linear-gradient(145deg, #1a2422, #111817); border: 1px solid var(--line); border-top: 2px solid rgba(223, 185, 94, 0.55); }
.dl-card header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.dl-card h3 { margin: 0; color: #f0d382; font-size: 19px; font-family: var(--serif); }
.dl-card p { margin: 0; color: #b8beb4; font-size: 14px; }
.dl-card > .btn { margin-top: auto; align-self: flex-start; }
.dl-meta { color: var(--dim) !important; font-size: 12px !important; }
.lang-tag { display: inline-block; padding: 2px 9px; border: 1px solid rgba(223, 185, 94, 0.45); color: #f0d88d; font-size: 12px; white-space: nowrap; }
.btn.soon { background: #1b2220; border: 1px dashed #5d6a63; color: #8f978e; cursor: default; }
.btn.soon:hover { filter: none; }
.dl-packs { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 8px; }
.dl-packs li { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.dl-packs .btn { padding: 6px 12px; font-size: 13px; }
/* 武器与戒指 */
.weapons, .rings { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.rings { grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); }
.weapon, .ring { padding: 18px; background: linear-gradient(150deg, #1c2624, #0f1515); border: 1px solid var(--line); }
.weapon.tier-mythic { background: linear-gradient(150deg, #2a1d2b, #121014); border-color: rgba(201, 132, 236, 0.35); }
.weapon header, .ring header { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 10px; }
.weapon header > div, .ring header > div { flex: 1; min-width: 0; }
.w-icon { width: 64px; height: 64px; object-fit: contain; flex: none; border: 1px solid rgba(223, 185, 94, 0.45); background: #0a0d0e; padding: 4px; }
.w-icon-empty { display: inline-block; }
.weapon h3, .ring h3 { margin: 2px 0; color: #f3d68a; font-size: 18px; }
.weapon small, .ring small { color: var(--dim); font-size: 12px; }
.kicker { color: #c9b27a; font-size: 11px; letter-spacing: 2px; }
.grade { align-self: flex-start; font-size: 11px; padding: 2px 8px; border: 1px solid #b08a3c; color: #e5c16c; white-space: nowrap; }
.grade-mythic { border-color: #b77fe0; color: #dcb0ff; }
.w-stats { margin: 6px 0; font-size: 14px; color: #d3d7ce; }
.w-stats b { color: #f0d88d; margin-right: 6px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 8px 0; padding: 0; }
.tags li { font-size: 12px; padding: 2px 8px; background: rgba(223, 185, 94, 0.1); border: 1px solid rgba(223, 185, 94, 0.25); color: #e3cf9c; }
.w-classes, .ring-base { font-size: 13px; color: #c9cfc4; margin: 6px 0; }
.weapon p:last-child { color: #9da49a; font-size: 13px; margin-bottom: 0; }

/* 表格 */
.table-wrap { overflow-x: auto; }
table.data, table.enchant { width: 100%; border-collapse: collapse; font-size: 13px; }
table.data th, table.data td, table.enchant th, table.enchant td { padding: 8px 10px; text-align: left; border-bottom: 1px solid rgba(225, 185, 94, 0.14); vertical-align: top; }
table.data th, table.enchant th { color: #e5c16c; font-weight: 600; background: rgba(223, 185, 94, 0.07); }
table.enchant td:first-child { color: #f0d88d; white-space: nowrap; width: 48px; }
table.rates th { width: 40%; color: var(--muted); font-weight: 400; background: none; }

/* 娃娃 */
.tiers { display: grid; gap: 14px; }
.tier { padding: 16px 18px; background: #121a1a; border: 1px solid var(--line); }
.tier h3 { margin: 0 0 10px; color: #f0d382; font-family: var(--serif); }
.icon-list { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.icon-list li { display: flex; flex-direction: column; align-items: center; width: 92px; font-size: 12px; color: #d3d7ce; text-align: center; }
.icon-list img { width: 64px; height: 64px; object-fit: contain; background: #0a0d0e; border: 1px solid rgba(223, 185, 94, 0.3); padding: 3px; margin-bottom: 4px; }
.cards .card-head .card-icon[src*="doll6-"] { width: 72px; height: 72px; }

/* 首页下半 */
.lower { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 26px; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; }
.stat { padding: 15px; border: 1px solid rgba(225, 185, 94, 0.17); background: #141b1a; display: flex; flex-direction: column-reverse; }
.stat span { color: #9fa69d; font-size: 12px; }
.stat { color: #e8c46d; font-family: var(--serif); font-size: 18px; }
.doll { padding: 26px; background: linear-gradient(145deg, #202723, #111817); border: 1px solid var(--line); }
.doll h3 { margin: 0; color: #f0d382; font-size: 22px; }
.doll p, .doll ul { color: #b8beb4; font-size: 14px; }

/* 新手指南提示 */
.callout { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border: 1px solid #b08a3c; background: linear-gradient(135deg, rgba(223, 185, 94, 0.14), rgba(18, 26, 26, 0.9)); }
.callout b { color: #f3d68a; font-size: 18px; }
.callout p { margin: 4px 0 0; color: #d3d7ce; }

/* 常见问题 */
.faq { margin: 0; }
.faq dt { margin-top: 14px; color: #f0d382; font-weight: bold; }
.faq dt:first-child { margin-top: 0; }
.faq dd { margin: 4px 0 0; color: #b8beb4; }

/* 页脚 */
.foot { margin-top: 0; padding: 36px 0; background: #0b1011; border-top: 1px solid var(--line); color: var(--dim); font-size: 13px; }
.foot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: end; }
.foot h2 { margin: 0 0 8px; color: var(--gold-soft); font-size: 17px; font-family: var(--serif); }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot strong { color: var(--text); font-size: 16px; }
.foot li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 8px 0; }
.join-btn { display: inline-block; padding: 7px 14px; color: #fff; font-size: 13px; font-weight: bold; border-radius: 4px; }
.join-btn:hover { text-decoration: none; filter: brightness(1.1); }
.join-qq { background: linear-gradient(135deg, #2bb4f5, #1677d8); }
.join-discord { background: linear-gradient(135deg, #7a85ff, #5865f2); }
.copy-btn { padding: 6px 12px; border: 1px solid #647068; background: #101617; color: #d8ddd2; font: 13px var(--sans); cursor: pointer; border-radius: 4px; }
.copy-btn:hover { border-color: var(--gold); color: var(--gold-soft); }
.copyright { margin: 0; color: var(--dim); font-size: 12px; text-align: right; }
.ch-join .copyright { margin-top: 22px; text-align: center; }

@media (max-width: 960px) {
  .nav-row { flex-wrap: wrap; gap: 6px 16px; padding: 10px 0; }
  .lang { margin-left: auto; }
  .nav { order: 3; flex-basis: 100%; flex-wrap: wrap; gap: 4px 16px; margin-left: 0; overflow: visible; white-space: normal; }
  .hero-inner, .version-grid, .lower, .split, .foot-grid { grid-template-columns: 1fr; }
  .weapons { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot .copyright { text-align: left; }
}

@media (max-width: 640px) {
  .js-nav .nav-toggle { display: inline-block; }
  .js-nav .nav { display: none; }
  .js-nav.nav-open .nav { display: flex; padding-bottom: 6px; }
  .hero { min-height: 0; padding: 36px 0; }
  .showcase-caption { display: none; }
  .slide img { padding-bottom: 48px; }
  .showcase { height: 300px; }
  .weapons, .cards-2, .cards-3, .gallery, .gallery-2, .grid4, .stats { grid-template-columns: 1fr; }
  .rings { grid-template-columns: 1fr; }
  .gallery-tall .shot img { height: auto; }
  .news-list li { flex-direction: column; gap: 0; }
  .icon-list li { width: 76px; }
}

@media (prefers-reduced-motion: reduce) {
  .slide { transition: none; }
  .portal { transition: none; }
}

/* 影片：点击播放后才加载 YouTube */
.yt { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid var(--line); background: #050708; }
.yt img { width: 100%; height: 100%; object-fit: cover; opacity: 0.55; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 14px 26px; border: 1px solid #e4bf66; border-radius: 40px; background: rgba(10, 12, 12, 0.78); color: #f0d88d; font: bold 15px var(--sans); cursor: pointer; }
.yt-play:hover { background: linear-gradient(135deg, #e4bf66, #966d2c); color: #1d1609; }

/* 滚动介绍页：整屏一章，滚动时吸附到下一章；章节进入画面时背景缓慢拉近、文字依次浮现 */
.story-page { scroll-snap-type: y mandatory; }
.story-body { background: #07090a; }
.story-top { position: fixed; inset: 0 0 auto; z-index: 30; display: flex; align-items: center; gap: 16px; padding: 12px clamp(16px, 3vw, 36px); background: linear-gradient(180deg, rgba(5, 7, 8, 0.88), rgba(5, 7, 8, 0)); }
.story-top .lang { margin-left: auto; background: rgba(5, 7, 8, 0.5); }
.story-top .btn { padding: 8px 18px; }
.story-nav { position: fixed; left: clamp(14px, 2.4vw, 36px); top: 50%; z-index: 25; transform: translateY(-50%); display: grid; gap: 2px; border-left: 1px solid rgba(225, 185, 94, 0.25); }
.story-nav a { position: relative; display: block; padding: 7px 0 7px 18px; color: #8f978e; font-size: 13px; letter-spacing: 1px; text-shadow: 0 1px 4px #000; transition: color 0.3s; }
.story-nav a::before { content: ""; position: absolute; left: -4px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: #3a403c; transition: transform 0.3s, background 0.3s, box-shadow 0.3s; }
.story-nav a:hover, .story-nav a[aria-current="true"] { color: #f0d27c; text-decoration: none; }
.story-nav a[aria-current="true"]::before { background: #e8b84f; box-shadow: 0 0 10px 2px rgba(232, 184, 79, 0.7); transform: scale(1.4); }

.ch { position: relative; isolation: isolate; display: flex; min-height: 100vh; min-height: 100svh; padding: 96px 0 72px; overflow: hidden; scroll-snap-align: start; background: radial-gradient(ellipse at 70% 30%, rgba(158, 63, 53, 0.16), transparent 60%), #07090a; }
.ch::after { content: ""; position: absolute; inset: auto 0 0; z-index: -1; height: 28%; background: linear-gradient(0deg, #07090a, transparent); pointer-events: none; }
.ch-classes { background: radial-gradient(ellipse at 50% 70%, rgba(223, 185, 94, 0.14), transparent 60%), #07090a; }
.ch-gear { background: radial-gradient(ellipse at 50% 60%, rgba(194, 80, 31, 0.22), transparent 62%), #07090a; }
.ch-media { position: absolute; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.ch-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; max-width: none; object-fit: cover; transform: scale(1.12); transition: transform 2.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.ch.is-in .ch-bg { transform: scale(1); }
.ch-dim { opacity: 0.16; filter: blur(2px) saturate(0.7); }
.ch-flip { transform: scale(1.12) scaleX(-1); }
.ch.is-in .ch-flip { transform: scaleX(-1); }
.ch-video { opacity: 0; transition: opacity 1.2s ease, transform 2.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.ch-video.is-playing { opacity: 1; }
.ch-inner { width: min(1100px, calc(100% - 300px)); margin: auto; }
.ch-kicker { margin: 0 0 10px; color: #c9a24f; font-size: 13px; letter-spacing: 4px; }
.ch-title { margin: 0 0 18px; font-family: var(--serif); font-size: clamp(28px, min(4.4vw, 7vh), 58px); line-height: 1.2; letter-spacing: 2px; color: #f3dc98; background: linear-gradient(100deg, #d9a94b 0%, #f7e3a6 30%, #fffbe9 38%, #f7e3a6 46%, #c99236 70%, #d9a94b 100%); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.7)); }
.ch.is-in .ch-title { animation: title-shine 6s 0.8s ease-in-out infinite; }
@keyframes title-shine { 0% { background-position: 100% 0; } 55%, 100% { background-position: 0 0; } }
.ch-text { max-width: 640px; margin: 0; color: #d9d2c1; font-size: 16px; line-height: 1.9; text-shadow: 0 1px 6px #000; }
.ch-more { display: inline-block; margin-top: 22px; color: #edc76f; letter-spacing: 1px; }
.js-story .ch-inner > * { opacity: 0; transform: translateY(36px); transition: opacity 0.9s ease, transform 1s cubic-bezier(0.2, 0.7, 0.2, 1); }
.js-story .ch.is-in .ch-inner > * { opacity: 1; transform: none; }
.ch-inner > :nth-child(2) { transition-delay: 0.12s; }
.ch-inner > :nth-child(3) { transition-delay: 0.24s; }
.ch-inner > :nth-child(4) { transition-delay: 0.38s; }
.ch-inner > :nth-child(5) { transition-delay: 0.52s; }
.ch-inner > :nth-child(6) { transition-delay: 0.66s; }

.ch-cover::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, transparent 30%, rgba(5, 7, 8, 0.82) 72%); }
.ch-cover .ch-inner { width: min(600px, 44vw); margin: auto 7vw auto auto; }
.ch-cover .ch-title { font-size: clamp(34px, min(5.4vw, 9vh), 72px); }
@media (max-height: 700px) { .ch { padding: 80px 0 56px; } }
.embers { position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: radial-gradient(2px 2px at 12% 88%, #ff9a3c, transparent), radial-gradient(1.5px 1.5px at 34% 76%, #ffb04d, transparent), radial-gradient(2px 2px at 58% 94%, #ff7a2a, transparent), radial-gradient(1px 1px at 71% 82%, #ffd27a, transparent), radial-gradient(2.5px 2.5px at 86% 70%, #ff8a33, transparent), radial-gradient(1.5px 1.5px at 46% 64%, #ffb04d, transparent); animation: embers 7s linear infinite; }
.ch-join .embers { animation-duration: 9s; }
@keyframes embers { 0% { transform: translateY(12%); opacity: 0; } 15% { opacity: 1; } 100% { transform: translateY(-38%); opacity: 0; } }
.scroll-hint { position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); color: #cdbb8a; font-size: 12px; letter-spacing: 3px; text-align: center; }
.scroll-hint:hover { text-decoration: none; color: #f0d27c; }
.scroll-hint::after { content: ""; display: block; width: 12px; height: 12px; margin: 8px auto 0; border-right: 2px solid #e2b65a; border-bottom: 2px solid #e2b65a; animation: hint 1.6s ease-in-out infinite; }
@keyframes hint { 0%, 100% { transform: translateY(0) rotate(45deg); opacity: 0.4; } 50% { transform: translateY(8px) rotate(45deg); opacity: 1; } }

.hd-compare { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; max-width: 125vh; margin-top: 24px; }
.hd-card { margin: 0; border: 1px solid var(--line); background: rgba(12, 17, 18, 0.8); }
.hd-card figcaption { padding: 7px 10px; border-bottom: 1px solid var(--line); color: #f0d27c; font-size: 13px; letter-spacing: 1px; }
.hd-card div { display: grid; grid-template-columns: 1fr 1fr; }
.hd-card img { display: block; width: 100%; height: auto; }
.hd-card img + img { border-left: 1px solid rgba(232, 184, 79, 0.5); }
.hd-card p { display: grid; grid-template-columns: 1fr 1fr; margin: 0; padding: 5px 0; color: var(--muted); font-size: 12px; text-align: center; letter-spacing: 1px; }
.hd-card p span + span { color: #f0d27c; }
.story-classes { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 10px; margin: 30px 0 0; padding: 0; list-style: none; }
.story-classes li { text-align: center; }
.story-classes img { display: block; width: 100%; aspect-ratio: 80 / 110; object-fit: contain; border: 1px solid var(--line); background: radial-gradient(circle at 50% 62%, rgba(232, 184, 79, 0.2), transparent 70%), #0c1112; transition: transform 0.3s, border-color 0.3s; }
.story-classes li:hover img { transform: translateY(-6px); border-color: #e2b65a; }
.story-classes span { display: block; margin-top: 8px; color: #d9d2c1; font-size: 13px; }
.story-gear { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 12px; margin: 30px 0 0; padding: 0; list-style: none; }
.story-gear li { padding: 14px 4px 10px; text-align: center; border: 1px solid var(--line); background: rgba(12, 17, 18, 0.72); }
.story-gear img { width: 64px; height: 64px; object-fit: contain; }
.story-gear span { display: block; margin-top: 8px; color: #e6d6a8; font-size: 13px; line-height: 1.4; }
.story-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 30px; }
.story-stat { padding: 22px 10px; text-align: center; border: 1px solid var(--line); background: rgba(12, 17, 18, 0.75); }
.story-stat b { display: block; font-family: var(--serif); font-size: clamp(28px, 3.4vw, 46px); line-height: 1.15; color: #f0d27c; }
.story-stat span { display: block; margin-top: 6px; color: var(--muted); font-size: 13px; letter-spacing: 1px; }
.story-class-online { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; }
.story-class-online b { color: #7ee2a8; font-family: var(--serif); font-size: 15px; }
.story-class-online i { display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; background: #58e097; vertical-align: 1px; animation: online-pulse 2s infinite; }
.ch-join { text-align: center; }
.ch-join .ch-inner { max-width: 760px; }
.ch-join .ch-text { margin: 0 auto; }
.ch-join .actions { justify-content: center; }
.story-community { display: grid; justify-items: center; gap: 10px; margin: 24px 0 0; padding: 0; color: var(--muted); list-style: none; }
.story-community li { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; }
.story-community strong { color: var(--text); }

/* 老兵回归 直升 90：左边文字与新手礼物，右边金色 Lv.90 与浮动的直升药水 */
.ch-event { background: radial-gradient(ellipse at 76% 46%, rgba(170, 90, 220, 0.24), transparent 52%), radial-gradient(ellipse at 18% 82%, rgba(223, 185, 94, 0.12), transparent 60%), #07090a; }
.ch-event .ch-inner { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 40px; align-items: center; }
.gifts-title { margin: 24px 0 12px; color: #f0d27c; font-size: 15px; font-weight: normal; letter-spacing: 2px; }
.story-gifts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.gift { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); background: rgba(12, 17, 18, 0.72); color: #e6d6a8; font-size: 13px; line-height: 1.4; }
.gift img { flex: none; width: 44px; height: 44px; object-fit: contain; }
.gift small { color: var(--muted); }
.gift-star { border-color: rgba(200, 120, 255, 0.7); box-shadow: 0 0 18px rgba(180, 100, 240, 0.25); color: #f3e3ff; font-weight: bold; }
.ch-event .actions { margin-top: 22px; }
.event-badge { position: relative; text-align: center; line-height: 1; }
.event-lv { margin-right: 6px; font-family: var(--serif); font-size: clamp(26px, min(3vw, 5vh), 44px); color: #e8c46a; vertical-align: top; }
.event-90 { display: inline-block; font-family: var(--serif); font-size: clamp(110px, min(16vw, 30vh), 240px); color: #f0d27c; background: linear-gradient(170deg, #fff6d6, #e8bd5a 45%, #8e5a1e); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(0 6px 30px rgba(232, 184, 79, 0.35)); }
.event-badge img { position: absolute; left: 50%; bottom: -12%; width: clamp(76px, min(9vw, 16vh), 128px); transform: translateX(-125%); filter: drop-shadow(0 0 24px rgba(190, 110, 255, 0.8)); animation: potion-float 3s ease-in-out infinite; }
@keyframes potion-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }

/* 宽屏翻页（js-flip，脚本判断屏幕后加上）：章节叠在同一屏，一次滑入一整页；内容比屏幕高时在章节里滚 */
.js-flip, .js-flip body { height: 100%; overflow: hidden; }
.js-flip.story-page { scroll-snap-type: none; }
.js-flip .story { position: fixed; inset: 0; overflow: hidden; }
.js-flip .ch { position: absolute; inset: 0; min-height: 0; overflow-x: hidden; overflow-y: auto; scrollbar-width: none; visibility: hidden; transform: translateY(100%); transition: transform 0.8s cubic-bezier(0.65, 0, 0.35, 1), visibility 0s 0.8s; }
.js-flip .ch::-webkit-scrollbar { display: none; }
.js-flip .ch.is-above { transform: translateY(-100%); }
.js-flip .ch.is-active { visibility: visible; transform: none; transition: transform 0.8s cubic-bezier(0.65, 0, 0.35, 1), visibility 0s; }
.js-flip .ch.no-anim, .flip-instant .ch, .flip-instant .ch.is-active { transition: none; }
.js-flip .ch-inner > * { transition-delay: 0.3s; }
.js-flip .ch-inner > :nth-child(2) { transition-delay: 0.42s; }
.js-flip .ch-inner > :nth-child(3) { transition-delay: 0.54s; }
.js-flip .ch-inner > :nth-child(4) { transition-delay: 0.68s; }
.js-flip .ch-inner > :nth-child(5) { transition-delay: 0.82s; }
.js-flip .ch-inner > :nth-child(6) { transition-delay: 0.96s; }

@media (max-width: 960px) {
  .story-nav { display: none; }
  .ch-inner { width: calc(100% - 64px); }
  .story-classes { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .story-gear { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .ch-event .ch-inner { grid-template-columns: 1fr; gap: 12px; }
  .event-badge { order: -1; }
  .event-90 { font-size: clamp(90px, 18vw, 150px); }
}
@media (max-width: 640px) {
  .story-page { scroll-snap-type: y proximity; }
  .story-top { gap: 10px; padding: 10px 16px; }
  .story-top .brand-name { display: none; }
  .story-top .lang { padding: 3px 8px; }
  .story-top .btn { padding: 7px 12px; font-size: 13px; }
  .ch { padding: 84px 0 64px; }
  .ch-inner, .ch-cover .ch-inner { width: calc(100% - 32px); margin: auto; }
  .ch-cover { padding-bottom: 110px; }
  .ch-cover .ch-inner { margin: auto auto 0; }
  .ch-cover .ch-bg { object-position: 28% center; }
  .ch-cover::before { background: linear-gradient(0deg, rgba(5, 7, 8, 0.92) 30%, transparent 75%); }
  .ch-text { font-size: 15px; }
  .hd-compare { grid-template-columns: 1fr; }
  .story-classes, .story-gear { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .story-gifts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .story-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .story-page { scroll-snap-type: none; }
  .ch-bg, .ch.is-in .ch-bg { transition: none; transform: none; }
  .ch-flip, .ch.is-in .ch-flip { transform: scaleX(-1); }
  .ch.is-in .ch-title, .embers, .scroll-hint::after, .event-badge img, .story-class-online i { animation: none; }
}
