/* ========================================
   123手机网 - 主样式表
   风格：IT蓝 科技风
   版本：v3.1 （彻底解决竖线问题）
   ======================================== */

* { margin: 0; padding: 0; box-sizing: border-box; }

/* 强制重置html和body的margin和padding */
html, body {
  margin: 0 !important;
  padding: 0 !important;
}

/* 确保body的第一个元素紧贴顶部 */
body > *:first-child {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

:root {
  --primary: #0052d9;
  --primary-dark: #003da5;
  --primary-light: #4285f4;
  --secondary: #ff6b35;
  --accent: #ff4444;
  --bg: #f5f7fa;
  --white: #ffffff;
  --text: #333;
  --text-light: #666;
  --text-muted: #999;
  --border: #e4e7ed;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,82,217,0.12);
  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 12px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  margin: 0;
  padding: 0;
}

a { color: var(--primary); text-decoration: none; transition: all 0.2s; }
a:hover { color: var(--secondary); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* 主内容容器紧接导航栏 */
.container { margin-top: 0; }

/* ============ 顶部工具栏 ============ */
.topbar {
  background: #f0f2f5;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  height: 32px;
  line-height: 32px;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; }
.topbar-links a { color: var(--text-light); margin-right: 16px; }
.topbar-links a:hover { color: var(--primary); }
.topbar-right a { margin-left: 16px; color: var(--text-light); }

/* ============ Header ============ */
.site-header {
  background: var(--white);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-main {
  display: flex;
  align-items: center;
  padding: 6px 0;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 800;
  color: var(--primary);
  white-space: nowrap;
}
.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
}
.logo-tag {
  font-size: 14px;
  color: #1a1a1a;
  font-weight: 600;
  display: block;
  width: 100%;
  margin-top: -2px;
  text-align: center;
  letter-spacing: 0.5px;
}
.logo-tagline {
  margin-left: 8px;
  font-size: 16px;
  color: #64748b;
  white-space: nowrap;
  align-self: center;
  font-weight: 500;
}

/* 搜索框 */
.search-box {
  flex: 1;
  max-width: 540px;
  display: flex;
  border: 2px solid var(--primary);
  border-radius: 26px;
  overflow: hidden;
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.search-box:focus-within {
  border-color: var(--primary-dark);
  box-shadow: 0 0 0 4px rgba(0, 82, 217, 0.15);
}
.search-box select {
  border: none;
  border-right: 1px solid #c8d0e0;
  padding: 0 16px;
  outline: none;
  background: var(--white);
  font-size: 14px;
  color: var(--text-light);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}
.search-box input {
  flex: 1;
  border: none;
  padding: 8px 14px;
  outline: none;
  font-size: 15px;
  -webkit-appearance: none;
}
.search-box button {
  background: var(--primary);
  color: #fff;
  border: none;
  outline: none;
  padding: 0 32px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  transition: background 0.2s;
  -webkit-appearance: none;
}
.search-box button:hover { background: var(--primary-dark); }

.header-actions { display: flex; gap: 12px; align-items: center; }
.header-btn {
  padding: 8px 16px;
  border: none;
  border-radius: 20px;
  font-size: 13px;
  color: var(--text);
  background: #e8ecf1;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-block;
  line-height: 1.4;
}
.header-btn:hover { background: #d5dae2; color: var(--primary); }
.header-btn.primary {
  background: var(--primary);
  color: #fff;
}
.header-btn.primary:hover { background: var(--primary-dark); color: #fff; }

/* ============ 导航栏 ============ */
.main-nav {
  background: linear-gradient(90deg, var(--primary-dark) 0%, var(--primary) 100%);
}
.nav-list {
  display: flex;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  box-shadow: none !important;
  border: none !important;
}
.nav-list li a {
  display: block;
  padding: 14px 22px;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.2s;
  position: relative;
}
.nav-list li a:hover,
.nav-list li a.active {
  background: rgba(255,255,255,0.12);
}
.nav-list li a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background: var(--secondary);
  border-radius: 3px 3px 0 0;
}

/* ============ 轮播图 ============ */
.hero-section { margin-top: 20px; }
.banner-wrap {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 16px;
}
.banner-main {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 380px;
  background: #0a1931;
}
.banner-slide {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  display: flex;
  padding: 0;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
}
.banner-slide:hover {
  text-decoration: none;
  color: #fff;
}
.banner-slide.active { opacity: 1; }

.banner-content {
  position: absolute;
  bottom: 48px;
  left: 50px;
  right: 50px;
  z-index: 2;
}
.banner-bottom-bar {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: nowrap;
}
.banner-title {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.4;
  margin: 0;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.banner-desc {
  font-size: 15px;
  opacity: 0.85;
  margin-bottom: 24px;
  line-height: 1.7;
}
.banner-btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 22px;
  background: var(--secondary);
  color: #fff;
  border-radius: 20px;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.3s;
  flex-shrink: 0;
  white-space: nowrap;
}
.banner-btn:hover {
  transform: translateY(-2px);
  color: #fff;
  background: #ff8455;
}

.banner-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 3;
}
.banner-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: all 0.3s;
}
.banner-dots span.active {
  background: var(--secondary);
  width: 28px;
  border-radius: 5px;
}

/* 右侧品牌导航 */
.banner-brand {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  height: 380px;
  overflow: hidden;
}
.banner-brand-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f0f2f5;
  flex-shrink: 0;
}
.banner-brand-header h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.banner-brand-header h3::before {
  content: '';
  width: 4px;
  height: 14px;
  background: linear-gradient(180deg, var(--primary), var(--secondary));
  border-radius: 2px;
}
.banner-brand-header a {
  font-size: 12px;
  color: var(--text-muted);
  transition: color 0.2s;
}
.banner-brand-header a:hover { color: var(--primary); }
.banner-brand-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px 6px;
  flex: 1;
  overflow-y: auto;
  padding-right: 4px;
  min-height: 0;
}
.banner-brand-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 8px 4px 6px;
  border-radius: 8px;
  transition: all 0.2s ease;
  text-decoration: none;
  min-width: 0;
  background: #f8f9fb;
}
.banner-brand-item:hover {
  background: #eef2ff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(26,90,219,0.12);
}
.banner-brand-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  display: block;
  margin-bottom: 6px;
  border-radius: 8px;
  transition: transform 0.2s ease;
}
.banner-brand-logo-fallback {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.banner-brand-item:hover .banner-brand-logo {
  transform: scale(1.05);
}
.banner-brand-item span {
  font-size: 12px;
  color: var(--text);
  font-weight: 500;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  line-height: 1.3;
}

/* ============ 品牌导航 ============ */
.section { margin-top: 32px; }
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
}
.section-title::before {
  content: '';
  width: 4px;
  height: 22px;
  background: linear-gradient(180deg, var(--primary), var(--secondary));
  border-radius: 3px;
}
.section-title .more {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: normal;
}

.brand-bar {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 18px 16px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
  box-shadow: var(--shadow-sm);
}
.brand-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 8px;
  border-radius: var(--radius);
  transition: all 0.2s;
  cursor: pointer;
}
.brand-item:hover {
  background: #f0f6ff;
  transform: translateY(-2px);
}
.brand-logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #eef2ff, #e0e7ff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--primary);
  font-size: 15px;
  margin-bottom: 6px;
}
.brand-item:hover .brand-logo {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
}
.brand-name { font-size: 13px; color: var(--text); font-weight: 500; }

/* ============ 产品卡片 ============ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.product-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s;
  position: relative;
  border: 1px solid transparent;
}
.product-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
  border-color: var(--primary-light);
}
.product-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  padding: 3px 10px;
  font-size: 11px;
  color: #fff;
  border-radius: 4px;
  background: var(--accent);
}
.product-tag.hot { background: var(--accent); }
.product-tag.new { background: var(--secondary); }
.product-tag.rec { background: #10b981; }

.product-cover {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #f8fafc, #eef2f7);
  padding: 20px;
}
.product-cover svg { width: 100%; height: 100%; }
.product-info { padding: 14px 16px 18px; }
.product-brand {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.product-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin: 6px 0 4px;
  line-height: 1.4;
  height: 42px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.product-card:hover .product-name { color: var(--primary); }
.product-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.product-spec {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
  min-height: 22px;
}
.product-spec span {
  padding: 2px 8px;
  background: #f0f2f5;
  color: var(--text-light);
  font-size: 11px;
  border-radius: 3px;
}
.product-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}
.product-actions {
  display: flex;
  gap: 6px;
  align-items: flex-end;
  flex-shrink: 0;
}
.product-actions .pa-btn {
  font-size: 12px;
  line-height: 1;
  padding: 7px 12px;
  border-radius: 13px;
  cursor: pointer;
  text-decoration: none;
  box-sizing: border-box;
}
.product-actions .pa-view {
  color: #fff;
  background: var(--primary, #2563eb);
  border: 1px solid var(--primary, #2563eb);
}
.product-actions .pa-view:hover { background: #1d4ed8; border-color: #1d4ed8; }
.product-actions .pa-compare {
  color: var(--primary, #2563eb);
  border: 1px solid var(--primary, #2563eb);
  background: #fff;
}
.product-actions .pa-compare:hover { background: var(--primary, #2563eb); color: #fff; }
.product-price {
  color: var(--accent);
  font-weight: 700;
}
.product-price .currency { font-size: 14px; }
.product-price .amount { font-size: 24px; font-family: 'DIN', Arial, sans-serif; }
.product-price .market {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: line-through;
  font-weight: normal;
}

.compare-btn {
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: var(--text-light);
  background: #fff;
  cursor: pointer;
  transition: all 0.2s;
}
.compare-btn:hover { border-color: var(--primary); color: var(--primary); }

/* ============ 资讯布局 ============ */
.news-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
}
.news-main { background: #fff; border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-sm); }
.news-side { display: flex; flex-direction: column; gap: 14px; }
.side-block {
  background: #fff;
  border-radius: 10px;
  padding: 14px 16px;
  border: 1px solid #eef0f4;
}
.side-block h3 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #1e293b;
}
.side-block h3::before {
  content: '';
  width: 3px;
  height: 13px;
  background: var(--primary);
  border-radius: 2px;
}

/* 快速导航 - 标签云风格 */
.quick-nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.quick-nav-item {
  display: inline-flex;
  align-items: center;
  padding: 7px 16px;
  border-radius: 100px;
  color: #475569;
  font-size: 13px;
  text-decoration: none;
  background: #f1f5f9;
  border: 1px solid transparent;
  transition: all 0.15s ease;
  line-height: 1;
}
.quick-nav-item:hover {
  background: #e2e8f0;
  color: #1e293b;
}
.quick-nav-item.active,
.quick-nav-item:hover {
  /* overridden below for active */
}
.quick-nav-item.active {
  background: var(--primary);
  color: #fff;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(30,64,175,0.2);
}
.quick-nav-arrow {
  display: none; /* hide arrow in pill mode */
}

/* 头条 */
.headline {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}
.headline-img {
  border-radius: var(--radius);
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  overflow: hidden;
}
.headline-img svg { width: 100%; height: 100%; }
.headline-content h2 {
  font-size: 22px;
  line-height: 1.4;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}
