/* ================================================
   无人机选型助手 - DroneSelector
   Design: Dark Industrial Theme
   ================================================ */

:root {
  --primary: #0A84FF;
  --primary-dark: #0066CC;
  --primary-glow: rgba(10, 132, 255, 0.2);
  --success: #30D158;
  --success-glow: rgba(48, 209, 88, 0.2);
  --warning: #FF9F0A;
  --danger: #FF453A;
  --bg-primary: #0D1117;
  --bg-secondary: #161B22;
  --bg-tertiary: #21262D;
  --border: #30363D;
  --text-primary: #E6EDF3;
  --text-secondary: #8B949E;
  --text-muted: #6E7681;
  --font-main: 'Inter', 'PingFang SC', 'Microsoft YaHei', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Consolas', monospace;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  --transition: 0.2s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ================================================
   Header
   ================================================ */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo svg {
  filter: drop-shadow(0 0 8px var(--primary-glow));
}

.logo-text {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.header-title h1 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
}

.header-title .subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.header-stats {
  display: flex;
  gap: 32px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.stat-value {
  font-size: 22px;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--primary);
}

.stat-label {
  font-size: 11px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.admin-link {
  padding: 8px 16px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 13px;
  text-decoration: none;
  transition: all var(--transition);
}

.admin-link:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.logo-text-wrapper {
  display: flex;
  flex-direction: column;
}

.logo-text {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.logo-sub {
  font-size: 11px;
  color: var(--primary);
  font-family: var(--font-mono);
  letter-spacing: 1px;
}

/* Sale Badge */
.sale-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 500;
}

.sale-badge.on {
  background: rgba(48, 209, 88, 0.15);
  color: var(--success);
  border: 1px solid rgba(48, 209, 88, 0.3);
}

.sale-badge.off {
  background: var(--bg-tertiary);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.sale-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 10px;
  background: var(--success);
  color: white;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 500;
  text-decoration: none;
  transition: all var(--transition);
  min-height: 24px;
  line-height: 1;
}

.sale-link:hover {
  background: #2ab84f;
  transform: translateY(-1px);
}

/* Buy Button */
.btn-buy {
  flex: 1;
  padding: 8px 12px;
  background: var(--success);
  border: none;
  border-radius: var(--radius-sm);
  color: white;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-main);
}

.btn-buy:hover {
  background: #2ab84f;
  transform: translateY(-1px);
}

/* Buy Buttons Group */
.buy-buttons-group {
  display: flex;
  gap: 6px;
  flex: 1;
  min-width: 0;
}

.buy-buttons-group .btn-buy {
  padding: 8px 10px;
  font-size: 12px;
  white-space: normal;
  line-height: 1.3;
  min-height: 38px;
}

.buy-buttons-group .btn-buy svg {
  display: none;
}

/* Image Buy Buttons */
.image-buy-buttons {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  flex-shrink: 0;
}

.image-buy-buttons .btn-buy {
  width: 100%;
  padding: 6px 4px;
  font-size: 11px;
  white-space: normal;
  line-height: 1.3;
  min-height: 30px;
  text-align: center;
}

.image-buy-buttons .btn-buy svg {
  display: none;
}

.btn-official {
  background: var(--success);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-official:hover {
  background: #2ab84f;
}

.btn-discount {
  background: linear-gradient(135deg, #FF6B35, #F7931E);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
}

.btn-discount:hover {
  background: linear-gradient(135deg, #FF8B55, #FFA33E);
  transform: translateY(-1px);
}

.btn-buy-detail {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: linear-gradient(135deg, var(--success) 0%, #2ab84f 100%);
  border-radius: var(--radius-sm);
  color: white;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition);
}

.btn-buy-detail:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(48, 209, 88, 0.3);
}

/* Detail Buy Buttons Group */
.detail-buy-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.btn-official-detail {
  background: linear-gradient(135deg, var(--success) 0%, #2ab84f 100%);
}

.btn-official-detail:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(48, 209, 88, 0.3);
}

.btn-discount-detail {
  background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
  color: white;
  border: none;
  cursor: pointer;
}

.btn-discount-detail:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(255, 107, 53, 0.3);
}

.btn-detail-sub {
  font-size: 12px;
  opacity: 0.9;
  margin-left: 4px;
  font-weight: 400;
}

/* Discontinued Badge */
.discontinued-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  background: rgba(255, 159, 10, 0.15);
  color: var(--warning);
  border: 1px solid rgba(255, 159, 10, 0.3);
  border-radius: 10px;
  font-size: 11px;
  font-weight: 500;
  margin-left: 6px;
}

.discontinued-badge-large {
  display: inline-flex;
  align-items: center;
  padding: 3px 12px;
  background: rgba(255, 159, 10, 0.15);
  color: var(--warning);
  border: 1px solid rgba(255, 159, 10, 0.3);
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  margin-left: 10px;
}

.discontinued-notice {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(255, 159, 10, 0.1);
  border: 1px solid rgba(255, 159, 10, 0.25);
  border-radius: var(--radius-sm);
  color: var(--warning);
  font-size: 13px;
  margin-bottom: 16px;
}

/* Result Card with Image */
.result-card {
  display: flex;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
  animation: slideIn 0.3s ease both;
}

.result-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(10, 132, 255, 0.15);
}

.result-card-sidebar {
  width: 100px;
  flex-shrink: 0;
  background: var(--bg-tertiary);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

.result-card-image {
  width: 100px;
  height: 50px;
  flex-shrink: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 4px;
  box-sizing: border-box;
}

.result-card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.result-card:hover .result-card-image img {
  transform: scale(1.05);
}

.result-card-noimg {
  font-size: 36px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary) 0%, #5EADFF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.result-card-content {
  flex: 1;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  overflow: hidden;
}

/* Detail Modal Image */
.detail-image-wrapper {
  width: 100%;
  height: 220px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.detail-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Product Table Thumbnail */
.table-product-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

.table-product-thumb {
  width: 48px;
  height: 36px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--border);
}

.table-product-initial {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary) 0%, #5EADFF 100%);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  color: white;
  flex-shrink: 0;
}

.image-count-small {
  position: absolute;
  bottom: -2px;
  right: -2px;
  background: var(--primary);
  color: white;
  font-size: 10px;
  padding: 1px 4px;
  border-radius: 6px;
}

/* Product Type Badge */
.product-type-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  background: rgba(255, 159, 10, 0.15);
  color: var(--warning);
  border: 1px solid rgba(255, 159, 10, 0.3);
  border-radius: 10px;
  font-size: 11px;
  font-weight: 500;
}

.product-type-badge.accessory {
  background: rgba(48, 209, 88, 0.15);
  color: var(--success);
  border-color: rgba(48, 209, 88, 0.3);
}

.product-type-badge.ground {
  background: rgba(255, 159, 10, 0.15);
  color: var(--warning);
  border-color: rgba(255, 159, 10, 0.3);
}

.product-type-badge-small {
  font-size: 10px;
  padding: 1px 6px;
  margin-left: 4px;
}

/* Result Section Title */
.result-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 20px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.result-section-title:first-child {
  margin-top: 0;
}

.section-icon {
  font-size: 20px;
}

/* Result Card Type Variations */
.result-card.type-accessory {
  border-left: 3px solid var(--success);
}

.result-card.type-drone {
  border-left: 3px solid var(--primary);
}

.result-card.type-ground {
  border-left: 3px solid var(--warning);
}

/* Detail Images Gallery */
.detail-images-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.detail-main-image {
  width: 100%;
  height: 280px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.detail-main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-noimage {
  font-size: 48px;
  font-weight: 700;
  color: var(--text-muted);
  background: linear-gradient(135deg, var(--primary) 0%, #5EADFF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.detail-thumbnails {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0;
}

.detail-thumb {
  width: 64px;
  height: 48px;
  object-fit: cover;
  border-radius: 4px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.detail-thumb:hover {
  border-color: var(--primary);
}

.detail-thumb.active {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(10, 132, 255, 0.3);
}

/* Image Count Badge */
.image-count {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  z-index: 2;
}

/* Accessory Row Style */
.accessory-row {
  background: rgba(48, 209, 88, 0.05);
}

.accessory-row:hover {
  background: rgba(48, 209, 88, 0.1);
}

/* Add Product Notice */
.add-product-notice {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(10, 132, 255, 0.1);
  border: 1px solid rgba(10, 132, 255, 0.25);
  border-radius: var(--radius-sm);
  color: var(--primary);
  font-size: 13px;
  margin-bottom: 16px;
}

/* ================================================
   Header 右侧
   ================================================ */
.header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.header-buttons {
  display: flex;
  gap: 8px;
}

.header-stats-inline {
  display: flex;
  gap: 20px;
  padding: 8px 16px;
  background: var(--bg-secondary);
  border-radius: 8px;
}

.stat-item-inline {
  display: flex;
  align-items: center;
  gap: 6px;
}

.stat-item-inline .stat-value {
  font-size: 16px;
  font-weight: 600;
  color: var(--primary);
}

.stat-item-inline .stat-label {
  font-size: 13px;
  color: var(--text-secondary);
}

/* ================================================
   Footer 双栏布局
   ================================================ */
.footer {
  padding: 24px 32px;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 60;
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  max-width: 1400px;
  margin: 0 auto;
}

/* 左侧品牌区 */
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-logo-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.footer-brand-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.footer-services {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.footer-service-tag {
  font-size: 11px;
  padding: 2px 8px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-secondary);
  flex-shrink: 0;
  white-space: nowrap;
}

/* 合作单位区域容器 - 两行更紧凑 */
.footer-partners-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 2px;
}

.footer-partners {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 0;
}

.footer-partners-title {
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 500;
  white-space: nowrap;
}

.footer-partner-item {
  font-size: 11px;
  padding: 2px 9px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(147, 51, 234, 0.1) 100%);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 12px;
  color: var(--text-primary);
  font-weight: 500;
  flex-shrink: 0;
  white-space: nowrap;
}

/* 检验检测单位用不同强调色 */
.footer-partners.footer-partners-inspection .footer-partner-item {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(6, 182, 212, 0.08) 100%);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: var(--text-primary);
}

.footer-legal {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.footer-copy {
  font-size: 11px;
  color: var(--text-muted);
  margin: 0;
}

.footer-icp {
  font-size: 11px;
  color: var(--text-muted);
  margin: 0;
}

.footer-websites {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}

.footer-website-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(6, 182, 212, 0.08) 100%);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 14px;
  text-decoration: none;
  transition: all var(--transition);
  flex-shrink: 0;
  white-space: nowrap;
}

.footer-website-link:hover {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(6, 182, 212, 0.15) 100%);
  border-color: rgba(16, 185, 129, 0.4);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}

.footer-website-icon {
  font-size: 14px;
  line-height: 1;
}

.footer-website-name {
  font-size: 11px;
  color: var(--text-primary);
  font-weight: 500;
  white-space: nowrap;
}

/* 右侧公众号二维码 */
.footer-qr {
  flex-shrink: 0;
}

.footer-qr-card {
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-tertiary);
  transition: all 0.3s ease;
}

.footer-qr-card:hover {
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(10, 132, 255, 0.1);
}

.footer-qr-image {
  width: 70px;
  height: 70px;
  border-radius: 8px;
  object-fit: contain;
  border: 1px solid var(--border);
  background: white;
  flex-shrink: 0;
}

