/* ===== 全局重置 ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #f5f7fa;
  color: #1f2937;
  line-height: 1.55;
}

/* ===== 移动端触摸目标 ===== */
@media (max-width: 768px) {
  .category-card { min-height: 56px; }
  .search-input, .search-btn { min-height: 44px; }
  .cat-card-banner { min-height: 40px; }
  .cat-emoji { font-size: 20px; }

  /* 类似群详情 · 移动端 */
  .groups-section { padding: 12px 14px; }
  .anchor-nav { padding: 6px 10px; gap: 4px; }
  .anchor-link { padding: 2px 6px; font-size: 10.5px; }
  .group-header { padding: 8px 10px; min-height: 36px; }
  .group-name { flex: 1 1 100%; order: 3; font-size: 13px; margin-top: 2px; }
  .group-items .data-table { font-size: 12px; }
  .group-items .data-table th,
  .group-items .data-table td { padding: 5px 8px; }
  .group-note-points li { font-size: 12px; }
}
@media (max-width: 480px) {
  .category-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .metrics { gap: 16px; }
  .metric { min-width: 60px; }
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== 颜色变量 ===== */
:root {
  --color-goods: #2563eb;       /* 商品类 - 蓝色 */
  --color-goods-light: #dbeafe;
  --color-service: #d97706;     /* 服务类 - 橙色 */
  --color-service-light: #fef3c7;
  --color-primary: #2563eb;
  --color-success: #10b981;
  --color-bg: #f5f7fa;
  --color-card: #fff;
  --color-text: #1f2937;
  --color-text-light: #6b7280;
  --color-border: #e5e7eb;
  --color-hover: #f9fafb;
}

/* ===== 加载状态 ===== */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.loading-content { text-align: center; }

.spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--color-border);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 16px;
}

@keyframes spin { to { transform: rotate(360deg); } }

.loading-content p { color: var(--color-text-light); font-size: 14px; }

/* ===== 头部 ===== */
.header {
  background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
  color: #fff;
  padding: 24px 0 36px;
}

.logo {
  font-size: 26px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 4px;
}

.subtitle {
  font-size: 14px;
  text-align: center;
  opacity: 0.85;
  margin-bottom: 16px;
}

/* 关键指标 */
.metrics {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 70px;
}

