/* ============================================
   Wellfut Generator Parts - Independent Site
   Professional B2B E-commerce Design
   ============================================ */

:root {
  --primary: #0a3d62;
  --primary-light: #1a5a8a;
  --primary-dark: #062c45;
  --accent: #f39c12;
  --accent-dark: #d68910;
  --accent-light: #f8c471;
  --dark: #1a1a2e;
  --gray-900: #2d2d44;
  --gray-700: #4a4a68;
  --gray-500: #7a7a96;
  --gray-300: #c7c7d8;
  --gray-100: #f0f0f8;
  --gray-50: #f8f8fc;
  --white: #ffffff;
  --success: #27ae60;
  --danger: #e74c3c;
  --info: #3498db;
  --radius: 8px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow: 0 2px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.15);
  --transition: all 0.3s ease;
  --header-h: 80px;
  --font: 'Inter', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--gray-900); background: var(--gray-50); line-height: 1.6; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; border: none; }
input, select, textarea { font-family: inherit; }

/* ===== Top Bar ===== */
.topbar { background: var(--dark); color: var(--gray-300); font-size: 13px; padding: 6px 0; }
.topbar-inner { max-width: 1280px; margin: 0 auto; padding: 0 20px; display: flex; justify-content: space-between; align-items: center; }
.topbar a { color: var(--gray-300); transition: var(--transition); }
.topbar a:hover { color: var(--accent); }
.topbar-left { display: flex; gap: 20px; align-items: center; }
.topbar-left span { display: flex; align-items: center; gap: 5px; }
.topbar-right { display: flex; gap: 16px; align-items: center; }
.topbar-right .sep { color: var(--gray-500); }

/* ===== Header ===== */
.header { background: var(--white); box-shadow: var(--shadow-sm); position: sticky; top: 0; z-index: 100; height: var(--header-h); display: flex; align-items: center; }
.header-inner { max-width: 1280px; margin: 0 auto; padding: 0 20px; width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: flex; align-items: center; cursor: pointer; flex-shrink: 0; }
.logo-img { height: 72px; width: auto; max-width: 340px; object-fit: contain; }
.footer-brand .logo-img { filter: brightness(0) invert(1); height: 64px; }
.logo-icon { width: 44px; height: 44px; background: linear-gradient(135deg, var(--primary), var(--primary-light)); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--white); font-size: 22px; }
.logo-text { font-size: 22px; font-weight: 800; color: var(--primary); letter-spacing: -0.5px; }
.logo-text span { color: var(--accent); }
.logo-sub { font-size: 10px; color: var(--gray-500); letter-spacing: 1.5px; text-transform: uppercase; }

/* Nav */
.nav { display: flex; gap: 4px; flex: 1; justify-content: center; }
.nav-item { padding: 8px 16px; font-size: 14px; font-weight: 600; color: var(--gray-700); border-radius: var(--radius); transition: var(--transition); cursor: pointer; position: relative; }
.nav-item:hover, .nav-item.active { color: var(--primary); background: var(--gray-100); }

/* Search */
.search-box { position: relative; width: 280px; }
.search-box input { width: 100%; padding: 9px 40px 9px 16px; border: 1.5px solid var(--gray-300); border-radius: 24px; font-size: 13px; outline: none; transition: var(--transition); }
.search-box input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(10,61,98,0.1); }
.search-box .search-btn { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: var(--primary); color: white; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; }