/* 二维码大图容器 */
.footer-qr-enlarged-wrapper {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  pointer-events: none;
}

.footer-qr-enlarged-wrapper img {
  width: 200px;
  height: 200px;
  padding: 10px;
  background: white;
  border: 2px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* 默认隐藏 */
.footer-qr-enlarged-wrapper {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* 悬停时显示 */
.footer-qr-card:hover .footer-qr-enlarged-wrapper {
  opacity: 1;
  visibility: visible;
}

.footer-qr-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-qr-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.footer-qr-desc {
  font-size: 11px;
  color: var(--text-secondary);
}

.footer p {
  font-size: 12px;
  color: var(--text-muted);
}

.footer a {
  color: var(--primary);
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}





/* ================================================
   Main Layout - 默认样式（用于 wrj.html 等页面）
   ================================================ */
.main-content {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 24px;
  padding: 24px 32px;
}

.left-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 24px;
  align-self: start;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding-right: 8px;
}

.right-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ================================================
   AI Pro Page Layout (AI 产品选型页面 - 特殊布局)
   ================================================ */
body.aipro-page .main-content {
  display: block; /* AI产品选型使用flex/自定义布局，不使用grid */
  grid-template-columns: none;
  padding: 0;
}

body.aipro-page .left-panel {
  display: none;
}

body.aipro-page .right-panel {
  display: block;
}

/* ================================================
   FZ Page Layout (无人机反制设备页面)
   ================================================ */
body.fz-page .main-content {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 24px;
  padding: 24px 32px;
}

body.fz-page .left-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 24px;
  align-self: start;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding-right: 8px;
}

body.fz-page .right-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ================================================
   WRJ Page Layout (无人机干扰设备页面)
   ================================================ */
body.wrj-page .main-content {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 24px;
  padding: 24px 32px;
}

body.wrj-page .left-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 24px;
  align-self: start;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding-right: 8px;
}

body.wrj-page .right-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ================================================
   Robot Page Layout (机器人设备页面)
   ================================================ */
body.robot-page .main-content {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 24px;
  padding: 24px 32px;
}

body.robot-page .left-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 24px;
  align-self: start;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding-right: 8px;
}

body.robot-page .right-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ================================================
   FZ Page Warning Banner
   ================================================ */
.results-warning-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: linear-gradient(135deg, #FF453A 0%, #FF6B35 100%);
  border-radius: 8px;
  border: 1px solid #FF453A;
  box-shadow: 0 2px 8px rgba(255, 69, 58, 0.2);
  margin-bottom: 16px;
}

.warning-icon-red {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: white;
  font-weight: bold;
  font-size: 16px;
}

.warning-text-red {
  flex: 1;
  font-size: 13px;
  color: white;
  font-weight: 500;
  line-height: 1.5;
}

/* 手机版样式 */
@media (max-width: 767px) {
  .results-warning-banner {
    padding: 10px 12px;
    gap: 8px;
  }

  .warning-icon-red {
    width: 24px;
    height: 24px;
    font-size: 14px;
  }

  .warning-text-red {
    font-size: 12px;
  }
}

.left-panel::-webkit-scrollbar {
  width: 6px;
}

.left-panel::-webkit-scrollbar-track {
  background: var(--bg-tertiary);
  border-radius: 3px;
}

.left-panel::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

.left-panel::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

.right-panel {
  display: none; /* AI 产品选型页面隐藏右侧面板 */
}

/* 左侧面板可滚动容器 */
.left-panel-collapsible {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ================================================
   Panel Card
   ================================================ */
.panel-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: border-color var(--transition);
}

.panel-card:hover {
  border-color: var(--primary);
}

.panel-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0;
}

/* ================================================
   Requirement Input
   ================================================ */
.requirement-textarea {
  width: 100%;
  min-height: 140px;
  padding: 14px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 14px;
  line-height: 1.6;
  resize: vertical;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.requirement-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.requirement-textarea::placeholder {
  color: var(--text-muted);
}

.textarea-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  gap: 8px;
  flex-wrap: nowrap;
}

.char-count {
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  flex-shrink: 0;
}

.textarea-buttons {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-shrink: 0;
}

.textarea-buttons .btn-primary,
.textarea-buttons .btn-secondary {
  padding: 7px 14px;
  font-size: 12px;
  width: auto;
  min-width: auto;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 0;
}

.textarea-buttons .btn-primary svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ================================================
   Filter Chips
   ================================================ */
.filter-group {
  margin: 0 0 16px 0;
  padding: 12px;
  background: var(--bg-tertiary);
  border-radius: 8px;
  border: 1px solid var(--border);
}

.filter-group:last-child {
  margin-bottom: 0;
}

.filter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.filter-label {
  font-size: 13px;
  color: var(--text-primary);
  font-weight: 600;
  letter-spacing: 0.3px;
}

.filter-actions {
  display: flex;
  gap: 4px;
}

.filter-sort-btn,
.filter-expand-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text-secondary);
  padding: 4px;
  transition: all var(--transition);
  font-size: 10px;
  font-weight: 600;
}

.filter-sort-btn:hover,
.filter-expand-btn:hover {
  color: var(--primary);
  background: rgba(10, 132, 255, 0.1);
  border-radius: 4px;
}

.filter-sort-btn svg {
  transition: transform 0.2s;
}

.filter-sort-btn[data-sort-asc="true"] svg {
  transform: rotate(180deg);
}

.filter-sort-btn[data-sort-desc="true"] svg {
  transform: rotate(0deg);
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  padding: 6px 14px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text-secondary);
  font-size: 13px;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-main);
}

.chip:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.chip.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  box-shadow: 0 0 12px var(--primary-glow);
}

/* 行业分类层级样式 */
.industry-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.industry-filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.chip-parent {
  padding: 6px 12px;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 16px;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}

.chip-parent:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--bg-tertiary);
}

.chip-parent.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  box-shadow: 0 0 12px var(--primary-glow);
}

.industry-filter-children {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-left: 12px;
}

.chip-child {
  padding: 5px 12px;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 16px;
  color: var(--text-secondary);
  font-size: 12px;
  cursor: pointer;
  transition: all var(--transition);
}

.chip-child:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.chip-child.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  box-shadow: 0 0 12px var(--primary-glow);
}

.filter-more-btn {
  width: 100%;
  margin-top: 8px;
  padding: 6px 12px;
  background: transparent;
  border: 1px dashed var(--border);
  border-radius: 20px;
  color: var(--text-secondary);
  font-size: 12px;
  cursor: pointer;
  transition: all var(--transition);
}

.filter-more-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(10, 132, 255, 0.05);
}

/* ================================================
   Buttons
   ================================================ */
.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px 24px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border: none;
  border-radius: var(--radius-sm);
  color: white;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-main);
  margin-top: 8px;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px var(--primary-glow);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 24px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 14px;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-main);
  margin-top: 8px;
}

.btn-secondary:hover {
  border-color: var(--text-secondary);
  color: var(--text-primary);
}

.btn-icon {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 2px 14px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 13px;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-main);
}

.btn-icon:hover:not(:disabled) {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-icon:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* 参数对比按钮激活态（已选 ≥2 款时） */
.compare-btn-active {
  background: linear-gradient(135deg, rgba(10, 132, 255, 0.15) 0%, rgba(100, 210, 255, 0.1) 100%) !important;
  border-color: var(--primary) !important;
  color: var(--primary) !important;
  font-weight: 600;
}

.compare-btn-active:hover {
  background: linear-gradient(135deg, rgba(10, 132, 255, 0.25) 0%, rgba(100, 210, 255, 0.18) 100%) !important;
  box-shadow: 0 2px 8px rgba(10, 132, 255, 0.2);
  transform: translateY(-1px);
}

.btn-add-param {
  padding: 6px 12px;
  background: transparent;
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 13px;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-main);
}

.btn-add-param:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* ================================================
   Results
   ================================================ */
.results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 20px;
  margin-bottom: 0;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.results-actions {
  display: flex;
  gap: 8px;
}

.result-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 8px;
  background: var(--success);
  border-radius: 12px;
  color: white;
  font-size: 12px;
  font-weight: 600;
  margin-left: 8px;
}

.results-list {
  flex: 1;
  overflow-y: auto;
  padding-right: 8px;
}

.results-list::-webkit-scrollbar {
  width: 6px;
}

.results-list::-webkit-scrollbar-track {
  background: var(--bg-secondary);
  border-radius: 3px;
}

.results-list::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

/* Empty State */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 40px;
  text-align: center;
  background: var(--bg-secondary);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}

.empty-state p {
  color: var(--text-secondary);
  margin: 20px 0;
  font-size: 14px;
}

.example-requirements {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
}

.example-requirements span {
  color: var(--text-muted);
  font-size: 12px;
}

.example-chip {
  padding: 6px 12px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 16px;
  color: var(--text-secondary);
  font-size: 12px;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-main);
}

.example-chip:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* ── 不满足关键项警告横幅 ── */
.card-warning-banner {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  width: 100%;
  background: rgba(255, 69, 58, 0.1);
  border: 1px solid rgba(255, 69, 58, 0.35);
  border-radius: 8px;
  padding: 7px 12px;
  margin-bottom: 10px;
  font-size: 12px;
  color: #FF6B6B;
  font-weight: 500;
  line-height: 1.5;
  box-sizing: border-box;
}

.result-card.has-warnings {
  border-left: 3px solid #FF453A !important;
  opacity: 0.85;
}

.result-card.has-warnings:hover {
  opacity: 1;
}

/* Result Cards */
.result-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: all var(--transition);
  opacity: 0;
  transform: translateY(10px);
  animation: fadeInUp 0.4s ease forwards;
}

.result-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.result-card:nth-child(1) { animation-delay: 0ms; }
.result-card:nth-child(2) { animation-delay: 80ms; }
.result-card:nth-child(3) { animation-delay: 160ms; }
.result-card:nth-child(4) { animation-delay: 240ms; }
.result-card:nth-child(5) { animation-delay: 320ms; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.result-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 8px;
}

.result-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.result-logo {
  width: 36px;
  height: 36px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  border: 1px solid var(--border);
}

.result-info h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.result-info .brand-name {
  font-size: 12px;
  color: var(--text-secondary);
}

.match-score {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.match-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.match-value {
  font-size: 28px;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--success);
  line-height: 1;
}

.match-value::after {
  content: '%';
  font-size: 16px;
  color: var(--text-secondary);
}

.match-bar {
  width: 80px;
  height: 4px;
  background: var(--bg-tertiary);
  border-radius: 2px;
  overflow: hidden;
}

.match-bar-fill {
  height: 100%;
  background: var(--success);
  border-radius: 2px;
  animation: fillBar 0.6s ease-out forwards;
  transform-origin: left;
}

