/* =========================================================
   整合包官网样式 —— Minecraft 像素风格
   纯 CSS 实现，零外部依赖；适配 PC / 平板 / 手机
   ========================================================= */

:root {
  --bg:           #12160f;
  --bg-soft:      #171d14;
  --panel:        #1d241a;
  --panel-2:      #232c1f;
  --panel-hover:  #283322;
  --border:       #0b0e08;
  --line:         #33402c;
  --green:        #5db13e;
  --green-light:  #9be36b;
  --green-dark:   #3f7d2a;
  --brown:        #8a5a33;
  --text:         #e8efe4;
  --text-dim:     #a6b39e;
  --gold:         #f7c948;
  --red:          #e05d5d;
  --blue:         #6cb8e6;
  --shadow-hard:  0 5px 0 #000;
  --radius:       2px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* 强制 hidden 属性生效 */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--green-light); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; image-rendering: pixelated; }

.container { width: min(1180px, 92%); margin: 0 auto; }
.container-narrow { width: min(760px, 92%); }

/* ============ 通用按钮（MC 方块按钮风格） ============ */
.btn {
  display: inline-block;
  border: 3px solid var(--border);
  padding: 10px 22px;
  font-size: 15px;
  letter-spacing: 1px;
  cursor: pointer;
  text-align: center;
  font-family: inherit;
  transition: transform .07s ease, box-shadow .07s ease, background .15s ease;
  user-select: none;
  line-height: 1.4;
}
.btn:hover { text-decoration: none; filter: brightness(1.08); }
.btn:active { transform: translateY(4px); box-shadow: none !important; }
.btn-lg { padding: 14px 34px; font-size: 17px; }
.btn-primary {
  background: var(--green); color: #fff;
  box-shadow: 0 5px 0 var(--green-dark), 0 6px 0 #000;
  text-shadow: 1px 1px 0 rgba(0,0,0,.4);
}
.btn-primary:active { box-shadow: 0 1px 0 var(--green-dark) !important; }
.btn-ghost {
  background: transparent; color: var(--text);
  box-shadow: 0 5px 0 #000;
  border-color: #4a5a40;
}
.btn-ghost:hover { background: rgba(255,255,255,.06); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: not-allowed; }