/* Cart & Actions */
.header-actions { display: flex; align-items: center; gap: 12px; }
.lang-select { height: 38px; padding: 0 8px; border: 1.5px solid var(--gray-300); border-radius: var(--radius); font-size: 13px; color: var(--gray-700); background: white; cursor: pointer; outline: none; transition: var(--transition); max-width: 120px; }
.lang-select:hover, .lang-select:focus { border-color: var(--primary); }
.cart-btn { position: relative; width: 42px; height: 42px; border-radius: 50%; background: var(--gray-100); display: flex; align-items: center; justify-content: center; color: var(--primary); font-size: 18px; transition: var(--transition); }
.cart-btn:hover { background: var(--primary); color: white; }
.cart-badge { position: absolute; top: -2px; right: -2px; background: var(--accent); color: white; font-size: 11px; font-weight: 700; min-width: 18px; height: 18px; border-radius: 9px; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
.mobile-menu-btn { display: none; font-size: 22px; color: var(--primary); background: none; }

/* ===== Main Container ===== */
.main { max-width: 1280px; margin: 0 auto; padding: 24px 20px; min-height: 60vh; }

/* ===== Hero Section ===== */
.hero { background: linear-gradient(135deg, var(--primary-dark), var(--primary), var(--primary-light)); color: white; border-radius: var(--radius-lg); overflow: hidden; position: relative; margin-bottom: 32px; }
.hero::before { content: ''; position: absolute; top: 0; right: 0; width: 50%; height: 100%; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 400'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%23f39c12' stop-opacity='0.15'/%3E%3Cstop offset='1' stop-color='%23f39c12' stop-opacity='0'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M0 0h600v400H0z' fill='url(%23g)'/%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.06' stroke-width='1'%3E%3Ccircle cx='450' cy='200' r='150'/%3E%3Ccircle cx='450' cy='200' r='100'/%3E%3Ccircle cx='450' cy='200' r='50'/%3E%3C/g%3E%3C/svg%3E") center/cover no-repeat; }
.hero-content { padding: 48px 40px; max-width: 600px; position: relative; z-index: 1; }
.hero-tag { display: inline-flex; align-items: center; gap: 6px; background: rgba(243,156,18,0.2); border: 1px solid rgba(243,156,18,0.4); color: var(--accent-light); padding: 6px 14px; border-radius: 20px; font-size: 13px; font-weight: 600; margin-bottom: 16px; }
.hero h1 { font-size: 38px; font-weight: 800; line-height: 1.2; margin-bottom: 12px; }
.hero h1 span { color: var(--accent); }
.hero p { font-size: 16px; color: rgba(255,255,255,0.85); margin-bottom: 24px; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 32px; margin-top: 32px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.15); }
.hero-stat .num { font-size: 28px; font-weight: 800; color: var(--accent); }
.hero-stat .label { font-size: 13px; color: rgba(255,255,255,0.7); }

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; border-radius: var(--radius); font-size: 14px; font-weight: 700; transition: var(--transition); text-align: center; }
.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-outline { background: transparent; color: white; border: 1.5px solid rgba(255,255,255,0.4); }
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: white; }
.btn-dark { background: var(--primary); color: white; }
.btn-dark:hover { background: var(--primary-light); }

/* ===== Section Title ===== */
.section { margin-bottom: 48px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 24px; }
.section-head h2 { font-size: 26px; font-weight: 800; color: var(--dark); }
.section-head .sub { font-size: 14px; color: var(--gray-500); margin-top: 4px; }
.section-head .link { font-size: 14px; color: var(--primary); font-weight: 600; display: flex; align-items: center; gap: 4px; }
.section-head .link:hover { color: var(--accent); }

/* ===== Categories Grid ===== */
.cat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.cat-card { background: white; border-radius: var(--radius-lg); padding: 24px 16px; text-align: center; cursor: pointer; transition: var(--transition); border: 1.5px solid transparent; box-shadow: var(--shadow-sm); }
.cat-card:hover { border-color: var(--primary); transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.cat-card .icon { width: 56px; height: 56px; margin: 0 auto 12px; background: linear-gradient(135deg, var(--gray-100), var(--gray-50)); border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 24px; color: var(--primary); transition: var(--transition); }
.cat-card:hover .icon { background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: white; }
.cat-card h3 { font-size: 14px; font-weight: 700; color: var(--dark); margin-bottom: 4px; }
.cat-card p { font-size: 12px; color: var(--gray-500); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cat-card .count { display: inline-block; margin-top: 8px; font-size: 11px; color: var(--accent); font-weight: 700; background: rgba(243,156,18,0.1); padding: 2px 8px; border-radius: 10px; }

/* ===== Product Grid ===== */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.product-card { background: white; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: var(--transition); cursor: pointer; position: relative; display: flex; flex-direction: column; }
.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.product-img { width: 100%; aspect-ratio: 1; background: var(--gray-100); position: relative; overflow: hidden; }
.product-img svg { width: 100%; height: 100%; }
.product-badges { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; z-index: 1; }
.badge { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 4px; color: white; }
.badge-hot { background: var(--danger); }
.badge-featured { background: var(--accent); }
.product-actions { position: absolute; top: 10px; right: 10px; opacity: 0; transition: var(--transition); }
.product-card:hover .product-actions { opacity: 1; }
.product-actions button { width: 34px; height: 34px; border-radius: 50%; background: white; display: flex; align-items: center; justify-content: center; font-size: 14px; color: var(--gray-700); box-shadow: var(--shadow); margin-bottom: 6px; transition: var(--transition); }
.product-actions button:hover { background: var(--primary); color: white; }
.product-info { padding: 14px; flex: 1; display: flex; flex-direction: column; }
.product-brand { font-size: 11px; color: var(--gray-500); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; }
.product-name { font-size: 14px; font-weight: 600; color: var(--dark); line-height: 1.4; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; flex: 1; }
.product-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: auto; }
.product-price { font-size: 18px; font-weight: 800; color: var(--primary); }
.product-price small { font-size: 12px; font-weight: 500; color: var(--gray-500); }
.product-moq { font-size: 11px; color: var(--gray-500); }

/* ===== Page Layout (Products) ===== */
.page-layout { display: grid; grid-template-columns: 240px 1fr; gap: 24px; }
.sidebar { background: white; border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow-sm); height: fit-content; position: sticky; top: calc(var(--header-h) + 24px); }
.sidebar h3 { font-size: 15px; font-weight: 700; color: var(--dark); margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid var(--gray-100); }
.filter-group { margin-bottom: 20px; }
.filter-item { display: flex; align-items: center; gap: 8px; padding: 6px 0; cursor: pointer; transition: var(--transition); }
.filter-item:hover { color: var(--primary); }
.filter-item.active { color: var(--primary); font-weight: 700; }
.filter-item .count { margin-left: auto; font-size: 12px; color: var(--gray-500); background: var(--gray-100); padding: 1px 8px; border-radius: 10px; }

