/* ==========================================================================
   装机必备软件导航 - 前台样式
   蓝色主题 / 夜间模式（html[data-theme="dark"]）/ 手机自适应
   ========================================================================== */

/* ---------- 设计变量 ---------- */
:root {
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --blue-light: #dbeafe;
  --blue-soft: #eff6ff;
  --blue-grad: linear-gradient(135deg, #1e40af 0%, #2563eb 48%, #3b82f6 100%);

  --bg: #f4f7fc;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --text: #0f172a;
  --text-2: #475569;
  --text-3: #8b9ab0;
  --border: #e5ebf4;
  --border-strong: #d5deeb;

  --green: #10b981;
  --amber: #f59e0b;
  --amber-soft: #fff8eb;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .04);
  --shadow: 0 2px 6px rgba(15, 23, 42, .05), 0 14px 30px -18px rgba(15, 23, 42, .18);
  --shadow-lg: 0 10px 40px -16px rgba(37, 99, 235, .35);

  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 18px;

  --maxw: 1220px;
  --header-h: 64px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
          "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}
html[data-theme="dark"] {
  --blue: #5b8cff;
  --blue-dark: #7aa2ff;
  --blue-light: #1b2b47;
  --blue-soft: #16233a;
  --blue-grad: linear-gradient(135deg, #0b1b3a 0%, #12306b 52%, #1b4aa8 100%);

  --bg: #0a101c;
  --surface: #111a2b;
  --surface-2: #0e1626;
  --text: #e9effb;
  --text-2: #a8b7ce;
  --text-3: #6d7f9a;
  --border: #1e2b40;
  --border-strong: #2a3a53;

  --amber-soft: #2a2113;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .5);
  --shadow: 0 2px 8px rgba(0, 0, 0, .45), 0 18px 40px -22px rgba(0, 0, 0, .8);
  --shadow-lg: 0 12px 44px -18px rgba(0, 0, 0, .85);
}

/* ---------- 基础 ---------- */
*,
*::before,
*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  transition: background-color .25s ease, color .25s ease;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button,
input,
select,
textarea { font-family: inherit; font-size: inherit; color: inherit; }
h1,
h2,
h3,
h4 { margin: 0; font-weight: 700; line-height: 1.35; }
p { margin: 0; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.site-header .container { max-width: 1360px; }
.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 16px;
}
.logo { display: inline-flex; align-items: center; gap: 9px; flex-shrink: 0; }
.logo-img { width: 30px; height: 30px; border-radius: 9px; }
.logo-text {
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: .2px;
  color: var(--text);
  white-space: nowrap;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 1px;
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.main-nav::-webkit-scrollbar { display: none; }
.nav-link {
  position: relative;
  padding: 6px 9px;
  border-radius: 8px;
  font-size: 13.3px;
  color: var(--text-2);
  white-space: nowrap;
  transition: color .16s, background-color .16s;
}
.nav-link:hover { color: var(--blue); background: var(--blue-soft); }
.nav-link.active { color: var(--blue); font-weight: 600; background: var(--blue-soft); }
.header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.theme-toggle {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-2);
  cursor: pointer;
  font-size: 15px;
  color: var(--text-2);
  transition: border-color .16s, transform .16s, color .16s;
}
.theme-toggle:hover { border-color: var(--blue); color: var(--blue); transform: rotate(-12deg); }
.theme-toggle .ti {
  width: 17px; height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.theme-toggle .ti-sun { display: none; }
html[data-theme="dark"] .theme-toggle .ti-sun { display: block; }
html[data-theme="dark"] .theme-toggle .ti-moon { display: none; }
.menu-toggle {
  display: none;
  width: 36px; height: 36px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-2);
  cursor: pointer;
  padding: 9px 8px;
  flex-direction: column;
  justify-content: space-between;
}
.menu-toggle span { display: block; height: 2px; border-radius: 2px; background: var(--text-2); }

/* ---------- 公告 / 面包屑 ---------- */
.notice-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 10px 14px;
  border: 1px solid #fcd34d;
  border-radius: var(--radius-sm);
  background: var(--amber-soft);
  color: #a16207;
  font-size: 12.8px;
}
html[data-theme="dark"] .notice-bar {
  border-color: color-mix(in srgb, var(--amber) 45%, var(--border));
  color: #e8bd6d;
}
.notice-icon { color: var(--amber); font-size: 14px; }
.notice-close {
  margin-left: auto;
  flex: 0 0 22px;
  width: 22px; height: 22px;
  border: 0;
  border-radius: 999px;
  background: rgba(245, 158, 11, .16);
  color: #b45309;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  transition: background-color .16s, color .16s;
}
.notice-close:hover { background: rgba(245, 158, 11, .32); color: #854d0e; }
html[data-theme="dark"] .notice-close { background: rgba(245, 158, 11, .18); color: #e8bd6d; }
html[data-theme="dark"] .notice-close:hover { background: rgba(245, 158, 11, .3); color: #fff; }
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 16px;
  padding-bottom: 2px;
  font-size: 12.8px;
  color: var(--text-3);
}
.breadcrumb a { color: var(--text-3); }
.breadcrumb a:hover { color: var(--blue); }
.crumb-sep { color: var(--border-strong); }
.crumb-current { color: var(--text-2); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--blue-grad);
  color: #fff;
}
.hero::after {
  content: "";
  position: absolute;
  right: -120px; top: -140px;
  width: 460px; height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 68%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  padding: 54px 20px 46px;
  text-align: center;
}
.hero h1 {
  font-size: 34px;
  letter-spacing: .5px;
  margin-bottom: 12px;
  text-shadow: 0 2px 18px rgba(9, 25, 66, .25);
}
.hero-sub {
  font-size: 14.5px;
  color: rgba(255, 255, 255, .88);
  margin-bottom: 26px;
}
.hero-search {
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: 540px;
  margin: 0 auto;
  padding: 6px 6px 6px 18px;
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 14px 34px -14px rgba(9, 25, 66, .55);
}
.hero-search input {
  flex: 1 1 auto;
  min-width: 0;
  height: 38px;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 14px;
  color: #0f172a;
}
.hero-search input::placeholder { color: #9aa8bd; }
.hero-search .btn {
  flex: 0 0 auto;
  height: 38px;
  padding: 0 22px;
  border-radius: 999px;
  white-space: nowrap;
}
.hero-tags {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
  font-size: 12.6px;
  color: rgba(255, 255, 255, .78);
}
.hero-tags a {
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  transition: background-color .16s;
}
.hero-tags a:hover { background: rgba(255, 255, 255, .26); }

/* ---------- 统计条 ---------- */
.stat-strip { margin-top: -26px; position: relative; z-index: 2; }
.stat-strip-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 16px 10px;
  background: var(--surface);
}
.stat-item + .stat-item { border-left: 1px solid var(--border); }
.stat-item:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.stat-item:last-child { border-radius: 0 var(--radius) var(--radius) 0; }
.stat-item strong { font-size: 20px; font-weight: 700; color: var(--blue); }
.stat-item span { font-size: 12.4px; color: var(--text-3); }

/* ---------- 区块 ---------- */
.section { padding: 34px 0 6px; }
.section.alt {
  background: linear-gradient(180deg, var(--surface-2), transparent 70%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-top: 26px;
  padding-bottom: 12px;
}
.cat-section:last-of-type { padding-bottom: 20px; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.section-title h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 19px;
  letter-spacing: .2px;
}
.cat-emoji { font-size: 18px; line-height: 1; }
.section-title .sub {
  margin-top: 3px;
  font-size: 12.6px;
  color: var(--text-3);
}
.btn-link {
  flex-shrink: 0;
  font-size: 13px;
  color: var(--blue);
  font-weight: 500;
  white-space: nowrap;
}
.btn-link:hover { color: var(--blue-dark); }
.btn-link .arrow { font-size: 15px; }
.section-more { text-align: center; margin: 18px 0 4px; }

/* ---------- 网格 ---------- */
.grid { display: grid; gap: 14px; }
.grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.list-grid { margin-bottom: 4px; }

/* ---------- 软件卡片 ---------- */
.soft-card {
  display: flex;
  gap: 12px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
  min-width: 0;
  position: relative;
}

/* 整卡可点击：标题链接的伪元素铺满卡片（卡片内还有分类链接，故不能用 <a> 包裹整卡） */
.card-link { text-decoration: none; color: inherit; }
.card-link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}
.card-cat { position: relative; z-index: 2; }
.soft-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--blue) 45%, var(--border));
  box-shadow: var(--shadow-lg);
}

