/* 百战网络：沙城、战甲与余烬。日间模式仍可通过顶部按钮切换。 */
/* The journal used to force a pale slab even in the dark theme. Keep it in the same surface. */
html:not([data-theme="light"]) .news-section,
html[data-theme="light"] .news-section {
  background:
    linear-gradient(180deg, rgba(20,14,11,.97), rgba(12,9,8,.98)),
    url('../img/banner.jpg') center 40% / cover;
  border-color: rgba(215,172,104,.2);
  color: #f5ecdb;
}
html:not([data-theme="light"]) .news-section .section-title,
html[data-theme="light"] .news-section .section-title { color:#f4dfb9; }
html:not([data-theme="light"]) .news-section .section-index,
html:not([data-theme="light"]) .news-section .section-eyebrow,
html[data-theme="light"] .news-section .section-index,
html[data-theme="light"] .news-section .section-eyebrow { color:#d7ac68; }
html:not([data-theme="light"]) .news-section .news-title,
html[data-theme="light"] .news-section .news-title { color:#f5ecdb; }
html:not([data-theme="light"]) .news-section .news-desc,
html:not([data-theme="light"]) .news-section .news-meta,
html[data-theme="light"] .news-section .news-desc,
html[data-theme="light"] .news-section .news-meta { color:#c0b09a; }
html:not([data-theme="light"]) .news-section .news-more,
html[data-theme="light"] .news-section .news-more { color:#d7ac68; }
html[data-theme="light"] .article-content { color:#d5c8b2; }
html[data-theme="light"] .article-content h2,
html[data-theme="light"] .article-content h3 { color:#f5ecdb; }
html[data-theme="light"] .article-aside .aside-card { background:#1a1512; border-color:rgba(215,172,104,.2); }
html[data-theme="light"] .notices-page { color:#f5ecdb; }
html:not([data-theme="light"]) .article-layout,
html[data-theme="light"] .article-layout { align-items:start; }
html:not([data-theme="light"]) .article-content,
html[data-theme="light"] .article-content {
  max-width:none;
  margin-top:24px;
  padding:28px clamp(20px, 4vw, 54px);
  border:1px solid rgba(215,172,104,.19);
  border-radius:10px;
  background:linear-gradient(145deg,rgba(27,20,16,.97),rgba(15,12,10,.96));
  box-shadow:0 20px 54px rgba(0,0,0,.22),inset 0 1px rgba(255,225,178,.035);
  color:#d8cbb7;
}
html:not([data-theme="light"]) .article-content [style*="background"],
html[data-theme="light"] .article-content [style*="background"] {
  background-color:transparent !important;
  background-image:none !important;
}
html:not([data-theme="light"]) .article-content [style*="color"],
html[data-theme="light"] .article-content [style*="color"] { color:inherit !important; }
html:not([data-theme="light"]) .article-content > :first-child,
html[data-theme="light"] .article-content > :first-child { margin-top:0; }
html:not([data-theme="light"]) .article-content h2,
html[data-theme="light"] .article-content h2 { margin-top:32px; padding-top:20px; color:#f2d6a1; }
html:not([data-theme="light"]) .article-content h3,
html[data-theme="light"] .article-content h3 { color:#e9c78d; }
html:not([data-theme="light"]) .article-content strong,
html[data-theme="light"] .article-content strong { color:#fff0d4; }
html:not([data-theme="light"]) .article-content a,
html[data-theme="light"] .article-content a { color:#efbb70 !important; }
.game-records { padding: 56px 0 66px; border-top:1px solid rgba(215,172,104,.19); border-bottom:1px solid rgba(215,172,104,.19); background:linear-gradient(180deg,rgba(20,14,11,.95),rgba(12,9,8,.96)); }
.game-records .section-head { display:flex; align-items:center; justify-content:space-between; margin-bottom:20px; }
.record-controls { display:flex; gap:8px; }
.record-scroll { display:grid; place-items:center; width:40px; height:40px; border:1px solid #9d7746; border-radius:7px; background:#251811; color:#f2d095; font-size:25px; cursor:pointer; }
.record-scroll:hover { background:#56301a; border-color:#d3a663; }
.record-scroll-next { font-size:0; }
.record-scroll-next::before { content:'›'; font-size:25px; }
.records-viewport { overflow-x:auto; scrollbar-width:thin; scrollbar-color:#755333 #1c1510; scroll-snap-type:x mandatory; }
.records-viewport:focus-visible { outline-offset:5px; }
.records-track { display:flex; gap:16px; width:max-content; padding:2px 1px 13px; }
.record-shot { position:relative; display:block; width:333px; aspect-ratio:333 / 215; overflow:hidden; flex:none; padding:0; border:1px solid rgba(217,174,112,.42); border-radius:7px; background:#100d0b; scroll-snap-align:start; cursor:zoom-in; }
.record-shot img { display:block; width:100%; height:100%; object-fit:cover; transition:transform .28s ease,filter .28s ease; }
.record-shot:hover img,.record-shot:focus-visible img { transform:scale(1.035); filter:brightness(.78); }
.record-caption { position:absolute; inset:auto 0 0; display:flex; align-items:center; justify-content:space-between; gap:8px; padding:22px 12px 9px; color:#fff0d0; font-size:13px; font-weight:700; text-align:left; background:linear-gradient(transparent,rgba(9,7,6,.88)); opacity:0; transition:opacity .2s; }
.record-caption span { font-size:10px; font-weight:500; color:#e3bd7e; }
.record-shot:hover .record-caption,.record-shot:focus-visible .record-caption { opacity:1; }
.record-lightbox[hidden] { display:none; }
.record-lightbox { position:fixed; inset:0; z-index:1000; display:grid; place-items:center; padding:56px 24px 24px; background:rgba(4,3,3,.94); backdrop-filter:blur(9px); }
.record-lightbox img { max-width:min(1200px,94vw); max-height:86vh; width:auto; height:auto; object-fit:contain; border:1px solid rgba(232,189,124,.52); box-shadow:0 18px 70px #000; }
.record-lightbox-close { position:absolute; top:18px; right:22px; width:44px; height:44px; border:1px solid #ab7e49; border-radius:50%; background:#251811; color:#ffe4ad; font-size:28px; cursor:pointer; }
body.lightbox-open { overflow:hidden; }
html[data-theme="light"] .game-records { background:#f3eee3; border-color:rgba(133,94,42,.22); }
html[data-theme="light"] .record-shot { border-color:rgba(133,94,42,.42); }
html[data-theme="light"] .record-scroll { background:#fffaf0; color:#674720; }
@media(max-width:700px) { .game-records{padding:38px 0 46px}.record-shot{width:min(333px,calc(100vw - 64px))}.records-track{gap:11px}.record-scroll{width:36px;height:36px}.record-caption{opacity:1;padding:20px 9px 7px;font-size:12px}.record-caption span{font-size:9px} }
.social-dock {
  position: fixed;
  z-index: 80;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 154px;
  color: #f4d9a2;
  filter: drop-shadow(0 12px 22px rgba(0,0,0,.4));
}
.social-dock button { font: inherit; }
.social-dock-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 15px;
  background: linear-gradient(135deg, #9c3320, #542017);
  border: 1px solid #bd894b;
  border-radius: 12px 12px 0 0;
  color: #ffe5b0;
  font-weight: 700;
}
.social-dock-toggle[aria-expanded="false"] { border-radius: 12px; }
.social-dock-items {
  padding: 12px 7px 16px;
  border: 1px solid #9e703b;
  border-top: 0;
  border-radius: 0 0 24px 24px;
  background: linear-gradient(155deg, #3b1912, #1c100d 65%, #35130f);
  box-shadow: inset 0 0 0 4px rgba(219,162,84,.07);
  max-height: calc(100dvh - 180px);
}
.social-dock-brand { margin: 4px 0 14px; text-align: center; font-size: 17px; font-weight: 800; letter-spacing: 3px; }
.social-dock-brand span { display:block; font-size: 8px; letter-spacing: 1.5px; color:#b38c5c; font-weight: 500; }
.social-trigger {
  display: flex;
  gap: 8px;
  align-items: center;
  width: 100%;
  min-height: 46px;
  padding: 8px 5px;
  border: 0;
  border-top: 1px solid rgba(223,173,100,.13);
  background: transparent;
  color: #dfc091;
  font-size: 13px !important;
  text-align: left;
}
.social-trigger:hover, .social-trigger[aria-expanded="true"] { color: #ffe4a5; background: rgba(232,162,61,.1); }
.social-icon { display: grid; place-items: center; width: 25px; height:25px; flex-shrink: 0; border: 1px solid #956e3d; border-radius: 7px; color:#f6ce83; font-weight: 800; font-size: 13px; }
.social-arrow { margin-left:auto; color:#ac8453; }
.social-popover {
  position: absolute;
  right: calc(100% - 1px);
  top: 0;
  width: 244px;
  padding: 22px;
  border: 1px solid #bc8a4d;
  border-radius: 14px;
  background: linear-gradient(145deg, #38251a, #1c1410);
  box-shadow: 0 14px 40px rgba(0,0,0,.5);
  text-align:center;
  max-height: calc(100dvh - 120px);
  overflow-y: auto;
}
.social-popover h3 { margin:0 0 16px; font-size:18px; color:#ffe0a6; }
.social-qr { padding:8px; background:#fff; border-radius:6px; }
.social-qr img { width:100%; height:auto; aspect-ratio:1; object-fit:contain; }
.social-scan-hint { margin:10px 0; color:#ccb491; font-size:12px; }
.social-account { overflow-wrap:anywhere; font-size:19px; font-weight:700; color:#fff0d1; margin:12px 0; }
.social-copy, .social-visit { display:block; width:100%; margin-top:10px; padding:8px; border:1px solid #aa7c42; border-radius:7px; background:#62401f; color:#ffe4b2; font-size:13px; }
.social-copy:hover, .social-visit:hover { background:#80562c; }
.social-dock-foot { margin-top:12px; padding-top:10px; border-top:1px solid rgba(223,173,100,.15); color:#ab875a; text-align:center; font-size:10px; }
@media (min-width:1280px) {
  body.has-social-dock { padding-right:176px; }
  body.has-social-dock .site-header { padding-right:176px; }
}
@media (max-width:1279px) {
  .social-dock { right:12px; top:auto; bottom:88px; transform:none; width:148px; }
  .social-popover { top:auto; bottom:0; max-height:calc(100dvh - 180px); }
}
@media (max-width:520px) {
  .social-dock { width:138px; right:10px; }
  .social-popover { position:fixed; right:0; bottom:52px; width:min(280px, calc(100vw - 30px)); max-height:calc(100dvh - 210px); z-index:2; }
  .social-dock-items { max-height:calc(100dvh - 220px); overflow-y:auto; }
}
html:not([data-theme="light"]) {
  color-scheme: dark;
  --ink: #0e0b0a;
  --ink-2: #15100e;
  --surface: #1a1512;
  --surface-2: #211a16;
  --surface-3: #2c211b;
  --text: #f5ecdb;
  --muted: #c0b09a;
  --muted-2: #a18b73;
  --gold: #d7ac68;
  --gold-2: #ffe0a3;
  --line: rgba(210, 161, 94, .17);
  --line-strong: rgba(224, 172, 97, .32);
}

html:not([data-theme="light"]) body {
  background:
    linear-gradient(180deg, rgba(14, 10, 8, .2), #0e0b0a 940px),
    url('../img/banner.jpg') center 78px / max(1920px, 100vw) auto no-repeat,
    #0e0b0a;
}

html:not([data-theme="light"]) .site-header,
html:not([data-theme="light"]) .site-header.is-scrolled {
  background: rgba(16, 12, 10, .94);
  border-bottom: 1px solid rgba(215, 172, 104, .22);
  box-shadow: 0 6px 30px rgba(0, 0, 0, .25);
}

html:not([data-theme="light"]) .brand-name {
  color: #f4dbab;
}

html:not([data-theme="light"]) .hero.hero-banner {
  padding-top: 52px;
  padding-bottom: 64px;
  background: transparent;
}

html:not([data-theme="light"]) .banner-card {
  min-height: 330px;
  border: 1px solid rgba(232, 179, 98, .44);
  border-radius: 16px;
  color: var(--text);
  background:
    linear-gradient(90deg, #1a110e 0%, rgba(26, 17, 14, .97) 38%, rgba(26, 17, 14, .75) 57%, rgba(26, 17, 14, .16) 100%),
    url('../img/random-covers/bg-01.jpg') right 35% / cover no-repeat,
    #1a110e;
  box-shadow: 0 28px 65px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 215, 153, .12);
}

html:not([data-theme="light"]) .banner-card::before {
  top: 12px;
  right: 12px;
  bottom: 12px;
  left: 12px;
  width: auto;
  height: auto;
  border: 1px solid rgba(220, 169, 94, .13);
  border-radius: 8px;
}

html:not([data-theme="light"]) .banner-title {
  color: #ffe3ae;
  font-weight: 800;
  letter-spacing: .06em;
  text-shadow: 0 3px 0 #552b13, 0 6px 28px rgba(0, 0, 0, .7);
}

html:not([data-theme="light"]) .banner-desc {
  color: #e0cdb0;
}

html:not([data-theme="light"]) .banner-note,
html:not([data-theme="light"]) .banner-eyebrow,
html:not([data-theme="light"]) .banner-art-caption {
  color: #c7a578;
}

html:not([data-theme="light"]) .banner-badge {
  border: 1px solid rgba(240, 189, 110, .4);
  background: rgba(14, 9, 7, .7);
  color: #ffda99;
}

html:not([data-theme="light"]) .banner-actions .btn-dark {
  background: linear-gradient(135deg, #a63822, #642014);
  border: 1px solid #ca864c;
  color: #ffedce;
  box-shadow: 0 4px 20px rgba(154, 45, 20, .25);
}

html:not([data-theme="light"]) .banner-actions .btn-dark:hover {
  background: linear-gradient(135deg, #c04c2d, #852b19);
}

html:not([data-theme="light"]) .banner-actions .btn-text {
  color: #ebd6b0;
}

html:not([data-theme="light"]) .banner-art {
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .65));
}

html:not([data-theme="light"]) .banner-art-caption strong,
html:not([data-theme="light"]) .banner-art-caption span {
  color: #e1bd80;
  text-shadow: 0 2px 8px #000;
}

html:not([data-theme="light"]) .game-card {
  background: linear-gradient(155deg, #241b16, #15110f);
  border: 1px solid rgba(215, 172, 104, .24);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .2);
}

html:not([data-theme="light"]) .game-card:hover {
  border-color: #b98b50;
  box-shadow: 0 16px 36px rgba(0, 0, 0, .45), 0 0 24px rgba(174, 85, 34, .12);
}

html:not([data-theme="light"]) .section-title {
  color: #f4dfb9;
}

html:not([data-theme="light"]) .section-index {
  color: #d7ac68;
}

html:not([data-theme="light"]) .library-cta {
  background:
    linear-gradient(90deg, rgba(31, 20, 14, .98), rgba(31, 20, 14, .7)),
    url('../img/banner.jpg') center / cover;
  border-color: rgba(215, 172, 104, .3);
}

html:not([data-theme="light"]) .library-cta-title,
html:not([data-theme="light"]) .library-cta-link {
  color: #f6d799;
}

html:not([data-theme="light"]) .library-cta-text {
  color: #cdb99c;
}

html:not([data-theme="light"]) .site-footer {
  background: linear-gradient(180deg, #15100d, #0a0807);
  border-top-color: rgba(215, 172, 104, .22);
}

@media (max-width: 700px) {
  html:not([data-theme="light"]) .hero.hero-banner {
    padding-top: 24px;
    padding-bottom: 32px;
  }
  html:not([data-theme="light"]) .banner-card {
    background:
      linear-gradient(180deg, rgba(26, 17, 14, .97) 0%, rgba(26, 17, 14, .87) 50%, rgba(26, 17, 14, .45) 100%),
      url('../img/random-covers/bg-01.jpg') center bottom / cover;
  }
}
