﻿/* ============================================================
   COMMON.CSS - ArctiXO Industrial Blue Design System (RUGGED)
   Class names MATCH existing HTML exactly.
   Unified for: index.html / products.html / product-detail.html
   ============================================================ */

/* ==================== CSS VARIABLES ==================== */
:root {
  --primary: #2563EB;
  --primary-dark: #1E40AF;
  --primary-darker: #1E3A8A;
  --primary-light: #DBEAFE;
  --primary-50: #EFF6FF;

  --dark: #0F172A;
  --dark-lighter: #1E293B;
  --gray-900: #0F172A;   --gray-800: #1E293B;
  --gray-700: #334155;    --gray-600: #475569;
  --gray-500: #64748B;    --gray-400: #94A3B8;
  --gray-300: #CBD5E1;    --gray-200: #E2E8F0;
  --gray-100: #F1F5F9;    --gray-50: #F8FAFC;
  --white: #FFFFFF;

  --gold: #D4A76A;
  --success: #10B981;
  --error: #EF4444;

  /* RUGGED Typography */
  --font-family: 'Inter', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans SC', sans-serif;
  --fz-xs: 13px;  --fz-sm: 14px;  --fz-base: 15px;  --fz-md: 17px;
  --fz-lg: 19px;  --fz-xl: 22px;  --fz-2xl: 28px;
  --fz-3xl: 36px; --fz-4xl: 48px; --fz-5xl: 64px;

  /* RUGGED Spacing */
  --r-none: 0;  --r-sm: 2px;  --r: 4px;  --r-lg: 6px;  --r-xl: 8px;

  --shadow: 0 2px 8px rgba(0,0,0,.1);
  --shadow-md: 0 4px 12px rgba(0,0,0,.12);
  --shadow-lg: 0 8px 24px rgba(0,0,0,.15);
  --shadow-blue: 0 4px 16px rgba(37,99,235,.35);

  --t: all .2s ease;
  --t-fast: all .15s ease;
}

/* ==================== RESET & BASE ==================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font-family); font-size: var(--fz-base);
  font-weight: 500; line-height: 1.7;
  color: var(--gray-800); background: var(--white); overflow-x: hidden;
}
a { text-decoration: none; color: inherit; transition: color var(--t-fast); }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family); font-weight: 900;
  line-height: 1.15; color: var(--dark); letter-spacing: -.02em;
}
strong, b { font-weight: 700; }

/* ==================== LAYOUT ==================== */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: 1440px; margin: 0 auto; padding: 0 24px; }

/* ==================== 内页 Header 遮挡修复 ====================
   父主题 (vw-courier-serivce-pro) 已知 Bug：
   内页模板没有给固定/粘性定位的 Header 预留空间，
   导致内容被页头遮挡。这是该主题的通病。

   ╔══════════════════════════════════════════════════════════╗
   ║   ⚠️  非 常 重 要  ⚠️                                      ║
   ║                                                          ║
   ║  以下 padding-top 规则是 VW Courier Service Pro 主题      ║
   ║  的强制性 Bug 补丁。                                      ║
   ║                                                          ║
   ║  ❌ 禁止删除                                              ║
   ║  ❌ 禁止合并到其他文件                                      ║
   ║  ❌ 禁止移除 !important                                     ║
   ║  ❌ 禁止修改选择器（除非模板 HTML 结构有变更）                ║
   ║                                                          ║
   ║  如果修改后产品页/分类页顶部内容被 Header 遮住，            ║
   ║  100% 是动了这里的规则，请立即恢复。                      ║
   ║                                                          ║
   ║  历史教训：之前 3 次 "优化" 都因为动了这里导致界面崩坏。    ║
   ╚══════════════════════════════════════════════════════════╝

   修复方式：精准限定 body class，仅给内页内容区域加 padding-top，
   首页和其他正常页面完全不受影响。

   WordPress body class 对照表（请勿凭记忆猜测）：
     archive 页  →  body.post-type-archive-ax_product
     category 页 →  body.tax-ax_product_cat
     tag 页      →  body.tax-ax_product_tag
     detail 页   →  body.single-ax_product

   对应的容器 class（请查阅模板文件确认，不要猜）：
     archive-products.php 中用 .page-header-bar + .list-layout
     single-products.php 中用 .product-detail-section + .breadcrumb-nav
*/
@media (min-width: 992px) {
  /* 服务详情页 */
  body.single-services:not(.home):not(.index) #service-single,
  /* 文章详情页 */
  body.single-post:not(.home):not(.index) .blog-single,
  /* 普通页面 */
  body.page:not(.home) #page .content-area,
  /* 产品列表页 + 分类页 */
  body.post-type-archive-ax_product .page-header-bar,
  body.post-type-archive-ax_product .list-layout,
  body.tax-ax_product_cat .page-header-bar,
  body.tax-ax_product_cat .list-layout,
  body.tax-ax_product_tag .page-header-bar,
  body.tax-ax_product_tag .list-layout,
  /* 产品详情页 */
  /* 产品详情页（参考备份版间距：breadcrumb-nav 单独加 padding-top 避开固定 header，
     product-detail-section 不再额外加，避免双重间距） */
  body.single-ax_product .breadcrumb-nav {
    padding-top: 120px !important;
  }

}

@media (max-width: 991px) {
  body.single-services #service-single,
  body.single-post .blog-single,
  body.page #page .content-area,
  body.post-type-archive-ax_product .page-header-bar,
  body.post-type-archive-ax_product .list-layout,
  body.tax-ax_product_cat .page-header-bar,
  body.tax-ax_product_cat .list-layout,
  body.tax-ax_product_tag .page-header-bar,
  body.tax-ax_product_tag .list-layout,
  body.single-ax_product .breadcrumb-nav {
    padding-top: 80px !important;
  }
}

/* ==================== TOP BAR ==================== */
.top-bar {
  background: var(--dark); color: var(--gray-300);
  font-size: var(--fz-sm); font-weight: 600;
  padding: 10px 0; border-bottom: 2px solid var(--primary);
}
.top-bar .container { display: flex; justify-content: space-between; align-items: center; }
.top-bar a { color: var(--gray-300); }
.top-bar a:hover { color: var(--white); }
.top-bar .sep { margin: 0 16px; color: var(--gray-600); }

/* ==================== MAIN NAVIGATION (.main-nav) ==================== */
.main-nav {
  background: var(--white);
  border-bottom: 2px solid var(--gray-200);
  position: sticky; top: 0; z-index: 1000;
  box-shadow: var(--shadow);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between; height: 72px;
}

.nav-logo { display: flex; align-items: center; gap: 12px; }
.nav-logo-text {
  font-size: var(--fz-2xl); font-weight: 900;
  color: var(--dark); letter-spacing: -.03em;
}

.nav-menu { display: flex; gap: 4px; align-items: center; }
.nav-menu a {
  padding: 10px 18px; font-size: var(--fz-base); font-weight: 700;
  color: var(--gray-700); border-radius: var(--r-sm); transition: var(--t-fast);
}
.nav-menu a:hover,
.nav-menu a.active { color: var(--primary); background: var(--primary-light); }
.nav-menu a.nav-cta {
  background: var(--primary); color: var(--white);
  padding: 10px 24px; border-radius: var(--r);
}
.nav-menu a.nav-cta:hover { background: var(--primary-dark); }

.mobile-toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 44px; height: 44px; flex-direction: column;
  justify-content: center; align-items: center; gap: 5px;
}
.mobile-toggle span {
  display: block; width: 24px; height: 3px;
  background: var(--dark); border-radius: 2px;
}

/* ==================== HERO SECTION (.hero-section) ==================== */
.hero-section {
  position: relative; height: 560px; overflow: hidden; background: var(--dark);
}
.hero-slide {
  position: absolute; inset: 0; display: flex; align-items: center;
  opacity: 0; transition: opacity .8s ease;
  background-size: cover; background-position: center;
}
.hero-slide.active { opacity: 1; z-index: 1; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(15,23,42,.88), rgba(37,99,235,.7));
}
.hero-content { position: relative; z-index: 2; max-width: 720px; }