/* ============ 顶部导航 ============ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(13, 17, 11, .92);
  border-bottom: 3px solid #000;
  backdrop-filter: blur(6px);
  transition: transform .25s ease;
}
.nav-inner {
  width: min(1280px, 94%); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand-logo { width: 34px; height: 34px; }
.brand-text { font-size: 19px; font-weight: 700; letter-spacing: 1px; white-space: nowrap; }

.site-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.site-nav a {
  color: var(--text-dim); padding: 7px 12px; font-size: 14.5px;
  border: 2px solid transparent; transition: color .15s, background .15s;
}
.site-nav a:hover { color: var(--green-light); text-decoration: none; background: rgba(155,227,107,.07); }
.site-nav a.nav-download {
  color: #fff; background: var(--green); border-color: #000;
  box-shadow: 0 3px 0 var(--green-dark); margin-left: 6px;
}
.site-nav a.nav-download:hover { background: #69c249; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: var(--panel-2); border: 3px solid #000; padding: 9px 8px; cursor: pointer;
}
.nav-toggle span { display: block; width: 22px; height: 3px; background: var(--text); }

/* ============ Hero ============ */
.hero {
  position: relative;
  padding: 148px 0 96px;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(93,177,62,.18), transparent 70%),
    linear-gradient(180deg, #182214 0%, #12160f 85%);
  border-bottom: 4px solid #000;
  overflow: hidden;
}
.hero-inner { position: relative; z-index: 2; text-align: center; }
.hero-badges { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 26px; }
.badge {
  display: inline-block; padding: 5px 14px; font-size: 13.5px; letter-spacing: 1px;
  border: 2px solid #000; box-shadow: 0 3px 0 rgba(0,0,0,.6);
}
.badge-mc { background: #3a5b8c; color: #dcebff; }
.badge-loader { background: #6b4a2e; color: #ffe9c9; }
.badge-mods { background: var(--green-dark); color: #eaffdf; }

.hero-title {
  font-size: clamp(34px, 6vw, 60px);
  line-height: 1.15; letter-spacing: 3px;
  text-shadow: 3px 3px 0 #000, 6px 6px 0 rgba(0,0,0,.25);
  margin-bottom: 16px;
}
.hero-slogan {
  font-size: clamp(17px, 2.4vw, 23px); color: var(--green-light);
  letter-spacing: 4px; margin-bottom: 22px; text-shadow: 2px 2px 0 #000;
}
.hero-desc {
  max-width: 760px; margin: 0 auto 36px; color: var(--text-dim);
  font-size: 16px; white-space: pre-line;
}
.hero-actions { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }
.hero-notice {
  margin: 34px auto 0; max-width: 720px;
  background: rgba(247,201,72,.08); border: 2px solid rgba(247,201,72,.45);
  color: #f3d98b; padding: 12px 18px; font-size: 14.5px; text-align: left;
}

/* 像素云朵 */
.pixel-clouds { position: absolute; inset: 0; pointer-events: none; }
.cloud {
  position: absolute; width: 96px; height: 32px;
  background:
    linear-gradient(var(--bg-soft),var(--bg-soft)) 16px 8px/64px 24px no-repeat,
    linear-gradient(var(--bg-soft),var(--bg-soft)) 32px 0/32px 16px no-repeat,
    linear-gradient(var(--bg-soft),var(--bg-soft)) 0 16px/96px 16px no-repeat;
  opacity: .5;
}
.c1 { top: 70px; left: 8%; animation: cloudmove 46s linear infinite; }
.c2 { top: 120px; right: 10%; transform: scale(.8); animation: cloudmove 60s linear infinite reverse; }
.c3 { top: 40px; left: 55%; transform: scale(.6); opacity: .3; animation: cloudmove 80s linear infinite; }
@keyframes cloudmove { from { transform: translateX(-30px); } to { transform: translateX(60px); } }

/* 草地地面 */
.hero-ground { position: absolute; left: 0; right: 0; bottom: 0; height: 26px; z-index: 1; }
.ground-blocks {
  height: 100%;
  background:
    repeating-linear-gradient(90deg, #7cc85a 0 32px, #6cbd4e 32px 64px) top / 100% 8px no-repeat,
    repeating-linear-gradient(90deg, #8a5a33 0 32px, #7d512d 32px 64px) bottom / 100% 18px no-repeat,
    #000;
  box-shadow: 0 -2px 0 #000;
}

/* ============ 指标条 ============ */
.stat-bar { background: var(--green-dark); border-bottom: 4px solid #000; }
.stat-grid {
  display: grid; grid-template-columns: repeat(6, 1fr);
}
.stat-item {
  text-align: center; padding: 20px 10px;
  border-right: 2px solid rgba(0,0,0,.35); color: #eaffdf;
}
.stat-item:first-child { border-left: 2px solid rgba(0,0,0,.35); }
.stat-item .num { display: block; font-size: 19px; font-weight: 700; letter-spacing: 1px; }
.stat-item .lbl { display: block; font-size: 13px; opacity: .85; margin-top: 2px; }

/* ============ 通用区块 ============ */
.section { padding: 78px 0; border-bottom: 3px solid #000; }
.section-alt { background: var(--bg-soft); }
.section-head { text-align: center; margin-bottom: 48px; }
.section-title {
  font-size: clamp(26px, 3.6vw, 36px); letter-spacing: 2px;
  display: inline-flex; align-items: center; gap: 12px;
  text-shadow: 3px 3px 0 #000;
}
.title-icon { font-size: .95em; }
.section-sub { color: var(--text-dim); margin-top: 12px; font-size: 15px; }

.loading-box {
  grid-column: 1 / -1; text-align: center; color: var(--text-dim);
  padding: 40px 0; border: 2px dashed var(--line);
}

/* ============ 特色卡片 ============ */
.feature-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.feature-card {
  background: var(--panel); border: 3px solid var(--border);
  box-shadow: 0 6px 0 #000, inset 0 0 0 2px var(--line);
  padding: 28px 24px; transition: transform .12s ease, background .15s ease;
}
.feature-card:hover { transform: translateY(-5px); background: var(--panel-hover); }
.feature-icon {
  width: 54px; height: 54px; display: flex; align-items: center; justify-content: center;
  font-size: 28px; background: var(--bg-soft); border: 2px solid #000;
  box-shadow: inset 0 0 0 2px var(--line); margin-bottom: 16px;
}
.feature-card h3 { font-size: 19px; margin-bottom: 10px; color: var(--green-light); letter-spacing: 1px; }
.feature-card p { color: var(--text-dim); font-size: 14.5px; }

/* ============ 模组阵容 ============ */
.mod-groups { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.mod-group {
  background: var(--panel); border: 3px solid var(--border);
  box-shadow: 0 5px 0 #000; padding: 22px 24px;
}
.mod-group-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; border-bottom: 2px solid var(--line); padding-bottom: 10px; }
.mod-group-head h3 { font-size: 18px; color: var(--gold); letter-spacing: 1px; }
.mod-group-head span { font-size: 13px; color: var(--text-dim); }
.mod-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.mod-tag {
  background: var(--bg-soft); border: 2px solid #000;
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--text); font-size: 13px; padding: 4px 11px;
}

/* ============ 时间线（更新日志） ============ */
.timeline { position: relative; max-width: 880px; margin: 0 auto; padding-left: 30px; }
.timeline::before {
  content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px;
  width: 4px; background: var(--line);
}
.tl-item { position: relative; margin-bottom: 30px; }
.tl-item:last-child { margin-bottom: 0; }
.tl-dot {
  position: absolute; left: -30px; top: 6px; width: 18px; height: 18px;
  background: var(--green); border: 3px solid #000; box-shadow: 0 0 0 2px var(--green-dark);
}
.tl-card {
  background: var(--panel); border: 3px solid var(--border); box-shadow: 0 5px 0 #000;
  padding: 20px 24px;
}
.tl-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.tl-version { font-size: 19px; font-weight: 700; color: var(--green-light); }
.tl-type { background: var(--green-dark); color: #fff; font-size: 12px; padding: 2px 9px; border: 2px solid #000; }
.tl-type.beta { background: #a97b2c; }
.tl-info { color: var(--text-dim); font-size: 13.5px; }
.tl-date { margin-left: auto; color: var(--text-dim); font-size: 13px; }
.tl-log { white-space: pre-line; color: #cdd8c8; font-size: 14.5px; line-height: 1.9; }

/* ============ 下载中心 ============ */
.download-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.dl-card {
  background: var(--panel); border: 3px solid var(--border);
  box-shadow: 0 6px 0 #000, inset 0 0 0 2px var(--line);
  display: flex; flex-direction: column; overflow: hidden;
}
.dl-head {
  background: linear-gradient(180deg, #2a3524, #202820);
  padding: 18px 22px; border-bottom: 3px solid #000;
  display: flex; align-items: center; gap: 12px;
}
.dl-type {
  background: var(--brown); color: #fff; font-size: 12.5px; padding: 3px 10px;
  border: 2px solid #000; white-space: nowrap;
}
.dl-type.server { background: #3a5b8c; }
.dl-name { font-size: 17px; font-weight: 700; letter-spacing: .5px; }
.dl-body { padding: 18px 22px; flex: 1; }
.dl-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; margin-bottom: 14px; }
.dl-meta div { font-size: 13.5px; color: var(--text-dim); }
.dl-meta b { color: var(--text); font-weight: 600; }
.dl-check {
  background: var(--bg-soft); border: 2px solid #000; padding: 10px 12px;
  font-size: 12.5px; color: var(--text-dim); margin-bottom: 14px; word-break: break-all;
}
.dl-check .chk-row { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.dl-check code { color: var(--green-light); font-family: Consolas, monospace; flex: 1; }
.dl-note { font-size: 13px; color: #d8c284; background: rgba(247,201,72,.07); border: 1px solid rgba(247,201,72,.3); padding: 9px 12px; margin-bottom: 14px; }
.dl-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; }
.dl-actions .btn { flex: 1; min-width: 130px; }
.copy-btn {
  background: var(--panel-2); color: var(--text-dim); border: 2px solid #000;
  font-size: 12px; padding: 2px 9px; cursor: pointer; font-family: inherit;
}
.copy-btn:hover { color: var(--green-light); }
.dl-empty {
  grid-column: 1 / -1; text-align: center; padding: 56px 20px;
  border: 3px dashed var(--line); color: var(--text-dim);
}
.dl-empty .big { font-size: 46px; display: block; margin-bottom: 12px; }

/* ============ 安装步骤 ============ */
.install-steps { max-width: 820px; margin: 0 auto; list-style: none; counter-reset: step; }
.install-step {
  counter-increment: step; position: relative;
  background: var(--panel); border: 3px solid var(--border); box-shadow: 0 5px 0 #000;
  padding: 20px 24px 20px 84px; margin-bottom: 18px;
}
.install-step::before {
  content: counter(step);
  position: absolute; left: 20px; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  background: var(--green); color: #fff; font-size: 22px; font-weight: 700;
  border: 3px solid #000; box-shadow: 0 3px 0 var(--green-dark);
}
.install-step h3 { font-size: 17px; color: var(--green-light); margin-bottom: 6px; }
.install-step p { color: var(--text-dim); font-size: 14.5px; white-space: pre-line; }

/* ============ FAQ ============ */
.faq-list { max-width: 880px; margin: 0 auto; }
.faq-item {
  background: var(--panel); border: 3px solid var(--border); box-shadow: 0 4px 0 #000;
  margin-bottom: 14px; overflow: hidden;
}
.faq-q {
  width: 100%; display: flex; align-items: center; gap: 14px; text-align: left;
  background: none; border: none; color: var(--text); font-family: inherit;
  font-size: 16px; font-weight: 600; padding: 17px 20px; cursor: pointer; line-height: 1.5;
}
.faq-q:hover { background: var(--panel-hover); }
.faq-q .q-cat {
  flex-shrink: 0; font-size: 12px; font-weight: 400; color: var(--green-light);
  background: rgba(155,227,107,.1); border: 2px solid #000; padding: 2px 9px;
}
.faq-q .q-arrow { margin-left: auto; flex-shrink: 0; color: var(--green-light); transition: transform .2s; font-size: 14px; }
.faq-item.open .q-arrow { transform: rotate(180deg); }
.faq-a {
  max-height: 0; overflow: hidden; transition: max-height .25s ease;
  color: var(--text-dim); font-size: 14.5px;
}
.faq-a-inner { padding: 0 20px 18px 20px; white-space: pre-line; border-top: 2px solid transparent; }
.faq-item.open .faq-a-inner { padding-top: 14px; border-top-color: var(--line); }

/* ============ 反馈表单 ============ */
.feedback-form {
  background: var(--panel); border: 3px solid var(--border);
  box-shadow: 0 6px 0 #000, inset 0 0 0 2px var(--line);
  padding: 30px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { margin-bottom: 18px; }
.form-field label { display: block; margin-bottom: 7px; font-size: 14.5px; color: var(--text); }
.form-field label em { color: var(--red); font-style: normal; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; background: var(--bg-soft); border: 3px solid #000;
  box-shadow: inset 0 0 0 2px var(--line); color: var(--text);
  padding: 11px 13px; font-size: 15px; font-family: inherit; outline: none;
  transition: box-shadow .15s;
}
.form-field textarea { resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  box-shadow: inset 0 0 0 2px var(--green);
}
.form-actions { text-align: center; }
.form-msg { text-align: center; margin-top: 14px; font-size: 14.5px; min-height: 22px; }
.form-msg.ok { color: var(--green-light); }
.form-msg.err { color: var(--red); }

/* ============ 页脚 ============ */
.site-footer { background: #0c0f0a; border-top: 4px solid #000; padding: 40px 0 30px; }
.footer-inner { text-align: center; }
.footer-brand { display: inline-flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 700; margin-bottom: 16px; }
.footer-links { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin-bottom: 16px; }
.footer-links a { color: var(--text-dim); font-size: 14px; }
.footer-links a:hover { color: var(--green-light); }
.footer-copy { color: #6c7865; font-size: 13px; max-width: 720px; margin: 0 auto 10px; }

/* ============ 游戏截图画廊 ============ */
.shot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 20px;
}
.shot-card {
  display: flex; flex-direction: column;
  padding: 0; text-align: left;
  background: var(--panel); border: 3px solid var(--border);
  box-shadow: var(--shadow-hard); color: var(--text);
  cursor: pointer; overflow: hidden; font-family: inherit;
  transition: transform .12s ease, box-shadow .12s ease;
}
.shot-card:hover, .shot-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 9px 0 #000;
  outline: none;
}
.shot-card:active { transform: translateY(0); box-shadow: 0 2px 0 #000; }
.shot-img-wrap {
  position: relative; display: block;
  aspect-ratio: 16 / 9; background: #0a0d08; overflow: hidden;
}
.shot-img {
  width: 100%; height: 100%; display: block;
  object-fit: cover; image-rendering: auto;
  transition: transform .25s ease;
}
.shot-card:hover .shot-img { transform: scale(1.06); }
.shot-fail {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: var(--red); font-size: 14px; background: var(--panel-2);
}
.shot-zoom {
  position: absolute; top: 8px; right: 8px;
  width: 34px; height: 34px; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.72); border: 2px solid #000; font-size: 15px;
  opacity: 0; transition: opacity .18s ease;
}
.shot-card:hover .shot-zoom, .shot-card:focus-visible .shot-zoom { opacity: 1; }
.shot-info {
  display: flex; flex-direction: column; gap: 3px;
  padding: 12px 14px; background: var(--panel-2);
  border-top: 2px solid var(--border);
}
.shot-title { font-size: 15px; font-weight: 700; color: var(--text); }
.shot-desc {
  font-size: 13px; color: var(--text-dim); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* ============ 截图灯箱 ============ */
.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility .2s ease;
  -webkit-user-select: none; user-select: none;
}
.lightbox.show { opacity: 1; visibility: visible; }
.lightbox-mask {
  position: absolute; inset: 0;
  background: rgba(5,8,4,.88); backdrop-filter: blur(3px);
}
.lightbox-stage {
  position: absolute; inset: 64px 70px 92px;
  display: flex; align-items: center; justify-content: center;
}
.lightbox-img {
  max-width: 100%; max-height: 100%;
  object-fit: contain; image-rendering: auto;
  border: 3px solid #000; box-shadow: 0 0 0 3px var(--line), 0 14px 40px rgba(0,0,0,.7);
  background: #0a0d08;
}
.lightbox-loading, .lightbox-error {
  position: relative; z-index: 1;
  padding: 18px 26px; background: var(--panel-2); border: 3px solid #000;
  color: var(--text-dim); font-size: 15px;
}
.lightbox-error { color: var(--red); }
.lightbox-close {
  position: absolute; top: 18px; right: 22px; z-index: 2;
  width: 46px; height: 46px; font-size: 26px; line-height: 1;
  background: var(--panel-2); color: var(--text); border: 3px solid #000;
  box-shadow: 0 3px 0 #000; cursor: pointer; font-family: inherit;
}
.lightbox-close:hover { background: var(--red); color: #fff; }
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 52px; height: 64px; font-size: 24px;
  background: rgba(29,36,26,.9); color: var(--green-light); border: 3px solid #000;
  box-shadow: 0 4px 0 #000; cursor: pointer; font-family: inherit;
  transition: background .15s ease, transform .1s ease;
}
.lightbox-nav:hover { background: var(--panel-hover); }
.lightbox-nav:active { transform: translateY(calc(-50% + 3px)); box-shadow: 0 1px 0 #000; }
.lightbox-prev { left: 18px; }
.lightbox-next { right: 18px; }
.lightbox-caption {
  position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%);
  z-index: 2; max-width: min(760px, 80%);
  display: flex; align-items: flex-end; gap: 18px;
  padding: 12px 20px; background: rgba(13,17,11,.85); border: 2px solid var(--line);
}
.lb-text { min-width: 0; }
.lb-title { font-size: 15px; font-weight: 700; color: var(--green-light); }
.lb-desc {
  font-size: 13px; color: var(--text-dim); line-height: 1.5;
  overflow: hidden; text-overflow: ellipsis; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.lb-count { flex: none; font-size: 13px; color: var(--text-dim); font-variant-numeric: tabular-nums; }

/* ============ 返回顶部 ============ */
.back-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 48px; height: 48px; background: var(--panel-2); border: 3px solid #000;
  box-shadow: 0 4px 0 #000; color: var(--green-light); font-size: 20px;
  cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .2s, transform .1s;
}
.back-top.show { opacity: 1; pointer-events: auto; }
.back-top:active { transform: translateY(3px); box-shadow: 0 1px 0 #000; }

/* =========================================================
   响应式：平板
   ========================================================= */
@media (max-width: 980px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-grid { grid-template-columns: repeat(3, 1fr); }
  .stat-item:nth-child(3) { border-right: none; }
  .stat-item { border-bottom: 2px solid rgba(0,0,0,.35); }
  .shot-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
}

/* =========================================================
   响应式：手机
   ========================================================= */
@media (max-width: 768px) {
  body { font-size: 15px; }
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(13,17,11,.98); border-bottom: 3px solid #000;
    max-height: 0; overflow: hidden; transition: max-height .25s ease;
  }
  .site-nav.open { max-height: 420px; overflow-y: auto; }
  .site-nav a { padding: 14px 20px; border-bottom: 1px solid #202820; font-size: 15px; }
  .site-nav a.nav-download { margin: 10px; text-align: center; }

  .hero { padding: 118px 0 70px; }
  .section { padding: 56px 0; }
  .section-head { margin-bottom: 34px; }

  .feature-grid { grid-template-columns: 1fr; gap: 16px; }
  .mod-groups { grid-template-columns: 1fr; }
  .download-grid { grid-template-columns: 1fr; }
  .dl-meta { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .feedback-form { padding: 20px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(3) { border-right: 2px solid rgba(0,0,0,.35); }
  .stat-item:nth-child(2n) { border-right: none; }

  .timeline { padding-left: 24px; }
  .tl-dot { left: -24px; width: 15px; height: 15px; }
  .tl-date { margin-left: 0; width: 100%; }
  .install-step { padding: 18px 18px 18px 76px; }
  .install-step::before { left: 14px; width: 38px; height: 38px; font-size: 19px; }
  .hero-actions .btn { width: 100%; }

  /* 截图：手机单列；灯箱留出边缘空间 */
  .shot-grid { grid-template-columns: 1fr; gap: 14px; }
  .lightbox-stage { inset: 56px 12px 104px; }
  .lightbox-nav { width: 40px; height: 54px; font-size: 19px; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
  .lightbox-close { top: 12px; right: 12px; width: 40px; height: 40px; font-size: 22px; }
  .lightbox-caption { max-width: 94%; bottom: 12px; padding: 10px 14px; gap: 12px; }
}

@media (max-width: 420px) {
  .brand-text { font-size: 16px; }
  .hero-badges .badge { font-size: 12px; padding: 4px 10px; }
  .btn-lg { padding: 12px 22px; font-size: 15px; }
}