@keyframes fillBar {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.result-params {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}

.param-tag {
  padding: 2px 8px;
  background: var(--bg-tertiary);
  border-radius: 4px;
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.param-tag.highlight {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(10, 132, 255, 0.08);
}

/* 特殊参数标签样式 */
.result-special-params {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.param-temperature {
  background: rgba(255, 149, 0, 0.1);
  border-color: rgba(255, 149, 0, 0.3);
  color: #FF9500;
}

.param-precision {
  background: rgba(94, 92, 230, 0.1);
  border-color: rgba(94, 92, 230, 0.3);
  color: #5E5CE6;
  font-weight: 500;
}

.param-nav {
  background: rgba(48, 209, 88, 0.1);
  border-color: rgba(48, 209, 88, 0.3);
  color: #30D158;
}

.param-accuracy {
  background: rgba(255, 45, 85, 0.1);
  border-color: rgba(255, 45, 85, 0.3);
  color: #FF2D55;
  font-weight: 500;
}

/* 新增标签样式 */
.price-tag {
  background: rgba(255, 159, 10, 0.1);
  border-color: rgba(255, 159, 10, 0.3);
  color: #FF9F0A;
  font-weight: 500;
}

.monthly-sales-tag {
  background: rgba(52, 199, 89, 0.1);
  border-color: rgba(52, 199, 89, 0.3);
  color: #34C759;
}

.sales-rank-tag {
  background: rgba(255, 204, 0, 0.15);
  border-color: rgba(255, 204, 0, 0.4);
  color: #FFCC00;
  font-weight: 500;
}

.status-tag {
  font-weight: 500;
}

.status-on-sale {
  background: rgba(48, 209, 88, 0.1);
  border-color: rgba(48, 209, 88, 0.3);
  color: #30D158;
}

.status-stopped {
  background: rgba(142, 142, 147, 0.1);
  border-color: rgba(142, 142, 147, 0.3);
  color: #8E8E93;
}

.result-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.result-price {
  font-size: 18px;
  font-weight: 600;
  color: var(--primary);
  font-family: var(--font-mono);
}

.btn-view-details {
  padding: 6px 14px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-view-details:hover {
  background: #0066CC;
}

/* 需求满足情况样式 */
.requirement-match-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
  padding: 10px;
  background: var(--bg-tertiary);
  border-radius: 6px;
  border: 1px solid var(--border);
}

.match-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.match-group-title {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 3px;
  flex-shrink: 0;
}

.match-group.satisfied .match-group-title {
  background: var(--success-bg);
  color: var(--success);
}

.match-group.not-satisfied .match-group-title {
  background: var(--danger-bg);
  color: var(--danger);
}

.match-group.uncertain .match-group-title {
  background: var(--warning-bg);
  color: var(--warning);
}

.match-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  transition: all var(--transition);
}

.match-item.satisfied {
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid var(--success);
}

.match-item.satisfied:hover {
  background: var(--success);
  color: white;
}

.match-item.not-satisfied {
  background: var(--danger-bg);
  color: var(--danger);
  border: 1px solid var(--danger);
}

.match-item.not-satisfied:hover {
  background: var(--danger);
  color: white;
}

.match-item.uncertain {
  background: var(--warning-bg);
  color: var(--warning);
  border: 1px solid var(--warning);
}

.match-item.uncertain:hover {
  background: var(--warning);
  color: white;
}

.match-item-label {
  font-weight: 500;
}

.match-item-value {
  font-family: var(--font-mono);
  font-size: 10px;
}

.result-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.industry-tag {
  padding: 3px 10px;
  background: rgba(10, 132, 255, 0.15);
  border: 1px solid rgba(10, 132, 255, 0.3);
  border-radius: 12px;
  font-size: 11px;
  color: var(--primary);
}

.result-reason {
  padding: 8px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
  border-left: 3px solid var(--primary);
  margin-bottom: 8px;
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}

.result-reason strong {
  color: var(--primary);
}

.result-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  padding: 8px;
}

.result-actions button {
  flex: 0 0 auto;
  padding: 6px 4px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-main);
  width: 100%;
  min-height: 30px;
  text-align: center;
}

.result-actions .btn-detail {
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.result-actions .btn-detail:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.result-actions .btn-compare {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.result-actions .btn-compare:hover {
  border-color: var(--warning);
  color: var(--warning);
}


.result-actions .btn-param-error {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a5a 100%);
  border: none;
  color: white;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.result-actions .btn-param-error:hover {
  background: linear-gradient(135deg, #fa5252 0%, #e03131 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
}

.result-actions .btn-param-error:active {
  transform: translateY(0);
}

/* ================================================
   Results Disclaimer
   ================================================ */
.results-disclaimer {
  margin-top: 2px;
  padding: 12px 16px;
  background: rgba(255, 159, 10, 0.1);
  border: 1px solid rgba(255, 159, 10, 0.3);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-secondary);
}

.results-disclaimer svg {
  color: var(--warning);
  flex-shrink: 0;
}

/* ================================================
   Feedback Modal
   ================================================ */
.modal-feedback {
  max-width: 600px;
}

.feedback-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.feedback-product-info {
  padding: 16px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.feedback-product-info h4 {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 12px;
  font-weight: 500;
}

.feedback-product-detail {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  font-size: 14px;
}

.feedback-product-detail:last-child {
  margin-bottom: 0;
}

.feedback-label {
  color: var(--text-muted);
  min-width: 50px;
}

.feedback-value {
  color: var(--text-primary);
  font-weight: 500;
}

.feedback-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feedback-form h4 {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  font-weight: 500;
}

.feedback-checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.feedback-checkbox {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-secondary);
  padding: 6px 12px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.feedback-checkbox:hover {
  border-color: var(--primary);
  background: rgba(10, 132, 255, 0.1);
}

.feedback-checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: var(--primary);
}

.feedback-textarea {
  width: 100%;
  min-height: 120px;
  padding: 12px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 14px;
  font-family: var(--font-main);
  resize: vertical;
  transition: all var(--transition);
}

.feedback-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.2);
}

.feedback-textarea::placeholder {
  color: var(--text-muted);
}

.feedback-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.feedback-contact input[type="text"] {
  width: 100%;
  padding: 10px 12px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 14px;
  transition: all var(--transition);
}

.feedback-contact input[type="text"]:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.2);
}

.feedback-contact input[type="text"]:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.feedback-contact input[type="text"]::placeholder {
  color: var(--text-muted);
}

.feedback-submit {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.feedback-submit button {
  flex: 1;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
}

.feedback-submit .btn-primary {
  background: var(--primary);
  color: white;
}

.feedback-submit .btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.feedback-submit .btn-secondary {
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.feedback-submit .btn-secondary:hover {
  border-color: var(--text-muted);
  color: var(--text-primary);
}

.feedback-notice {
  padding: 12px;
  background: rgba(48, 209, 88, 0.1);
  border: 1px solid rgba(48, 209, 88, 0.3);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-secondary);
}

.feedback-notice p {
  margin: 0;
}

/* 推荐反馈专用样式 */
.feedback-search-info,
.feedback-filter-info {
  padding: 16px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.feedback-search-info h4,
.feedback-filter-info h4 {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 12px;
  font-weight: 500;
}

.feedback-search-content,
.feedback-filter-content {
  font-size: 14px;
  color: var(--text-primary);
  line-height: 1.6;
}

.feedback-filter-content:empty::before {
  content: '无筛选条件';
  color: var(--text-muted);
  font-style: italic;
}

.feedback-form .required {
  color: #ff4d4f;
  margin-left: 4px;
}

.feedback-form .optional {
  color: var(--text-muted);
  font-weight: 400;
  margin-left: 4px;
}

.feedback-hint {
  margin: 4px 0 0 0;
  font-size: 12px;
  color: var(--text-muted);
}

.feedback-contact-input {
  width: 100%;
  padding: 10px 12px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 14px;
  transition: all var(--transition);
}

.feedback-contact-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.2);
}

.feedback-contact-input::placeholder {
  color: var(--text-muted);
}

/* 按钮警告样式（推荐不准按钮） */
.btn-warning {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a5a 100%) !important;
  border: none;
  color: white !important;
}

.btn-warning:hover {
  background: linear-gradient(135deg, #fa5252 0%, #e03131 100%) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

.btn-warning:active {
  transform: translateY(0);
}

.btn-warning:disabled {
  background: var(--border) !important;
  color: var(--text-muted) !important;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ================================================
   Discount Modal
   ================================================ */
.modal-discount {
  max-width: 500px;
}

.discount-body {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 24px;
}

.discount-product-info {
  padding: 16px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.discount-product-info h4 {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0 0 12px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.discount-product-detail {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.discount-product-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.discount-product-price {
  font-size: 20px;
  font-weight: 700;
  color: var(--warning);
  font-family: var(--font-mono);
}

.discount-qr-section {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.discount-qr-wrapper {
  flex-shrink: 0;
  width: 180px;
  height: 180px;
  background: white;
  border-radius: var(--radius-sm);
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.discount-qr-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.discount-qr-fallback {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--text-muted);
  text-align: center;
}

.discount-qr-fallback svg {
  opacity: 0.5;
  margin-bottom: 8px;
}

.discount-qr-fallback-text {
  font-size: 12px;
  margin: 0;
}

.discount-tips {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.discount-tip-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.discount-tip-item svg {
  flex-shrink: 0;
  color: var(--primary);
  margin-top: 2px;
}

/* ================================================
   Pagination
   ================================================ */
.pagination-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  margin-top: 0;
}

.pagination-info {
  font-size: 13px;
  color: var(--text-secondary);
}

.pagination-controls {
  display: flex;
  align-items: center;
  gap: 4px;
}

.pagination-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 13px;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-main);
}

.pagination-btn:hover:not(.disabled) {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(10, 132, 255, 0.1);
}

.pagination-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  font-weight: 600;
}

.pagination-btn.active:hover {
  background: var(--primary-dark);
}

.pagination-btn.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.pagination-btn svg {
  width: 14px;
  height: 14px;
}

.pagination-ellipsis {
  padding: 0 4px;
  color: var(--text-muted);
  font-size: 13px;
}

/* 响应式分页 */
@media (max-width: 900px) {
  .pagination-wrapper {
    flex-direction: column;
    gap: 12px;
  }

  .pagination-controls {
    width: 100%;
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 4px;
  }

  .pagination-btn {
    min-width: 36px;
    height: 36px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .pagination-wrapper {
    padding: 12px;
  }

  .pagination-info {
    font-size: 12px;
  }

  .pagination-btn {
    min-width: 32px;
    height: 32px;
    font-size: 12px;
    padding: 0 6px;
  }

  .pagination-ellipsis {
    font-size: 12px;
  }
}

/* ================================================
   Bottom Panel (Product Management)
   ================================================ */
.bottom-panel {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  z-index: 50;
  transition: transform 0.3s ease;
}

.bottom-panel.collapsed .panel-content {
  display: none;
}

.bottom-panel.collapsed .panel-toggle svg {
  transform: rotate(0deg);
}

.bottom-panel:not(.collapsed) .panel-toggle svg {
  transform: rotate(180deg);
}

.panel-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  transition: color var(--transition);
}

.panel-toggle:hover {
  color: var(--text-primary);
}

.panel-toggle svg {
  transition: transform 0.3s ease;
}

.panel-content {
  max-height: 400px;
  padding: 0 32px 24px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.panel-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
  flex-shrink: 0;
}

/* 产品库筛选器 */
.product-library-filters,
.admin-product-filters {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.filter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  cursor: pointer;
  user-select: none;
}

.filter-header:hover {
  background: var(--bg-tertiary);
}

.filter-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

.filter-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
}

.filter-toggle-btn:hover {
  background: var(--bg-tertiary);
  border-color: var(--text-muted);
  color: var(--text-primary);
}

.filter-content {
  padding: 6px 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.product-library-filters.collapsed .filter-content,
.admin-product-filters.collapsed .filter-content {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0;
}

.product-library-filters:not(.collapsed) .filter-content,
.admin-product-filters:not(.collapsed) .filter-content {
  max-height: 200px;
  opacity: 1;
}

.toggle-icon-expand,
.toggle-icon-collapse {
  transition: opacity 0.2s ease;
}

.product-library-filters.collapsed .toggle-icon-expand,
.admin-product-filters.collapsed .toggle-icon-expand {
  display: block;
  opacity: 1;
}

.product-library-filters.collapsed .toggle-icon-collapse,
.admin-product-filters.collapsed .toggle-icon-collapse {
  display: none;
  opacity: 0;
}

.product-library-filters:not(.collapsed) .toggle-icon-expand,
.admin-product-filters:not(.collapsed) .toggle-icon-expand {
  display: none;
  opacity: 0;
}

.product-library-filters:not(.collapsed) .toggle-icon-collapse,
.admin-product-filters:not(.collapsed) .toggle-icon-collapse {
  display: block;
  opacity: 1;
}

.filter-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 12px;
  align-items: start;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.filter-group label {
  font-size: 10px;
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: 0;
  white-space: nowrap;
}

.filter-select {
  padding: 5px 8px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-primary);
  font-size: 12px;
  font-family: var(--font-main);
  width: 100%;
  height: 28px;
}

.filter-select:focus {
  outline: none;
  border-color: var(--primary);
}

.filter-input {
  padding: 5px 8px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-primary);
  font-size: 12px;
  font-family: var(--font-main);
  width: 100%;
  height: 28px;
}

.filter-input:focus {
  outline: none;
  border-color: var(--primary);
}

.filter-input::placeholder {
  color: var(--text-muted);
}

.filter-reset-btn {
  padding: 6px 12px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-secondary);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.filter-reset-btn:hover {
  border-color: var(--danger);
  color: var(--danger);
}

.search-input-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: border-color var(--transition);
}

.search-input-wrapper:focus-within {
  border-color: var(--primary);
}

.search-icon {
  color: var(--text-muted);
  flex-shrink: 0;
}

.product-library-search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 13px;
  min-width: 0;
}