.products-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; padding: 12px 16px; background: white; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.products-toolbar .count { font-size: 14px; color: var(--gray-700); }
.products-toolbar .count b { color: var(--primary); }
.sort-select { padding: 6px 12px; border: 1.5px solid var(--gray-300); border-radius: var(--radius); font-size: 13px; outline: none; }

/* ===== Product Detail ===== */
.detail-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.detail-gallery { background: white; border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow-sm); }
.detail-main-img { width: 100%; aspect-ratio: 1; background: var(--gray-100); border-radius: var(--radius); margin-bottom: 12px; }
.detail-main-img svg { width: 100%; height: 100%; }
.detail-thumbs { display: flex; gap: 8px; }
.detail-thumb { width: 72px; height: 72px; border-radius: var(--radius); background: var(--gray-100); border: 2px solid transparent; cursor: pointer; overflow: hidden; }
.detail-thumb.active { border-color: var(--primary); }
.detail-thumb svg { width: 100%; height: 100%; }

.detail-info h1 { font-size: 24px; font-weight: 800; color: var(--dark); margin-bottom: 8px; }
.detail-brand { font-size: 14px; color: var(--gray-500); margin-bottom: 16px; }
.detail-brand span { color: var(--accent); font-weight: 700; }
.detail-price-box { background: var(--gray-50); border-radius: var(--radius); padding: 16px; margin-bottom: 20px; display: flex; justify-content: space-between; align-items: center; }
.detail-price { font-size: 32px; font-weight: 800; color: var(--primary); }
.detail-price small { font-size: 14px; color: var(--gray-500); font-weight: 500; }
.detail-moq { text-align: right; }
.detail-moq .label { font-size: 12px; color: var(--gray-500); }
.detail-moq .val { font-size: 16px; font-weight: 700; color: var(--dark); }

