/* ============================================================
   PDF 文件管理系统 - 电子管音响主题样式
   暗调暖色 · 琥珀色电子管辉光
   ============================================================ */
:root {
  --bg: #14100d;
  --bg-soft: #1a1512;
  --surface: #1f1915;
  --card: #251d17;
  --card-hover: #2c231b;
  --border: #3a2e24;
  --border-light: #4a3b2e;
  --text: #f0e7da;
  --muted: #a8987f;
  --muted-2: #7d6f5c;
  --amber: #e8a33d;
  --amber-bright: #f7bd57;
  --amber-deep: #a9742a;
  --glow: rgba(232, 163, 61, 0.30);
  --glow-strong: rgba(232, 163, 61, 0.45);
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  --font: "Segoe UI", "Microsoft YaHei", "PingFang SC", -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ---------------- 导航栏 ---------------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(20, 16, 13, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 22px;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--text);
  white-space: nowrap;
}
.brand-icon {
  width: auto;
  height: 48px;
  border-radius: 5px;
  object-fit: contain;
  filter: drop-shadow(0 0 7px var(--glow));
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-links::-webkit-scrollbar { display: none; }
.nav-link {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--muted);
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}
.nav-link:hover {
  color: var(--text);
  background: rgba(232, 163, 61, 0.10);
}
.nav-admin {
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--amber);
  border: 1px solid var(--amber-deep);
  background: rgba(232, 163, 61, 0.08);
  transition: all 0.2s;
  white-space: nowrap;
}
.nav-admin:hover {
  background: var(--amber);
  color: #201509;
  box-shadow: 0 0 18px var(--glow);
}
button.nav-admin {
  cursor: pointer;
  font-family: inherit;
  font-weight: 500;
}

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.hero-bg { position: absolute; inset: 0; z-index: 0; display: flex; align-items: center; justify-content: center; }
.hero-bg img {
  flex: 0 0 auto;
  width: 1180px;
  max-width: 1180px;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  filter: saturate(0.9);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(100deg, rgba(14, 10, 8, 0.94) 8%, rgba(14, 10, 8, 0.62) 48%, rgba(14, 10, 8, 0.25) 100%),
    linear-gradient(to top, var(--bg) 0%, transparent 30%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
  padding: 84px 22px 120px;
  width: 100%;
}
.hero-kicker {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 3px;
  color: var(--amber);
  border: 1px solid var(--amber-deep);
  border-radius: 999px;
  padding: 5px 16px;
  background: rgba(232, 163, 61, 0.08);
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(38px, 6vw, 60px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 1px;
}
.hero h1 .accent-glow {
  background: linear-gradient(120deg, var(--amber-bright), var(--amber) 45%, #ffd9a0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 30px var(--glow);
}
.hero-sub {
  margin-top: 18px;
  font-size: 17px;
  color: #cdbfa9;
  line-height: 1.8;
}
.hero-actions {
  margin-top: 34px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.2s;
}
.btn-amber {
  background: linear-gradient(135deg, var(--amber-bright), var(--amber));
  color: #221607;
  box-shadow: 0 4px 24px var(--glow);
}
.btn-amber:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 32px var(--glow-strong);
}
.btn-ghost {
  border: 1px solid var(--border-light);
  color: #e8dcc9;
  background: rgba(255, 255, 255, 0.04);
}
.btn-ghost:hover {
  border-color: var(--amber);
  color: var(--amber-bright);
  background: rgba(232, 163, 61, 0.10);
}
.hero-stats {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  display: flex;
  gap: 0;
  background: rgba(24, 18, 14, 0.82);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.hero-stats .stat {
  padding: 16px 38px;
  text-align: center;
  border-right: 1px solid var(--border);
}
.hero-stats .stat:last-child { border-right: none; }
.hero-stats .stat b {
  display: block;
  font-size: 24px;
  font-weight: 800;
  color: var(--amber-bright);
  text-shadow: 0 0 18px var(--glow);
}
.hero-stats .stat span {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 1px;
}

/* ---------------- 通用区块 ---------------- */
.section-head { text-align: center; margin-bottom: 40px; }
.section-head .kicker {
  font-size: 13px;
  letter-spacing: 3px;
  color: var(--amber);
  margin-bottom: 10px;
}
.section-head h2 {
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 800;
  letter-spacing: 0.5px;
}

/* ---------------- 功能特性 ---------------- */
.features {
  max-width: 1180px;
  margin: 0 auto;
  padding: 84px 22px 20px;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--amber-deep);
  box-shadow: 0 0 0 1px rgba(232, 163, 61, 0.25), 0 14px 36px rgba(0, 0, 0, 0.4);
}
.feat-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(232, 163, 61, 0.12);
  border: 1px solid rgba(232, 163, 61, 0.3);
  color: var(--amber);
  margin-bottom: 18px;
  box-shadow: inset 0 0 18px rgba(232, 163, 61, 0.12);
}
.feat-icon svg { width: 26px; height: 26px; }
.feature-card h3 { font-size: 18px; margin-bottom: 10px; }
.feature-card p { font-size: 14px; color: var(--muted); line-height: 1.75; }

/* ---------------- 首字母索引 ---------------- */
.alpha-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: -8px 0 20px;
  padding-bottom: 4px;
}
.alpha-btn {
  min-width: 34px;
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  font-family: var(--font);
}
.alpha-btn:hover {
  color: var(--amber-bright);
  border-color: var(--amber-deep);
  background: rgba(232, 163, 61, 0.08);
}
.alpha-btn.active {
  color: #201509;
  background: linear-gradient(135deg, var(--amber-bright), var(--amber));
  border-color: var(--amber-bright);
  box-shadow: 0 0 14px var(--glow);
}

