/* ═══════════════════════════════════════════════════════════
   方块王国 Block Kingdom · 主样式表
   视觉基调：Minecraft 像素风为主（方正卡片 / 硬阴影 / 草方块绿）
             中世纪点缀（羊皮纸横幅 / 衬线引语 / 纹章）
   布局：语义化区块 + 弹性/网格，移动优先响应式
   说明：所有主题变量集中在 :root，调整品牌色 / 间距 / 字体只需改此处
   ═══════════════════════════════════════════════════════════ */

:root {
  /* ── 品牌色（MC 官网绿色系） ── */
  --c-brand:      #4caf50;   /* 主绿 */
  --c-brand-deep: #2e7d32;   /* 深绿（footer/强调） */
  --c-brand-dark: #1b5e20;
  --c-brand-soft: #e8f5e9;   /* 浅绿底 */
  --c-grass:      #78c020;   /* 草方块亮面 */
  --c-grass-dim:  #538d12;
  --c-gold:       #d9b46a;   /* 中世纪点缀金 */
  --c-ink:        #23272a;   /* 主文字 */
  --c-ink-soft:   #5b6369;
  --c-line:       #c9cfc4;   /* 边框 */
  --c-bg:         #ffffff;
  --c-bg-page:    #f4f7f0;
  --c-parchment:  #f6e8c8;   /* 羊皮纸 */
  --c-parchment-d:#e7d3a4;
  --c-charcoal:   #3c3f41;   /* MC 按钮灰 */
  --c-charcoal-lt:#5b6164;

  /* ── 像素感：硬边框 + 硬阴影 ── */
  --border-px: 3px;
  --border-style: solid;
  --shadow-hard: 5px 5px 0 rgba(35, 39, 42, .22);
  --shadow-hard-sm: 3px 3px 0 rgba(35, 39, 42, .18);
  --radius: 2px;             /* 近直角，保留像素感 */

  /* ── 字体 ── */
  --font-body: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: Georgia, "Times New Roman", "Songti SC", "SimSun", serif; /* 中世纪衬线 */

  /* ── 布局 ── */
  --container: 1180px;
  --header-h: 64px;
  --space-section: 64px;
}

/* ═══════════ 基础重置 ═══════════ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--c-ink);
  background: var(--c-bg-page);
  /* 草方块像素点阵底纹（data-uri，零外部资源） */
  background-image:
    radial-gradient(circle at 1px 1px, rgba(35,39,42,.035) 1px, transparent 1.6px);
  background-size: 26px 26px;
}
img, svg { vertical-align: middle; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
button { font: inherit; cursor: pointer; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: -48px; left: 12px; z-index: 1000;
  background: var(--c-ink); color: #fff; padding: 8px 14px;
  border-radius: var(--radius); transition: top .2s;
}
.skip-link:focus { top: 8px; }

.container {
  width: 100%; max-width: var(--container);
  margin-inline: auto; padding-inline: 20px;
}

.section { padding-block: var(--space-section); scroll-margin-top: calc(var(--header-h) + 12px); }

/* 像素风格标题：方正 + 文字描边营造 MC 标题感 */
.pixel-title {
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  -webkit-text-stroke: 0; /* 兜底，避免不支持 */
  text-shadow: 3px 3px 0 rgba(0,0,0,.15);
}

.section-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin-bottom: 28px; }
.section-title { font-size: clamp(26px, 3.4vw, 34px); color: var(--c-brand-dark); }
.section-sub { color: var(--c-ink-soft); font-size: 14px; }
.text-link { margin-left: auto; font-size: 14px; font-weight: 600; color: var(--c-brand-deep); border-bottom: 2px solid transparent; }
.text-link:hover { border-color: var(--c-brand-deep); }

