@charset "utf-8";

/* 全站颜色在这里改。头图和正文图片在 index.html 里替换。 */
:root {
  color-scheme: dark;
  --bg: #080e16;
  --surface: #0d1722;
  --panel: #101d2b;
  --text: #f4eee4;
  --muted: #a5afbb;
  --gold: #f3ca80;
  --gold-deep: #af733a;
  --ice: #a4cfdf;
  --line: #253743;
  --display: "STKaiti", "KaiTi", "Kaiti SC", "Noto Serif CJK SC", "Songti SC", serif;
  --body: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", sans-serif;
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: var(--body); background: var(--bg); color: var(--text); line-height: 1.65; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
button, summary { cursor: pointer; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, figure { margin: 0; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--ice); outline-offset: 4px; }
.wrap { width: min(1200px, calc(100% - 96px)); margin-inline: auto; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
.skip:focus { position: fixed; z-index: 10; padding: 12px; background: var(--panel); }

/* 导航 */
.site-header { position: sticky; top: 0; z-index: 5; background: #090f18f5; border-bottom: 1px solid #a2cfff23; }
.nav-layout { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; width: fit-content; line-height: 1; white-space: nowrap; }
.seal { display: grid; place-items: center; width: 39px; height: 39px; border: 1px solid #b8844b; color: var(--gold); font: 700 24px var(--display); background: #ac6e261c; box-shadow: inset 0 0 0 3px #131317; }
.brand-title { color: #f3d8a9; font: 800 22px/1.1 var(--display); letter-spacing: .08em; }
.brand-title small { display: block; margin-top: 5px; color: var(--muted); font: 10px/1.1 var(--body); letter-spacing: .28em; }
nav { display: flex; gap: clamp(18px, 3vw, 42px); font-size: 14px; white-space: nowrap; }
nav a { display: flex; align-items: center; height: 72px; color: #c1c8d0; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; }
nav a:hover, nav .nav-home { color: var(--gold); border-color: #d7a252; }
.nav-entry { justify-self: end; padding: 7px 16px; border: 1px solid #c394555e; font-size: 13px; color: var(--gold); white-space: nowrap; }
.nav-entry:hover, .floating a:hover { background: #a36a2829; }

/* 头图和可直接编辑的文字 LOGO */
.hero { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; min-height: clamp(550px, 44vw, 720px); background: #0b1825; }
.hero-art, .hero::before, .hero::after { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-art { object-fit: cover; object-position: 62% 48%; z-index: -3; }
.hero::before { content: ""; z-index: -2; background: linear-gradient(90deg,#070e17f0 0%,#07101bc2 24%,#080e1636 53%,transparent 75%); }
.hero::after { content: ""; z-index: -1; background: linear-gradient(0deg,#080e16 1%,#080e1640 22%,transparent 46%); }
.hero-content { padding-block: 58px 72px; }
.hero-line { margin-top: 31px; font-size: clamp(19px, 2vw, 26px); font-weight: 700; letter-spacing: .1em; color: #eaf5fa; }
.hero-note { color: #d0d9e1; margin: 9px 0 27px; font-size: 14px; line-height: 1.85; }
.hero-actions, .entry-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { display: inline-flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 48px; padding: 9px 21px; font-weight: 700; font-size: 14px; border: 1px solid #c79754; transition: background .2s, filter .2s; }
.button-gold { background: linear-gradient(135deg,#ffe1a3,#d6a057 65%,#b87840); color: #25180c; box-shadow: inset 0 0 0 2px #fbe1ac45; }
.button-gold:hover { filter: brightness(1.11); }
.button-outline { background: #08101cab; color: #f3d7a6; }
.button-outline:hover { background: #473015; }

/* 版本卖点 */
.feature-strip { border-block: 1px solid #a78a5354; background: linear-gradient(95deg,#141c26,#0d1720 70%,#171821); }
.features { display: grid; grid-template-columns: repeat(4,1fr); }
.features article { display: flex; align-items: center; justify-content: center; gap: 15px; padding: 25px 12px; }
.features article + article { border-left: 1px solid #a78a532c; }
.feature-mark { flex-shrink: 0; display: grid; place-items: center; width: 42px; height: 42px; color: var(--gold); background: #b7884016; border: 1px solid #b7884063; font: 800 23px var(--display); }
.features h3 { color: #f2dfbf; font-size: 15px; }
.features p { color: var(--muted); font-size: 12px; margin-top: 2px; }

/* 实战、图鉴和地图 */
.content { padding-block: 64px 78px; }
.section + .section { margin-top: 68px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 15px; padding-bottom: 13px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.section-heading h2, .entry h2 { font: 800 clamp(29px,4vw,42px)/1.1 var(--display); letter-spacing: .06em; }
.section-heading h2::before { display: inline-block; content: ""; width: 5px; height: .65em; margin-right: 13px; background: linear-gradient(var(--gold),var(--gold-deep)); }
.section-heading > span { color: var(--muted); font-size: 13px; }
.combat { display: grid; grid-template-columns: .65fr 1.35fr; border: 1px solid var(--line); background: radial-gradient(ellipse at 0 0,#182b3b 0%,var(--surface) 65%); }
.combat-copy { display: flex; flex-direction: column; align-items: start; justify-content: center; padding: clamp(25px,4vw,60px); }
.combat-copy h3 { font: 800 clamp(32px,4vw,56px)/1.08 var(--display); }
.combat-copy em { color: var(--gold); font-style: normal; }
.combat-copy p { max-width: 22em; margin: 20px 0; color: var(--muted); font-size: 14px; }
.text-link { color: var(--ice); font-size: 14px; border-bottom: 1px solid #a4cfdf5e; }
.text-link:hover { color: #fff; }
.combat-media { min-width: 0; align-self: center; padding: 8px; }
.combat-toggle { display: block; position: relative; width: 100%; padding: 0; border: 1px solid #a4cfdf48; background: var(--bg); overflow: hidden; }
.combat-toggle img { width: 100%; height: auto; }
.combat-toggle::after { content: ""; position: absolute; inset: 0; background: #080e1629; pointer-events: none; transition: opacity .2s; }
.combat-toggle:hover::after, .combat-toggle[aria-pressed="true"]::after { opacity: 0; }
.play-indicator, .play-caption { position: absolute; z-index: 1; display: grid; place-items: center; color: #ffdda2; }
.play-indicator { inset: 50% auto auto 50%; transform: translate(-50%,-50%); border: 1px solid #eed6a191; width: 60px; height: 60px; border-radius: 50%; background: #080e16cf; font-size: 19px; line-height: 1; }
.play-caption { inset: auto auto 10px 10px; padding: 5px 11px; background: #080e16e0; font-size: 12px; }
.combat-toggle[aria-pressed="true"] .play-indicator { display: none; }
.loot-card, .map-grid figure { min-width: 0; border: 1px solid var(--line); background: var(--surface); }
.zoom-cue { position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 25px; height: 25px; background: #090f19e0; border: 1px solid #c8a96961; color: var(--gold); line-height: 1; }
.map-grid figure:hover { border-color: #c8a969a3; }
.map-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.map-grid img { width: 100%; height: auto; aspect-ratio: 1.43; object-fit: cover; }
.map-grid figcaption { padding: 10px 13px; color: #d6dce4; font-size: 13px; }

/* 游戏入口和页脚 */
.entry { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; margin-top: 68px; padding: 32px; border: 1px solid #c394555e; background: linear-gradient(100deg,#201b1b,#101b27 78%); }
.entry h2 { color: var(--gold); }
.entry p { color: var(--muted); margin-top: 8px; font-size: 14px; }
.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.footer-layout { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; padding-block: 25px; }
.footer-layout a { color: #e4cfab; }
.floating { display: grid; position: fixed; z-index: 3; right: 10px; bottom: 30px; background: #0b131def; border: 1px solid #a789554d; color: var(--gold); font-size: 12px; text-align: center; }
.floating a { padding: 8px; }
.floating a + a { border-top: 1px solid #a789554d; }

/* 图片弹窗 */
.lightbox { width: min(1000px,92vw); max-height: 94vh; margin: auto; padding: 0; border: 1px solid #ab874d; background: #080e16; color: var(--text); }
.lightbox::backdrop { background: #05080ddd; }
.lightbox-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 10px 15px; border-bottom: 1px solid var(--line); }
.lightbox-bar h2 { font-size: 15px; }
.lightbox-bar > div { display: flex; gap: 15px; align-items: center; color: var(--gold); font-size: 13px; }
.lightbox-bar button { padding: 0 8px; background: transparent; border: 1px solid var(--line); font-size: 22px; line-height: 1.2; }
.lightbox-image { margin: auto; padding: 10px; max-height: 80vh; width: auto; object-fit: contain; }

@media (max-width: 970px) {
  .wrap { width: calc(100% - 56px); }
  .floating { display: none; }
  .features article { gap: 8px; }
}
@media (max-width: 760px) {
  :root { scroll-padding-top: 117px; }
  .wrap { width: calc(100% - 36px); }
  .nav-layout { grid-template-columns: 1fr auto; gap: 4px 10px; padding-top: 10px; }
  .nav-layout nav { grid-column: 1 / -1; grid-row: 2; justify-content: space-between; gap: 6px; overflow-x: auto; font-size: 12px; }
  nav a { height: 41px; }
  .nav-entry { grid-column: 2; grid-row: 1; padding: 5px 10px; }
  .hero { align-items: end; min-height: 600px; }
  .hero-art { height: 68%; object-position: 72% 34%; }
  .hero::before { display: none; }
  .hero::after { background: linear-gradient(0deg,#080e16 29%,#080e16 35%,#080e16bd 49%,transparent 70%); }
  .hero-content { padding-block: 225px 22px; }
  .hero-line { margin-top: 20px; }
  .hero-note { margin-bottom: 17px; }
  .features { grid-template-columns: repeat(2,1fr); }
  .features article { padding: 13px 4px; justify-content: start; }
  .features article:nth-child(3) { border-left: 0; }
  .features article:nth-child(n+3) { border-top: 1px solid #a78a532c; }
  .features article:nth-child(even) { padding-left: 10px; }
  .feature-mark { width: 32px; height: 32px; font-size: 18px; }
  .features h3 { font-size: 13px; }
  .features p { font-size: 11px; }
  .content { padding-block: 37px; }
  .section + .section, .entry { margin-top: 45px; }
  .combat { grid-template-columns: 1fr; }
  .combat-copy { padding: 20px; }
  .combat-copy h3 br { display: none; }
  .combat-copy em { margin-left: .3em; }
  .combat-copy p { max-width: none; margin: 10px 0; }
  .map-grid { gap: 6px; }
  .map-grid figcaption { padding: 6px; font-size: 11px; }
  .entry { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* 首屏动效。图片和动态开关在 index.html 的首屏区块。 */
.hero {
  width: 100%;
  min-height: max(590px, calc(100vh - 72px));
  min-height: max(590px, calc(100svh - 72px));
}
.hero-art {
  object-position: 62% 41%;
  transform: scale(1.035);
}
.hero::before {
  background: linear-gradient(90deg,#060e185c, #06101b40 29%, transparent 58%);
}
.hero::after {
  background:
    radial-gradient(ellipse at 22% 50%,#06101c82 0%,transparent 47%),
    linear-gradient(0deg,#080e16 0%,#080e1630 23%,transparent 50%);
}
.hero-content { width: min(1520px, calc(100% - 112px)); }
.hero-effects {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}
.hero-mist, .hero-light, .hero-embers { position: absolute; display: block; }
.hero-mist {
  inset: -15%;
  opacity: .45;
  background:
    radial-gradient(ellipse 36% 12% at 23% 56%,#a3e7ff40,transparent 74%),
    radial-gradient(ellipse 40% 10% at 65% 68%,#68acc133,transparent 78%),
    radial-gradient(ellipse 31% 9% at 32% 37%,#b0e8ff35,transparent 75%);
  mix-blend-mode: screen;
  animation: cloud-drift 9s ease-in-out infinite alternate;
}
.hero-light {
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 15%,#74c8ff9c,transparent 47%),
    radial-gradient(ellipse 30% 20% at 80% 74%,#88defc8c,transparent 85%),
    radial-gradient(ellipse 21% 34% at 100% 65%,#ff6c217a,transparent 75%);
  mix-blend-mode: screen;
  opacity: .16;
  animation: storm-light 7s ease-in-out infinite;
}
.hero-embers {
  inset: -8%;
  background: radial-gradient(2px 2px at 9% 73%,#ffd29f,transparent),
    radial-gradient(3px 3px at 16% 86%,#ffe1b5,transparent),
    radial-gradient(2px 2px at 28% 79%,#ffc27f,transparent),
    radial-gradient(2px 2px at 41% 83%,#d9f5ff,transparent),
    radial-gradient(3px 3px at 58% 76%,#caf5ff,transparent),
    radial-gradient(2px 2px at 64% 56%,#d0f1ff,transparent),
    radial-gradient(3px 3px at 81% 87%,#ffd199,transparent),
    radial-gradient(3px 3px at 88% 72%,#ffc895,transparent),
    radial-gradient(2px 2px at 94% 54%,#ffdec2,transparent),
    radial-gradient(3px 3px at 92% 84%,#ffae69,transparent);
  filter: drop-shadow(0 0 4px #ff9850);
  opacity: 0;
  animation: embers-rise 6s linear infinite;
}
.hero-embers + .hero-embers { animation-delay: -3s; left: -2%; top: -12%; }
/* 首屏金属字标：背光、金属反射和笔锋星芒都使用四秒循环。 */
.hero-logo {
  position: relative;
  display: block;
  isolation: isolate;
  width: min(610px, 49vw);
  margin-left: -8px;
  filter: drop-shadow(0 6px 9px #04080bd9);
}
.hero-logo img { position: relative; width: 100%; height: auto; }
.logo-effects { position: absolute; inset: 0; pointer-events: none; }
.logo-aura {
  z-index: -1;
  position: absolute;
  inset: -20% -14% -4%;
  opacity: .62;
  background:
    radial-gradient(ellipse 48% 56% at 49% 56%, #f04e1ca6, #cc321b4a 44%, transparent 79%),
    conic-gradient(from 0deg at 55% 73%, transparent 0deg, #ff511a55 13deg, transparent 27deg 321deg, #ff762258 337deg, transparent 353deg);
  -webkit-mask-image: radial-gradient(ellipse 52% 54% at 53% 51%, #000 22%, transparent 94%);
  mask-image: radial-gradient(ellipse 52% 54% at 53% 51%, #000 22%, transparent 94%);
  animation: logo-aura 4s ease-in-out infinite;
}
.logo-reflection {
  position: absolute;
  inset: 0;
  mix-blend-mode: screen;
  -webkit-mask: url("../images/wordmark-metal.png") center / 100% 100% no-repeat;
  mask: url("../images/wordmark-metal.png") center / 100% 100% no-repeat;
}
.logo-reflection::before, .logo-reflection::after {
  content: "";
  position: absolute;
  inset: -10% -2%;
}
.logo-reflection::before {
  background: radial-gradient(ellipse 37% 26% at 35% 44%, #fff8d1db 0%, #ffdd8b86 34%, #ff963632 63%, transparent 80%);
  animation: logo-gold-reflection 4s ease-in-out infinite;
}
.logo-reflection::after {
  background: radial-gradient(ellipse 31% 23% at 66% 53%, #f1e4ffdf 0%, #dba9ff7a 38%, #9365fd43 62%, transparent 81%);
  animation: logo-violet-reflection 4s ease-in-out infinite;
}
.logo-star {
  position: absolute;
  top: var(--y);
  left: var(--x);
  width: var(--size, 20px);
  aspect-ratio: 1;
  color: var(--star-color, #ffdf9b);
  opacity: 0;
  filter: drop-shadow(0 0 4px currentColor);
  animation: logo-star 4s ease-out var(--delay) infinite;
}
.logo-star::before {
  content: "";
  position: absolute;
  inset: 0;
  clip-path: polygon(50% 0,56% 43%,100% 50%,56% 57%,50% 100%,44% 57%,0 50%,44% 43%);
  background: radial-gradient(circle,#fffdf8 7%,currentColor 39%,transparent 77%);
}
@keyframes logo-aura {
  0%, 100% { transform: translate(-5%, 1%) rotate(-5deg); opacity: .65; }
  28% { transform: translate(4%, -2%) rotate(5deg); opacity: .80; }
  53% { transform: translate(8%, 0) rotate(8deg); opacity: .56; }
  77% { transform: translate(-1%, -1%) rotate(-1deg); opacity: .82; }
}
@keyframes logo-gold-reflection {
  0%, 100% { transform: translate(-25%, 12%); opacity: .26; }
  24% { transform: translate(-6%, -3%); opacity: .91; }
  48% { transform: translate(16%, 6%); opacity: .3; }
  73% { transform: translate(2%, 21%); opacity: .68; }
}
@keyframes logo-violet-reflection {
  0%, 100% { transform: translate(15%, 17%); opacity: .29; }
  38% { transform: translate(7%, -16%); opacity: .84; }
  62% { transform: translate(17%, -5%); opacity: .32; }
  80% { transform: translate(19%, 10%); opacity: .84; }
}
@keyframes logo-star {
  0%, 61%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(.38) rotate(-12deg); }
  69% { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(10deg); }
  80% { opacity: 0; transform: translate(-50%, -50%) scale(.65) rotate(18deg); }
}
.hero-art { animation: hero-drift 13s ease-in-out infinite alternate; }
.motion-toggle {
  position: absolute;
  right: max(100px, 3vw);
  bottom: 18px;
  padding: 7px 12px;
  border: 1px solid #bd985d88;
  color: #f3d7a6;
  background: #090f19d9;
  font-size: 12px;
}
.motion-toggle:hover { background: #30241d; }
.hero[data-motion="off"] :is(.hero-art,.hero-mist,.hero-light,.hero-embers,.logo-aura,.logo-star),
.hero[data-motion="off"] .logo-reflection::before,
.hero[data-motion="off"] .logo-reflection::after { animation-play-state: paused; }

@keyframes hero-drift { to { transform: scale(1.09) translate(-.8%, .5%); } }
@keyframes cloud-drift { from { transform: translate(-5%, 3%) scale(.96); } to { transform: translate(7%, -3%) scale(1.12); opacity: .73; } }
@keyframes storm-light {
  0%, 42%, 65%, 100% { opacity: .12; }
  53% { opacity: .47; }
  76% { opacity: .24; }
}
@keyframes embers-rise {
  0% { transform: translate(2%, 9%); opacity: 0; }
  23% { opacity: .86; }
  72% { opacity: .58; }
  100% { transform: translate(-6%,-12%); opacity: 0; }
}
/* 图鉴直接用原图。多栏按图片本身的宽高排布，不统一裁剪。 */
.equipment-section {
  width: min(1680px, calc(100vw - 80px));
  margin-inline: calc((100% - min(1680px, calc(100vw - 80px))) / 2);
}
.loot-grid { display: block; columns: 3; column-gap: 16px; }
.loot-card {
  display: grid;
  justify-items: center;
  align-items: start;
  padding: 10px;
  margin: 0 0 16px;
  break-inside: avoid;
  border: 1px solid var(--line);
  background: radial-gradient(ellipse at center top,#162331,#0b131e);
}
.loot-card img { display: block; width: auto; max-width: 100%; height: auto; }
@media (max-width: 1270px) {
  .loot-grid { columns: 2; }
}
@media (max-width: 900px) {
  .loot-grid { columns: 2; }
  .equipment-section {
    width: 100%;
    margin-inline: 0;
  }
}
@media (max-width: 760px) {
  .hero { min-height: 620px; }
  .hero-art { height: 70%; object-position: 76% 38%; }
  .hero::after { background: linear-gradient(0deg,#080e16 30%,#080e16 37%,#080e16b8 50%,transparent 73%); }
  .hero-content { width: calc(100% - 36px); padding-bottom: 62px; }
  .hero-logo { width: min(410px, 87vw); margin-left: -5px; }
  .motion-toggle { right: 16px; bottom: 12px; }
}
@media (max-width: 590px) {
  .loot-grid { columns: 1; }
  .loot-card { padding: 8px; margin-bottom: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero:not([data-motion="on"]) :is(.hero-art,.hero-mist,.hero-light,.hero-embers,.logo-aura,.logo-star),
  .hero:not([data-motion="on"]) .logo-reflection::before,
  .hero:not([data-motion="on"]) .logo-reflection::after { animation-play-state: paused; }
}

/* 首屏底部的下载与充值入口。 */
.hero-content { padding-bottom: 124px; }
.hero-quick-links {
  position: absolute;
  bottom: 22px;
  left: 46%;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 240px));
  gap: clamp(24px, 6.5vw, 124px);
  width: min(610px, calc(100% - 48px));
}
.hero-quick-links .button {
  justify-content: center;
  height: auto;
  min-height: 61px;
  font-size: clamp(15px, 1.15vw, 19px);
  letter-spacing: .1em;
}
.entry-action { min-width: 140px; }
.entry-action .button { width: 100%; }
.entry-action .link-placeholder {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}
.entry-action .button:not([href="#待填写下载"]):not([href="#待填写充值"]) + .link-placeholder { display: none; }
@media (max-width: 970px) {
  .hero-quick-links { left: 50%; bottom: 60px; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-content { padding-bottom: 155px; }
}
@media (max-width: 760px) {
  .hero-quick-links { width: calc(100% - 36px); }
  .hero-quick-links .button { min-height: 49px; padding-inline: 12px; gap: 10px; }
  .hero-content { padding-bottom: 127px; }
}
@media (max-width: 460px) {
  .entry-actions { display: grid; width: 100%; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 9px; }
  .entry-action { min-width: 0; }
  .entry-action .button { padding-inline: 9px; gap: 6px; }
}
