/**
 * E-Bike Industry Resource Platform - Styles
 * 版本: 20270727-V0.04
 */

/* ===== CSS Variables ===== */
:root {
  /* ══ 2026-10-15 视觉升级：专业 B2B 平台配色（墨绿品牌 + 高级中性浅色） ══ */
  --primary: #1E6B58;            /* 品牌墨绿（更深邃、专业） */
  --primary-dark: #15503F;
  --primary-hover: #2A7C66;
  --primary-light: #E7F0EC;
  --secondary: #3A6E8C;
  --accent: #C0892A;            /* 琥珀金：商业/盈利/CTA 强调 */
  --accent-hover: #A8761F;
  --danger: #C2554A;
  /* 背景系统：土卡其 → 高级中性暖白层次 */
  --bg: #F5F6F4;                /* 主底：极浅暖灰白，干净现代 */
  --bg-card: #FFFFFF;
  --bg-soft: #ECF0EE;           /* 侧栏/浅块：冷浅灰，与主底有层次 */
  --bg-hover: #E7ECE9;
  /* 文本三级：更深更锐利 */
  --text: #1C2429;
  --text-secondary: #505A61;
  --text-muted: #8A969D;
  /* 边框：更冷更细腻 */
  --border: #E2E7E4;
  --border-light: #EDF0EE;
  /* tint 系列（chip / 标签底） */
  --tint-green: #E7F0EC;
  --tint-blue: #E7EFF5;
  --tint-orange: #F6EEDC;
  --tint-purple: #EFEAF6;
  --tint-red: #F9EAE8;
  --stage: #2C3033;
  --accent-on-dark: #8FC3B2;
  --logo-plate: #34403B;
  /* 文本三级（浅底组件语义色，与 text 体系一致） */
  --ink: #1C2429;
  --ink-2: #505A61;
  --ink-3: #8A969D;
  /* 阴影：更柔和、更有层次 */
  --shadow-sm: 0 1px 2px rgba(18,32,28,0.05);
  --shadow: 0 1px 3px rgba(18,32,28,0.07), 0 1px 2px rgba(18,32,28,0.04);
  --shadow-md: 0 6px 18px rgba(18,32,28,0.09);
  --shadow-lg: 0 12px 32px rgba(18,32,28,0.12);
  --radius: 14px;
  --radius-sm: 10px;
  --radius-xs: 7px;
  --sidebar-width: 236px;
  --header-height: 64px;
  --transition: 0.22s ease;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html { font-size: 16px; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  font-size: 16px;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
button { cursor: pointer; font-family: inherit; }

/* ===== Sidebar ===== */
.sidebar {
  width: var(--sidebar-width);
  min-height: 100vh;
  background: var(--bg-soft);
  border-right: 1px solid var(--border);
  color: var(--ink);
  padding: 0;
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
}

.sidebar-brand {
  padding: 20px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-brand .logo {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 4px 10px rgba(30,107,88,0.28);
}

.sidebar-brand h1 {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.5px;
}

.sidebar-brand span {
  font-size: 11px;
  color: var(--ink-3);
  display: block;
}

.sidebar-nav {
  flex: 1;
  padding: 16px 0;
  overflow-y: auto;
}

.sidebar-nav .nav-section {
  padding: 0 12px;
  margin-bottom: 8px;
}

.nav-section-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--ink-3);
  padding: 8px 12px;
  font-weight: 600;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--ink-2);
  cursor: pointer;
  transition: all var(--transition);
  margin: 2px 0;
  font-size: 14px;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}

.nav-ico {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 22px;
  line-height: 1;
  background: var(--bg-card);
  border-radius: 10px;
  padding: 4px;
  box-shadow: var(--shadow-sm);
}
.nav-ico img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.nav-item:hover {
  background: #FFFFFF;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.nav-item.active {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(30,107,88,0.28);
  position: relative;
}
.nav-item.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 58%;
  background: #fff;
  border-radius: 0 3px 3px 0;
}
.nav-item.active .nav-ico { background: rgba(255,255,255,0.20); box-shadow: none; }

.nav-item .badge {
  display: none;
  margin-left: auto;
  font-size: 12px;
  background: rgba(47,107,90,0.10);
  color: var(--primary);
  padding: 2px 8px;
  border-radius: 10px;
}

.nav-item.active .badge {
  display: none;
  background: rgba(255,255,255,0.25);
  color: #fff;
}

