/* Wall of Embers 官网样式。配色取自游戏：炭褐底、金色描边、余烬橙和出征红。不引外部字体，全部用系统字体。 */
:root {
  --bg: #170e08; --bg2: #24160d; --panel: #2c1c11; --line: #c99a3e; --gold: #f6c453; --ember: #ff7a2a; --red: #d9472b;
  --text: #f3e6cf; --dim: #c9b693;
  --serif: "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Noto Serif SC", "Songti SC", "STKaiti", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
  --top: 64px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--top) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.65 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: #fff1c4; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.2; margin: 0; color: #ffe9a0; text-wrap: balance; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: #1a0f08; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.wrap-narrow { width: min(760px, 100% - 40px); }

/* 按钮 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4em; font: 700 16px/1 var(--sans); padding: 13px 22px; border-radius: 12px; border: 2px solid #2b1d14; color: #fff; text-shadow: 0 1px 0 rgba(40, 20, 10, .7); white-space: nowrap; }
.btn-play { background: linear-gradient(#e86a43, #a52c1b); box-shadow: 0 4px 0 #5e1509, inset 0 1px 0 rgba(255, 255, 255, .35); transition: transform .12s, box-shadow .12s; }
.btn-play:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 6px 0 #5e1509, 0 0 26px rgba(255, 122, 42, .55), inset 0 1px 0 rgba(255, 255, 255, .35); }
.btn-play:active { transform: translateY(2px); box-shadow: 0 2px 0 #5e1509; }
.btn-big { font-size: 21px; padding: 18px 34px; border-radius: 14px; }
.btn-store { background: linear-gradient(#4a3a2e, #2a1f18); box-shadow: 0 4px 0 #120b07, inset 0 1px 0 rgba(255, 255, 255, .18); }
.btn-store.is-soon { color: var(--dim); cursor: default; }
.btn-small { font-size: 14px; padding: 8px 14px; background: linear-gradient(#f6cf5a, #c48a1e); color: #2b1d14; text-shadow: none; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.cta-center { justify-content: center; margin-top: 34px; }

/* 顶栏 */
.top { position: sticky; top: 0; z-index: 50; height: var(--top); display: flex; align-items: center; gap: 18px; padding: 0 max(20px, env(safe-area-inset-left)); background: rgba(23, 14, 8, .9); backdrop-filter: blur(8px); border-bottom: 2px solid rgba(201, 154, 62, .45); }
.brand img { height: 46px; width: auto; }
.nav { display: flex; gap: 4px; margin-right: auto; }
.nav a { color: var(--text); font-weight: 600; padding: 8px 14px; border-radius: 9px; white-space: nowrap; }
.nav a:hover, .nav a[aria-current] { background: rgba(246, 196, 83, .14); color: var(--gold); }
.lang { position: relative; font-size: 15px; }
.lang summary { list-style: none; cursor: pointer; padding: 8px 12px; border: 1.5px solid rgba(201, 154, 62, .5); border-radius: 9px; color: var(--text); white-space: nowrap; }
.lang summary::-webkit-details-marker { display: none; }
.lang ul { position: absolute; right: 0; top: calc(100% + 8px); margin: 0; padding: 6px; list-style: none; background: var(--panel); border: 2px solid var(--line); border-radius: 12px; min-width: 190px; box-shadow: 0 12px 30px rgba(0, 0, 0, .5); }
.lang li a { display: block; padding: 9px 12px; border-radius: 8px; color: var(--text); }
.lang li a:hover, .lang li a[aria-current] { background: rgba(246, 196, 83, .16); color: var(--gold); }
.top-play { padding: 10px 16px; font-size: 15px; }