.product-library-search-input::placeholder {
  color: var(--text-muted);
}

.search-clear-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: transparent;
  border: none;
  border-radius: 4px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
  flex-shrink: 0;
}

.search-clear-btn:hover {
  background: var(--border);
  color: var(--text-secondary);
}

.tab-btn {
  padding: 8px 16px;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  color: var(--text-secondary);
  font-size: 13px;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-main);
  position: relative;
}

.tab-btn:hover {
  color: var(--text-primary);
}

.tab-btn.active {
  color: var(--primary);
  background: rgba(10, 132, 255, 0.1);
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -13px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

/* Product Table */
.product-table-wrapper {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.product-table-wrapper > .table-scroll-container {
  flex: 1;
  overflow: auto;
  min-height: 0;
}

.product-table-wrapper table {
  width: 100%;
}

.product-table-wrapper .pagination-wrapper {
  flex-shrink: 0;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* 产品库底部链接区域 */
.panel-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  font-size: 12px;
  color: var(--text-secondary);
  border-top: 1px solid var(--border);
  background: var(--bg-secondary);
}

.panel-links a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}

.panel-links a:hover {
  text-decoration: underline;
  color: var(--primary-hover);
}

.panel-link-sep {
  color: var(--border);
}

/* Product Library Filters */
.product-library-filters {
  padding: 12px 16px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
}

.filter-row {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  margin-bottom: 12px;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.filter-group label {
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 500;
}

.filter-select {
  padding: 6px 10px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-primary);
  font-size: 12px;
  font-family: var(--font-main);
  min-width: 120px;
  cursor: pointer;
}

.filter-select:focus {
  outline: none;
  border-color: var(--primary);
}

.filter-reset-btn {
  margin-left: auto;
  padding: 6px 12px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-secondary);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-reset-btn:hover {
  border-color: var(--danger);
  color: var(--danger);
}

/* Table Sorting */
.product-table th.sortable {
  cursor: pointer;
  user-select: none;
  position: relative;
}

.product-table th.sortable:hover {
  background: var(--bg-tertiary);
}

.sort-indicator {
  margin-left: 4px;
  opacity: 0.3;
  font-size: 10px;
}

.product-table th.sortable.asc .sort-indicator::after {
  content: '↑';
  opacity: 1;
}

.product-table th.sortable.desc .sort-indicator::after {
  content: '↓';
  opacity: 1;
}

.product-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.product-table th {
  text-align: left;
  padding: 12px 8px;
  color: var(--text-secondary);
  font-weight: 500;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  vertical-align: middle;
}

.product-table td {
  padding: 12px 8px;
  border-bottom: 1px solid var(--border);
  color: var(--text-primary);
  vertical-align: middle;
}

.product-table td:has(.sale-link),
.product-table td:has(.edit-btn),
.product-table td:has(.delete-btn),
.table-actions {
  vertical-align: middle;
}

.product-table tbody tr:hover {
  background: var(--bg-tertiary);
}

.product-table input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
  cursor: pointer;
}

.table-actions {
  display: flex;
  gap: 8px;
}

.table-actions button {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-main);
}

.table-actions .edit-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  min-height: 24px;
  line-height: 1;
}

.table-actions .edit-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.table-actions .delete-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.table-actions .delete-btn:hover {
  border-color: var(--danger);
  color: var(--danger);
}

/* Upload Form */
.upload-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group.full {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 10px 12px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 13px;
  font-family: var(--font-main);
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.params-section {
  background: var(--bg-tertiary);
  border-radius: var(--radius-sm);
  padding: 16px;
}

.params-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}

.params-groups {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.param-group {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
}

.param-group-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
}

.param-group-header input {
  flex: 1;
  padding: 8px 12px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 13px;
  font-family: var(--font-main);
}

.param-group-header button {
  padding: 8px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--danger);
  cursor: pointer;
  transition: all var(--transition);
  font-size: 16px;
}

.param-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.param-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 8px;
  align-items: center;
}

.param-row input {
  padding: 8px 12px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 13px;
  font-family: var(--font-main);
}

.param-row input:focus {
  outline: none;
  border-color: var(--primary);
}

.param-row .remove-param {
  padding: 6px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 14px;
  transition: all var(--transition);
}

.param-row .remove-param:hover {
  border-color: var(--danger);
  color: var(--danger);
}

.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.form-actions .btn-primary,
.form-actions .btn-secondary {
  width: auto;
  padding: 12px 32px;
}

/* Batch Upload */
.batch-upload-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  text-align: center;
  transition: all var(--transition);
}

.batch-upload-area.dragover {
  border-color: var(--primary);
  background: var(--primary-glow);
}

.batch-upload-area p {
  margin: 16px 0 12px;
  color: var(--text-secondary);
  font-size: 14px;
}

.upload-link {
  color: var(--primary);
  cursor: pointer;
  text-decoration: underline;
}

.batch-preview {
  margin-top: 20px;
}

.batch-preview h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.batch-preview p {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.preview-table-wrapper {
  max-height: 300px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.batch-actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.batch-actions .btn-primary,
.batch-actions .btn-secondary {
  width: auto;
  padding: 12px 32px;
}

/* Param Mapping */
.mapping-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding: 12px 16px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-sm);
}

.mapping-info p {
  font-size: 13px;
  color: var(--text-secondary);
}

.mapping-stats {
  display: flex;
  gap: 20px;
  font-size: 13px;
}

.mapping-stats strong {
  color: var(--primary);
}

.mapping-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mapping-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-sm);
}

.mapping-arrow {
  color: var(--text-muted);
  font-size: 16px;
}

.mapping-row select {
  padding: 8px 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 13px;
  font-family: var(--font-main);
  min-width: 150px;
}

.merge-toggle {
  padding: 4px 8px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 14px;
  transition: all var(--transition);
}

.merge-toggle:hover {
  border-color: var(--success);
  color: var(--success);
}

/* ================================================
   Modal
   ================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}

.modal-overlay.active {
  display: flex !important;
}

.modal {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: 100%;
  max-width: 600px;
  max-height: 85vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: modalIn 0.3s ease;
}

.modal-wide {
  max-width: 1000px;
}

.modal-discount {
  max-width: 500px;
}

.discount-modal-content {
  display: flex;
  gap: 30px;
  padding: 24px;
}

.discount-product-info h4 {
  margin: 0 0 8px 0;
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
}

.discount-brand {
  margin: 0 0 20px 0;
  font-size: 14px;
  color: var(--text-muted);
}

.discount-price {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.discount-label {
  font-size: 14px;
  color: var(--text-secondary);
  min-width: 60px;
}

.price-official {
  font-size: 18px;
  color: var(--text-muted);
  text-decoration: line-through;
  font-family: var(--font-mono);
}

.price-discount {
  font-size: 24px;
  font-weight: 700;
  color: #FF453A;
  font-family: var(--font-mono);
}

.discount-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  background: rgba(255, 69, 58, 0.1);
  color: #FF453A;
  border: 1px solid rgba(255, 69, 58, 0.3);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
}

.discount-qrcode {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  min-width: 160px;
}

.qrcode-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: white;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.qrcode-tip {
  margin: 0;
  font-size: 12px;
  color: var(--text-secondary);
  text-align: center;
}

/* ================================================
   Product Detail Modal
   ================================================ */
.product-detail-container {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 30px;
}

.product-detail-images {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-image {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
}

.product-detail-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.product-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.product-detail-header h2 {
  margin: 0 0 8px 0;
  font-size: 24px;
  font-weight: 600;
  color: var(--text-primary);
}

.product-detail-header > div > p {
  margin: 0 0 12px 0;
  font-size: 14px;
  color: var(--text-muted);
}

.product-detail-price {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
  font-family: var(--font-mono);
  flex-shrink: 0;
}

.product-detail-description h4,
.product-detail-params h4 {
  margin: 0 0 12px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.product-detail-description p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.params-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.param-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.param-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
}

.param-value {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

.no-images {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
  font-size: 14px;
}

/* ================================================
   Compare Modal
   ================================================ */
.compare-table-container {
  overflow-x: auto;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

.compare-table thead th {
  position: sticky;
  top: 0;
  background: var(--bg-primary);
  padding: 16px;
  text-align: left;
  font-weight: 600;
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
}

.compare-product-header {
  min-width: 180px;
}

.compare-product-name {
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 4px;
}

.compare-product-brand {
  font-size: 13px;
  color: var(--text-muted);
}

.compare-table tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.compare-table .param-name {
  font-weight: 500;
  color: var(--text-secondary);
  min-width: 120px;
  background: var(--bg-secondary);
}

.compare-table .param-value {
  color: var(--text-primary);
  min-width: 120px;
}

.compare-table .param-value.highlight {
  color: var(--primary);
  font-weight: 600;
}

.compare-table .price-row {
  background: rgba(10, 132, 255, 0.03);
}

/* ================================================
   Help Modal
   ================================================ */
.modal-help {
  max-width: 900px;
  max-height: 85vh;
}

.modal-vendor {
  max-width: 700px;
  max-height: 90vh;
}

.modal-feedback {
  max-width: 600px;
  max-height: 90vh;
}

.feedback-body {
  padding: 24px;
}

.feedback-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.feedback-body .form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.feedback-body label {
  font-weight: 500;
  color: var(--text);
  font-size: 14px;
}

.feedback-body select,
.feedback-body input,
.feedback-body textarea {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
  background: var(--bg);
  color: var(--text);
  transition: all var(--transition);
}

.feedback-body select:focus,
.feedback-body input:focus,
.feedback-body textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.1);
}

.feedback-body textarea {
  resize: vertical;
  min-height: 120px;
}

.char-count {
  text-align: right;
  font-size: 12px;
  color: var(--text-muted);
}

.char-count span {
  font-weight: 600;
}

.feedback-body input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-right: 8px;
}