/* MC 风格按钮（参考游戏内石头按钮：灰底 + 硬边高光） */
.editor-btn {
  --btn-h: 40px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--btn-h); padding: 6px 20px;
  font-weight: 700; font-size: 14px; letter-spacing: .04em;
  color: #fff; background: var(--c-brand-deep);
  border: var(--border-px) var(--border-style) var(--c-brand-dark);
  border-radius: var(--radius);
  box-shadow:
    inset 0 3px 0 rgba(255,255,255,.18),
    inset 0 -4px 0 rgba(0,0,0,.22),
    var(--shadow-hard-sm);
  transition: transform .08s ease, box-shadow .08s ease, background .15s;
}
.editor-btn:hover { background: var(--c-brand); transform: translateY(-1px); }
.editor-btn:active { transform: translate(2px, 2px); box-shadow: none; }
.editor-btn-lg { --btn-h: 48px; padding-inline: 30px; font-size: 16px; }
.editor-btn-ghost { background: #fff; color: var(--c-brand-dark); border-color: var(--c-brand-deep); box-shadow: var(--shadow-hard-sm); }
.editor-btn-ghost:hover { background: var(--c-brand-soft); }

/* ═══════════ 顶部导航 ═══════════ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: linear-gradient(#2f6b33, #245529); /* fallback */
  background: linear-gradient(color-mix(in srgb, var(--c-brand-dark) 55%, var(--c-grass) 45%), color-mix(in srgb, var(--c-brand-dark) 80%, #000 20%));
  border-bottom: 4px solid #1b4b20; /* fallback */
  border-bottom: 4px solid color-mix(in srgb, var(--c-brand-dark) 75%, #000 25%);
  box-shadow: 0 3px 0 rgba(0,0,0,.18);
  min-height: var(--header-h);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-crest { width: 34px; height: 34px; filter: drop-shadow(2px 2px 0 rgba(0,0,0,.3)); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-size: 20px; color: #fff; letter-spacing: .12em; text-shadow: 2px 2px 0 rgba(0,0,0,.35); }
.brand-sub { font-size: 10px; color: #bfe3b0; /* fallback */
  color: color-mix(in srgb, var(--c-brand) 40%, #fff 60%); letter-spacing: .14em; text-transform: uppercase; }
.brand-invert .brand-name { color: #fff; }

.nav-list { display: flex; align-items: center; gap: 4px; }
.nav-link {
  display: inline-block; padding: 8px 14px;
  color: #e4f2df; font-weight: 600; font-size: 15px; letter-spacing: .04em;
  border-radius: var(--radius);
  position: relative;
}
.nav-link::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 3px;
  height: 3px; background: var(--c-gold); transform: scaleX(0);
  transform-origin: left; transition: transform .18s;
}
.nav-link:hover, .nav-link.is-active { color: #fff; }
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); }
.nav-link.nav-cta {
  background: var(--c-gold); color: #3a2c10; border: 2px solid #b08a3e;
  box-shadow: inset 0 2px 0 rgba(255,255,255,.35), 2px 2px 0 rgba(0,0,0,.25);
}
.nav-link.nav-cta::after { display: none; }
.nav-link.nav-cta:hover { background: #e6c37f; }

/* 汉堡按钮（默认隐藏，<768px 显示） */
.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 40px; padding: 8px;
  background: transparent; border: 2px solid rgba(255,255,255,.5);
  border-radius: var(--radius);
}
.nav-toggle-bar { display: block; height: 3px; background: #fff; border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ═══════════ ① 轮播展示区 ═══════════ */
.hero { background: linear-gradient(#7ec850, #5da82f 60%, #4a8f24); position: relative; overflow: hidden; } /* fallback */
.hero { background: linear-gradient(color-mix(in srgb, var(--c-grass) 45%, #fff 40%), var(--c-grass) 60%, color-mix(in srgb, var(--c-grass) 55%, #000 25%)); }
/* 像素方块山剪影背景（repeat，营造 MC 地平线） */
.hero::before {
  content: ""; position: absolute; inset: auto 0 0 0; height: 34px; pointer-events: none;
  background-image:
    linear-gradient(135deg, transparent 75%, rgba(0,0,0,.08) 75%) ;
  background-size: 16px 16px;
}

.carousel { position: relative; max-width: var(--container); margin-inline: auto; }
.carousel-viewport { overflow: hidden; padding-top: 14px; }
.carousel-track {
  display: flex;
  transition: transform .55s cubic-bezier(.22,.61,.36,1);
  will-change: transform;
}
.carousel-slide {
  min-width: 100%;
  display: grid; grid-template-columns: 1.1fr .9fr;
  align-items: center; gap: 24px;
  padding: clamp(28px, 5vw, 56px) 16px clamp(52px, 6vw, 72px);
  color: #fff;
}
.slide-copy { min-width: 0; }
.slide-eyebrow {
  display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .22em;
  color: #fff; background: rgba(27,75,32,.75); /* fallback */
  background: color-mix(in srgb, var(--c-brand-dark) 80%, transparent);
  border: 2px solid rgba(255,255,255,.4); padding: 4px 10px;
  margin-bottom: 14px; text-transform: uppercase;
}
.slide-title {
  font-size: clamp(28px, 5.2vw, 52px); font-weight: 900; line-height: 1.12;
  text-shadow: 4px 4px 0 rgba(0,0,0,.28);
  margin-bottom: 12px; letter-spacing: .02em;
}
.slide-desc { font-size: clamp(14px, 1.6vw, 17px); color: rgba(255,255,255,.92); max-width: 46ch; margin-bottom: 22px; text-shadow: 1px 1px 0 rgba(0,0,0,.25); }
.slide-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.slide-cta .editor-btn { background: #fff; color: var(--c-brand-dark); border-color: var(--c-brand-dark); }
.slide-cta .editor-btn:hover { background: var(--c-brand-soft); }
.slide-cta .btn-dark { background: var(--c-charcoal); color: #fff; border-color: #222; }
.slide-cta .btn-dark:hover { background: var(--c-charcoal-lt); }

/* 像素风横幅插画：CSS 方块场景（草/土/石/树/城堡塔楼） */
.slide-art { position: relative; height: clamp(180px, 22vw, 260px); image-rendering: pixelated; }
.block-scene { position: absolute; inset: 0; }
.block-scene .tile { position: absolute; }
/* 天空装饰：像素太阳 */
.px-sun { position: absolute; top: 6%; right: 8%; width: 52px; height: 52px; background: #ffe082; box-shadow: inset -14px -14px 0 #ffd54f; }

/* 城堡塔楼：由方块堆叠 */
.tower { position: absolute; bottom: 0; width: 64px; background: #b0bec5; border: 3px solid #546e7a; box-shadow: inset 0 0 0 3px #cfd8dc; }
.tower.l1 { left: 12%; height: 92px; }
.tower.l2 { left: calc(12% + 66px); height: 56px; width: 48px; }
.tower .flag { position: absolute; top: -16px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 9px solid transparent; border-right: 9px solid transparent; border-bottom: 16px solid var(--c-gold); }
.tower .win { position: absolute; top: 30%; left: 50%; transform: translateX(-50%); width: 18px; height: 14px; background: #3e2723; border: 2px solid #795548; }

/* 地面：草方块行 */
.ground-strip {
  position: absolute; left: 0; right: 0; bottom: 0; height: 18px;
  background: repeating-linear-gradient(90deg, var(--c-grass) 0 32px, color-mix(in srgb, var(--c-grass) 85%, #000 15%) 32px 64px); /* fallback: #6db41d */
  border-top: 3px solid color-mix(in srgb, var(--c-grass) 55%, #000 30%); /* fallback: #3f7a10 */
}
.ground-strip::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px;
  background: color-mix(in srgb, var(--c-grass) 70%, #fff 30%); /* fallback: #9ccc4e */
}

/* 装饰像素云 */
.px-cloud { position: absolute; background: rgba(255,255,255,.92); box-shadow: 18px 8px 0 rgba(255,255,255,.9), -14px 0 0 rgba(255,255,255,.85); width: 34px; height: 12px; }

/* 羊皮纸引言横幅 */
.parchment-banner {
  position: relative; z-index: 2;
  margin: 0 16px 18px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
  padding: 14px 20px;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(120,90,30,.10) 0 40%, transparent 60%),
    radial-gradient(ellipse at 85% 100%, rgba(120,90,30,.10) 0 40%, transparent 60%),
    linear-gradient(#f8ecd2, var(--c-parchment));
  border: 3px solid var(--c-parchment-d);
  box-shadow: inset 0 0 0 1px rgba(120,90,30,.18), 4px 4px 0 rgba(0,0,0,.18);
  border-radius: 2px;
}
.parchment-quote { font-family: var(--font-serif); font-style: italic; font-size: clamp(15px, 2vw, 19px); color: #5a4422; flex: 1; min-width: 220px; }
.parchment-sign { font-family: var(--font-serif); font-size: 13px; color: #8a6a38; }
.parchment-seal { width: 30px; height: 30px; color: #8a6a38; flex: none; }

/* 轮播控制 */
.carousel-arrow {
  position: absolute; top: 42%; z-index: 5;
  width: 42px; height: 42px; font-size: 26px; line-height: 1;
  color: #fff; background: rgba(27,75,32,.78); /* fallback */
  background: color-mix(in srgb, var(--c-brand-dark) 82%, transparent);
  border: 3px solid rgba(255,255,255,.55);
  border-radius: var(--radius);
  transition: background .15s, transform .1s;
}
.carousel-arrow:hover { background: var(--c-brand-dark); }
.carousel-arrow.prev { left: 8px; }
.carousel-arrow.next { right: 8px; }
.carousel-dots {
  position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 10px; z-index: 5;
}
.carousel-dots button {
  width: 13px; height: 13px; padding: 0;
  background: rgba(255,255,255,.45); border: 2px solid rgba(255,255,255,.8);
  transform: rotate(45deg); transition: background .2s, transform .2s;
}
.carousel-dots button.is-active { background: var(--c-gold); transform: rotate(45deg) scale(1.25); }

/* ═══════════ ② 资讯列表 ═══════════ */
.news-section { background: var(--c-bg); }
.news-layout { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 28px; align-items: start; }

.parchment-card {
  background:
    radial-gradient(ellipse at 0% 0%, rgba(120,90,30,.09) 0 45%, transparent 60%),
    linear-gradient(#f8ecd2, var(--c-parchment));
  border: 3px solid var(--c-parchment-d);
  box-shadow: inset 0 0 0 1px rgba(120,90,30,.16), var(--shadow-hard-sm);
  border-radius: 2px;
  padding: 22px;
}
.news-pinned { position: sticky; top: calc(var(--header-h) + 16px); }
.pin-flag {
  display: inline-block; margin-bottom: 10px;
  background: #b3352b; color: #fff; font-size: 12px; font-weight: 800;
  letter-spacing: .12em; padding: 3px 10px; border: 2px solid #8f281f;
  box-shadow: 2px 2px 0 rgba(0,0,0,.2);
}
.news-pinned-title { font-family: var(--font-serif); font-size: clamp(20px, 2.4vw, 26px); color: #4a3414; line-height: 1.3; margin-bottom: 10px; }
.news-pinned-excerpt { font-size: 14px; color: #6b5430; margin-bottom: 16px; }

.news-list { display: flex; flex-direction: column; gap: 12px; }
.news-item {
  display: grid; grid-template-columns: 76px 1fr auto;
  gap: 14px; align-items: start;
  background: #fff;
  border: var(--border-px) var(--border-style) var(--c-line);
  box-shadow: var(--shadow-hard-sm);
  border-radius: var(--radius);
  padding: 14px 16px;
  transition: transform .12s, box-shadow .12s, border-color .12s;
}
.news-item:hover { transform: translate(-1px, -2px); box-shadow: var(--shadow-hard); border-color: var(--c-brand); }
.news-date { text-align: center; background: var(--c-brand-deep); color: #fff; border-radius: var(--radius); padding: 6px 4px; line-height: 1.1; }
.news-date b { display: block; font-size: 20px; }
.news-date span { font-size: 11px; letter-spacing: .14em; }
.news-item-body { min-width: 0; }
.news-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 2px; }
.badge {
  display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .08em;
  padding: 1px 8px; border-radius: var(--radius);
  background: var(--c-brand-soft); color: var(--c-brand-dark); border: 1px solid var(--c-brand);
}
.badge.update { background: #e3f2fd; color: #0d47a1; border-color: #64b5f6; }
.badge.event { background: #fff3e0; color: #b33e00; border-color: #ffb74d; }
.badge.maintain { background: #ede7f6; color: #4527a0; border-color: #b39ddb; }
.news-item-title { font-size: 15.5px; font-weight: 700; line-height: 1.45; }
.news-item-title a:hover { color: var(--c-brand-deep); }
.news-item-excerpt { font-size: 13px; color: var(--c-ink-soft); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-arrow { font-size: 20px; color: var(--c-line); align-self: center; }

/* ═══════════ ③ 游戏特色 ═══════════ */
.features-section {
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,.03) 0 26px, transparent 26px 52px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.03) 0 26px, transparent 26px 52px),
    linear-gradient(var(--c-brand-dark), #1c4a20); /* fallback */
    linear-gradient(var(--c-brand-dark), color-mix(in srgb, var(--c-brand-dark) 80%, #000 20%));
}
.features-section .section-title { color: #fff; }
.features-section .section-sub { color: #bfe3b0; } /* fallback */
.features-section .section-sub { color: color-mix(in srgb, var(--c-brand) 40%, #fff 60%); }
.features-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.feature-card {
  background: #fff; border: var(--border-px) var(--border-style) #aab;
  border-radius: var(--radius);
  padding: 22px 18px;
  box-shadow: var(--shadow-hard);
  display: flex; flex-direction: column; gap: 10px;
  transition: transform .14s ease, box-shadow .14s ease;
}
.feature-card:hover { transform: translateY(-5px); box-shadow: 7px 9px 0 rgba(0,0,0,.3); }
.feature-icon {
  width: 56px; height: 56px; display: grid; place-items: center;
  background: var(--c-brand-soft); border: 3px solid var(--c-brand-deep);
  box-shadow: inset 0 0 0 2px #fff, 3px 3px 0 rgba(0,0,0,.15);
  color: var(--c-brand-dark);
}
.feature-icon svg { width: 30px; height: 30px; }
.feature-name { font-size: 18px; font-weight: 800; letter-spacing: .03em; }
.feature-tag { font-size: 11px; color: var(--c-gold) ; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; background: #3c2f14; display: inline-block; padding: 1px 8px; border-radius: 2px; width: fit-content; }
.feature-desc { font-size: 13.5px; color: var(--c-ink-soft); }

/* ═══════════ ④ 社区论坛 ═══════════ */
.forum-section { background: var(--c-bg); }
.forum-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.forum-cat {
  background: #fff; border: var(--border-px) var(--border-style) var(--c-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hard-sm);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .12s, box-shadow .12s;
}
.forum-cat:hover { transform: translateY(-3px); box-shadow: var(--shadow-hard); }
.forum-cat-head {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  background: linear-gradient(#eaf3e5, #dcebd4);
  border-bottom: 3px solid var(--c-brand);
}
.forum-cat-icon {
  width: 40px; height: 40px; flex: none;
  display: grid; place-items: center;
  background: var(--c-brand-deep); color: #fff; border: 2px solid var(--c-brand-dark);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.2);
}
.forum-cat-icon svg { width: 22px; height: 22px; }
.forum-cat-name { font-size: 16px; font-weight: 800; }
.forum-cat-meta { font-size: 12px; color: var(--c-ink-soft); margin-top: 1px; }
.forum-cat-body { padding: 10px 16px 12px; flex: 1; display: flex; flex-direction: column; gap: 7px; }
.latest-post {
  font-size: 13px; color: var(--c-ink-soft);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.latest-post a { color: var(--c-ink); font-weight: 600; }
.latest-post a:hover { color: var(--c-brand-deep); }
.latest-post .t { display: block; }
.latest-post .by { color: var(--c-ink-soft); font-size: 12px; }
.forum-cat-stat { margin-top: auto; display: flex; gap: 14px; font-size: 12px; color: var(--c-ink-soft); border-top: 2px dashed var(--c-line); padding-top: 8px; }
.forum-cat-stat b { color: var(--c-brand-dark); }

.forum-cta { margin-top: 30px; text-align: center; }

/* ═══════════ ⑤ 下载区 ═══════════ */
.download-section {
  background:
    radial-gradient(circle at 12% 18%, rgba(217,180,106,.12) 0 160px, transparent 300px),
    linear-gradient(#2a2e33, #1f2327);
}
.download-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.download-section .section-title { color: #fff; }
.download-section .section-sub { color: #aeb6bd; }
.download-points { margin-top: 16px; display: grid; gap: 8px; }
.download-points li { color: #cfd6dc; font-size: 14px; padding-left: 22px; position: relative; }
.download-points li::before {
  content: "◆"; position: absolute; left: 2px; color: var(--c-gold);
  font-size: 11px; top: 2px;
}
.download-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ═══════════ 页脚 ═══════════ */
.site-footer { background: #1b4b20; color: #d6e8cf; } /* fallback */
.site-footer { background: color-mix(in srgb, var(--c-brand-dark) 72%, #000 28%); }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px;
  padding-block: 40px 28px;
}
.footer-title {
  font-size: 15px; font-weight: 800; color: #fff; letter-spacing: .12em;
  margin-bottom: 14px; text-transform: uppercase;
  display: inline-block; border-bottom: 3px solid var(--c-gold); padding-bottom: 4px;
}
.footer-desc { font-size: 13.5px; color: #bcd6b4; margin-top: 12px; max-width: 40ch; }
.footer-links { display: grid; gap: 8px; }
.footer-links a, .footer-links span { font-size: 14px; color: #d6e8cf; }
.footer-links a { display: inline-block; position: relative; padding-left: 14px; }
.footer-links a::before { content: "▸"; position: absolute; left: 0; color: var(--c-gold); }
.footer-links a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-label { color: var(--c-gold); }

.footer-bottom { border-top: 3px solid rgba(255,255,255,.12); background: #143d18; } /* fallback */
.footer-bottom { background: color-mix(in srgb, var(--c-brand-dark) 80%, #000 20%); }
.footer-bottom-inner {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px;
  padding-block: 12px; font-size: 12.5px; color: #9cc294;
}
.footer-icp { color: #8bb385; }

/* ═══════════ 响应式 ═══════════ */
/* 平板 */
@media (max-width: 1023px) {
  .news-layout { grid-template-columns: 1fr; }
  .news-pinned { position: static; }
  .carousel-slide { grid-template-columns: 1fr; }
  .slide-art { display: none; }
}
/* 移动端 */
@media (max-width: 767px) {
  :root { --space-section: 44px; }
  .header-inner { flex-wrap: wrap; }
  .nav-toggle { display: flex; }
  .main-nav {
    display: none; flex-basis: 100%; order: 3;
    padding: 8px 0 14px;
  }
  .main-nav.is-open { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-link { display: block; padding: 10px 12px; font-size: 16px; border-radius: var(--radius); }
  .nav-link:hover { background: rgba(255,255,255,.08); }
  .nav-link::after { display: none; }
  .nav-link.nav-cta { text-align: center; }

  .news-item { grid-template-columns: 62px 1fr; }
  .news-arrow { display: none; }
  .features-grid { grid-template-columns: 1fr; }
  .forum-cats { grid-template-columns: 1fr; }
  .carousel-arrow { top: 34%; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom-inner { flex-direction: column; }
}

/* 窄屏微调 */
@media (max-width: 420px) {
  .brand-sub { display: none; }
  .news-item { grid-template-columns: 1fr; }
  .news-date { display: inline-flex; align-items: baseline; gap: 6px; padding: 2px 10px; }
}

/* ═══════════ 富文本正文（公告 details 展开） ═══════════ */
.news-detail { margin-top: 8px; border-top: 2px dashed var(--c-line); }
.news-detail summary {
  display: inline-block; cursor: pointer; list-style: none;
  font-size: 12.5px; font-weight: 700; color: var(--c-brand-deep);
  padding: 6px 0 2px; user-select: none;
}
.news-detail summary::-webkit-details-marker { display: none; }
.news-detail summary::before { content: "▸ "; transition: transform .15s; }
.news-detail[open] summary::before { content: "▾ "; }
.news-detail-body {
  margin-top: 8px; padding: 12px 14px;
  background: var(--c-brand-soft);
  border: 2px solid var(--c-line);
  border-radius: var(--radius);
  font-size: 14px; line-height: 1.8; color: var(--c-ink);
}
.news-detail-body > :first-child { margin-top: 0; }
.news-detail-body > :last-child { margin-bottom: 0; }
.news-detail-body p { margin: 0 0 10px; }
.news-detail-body h1, .news-detail-body h2, .news-detail-body h3 { margin: 14px 0 8px; font-size: 16px; }
.news-detail-body ul, .news-detail-body ol { margin: 0 0 10px; padding-left: 22px; list-style: disc; }
.news-detail-body ol { list-style: decimal; }
.news-detail-body li { margin-bottom: 4px; }
.news-detail-body a { color: var(--c-brand-deep); text-decoration: underline; text-underline-offset: 2px; }
.news-detail-body strong { font-weight: 800; }
.news-detail-body blockquote {
  margin: 10px 0; padding: 8px 14px;
  border-left: 4px solid var(--c-gold);
  background: rgba(217,180,106,.15);
  color: var(--c-ink-soft);
}
.news-detail-body img { max-width: 100%; border-radius: var(--radius); margin: 6px 0; }
.news-detail-body code { background: rgba(35,39,42,.08); padding: 1px 6px; border-radius: 3px; font-size: 13px; }

/* 置顶卡内富文本（若置顶公告有正文） */
#news-pinned .news-detail-body { margin-bottom: 12px; }

/* 轮播自定义配图（banner.image） */
.slide-img {
  width: 100%; height: 100%; object-fit: cover;
  border: 4px solid rgba(255,255,255,.5);
  box-shadow: 6px 6px 0 rgba(0,0,0,.25);
  image-rendering: auto;
}