/* ---------------- 资料库 ---------------- */
.library {
  max-width: 1180px;
  margin: 0 auto;
  padding: 84px 22px 60px;
  scroll-margin-top: 70px;
}
.toolbar {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 26px;
  flex-wrap: wrap;
}
.search-box {
  flex: 1;
  min-width: 280px;
  display: flex;
  gap: 0;
  position: relative;
}
.search-box input {
  flex: 1;
  padding: 12px 18px;
  border: 1px solid var(--border);
  border-right: none;
  border-radius: 999px 0 0 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}
.search-box input:focus { border-color: var(--amber-deep); }
.search-box input::placeholder { color: var(--muted-2); }
.search-box .search-submit {
  padding: 0 24px;
  border: 1px solid var(--amber-deep);
  border-radius: 0 999px 999px 0;
  background: linear-gradient(135deg, var(--amber-bright), var(--amber));
  color: #221607;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: box-shadow 0.2s;
}
.search-box .search-submit:hover { box-shadow: 0 0 16px var(--glow); }
.kb-toggle {
  width: 44px;
  border: 1px solid var(--border);
  border-left: none;
  border-right: none;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}
.kb-toggle:hover { color: var(--amber-bright); background: rgba(232, 163, 61, 0.08); }
.kb-toggle.active { color: var(--amber); background: rgba(232, 163, 61, 0.14); }

/* ---- 软键盘 ---- */
.kb-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 80;
  width: 100%;
  max-width: 620px;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 10px;
  display: none;
  flex-direction: column;
  gap: 6px;
  box-shadow: var(--shadow);
}
.kb-panel.open { display: flex; }
.kb-row { display: flex; gap: 6px; }
.kb-key {
  flex: 1;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font);
  transition: all 0.12s;
  padding: 0 4px;
}
.kb-key:hover { border-color: var(--amber-deep); color: var(--amber-bright); background: rgba(232, 163, 61, 0.08); }
.kb-key:active { transform: translateY(1px); }
.kb-key.fn { color: var(--muted); font-size: 13px; }
.kb-key.fn.act { color: var(--amber); border-color: var(--amber-deep); background: rgba(232, 163, 61, 0.14); }
.kb-key.fn.accent { color: var(--amber); border-color: var(--amber-deep); }
.kb-key.space { flex: 3.5; }
.lib-info { font-size: 13px; color: var(--muted); white-space: nowrap; }

