/* ============================================================
   好合击 - 传奇合击私服发布网 全站样式表
   域名: www.haohj.com.cn  |  自适应 PC / 手机端
   ============================================================ */

/* ---------- 变量与基础 ---------- */
:root {
  --gold: #f5c542;
  --gold-light: #ffe9a8;
  --gold-deep: #b8860b;
  --red: #c92a2a;
  --red-deep: #8a1c1c;
  --bg: #0b0b10;
  --panel: rgba(16, 14, 26, 0.94);
  --panel-2: rgba(26, 21, 38, 0.92);
  --border: rgba(212, 160, 23, 0.28);
  --border-soft: rgba(212, 160, 23, 0.14);
  --text: #eae2cf;
  --text-dim: #a99f8a;
  --text-dark: #221a0a;
  --radius: 10px;
  --shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
  --shadow-gold: 0 0 18px rgba(245, 197, 66, 0.28);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
  background-color: var(--bg);
  background-image: url(../images/bj.png);
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  background-attachment: fixed;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(8, 6, 14, 0.55);
  z-index: 0;
  pointer-events: none;
}

img { max-width: 100%; display: block; border: 0; }
a { color: var(--gold); text-decoration: none; transition: color .2s, opacity .2s; }
a:hover { color: var(--gold-light); }
ul, ol { list-style: none; }
input, button, select, textarea { font-family: inherit; font-size: 100%; outline: none; }

/* 中文书法标题字体 */
.font-kai, .sec-title h2, .logo-text, .hero-title {
  font-family: "KaiTi", "STKaiti", "SimSun", serif;
}

/* ---------- 布局容器 ---------- */
.container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* ---------- 顶部信息条 ---------- */
.topbar {
  position: relative;
  z-index: 2;
  background: rgba(10, 8, 16, 0.92);
  border-bottom: 1px solid var(--border-soft);
  font-size: 13px;
}
.topbar-inner { display: flex; justify-content: space-between; align-items: center; height: 34px; color: var(--text-dim); }
.topbar-links a { color: var(--text-dim); margin-left: 12px; }
.topbar-links a:hover { color: var(--gold); }

/* ---------- 头部主区 ---------- */
.site-header { position: relative; z-index: 5; }
.header-main {
  background: linear-gradient(180deg, rgba(14, 11, 22, 0.96), rgba(10, 8, 16, 0.92));
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}
.header-inner { display: flex; align-items: center; gap: 24px; }
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo img { height: 58px; width: 58px; border-radius: 10px; box-shadow: var(--shadow-gold); }
.logo-text { font-size: 30px; font-weight: bold; color: var(--gold); letter-spacing: 2px; text-shadow: 0 0 14px rgba(245, 197, 66, 0.55); }
.logo-sub { font-size: 12px; color: var(--text-dim); display: block; line-height: 1.3; }

.header-search { flex: 1; max-width: 460px; margin-left: auto; }
.search-form { display: flex; border: 1px solid var(--border); border-radius: 30px; overflow: hidden; background: rgba(0, 0, 0, 0.35); }
.search-form input {
  flex: 1; border: 0; background: transparent; color: var(--text);
  padding: 10px 18px; font-size: 14px; min-width: 0;
}
.search-form input::placeholder { color: var(--text-dim); }
.search-form button {
  border: 0; cursor: pointer; padding: 0 26px; color: var(--text-dark);
  background: linear-gradient(180deg, var(--gold-light), var(--gold));
  font-size: 15px; font-weight: bold;
}
.search-form button:hover { filter: brightness(1.08); }

