/* ===== Reset & Base ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --primary: #4f6df5;
  --primary-dark: #3b5de7;
  --primary-light: #eef2ff;
  --secondary: #1a1d2e;
  --accent: #ff6b6b;
  --success: #2ecc71;
  --warning: #f39c12;
  --text: #2d3436;
  --text-light: #636e72;
  --text-muted: #b2bec3;
  --bg: #ffffff;
  --bg-alt: #f8f9fd;
  --bg-dark: #1a1d2e;
  --border: #e9ecf0;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 4px 20px rgba(0,0,0,0.06);
  --shadow-hover: 0 10px 40px rgba(0,0,0,0.12);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --header-h: 68px;
  --max-w: 1200px;
}
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }
.text-center { text-align: center; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 24px; border: none; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600; cursor: pointer;
  transition: var(--transition); text-decoration: none;
  white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(79,109,245,0.35); }
.btn-outline { background: transparent; border: 2px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-lg { padding: 14px 36px; font-size: 16px; }
.btn-block { display: flex; justify-content: center; width: 100%; }

/* ===== Header ===== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--header-h); background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px); border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.site-header.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.08); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 800; color: var(--secondary); max-width: 260px; }
.logo:hover { color: var(--primary); }
.logo-icon { color: var(--primary); font-size: 26px; }
.logo-img { display: block; max-width: 240px; max-height: 54px; width: auto; height: auto; object-fit: contain; flex-shrink: 0; }
.main-nav { display: flex; gap: 4px; }
.main-nav a {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: var(--radius-sm);
  color: var(--text-light); font-weight: 500; font-size: 15px;
}
.main-nav a:hover, .main-nav a.active { background: var(--primary-light); color: var(--primary); }
.main-nav a i { font-size: 14px; }
.header-tools { display: flex; align-items: center; gap: 12px; }
.lang-switch {
  padding: 6px 14px; border: 1px solid var(--border); border-radius: 20px;
  font-size: 13px; font-weight: 600; color: var(--text-light);
}
.lang-switch:hover { border-color: var(--primary); color: var(--primary); }
.admin-link { color: var(--text-muted); font-size: 18px; }
.admin-link:hover { color: var(--primary); }
.mobile-toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; }
.mobile-toggle span { display: block; width: 24px; height: 3px; background: var(--text); border-radius: 3px; transition: var(--transition); }

/* ===== Main ===== */
.site-main { padding-top: var(--header-h); }