/* 首屏主视觉 */
.hero { position: relative; min-height: min(92vh, 900px); display: flex; align-items: flex-start; overflow: hidden; }
.hero-bg, .hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 62%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(23, 14, 8, .5) 0%, rgba(23, 14, 8, .05) 38%, rgba(23, 14, 8, 0) 62%, var(--bg) 100%); }
.hero-in::before { content: ""; position: absolute; inset: 30% -6% -8%; z-index: -1; background: radial-gradient(ellipse at center, rgba(23, 14, 8, .62), transparent 68%); }
.hero-in { position: relative; z-index: 1; width: min(1160px, 100% - 40px); margin: 0 auto; padding: clamp(18px, 4vh, 54px) 0 0; display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero-logo { width: min(500px, 74vw); filter: drop-shadow(0 6px 18px rgba(60, 20, 0, .65)); }
.hero h1 { font-size: clamp(26px, 4.4vw, 50px); color: #fff3cf; text-shadow: 0 2px 0 #5a2a10, 0 0 26px rgba(40, 14, 0, .9); margin-top: 4px; }
.hero .lead { font-size: clamp(16px, 1.7vw, 21px); max-width: 34em; margin: 12px 0 22px; color: #fff; text-shadow: 0 1px 8px rgba(30, 10, 0, .95), 0 0 2px rgba(30, 10, 0, .9); font-weight: 600; }
.hero .cta { justify-content: center; }
.watch { display: inline-flex; align-items: center; gap: 10px; margin-top: 16px; color: #fff3cf; font-weight: 700; text-shadow: 0 1px 8px rgba(30, 10, 0, .95); }
.watch span { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--gold); background: rgba(23, 14, 8, .55); color: var(--gold); font-size: 14px; padding-left: 3px; }
.vers-link { display: inline-block; margin: 16px 0 0 22px; color: #fff3cf; font-weight: 700; text-shadow: 0 1px 8px rgba(30, 10, 0, .95); border-bottom: 1px solid rgba(246, 196, 83, .6); }
/* 版本列表页 */
.ver-note { background: var(--panel); border: 1px solid rgba(201, 154, 62, .35); border-radius: 14px; padding: 16px 20px; margin-bottom: 26px; }
.ver-note h2 { font-size: 19px; margin: 0 0 8px; }
.ver-note ul { margin: 0; padding-left: 1.2em; color: var(--dim); font-size: 16px; }
.ver-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ver { background: var(--bg2); border: 1px solid rgba(201, 154, 62, .22); border-radius: 14px; padding: 14px 18px; }
.ver.is-latest { border-color: var(--gold); background: var(--panel); }
.ver-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.ver-head h2 { font-size: 22px; margin: 0; margin-right: auto; }
.ver-head h2 span { color: var(--gold); }
.ver-tag { background: var(--ember); color: #1a0f08; font: 700 13px/1 var(--sans); padding: 5px 9px; border-radius: 999px; }
.ver-btn { font-size: 14px; padding: 8px 14px; }
.ver-gone { color: var(--dim); font-size: 14px; }
.ver-meta, .ver-notes { margin: 6px 0 0; color: var(--dim); font-size: 15px; }
.ver-notes { color: var(--text); }
.ver-sum { margin: 6px 0 0; color: var(--dim); font-size: 12px; }
.ver-sum code { word-break: break-all; }
.watch:hover span { background: var(--gold); color: #1a0f08; }

/* 宣传片 */
/* 宽度按屏幕高度封顶：一屏之内能看到完整画面，点“看宣传片”后正好居中 */
.trailer { width: min(100%, calc((100vh - 150px) * 16 / 9)); margin-inline: auto; border-radius: 18px; overflow: hidden; border: 3px solid #3a2a1e; box-shadow: 0 18px 40px rgba(0, 0, 0, .55); background: #000; }
.trailer video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; }

/* 通用段落 */
.sec { padding: clamp(46px, 7vw, 92px) 0; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.sec-head h2, .sec-final h2 { font-size: clamp(28px, 3.6vw, 44px); }
.sec-head h2::before { content: ""; display: inline-block; width: 10px; height: .8em; margin-right: 14px; background: linear-gradient(var(--ember), var(--red)); border-radius: 3px; transform: skewX(-12deg); }
.more { font-weight: 700; white-space: nowrap; }
.sec-lead { color: var(--dim); margin-top: -14px; }
.sec-feat, .sec-shots { background: var(--bg2); border-block: 1px solid rgba(201, 154, 62, .2); }

/* 新闻卡片 */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { background: var(--panel); border: 2px solid rgba(201, 154, 62, .55); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; transition: transform .15s, border-color .15s; }
.card:hover { transform: translateY(-4px); border-color: var(--gold); }
.card-img { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #120b07; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 16px 18px 18px; }
.card h3 { font-size: 21px; margin: 6px 0 8px; }
.card h3 a { color: #ffe9a0; }
.card h3 a::after { content: ""; position: absolute; inset: 0; }
.card { position: relative; }
.card p { color: var(--dim); font-size: 15px; margin: 0; }
.meta { font-size: 13.5px; color: var(--dim); display: flex; gap: 10px; align-items: center; margin: 0; }
.tag { font-weight: 700; font-size: 12.5px; padding: 3px 9px; border-radius: 999px; color: #1a0f08; background: var(--gold); }
.tag-guide { background: #8fd18a; }
.cards > .card-big { grid-column: span 3; flex-direction: row; }
.card-big .card-img { flex: 0 0 52%; }
.card-big .card-body { display: flex; flex-direction: column; justify-content: center; padding: 26px 30px; }
.card-big h3 { font-size: clamp(24px, 2.6vw, 32px); }
.card-big p { font-size: 16.5px; }
.cards-list { grid-template-columns: repeat(2, 1fr); }

/* 特色 */
.feats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feats li { background: linear-gradient(#33211a, #20140d); border: 2px solid rgba(201, 154, 62, .5); border-radius: 18px; padding: 24px 20px; }
.feat-n { font-size: 36px; line-height: 1; display: block; margin-bottom: 12px; }
.feats h3 { font-size: 21px; margin-bottom: 8px; }
.feats p { color: var(--dim); font-size: 15.5px; margin: 0; }

/* 主将展示 */
.sec-heroes { background: radial-gradient(ellipse at 30% 40%, rgba(255, 122, 42, .16), transparent 60%), var(--bg); }
.hero-tabs { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 26px; }
.hero-tabs button { padding: 0; width: 76px; height: 76px; border-radius: 16px; border: 3px solid rgba(201, 154, 62, .45); background: #2a1c12; cursor: pointer; overflow: hidden; transition: transform .12s, border-color .12s; }
.hero-tabs button img { width: 100%; height: 100%; object-fit: cover; }
.hero-tabs button:hover { transform: translateY(-3px); }
.hero-tabs button[aria-selected="true"] { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(246, 196, 83, .3), 0 0 24px rgba(255, 122, 42, .5); transform: translateY(-3px); }
.hero-panel { display: grid; grid-template-columns: minmax(0, 420px) 1fr; gap: clamp(20px, 5vw, 70px); align-items: center; }
.hero-panel[hidden] { display: none; }
.hero-art { aspect-ratio: 1; display: grid; place-items: center; background: radial-gradient(circle, rgba(255, 200, 120, .3), transparent 66%); }
.hero-art img { max-height: 100%; width: auto; filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .5)); animation: bob 3.6s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-8px); } }
.hero-text h3 { font-size: clamp(30px, 4vw, 50px); margin-bottom: 14px; }
.hero-text p { font-size: 19px; max-width: 30em; }
.ult { color: var(--dim); }
.ult strong { display: inline-block; color: #1a0f08; background: var(--ember); font-size: 13px; padding: 3px 10px; border-radius: 999px; margin-right: 8px; vertical-align: 2px; }

/* 截图横向滚动 */
.shots { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px max(20px, calc((100vw - 1160px) / 2)) 22px; scrollbar-color: var(--line) transparent; }
.shots figure { margin: 0; flex: 0 0 auto; width: min(270px, 62vw); scroll-snap-align: center; border-radius: 22px; overflow: hidden; border: 3px solid #3a2a1e; box-shadow: 0 14px 30px rgba(0, 0, 0, .5); }

/* 结尾号召 */
.sec-final { text-align: center; background: linear-gradient(rgba(23, 14, 8, .55), rgba(23, 14, 8, .82)), url(/img/bg-blur.webp) center / cover; }

/* 内页标题区 */
.page-head { padding: 34px 0 26px; background: linear-gradient(rgba(23, 14, 8, .7), var(--bg)), url(/img/bg-blur.webp) center / cover; border-bottom: 1px solid rgba(201, 154, 62, .25); }
.page-head h1 { font-size: clamp(30px, 4.6vw, 52px); margin: 10px 0; }
.page-head .lead { color: var(--dim); font-size: 19px; max-width: 42em; margin: 0; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; padding: 0; font-size: 14px; color: var(--dim); }
.crumbs li + li::before { content: "›"; margin-right: 6px; }
.crumbs span { overflow-wrap: anywhere; }
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; }

/* 文章正文 */
.post-cover { margin: 26px 0; border-radius: 18px; overflow: hidden; border: 2px solid rgba(201, 154, 62, .5); }
.post-cover img { width: 100%; }
.prose { font-size: 18px; }
.prose h2 { font-size: 27px; margin: 1.7em 0 .6em; padding-top: .2em; }
.prose ul { padding-left: 1.2em; margin: 0 0 1.1em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--ember); }
.prose strong { color: #ffe9a0; }
.prose small { color: var(--dim); }
.post-back { margin: 34px 0 0; font-weight: 700; }
.sec-related { border-top: 1px solid rgba(201, 154, 62, .2); margin-top: 50px; }

/* 主将图鉴页 */
.hero-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.hero-grid li { background: linear-gradient(#33211a, #20140d); border: 2px solid rgba(201, 154, 62, .5); border-radius: 18px; padding: 18px; scroll-margin-top: calc(var(--top) + 16px); }
.hero-grid img { height: 230px; width: auto; margin: 0 auto 12px; filter: drop-shadow(0 8px 12px rgba(0, 0, 0, .45)); }
.hero-grid h2 { font-size: 23px; margin-bottom: 8px; }
.hero-grid p { font-size: 15.5px; color: var(--dim); margin-bottom: .6em; }

/* 页脚 */
.foot { background: #0f0905; border-top: 2px solid rgba(201, 154, 62, .35); padding: 40px 0 calc(40px + env(safe-area-inset-bottom)); text-align: center; font-size: 15px; }
.foot-in { width: min(1160px, 100% - 40px); margin-inline: auto; }
.foot img { height: 70px; width: auto; margin: 0 auto 16px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 22px; justify-content: center; margin-bottom: 14px; }
.foot-langs, .copy { color: var(--dim); margin: 0 0 8px; }
.foot-langs a { color: var(--dim); }
.foot-langs a:hover { color: var(--gold); }

/* 语言提示条 */
.suggest { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 60; display: flex; align-items: center; gap: 12px; background: var(--panel); border: 2px solid var(--line); border-radius: 14px; padding: 10px 12px 10px 18px; box-shadow: 0 12px 30px rgba(0, 0, 0, .55); width: max-content; max-width: calc(100% - 24px); }
.suggest span { flex: 1; min-width: 0; }
.suggest .btn { flex: none; }
.suggest[hidden] { display: none; }
.suggest button { background: none; border: 0; color: var(--dim); font-size: 22px; line-height: 1; cursor: pointer; padding: 4px 8px; }

/* 窄屏 */
@media (max-width: 980px) {
  .feats, .hero-grid { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .cards > .card-big { grid-column: span 2; }
}
@media (max-width: 700px) {
  :root { --top: 56px; }
  body { font-size: 16px; }
  .top { gap: 8px; padding-inline: 12px; }
  .brand img { height: 38px; }
  .nav a { padding: 8px 9px; font-size: 15px; }
  .nav a:first-child { display: none; }
  .top-play { display: none; }
  .lang summary { padding: 7px 9px; font-size: 14px; }
  .hero { min-height: min(88vh, 760px); align-items: flex-end; }
  .hero-bg img { object-position: center 30%; }
  .hero::after { background: linear-gradient(180deg, rgba(23, 14, 8, .15) 0%, rgba(23, 14, 8, 0) 30%, rgba(23, 14, 8, .78) 62%, var(--bg) 100%); }
  .hero-in { padding: 0 0 34px; }
  .hero-logo { width: min(330px, 78vw); }
  .cards, .cards-list { grid-template-columns: 1fr; }
  .cards > .card-big { grid-column: auto; flex-direction: column; }
  .card-big .card-img { flex: none; aspect-ratio: 16 / 9; min-height: 0; }
  .card-big .card-body { padding: 16px 18px 18px; }
  .feats { grid-template-columns: 1fr; }
  .hero-panel { grid-template-columns: 1fr; text-align: center; }
  .hero-art { max-width: 300px; margin-inline: auto; }
  .hero-tabs { justify-content: center; gap: 9px; }
  .hero-tabs button { width: 64px; height: 64px; }
  .hero-text p { margin-inline: auto; font-size: 17px; }
  .btn-big { font-size: 19px; padding: 16px 26px; width: 100%; }
  .cta .btn-store { width: 100%; }
  .hero-grid img { height: 170px; }
  .prose { font-size: 17px; }
}
@media (max-width: 420px) { .hero-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .hero-art img { animation: none; } .btn-play, .card, .hero-tabs button { transition: none; } }