.header-download { flex-shrink: 0; }
.btn {
  display: inline-block; padding: 9px 22px; border-radius: 6px;
  font-size: 15px; font-weight: bold; text-align: center; cursor: pointer; border: 0;
}
.btn-gold {
  color: var(--text-dark);
  background: linear-gradient(180deg, var(--gold-light), var(--gold));
  box-shadow: var(--shadow-gold);
}
.btn-gold:hover { color: var(--text-dark); filter: brightness(1.08); }
.btn-red {
  color: #fff;
  background: linear-gradient(180deg, #e24a3b, var(--red-deep));
  box-shadow: 0 4px 14px rgba(201, 42, 42, 0.4);
}
.btn-red:hover { color: #fff; filter: brightness(1.1); }
.btn-line {
  color: var(--gold); background: transparent; border: 1px solid var(--border);
}
.btn-line:hover { background: rgba(245, 197, 66, 0.08); }

/* ---------- 主导航 ---------- */
.main-nav { background: linear-gradient(90deg, #8a1c1c, #c92a2a 45%, #8a1c1c); box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4); }
.nav-inner { display: flex; align-items: center; }
.nav-list { display: flex; flex-wrap: wrap; }
.nav-list li a {
  display: block; padding: 12px 20px; color: #ffe9d6; font-size: 16px; font-weight: bold;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
}
.nav-list li a:hover, .nav-list li a.active { background: rgba(0, 0, 0, 0.28); color: #fff; text-shadow: 0 0 8px rgba(255, 230, 150, 0.8); }
.nav-toggle {
  display: none; background: transparent; border: 0; color: #fff;
  font-size: 17px; padding: 11px 16px; cursor: pointer; font-weight: bold;
}
.nav-toggle span { margin-right: 6px; }

/* ---------- 公告跑马灯 ---------- */
.notice-bar {
  margin-top: 14px; background: var(--panel); border: 1px solid var(--border-soft);
  border-radius: var(--radius); overflow: hidden;
}
.notice-inner { display: flex; align-items: center; }
.notice-label {
  flex-shrink: 0; padding: 8px 16px; color: var(--text-dark); font-weight: bold; font-size: 14px;
  background: linear-gradient(180deg, var(--gold-light), var(--gold));
}
.notice-scroll { flex: 1; overflow: hidden; white-space: nowrap; padding: 8px 0; }
.notice-scroll p { display: inline-block; padding-left: 100%; animation: marquee 32s linear infinite; color: var(--text); font-size: 14px; }
.notice-scroll p a { color: var(--gold); margin: 0 8px; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-100%); } }

/* ---------- 横幅 ---------- */
.banner-wrap { margin-top: 14px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border-soft); }
.banner-wrap img { width: 100%; height: auto; min-height: 120px; }

/* ---------- 广告位 ---------- */
.ad-wrap {
  margin-top: 14px; background: var(--panel); border: 1px dashed var(--border);
  border-radius: var(--radius); min-height: 60px; text-align: center; padding: 10px;
}
.ad-wrap #cq_tui { min-height: 40px; }

/* ---------- 面包屑 ---------- */
.crumbs { margin-top: 14px; font-size: 13px; color: var(--text-dim); }
.crumbs a { color: var(--text-dim); }
.crumbs a:hover { color: var(--gold); }
.crumbs .sep { margin: 0 8px; color: rgba(255, 255, 255, 0.35); }
.crumbs .cur { color: var(--gold); }

/* ---------- 主布局：左内容 / 右栏 ---------- */
.layout { display: flex; gap: 16px; margin-top: 14px; align-items: flex-start; }
.layout-main { flex: 1; min-width: 0; }
.layout-side { width: 300px; flex-shrink: 0; display: flex; flex-direction: column; gap: 14px; }

.panel {
  background: var(--panel); border: 1px solid var(--border-soft);
  border-radius: var(--radius); box-shadow: var(--shadow);
  margin-bottom: 16px;
}
.panel-body { padding: 14px 16px; }

/* ---------- 区块标题 ---------- */
.sec-title {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-bottom: 1px solid var(--border-soft);
  background: linear-gradient(90deg, rgba(245, 197, 66, 0.12), transparent);
}
.sec-title h2 { font-size: 20px; color: var(--gold); letter-spacing: 1px; }
.sec-title .bar { width: 5px; height: 22px; background: linear-gradient(180deg, var(--gold-light), var(--red)); border-radius: 3px; }
.sec-title .more { margin-left: auto; font-size: 13px; color: var(--text-dim); }
.sec-title .more:hover { color: var(--gold); }

/* ---------- 服务器列表 ---------- */
.srv-list { display: flex; flex-direction: column; }
.srv {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-bottom: 1px dashed var(--border-soft);
  font-size: 14px; transition: background .2s;
}
.srv:hover { background: rgba(245, 197, 66, 0.06); }
.srv-name { flex: 2.2; min-width: 0; }
.srv-name a { color: var(--text); font-size: 15px; font-weight: bold; }
.srv-name a:hover { color: var(--gold); }
.srv-ver { flex: 1.4; color: var(--gold-light); font-size: 13px; }
.srv-line { flex: 0.8; color: var(--text-dim); font-size: 13px; }
.srv-time { flex: 1.3; color: var(--text-dim); font-size: 13px; font-variant-numeric: tabular-nums; }
.srv-time .cd { color: #7ed321; }
.srv-op { flex: 0 0 auto; display: flex; gap: 8px; }
.srv-op .btn { padding: 6px 16px; font-size: 13px; }
.tag {
  display: inline-block; padding: 1px 8px; border-radius: 4px;
  font-size: 12px; margin-left: 8px; vertical-align: 1px; font-weight: normal;
}
.tag-new { color: #fff; background: linear-gradient(180deg, #e24a3b, #a01a1a); }
.tag-hot { color: var(--text-dark); background: linear-gradient(180deg, var(--gold-light), var(--gold)); }
.tag-pre { color: #cfe8ff; background: rgba(64, 130, 220, 0.35); }
.tag-hot2 { color: #ffe3e3; background: rgba(224, 74, 74, 0.45); }

/* 筛选标签 */
.filter-tabs { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--border-soft); }
.filter-btn {
  padding: 5px 16px; border-radius: 20px; font-size: 13px; cursor: pointer;
  border: 1px solid var(--border); color: var(--text-dim); background: transparent;
}
.filter-btn:hover { color: var(--gold); border-color: var(--gold); }
.filter-btn.active { color: var(--text-dark); background: linear-gradient(180deg, var(--gold-light), var(--gold)); border-color: var(--gold); font-weight: bold; }

/* 加载更多 */
.load-more { text-align: center; padding: 14px; }
.load-more .btn { padding: 8px 34px; }

/* ---------- 分类卡片 ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 14px 16px; }
.cat-card {
  position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border-soft);
  transition: transform .25s, box-shadow .25s; background: var(--panel-2);
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-gold); }
.cat-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.cat-card .cat-name {
  position: absolute; left: 10px; bottom: 10px; right: 10px;
  background: rgba(0, 0, 0, 0.65); color: var(--gold-light);
  padding: 6px 12px; border-radius: 6px; font-size: 14px; font-weight: bold; text-align: center;
  border: 1px solid var(--border-soft);
}
.cat-card .cat-go {
  position: absolute; right: 10px; bottom: 10px; z-index: 2; display: none;
  color: var(--text-dark); background: var(--gold); border-radius: 6px; padding: 6px 14px; font-size: 13px; font-weight: bold;
}
.cat-card:hover .cat-go { display: block; }
.cat-card:hover .cat-name { bottom: 54px; }

/* ---------- 推荐卡片 ---------- */
.hot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 14px 16px; }
.hot-card {
  border: 1px solid var(--border-soft); border-radius: var(--radius);
  overflow: hidden; background: var(--panel-2); transition: transform .25s, box-shadow .25s;
}
.hot-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-gold); }
.hot-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.hot-card-body { padding: 10px 12px; }
.hot-card-body h3 { font-size: 15px; color: var(--gold); margin-bottom: 4px; }
.hot-card-body p { font-size: 13px; color: var(--text-dim); }
.stars { color: var(--gold); font-size: 13px; letter-spacing: 1px; }
.hot-card-body .btn { margin-top: 8px; width: 100%; padding: 6px 0; font-size: 13px; }

/* ---------- 图文攻略列表 ---------- */
.news-list { padding: 6px 16px; }
.news-item {
  display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--border-soft); align-items: flex-start;
}
.news-item:last-child { border-bottom: 0; }
.news-item img { width: 150px; height: 92px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.news-item h3 { font-size: 15px; margin-bottom: 4px; }
.news-item h3 a { color: var(--text); }
.news-item h3 a:hover { color: var(--gold); }
.news-item p { font-size: 13px; color: var(--text-dim); }
.news-item .meta { font-size: 12px; color: rgba(255, 255, 255, 0.35); margin-top: 4px; }

/* 纯文字列表 */
.link-list li { padding: 9px 0; border-bottom: 1px dashed var(--border-soft); font-size: 14px; }
.link-list li:last-child { border-bottom: 0; }
.link-list li a { color: var(--text); }
.link-list li a:hover { color: var(--gold); }
.link-list li .date { float: right; color: var(--text-dim); font-size: 12px; }

/* ---------- 职业卡片 ---------- */
.zhiye-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 14px 16px; }
.zhiye-card {
  text-align: center; border: 1px solid var(--border-soft); border-radius: var(--radius);
  padding: 18px 14px; background: var(--panel-2); transition: transform .25s, box-shadow .25s;
}
.zhiye-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-gold); }
.zhiye-icon {
  width: 72px; height: 72px; margin: 0 auto 10px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 34px; color: var(--gold); background: rgba(245, 197, 66, 0.1); border: 1px solid var(--border);
}
.zhiye-card h3 { font-size: 17px; color: var(--gold); margin-bottom: 6px; }
.zhiye-card p { font-size: 13px; color: var(--text-dim); }