.hero-badge {
  display: inline-block; padding: 8px 20px; margin-bottom: 16px;
  background: var(--primary); color: var(--white);
  font-size: var(--fz-sm); font-weight: 800;
  border-radius: var(--r); text-transform: uppercase; letter-spacing: .06em;
}
.hero-title {
  font-size: var(--fz-5xl); font-weight: 900; line-height: 1.08;
  margin-bottom: 20px; color: var(--white);
  letter-spacing: -.03em; text-shadow: 0 2px 10px rgba(0,0,0,.35);
}
.hero-subtitle {
  font-size: var(--fz-lg); font-weight: 500; margin-bottom: 32px;
  opacity: .92; line-height: 1.65; color: var(--white);
}

.btn-hero, .btn-hero-outline {
  display: inline-block; padding: 16px 36px;
  font-size: var(--fz-md); font-weight: 800;
  border-radius: var(--r); cursor: pointer;
  transition: var(--t); text-transform: uppercase; letter-spacing: .04em;
  margin-right: 12px;
}
.btn-hero {
  background: var(--primary); color: var(--white);
  border: 2px solid var(--primary); box-shadow: var(--shadow-blue);
}
.btn-hero:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(37,99,235,.4); }
.btn-hero-outline {
  background: transparent; color: var(--white);
  border: 2px solid rgba(255,255,255,.5);
}
.btn-hero-outline:hover { background: rgba(255,255,255,.15); border-color: var(--white); }

/* Hero Dots */
.hero-dots {
  position: absolute; bottom: 32px; left: 50%;
  transform: translateX(-50%); display: flex; gap: 12px; z-index: 10;
}
.hero-dots .dot {
  width: 14px; height: 14px; border-radius: 50%;
  background: rgba(255,255,255,.35); cursor: pointer;
  transition: var(--t-fast); border: 2px solid rgba(255,255,255,.55);
}
.hero-dots .dot.active { background: var(--white); transform: scale(1.2); }

/* ==================== STATS SECTION (.stats-section) ==================== */
.stats-section {
  background: var(--primary); padding: 48px 0; color: var(--white);
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat-item { text-align: center; }
.stat-number {
  font-size: var(--fz-4xl); font-weight: 900; line-height: 1;
  margin-bottom: 8px; letter-spacing: -.02em;
}
.stat-desc {
  font-size: var(--fz-sm); font-weight: 600;
  text-transform: uppercase; letter-spacing: .06em; opacity: .85;
}

/* ==================== SECTION HEADERS (.section-title / .section-subtitle) ==================== */
.section-title {
  font-size: var(--fz-3xl); font-weight: 900;
  color: var(--dark); margin-bottom: 12px; text-align: center; letter-spacing: -.02em;
}
.section-subtitle {
  font-size: var(--fz-md); font-weight: 500;
  color: var(--gray-600); text-align: center; max-width: 640px; margin: 0 auto 48px;
}
.section-title-dark {
  font-size: var(--fz-3xl); font-weight: 900;
  color: var(--white); margin-bottom: 12px; text-align: center;
}
.section-subtitle-dark {
  font-size: var(--fz-md); font-weight: 500;
  color: rgba(255,255,255,.85); text-align: center; max-width: 640px; margin: 0 auto 48px;
}

/* ==================== CATEGORIES (.categories-section) ==================== */
.categories-section { padding: 80px 0; }
.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }

.category-card {
  border-radius: var(--r); overflow: hidden;
  background: var(--white); border: 2px solid var(--gray-200);
  transition: var(--t); cursor: pointer;
}
.category-card:hover {
  transform: translateY(-6px); box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}
.category-card-img { overflow: hidden; }
.category-card-img img {
  width: 100%; height: 220px; object-fit: cover;
  transition: transform .5s ease;
}
.category-card:hover .category-card-img img { transform: scale(1.05); }

.category-card-body { padding: 24px; }
.category-card-body h3 { font-size: var(--fz-xl); font-weight: 800; margin-bottom: 12px; }

.btn-view-more {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--primary); color: var(--white);
  padding: 10px 22px; border: 2px solid var(--primary);
  border-radius: var(--r); font-size: var(--fz-sm); font-weight: 700;
  cursor: pointer; transition: var(--t-fast);
}
.btn-view-more:hover { background: var(--primary-dark); border-color: var(--primary-dark); }

/* ==================== CTA BANNER ==================== */
.cta-banner {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: var(--r-lg);
  padding: 56px 48px; display: flex;
  justify-content: space-between; align-items: center;
  margin: 56px 0;
}
.cta-banner-text { max-width: 520px; }
.cta-banner-text h2 {
  font-size: var(--fz-3xl); font-weight: 900;
  color: var(--white); margin-bottom: 12px; letter-spacing: -.02em;
}
.cta-banner-text p { font-size: var(--fz-lg); font-weight: 500; opacity: .9; color: var(--white); }

.btn-cta-large {
  display: inline-block; padding: 18px 42px;
  background: var(--white); color: var(--primary);
  border: 2px solid var(--white); border-radius: var(--r);
  font-size: var(--fz-md); font-weight: 800;
  white-space: nowrap; cursor: pointer;
  transition: var(--t); text-transform: uppercase; letter-spacing: .04em;
  box-shadow: 0 4px 16px rgba(0,0,0,.2);
}
.btn-cta-large:hover { background: transparent; color: var(--white); transform: translateY(-2px); }

/* ==================== INTRO / ABOUT (.intro-section) ==================== */
.intro-section { padding: 80px 0; }
.intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.intro-text h2 { font-size: var(--fz-3xl); font-weight: 900; margin-bottom: 20px; }
.intro-text p { font-size: var(--fz-md); color: var(--gray-600); font-weight: 500; margin-bottom: 16px; line-height: 1.8; }
.intro-highlights { margin: 20px 0; }
.intro-highlights li {
  padding: 8px 0; font-size: var(--fz-base); font-weight: 600;
  color: var(--gray-700);
}

.video-wrapper {
  position: relative; border-radius: var(--r); overflow: hidden;
  border: 3px solid var(--gray-200); cursor: pointer;
}
.video-wrapper img { width: 100%; height: 380px; object-fit: cover; }
.play-btn {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 72px; height: 72px; background: var(--primary);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: 24px;
  box-shadow: 0 4px 20px rgba(0,0,0,.3); transition: var(--t);
}
.video-wrapper:hover .play-btn { transform: translate(-50%, -50%) scale(1.1); }

/* ==================== GALLERY (.gallery-section) ==================== */
.gallery-section { padding: 60px 0; background: var(--gray-50); }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery-item {
  border-radius: var(--r); overflow: hidden;
  border: 2px solid var(--gray-200); transition: var(--t); cursor: pointer;
}
.gallery-item:hover { transform: scale(1.02); border-color: var(--primary); box-shadow: var(--shadow-md); }
.gallery-item img { width: 100%; height: 200px; object-fit: cover; }
.gallery-wide { grid-column: span 2; }
.gallery-wide img { height: 220px; }

/* ==================== WHY CHOOSE US (.why-section) ==================== */
.why-section { padding: 80px 0; background: var(--gray-50); }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }

.why-item {
  background: var(--white); padding: 40px 32px;
  border-radius: var(--r); border: 2px solid var(--gray-200);
  text-align: center; transition: var(--t);
}
.why-item:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.why-icon {
  width: 72px; height: 72px; background: var(--primary-light);
  border-radius: var(--r); display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px; font-size: 30px;
  border: 2px solid var(--primary);
}
.why-item h3 { font-size: var(--fz-lg); font-weight: 800; margin-bottom: 12px; }
.why-item p { font-size: var(--fz-base); color: var(--gray-600); font-weight: 500; line-height: 1.7; }

/* ==================== PRODUCTS SHOWCASE / GRID (.products-showcase) ==================== */
/* 注: .product-card / .product-card-title / .product-card-price / .product-card-moq 
   统一定义在下方 PRODUCTS PAGE: LIST LAYOUT 区域 */
.products-showcase { padding: 80px 0; }
.products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* 首页特有：使用 .product-card-img (非 wrap) 和 .product-card-body (非 info) */
.product-card-img { overflow: hidden; border-bottom: 2px solid var(--gray-200); }
.product-card-img img {
  width: 100%; height: 220px; object-fit: cover;
  transition: transform .5s ease;
}
.product-card:hover .product-card-img img { transform: scale(1.04); }
.product-card-body { padding: 16px; }