.feedback-body label input[type="checkbox"] {
  display: inline-block;
}

.feedback-body .form-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 8px;
}

.feedback-body .btn-primary {
  padding: 10px 24px;
  background: var(--primary);
  border: none;
  border-radius: 6px;
  color: white;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all var(--transition);
}

.feedback-body .btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.feedback-body .btn-secondary {
  padding: 10px 24px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: all var(--transition);
}

.feedback-body .btn-secondary:hover {
  background: var(--bg-tertiary);
  border-color: var(--border-dark);
}

.help-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px 24px;
}

.vendor-body {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 24px;
  overflow-y: auto;
}

.vendor-intro {
  text-align: center;
  padding: 5px;
  background: linear-gradient(135deg, rgba(10, 132, 255, 0.05) 0%, rgba(0, 102, 204, 0.05) 100%);
  border-radius: var(--radius);
  border: 1px solid rgba(10, 132, 255, 0.1);
}

.vendor-intro h4 {
  margin: 0 0 8px 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--primary);
}

.vendor-intro p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

.vendor-contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.vendor-contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 20px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
}

.vendor-contact-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0A84FF 0%, #0066CC 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

.vendor-contact-info h5 {
  margin: 0 0 8px 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.vendor-phone {
  display: block;
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  margin-bottom: 4px;
  letter-spacing: 0.5px;
}

.vendor-phone:hover {
  text-decoration: underline;
  color: #0055AA;
}

.vendor-qr-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 8px;
  background: white;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.vendor-qr-image {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

.vendor-contact-desc {
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
}

.vendor-features {
  padding: 20px;
  background: var(--bg-tertiary);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.vendor-features h5 {
  margin: 0 0 16px 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.vendor-features-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.vendor-features-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.vendor-features-list li svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

.vendor-cta {
  text-align: center;
  padding: 16px;
  background: linear-gradient(135deg, rgba(48, 209, 88, 0.1) 0%, rgba(48, 209, 88, 0.05) 100%);
  border-radius: var(--radius);
  border: 1px solid rgba(48, 209, 88, 0.2);
}

.vendor-cta-text {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--success);
}

/* 导航栏 */
.help-nav {
  display: flex;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.help-nav-btn {
  padding: 8px 16px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}

.help-nav-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.help-nav-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

/* 内容区域 */
.help-content {
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  flex: 1;
  padding-right: 8px;
}

.help-section {
  display: none;
}

.help-section.active {
  display: block;
}

.help-section h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-primary);
}

/* 功能列表 */
.help-feature-list {
  display: grid;
  gap: 16px;
}

.help-feature-item {
  display: flex;
  gap: 14px;
  padding: 14px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.help-feature-icon {
  font-size: 28px;
  flex-shrink: 0;
}

.help-feature-content h5 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.help-feature-content p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

/* 步骤指南 */
.help-steps {
  display: grid;
  gap: 18px;
  counter-reset: help-step;
}

.help-steps li {
  display: flex;
  gap: 14px;
  list-style: none;
}

.help-step-num {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--primary) 0%, #5EADFF 100%);
  color: white;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}

.help-step-content h5 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.help-step-content p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

/* FAQ */
.help-faq-list {
  display: grid;
  gap: 16px;
}

.help-faq-item {
  padding: 14px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.help-faq-item h5 {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--primary);
}

.help-faq-item p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

/* ================================================
   Header 帮助按钮
   ================================================ */
.header-help-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}

.header-help-btn:hover {
  background: var(--bg-secondary);
  border-color: var(--primary);
  color: var(--primary);
}

.header-vendor-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  background: linear-gradient(135deg, #0A84FF 0%, #0066CC 100%);
  border: 1px solid #0066CC;
  border-radius: 20px;
  color: white;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 2px 4px rgba(10, 132, 255, 0.2);
}

.header-vendor-btn:hover {
  background: linear-gradient(135deg, #0066CC 0%, #0055AA 100%);
  box-shadow: 0 4px 8px rgba(10, 132, 255, 0.3);
  transform: translateY(-1px);
}

.header-help-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(10, 132, 255, 0.08);
}

.header-feedback-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}

.header-feedback-btn:hover {
  border-color: var(--warning);
  color: var(--warning);
  background: rgba(255, 149, 0, 0.08);
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}


.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 24px;
  border-bottom: 1px solid var(--border);
  gap: 10px;
}