/* 合击组合表 */
.tech-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.tech-table th, .tech-table td { padding: 10px 12px; border: 1px solid var(--border-soft); text-align: left; }
.tech-table th { background: rgba(245, 197, 66, 0.12); color: var(--gold); }
.tech-table tr:nth-child(even) td { background: rgba(255, 255, 255, 0.02); }
.tech-table td .tag { margin-left: 0; }

/* ---------- 特色功能 ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 14px 16px; }
.feature-item {
  display: flex; gap: 12px; border: 1px solid var(--border-soft); border-radius: var(--radius);
  padding: 14px; background: var(--panel-2); transition: border-color .2s;
}
.feature-item:hover { border-color: var(--gold); }
.feature-ico { font-size: 30px; color: var(--gold); flex-shrink: 0; line-height: 1; }
.feature-item h3 { font-size: 15px; color: var(--gold); margin-bottom: 4px; }
.feature-item p { font-size: 13px; color: var(--text-dim); }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px dashed var(--border-soft); }
.faq-item:last-child { border-bottom: 0; }
.faq-q { display: flex; align-items: center; gap: 8px; padding: 13px 16px; cursor: pointer; font-size: 15px; color: var(--text); }
.faq-q:hover { color: var(--gold); }
.faq-q .arrow { margin-left: auto; color: var(--gold); transition: transform .25s; }
.faq-item.open .faq-q .arrow { transform: rotate(180deg); }
.faq-a { display: none; padding: 0 16px 14px 42px; font-size: 14px; color: var(--text-dim); }
.faq-item.open .faq-a { display: block; }

/* ---------- 下载专区 ---------- */
.download-cta {
  background: linear-gradient(135deg, rgba(138, 28, 28, 0.85), rgba(20, 12, 20, 0.9));
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px; text-align: center; margin: 0 16px 16px; box-shadow: var(--shadow);
}
.download-cta h3 { font-size: 24px; color: var(--gold-light); margin-bottom: 8px; }
.download-cta p { color: var(--text-dim); font-size: 14px; margin-bottom: 16px; }
.download-cta .btn { padding: 14px 46px; font-size: 18px; }
.download-cta .url-tip { margin-top: 10px; font-size: 13px; color: rgba(255, 255, 255, 0.5); word-break: break-all; }