.view-all-wrap { text-align: center; margin-top: 40px; }
.btn-view-all {
  display: inline-block; padding: 14px 36px;
  background: var(--primary); color: var(--white);
  border: 2px solid var(--primary); border-radius: var(--r);
  font-size: var(--fz-base); font-weight: 800;
  cursor: pointer; transition: var(--t);
  text-transform: uppercase; letter-spacing: .04em;
}
.btn-view-all:hover { background: var(--primary-dark); border-color: var(--primary-dark); }

/* ==================== CERTIFICATIONS (.certifications) ==================== */
.certifications { padding: 60px 0; background: var(--white); }
.cert-badges { display: flex; justify-content: center; gap: 36px; flex-wrap: wrap; }
.cert-badge {
  text-align: center; padding: 24px 32px;
  background: var(--white); border-radius: var(--r);
  border: 2px solid var(--gray-200); transition: var(--t);
}
.cert-badge:hover { border-color: var(--primary); transform: translateY(-4px); }
.cert-icon {
  width: 68px; height: 68px; margin: 0 auto 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: var(--r); display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: 20px; font-weight: 900; border: 2px solid var(--primary);
}
.cert-badge span { font-size: var(--fz-sm); font-weight: 700; color: var(--gray-700); }

/* ==================== FOOTER (.footer-main) ==================== */
.footer-main { background: var(--dark); color: var(--gray-400); padding: 72px 0 0; }
.footer-main .footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; }

.footer-col h4 {
  font-size: var(--fz-base); font-weight: 800;
  color: var(--white); margin-bottom: 24px;
  text-transform: uppercase; letter-spacing: .06em;
}
.footer-col p, .footer-col li {
  font-size: var(--fz-sm); font-weight: 500; line-height: 1.85;
}
.footer-col a { color: var(--gray-400); transition: color var(--t-fast); }
.footer-col a:hover { color: var(--primary-light); }
.footer-col ul li { padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,.07); }

.social-links { display: flex; gap: 10px; margin-top: 20px; }
.social-links a {
  width: 38px; height: 38px; background: rgba(255,255,255,.1);
  border-radius: var(--r-sm); display: flex; align-items: center; justify-content: center;
  color: var(--gray-400); font-size: 14px; font-weight: 700;
  transition: var(--t-fast); border: 1px solid rgba(255,255,255,.12);
}
.social-links a:hover { background: var(--primary); color: var(--white); border-color: var(--primary); }

.footer-bottom {
  border-top: 2px solid rgba(255,255,255,.1);
  margin-top: 48px; padding: 24px 0;
  display: flex; justify-content: space-between; align-items: center;
  font-size: var(--fz-sm); font-weight: 500; color: var(--gray-500);
}
.footer-bottom-links a { color: var(--gray-500); }
.footer-bottom-links a:hover { color: var(--white); }

/* ==================== FLOATING SIDEBAR (.floating-sidebar) ==================== */
.floating-sidebar {
  position: fixed; right: 0; top: 50%; transform: translateY(-50%);
  z-index: 900; display: flex; flex-direction: column; gap: 0;
}
.float-btn {
  display: flex; align-items: center; justify-content: center;
  width: 58px; height: 58px; color: var(--white); font-size: 20px;
  cursor: pointer; transition: var(--t-fast);
  border: none; border-bottom: 1px solid rgba(255,255,255,.2);
  writing-mode: vertical-lr; text-orientation: mixed;
  font-weight: 700; letter-spacing: .03em;
}
.float-btn.float-contact { background: var(--primary); }
.float-btn.float-chat { background: var(--success); }
.float-btn:hover { width: 66px; }

/* ==================== BACK TO TOP (.back-to-top) ==================== */
.back-to-top {
  position: fixed; bottom: 32px; right: 32px;
  width: 48px; height: 48px; background: var(--primary);
  color: var(--white); border: none; border-radius: var(--r);
  font-size: 22px; font-weight: 800;
  cursor: pointer; opacity: 0; visibility: hidden;
  transition: var(--t); z-index: 999;
  box-shadow: var(--shadow-md);
  display: flex; align-items: center; justify-content: center;
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--primary-dark); transform: translateY(-3px); }

/* ==================== INQUIRY MODAL (#inquiryModal) ==================== */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.7);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999; opacity: 0; visibility: hidden; transition: var(--t);
}
.modal-overlay[style*="flex"], .modal-overlay.active { opacity: 1; visibility: visible; display: flex !important; }

.modal-box {
  background: var(--white); border-radius: var(--r-lg);
  max-width: 640px; width: 90%; max-height: 90vh; overflow-y: auto;
  transform: translateY(30px); transition: transform var(--t);
  border: 2px solid var(--gray-200); padding: 36px;
}
.modal-overlay.active .modal-box, .modal-overlay[style*="flex"] .modal-box { transform: translateY(0); }
.modal-box.lg { max-width: 720px; }

.modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 40px; height: 40px; background: var(--gray-100);
  border: none; border-radius: var(--r-sm);
  font-size: 26px; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: var(--t-fast); color: var(--gray-600);
}
.modal-close:hover { background: var(--error); color: var(--white); }

.modal-title { font-size: var(--fz-xl); font-weight: 900; margin-bottom: 8px; color: var(--dark); }
.modal-subtitle { font-size: var(--fz-sm); color: var(--gray-500); margin-bottom: 24px; font-weight: 500; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block; font-size: var(--fz-sm); font-weight: 700;
  margin-bottom: 8px; color: var(--gray-700);
}
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 12px 16px;
  border: 2px solid var(--gray-300); border-radius: var(--r);
  font-size: var(--fz-base); font-weight: 500;
  outline: none; transition: border-color var(--t-fast);
  font-family: var(--font-family); color: var(--gray-800);
  background: var(--white);
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light);
}
.form-textarea { min-height: 120px; resize: vertical; }

.btn-submit {
  width: 100%; padding: 16px; margin-top: 8px;
  background: var(--primary); color: var(--white);
  border: 2px solid var(--primary); border-radius: var(--r);
  font-size: var(--fz-md); font-weight: 800;
  cursor: pointer; transition: var(--t);
  text-transform: uppercase; letter-spacing: .04em;
}
.btn-submit:hover { background: var(--primary-dark); transform: translateY(-2px); }