/* ===== Hero ===== */
.hero-section {
  position: relative; min-height: 520px; display: flex; align-items: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(255,255,255,0.08) 0%, transparent 50%);
}
.hero-content { position: relative; z-index: 2; text-align: center; color: #fff; padding: 60px 0; }
.hero-title { font-size: 48px; font-weight: 800; margin-bottom: 16px; letter-spacing: -0.5px; }
.hero-subtitle { font-size: 18px; opacity: 0.9; margin-bottom: 32px; max-width: 640px; margin-left: auto; margin-right: auto; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-actions .btn-outline { border-color: rgba(255,255,255,0.5); color: #fff; }
.hero-actions .btn-outline:hover { background: rgba(255,255,255,0.15); }

/* ===== Stats Bar ===== */
.stats-bar { background: var(--bg-alt); padding: 40px 0; }

/* ===== Site Dynamics Ticker (vertical scroll above Latest Articles) ===== */
.ticker-bar { background: linear-gradient(90deg, #4f6df5, #6a5af9); padding: 0; overflow: hidden; }
.ticker-inner { display: flex; align-items: center; gap: 14px; height: 44px; }
.ticker-label { flex: 0 0 auto; display: flex; align-items: center; gap: 6px; color: #fff; font-weight: 700; font-size: 14px; white-space: nowrap; }
.ticker-label i { font-size: 15px; }
.ticker-viewport { flex: 1 1 auto; overflow: hidden; height: 44px; position: relative; -webkit-mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent); mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent); }
.ticker-track { display: flex; flex-direction: column; animation: tickerScroll 14s linear infinite; }
.ticker-bar:hover .ticker-track { animation-play-state: paused; }
@keyframes tickerScroll { 0% { transform: translateY(0); } 100% { transform: translateY(-50%); } }
.ticker-item { display: flex; align-items: center; gap: 10px; height: 44px; white-space: nowrap; overflow: hidden; }
.ticker-nick { flex: 0 0 auto; color: #ffe082; font-weight: 600; font-size: 13px; display: flex; align-items: center; gap: 4px; }
.ticker-text { flex: 1 1 auto; color: #fff; font-size: 13px; text-decoration: none; overflow: hidden; text-overflow: ellipsis; }
.ticker-text:hover { text-decoration: underline; color: #fff; }
.ticker-date { flex: 0 0 auto; color: rgba(255,255,255,0.7); font-size: 12px; }
@media (max-width: 640px) {
  .ticker-label { font-size: 12px; }
  .ticker-text { font-size: 12px; }
  .ticker-date { display: none; }
  .ticker-inner { height: 38px; }
  .ticker-viewport, .ticker-item { height: 38px; }
}

/* ===== Homepage Slider (between nav and stats) ===== */
.hero-slider { position: relative; width: 100%; overflow: hidden; background: #1a1a2e; padding: 16px 0; }
.slider-inner { position: relative; padding: 0; }
.slider-inner .slider-track { border-radius: var(--radius); overflow: hidden; }
.slider-track { display: flex; transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1); }
.slider-slide { flex: 0 0 100%; position: relative; }
.slider-link { display: block; position: relative; width: 100%; height: 420px; }
.slider-link img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slider-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 48px 24px 36px; background: linear-gradient(to top, rgba(0,0,0,0.72), transparent); }
.slider-caption span { color: #fff; font-size: 24px; font-weight: 700; text-shadow: 0 2px 8px rgba(0,0,0,0.5); }
.slider-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: none; background: rgba(255,255,255,0.28); color: #fff; font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.25s; z-index: 5; backdrop-filter: blur(4px); }
.slider-arrow:hover { background: rgba(255,255,255,0.5); }
.slider-prev { left: 16px; }
.slider-next { right: 16px; }
.slider-dots { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 5; }
.slider-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.45); cursor: pointer; transition: all 0.25s; }
.slider-dot.active { background: #fff; width: 26px; border-radius: 5px; }

/* ===== 3-currency price (CNY / USD / EUR) ===== */
.price-multi { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.price-multi .price-cny { font-size: 19px; font-weight: 800; color: #e74c3c; }
.price-multi .price-usd { font-size: 14px; font-weight: 600; color: #27ae60; }
.price-multi .price-eur { font-size: 14px; font-weight: 600; color: #2980b9; }
.price-multi-detail { margin-bottom: 0; }
.price-multi-detail .price-cny { font-size: 24px; }
.price-multi-detail .price-usd, .price-multi-detail .price-eur { font-size: 16px; }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stats-grid-four { grid-template-columns: repeat(4, 1fr); }
.stat-item { display: flex; align-items: center; gap: 16px; background: #fff; padding: 24px; border-radius: var(--radius); box-shadow: var(--shadow); text-decoration: none; color: inherit; transition: transform .2s, box-shadow .2s; }
.stat-item:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.stat-icon { width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; background: var(--primary-light); border-radius: var(--radius-sm); color: var(--primary); font-size: 24px; }
.stat-num { font-size: 28px; font-weight: 800; color: var(--secondary); }
.stat-label { font-size: 14px; color: var(--text-light); }

/* ===== Nav Sites Showcase (homepage, below products) ===== */
.nav-showcase-grid { display: grid; grid-template-columns: repeat(var(--cols, 4), 1fr); gap: 20px; }
.nav-showcase-card { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; text-decoration: none; color: inherit; transition: transform .2s, box-shadow .2s; }
.nav-showcase-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.nav-showcase-placeholder { height: 100%; display: flex; align-items: center; justify-content: center; color: var(--text-muted); font-size: 32px; }
.nav-showcase-body { padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.nav-showcase-title { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-showcase-go { font-size: 13px; color: var(--primary); font-weight: 500; }

/* ===== Section ===== */
.section-block { padding: 60px 0; }
.section-alt { background: var(--bg-alt); }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 32px; }
.section-title { display: flex; align-items: center; gap: 12px; font-size: 28px; font-weight: 700; color: var(--secondary); }
.title-accent { width: 4px; height: 28px; background: var(--primary); border-radius: 2px; }
.section-more { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--primary); }
.section-more:hover { gap: 10px; }

/* ===== Article Card ===== */
.article-grid { display: grid; grid-template-columns: repeat(var(--cols, 3), 1fr); gap: 24px; }
.article-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: var(--transition); }
.article-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.article-thumb { position: relative; display: block; aspect-ratio: 16/9; overflow: hidden; background: var(--bg-alt); }
.article-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.article-card:hover .article-thumb img { transform: scale(1.08); }
.article-thumb-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #e8ecf4, #dde3ed); color: var(--text-muted); font-size: 40px; }
.badge { position: absolute; top: 10px; left: 10px; padding: 4px 10px; border-radius: 6px; font-size: 12px; font-weight: 700; color: #fff; }
.badge-top { background: var(--accent); }
.badge-rec { left: auto; right: 10px; background: var(--warning); }

/* 1.10.67：当日发布「New/新」角标（卡片右上角）。卡片需为定位上下文。 */
.article-card, .product-card, .brand-card, .brand-logo-card, .nav-detail-product-card { position: relative; }
.new-badge {
  position: absolute;
  top: 0; right: 0;
  z-index: 6;
  padding: 3px 10px;
  background: #ff4d4f;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .5px;
  border-bottom-left-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
  pointer-events: none;
}
.article-body { padding: 20px; }
.article-title { font-size: 18px; font-weight: 700; margin-bottom: 10px; line-height: 1.4; }
.article-title a { color: var(--secondary); }
.article-title a:hover { color: var(--primary); }
.article-summary { font-size: 14px; color: var(--text-light); margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.article-meta { display: flex; gap: 16px; font-size: 13px; color: var(--text-muted); }
.article-meta i { margin-right: 4px; }

/* ===== Product Card ===== */
.product-grid { display: grid; grid-template-columns: repeat(var(--cols, 4), 1fr); gap: 24px; }
.product-grid-full { --cols: 3; }

/* 1.10.48：产品列表筛选条 */
.product-filter-bar { margin: 16px 0 24px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); }
.product-filter-form { display: flex; flex-wrap: nowrap; gap: 16px; align-items: center; }
.product-filter-form .filter-item { display: flex; flex-direction: row; align-items: center; gap: 8px; flex: 0 0 auto; }
.product-filter-form .filter-item label { font-size: 13px; font-weight: 600; color: var(--text-light); white-space: nowrap; }
.product-filter-form .filter-item select { min-width: 120px; width: auto; height: 38px; padding: 0 10px; border: 1px solid var(--border); border-radius: 8px; background: #fff; font-size: 14px; color: var(--text); outline: none; }
.product-filter-form .filter-item select:focus { border-color: var(--primary); }
.product-filter-form .btn { height: 38px; flex: 0 0 auto; }
/* 1.10.56：手机端直接展示筛选结果（默认隐藏，仅手机端显示） */
.product-filter-summary { display: none; }
.product-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: var(--transition); }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.product-thumb { aspect-ratio: 1; overflow: hidden; background: var(--bg-alt); }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.product-card:hover .product-thumb img { transform: scale(1.08); }
.product-thumb-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #e8ecf4, #dde3ed); color: var(--text-muted); font-size: 40px; }
.product-body { padding: 16px; }
.product-name { font-size: 17px; font-weight: 700; margin-bottom: 8px; color: var(--secondary); }
.product-specs { font-size: 13px; color: var(--text-light); margin-bottom: 6px; }
.product-home-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 6px 0 10px; font-size: 12.5px; color: var(--text-light); }
.product-home-meta .phm-item { display: inline-flex; align-items: center; gap: 4px; }
.product-home-meta .phm-item .fas { color: #4f6df5; font-size: 12px; }
.product-price { font-size: 18px; font-weight: 700; color: var(--accent); margin-bottom: 8px; }
.product-desc { font-size: 13px; color: var(--text-light); margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-thumb-link { display: block; }
.product-name-link { color: var(--secondary); transition: var(--transition); }
.product-name-link:hover { color: var(--primary); }
.product-actions { display: flex; flex-wrap: wrap; gap: 8px; }
/* 1.10.59：产品卡片品牌详情入口，与 Details 并排 */
.product-actions .btn-brand { color: var(--primary); border-color: var(--primary); }
.product-actions .btn-brand:hover { background: var(--primary); color: #fff; }
/* 1.10.59：确保 PC 产品卡片星级始终可见 */
.product-card .product-rating-sm { display: flex; }

/* 1.10.38：桌面端隐藏手机专用图库与简介，手机端再显示 */
.product-mobile-gallery, .product-intro { display: none; }

/* Product detail page */
.product-detail-wrap { display: flex; flex-direction: column; gap: 32px; }
.product-detail-card { background: #fff; border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); }
.product-detail-main { display: grid; grid-template-columns: 400px 1fr; gap: 36px; }
.product-detail-gallery { border-radius: var(--radius); overflow: hidden; background: var(--bg-alt); }
.product-detail-img { width: 100%; height: 400px; object-fit: cover; }
.product-detail-placeholder { width: 100%; height: 400px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #e8ecf4, #dde3ed); color: var(--text-muted); font-size: 72px; }
.product-detail-title { font-size: var(--prod-name-size, 26px); font-weight: 800; margin-bottom: 20px; color: var(--secondary); line-height: 1.4; }
.product-detail-table { width: 100%; border-collapse: collapse; margin-bottom: 24px; }
.product-detail-table th { width: 130px; text-align: left; padding: 12px 16px; background: var(--bg-alt); color: var(--text-light); font-weight: 600; font-size: 14px; border-radius: 8px 0 0 8px; }
.product-detail-table td { padding: 12px 16px; color: var(--text); font-size: 15px; border-bottom: 1px solid var(--border); }
.product-detail-price { font-size: 24px; font-weight: 800; color: var(--accent); }
.product-detail-link { color: var(--primary); word-break: break-all; }
.product-detail-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
/* 商品多平台链接（1.10.21） */
.product-buy-links { display: flex; flex-direction: column; gap: 8px; }
.product-buy-links .buy-link { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; background: #f5f7ff; border: 1px solid #e3e8ff; border-radius: 8px; padding: 8px 12px; color: #2d3436; transition: background .15s, border-color .15s; word-break: break-all; }
.product-buy-links .buy-link:hover { background: #eef2ff; border-color: #4f6df5; }
.product-buy-links .buy-link strong { color: #4f6df5; }
.product-buy-links .buy-url { color: #636e72; font-size: 12px; }
.product-detail-section-title { font-size: 20px; font-weight: 700; color: var(--secondary); margin-bottom: 18px; display: flex; align-items: center; gap: 8px; }
.product-detail-desc { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--border); }
/* 商品详情页"联系我们"表单（1.10.23） */
.product-contact-box { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--border); }
.product-contact-form { max-width: 640px; }
.product-contact-form .form-row { display: flex; gap: 16px; flex-wrap: wrap; }
.product-contact-form .form-row .form-group { flex: 1; min-width: 200px; }
.product-contact-form .form-group label { display: block; font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.product-contact-form input, .product-contact-form textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; font-size: 14px; font-family: inherit; box-sizing: border-box; }
.product-contact-form textarea { resize: vertical; }
.product-contact-form .btn { margin-top: 14px; }
.product-detail-content { font-size: 15px; line-height: 1.9; color: var(--text); }
.product-detail-content p { text-indent: 2em; margin-bottom: 14px; }
.product-detail-content h3, .product-detail-content h4 { margin: 20px 0 10px; color: var(--secondary); }
.product-detail-content ul, .product-detail-content ol { margin: 10px 0 14px; padding-left: 24px; }
.product-detail-content li { margin-bottom: 6px; }

/* 1.10.32：库存（价格下方） */
.product-stock { display: inline-block; font-weight: 600; padding: 2px 10px; border-radius: 6px; font-size: 14px; }
.product-stock.in-stock { color: #1e9e63; background: #e8f8f0; }
.product-stock.out-stock { color: #d63031; background: #fdecec; }

/* 1.10.33：已售（星级后面） */
.product-sold { color: #e8590c; font-weight: 600; font-size: 14px; }
.product-sold .fas { margin-right: 4px; }
/* 1.10.34：星级 + 已售 排成一行 */
.product-meta-row { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin: 8px 0 14px; }
.product-meta-row .product-rating { margin: 0; }
.product-meta-row .product-sold { margin: 0; }

/* 1.10.33：用户评价（产品说明上方） */
.product-reviews { margin-top: 28px; }
.review-count { color: #b2bec3; font-weight: 400; font-size: 14px; }
.review-list { display: flex; flex-direction: column; gap: 14px; margin-top: 14px; }
.review-item { border: 1px solid #eef1f8; border-radius: 10px; padding: 14px 16px; background: #fff; }
.review-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.review-nick { font-weight: 600; color: var(--secondary); }
.review-verified { display: inline-flex; align-items: center; gap: 4px; color: #1e9e63; background: #e8f8f0; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 20px; }
.review-date { margin-left: auto; color: #b2bec3; font-size: 13px; }
.review-content { line-height: 1.7; color: #34495e; white-space: pre-wrap; }

/* 1.10.32：产品详情页多图（产品说明下方，PC 最宽 750px，手机按宽度缩放） */
.product-detail-images { margin-top: 28px; }
.product-detail-images-list { display: flex; flex-direction: column; gap: 14px; align-items: center; }
.product-detail-image { width: 100%; max-width: 750px; height: auto; border-radius: 10px; box-shadow: 0 2px 12px rgba(0,0,0,.06); }

.related-products { margin-top: 8px; }
.related-products .product-grid { margin-top: 4px; }

/* ===== Page Banner ===== */
.page-banner { background: linear-gradient(135deg, var(--secondary) 0%, #2d3148 100%); color: #fff; padding: 48px 0; }
.page-title { font-size: 32px; font-weight: 800; margin-bottom: 8px; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 14px; opacity: 0.8; }
.breadcrumb a { color: rgba(255,255,255,0.8); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb i { font-size: 10px; }

/* ===== Unified Page Top Banner (1.10.29) ===== */
/* 所有列表页/详情页顶部图统一：PC 最宽 1200px 居中、高度 180px；手机端按宽度比例缩放、图片居中 */
.page-top-banner,
.product-list-banner,
.article-list-banner,
.product-detail-banner,
.product-category-banner,
.article-detail-banner,
.nav-list-banner,
.nav-detail-banner,
.brand-list-banner,
.brand-detail-banner {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  height: 180px;
  overflow: hidden;
}
.page-top-banner img,
.product-list-banner img,
.article-list-banner img,
.product-detail-banner img,
.product-category-banner img,
.article-detail-banner img,
.nav-list-banner img,
.nav-detail-banner img,
.brand-list-banner img,
.brand-detail-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.page-top-banner-placeholder,
.product-list-banner-placeholder,
.article-list-banner-placeholder,
.product-detail-banner-placeholder,
.product-category-banner-placeholder,
.article-detail-banner-placeholder,
.nav-list-banner-placeholder,
.nav-detail-banner-placeholder,
.brand-list-banner-placeholder,
.brand-detail-banner-placeholder {
  max-width: 1200px;
  margin: 0 auto;
  height: 180px;
  background: linear-gradient(135deg, var(--secondary) 0%, #2d3148 100%);
}

/* ===== List Breadcrumb (1.10.27) ===== */
.list-breadcrumb { display: flex; align-items: center; justify-content: flex-end; gap: 8px; font-size: 14px; color: var(--text-light); margin-bottom: 16px; flex-wrap: wrap; }
.list-breadcrumb a { color: var(--text-light); }
.list-breadcrumb a:hover { color: var(--primary); }
.list-breadcrumb i { font-size: 10px; color: var(--text-muted); }
.list-breadcrumb span { color: var(--text-muted); }

/* ===== Product Breadcrumb (1.10.26) ===== */
.product-breadcrumb { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-light); margin-bottom: 18px; flex-wrap: wrap; }
.product-breadcrumb a { color: var(--text-light); }
.product-breadcrumb a:hover { color: var(--primary); }
.product-breadcrumb i { font-size: 10px; color: var(--text-muted); }
.product-breadcrumb span { color: var(--text-muted); }

/* ===== Content Section ===== */
.content-section { padding: 40px 0; min-height: 400px; }
/* 1.10.26：产品详情页顶部已有栏目图，内容区顶部留白适度 */
.product-detail-page { padding-top: 36px; }
/* 1.10.27：产品列表页顶部已有列表图，内容区顶部留白适度 */
.product-list-page { padding-top: 36px; }
/* 1.10.28：文章列表页顶部已有列表图，内容区顶部留白适度 */
.article-list-page { padding-top: 36px; }

/* ===== Filter Bar ===== */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.filter-tag { padding: 8px 20px; border-radius: 20px; background: var(--bg-alt); color: var(--text-light); font-size: 14px; font-weight: 500; }
.filter-tag:hover, .filter-tag.active { background: var(--primary); color: #fff; }

/* ===== Pagination ===== */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.page-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px; border-radius: var(--radius-sm); background: var(--bg-alt); color: var(--text-light); font-weight: 600; font-size: 14px; }
.page-btn:hover, .page-btn.active { background: var(--primary); color: #fff; }

/* ===== Empty State ===== */
.empty-state { text-align: center; padding: 80px 20px; color: var(--text-muted); }
.empty-state i { font-size: 60px; margin-bottom: 16px; }
.empty-state p { font-size: 18px; }

/* ===== List Page with Sidebar ===== */
.list-with-sidebar { display: block; }
.list-with-sidebar.has-sidebar { display: grid; grid-template-columns: 1fr 300px; gap: 30px; }
.list-sidebar { display: flex; flex-direction: column; gap: 20px; }
.sidebar-rec-list { list-style: none; }
.sidebar-rec-list li { margin-bottom: 10px; }
.sidebar-rec-list a { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: var(--radius-sm); transition: var(--transition); }
.sidebar-rec-list a:hover { background: var(--primary-light); }
.sidebar-rec-list img { width: 60px; height: 42px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.sidebar-rec-list span { font-size: 14px; color: var(--text); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sidebar-rec-list a:hover span { color: var(--primary); }
.sidebar-price { display: block; font-size: 13px; color: #e74c3c; font-weight: 700; margin-top: 2px; }
.sidebar-contact p { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-light); margin-bottom: 10px; }
.sidebar-contact p i { color: var(--primary); width: 16px; text-align: center; }

/* ===== Article Detail ===== */
.article-detail-wrap { display: grid; grid-template-columns: 1fr 300px; gap: 30px; }
.article-detail { background: #fff; border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow); }
/* 1.10.25：去掉 page-banner 后，文章详情页顶部留白加大 */
.article-detail-page { padding-top: 48px; }
.article-detail-header { position: relative; margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.article-breadcrumb { position: absolute; top: 0; left: 0; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-light); }
.article-breadcrumb a { color: var(--text-light); }
.article-breadcrumb a:hover { color: var(--primary); }
.article-breadcrumb i { font-size: 10px; color: var(--text-muted); }
.article-detail-title { text-align: center; font-size: var(--art-title-size, 30px); font-weight: 800; line-height: 1.3; margin-bottom: 12px; color: var(--secondary); padding-top: 28px; }
.article-detail-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; font-size: 14px; color: var(--text-muted); }
.article-tag { padding: 3px 10px; background: var(--primary-light); color: var(--primary); border-radius: 6px; font-size: 12px; }

/* Article tags block (end of content) */
.article-tags { margin-top: 30px; padding: 16px 18px; background: var(--bg-alt); border-radius: var(--radius-sm); display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.article-tags-label { font-weight: 700; color: var(--secondary); font-size: 14px; margin-right: 2px; }
.article-tag-link { display: inline-flex; align-items: center; gap: 4px; padding: 5px 12px; background: #fff; border: 1px solid var(--border); color: var(--primary); border-radius: 20px; font-size: 13px; transition: var(--transition); }
.article-tag-link:hover { background: var(--primary); border-color: var(--primary); color: #fff; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(79,109,245,0.25); }

/* Tag filter info bar */
.filter-tag-info { margin: 20px 0 0; padding: 12px 18px; background: var(--primary-light); border: 1px dashed var(--primary); color: var(--primary); border-radius: var(--radius-sm); font-size: 14px; display: flex; align-items: center; gap: 8px; }
.tag-products { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--border, #eef1f8); }
.tag-products-title { font-size: 17px; font-weight: 700; color: var(--text, #2d3148); margin: 0 0 16px; display: flex; align-items: center; gap: 8px; }
.tag-products-title .filter-tag-count { font-size: 13px; font-weight: 400; color: #8a93a6; }
.filter-tag-clear { margin-left: auto; color: var(--text-light); font-size: 13px; }
.filter-tag-clear:hover { color: var(--danger); }
/* 1.10.64：标签聚合页 */
.filter-tag-count { padding: 2px 10px; background: #fff; border-radius: 20px; font-size: 12px; font-weight: 600; }
.dynamic-tag { display: inline-block; margin-right: 6px; color: var(--primary); text-decoration: none; }
.dynamic-tag:hover { text-decoration: underline; }
.article-detail-cover { margin-bottom: 24px; border-radius: var(--radius); overflow: hidden; }
.article-detail-cover img { width: 100%; border-radius: var(--radius); }
.article-content { font-size: var(--art-body-size, 16px); line-height: 1.8; color: var(--text); }
/* First-line indent (2 chars) for Chinese article paragraphs */
.article-content p { text-indent: 2em; }
.article-content h2 { font-size: 24px; font-weight: 700; margin: 28px 0 14px; color: var(--secondary); }
.article-content h3 { font-size: 20px; font-weight: 700; margin: 24px 0 12px; color: var(--secondary); }
.article-content p { margin-bottom: 16px; }
.article-content ul, .article-content ol { margin-bottom: 16px; padding-left: 24px; }
.article-content li { margin-bottom: 8px; }
.article-content strong { color: var(--secondary); }
.article-content a { color: var(--primary); text-decoration: underline; }
.article-content a.internal-link,
.product-detail-content a.internal-link { color: var(--primary); text-decoration: underline; font-weight: 500; }
.article-keywords { margin-top: 30px; padding: 16px; background: var(--bg-alt); border-radius: var(--radius-sm); font-size: 14px; }
.related-articles { margin-top: 30px; }
.related-articles h3 { font-size: 20px; margin-bottom: 16px; color: var(--secondary); }
.related-list { list-style: none; }
.related-list li { margin-bottom: 10px; }
.related-list a { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: var(--radius-sm); transition: var(--transition); }
.related-list a:hover { background: var(--bg-alt); }
.related-list img { width: 60px; height: 40px; object-fit: cover; border-radius: 6px; }
.article-sidebar { }
.sidebar-card { background: #fff; border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); margin-bottom: 20px; }
.sidebar-card h4 { font-size: 18px; font-weight: 700; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid var(--primary); color: var(--secondary); }
.sidebar-cat-list { list-style: none; }
.sidebar-cat-list li { margin-bottom: 8px; }
.sidebar-cat-list a { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: var(--radius-sm); color: var(--text-light); }
.sidebar-cat-list a:hover { background: var(--primary-light); color: var(--primary); }

/* ===== Contact ===== */
.contact-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-info h2, .contact-form-wrap h2 { font-size: 26px; font-weight: 700; margin-bottom: 16px; color: var(--secondary); }
.contact-intro { color: var(--text-light); margin-bottom: 30px; font-size: 16px; }
.contact-list { }
.contact-item { display: flex; gap: 16px; margin-bottom: 24px; }
.contact-icon { width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; background: var(--primary-light); color: var(--primary); border-radius: 50%; font-size: 20px; flex-shrink: 0; }
.contact-text h4 { font-size: 16px; font-weight: 700; margin-bottom: 4px; color: var(--secondary); }
.contact-text p { color: var(--text-light); font-size: 15px; }
.contact-form-wrap { background: #fff; border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; color: var(--secondary); }
.form-group input, .form-group textarea {
  width: 100%; padding: 12px 16px; border: 2px solid var(--border); border-radius: var(--radius-sm);
  font-size: 15px; font-family: inherit; transition: var(--transition);
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--primary); }

/* ===== Dynamics ===== */
.dynamics-list { max-width: 800px; margin: 0 auto; }
.dynamic-item { display: flex; gap: 20px; padding: 20px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 16px; transition: var(--transition); }
.dynamic-item:hover { transform: translateX(6px); }
.dynamic-thumb { width: 200px; aspect-ratio: 16/9; border-radius: var(--radius-sm); overflow: hidden; flex-shrink: 0; background: var(--bg-alt); }
.dynamic-thumb img { width: 100%; height: 100%; object-fit: cover; }
.dynamic-body { flex: 1; }
.dynamic-body h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.dynamic-body h3 a { color: var(--secondary); }
.dynamic-body h3 a:hover { color: var(--primary); }
.dynamic-body p { font-size: 14px; color: var(--text-light); margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dynamic-meta { font-size: 13px; color: var(--text-muted); }
.loading-indicator { text-align: center; padding: 30px; color: var(--text-muted); }
.spinner { width: 40px; height: 40px; border: 3px solid var(--border); border-top-color: var(--primary); border-radius: 50%; animation: spin 0.8s linear infinite; margin: 0 auto 12px; }
@keyframes spin { to { transform: rotate(360deg); } }
.load-end { text-align: center; padding: 20px; color: var(--text-muted); }

/* ===== Nav Sites ===== */
.nav-category-block { margin-bottom: 40px; }
.nav-cat-title { font-size: 20px; font-weight: 700; margin-bottom: 20px; color: var(--secondary); display: flex; align-items: center; gap: 10px; }
.nav-cat-title i { color: var(--primary); }

/* ===== Nav List Page (sidebar + main) ===== */
.nav-list-wrap { display: grid; grid-template-columns: 220px 1fr; gap: 30px; }
.nav-list-sidebar { position: sticky; top: 80px; align-self: start; }
.nav-list-main { min-width: 0; }

.nav-site-grid { display: grid; grid-template-columns: repeat(var(--cols, 3), 1fr); gap: 20px; }
.nav-site-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: var(--transition); text-decoration: none; color: inherit; }
.nav-site-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.nav-site-screenshot { width: 100%; height: 140px; overflow: hidden; background: var(--bg-alt); display: flex; align-items: center; justify-content: center; }
.nav-site-screenshot img { max-width: 100%; max-height: 100%; object-fit: contain; }
.nav-site-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--text-muted); font-size: 30px; }
.nav-site-info { padding: 14px; }
.nav-site-info h4 { font-size: 15px; font-weight: 700; margin-bottom: 6px; color: var(--secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-site-info p { font-size: 13px; color: var(--text-light); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ===== Nav Detail Page ===== */
.nav-detail-wrap { display: grid; grid-template-columns: 1fr 260px; gap: 30px; }
.nav-detail-main { min-width: 0; }
.nav-detail-sidebar { position: sticky; top: 80px; align-self: start; }
.nav-detail-screenshot { margin-bottom: 24px; border-radius: var(--radius); overflow: hidden; background: var(--bg-alt); display: flex; align-items: center; justify-content: center; max-height: 300px; }
.nav-detail-screenshot img { max-width: 100%; max-height: 300px; object-fit: contain; display: block; }
.nav-detail-title { font-size: 26px; font-weight: 800; color: var(--secondary); margin-bottom: 16px; }
.nav-detail-url { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; color: var(--text-light); margin-bottom: 12px; padding: 12px 16px; background: var(--bg-alt); border-radius: var(--radius); }
.nav-detail-url i { color: var(--primary); }
.nav-detail-url a { color: var(--primary); word-break: break-all; }
.nav-detail-meta-item { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-light); margin-bottom: 8px; }
.nav-detail-meta-item i { color: var(--primary); }
.nav-detail-meta-item a { color: var(--primary); }
.nav-detail-desc { margin: 24px 0; }
.nav-detail-desc h3 { font-size: 18px; font-weight: 700; color: var(--secondary); margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.nav-detail-desc h3 i { color: var(--primary); }
.nav-detail-desc p { font-size: 15px; line-height: 1.8; color: var(--text); }
.nav-detail-products { margin: 24px 0; }
.nav-detail-products h3 { font-size: 18px; font-weight: 700; color: var(--secondary); margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.nav-detail-products h3 i { color: var(--primary); }
.nav-detail-product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
.nav-detail-product-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); text-decoration: none; color: inherit; transition: var(--transition); }
.nav-detail-product-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.nav-detail-product-card img { width: 100%; height: 100px; object-fit: contain; background: var(--bg-alt); }
.nav-detail-product-placeholder { width: 100%; height: 100px; background: var(--bg-alt); display: flex; align-items: center; justify-content: center; color: var(--text-muted); font-size: 24px; }
.nav-detail-product-info { padding: 10px; }
.nav-detail-product-name { font-size: 13px; font-weight: 600; color: var(--secondary); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-detail-product-price { font-size: 13px; color: var(--primary); font-weight: 700; }
.nav-detail-empty { color: var(--text-muted); font-size: 14px; }
.nav-detail-contact { margin: 24px 0; padding: 20px; background: var(--bg-alt); border-radius: var(--radius); }
.nav-detail-contact h3 { font-size: 18px; font-weight: 700; color: var(--secondary); margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.nav-detail-contact h3 i { color: var(--primary); }
.nav-detail-contact-items { display: flex; flex-direction: column; gap: 10px; }
.nav-detail-contact-item { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text); }
.nav-detail-contact-item i { color: var(--primary); width: 18px; text-align: center; }

/* Nav showcase image proportionally scaled */
.nav-showcase-thumb { height: auto; min-height: 80px; background: var(--bg-alt); display: flex; align-items: center; justify-content: center; padding: 8px; }
.nav-showcase-thumb img { max-width: 100%; max-height: 120px; object-fit: contain; display: block; }

/* ===== Error Section ===== */
.error-section { padding: 80px 0; text-align: center; }
.error-code { font-size: 120px; font-weight: 800; color: var(--primary); opacity: 0.2; line-height: 1; }

/* ===== Footer ===== */
.site-footer { background: var(--bg-dark); color: #a0a4b8; padding: 50px 0 20px; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; margin-bottom: 30px; }
.footer-logo { font-size: 22px; font-weight: 800; color: #fff; margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.footer-logo i { color: var(--primary); }
.footer-about p { font-size: 14px; line-height: 1.6; }
.footer-col h4 { color: #fff; font-size: 16px; font-weight: 700; margin-bottom: 16px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: #a0a4b8; font-size: 14px; }
.footer-links a:hover { color: #fff; }
.footer-bottom { text-align: center; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 14px; }
.icp { margin-left: 16px; }

/* ===== Mobile Bottom Nav ===== */
.mobile-bottom-nav { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 999; background: rgba(255,255,255,0.98); backdrop-filter: blur(12px); border-top: 1px solid var(--border); padding: 8px 0; padding-bottom: env(safe-area-inset-bottom); justify-content: space-around; }
.mb-nav-item { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 16px; color: var(--text-muted); font-size: 12px; font-weight: 500; border-radius: var(--radius-sm); }
.mb-nav-item i { font-size: 20px; }
.mb-nav-item.active, .mb-nav-item:active { color: var(--primary); }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .article-grid { grid-template-columns: repeat(2, 1fr); --cols: 2; }
  .product-grid { grid-template-columns: repeat(2, 1fr); --cols: 2; }
  .product-grid-full { --cols: 2; }
  .product-detail-main { grid-template-columns: 1fr; }
  .product-detail-img, .product-detail-placeholder { height: 300px; }
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .article-detail-wrap { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .list-with-sidebar.has-sidebar { grid-template-columns: 1fr; gap: 24px; }
  .list-sidebar { flex-direction: row; flex-wrap: wrap; gap: 14px; }
  .list-sidebar .sidebar-card { flex: 1 1 260px; }
  .nav-list-wrap { grid-template-columns: 1fr; }
  .nav-list-sidebar { position: static; }
  .nav-detail-wrap { grid-template-columns: 1fr; }
  .nav-detail-sidebar { position: static; order: -1; }
  .nav-showcase-grid { grid-template-columns: repeat(2, 1fr); --cols: 2; }
  .nav-site-grid { grid-template-columns: repeat(2, 1fr); --cols: 2; }
}

@media (max-width: 768px) {
  :root { --header-h: 60px; }
  .main-nav { display: none; position: fixed; top: var(--header-h); left: 0; right: 0; flex-direction: column; background: #fff; padding: 16px; box-shadow: 0 4px 20px rgba(0,0,0,0.1); gap: 0; }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 16px; border-bottom: 1px solid var(--border); }
  .mobile-toggle { display: flex; }
  .logo { max-width: 180px; }
  .logo-img { max-width: 170px; max-height: 46px; }
  .mobile-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
  .mobile-toggle.active span:nth-child(2) { opacity: 0; }
  .mobile-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }
  
  .hero-title { font-size: 32px; }
  .hero-subtitle { font-size: 15px; }
  .hero-actions .btn { padding: 12px 24px; font-size: 14px; }

  .slider-link { height: 220px; }
  .slider-caption span { font-size: 17px; }
  .slider-arrow { width: 36px; height: 36px; font-size: 15px; }
  /* 1.10.34：手机端价格一行显示 */
  .price-multi-detail { display: flex; flex-wrap: nowrap; white-space: nowrap; gap: 6px; }
  .price-multi-detail .price-cny { font-size: 17px; }
  .price-multi-detail .price-usd, .price-multi-detail .price-eur { font-size: 12px; }
  /* 1.10.34：手机端产品详情表左列收窄、左对齐 */
  .product-detail-table th { width: auto; min-width: 64px; padding: 10px 8px; font-size: 13px; text-align: left; white-space: nowrap; border-radius: 6px 0 0 6px; }
  .product-detail-table td { padding: 10px 8px; font-size: 14px; }
  
  .article-grid { grid-template-columns: 1fr; --cols: 1; }
  .article-card { display: flex; align-items: stretch; }
  .article-card .article-thumb { width: 33.333%; flex-shrink: 0; aspect-ratio: 1/1; }
  .article-card .article-body { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; padding: 12px 14px; }
  .article-card .article-title { font-size: 15px; margin-bottom: 6px; }
  .article-card .article-summary { font-size: 13px; -webkit-line-clamp: 2; margin-bottom: 8px; }
  .article-card .article-meta { font-size: 12px; gap: 10px; }
  .product-grid { grid-template-columns: 1fr; --cols: 1; }
  .brand-detail-wrap { flex-direction: column; gap: 0; }
  .brand-detail-main, .brand-detail-sidebar { flex: 1 1 auto; width: 100%; }
  .brand-detail-sidebar { position: static; margin-top: 24px; }
  .brand-detail-sidebar .brand-products-grid { grid-template-columns: 1fr; }
  .product-card { display: flex; flex-wrap: wrap; align-items: stretch; }
  .product-card .product-thumb-link { display: none; }
  /* 1.10.46：手机端产品卡主图移到右侧（区域 1），信息在左侧，购买平台按钮在底部（区域 2） */
  .product-card .product-mobile-gallery { display: block; order: 2; width: 38%; flex-shrink: 0; padding: 12px 12px 12px 0; background: #fff; position: relative; }
  .product-card .pmg-hint { position: absolute; top: 0; left: 0; right: 0; text-align: center; font-size: 10px; color: #b2bec3; line-height: 16px; }
  .product-card .pmg-hint .fas { font-size: 8px; margin: 0 3px; }
  .product-card .pmg-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .product-card .pmg-track::-webkit-scrollbar { display: none; }
  .product-card .pmg-slide { flex: 0 0 100%; scroll-snap-align: start; }
  .product-card .pmg-slide img { width: 100%; height: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 8px; }
  .product-card .pmg-dots { display: flex; justify-content: center; gap: 4px; margin-top: 4px; }
  .product-card .pmg-dot { width: 5px; height: 5px; border-radius: 50%; background: #dfe6e9; }
  .product-card .pmg-dot.active { background: var(--primary); }
  .product-card .product-body { order: 1; width: 62%; flex: 1; min-width: 0; padding: 12px 0 12px 14px; display: flex; flex-direction: column; justify-content: center; }
  .product-card .product-name { font-size: 15px; margin-bottom: 6px; }
  .product-card .price-multi { margin-bottom: 6px; }
  .product-card .price-multi .price-cny { font-size: 16px; }
  .product-card .price-multi .price-usd, .product-card .price-multi .price-eur { font-size: 12px; }
  .product-card .product-specs { font-size: 12px; margin-bottom: 4px; }
  .product-card .product-home-meta { font-size: 11px; gap: 4px 8px; margin: 4px 0 8px; }
  .product-card .product-buy-actions { display: flex; flex-wrap: nowrap; gap: 6px; margin-top: auto; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 2px; }
  .product-card .product-buy-actions::-webkit-scrollbar { display: none; }
  .product-card .buy-platform-btn { display: inline-flex; align-items: center; justify-content: center; gap: 4px; flex: 0 0 auto; min-width: 58px; padding: 5px 8px; border-radius: 6px; background: #f0f3ff; border: 1px solid #d6dcff; color: var(--primary); font-size: 11px; font-weight: 600; text-decoration: none; white-space: nowrap; scroll-snap-align: start; }
  .product-card .buy-platform-btn .fas { font-size: 10px; }
  /* 1.10.46：产品列表页 actions 也要横向滚动，不折行 */
  .product-card .product-actions { display: flex; flex-wrap: nowrap; gap: 6px; margin-top: auto; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 2px; }
  .product-card .product-actions::-webkit-scrollbar { display: none; }
  .product-card .product-actions .btn { flex: 0 0 auto; white-space: nowrap; scroll-snap-align: start; }
  /* 1.10.42：手机端产品简介从 2 行放宽到 3 行，避免文字被截断 */
  .product-card .product-intro { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; order: 3; width: 100%; padding: 8px 14px; font-size: 12px; line-height: 1.5; color: var(--text-light); border-top: 1px solid var(--border); text-decoration: none; background: #fafbfc; max-height: 4.8em; }
  .product-detail-card { padding: 20px; }
  .product-detail-main { grid-template-columns: 1fr; }
  .product-detail-img, .product-detail-placeholder { height: 260px; }
  .stats-bar { padding: 16px 0; }
  .stats-grid { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .stat-item { padding: 10px 4px; gap: 6px; flex-direction: column; text-align: center; }
  .stat-icon { width: 34px; height: 34px; font-size: 15px; }
  .stat-num { font-size: 16px; }
  .stat-label { font-size: 10px; }
  .section-title { font-size: 22px; }
  .page-title { font-size: 24px; }
  
  .article-detail { padding: 20px; }
  .article-detail-page { padding-top: 32px; }
  .article-detail-title { text-align: center; font-size: var(--art-title-size, 22px); padding-top: 24px; }
  .article-detail-meta { justify-content: center; }
  .article-breadcrumb { position: static; margin-bottom: 10px; }

  /* 1.10.29：统一顶部图移动端同步 —— 手机端按宽度比例缩放、图片居中 */
  .page-top-banner,
  .product-list-banner,
  .article-list-banner,
  .product-detail-banner,
  .product-category-banner,
  .article-detail-banner,
  .nav-list-banner,
  .nav-detail-banner,
  .brand-list-banner,
  .brand-detail-banner,
  .page-top-banner-placeholder,
  .product-list-banner-placeholder,
  .article-list-banner-placeholder,
  .product-detail-banner-placeholder,
  .product-category-banner-placeholder,
  .article-detail-banner-placeholder,
  .nav-list-banner-placeholder,
  .nav-detail-banner-placeholder,
  .brand-list-banner-placeholder,
  .brand-detail-banner-placeholder {
    max-width: 100%;
    height: auto;
  }
  .page-top-banner img,
  .product-list-banner img,
  .article-list-banner img,
  .product-detail-banner img,
  .product-category-banner img,
  .article-detail-banner img,
  .nav-list-banner img,
  .nav-detail-banner img,
  .brand-list-banner img,
  .brand-detail-banner img {
    height: auto;
    object-fit: fill;
  }
  .product-detail-page { padding-top: 24px; }
  .product-breadcrumb { margin-bottom: 14px; }
  .product-list-page { padding-top: 24px; }
  .list-breadcrumb { justify-content: flex-start; margin-bottom: 12px; }
  .article-list-page { padding-top: 24px; }
  
  .contact-wrap { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: 24px; }
  
  .footer-top { grid-template-columns: 1fr; gap: 24px; }
  
  .mobile-bottom-nav { display: flex; }
  .site-main { padding-bottom: 70px; }
  
  .dynamic-thumb { width: 120px; }
  .nav-site-grid { grid-template-columns: 1fr 1fr; --cols: 2; }
  .nav-showcase-grid { grid-template-columns: 1fr 1fr; --cols: 2; }
  .nav-detail-product-grid { grid-template-columns: repeat(2, 1fr); }
  
  .stat-item { padding: 16px; }
  .stat-num { font-size: 22px; }
  
  .section-block { padding: 40px 0; }
  .container { padding: 0 16px; }

  /* Sidebar: on mobile, stack below main (still shown if enabled) */
  .list-with-sidebar.has-sidebar { grid-template-columns: 1fr; gap: 24px; }
  .list-sidebar { flex-direction: row; flex-wrap: wrap; gap: 14px; }
  .list-sidebar .sidebar-card { flex: 1 1 260px; }
}

@media (max-width: 480px) {
  .product-grid { grid-template-columns: 1fr; --cols: 1; }
  .product-detail-main { grid-template-columns: 1fr; }
  .nav-site-grid { grid-template-columns: 1fr; --cols: 1; }
  .nav-showcase-grid { grid-template-columns: 1fr 1fr; }
  .nav-detail-product-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .stats-bar { padding: 12px 0; }
  .stat-item { padding: 8px 2px; gap: 4px; flex-direction: column; text-align: center; }
  .stat-icon { width: 30px; height: 30px; font-size: 14px; }
  .stat-num { font-size: 15px; }
  .stat-label { font-size: 10px; }
  .hero-title { font-size: 26px; }
  .hero-subtitle { font-size: 14px; }
  .hero-section { min-height: 380px; }
  .dynamic-thumb { width: 100px; height: 66px; }
  .dynamic-body h3 { font-size: 16px; }
}

/* ===== Brands (品牌) ===== */
.brand-filter { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.brand-filter-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: 999px; background: #fff; border: 1px solid var(--border); color: var(--text-light); font-weight: 600; font-size: 14px; box-shadow: var(--shadow); transition: var(--transition); }
.brand-filter-btn:hover { border-color: var(--primary); color: var(--primary); }
.brand-filter-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.brand-filter-count { display: inline-block; min-width: 22px; text-align: center; background: var(--primary-light); color: var(--primary); border-radius: 999px; font-size: 12px; padding: 1px 7px; font-weight: 700; }
.brand-filter-btn.active .brand-filter-count { background: rgba(255,255,255,0.25); color: #fff; }

.brand-grid { display: grid; grid-template-columns: repeat(var(--cols, 4), 1fr); gap: 20px; }
.brand-card { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); border: 1px solid var(--border); transition: var(--transition); }
.brand-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: var(--primary); }
.brand-card-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 14px; }
.brand-card-logo { width: 52px; height: 52px; border-radius: 12px; background: var(--primary-light); display: flex; align-items: center; justify-content: center; color: var(--primary); font-size: 24px; overflow: hidden; }
.brand-card-logo img { width: 100%; height: 100%; object-fit: cover; }
.brand-card-tag { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.tag-domestic { background: #e8f8f0; color: #1e9e63; }
.tag-foreign { background: #fdf0e7; color: #d35400; }
.brand-card-name { font-size: 18px; font-weight: 700; margin-bottom: 6px; color: var(--text); }
.brand-card-site { font-size: 12px; color: var(--text-light); margin-bottom: 8px; word-break: break-all; }
.brand-card-desc { font-size: 13px; color: var(--text-light); line-height: 1.7; flex: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.brand-card-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); font-size: 13px; color: var(--text-light); }
.brand-card-meta i { margin-right: 4px; }
.brand-card-more { color: var(--primary); font-weight: 600; }
.brand-card:hover .brand-card-more i { transform: translateX(3px); }
.brand-card-more i { transition: var(--transition); }

.brand-detail-wrap { max-width: 100%; display: flex; gap: 28px; align-items: flex-start; }
.brand-detail-main { flex: 1 1 auto; min-width: 0; }
.brand-detail-sidebar { flex: 0 0 340px; width: 340px; position: sticky; top: 90px; }
.brand-detail-sidebar .brand-detail-section:first-child { margin-top: 0; }
.brand-detail-sidebar .brand-products-grid { grid-template-columns: 1fr; }
.brand-detail-card { background: #fff; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.brand-detail-head { display: flex; gap: 22px; align-items: flex-start; flex-wrap: wrap; }
.brand-detail-visual { display: flex; flex-direction: column; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-detail-logo { width: 84px; height: 84px; border-radius: 18px; background: var(--primary-light); display: flex; align-items: center; justify-content: center; color: var(--primary); font-size: 38px; flex-shrink: 0; overflow: hidden; }
.brand-detail-logo img { width: 100%; height: 100%; object-fit: cover; }
.brand-detail-category-badge { display: none; }
.brand-detail-info { flex: 1; min-width: 260px; }
.brand-detail-name { font-size: 26px; font-weight: 800; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.brand-detail-meta { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 10px; font-size: 14px; color: var(--text-light); align-items: center; }
.brand-detail-site { color: var(--primary); font-weight: 600; text-decoration: none; word-break: break-all; }
.brand-detail-site:hover { text-decoration: underline; }
.brand-detail-count { background: var(--primary-light); color: var(--primary); border-radius: 999px; padding: 3px 12px; font-size: 13px; font-weight: 700; }
.brand-detail-category-text { margin-top: 10px; font-size: 14px; color: var(--text-light); }
/* 1.10.48：品牌详情页星级展示 */
.brand-detail-rating { display: flex; align-items: center; gap: 3px; margin-top: 8px; color: #f39c12; font-size: 16px; }
.brand-detail-rating .brand-detail-rating-num { margin-left: 6px; font-size: 13px; font-weight: 700; color: var(--text-light); }
.brand-detail-section { margin-top: 24px; }

/* Brand detail related articles list */
.brand-article-list { display: flex; flex-direction: column; gap: 14px; }
.brand-article-item { display: flex; gap: 14px; align-items: flex-start; padding: 14px; background: var(--bg-alt); border-radius: var(--radius-sm); text-decoration: none; transition: var(--transition); }
.brand-article-item:hover { background: #eef2f8; }
.brand-article-thumb { width: 96px; height: 72px; border-radius: 8px; overflow: hidden; background: linear-gradient(135deg, #e8ecf4, #dde3ed); flex-shrink: 0; }
.brand-article-thumb img { width: 100%; height: 100%; object-fit: cover; }
.brand-article-thumb-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--text-muted); font-size: 22px; }
.brand-article-body { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.brand-article-title { font-size: 16px; font-weight: 700; color: var(--secondary); margin-bottom: 6px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.brand-article-item:hover .brand-article-title { color: var(--primary); }
.brand-article-summary { font-size: 13px; color: var(--text-light); margin-bottom: 6px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.brand-article-date { font-size: 12px; color: var(--text-muted); }

/* Brand detail sidebar product list height limit */
.brand-detail-sidebar .brand-products-grid { grid-template-columns: 1fr; max-height: 540px; overflow-y: auto; padding-right: 4px; }
.brand-detail-sidebar .brand-products-grid::-webkit-scrollbar { width: 4px; }
.brand-detail-sidebar .brand-products-grid::-webkit-scrollbar-thumb { background: #dfe6e9; border-radius: 4px; }

.brand-chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.brand-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; background: #fff; border: 1px solid var(--border); border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--text); transition: var(--transition); }
.brand-chip:hover { border-color: var(--primary); color: var(--primary); }
.brand-chip i { color: var(--primary); }
.brand-chip-tag { font-size: 11px; padding: 1px 8px; border-radius: 999px; font-weight: 700; }

/* ===== Product star rating (推荐星级) ===== */
.product-rating { display: flex; align-items: center; gap: 2px; margin: 8px 0 14px; }
.product-rating .fa-star, .product-rating .fa-star-half-alt { color: #f5b301; font-size: 16px; }
.product-rating .far.fa-star { color: #dfe6e9; }
.product-rating-num { margin-left: 8px; font-size: 13px; font-weight: 700; color: var(--warning); }
.product-rating-sm .fa-star, .product-rating-sm .far.fa-star { font-size: 12px; }
.product-brand-link { color: var(--primary); font-weight: 600; }
.product-brand-text { font-weight: 600; color: var(--text); }

@media (max-width: 768px) {
  .brand-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .brand-card { padding: 14px; }
  .brand-card-logo { width: 42px; height: 42px; font-size: 18px; }
  .brand-detail-head { flex-direction: row-reverse; flex-wrap: nowrap; align-items: center; gap: 14px; }
  .brand-detail-visual { order: 2; flex: 0 0 auto; }
  .brand-detail-logo { width: 72px; height: 72px; font-size: 28px; border-radius: 14px; }
  .brand-detail-category-badge { display: flex; justify-content: center; }
  .brand-detail-info { order: 1; flex: 1; min-width: 0; }
  .brand-detail-name { font-size: 18px; gap: 0; }
  .brand-detail-name .brand-card-tag { display: none; }
  .brand-detail-meta { gap: 8px; margin-top: 8px; }
  .brand-detail-site { font-size: 12px; }
  .brand-detail-count { font-size: 12px; padding: 2px 8px; }
  .brand-detail-category-text { font-size: 13px; margin-top: 8px; }
  .product-filter-bar { padding: 10px 14px; margin: 12px 0 18px; }
  /* 1.10.57：手机端隐藏筛选表单，国家/品牌可点击，蓝色链接 */
  .product-filter-form { display: none; }
  .product-filter-summary { display: block; color: var(--primary); font-size: 13px; line-height: 1.8; }
  .product-filter-summary .fs-row { display: flex; flex-wrap: wrap; gap: 2px 10px; }
  .product-filter-summary .fs-row b { font-weight: 600; flex-shrink: 0; }
  .product-filter-summary .fs-tag { color: var(--primary); white-space: nowrap; text-decoration: none; }
  .product-filter-summary .fs-tag:active, .product-filter-summary .fs-tag:hover { text-decoration: underline; }
  .brand-article-item { padding: 12px; gap: 10px; }
  .brand-article-thumb { width: 72px; height: 54px; }
  .brand-article-title { font-size: 14px; }
  .brand-article-summary { -webkit-line-clamp: 1; }
}

/* ===== Product detail multi-image gallery (产品图集) ===== */
.pd-thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.pd-thumb { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; border: 2px solid var(--border); cursor: pointer; transition: var(--transition); background: #fff; }
.pd-thumb:hover { border-color: var(--primary); transform: translateY(-2px); }
.pd-thumb.active { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }
#pdMainImg { cursor: zoom-in; transition: opacity .2s; }
#pdMainImg:hover { opacity: .92; }

@media (max-width: 768px) {
  .pd-thumbs { gap: 8px; margin-top: 10px; }
  .pd-thumb { width: 56px; height: 56px; border-radius: 8px; }
}

/* ===== Home Brands Showcase (首页品牌横版展示) ===== */
.home-brands { padding: 44px 0; background: #fff; }
.brand-row { display: grid; grid-template-columns: repeat(var(--brand-cols, 6), 1fr); gap: 16px; margin-bottom: 16px; }
.brand-row:last-child { margin-bottom: 0; }
.brand-logo-card { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 18px 14px; border: 1px solid var(--border, #eee); border-radius: var(--radius, 12px); background: #fff; text-decoration: none; color: var(--text, #333); transition: transform .2s, box-shadow .2s, border-color .2s; }
.brand-logo-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.10); border-color: var(--primary, #2d6cdf); }
.brand-logo-thumb { width: 100%; height: 74px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.brand-logo-thumb img { max-height: 74px; max-width: 100%; object-fit: contain; }
.brand-logo-placeholder { width: 56px; height: 56px; border-radius: 12px; background: linear-gradient(135deg, var(--primary-light, #e8f0ff), #f1f5fb); color: var(--primary, #2d6cdf); display: flex; align-items: center; justify-content: center; font-size: 24px; }
.brand-logo-name { font-size: 14px; font-weight: 600; color: var(--text, #333); text-align: center; line-height: 1.3; }

@media (max-width: 1024px) {
  .brand-row { grid-template-columns: repeat(var(--brand-cols, 6), minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  .home-brands { padding: 30px 0; }
  .brand-row { gap: 10px; }
  .brand-logo-card { padding: 12px 8px; gap: 8px; }
  .brand-logo-thumb { height: 56px; }
  .brand-logo-thumb img { max-height: 56px; }
  .brand-logo-name { font-size: 12px; }
}