/* ---------- 分页 ---------- */
.pagination { display: flex; justify-content: center; gap: 8px; padding: 16px; flex-wrap: wrap; }
.pagination a, .pagination span {
  padding: 7px 14px; border-radius: 6px; border: 1px solid var(--border-soft);
  color: var(--text-dim); font-size: 13px;
}
.pagination a:hover { color: var(--gold); border-color: var(--gold); }
.pagination .current { color: var(--text-dark); background: var(--gold); border-color: var(--gold); font-weight: bold; }

/* ---------- 侧栏 ---------- */
.side-card { background: var(--panel); border: 1px solid var(--border-soft); border-radius: var(--radius); box-shadow: var(--shadow); }
.side-title {
  padding: 11px 16px; font-size: 16px; color: var(--gold); font-weight: bold;
  border-bottom: 1px solid var(--border-soft);
  background: linear-gradient(90deg, rgba(245, 197, 66, 0.12), transparent);
  display: flex; align-items: center; gap: 8px;
}
.side-title::before { content: ""; width: 5px; height: 18px; background: linear-gradient(180deg, var(--gold-light), var(--red)); border-radius: 3px; }
.side-body { padding: 10px 16px; }

/* 站长联系方式卡片 */
.contact-card { text-align: center; padding: 18px 16px; }
.contact-card .big { font-size: 20px; color: var(--gold); word-break: break-all; }
.contact-card p { font-size: 13px; color: var(--text-dim); margin-top: 6px; }