/* ==================== ANIMATIONS ==================== */
.animate-fadeUp { animation: fadeUp .7s ease forwards; opacity: 0; }
.delay-1 { animation-delay: .2s; }
.delay-2 { animation-delay: .4s; }
.delay-3 { animation-delay: .6s; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(25px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==================== PRODUCTS PAGE SPECIFIC (.products-page) ==================== */
/* ⚠ DEPRECATED: 此区域使用 .products-layout / .sidebar-panel / .filter-list 等旧类名，
   未被 archive-products.php 使用。新样式见下方 PRODUCTS PAGE: LIST LAYOUT。 */


/* Breadcrumb */
.breadcrumb {
  padding: 16px 0; font-size: var(--fz-sm); font-weight: 500;
  color: var(--gray-500); border-bottom: 1px solid var(--gray-200);
}
.breadcrumb a { color: var(--gray-600); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { margin: 0 8px; }

/* Layout with sidebar */
.products-layout { display: grid; grid-template-columns: 260px 1fr; gap: 32px; padding: 40px 0; }

/* Sidebar */
.sidebar-panel {
  background: var(--white); border-radius: var(--r);
  border: 2px solid var(--gray-200); padding: 24px;
  position: sticky; top: 92px;
}
.sidebar-panel h3 {
  font-size: var(--fz-base); font-weight: 800; margin-bottom: 16px;
  padding-bottom: 12px; border-bottom: 2px solid var(--gray-200);
  text-transform: uppercase; letter-spacing: .04em;
}
.filter-group { margin-bottom: 24px; }
.filter-group h4 {
  font-size: var(--fz-sm); font-weight: 700; margin-bottom: 10px;
  color: var(--gray-700); text-transform: uppercase; letter-spacing: .04em;
}
.filter-list li {
  padding: 10px 0; font-size: var(--fz-base); font-weight: 500;
  cursor: pointer; display: flex; justify-content: space-between; align-items: center;
  border-bottom: 1px solid var(--gray-100); transition: color var(--t-fast);
}
.filter-list li:hover { color: var(--primary); font-weight: 600; }
.filter-list li.active { color: var(--primary); font-weight: 700; }
.filter-list li .count {
  font-size: var(--fz-xs); color: var(--gray-400);
  background: var(--gray-100); padding: 2px 8px;
  border-radius: var(--r-full); font-weight: 600;
}

.price-range input[type="text"] {
  width: 100%; padding: 8px 12px; margin-bottom: 8px;
  border: 2px solid var(--gray-300); border-radius: var(--r);
  font-size: var(--fz-sm); font-weight: 600; outline: none;
}
.price-range input:focus { border-color: var(--primary); }

/* Toolbar */
.products-toolbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 24px; background: var(--white);
  border-radius: var(--r); border: 2px solid var(--gray-200); margin-bottom: 24px;
}
.result-count { font-size: var(--fz-base); font-weight: 600; color: var(--gray-700); }
.toolbar-right { display: flex; align-items: center; gap: 12px; }
.view-switch button {
  width: 40px; height: 40px; border: 2px solid var(--gray-300);
  background: var(--white); border-radius: var(--r-sm);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  color: var(--gray-500); font-size: 16px; transition: var(--t-fast);
}
.view-switch button.active, .view-switch button:hover {
  background: var(--primary); color: var(--white); border-color: var(--primary);
}
.sort-dropdown {
  padding: 10px 16px; border: 2px solid var(--gray-300);
  border-radius: var(--r); font-size: var(--fz-sm); font-weight: 600;
  outline: none; cursor: pointer; background: var(--white); color: var(--gray-700);
}
.sort-dropdown:focus { border-color: var(--primary); }

/* Product List View */
.products-list-view .product-card { display: flex; flex-direction: row; align-items: stretch; }
.products-list-view .product-card-img { width: 240px; min-width: 240px; border-bottom: none; border-right: 2px solid var(--gray-200); }
.products-list-view .product-card-body { flex: 1; display: flex; flex-direction: column; justify-content: center; }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 48px; }
.pagination button, .pagination a {
  min-width: 44px; height: 44px; display: inline-flex;
  align-items: center; justify-content: center;
  border: 2px solid var(--gray-300); background: var(--white);
  border-radius: var(--r); font-size: var(--fz-base); font-weight: 700;
  cursor: pointer; transition: var(--t-fast); padding: 0 16px; color: var(--gray-700);
}
.pagination button:hover, .pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination button.active, .pagination a.active {
  background: var(--primary); color: var(--white); border-color: var(--primary);
}

/* ==================== PRODUCT DETAIL PAGE (.product-detail-page) ==================== */
.product-detail-page { padding: 40px 0 0; }

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

/* Gallery */
.detail-gallery {}
.detail-gallery-main {
  width: 100%; height: 480px; object-fit: contain;
  border-radius: var(--r); border: 2px solid var(--gray-200);
  background: var(--gray-50); margin-bottom: 16px; cursor: zoom-in;
}
.detail-thumbs { display: flex; gap: 12px; }
.detail-thumb {
  width: 80px; height: 80px; object-fit: cover;
  border-radius: var(--r-sm); border: 3px solid transparent;
  cursor: pointer; transition: var(--t-fast); background: var(--gray-50);
}
.detail-thumb:hover { border-color: var(--gray-400); }
.detail-thumb.active { border-color: var(--primary); }

/* Info Side */
.detail-info {}
.detail-info h1 { font-size: var(--fz-2xl); font-weight: 900; margin-bottom: 12px; }
.detail-sku {
  font-size: var(--fz-sm); color: var(--gray-500); font-weight: 600;
  margin-bottom: 20px; padding-bottom: 20px; border-bottom: 2px solid var(--gray-200);
}
.detail-sku strong { color: var(--gray-700); font-weight: 800; }

/* Price Table */
.detail-price-table {
  width: 100%; border-collapse: collapse;
  margin: 20px 0; border: 2px solid var(--gray-200);
  border-radius: var(--r); overflow: hidden;
}
.detail-price-table th {
  background: var(--gray-100); padding: 12px 16px;
  font-size: var(--fz-sm); font-weight: 800; text-align: center;
  text-transform: uppercase; letter-spacing: .04em; color: var(--gray-700);
  border-bottom: 2px solid var(--gray-200);
}
.detail-price-table td {
  padding: 14px 16px; font-size: var(--fz-base); font-weight: 600;
  text-align: center; border-bottom: 1px solid var(--gray-200);
}
.detail-price-table tr.best-row { background: var(--primary-light); }
.detail-price-table tr.best-row td { font-weight: 800; color: var(--primary); }

/* Options */
.detail-options { margin: 24px 0; }
.option-group { margin-bottom: 18px; }
.option-group label {
  display: block; font-size: var(--fz-sm); font-weight: 700;
  margin-bottom: 10px; text-transform: uppercase; letter-spacing: .04em; color: var(--gray-700);
}
.option-chips { display: flex; gap: 10px; flex-wrap: wrap; }
.option-chip {
  padding: 10px 20px; border: 2px solid var(--gray-300);
  border-radius: var(--r); background: var(--white);
  font-size: var(--fz-sm); font-weight: 600;
  cursor: pointer; transition: var(--t-fast); color: var(--gray-700);
}
.option-chip:hover { border-color: var(--primary); color: var(--primary); }
.option-chip.selected { background: var(--primary); color: var(--white); border-color: var(--primary); }

/* Quantity */
.qty-control { display: flex; align-items: center; gap: 0; margin: 24px 0; }
.qty-minus, .qty-plus {
  width: 46px; height: 46px; background: var(--gray-100);
  border: 2px solid var(--gray-300); font-size: 20px; font-weight: 800;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: var(--t-fast); color: var(--gray-700);
}
.qty-minus:hover, .qty-plus:hover { background: var(--primary-light); color: var(--primary); }
.qty-input {
  width: 76px; height: 46px; border: 2px solid var(--gray-300);
  border-left: none; border-right: none; text-align: center;
  font-size: var(--fz-base); font-weight: 800; outline: none; color: var(--gray-800);
}

/* Action Buttons */
.detail-actions { display: flex; gap: 16px; margin-top: 28px; }
.detail-actions .btn-hero, .detail-actions .btn-hero-outline { flex: 1; margin-right: 0; }

/* Trust Badges */
.trust-badges {
  display: flex; gap: 20px; margin-top: 28px;
  padding-top: 28px; border-top: 2px solid var(--gray-200);
}
.trust-badge-item { display: flex; align-items: center; gap: 8px; font-size: var(--fz-sm); font-weight: 600; color: var(--gray-600); }
.trust-badge-item b { color: var(--primary); font-size: 16px; }

/* Supplier Card */
.supplier-info-card {
  background: var(--white); border: 2px solid var(--gray-200);
  border-radius: var(--r); padding: 28px; margin-top: 28px;
}
.supplier-info-card h3 {
  font-size: var(--fz-lg); font-weight: 800; margin-bottom: 16px;
  padding-bottom: 16px; border-bottom: 2px solid var(--gray-200);
}
.supplier-stat-row {
  display: flex; justify-content: space-between; padding: 10px 0;
  font-size: var(--fz-base); border-bottom: 1px solid var(--gray-100);
}
.supplier-stat-row .label { color: var(--gray-600); font-weight: 500; }
.supplier-stat-row .value { font-weight: 800; color: var(--primary); }

/* Detail Tabs */
.detail-tabs-section { background: var(--gray-50); border-top: 2px solid var(--gray-200); }
.tab-nav-bar {
  display: flex; gap: 0; border-bottom: 3px solid var(--gray-200); background: var(--white);
}
.tab-nav-bar button {
  padding: 18px 32px; font-size: var(--fz-base); font-weight: 700;
  background: transparent; border: none; border-bottom: 3px solid transparent;
  cursor: pointer; transition: var(--t-fast); color: var(--gray-600);
  margin-bottom: -3px;
}
.tab-nav-bar button:hover { color: var(--primary); }
.tab-nav-bar button.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-panel { padding: 48px 0; }

/* Spec Table */
.spec-data-table {
  width: 100%; border-collapse: collapse;
  border: 2px solid var(--gray-200); border-radius: var(--r); overflow: hidden;
}
.spec-data-table tr { border-bottom: 1px solid var(--gray-200); }
.spec-data-table tr:nth-child(even) { background: var(--gray-50); }
.spec-data-table td {
  padding: 14px 20px; font-size: var(--fz-base); font-weight: 600;
}
.spec-data-table td:first-child { width: 240px; color: var(--gray-600); font-weight: 700; background: var(--gray-50); }

/* Related Products */
.related-products-section { padding: 64px 0; background: var(--gray-50); }

/* ==================== TOAST NOTIFICATIONS ==================== */
.toast-stack {
  position: fixed; top: 24px; right: 24px; z-index: 10000;
  display: flex; flex-direction: column; gap: 12px;
}
.toast-msg {
  padding: 16px 24px; border-radius: var(--r); font-size: var(--fz-base); font-weight: 700;
  color: var(--white); box-shadow: var(--shadow-lg);
  transform: translateX(120%); transition: transform .3s ease; max-width: 420px;
  border-left: 4px solid rgba(255,255,255,.4);
}
.toast-msg.show { transform: translateX(0); }
.toast-success { background: var(--success); }
.toast-error { background: var(--error); }
.toast-info { background: var(--primary); }

/* ==================== PRODUCTS PAGE: LIST LAYOUT (.list-layout) ==================== */
.list-layout { padding: 40px 0; }
.list-container { display: grid; grid-template-columns: 260px 1fr; gap: 32px; }
.container-wide { max-width: 1360px; margin: 0 auto; padding: 0 24px; }

/* Sidebar Filter */
.filter-sidebar {
  background: var(--white); border-radius: var(--r);
  border: 2px solid var(--gray-200); padding: 24px;
  position: sticky; top: 92px;
}
.filter-title {
  font-size: var(--fz-base); font-weight: 800; margin-bottom: 16px;
  padding-bottom: 12px; border-bottom: 2px solid var(--gray-200);
  text-transform: uppercase; letter-spacing: .04em;
}
.filter-group-label {
  display: block; font-size: var(--fz-sm); font-weight: 700;
  margin-bottom: 10px; color: var(--gray-700); text-transform: uppercase; letter-spacing: .04em;
}
.filter-option {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 0; cursor: pointer;
  font-size: var(--fz-base); font-weight: 500; color: var(--gray-700);
}
.filter-option:hover { color: var(--primary); }
.filter-option input[type="checkbox"], .filter-option input[type="radio"] {
  width: 18px; height: 18px; accent-color: var(--primary);
  cursor: pointer;
}

/* Category Filter List — 防御性换行 + 不溢出 */
.filter-options-ul { list-style: none; padding: 0; margin: 0; }
.filter-options-ul li { margin-bottom: 0; }
.filter-link {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 10px 0; color: var(--gray-700); font-size: var(--fz-base);
  font-weight: 500; border-bottom: 1px solid var(--gray-100);
  transition: color var(--t-fast); text-decoration: none;
  overflow-wrap: break-word; word-break: break-word;
  line-height: 1.5; gap: 8px; min-width: 0;
}
.filter-link:hover, .filter-link.active { color: var(--primary); font-weight: 700; }
.filter-parent {
  padding-top: 14px; margin-top: 4px;
  border-bottom: 2px solid var(--gray-200);
  font-weight: 700; color: var(--dark);
}
.filter-child { padding-left: 20px; }
.filter-count {
  flex-shrink: 0; color: var(--gray-400);
  font-size: var(--fz-xs); font-weight: 600; white-space: nowrap;
}
.filter-link.active .filter-count, .filter-link:hover .filter-count { color: var(--primary); }

/* Search */
.filter-search { position: relative; margin-bottom: 20px; }
.filter-search .form-input {
  width: 100%; padding: 10px 44px 10px 14px;
  border: 2px solid var(--gray-300); border-radius: var(--r);
  font-size: var(--fz-sm); font-weight: 600; outline: none;
  color: var(--gray-700); box-sizing: border-box;
  background: var(--gray-50); transition: border-color var(--t-fast);
}
.filter-search .form-input:focus { border-color: var(--primary); background: var(--white); }
.btn-search-icon {
  position: absolute; right: 6px; top: 50%;
  transform: translateY(-50%); width: 34px; height: 34px;
  border: none; background: transparent; cursor: pointer;
  font-size: 16px; display: flex; align-items: center;
  justify-content: center; border-radius: var(--r);
  transition: background var(--t-fast); padding: 0; line-height: 1;
}
.btn-search-icon:hover { background: var(--primary-light); }

/* Price Range */
.price-range-inputs { display: flex; align-items: center; gap: 6px; }
.form-input-sm {
  flex: 1; min-width: 0; padding: 8px 8px;
  border: 2px solid var(--gray-300); border-radius: var(--r);
  font-size: var(--fz-xs); outline: none;
}

/* Tags */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-pill {
  display: inline-block; padding: 5px 12px;
  background: var(--gray-50); color: var(--gray-600);
  border: 1px solid var(--gray-300); border-radius: var(--r-full);
  font-size: var(--fz-xs); font-weight: 600; text-decoration: none;
  transition: all var(--t-fast);
}
.tag-pill:hover { background: var(--primary-light); color: var(--primary); border-color: var(--primary-light); }
.tag-pill.active { background: var(--primary); color: var(--white); border-color: var(--primary); }
.tag-count { color: var(--gray-400); font-size: 11px; margin-left: 3px; }
.tag-pill.active .tag-count, .tag-pill:hover .tag-count { color: inherit; opacity: .75; }

/* List Toolbar */
.list-toolbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 24px; background: var(--white);
  border-radius: var(--r); border: 2px solid var(--gray-200); margin-bottom: 24px;
}
.list-count { font-size: var(--fz-base); font-weight: 600; color: var(--gray-700); }
.list-count strong { color: var(--primary); font-weight: 900; }
.view-toggle { display: flex; gap: 4px; }
.view-toggle .view-btn {
  width: 40px; height: 40px; border: 2px solid var(--gray-300);
  background: var(--white); border-radius: var(--r-sm);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  color: var(--gray-500); font-size: 17px; transition: var(--t-fast);
}
.view-toggle .view-btn.active, .view-toggle .view-btn:hover {
  background: var(--primary); color: var(--white); border-color: var(--primary);
}
.list-sort select {
  padding: 10px 16px; border: 2px solid var(--gray-300);
  border-radius: var(--r); font-size: var(--fz-sm); font-weight: 600;
  outline: none; cursor: pointer; background: var(--white); color: var(--gray-700);
}
.list-sort select:focus { border-color: var(--primary); }