.modal-header h3 {
  font-size: 18px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

/* 详情弹窗右上角参数反馈按钮 */
.detail-feedback-button {
  position: relative;
  background: linear-gradient(135deg, #FF6B6B 0%, #EE5A5A 100%);
  border: none;
  color: white;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
  z-index: 10;
  margin-right: 8px;
  flex-shrink: 0;
}

.detail-feedback-button:hover {
  background: linear-gradient(135deg, #FA5252 0%, #E03131 100%);
  box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
}

.detail-feedback-button:active {
  box-shadow: 0 2px 6px rgba(255, 107, 107, 0.3);
}

.detail-feedback-button svg {
  flex-shrink: 0;
}

/* 移动端响应式适配 */
@media (max-width: 768px) {
  .detail-feedback-button {
    padding: 6px 12px;
    font-size: 12px;
  }

  .detail-feedback-button svg {
    width: 14px !important;
    height: 14px !important;
  }
}

.modal-close {
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 24px;
  cursor: pointer;
  border-radius: 50%;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

/* Detail Modal Content */
.detail-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.detail-logo {
  width: 64px;
  height: 64px;
  background: var(--bg-tertiary);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
  border: 1px solid var(--border);
}

.detail-title h2 {
  font-size: 20px;
  margin-bottom: 4px;
}

.detail-title .detail-brand {
  color: var(--text-secondary);
  font-size: 14px;
}

.detail-description {
  padding: 16px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  border-left: 3px solid var(--primary);
}

.detail-section {
  margin-bottom: 20px;
}

.detail-section h4 {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

.detail-params {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.detail-param {
  padding: 12px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-sm);
}

.detail-param .param-name {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.detail-param .param-value {
  font-size: 14px;
  font-family: var(--font-mono);
  color: var(--text-primary);
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Compare Table */
.compare-table-wrapper {
  overflow-x: auto;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.compare-table th,
.compare-table td {
  padding: 12px;
  border: 1px solid var(--border);
  text-align: left;
}

.compare-table th {
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  font-weight: 500;
  position: sticky;
  top: 0;
}

.compare-table td {
  background: var(--bg-secondary);
}

.compare-table tr:hover td {
  background: var(--bg-tertiary);
}

.compare-table .highlight-best {
  background: rgba(48, 209, 88, 0.1);
  color: var(--success);
  font-weight: 600;
}

.compare-table .highlight-worst {
  background: rgba(255, 69, 58, 0.1);
  color: var(--danger);
}

.compare-table .param-label {
  color: var(--text-secondary);
  font-weight: 500;
  background: var(--bg-tertiary) !important;
}

/* ================================================
   左侧面板收起/展开按钮（仅窄屏显示）
   ================================================ */
.left-panel-toggle {
  display: none; /* 宽屏隐藏 */
}

/* 可收起区域——展开动画支持 */
.left-panel-collapsible {
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.3s ease;
  opacity: 1;
}

/* 收起状态 */
.left-panel-collapsible.collapsed {
  max-height: 0;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
}

/* ================================================
   Admin Back to Index Button
   ================================================ */
.btn-back-to-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  background: var(--primary);
  border: 1px solid var(--primary);
  border-radius: var(--radius-sm);
  color: white;
  font-size: 13px;
  font-weight: 500;
  font-family: var(--font-main);
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-back-to-index:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
}

/* ================================================
   Responsive
   ================================================ */
@media (max-width: 1200px) {
  .main-content {
    grid-template-columns: 360px 1fr;
    padding: 20px;
  }
}

@media (max-width: 900px) {
  .main-content {
    grid-template-columns: 1fr;
  }

  /* 左侧面板收起时完全隐藏，避免空白 */
  .left-panel.is-collapsed {
    display: none;
  }

  /* 移动端取消左侧面板的sticky定位和高度限制 */
  .left-panel {
    position: static;
    max-height: none;
    overflow-y: visible;
  }

  .header {
    padding: 12px 16px;
    flex-direction: column;
    gap: 8px;
  }

  .header-left {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    width: 100%;
    justify-content: center;
  }

  .logo-text {
    font-size: 14px;
  }

  .header-right {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: nowrap;
  }

  .logo-sub {
    font-size: 12px;
  }

  .header-title {
    display: none;
  }

  .header-help-btn,
  .header-vendor-btn {
    padding: 4px 8px;
    font-size: 11px;
    gap: 3px;
  }

  .header-help-btn svg,
  .header-vendor-btn svg {
    width: 12px;
    height: 12px;
  }

  .header-help-btn .btn-text {
    display: none;
  }


  .header-stats-inline {
    display: flex;
    gap: 8px;
    padding: 4px 8px;
    background: var(--bg-secondary);
    border-radius: 4px;
  }

  .stat-item-inline {
    display: flex;
    align-items: center;
    gap: 2px;
  }

  .stat-item-inline .stat-value {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
  }

  .stat-item-inline .stat-label {
    font-size: 10px;
    color: var(--text-secondary);
  }

  .header-stats {
    gap: 12px;
  }

  .stat-item {
    flex-direction: column;
    align-items: center;
    gap: 2px;
  }

  .stat-value {
    font-size: 14px;
  }

  .stat-label {
    font-size: 10px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .detail-params {
    grid-template-columns: 1fr;
  }

  .panel-content {
    padding: 0 16px 16px;
  }

  /* 窄屏下显示收起按钮 */
  .left-panel-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    padding: 10px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    justify-content: center;
  }

  .left-panel-toggle:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--bg-tertiary);
  }

  /* 已收起时按钮样式变化 */
  .left-panel.is-collapsed .left-panel-toggle {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(10, 132, 255, 0.08);
  }

  /* 浮动展开按钮（左侧面板收起时显示） */
  .left-panel-fab {
    position: fixed;
    bottom: 80px;
    right: 20px;
    display: none;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: var(--primary);
    border: none;
    border-radius: 30px;
    color: white;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(10, 132, 255, 0.4);
    transition: all var(--transition);
    z-index: 999;
  }

  .left-panel-fab:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(10, 132, 255, 0.5);
  }

  .left-panel-fab:active {
    transform: translateY(0);
  }

  /* 图片在窄屏下缩小 */
  .result-card-image {
    width: 80px;
    max-width: 80px;
    height: 100px;
    max-height: 100px;
  }

  /* 手机版：卡片内容横向滚动 */
  .result-card-content {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    min-width: 0;
  }

  /* 隐藏滚动条但保留功能 */
  .result-card-content::-webkit-scrollbar {
    height: 4px;
  }

  .result-card-content::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
  }

  .result-card-content::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 2px;
  }

  /* 手机版：卡片内容不换行，横向排列 */
  .result-card-top {
    flex-wrap: nowrap;
    min-width: 0;
  }

  /* 手机版：侧边栏缩小 */
  .result-card-sidebar {
    width: 90px;
  }

  /* 手机版：操作按钮缩小 */
  .result-actions button,
  .image-buy-buttons .btn-buy {
    font-size: 10px;
    padding: 4px 3px;
    min-height: 28px;
  }

  /* 手机版：品牌logo缩小 */
  .result-logo {
    width: 30px;
    height: 30px;
    font-size: 14px;
  }

  /* 手机版：产品名称缩小 */
  .result-info h3 {
    font-size: 13px;
    line-height: 1.3;
  }

  /* 手机版：参数标签缩小 */
  .param-tag {
    font-size: 10px;
    padding: 2px 6px;
    white-space: nowrap;
  }

  /* 手机版：匹配度缩小 */
  .match-score {
    min-width: 70px;
  }

  .match-label {
    font-size: 10px;
  }

  .match-value {
    font-size: 16px;
  }

  /* 手机版：行业标签缩小 */
  .industry-tag {
    font-size: 10px;
    padding: 2px 6px;
  }

  /* 手机版：推荐理由缩小 */
  .result-reason {
    font-size: 12px;
    line-height: 1.4;
  }

  /* 手机版：兼容性提示缩小 */
  .result-compatible-hint {
    font-size: 10px;
  }

  /* 手机版：推荐理由缩小 */
  .result-reason {
    font-size: 12px;
    line-height: 1.4;
  }

  /* footer 窄屏：改为纵向堆叠 */
  .footer {
    padding: 16px 12px;
    position: relative;
    z-index: 100;
    background: var(--bg-secondary);
  }

  .footer-inner {
    flex-direction: column;
    gap: 12px;
  }

  /* 品牌区域 */
  .footer-brand {
    gap: 8px;
  }

  /* 公司名称和网站链接 */
  .footer-logo-row {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
  }

  .footer-logo-row img {
    flex-shrink: 0;
  }

  .footer-logo-row .footer-brand-name {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
    font-size: 11px;
    line-height: 1.3;
    flex: 1;
    min-width: 0;
  }

  .footer-websites {
    width: 100%;
    order: 2;
  }

  /* 网站链接 */
  .footer-websites {
    margin-left: 0;
    gap: 6px;
    width: 100%;
  }

  .footer-website-link {
    padding: 4px 10px;
    font-size: 10px;
  }

  .footer-website-name {
    font-size: 10px;
  }

  /* 服务标签 */
  .footer-services {
    gap: 4px;
  }

  .footer-service-tag {
    font-size: 10px;
    padding: 3px 8px;
  }

  /* 合作伙伴 */
  .footer-partners-group {
    margin-top: 2px;
    gap: 4px;
  }

  .footer-partners {
    gap: 5px;
  }

  .footer-partners-title {
    font-size: 10px;
  }

  .footer-partner-item {
    font-size: 10px;
    padding: 2px 7px;
  }

  /* 版权信息 */
  .footer-legal {
    gap: 2px;
  }

  .footer-copy {
    font-size: 10px;
  }

  /* 二维码区域 */
  .footer-qr {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .footer-qr-card {
    width: 100%;
    max-width: 280px;
    justify-content: center;
    padding: 12px;
    gap: 10px;
  }

  .footer-qr-image {
    width: 60px;
    height: 60px;
    cursor: pointer;
  }

  .footer-qr-title {
    font-size: 12px;
  }

  .footer-qr-desc {
    font-size: 10px;
  }

  .footer-qr-enlarged {
    width: 240px;
    height: 240px;
  }

  .footer-qr-enlarged-wrapper img {
    width: 180px;
    height: 180px;
  }

  /* 弹窗在中等屏幕上下排列 */
  .vendor-contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .main-content {
    padding: 12px;
    gap: 12px;
  }

  .header {
    padding: 8px 12px;
  }

  .header-left {
    gap: 6px;
  }

  /* 移动端搜索按钮优化 */
  .textarea-footer {
    flex-wrap: wrap;
    gap: 6px;
  }

  .textarea-buttons {
    width: 100%;
    gap: 4px;
    flex-wrap: wrap;
    flex-shrink: 0;
  }

  .textarea-buttons .btn-primary,
  .textarea-buttons .btn-secondary {
    padding: 6px 10px;
    font-size: 11px;
    flex: 1;
    min-width: calc(50% - 2px);
    margin-top: 0;
    flex-shrink: 0;
  }

  .textarea-buttons .btn-primary svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
  }

  /* ===== 手机端卡片溢出修复 ===== */
  /* 卡片整体不超出屏幕 */
  .result-card {
    overflow: hidden;
    max-width: 100%;
    box-sizing: border-box;
  }

  /* 卡片内容区收紧，不横向滚动，改为换行 */
  .result-card-content {
    overflow: hidden !important;
    min-width: 0;
    width: 0;
    flex: 1;
  }

  /* 参数行和标签行强制换行 */
  .result-params,
  .result-tags,
  .result-card-tags,
  .product-tags,
  .card-meta,
  .card-badges,
  .tag-list {
    flex-wrap: wrap !important;
    overflow: hidden;
    max-width: 100%;
  }

  /* 参数标签缩小字号，防止单个标签过宽 */
  .param-tag,
  .industry-tag,
  .tag-badge,
  .filter-tag {
    font-size: 11px !important;
    padding: 2px 7px !important;
    white-space: nowrap;
    max-width: calc(50vw - 24px);
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* 卡片头部标题区防溢出 */
  .result-card-top {
    flex-wrap: wrap;
    min-width: 0;
  }

  /* 产品名称截断 */
  .result-card-title,
  .result-info h3 {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
  }
}

/* 收起状态 */
.left-panel-collapsible.collapsed {
  max-height: 0;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
}

  .logo svg {
    width: 26px;
    height: 26px;
  }

  .logo-text {
    font-size: 13px;
  }

  .logo-sub {
    font-size: 10px;
  }

  .header-right {
    gap: 6px;
  }

  .header-help-btn,
  .header-vendor-btn {
    padding: 4px 6px;
    font-size: 10px;
  }

  .header-help-btn svg,
  .header-vendor-btn svg {
    width: 11px;
    height: 11px;
  }

  .header-stats-inline {
    gap: 6px;
    padding: 3px 6px;
  }

  .stat-item-inline .stat-value {
    font-size: 12px;
  }

  .stat-item-inline .stat-label {
    font-size: 9px;
  }

  .vendor-contact-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .vendor-features-list {
    grid-template-columns: 1fr;
  }

  .vendor-qr-image {
    width: 80px;
    height: 80px;
  }

  .modal-vendor {
    max-width: 90vw;
  }
}

/* ================================================
   Custom Scrollbar
   ================================================ */

/* Webkit browsers (Chrome, Safari, Edge) */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
  transition: background var(--transition);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

::-webkit-scrollbar-thumb:active {
  background: var(--text-secondary);
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--border) var(--bg-secondary);
}

/* ================================================
   Feedback Management Styles
   ================================================ */

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.admin-table thead {
  position: sticky;
  top: 0;
  background: var(--bg-secondary);
  z-index: 10;
}

.admin-table th {
  text-align: left;
  padding: 12px 8px;
  color: var(--text-secondary);
  font-weight: 600;
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
  vertical-align: middle;
  font-size: 12px;
}

.admin-table td {
  padding: 12px 8px;
  border-bottom: 1px solid var(--border);
  color: var(--text-primary);
  vertical-align: middle;
}

.admin-table tbody tr:hover {
  background: var(--bg-tertiary);
}

/* 反馈类型标签 */
.feedback-type-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.feedback-type-recommend_inaccurate,
.feedback-type-recommendation {
  background: rgba(255, 69, 58, 0.15);
  color: #FF453A;
  border: 1px solid rgba(255, 69, 58, 0.3);
}

.feedback-type-product {
  background: rgba(255, 159, 10, 0.15);
  color: #FF9F0A;
  border: 1px solid rgba(255, 159, 10, 0.3);
}

.feedback-type-feature {
  background: rgba(10, 132, 255, 0.15);
  color: #0A84FF;
  border: 1px solid rgba(10, 132, 255, 0.3);
}

.feedback-type-bug {
  background: rgba(255, 69, 58, 0.15);
  color: #FF453A;
  border: 1px solid rgba(255, 69, 58, 0.3);
}

.feedback-type-other {
  background: rgba(139, 148, 158, 0.15);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

/* 已处理的反馈行样式 */
.feedback-processed {
  opacity: 0.5;
  background: rgba(48, 209, 88, 0.03) !important;
}

.feedback-processed td {
  color: var(--text-muted);
}

/* 反馈操作按钮 */
.feedback-actions {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: nowrap;
  min-width: 140px;
}

.btn-process {
  padding: 5px 10px;
  background: rgba(48, 209, 88, 0.15);
  border: 1px solid rgba(48, 209, 88, 0.4);
  color: #30D158;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-main);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  min-width: auto;
}

.btn-process:hover {
  background: rgba(48, 209, 88, 0.25);
  border-color: #30D158;
  transform: translateY(-1px);
}

.btn-process:active {
  transform: translateY(0);
}

.btn-delete {
  padding: 5px 10px;
  background: rgba(255, 69, 58, 0.15);
  border: 1px solid rgba(255, 69, 58, 0.4);
  color: #FF453A;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-main);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  min-width: auto;
}

.btn-delete:hover {
  background: rgba(255, 69, 58, 0.25);
  border-color: #FF453A;
  transform: translateY(-1px);
}

.btn-delete:active {
  transform: translateY(0);
}

/* 反馈列表分页 */
.feedback-list {
  min-height: 300px;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  gap: 16px;
}

.pagination-info {
  font-size: 12px;
  color: var(--text-secondary);
  white-space: nowrap;
}

.pagination-controls {
  display: flex;
  gap: 6px;
  align-items: center;
}

.pagination-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 10px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-main);
}

.pagination-btn:hover:not(:disabled) {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  transform: translateY(-1px);
}

.pagination-btn:active:not(:disabled) {
  transform: translateY(0);
}

.pagination-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  font-weight: 600;
}

.pagination-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.pagination-btn svg {
  width: 14px;
  height: 14px;
}

/* 状态标签样式增强 */
.admin-table td[style*="color: #30D158"] {
  font-weight: 600;
  text-shadow: 0 0 10px rgba(48, 209, 88, 0.3);
}

.admin-table td[style*="color: #FF9500"] {
  font-weight: 600;
  text-shadow: 0 0 10px rgba(255, 149, 0, 0.3);
  animation: pulse-warning 2s infinite;
}

@keyframes pulse-warning {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

/* 反馈内容文本截断 */
.feedback-content-truncate {
  max-width: 300px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
}

/* 筛选条件标签增强 */
.filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin: 2px;
  padding: 2px 8px;
  background: rgba(10, 132, 255, 0.12);
  border: 1px solid rgba(10, 132, 255, 0.2);
  border-radius: 10px;
  font-size: 11px;
  color: #0A84FF;
}

/* 空状态样式 */
.admin-table tbody tr td[colspan] {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
  font-size: 14px;
  background: var(--bg-secondary);
}
}

  .header-stats {
    gap: 8px;
  }

  .stat-value {
    font-size: 12px;
  }

  .stat-label {
    font-size: 9px;
  }

  /* 手机超窄屏图片进一步缩小 */
  .result-card-image {
    width: 100px;
    max-width: 100px;
    height: 130px;
    max-height: 130px;
  }

  .result-card-content {
    padding: 12px;
  }
}