/* 广告占位（替换广告代码后移除） */
.ad-placeholder {
  display: flex; align-items: center; justify-content: center;
  min-height: 60px; border: 1px dashed rgba(212,160,23,.35);
  border-radius: 8px; color: rgba(255,255,255,.35); font-size: 13px;
  background: rgba(0,0,0,.18);
}

/* ---------- 页脚 ---------- */
.site-footer {
  position: relative; z-index: 2; margin-top: 30px;
  background: rgba(8, 6, 14, 0.95); border-top: 1px solid var(--border);
  padding: 26px 0 70px;
}
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--border-soft); }
.footer-col h4 { color: var(--gold); font-size: 15px; margin-bottom: 10px; }
.footer-col ul li { padding: 4px 0; font-size: 13px; }
.footer-col ul li a { color: var(--text-dim); }
.footer-col ul li a:hover { color: var(--gold); }
.footer-info { text-align: center; padding-top: 18px; font-size: 13px; color: var(--text-dim); line-height: 2; }
.footer-info a { color: var(--text-dim); }
.footer-info a:hover { color: var(--gold); }
.friend-links { padding: 12px 0 0; font-size: 13px; color: var(--text-dim); }
.friend-links a { color: var(--text-dim); margin: 0 8px; white-space: nowrap; }
.friend-links a:hover { color: var(--gold); }

/* ---------- 返回顶部 ---------- */
.back-top {
  position: fixed; right: 20px; bottom: 90px; z-index: 99;
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border);
  background: var(--panel); color: var(--gold); font-size: 18px; cursor: pointer;
  display: none; box-shadow: var(--shadow);
}
.back-top.show { display: block; }
.back-top:hover { background: var(--gold); color: var(--text-dark); }

/* ---------- 手机端底部下载条 ---------- */
.mobile-dl {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 100;
  background: rgba(10, 8, 16, 0.97); border-top: 1px solid var(--border);
  padding: 10px 12px; align-items: center; gap: 10px;
}
.mobile-dl .md-text { flex: 1; min-width: 0; }
.mobile-dl .md-text strong { color: var(--gold); font-size: 14px; display: block; }
.mobile-dl .md-text span { color: var(--text-dim); font-size: 12px; }
.mobile-dl .btn { padding: 10px 20px; font-size: 14px; flex-shrink: 0; }