/* Mobile Category Tags (desktop hidden) */
.toolbar-mobile-cats { display: none; margin: 0 -24px; padding: 0 24px; }
.mobile-cats-scroll {
  display: flex; gap: 8px; overflow-x: auto; white-space: nowrap;
  -webkit-overflow-scrolling: touch; scrollbar-width: none; padding: 2px 0;
}
.mobile-cats-scroll::-webkit-scrollbar { display: none; }
.mobile-cat-tag {
  display: inline-flex; align-items: center; flex-shrink: 0;
  padding: 8px 16px; border-radius: var(--r-full);
  font-size: var(--fz-xs); font-weight: 600; color: var(--gray-600);
  background: var(--gray-100); border: 1px solid var(--gray-200);
  text-decoration: none; transition: all var(--t);
}
.mobile-cat-tag:active { transform: scale(0.96); }
.mobile-cat-tag.active { background: var(--primary); color: var(--white); border-color: var(--primary); }

/* Filter Toggle Button (mobile only) */
.filter-toggle-btn {
  display: none;
  width: 100%; padding: 12px 16px;
  background: var(--white); border: 2px solid var(--gray-300);
  border-radius: var(--r); font-size: var(--fz-sm); font-weight: 700;
  color: var(--gray-700); cursor: pointer; text-align: left;
  transition: all var(--t-fast);
}
.filter-toggle-btn:hover { border-color: var(--primary); color: var(--primary); }

/* No Products */
.no-products-message { text-align: center; padding: 60px 20px; }

/* Product Grid */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* Product Card — 列表页/首页共享 */
.product-card {
  background: var(--white); border-radius: var(--r);
  border: 2px solid var(--gray-200); overflow: hidden;
  transition: var(--t); cursor: pointer; position: relative;
}
.product-card:hover {
  transform: translateY(-6px); box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}