/* ================================================
   Loading State
   ================================================ */
.loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px;
  gap: 16px;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}


.loading p {
  color: var(--text-secondary);
  font-size: 14px;
}

/* ================================================
   配件推荐 & 适配无人机 - Accessories & Compat
   ================================================ */

/* 结果卡片中的配件提示 */
.result-compatible-hint {
  margin: 8px 0 4px;
}

.compat-loading {
  color: var(--text-muted);
  font-size: 12px;
}

/* 摘要条（点击展开） */
.compat-summary-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: rgba(10, 132, 255, 0.06);
  border: 1px solid rgba(10, 132, 255, 0.2);
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--transition);
  flex-wrap: wrap;
  user-select: none;
}

.compat-summary-bar:hover {
  background: rgba(10, 132, 255, 0.12);
  border-color: rgba(10, 132, 255, 0.4);
}

.compat-summary-bar.drone {
  background: rgba(48, 209, 88, 0.06);
  border-color: rgba(48, 209, 88, 0.2);
}

.compat-summary-bar.drone:hover {
  background: rgba(48, 209, 88, 0.12);
  border-color: rgba(48, 209, 88, 0.4);
}

.compat-hint-icon {
  font-size: 14px;
  flex-shrink: 0;
}

.compat-hint-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  flex-shrink: 0;
}

/* 数量气泡 */
.compat-count-bubble {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: var(--primary);
  color: white;
  border-radius: 9px;
  font-size: 10px;
  font-weight: 700;
  flex-shrink: 0;
}

.compat-count-bubble.drone {
  background: var(--success);
}

/* 内联标签 */
.compat-chips-inline {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  flex: 1;
}

.compat-chip {
  display: inline-block;
  padding: 2px 7px;
  background: rgba(10, 132, 255, 0.1);
  border: 1px solid rgba(10, 132, 255, 0.25);
  border-radius: 10px;
  color: var(--primary);
  font-size: 11px;
  white-space: nowrap;
  pointer-events: none;
}

.compat-chip.drone {
  background: rgba(48, 209, 88, 0.1);
  border-color: rgba(48, 209, 88, 0.25);
  color: var(--success);
}

/* 展开/收起按钮 */
.compat-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-left: auto;
  font-size: 11px;
  color: var(--primary);
  flex-shrink: 0;
  font-weight: 500;
}

.compat-toggle-btn.drone {
  color: var(--success);
}

/* 展开面板 */
.compat-expand-panel {
  margin-top: 4px;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  animation: expandIn 0.2s ease;
}

@keyframes expandIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 展开面板中每一行 */
.compat-expand-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--bg-tertiary);
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background var(--transition);
}

.compat-expand-item:last-child {
  border-bottom: none;
}

.compat-expand-item:hover {
  background: rgba(10, 132, 255, 0.07);
}

.compat-expand-item.drone:hover {
  background: rgba(48, 209, 88, 0.07);
}

.compat-expand-icon {
  font-size: 14px;
  flex-shrink: 0;
  width: 20px;
  text-align: center;
}

.compat-expand-name {
  flex: 1;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.compat-expand-brand {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.compat-expand-price {
  font-size: 12px;
  font-weight: 600;
  color: var(--warning);
  font-family: var(--font-mono);
  white-space: nowrap;
  flex-shrink: 0;
}

.compat-expand-arrow {
  color: var(--text-muted);
  font-size: 16px;
  flex-shrink: 0;
  margin-left: 2px;
}

.compat-more {
  color: var(--text-muted);
  font-size: 11px;
  cursor: pointer;
  padding: 2px 6px;
}

.compat-more:hover {
  color: var(--text-secondary);
}

/* 配件推荐 badge */
.accessories-count-badge {
  display: inline-block;
  padding: 1px 7px;
  background: rgba(10, 132, 255, 0.15);
  border: 1px solid rgba(10, 132, 255, 0.3);
  border-radius: 10px;
  color: var(--primary);
  font-size: 11px;
  font-weight: 600;
  margin-left: 6px;
  vertical-align: middle;
}

/* 配件分组 */
.acc-group {
  margin-bottom: 16px;
}

.acc-group-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--border);
}

.acc-group-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 10px;
}

/* 配件卡片 */
.acc-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
}

.acc-item:hover {
  border-color: var(--primary);
  background: rgba(10, 132, 255, 0.06);
  transform: translateY(-1px);
}

.acc-item-img {
  position: relative;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.acc-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.acc-item-initial {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: white;
  border-radius: 6px;
  flex-shrink: 0;
}

.acc-item-info {
  flex: 1;
  min-width: 0;
}

.acc-item-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.acc-item-brand {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.acc-item-meta {
  display: flex;
  align-items: center;
  gap: 6px;
}

.acc-type-badge {
  font-size: 11px;
  font-weight: 500;
}

.acc-price {
  font-size: 12px;
  font-weight: 600;
  color: var(--warning);
  font-family: var(--font-mono);
}

.acc-buy-buttons {
  display: flex;
  gap: 4px;
  margin-top: 4px;
}

.acc-buy-official {
  flex: 1;
  padding: 4px 8px;
  background: var(--success);
  color: white;
  border-radius: 8px;
  font-size: 11px;
  text-decoration: none;
  text-align: center;
  transition: background var(--transition);
}

.acc-buy-official:hover {
  background: #2ab84f;
}

.acc-buy-discount {
  flex: 1;
  padding: 4px 8px;
  background: linear-gradient(135deg, #FF6B35, #F7931E);
  color: white;
  border-radius: 8px;
  font-size: 11px;
  text-align: center;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
}

.acc-buy-discount:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
}

/* ================================================
   Desktop Optimization (min-width: 768px)
   ================================================ */
@media (min-width: 768px) {
  /* 兼容机型卡片 - 桌面版优化 */
  .acc-group-list {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
    gap: 12px !important;
  }

  .acc-item {
    padding: 12px 14px !important;
  }

  .acc-item-img {
    width: 56px !important;
    height: 56px !important;
  }

  .acc-item-initial {
    width: 56px !important;
    height: 56px !important;
    font-size: 20px !important;
  }

  .acc-item-name {
    font-size: 14px !important;
  }

  .acc-item-brand {
    font-size: 12px !important;
  }

  .acc-price {
    font-size: 13px !important;
  }

  /* 组合推荐卡片 - 桌面版优化 */
  .bundle-cards {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)) !important;
  }

  /* 配件组标题 - 桌面版 */
  .acc-group-title {
    font-size: 13px !important;
    margin-bottom: 10px !important;
  }
}

/* ================================================
   Desktop Large (min-width: 1200px)
   ================================================ */
@media (min-width: 1200px) {
  /* 兼容机型卡片 - 大屏优化 */
  .acc-group-list {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)) !important;
    gap: 14px !important;
  }

  .acc-item {
    padding: 14px 16px !important;
  }
}

/* 组合推荐 */
.bundle-section {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.bundle-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.bundle-card {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid;
}

.bundle-card.basic {
  background: rgba(10, 132, 255, 0.05);
  border-color: rgba(10, 132, 255, 0.25);
}

.bundle-card.pro {
  background: rgba(255, 159, 10, 0.05);
  border-color: rgba(255, 159, 10, 0.25);
}

.bundle-card.elite {
  background: rgba(48, 209, 88, 0.05);
  border-color: rgba(48, 209, 88, 0.25);
}

.bundle-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.bundle-type {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.bundle-add-price {
  font-size: 11px;
  color: var(--warning);
  font-family: var(--font-mono);
}

.bundle-items {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 6px;
}

.bundle-item-chip {
  display: inline-block;
  padding: 2px 6px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 11px;
  color: var(--text-secondary);
}

.bundle-item-chip.payload {
  background: rgba(48, 209, 88, 0.08);
  border-color: rgba(48, 209, 88, 0.25);
  color: var(--success);
}

.bundle-desc {
  font-size: 11px;
  color: var(--text-muted);
}

/* ================================================
   热销排名标签 - Sales Rank Badges
   ================================================ */

/* 产品名称旁的热销徽章 */
.sales-rank-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 7px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
  vertical-align: middle;
  margin-left: 4px;
  white-space: nowrap;
  line-height: 1.4;
}

.sales-rank-badge.top3 {
  background: linear-gradient(135deg, rgba(255, 159, 10, 0.18), rgba(255, 69, 58, 0.12));
  border: 1px solid rgba(255, 159, 10, 0.4);
  color: #ff9f0a;
}

.sales-rank-badge.top10 {
  background: rgba(10, 132, 255, 0.12);
  border: 1px solid rgba(10, 132, 255, 0.3);
  color: var(--primary);
}

.sales-rank-badge.normal {
  background: rgba(48, 209, 88, 0.10);
  border: 1px solid rgba(48, 209, 88, 0.25);
  color: var(--success);
}

/* 图片左上角排名角标 */
.sales-rank-overlay {
  position: absolute;
  top: 6px;
  left: 6px;
  background: linear-gradient(135deg, #ff9f0a, #ff6b35);
  color: white;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 6px;
  line-height: 1.4;
  box-shadow: 0 2px 6px rgba(255, 159, 10, 0.5);
  z-index: 1;
}

/* 参数标签中的月销量 */
.monthly-sales-tag {
  color: var(--success) !important;
  border-color: rgba(48, 209, 88, 0.4) !important;
  font-weight: 600;
}

/* ================================================
   AI 产品选型页面 - 分页控件增强
   ================================================ */
.pagination-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  margin-top: 20px;
  gap: 20px;
}

.pagination-container .pagination-info {
  color: var(--text-secondary);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pagination-container .pagination-info .pagination-range,
.pagination-container .pagination-info .pagination-total {
  color: var(--text-primary);
  font-weight: 500;
  font-family: var(--font-mono);
}

.pagination-container .pagination-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pagination-container .pagination-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.pagination-container .pagination-btn:hover:not(:disabled):not(.active) {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--primary-glow);
}

.pagination-container .pagination-btn:active:not(:disabled):not(.active) {
  transform: translateY(0);
}

.pagination-container .pagination-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

.pagination-container .pagination-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  font-weight: 600;
  pointer-events: none;
}

.pagination-container .pagination-ellipsis {
  color: var(--text-muted);
  padding: 0 4px;
  font-size: 14px;
  user-select: none;
}

/* AI 产品选型页面 - 分页响应式设计 */
@media (max-width: 768px) {
  .pagination-container {
    flex-direction: column;
    gap: 16px;
  }

  .pagination-container .pagination-controls {
    flex-wrap: wrap;
    justify-content: center;
  }

  .pagination-container .pagination-btn {
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    font-size: 13px;
  }

  .pagination-container .pagination-info {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .pagination-container .pagination-btn {
    min-width: 32px;
    height: 32px;
    padding: 0 10px;
    font-size: 12px;
  }

  .pagination-container .pagination-controls {
    gap: 4px;
  }
}


/* ================================================
   AI 产品选型页面 - 上中下布局
   ================================================ */

/* 为 aipro.html 页面启用上中下布局 */
body.aipro-page .main-content {
  display: flex !important;
  flex-direction: column;
  gap: 20px;
  padding: 20px;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

/* 上部分：智能搜索 */
.top-search-section {
  background: var(--bg-secondary);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 20px;
}

/* 单行搜索框 */
.ai-search-container-inline {
  display: flex;
  gap: 12px;
  align-items: center;
}

.ai-search-input {
  flex: 1;
  padding: 12px 16px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 14px;
  font-family: var(--font-main);
  transition: all var(--transition);
}

.ai-search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.1);
}