.metric-value {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.metric-label {
  font-size: 11px;
  opacity: 0.85;
  margin-top: 3px;
}

/* 搜索框 */
.search-box {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  gap: 12px;
}

.search-input {
  flex: 1;
  padding: 11px 18px;
  font-size: 14px;
  border: none;
  border-radius: 50px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  outline: none;
}

.search-input:focus {
  box-shadow: 0 4px 30px rgba(0,0,0,0.25);
}

.search-btn {
  padding: 11px 24px;
  font-size: 14px;
  font-weight: 500;
  background: var(--color-success);
  color: #fff;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s;
}

.search-btn:hover {
  background: #059669;
  transform: translateY(-2px);
}

/* ===== 主体 ===== */
.main {
  margin-top: -30px;
  padding-bottom: 60px;
}

/* ===== 面包屑 ===== */
.breadcrumb {
  background: var(--color-card);
  padding: 12px 18px;
  border-radius: 10px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.breadcrumb-item {
  color: var(--color-primary);
  cursor: pointer;
  font-weight: 500;
}

.breadcrumb-item:hover { text-decoration: underline; }

.breadcrumb-sep { color: #d1d5db; }

.breadcrumb-current { color: var(--color-text); font-weight: 500; }

/* ===== 区块标题 ===== */
.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.title-bar {
  width: 4px;
  height: 22px;
  background: var(--color-primary);
  border-radius: 2px;
}

.section-title h2 {
  font-size: 20px;
  font-weight: 600;
  color: var(--color-text);
}

.subtitle-hint {
  font-size: 13px;
  color: var(--color-text-light);
  margin-left: auto;
}

.legend {
  margin-left: auto;
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: var(--color-text-light);
}

.legend-item { display: flex; align-items: center; gap: 6px; }

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-goods { background: var(--color-goods); }
.dot-service { background: var(--color-service); }

/* ===== 快捷筛选 ===== */
.quick-filter {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.filter-chip {
  padding: 6px 16px;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--color-text);
}

.filter-chip:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.filter-chip.active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

/* ===== 热门类别（首页） ===== */
.quick-access {
  background: var(--color-card);
  padding: 24px;
  border-radius: 12px;
  margin-bottom: 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.hot-categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}

.hot-cat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 18px 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s;
  border: 2px solid transparent;
  background: #f9fafb;
}

.hot-cat-card.card-goods {
  border-color: var(--color-goods-light);
  background: var(--color-goods-light);
}

.hot-cat-card.card-service {
  border-color: var(--color-service-light);
  background: var(--color-service-light);
}

.hot-cat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

/* ===== 行业推荐 ===== */
.industry-chips {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin: 20px 0 16px;
}
.industry-chip {
  display: inline-block;
  padding: 8px 18px;
  background: #f3f4f6;
  color: #4b5563;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.18s;
  user-select: none;
}
.industry-chip:hover { background: #e5e7eb; color: #1f2937; }
.industry-chip.active {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}
.industry-search-box {
  display: flex; gap: 10px;
  margin: 12px 0 24px;
  align-items: stretch;
}
.industry-search-input {
  flex: 1;
  padding: 10px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.18s;
  font-family: inherit;
}
.industry-search-input:focus { border-color: #2563eb; }
.industry-search-btn, .industry-clear-btn {
  padding: 10px 22px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.18s;
}
.industry-search-btn { background: #2563eb; color: #fff; }
.industry-search-btn:hover { background: #1d4ed8; }
.industry-clear-btn { background: #f3f4f6; color: #4b5563; }
.industry-clear-btn:hover { background: #e5e7eb; }

.industry-result { margin-top: 8px; }

/* ===== 类似群注释（紧凑） ===== */
.group-notes-box {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-left: 4px solid #f59e0b;
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 12px;
}
.group-notes-header {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px dashed #fde68a;
}
.group-notes-header h3 {
  margin: 0; font-size: 14px; color: #92400e;
  flex: 1;
}
.notes-icon { font-size: 16px; }
.notes-count {
  font-size: 11px;
  color: #b45309;
  background: #fef3c7;
  padding: 2px 8px;
  border-radius: 12px;
}
.group-notes-list {
  display: flex; flex-direction: column; gap: 8px;
}
.group-note-item {
  background: #fff;
  border: 1px solid #fde68a;
  border-radius: 6px;
  padding: 8px 12px;
}
.group-note-title {
  font-size: 12.5px;
  font-weight: 600;
  color: #92400e;
  margin-bottom: 4px;
}
.group-note-title a {
  color: #92400e;
  text-decoration: none;
}
.group-note-title a:hover {
  color: #b45309;
  text-decoration: underline;
}
.group-note-points {
  margin: 0; padding-left: 18px;
}
.group-note-points li {
  font-size: 12.5px;
  color: #78350f;
  line-height: 1.5;
  margin-bottom: 1px;
}

/* ===== Latest Updates ===== */
.latest-updates { margin-top: 32px; }
.latest-updates .section-title { margin-bottom: 16px; }
.latest-updates .section-title h2 { font-size: 20px; }
.updates-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 12px;
}
.update-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 16px 18px;
  transition: all 0.18s;
  border-left: 4px solid #6366f1;
}
.update-card:hover {
  border-color: #6366f1;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}
.update-header {
  display: flex; gap: 8px; align-items: center;
  margin-bottom: 8px;
  font-size: 12px;
}
.update-date {
  color: #9ca3af;
  font-family: 'SF Mono', 'Consolas', monospace;
}
.update-cat {
  background: #eef2ff;
  color: #4f46e5;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 500;
}
.update-title {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  color: #111827;
}
.update-title a {
  color: #111827;
  text-decoration: none;
  transition: color 0.15s;
}
.update-title a:hover { color: #4f46e5; }
.update-summary {
  margin: 0 0 10px;
  font-size: 13px;
  color: #6b7280;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.update-tags {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.update-tag {
  font-size: 12px;
  color: #6366f1;
  background: #f5f3ff;
  padding: 2px 8px;
  border-radius: 4px;
}
.update-actions {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed #e5e7eb;
}
.btn-read-more {
  font-size: 13px;
  color: #4f46e5;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.18s;
}
.btn-read-more:hover {
  color: #1e40af;
  text-decoration: underline;
}
.industry-title-bar {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 20px;
  padding: 14px 18px;
  background: #f9fafb;
  border-radius: 10px;
  border-left: 4px solid #2563eb;
  flex-wrap: wrap;
}
.industry-title-bar h3 { margin: 0; font-size: 18px; color: #111827; }
.industry-meta { color: #6b7280; font-size: 13px; margin-left: auto; }
.industry-section { margin-bottom: 24px; }
.industry-section-header {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 12px;
}
.level-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
}
.level-hint { color: #9ca3af; font-size: 13px; }
.level-core { background: #fef3c7; color: #b45309; }
.level-important { background: #dbeafe; color: #1e40af; }
.level-related { background: #f3f4f6; color: #4b5563; }

/* 类别卡 hover 时显示的说明 tooltip - 浏览器原生 title，无需样式 */

.industry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 4px;
}
@media (max-width: 900px) {
  .industry-grid { grid-template-columns: 1fr; }
}
.industry-col {
  display: flex;
  flex-direction: column;
  background: #f9fafb;
  border-radius: 10px;
  padding: 10px;
  border-top: 3px solid transparent;
  min-height: 200px;
}
.col-core { border-top-color: #f59e0b; background: #fffbeb; }
.col-important { border-top-color: #3b82f6; background: #f0f6ff; }
.col-related { border-top-color: #9ca3af; background: #fafafa; }
.col-header {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e5e7eb;
}
.industry-col .industry-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 6px;
}
.industry-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 8px 10px;
  cursor: pointer;
  transition: all 0.18s;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.industry-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  background: #fafbff;
}
.level-core-card { border-left: 4px solid #f59e0b; }
.level-core-card:hover { border-color: #f59e0b; }
.level-important-card { border-left: 4px solid #3b82f6; }
.level-important-card:hover { border-color: #3b82f6; }
.level-related-card { border-left: 4px solid #9ca3af; }
.level-related-card:hover { border-color: #6b7280; }

.industry-card-no {
  font-size: 11px;
  font-weight: 600;
  color: #2563eb;
  letter-spacing: 0.3px;
  line-height: 1.1;
}
.industry-card-title {
  font-size: 13px;
  font-weight: 600;
  color: #111827;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.industry-card-desc {
  display: none;  /* 列表页不展开，详情里看 */
}
.industry-card-go {
  display: none;  /* 列表页不显示"查看明细"字样 */
}

.hot-cat-card.card-goods:hover {
  background: #fff;
  border-color: var(--color-goods);
}

.hot-cat-card.card-service:hover {
  background: #fff;
  border-color: var(--color-service);
}

.hot-cat-no {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 4px;
}

.hot-cat-card.card-goods .hot-cat-no { color: var(--color-goods); }
.hot-cat-card.card-service .hot-cat-no { color: var(--color-service); }

.hot-cat-name {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 4px;
}

.hot-cat-count {
  font-size: 12px;
  color: var(--color-text-light);
}

/* ===== 全部分类网格 ===== */
.all-categories {
  background: var(--color-card);
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}
@media (min-width: 640px)  { .category-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px)  { .category-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1200px) { .category-grid { grid-template-columns: repeat(5, 1fr); } }
@media (min-width: 1600px) { .category-grid { grid-template-columns: repeat(6, 1fr); } }

.category-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 0;
  cursor: pointer;
  transition: all 0.25s;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}

.category-card.card-goods::before { background: var(--color-goods); }
.category-card.card-service::before { background: var(--color-service); }
/* 使用 banner 后，隐藏原顶部色条 */
.category-card.has-banner::before { display: none; }

.category-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.category-card.card-goods:hover { border-color: var(--color-goods); }
.category-card.card-service:hover { border-color: var(--color-service); }

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

.cat-class-no {
  font-size: 24px;
  font-weight: 700;
}

/* ===== 类别卡片视觉升级（紧凑版）===== */
.cat-card-banner {
  position: relative;
  margin: 0;
  padding: 0 10px;
  border-radius: 10px 10px 0 0;
  background: var(--cat-gradient, linear-gradient(135deg,#94a3b8,#64748b));
  color: #fff;
  overflow: hidden;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.cat-card-banner::after {
  content: '';
  position: absolute;
  top: -20%; right: -10%;
  width: 70px; height: 70px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  pointer-events: none;
}
.cat-emoji {
  font-size: 22px;
  line-height: 1;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.25));
  z-index: 1;
}
.cat-card-banner .cat-class-no {
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
  font-size: 16px;
  font-weight: 600;
  z-index: 1;
}
.cat-card-banner .cat-type-badge {
  position: static;
  background: rgba(255,255,255,0.25);
  color: #fff;
  backdrop-filter: blur(4px);
  z-index: 1;
  margin-left: auto;
}
.category-card.has-banner { padding-top: 0; }

.cat-card-header .cat-type-badge {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 500;
}

.cat-card-header .cat-type-badge { color: var(--color-goods); background: var(--color-goods-light); }

.cat-card.card-service .cat-card-header .cat-type-badge { color: var(--color-service); background: var(--color-service-light); }

.cat-card-body { padding: 8px 12px 4px; flex: 1; margin: 0; }

.cat-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 1px;
  line-height: 1.3;
}

.cat-title-en {
  font-size: 10px;
  color: var(--color-text-light);
}

.cat-card-footer {
  padding: 6px 12px 10px;
  border-top: none;
}

.cat-stat-bar {
  height: 3px;
  background: var(--color-border);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 4px;
}

.cat-stat-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.5s;
}

.cat-card.card-goods .cat-stat-fill { background: var(--color-goods); }
.cat-card.card-service .cat-stat-fill { background: var(--color-service); }

.cat-stat-text {
  font-size: 11px;
  color: var(--color-text-light);
}

/* ===== 详情页头部概览 ===== */
.detail-page { background: transparent; }

.overview-card {
  background: var(--color-card);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: flex-start;
}

.overview-card.card-goods { border-left: 5px solid var(--color-goods); }
.overview-card.card-service { border-left: 5px solid var(--color-service); }

.overview-class-no {
  width: 80px;
  height: 80px;
  background: var(--color-goods);
  color: #fff;
  font-size: 36px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
}

.overview-card.card-service .overview-class-no { background: var(--color-service); }

.overview-title {
  font-size: 14px;
  color: var(--color-text-light);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.overview-type-badge {
  background: var(--color-goods-light);
  color: var(--color-goods);
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 500;
}

.overview-card.card-service .overview-type-badge {
  background: var(--color-service-light);
  color: var(--color-service);
}

.overview-h1 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 2px;
  color: var(--color-text);
}

.overview-en {
  font-size: 14px;
  color: var(--color-text-light);
  margin-bottom: 12px;
}

.overview-note {
  font-size: 13px;
  line-height: 1.7;
  color: var(--color-text-light);
  background: #f9fafb;
  padding: 12px 14px;
  border-radius: 8px;
  border-left: 3px solid var(--color-goods);
}

.overview-right {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
}

.overview-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-num {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-goods);
}

.overview-card.card-service .stat-num { color: var(--color-service); }

.stat-label {
  font-size: 11px;
  color: var(--color-text-light);
}

.btn-export-block {
  background: var(--color-success);
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.2s;
}

.btn-export-block:hover { background: #059669; }

/* 锚点导航（紧凑） */
.anchor-nav {
  background: var(--color-card);
  padding: 8px 12px;
  border-radius: 10px;
  margin-bottom: 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.anchor-title {
  font-size: 12px;
  color: var(--color-text-light);
  font-weight: 500;
}

.anchor-link {
  display: inline-block;
  padding: 2px 8px;
  background: #f3f4f6;
  color: var(--color-text);
  text-decoration: none;
  border-radius: 4px;
  font-size: 11px;
  font-family: monospace;
  cursor: pointer;
  transition: all 0.2s;
}

.anchor-link:hover {
  background: var(--color-goods);
  color: #fff;
}

/* ===== 类似群组列表（紧凑 v4.8） ===== */
.groups-section {
  background: var(--color-card);
  padding: 16px 18px;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.groups-section .section-title { margin-bottom: 12px; }
.groups-section .section-title h2 { font-size: 18px; }
.groups-section .subtitle-hint { font-size: 12px; }

.groups-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.group-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.2s;
}

.group-card:hover {
  border-color: var(--color-goods);
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

.group-card.expanded {
  border-color: var(--color-goods);
  box-shadow: 0 4px 16px rgba(37,99,235,0.1);
}

.group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  min-height: 38px;
  cursor: pointer;
  background: #f9fafb;
  gap: 10px;
}

.group-card.expanded .group-header {
  background: var(--color-goods-light);
}

.group-header:hover {
  background: #f3f4f6;
}

.group-card.expanded .group-header:hover {
  background: #c7d2fe;
}

.group-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.group-toggle {
  color: var(--color-text-light);
  font-size: 10px;
  width: 14px;
  text-align: center;
}

.group-code-large {
  display: inline-block;
  padding: 2px 8px;
  background: var(--color-goods);
  color: #fff;
  border-radius: 4px;
  font-family: monospace;
  font-size: 12px;
  font-weight: 600;
  min-width: 48px;
  text-align: center;
}

.group-name {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--color-text);
}

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

.group-count {
  font-size: 11px;
  color: var(--color-text-light);
  background: #fff;
  padding: 2px 8px;
  border-radius: 12px;
  border: 1px solid var(--color-border);
}

.btn-copy {
  background: #fff;
  color: var(--color-text);
  border: 1px solid var(--color-border);
  padding: 3px 8px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 11px;
  transition: all 0.2s;
}

.btn-copy:hover {
  background: var(--color-goods);
  color: #fff;
  border-color: var(--color-goods);
}

.group-items {
  border-top: 1px solid var(--color-border);
  background: #fff;
}

/* ===== 数据表格（紧凑 v4.8） ===== */
.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: 6px 10px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  line-height: 1.4;
}

.data-table th {
  background: #f9fafb;
  font-weight: 600;
  color: var(--color-text);
  font-size: 12px;
}

.data-table tbody tr:hover {
  background: #f9fafb;
}

.group-items .data-table {
  font-size: 12.5px;
}

.group-items .data-table th {
  background: transparent;
  font-size: 10.5px;
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  padding-top: 7px;
  padding-bottom: 7px;
}

.col-index {
  color: var(--color-text-light);
  font-size: 11.5px;
  font-weight: 500;
}

.col-name {
  color: var(--color-text);
  font-weight: 500;
}

/* ===== 类别胶囊 ===== */
.class-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
}

.class-pill.pill-goods { background: var(--color-goods); }
.class-pill.pill-service { background: var(--color-service); }

.group-code {
  display: inline-block;
  padding: 3px 8px;
  background: #f3f4f6;
  color: var(--color-text);
  border-radius: 4px;
  font-size: 12px;
  font-family: monospace;
  font-weight: 500;
}

.item-code {
  display: inline-block;
  padding: 3px 8px;
  background: var(--color-goods-light);
  color: var(--color-goods);
  border-radius: 4px;
  font-size: 12px;
  font-family: monospace;
  font-weight: 500;
}

.btn-copy-inline {
  background: transparent;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
  padding: 3px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.2s;
}

.btn-copy-inline:hover {
  background: var(--color-primary);
  color: #fff;
}

/* ===== 暂存按钮（行内）===== */
.btn-cart-inline {
  background: #f59e0b;
  color: #fff;
  border: 1px solid #f59e0b;
  padding: 3px 8px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 11px;
  margin-left: 4px;
  transition: all 0.2s;
}
.btn-cart-inline:hover {
  background: #d97706;
  border-color: #d97706;
}
.btn-cart-inline.added {
  background: #10b981;
  border-color: #10b981;
}

/* ===== 按钮 ===== */
.btn-export {
  padding: 8px 16px;
  background: var(--color-success);
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.2s;
}

.btn-export:hover { background: #059669; }

.btn-clear {
  padding: 8px 16px;
  background: #6b7280;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
}

.btn-clear:hover { background: #4b5563; }

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

/* 2026 NCL 13 修订标签 */
.item-tag-ncl13 {
  display: inline-block;
  padding: 1px 6px;
  margin-left: 6px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3px;
  vertical-align: middle;
  line-height: 1.4;
}
.item-tag-new {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
}
.item-tag-mod {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
}
.item-tag-ren {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: #fff;
}
.item-tag-supplement {
  background: #dbeafe;
  color: #1e40af;
  border: 1px solid #93c5fd;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 3px;
  margin-left: 6px;
  font-weight: 500;
}
.row-ncl { background: #f0f9ff; }
.row-ncl:hover { background: #e0f2fe; }
.item-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}
.item-row .item-code { flex-shrink: 0; }
.item-row .item-name { flex: 1; min-width: 0; }

.load-more {
  text-align: center;
  margin-top: 20px;
}

.btn-load-more {
  background: var(--color-card);
  color: var(--color-primary);
  border: 1px dashed var(--color-primary);
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s;
}

.btn-load-more:hover {
  background: var(--color-goods-light);
}

/* ===== 页面头部 ===== */
.page-header {
  background: var(--color-card);
  padding: 20px 24px;
  border-radius: 12px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.page-header h2 {
  font-size: 22px;
  font-weight: 600;
}

.page-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.meta-badge {
  background: var(--color-goods-light);
  color: var(--color-goods);
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 13px;
}

.meta-badge strong {
  font-weight: 700;
  margin: 0 2px;
}

.section-actions {
  margin-left: auto;
}

/* ===== 复制提示 ===== */
.copy-toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-text);
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  z-index: 9999;
  font-size: 14px;
  animation: slideUp 0.3s;
}

@keyframes slideUp {
  from { transform: translate(-50%, 30px); opacity: 0; }
  to { transform: translate(-50%, 0); opacity: 1; }
}

/* ===== 底部 ===== */
.footer {
  background: #1f2937;
  color: #9ca3af;
  padding: 24px 0;
  text-align: center;
}

.footer p { margin-bottom: 6px; }

.footer-link a {
  color: #fff;
  text-decoration: none;
  margin: 0 8px;
}

.footer-link a:hover { text-decoration: underline; }

/* ===== 创建人/联系方式 ===== */
.footer-author {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #374151;
  display: inline-block;
}
.footer-author .author-name {
  font-size: 14px;
  color: #fff;
  font-weight: 500;
  margin-bottom: 4px !important;
}
.footer-author .author-contact {
  font-size: 13px;
  color: #d1d5db;
  margin-bottom: 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
}
.footer-author .contact-icon {
  font-size: 14px;
}
.footer-author .author-contact a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-family: 'SF Mono', Consolas, monospace;
  letter-spacing: 0.5px;
}
.footer-author .author-contact a:hover {
  text-decoration: underline;
  color: #93c5fd;
}
.footer-author .contact-sep {
  color: #6b7280;
  margin: 0 2px;
}
.footer-author .welcome-text {
  color: #fbbf24;
  font-weight: 500;
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
  .header { padding: 24px 0 40px; }
  .logo { font-size: 24px; }
  .subtitle { font-size: 13px; }
  .metrics { gap: 20px; }
  .metric-value { font-size: 22px; }
  .search-box { flex-direction: column; }
  .search-btn { width: 100%; }
  .category-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .hot-categories-grid { grid-template-columns: repeat(2, 1fr); }
  .overview-card { grid-template-columns: 1fr; gap: 16px; }
  .overview-class-no { margin: 0 auto; }
  .overview-right { align-items: center; text-align: center; flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .anchor-nav { padding: 10px; }
  .group-header { flex-wrap: wrap; gap: 8px; }
  .group-name { flex: 1 1 100%; order: 3; }
  .data-table { font-size: 12px; }
  .data-table th, .data-table td { padding: 8px 6px; }
}


/* ===== 暂存箱：浮动按钮 + 抽屉面板 ===== */
.cart-fab {
  position: fixed;
  right: 20px;
  bottom: 24px;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--color-goods);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 22px;
  box-shadow: 0 4px 16px rgba(37,99,235,0.4);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.cart-fab:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 22px rgba(37,99,235,0.5);
}
.cart-fab-count {
  position: absolute;
  top: -4px; right: -4px;
  min-width: 20px; height: 20px;
  border-radius: 10px;
  background: #ef4444;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  border: 2px solid #fff;
}

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.3);
  z-index: 1001;
}

.cart-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 380px;
  background: #fff;
  box-shadow: -4px 0 24px rgba(0,0,0,0.15);
  z-index: 1002;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}
.cart-drawer.open { transform: translateX(0); }

.cart-drawer-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--color-border);
  background: linear-gradient(135deg,#1e40af,#2563eb);
  color: #fff;
}
.cart-drawer-header h3 {
  margin: 0; font-size: 16px; font-weight: 600;
  display: flex; align-items: center; gap: 8px;
}
.cart-count-tag {
  font-size: 12px;
  background: rgba(255,255,255,0.25);
  padding: 2px 10px;
  border-radius: 10px;
  font-weight: 500;
}
.cart-close-btn {
  background: rgba(255,255,255,0.2);
  border: none;
  color: #fff;
  font-size: 22px;
  width: 30px; height: 30px;
  border-radius: 50%;
  cursor: pointer;
  line-height: 1;
}
.cart-close-btn:hover { background: rgba(255,255,255,0.35); }

.cart-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  padding: 32px 20px;
  text-align: center;
}
.cart-empty p { margin: 4px 0; }
.cart-empty-hint { font-size: 12px; line-height: 1.6; }

.cart-list {
  flex: 1;
  list-style: none;
  margin: 0; padding: 8px 0;
  overflow-y: auto;
}
.cart-item {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 16px;
  border-bottom: 1px solid #f3f4f6;
  font-size: 13px;
}
.cart-item:hover { background: #f9fafb; }
.cart-item-idx {
  color: #9ca3af;
  font-size: 11px;
  min-width: 16px;
  text-align: right;
}
.cart-item-code {
  font-family: monospace;
  background: var(--color-goods-light);
  color: var(--color-goods);
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 600;
  flex-shrink: 0;
}
.cart-item-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #1f2937;
}
.cart-item-copy,
.cart-item-remove {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 14px;
  padding: 4px;
  border-radius: 4px;
  flex-shrink: 0;
}
.cart-item-copy { color: #2563eb; }
.cart-item-copy:hover { background: #eff6ff; }
.cart-item-remove { color: #ef4444; font-size: 16px; }
.cart-item-remove:hover { background: #fef2f2; }

.cart-drawer-footer {
  padding: 12px 16px;
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  background: #f9fafb;
}
.cart-fee-hint {
  flex: 1 1 100%;
  margin: 0 0 4px;
  padding: 8px 10px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 6px;
  color: #92400e;
  font-size: 11px;
  line-height: 1.5;
}
.cart-btn-cart-copy-all,
.cart-btn-cart-export,
.cart-btn-cart-clear {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s;
}
.cart-btn-cart-copy-all {
  background: var(--color-goods);
  color: #fff;
}
.cart-btn-cart-copy-all:hover { background: #1d4ed8; }
.cart-btn-cart-export {
  background: #059669;
  color: #fff;
}
.cart-btn-cart-export:hover { background: #047857; }
.cart-btn-cart-clear {
  background: #fff;
  color: #ef4444;
  border: 1px solid #fecaca;
}
.cart-btn-cart-clear:hover { background: #fef2f2; }

@media (max-width: 480px) {
  .cart-fab { right: 14px; bottom: 16px; width: 50px; height: 50px; font-size: 20px; }
  .cart-drawer { width: 92vw; }
}