.product-card-img-wrap {
  overflow: hidden; border-bottom: 2px solid var(--gray-200);
  position: relative; aspect-ratio: 1/1;
  background: var(--gray-50);
}
.product-card-img-wrap a { display: block; width: 100%; height: 100%; }
.product-card-img-wrap img {
  width: 100%; height: 100%; object-fit: contain;
  transition: transform .5s ease;
}
.product-card:hover .product-card-img-wrap img { transform: scale(1.06); }
.product-card-category {
  display: inline-block; background: var(--primary-light);
  color: var(--primary); border: 1px solid var(--primary-light);
  padding: 2px 10px; border-radius: var(--r-full);
  font-size: 11px; font-weight: 700; text-transform: uppercase; margin-bottom: 6px;
}
.product-card-info { padding: 16px; }
.product-card-model { font-size: var(--fz-xs); font-weight: 600; color: var(--gray-500); margin-bottom: 4px; }
.product-card-title {
  font-size: var(--fz-base); font-weight: 700; margin-bottom: 10px;
  line-height: 1.45; color: var(--dark);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; overflow-wrap: break-word; word-break: break-word;
}
.product-card-title a { color: inherit; text-decoration: none; }
.product-card-title a:hover { color: var(--primary); }
.product-card-excerpt { font-size: var(--fz-xs); color: var(--gray-500); font-weight: 500; line-height: 1.6; margin-bottom: 12px; }
.product-card-price-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.product-card-price { font-size: var(--fz-xl); font-weight: 900; color: var(--primary); }
.product-card-price small { font-size: var(--fz-xs); font-weight: 600; color: var(--gray-500); }
.product-card-moq { font-size: var(--fz-xs); color: var(--gray-500); font-weight: 600; }

/* Chat now button — card bottom action (WhatsApp) */
.product-card-chat-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  width: 100%; margin-top: 12px; padding: 9px 16px;
  font-size: var(--fz-sm); font-weight: 700;
  color: var(--success); background: var(--white);
  border: 2px solid var(--success); border-radius: var(--r);
  cursor: pointer; transition: all var(--t-fast);
  font-family: var(--font-family); line-height: 1.4;
}
.product-card-chat-btn:hover {
  background: var(--success); color: var(--white);
  transform: translateY(-1px); box-shadow: 0 2px 8px rgba(16,185,129,.25);
}
.product-card-chat-btn:active { transform: translateY(0); }
.product-card-chat-btn svg { flex-shrink: 0; }

/* Pagination Wrapper */
.pagination-wrapper { margin-top: 48px; }
.pagination-wrapper .nav-links {
  display: flex; justify-content: center; align-items: center;
  gap: 8px; flex-wrap: wrap;
}
.pagination-wrapper .page-numbers {
  min-width: 44px; height: 44px; display: inline-flex;
  align-items: center; justify-content: center;
  border: 2px solid var(--gray-300); background: var(--white);
  border-radius: var(--r); font-size: var(--fz-base); font-weight: 700;
  text-decoration: none; transition: all var(--t-fast);
  padding: 0 12px; color: var(--gray-700);
}
.pagination-wrapper .page-numbers.current,
.pagination-wrapper .page-numbers:hover {
  background: var(--primary); color: var(--white); border-color: var(--primary);
}
.pagination-wrapper .page-numbers.dots {
  border: none; background: transparent; color: var(--gray-400); min-width: auto;
}

/* Pagination Buttons (legacy) */
.page-btn {
  min-width: 44px; height: 44px; display: inline-flex;
  align-items: center; justify-content: center;
  border: 2px solid var(--gray-300); background: var(--white);
  border-radius: var(--r); font-size: var(--fz-base); font-weight: 700;
  cursor: pointer; transition: var(--t-fast); color: var(--gray-700); padding: 0 14px;
}
.page-btn:hover { border-color: var(--primary); color: var(--primary); }
.page-btn.active { background: var(--primary); color: var(--white); border-color: var(--primary); }

/* ==================== PRODUCT DETAIL: SPECIFIC CLASSES ==================== */

/* Breadcrumb Nav */
.breadcrumb-nav {
  padding: 16px 0; font-size: var(--fz-sm); font-weight: 500;
  color: var(--gray-500); border-bottom: 1px solid var(--gray-200);
  background: var(--gray-50);
}
.breadcrumb-list a { color: var(--gray-600); }
.breadcrumb-list a:hover { color: var(--primary); }
.breadcrumb-list .separator { margin: 0 8px; color: var(--gray-400); }
.breadcrumb-list .current { color: var(--dark); font-weight: 700; }

/* Gallery Main Image */
.gallery-main img {
  width: 100%; height: 480px; object-fit: contain;
  border-radius: var(--r); border: 2px solid var(--gray-200);
  background: var(--gray-50); cursor: zoom-in;
}

/* Price Section */
.price-section { margin: 20px 0; padding: 20px 0; border-bottom: 2px solid var(--gray-200); }
.price-main {
  font-size: var(--fz-3xl); font-weight: 900; color: var(--primary);
  line-height: 1; margin-bottom: 6px;
}
.price-note { font-size: var(--fz-sm); color: var(--gray-500); font-weight: 500; }
.price-tier-table {
  width: 100%; border-collapse: collapse; margin-top: 16px;
  border: 2px solid var(--gray-200); border-radius: var(--r); overflow: hidden;
}
.price-tier-table th {
  background: var(--gray-100); padding: 12px 16px;
  font-size: var(--fz-sm); font-weight: 800; text-align: center;
  text-transform: uppercase; letter-spacing: .04em; color: var(--gray-700);
  border-bottom: 2px solid var(--gray-200);
}
.price-tier-table td {
  padding: 13px 16px; font-size: var(--fz-base); font-weight: 600;
  text-align: center; border-bottom: 1px solid var(--gray-200);
}
.price-tier-table tr.highlighted td { background: var(--primary-light); font-weight: 900; color: var(--primary); }

/* Option Labels & Values */
.option-label {
  font-size: var(--fz-sm); font-weight: 700; margin-bottom: 10px;
  text-transform: uppercase; letter-spacing: .04em; color: var(--gray-700);
}
.option-values { display: flex; gap: 10px; flex-wrap: wrap; }
.option-chip {
  padding: 10px 22px; border: 2px solid var(--gray-300);
  border-radius: var(--r); background: var(--white);
  font-size: var(--fz-sm); font-weight: 700;
  cursor: pointer; transition: var(--t-fast); color: var(--gray-700);
}
.option-chip:hover { border-color: var(--primary); color: var(--primary); }
.option-chip.selected, .option-chip.active { background: var(--primary); color: var(--white); border-color: var(--primary); }

/* Qty Row */
.qty-row { margin: 24px 0; }
.qty-btn {
  width: 46px; height: 46px; background: var(--gray-100);
  border: 2px solid var(--gray-300); font-size: 24px; font-weight: 800;
  cursor: pointer; transition: var(--t-fast); color: var(--gray-700);
}
.qty-btn:hover { background: var(--primary-light); color: var(--primary); }

/* Action Buttons */
.action-buttons { display: flex; gap: 16px; margin-top: 28px; }
.btn-inquiry {
  flex: 1; padding: 16px 28px; font-size: var(--fz-md); font-weight: 800;
  background: var(--primary); color: var(--white);
  border: 2px solid var(--primary); border-radius: var(--r);
  cursor: pointer; transition: var(--t); text-transform: uppercase; letter-spacing: .04em;
  box-shadow: var(--shadow-blue);
}
.btn-inquiry:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(37,99,235,.4); }
.btn-contact-alt {
  flex: 1; padding: 16px 28px; font-size: var(--fz-md); font-weight: 800;
  background: transparent; color: var(--primary);
  border: 2px solid var(--primary); border-radius: var(--r);
  cursor: pointer; transition: var(--t); text-transform: uppercase; letter-spacing: .04em;
}
.btn-contact-alt:hover { background: var(--primary-light); transform: translateY(-2px); }

/* Trust Badges */
.trust-badge { display: flex; align-items: center; gap: 6px; font-size: var(--fz-sm); font-weight: 600; color: var(--gray-600); }
.trust-badge-icon { font-size: 16px; }

