/* ==========================================================================
   娉版媺鐟炰簹锛氬け钀芥枃鏄?Wiki 鈥?鍏ㄧ珯鏍峰紡
   style.css
   ========================================================================== */

/* ---------------------------------------------------------------- 璁捐鍙橀噺 */
:root {
  /* 娣辫壊搴?*/
  --navy-950: #060e20;
  --navy-900: #0a1531;
  --navy-850: #0c1a3c;
  --navy-800: #102048;
  --navy-750: #142a58;
  --navy-700: #16305e;
  --navy-650: #1b3668;
  --panel: #14284f;
  --panel-hi: #1c3766;
  --panel-line: #24406f;

  /* 浜壊鍗＄墖 */
  --card: #eef3fb;
  --card-hi: #ffffff;
  --card-line: #d3e0f2;
  --cell: #f7fafe;

  /* 寮鸿皟鑹?*/
  --accent: #3f92ff;
  --accent-soft: #7fb8ff;
  --accent-deep: #1f5fc4;
  --violet: #8b5cf6;
  --violet-soft: #b79bff;
  --gold: #f2c14e;
  --gold-deep: #c99a2e;

  /* 鏂囧瓧 */
  --on-dark: #ffffff;
  --on-dark-dim: #a8bcdd;
  --on-dark-faint: #7d92b8;
  --ink: #16233d;
  --ink-dim: #4f6484;
  --ink-faint: #7b8ea9;

  --radius: 10px;
  --radius-sm: 7px;
  --radius-pill: 999px;
  --shadow: 0 6px 22px rgba(2, 8, 24, .45);
  --shadow-sm: 0 2px 8px rgba(2, 8, 24, .28);

  --font: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC",
          "Source Han Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Cascadia Mono", "Consolas", "SFMono-Regular", ui-monospace, monospace;

  --topbar-h: 68px;
  --maxw: 1480px;
}