.pdf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 18px;
}
.card-thumb {
  position: relative;
  width: 128px;
  min-width: 128px;
  height: 176px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-thumb img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain; /* 竖版全比例显示，不裁切 */
  display: block;
}
/* 失败回退层：叠在图下方，仅当图未加载时露出；不显示 PDF 图标 */
.card-thumb .thumb-fb {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-thumb .thumb-fb > * { display: none; }

.pdf-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 16px;
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.card-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 2px 0;
}
.pdf-card:hover {
  transform: translateY(-3px);
  border-color: var(--amber-deep);
  box-shadow: 0 0 0 1px rgba(232, 163, 61, 0.22), 0 12px 30px rgba(0, 0, 0, 0.42);
}
.card-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.card-file-icon {
  flex-shrink: 0;
  width: 34px;
  height: 38px;
  color: #c96a4a;
  filter: drop-shadow(0 0 8px rgba(201, 106, 74, 0.35));
}
.card-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-all;
}
.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  font-size: 12px;
  color: var(--muted-2);
}
.card-meta b { color: var(--muted); font-weight: 600; }
.card-views {
  color: var(--amber);
  background: rgba(232, 163, 61, 0.10);
  border: 1px solid rgba(232, 163, 61, 0.25);
  border-radius: 999px;
  padding: 1px 10px;
  font-size: 11.5px;
}

.empty {
  text-align: center;
  padding: 60px 0;
  color: var(--muted-2);
  font-size: 15px;
}

/* ---------------- 分页 ---------------- */
.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 30px;
  flex-wrap: wrap;
}
.pager button {
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s;
}
.pager button:hover:not(:disabled):not(.active) { border-color: var(--amber-deep); color: var(--amber-bright); }
.pager button.active {
  background: linear-gradient(135deg, var(--amber-bright), var(--amber));
  border-color: transparent;
  color: #221607;
  font-weight: 700;
}
.pager button:disabled { opacity: 0.35; cursor: not-allowed; }
.pager .info { font-size: 13px; color: var(--muted); margin: 0 8px; }

/* ---------------- 关于/DIY ---------------- */
.about {
  max-width: 1180px;
  margin: 0 auto;
  padding: 40px 22px 90px;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 44px;
  align-items: center;
}
.about-media img {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  object-fit: cover;
  width: 100%;
  aspect-ratio: 4 / 3;
}
.about-text .kicker {
  font-size: 13px;
  letter-spacing: 3px;
  color: var(--amber);
  margin-bottom: 10px;
}
.about-text h2 { font-size: clamp(24px, 3.4vw, 32px); margin-bottom: 16px; }
.about-text p { color: var(--muted); font-size: 15px; line-height: 1.8; }
.about-list {
  list-style: none;
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.about-list li {
  position: relative;
  padding-left: 28px;
  font-size: 14px;
  color: #d9cbb4;
}
.about-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 10px var(--glow);
}