/* Supplier Card */
.supplier-card {
  background: var(--white); border: 2px solid var(--gray-200);
  border-radius: var(--r); padding: 32px;
}
.supplier-header { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.supplier-avatar {
  width: 56px; height: 56px; background: var(--primary);
  border-radius: var(--r-lg); display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: 22px; font-weight: 900;
}
.supplier-name { font-size: var(--fz-xl); font-weight: 900; color: var(--dark); }
.supplier-meta { font-size: var(--fz-sm); color: var(--gray-500); font-weight: 600; margin-top: 4px; }
.supplier-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 24px; padding-top: 24px; border-top: 2px solid var(--gray-200); }
.supplier-stat { text-align: center; }
.supplier-stat-num {
  font-size: var(--fz-2xl); font-weight: 900; color: var(--primary);
  line-height: 1; margin-bottom: 4px;
}
.supplier-stat-label { font-size: var(--fz-xs); color: var(--gray-500); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }

/* Tabs Navigation */
.tabs-nav {
  display: flex; gap: 0; border-bottom: 3px solid var(--gray-200);
  background: var(--white); overflow-x: auto; overflow-y: hidden;
}
.tabs-nav .tab-link {
  padding: 18px 28px; font-size: var(--fz-base); font-weight: 700;
  color: var(--gray-600); white-space: nowrap;
  border-bottom: 3px solid transparent;
  margin-bottom: -3px; transition: var(--t-fast);
}
.tabs-nav .tab-link:hover { color: var(--primary); }
.tabs-nav .tab-link.active { color: var(--primary); border-bottom-color: var(--primary); }

/* Spec Table */
.spec-table {
  width: 100%; border-collapse: collapse;
  border: 2px solid var(--gray-200); border-radius: var(--r); overflow: hidden;
}
.spec-table tr { border-bottom: 1px solid var(--gray-200); }
.spec-table tr:nth-child(even) { background: var(--gray-50); }
.spec-table td {
  padding: 14px 20px; font-size: var(--fz-base); font-weight: 600; color: var(--gray-800);
}
.spec-table td:first-child { width: 260px; color: var(--gray-600); font-weight: 700; background: var(--gray-50); }

/* ===== Detail Page v7.0 — 从 single-products.php 内联 CSS 迁移 ===== */

/* Header spacer */
.detail-header-spacer { height: 32px; }

/* Breadcrumb v7 */
body.single-ax_product .breadcrumb-nav {
  background: var(--gray-50); border-bottom: 1px solid var(--gray-200);
  padding: 6px 0; margin: 0; font-size: var(--fz-xs); color: var(--gray-500);
}
.breadcrumb-nav a { color: var(--primary); text-decoration: none; }
.breadcrumb-nav .separator { margin: 0 6px; color: var(--gray-400); }
.breadcrumb-nav .current { color: var(--gray-700); font-weight: 700; }

/* Detail page top spacing reset */
body.single-ax_product #content,
body.single-ax_product .entry-content { padding-top: 16px !important; padding-bottom: 0 !important; margin-top: 0 !important; margin-bottom: 0 !important; }

/* Product detail section: 给大图和面包屑之间留出呼吸间距
   注意：此 padding-top 仅用于视觉分隔，与 Header 遮挡无关。
   Header 遮挡由 breadcrumb-nav 的 padding-top 单独处理。 */
body.single-ax_product .product-detail-section {
  padding-top: 24px;
}

/* Product title & model */
.detail-product-title { font-size: var(--fz-2xl); font-weight: 900; margin-bottom: 8px; color: var(--dark); line-height: 1.3; }
.detail-model { font-size: var(--fz-xs); color: var(--gray-500); font-weight: 600; margin-bottom: 16px; padding-bottom: 16px; border-bottom: 2px solid var(--gray-200); }
.detail-model strong { color: var(--gray-700); }

/* Price badge */
.price-badge { display: inline-block; background: var(--primary-light); color: #1e40af; font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: var(--r-sm); margin-left: 6px; vertical-align: middle; text-transform: uppercase; }
.price-note .divider { margin: 0 8px; color: var(--gray-300); }

/* Key-info grid */
.key-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 20px 0; padding: 16px; background: var(--gray-50); border-radius: var(--r); border: 1px solid var(--gray-200); }
.key-info-item { display: flex; flex-direction: column; gap: 2px; }
.key-info-item .ki-label { font-size: 11px; color: var(--gray-400); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.key-info-item .ki-value { font-size: var(--fz-sm); color: var(--dark); font-weight: 700; }

/* Bulk note */
.bulk-note { padding: 12px 16px; background: #fffbeb; border: 1px solid #fde68a; border-radius: var(--r); font-size: var(--fz-xs); color: #92400e; font-weight: 600; margin: 0 0 20px; display: flex; align-items: center; gap: 8px; }

/* WhatsApp button */
.btn-wa { padding: 16px 20px; font-size: var(--fz-sm); font-weight: 700; background: var(--white); color: var(--primary); border: 2px solid var(--primary); border-radius: var(--r); cursor: pointer; transition: var(--t); white-space: nowrap; }
.btn-wa:hover { background: var(--primary-light); }

/* Gallery v7 */
.gallery-col { display: flex; flex-direction: column; }
.gallery-main { position: relative; background: var(--gray-50); border-radius: var(--r); border: 2px solid var(--gray-200); overflow: hidden; min-height: 240px; display: flex; align-items: center; justify-content: center; }
.gallery-main img { width: 100%; max-height: 480px; object-fit: contain; cursor: zoom-in; display: block; }
.gallery-thumbs-wrapper { position: relative; margin-top: 12px; }
.gallery-thumbs { display: flex; gap: 10px; overflow-x: auto; scroll-behavior: smooth; scrollbar-width: none; padding: 4px 0; }
.gallery-thumbs::-webkit-scrollbar { display: none; }
.gallery-thumb-btn { flex-shrink: 0; width: 80px; height: 80px; padding: 0; border: 3px solid transparent; border-radius: var(--r); background: var(--gray-50); cursor: pointer; overflow: hidden; transition: border-color var(--t-fast); }
.gallery-thumb-btn img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb-btn:hover { border-color: var(--gray-400); }
.gallery-thumb-btn.active { border-color: var(--primary); }
.thumb-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; background: var(--white); border: 2px solid var(--gray-300); border-radius: 50%; cursor: pointer; font-size: 14px; display: flex; align-items: center; justify-content: center; z-index: 2; transition: all var(--t-fast); color: var(--gray-700); }
.thumb-arrow:hover { background: var(--primary); color: var(--white); border-color: var(--primary); }
.thumb-arrow.left { left: -14px; }
.thumb-arrow.right { right: -14px; }

/* Panorama */
.panorama-fullwidth { margin: 32px 0 0; padding: 28px 0; border-top: 1px solid var(--gray-200); border-bottom: 1px solid var(--gray-200); background: var(--gray-50); }
.panorama-hdr { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.panorama-hdr h3 { font-size: 18px; font-weight: 800; color: var(--dark); margin: 0; }
.panorama-hdr .pano-btn { display: inline-flex; align-items: center; gap: 4px; padding: 8px 18px; background: var(--primary); color: var(--white); font-size: var(--fz-sm); font-weight: 700; border-radius: var(--r); text-decoration: none; white-space: nowrap; transition: background var(--t-fast); }
.panorama-hdr .pano-btn:hover { background: var(--primary-dark); }
.panorama-wrap { position: relative; width: 100%; padding-bottom: 42.5%; border-radius: var(--r); overflow: hidden; border: 2px solid var(--gray-200); background: #0d1117; }
.panorama-wrap iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; }
.panorama-empty { padding: 40px 16px; border: 2px dashed var(--gray-300); border-radius: var(--r); text-align: center; color: var(--gray-400); font-size: var(--fz-xs); background: var(--white); }

/* Tabs v7 */
.tab-content-inner { font-size: var(--fz-base); line-height: 1.8; color: var(--gray-700); }
.tab-content-inner h3 { font-size: 22px; font-weight: 800; margin-bottom: 16px; color: var(--dark); }
.tab-content-inner p { margin-bottom: 12px; }

/* 产品详情页 h2 下间距（从 WordPress 额外CSS迁移） */
.product-detail-section h2,
.single-ax_product section h2,
.tab-content-inner h2 {
  margin-bottom: 20px !important;
}

/* Spec table 2-col */
.spec-table-2col .spec-label { padding: 14px 16px; font-size: var(--fz-sm); font-weight: 700; color: var(--gray-600); background: var(--gray-50); vertical-align: middle; }
.spec-table-2col .spec-value { padding: 14px 16px; font-size: var(--fz-sm); font-weight: 600; color: var(--gray-800); vertical-align: middle; border-right: 1px solid var(--gray-200); }
.spec-table-2col .spec-value:last-child { border-right: none; }
.spec-table-2col .spec-label:last-of-type { border-left: 1px solid var(--gray-200); }
@media (min-width: 992px) {
  .spec-table { table-layout: fixed; }
  .spec-table-2col .spec-label { width: 18%; }
  .spec-table-2col .spec-value { width: 32%; }
}

/* Related products header */
.section-title-center { font-size: var(--fz-3xl); font-weight: 900; text-align: center; color: var(--dark); }

/* Inquiry modal */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,.55); display: flex; align-items: center; justify-content: center; z-index: 9999; }
.modal-box { background: var(--white); border-radius: var(--r-lg); padding: 40px; max-width: 560px; width: 90%; max-height: 90vh; overflow-y: auto; position: relative; }
.modal-box.lg { max-width: 640px; }
.modal-close { position: absolute; top: 12px; right: 16px; width: 36px; height: 36px; border: none; background: transparent; font-size: 24px; cursor: pointer; color: var(--gray-500); border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: all var(--t-fast); }
.modal-close:hover { background: var(--gray-100); color: var(--dark); }
.modal-title { font-size: var(--fz-3xl); font-weight: 900; margin-bottom: 6px; color: var(--dark); }
.modal-subtitle { font-size: var(--fz-sm); color: var(--gray-500); margin-bottom: 28px; }
.btn-submit { width: 100%; padding: 16px; background: var(--primary); color: var(--white); border: 2px solid var(--primary); border-radius: var(--r); font-size: var(--fz-md); font-weight: 800; cursor: pointer; transition: var(--t); text-transform: uppercase; letter-spacing: .04em; }
.btn-submit:hover { background: var(--primary-dark); }