/* ---------------------------------------------------------------- 鍩虹閲嶇疆 */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--topbar-h) + 20px); }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.65;
  color: var(--on-dark);
  background-color: var(--navy-950);
  background-image:
    radial-gradient(1200px 620px at 78% -8%, rgba(93, 63, 191, .32), transparent 62%),
    radial-gradient(900px 520px at 12% 4%, rgba(31, 95, 196, .24), transparent 60%),
    linear-gradient(180deg, #0a1531 0%, #071022 55%, #050b18 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

/* 鍐呰仈鍥炬爣榛樿鍥為€€灏哄锛氬叿浣撶粍浠惰鍒欑敤鏇撮珮浼樺厛绾ц鐩?*/
svg { width: 1em; height: 1em; flex: none; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 18px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ==========================================================================
   椤舵爮
   ========================================================================== */
.topbar {
  position: sticky; top: 0; z-index: 60;
  height: var(--topbar-h);
  background: linear-gradient(180deg, #0a1733 0%, #0b1a3a 100%);
  border-bottom: 1px solid rgba(63, 146, 255, .28);
  box-shadow: 0 4px 18px rgba(0, 0, 0, .45);
}
.topbar__inner {
  height: 100%; display: flex; align-items: center; gap: 22px;
}

/* 鍝佺墝 */
.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand__crest { width: 34px; height: 34px; flex: none; }
.brand__crest svg { width: 100%; height: 100%; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__cn {
  font-size: 17px; font-weight: 800; letter-spacing: .4px;
  background: linear-gradient(180deg, #ffffff 30%, #a9c8f5 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.brand__en {
  font-size: 11.5px; font-weight: 700; letter-spacing: .2px;
  color: var(--accent-soft);
}

/* 涓诲鑸?*/
.mainnav { display: flex; align-items: center; gap: 2px; flex: 1 1 auto; min-width: 0; }
.mainnav__item {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 13px; border-radius: var(--radius-sm);
  font-size: 13.5px; font-weight: 600; color: #cfdcf2;
  white-space: nowrap; position: relative;
  transition: background .16s, color .16s;
}
.mainnav__item svg { width: 15px; height: 15px; opacity: .85; flex: none; }
.mainnav__item:hover { background: rgba(63, 146, 255, .14); color: #fff; }
.mainnav__item.is-active { color: #fff; background: rgba(63, 146, 255, .2); }
.mainnav__item.is-active::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px;
  height: 2px; background: var(--accent); border-radius: 2px;
  box-shadow: 0 0 10px var(--accent);
}

/* 鎼滅储 */
.search { position: relative; flex: none; width: 260px; }
.search__box {
  display: flex; align-items: center; gap: 8px;
  height: 38px; padding: 0 12px;
  background: rgba(6, 14, 32, .72);
  border: 1px solid rgba(63, 146, 255, .42);
  border-radius: var(--radius-pill);
  transition: border-color .16s, box-shadow .16s;
}
.search__box:focus-within {
  border-color: var(--accent); box-shadow: 0 0 0 3px rgba(63, 146, 255, .18);
}
.search__box svg { width: 15px; height: 15px; color: var(--on-dark-dim); flex: none; }
.search__input {
  flex: 1; min-width: 0; border: 0; background: transparent;
  color: #fff; font-size: 13px; outline: none;
}
.search__input::placeholder { color: var(--on-dark-faint); }
.search__go { background: none; border: 0; padding: 2px; display: grid; place-items: center; }

.search__results {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0;
  max-height: 60vh; overflow-y: auto;
  background: #0d1c3d; border: 1px solid var(--panel-line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 6px; display: none; z-index: 80;
}
.search__results.is-open { display: block; }
.search__hit { display: block; padding: 8px 10px; border-radius: var(--radius-sm); }
.search__hit:hover, .search__hit.is-cursor { background: rgba(63, 146, 255, .18); }
.search__hit b { display: block; font-size: 13px; color: #fff; font-weight: 700; }
.search__hit span { display: block; font-size: 11.5px; color: var(--on-dark-faint); }
.search__empty { padding: 12px; font-size: 12.5px; color: var(--on-dark-faint); text-align: center; }

/* 绉诲姩绔彍鍗曟寜閽?*/
.navtoggle {
  display: none; width: 38px; height: 38px; flex: none;
  background: rgba(6, 14, 32, .72); border: 1px solid rgba(63, 146, 255, .42);
  border-radius: var(--radius-sm); place-items: center;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 300px;
  display: grid; align-items: center;
  background-image:
    linear-gradient(180deg, rgba(6, 14, 32, .34) 0%, rgba(6, 14, 32, .58) 62%, rgba(6, 14, 32, .92) 100%),
    url("../img/hero-bg.png");
  background-size: cover;
  background-position: center 34%;
  border-bottom: 1px solid rgba(63, 146, 255, .22);
}
.hero__inner { text-align: center; padding: 26px 18px 30px; }

/* 鏍囬鍥撅紙鏇夸唬鏂囧瓧鏍囬鐨勭函 logo 妯箙锛?*/
.hero__logo {
  display: flex;
  justify-content: center;
  margin: 0 auto;
}
.hero__logo picture { display: block; }
.hero__logo img {
  display: block;
  width: 100%;
  max-width: var(--logo-max, 640px);
  height: auto;
  /* logo 鏄噾鑹叉弿杈癸紝鍔犱竴鐐规殩鍏夎瀹冧粠鏆楄儗鏅噷娴嚭鏉?*/
  filter: drop-shadow(0 6px 22px rgba(0, 0, 0, .6))
          drop-shadow(0 0 34px rgba(242, 193, 78, .22));
}
.hero__welcome {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 15px; font-weight: 600; color: #dbe8ff; letter-spacing: 3px;
  margin-bottom: 8px;
}
.hero__welcome::before, .hero__welcome::after {
  content: ""; width: 46px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(214, 232, 255, .75), transparent);
}
.hero__title {
  margin: 0;
  font-size: clamp(28px, 4.6vw, 54px);
  font-weight: 900; letter-spacing: 2px; line-height: 1.16;
  background: linear-gradient(180deg, #ffffff 26%, #9fc2f0 72%, #6f9ad6 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 3px 10px rgba(0, 0, 0, .75));
}
.hero__en {
  margin: 4px 0 0;
  font-size: clamp(15px, 1.7vw, 24px); font-weight: 800; letter-spacing: 1.5px;
  color: var(--accent-soft);
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .8));
}
.hero__tagline {
  margin: 14px auto 0; max-width: 780px;
  font-size: clamp(13px, 1.15vw, 15px); font-weight: 600; color: #e3edff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .9);
}
.hero__actions {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
  margin-top: 20px;
}
.hero-btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 11px 26px;
  font-size: 14.5px; font-weight: 700; color: #eaf3ff;
  background: linear-gradient(180deg, rgba(16, 36, 76, .92), rgba(8, 20, 46, .94));
  border: 1px solid rgba(96, 168, 255, .55);
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .09);
  transition: transform .15s, border-color .15s, background .15s;
}
.hero-btn svg { width: 17px; height: 17px; color: var(--accent-soft); }
.hero-btn:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(31, 79, 158, .95), rgba(14, 34, 74, .96));
}

/* 鍐呴〉锛欻ero 鍘嬬缉涓虹揣鍑戞í骞?*/
body:not(.is-home) .hero { min-height: 0; }
body:not(.is-home) .hero__inner { padding: 14px 18px 16px; }
body:not(.is-home) .hero__logo img {
  max-width: 230px;
  filter: drop-shadow(0 3px 10px rgba(0, 0, 0, .6));
}
body:not(.is-home) .hero__welcome { font-size: 12px; margin-bottom: 4px; }
body:not(.is-home) .hero__welcome::before,
body:not(.is-home) .hero__welcome::after { width: 28px; }
body:not(.is-home) .hero__title { font-size: clamp(18px, 2.1vw, 26px); letter-spacing: 1px; }
body:not(.is-home) .hero__en { font-size: clamp(11px, 1vw, 13px); margin-top: 1px; }
body:not(.is-home) .hero__tagline,
body:not(.is-home) .hero__actions { display: none; }

/* ==========================================================================
   涓讳綋涓夋爮 => 渚ф爮 + 鍐呭
   ========================================================================== */
.layout {
  display: grid;
  grid-template-columns: 218px minmax(0, 1fr);
  gap: 16px;
  padding: 18px 0 44px;
  align-items: start;
}

/* ---------------------------------------------------------------- 渚ф爮 */
.sidebar { display: flex; flex-direction: column; gap: 12px; position: sticky; top: calc(var(--topbar-h) + 16px); }

.side-panel {
  background: linear-gradient(180deg, #16305e 0%, #12264c 100%);
  border: 1px solid var(--panel-line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.side-panel__head {
  display: flex; align-items: center; gap: 9px;
  padding: 11px 13px;
  font-size: 14px; font-weight: 800; color: #fff;
  background: linear-gradient(180deg, #1d3d74 0%, #16305e 100%);
  border-bottom: 1px solid var(--panel-line);
}
.side-panel__head svg { width: 16px; height: 16px; color: var(--accent-soft); flex: none; }
.side-panel__body { padding: 6px; }

.side-item {
  display: flex; align-items: center; gap: 9px;
  padding: 8px 10px; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 600; color: #cbdaf2;
  transition: background .15s, color .15s, transform .15s;
}
.side-item svg { width: 15px; height: 15px; flex: none; color: var(--accent-soft); }
.side-item:hover { background: rgba(63, 146, 255, .16); color: #fff; transform: translateX(2px); }
.side-item.is-active { background: rgba(63, 146, 255, .24); color: #fff; }

.side-quote {
  padding: 16px 14px 18px;
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(8, 18, 40, .35), rgba(8, 18, 40, .82)),
    url("../img/boss-hub-boss.png") center 12%/70% no-repeat,
    linear-gradient(180deg, #1a3468 0%, #0f2044 100%);
  border: 1px solid var(--panel-line);
  text-align: center;
  font-size: 13px; font-weight: 700; color: #dce8ff;
  line-height: 1.9;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .85);
}
.side-quote span { display: block; color: var(--accent-soft); }

/* ==========================================================================
   鍗＄墖
   ========================================================================== */
.card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(255, 255, 255, .1);
  display: flex; flex-direction: column;
  color: var(--ink);
}
.card__head {
  display: flex; align-items: center; gap: 9px;
  padding: 11px 14px;
  background: linear-gradient(180deg, #123066 0%, #0e2551 100%);
  border-bottom: 2px solid var(--accent-deep);
}
.card__head svg { width: 18px; height: 18px; color: #cfe3ff; flex: none; }
.card__title { font-size: 15.5px; font-weight: 800; color: #fff; letter-spacing: .5px; }
.card__link {
  margin-left: auto; flex: none;
  padding: 4px 12px;
  font-size: 11.5px; font-weight: 700; color: #cfe3ff;
  background: rgba(63, 146, 255, .18);
  border: 1px solid rgba(96, 168, 255, .5);
  border-radius: var(--radius-pill);
  transition: background .15s, color .15s;
}
.card__link:hover { background: var(--accent); color: #fff; }
.card__body { padding: 13px 14px 15px; flex: 1; }

/* ---------------------------------------------------------------- 鍏充簬妯＄粍 */
.card--about .about__art {
  border-radius: var(--radius-sm); overflow: hidden;
  border: 1px solid var(--card-line); margin-bottom: 11px;
}
.about__body { font-size: 13px; color: var(--ink); text-align: justify; }
.about__body strong { color: var(--accent-deep); }

.feature-list { margin-top: 13px; display: flex; flex-direction: column; gap: 8px; }
.feature {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 11px;
  background: var(--card-hi);
  border: 1px solid var(--card-line);
  border-radius: var(--radius-sm);
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.feature:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); border-color: var(--accent-soft); }
.feature__icon {
  width: 28px; height: 28px; flex: none; display: grid; place-items: center;
  color: var(--accent-deep);
}
.feature__icon svg { width: 20px; height: 20px; }
.feature__title { font-size: 13px; font-weight: 800; color: var(--ink); }
.feature__desc { font-size: 11.5px; color: var(--ink-faint); }

.about__cta {
  display: inline-flex; align-items: center; gap: 7px;
  margin-top: 14px; padding: 9px 22px;
  font-size: 13px; font-weight: 700; color: #fff;
  background: linear-gradient(180deg, #1f5fc4 0%, #154a9e 100%);
  border-radius: var(--radius-sm);
  box-shadow: 0 3px 10px rgba(21, 74, 158, .4);
  transition: transform .15s, filter .15s;
}
.about__cta:hover { transform: translateY(-1px); filter: brightness(1.1); }
.about__cta svg { width: 15px; height: 15px; }

/* ---------------------------------------------------------------- Boss 浠嬬粛 */
.boss-group + .boss-group { margin-top: 12px; }
.boss-group__head {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 11px; margin-bottom: 9px;
  background: linear-gradient(90deg, #12306a 0%, #1d4a92 62%, rgba(29, 74, 146, .12) 100%);
  border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 800; color: #fff;
}
.boss-group__head svg { width: 15px; height: 15px; color: #cfe3ff; flex: none; }

.boss-grid { display: grid; gap: 9px; grid-template-columns: repeat(4, 1fr); }
.boss-grid--3 { grid-template-columns: repeat(3, 1fr); }
.boss-grid--2 { grid-template-columns: repeat(2, 1fr); }

.boss-cell {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 9px 5px 7px;
  background: linear-gradient(180deg, #ffffff 0%, #e8f0fb 100%);
  border: 1px solid var(--card-line);
  border-radius: var(--radius-sm);
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.boss-cell:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); border-color: var(--accent); }
.boss-cell img { height: 44px; width: auto; object-fit: contain; image-rendering: pixelated; }
.boss-cell__name {
  font-size: 11.5px; font-weight: 700; color: var(--ink);
  text-align: center; line-height: 1.4;
}

.boss-foot { margin-top: 12px; display: flex; justify-content: flex-end; }
.boss-foot a {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  padding: 7px 16px; font-size: 12.5px; font-weight: 700; color: var(--accent-deep);
  background: #fff; border: 1px solid var(--accent-soft);
  border-radius: var(--radius-sm); transition: background .15s, color .15s;
}
.boss-foot a svg { width: 14px; height: 14px; }
.boss-foot a:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---------------------------------------------------------------- 銆婃枃鏂囥€傛柊闂汇€?*/
.news-sub {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 9px; margin-bottom: 10px;
  border-bottom: 1px solid var(--card-line);
}
.news-sub__title { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 800; color: var(--ink); }
.news-sub__title svg { width: 15px; height: 15px; color: var(--accent-deep); }
.news-sub__meta { font-size: 11px; color: var(--ink-faint); }

.log-list { display: flex; flex-direction: column; gap: 8px; }
.log-item {
  display: flex; gap: 10px; align-items: stretch;
  background: var(--card-hi); border: 1px solid var(--card-line);
  border-radius: var(--radius-sm); overflow: hidden;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.log-item:hover { border-color: var(--accent); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.log-item__ver {
  flex: none; width: 62px; display: grid; place-items: center;
  background: linear-gradient(180deg, #1f5fc4 0%, #154a9e 100%);
  color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .3px;
}
.log-item__main { padding: 8px 11px 9px; flex: 1; min-width: 0; display: block; }
.log-item__lines { display: block; font-size: 12px; color: var(--ink-dim); line-height: 1.55; }
.log-item__date { display: block; font-size: 11px; color: var(--ink-faint); margin-top: 3px; text-align: right; }

.news-block + .news-block { margin-top: 16px; padding-top: 15px; border-top: 1px dashed var(--card-line); }

.change-list { display: flex; flex-direction: column; gap: 7px; }
.change-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; color: var(--ink-dim);
  transition: color .15s;
}
.change-item:hover { color: var(--accent-deep); }
.change-item::before {
  content: ""; width: 5px; height: 5px; flex: none; border-radius: 50%;
  background: var(--accent);
}
.change-item__date { margin-left: auto; flex: none; font-size: 11px; color: var(--ink-faint); }

.news-more {
  display: block; margin: 12px auto 0; padding: 8px 0; width: 78%;
  text-align: center; font-size: 12.5px; font-weight: 700; color: var(--accent-deep);
  background: #fff; border: 1px solid var(--accent-soft); border-radius: var(--radius-sm);
  transition: background .15s, color .15s;
}
.news-more:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

/* 鎷涘嫙 */
.recruit {
  display: flex; gap: 12px; align-items: center;
  padding: 12px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #1b3a72 0%, #22528f 60%, #3a6fbd 100%);
  border: 1px solid rgba(96, 168, 255, .5);
  color: #fff;
}
.recruit__art {
  width: 58px; height: 58px; flex: none; border-radius: var(--radius-sm);
  background: url("../img/boss-hub-boss.png") center/contain no-repeat;
  image-rendering: pixelated;
}
.recruit__text { display: block; min-width: 0; }
.recruit__title { display: block; font-size: 14px; font-weight: 800; }
.recruit__body { display: block; font-size: 11.5px; color: #cfe3ff; margin-top: 3px; line-height: 1.55; }
.recruit__cta {
  display: block; margin-top: 9px; padding: 7px 0;
  text-align: center; font-size: 12.5px; font-weight: 700; color: var(--accent-deep);
  background: #fff; border-radius: var(--radius-sm);
  transition: filter .15s;
}
.recruit__cta:hover { filter: brightness(.93); }

/* ---------------------------------------------------------------- 鍐呭浣撶郴 / 娓告垙鏈哄埗 */
.cat-grid { display: grid; gap: 9px; }
.cat-grid--4 { grid-template-columns: repeat(4, 1fr); }
.cat-grid--2 { grid-template-columns: repeat(2, 1fr); }

.cat-cell {
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  gap: 5px; padding: 13px 8px 11px;
  background: linear-gradient(180deg, #ffffff 0%, #e9f1fc 100%);
  border: 1px solid var(--card-line);
  border-radius: var(--radius-sm);
  text-align: center;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.cat-cell:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); border-color: var(--accent); }
.cat-cell img { height: 40px; width: auto; object-fit: contain; image-rendering: pixelated; }
.cat-cell__name { font-size: 13px; font-weight: 800; color: var(--ink); }
.cat-cell__desc { font-size: 11px; color: var(--ink-faint); line-height: 1.5; }

/* ---------------------------------------------------------------- 棣栭〉鏍呮牸 */
.home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.12fr);
  gap: 14px;
  align-items: start;
}
.home-grid > .card--content { grid-column: span 2; }

/* ==========================================================================
   鏂囩珷椤?   ========================================================================== */
.article { min-width: 0; }

.crumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 7px;
  font-size: 12px; color: var(--on-dark-dim); margin-bottom: 12px;
}
.crumbs a { color: var(--accent-soft); font-weight: 600; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.crumbs span.sep { color: var(--on-dark-faint); }

.article__head {
  padding: 18px 20px 20px;
  background: linear-gradient(135deg, #14306a 0%, #0e2350 58%, #102a58 100%);
  border: 1px solid var(--panel-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  position: relative; overflow: hidden;
}
.article__head::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(520px 200px at 88% 0%, rgba(139, 92, 246, .3), transparent 68%);
  pointer-events: none;
}
.article__vol {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 3px 11px; margin-bottom: 10px;
  font-size: 11.5px; font-weight: 700; color: #d6e7ff;
  background: rgba(63, 146, 255, .2);
  border: 1px solid rgba(96, 168, 255, .45);
  border-radius: var(--radius-pill);
}
.article__title {
  margin: 0; font-size: clamp(21px, 2.6vw, 30px); font-weight: 900;
  letter-spacing: .6px; color: #fff; position: relative; z-index: 1;
}
.article__title .num {
  font-family: var(--mono); font-size: .62em; color: var(--gold);
  margin-right: 10px; vertical-align: 3px;
}
.article__purpose {
  margin: 9px 0 0; font-size: 13.5px; color: #c6d8f2;
  max-width: 900px; position: relative; z-index: 1;
}
.article__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 13px; position: relative; z-index: 1; }
.tag {
  font-size: 11.5px; font-weight: 700; padding: 3px 10px; border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); color: #dbe8ff;
}
.tag--draft { background: rgba(139, 92, 246, .26); border-color: rgba(183, 155, 255, .55); }
.tag--planned { background: rgba(242, 193, 78, .18); border-color: rgba(242, 193, 78, .5); color: #f6dfa4; }

.article__body { margin-top: 14px; display: flex; flex-direction: column; gap: 14px; }

.panel {
  background: var(--card); color: var(--ink);
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: var(--shadow-sm);
}
.panel__head {
  display: flex; align-items: center; gap: 9px;
  padding: 10px 14px;
  background: linear-gradient(180deg, #123066 0%, #0e2551 100%);
  border-bottom: 2px solid var(--accent-deep);
  font-size: 14px; font-weight: 800; color: #fff;
}
.panel__head svg { width: 16px; height: 16px; color: #cfe3ff; flex: none; }
.panel__body { padding: 13px 15px 15px; }

/* 瀛愮珷鑺傚崱 */
.sub-grid { display: grid; gap: 9px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.sub-card {
  display: block; padding: 10px 12px;
  background: var(--card-hi); border: 1px solid var(--card-line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.sub-card:hover { transform: translateX(3px); box-shadow: var(--shadow-sm); border-left-color: var(--violet); }
.sub-card__num { display: block; font-family: var(--mono); font-size: 11px; font-weight: 700; color: var(--accent-deep); }
.sub-card__title { display: block; font-size: 13.5px; font-weight: 700; color: var(--ink); margin-top: 2px; }

/* 鎻愮翰 */
.outline { display: flex; flex-direction: column; gap: 8px; }
.outline li {
  position: relative; padding-left: 22px;
  font-size: 13px; color: var(--ink-dim); line-height: 1.65;
}
.outline li::before {
  content: ""; position: absolute; left: 6px; top: 9px;
  width: 6px; height: 6px; border-radius: 2px;
  background: var(--accent); transform: rotate(45deg);
}
.outline li strong { color: var(--ink); }

/* 閿氱偣鍒楄〃 */
.anchor-list { display: flex; flex-wrap: wrap; gap: 8px; }
.anchor-chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 13px; font-size: 12.5px; font-weight: 700; color: var(--ink);
  background: var(--card-hi); border: 1px solid var(--card-line);
  border-radius: var(--radius-pill);
  transition: border-color .15s, transform .15s, color .15s;
}
.anchor-chip:hover { border-color: var(--accent); color: var(--accent-deep); transform: translateY(-1px); }
.anchor-chip__date { font-size: 11px; color: var(--ink-faint); font-weight: 600; }

/* 鐗堟湰鏉＄洰 */
.version-entry {
  padding: 12px 14px; border-radius: var(--radius-sm);
  background: var(--card-hi); border: 1px solid var(--card-line);
  border-left: 4px solid var(--accent);
}
.version-entry + .version-entry { margin-top: 10px; }
.version-entry__head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.version-entry__ver { font-size: 15px; font-weight: 900; color: var(--accent-deep); font-family: var(--mono); }
.version-entry__date { font-size: 12px; color: var(--ink-faint); }
.version-entry ul { margin-top: 7px; display: flex; flex-direction: column; gap: 5px; }
.version-entry li { position: relative; padding-left: 18px; font-size: 12.5px; color: var(--ink-dim); }
.version-entry li::before {
  content: "鈻?; position: absolute; left: 4px; color: var(--accent); font-size: 11px;
}

/* 寰呰ˉ鍏呭崰浣?*/
.placeholder {
  border: 1px dashed rgba(96, 168, 255, .5);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(18, 48, 102, .55), rgba(10, 24, 54, .55));
  padding: 16px 18px;
}
.placeholder__title {
  display: flex; align-items: center; gap: 8px;
  font-size: 13.5px; font-weight: 800; color: #dbe8ff; margin-bottom: 8px;
}
.placeholder__title svg { width: 16px; height: 16px; color: var(--gold); }
.placeholder p { margin: 0; font-size: 12.5px; color: var(--on-dark-dim); line-height: 1.7; }
.placeholder ul { margin-top: 8px; display: grid; gap: 6px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.placeholder li {
  position: relative; padding-left: 18px;
  font-size: 12.5px; color: var(--on-dark-dim);
}
.placeholder li::before {
  content: ""; position: absolute; left: 4px; top: 7px;
  width: 5px; height: 5px; border-radius: 1px; background: var(--gold);
}

/* 涓婁竴椤?/ 涓嬩竴椤?*/
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 4px; }
.pager__item {
  display: flex; flex-direction: column; gap: 3px;
  padding: 12px 15px;
  background: linear-gradient(180deg, #16305e 0%, #12264c 100%);
  border: 1px solid var(--panel-line);
  border-radius: var(--radius);
  transition: border-color .15s, transform .15s;
}
.pager__item:hover { border-color: var(--accent); transform: translateY(-2px); }
.pager__item--next { text-align: right; }
.pager__label { font-size: 11px; color: var(--on-dark-faint); font-weight: 700; letter-spacing: .5px; }
.pager__title { font-size: 13.5px; font-weight: 700; color: #fff; }
.pager__item--next { grid-column: 2; }

/* ==========================================================================
   鐩綍 / 绱㈠紩椤?   ========================================================================== */
.vol-block + .vol-block { margin-top: 12px; }
.vol-list { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.vol-link {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  background: var(--card-hi); border: 1px solid var(--card-line);
  border-radius: var(--radius-sm);
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.vol-link:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); border-color: var(--accent); }
.vol-link__num {
  flex: none; width: 30px; height: 30px; display: grid; place-items: center;
  border-radius: var(--radius-sm); font-family: var(--mono); font-size: 12px; font-weight: 800;
  background: linear-gradient(180deg, #1f5fc4, #154a9e); color: #fff;
}
.vol-link__title { font-size: 13px; font-weight: 700; color: var(--ink); }
.vol-link__meta { font-size: 11px; color: var(--ink-faint); }

.index-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.index-card { display: flex; flex-direction: column; }
.index-card__list { display: flex; flex-direction: column; gap: 2px; margin-top: 4px; }
.index-card__item {
  display: flex; align-items: center; gap: 9px;
  padding: 7px 9px; border-radius: var(--radius-sm);
  font-size: 12.5px; color: var(--ink-dim);
  transition: background .15s, color .15s;
}
.index-card__item:hover { background: #fff; color: var(--accent-deep); }
.index-card__item b { color: var(--ink); font-weight: 600; }
.index-card__num {
  flex: none; min-width: 26px; font-family: var(--mono); font-size: 11px;
  font-weight: 700; color: var(--accent-deep);
}

/* ==========================================================================
   椤佃剼
   ========================================================================== */
.footer {
  border-top: 1px solid rgba(63, 146, 255, .2);
  background: rgba(6, 14, 32, .75);
  padding: 22px 0 30px;
  font-size: 12.5px; color: var(--on-dark-faint);
}
.footer__inner { display: flex; flex-wrap: wrap; gap: 10px 26px; align-items: center; justify-content: space-between; }
.footer a { color: var(--accent-soft); }
.footer a:hover { color: #fff; text-decoration: underline; }

/* 鍥炲埌椤堕儴 */
.totop {
  position: fixed; right: 22px; bottom: 24px; z-index: 70;
  width: 42px; height: 42px; display: grid; place-items: center;
  background: linear-gradient(180deg, #1f5fc4, #154a9e); color: #fff;
  border: 1px solid rgba(96, 168, 255, .6); border-radius: 50%;
  box-shadow: var(--shadow); opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s;
}
.totop.is-on { opacity: 1; pointer-events: auto; }
.totop:hover { transform: translateY(-3px); }

/* ==========================================================================
   鍝嶅簲寮?   ========================================================================== */
@media (max-width: 1260px) {
  .home-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .home-grid > .card--news { grid-column: span 2; }
  .home-grid > .card--content { grid-column: span 2; }
  .home-grid > .card--mech { grid-column: span 2; }
  .home-grid > .card--mech .cat-grid--2 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1080px) {
  .mainnav { display: none; }
  .navtoggle { display: grid; }
  .layout { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: static; }
  .sidebar__panels {
    display: grid; gap: 12px;
    grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr));
  }
  .side-quote { display: none; }
}

@media (max-width: 820px) {
  .home-grid { grid-template-columns: minmax(0, 1fr); }
  .home-grid > .card--news,
  .home-grid > .card--content,
  .home-grid > .card--mech { grid-column: auto; }
  .home-grid > .card--mech .cat-grid--2 { grid-template-columns: repeat(2, 1fr); }
  .boss-grid { grid-template-columns: repeat(2, 1fr); }
  .boss-grid--3, .boss-grid--2 { grid-template-columns: repeat(2, 1fr); }
  .cat-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .cat-grid--2 { grid-template-columns: repeat(2, 1fr); }
  .search { width: 170px; }
  .pager { grid-template-columns: 1fr; }
  .pager__item--next { grid-column: 1; text-align: left; }
}

@media (max-width: 560px) {
  .wrap { padding: 0 12px; }
  .topbar__inner { gap: 10px; }
  .brand__en { display: none; }
  .brand__cn { font-size: 14px; }
  .brand__crest { width: 28px; height: 28px; }
  .search { width: 116px; }
  .search__input { font-size: 12px; }
  .hero { min-height: 240px; }
  .hero__tagline { font-size: 12px; }
  .hero-btn { padding: 9px 14px; font-size: 12.5px; }
  .cat-grid--4, .cat-grid--2 { grid-template-columns: repeat(2, 1fr); }
  .boss-grid, .boss-grid--3, .boss-grid--2 { grid-template-columns: repeat(2, 1fr); }
  .sub-grid { grid-template-columns: 1fr; }
  .vol-list { grid-template-columns: 1fr; }
  .placeholder ul { grid-template-columns: 1fr; }
}

/* 绉诲姩绔娊灞夊鑸?*/
@media (max-width: 1080px) {
  .mainnav.is-open {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; top: var(--topbar-h); left: 0; right: 0;
    padding: 10px 14px; gap: 4px;
    background: #0b1a3a; border-bottom: 1px solid var(--panel-line);
    box-shadow: var(--shadow); z-index: 59;
  }
}

@media print {
  .topbar, .sidebar, .hero, .totop, .footer { display: none !important; }
  body { background: #fff; color: #000; }
  .layout { grid-template-columns: 1fr; }
}