.qty-row { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.qty-label { font-size: 14px; font-weight: 600; color: var(--gray-700); }
.qty-control { display: flex; align-items: center; border: 1.5px solid var(--gray-300); border-radius: var(--radius); overflow: hidden; }
.qty-control button { width: 36px; height: 38px; background: var(--gray-100); color: var(--gray-700); font-size: 16px; display: flex; align-items: center; justify-content: center; }
.qty-control button:hover { background: var(--primary); color: white; }
.qty-control input { width: 60px; height: 38px; text-align: center; border: none; outline: none; font-size: 15px; font-weight: 600; }

.detail-actions { display: flex; gap: 12px; margin-bottom: 24px; }
.detail-actions .btn { flex: 1; justify-content: center; padding: 14px; }
.btn-inquiry { background: var(--success); color: white; }
.btn-inquiry:hover { background: #229954; }

.detail-features { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
.feature-item { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--gray-700); }
.feature-item i { color: var(--success); }

/* Spec table */
.spec-table { background: white; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); margin-top: 24px; }
.spec-table h2 { padding: 16px 20px; font-size: 18px; font-weight: 700; background: var(--gray-50); border-bottom: 2px solid var(--gray-100); }
.spec-table table { width: 100%; border-collapse: collapse; }
.spec-table th, .spec-table td { padding: 12px 20px; text-align: left; font-size: 14px; border-bottom: 1px solid var(--gray-100); }
.spec-table th { width: 30%; color: var(--gray-500); font-weight: 600; background: var(--gray-50); }
.spec-table td { color: var(--dark); font-weight: 500; }

/* ===== Cart ===== */
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 24px; }
.cart-items { background: white; border-radius: var(--radius-lg); padding: 8px 0; box-shadow: var(--shadow-sm); }
.cart-row { display: flex; align-items: center; gap: 16px; padding: 16px 24px; border-bottom: 1px solid var(--gray-100); }
.cart-row:last-child { border-bottom: none; }
.cart-row-img { width: 80px; height: 80px; background: var(--gray-100); border-radius: var(--radius); flex-shrink: 0; overflow: hidden; }
.cart-row-img svg { width: 100%; height: 100%; }
.cart-row-info { flex: 1; }
.cart-row-info h4 { font-size: 14px; font-weight: 600; color: var(--dark); margin-bottom: 4px; }
.cart-row-info .brand { font-size: 12px; color: var(--gray-500); }
.cart-row-price { font-size: 16px; font-weight: 700; color: var(--primary); min-width: 80px; text-align: right; }
.cart-row-remove { color: var(--danger); font-size: 18px; padding: 4px; background: none; }
.cart-row-remove:hover { opacity: 0.7; }

.cart-summary { background: white; border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-sm); height: fit-content; position: sticky; top: calc(var(--header-h) + 24px); }
.cart-summary h3 { font-size: 18px; font-weight: 700; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 2px solid var(--gray-100); }
.summary-row { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: 14px; color: var(--gray-700); }
.summary-row.total { font-size: 20px; font-weight: 800; color: var(--dark); padding-top: 12px; border-top: 2px solid var(--gray-100); margin-top: 12px; margin-bottom: 20px; }
.summary-row.total .price { color: var(--primary); }

.empty-state { text-align: center; padding: 60px 20px; color: var(--gray-500); }
.empty-state i { font-size: 60px; margin-bottom: 16px; color: var(--gray-300); }
.empty-state h3 { font-size: 20px; font-weight: 700; color: var(--gray-700); margin-bottom: 8px; }

/* ===== Checkout ===== */
.checkout-layout { display: grid; grid-template-columns: 1fr 380px; gap: 24px; }
.checkout-section { background: white; border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-sm); margin-bottom: 20px; }
.checkout-section h3 { font-size: 18px; font-weight: 700; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.checkout-section h3 .step-num { width: 28px; height: 28px; background: var(--primary); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--gray-700); margin-bottom: 6px; }
.form-group label .req { color: var(--danger); }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 10px 14px; border: 1.5px solid var(--gray-300); border-radius: var(--radius); font-size: 14px; outline: none; transition: var(--transition); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(10,61,98,0.08); }