/* ---------- 内容页排版 ---------- */
.article { padding: 20px 22px; }
.article h1 { font-size: 26px; color: var(--gold-light); margin-bottom: 10px; line-height: 1.4; }
.article h2 { font-size: 20px; color: var(--gold); margin: 20px 0 10px; padding-left: 12px; border-left: 4px solid var(--red); }
.article h3 { font-size: 17px; color: var(--gold-light); margin: 16px 0 8px; }
.article p { margin-bottom: 10px; font-size: 15px; }
.article ul, .article ol { margin: 0 0 12px 22px; }
.article ul li, .article ol li { list-style: disc; font-size: 15px; margin-bottom: 6px; }
.article ol li { list-style: decimal; }
.article .lead { color: var(--text-dim); font-size: 14px; border-left: 3px solid var(--border); padding-left: 12px; margin-bottom: 16px; }

/* 联系表格 */
.contact-form { max-width: 620px; }
.form-row { margin-bottom: 14px; }
.form-row label { display: block; font-size: 14px; color: var(--text-dim); margin-bottom: 6px; }
.form-row input, .form-row textarea {
  width: 100%; padding: 10px 14px; border-radius: 8px; border: 1px solid var(--border-soft);
  background: rgba(0, 0, 0, 0.3); color: var(--text); font-size: 14px;
}
.form-row textarea { min-height: 120px; resize: vertical; }
.form-row input:focus, .form-row textarea:focus { border-color: var(--gold); }

/* 高亮搜索词 */
mark { background: rgba(245, 197, 66, 0.35); color: var(--gold-light); padding: 0 3px; border-radius: 3px; }

/* ---------- 移动端适配 ---------- */
@media (max-width: 1024px) {
  .layout-side { width: 250px; }
  .cat-grid, .hot-grid, .zhiye-grid, .feature-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .topbar-inner { justify-content: center; }
  .topbar-links { display: none; }
  .header-inner { flex-wrap: wrap; gap: 12px; }
  .logo img { height: 48px; width: 48px; }
  .logo-text { font-size: 24px; }
  .header-search { order: 3; max-width: 100%; width: 100%; margin-left: 0; }
  .header-download { margin-left: auto; }
  .nav-toggle { display: block; }
  .nav-list {
    display: none; width: 100%; flex-direction: column; background: rgba(138, 28, 28, 0.98);
  }
  .nav-list.open { display: flex; max-height: 70vh; overflow-y: auto; }
  .nav-list li a { border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.1); padding: 13px 20px; }
  .layout { flex-direction: column; }
  .layout-side { width: 100%; flex-direction: row; flex-wrap: wrap; }
  .layout-side .side-card { flex: 1 1 46%; min-width: 240px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .container { padding: 0 10px; }
  .notice-label { display: none; }
  .sec-title h2 { font-size: 17px; }
  .srv { flex-wrap: wrap; padding: 12px 12px; }
  .srv-name { flex: 1 1 100%; }
  .srv-ver, .srv-line, .srv-time { flex: 1 1 auto; font-size: 12px; }
  .srv-op { flex: 1 1 100%; }
  .srv-op .btn { flex: 1; text-align: center; }
  .cat-grid, .hot-grid, .zhiye-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .feature-grid { grid-template-columns: 1fr; }
  .news-item img { width: 108px; height: 76px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .footer-info { font-size: 12px; }
  .download-cta { padding: 20px 14px; }
  .download-cta .btn { width: 100%; }
  .mobile-dl { display: flex; }
  .site-footer { padding-bottom: 66px; }
  .back-top { bottom: 80px; right: 12px; width: 40px; height: 40px; }
  .article { padding: 16px 14px; }
  .article h1 { font-size: 21px; }
}

@media (max-width: 400px) {
  .hot-grid, .zhiye-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .logo-text { font-size: 20px; }
}

@media (max-width: 330px) {
  .cat-grid { grid-template-columns: 1fr; }
}

/* ---------- 动效 ---------- */
.fade-in { animation: fadeIn .6s ease both; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.glow-text { text-shadow: 0 0 12px rgba(245, 197, 66, 0.6); }
@media (prefers-reduced-motion: reduce) {
  .notice-scroll p { animation: none; }
  html { scroll-behavior: auto; }
}