/* ---------------- 页脚 ---------------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
}
.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 34px 22px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px 40px;
  flex-wrap: wrap;
}
.footer-left { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; min-width: 0; flex: 1; }
.footer-right { display: flex; flex-direction: column; align-items: flex-end; gap: 14px; min-width: 0; flex: 1; }
.footer-brand { font-weight: 700; color: var(--amber); font-size: 15px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px 20px; font-size: 13px; }
.footer-links a { color: var(--muted); transition: color 0.2s; }
.footer-links a:hover { color: var(--amber-bright); }
.footer-note { font-size: 12px; color: var(--muted-2); line-height: 1.7; max-width: 420px; }

/* ---- 文章内嵌抖音视频 ---- */
.douyin-embed { display: block; margin: 12px 0; }
.douyin-embed iframe { width: 100%; aspect-ratio: 9 / 16; max-height: 560px; border: 0; border-radius: 10px; background: #000; }

/* ============================================================
   详情页
   ============================================================ */
.detail-page .nav-inner { gap: 16px; }
.detail-top {
  max-width: 1180px;
  margin: 0 auto;
  padding: 22px 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--muted);
  transition: color 0.2s;
}
.back-link:hover { color: var(--amber-bright); }
.open-new {
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--amber-deep);
  background: rgba(232, 163, 61, 0.08);
  color: var(--amber);
  font-size: 13px;
  transition: all 0.2s;
}
.open-new:hover { background: var(--amber); color: #221607; }
.detail-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.detail-layout {
  max-width: 1180px;
  margin: 0 auto;
  padding: 22px 22px 70px;
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 22px;
  align-items: start;
}
.preview-panel {
  position: sticky;
  top: 76px;
  background: #211a15;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.ios-preview-hint {
  height: 72vh;
  min-height: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--amber);
  cursor: pointer;
  background: linear-gradient(180deg, #241c16 0%, #1a1410 100%);
  text-align: center;
}
.ios-preview-hint svg { width: 54px; height: 54px; opacity: 0.9; }
.ios-preview-hint p { font-size: 15px; line-height: 1.7; margin: 0; }
.ios-preview-hint:hover { background: linear-gradient(180deg, #2b2118 0%, #1f1711 100%); }
.preview-panel iframe {
  width: 100%;
  height: 72vh;
  min-height: 480px;
  border: none;
  display: block;
  background: #2a231d;
}
.side-panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.side-panel h1 {
  font-size: 20px;
  line-height: 1.5;
  margin-bottom: 6px;
  word-break: break-all;
}
.file-sub {
  font-size: 13px;
  color: var(--muted-2);
  margin-bottom: 20px;
  word-break: break-all;
}
.meta-list { list-style: none; display: flex; flex-direction: column; }
.meta-list li {
  display: flex;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.meta-list li:last-child { border-bottom: none; }
.meta-list .k {
  flex-shrink: 0;
  width: 72px;
  color: var(--muted-2);
}
.meta-list .v { color: var(--text); word-break: break-all; line-height: 1.65; }
.side-title {
  font-size: 15px;
  color: var(--amber-bright);
  margin: 20px 0 2px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}
.side-title svg { width: 17px; height: 17px; }
.param-none { color: var(--muted-2); }
.meta-list .k small {
  display: block;
  font-size: 11px;
  color: var(--muted-2);
  font-weight: 400;
  margin-top: 2px;
  line-height: 1.4;
}
.meta-list .v .param-val { display: inline-block; margin: 1px 0; }
.param-loading { color: var(--muted-2); font-style: normal; }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 900px) {
  .feature-grid { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; }
  .detail-layout { grid-template-columns: 1fr; }
  .preview-panel { position: static; }
  .preview-panel iframe { height: 60vh; }
  .hero { min-height: 500px; }
  .hero-content { padding: 60px 22px 150px; }
  .hero-stats { bottom: 22px; width: calc(100% - 44px); }
  .hero-stats .stat { flex: 1; padding: 14px 8px; }
  .hero-stats .stat b { font-size: 18px; }
  .hero-stats .stat span { font-size: 11px; }
  .nav-inner { gap: 12px; padding: 0 14px; }
  .brand-name { font-size: 15px; }
}

/* ============================================================
   功放/收扩（SCH）
   ============================================================ */
.sch-hero {
  background: linear-gradient(160deg, #1d1610 0%, #14100d 70%);
  border-bottom: 1px solid var(--border);
}
.sch-hero-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 64px 22px 40px;
}
.sch-hero .kicker { font-size: 13px; letter-spacing: 3px; color: var(--amber); margin-bottom: 10px; }
.sch-hero h1 { font-size: clamp(26px, 3.6vw, 36px); margin-bottom: 12px; }
.sch-hero-sub { color: var(--muted); font-size: 15px; }
.sch-library { padding-top: 40px; }

.cat-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}
.cat-btn {
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  font-family: var(--font);
}
.cat-btn:hover { color: var(--amber-bright); border-color: var(--amber-deep); }
.cat-btn.active {
  color: #201509;
  background: linear-gradient(135deg, var(--amber-bright), var(--amber));
  border-color: var(--amber-bright);
  box-shadow: 0 0 14px var(--glow);
}

/* 按国家分组的电子管品牌条 */
.brand-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  width: 100%;
}
.brand-group-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--amber-bright);
  padding: 2px 10px 2px 8px;
  border-left: 3px solid var(--amber-deep);
  letter-spacing: 2px;
  margin-right: 4px;
  white-space: nowrap;
}
.cat-count {
  font-style: normal;
  font-size: 11px;
  opacity: .72;
  margin-left: 4px;
}