/* Anchor tab smooth scroll */
.tab-panel { display: block; padding: 24px 0 12px; scroll-margin-top: 100px; max-width: 900px; }
.tab-panel:target { animation: tab-flash 0.6s ease; }
@keyframes tab-flash { 0% { background: var(--primary-light); } 100% { background: transparent; } }

/* Text helpers for inline styles fallback */
.text-center { text-align: center; }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
  .detail-layout { grid-template-columns: 1fr; }
  .intro-grid { grid-template-columns: 1fr; }
  .cta-banner { flex-direction: column; text-align: center; gap: 24px; }
  .footer-main .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .products-layout { grid-template-columns: 1fr; }
  .sidebar-panel { position: static; }
  .form-row { grid-template-columns: 1fr; }

  /* List Layout: 侧边栏折叠为全宽 */
  .list-container { grid-template-columns: 1fr; }
  .filter-sidebar { position: static; margin-bottom: 24px; }
  .list-main { max-width: 100%; min-width: 0; }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .filter-link { overflow-wrap: break-word; word-break: break-word; line-height: 1.5; }

  /* Detail Page */
  .detail-layout { grid-template-columns: 1fr; gap: 32px; }
  .related-section .product-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  :root {
    --fz-5xl: 42px; --fz-4xl: 34px; --fz-3xl: 28px;
  }
  .nav-menu { display: none; }
  .mobile-toggle { display: flex; }
  .hero-section { height: 400px; }
  .hero-title { font-size: var(--fz-3xl); }
  .hero-subtitle { font-size: var(--fz-base); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .category-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-wide { grid-column: span 1; }
  .footer-main .footer-grid { grid-template-columns: 1fr; }
  .product-actions, .detail-actions { flex-direction: column; }
  .tab-nav-bar { overflow-x: auto; white-space: nowrap; }
  .detail-gallery-main { height: 320px; }
  .floating-sidebar { display: none; }
  .trust-badges { flex-wrap: wrap; }

  /* List Layout: 移动端侧边栏隐藏，产品 2 列 */
  .list-container { grid-template-columns: 1fr; }
  .filter-sidebar { display: none; }
  .list-main { max-width: 100%; min-width: 0; overflow: hidden; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .list-toolbar { flex-direction: column; gap: 12px; padding: 12px !important; margin-bottom: 12px !important; align-items: stretch; }
  .list-count { width: 100%; }
  .filter-link { overflow-wrap: break-word; word-break: break-word; white-space: normal; line-height: 1.5; padding: 10px 0; }
  .filter-options-ul { padding-left: 0; margin: 0; list-style: none; }
  .filter-count { flex-shrink: 0; white-space: nowrap; }
  .filter-group { max-width: 100%; overflow: hidden; }
  .toolbar-mobile-cats { display: block; }
  .list-sort { display: none; }
  .view-toggle { display: none; }
  .header-spacer { height: 42px !important; }
  .filter-toggle-btn { display: flex; }
  .filter-sidebar.open { display: block; position: static; margin-bottom: 24px; }
  .filter-sidebar .filter-search { display: none; }
  .filter-sidebar .filter-group:last-of-type { display: none; }
  .filter-sidebar.open .filter-group:last-of-type { display: block; }

  /* Detail Page Mobile */
  .detail-header-spacer { height: 0 !important; display: none !important; }
  .page-header-bar { display: none; }
  body.single-ax_product .container-wide { padding-left: 16px !important; padding-right: 16px !important; box-sizing: border-box !important; }
  body.single-ax_product .detail-layout { padding-left: 0 !important; padding-right: 0 !important; box-sizing: border-box !important; overflow: hidden !important; }
  body.single-ax_product { overflow-x: hidden !important; }
  .product-detail-section { width: 100% !important; max-width: 100% !important; }
  .detail-layout { gap: 20px; padding-top: 8px !important; padding-bottom: 24px !important; }
  .gallery-col { min-width: 0; }
  .gallery-main { min-height: 200px; }
  .gallery-main img { max-height: 320px; }
  .gallery-thumbs-wrapper { margin-left: 20px; margin-right: 20px; }
  .thumb-arrow.left { left: -8px; }
  .thumb-arrow.right { right: -8px; }
  .detail-product-title { font-size: 22px; }
  .price-main { font-size: var(--fz-2xl); }
  .key-info-grid { grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px; }
  .key-info-item .ki-value { font-size: var(--fz-xs); }
  .action-buttons { flex-direction: column; }
  .btn-inquiry, .btn-wa { width: 100%; text-align: center; }
  .trust-badges { gap: 10px; }
  .panorama-fullwidth { margin: 24px 0 0; padding: 20px 0; }
  .panorama-wrap { padding-bottom: 56.25%; }
  .panorama-hdr { flex-direction: column; gap: 12px; align-items: flex-start; }
  .tabs-nav { flex-wrap: nowrap; overflow-y: hidden; }
  .tab-link { padding: 14px 16px; font-size: var(--fz-sm); }
  .spec-table-2col .spec-label, .spec-table-2col .spec-value { width: 25%; padding: 10px 12px; font-size: 12px; }
  .spec-table-2col .spec-value:nth-child(2) { border-right: 1px solid var(--gray-200); }
  .spec-table-2col .spec-label:nth-child(3) { border-left: none; }
  .related-section .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .product-card-img-wrap img { height: 160px; }
  .modal-box { padding: 28px 20px; }
}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero-title { font-size: 26px; }
  .section-title, .section-title-dark { font-size: var(--fz-2xl); }
  .cta-banner { padding: 36px 24px; }
  .btn-hero, .btn-hero-outline { padding: 12px 24px; font-size: var(--fz-sm); }
  .detail-thumbs { flex-wrap: wrap; }
  .toast-msg { left: 12px; right: 12px; max-width: none; }

  /* Spec table mobile */
  .spec-table-2col .spec-label,
  .spec-table-2col .spec-value {
    display: table-cell; width: 50% !important; padding: 10px 12px; font-size: 13px;
    border-right: 1px solid var(--gray-200) !important; border-left: none !important;
  }
  .spec-table-2col .spec-value:nth-child(2),
  .spec-table-2col .spec-value:nth-child(4) { border-right: none !important; }
  .spec-table-2col .spec-label:nth-child(3),
  .spec-table-2col .spec-value:nth-child(4) { border-top: 1px solid var(--gray-200); }
  .spec-table-2col .spec-label { background: var(--gray-50); color: var(--gray-500); }
}