/* 2026-10-18 导航层级重构：缩进 + 可展开子集 */
.nav-group { position: relative; }
.nav-group:not(.nav-group--top) { padding-left: 8px; }            /* 功能块整体右缩进，体现从属层级 */
.nav-group:not(.nav-group--top) .nav-item { padding-left: 30px; }  /* 给前置「+」让位 */
.nav-caret {
  position: absolute; left: 8px; top: 11px;
  width: 16px; height: 16px; display: flex; align-items: center; justify-content: center;
  font-size: 12px; line-height: 1; color: var(--ink-3);
  cursor: pointer; user-select: none; z-index: 2;
}
.nav-caret:hover { color: var(--primary); }
.nav-sub { display: none; }
.nav-group.open .nav-sub { display: block; }
.nav-sub-item {
  display: flex; align-items: center; gap: 8px;
  margin: 1px 0 1px 16px;
  padding: 7px 14px 7px 10px; font-size: 13px; color: var(--ink-2);
  cursor: pointer; border-radius: var(--radius-sm); transition: all var(--transition);
}
.nav-sub-item:hover { background: #FFFFFF; color: var(--primary); box-shadow: var(--shadow-sm); }
.nav-sub-ico {
  width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  background: var(--bg-card);
  border-radius: 6px;
  padding: 2px;
  box-shadow: var(--shadow-sm);
}
.nav-sub-ico img {
  width: 100%; height: 100%;
  display: block;
  object-fit: contain;
}
.nav-sub-item:hover .nav-sub-ico { background: #FFFFFF; }

/* 2026-10-18 #75 禁止打印 / 导出 PDF：打印时隐藏全部内容并提示 */
@media print {
  body { display: none !important; }
  html::after {
    content: "本平台内容禁止打印或导出为 PDF";
    display: block;
    padding: 40px;
    font-size: 18px;
    color: #333;
  }
}

/* ===== 业务对接 UGC 模块样式（2026-10-18） ===== */
.ugc-loading, .ugc-empty { padding: 40px; text-align: center; color: var(--text-muted); }
.ugc-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 20px; gap: 12px; flex-wrap: wrap; }
.ugc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.ugc-card { border: 1px solid var(--border-light); border-radius: 12px; overflow: hidden; background: #fff; cursor: pointer; transition: box-shadow .15s, transform .15s; }
.ugc-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.ugc-card-img { height: 150px; background: #f4f6f8; display: flex; align-items: center; justify-content: center; }
.ugc-cover { width: 100%; height: 100%; }
.ugc-placeholder { font-size: 40px; opacity: .3; }
.ugc-card-body { padding: 12px 14px 14px; }
.ugc-meta { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--text-muted); margin-top: 8px; }
.ugc-thumb { width: 64px; height: 64px; border-radius: 8px; border: 1px solid var(--border-light); }
.ugc-detail { max-width: 760px; }
.ugc-detail-imgs { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.ugc-detail-img { width: 140px; height: 140px; border-radius: 8px; border: 1px solid var(--border-light); }
.ugc-kv { display: flex; gap: 20px; flex-wrap: wrap; margin: 12px 0; font-size: 14px; }
.ugc-kv b { color: var(--text-secondary); margin-right: 6px; }
.ugc-desc { font-size: 14px; line-height: 1.7; color: var(--text); background: #f8fafc; padding: 14px; border-radius: 8px; }
.ugc-reply { border: 1px solid var(--border-light); border-radius: 8px; padding: 10px 12px; margin: 8px 0; background: #fff; }
.ugc-reply-form { margin-top: 12px; display: flex; flex-direction: column; }
.ugc-reply-form input, .ugc-reply-form textarea { margin-bottom: 8px; }
.ugc-stat-row { display: flex; gap: 16px; margin: 16px 0 4px; }
.ugc-stat { flex: 1; background: #fff; border: 1px solid var(--border-light); border-radius: 12px; padding: 16px; text-align: center; }
.ugc-stat-num { font-size: 28px; font-weight: 700; color: var(--primary); }
.ugc-match { border: 1px solid var(--border-light); border-radius: 10px; padding: 14px; margin: 10px 0; background: #fff; }
.ugc-match-row { font-size: 14px; margin: 4px 0; }
.ugc-case-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.ugc-case { border: 1px solid #d6efe0; border-radius: 12px; padding: 16px; background: #f3fbf7; }
.ugc-case-badge { display: inline-block; background: #27ae60; color: #fff; font-size: 12px; padding: 2px 10px; border-radius: 20px; margin-bottom: 8px; }
.ugc-card-sub { font-size: 13px; color: var(--text-secondary); line-height: 1.5; max-height: 44px; overflow: hidden; margin-top: 6px; }
.ugc-docs { display: flex; flex-wrap: wrap; gap: 8px; }
.ugc-doc { display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--border-light); border-radius: 8px; padding: 6px 12px; font-size: 13px; color: var(--text-secondary); text-decoration: none; transition: all .15s; }
.ugc-doc:hover { border-color: var(--primary); color: var(--primary); }
.ugc-match-list { display: flex; flex-direction: column; gap: 10px; }
.ugc-match-mini { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--border-light); border-radius: 10px; padding: 12px 14px; }

.sidebar-footer {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--ink-3);
}

/* ===== Main Content ===== */
.main-content {
  margin-left: var(--sidebar-width);
  flex: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  /* 2026-10-11 阶段 4 修复：body 是 flex 容器，本元素是 flex item，
     其 automatic minimum size = content-based min size（不是 0）。
     阶段 4 新增的 .cat-chips（16 个 nowrap 品类 chip，min-content ≈1700px）
     会沿 .content → .main-content 一路把本元素撑到 1739px，
     导致 1440 视口下 scrollWidth=1959（手机端同样被撑到 1747，仅被
     body{overflow-x:hidden} 掩盖）。显式 min-width:0 覆盖 auto，
     让内部 .cat-chips 的 overflow-x:auto 真正接管横向滚动。 */
  min-width: 0;
}

/* ===== Header ===== */
.header {
  height: var(--header-height);
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 50;
}

.page-title {
  font-size: 18px;
  font-weight: 600;
  flex: 1;
}

/* ===== 页面级吸顶标题区（2026-10-18）===== */
.page-sticky-header {
  display: none;
  position: sticky;
  top: var(--header-height);
  z-index: 40;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
}
.page-sticky-header.is-visible {
  display: block;
}
.page-sticky-header .board-intro {
  margin: 0;
  border: none;
  border-radius: 0;
  background: transparent;
}

.header-search {
  position: relative;
  width: 380px;
  display: flex;
  align-items: center;
}

.header-search input {
  width: 100%;
  padding: 8px 80px 8px 36px;
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 13px;
  background: var(--bg-soft);
  outline: none;
  transition: all var(--transition);
}

.header-search input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(47,107,90,0.12);
}

.header-search .search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 14px;
  z-index: 1;
  pointer-events: none;
}

.header-search .search-btn {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 16px;
  padding: 4px 14px;
  font-size: 12px;
}

.header-actions {
  display: flex;
  gap: 8px;
}

/* ===== 语言切换（2026-10-13 建立）=====
   三语：简体中文 / 繁體中文 / English。控件常驻 header，与 user-area 并列。
   与小程序「我的 → 语言」同源（i18n 语言标识一致：zh-Hans / zh-Hant / en）。 */
.lang-switch {
  display: inline-flex;
  align-items: center;
  align-self: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-card);
  flex: 0 0 auto;
}
.lang-btn {
  border: 0;
  background: transparent;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1;
  padding: 7px 9px;
  cursor: pointer;
  font-family: inherit;
  transition: background .15s, color .15s;
}
.lang-btn + .lang-btn { border-left: 1px solid var(--border); }
.lang-btn:hover { background: var(--bg-hover); color: var(--primary); }
.lang-btn.active { background: var(--primary); color: #fff; font-weight: 600; }
@media (max-width: 767px) {
  .lang-btn { padding: 6px 7px; font-size: 11px; }
}

/* ===== Content Area ===== */
.content {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
}

/* ===== Simulator native integration ===== */
.content.simulator-active {
  padding: 0;
  overflow: hidden;
}
.content.shimano-doc-active,
.content.sram-doc-active,
.content.board-active {
  padding: 0;
  overflow: hidden;
}
.simulator-container {
  width: 100%;
  height: calc(100vh - 60px);
  overflow: hidden;
}

/* ===== SHIMANO Doc Viewer ===== */
.shimano-doc-tabs {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 6px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
  max-height: 200px;
  overflow-y: auto;
}
.shimano-doc-tab {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid transparent;
}
.shimano-doc-tab:hover {
  background: #FFFFFF;
}
.shimano-doc-tab.active {
  background: linear-gradient(135deg, #2F6B5A, #3D8570);
  border-color: #3D8570;
}
.shimano-doc-tab-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
}
.shimano-doc-tab.active .shimano-doc-tab-name {
  color: #fff;
}
.shimano-doc-tab-meta {
  font-size: 10px;
  color: var(--ink-3);
  white-space: nowrap;
}
.shimano-doc-tab.active .shimano-doc-tab-meta {
  color: rgba(255,255,255,0.8);
}
.shimano-doc-container {
  display: flex;
  height: calc(100vh - 60px);
  overflow: hidden;
}
.shimano-doc-sidebar {
  width: 300px;
  flex-shrink: 0;
  background: var(--bg-soft);
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--border);
}
.shimano-doc-sidebar-header {
  padding: 14px 16px;
  background: rgba(47,107,90,0.10);
  border-bottom: 1px solid var(--border);
}
.shimano-doc-sidebar-header h3 {
  font-size: 14px;
  color: var(--ink);
  font-weight: 600;
}
.shimano-doc-sidebar-header .sub {
  font-size: 11px;
  color: var(--primary);
  margin-top: 3px;
}
/* TOC 搜索框 */
.shimano-toc-search-wrap {
  padding: 6px 10px;
  border-bottom: 1px solid var(--border);
}
.shimano-toc-search {
  width: 100%;
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: #FFFFFF;
  color: var(--ink);
  font-size: 12px;
  outline: none;
  transition: border-color 0.2s;
}
.shimano-toc-search:focus {
  border-color: var(--primary);
}
.shimano-toc-search::placeholder {
  color: var(--ink-3);
}
/* TOC 搜索高亮 */
.shimano-chapter.toc-highlight > .shimano-chapter-title {
  background: rgba(165,130,42,0.12);
}
.shimano-chapter.toc-highlight > .shimano-chapter-title .shimano-chapter-name {
  color: var(--accent);
}
.shimano-toc-item.toc-highlight {
  background: rgba(165,130,42,0.12);
  border-left: 2px solid var(--accent);
}
.shimano-toc-item.toc-highlight .shimano-toc-title {
  color: var(--accent);
}
.shimano-toc-container {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
}
.shimano-toc-container::-webkit-scrollbar { width: 5px; }
.shimano-toc-container::-webkit-scrollbar-track { background: transparent; }
.shimano-toc-container::-webkit-scrollbar-thumb { background: #C9C1B2; border-radius: 3px; }
.shimano-toc-container::-webkit-scrollbar-thumb:hover { background: var(--primary); }
.shimano-chapter { margin-bottom: 4px; }
.shimano-chapter-title {
  display: flex;
  align-items: center;
  padding: 9px 10px;
  background: #FFFFFF;
  cursor: pointer;
  border-radius: 6px;
  user-select: none;
  transition: background 0.15s;
}
.shimano-chapter-title:hover { background: #F0EBE1; }
.shimano-chapter-icon {
  font-size: 9px;
  margin-right: 8px;
  transition: transform 0.2s;
  color: var(--primary);
}
.shimano-chapter.open .shimano-chapter-icon { transform: rotate(90deg); }
.shimano-chapter-name {
  flex: 1;
  font-size: 13px;
  color: var(--ink);
  font-weight: 600;
}
.shimano-chapter-page {
  font-size: 11px;
  color: var(--primary);
  margin-left: 8px;
}
.shimano-chapter-items {
  display: none;
  padding: 3px 0 3px 12px;
}
.shimano-chapter.open .shimano-chapter-items { display: block; }
.shimano-toc-item {
  display: flex;
  align-items: center;
  padding: 6px 8px;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.12s;
  margin: 1px 0;
}
.shimano-toc-item:hover { background: rgba(47,107,90,0.10); }
.shimano-toc-item.active { background: rgba(47,107,90,0.16); }
.shimano-toc-item-left {
  flex: 1;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  overflow: hidden;
}
.shimano-toc-code {
  font-size: 11px;
  color: var(--primary);
  font-family: 'Courier New', monospace;
  white-space: nowrap;
  min-width: 55px;
}
.shimano-toc-title {
  font-size: 12px;
  color: var(--ink-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.shimano-toc-page {
  font-size: 10px;
  color: var(--ink-3);
  margin-left: 8px;
  white-space: nowrap;
}
.shimano-doc-viewer {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--stage);
  overflow: hidden;
}
.shimano-doc-toolbar {
  background: #2E2B27;
  color: #fff;
  padding: 6px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  border-bottom: 1px solid #443F39;
}
.shimano-doc-toolbar .title {
  flex: 1;
  font-size: 13px;
  color: #EFEAE0;
}
.shimano-doc-toolbar button {
  background: #443F39;
  border: 1px solid #57514A;
  color: #fff;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  transition: background 0.15s;
}
.shimano-doc-toolbar button:hover { background: #57514A; }
.shimano-doc-toolbar button:active { background: #3D8570; }
.shimano-doc-toolbar .page-input {
  width: 50px;
  padding: 3px 6px;
  background: #443F39;
  border: 1px solid #57514A;
  color: #fff;
  border-radius: 4px;
  text-align: center;
  font-size: 12px;
}
.shimano-doc-toolbar .zoom-display {
  min-width: 45px;
  text-align: center;
  color: var(--accent-on-dark);
  font-weight: 600;
}
.shimano-doc-canvas-wrap {
  flex: 1;
  overflow: auto;
  background: #35322E;
  padding: 16px 0;
  text-align: center;
}
.shimano-doc-canvas-wrap canvas {
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  background: white;
  display: inline-block !important;
  max-width: none !important;
  min-width: 0 !important;
}
/* PDF 链接注释层 */
.shimano-pdf-link {
  border-radius: 2px;
  transition: background 0.15s, outline 0.15s;
}
.shimano-pdf-link:hover {
  background: rgba(47,107,90,0.15) !important;
  outline: 1.5px solid rgba(47,107,90,0.4);
}
.shimano-pdf-link:active {
  background: rgba(47,107,90,0.3) !important;
}
.shimano-doc-loading {
  text-align: center;
  padding: 60px 20px;
  color: #B8B0A0;
}
.shimano-doc-loading .spinner {
  width: 36px;
  height: 36px;
  border: 3px solid #443F39;
  border-top-color: var(--accent-on-dark);
  border-radius: 50%;
  animation: shimano-spin 1s linear infinite;
  margin: 0 auto 12px;
}
@keyframes shimano-spin { to { transform: rotate(360deg); } }
.shimano-page-hint {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: rgba(0,0,0,0.8);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 12px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 9999;
}
.shimano-page-hint.show { opacity: 1; }

/* ===== Dashboard ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.stat-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.stat-card .stat-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
}

.stat-card .stat-icon.green { background: var(--tint-green); }
.stat-card .stat-icon.blue { background: var(--tint-blue); }
.stat-card .stat-icon.amber { background: var(--tint-orange); }
.stat-card .stat-icon.purple { background: var(--tint-purple); }

.stat-card .stat-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
}

.stat-card .stat-label {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* ===== Filters Bar ===== */
.filters-bar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  box-shadow: var(--shadow-sm);
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-group label {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
  white-space: nowrap;
}

.filter-group select {
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  font-size: 13px;
  background: var(--bg-soft);
  color: var(--text);
  outline: none;
  cursor: pointer;
}

.filter-group select:focus {
  border-color: var(--primary);
}

.filters-bar .btn-refresh {
  margin-left: auto;
  padding: 6px 14px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  font-size: 13px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.filters-bar .btn-refresh:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* ===== Company Cards ===== */
.company-grid {
  display: grid;
  /* 2026-10-11 阶段 4：minmax(360px,1fr) → minmax(min(360px,100%),1fr)，
     容器窄于 360px 时自动收缩为单列，根治小屏横向溢出（无需媒体查询）。 */
  grid-template-columns: repeat(auto-fill, minmax(min(360px, 100%), 1fr));
  gap: 16px;
  align-items: stretch;
}

.company-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* 上市公司印戳 */
.listed-stamp {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 46px;
  height: 46px;
  border: 2px solid #dc2626;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: rotate(-12deg);
  opacity: 0.65;
  pointer-events: none;
  z-index: 1;
}

.listed-stamp span {
  display: block;
  font-size: 11px;
  font-weight: 900;
  color: #dc2626;
  line-height: 1.1;
  letter-spacing: 1px;
  font-family: "SimHei", "Microsoft YaHei", "PingFang SC", sans-serif;
}

.listed-stamp::after {
  content: '';
  position: absolute;
  inset: 3px;
  border: 1px solid #dc2626;
  border-radius: 50%;
  opacity: 0.5;
}

.company-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.card-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.card-avatar {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.card-avatar.cn { background: linear-gradient(135deg, #e74c3c, #c0392b); }
.card-avatar.de { background: linear-gradient(135deg, #2c3e50, #34495e); }
.card-avatar.jp { background: linear-gradient(135deg, #e74c8b, #c0397b); }
.card-avatar.tw { background: linear-gradient(135deg, #e67e22, #d35400); }
.card-avatar.us { background: linear-gradient(135deg, #3498db, #2980b9); }
.card-avatar.nl { background: linear-gradient(135deg, #ff6b00, #e65100); }
.card-avatar.fr { background: linear-gradient(135deg, #0055a4, #003d7a); }
.card-avatar.ch { background: linear-gradient(135deg, #d32f2f, #b71c1c); }
.card-avatar.kr { background: linear-gradient(135deg, #1a237e, #0d1642); }
.card-avatar.ca { background: linear-gradient(135deg, #c62828, #8e0000); }
.card-avatar.it { background: linear-gradient(135deg, #009246, #006637); }
.card-avatar.no { background: linear-gradient(135deg, #00205b, #001540); }
.card-avatar.default { background: linear-gradient(135deg, #636e72, #4a5568); }

/* ==================== 企业 Logo（V0.02：完整显示优先 / 自适应空间）====================
   容器只给空间：高度固定锁定视觉基线，宽度自适应（只设上限）；
   图片 width/height 双 auto + 双 max → 浏览器按等比约束自动取最大可用尺寸，绝不裁切变形。 */
.lg {
  --lg-h: 48px;
  --lg-wmax: 132px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: var(--lg-h);
  max-width: var(--lg-wmax);
  flex-shrink: 0;
  line-height: 0;
  vertical-align: middle;
}
.lg > img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 6px;
}
/* 窄横标（ar>6，横幅式 Logo）：放宽宽度上限，避免被压成一条细线（2026-10-06 D6） */
.lg.lg-wide {
  max-width: min(220px, 46vw);
}
/* 极浅色 Logo：白底上看不见，加浅灰底衬 */
.lg.need-contrast {
  background: #f2f0ec;
  border-radius: 8px;
  padding: 4px;
}

.card-info { flex: 1; min-width: 0; }

.card-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* 2026-10-18：列表卡统一只展示 logo + 简称公司名，名称最多两行省略 */
.company-card-compact {
  padding: 16px;
  min-height: 0;
  height: auto;
  justify-content: center;
}
.company-card-compact .card-header {
  margin-bottom: 0;
  align-items: center;
}
.card-name-compact {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.35;
  max-height: 2.7em;
  white-space: normal;
  word-break: break-word;
}

.card-name .verified-badge {
  display: inline-block;
  width: 16px;
  height: 16px;
  background: var(--primary);
  border-radius: 50%;
  font-size: 10px;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 6px;
  flex-shrink: 0;
}
.card-name .listed-badge {
  display: inline-block;
  background: linear-gradient(135deg, #B08A2E, #8C6C20);
  border-radius: 4px;
  font-size: 10px;
  color: #fff;
  padding: 1px 6px;
  margin-left: 4px;
  font-weight: 600;
  flex-shrink: 0;
  white-space: nowrap;
  position: relative;
  z-index: 2;
}

.card-meta {
  font-size: 12px;
  color: var(--text-secondary);
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.tag {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 12px;
  font-weight: 500;
  background: #EEF1EF;
  color: #5B6770;
}

.tag-green { background: var(--tint-green); color: var(--primary); }
.tag-category { background: var(--tint-green); color: var(--primary); }
.tag-region { background: var(--tint-blue); color: var(--secondary); }
.tag-type { background: var(--tint-orange); color: var(--accent); }
.tag-tech { background: var(--tint-purple); color: #6B5A8E; }
/* 海外仓（2026-10-05）：仅「有」的公司挂标签 */
.tag-ow { background: #E6F4EA; color: #1E7A3C; }

.card-stats {
  display: flex;
  gap: 16px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
  font-size: 12px;
  color: var(--text-secondary);
}

.card-stats span { display: flex; align-items: center; gap: 4px; }

/* ===== Requirements Board ===== */
.req-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.req-table {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.req-table table {
  width: 100%;
  border-collapse: collapse;
}

.req-table th {
  background: var(--bg-soft);
  padding: 12px 16px;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border);
}

.req-table td {
  padding: 14px 16px;
  font-size: 13px;
  border-bottom: 1px solid var(--border-light);
}

.req-table tr:hover td {
  background: var(--primary-light);
}

.status-badge {
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 500;
}

.status-open { background: var(--tint-orange); color: var(--accent); }
.status-matched { background: var(--tint-blue); color: var(--secondary); }
.status-closed { background: #EFEAE0; color: var(--ink-3); }
.status-progress { background: var(--tint-green); color: var(--primary); }

/* ===== Modal ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease;
  padding: 24px;
}

.modal {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  width: 760px;
  max-width: 90%;
  min-width: 600px;
  max-height: 85vh;
  overflow-y: auto;
  flex-shrink: 0;
  animation: slideUp 0.25s ease;
}

@media (max-width: 720px) {
  .modal { min-width: 0; width: 100%; }
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
  position: sticky;
  top: 0;
  background: var(--bg-card);
  z-index: 1;
}

.modal-header .company-avatar {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  font-size: 22px;
}

.modal-header h2 { font-size: 18px; flex: 1; }
.modal-header .modal-close {
  background: none;
  border: none;
  font-size: 20px;
  color: var(--text-muted);
  padding: 4px;
  cursor: pointer;
}

.modal-body { padding: 24px; }
.modal-section { margin-bottom: 24px; }
.modal-section:last-child { margin-bottom: 0; }
.modal-section h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-light);
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.detail-item label {
  font-size: 12px;
  color: var(--text-muted);
  display: block;
  margin-bottom: 2px;
}
.detail-item span { font-size: 14px; font-weight: 500; }

/* ===== 官网外链样式（2026-09-29） ===== */
.site-link {
  color: var(--primary);
  text-decoration: none;
  border-bottom: 1px dashed rgba(0, 0, 0, .18);
  word-break: break-all;
  transition: color .15s ease, border-color .15s ease;
}
.site-link:hover {
  color: var(--secondary);
  text-decoration: underline;
  border-bottom-color: currentColor;
}
.site-link:visited { color: #6B5A8E; }
.site-link:active { opacity: .72; }
.site-link-icon { font-size: 11px; }
.site-link-disabled { color: var(--text-secondary); font-weight: 400; }

.product-list, .oem-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.product-chip {
  font-size: 12px;
  padding: 4px 10px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: inline-block;
  max-width: 100%;
  line-height: 1.5;
  overflow-wrap: anywhere; /* 长产品名换行保护 */
}

/* ===== Forms ===== */
.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  max-width: 680px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--text);
}

.form-group label .required {
  color: var(--danger);
  margin-left: 2px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(47,107,90,0.12);
}

.form-group textarea { resize: vertical; min-height: 80px; }

.btn {
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}

.btn-primary { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); color: #fff; }
.btn-primary:hover { background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary) 100%); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(30,107,88,0.30); }
.btn-primary:active { transform: translateY(0); box-shadow: var(--shadow-sm); }

.btn-accent { background: linear-gradient(135deg, var(--accent) 0%, #A8761F 100%); color: #fff; }
.btn-accent:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(192,137,42,0.32); }
.btn-accent:active { transform: translateY(0); box-shadow: var(--shadow-sm); }

.btn-outline {
  background: var(--bg-card);
  color: var(--primary);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.btn-outline:hover { background: var(--primary-light); border-color: var(--primary); }

.btn-secondary { background: var(--bg-card); color: var(--text); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.btn-secondary:hover { background: var(--bg-soft); }

.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { opacity: 0.9; }

.btn-sm { padding: 6px 14px; font-size: 12px; }

/* ===== Matching Panel ===== */
.match-card {
  background: var(--bg-card);
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
}

.match-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.match-score {
  background: var(--primary);
  color: #fff;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
}

.match-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* ===== Tool Placeholder ===== */
.tool-card {
  background: var(--bg-card);
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
  color: var(--text-muted);
}

.tool-card .tool-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

/* ===== Empty State ===== */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.empty-state .empty-icon { font-size: 48px; margin-bottom: 12px; }
.empty-state h3 { font-size: 16px; color: var(--text-secondary); margin-bottom: 8px; }
.empty-state p { font-size: 13px; }

/* ===== Animations ===== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ===== Notification ===== */
.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  background: var(--primary);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  z-index: 300;
  font-size: 14px;
  animation: slideUp 0.3s ease;
}

/* ===== Calculator Tools ===== */
.calc-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
  padding: 4px;
  border: 1px solid var(--border);
}

.calc-tab {
  flex: 1;
  padding: 10px 12px;
  border: none;
  background: transparent;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.calc-tab:hover {
  color: var(--text);
  background: var(--bg-card);
}

.calc-tab.active {
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.calc-panel {
  display: none;
}

.calc-panel.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

.calc-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 24px;
  align-items: start;
}

.calc-inputs {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.calc-inputs h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary);
}

.calc-inputs .form-group {
  margin-bottom: 12px;
}

.calc-inputs .form-group label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.calc-inputs input[type="number"],
.calc-inputs select {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border var(--transition);
}

.calc-inputs input[type="number"]:focus,
.calc-inputs select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(47,107,90,0.12);
}

.calc-results {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  min-height: 300px;
}

.calc-results h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--secondary);
}

.calc-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  color: var(--text-muted);
  text-align: center;
}

.calc-placeholder p {
  font-size: 13px;
  max-width: 300px;
}

.result-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
  padding: 16px;
}

.result-item {
  text-align: center;
}

.result-item .rlabel {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.result-item .rvalue {
  display: block;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
}

.result-item .rvalue.highlight {
  color: var(--primary);
  font-size: 26px;
}

.calc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.calc-table th {
  background: var(--bg-soft);
  padding: 10px 12px;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid var(--border);
}

.calc-table td {
  padding: 8px 12px;
  text-align: center;
  border-bottom: 1px solid var(--border-light);
}

.calc-table tr:hover td {
  background: var(--primary-light);
}

.calc-table .cadence-col {
  font-weight: 600;
  color: var(--text);
  background: var(--bg-soft);
}

.calc-table .speed-col {
  font-weight: 600;
  color: var(--secondary);
}

.calc-table .status-col {
  font-size: 12px;
}

.status-tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 500;
}

.status-tag.assist {
  background: var(--primary-light);
  color: var(--primary);
}

.status-tag.over {
  background: var(--tint-red);
  color: var(--danger);
}

.status-tag.free {
  background: var(--bg-soft);
  color: var(--text-secondary);
}

.speed-ok {
  color: var(--primary);
  font-weight: 500;
  background: rgba(47,107,90,0.06);
}

.speed-over {
  color: var(--danger);
  font-weight: 500;
  background: rgba(194,84,80,0.06);
}

.cadence-full-table {
  font-size: 12px;
}

.cadence-full-table th {
  min-width: 60px;
  padding: 8px 6px;
}

.dot-ok, .dot-over {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 4px;
  vertical-align: middle;
}

.dot-ok { background: var(--primary); }
.dot-over { background: var(--danger); }

.calc-info-box {
  background: #F8F6F1;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-top: 16px;
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.8;
}

.calc-info-box strong {
  color: var(--text);
}

.combo-table td:first-child,
.combo-table td:nth-child(2) {
  font-weight: 600;
  color: var(--text);
}
/* ⚠️ 原 (max-width:768px) 断点（侧栏 60px 图标栏）已作废并移除（2026-10-11 阶段 3）。
   原因：它与新的手机档位正面冲突（同宽度下既要 60px 图标栏、又要抽屉化），且会
   把手机端头部撑爆（180px 搜索框 + 两个按钮 → 横向溢出）。
   新的三档规则统一写在文件末尾「阶段 3：响应式三档」区块（后置 → 级联优先）。 */

/* ===== 悬赏解答 ===== */
.bounty-card:hover {
  transform: translateY(-1px);
}

.bounty-list .bounty-card {
  position: relative;
  overflow: hidden;
}

.bounty-list .bounty-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #A5822A 0%, #C25450 100%);
  border-radius: 3px 0 0 3px;
}

.bounty-card.closed::before {
  background: var(--text-muted);
  opacity: 0.4;
}

.bounty-card.awarded::before {
  background: linear-gradient(180deg, #2F6B5A 0%, #3D8570 100%);
}

.status-open.bounty { background: var(--tint-orange); color: var(--accent); }
.status-answered.bounty { background: var(--tint-blue); color: var(--secondary); }
.status-awarded.bounty { background: var(--tint-green); color: var(--primary); }
.status-closed.bounty { background: #EFEAE0; color: var(--ink-3); }

/* ===== V1.0: User Authentication UI ===== */

/* Header user area */
.user-area {
  display: flex;
  align-items: center;
  gap: 8px;
}
.user-info {
  display: flex;
  align-items: center;
  gap: 8px;
}
.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
}
.user-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.btn-outline {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 6px 16px;
  font-size: 13px;
  cursor: pointer;
  transition: var(--transition);
}
.btn-outline:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
}
.btn-ghost {
  border: none;
  background: transparent;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  padding: 4px 10px;
  font-size: 12px;
  cursor: pointer;
  transition: var(--transition);
}
.btn-ghost:hover {
  background: var(--danger);
  color: #fff;
}
.btn-block {
  display: block;
  width: 100%;
  padding: 12px;
  font-size: 15px;
}

/* Login modal */
.login-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.login-modal {
  background: var(--bg-card);
  border-radius: var(--radius);
  width: 420px;
  max-width: 90vw;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-md);
  animation: slideUp 0.3s ease;
}
@keyframes slideUp {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.login-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}
.login-modal-header h2 {
  margin: 0;
  font-size: 20px;
  color: var(--text);
}
.login-close {
  border: none;
  background: transparent;
  font-size: 20px;
  cursor: pointer;
  color: var(--text-muted);
  padding: 4px 8px;
  border-radius: var(--radius-xs);
  transition: var(--transition);
}
.login-close:hover {
  background: var(--border-light);
  color: var(--text);
}
.login-modal-body {
  padding: 24px;
}
.login-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
  padding: 4px;
}
.login-tab {
  flex: 1;
  border: none;
  background: transparent;
  padding: 10px;
  font-size: 14px;
  color: var(--text-secondary);
  cursor: pointer;
  border-radius: var(--radius-xs);
  transition: var(--transition);
}
.login-tab.active {
  background: var(--bg-card);
  color: var(--primary);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}
.login-form .form-group {
  margin-bottom: 16px;
}
.login-form .form-group label {
  display: block;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 6px;
  font-weight: 500;
}
.login-form .form-group .required {
  color: var(--danger);
}
.login-form .form-group input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text);
  background: var(--bg-card);
  transition: var(--transition);
  box-sizing: border-box;
}
.login-form .form-group input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}
.login-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 12px;
  text-align: center;
}
.wechat-login-area {
  text-align: center;
  padding: 20px 0;
}
.wechat-tip {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}
.wechat-loading {
  text-align: center;
  padding: 20px;
}
.wechat-loading p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 12px;
}
.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Login required banner */
.login-required-banner {
  background: linear-gradient(135deg, var(--primary-light) 0%, #fff 100%);
  border: 1px dashed var(--primary);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  margin: 24px 0;
}
.login-required-banner h3 {
  font-size: 18px;
  color: var(--text);
  margin-bottom: 8px;
}
.login-required-banner p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

/* ===== Admin Panel ===== */
.admin-panel {
  max-width: 1400px;
  margin: 0 auto;
}
.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 8px;
}
.admin-header h2 {
  font-size: 22px;
  margin: 0;
}
.admin-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.admin-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
  border-bottom: 2px solid var(--border);
  padding-bottom: 0;
}
.admin-tab {
  padding: 8px 20px;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-secondary);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s;
}
.admin-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  font-weight: 600;
}
.admin-tab:hover {
  color: var(--primary);
}
.admin-search-bar {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.admin-search-bar input,
.admin-search-bar select {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 13px;
  background: var(--bg-card);
  color: var(--text);
}
.admin-search-bar input {
  flex: 1;
  min-width: 200px;
}
.admin-count {
  font-size: 13px;
  color: var(--text-secondary);
  white-space: nowrap;
}
.admin-table-wrap {
  overflow-x: auto;
  border-radius: 8px;
  border: 1px solid var(--border);
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.admin-table thead {
  background: var(--bg-hover);
}
.admin-table th {
  padding: 10px 12px;
  text-align: left;
  font-weight: 600;
  color: var(--text);
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
  position: sticky;
  top: 0;
}
.admin-table td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  vertical-align: top;
}
.admin-table tbody tr:hover {
  background: var(--bg-hover);
}
.admin-table .admin-user-name {
  font-weight: 600;
  color: var(--primary);
}
.admin-table .admin-time {
  white-space: nowrap;
  font-size: 12px;
  color: var(--text-secondary);
}
.admin-table .admin-pages {
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  color: var(--text-secondary);
}
.admin-table .admin-detail {
  max-width: 250px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-empty {
  text-align: center;
  padding: 40px;
  color: var(--text-secondary);
  font-size: 14px;
}
.admin-action-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
.admin-action-page_view { background: #e0e7ff; color: #4338ca; }
.admin-action-register { background: #d1fae5; color: #065f46; }
.admin-action-login { background: #dbeafe; color: #1e40af; }
.admin-action-logout { background: #f3f4f6; color: #6b7280; }
.admin-action-feedback_submit { background: #fef3c7; color: #92400e; }
.admin-action-feedback_like { background: #fce7f3; color: #9d174d; }
.admin-action-export_pdf { background: #ddd6fe; color: #5b21b6; }
.admin-action-export_png { background: #ddd6fe; color: #5b21b6; }
.admin-action-post_requirement { background: #ffedd5; color: #9a3412; }
.admin-action-post_bounty { background: #ffedd5; color: #9a3412; }
.admin-action-search { background: #e0f2fe; color: #075985; }
.admin-action-profile_update { background: #f0fdf4; color: #166534; }

/* ===== 推送资讯面板 ===== */
.push-compose-card, .push-history-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
}
.push-compose-card h3, .push-history-card h3 {
  margin: 0 0 12px;
  font-size: 16px;
}
.push-tip {
  font-size: 12px;
  color: var(--text-secondary);
  background: rgba(74,107,132,0.10);
  border-left: 3px solid var(--secondary);
  padding: 8px 12px;
  border-radius: 4px;
  margin-bottom: 16px;
  line-height: 1.5;
}
.push-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.push-field { display: flex; flex-direction: column; gap: 6px; }
.push-field label { font-size: 13px; font-weight: 600; color: var(--text); }
.push-field input, .push-field textarea, .push-field select {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 12px;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
}
.push-field input:focus, .push-field textarea:focus, .push-field select:focus {
  outline: none;
  border-color: var(--primary);
}
.push-field textarea { resize: vertical; }
.push-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.push-mode-info { font-size: 12px; color: var(--text-secondary); }
.push-result { font-size: 13px; min-height: 18px; margin-top: 8px; }
.push-history-card table { margin-top: 10px; }
.badge-success { display: inline-block; padding: 2px 8px; border-radius: 4px; background: #d1fae5; color: #065f46; font-size: 12px; }
.badge-warn { display: inline-block; padding: 2px 8px; border-radius: 4px; background: #fef3c7; color: #92400e; font-size: 12px; }

/* ===== 全平台提示语（20261002-V1.00）=====
 * 所有给出建议/推荐/结论的窗口统一在末尾加一句「以上信息仅供参考」。
 * 文案权威源 = js/disclaimer.js（window.wbDisc(kind) 生成；改文案改那里）。
 * 与小程序端 app.wxss 的 .disc 视觉口径一致（弱灰 + 点状分隔线，不抢结果）。 */
.wb-disc {
  margin: 16px 0 0;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-muted);
}
.wb-disc-plain { margin-top: 12px; padding-top: 0; border-top: none; }
/* 深色底（模拟器/看图器等）上的变体 */
.wb-disc.on-dark { color: #B8B0A0; border-top-color: #443F39; }

/* ===== 计算类 / 文档类内容：保持不可复制（2026-10-08 拍板）=====
 * 需求：平台信息内容（文本、表格、图表说明、图片说明）默认可选中复制，用户无需额外权限；
 *       两类除外 —— ① 计算类内容（公式计算结果、动态数值）② PDF 文档内容。
 * 说明：Web 端浏览器默认文本即可选中，信息类页面无需额外声明；本组规则仅对
 *       「工程计算工具 / 传动搭配模拟器」与「SHIMANO / SRAM 文档阅读器」保持受保护状态。
 * 小程序侧对应：app.wxss 全局 user-select:text + 五个计算页 wxss !important 回关。 */
.calc-tabs, .calc-tabs *,
.calc-panel, .calc-panel *,
.simulator-container, .simulator-container *,
.shimano-doc-container, .shimano-doc-container *,
.sram-doc-container, .sram-doc-container *,
.shimano-doc-tabs, .shimano-doc-tabs * {
  user-select: none;
  -webkit-user-select: none;
}

/* ================================================================
 * 阶段 2（2026-10-11）：首页十大板块宫格 + 板块二级面板
 * 权威口径 = 小程序 miniapp/pages/index/index.wxss（rpx ÷ 2 = px）
 * 类名统一 hm- / bd- 前缀，避免与侧栏 .nav-item / 通用 .card 冲突
 * ================================================================ */

/* ---------- 首页容器：PC 大屏占满，手机紧凑 ---------- */
.hm-page {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px 32px;
  box-sizing: border-box;
}
@media (max-width: 767px) {
  .hm-page { padding: 16px; }
}
@media (max-width: 480px) {
  .hm-page { padding: 12px; }
}

/* ---------- 顶部品牌区（Logo + 副标题 + AI 浮动钮） ---------- */
.hm-hero {
  position: relative;
  margin-bottom: 20px;
  padding: 30px 26px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 58%, #0E3A2E 100%);
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(30,107,88,0.30);
}
.hm-hero::before {
  content: "";
  position: absolute;
  right: -50px;
  top: -70px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.16) 0%, rgba(255,255,255,0) 70%);
  pointer-events: none;
}
.hm-hero::after {
  content: "";
  position: absolute;
  left: -30px;
  bottom: -60px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(143,195,178,0.20) 0%, rgba(143,195,178,0) 70%);
  pointer-events: none;
}
.hm-hero-title {
  position: relative;
  font-size: 32px;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: 0.5px;
  z-index: 1;
}
.hm-hero-sub {
  position: relative;
  font-size: 14px;
  color: rgba(255,255,255,0.85);
  margin-top: 6px;
  letter-spacing: 0.3px;
  z-index: 1;
}
/* AI 助手浮动图标：悬于右上，不占宫格（同小程序 .ai-float） */
.hm-ai-float {
  position: absolute;
  right: 0;
  top: 0;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
  animation: aiPulse 2.4s ease-in-out infinite;
}
.hm-ai-float:hover { transform: translateY(-2px) scale(1.05); box-shadow: 0 8px 24px rgba(60,50,30,0.18); }
.hm-ai-float img { width: 48px; height: 48px; display: block; }

/* AI 助手引导气泡 */
.hm-ai-bubble {
  position: absolute;
  right: 78px;
  top: 50%;
  transform: translateY(-50%);
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px 14px;
  box-shadow: 0 6px 18px rgba(18,32,28,0.12);
  font-size: 13px;
  color: var(--ink);
  white-space: nowrap;
  z-index: 10;
  opacity: 0;
  animation: aiBubbleIn 0.5s ease forwards, aiBubblePulse 2.4s ease-in-out infinite 0.5s;
}
.hm-ai-bubble::after {
  content: "";
  position: absolute;
  right: -7px;
  top: 50%;
  transform: translateY(-50%);
  border-width: 7px 0 7px 8px;
  border-style: solid;
  border-color: transparent transparent transparent #FFFFFF;
}
.hm-ai-bubble::before {
  content: "";
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%);
  border-width: 8px 0 8px 9px;
  border-style: solid;
  border-color: transparent transparent transparent var(--border);
}

@keyframes aiPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 6px 18px rgba(18,32,28,0.12); }
  50% { transform: scale(1.06); box-shadow: 0 10px 26px rgba(30,107,88,0.22); }
}
@keyframes aiBubbleIn {
  from { opacity: 0; transform: translateY(-50%) translateX(8px); }
  to { opacity: 1; transform: translateY(-50%) translateX(0); }
}
@keyframes aiBubblePulse {
  0%, 100% { transform: translateY(-50%) scale(1); }
  50% { transform: translateY(-50%) scale(1.03); }
}

/* ---------- 搜索栏 ---------- */
.hm-search {
  display: flex;
  align-items: center;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px 14px;
  gap: 10px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), border-color var(--transition);
}
.hm-search:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(30,107,88,0.12), var(--shadow-sm);
}
.hm-search img.hm-search-icon { width: 18px; height: 18px; flex-shrink: 0; opacity: 0.75; }
.hm-search input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 15px;
  color: var(--text);
  font-family: inherit;
  padding: 6px 2px;
  min-width: 0;
}
.hm-search input::placeholder { color: var(--text-muted); }
.hm-search .hm-search-btn {
  flex-shrink: 0;
  border: none;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(30,107,88,0.24);
  transition: box-shadow var(--transition);
}
.hm-search .hm-search-btn:hover { box-shadow: 0 4px 12px rgba(30,107,88,0.32); }

/* ---------- 白色卡片容器 ---------- */
.hm-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.hm-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
@media (max-width: 1023px) {
  .hm-card { padding: 18px; }
}
@media (max-width: 767px) {
  .hm-card { padding: 14px; border-radius: 14px; margin-bottom: 18px; }
}
@media (max-width: 480px) {
  .hm-card { padding: 10px 8px; margin-bottom: 14px; }
}

/* ---------- 十大板块宫格：PC 大屏多列，手机 3 列 ---------- */
.hm-grid { display: flex; flex-wrap: wrap; gap: 0; }
.hm-item {
  width: calc(16.666% - 2px);          /* ≥1400px 默认 6 列 */
  box-sizing: border-box;
  padding: 18px 10px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  border-radius: 14px;
  transition: opacity var(--transition), background var(--transition), transform var(--transition);
}
.hm-item:hover { background: var(--bg-soft); transform: translateY(-2px); }
.hm-item:active { opacity: 0.65; }
.hm-tile {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  background: linear-gradient(135deg, #FFFFFF 0%, var(--bg-soft) 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}
.hm-tile img { width: 100%; height: 100%; border-radius: 22px; display: block; }
.hm-label {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.35;
  color: var(--logo-plate);
  text-align: center;
}

@media (max-width: 1399px) {
  .hm-item { width: calc(20% - 2px); padding: 16px 8px 14px; }
  .hm-tile { width: 88px; height: 88px; border-radius: 20px; }
  .hm-tile img { border-radius: 20px; }
  .hm-label { font-size: 14px; }
}
@media (max-width: 1023px) {
  .hm-item { width: calc(25% - 2px); padding: 14px 8px 12px; }
  .hm-tile { width: 80px; height: 80px; border-radius: 18px; }
  .hm-tile img { border-radius: 18px; }
  .hm-label { font-size: 14px; }
}
@media (max-width: 767px) {
  .hm-item { width: 33.333%; padding: 10px 0 8px; border-radius: 10px; }
  .hm-tile { width: 70px; height: 70px; border-radius: 15px; }
  .hm-tile img { border-radius: 15px; }
  .hm-label { font-size: 13px; margin-top: 7px; }
}
@media (max-width: 480px) {
  .hm-item { width: 33.333%; padding: 8px 0 6px; }
  .hm-tile { width: 58px; height: 58px; border-radius: 13px; }
  .hm-tile img { border-radius: 13px; }
  .hm-label { font-size: 12px; }
}

/* ---------- 板块二级面板（boardSheet：找资源 / 技术库 / 行业动态） ---------- */
.bd-mask {
  position: fixed;
  inset: 0;
  background: rgba(44, 42, 38, 0.45);
  z-index: 900;
}
.bd-panel {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 24px;
  width: calc(100% - 32px);
  max-width: 620px;
  background: #FFFFFF;
  border-radius: 14px;
  z-index: 901;
  padding: 14px 14px 18px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 12px 40px rgba(30,25,15,0.28);
  animation: bdRise 0.22s ease-out;
}
@keyframes bdRise { from { opacity: 0; transform: translateX(-50%) translateY(16px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }
.bd-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 4px 10px;
}
.bd-title { font-size: 16px; font-weight: 600; color: var(--logo-plate); }
.bd-close {
  font-size: 18px;
  color: var(--text-muted);
  padding: 2px 8px;
  cursor: pointer;
  line-height: 1;
  border: none;
  background: none;
}
.bd-close:hover { color: var(--text); }
.bd-body { max-height: 62vh; overflow-y: auto; }

/* 2026-10-15：板块全屏页（替代半屏 boardSheet），与小程序 pages/board 同构 */
.board-page {
  position: relative;
  width: 100%;
  min-height: calc(100vh - 60px);
  background: var(--bg);
  padding: 0;
  box-sizing: border-box;
}
.board-head-full {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 14px 20px;
  margin-bottom: 0;
  display: flex;
  justify-content: flex-end;
}
.board-body-full {
  max-height: none;
  overflow-y: visible;
  padding: 16px 20px 40px;
}
.board-body-full .hm-cat-grid { gap: 12px; }
.board-body-full .hm-cat-item {
  width: calc(20% - 10px);
  padding: 16px 8px;
  border-radius: 12px;
}
.board-body-full .hm-cat-tile {
  width: 64px;
  height: 64px;
  border-radius: 14px;
}
.board-body-full .hm-cat-tile img { width: 46px; height: 46px; }
.board-body-full .hm-cat-tile img.hm-cat-full { width: 100%; height: 100%; }
.board-body-full .hm-cat-name { font-size: 14px; }
.board-body-full .hm-cat-count { font-size: 12px; }
.board-body-full .hm-cat-grid--tools .hm-cat-tile { width: 88px; height: 88px; }
.board-body-full .hm-li { padding: 14px 4px; }
.board-body-full .hm-li-icon { width: 52px; height: 52px; border-radius: 12px; margin-right: 14px; }
.board-body-full .hm-li-title { font-size: 16px; }
.board-body-full .hm-li-desc { font-size: 13px; }

/* 资源分类宫格：PC 大屏自适应多列，手机 3 列 */
/* 2026-10-18：去掉卡片/图标/数字区底色与阴影，统一融入页面背景 --bg，减少色块分割 */
.hm-cat-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.hm-cat-item {
  width: calc(16.666% - 10px);           /* ≥1400px 默认 6 列 */
  background: var(--bg);
  border: none;
  border-radius: 16px;
  padding: 20px 10px;
  text-align: center;
  cursor: pointer;
  box-sizing: border-box;
  box-shadow: none;
  transition: all var(--transition);
}
.hm-cat-item:hover { background: var(--bg); border-color: transparent; box-shadow: none; transform: translateY(-3px); }
.hm-cat-tile {
  width: 80px;
  height: 80px;
  border-radius: 18px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: transparent;
  border: none;
  box-shadow: none;
}
.hm-cat-tile img { width: 58px; height: 58px; display: block; }
.hm-cat-tile img.hm-cat-full { width: 100%; height: 100%; border-radius: 18px; }
.hm-cat-name { margin-top: 10px; font-size: 15px; font-weight: 600; line-height: 1.35; color: var(--text); }
.hm-cat-count { display: inline-block; font-size: 11.5px; color: var(--text-secondary); background: transparent; border-radius: 0; padding: 0; margin-top: 5px; }
.hm-cat-desc {
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 1.6em;
}

/* 技术库面板专用优化（2026-10-16）：去重复标题后，图标放大、去方形底色、描述去底色 */
.hm-cat-grid--tools .hm-cat-tile {
  width: 96px;
  height: 96px;
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
}
.hm-cat-grid--tools .hm-cat-tile img,
.hm-cat-grid--tools .hm-cat-tile img.hm-cat-full {
  width: 100%;
  height: 100%;
  border-radius: 0;
  object-fit: contain;
}
.hm-cat-grid--tools .hm-cat-count.hm-cat-desc {
  background: transparent;
  color: var(--text-secondary);
  padding: 0;
  border-radius: 0;
  margin-top: 6px;
}

@media (max-width: 1399px) {
  .hm-cat-item { width: calc(20% - 10px); padding: 16px 8px; }
  .hm-cat-tile { width: 72px; height: 72px; border-radius: 16px; }
  .hm-cat-tile img { width: 52px; height: 52px; }
  .hm-cat-name { font-size: 14px; }
  .hm-cat-grid--tools .hm-cat-tile { width: 84px; height: 84px; }
}
@media (max-width: 1023px) {
  .hm-cat-item { width: calc(25% - 9px); padding: 14px 8px; }
  .hm-cat-tile { width: 64px; height: 64px; border-radius: 14px; }
  .hm-cat-tile img { width: 46px; height: 46px; }
  .hm-cat-name { font-size: 14px; }
  .hm-cat-grid--tools .hm-cat-tile { width: 72px; height: 72px; }
}
@media (max-width: 767px) {
  .hm-cat-grid { gap: 8px; }
  .hm-cat-item { width: calc(33.333% - 6px); padding: 12px 6px; border-radius: 12px; }
  .hm-cat-tile { width: 58px; height: 58px; border-radius: 13px; }
  .hm-cat-tile img { width: 42px; height: 42px; }
  .hm-cat-name { font-size: 13px; margin-top: 7px; }
  .hm-cat-count { font-size: 11px; }
  .hm-cat-grid--tools .hm-cat-tile { width: 64px; height: 64px; }
}
@media (max-width: 480px) {
  .hm-cat-item { width: calc(33.333% - 6px); padding: 10px 4px; }
  .hm-cat-tile { width: 50px; height: 50px; border-radius: 12px; }
  .hm-cat-tile img { width: 36px; height: 36px; }
  .hm-cat-name { font-size: 12px; }
  .hm-cat-grid--tools .hm-cat-tile { width: 56px; height: 56px; }
}

/* 工具/资讯列表项（技术库 / 行业动态面板） */
.hm-li {
  display: flex;
  align-items: center;
  padding: 12px 2px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}
.hm-li:last-child { border-bottom: none; }
.hm-li:hover { background: var(--bg-soft); }
.hm-li-icon {
  width: 46px;
  height: 46px;
  border-radius: 11px;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  flex-shrink: 0;
  overflow: hidden;
}
.hm-li-icon img { width: 100%; height: 100%; border-radius: 11px; display: block; }
.hm-li-content { flex: 1; overflow: hidden; }
.hm-li-title { font-size: 15px; color: var(--text); }
.hm-li-desc { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.hm-li-arrow { color: var(--text-secondary); font-size: 13px; flex-shrink: 0; }

/* 首页底部版本行 */
.hm-foot { text-align: center; margin-top: 24px; color: var(--text-muted); font-size: 12px; padding: 20px 0 8px; }

/* ---------- 首页响应式：手机加宽占比、放大触控目标 ---------- */
@media (max-width: 480px) {
  .hm-page { padding: 12px; }
  .hm-tile { width: 78px; height: 78px; border-radius: 16px; }
  .hm-tile img { border-radius: 16px; }
  .hm-cat-item { width: calc(33.333% - 6px); }
  .hm-cat-tile { width: 50px; height: 50px; }
}

/* 轻提示（首页板块占位，同小程序 wx.showToast 语义） */
.hm-toast {
  position: fixed;
  left: 50%;
  bottom: 88px;
  transform: translateX(-50%) translateY(10px);
  background: rgba(44, 42, 38, 0.92);
  color: #F6F3ED;
  font-size: 13px;
  padding: 10px 18px;
  border-radius: 10px;
  z-index: 1200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
  max-width: 80vw;
  text-align: center;
}
.hm-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ==========================================================================
   阶段 3：响应式三档（2026-10-11）
   ┌ 档 1  PC     ≥1025px 侧栏常驻 220px（沿用现状，本区块不改）
   ├ 档 2  平板   768~1024px  侧栏收为 64px 图标栏 + 卡片双列
   └ 档 3  手机   ≤767px    侧栏→左侧抽屉 + 顶部汉堡 + 底部 TabBar（首页/搜索/我的）
   目标：与小程序 0.9.10 零适应成本；根治窄屏横向溢出（旧 768 断点把头部撑爆）。
   ⚠️ 本区块置于文件末尾：同宽度下后置规则级联优先，勿把旧断点再写回来。
   ========================================================================== */

/* ---------- 仅在窄屏出现的控件：默认全隐 ---------- */
.hamburger,
.sidebar-mask,
.bottom-tab,
.site-foot { display: none; }

.hamburger {
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  color: var(--ink);
  font-size: 17px;
  line-height: 1;
}
.hamburger:active { background: var(--primary-light); }

/* 底部 TabBar（结构见 index.html #bottomTab；图标复用小程序 tab-*.png 双态） */
.bt-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 6px 0 4px;
  border: none;
  background: none;
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.2;
}
.bt-item .bt-ico { display: block; width: 23px; height: 23px; }
.bt-item .bt-ico img { display: block; width: 100%; height: 100%; object-fit: contain; }
/* ⚠️ 显隐规则必须压过上一行 .bt-item .bt-ico img（0,2,1），故写成 img.ic-*（0,3,1）。
   曾因优先级不足导致非激活项的双态图全部显示（2026-10-11 预览探针实锤）。 */
.bt-item .bt-ico img.ic-on { display: none; }
.bt-item.active .bt-ico img.ic-on { display: block; }
.bt-item.active .bt-ico img.ic-off { display: none; }
.bt-item.active { color: var(--primary); font-weight: 500; }

/* 窄屏站点信息（PC 端由侧栏页脚承担，窄屏侧栏收起后在此兜底 ICP + 免责） */
.site-foot {
  padding: 14px 16px 18px;
  border-top: 1px solid var(--border);
  font-size: 11px;
  line-height: 1.6;
  color: var(--text-muted);
  text-align: center;
}
.site-foot a { color: var(--text-muted); text-decoration: none; }
.site-foot span { display: block; margin-top: 4px; }

/* ---------- 档 2：平板 768px ~ 1024px ---------- */
@media (min-width: 768px) and (max-width: 1024px) {
  .sidebar { width: 64px; }
  .sidebar-brand { padding: 16px 0; justify-content: center; }
  .sidebar-brand h1,
  .sidebar-brand span,
  .sidebar-nav .nav-section-title,
  .nav-item > span:not(.badge):not(.nav-ico) { display: none; }
  .nav-item {
    position: relative;
    justify-content: center;
    gap: 0;
    padding: 12px 0;
    font-size: 18px;
  }
  .nav-ico { width: 26px; height: 26px; }
  .nav-item .badge {
    position: absolute;
    top: 3px;
    right: 5px;
    margin: 0;
    padding: 0 4px;
    min-width: 16px;
    font-size: 10px;
    line-height: 15px;
    text-align: center;
  }
  .sidebar-footer { display: none; }      /* 文本过长 → 由 .site-foot 承担 */
  .site-foot { display: block; }
  .main-content { margin-left: 64px; }
  .header { padding: 0 16px; gap: 10px; }
  .header-search { width: 190px; }
  .content { padding: 16px; }
  .company-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .modal { min-width: 0; width: 100%; }
}

/* ---------- 档 3：手机 ≤767px ---------- */
@media (max-width: 767px) {
  body { overflow-x: hidden; }

  /* 侧栏 → 左侧抽屉 */
  .sidebar {
    width: 248px;
    max-width: 82vw;
    transform: translateX(-100%);
    transition: transform 0.24s ease;
    box-shadow: var(--shadow-md);
    z-index: 1000;
  }
  body.nav-open .sidebar { transform: translateX(0); }
  .sidebar-mask {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(44, 42, 38, 0.45);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.24s ease;
  }
  body.nav-open .sidebar-mask { opacity: 1; pointer-events: auto; }
  .sidebar-footer { display: none; }
  .site-foot { display: block; }

  .main-content { margin-left: 0; }
  .content {
    padding: 12px;
    padding-bottom: calc(70px + env(safe-area-inset-bottom));
  }

  /* 头部压缩：搜索移到底部 TabBar，登录名与退出收进「我的」页 */
  .hamburger { display: flex; }
  .header { padding: 0 12px; gap: 8px; }
  .page-title {
    font-size: 16px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .header-search { display: none; }
  .header-actions { gap: 6px; }
  .header-actions .user-avatar { width: 30px; height: 30px; }
  .header-actions .user-name,
  .header-actions #userInfo .btn { display: none; }

  /* 底部 TabBar 常驻 */
  .bottom-tab {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding-bottom: env(safe-area-inset-bottom);
  }

  /* 单列 */
  .company-grid { grid-template-columns: minmax(0, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-grid { grid-template-columns: minmax(0, 1fr); }

  /* 弹窗贴边、悬浮层避开 TabBar */
  .modal-overlay { padding: 12px; align-items: flex-end; }
  .modal { max-height: 88vh; }
  .bd-panel { bottom: calc(74px + env(safe-area-inset-bottom)); }
  .hm-toast { bottom: calc(84px + env(safe-area-inset-bottom)); }
  /* 手机端 board 全屏页 */
  .board-body-full { padding: 12px; }
  .board-body-full .hm-cat-item { width: calc(33.333% - 8px); padding: 12px 4px; }
  .board-body-full .hm-cat-tile { width: 52px; height: 52px; }
  .board-body-full .hm-cat-tile img { width: 38px; height: 38px; }

  /* 「我的」页与搜索页 */
  .pf-head { padding: 18px 16px; }
  .pf-avatar { width: 60px; height: 60px; }
  .sr-hero { padding: 12px 0 4px; }
}

/* ==========================================================================
   阶段 3 附：搜索页（.sr-*）与「我的」页（.pf-*）样式
   两页同用首页的卡片语言（hm-card / hm-li），保证两端一致。
   ========================================================================== */

/* 详情弹窗收藏钮 */
.modal-fav {
  flex: 0 0 auto;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  padding: 0;
}
.modal-fav.on { color: var(--accent); border-color: var(--accent); background: var(--tint-orange); }

/* ---------- 搜索页 ---------- */
.sr-hero { padding: 4px 0 2px; }
.sr-hero h2 { font-size: 22px; font-weight: 700; color: var(--primary); margin-bottom: 12px; }
.sr-sec-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 20px 2px 10px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  padding-left: 10px;
  border-left: 3px solid var(--primary);
}
.sr-sec-title .sr-more {
  font-size: 12px;
  font-weight: 400;
  color: var(--primary);
  background: none;
  border: none;
  padding: 0;
}
.sr-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sr-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 12.5px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: all var(--transition);
}
.sr-chip:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); transform: translateY(-1px); }
.sr-chip:active { background: var(--primary-light); color: var(--primary); }
.sr-chip .sr-chip-n { color: var(--text-muted); font-size: 11px; }
.sr-empty {
  padding: 40px 16px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.8;
}
.sr-hit { color: var(--primary); font-weight: 500; }

/* ---------- 「我的」页 ---------- */
.pf-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 20px;
}
.pf-avatar {
  flex: 0 0 auto;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 600;
  overflow: hidden;
}
.pf-avatar img { width: 100%; height: 100%; object-fit: cover; }
.pf-name { font-size: 17px; font-weight: 600; color: var(--text); }
.pf-sub { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.pf-act { margin-left: auto; }

.pf-stats {
  display: flex;
  border-top: 1px solid var(--border);
}
.pf-stat {
  flex: 1;
  padding: 14px 8px;
  text-align: center;
  border-right: 1px solid var(--border);
  background: none;
  border-top: none;
  border-bottom: none;
  border-left: none;
}
.pf-stat:last-child { border-right: none; }
.pf-stat-n { font-size: 19px; font-weight: 600; color: var(--primary); }
.pf-stat-l { font-size: 11.5px; color: var(--text-muted); margin-top: 2px; }

.pf-list { padding: 4px 0; }
.pf-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 13px 14px;
  border: none;
  border-bottom: 1px solid var(--border-light);
  background: none;
  text-align: left;
}
.pf-row:last-child { border-bottom: none; }
.pf-row:active { background: var(--bg-soft); }
.pf-row-ico {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}
.pf-row-ico img { width: 76%; height: 76%; object-fit: contain; }
.pf-row-t {
  font-size: 13.5px;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.35;
  max-height: 2.7em;
  white-space: normal;
  word-break: break-word;
  text-align: left;
}
.pf-row-d { font-size: 11.5px; color: var(--text-muted); margin-top: 2px; }
.pf-row-x {
  margin-left: auto;
  flex: 0 0 auto;
  border: none;
  background: none;
  color: var(--text-muted);
  font-size: 16px;
  padding: 2px 6px;
}
.pf-row-arrow { margin-left: auto; color: var(--text-muted); font-size: 12px; flex: 0 0 auto; }

/* ==========================================================================
   阶段 4：列表页统一（2026-10-11）
   目标：Web 各列表页（供应商/整车厂/悬赏/资讯/展会/法规/认证/测试设备）
        视觉与小程序 0.9.10 同构 —— 页头 + 胶囊搜索栏 + 品类 chips + 统一白卡。
   依据：miniapp/pages/category/category.wxml + app.wxss（.search-bar / .card）。
   ⚠️ rpx÷2 = px（小程序 rpx:px = 2:1）。
   ========================================================================== */

/* ---------- 列表页页头（对齐小程序 .cat-head） ---------- */
.list-head { margin-bottom: 12px; }
.list-head-desc {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.55;
}
.list-head-count {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}
.list-head-count b { color: var(--primary); font-weight: 600; }

/* ---------- 胶囊搜索栏（对齐小程序 .search-bar：白底 + 圆角 + 细边） ---------- */
.list-search {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 4px 8px;
  margin-bottom: 12px;
}
.list-search .ls-ico {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 0 4px 0 2px;
  opacity: 0.72;
}
.list-search input {
  flex: 1;
  min-width: 0;
  height: 34px;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 13.5px;
}
.list-search input::placeholder { color: var(--text-muted); }
.list-search .ls-clear {
  flex: 0 0 auto;
  border: none;
  background: none;
  color: var(--primary);
  font-size: 12.5px;
  padding: 6px 4px;
}
.list-search .ls-go {
  flex: 0 0 auto;
  border: none;
  background: var(--primary);
  color: #fff;
  font-size: 12.5px;
  padding: 6px 14px;
  border-radius: 7px;
}

/* ---------- 品类 chips（横滑，对齐小程序品类入口口径） ---------- */
.cat-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 2px 10px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.cat-chips::-webkit-scrollbar { display: none; height: 0; }
.cat-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 12.5px;
  line-height: 1.35;
  white-space: nowrap;
  transition: all var(--transition);
}
.cat-chip:active { transform: scale(0.97); }
.cat-chip .n { font-size: 11px; color: var(--text-muted); }
.cat-chip.on {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
  font-weight: 500;
}
.cat-chip.on .n { color: var(--primary); opacity: 0.7; }

/* ---------- 统一白卡 .ui-card（悬赏/资讯/展会等复用，口径 = .company-card） ---------- */
.ui-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  position: relative;
}
.ui-card.hoverable { cursor: pointer; }
.ui-card.hoverable:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
  transform: translateY(-2px);
}
.ui-card.flat { box-shadow: none; }
/* 资讯「推荐」条：蓝灰描边（原内联 border-color:var(--secondary)40） */
.ui-card.is-rec { border-color: rgba(74, 107, 132, 0.35); }
/* 展会「进行中」：品牌绿系（原蓝色系 #29b6f6/#0288d1 属旧配色，2026-10-11 统一） */
.ui-card.is-ongoing {
  border: 2px solid var(--primary);
  box-shadow: 0 4px 16px rgba(47, 107, 90, 0.28);
  background: var(--primary-light);
}
.ui-banner-ongoing {
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  color: #fff;
  text-align: center;
  padding: 11px 16px;
  border-radius: 8px;
  margin-bottom: 14px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 3px;
  animation: expoPulse 2s ease-in-out infinite;
}
.ui-card.stale { opacity: 0.72; }
/* 卡内小标签（展会 focus 等） */
.ui-pill {
  font-size: 10px;
  padding: 2px 8px;
  background: var(--bg-soft);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  color: var(--text-secondary);
  white-space: nowrap;
}
.ui-pill.on { background: var(--primary-light); color: var(--primary); border-color: transparent; }
/* 卡内备注块 */
.ui-note {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.55;
  background: var(--bg-soft);
  padding: 10px;
  border-radius: 6px;
  border-left: 3px solid var(--secondary);
}
/* 悬赏金额块（原橙色系 → 品牌暖砂 + 品牌绿） */
.ui-bounty {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.ui-bounty b { font-size: 16px; color: var(--accent); font-weight: 700; line-height: 1; }
.ui-bounty span { font-size: 10px; color: var(--text-muted); }
.ui-bounty.lg { width: 72px; height: 72px; border-radius: 12px; }
.ui-bounty.lg b { font-size: 22px; }
.ui-bounty.lg span { font-size: 11px; }
/* 悬赏须知条（原橙色渐变块 → 品牌暖砂） */
.ui-tipbar {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 16px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* ---------- 列表「加载更多」（2026-10-11 阶段 4：列表分页 60/页） ---------- */
.list-more {
  display: flex;
  justify-content: center;
  padding: 18px 0 6px;
}
.list-more .btn {
  padding: 9px 24px;
  border-radius: 20px;
  font-size: 13px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--primary);
}
.list-more .btn:hover { border-color: var(--primary); background: var(--primary-light); }
@media (max-width: 767px) {
  .list-more { padding-bottom: calc(18px + env(safe-area-inset-bottom)); }
  .list-more .btn { width: 100%; max-width: 320px; }
}

@media (max-width: 767px) {
  .list-search input { font-size: 14px; }   /* iOS 防缩放：≥16px 更好，13.5→14 折中 */
  .cat-chip { padding: 7px 13px; }
}

/* ==========================================================================
   阶段 5：计算工具（Web 版）—— 电机选用计算器（.mc-*）
   2026-10-11。视觉对齐小程序 pages/motor-calc（卡片语言沿用 hm-card 口径）。
   ⚠️ 计算全部走 js/engine/（小程序引擎字节级副本），本文件只负责呈现。
   ========================================================================== */

.mc-page { max-width: 760px; margin: 0 auto; }

/* 步骤卡 */
.mc-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 12px;
}
.mc-step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
}
.mc-step i {
  flex: 0 0 auto;
  width: 22px; height: 22px;
  border-radius: 7px;
  background: var(--primary-light);
  color: var(--primary);
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* 行（标签 + 值） */
.mc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 10px 0 4px;
}
.mc-row:first-child { margin-top: 0; }
.mc-label { font-size: 13px; color: var(--text-secondary); }
.mc-val { font-size: 13.5px; font-weight: 600; color: var(--primary); }

/* 滑块 */
.mc-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 22px;
  background: transparent;
  outline: none;
  margin: 0;
}
.mc-range::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 2px;
  background: var(--border);
}
.mc-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px; height: 18px;
  margin-top: -7px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid #fff;
  box-shadow: 0 1px 3px rgba(44, 42, 38, 0.28);
  cursor: pointer;
}
.mc-range::-moz-range-track { height: 4px; border-radius: 2px; background: var(--border); }
.mc-range::-moz-range-thumb {
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--primary); border: 2px solid #fff; cursor: pointer;
}

/* 下拉 */
.mc-select {
  width: 100%;
  padding: 9px 12px;
  font-size: 13.5px;
  color: var(--text);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 9px;
  outline: none;
}
.mc-select:focus { border-color: var(--primary); }

/* 场景五宫格 */
.mc-scene { display: flex; flex-wrap: wrap; gap: 8px; }
.mc-scene-item {
  flex: 1 1 calc(33.333% - 6px);
  min-width: 92px;
  padding: 10px 6px;
  text-align: center;
  font-size: 12.5px;
  color: var(--text-secondary);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: all var(--transition);
}
.mc-scene-item:active { transform: scale(0.98); }
.mc-scene-item.on {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
  font-weight: 600;
}

/* 提示行 */
.mc-hint {
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--text-muted);
  margin-top: 6px;
}

/* 生成按钮 */
.mc-gen {
  display: block;
  width: 100%;
  padding: 13px;
  margin: 16px 0 4px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: var(--primary);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: background var(--transition);
}
.mc-gen:hover { background: var(--primary-hover); }
.mc-gen:disabled { background: var(--text-muted); cursor: default; opacity: 0.75; }

/* 结果：中置 / 轮毂 双卡 */
.mc-motor {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 12px;
}
.mc-motor.hub { border-left-color: var(--secondary); }
.mc-motor-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 10px;
}
.mc-motor-head img { width: 18px; height: 18px; object-fit: contain; }
.mc-motor-big {
  font-size: 30px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.1;
  margin-bottom: 12px;
}
.mc-motor.hub .mc-motor-big { color: var(--secondary); }
.mc-motor-big .unit { font-size: 13px; font-weight: 500; color: var(--text-muted); margin-left: 4px; }
.mc-motor-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 13px;
  color: var(--text-secondary);
}
.mc-motor-row:last-of-type { border-bottom: none; }
.mc-motor-row b { color: var(--text); font-weight: 600; }
.mc-motor-note {
  margin-top: 10px;
  padding: 10px;
  font-size: 12px;
  line-height: 1.65;
  color: var(--text-secondary);
  background: var(--bg-soft);
  border-radius: 8px;
}

/* 结论条 */
.mc-verdict {
  padding: 12px 16px;
  margin-bottom: 12px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--primary);
  background: var(--primary-light);
  border-radius: 12px;
}
.mc-verdict b { font-weight: 700; }

/* 计算依据 */
.mc-calc-row {
  font-size: 12.5px;
  line-height: 1.85;
  color: var(--text-secondary);
}
.mc-calc-row b { color: var(--text); font-weight: 600; }
.mc-caliber {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
}
.mc-caliber-hd {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}
.mc-caliber-row {
  font-size: 11.5px;
  line-height: 1.75;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.mc-caliber-row b { color: var(--primary); font-weight: 600; }

/* 引擎加载/错误态 */
.mc-loading {
  padding: 40px 16px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}
.mc-err {
  padding: 18px 16px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--danger);
  background: var(--danger-bg, #F9EDEB);
  border-radius: 12px;
}

@media (max-width: 767px) {
  .mc-page { padding: 0; }
  .mc-scene-item { flex: 1 1 calc(50% - 4px); }
  .mc-motor-big { font-size: 26px; }
}

/* ==========================================================================
   阶段 5：胎压计算器（.tp-*）—— 2026-10-11
   对齐小程序 pages/tire-pressure（分段按钮 + 输入 + 双栏结果）。
   ========================================================================== */

.tp-seg { display: flex; flex-wrap: wrap; gap: 8px; }
.tp-seg-item {
  flex: 1 1 auto;
  min-width: 74px;
  padding: 9px 10px;
  text-align: center;
  font-size: 12.5px;
  color: var(--text-secondary);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: all var(--transition);
}
.tp-seg-item:active { transform: scale(0.98); }
.tp-seg-item.on {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
  font-weight: 600;
}

.tp-input {
  width: 100%;
  padding: 9px 12px;
  font-size: 13.5px;
  color: var(--text);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 9px;
  outline: none;
}
.tp-input:focus { border-color: var(--primary); }

.tp-fields { display: flex; gap: 10px; }
.tp-field { flex: 1 1 0; min-width: 0; margin-bottom: 10px; }
.tp-field-label {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 5px;
}
.tp-req { color: var(--danger); }

/* 结果：前/后轮双栏 */
.tp-res { display: flex; gap: 12px; margin: 4px 0 10px; }
.tp-res-item {
  flex: 1;
  padding: 16px 8px;
  text-align: center;
  background: var(--bg-soft);
  border-radius: 12px;
}
.tp-res-label { font-size: 12px; color: var(--text-secondary); margin-bottom: 6px; }
.tp-res-num {
  font-size: 30px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.1;
}
.tp-res-unit { font-size: 12.5px; font-weight: 500; color: var(--text-muted); margin-left: 3px; }
.tp-res-sub { font-size: 11.5px; color: var(--text-muted); margin-top: 4px; }
.tp-notes {
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--text-muted);
}
.tp-tc-res {
  margin-top: 10px;
  padding: 11px 14px;
  font-size: 13px;
  color: var(--primary);
  background: var(--primary-light);
  border-radius: 10px;
}
.tp-tc-res b { font-size: 17px; font-weight: 700; }

@media (max-width: 767px) {
  .tp-seg-item { min-width: 62px; font-size: 12px; }
  .tp-res-num { font-size: 26px; }
}

/* ==========================================================================
   阶段 5 三期：爬坡仿真器（.cl-*）—— 2026-10-11
   对齐小程序 pages/climb-calc（两步法：① 人力需求 ② 电机助力）。
   卡片 / 行 / 下拉 / 分段 / 口径块直接复用 .mc-*（同一设计语言）；本块只补
   小程序有而 mc 没有的四类元素：结论卡、比例条、测功上传行、行内输入框。
   ========================================================================== */

.cl-hero { padding: 2px 4px 14px; }
.cl-hero-title { font-size: 21px; font-weight: 600; color: var(--text); }
.cl-hero-sub { font-size: 12.5px; line-height: 1.65; color: var(--text-muted); margin-top: 6px; }

/* 行内输入框（与 mc-select 同底同边）；数值右对齐，标签与值同行不外溢 */
.cl-inp {
  flex: 0 1 148px;
  max-width: 148px;
  padding: 9px 12px;
  font-size: 13.5px;
  text-align: right;
  color: var(--text);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 9px;
  outline: none;
}
.cl-inp:focus { border-color: var(--primary); }

/* 行内下拉：`.mc-select` 是整宽（独占一行用），同行放置时必须限宽 */
.mc-row .cl-select { flex: 0 1 210px; max-width: 210px; }

/* 电机数据方式分段（两段，占行右半） */
.cl-mode-scene { flex: 0 1 264px; justify-content: flex-end; }
.cl-mode-scene .mc-scene-item { flex: 1 1 0; min-width: 0; padding: 9px 4px; font-size: 12.5px; }

/* 电机库「已选机型」提示行 */
.cl-lib-note {
  margin: 8px 0 2px;
  padding: 10px 12px;
  font-size: 11.5px;
  line-height: 1.65;
  color: var(--primary);
  background: var(--primary-light);
  border-left: 3px solid var(--primary);
  border-radius: 8px;
}

/* 测功曲线上传 */
.cl-up-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.cl-file { display: none; }
.cl-up-btn {
  padding: 8px 12px;
  font-size: 12.5px;
  color: var(--text);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 9px;
  cursor: pointer;
  transition: all var(--transition);
}
.cl-up-btn:hover { border-color: var(--primary); color: var(--primary); }
.cl-up-sample { color: var(--primary); background: var(--primary-light); }
.cl-up-info { margin-top: 8px; font-size: 12px; line-height: 1.65; color: var(--primary); }
.cl-up-clear { margin-left: 10px; color: var(--danger); cursor: pointer; }

/* 结论卡（ok=绿 / warn=琥珀，对应小程端 .verdict.ok / .warn） */
.cl-verdict { padding: 14px 16px; margin-bottom: 12px; border-radius: 12px; }
.cl-verdict.ok { background: var(--tint-green); }
.cl-verdict.warn { background: var(--tint-orange); }
.cl-verdict-main { font-size: 15px; font-weight: 600; color: var(--text); line-height: 1.55; }
.cl-verdict-main b { color: var(--primary); }
.cl-verdict-sub { margin-top: 6px; font-size: 12px; line-height: 1.6; color: var(--text-secondary); }

/* 比例条（人力需求刻度 / 省力占比） */
.cl-bar { height: 8px; margin: 6px 0 4px; background: var(--border); border-radius: 4px; overflow: hidden; }
.cl-bar-fill { display: block; height: 100%; background: var(--primary); border-radius: 4px; }
.cl-bar-fill.over { background: #C0693A; }

/* 「爬不动」告警值 */
.mc-val.cl-v-warn { color: var(--danger); }

/* 校验错误行（对应小程端 .err-item） */
.cl-err-item { font-size: 12.5px; line-height: 1.7; color: #B45309; padding: 4px 2px; }

@media (max-width: 767px) {
  .cl-hero-title { font-size: 18px; }
  .cl-inp { flex: 0 1 106px; max-width: 106px; }
  .mc-row .cl-select { flex: 0 1 170px; max-width: 170px; }
  .cl-mode-scene { flex: 1 1 100%; margin-top: 6px; justify-content: flex-start; }
  .cl-up-row { justify-content: flex-start; }
}

/* ==================== AI 行业助手（Web 版 · 2026-10-11 阶段 5 四期）====================
   口径：miniapp/pages/assistant（暖砂浅色），rpx ÷ 2 = px；色值一律走 :root token，
   与阶段 1 换肤后的全站色板同源（小程序该页局部用的 #5b8a72 系旧绿，已在换肤时统一到 --primary）。 */
.content.as-active { padding: 0; overflow: hidden; }

.as-page {
  display: flex;
  flex-direction: column;
  height: calc(100vh - var(--header-height));
  max-width: 900px;
  margin: 0 auto;
  background: var(--bg);
}

/* ── 头部 ── */
.as-head {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
}
.as-avatar {
  flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%;
  background: var(--tint-green);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.as-avatar img { width: 32px; height: 32px; object-fit: contain; }
.as-face { position: relative; width: 32px; height: 32px; border-radius: 50%; background: var(--primary); }
.as-eye { position: absolute; top: 11px; width: 4px; height: 6px; border-radius: 2px; background: #fff; }
.as-eye-l { left: 8px; }
.as-eye-r { right: 8px; }
.as-mouth {
  position: absolute; bottom: 6px; left: 50%; margin-left: -4px;
  width: 8px; height: 3px; border-bottom: 2px solid #fff; border-radius: 0 0 4px 4px;
}
.as-head-info { flex: 1; min-width: 0; }
.as-name { font-size: 15.5px; font-weight: 600; color: var(--text); }
.as-sub { font-size: 11.5px; color: var(--text-muted); margin-top: 2px; }
.as-clear {
  flex: 0 0 auto; padding: 6px 8px; font-size: 12.5px; color: var(--text-muted);
  background: none; border: none; cursor: pointer;
}
.as-clear:hover { color: var(--primary); }

/* AIGC 显著标识（与小程序同口径） */
.as-ai-tag {
  margin: 10px 16px 0; padding: 6px 12px; text-align: center;
  font-size: 11.5px; color: #8A6D1A;
  background: #FDF6E0; border: 1px solid #ECD9A0; border-radius: 8px;
}

/* ── 消息区 ── */
.as-body { flex: 1; min-height: 0; overflow-y: auto; padding: 12px 16px 0; }

.as-hint { padding: 6px 2px 16px; }
.as-hint-title { font-size: 13px; color: var(--text-secondary); margin-bottom: 8px; }
.as-hint-item {
  padding: 10px 12px; margin-bottom: 8px;
  font-size: 13.5px; color: var(--text);
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px;
  cursor: pointer; transition: all var(--transition);
}
.as-hint-item:hover { border-color: var(--primary); color: var(--primary); }
.as-hint-note { margin-top: 6px; font-size: 11.5px; line-height: 1.65; color: var(--text-muted); }

.as-row { display: flex; margin-bottom: 12px; }
.as-row-user { justify-content: flex-end; }
.as-row-ai { justify-content: flex-start; }
.as-bubble { max-width: 78%; padding: 11px 14px; border-radius: 12px; font-size: 14px; line-height: 1.68; }
.as-bubble-user {
  background: var(--primary); color: #fff; border-bottom-right-radius: 4px;
  white-space: pre-wrap; word-break: break-word;
}
.as-bubble-ai {
  background: var(--bg-card); color: var(--text);
  border: 1px solid var(--border); border-bottom-left-radius: 4px;
  word-break: break-word;
}
.as-text { white-space: pre-wrap; }
.as-loading { color: var(--text-muted); }

.as-sources { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.as-src-chip { padding: 2px 8px; font-size: 11px; color: var(--primary); background: var(--primary-light); border-radius: 6px; }

.as-refs {
  margin-top: 10px; padding-top: 10px;
  border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
}
.as-refs-label { font-size: 11.5px; color: var(--text-muted); }
.as-ref-chip {
  max-width: 100%; padding: 3px 10px;
  font-size: 11.5px; color: var(--primary);
  background: var(--primary-light);
  border: 1px solid rgba(47, 107, 90, 0.25);
  border-radius: 999px; cursor: pointer;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.as-ref-chip:hover { background: #DCEAE4; }

.as-fb {
  margin-top: 10px; padding-top: 8px;
  border-top: 1px dashed var(--border);
  display: flex; gap: 16px;
}
.as-fb-btn { padding: 0; font-size: 12px; color: var(--text-muted); background: none; border: none; cursor: pointer; }
.as-fb-btn:hover { color: var(--primary); }
.as-fb-btn.on { color: var(--primary); font-weight: 600; }

/* ── 卡片：选型顾问 / 供应商评估（对齐小程序 advisor-card / eval-co） ── */
.as-card { margin-top: 10px; padding: 12px; border-radius: 10px; font-size: 13px; }
.as-card-title { margin-bottom: 10px; font-size: 13.5px; font-weight: 700; color: var(--secondary); }
.as-card-advisor { background: var(--tint-blue); border: 1px solid #CFE0EC; }
.as-card-eval { background: var(--bg-soft); border: 1px solid var(--border); }
.as-card-row { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 6px; line-height: 1.55; }
.as-card-row > span { flex: 0 0 auto; color: var(--text-secondary); }
.as-card-row > b { color: var(--text); font-weight: 600; text-align: right; }
.as-card-note { margin: 8px 0; font-size: 11.5px; line-height: 1.6; color: var(--text-muted); }

.as-plan {
  margin-bottom: 8px; padding: 10px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px;
}
.as-plan-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.as-plan-type { font-size: 12px; font-weight: 600; color: var(--text-secondary); }
.as-plan-vendor { font-size: 13px; color: var(--secondary); }
.as-plan-spec { margin-bottom: 6px; font-size: 12px; color: var(--text-muted); }
.as-plan-reason { margin-bottom: 4px; font-size: 12.5px; line-height: 1.6; color: var(--text); }
.as-plan-tradeoff { font-size: 12px; line-height: 1.6; color: #B45309; }
.as-plan-reg {
  margin-top: 6px; padding: 8px 10px;
  font-size: 12px; line-height: 1.6; color: #B45309;
  background: var(--tint-orange); border-radius: 8px;
}
.as-card-btn {
  display: block; width: 100%; margin-top: 8px; padding: 10px;
  font-size: 13px; color: #fff; background: var(--secondary);
  border: none; border-radius: 8px; cursor: pointer;
}
.as-card-btn:hover { background: #3C5A72; }

.as-eval-co {
  margin-bottom: 8px; padding: 10px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px;
}
.as-eval-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.as-eval-head > b { font-size: 13.5px; color: var(--secondary); }
.as-eval-head > span { font-size: 11.5px; color: var(--text-muted); }
.as-eval-web { margin-top: 4px; font-size: 11.5px; color: var(--text-secondary); word-break: break-all; }

/* ── 输入区 ── */
.as-input-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
}
.as-input {
  flex: 1; min-width: 0; padding: 10px 14px;
  font-size: 14px; color: var(--text);
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: 999px;
  outline: none;
}
.as-input:focus { background: #fff; border-color: var(--primary); }
.as-send {
  flex: 0 0 auto; padding: 10px 18px;
  font-size: 14px; color: #fff; background: var(--primary);
  border: none; border-radius: 999px; cursor: pointer;
  transition: background var(--transition);
}
.as-send:hover { background: var(--primary-hover); }
.as-send-off { background: #C9C2B6; cursor: not-allowed; }

@media (max-width: 767px) {
  /* 手机端：内容区自身留出底部 TabBar 高度，页面高度同步扣减，输入条不被 TabBar 压住 */
  .content.as-active { padding: 0 0 calc(70px + env(safe-area-inset-bottom)); }
  .as-page { height: calc(100vh - var(--header-height) - 70px - env(safe-area-inset-bottom)); max-width: none; }
  .as-ai-tag { margin: 8px 12px 0; }
  .as-body { padding: 10px 12px 0; }
  .as-input-bar { padding: 8px 12px; }
  .as-bubble { max-width: 88%; }
  .as-sub { display: none; }   /* 窄屏副标题折行会挤压头部，信息密度优先 */
}

/* 2026-10-15：board 全屏页响应式 —— 大屏幕显示更多列，图标字体随屏放大 */
@media (min-width: 1025px) and (max-width: 1399px) {
  .board-body-full .hm-cat-item { width: calc(25% - 9px); }
}
@media (min-width: 1400px) {
  .board-body-full { padding: 20px 28px 48px; }
  .board-body-full .hm-cat-item { width: calc(20% - 10px); padding: 18px 10px; }
  .board-body-full .hm-cat-tile { width: 72px; height: 72px; }
  .board-body-full .hm-cat-tile img { width: 52px; height: 52px; }
  .board-body-full .hm-cat-name { font-size: 15px; }
  .board-body-full .hm-li-icon { width: 56px; height: 56px; }
  .board-body-full .hm-li-title { font-size: 17px; }
}
@media (min-width: 768px) and (max-width: 1024px) {
  .board-body-full .hm-cat-item { width: calc(25% - 9px); }
}

/* ============ 母子公司 / 集团 关系视图（2026-10-15） ============ */
.congo-page { padding: 18px 20px 40px; max-width: 1180px; margin: 0 auto; }
.congo-head { margin-bottom: 14px; }
.congo-title { font-size: 22px; font-weight: 700; color: var(--text, #1C2429); letter-spacing: .5px; }
.congo-intro { margin-top: 8px; font-size: 13.5px; line-height: 1.7; color: var(--text-muted, #5b6770); background: #f3f6f3; border-left: 3px solid var(--primary, #1f6f4a); padding: 10px 14px; border-radius: 8px; }
.congo-intro b { color: var(--primary, #1f6f4a); }
.congo-toolbar { display: flex; gap: 10px; align-items: center; margin: 14px 0 18px; flex-wrap: wrap; }
.congo-search { flex: 1; min-width: 220px; height: 38px; border: 1px solid #d4dad6; border-radius: 9px; padding: 0 12px; font-size: 14px; outline: none; }
.congo-search:focus { border-color: var(--primary, #1f6f4a); box-shadow: 0 0 0 3px rgba(31,111,74,.12); }
.congo-select { height: 38px; border: 1px solid #d4dad6; border-radius: 9px; padding: 0 10px; font-size: 13px; background: #fff; }
.congo-stat { font-size: 13px; color: var(--text-muted, #5b6770); margin-left: auto; }
.congo-loading { padding: 40px; text-align: center; color: var(--text-muted, #5b6770); }
.congo-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; }
.congo-card { background: #fff; border: 1px solid #e4e9e5; border-radius: 12px; padding: 14px 16px; box-shadow: 0 1px 3px rgba(28,36,41,.05); transition: box-shadow .15s, transform .15s; }
.congo-card:hover { box-shadow: 0 6px 18px rgba(28,36,41,.10); transform: translateY(-2px); }
.congo-card-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.congo-card-name { font-size: 16px; font-weight: 700; color: var(--text, #1C2429); }
.congo-badge { font-size: 11px; padding: 2px 8px; border-radius: 20px; background: #e7f1ec; color: var(--primary, #1f6f4a); font-weight: 600; }
.congo-badge--n { background: #eef0f2; color: #5b6770; }
.congo-domain { font-size: 11px; color: #8a949c; margin-left: auto; font-family: monospace; }
.congo-row { display: flex; gap: 10px; padding: 4px 0; font-size: 13px; line-height: 1.55; }
.congo-k { flex: 0 0 108px; color: var(--text-muted, #5b6770); font-weight: 600; }
.congo-v { flex: 1; min-width: 0; color: var(--text, #1C2429); }
.congo-branches, .congo-snips { list-style: none; margin: 0; padding: 0; }
.congo-branch { padding: 2px 0; display: flex; gap: 8px; align-items: baseline; }
.congo-branch a { color: var(--primary, #1f6f4a); text-decoration: none; font-weight: 600; }
.congo-branch a:hover { text-decoration: underline; }
.congo-branch-meta { font-size: 11.5px; color: #8a949c; }
.congo-snip { padding: 3px 0; color: #445059; border-top: 1px dashed #eef0f2; }
.congo-review { margin-top: 28px; border: 1px solid #f0d9d3; border-radius: 12px; background: #fdf6f4; overflow: hidden; }
.congo-review-head { padding: 12px 16px; font-weight: 700; font-size: 14px; color: #b4452f; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.congo-review-list { list-style: none; margin: 0; padding: 6px 16px 14px; max-height: 360px; overflow: auto; }
.congo-review-list li { padding: 4px 0; display: flex; gap: 8px; align-items: baseline; font-size: 13px; border-bottom: 1px dashed #f3e2dc; }
.congo-review-list a { color: #b4452f; text-decoration: none; font-weight: 600; }
.congo-review-list a:hover { text-decoration: underline; }
@media (max-width: 640px) { .congo-list { grid-template-columns: 1fr; } .congo-k { flex-basis: 92px; } }

/* ===== 市场行情页（2026-10-16 并入 SPA 主框架） ===== */
.mk-tabs { display:flex; gap:8px; background:#fff; padding:8px; border-radius:14px; margin:6px 0 18px; border:1px solid var(--border, #E2E7E4); }
.mk-tab { flex:1; text-align:center; padding:12px 0; border-radius:10px; cursor:pointer; font-size:15px; color:#9AA6AD; transition:background .15s,color .15s; }
.mk-tab.on { background:var(--primary, #1E6B58); color:#fff; font-weight:600; }
.mk-chips { display:flex; gap:8px; align-items:center; margin-bottom:14px; flex-wrap:wrap; }
.mk-chip { font-size:14px; padding:6px 16px; border-radius:999px; background:#fff; border:1px solid var(--border, #E2E7E4); color:var(--text-secondary, #505A61); cursor:pointer; transition:all .15s; }
.mk-chip.on { background:#E7F0EC; border-color:var(--primary, #1E6B58); color:var(--primary, #1E6B58); font-weight:600; }
.mk-count { font-size:13px; color:var(--text-muted, #8A969D); margin-left:4px; }
.mk-note { font-size:13px; color:#A8761F; background:#F6EEDC; border-radius:10px; padding:10px 14px; line-height:1.7; }
.mk-mcard { border-radius:14px; padding:18px 20px; margin-bottom:12px; }
.mk-mwrap { overflow:hidden; }
.mk-mimg { width:130px; height:96px; object-fit:contain; float:right; margin:2px 0 8px 12px; background:#fff; border:1px solid var(--border-light, #EDF0EE); border-radius:8px; }
.mk-mimg-empty { display:flex; align-items:center; justify-content:center; font-size:12px; color:#A8B3B9; }
.mk-head { display:flex; align-items:center; gap:8px; }
.mk-brand { font-weight:600; font-size:16px; color:var(--text, #1C2429); }
.mk-model { font-size:18px; font-weight:600; margin-bottom:6px; color:var(--text, #1C2429); }
.mk-meta { display:flex; gap:8px; margin-bottom:8px; flex-wrap:wrap; }
.mk-line { font-size:14px; color:var(--text-secondary, #505A61); line-height:1.8; }
.mk-src { font-size:12px; color:var(--text-muted, #8A969D); line-height:1.6; word-break:break-all; }
.mk-src a { color:var(--accent, #C0892A); text-decoration:none; }
.mk-bcard { border-radius:16px; padding:18px 20px; margin-bottom:14px; transition:box-shadow .22s ease, transform .22s ease; }
.mk-bcard:hover { box-shadow:0 8px 22px rgba(18,32,28,0.10); transform:translateY(-2px); }
.mk-blogo-wrap { position:relative; width:80px; height:80px; flex:0 0 auto; border-radius:16px; overflow:hidden; border:1px solid var(--border, #E2E7E4); box-shadow:0 2px 6px rgba(18,32,28,0.06); background:linear-gradient(135deg,#FFFFFF 0%,#F5F6F4 100%); }
.mk-bavatar { position:absolute; top:0; left:0; width:100%; height:100%; display:flex; align-items:center; justify-content:center; font-size:32px; font-weight:700; color:#fff; z-index:1; }
.mk-blogo { position:absolute; top:0; left:0; width:100%; height:100%; border-radius:16px; object-fit:contain; padding:2px; z-index:2; }
.mk-bhead { display:flex; align-items:center; gap:18px; margin-bottom:10px; }
.mk-bmain { min-width:0; }
.mk-bname { font-size:20px; font-weight:700; color:var(--text, #1C2429); line-height:1.25; }
.mk-bloc { font-size:15px; color:var(--text-muted, #8A969D); margin-top:3px; }
.mk-bdesc { font-size:14.5px; color:var(--text-secondary, #505A61); line-height:1.75; margin-bottom:10px; }
.mk-bchips { display:flex; gap:8px; flex-wrap:wrap; }
.mk-more { text-align:center; color:var(--primary, #1E6B58); font-size:15px; padding:16px 0; cursor:pointer; border-radius:10px; }
.mk-more:hover { background:#E7F0EC; }

/* ---------- 行业新闻卡片配图与图文混排（2026-10-17） ---------- */
.news-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(min(360px, 100%), 1fr)); gap:16px; }
.news-card { display:flex; flex-direction:row; gap:14px; padding:14px; }
.news-card-thumb { width:110px; height:82px; flex:0 0 auto; border-radius:10px; overflow:hidden; background:var(--bg-soft, #F5F6F4); border:1px solid var(--border-light, #EDF0EE); display:flex; align-items:center; justify-content:center; }
.news-card-thumb img { width:100%; height:100%; object-fit:cover; }
.news-card-thumb.news-img-fallback { background:linear-gradient(135deg, var(--secondary, #2B7A64) 0%, var(--primary, #1E6B58) 100%); }
.news-img-fallback-inner { font-size:28px; color:#fff; }
.news-card-body { flex:1; min-width:0; display:flex; flex-direction:column; }
.news-card-meta { display:flex; align-items:center; gap:8px; margin-bottom:6px; flex-wrap:wrap; }
.news-card-title { font-size:15px; margin:0 0 8px 0; line-height:1.45; color:var(--text, #1C2429); font-weight:600; }
.news-card-title a:hover { color:var(--secondary, #2B7A64); text-decoration:underline; }
.news-card-summary { font-size:13px; color:var(--text-secondary, #505A61); line-height:1.65; margin:0 0 10px 0; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
.news-card-footer { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-top:auto; }
.news-card-source { font-size:11px; color:var(--text-muted, #8A969D); text-decoration:none; max-width:50%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.news-card-source:hover { color:var(--secondary, #2B7A64); }
.news-card-read { font-size:12px; color:var(--secondary, #2B7A64); font-weight:500; text-decoration:none; white-space:nowrap; }
.news-card-tags { display:flex; gap:6px; flex-wrap:wrap; margin-top:10px; align-items:center; }
.news-card-tags > span { font-size:11px; color:var(--text-muted, #8A969D); }

@media (max-width: 640px) {
  .news-card { flex-direction:column; gap:10px; }
  .news-card-thumb { width:100%; height:140px; }
  .news-card-footer { flex-direction:column; align-items:flex-start; }
  .news-card-source { max-width:100%; }
}

/* 2026-10-17：board 页功能区介绍文案 + 行业动态两栏内容 */
.board-intro {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 22px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 14px;
  line-height: 1.6;
}
.board-intro-main { flex: 1; min-width: 0; }
.board-intro-title {
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 4px;
}
.board-intro-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}
.board-intro-desc {
  flex: 1.2;
  min-width: 260px;
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
}

.news-board-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.nb-col {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  min-height: 420px;
}
.nb-col-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.nb-col-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.nb-col-icon img { width: 28px; height: 28px; }
.nb-col-meta { flex: 1; min-width: 0; }
.nb-col-title { font-size: 17px; font-weight: 600; color: var(--text); }
.nb-col-desc { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.nb-col-more {
  font-size: 12px;
  color: var(--secondary);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}
.nb-col-more:hover { text-decoration: underline; }

.nb-list { display: flex; flex-direction: column; gap: 10px; flex: 1; }
.nb-loading,
.nb-empty {
  text-align: center;
  padding: 40px 16px;
  color: var(--text-muted);
  font-size: 13px;
  flex: 1;
}

.nb-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  background: var(--bg);
  border: 1px solid var(--border-light, var(--border));
  cursor: pointer;
  transition: all 0.15s ease;
}
.nb-item:hover {
  background: var(--bg-soft);
  border-color: var(--primary);
  transform: translateY(-1px);
}
.nb-item-thumb {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  background: var(--bg-soft);
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nb-item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.nb-item-thumb-text {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  background: var(--tint-green);
}
.nb-item-thumb-empty {
  font-size: 24px;
  color: var(--text-muted);
}
.nb-item-body { flex: 1; min-width: 0; }
.nb-item-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.45;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.nb-item-title a { color: inherit; text-decoration: none; }
.nb-item-title a:hover { color: var(--secondary); }
a.nb-item { color: inherit; text-decoration: none; }
a.nb-item:hover { color: inherit; }
a.nb-item .nb-item-title { color: var(--text); }
a.nb-item:hover .nb-item-title { color: var(--secondary); }
.nb-item-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.nb-item-tag {
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 500;
}
.nb-item-status {
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 500;
}
.nb-status-ongoing { background: #E8F5E9; color: #2F6B5A; }
.nb-status-upcoming { background: #E3F2FD; color: #3B7BA9; }
.nb-status-uncertain { background: #FFF3E0; color: #C0823B; }
.nb-item-summary {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 900px) {
  .news-board-grid { grid-template-columns: 1fr; }
  .board-intro {
    flex-direction: column;
    gap: 8px;
  }
  .board-intro-desc { min-width: 0; }
}
@media (max-width: 640px) {
  .nb-item { padding: 10px; }
  .nb-item-thumb { width: 54px; height: 54px; }
  .nb-item-title { font-size: 13px; }
}