/* 国家可点击按钮（分类条内） */
.cat-btn.country-btn {
  font-weight: 800;
  color: var(--amber-bright);
  border-color: rgba(255, 170, 60, .45);
  letter-spacing: 1px;
}

/* 类型筛选标签条 */
.tag-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 12px auto 4px;
  max-width: 1180px;
  padding: 0 16px;
}
.tag-bar::before {
  content: '类型';
  font-size: 12px;
  font-weight: 700;
  color: var(--amber-deep);
  letter-spacing: 2px;
  margin-right: 4px;
}
.tag-btn {
  font-size: 13px;
  padding: 5px 12px;
  border-radius: 14px;
}

/* 上传弹窗 国家/品牌 联动 */
.su-cat-row {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}
.su-cat-select {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, .14);
  background: #2a211c;
  color: #f3e7d4;
  font-size: 14px;
}
.su-cat-select:focus { outline: none; border-color: var(--amber); }

/* 后台分类概览（国家/品牌只读） */
.cat-ovr-group {
  padding: 10px 12px;
  margin-bottom: 8px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 10px;
  background: rgba(255, 255, 255, .03);
}
.cat-ovr-country {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: var(--amber-bright);
  margin-bottom: 6px;
}
.cat-ovr-brand {
  display: inline-block;
  font-size: 12px;
  color: #cbb89a;
  background: rgba(255, 255, 255, .06);
  border-radius: 12px;
  padding: 3px 10px;
  margin: 2px 6px 2px 0;
}
.cat-ovr-brand em {
  font-style: normal;
  color: var(--amber);
  margin-left: 4px;
}

/* 分类概览可点击筛选 */
.cat-ovr-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.cat-ovr-all {
  padding: 6px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .2);
  background: transparent;
  color: #cbb89a;
  font-size: 13px;
  cursor: pointer;
}
.cat-ovr-all.active {
  border-color: var(--amber);
  color: var(--amber-bright);
  background: rgba(255, 170, 60, .1);
}
.cat-ovr-cur {
  font-size: 12px;
  color: var(--amber-bright);
  background: rgba(255, 170, 60, .12);
  border-radius: 12px;
  padding: 4px 10px;
}
.cat-ovr-cur button {
  margin-left: 6px;
  background: none;
  border: none;
  color: #ffb;
  font-size: 12px;
  cursor: pointer;
  text-decoration: underline;
}
.cat-ovr-group {
  padding: 10px 12px;
  margin-bottom: 8px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 10px;
  background: rgba(255, 255, 255, .03);
}
.cat-ovr-country {
  display: inline-block;
  font-size: 14px;
  font-weight: 800;
  color: var(--amber-bright);
  background: rgba(255, 170, 60, .08);
  border: 1px solid rgba(255, 170, 60, .35);
  border-radius: 12px;
  padding: 4px 12px;
  margin-bottom: 6px;
  cursor: pointer;
}
.cat-ovr-country.active {
  background: rgba(255, 170, 60, .2);
  border-color: var(--amber);
}
.cat-ovr-brand {
  display: inline-block;
  font-size: 12px;
  color: #cbb89a;
  background: rgba(255, 255, 255, .06);
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 3px 10px;
  margin: 2px 6px 2px 0;
  cursor: pointer;
}
.cat-ovr-brand:hover { border-color: rgba(255, 170, 60, .4); }
.cat-ovr-brand.active {
  border-color: var(--amber);
  color: var(--amber-bright);
  background: rgba(255, 170, 60, .12);
}

.meta-link {
  color: var(--amber);
  text-decoration: none;
  border-bottom: 1px dashed var(--amber-deep);
  cursor: pointer;
  transition: all 0.2s;
}
.meta-link:hover { color: var(--amber-bright); border-bottom-style: solid; }