.headline-content h2 a:hover { color: var(--primary); }
.headline-meta {
  display: flex;
  gap: 14px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.headline-summary {
  color: var(--text-light);
  line-height: 1.8;
  font-size: 14px;
  margin-bottom: 14px;
}
.tag {
  display: inline-block;
  padding: 2px 8px;
  background: #eef3ff;
  color: var(--primary);
  font-size: 11px;
  border-radius: 3px;
  margin-right: 6px;
}

/* 资讯列表 */
.news-list { display: flex; flex-direction: column; }
.news-item {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid #f0f2f5;
  transition: all 0.2s;
}
.news-item:last-child { border-bottom: none; }
.news-item:hover { background: #fafbfd; margin: 0 -8px; padding: 18px 8px; border-radius: var(--radius); }
.news-thumb {
  aspect-ratio: 16/10;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
}
.news-thumb svg { width: 100%; height: 100%; }
.news-item h4 {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 8px;
  color: var(--text);
}
.news-item h4 a:hover { color: var(--primary); }
.news-meta {
  display: flex;
  gap: 14px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.news-summary {
  color: var(--text-light);
  font-size: 13px;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 热门排行 - 紧凑风格 */
.rank-list { list-style: none; margin: 0; padding: 0; }
.rank-list li {
  display: flex;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px solid #f1f5f9;
  align-items: flex-start;
  min-width: 0;
}
.rank-list > li > div {
  flex: 1;
  min-width: 0;
}
.rank-list li:last-child { border: none; }
.rank-num {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  text-align: center;
  line-height: 20px;
  background: #f1f5f9;
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
  border-radius: 4px;
}
.rank-list li:nth-child(1) .rank-num { background: #ef4444; color: #fff; }
.rank-list li:nth-child(2) .rank-num { background: #f97316; color: #fff; }
.rank-list li:nth-child(3) .rank-num { background: #eab308; color: #fff; }
.rank-text {
  display: block;
  font-size: 13px;
  line-height: 1.5;
  color: #334155;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  text-decoration: none;
  transition: color 0.15s;
}
.rank-text:hover { color: var(--primary); }
.sw-dl-count {
  font-size: 11px;
  color: var(--text-muted);
  flex-shrink: 0;
  white-space: nowrap;
}
.rank-views {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ============ 分类标签栏 ============ */
.tabs-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.tabs-bar a {
  padding: 8px 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 13px;
  color: var(--text);
}
.tabs-bar a:hover { border-color: var(--primary); color: var(--primary); }
.tabs-bar a.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ============ 筛选栏 ============ */
.filter-section {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}
.filter-row {
  display: flex;
  padding: 12px 0;
  border-bottom: 1px dashed #f0f2f5;
}
.filter-row:last-child { border-bottom: none; }
.filter-label {
  width: 80px;
  flex-shrink: 0;
  font-weight: 500;
  color: var(--text-light);
  font-size: 13px;
  line-height: 28px;
}
.filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex: 1;
}
.filter-options a {
  padding: 6px 14px;
  font-size: 13px;
  border-radius: 4px;
  color: var(--text);
}
.filter-options a:hover { color: var(--primary); }
.filter-options a.active {
  background: var(--primary);
  color: #fff;
}
.filter-options a.active:hover { color: #fff; }

.sort-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: #fff;
  border-radius: var(--radius);
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}
.sort-options { display: flex; gap: 4px; }
.sort-options a {
  padding: 6px 14px;
  font-size: 13px;
  border-radius: 4px;
  color: var(--text-light);
}
.sort-options a.active {
  background: var(--primary);
  color: #fff;
}
.sort-count { font-size: 13px; color: var(--text-muted); }

/* ============ 分页 ============ */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 30px 0;
  flex-wrap: wrap;
}
.pagination a,
.pagination span {
  min-width: 36px;
  height: 36px;
  line-height: 36px;
  text-align: center;
  padding: 0 12px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  font-size: 13px;
  display: inline-block;
}
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination .current {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  font-weight: 600;
}
.pagination span:not(.current) { color: var(--text-muted); border: none; background: none; }

/* ============ 产品详情页 ============ */
/* ========================================
   产品详情页 - 现代科技风
   ======================================== */
.product-detail {
  background: #fff;
  border-radius: 16px;
  padding: 0;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 4px 20px rgba(15, 23, 42, 0.06);
  margin-bottom: 32px;
  overflow: hidden;
}

/* Hero Section */
.detail-hero {
  display: grid;
  grid-template-columns: 440px 1fr;
  gap: 0;
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 60%);
  border-bottom: 1px solid #f1f5f9;
}

.detail-gallery {
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: linear-gradient(180deg, #f1f5ff 0%, #fafbff 100%);
  position: relative;
}

.detail-main-img {
  aspect-ratio: 1;
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}
.detail-main-img:hover {
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.12);
}
.detail-main-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  position: relative;
  z-index: 1;
  transition: transform 0.4s ease;
}
.detail-main-img:hover img {
  transform: scale(1.03);
}
.detail-gallery-glow {
  position: absolute;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(30, 111, 255, 0.15) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.detail-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.detail-thumbs div {
  aspect-ratio: 1;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  border: 2px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  transition: all 0.2s ease;
}
.detail-thumbs div img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.detail-thumbs div.active {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(30, 111, 255, 0.12);
}
.detail-thumbs div:hover {
  border-color: var(--primary-light);
  transform: translateY(-1px);
}

/* Info Section */
.detail-info {
  padding: 40px 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.detail-info-header {
  margin-bottom: 24px;
}
.detail-brand-tag {
  display: inline-block;
  padding: 4px 12px;
  background: linear-gradient(135deg, #eef3ff, #dbeafe);
  color: #1e6fff;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}
.detail-title {
  font-size: 30px;
  font-weight: 800;
  line-height: 1.25;
  color: #0f172a;
  margin: 0 0 10px;
  letter-spacing: -0.3px;
}
.detail-subtitle {
  font-size: 16px;
  color: #64748b;
  line-height: 1.5;
}

/* Price */
.detail-price-hero {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 20px 24px;
  background: linear-gradient(135deg, #fff5f5, #ffe8e8);
  border-radius: 12px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}
.detail-price-hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 80px; height: 80px;
  background: radial-gradient(circle, rgba(239, 68, 68, 0.1) 0%, transparent 70%);
}
.detail-price-current {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.detail-price-currency {
  font-size: 20px;
  font-weight: 700;
  color: #dc2626;
}
.detail-price-value {
  font-size: 40px;
  font-weight: 800;
  color: #dc2626;
  font-family: 'DIN Alternate', 'Helvetica Neue', Arial, sans-serif;
  letter-spacing: -1px;
  line-height: 1;
}
.detail-price-save {
  display: inline-block;
  padding: 4px 10px;
  background: #10b981;
  color: #fff;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  margin-left: 8px;
  animation: pricePulse 2s ease infinite;
}
@keyframes pricePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.3); }
  50% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
}
.detail-price-market {
  font-size: 13px;
  color: #94a3b8;
}
.detail-price-market s {
  color: #cbd5e1;
  text-decoration: line-through;
}

/* Tags */
.detail-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.detail-tag-row .tag {
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 999px;
  font-weight: 500;
  letter-spacing: 0.3px;
}
.tag-rec { background: #d1fae5; color: #065f46; }
.tag-hot { background: #fee2e2; color: #991b1b; }
.tag-brand { background: #eef3ff; color: #1e6fff; }
.tag-views { background: #f1f5f9; color: #64748b; }

/* Quote Card */
.quote-card {
  background: linear-gradient(135deg, #f0f6ff 0%, #eef2ff 100%);
  border: 1px solid #c7d2fe;
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 16px;
  position: relative;
}
.quote-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.quote-icon {
  font-size: 20px;
  background: #fff;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(15, 23, 42, 0.08);
}
.quote-card-title {
  font-weight: 600;
  color: #0f172a;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.quote-location {
  background: #e0e7ff;
  color: #4338ca;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
}
.quote-card-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  background: #fff;
  border-radius: 10px;
  margin-bottom: 12px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}
.quote-dealer {
  flex: 1;
  min-width: 0;
}
.quote-dealer-name {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.quote-dealer-name > span:first-child {
  font-size: 14px;
  color: #0f172a;
  font-weight: 600;
}
.badge-verified {
  background: #d1fae5;
  color: #065f46;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 500;
}
.quote-dealer-meta {
  display: flex;
  gap: 14px;
  font-size: 12px;
  color: #64748b;
}
.quote-price {
  font-size: 30px;
  font-weight: 800;
  color: #ef4444;
  font-family: 'DIN Alternate', Arial, sans-serif;
  white-space: nowrap;
}
.quote-card-more {
  padding-top: 12px;
  border-top: 1px dashed #c7d2fe;
}
.quote-more-label {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 8px;
}
.quote-more-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
  font-size: 12px;
}
.quote-more-row span:first-child {
  color: #0f172a;
}
.quote-more-price {
  color: #ef4444;
  font-weight: 600;
}
.quote-empty {
  text-align: center;
  padding: 14px 0;
}
.quote-empty-title {
  font-size: 14px;
  color: #64748b;
  margin-bottom: 4px;
}
.quote-empty-sub {
  font-size: 12px;
  color: #94a3b8;
}
.quote-debug {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #e0e7ff;
  font-size: 10px;
  color: #94a3b8;
}

/* Dealer Form Card */
.dealer-form-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 16px;
}
.dealer-form-title {
  font-weight: 600;
  color: #0f172a;
  font-size: 14px;
  margin-bottom: 14px;
}
.dealer-form-row {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}
.dealer-form-input {
  flex: 1;
  min-width: 180px;
}
.dealer-form-input label {
  display: block;
  font-size: 12px;
  color: #64748b;
  margin-bottom: 4px;
}
.dealer-form-input input {
  width: 100%;
  padding: 9px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.dealer-form-input input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(30, 111, 255, 0.1);
}
.dealer-form-actions {
  display: flex;
  gap: 8px;
}

/* Upgrade & Login Cards */
.dealer-upgrade-card,
.dealer-login-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 12px;
  margin-bottom: 16px;
}
.dealer-upgrade-card {
  background: #fffbeb;
  border: 1px solid #fde68a;
}
.dealer-login-card {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
}
.upgrade-icon, .login-icon {
  font-size: 22px;
  flex-shrink: 0;
}
.upgrade-info, .login-info {
  flex: 1;
}
.upgrade-title {
  font-size: 13px;
  color: #92400e;
  font-weight: 500;
}
.upgrade-sub {
  font-size: 11px;
  color: #b45309;
  margin-top: 2px;
}
.login-info {
  font-size: 13px;
  color: #0369a1;
  font-weight: 500;
}
.upgrade-btn {
  padding: 7px 14px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  border-radius: 8px;
  font-size: 12px;
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
  transition: transform 0.2s;
}
.upgrade-btn:hover { transform: translateY(-1px); }
.login-btn {
  padding: 7px 14px;
  background: #1e6fff;
  color: #fff;
  border-radius: 8px;
  font-size: 12px;
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.2s;
}
.login-btn:hover { background: #0052d9; }

/* Specs Highlight */
.specs-highlight {
  background: #f8fafc;
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 16px;
}
.specs-highlight-title {
  font-weight: 600;
  color: #0f172a;
  font-size: 14px;
  margin-bottom: 14px;
}
.specs-highlight-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px 24px;
}
.specs-highlight-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px dashed #e2e8f0;
  font-size: 13px;
}
.specs-highlight-name {
  color: #64748b;
}
.specs-highlight-value {
  color: #0f172a;
  font-weight: 600;
  text-align: right;
  max-width: 60%;
}

/* Summary */
.detail-summary {
  color: #475569;
  margin-bottom: 24px;
  line-height: 1.8;
  font-size: 14px;
}

/* Actions */
.detail-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
}
.detail-actions .btn-lg {
  padding: 14px 32px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-ghost {
  background: transparent;
  color: #64748b;
  border: 1px solid #e2e8f0 !important;
}
.btn-ghost:hover {
  background: #f8fafc;
  color: #334155;
  border-color: #cbd5e1 !important;
}

/* Section titles */
.detail-section-title {
  font-size: 20px;
  font-weight: 700;
  margin: 36px 0 20px;
  padding: 0 36px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #0f172a;
}
.detail-section-title::before {
  content: '';
  width: 4px;
  height: 20px;
  background: linear-gradient(180deg, #1e6fff, #0052d9);
  border-radius: 3px;
}

/* Specs Section */
.specs-section {
  padding: 0 36px 36px;
}
.specs-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.specs-group {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}
.specs-group:hover {
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
  transform: translateY(-2px);
}
.specs-group-title {
  background: linear-gradient(135deg, #eef3ff, #e0e7ff);
  color: #1e6fff;
  font-weight: 700;
  font-size: 14px;
  padding: 12px 18px;
  border-bottom: 1px solid #e2e8f0;
}
.specs-group-list {
  padding: 4px 0;
}
.specs-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 18px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 13px;
}
.specs-row:last-child {
  border-bottom: none;
}
.specs-row-name {
  color: #64748b;
}
.specs-row-value {
  color: #0f172a;
  font-weight: 500;
  text-align: right;
}

/* Related News */
.related-news {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
  padding: 0 36px;
}
.related-news-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: all 0.25s ease;
}
.related-news-card:hover {
  box-shadow: 0 6px 24px rgba(15, 23, 42, 0.1);
  transform: translateY(-3px);
  border-color: #cbd5e1;
}
.related-news-thumb {
  position: relative;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
  overflow: hidden;
}
.related-news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.related-news-card:hover .related-news-thumb img {
  transform: scale(1.05);
}
.related-news-cat {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(30, 111, 255, 0.9);
  color: #fff;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 500;
  backdrop-filter: blur(4px);
}
.related-news-body {
  padding: 14px 16px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.related-news-body h4 {
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.5;
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.related-news-meta {
  display: flex;
  gap: 14px;
  font-size: 11px;
  color: #94a3b8;
  margin-bottom: 8px;
}
.related-news-summary {
  font-size: 12px;
  color: #64748b;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Brand Products */
.brand-products {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  padding: 0 36px 36px;
}
.brand-product-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}
.brand-product-card:hover {
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.1);
  transform: translateY(-4px);
  border-color: #cbd5e1;
}
.brand-product-cover {
  aspect-ratio: 1;
  background: linear-gradient(180deg, #f8fafc, #f1f5f9);
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.brand-product-cover img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.35s ease;
}
.brand-product-card:hover .brand-product-cover img {
  transform: scale(1.06);
}
.brand-product-info {
  padding: 10px 12px 14px;
}
.brand-product-brand {
  font-size: 10px;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}
.brand-product-name {
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.3;
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.brand-product-price {
  font-size: 16px;
  font-weight: 700;
  color: #dc2626;
  font-family: 'DIN Alternate', Arial, sans-serif;
}

/* Responsive */
@media (max-width: 1024px) {
  .detail-hero { grid-template-columns: 340px 1fr; }
  .brand-products { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .detail-hero { grid-template-columns: 1fr; }
  .detail-gallery { padding: 24px; }
  .detail-info { padding: 24px; }
  .brand-products { grid-template-columns: repeat(2, 1fr); }
  .specs-highlight-grid { grid-template-columns: 1fr; }
  .detail-title { font-size: 24px; }
  .detail-price-value { font-size: 32px; }
  .detail-actions { flex-wrap: wrap; }
  .specs-section, .related-news, .brand-products { padding-left: 20px; padding-right: 20px; }
  .detail-section-title { padding: 0 20px; }
}

/* 参数规格（旧版保留，其他页面可能使用） */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.spec-table th,
.spec-table td {
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid #f0f2f5;
}
.spec-table th {
  width: 160px;
  background: #f8fafc;
  color: var(--text-light);
  font-weight: 500;
}
.spec-table td { color: var(--text); }
.spec-group-title {
  background: #eef3ff !important;
  color: var(--primary) !important;
  font-weight: 600 !important;
  font-size: 15px !important;
  border-left: 3px solid var(--primary);
}

/* 文章详情 */
.article-detail {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}
.article-header { margin-bottom: 30px; }
.article-header h1 {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 14px;
}
.article-subtitle {
  font-size: 16px;
  color: var(--text-light);
  margin-bottom: 18px;
  padding-left: 12px;
  border-left: 3px solid var(--accent);
  line-height: 1.6;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  color: var(--text-muted);
  font-size: 13px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}
.article-meta span i { font-style: normal; color: var(--text-light); margin-right: 4px; }
.article-cover {
  width: 100%;
  aspect-ratio: 16/8;
  border-radius: var(--radius-lg);
  margin: 24px 0 30px;
  overflow: hidden;
  background: transparent;
}
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.article-cover svg { width: 100%; height: 100%; }
.article-content {
  font-size: 16px;
  line-height: 2;
  color: #333;
}
.article-content h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 36px 0 18px;
  padding-left: 12px;
  border-left: 4px solid var(--primary);
  line-height: 1.4;
}
.article-content h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 28px 0 14px;
  color: var(--primary-dark);
}
.article-content p { margin-bottom: 18px; }
.article-content strong { color: var(--primary-dark); }
.article-content ul {
  margin: 14px 0;
  padding-left: 24px;
}
.article-content ul li {
  list-style: disc;
  margin: 6px 0;
}
.article-content ol {
  margin: 14px 0;
  padding-left: 24px;
}
.article-content ol li {
  list-style: decimal;
  margin: 6px 0;
}
.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin: 14px 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  display: block;
}
.article-content video,
.article-content audio,
.article-content iframe {
  max-width: 100%;
  border-radius: 8px;
  margin: 18px 0;
  display: block;
  background: #000;
}
.article-content blockquote {
  margin: 20px 0;
  padding: 14px 20px;
  border-left: 4px solid #60a5fa;
  background: #eff6ff;
  color: #1e3a8a;
  border-radius: 4px 8px 8px 4px;
  line-height: 1.8;
}
.article-content blockquote p:last-child { margin-bottom: 0; }
.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  background: #fff;
  font-size: 14px;
}
.article-content table th,
.article-content table td {
  border: 1px solid #e5e7eb;
  padding: 10px 14px;
  text-align: left;
}
.article-content table thead th {
  background: #f1f5f9;
  color: #0f172a;
  font-weight: 700;
}
.article-content pre,
.article-content code {
  font-family: Consolas, Menlo, "Courier New", monospace;
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 6px;
}
.article-content pre {
  padding: 16px 20px;
  overflow-x: auto;
  margin: 18px 0;
  line-height: 1.6;
  font-size: 13px;
}
.article-content p code,
.article-content li code {
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 13px;
  margin: 0 2px;
}
.article-content hr {
  border: none;
  border-top: 1px dashed #d1d5db;
  margin: 30px 0;
}
.article-content h1 {
  font-size: 24px;
  font-weight: 800;
  margin: 40px 0 20px;
  color: #0f172a;
}
.article-content h4 {
  font-size: 16px;
  font-weight: 600;
  margin: 20px 0 10px;
  color: #1e293b;
}
.article-content a {
  color: #2563eb;
  text-decoration: underline;
}
.article-content a:hover { color: #1d4ed8; }

.product-intro {
  font-size: 15px;
  line-height: 2;
  color: #334155;
  word-break: break-word;
  padding: 36px 40px;
  background: linear-gradient(180deg, #fafbfd 0%, #ffffff 100%);
  border-radius: 16px;
  border: 1px solid #e8edf4;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
}
.product-intro > *:first-child {
  margin-top: 8px;
}
.product-intro h1 { font-size: 24px; font-weight: 700; margin: 28px 0 18px; color: #0f172a; }
.product-intro h2 { font-size: 21px; font-weight: 700; margin: 26px 0 16px; color: #0f172a; }
.product-intro h3 { font-size: 19px; font-weight: 600; margin: 22px 0 14px; color: #1e293b; }
.product-intro h4 { font-size: 17px; font-weight: 600; margin: 18px 0 12px; color: #1e293b; }
.product-intro p { margin-bottom: 16px; line-height: 2; }
.product-intro strong { color: #1d4ed8; font-weight: 600; }
.product-intro img { max-width: 100%; height: auto; border-radius: 12px; margin: 18px 0; display: block; box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08); }
.product-intro ul, .product-intro ol { padding-left: 28px; margin-bottom: 16px; }
.product-intro ul li { list-style: disc; margin-bottom: 8px; line-height: 1.8; }
.product-intro ol li { list-style: decimal; margin-bottom: 8px; line-height: 1.8; }
.product-intro blockquote {
  border-left: 4px solid #3b82f6;
  padding: 16px 22px;
  margin: 20px 0;
  background: linear-gradient(135deg, #eff6ff 0%, #f5f3ff 100%);
  border-radius: 0 12px 12px 0;
  color: #475569;
  font-style: italic;
}
.product-intro table { width: 100%; border-collapse: collapse; margin: 20px 0; border-radius: 10px; overflow: hidden; box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04); }
.product-intro table th, .product-intro table td {
  padding: 12px 16px; border: 1px solid #e2e8f0; text-align: left;
}
.product-intro table thead th { background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%); font-weight: 600; color: #1e40af; }
.product-intro table tbody tr:nth-child(even) { background: #f8fafc; }
.product-intro code {
  background: #f1f5f9; padding: 3px 8px; border-radius: 6px;
  font-family: Consolas, Monaco, monospace; font-size: 13px;
  color: #e11d48;
}
.product-intro pre {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: #e2e8f0; padding: 20px; border-radius: 12px;
  overflow-x: auto; margin: 20px 0; font-size: 13px; line-height: 1.7;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.15);
}
.product-intro pre code { background: none; color: inherit; padding: 0; }
.product-intro a { color: #2563eb; text-decoration: underline; transition: color 0.2s; }
.product-intro a:hover { color: #1d4ed8; }
.product-intro hr { border: none; border-top: 1px solid #e2e8f0; margin: 28px 0; }

@media (max-width: 768px) {
  .product-intro {
    padding: 24px 20px;
  }
  .product-intro h1 { font-size: 20px; }
  .product-intro h2 { font-size: 18px; }
  .product-intro h3 { font-size: 16px; }
}

/* ========================================
   PDP 产品详情页 - IT蓝 风格
   ======================================== */

.pdp-wrap {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
  overflow: hidden;
  margin-bottom: 32px;
}

/* 标题栏 */
.pdp-title-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  padding: 24px 32px;
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 50%, #f1f5ff 100%);
  border-bottom: 1px solid #eef1f5;
}
.pdp-title-info { flex: 1; min-width: 0; }
.pdp-product-title {
  font-size: 26px;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  line-height: 1.3;
}
.pdp-product-sub {
  font-size: 16px;
  color: #64748b;
  font-weight: 400;
  margin-left: 8px;
}
.pdp-product-summary {
  font-size: 14px;
  color: #64748b;
  line-height: 1.7;
  margin: 10px 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pdp-title-stats {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.pdp-stat-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 500;
  background: #f1f5f9;
  color: #475569;
}
.pdp-stat-badge.rec {
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  color: #1d4ed8;
}
.pdp-stat-badge.hot {
  background: linear-gradient(135deg, #fff7ed, #fed7aa);
  color: #ea580c;
}

/* Tab 导航 */
.pdp-tabs {
  display: flex;
  gap: 0;
  background: #fff;
  border-bottom: 2px solid #eef1f5;
  padding: 0 32px;
  position: sticky;
  top: 60px;
  z-index: 99;
  transition: box-shadow 0.2s;
}.pdp-tabs.sticky {
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}
.pdp-tab {
  display: inline-block;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 500;
  color: #64748b;
  text-decoration: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.pdp-tab:hover {
  color: #1d4ed8;
}
.pdp-tab.active {
  color: #1d4ed8;
  border-bottom-color: #1d4ed8;
  font-weight: 600;
}

/* Hero 区 */
.pdp-hero {
  display: grid;
  grid-template-columns: 460px 1fr;
  gap: 0;
  padding: 32px;
  background: #fff;
  border-bottom: 1px solid #eef1f5;
}

/* Gallery */
.pdp-gallery {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0 32px 0 0;
}
.pdp-main-img {
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: box-shadow 0.3s;
}
.pdp-main-img:hover {
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.1);
}
.pdp-main-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s;
}
.pdp-main-img:hover img { transform: scale(1.02); }
.pdp-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.pdp-thumb {
  aspect-ratio: 1;
  background: #f8fafc;
  border: 2px solid transparent;
  border-radius: 8px;
  padding: 6px;
  cursor: pointer;
  transition: all 0.2s;
}
.pdp-thumb:hover { border-color: #93c5fd; }
.pdp-thumb.active {
  border-color: #1d4ed8;
  background: #eff6ff;
}
.pdp-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Info Panel */
.pdp-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0 0 0 32px;
}
.pdp-brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.pdp-product-name-inline {
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
}
.pdp-product-sub-inline {
  font-size: 14px;
  color: #64748b;
}
.pdp-brand-label {
  display: inline-block;
  padding: 3px 12px;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  color: #1d4ed8;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 600;
}

/* Price */
.pdp-price-block {
  background: linear-gradient(135deg, #fff1f2 0%, #fff7ed 100%);
  border-radius: 12px;
  padding: 20px 24px;
  border: 1px solid #fee2e2;
}
.pdp-price-label {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 6px;
}
.pdp-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.pdp-price-symbol {
  font-size: 20px;
  font-weight: 600;
  color: #dc2626;
}
.pdp-price-value {
  font-size: 36px;
  font-weight: 700;
  color: #dc2626;
  line-height: 1;
}
.pdp-price-save {
  display: inline-block;
  padding: 3px 10px;
  background: #fee2e2;
  color: #dc2626;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
}
.pdp-price-market-inline {
  font-size: 13px;
  color: #94a3b8;
  margin-left: 6px;
}
.pdp-price-market-inline s { color: #94a3b8; }

/* Seller Card */
.pdp-seller-card {
  background: #f8fafc;
  border-radius: 12px;
  padding: 16px 20px;
  border: 1px solid #eef1f5;
}
.pdp-seller-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.pdp-seller-title {
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
}
.pdp-seller-loc {
  font-size: 12px;
  color: #64748b;
}
.pdp-seller-head-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.pdp-seller-more-btn {
  display: inline-block;
  text-decoration: none;
  background: transparent;
  border: 1px solid #3b82f6;
  color: #3b82f6;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
  line-height: 1.4;
}
.pdp-seller-more-btn:hover {
  background: #3b82f6;
  color: #fff;
}
.pdp-seller-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pdp-seller-extra {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed #e2e8f0;
}
.pdp-seller-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 8px;
}
.pdp-seller-empty {
  text-align: center;
  color: #94a3b8;
  font-size: 13px;
  padding: 16px 0;
}
.pdp-seller-info { display: flex; flex-direction: column; gap: 2px; }
.pdp-seller-name { font-size: 14px; font-weight: 600; color: #0f172a; display: inline-flex; align-items: center; gap: 6px; }
.pdp-verified-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 16px;
  padding: 0 6px;
  background: linear-gradient(135deg, #60a5fa, #1d4ed8);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  border-radius: 8px;
  vertical-align: middle;
  box-shadow: 0 1px 3px rgba(29, 78, 216, 0.4);
  flex-shrink: 0;
  line-height: 1;
  white-space: nowrap;
}
.pdp-seller-meta {
  display: flex;
  align-items: center;
  gap: 14px;
}
.pdp-seller-phone { font-size: 12px; color: #64748b; text-decoration: none; cursor: pointer; }
.pdp-seller-phone:hover { color: #3b82f6; text-decoration: underline; }
@media (max-width: 768px) {
  .pdp-seller-phone { color: #2563eb; font-weight: 500; }
  .pdp-seller-phone:active { opacity: 0.7; }
}
@media (min-width: 769px) {
  .pdp-seller-phone {
    pointer-events: none;
    color: #64748b;
    text-decoration: none;
    cursor: default;
  }
}
.pdp-seller-time {
  font-size: 12px;
  color: #94a3b8;
}
.pdp-seller-addr {
  font-size: 12px;
  color: #475569;
  max-width: 300px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pdp-seller-price { font-size: 18px; font-weight: 700; color: #dc2626; }
.pdp-seller-empty {
  text-align: center;
  color: #94a3b8;
  font-size: 13px;
  padding: 16px 0;
}

/* Quick Specs */
.pdp-specs-quick {
  background: #fff;
  border: 1px solid #eef1f5;
  border-radius: 12px;
  padding: 16px 20px;
}
.pdp-specs-quick-title {
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 12px;
}
.pdp-specs-quick-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.pdp-specs-quick-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  padding: 6px 0;
  border-bottom: 1px dashed #eef1f5;
}
.pdp-specs-quick-item:last-child, .pdp-specs-quick-item:nth-last-child(2) {
  border-bottom: none;
}
.pdp-specs-quick-name { color: #64748b; }
.pdp-specs-quick-value { color: #0f172a; font-weight: 500; text-align: right; }
.pdp-specs-more {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  color: #1d4ed8;
  text-decoration: none;
  text-align: right;
}
.pdp-specs-more:hover { text-decoration: underline; }

/* Actions */
.pdp-actions {
  display: flex;
  gap: 10px;
  margin-top: 4px;
  flex-wrap: nowrap;
}
.pdp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all 0.2s;
  white-space: nowrap;
}
.pdp-btn-primary {
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  color: #fff;
  border-color: transparent;
}
.pdp-btn-primary:hover {
  background: linear-gradient(135deg, #1e40af, #1d4ed8);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(29, 78, 216, 0.25);
}
.pdp-btn-outline {
  background: #fff;
  color: #1d4ed8;
  border-color: #1d4ed8;
}
.pdp-btn-outline:hover {
  background: #eff6ff;
}
.pdp-btn-ghost {
  background: transparent;
  color: #64748b;
  border-color: #e2e8f0;
}
.pdp-btn-ghost:hover {
  color: #1d4ed8;
  border-color: #1d4ed8;
  background: #eff6ff;
}

/* Tab Panels */
.pdp-tab-panels {
  padding: 32px;
}
.pdp-panel {
  display: none;
}
.pdp-panel.active {
  display: block;
}
.pdp-section-title {
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.pdp-section-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 20px;
  background: linear-gradient(180deg, #3b82f6, #1d4ed8);
  border-radius: 2px;
}

/* Highlight Card */
.pdp-highlight-card {
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  border: 1px solid #eef1f5;
  border-radius: 12px;
  padding: 11px;
  margin-top: 10px;
}
.pdp-highlight-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.pdp-highlight-head h3 {
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
  margin: 0;
}
.pdp-highlight-more {
  font-size: 11px;
  color: #1d4ed8;
  text-decoration: none;
}
.pdp-highlight-more:hover { text-decoration: underline; }
.pdp-highlight-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}
.pdp-highlight-item {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1px solid #eef1f5;
  border-radius: 7px;
  padding: 6px 8px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.pdp-highlight-item:hover {
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
  transform: translateY(-1px);
}
.pdp-highlight-icon {
  font-size: 15px;
  flex-shrink: 0;
}
.pdp-highlight-text { flex: 1; min-width: 0; }
.pdp-highlight-name {
  font-size: 10px;
  color: #94a3b8;
  margin-bottom: 1px;
}
.pdp-highlight-value {
  font-size: 11px;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Intro Card */
.pdp-intro-card {
  background: #fff;
  border: 1px solid #eef1f5;
  border-radius: 14px;
  padding: 28px 32px;
  margin-bottom: 28px;
}

/* Reviews Grid */
.pdp-reviews-card {
  background: #fff;
  border: 1px solid #eef1f5;
  border-radius: 14px;
  padding: 24px;
}
.pdp-reviews-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.pdp-review-card {
  display: flex;
  gap: 14px;
  background: #f8fafc;
  border-radius: 10px;
  padding: 14px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s, transform 0.2s;
}
.pdp-review-card:hover {
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
  transform: translateY(-2px);
}
.pdp-review-thumb {
  width: 120px;
  height: 80px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}
.pdp-review-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pdp-video-thumb::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.2);
}
.pdp-video-badge {
  position: absolute;
  bottom: 6px;
  right: 6px;
  background: rgba(239, 68, 68, 0.9);
  color: #fff;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  z-index: 1;
}
.pdp-empty-tip {
  text-align: center;
  padding: 30px;
  color: #94a3b8;
  font-size: 14px;
  background: #f8fafc;
  border-radius: 8px;
}
.pdp-hot-list {
  display: flex;
  flex-direction: column;
}
.pdp-hot-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
  text-decoration: none;
  transition: background 0.2s;
}
.pdp-hot-item:last-child {
  border-bottom: none;
}
.pdp-hot-item:hover {
  background: #f8fafc;
}
.pdp-hot-rank {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e2e8f0;
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
  border-radius: 4px;
  flex-shrink: 0;
}
.pdp-hot-rank-top {
  background: linear-gradient(135deg, #ef4444, #f97316);
  color: #fff;
}
.pdp-hot-title {
  flex: 1;
  font-size: 14px;
  color: #334155;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pdp-hot-item:hover .pdp-hot-title {
  color: #1d4ed8;
}
.pdp-hot-meta {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: #94a3b8;
  flex-shrink: 0;
}

/* ============ 热门产品 ============ */
.pdp-hot-products-section {
  margin-top: 28px;
}
.pdp-hot-products {
  padding: 0;
}
.pdp-hot-products-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.pdp-hot-product-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}
.pdp-hot-product-card:hover {
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.1);
  transform: translateY(-3px);
  border-color: #3b82f6;
}
.pdp-hot-product-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #f8fafc;
  overflow: hidden;
}
.pdp-hot-product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.pdp-hot-product-card:hover .pdp-hot-product-thumb img {
  transform: scale(1.05);
}
.pdp-hot-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  background: linear-gradient(135deg, #ef4444, #f97316);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.4);
}
.pdp-hot-product-info {
  padding: 10px 12px;
}
.pdp-hot-product-name {
  font-size: 13px;
  font-weight: 500;
  color: #1e293b;
  line-height: 1.4;
  height: 36px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin-bottom: 6px;
}
.pdp-hot-product-card:hover .pdp-hot-product-name {
  color: #2563eb;
}
.pdp-hot-product-price {
  color: #ef4444;
  font-size: 14px;
  font-weight: 700;
}

@media (max-width: 1024px) {
  .pdp-hot-products-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (max-width: 768px) {
  .pdp-hot-products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .pdp-hot-product-info {
    padding: 8px 10px;
  }
  .pdp-hot-product-name {
    font-size: 12px;
    height: 32px;
  }
  .pdp-hot-product-price {
    font-size: 13px;
  }
}
.pdp-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.pdp-col {
  min-width: 0;
}
.pdp-review-body { flex: 1; min-width: 0; }
.pdp-review-body h4 {
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
  margin: 0 0 6px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pdp-review-meta {
  display: flex;
  gap: 10px;
  font-size: 12px;
  color: #94a3b8;
  margin-bottom: 6px;
}
.pdp-review-body p {
  font-size: 13px;
  color: #64748b;
  margin: 0;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Specs Full */
.pdp-specs-full {
  background: #fff;
}
.pdp-spec-group {
  margin-bottom: 24px;
  border: 1px solid #eef1f5;
  border-radius: 12px;
  overflow: hidden;
}
.pdp-spec-group-title {
  background: linear-gradient(135deg, #f1f5ff, #eef2ff);
  color: #4f46e5;
  font-weight: 700;
  font-size: 15px;
  padding: 14px 20px;
}
.pdp-spec-table {
  width: 100%;
  border-collapse: collapse;
}
.pdp-spec-table th,
.pdp-spec-table td {
  padding: 12px 20px;
  text-align: left;
  border-bottom: 1px solid #f1f5f9;
  font-size: 14px;
}
.pdp-spec-table th {
  width: 160px;
  color: #64748b;
  font-weight: 500;
  background: #f8fafc;
}
.pdp-spec-table tr:last-child th,
.pdp-spec-table tr:last-child td {
  border-bottom: none;
}
.pdp-specs-compact .pdp-spec-group {
  margin-bottom: 16px;
}
.pdp-specs-compact .pdp-spec-table th,
.pdp-specs-compact .pdp-spec-table td {
  padding: 8px 16px;
  font-size: 13px;
}
.pdp-specs-compact .pdp-spec-table th {
  width: 120px;
}
.pdp-specs-more-block {
  display: block;
  text-align: center;
  padding: 10px;
  margin-top: 8px;
  color: #1d4ed8;
  text-decoration: none;
  font-size: 13px;
  border-top: 1px solid #eef1f5;
}
.pdp-specs-more-block:hover {
  text-decoration: underline;
}

/* Quotes Panel */
.pdp-quotes-panel {
  background: #fff;
}
.pdp-dealer-form {
  background: linear-gradient(135deg, #eff6ff, #f0f9ff);
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 20px;
}
.pdp-dealer-form-title {
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 12px;
}
.pdp-dealer-form-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.pdp-dealer-form-row label {
  font-size: 14px;
  color: #64748b;
  white-space: nowrap;
}
.pdp-dealer-upgrade,
.pdp-dealer-login {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #f8fafc;
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 20px;
  font-size: 14px;
  color: #475569;
}
.pdp-dealer-upgrade a,
.pdp-dealer-login a {
  color: #1d4ed8;
  text-decoration: none;
  font-weight: 500;
}
.pdp-dealer-upgrade a:hover,
.pdp-dealer-login a:hover { text-decoration: underline; }

.pdp-quotes-list {
  margin-top: 16px;
}
.pdp-quotes-list h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 12px;
  color: #0f172a;
}
.pdp-quotes-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #eef1f5;
}
.pdp-quotes-table th {
  background: #f8fafc;
  padding: 12px 16px;
  text-align: left;
  font-size: 13px;
  color: #64748b;
  font-weight: 500;
  border-bottom: 1px solid #e2e8f0;
}
.pdp-quotes-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 14px;
}
.pdp-quotes-table tr:last-child td { border-bottom: none; }
.pdp-quote-price {
  font-weight: 700;
  color: #dc2626;
}
.pdp-quotes-empty {
  text-align: center;
  color: #94a3b8;
  padding: 40px 0;
  font-size: 14px;
}

/* Articles List */
.pdp-articles-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.pdp-article-row {
  display: flex;
  gap: 16px;
  background: #fff;
  border: 1px solid #eef1f5;
  border-radius: 12px;
  padding: 16px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.pdp-article-row:hover {
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
  border-color: #bfdbfe;
}
.pdp-article-thumb {
  width: 180px;
  height: 110px;
  flex-shrink: 0;
  border-radius: 10px;
  overflow: hidden;
}
.pdp-article-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pdp-article-body { flex: 1; min-width: 0; }
.pdp-article-body h4 {
  font-size: 16px;
  font-weight: 600;
  color: #0f172a;
  margin: 0 0 8px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pdp-article-body p {
  font-size: 14px;
  color: #64748b;
  margin: 0 0 10px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pdp-article-meta {
  display: flex;
  gap: 14px;
  font-size: 12px;
  color: #94a3b8;
}
.pdp-article-cat {
  background: #eff6ff;
  color: #1d4ed8;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 500;
}

/* Brand Grid */
.pdp-brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}
.pdp-brand-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #eef1f5;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s, transform 0.2s;
}
.pdp-brand-card:hover {
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
  transform: translateY(-3px);
}
.pdp-brand-cover {
  aspect-ratio: 1;
  background: #f8fafc;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pdp-brand-cover img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.pdp-brand-info {
  padding: 14px;
  text-align: center;
}
.pdp-brand-small {
  font-size: 12px;
  color: #94a3b8;
  margin-bottom: 4px;
}
.pdp-brand-info h4 {
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
  margin: 0 0 6px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pdp-brand-price {
  font-size: 16px;
  font-weight: 700;
  color: #dc2626;
}

/* Empty State */
.pdp-empty-state {
  text-align: center;
  color: #94a3b8;
  padding: 48px 0;
  font-size: 14px;
  background: #f8fafc;
  border-radius: 12px;
}

/* Responsive */
@media (max-width: 1024px) {
  .pdp-hero {
    grid-template-columns: 360px 1fr;
    padding: 24px;
    gap: 24px;
  }
  .pdp-gallery { padding-right: 24px; }
  .pdp-highlight-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pdp-title-bar { padding: 20px 24px; }
}

@media (max-width: 768px) {
  .pdp-title-bar {
    flex-direction: column;
    gap: 12px;
    padding: 16px 16px;
  }
  .pdp-product-title { font-size: 20px; line-height: 1.35; }
  .pdp-product-sub { font-size: 13px; }
  .pdp-product-summary { font-size: 13px; line-height: 1.5; }
  .pdp-tabs { padding: 0 12px; overflow-x: auto; }
  .pdp-tab { padding: 10px 14px; font-size: 14px; white-space: nowrap; }
  .pdp-hero {
    grid-template-columns: 1fr;
    padding: 16px;
    gap: 20px;
  }
  .pdp-gallery {
    padding: 0;
    border-right: none;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 16px;
  }
  .pdp-main-img { padding: 16px; border-radius: 10px; }
  .pdp-main-img img { max-height: 320px; }
  .pdp-thumbs { gap: 6px; }
  .pdp-thumb { padding: 4px; }
  .pdp-info { padding: 0; gap: 14px; }
  .pdp-brand-row { gap: 6px; }
  .pdp-product-name-inline { font-size: 18px; }
  .pdp-product-sub-inline { font-size: 13px; }
  .pdp-brand-label { font-size: 12px; padding: 2px 10px; }
  .pdp-price-block { padding: 14px 16px; border-radius: 10px; }
  .pdp-price-value { font-size: 28px; }
  .pdp-price-symbol { font-size: 16px; }
  .pdp-price-row { flex-wrap: wrap; gap: 6px; }
  .pdp-price-save { font-size: 11px; padding: 2px 8px; }
  .pdp-price-market-inline { font-size: 12px; margin-left: 0; }
  .pdp-tab-panels { padding: 16px 12px; }
  .pdp-highlight-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .pdp-highlight-item { padding: 10px 12px; }
  .pdp-highlight-value { font-size: 13px; }
  .pdp-reviews-grid { grid-template-columns: 1fr; }
  .pdp-article-row { flex-direction: column; }
  .pdp-article-thumb { width: 100%; height: 180px; }
  .pdp-specs-quick-list { grid-template-columns: 1fr; }
  .pdp-actions { flex-wrap: wrap; gap: 8px; }
  .pdp-btn { flex: 1; min-width: 100px; padding: 10px 12px; font-size: 13px; }
  .pdp-brand-grid { grid-template-columns: repeat(2, 1fr); }
  .pdp-review-card { flex-direction: column; }
  .pdp-review-thumb { width: 100%; height: 160px; }
  .pdp-two-col { grid-template-columns: 1fr; gap: 16px; }

  .pdp-seller-card { padding: 12px 14px; }
  .pdp-seller-head { flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
  .pdp-seller-head-right { margin-left: auto; gap: 6px; }
  .pdp-seller-row {
    flex-direction: column;
    align-items: stretch;
    padding: 10px 12px;
    gap: 8px;
  }
  .pdp-seller-info { width: 100%; gap: 3px; }
  .pdp-seller-meta { flex-wrap: wrap; gap: 8px 10px; }
  .pdp-seller-addr {
    display: block;
    max-width: none;
    white-space: normal;
    word-break: break-all;
  }
  .pdp-seller-price {
    align-self: flex-end;
    font-size: 18px;
  }

  .pdp-spec-group-title { font-size: 14px; padding: 10px 14px; }
  .pdp-spec-table th { font-size: 13px; padding: 8px 14px; width: 100px; }
  .pdp-spec-table td { font-size: 13px; padding: 8px 14px; }

  .pdp-section-title { font-size: 16px; padding: 14px 0; }
  .pdp-highlight-card { padding: 14px; }
  .pdp-highlight-head { margin-bottom: 10px; }

  .pdp-intro-card { padding: 16px 14px; }
  .product-intro h1 { font-size: 18px; }
  .product-intro h2 { font-size: 16px; }

  .breadcrumb { padding: 10px 0; font-size: 12px; }
}

/* 面包屑 */
.breadcrumb {
  padding: 0;
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { margin: 0 6px; }
.breadcrumb .current { color: var(--text); }

/* ============ 页脚 ============ */
.site-footer {
  background: #0a1931;
  color: rgba(255,255,255,0.65);
  margin-top: 60px;
  padding: 40px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand .logo {
  color: #fff;
  font-size: 22px;
  margin-bottom: 14px;
}
.footer-desc { font-size: 13px; line-height: 1.8; margin-bottom: 16px; }
.footer-col h4 {
  color: #fff;
  font-size: 15px;
  margin-bottom: 18px;
  font-weight: 600;
}
.footer-col a {
  display: block;
  color: rgba(255,255,255,0.6);
  font-size: 13px;
  padding: 5px 0;
}
.footer-col a:hover { color: #fff; }
/* ========== 关注我们二维码展示（footer 最后一列） ========== */
.footer-col-qrcode { }
.footer-qrcode-wrap { text-align: left; margin-top: -2px; }
.footer-qrcode-img {
  width: 116px;
  height: 116px;
  margin: 0;
  background: #fff;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 2px 14px rgba(0,0,0,0.18);
  padding: 6px;
}
.footer-qrcode-img img { display: block; width: 100%; height: 100%; object-fit: contain; }
.footer-qrcode-placeholder {
  color: #94a3b8;
  font-size: 13px;
  font-weight: 500;
  padding: 0;
}
.footer-qrcode-text {
  margin: 12px 0 0;
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  line-height: 1.5;
  text-align: left;
}
.footer-qrcode-empty .footer-qrcode-text {
  color: rgba(255,255,255,0.45);
}
.footer-bottom {
  padding: 20px 0;
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,0.45);
}
.footer-links {
  padding: 14px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 6px;
  font-size: 13px;
  line-height: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
}
.footer-links-title { color: rgba(255,255,255,0.55); font-weight: 600; flex-shrink: 0; }
.footer-links a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-single-pages {
  padding: 14px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 6px;
  font-size: 13px;
  line-height: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
}
.footer-single-pages .footer-links-title { color: rgba(255,255,255,0.55); font-weight: 600; flex-shrink: 0; }
.footer-single-pages a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-single-pages a:hover { color: #fff; text-decoration: underline; }

/* ============ 对比功能 ============ */
.compare-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 2px solid var(--primary);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
  padding: 14px 20px;
  z-index: 999;
  transform: translateY(100%);
  transition: transform 0.3s;
}
.compare-bar.show { transform: translateY(0); }
.compare-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
}
.compare-label { font-weight: 600; color: var(--text); white-space: nowrap; }
.compare-items {
  flex: 1;
  display: flex;
  gap: 10px;
  overflow-x: auto;
}
.compare-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px 6px 14px;
  background: #f0f6ff;
  border-radius: 6px;
  font-size: 13px;
  white-space: nowrap;
}
.compare-item .remove {
  width: 18px;
  height: 18px;
  line-height: 18px;
  text-align: center;
  border-radius: 50%;
  background: var(--text-muted);
  color: #fff;
  cursor: pointer;
  font-size: 11px;
}
.compare-bar .btn {
  padding: 10px 24px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  border: none;
  white-space: nowrap;
}
.compare-count { font-size: 12px; color: var(--text-muted); }

/* 对比弹窗/页面 */
.compare-table-wrap {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  overflow-x: auto;
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}
.compare-table th {
  background: #f8fafc;
  padding: 20px 16px;
  font-weight: 600;
  color: var(--text);
  text-align: center;
  vertical-align: middle;
  border-bottom: 2px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 2;
}
.compare-table th.product-col { min-width: 200px; }
.compare-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #f0f2f5;
  text-align: center;
  vertical-align: middle;
  font-size: 13px;
  color: var(--text);
}
.compare-table td.label-col {
  background: #fafbfd;
  text-align: right;
  color: var(--text-light);
  font-weight: 500;
  width: 140px;
  position: sticky;
  left: 0;
  z-index: 1;
}
.compare-table .group-row td {
  background: #eef3ff;
  color: var(--primary);
  font-weight: 600;
  font-size: 14px;
  text-align: left;
  padding-left: 24px;
}
.compare-prod-img {
  width: 100px;
  height: 100px;
  margin: 0 auto 10px;
  background: linear-gradient(180deg, #f8fafc, #eef2f7);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}
.compare-prod-img svg { width: 100%; height: 100%; }
.compare-prod-name {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text);
}
.compare-prod-price {
  color: var(--accent);
  font-size: 20px;
  font-weight: 700;
}
.highlight-col {
  background: #f0fff4 !important;
}

/* ============ 后台管理 · 高端IT蓝风格 ============ */
/* 全局美化滚动条 */
.admin-layout *,
.admin-layout *::before,
.admin-layout *::after { box-sizing: border-box; }

.admin-layout ::-webkit-scrollbar { width: 8px; height: 8px; }
.admin-layout ::-webkit-scrollbar-track { background: transparent; }
.admin-layout ::-webkit-scrollbar-thumb {
  background: rgba(0, 82, 217, 0.18);
  border-radius: 8px;
  transition: background 0.2s ease;
}
.admin-layout ::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 82, 217, 0.36);
}
.admin-layout ::-webkit-scrollbar-thumb:active {
  background: rgba(0, 61, 165, 0.45);
}
.admin-layout .admin-sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
}
.admin-layout .admin-sidebar::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.28);
}

.admin-layout {
  display: flex;
  min-height: 100vh;
  background:
    radial-gradient(1200px 600px at 90% -10%, rgba(0, 82, 217, 0.08), transparent 60%),
    linear-gradient(180deg, #f4f6fb 0%, #eaf0fa 100%);
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
}

/* === 侧边栏：深邃科技蓝 + 微发光纹理 === */
.admin-sidebar {
  width: 240px;
  background:
    linear-gradient(180deg, #0b1f4d 0%, #0a1a47 55%, #081638 100%);
  color: #e8eefc;
  flex-shrink: 0;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  z-index: 20;
  box-shadow: 4px 0 24px rgba(5, 20, 60, 0.18);
}
.admin-sidebar::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(400px 200px at 20% 0%, rgba(66, 133, 244, 0.22), transparent 60%),
    radial-gradient(300px 220px at 90% 100%, rgba(0, 82, 217, 0.22), transparent 60%);
  pointer-events: none;
}
.admin-sidebar::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(circle at 50% 20%, #000 40%, transparent 80%);
  pointer-events: none;
}

.admin-logo {
  position: relative;
  padding: 26px 22px 22px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1px;
  text-align: left;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(135deg, rgba(0, 82, 217, 0.35), rgba(66, 133, 244, 0.15));
  display: flex;
  align-items: center;
  gap: 12px;
}
.admin-logo .logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #4285f4, #0052d9);
  box-shadow: 0 8px 20px rgba(66, 133, 244, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  flex-shrink: 0;
}
.admin-logo .logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.admin-logo .logo-title {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}
.admin-logo .logo-sub {
  font-size: 11px;
  color: rgba(232, 238, 252, 0.6);
  letter-spacing: 1px;
  margin-top: 3px;
}

.admin-sidebar-footer {
  position: relative;
  padding: 14px 20px 18px;
  font-size: 12px;
  color: rgba(232, 238, 252, 0.45);
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: auto;
  letter-spacing: 1.5px;
}

.admin-menu {
  position: relative;
  padding: 18px 14px;
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.admin-menu a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  color: rgba(232, 238, 252, 0.78);
  border-radius: 10px;
  font-size: 14px;
  margin-bottom: 2px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: 0.3px;
}
.admin-menu a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 0;
  background: linear-gradient(180deg, #4285f4, #0052d9);
  border-radius: 3px;
  transition: height 0.25s ease;
  opacity: 0;
}
.admin-menu .menu-icon {
  flex: 0 0 24px;
  width: 24px;
  min-width: 24px;
  max-width: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
  text-align: center;
  opacity: 0.9;
  transition: transform 0.25s ease;
}
.admin-menu a > span:nth-child(2) {
  display: inline-block;
  text-align: left;
  line-height: 1;
  font-weight: 400;
}
.admin-menu a:hover {
  background: rgba(66, 133, 244, 0.14);
  color: #fff;
  transform: translateX(2px);
}
.admin-menu a:hover .menu-icon {
  opacity: 1;
  transform: scale(1.08);
}
.admin-menu a.active {
  background: linear-gradient(135deg, rgba(66, 133, 244, 0.26), rgba(0, 82, 217, 0.26));
  color: #fff;
  box-shadow:
    0 6px 16px rgba(0, 82, 217, 0.28),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.admin-menu a.active::before {
  height: 60%;
  opacity: 1;
}
.admin-menu hr {
  border: none;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
  margin: 10px 6px;
}
.admin-menu a.collect-parent-active {
  background: rgba(255, 255, 255, 0.06);
}
.admin-menu a.sub-link {
  padding: 6px 14px 6px 38px;
  gap: 0;
  font-size: 13px;
  letter-spacing: 0.2px;
}
.admin-menu a.sub-link::before {
  left: 12px;
}

/* === 主内容区 === */
.admin-main {
  flex: 1;
  margin-left: 240px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.admin-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  padding: 16px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}
.admin-header h2 {
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: 0.3px;
  position: relative;
  padding-left: 14px;
}
.admin-header h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 20px;
  background: linear-gradient(180deg, #4285f4, #0052d9);
  border-radius: 3px;
}
.admin-user {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  color: #475569;
}
.admin-user .user-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #eef4ff;
  color: #0052d9;
  font-weight: 500;
}

.admin-content {
  padding: 28px 32px 48px;
  flex: 1;
}

/* === 卡片 === */
.card {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 14px;
  padding: 26px 28px;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 8px 24px rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(15, 23, 42, 0.05);
  backdrop-filter: blur(8px);
}
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}
.card-header h3 {
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: 0.3px;
  position: relative;
  padding-left: 12px;
}
.card-header h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 16px;
  background: linear-gradient(180deg, #4285f4, #0052d9);
  border-radius: 3px;
}

/* === 按钮 === */
.btn {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
  border: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 500;
  letter-spacing: 0.3px;
  position: relative;
}
.btn-sm { padding: 5px 12px; font-size: 12px; border-radius: 6px; }
.btn-primary {
  background: linear-gradient(135deg, #0052d9, #0066f5);
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 82, 217, 0.25);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #003da5, #0052d9);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 82, 217, 0.32);
}
.btn-success {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.22);
}
.btn-success:hover { background: linear-gradient(135deg, #059669, #047857); color: #fff; transform: translateY(-1px); }
.btn-danger {
  background: linear-gradient(135deg, #ff4444, #e02020);
  color: #fff;
  box-shadow: 0 4px 12px rgba(255, 68, 68, 0.22);
}
.btn-danger:hover { background: linear-gradient(135deg, #cc0000, #b00020); color: #fff; transform: translateY(-1px); }
.btn-warning {
  background: linear-gradient(135deg, #ff6b35, #f97316);
  color: #fff;
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.22);
}
.btn-warning:hover { background: linear-gradient(135deg, #e05a24, #ea580c); color: #fff; transform: translateY(-1px); }
.btn-default {
  background: #fff;
  color: #475569;
  border: 1px solid #e2e8f0;
}
.btn-default:hover {
  border-color: #0052d9;
  color: #0052d9;
  background: #f5f8ff;
}
.btn-link {
  background: transparent;
  color: #0052d9;
  padding: 4px 10px;
  font-weight: 500;
}
.btn-link:hover { background: #eef4ff; color: #003da5; }

/* === 表格 === */
.admin-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
}
.admin-table thead th {
  background: linear-gradient(180deg, #f5f8ff 0%, #eaf0fa 100%);
  padding: 14px 16px;
  text-align: left;
  font-weight: 600;
  color: #334155;
  border-bottom: 1px solid #e2e8f0;
  white-space: nowrap;
  vertical-align: middle;
}
.admin-table tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
  transition: background 0.2s ease;
  vertical-align: middle;
  line-height: 1.5;
}
.admin-table tbody tr:last-child td { border-bottom: none; }
.admin-table tbody tr:hover td {
  background: #f5f8ff;
}

/* 徽章 */
.badge {
  display: inline-block;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 999px;
  line-height: 1.5;
  white-space: nowrap;
  vertical-align: middle;
}
.badge-green {
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
  color: #065f46;
  box-shadow: inset 0 0 0 1px rgba(16, 185, 129, 0.15);
}
.badge-red {
  background: linear-gradient(135deg, #fee2e2, #fecaca);
  color: #991b1b;
  box-shadow: inset 0 0 0 1px rgba(239, 68, 68, 0.15);
}
.badge-orange {
  background: #fff1e6;
  color: #c2410c;
}
.badge-blue {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  color: #1e40af;
  box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.15);
}

.admin-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

/* === 表单 === */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  font-size: 13px;
  color: #334155;
  letter-spacing: 0.3px;
}
.form-label .required { color: #ff4444; margin-left: 2px; }
.auto-calc-hint {
  display: inline-block;
  margin-left: 8px;
  font-size: 12px;
  font-weight: 400;
  color: #2563eb;
}
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-size: 13px;
  outline: none;
  transition: all 0.2s ease;
  font-family: inherit;
  background: #fff;
  color: #0f172a;
}
.form-input:hover,
.form-select:hover,
.form-textarea:hover {
  border-color: #c2d2f0;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: #0052d9;
  box-shadow: 0 0 0 4px rgba(0, 82, 217, 0.1);
  background: #fff;
}
.form-textarea { min-height: 120px; resize: vertical; line-height: 1.6; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }

/* === 统计卡片 === */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}
.stat-card {
  position: relative;
  background: #fff;
  border-radius: 14px;
  padding: 22px 24px;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 8px 24px rgba(15, 23, 42, 0.06);
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.stat-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 4px 8px rgba(15, 23, 42, 0.06),
    0 20px 40px rgba(15, 23, 42, 0.1);
}
.stat-card::before {
  content: "";
  position: absolute;
  right: -30px;
  top: -30px;
  width: 120px;
  height: 120px;
  background: currentColor;
  opacity: 0.1;
  border-radius: 50%;
  filter: blur(4px);
}
.stat-card::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #4285f4, #0052d9);
  opacity: 0.9;
}
.stat-card.green::after { background: linear-gradient(90deg, #34d399, #059669); }
.stat-card.orange::after { background: linear-gradient(90deg, #fb923c, #f97316); }
.stat-card.red::after { background: linear-gradient(90deg, #f87171, #ef4444); }
.stat-card.blue { color: #0052d9; }
.stat-card.green { color: #059669; }
.stat-card.orange { color: #ea580c; }
.stat-card.red { color: #dc2626; }
.stat-label {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 12px;
  font-weight: 500;
  letter-spacing: 0.3px;
}
.stat-value {
  font-size: 32px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.5px;
}
.stat-change {
  margin-top: 10px;
  font-size: 12px;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* 登录页 */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(800px 500px at 20% 10%, rgba(66, 133, 244, 0.35), transparent 60%),
    radial-gradient(700px 500px at 80% 90%, rgba(0, 82, 217, 0.4), transparent 60%),
    linear-gradient(135deg, #0a1a47, #0b1f4d 60%, #081638);
  padding: 20px;
  position: relative;
  overflow: hidden;
}
.login-page::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(circle at 50% 50%, #000 30%, transparent 80%);
}
.login-box {
  background: rgba(255, 255, 255, 0.96);
  border-radius: 20px;
  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.1);
  width: 100%;
  max-width: 440px;
  padding: 44px 40px;
  backdrop-filter: blur(20px);
  position: relative;
  margin-top: 20px;
}
.login-box h2 {
  text-align: center;
  color: #0b1f4d;
  font-size: 24px;
  margin-bottom: 6px;
  font-weight: 700;
}
.login-box p { text-align: center; color: #64748b; margin-bottom: 32px; font-size: 13px; letter-spacing: 0.3px; }

/* 后台登录页验证码居中 */
.login-box .slider-captcha {
  margin: 16px auto;
}
.login-box .slider-captcha-box {
  width: 300px;
}
.login-box .slider-captcha-slider {
  width: 300px;
}
.login-logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, #4285f4, #0052d9);
  box-shadow: 0 12px 30px rgba(66, 133, 244, 0.35);
  color: #fff;
  margin-top: 8px;
}
.login-logo-icon svg {
  color: #fff;
  display: block;
}

/* 管理后台提示条 */
.admin-alert {
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 16px;
  font-size: 13px;
  border: 1px solid transparent;
  display: flex;
  align-items: center;
  gap: 10px;
}
.admin-alert-success { background: #ecfdf5; color: #065f46; border-color: #a7f3d0; }
.admin-alert-error { background: #fef2f2; color: #991b1b; border-color: #fecaca; }
.admin-alert-warning { background: #fffbeb; color: #92400e; border-color: #fde68a; }
.admin-alert-info { background: #eff6ff; color: #1e40af; border-color: #bfdbfe; }

/* 分页 */
.admin-pagination {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
  margin-top: 20px;
  font-size: 13px;
}
.admin-pagination a,
.admin-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 12px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #e2e8f0;
  color: #475569;
  transition: all 0.2s ease;
}
.admin-pagination a:hover {
  border-color: #0052d9;
  color: #0052d9;
  background: #f5f8ff;
}
.admin-pagination .current {
  background: linear-gradient(135deg, #0052d9, #0066f5);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(0, 82, 217, 0.25);
}

/* 筛选条 */
.admin-filter-bar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  background: #fff;
  padding: 14px 18px;
  border-radius: 12px;
  margin-bottom: 18px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(15, 23, 42, 0.05);
}
.admin-filter-bar .form-input,
.admin-filter-bar .form-select {
  padding: 7px 12px;
  font-size: 13px;
}

/* === 移动端元素：PC端默认隐藏，去除浏览器默认样式 === */
.mobile-header-tools {
  display: none !important;
}
.mobile-icon-btn {
  display: none !important;
  border: none !important;
  outline: none !important;
  background: transparent !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}
.mobile-search-btn { display: none !important; }
.mobile-menu-btn { display: none !important; }

/* 响应式 */

/* SVG 通用样式（用于图片占位） */
svg.placeholder-img { width: 100%; height: 100%; }
svg.placeholder-img .bg { fill: url(#placeholderGrad); }
svg.placeholder-img .pattern { opacity: 0.1; }
svg.placeholder-img .icon { fill: rgba(255,255,255,0.8); }
svg.placeholder-img .label { fill: #fff; font-family: sans-serif; font-weight: bold; }

/* ============ 响应式 ============ */
@media (max-width: 1024px) {
  .container { padding: 0 12px; }
  .products-grid { grid-template-columns: repeat(4, 1fr); }
  .products-grid .product-card:nth-child(5) { display: none; }
  .brand-bar { grid-template-columns: repeat(8, 1fr); }
  .news-layout { grid-template-columns: 1fr; }
  .banner-wrap { grid-template-columns: 1fr; }
  .banner-brand { display: none; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-top { grid-template-columns: 1fr; gap: 24px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row, .form-row-3 { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  /* ===== 移动端头部优化 ===== */
  .topbar { display: none; }

  .site-header { position: sticky; top: 0; z-index: 100; }
  .header-main {
    flex-wrap: nowrap;
    gap: 8px;
    padding: 8px 0;
    align-items: center;
  }
  .logo {
    font-size: 18px;
    gap: 6px;
    flex-shrink: 0;
  }
  .logo-icon { width: 32px; height: 32px; border-radius: 8px; }
  .logo-tag { display: block; font-size: 10px; margin-top: -4px; text-align: center; letter-spacing: 0; }
  .logo-tagline { margin-left: 6px; font-size: 16px; color: #64748b; font-weight: 500; }
  .header-actions { display: none; }
  .search-box {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-width: none;
    width: 100%;
    background: #fff;
    border: none;
    border-bottom: 2px solid var(--primary);
    border-radius: 0;
    padding: 8px 12px;
    z-index: 200;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  }
  .search-box.open { display: flex; }
  .search-box select { font-size: 12px; padding: 0 8px; }
  .search-box input { font-size: 14px; padding: 8px 12px; }
  .search-box button { padding: 0 18px; font-size: 13px; }

  /* 移动端头部右侧按钮组 */
  .header-actions { display: none; }

  /* 移动端工具栏：搜索按钮 + 汉堡菜单 */
  .mobile-header-tools {
    display: flex !important;
    gap: 4px;
    margin-left: auto;
    flex-shrink: 0;
  }
  .mobile-icon-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: none !important;
    background: transparent;
    color: var(--text);
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.15s;
  }
  .mobile-icon-btn:hover { background: #f1f5f9; }
  .mobile-icon-btn svg { width: 22px; height: 22px; }

  /* 汉堡菜单按钮 */
  .mobile-menu-btn { display: flex !important; }
  .mobile-menu-btn.active .hamburger-icon span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }
  .mobile-menu-btn.active .hamburger-icon span:nth-child(2) {
    opacity: 0;
  }
  .mobile-menu-btn.active .hamburger-icon span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }
  .hamburger-icon {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 22px;
    height: 16px;
    position: relative;
  }
  .hamburger-icon span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
  }

  /* 移动端搜索图标按钮 */
  .mobile-search-btn { display: flex !important; }

  /* ===== 移动端导航：折叠菜单 ===== */
  .main-nav {
    display: none;
    position: fixed;
    top: 50px;
    left: 0;
    right: 0;
    z-index: 150;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    max-height: calc(100vh - 50px);
    overflow-y: auto;
  }
  .main-nav.open { display: block; }
  .nav-list {
    flex-direction: column;
    max-width: none;
    padding: 0;
    background: linear-gradient(180deg, var(--primary-dark) 0%, var(--primary) 100%);
  }
  .nav-list li { border-bottom: 1px solid rgba(255,255,255,0.1); }
  .nav-list li:last-child { border-bottom: none; }
  .nav-list li a {
    padding: 16px 24px;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    display: block;
    transition: background 0.15s;
  }
  .nav-list li a:hover,
  .nav-list li a.active {
    background: rgba(255,255,255,0.15);
  }
  .nav-list li a.active::after { display: none; }

  .pdp-tabs { top: 52px; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .products-grid .product-card:nth-child(5) { display: none; }
  .product-info { padding: 10px 12px 14px; }
  .product-name { font-size: 13px; height: 36px; }
  .product-price .amount { font-size: 20px; }
  .brand-bar { grid-template-columns: repeat(6, 1fr); gap: 6px; padding: 12px; }
  .brand-logo { width: 40px; height: 40px; border-radius: 10px; font-size: 13px; }
  .headline { grid-template-columns: 1fr; gap: 16px; padding-bottom: 18px; margin-bottom: 18px; }
  .news-main { padding: 16px; }
  .news-item { grid-template-columns: 100px 1fr; gap: 10px; padding: 12px 0; }
  .news-item h4 { font-size: 14px; line-height: 1.4; }
  .news-summary { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .news-meta { flex-wrap: wrap; gap: 6px 10px; font-size: 11px; }
  .news-meta span { white-space: nowrap; }
  .tabs-bar {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
    gap: 6px;
    padding-bottom: 4px;
    margin-bottom: 14px;
  }
  .tabs-bar::-webkit-scrollbar { height: 3px; }
  .tabs-bar::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
  .tabs-bar a {
    flex-shrink: 0;
    padding: 6px 14px;
    font-size: 12px;
    white-space: nowrap;
  }
  .breadcrumb { font-size: 12px; flex-wrap: wrap; padding: 6px 0; }
  .section-header { margin: 6px 0 12px; }
  .banner-main { height: 280px; }
  .banner-content { bottom: 40px; left: 24px; right: 24px; }
  .banner-bottom-bar { gap: 12px; }
  .banner-title { font-size: 20px; }
  .banner-btn { padding: 6px 16px; font-size: 13px; }
  .banner-desc { font-size: 13px; }
  .section { margin-top: 20px; }
  .section-title { font-size: 18px; }
  .article-detail { padding: 20px; }
  .article-header h1 { font-size: 22px; }
  .article-content { font-size: 15px; }
  .product-detail { padding: 20px; }
  .detail-title { font-size: 22px; }
  .detail-price-now { font-size: 28px; }
  .admin-sidebar { width: 64px; }
  .admin-logo { padding: 16px 8px; font-size: 12px; gap: 0; justify-content: center; }
  .admin-logo .logo-mark { width: 30px; height: 30px; font-size: 15px; }
  .admin-logo .logo-text { display: none; }
  .admin-menu a span:not(.menu-icon) { display: none; }
  .admin-menu a { justify-content: center; font-size: 18px; padding: 12px; }
  .admin-main { margin-left: 64px; }
  .admin-content { padding: 16px; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat-card { padding: 16px; }
  .stat-value { font-size: 22px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .site-footer { padding: 28px 0 0; }
  .footer-grid, .footer-single-pages, .footer-links { display: none; }
  .site-footer { padding: 0; }
  .footer-bottom { border-top: none; }
  .filter-label { width: 60px; font-size: 12px; }
  .filter-options a { padding: 5px 10px; font-size: 12px; }
  .detail-actions { flex-wrap: wrap; }
  .detail-actions .btn { flex: 1; padding: 12px; }
}

@media (max-width: 480px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .brand-bar { grid-template-columns: repeat(4, 1fr); }
  .news-item { grid-template-columns: 1fr; gap: 12px; }
  .news-thumb { aspect-ratio: 16/9; }
  .news-item h4 { font-size: 15px; }
  .news-meta { font-size: 11px; }
  .news-tag { font-size: 11px; }
  .page-title-block h1 { font-size: 18px; }
  .side-block { padding: 14px; }
  .banner-main { height: 220px; }
  .banner-content { bottom: 36px; left: 16px; right: 16px; }
  .banner-bottom-bar { gap: 10px; }
  .banner-title { font-size: 16px; }
  .banner-btn { padding: 6px 14px; font-size: 12px; }
  .compare-prod-img { width: 70px; height: 70px; }
  .compare-prod-name { font-size: 13px; }
  .compare-prod-price { font-size: 16px; }

  .pdp-product-title { font-size: 18px; }
  .pdp-price-value { font-size: 24px; }
  .pdp-price-symbol { font-size: 14px; }
  .pdp-highlight-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .pdp-highlight-item { padding: 8px 10px; }
  .pdp-highlight-value { font-size: 12px; }
  .pdp-highlight-name { font-size: 11px; }
  .pdp-btn { font-size: 12px; padding: 8px 10px; }
  .pdp-seller-name { font-size: 13px; }
  .pdp-seller-phone { font-size: 11px; }
  .pdp-seller-time { font-size: 11px; }
  .pdp-seller-addr { font-size: 11px; }
  .pdp-seller-price { font-size: 16px; }
  .pdp-seller-more-btn { font-size: 11px; padding: 3px 8px; }
  .pdp-spec-table th { font-size: 12px; padding: 6px 10px; width: 80px; }
  .pdp-spec-table td { font-size: 12px; padding: 6px 10px; }
  .pdp-hot-products-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .pdp-hot-product-name { font-size: 11px; height: 28px; }
  .pdp-hot-product-price { font-size: 12px; }
  .pdp-hot-product-info { padding: 6px 8px; }
}

/* ========================================================
 * 📱 手机端适配强化（解决手机访问溢出/变形/扫不到二维码等实际问题）
 * ========================================================
 *  规则：尽量跟现有三档断点(1024/768/480)对齐，或用 max-width 更保守兜底。
 */

/* —— 基础：全量盒子模型 + 图片不溢出父容器 —— */
html { box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; }
img { max-width: 100%; height: auto; }
iframe, video, embed, object { max-width: 100%; }

/* —— 容器：窄屏不被最大宽度锁死，永远左右各留 12px 呼吸 —— */
.container { width: 100%; max-width: 1200px; margin: 0 auto; }
@media (max-width: 768px) {
  .container { padding-left: 12px !important; padding-right: 12px !important; }
  body { font-size: 14px; }
}

/* ————————————————————————
 * 1) 文章富文本：手机上 img/table 绝对不能横向溢出（这是手机访问最常见的投诉点）
 * ———————————————————————— */
.article-content img {
  max-width: 100% !important;
  height: auto !important;
  display: block;
  border-radius: 6px;
  margin: 12px auto;
}
.article-content table {
  width: 100% !important;
  max-width: 100%;
  border-collapse: collapse;
  display: block;           /* 强制表格超出时出现横滚条（不破坏整页布局） */
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  white-space: nowrap;
  font-size: 13px;
}
.article-content table td,
.article-content table th {
  border: 1px solid #e2e8f0;
  padding: 6px 10px;
  white-space: normal; /* 单元格允许换行 */
}
.article-content blockquote {
  margin: 16px 0;
  padding: 10px 14px;
  border-left: 4px solid #c7d2fe;
  background: #eef2ff;
  font-size: 14px;
}
.article-content p { line-height: 1.8; word-break: break-word; }
.article-content pre {
  overflow-x: auto;
  padding: 12px 14px;
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 8px;
  font-size: 12px;
  max-width: 100%;
}
/* 手机端文章容器再缩一点内边距，避免字挤 */
@media (max-width: 480px) {
  .article-detail { padding: 16px 14px !important; border-radius: 0; }
  .article-header h1 { font-size: 20px !important; line-height: 1.35; }
  .article-content { font-size: 15px; line-height: 1.8; }
  .article-content img { border-radius: 8px; margin: 14px 0; }
}

/* ————————————————————————
 * 2) 软件助手模块（新加）窄屏适配
 * ———————————————————————— */
.software-card {
  border-radius: 12px;
  padding: 16px 18px;
}
@media (max-width: 768px) {
  .software-card { padding: 14px 14px; border-radius: 10px; }
  .software-card .software-info-row {
    grid-template-columns: 1fr !important;   /* 原本 2 列信息 → 手机端改 1 列堆叠更易读 */
    gap: 8px !important;
  }
  .software-card .software-info-row > div { margin-bottom: 0; }
  .software-card .btn-download-primary {
    display: block;
    width: 100%;
    text-align: center;
    padding: 14px 20px;
    font-size: 16px;
    margin-top: 12px;
  }
  .software-section {
    padding: 14px;
    border-radius: 10px;
  }
  .software-section h4 {
    font-size: 15px;
  }
}
@media (max-width: 480px) {
  .software-card .software-icon-box {
    width: 56px; height: 56px;
  }
  .software-card .software-title-row {
    font-size: 18px;
  }
}

/* ————————————————————————
 * 3) footer 关注我们二维码：手机窄屏单列时放大到 140 更好扫（本来 116px 老年人看不清）
 * ———————————————————————— */
@media (max-width: 768px) {
  .footer-grid { gap: 28px !important; }
  .footer-col h4 {
    font-size: 15px;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  /* 单列表头左对齐时二维码也保持左对齐，不需要居中 */
  .footer-qrcode-img {
    width: 140px !important;
    height: 140px !important;
    border-radius: 12px !important;
  }
  .footer-qrcode-text {
    font-size: 13px;
    margin-top: 10px;
  }
}

/* ————————————————————————
 * 4) 产品库规格表 / 对比表溢出防护（横滚不挤压页宽）
 * ———————————————————————— */
.spec-table-wrap, .compare-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}
.spec-table-wrap table, .compare-table-wrap table {
  margin: 0;
  border: none;
  min-width: 640px;   /* 手机端强制最小宽，触发横滚条而不是挤变形 */
}
.product-detail { border-radius: 0; }
@media (max-width: 480px) {
  .product-detail { padding: 14px !important; }
  .detail-param-list li {
    grid-template-columns: 90px 1fr !important;
    font-size: 13px;
  }
}

/* ————————————————————————
 * 5) 分页 & Tag 标签：窄屏自动折行不横溢
 * ———————————————————————— */
.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 24px 0;
  justify-content: center;
}
.pagination a, .pagination span {
  padding: 6px 12px !important;
  font-size: 13px !important;
  min-width: 34px;
  text-align: center;
}
.tag {
  display: inline-block;
  white-space: nowrap;
  margin-right: 4px;
  margin-bottom: 4px;
}

/* ————————————————————————
 * 6) 首页导航/搜索/Logo 窄屏极端屏(≤360px)优化
 * ———————————————————————— */
@media (max-width: 360px) {
  .header-logo img, .header-logo .logo-icon {
    width: 34px !important; height: 34px !important;
  }
  .header-logo .site-name { font-size: 16px !important; }
  .header-logo .site-url  { display: none; }
  .footer-qrcode-img {
    width: 130px !important;
    height: 130px !important;
  }
  .article-header h1 { font-size: 18px !important; }
  .banner-main { height: 190px !important; }
  .banner-title { font-size: 16px !important; }
}

/* ————————————————————————
 * 7) 下载页/404 页等简单错误页适配（_router.php 输出的 404 也会命中）
 * ———————————————————————— */
.download-page, ._404-wrap { padding: 20px 14px !important; }
.download-page h1, ._404-wrap h1 { font-size: 22px !important; }
.download-page .dl-btn, ._404-wrap .btn {
  display: block;
  width: 100%;
  text-align: center;
  box-sizing: border-box;
  margin: 10px 0;
}