/* 图标：图片 / emoji / 自动色块 */
.soft-icon {
  flex: 0 0 auto;
  width: 44px; height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--blue-soft);
  overflow: hidden;
  font-weight: 700;
  font-size: 17px;
  color: #fff;
  user-select: none;
}
.soft-icon.has-img { background: transparent; border: 1px solid var(--border); }
.soft-icon.has-img img { width: 100%; height: 100%; object-fit: cover; }
.soft-icon .ico-emoji { font-size: 22px; }
.soft-icon .ico-char { font-size: 18px; letter-spacing: -.5px; }
.soft-icon.lg {
  width: 74px; height: 74px;
  border-radius: 18px;
  font-size: 26px;
}
.soft-icon.lg .ico-emoji { font-size: 38px; }
.soft-icon.lg .ico-char { font-size: 30px; }

/* 自动生成色块的 8 组渐变 */
.soft-icon.g0 { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.soft-icon.g1 { background: linear-gradient(135deg, #06b6d4, #0369a1); }
.soft-icon.g2 { background: linear-gradient(135deg, #8b5cf6, #5b21b6); }
.soft-icon.g3 { background: linear-gradient(135deg, #f59e0b, #b45309); }
.soft-icon.g4 { background: linear-gradient(135deg, #10b981, #047857); }
.soft-icon.g5 { background: linear-gradient(135deg, #ef4444, #b91c1c); }
.soft-icon.g6 { background: linear-gradient(135deg, #ec4899, #be185d); }
.soft-icon.g7 { background: linear-gradient(135deg, #64748b, #334155); }
.card-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14.2px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-badge {
  flex-shrink: 0;
  padding: 1px 6px;
  border-radius: 5px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 10.5px;
  font-weight: 600;
}
.card-cat {
  padding: 1px 7px;
  border-radius: 5px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 60%;
}
.card-meta { white-space: nowrap; }

/* ---------- 页面小标题区 ---------- */
.page-hero {
  padding: 30px 0 24px;
  background: linear-gradient(180deg, var(--blue-soft), transparent);
  border-bottom: 1px solid var(--border);
  margin-bottom: 18px;
}
.page-hero h1 {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 25px;
}
.page-hero-sub {
  margin-top: 6px;
  font-size: 13.2px;
  color: var(--text-2);
}
.dot-sep { color: var(--border-strong); margin: 0 4px; }
.search-hero .hero-search { margin: 16px 0 0; max-width: 560px; box-shadow: var(--shadow); }
.search-hero .hero-search input { color: var(--text); }

/* ---------- 筛选 / 排序 ---------- */
.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}
.filter-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-size: 12.8px;
  color: var(--text-2);
  transition: all .16s;
}
.chip:hover { border-color: var(--blue); color: var(--blue); }
.chip.active,
.chip-cat {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}
.chip.active:hover,
.chip-cat:hover { color: #fff; background: var(--blue-dark); }
.chip-muted { color: var(--text-3); }

/* ---------- 分页 ---------- */
.pager-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin: 26px 0 34px;
}
.pager-total { font-size: 12.6px; color: var(--text-3); }
.pagination { display: flex; flex-wrap: wrap; gap: 6px; }
.page-btn {
  min-width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 11px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface);
  font-size: 12.8px;
  color: var(--text-2);
  transition: all .16s;
}
.page-btn:hover { border-color: var(--blue); color: var(--blue); }
.page-btn.current { background: var(--blue); border-color: var(--blue); color: #fff; font-weight: 600; }
.page-btn.disabled { color: var(--text-3); background: var(--surface-2); pointer-events: none; }
.page-ellipsis { padding: 0 4px; color: var(--text-3); align-self: center; }

/* ---------- 详情页 ---------- */
.detail-wrap { padding-top: 18px; padding-bottom: 20px; }
.soft-head {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.soft-head-main { min-width: 0; flex: 1 1 auto; }
.soft-head h1 {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 25px;
  letter-spacing: .2px;
}
.soft-head-desc {
  margin-top: 7px;
  font-size: 13.8px;
  color: var(--text-2);
  line-height: 1.7;
}
.soft-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 13px; }
.soft-chips .chip { display: inline-flex; align-items: center; gap: 5px; }
.soft-chips .chip svg {
  width: 13px; height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}
.panel {
  margin-top: 16px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.panel-title {
  font-size: 16.5px;
  margin-bottom: 14px;
  padding-left: 10px;
  border-left: 3px solid var(--blue);
  line-height: 1.2;
}
.dl-ico { font-size: 15px; }
.dl-hint {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin-top: 14px;
  padding: 10px 14px;
  border: 1px solid color-mix(in srgb, var(--amber) 35%, var(--border));
  border-radius: var(--radius-sm);
  background: var(--amber-soft);
  color: #92600a;
  font-size: 12.6px;
  line-height: 1.6;
}
html[data-theme="dark"] .dl-hint { color: #e8bd6d; }
.hint-ico { color: var(--amber); }
.dl-note { margin-top: 12px; font-size: 12.2px; color: var(--text-3); }
.dl-empty {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface-2);
}
.dl-empty-ico { font-size: 26px; }
.dl-empty strong { display: block; font-size: 14px; margin-bottom: 2px; }
.dl-empty p { font-size: 12.6px; color: var(--text-3); }
.soft-intro { font-size: 13.8px; color: var(--text-2); line-height: 1.9; }
.soft-intro p { margin-bottom: 10px; }
.soft-intro p:last-child { margin-bottom: 0; }
.info-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.info-grid > div { padding: 12px 14px; background: var(--surface); }
.info-grid dt { font-size: 11.8px; color: var(--text-3); margin-bottom: 2px; }
.info-grid dd { margin: 0; font-size: 13.4px; font-weight: 500; }
.info-grid dd a { color: var(--blue); }
.related-block { margin-top: 26px; }

/* ---------- 关于页 ---------- */
.about-wrap { padding-bottom: 26px; }
.about-stats {
  margin-top: 0;
  margin-bottom: 4px;
  border-radius: var(--radius);
  overflow: hidden;
}
.about-panel { margin-top: 16px; }
.about-text { font-size: 13.8px; color: var(--text-2); line-height: 1.95; }
.about-text p { margin-bottom: 10px; }
.about-text p:last-child { margin-bottom: 0; }
.about-list { margin: 0; padding-left: 20px; }
.about-list li { margin-bottom: 7px; }
.about-list li:last-child { margin-bottom: 0; }

/* ---------- 空状态 ---------- */
.empty-state {
  text-align: center;
  padding: 54px 20px;
  color: var(--text-3);
}
.empty-icon { font-size: 38px; margin-bottom: 10px; }
.empty-state h3 { font-size: 16px; color: var(--text); margin-bottom: 6px; }
.empty-state p { font-size: 13px; margin-bottom: 16px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 13.4px;
  font-weight: 500;
  cursor: pointer;
  transition: all .16s;
  white-space: nowrap;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); box-shadow: 0 8px 20px -10px var(--blue); }
.btn-outline {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--text-2);
}
.btn-outline:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-soft); }
.btn-lg { padding: 12px 22px; font-size: 14.2px; border-radius: 12px; }
.btn-sm { padding: 6px 13px; font-size: 12.6px; }

/* ---------- 页脚 ---------- */
.site-footer {
  margin-top: 44px;
  background: #0d1728;
  color: #93a4c0;
}
html[data-theme="dark"] .site-footer { background: #080e19; border-top: 1px solid var(--border); }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
  padding-top: 40px;
  padding-bottom: 34px;
}
.footer-brand { max-width: 460px; }
.footer-brand .logo-text { color: #fff; }
.footer-desc { margin-top: 12px; font-size: 12.8px; line-height: 1.8; color: #8798b5; }
.footer-meta { margin-top: 10px; font-size: 12px; line-height: 1.9; color: #64748b; }
.footer-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-col h4 { font-size: 13px; color: #dbe4f3; margin-bottom: 10px; }
.footer-col a {
  display: block;
  font-size: 12.6px;
  color: #8798b5;
  line-height: 2.1;
  transition: color .16s;
}
.footer-col a:hover { color: #fff; }

/* ---------- 返回顶部 ---------- */
.back-top {
  position: fixed;
  right: 22px;
  bottom: 26px;
  z-index: 80;
  width: 40px; height: 40px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text-2);
  font-size: 16px;
  cursor: pointer;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all .2s;
}
.back-top.show { opacity: 1; visibility: visible; transform: none; }
.back-top:hover { color: var(--blue); border-color: var(--blue); }

/* ==========================================================================
   响应式
   ========================================================================== */

@media (max-width: 1180px) {
  .grid-5 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 1020px) {
  .nav-link { padding: 7px 9px; font-size: 13.2px; }
}

@media (max-width: 960px) {
  .grid-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .menu-toggle { display: flex; }
  .main-nav {
    position: absolute;
    left: 0; right: 0; top: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    max-height: 66vh;
    overflow-y: auto;
    padding: 10px 16px 16px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
  .main-nav.open { display: flex; }
  .nav-link { padding: 10px 12px; font-size: 14px; border-radius: 9px; }
  .hero-inner { padding: 40px 20px 44px; }
  .hero h1 { font-size: 27px; }
  .info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .container { padding: 0 14px; }
  .header-inner { gap: 10px; height: 58px; }
  .logo-text { font-size: 15px; }
  .hero h1 { font-size: 23px; }
  .hero-sub { font-size: 13px; margin-bottom: 20px; }
  .hero-search { padding: 5px 5px 5px 14px; }
  .hero-search input { height: 34px; font-size: 13.2px; }
  .hero-search .btn { height: 34px; padding: 0 16px; font-size: 13px; }
  .hero-inner { padding: 30px 16px 30px; }
  .stat-strip { margin-top: 16px; }
  .stat-strip-inner { grid-template-columns: repeat(2, 1fr); }
  .stat-item { padding: 12px 8px; }
  /* 两列时第三格位于第二行行首，去掉贴边的左分隔线 */
  .stat-item:nth-child(3) { border-left: 0; }
  .stat-item:nth-child(n+3) { border-top: 1px solid var(--border); }
  .stat-item strong { font-size: 17px; }
  .stat-item span { font-size: 11.6px; }
  .section { padding: 24px 0 4px; }
  .section-head { margin-bottom: 12px; align-items: center; }
  .section-title h2 { font-size: 16.5px; }
  .section-title .sub { font-size: 12px; }
  .btn-link { font-size: 12.4px; }
  .grid-5,
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid { gap: 10px; }
  .soft-card { flex-direction: column; gap: 9px; padding: 12px; }
  .soft-icon { width: 38px; height: 38px; border-radius: 10px; font-size: 15px; }
  .soft-icon .ico-emoji { font-size: 19px; }
  .card-title { font-size: 13.6px; }
  .page-hero { padding: 22px 0 18px; }
  .page-hero h1 { font-size: 20px; }
  .filter-bar { align-items: flex-start; flex-direction: column; }
  /* 手机端详情页头部：图标与软件名称一行（名称最多 2 行），简介及以下内容占满整行 */
  .soft-head { flex-wrap: wrap; align-items: center; gap: 12px; padding: 16px 14px; }
  .soft-head .soft-icon.lg { width: 54px; height: 54px; border-radius: 14px; flex: 0 0 54px; }
  .soft-head-main { display: contents; }
  .soft-head h1 { flex: 0 1 auto; width: calc(100% - 66px); min-width: 0; font-size: 17px; }
  .soft-head h1 .sh-name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
    text-align: left;
  }
  .soft-head-desc { flex: 1 1 100%; margin-top: 0; font-size: 12.5px; }
  .soft-chips { flex: 1 1 100%; margin-top: 0; }
  .panel { padding: 16px; margin-top: 12px; }
  .panel-title { font-size: 15px; margin-bottom: 12px; }
  .info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .info-grid > div { padding: 10px 12px; }
  .pager-wrap { justify-content: center; }
  .pager-total { width: 100%; text-align: center; }
  .footer-inner { gap: 26px; padding-top: 28px; padding-bottom: 24px; }
  .footer-cols { gap: 32px; }
  .back-top { right: 14px; bottom: 16px; }
}

@media (max-width: 380px) {
  .grid-5,
  .grid-4 { grid-template-columns: 1fr; }
  .soft-card { flex-direction: row; }
}

/* 减少动效偏好 */

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ================= v2 追加样式（导航两行 / 弹窗 / 广告 / 网盘按钮 / 中转页） ================= */

/* ---------- 顶部导航：两行按钮 + 允许换行，避免窄屏被遮挡 ---------- */
.site-header .container { max-width: 1400px; }

/* 菜单换行时让页头自然增高，避免固定高度导致文字重叠 */
.header-inner { height: auto; min-height: var(--header-h); padding: 7px 0; }
.main-nav { flex-wrap: wrap; justify-content: center; gap: 2px 0; }
.nav-link {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 1px;
  line-height: 1.2;
  padding: 4px 6px;
  max-width: 96px;
  min-height: 36px;
}

/* ---------- 顶部搜索按钮（纯图标） ---------- */
.search-open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text-2);
  cursor: pointer;
  transition: border-color .16s, color .16s;
}
.search-open svg {
  width: 15px; height: 15px;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round;
}
.search-open:hover { border-color: var(--blue); color: var(--blue); }
.header-actions { margin-left: auto; }
.header-actions > * { flex: 0 0 auto; }

/* ---------- 公告条与下文间距 ---------- */
.notice-bar { margin-bottom: 18px; }

/* ---------- 弹窗 ---------- */
.modal-mask {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(9, 18, 40, .55);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 12vh 16px 16px;
}
.modal-mask[hidden] { display: none !important; }
body.modal-open { overflow: hidden; }
.modal-box {
  position: relative;
  width: 100%;
  max-width: 460px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px 24px 20px;
  box-shadow: 0 24px 70px -20px rgba(9, 25, 66, .55);
  animation: modalIn .18s ease;
}
@keyframes modalIn {
  from { transform: translateY(14px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.modal-close {
  position: absolute;
  right: 12px; top: 12px;
  width: 30px; height: 30px;
  border: 0;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text-3);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
}
.modal-close:hover { background: var(--surface-3, #eef2f8); color: var(--text); }
.modal-title { margin: 0 0 16px; font-size: 17px; color: var(--text); }
.modal-search { display: flex; gap: 8px; }
.modal-search input {
  flex: 1 1 auto;
  min-width: 0;
  height: 40px;
  padding: 0 14px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--text);
  font-size: 14px;
  outline: none;
}
.modal-search input:focus { border-color: var(--blue); }
.modal-tags { margin-top: 14px; font-size: 12.5px; color: var(--text-3); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.modal-tags a {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-2);
}
.modal-tags a:hover { border-color: var(--blue); color: var(--blue); }
.mt-label { color: var(--text-3); }
.contact-box { text-align: center; }
.contact-box .qr-wrap {
  width: 200px; height: 200px;
  margin: 6px auto 10px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
}
.contact-box .qr-wrap img { width: 100%; height: 100%; object-fit: contain; }
.qr-hint { color: var(--text-3); font-size: 13px; margin: 6px 0 0; }
.qr-id { font-size: 13.5px; color: var(--text-2); margin: 8px 0 0; }
.qr-id b { color: var(--text); user-select: all; }
.about-contact .contact-open { margin-top: 8px; }

/* ---------- 卡片：广告标识 / 分类 chips / 眼睛图标 ---------- */
.card-badge.ad {
  background: #fff3e0;
  color: #e65100;
  border: 1px solid #ffcf9e;
}
.card-badge { margin-left: 6px; }
.card-cat {
  font-size: 11px;
  color: var(--text-3);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 1px 8px;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.card-cat:hover { color: var(--blue); border-color: var(--blue); }
.card-meta { display: inline-flex; align-items: center; gap: 4px; color: var(--text-3); }
.card-meta svg {
  width: 13px; height: 13px;
  fill: none; stroke: currentColor; stroke-width: 1.8;
}
.soft-card.is-ad { border-color: #ffd9ad; }
.soft-card.is-ad .card-title { color: var(--text); }

/* ---------- 分类页：二级 chips + 排序下拉 ---------- */
.cat-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip.current { background: var(--blue); border-color: var(--blue); color: #fff; }
.sort-form { display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.sort-label { font-size: 12.6px; color: var(--text-3); }
.sort-select {
  height: 34px;
  padding: 0 30px 0 12px;
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%2383909f' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}

/* ---------- 详情页下载按钮（有底色，显眼） ---------- */
.dl-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border-radius: 12px;
  color: #fff;
  text-decoration: none;
  transition: transform .15s, box-shadow .15s, filter .15s;
}
.dl-btn:hover { transform: translateY(-2px); filter: brightness(1.06); }
.dl-btn .dl-ico svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.dl-btn .dl-txt { display: flex; flex-direction: column; line-height: 1.25; }
.dl-btn .dl-txt b { font-size: 14.5px; }
.dl-btn .dl-txt small { font-size: 11.5px; opacity: .82; }
.dl-official { background: linear-gradient(135deg, #2563eb, #1d4ed8); box-shadow: 0 8px 20px -8px rgba(37, 99, 235, .6); }
.dl-disk { background: linear-gradient(135deg, #7c3aed, #6d28d9); box-shadow: 0 8px 20px -8px rgba(124, 58, 237, .55); }
.dl-disk.qk { background: linear-gradient(135deg, #4f46e5, #4338ca); box-shadow: 0 8px 20px -8px rgba(79, 70, 229, .55); }
.dl-disk.bd { background: linear-gradient(135deg, #06b6d4, #0891b2); box-shadow: 0 8px 20px -8px rgba(6, 182, 212, .55); }
.tag-ad {
  background: #fff3e0;
  color: #e65100;
  border: 1px solid #ffcf9e;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  vertical-align: 3px;
  margin-left: 6px;
}

/* ---------- 广告位 ---------- */
.ad-slot {
  position: relative;
  max-width: 1080px;
  margin: 14px auto 0;
  border: 1px dashed var(--border-strong);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
}
.ad-slot img { display: block; width: 100%; height: auto; }
.ad-slot .ad-tag {
  position: absolute;
  left: 10px; top: 10px;
  font-size: 11px;
  padding: 1px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .55);
  color: #fff;
}
.ad-slot-html { padding: 12px 16px; font-size: 13.5px; color: var(--text-2); }

/* ---------- 下载中转页 ---------- */
.go-wrap { display: flex; justify-content: center; padding: 48px 0 64px; }
.go-box {
  width: 100%;
  max-width: 560px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 36px 34px 28px;
  text-align: center;
  box-shadow: var(--shadow);
}
.go-icon svg { width: 46px; height: 46px; fill: none; stroke: var(--blue); stroke-width: 1.7; }
.go-box h1 { font-size: 20px; margin: 12px 0 8px; color: var(--text); }
.go-desc { color: var(--text-2); font-size: 14px; margin: 0 0 6px; }
.go-url {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 12.5px;
  color: var(--text-3);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  word-break: break-all;
  margin: 0 0 14px;
}
.go-disclaimer {
  text-align: left;
  font-size: 12.8px;
  line-height: 1.8;
  color: var(--text-3);
  background: var(--surface-2);
  border-radius: 10px;
  padding: 12px 14px;
  margin: 0 0 18px;
}
.go-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.go-tip { margin-top: 14px; font-size: 12px; color: var(--text-3); }

/* ---------- 页脚：版权在左侧信息下面 ---------- */
.footer-copy { margin: 10px 0 0; font-size: 12.5px; color: var(--text-3); }
.footer-copy a { color: var(--text-3); }
.footer-copy a:hover { color: var(--blue); }

/* ---------- 首页分类小标题下的二级分类链接 ---------- */
.section-title .sub a { color: var(--text-3); }
.section-title .sub a:hover { color: var(--blue); }
.sub-sep { margin: 0 4px; color: var(--border-strong); }

/* ---------- 响应式调整 ---------- */

@media (max-width: 960px) {
  .header-actions { gap: 8px; }

  /* 手机下拉菜单：每项一行，主名称在左、二级名在右 */
  .main-nav .nav-link {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    max-width: none;
    padding: 9px 12px;
  }
}

@media (max-width: 720px) {
  /* 手机端：品牌居左，搜索/主题/菜单按钮靠右 */
  .header-inner { justify-content: space-between; }
  .header-actions { margin-left: auto; }

  /* 列表卡片横向布局：图标在左，名称在右 */
  .grid-5,
  .grid-4 { grid-template-columns: repeat(1, minmax(0, 1fr)); gap: 9px; }
  .soft-card { flex-direction: row; align-items: center; gap: 11px; padding: 10px 12px; }
  .soft-card .soft-icon { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 11px; }
  .card-title { font-size: 14px; }
  .go-box { padding: 26px 18px 22px; }
  .modal-mask { padding-top: 8vh; }
}

/* ==========================================================================
   界面排版层（原 v3.css，2026-10 合并进本文件）
   导航下拉 / 软件卡片 / 手机端抽屉 / 二维码占位 / 详情页下载按钮
   以下规则按原有顺序输出，用于覆盖上方的初版样式，修改时优先改这里
   ========================================================================== */

/* ---------- 导航：一级横排 + hover 下拉二级（覆盖上方旧样式） ---------- */
.site-header .container { max-width: 1320px; }
.header-inner { height: auto; min-height: 62px; padding: 9px 0; gap: 18px; }
.site-header .main-nav {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 1px;
  overflow: visible;          /* 不能滚动，否则下拉菜单会被裁切 */
}
.site-header .main-nav .nav-link {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 3px;
  height: 36px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 13.8px;
  line-height: 1;
  color: var(--text-2);
  white-space: nowrap;
  max-width: none;
  min-height: 0;
}
.site-header .main-nav .nav-link:hover { color: var(--blue); background: var(--blue-soft); }
.site-header .main-nav .nav-link.active,
.site-header .main-nav .nav-item.active > .nav-link {
  color: var(--blue);
  font-weight: 600;
  background: var(--blue-soft);
}
.nav-item { position: relative; display: flex; align-items: center; }
.nav-caret {
  width: 16px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: -5px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--text-3);
  cursor: pointer;
  transition: color .16s, transform .18s;
}
.nav-caret svg {
  width: 9px; height: 6px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.nav-item:hover .nav-caret,
.nav-item.open .nav-caret { color: var(--blue); transform: rotate(180deg); }
.nav-drop {
  position: absolute;
  left: 0;
  top: calc(100% + 4px);
  min-width: 196px;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 20px 44px -20px rgba(15, 23, 42, .38);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-5px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
  z-index: 95;
}
.nav-drop::before { content: ""; position: absolute; left: 0; right: 0; top: -8px; height: 8px; }
.nav-item:hover .nav-drop,
.nav-item.open .nav-drop { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-drop a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--text-2);
  white-space: nowrap;
}
.nav-drop a:hover { background: var(--blue-soft); color: var(--blue); }
.nav-drop .nd-all {
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--border);
  border-radius: 8px 8px 0 0;
}
.nav-drop .nd-all:hover { color: var(--blue); }

@media (max-width: 1200px) {
  .site-header .main-nav .nav-link { padding: 0 7px; font-size: 13.2px; }
  .header-inner { gap: 12px; }
}

/* ---------- 软件卡片：图标 + 名称/分类浏览量 + 整行简介 ---------- */
.soft-card { display: block; padding: 14px; }
.soft-card .sc-top { display: flex; align-items: flex-start; gap: 11px; min-width: 0; }
.soft-card .sc-main { display: flex; flex-direction: column; gap: 5px; min-width: 0; flex: 1 1 auto; }
.soft-card .card-title {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  font-size: 14.2px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}
.soft-card .card-title .sc-name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}
.card-title .card-badge { margin-left: 0; margin-top: 1px; }
.sc-meta { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 11.5px; color: var(--text-3); }
.sc-meta .card-cat { max-width: 112px; flex: 0 1 auto; }
.sc-desc {
  margin: 10px 0 0;
  font-size: 12.4px;
  line-height: 1.55;
  color: var(--text-3);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.soft-card .card-meta svg { width: 12.5px; height: 12.5px; }

/* ---------- 手机端抽屉菜单 ---------- */
.mnav-mask { position: fixed; inset: 0; z-index: 98; background: rgba(9, 18, 40, .45); }
.mnav-mask[hidden] { display: none !important; }
.mnav {
  position: fixed;
  left: 0; right: 0; top: 0;
  z-index: 99;
  display: block;
  max-height: 88vh;
  overflow-y: auto;
  background: var(--surface);
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
  box-shadow: 0 26px 60px -24px rgba(9, 25, 66, .55);
  transform: translateY(-102%);
  visibility: hidden;
  transition: transform .26s cubic-bezier(.22, .61, .36, 1), visibility .26s;
}
.mnav.open { transform: translateY(0); visibility: visible; }
body.nav-open { overflow: hidden; }
.mnav-head { display: flex; align-items: center; gap: 10px; padding: 14px 14px 4px; }
.mnav-search {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  min-width: 0;
  padding: 0 5px 0 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-2);
}
.mnav-search svg { width: 15px; height: 15px; flex: 0 0 15px; fill: none; stroke: var(--text-3); stroke-width: 2; stroke-linecap: round; }
.mnav-search input {
  flex: 1 1 auto;
  min-width: 0;
  height: 36px;
  border: 0;
  background: none;
  outline: none;
  font-size: 14px;
  color: var(--text);
}
.mnav-search button {
  height: 30px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-size: 13px;
  cursor: pointer;
}
.mnav-close {
  flex: 0 0 34px;
  width: 34px; height: 34px;
  border: 0;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--text-3);
  font-size: 19px;
  line-height: 1;
  cursor: pointer;
}
.mnav-body { padding: 8px 14px 20px; }
.mnav-home {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 12px;
  border-radius: 11px;
  background: var(--surface-2);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text);
}
.mnav-home.active { color: var(--blue); }
.mnav-label { margin: 16px 2px 8px; font-size: 11.5px; letter-spacing: .4px; color: var(--text-3); }
.mnav-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.mnav-cat {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 11px;
  min-width: 0;
}
.mnav-cat.active { border-color: var(--blue); background: var(--blue-soft); }
.mnav-ico {
  flex: 0 0 26px;
  width: 26px; height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--blue-soft);
  font-size: 13px;
}
.mnav-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mnav-txt b { font-size: 13.2px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mnav-txt small { font-size: 10.5px; color: var(--text-3); white-space: nowrap; }
.mnav-links { display: flex; gap: 16px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); }
.mnav-links a { font-size: 13px; color: var(--text-2); }
.mnav-links a:hover { color: var(--blue); }

@media (min-width: 961px) {
  .mnav,
  .mnav-mask { display: none !important; }
}

/* ---------- 二维码占位 ---------- */
.qr-wrap.qr-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: var(--surface-2);
  border-style: dashed;
  color: var(--text-3);
}
.qr-ph-ico svg { width: 42px; height: 42px; fill: none; stroke: currentColor; stroke-width: 1.4; opacity: .6; }
.qr-ph-txt { font-size: 13px; font-weight: 600; color: var(--text-2); }
.qr-ph-sub { font-size: 11.5px; }

/* ---------- 详情页按钮 ---------- */
.dl-btn { min-height: 50px; }
/* ---------- 响应式 ---------- */

@media (max-width: 960px) {
  .site-header .main-nav { display: none !important; }
  .header-inner { min-height: 58px; padding: 8px 0; }
}

@media (max-width: 720px) {
  .site-header .container { padding-left: 16px; padding-right: 16px; }
  .header-inner { gap: 8px; }
  .logo { gap: 8px; }
  .logo-img { width: 28px; height: 28px; border-radius: 8px; }
  .logo-text { font-size: 15.5px; }

  /* 首页 / 分类页列表：一行两条 */
  .grid-5,
  .grid-4,
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .soft-card { padding: 11px; border-radius: 12px; }
  .soft-card .sc-top { gap: 8px; }
  .soft-card .soft-icon { width: 36px; height: 36px; flex: 0 0 36px; border-radius: 10px; font-size: 14px; }
  .soft-card .soft-icon .ico-emoji { font-size: 18px; }
  .soft-card .soft-icon .ico-char { font-size: 15px; }
  .soft-card .card-title { font-size: 13px; line-height: 1.3; }
  .card-badge { font-size: 9.5px; padding: 1px 4px; }
  .sc-meta { font-size: 10.5px; gap: 5px; }
  .sc-meta .card-cat { max-width: 68px; padding: 0 5px; font-size: 10px; }
  .sc-meta .card-meta svg { width: 11px; height: 11px; }
  .sc-desc { margin-top: 7px; font-size: 11.3px; line-height: 1.45; -webkit-line-clamp: 2; }
  .mnav-grid { gap: 7px; }
  .mnav-cat { padding: 9px 8px; gap: 7px; }
  .mnav-txt b { font-size: 12.8px; }
}

@media (max-width: 380px) {
  .grid-5,
  .grid-4,
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .soft-card .soft-icon { width: 32px; height: 32px; flex: 0 0 32px; }
  .soft-card .card-title { font-size: 12.4px; }
  .sc-meta .card-cat { display: none; }
}

/* ---------- 详情页下载按钮：固定窄块，不再拉满整行 ---------- */
.dl-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fill, 168px);
  gap: 10px;
  justify-content: start;
}
.dl-btn { min-width: 0; padding: 9px 12px; }
.dl-btn .dl-txt { min-width: 0; }
.dl-btn .dl-txt b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

@media (max-width: 720px) {
  .dl-buttons { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dl-btn { min-height: 44px; padding: 8px 10px; gap: 8px; }
  .dl-btn .dl-ico svg { width: 20px; height: 20px; }
  .dl-btn .dl-txt b { font-size: 13px; }
}

/* ---------- 手机端页脚：只保留站点信息与版权，隐藏分类导航列 ---------- */

@media (max-width: 720px) {
  .footer-cols { display: none; }
  .footer-meta { display: none; }
  .footer-inner { padding-top: 26px; padding-bottom: 22px; gap: 0; }
  .footer-brand { max-width: none; }
  .footer-desc { margin-top: 10px; font-size: 12.4px; }
  .site-footer { padding-bottom: 6px; }
}

/* ---------- 手机抽屉遮罩层级（移出 header 后相对视口定位） ---------- */
.mnav-mask { z-index: 120; }
.mnav { z-index: 121; }