.payment-methods { display: grid; gap: 12px; }
.payment-option { display: flex; align-items: center; gap: 12px; padding: 14px; border: 2px solid var(--gray-300); border-radius: var(--radius); cursor: pointer; transition: var(--transition); }
.payment-option:hover, .payment-option.active { border-color: var(--primary); background: var(--gray-50); }
.payment-option input { width: 18px; height: 18px; accent-color: var(--primary); }
.payment-option .pay-icon { width: 40px; height: 40px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.payment-option .pay-info h4 { font-size: 14px; font-weight: 700; color: var(--dark); }
.payment-option .pay-info p { font-size: 12px; color: var(--gray-500); }

/* ===== About ===== */
.about-hero { background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: white; border-radius: var(--radius-lg); padding: 48px; margin-bottom: 32px; text-align: center; }
.about-hero h1 { font-size: 36px; font-weight: 800; margin-bottom: 12px; }
.about-hero p { font-size: 16px; color: rgba(255,255,255,0.85); max-width: 700px; margin: 0 auto; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-bottom: 40px; }
.about-text h2 { font-size: 22px; font-weight: 700; color: var(--dark); margin-bottom: 12px; }
.about-text p { font-size: 15px; color: var(--gray-700); margin-bottom: 12px; line-height: 1.8; }
.about-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 40px; }
.about-stat { background: white; border-radius: var(--radius-lg); padding: 24px; text-align: center; box-shadow: var(--shadow-sm); }
.about-stat .num { font-size: 36px; font-weight: 800; color: var(--accent); }
.about-stat .label { font-size: 13px; color: var(--gray-500); margin-top: 4px; }
.cert-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cert-card { background: white; border-radius: var(--radius-lg); padding: 30px 20px; text-align: center; box-shadow: var(--shadow-sm); }
.cert-card .cert-icon { width: 60px; height: 60px; margin: 0 auto 12px; background: var(--gray-100); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 28px; color: var(--primary); }
.cert-card h4 { font-size: 15px; font-weight: 700; color: var(--dark); }
/* 案例卡片 */
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.case-card { background: white; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.case-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.case-img { height: 200px; background-size: cover; background-position: center; background-color: var(--gray-100); }
.case-img-empty { display: flex; align-items: center; justify-content: center; color: var(--gray-300); font-size: 40px; }
.case-body { padding: 18px 20px 20px; }
.case-tag { display: inline-block; font-size: 11px; font-weight: 700; color: var(--primary); background: rgba(10,61,98,.08); border-radius: 20px; padding: 3px 10px; margin-bottom: 8px; }
.case-body h4 { font-size: 15px; font-weight: 700; color: var(--dark); margin-bottom: 6px; }
.case-body p { font-size: 13px; color: var(--gray-500); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.case-loading, .case-empty { grid-column: 1 / -1; text-align: center; color: var(--gray-500); padding: 30px 0; }

/* ===== Contact ===== */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.contact-info { background: white; border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-sm); }
.contact-item { display: flex; gap: 14px; margin-bottom: 20px; }
.contact-item .icon { width: 44px; height: 44px; background: var(--gray-100); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 18px; color: var(--primary); flex-shrink: 0; }
.contact-item .label { font-size: 12px; color: var(--gray-500); margin-bottom: 2px; }
.contact-item .val { font-size: 15px; font-weight: 600; color: var(--dark); }
.contact-social { display: flex; gap: 12px; margin-top: 24px; padding-top: 24px; border-top: 2px solid var(--gray-100); }
.social-btn { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 22px; color: white; transition: var(--transition); }
.social-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.social-wa { background: #25D366; }
.social-wechat { background: #07C160; }
.social-email { background: var(--primary); }
.social-skype { background: #00AFF0; }

/* ===== Footer ===== */
.footer { background: var(--dark); color: var(--gray-300); padding: 48px 0 20px; margin-top: 60px; }
.footer-inner { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
.footer-brand .logo-text { color: white; }
.footer-brand p { font-size: 13px; color: var(--gray-500); margin-top: 12px; line-height: 1.6; }
.social-links { display: flex; gap: 12px; margin-top: 16px; }
.social-links a { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; color: var(--gray-300); font-size: 15px; transition: var(--transition); }
.social-links a:hover { background: var(--accent); color: white; transform: translateY(-2px); }
.footer-col h4 { font-size: 14px; font-weight: 700; color: white; margin-bottom: 14px; }
.footer-col a { display: block; font-size: 13px; color: var(--gray-500); padding: 4px 0; transition: var(--transition); }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { padding-top: 20px; border-top: 1px solid var(--gray-900); display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--gray-500); }

/* ===== Floating Contact ===== */
.float-contact { position: fixed; right: 20px; bottom: 20px; z-index: 90; display: flex; flex-direction: column; gap: 10px; }
.float-btn { width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 24px; color: white; box-shadow: var(--shadow-lg); transition: var(--transition); position: relative; cursor: pointer; }
.float-btn:hover { transform: scale(1.1); }
.float-wa { background: #25D366; }
.float-wa:hover #whatsappQR { display: block; }
#whatsappQR { right: 72px; bottom: -40px; }
.float-wechat { background: #07C160; }
.float-top { background: var(--gray-700); }
.float-btn .tooltip { position: absolute; right: 66px; top: 50%; transform: translateY(-50%); background: var(--dark); color: white; padding: 6px 12px; border-radius: 6px; font-size: 12px; white-space: nowrap; opacity: 0; pointer-events: none; transition: var(--transition); }
.float-btn:hover .tooltip { opacity: 1; right: 70px; }
.float-btn .pulse { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,0.4); } 70% { box-shadow: 0 0 0 16px rgba(37,211,102,0); } 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); } }

/* QR Code Popup */
.qr-popup { position: absolute; right: 66px; bottom: 0; background: white; border-radius: var(--radius-lg); padding: 16px; box-shadow: var(--shadow-lg); display: none; width: 240px; text-align: center; }
.qr-popup.show { display: block; }
.qr-popup img { width: 100%; height: auto; margin: 0 auto 8px; border-radius: var(--radius); display: block; }
.qr-popup p { font-size: 12px; color: var(--gray-700); font-weight: 600; }

/* ===== Toast ===== */
.toast { position: fixed; top: 90px; right: 20px; background: var(--dark); color: white; padding: 14px 20px; border-radius: var(--radius); box-shadow: var(--shadow-lg); z-index: 200; display: flex; align-items: center; gap: 10px; font-size: 14px; transform: translateX(400px); transition: transform 0.3s ease; }
.toast.show { transform: translateX(0); }
.toast.success { background: var(--success); }
.toast i { font-size: 18px; }

/* ===== Breadcrumb ===== */
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--gray-500); margin-bottom: 20px; }
.breadcrumb a { color: var(--gray-500); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { color: var(--gray-300); }
.breadcrumb .current { color: var(--dark); font-weight: 600; }

/* ===== 变体选择 / 零件号 / 库存（partsofgenerator 风格） ===== */
.product-sku-count {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; color: #1a5a8a; background: #eef4fa;
  border-radius: 4px; padding: 2px 6px; margin: 4px 0 2px;
  width: fit-content; font-weight: 600;
}
.product-sku-count i { font-size: 10px; }
.price-inquiry { color: #e67e22; font-weight: 700; font-size: 15px; }

.detail-meta {
  display: flex; flex-wrap: wrap; gap: 16px;
  font-size: 13px; color: #4a4a68; margin: 10px 0 4px;
}
.detail-meta b { color: var(--dark); }
.detail-meta i { color: #1a5a8a; margin-right: 4px; }

.variant-box {
  border: 1px solid #e0e6f0; border-radius: 12px;
  padding: 16px; margin-bottom: 20px; background: #fafbfd;
}
.variant-title {
  font-size: 14px; font-weight: 700; color: var(--dark);
  margin-bottom: 12px;
}
.variant-title i { color: #1a5a8a; margin-right: 6px; }
.variant-row { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.variant-row label {
  width: 130px; font-size: 13px; font-weight: 600; color: #4a4a68;
  text-transform: capitalize; flex-shrink: 0;
}
.variant-select {
  flex: 1; padding: 9px 12px; border: 1px solid #d0d8e4; border-radius: 8px;
  font-size: 14px; background: white; color: var(--dark); outline: none;
  cursor: pointer;
}
.variant-select:focus { border-color: #1a5a8a; box-shadow: 0 0 0 3px rgba(26,90,138,0.1); }
.variant-sku { font-size: 12px; color: #1a5a8a; margin-top: 6px; font-weight: 600; }

.detail-stock { margin-top: 6px; font-size: 13px; }
.stock-badge {
  display: inline-flex; align-items: center; gap: 5px;
  border-radius: 6px; padding: 3px 10px; font-size: 12px; font-weight: 700;
}
.stock-badge.in { background: #e8f8f0; color: #1e8e5a; }
.stock-badge.out { background: #fdecea; color: #c0392b; }

.cart-variant {
  font-size: 12px; color: #1a5a8a; background: #eef4fa;
  border-radius: 4px; padding: 2px 8px; margin-top: 4px;
  display: inline-block;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .nav { display: none; }
  .search-box { width: 200px; }
}
@media (max-width: 768px) {
  .topbar-left .topbar-text { display: none; }
  .header-inner { gap: 12px; }
  .search-box { display: none; }
  .mobile-menu-btn { display: block; }
  .hero h1 { font-size: 28px; }
  .hero-content { padding: 32px 24px; }
  .hero-stats { gap: 20px; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .page-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .detail-layout { grid-template-columns: 1fr; }
  .cart-layout { grid-template-columns: 1fr; }
  .checkout-layout { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: repeat(2, 1fr); }
  .cert-grid { grid-template-columns: repeat(2, 1fr); }
  .case-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .cat-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 22px; }
  .hero p { font-size: 14px; }
  .hero-stats { flex-wrap: wrap; gap: 16px; }
  .about-stats { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