/* ---- 功放/收扩页 Hero ---- */
.hero-sch { min-height: 430px; }
.hero-sch .hero-bg img { object-position: center 40%; }
.sch-main { padding-top: 34px; }

/* ---- 电子管手册页 Hero ---- */
.hero-pdf { min-height: 430px; }
.hero-pdf .hero-bg img { object-position: center 32%; }
.pdf-main { padding-top: 34px; }

/* ---- 电子管手册品牌导航 ---- */
.brand-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 20px;
  padding-bottom: 4px;
}
.brand-bar-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-height: 58px;
  overflow: hidden;
  flex: 1;
  min-width: 0;
}
.brand-bar-inner.expanded { max-height: none; }
.brand-btn {
  height: 26px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.brand-btn i {
  font-style: normal;
  font-size: 11px;
  opacity: 0.75;
}
.brand-btn:hover { color: var(--amber-bright); border-color: var(--amber-deep); }
.brand-btn.active {
  color: #201509;
  background: linear-gradient(135deg, var(--amber-bright), var(--amber));
  border-color: var(--amber-bright);
  box-shadow: 0 0 10px var(--glow);
}
.brand-btn.active i { opacity: 0.7; }
.brand-more {
  height: 26px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px dashed var(--amber-deep);
  background: transparent;
  color: var(--amber);
  font-size: 12.5px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  font-family: inherit;
}
.brand-more:hover { background: rgba(232, 163, 61, 0.1); }

/* ---- 电子管品牌页 ---- */
.page-main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 48px 22px 70px;
}
.page-head { text-align: center; margin-bottom: 40px; }
.page-head .kicker {
  font-size: 13px;
  letter-spacing: 3px;
  color: var(--amber);
  margin-bottom: 10px;
}
.page-head h1 {
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 800;
  letter-spacing: 0.5px;
}
.page-sub {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
  margin-top: 12px;
}
.brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 12px;
}
.brand-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}
.brand-card .bc-name {
  font-size: 15px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.brand-card .bc-count { font-size: 12px; color: var(--muted); }
.brand-card:hover {
  color: var(--amber-bright);
  border-color: var(--amber-deep);
  transform: translateY(-2px);
}
.brand-card.active {
  color: #201509;
  background: linear-gradient(135deg, var(--amber-bright), var(--amber));
  border-color: var(--amber-bright);
  box-shadow: 0 0 18px var(--glow);
}
.brand-card.active .bc-count { color: #5a3d12; }
.brand-docs-head {
  font-size: 20px;
  font-weight: 800;
  margin: 44px 0 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.brand-docs-head::before { content: "📂 "; }
@media (max-width: 640px) {
  .brand-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
}

/* ---- 补充资料上传弹窗 ---- */
.modal-mask {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(10, 8, 6, 0.72);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-card {
  width: 100%;
  max-width: 460px;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 26px;
  box-shadow: var(--shadow);
  max-height: 90vh;
  overflow: auto;
}
.modal-card h3 { font-size: 19px; margin-bottom: 8px; }
.modal-sub { font-size: 13px; color: var(--muted); line-height: 1.7; margin-bottom: 18px; }
.modal-label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin: 14px 0 6px;
}
.modal-radio {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13.5px;
}
.modal-radio label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: var(--text);
  line-height: 1.5;
}
.modal-radio input[type="radio"] { accent-color: #e8a33d; width: 15px; height: 15px; cursor: pointer; }
.modal-card select,
.modal-card input[type="file"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card);
  color: var(--text);
  font-size: 13.5px;
  font-family: var(--font);
  outline: none;
}
.modal-card select:focus { border-color: var(--amber-deep); }
.modal-card input[type="file"] { cursor: pointer; }
.modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}
.modal-actions .btn { flex: 1; }
.modal-msg {
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}
.modal-msg.ok { color: #7fc46a; }
.modal-msg.err { color: #e08a7a; }

/* ---- 图纸详情预览 ---- */
.preview-loading {
  padding: 60px 20px;
  text-align: center;
  color: var(--muted-2);
  font-size: 14px;
}
.img-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 480px;
  background: #241d17;
  padding: 16px;
}
.img-preview img {
  max-width: 100%;
  max-height: 72vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5);
}
.word-preview {
  min-height: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--muted);
  font-size: 14px;
  padding: 20px;
}
.word-icon {
  width: 84px;
  height: 84px;
  border-radius: 20px;
  background: linear-gradient(135deg, #4a7fc9, #2f5ba8);
  color: #fff;
  font-size: 42px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 24px rgba(74, 127, 201, 0.35);
}

/* 上传弹窗 国家/品牌 自定义下拉（可二次选择） */
.su-cat-field { position: relative; flex: 1; min-width: 0; display: flex; }
.su-cat-field input {
  flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid var(--border);
  border-radius: 10px 0 0 10px; background: var(--card); color: var(--text);
  font-size: 13.5px; font-family: var(--font); outline: none;
}
.su-cat-field input:focus { border-color: var(--amber-deep); }
.su-cat-drop {
  width: 40px; border: 1px solid var(--border); border-left: none;
  border-radius: 0 10px 10px 0; background: var(--card); color: var(--amber);
  font-size: 13px; cursor: pointer; line-height: 1;
}
.su-cat-drop:hover { background: rgba(255,255,255,.05); }
.su-dropdown {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 120;
  max-height: 240px; overflow: auto; background: var(--surface);
  border: 1px solid var(--border-light); border-radius: 10px; box-shadow: var(--shadow);
  display: none;
}
.su-dropdown-item { padding: 9px 13px; font-size: 13.5px; color: var(--text); cursor: pointer; }
.su-dropdown-item:hover { background: rgba(255,255,255,.07); color: var(--amber); }
.su-dropdown-empty { padding: 10px 13px; font-size: 12.5px; color: var(--muted); }

/* 上传弹窗 原生select + 自定义输入 */
.su-cat-field { flex: 1; min-width: 0; display: flex; gap: 0; }
.su-cat-field .su-cat-select { flex: 1; min-width: 0; }
.su-cat-custom {
  flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid var(--border);
  border-radius: 10px; background: var(--card); color: var(--text);
  font-size: 13.5px; font-family: var(--font); outline: none;
}
.su-cat-custom:focus { border-color: var(--amber-deep); }

/* 详情页关注 / 打赏二维码 */
.qr-block { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 16px; }
.qr-item { display: flex; align-items: center; gap: 14px; }
.qr-item img { width: 110px; height: 110px; object-fit: contain; border-radius: 8px; background: #fff; padding: 5px; box-shadow: 0 2px 10px rgba(0,0,0,.35); flex: 0 0 auto; }
.qr-txt { min-width: 0; }
.qr-title { display: block; font-size: 15px; font-weight: 600; color: var(--fg, #f0e6d2); }
.qr-sub { display: block; margin-top: 6px; font-size: 12px; line-height: 1.6; color: var(--muted, #c9b8a2); }

/* 导航栏隐藏站点名文字（仅显示 LOGO） */
.brand-name { display: none; }

/* 资料不全弹窗 */
.req-card { text-align: center; }
.req-card .modal-sub { text-align: center; }
.req-qr { margin: 14px 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.req-qr img { width: 170px; height: 170px; object-fit: contain; background: #fff; border-radius: 10px; padding: 6px; box-shadow: 0 2px 12px rgba(0,0,0,.4); }
.req-qr span { display: block; margin-top: 10px; color: var(--muted, #c9b8a2); font-size: 14px; letter-spacing: 1px; }
.req-card .modal-actions { justify-content: center; gap: 10px; }
.req-card .btn { padding: 4px 10px; font-size: 13px; width: auto; min-width: 0; flex: 0 0 auto; }

/* 页脚 QQ 在线对话按钮 */
.qq-chat-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 6px 14px;
  border: 1px solid var(--amber, #e8a33d);
  border-radius: 999px;
  color: var(--amber, #e8a33d);
  font-size: 13px;
  text-decoration: none;
  transition: all .2s;
}
.qq-chat-btn:hover { background: var(--amber, #e8a33d); color: #1a1408; }

/* 页脚关注二维码（后台控制开关/图片/文字；位于右栏导航链接下方、右对齐） */
.footer-qr {
  width: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}
.footer-qr-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  max-width: 96px;
}
.footer-qr-item img {
  width: 88px;
  height: 88px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
  padding: 5px;
  box-shadow: 0 2px 10px rgba(0,0,0,.35);
}
.footer-qr-title {
  font-size: 12px;
  color: var(--muted, #c9b8a2);
  text-align: center;
  word-break: break-all;
}

/* ---- CMS 文章（列表 / 详情） ---- */
.hero-short { padding-bottom: 72px; }
.cat-chip-bar { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 6px; }
.cat-chip {
  padding: 5px 14px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); font-size: 13px;
  cursor: pointer; font-family: inherit; transition: all .2s;
}
.cat-chip em { font-style: normal; color: var(--muted); margin-left: 4px; font-size: 12px; }
.cat-chip.active { background: var(--amber, #e8a33d); border-color: var(--amber, #e8a33d); color: #1a1410; font-weight: 700; }
.cat-chip.active em { color: rgba(26,20,16,.6); }
.article-list { display: flex; flex-direction: column; gap: 14px; margin-top: 14px; }
.article-card {
  display: flex; gap: 16px; padding: 18px; border-radius: 14px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  transition: all .2s; text-decoration: none;
}
.article-card:hover { border-color: var(--amber-deep, #b8772a); transform: translateY(-2px); }
.article-cover { flex-shrink: 0; width: 210px; min-height: 120px; border-radius: 10px; overflow: hidden; background: var(--bg, #1a1410); }
.article-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.article-body { flex: 1; min-width: 0; }
.article-title { font-size: 17px; font-weight: 700; line-height: 1.5; color: var(--text); }
.article-summary { color: var(--muted); font-size: 14px; line-height: 1.7; margin-top: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.article-meta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; font-size: 12px; color: var(--muted); }
@media (max-width: 640px) {
  .article-card { flex-direction: column; }
  .article-cover { width: 100%; height: auto; min-height: 0; }
  .article-cover img { height: auto; }
}
/* 文章详情页 */
.article-page { max-width: 860px; margin: 0 auto; padding: 44px 22px 64px; }
.article-head { margin-bottom: 24px; }
.article-head h1 { font-size: clamp(24px, 4vw, 34px); font-weight: 800; line-height: 1.4; color: var(--text); }
.article-preview-badge { display: inline-block; vertical-align: middle; margin-left: 12px; font-size: 12px; font-weight: 700; color: #e8a33d; border: 1px solid rgba(232,163,61,.5); background: rgba(232,163,61,.12); padding: 2px 10px; border-radius: 999px; }
.article-cover-wrap img { width: 100%; border-radius: 14px; margin-bottom: 24px; }
.article-content { font-size: 16px; line-height: 1.9; color: var(--text); }
.article-content h1, .article-content h2, .article-content h3, .article-content h4 { margin: 26px 0 12px; font-weight: 700; color: var(--text); line-height: 1.4; }
.article-content h1 { font-size: 24px; }
.article-content h2 { font-size: 21px; }
.article-content h3 { font-size: 18px; }
.article-content h4 { font-size: 16px; }
.article-content p { margin: 12px 0; }
.article-content img { max-width: 100%; border-radius: 10px; margin: 12px 0; }
.article-content blockquote {
  border-left: 3px solid var(--amber-deep, #b8772a); background: rgba(232,163,61,.06);
  padding: 10px 16px; margin: 14px 0; border-radius: 0 8px 8px 0; color: var(--muted);
}
.article-content code { background: rgba(255,255,255,.06); padding: 2px 6px; border-radius: 5px; font-size: 14px; color: var(--amber, #e8a33d); }
.article-content ul { margin: 12px 0; padding-left: 22px; list-style: disc; }
.article-content a { color: var(--amber, #e8a33d); }
.article-back { margin-top: 36px; }
.article-back a { color: var(--amber, #e8a33d); text-decoration: none; }