.ai-search-input::placeholder {
  color: var(--text-muted);
}

.ai-search-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.char-count-inline {
  color: var(--text-muted);
  font-size: 12px;
  white-space: nowrap;
}

/* 产品搜索框 */
.product-search-box {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  margin-top: 10px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  transition: all var(--transition);
}

.product-search-box:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.1);
}

.product-search-box .search-icon {
  color: var(--text-muted);
  flex-shrink: 0;
  margin-right: 10px;
}

.product-search-input {
  flex: 1;
  padding: 8px 0;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 14px;
  font-family: var(--font-main);
}

.product-search-input:focus {
  outline: none;
}

.product-search-input::placeholder {
  color: var(--text-muted);
}

.btn-clear-search {
  flex-shrink: 0;
  padding: 4px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 4px;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-clear-search:hover {
  color: var(--text-primary);
  background: var(--bg-secondary);
}

.btn-clear-search svg {
  display: block;
}

/* 产品搜索按钮 */
.btn-product-search {
  flex-shrink: 0;
  padding: 4px 8px;
  background: var(--primary);
  border: none;
  color: white;
  cursor: pointer;
  border-radius: 4px;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-product-search:hover {
  background: var(--primary-hover);
}

.btn-product-search svg {
  display: block;
}

/* 多层次选项卡 */
.tabs-container {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  overflow-x: auto;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--border);
}

.tabs-container::-webkit-scrollbar {
  height: 4px;
}

.tabs-container::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 2px;
}

.tab-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.tab-btn:hover {
  color: var(--text-primary);
  background: rgba(10, 132, 255, 0.05);
}

.tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  background: rgba(10, 132, 255, 0.08);
}

.tab-btn svg {
  width: 16px;
  height: 16px;
}

.tabs-content {
  min-height: 0;
}

.tab-pane {
  display: none;
  animation: fadeIn 0.2s ease;
}

.tab-pane.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 分类树 */
.category-tree {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.category-tree-item {
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.category-tree-item.active {
  background: rgba(10, 132, 255, 0.1);
}

.category-tree-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.category-tree-header:hover {
  background: var(--bg-tertiary);
}

.category-tree-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.category-tree-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  transition: transform var(--transition);
}

.category-tree-toggle svg {
  width: 12px;
  height: 12px;
}

.category-tree-children {
  border-left: 2px solid var(--border);
  margin-left: 10px;
  padding-left: 10px;
}

/* Chip 样式 */
.chips-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  padding: 8px 16px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}

.chip:hover {
  border-color: var(--primary);
  color: var(--text-primary);
  transform: translateY(-1px);
}

.chip.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  font-weight: 600;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .ai-search-container-inline {
    flex-direction: column;
    align-items: stretch;
  }

  .ai-search-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .char-count-inline {
    text-align: right;
  }

  .ai-search-actions .btn-primary,
  .ai-search-actions .btn-secondary {
    width: 100%;
  }

  .tabs-container {
    gap: 4px;
  }

  .tab-btn {
    padding: 8px 12px;
    font-size: 13px;
  }

  .chips-wrapper {
    gap: 6px;
  }

  .chip {
    padding: 6px 12px;
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .tab-btn {
    padding: 6px 10px;
    font-size: 12px;
  }

  .tab-btn span {
    display: none;
  }

  .chip {
    padding: 5px 10px;
    font-size: 11px;
  }
}


  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.ai-search-buttons {
  display: flex;
  gap: 10px;
}

/* 中部分：筛选条件 */
.middle-filters-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* 快速筛选条件 - 横向排列 */
.quick-filters-container {
  background: var(--bg-secondary);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 20px;
}

.quick-filters-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding: 8px 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 6px;
}

.quick-filters-header:hover {
  background: var(--bg-tertiary);
}

.quick-filters-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.quick-filters-title svg {
  color: var(--primary);
}

/* 切换图标 */
.toggle-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: transform 0.3s ease;
}

.quick-filters-header:hover .toggle-icon {
  color: var(--text-primary);
}

/* 筛选内容区域 */
.filters-content {
  transition: all 0.3s ease;
  overflow: hidden;
}

.filters-content.collapsed {
  display: none;
}

.filters-content.expanded {
  display: block;
}

/* 已选筛选条件 */
.selected-filters {
  display: none;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-sm);
  margin-top: 10px;
  margin-bottom: 10px;
  border: 1px solid var(--border);
}

.selected-filters-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
}

.selected-filters-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.selected-filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: var(--primary-glow);
  border: 1px solid var(--primary);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-primary);
}

.selected-filter-tag .tag-type {
  color: var(--text-secondary);
  font-size: 12px;
}

.selected-filter-tag .tag-name {
  font-weight: 500;
  color: var(--primary);
}

.selected-filter-tag .tag-remove {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  background: transparent;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all var(--transition);
}

.selected-filter-tag .tag-remove:hover {
  background: var(--danger);
  color: white;
}

.selected-filter-tag .tag-remove svg {
  display: block;
}

.btn-clear-all {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-clear-all:hover {
  background: var(--bg-tertiary);
  border-color: var(--text-muted);
  color: var(--text-primary);
}

.quick-filters-scroll {
  overflow-x: auto;
  overflow-y: visible;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.quick-filters-scroll::-webkit-scrollbar {
  height: 6px;
}

.quick-filters-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.quick-filters-scroll::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

.quick-filters-content {
  display: flex;
  gap: 20px;
  padding: 4px;
}

.quick-filter-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
  min-width: 180px;
  max-width: 240px;
}

.quick-filter-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.quick-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.quick-filter-expand-btn {
  font-size: 12px;
  color: var(--primary);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 0;
  transition: all var(--transition);
}

.quick-filter-expand-btn:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* 产品分类 - 树形彩带 */
.category-ribbon-container {
  background: var(--bg-secondary);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 20px;
}

.category-ribbon-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.category-ribbon-title svg {
  color: var(--primary);
}

.category-ribbon-scroll {
  overflow-x: auto;
  overflow-y: visible;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.category-ribbon-scroll::-webkit-scrollbar {
  height: 6px;
}

.category-ribbon-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.category-ribbon-scroll::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

.category-ribbon-content {
  display: flex;
  gap: 16px;
  padding: 4px;
}

.category-item {
  flex-shrink: 0;
  min-width: 160px;
  max-width: 220px;
}

.category-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
}

.category-item-header:hover {
  border-color: var(--primary);
  background: rgba(10, 132, 255, 0.05);
}

.category-item-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.category-item-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  transition: transform var(--transition);
}

.category-item-toggle svg {
  width: 14px;
  height: 14px;
}

.category-item-children {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 8px;
  padding-left: 8px;
}

.category-item-child {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--transition);
  font-size: 13px;
  color: var(--text-secondary);
}

.category-item-child:hover {
  border-color: var(--primary);
  background: rgba(10, 132, 255, 0.08);
  color: var(--text-primary);
}

.category-item-child.active {
  background: rgba(10, 132, 255, 0.15);
  border-color: var(--primary);
  color: var(--primary);
  font-weight: 600;
}

/* 下部分：结果展示 */
.bottom-results-section {
  background: var(--bg-secondary);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 24px;
}

.results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.results-header .panel-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
}

.results-header .panel-title svg {
  color: var(--success);
}

.result-count {
  background: rgba(48, 209, 88, 0.15);
  color: var(--success);
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font-mono);
}

.results-actions {
  display: flex;
  gap: 10px;
}

/* 结果表格 */
.results-table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.results-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-secondary);
}

.results-table thead {
  background: var(--bg-tertiary);
  position: sticky;
  top: 0;
  z-index: 10;
}

.results-table th {
  padding: 12px 16px;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
}

.results-table th.col-select {
  width: 50px;
  text-align: center;
}

.results-table th.col-cover {
  width: 100px;
}

.results-table th.col-name {
  min-width: 200px;
}

.results-table th.col-supplier {
  min-width: 120px;
}

.results-table th.col-category {
  min-width: 120px;
}

.results-table th.col-tags {
  min-width: 200px;
}

.results-table th.col-price {
  width: 120px;
}

.results-table th.col-actions {
  width: 80px;
  text-align: center;
}

.results-table tbody {
  background: var(--bg-secondary);
}

.results-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.results-table tbody tr:hover {
  background: var(--bg-tertiary);
}

.results-table tbody tr:last-child td {
  border-bottom: none;
}

.results-table .col-select {
  text-align: center;
}

.results-table .product-checkbox {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.results-table .select-all-checkbox {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.results-table .table-cover-img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.results-table .table-cover-placeholder {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-tertiary);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 11px;
}

.results-table .product-name-cell strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.results-table .product-desc-mini {
  font-size: 12px;
  color: var(--text-secondary);
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.results-table .tags-text {
  font-size: 12px;
  color: var(--text-secondary);
}

.results-table .price-tag {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(48, 209, 88, 0.15);
  color: var(--success);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
}

.results-table .btn-icon-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  background: var(--primary-glow);
  border: 1px solid var(--primary);
  border-radius: var(--radius-sm);
  color: var(--primary);
  cursor: pointer;
  transition: all var(--transition);
}

.results-table .btn-icon-sm:hover {
  background: var(--primary);
  color: white;
}

.results-table .btn-icon-sm svg {
  display: block;
}

/* 横向排列的 Chip */
.chip-horizontal {
  font-size: 13px;
  padding: 6px 12px;
}

/* 响应式设计 */
@media (max-width: 1024px) {
  .quick-filter-group {
    min-width: 150px;
    max-width: 200px;
  }

  .category-item {
    min-width: 140px;
    max-width: 180px;
  }
}

@media (max-width: 768px) {
  .main-content {
    padding: 16px;
    gap: 16px;
  }

  .top-search-section,
  .quick-filters-container,
  .category-ribbon-container,
  .bottom-results-section {
    padding: 16px;
  }

  /* 移动端表格适配 */
  .results-table th.col-cover,
  .results-table th.col-tags {
    display: none;
  }

  .results-table td.col-cover,
  .results-table td.col-tags {
    display: none;
  }

  .results-table .table-cover-img,
  .results-table .table-cover-placeholder {
    display: none;
  }

  .results-table .product-name-cell strong {
    font-size: 13px;
  }

  .results-table th,
  .results-table td {
    padding: 10px 12px;
    font-size: 12px;
  }

  .ai-search-textarea {
    min-height: 100px;
  }

  .quick-filters-content,
  .category-ribbon-content {
    flex-wrap: wrap;
  }

  .quick-filter-group,
  .category-item {
    min-width: 140px;
    max-width: none;
    flex: 1 0 140px;
  }

  .ai-search-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .ai-search-buttons {
    width: 100%;
  }

  .ai-search-buttons .btn-primary,
  .ai-search-buttons .btn-secondary {
    flex: 1;
  }

  .results-header {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }

  .results-actions {
    width: 100%;
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .main-content {
    padding: 12px;
    gap: 12px;
  }

  .top-search-section,
  .quick-filters-container,
  .category-ribbon-container,
  .bottom-results-section {
    padding: 12px;
  }

  .ai-search-title,
  .quick-filters-title,
  .category-ribbon-title {
    font-size: 14px;
  }

  .quick-filter-group,
  .category-item {
    min-width: 120px;
    flex: 1 0 120px;
  }
}







