/* Xiafu Industrial B2B Theme - Main Styles (Static Preview) */
:root {
  --xf-primary: #1a3a5c;
  --xf-accent: #d4a017;
  --xf-bg: #ffffff;
  --xf-surface: #f5f7fa;
  --xf-text: #1b1f24;
  --xf-muted: #636c76;
  --xf-border: #e0e5ec;
  --xf-success: #52c41a;
  --xf-danger: #ff4d4f;
  --xf-radius: 8px;
  --xf-whatsapp: #25d366;
  --xf-font: -apple-system, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', 'Noto Sans CJK SC', sans-serif;
  --xf-container: 1280px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--xf-font); color: var(--xf-text); background: var(--xf-bg); line-height: 1.6; }
a { color: var(--xf-primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--xf-accent); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

.xf-container { max-width: var(--xf-container); margin: 0 auto; padding: 0 20px; }

/* Buttons */
.xf-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 24px; border-radius: var(--xf-radius); font-size: 15px; font-weight: 600; cursor: pointer; border: 2px solid transparent; transition: all .2s; text-decoration: none; }
.xf-btn-primary { background: var(--xf-primary); color: #fff; border-color: var(--xf-primary); }
.xf-btn-primary:hover { background: #122a44; border-color: #122a44; color: #fff; transform: translateY(-1px); }
.xf-btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.xf-btn-outline:hover { background: rgba(255,255,255,.15); color: #fff; }
.xf-btn-whatsapp { background: var(--xf-whatsapp); color: #fff; border-color: var(--xf-whatsapp); }
.xf-btn-whatsapp:hover { background: #1da851; color: #fff; }
.xf-btn-lg { padding: 14px 32px; font-size: 16px; }
.xf-btn-block { width: 100%; }

/* Header */
.xf-header { position: sticky; top: 0; z-index: 1000; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.xf-header-top { background: var(--xf-primary); color: #c8d4e4; font-size: 13px; padding: 6px 0; }
.xf-header-top-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.xf-header-contact { display: flex; gap: 20px; }
.xf-header-contact span { display: flex; align-items: center; gap: 4px; }
.xf-header-tools { display: flex; gap: 12px; align-items: center; }
.xf-lang-switcher { display: flex; gap: 4px; flex-wrap: wrap; }
.xf-lang-switcher a { display: flex; align-items: center; gap: 3px; color: #c8d4e4; padding: 2px 6px; border-radius: 4px; font-size: 12px; }
.xf-lang-switcher a.active { background: rgba(255,255,255,.2); color: #fff; }
.xf-lang-switcher a:hover { color: #fff; background: rgba(255,255,255,.1); }

.xf-header-main { padding: 12px 0; }
.xf-header-main-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.xf-logo a { display: flex; align-items: center; text-decoration: none; }
.xf-logo-text { font-size: 26px; font-weight: 800; color: var(--xf-primary); letter-spacing: 2px; }
.xf-logo-sub { font-size: 11px; color: var(--xf-muted); }
.xf-logo-img { height: 56px; width: auto; max-width: 200px; object-fit: contain; border-radius: 4px; display: block; }

.xf-nav { flex: 1; }
.xf-menu { list-style: none; display: flex; justify-content: center; gap: 24px; }
.xf-menu > li { position: relative; }
.xf-menu > li > a { color: var(--xf-text); font-weight: 600; font-size: 15px; padding: 8px 0; position: relative; display: inline-block; }
.xf-menu > li > a:hover, .xf-menu > li > a.active { color: var(--xf-primary); }
.xf-menu > li > a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: var(--xf-accent); transition: width .2s; }
.xf-menu > li > a:hover::after, .xf-menu > li > a.active::after { width: 100%; }
.xf-menu .sub-menu { position: absolute; top: 100%; left: 0; background: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.12); border-radius: var(--xf-radius); padding: 8px 0; min-width: 220px; opacity: 0; visibility: hidden; transition: all .2s; z-index: 100; }
.xf-menu li:hover > .sub-menu { opacity: 1; visibility: visible; }
.xf-menu .sub-menu a { display: block; padding: 8px 16px; font-size: 14px; color: var(--xf-text); }
.xf-menu .sub-menu a:hover { background: var(--xf-surface); color: var(--xf-primary); }

.xf-header-action { display: flex; gap: 12px; }
.xf-mobile-toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 4px; padding: 8px; }
.xf-mobile-toggle span { width: 24px; height: 2px; background: var(--xf-primary); }

/* Hero */
.xf-hero { position: relative; height: 560px; display: flex; align-items: center; justify-content: center; text-align: center; background-size: cover; background-position: center; color: #fff; overflow: hidden; }
.xf-hero::before { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); opacity: .5; }
.xf-hero-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(26,58,92,.9), rgba(26,58,92,.65)); }
.xf-hero-content { position: relative; z-index: 1; max-width: 800px; padding: 0 20px; }
.xf-hero-title { font-size: 40px; font-weight: 800; line-height: 1.2; margin-bottom: 16px; text-shadow: 0 2px 20px rgba(0,0,0,.2); }
.xf-hero-sub { font-size: 18px; margin-bottom: 28px; opacity: .9; }
.xf-hero-actions { display: flex; gap: 16px; justify-content: center; margin-bottom: 24px; }
.xf-hero-badges { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.xf-badge { display: inline-block; padding: 6px 14px; border: 1px solid rgba(255,255,255,.3); border-radius: 20px; font-size: 13px; backdrop-filter: blur(10px); background: rgba(255,255,255,.08); }

/* Sections */
.xf-section { padding: 60px 0; }
.xf-section-title { text-align: center; font-size: 32px; font-weight: 700; margin-bottom: 12px; color: var(--xf-primary); }
.xf-section-desc { text-align: center; color: var(--xf-muted); margin-bottom: 32px; font-size: 16px; max-width: 600px; margin-left: auto; margin-right: auto; }

/* Page Header */
.xf-page-header { background: var(--xf-primary); color: #fff; padding: 50px 0; text-align: center; position: relative; overflow: hidden; }
.xf-page-header::before { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); }
.xf-page-header h1 { font-size: 32px; margin-bottom: 8px; position: relative; z-index: 1; }
.xf-page-header p { opacity: .9; position: relative; z-index: 1; }

/* Product Grid */
.xf-product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; }
.xf-product-grid .product { background: #fff; border: 1px solid var(--xf-border); border-radius: var(--xf-radius); overflow: hidden; transition: all .25s; }
.xf-product-grid .product:hover { box-shadow: 0 12px 32px rgba(0,0,0,.12); transform: translateY(-4px); }
.xf-product-img { height: 200px; background: linear-gradient(135deg, #e8edf3, #d0d9e3); display: flex; align-items: center; justify-content: center; font-size: 48px; position: relative; overflow: hidden; border-radius: var(--xf-radius); }
.xf-product-img img { width: 100%; height: 100%; object-fit: cover; position: absolute; top: 0; left: 0; z-index: 2; }
.xf-product-img::before { content: ''; position: absolute; width: 60%; height: 30%; border-radius: 50%; background: rgba(26,58,92,.1); bottom: 20%; z-index: 1; }
.xf-pi-1::after { content: '🚚'; position: relative; z-index: 1; }
.xf-pi-2::after { content: '🚐'; position: relative; z-index: 1; }
.xf-pi-3::after { content: '☀️🚚'; position: relative; z-index: 1; font-size: 36px; }
.xf-pi-4::after { content: '⛽🚚'; position: relative; z-index: 1; font-size: 36px; }
.xf-product-grid .product h3 { padding: 14px 16px 6px; font-size: 14px; font-weight: 600; line-height: 1.4; min-height: 52px; color: var(--xf-text); }
.xf-product-grid .product .price { padding: 0 16px 12px; color: var(--xf-primary); font-weight: 700; font-size: 16px; }

/* Category Grid */
.xf-cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.xf-cat-card { position: relative; border-radius: var(--xf-radius); overflow: hidden; aspect-ratio: 4/3; display: block; transition: transform .25s; }
.xf-cat-card:hover { transform: translateY(-4px); }
.xf-cat-img { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 56px; }
.xf-cat-img-1 { background: linear-gradient(135deg, #1a3a5c, #2c5282); }
.xf-cat-img-1::after { content: '🚚'; }
.xf-cat-img-2 { background: linear-gradient(135deg, #2c5282, #3182ce); }
.xf-cat-img-2::after { content: '🚐'; }
.xf-cat-img-3 { background: linear-gradient(135deg, #744210, #975a16); }
.xf-cat-img-3::after { content: '⛽'; }
.xf-cat-img-4 { background: linear-gradient(135deg, #276749, #38a169); }
.xf-cat-img-4::after { content: '🛴'; }
.xf-cat-img-5 { background: linear-gradient(135deg, #553c9a, #6b46c1); }
.xf-cat-img-5::after { content: '⛳'; }
.xf-cat-img-6 { background: linear-gradient(135deg, #7c2d12, #c05621); }
.xf-cat-img-6::after { content: '🔧'; }
.xf-cat-name { position: absolute; bottom: 0; left: 0; right: 0; padding: 20px 16px 14px; background: linear-gradient(transparent, rgba(0,0,0,.8)); color: #fff; font-weight: 600; font-size: 15px; }

/* SEO buying guide */
.xf-seo-guide { background: #f8fafc; }
.xf-seo-guide-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.xf-seo-guide-card { display: flex; flex-direction: column; padding: 24px; background: #fff; border: 1px solid var(--xf-border); border-radius: var(--xf-radius); box-shadow: 0 6px 20px rgba(15, 35, 55, .04); }
.xf-seo-guide-card h3 { margin-bottom: 10px; font-size: 18px; line-height: 1.4; }
.xf-seo-guide-card h3 a { color: var(--xf-primary); }
.xf-seo-guide-card p { flex: 1; color: var(--xf-muted); font-size: 14px; line-height: 1.75; margin-bottom: 18px; }
.xf-seo-guide-link { color: var(--xf-primary); font-size: 14px; font-weight: 700; }
.xf-seo-faq { max-width: 900px; margin: 48px auto 0; }
.xf-seo-faq > h3 { text-align: center; margin-bottom: 18px; color: var(--xf-primary); font-size: 22px; }
.xf-seo-intro { max-width: 900px; margin: 18px auto 24px; padding: 18px 20px; background: #f4f7fb; border: 1px solid var(--xf-border); border-radius: var(--xf-radius); color: var(--xf-text); font-size: 15px; line-height: 1.75; }
.xf-seo-intro-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; margin-bottom: 0 !important; }
.xf-seo-intro-links a { color: var(--xf-primary); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* Stats */
.xf-stats { display: flex; justify-content: center; gap: 48px; flex-wrap: wrap; margin-bottom: 40px; }
.xf-stat { text-align: center; }
.xf-stat strong { display: block; font-size: 40px; color: var(--xf-primary); font-weight: 800; }
.xf-stat span { color: var(--xf-muted); font-size: 14px; }

/* Process Grid */
.xf-process-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.xf-process-item { padding: 28px; background: var(--xf-surface); border-radius: var(--xf-radius); border-left: 4px solid var(--xf-accent); transition: all .2s; }
.xf-process-item:hover { background: #eef2f7; transform: translateY(-2px); }
.xf-process-item h3 { color: var(--xf-primary); margin-bottom: 8px; font-size: 18px; }

/* Market Coverage */
.xf-market-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 24px; }
.xf-market-tags span { padding: 6px 16px; border: 1px solid var(--xf-border); border-radius: 20px; font-size: 14px; color: var(--xf-muted); background: #fff; }

/* Testimonials */
.xf-testimonial-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.xf-testimonial { padding: 28px; background: var(--xf-surface); border-radius: var(--xf-radius); border-top: 4px solid var(--xf-accent); position: relative; }
.xf-testimonial::before { content: '"'; position: absolute; top: 16px; right: 24px; font-size: 60px; color: var(--xf-accent); opacity: .2; line-height: 1; font-family: Georgia, serif; }
.xf-testimonial p { font-style: italic; margin-bottom: 16px; position: relative; z-index: 1; }
.xf-testimonial strong { color: var(--xf-primary); font-size: 14px; }

/* CTA */
.xf-cta { background: var(--xf-primary); color: #fff; padding: 60px 0; text-align: center; position: relative; overflow: hidden; }
.xf-cta::before { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); }
.xf-cta-inner { position: relative; z-index: 1; }
.xf-cta h2 { font-size: 28px; margin-bottom: 12px; }
.xf-cta p { opacity: .9; margin-bottom: 24px; }

/* Product Center Layout */
.xf-product-center .xf-product-layout { display: grid; grid-template-columns: 260px 1fr; gap: 32px; padding-top: 40px; padding-bottom: 40px; }
.xf-filter-sidebar { position: sticky; top: 100px; align-self: start; }
.xf-filter-group { margin-bottom: 24px; }
.xf-filter-group h4 { font-size: 14px; text-transform: uppercase; color: var(--xf-primary); margin-bottom: 12px; font-weight: 700; padding-bottom: 8px; border-bottom: 2px solid var(--xf-border); }
.xf-filter-item { display: flex; align-items: center; gap: 8px; padding: 6px 0; font-size: 14px; cursor: pointer; }
.xf-filter-item input { cursor: pointer; }
.xf-count { color: var(--xf-muted); font-size: 12px; margin-left: auto; }
.xf-filter-form .xf-btn { margin-top: 8px; }

.xf-category-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.xf-cat-tab { padding: 8px 18px; border: 1px solid var(--xf-border); border-radius: 20px; font-size: 14px; cursor: pointer; background: #fff; }
.xf-cat-tab.active { background: var(--xf-primary); color: #fff; border-color: var(--xf-primary); }

/* Product Detail */
.xf-product-detail { padding: 40px 0; }
.xf-breadcrumb { padding: 12px 0; color: var(--xf-muted); font-size: 14px; }
.xf-breadcrumb a { color: var(--xf-muted); }
.xf-breadcrumb a:hover { color: var(--xf-primary); }
.xf-product-detail .xf-product-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.xf-product-main-img { width: 100%; aspect-ratio: 4/3; background: linear-gradient(135deg, #e8edf3, #d0d9e3); border-radius: var(--xf-radius); display: flex; align-items: center; justify-content: center; font-size: 100px; overflow: hidden; position: relative; }
.xf-product-main-img img { width: 100%; height: 100%; object-fit: cover; position: absolute; top: 0; left: 0; }
.xf-product-thumbs { display: flex; gap: 8px; margin-top: 12px; }
.xf-product-thumb { width: 80px; height: 80px; border: 2px solid var(--xf-border); border-radius: 4px; overflow: hidden; cursor: pointer; background: #f0f0f0; display: flex; align-items: center; justify-content: center; font-size: 28px; }
.xf-product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.xf-product-thumb.active, .xf-product-thumb:hover { border-color: var(--xf-primary); }
.xf-product-title { font-size: 26px; margin-bottom: 12px; color: var(--xf-text); }
.xf-product-tags { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.xf-tag { padding: 4px 12px; border-radius: 4px; font-size: 13px; font-weight: 500; }
.xf-tag-power { background: #e6f7ff; color: #1890ff; }
.xf-tag-usage { background: #f6ffed; color: #52c41a; }
.xf-tag-body { background: #fff7e6; color: #fa8c16; }
.xf-product-price { font-size: 28px; color: var(--xf-primary); font-weight: 700; margin-bottom: 8px; }
.xf-product-moq { color: var(--xf-muted); margin-bottom: 24px; }
.xf-spec-table { width: 100%; border-collapse: collapse; margin-bottom: 20px; }
.xf-spec-table th { text-align: left; padding: 10px 14px; background: var(--xf-surface); width: 40%; border-bottom: 1px solid var(--xf-border); font-weight: 600; color: var(--xf-primary); }
.xf-spec-table td { padding: 10px 14px; border-bottom: 1px solid var(--xf-border); }
.xf-product-cta { display: flex; gap: 12px; margin: 24px 0; flex-wrap: wrap; }
.xf-product-badges { display: flex; gap: 8px; flex-wrap: wrap; }

/* Product Tabs */
.xf-product-tabs { margin-top: 48px; border-top: 1px solid var(--xf-border); padding-top: 0; }
.xf-tab-nav { display: flex; gap: 4px; border-bottom: 2px solid var(--xf-border); margin-bottom: 0; }
.xf-tab-btn { padding: 14px 28px; background: none; border: none; cursor: pointer; font-size: 15px; font-weight: 600; color: var(--xf-muted); border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all .2s; }
.xf-tab-btn:hover { color: var(--xf-primary); }
.xf-tab-btn.active { color: var(--xf-primary); border-bottom-color: var(--xf-accent); }
.xf-tab-content { display: none; padding: 28px 0; }
.xf-tab-content.active { display: block; }

/* Inquiry Form */
.xf-inquiry-section { padding: 40px 0 60px; }
.xf-inquiry-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.xf-inquiry-contact-cards { display: flex; gap: 16px; flex-wrap: wrap; margin: 24px 0; }
.xf-contact-card { padding: 24px; background: var(--xf-surface); border-radius: var(--xf-radius); text-align: center; flex: 1; min-width: 160px; }
.xf-contact-card h3 { color: var(--xf-primary); margin-bottom: 8px; font-size: 16px; }
.xf-inquiry-advantages { margin-top: 32px; background: var(--xf-surface); padding: 24px; border-radius: var(--xf-radius); }
.xf-inquiry-advantages h3 { color: var(--xf-primary); margin-bottom: 12px; }
.xf-inquiry-advantages ul { list-style: none; }
.xf-inquiry-advantages li { padding: 6px 0; padding-left: 28px; position: relative; }
.xf-inquiry-advantages li::before { content: '✓'; position: absolute; left: 0; color: var(--xf-success); font-weight: bold; }

.xf-inquiry-wrap { background: #fff; padding: 32px; border: 1px solid var(--xf-border); border-radius: var(--xf-radius); box-shadow: 0 4px 16px rgba(0,0,0,.06); }
.xf-inquiry-form h3 { font-size: 20px; margin-bottom: 20px; color: var(--xf-primary); }
.xf-form-row { margin-bottom: 14px; }
.xf-form-row label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: var(--xf-text); }
.xf-form-row input, .xf-form-row select, .xf-form-row textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--xf-border); border-radius: 6px; font-size: 15px; font-family: inherit; transition: border-color .2s; }
.xf-form-row input:focus, .xf-form-row select:focus, .xf-form-row textarea:focus { border-color: var(--xf-primary); outline: none; box-shadow: 0 0 0 3px rgba(26,58,92,.1); }
.xf-form-row textarea { resize: vertical; min-height: 100px; }

/* Dealer Page */
.xf-dealer-section { padding: 40px 0 60px; }
.xf-advantage-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 24px; margin: 32px 0; }
.xf-advantage-item { padding: 32px 24px; background: var(--xf-surface); border-radius: var(--xf-radius); text-align: center; border-top: 4px solid var(--xf-accent); transition: all .2s; }
.xf-advantage-item:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.xf-advantage-item h3 { color: var(--xf-primary); margin-bottom: 8px; font-size: 18px; }

/* Process Timeline */
.xf-process-timeline { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; margin: 32px 0; }
.xf-process-step { position: relative; padding: 24px; background: var(--xf-surface); border-radius: var(--xf-radius); border-left: 4px solid var(--xf-accent); }
.xf-step-num { font-size: 32px; font-weight: 800; color: var(--xf-accent); opacity: .5; }
.xf-process-step h3 { color: var(--xf-primary); margin: 8px 0; font-size: 16px; }

/* Certificate Grid */
.xf-cert-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 24px; margin-bottom: 40px; }
.xf-cert-card { text-align: center; padding: 40px 20px; background: var(--xf-surface); border-radius: var(--xf-radius); border: 2px solid transparent; transition: all .2s; }
.xf-cert-card:hover { border-color: var(--xf-accent); }
.xf-cert-badge strong { display: inline-block; font-size: 32px; color: var(--xf-primary); margin-bottom: 12px; }

/* Cases */
.xf-case-filter { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 24px; }
.xf-case-tab { padding: 8px 20px; border: 1px solid var(--xf-border); border-radius: 20px; cursor: pointer; background: #fff; font-size: 14px; }
.xf-case-tab.active { background: var(--xf-primary); color: #fff; border-color: var(--xf-primary); }
.xf-case-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.xf-case-card { background: #fff; border: 1px solid var(--xf-border); border-radius: var(--xf-radius); overflow: hidden; transition: all .2s; }
.xf-case-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.1); transform: translateY(-4px); }
.xf-case-img { height: 200px; background: linear-gradient(135deg, #e8edf3, #d0d9e3); display: flex; align-items: center; justify-content: center; font-size: 48px; }
.xf-case-body { padding: 20px; }
.xf-case-body h3 { color: var(--xf-primary); margin-bottom: 4px; font-size: 16px; }
.xf-case-country { color: var(--xf-muted); font-size: 13px; margin-bottom: 8px; }
.xf-case-qty { color: var(--xf-accent); font-weight: 700; font-size: 14px; margin-bottom: 8px; }

/* About */
.xf-about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin: 32px 0; }
.xf-about-item { padding: 28px; background: var(--xf-surface); border-radius: var(--xf-radius); border-top: 4px solid var(--xf-primary); }
.xf-about-item h3 { color: var(--xf-primary); margin-bottom: 12px; }

.xf-timeline { max-width: 600px; margin: 48px auto; position: relative; }
.xf-timeline h3 { text-align: center; color: var(--xf-primary); margin-bottom: 24px; }
.xf-timeline::before { content: ''; position: absolute; left: 50%; top: 40px; bottom: 0; width: 2px; background: var(--xf-border); transform: translateX(-50%); }
.xf-timeline-item { position: relative; padding: 16px 24px; background: #fff; border: 1px solid var(--xf-border); border-radius: var(--xf-radius); width: 45%; margin-bottom: 24px; }
.xf-timeline-item:nth-child(even) { margin-left: 55%; }
.xf-tl-year { display: inline-block; font-weight: 800; color: var(--xf-accent); margin-bottom: 4px; }

/* Factory */
.xf-factory-gallery { margin: 40px 0; }
.xf-factory-gallery h3 { color: var(--xf-primary); margin-bottom: 20px; text-align: center; }
.xf-gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 22px; }
.xf-gallery-item { aspect-ratio: 4/3; background: linear-gradient(135deg, #e8edf3, #d0d9e3); border-radius: var(--xf-radius); cursor: pointer; transition: transform .2s; display: flex; align-items: center; justify-content: center; font-size: 36px; overflow: hidden; }
.xf-gallery-item img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--xf-radius); }
.xf-gallery-item:hover { transform: scale(1.03); }

.xf-factory-visit { text-align: center; padding: 40px; background: var(--xf-surface); border-radius: var(--xf-radius); margin-top: 40px; }
.xf-factory-visit h3 { color: var(--xf-primary); margin-bottom: 12px; }
.xf-factory-visit p { color: var(--xf-muted); margin-bottom: 20px; }

/* Footer */
.xf-footer { background: #0d1b2a; color: #a0aec0; padding: 60px 0 0; margin-top: 0; }
.xf-footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.xf-footer h4 { color: #fff; margin-bottom: 16px; font-size: 16px; }
.xf-footer a { color: #a0aec0; }
.xf-footer a:hover { color: var(--xf-accent); }
.xf-footer p { margin-bottom: 8px; }
.xf-footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; }
.xf-footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.xf-footer-bottom-inner p { margin: 0; font-size: 13px; }
.xf-wechat-qr { text-align: center; margin-top: 12px; }
.xf-wechat-qr img { margin: 0 auto 8px; border-radius: 8px; }

/* WhatsApp Float */
.xf-whatsapp-float { position: fixed; bottom: 24px; right: 24px; width: 56px; height: 56px; background: var(--xf-whatsapp); border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(0,0,0,.2); z-index: 999; animation: xf-pulse 2s infinite; }
.xf-whatsapp-float:hover { transform: scale(1.1); }
@keyframes xf-pulse { 0%, 100% { box-shadow: 0 4px 12px rgba(0,0,0,.2); } 50% { box-shadow: 0 4px 24px rgba(37,211,102,.5); } }

/* Pagination */
.xf-pagination { text-align: center; margin-top: 32px; }

/* Responsive */
@media (max-width: 1024px) {
  .xf-product-center .xf-product-layout { grid-template-columns: 1fr; }
  .xf-filter-sidebar { position: static; }
  .xf-inquiry-layout { grid-template-columns: 1fr; }
  .xf-product-detail .xf-product-layout { grid-template-columns: 1fr; }
  .xf-footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .xf-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; box-shadow: 0 4px 16px rgba(0,0,0,.1); padding: 16px; }
  .xf-nav.xf-nav-open { display: block; }
  .xf-menu { flex-direction: column; gap: 0; }
  .xf-menu > li { border-bottom: 1px solid var(--xf-border); }
  .xf-menu > li > a { display: block; padding: 12px 0; }
  .xf-menu .sub-menu { position: static; opacity: 1; visibility: visible; box-shadow: none; padding-left: 16px; }
  .xf-mobile-toggle { display: flex; }
  .xf-hero { height: 420px; }
  .xf-hero-title { font-size: 26px; }
  .xf-hero-sub { font-size: 15px; }
  .xf-section { padding: 40px 0; }
  .xf-section-title { font-size: 24px; }
  .xf-header-contact { display: none; }
  .xf-footer-inner { grid-template-columns: 1fr; }
  .xf-product-grid { grid-template-columns: repeat(2, 1fr); }
  .xf-seo-guide-card { padding: 20px; }
  .xf-stats { gap: 24px; }
  .xf-stat strong { font-size: 28px; }
  .xf-timeline::before { left: 20px; }
  .xf-timeline-item, .xf-timeline-item:nth-child(even) { width: calc(100% - 40px); margin-left: 40px; }
  .xf-header-action .xf-btn { padding: 8px 16px; font-size: 14px; }
  .xf-logo-text { font-size: 20px; }
  .xf-logo-img { height: 44px; max-width: 160px; }
}
@media (max-width: 480px) {
  .xf-product-grid { grid-template-columns: 1fr; }
  .xf-hero-actions { flex-direction: column; }
  .xf-product-cta { flex-direction: column; }
  .xf-hero-title { font-size: 22px; }
  .xf-logo-img { height: 36px; max-width: 140px; }
}

/* ------------------------------------------------------------------
   WooCommerce loop compatibility (kept from the WordPress theme CSS).
   WooCommerce renders its own markup inside .xf-product-grid, so these
   rules style the default loop items the same way as the custom cards.
   ------------------------------------------------------------------ */
.custom-logo { height: 48px; width: auto; max-width: 200px; object-fit: contain; border-radius: 4px; }
.xf-inquiry-success { padding: 16px; background: #f6ffed; border: 1px solid #b7eb8f; border-radius: var(--xf-radius); color: var(--xf-success); margin-bottom: 16px; }
.xf-pagination .current { background: var(--xf-primary); color: #fff; border-color: var(--xf-primary); }
.xf-pagination .page-numbers { display: inline-block; padding: 8px 12px; margin: 0 2px; border: 1px solid var(--xf-border); border-radius: 4px; }
.xf-pagination { text-align: center; margin-top: 32px; }
.xf-product-grid .product .button { margin: 0 16px 16px; width: calc(100% - 32px); }
.xf-product-grid .product .price { padding: 0 16px 8px; color: var(--xf-primary); font-weight: 700; }
.xf-product-grid .product .woocommerce-loop-product__title { padding: 12px 16px 4px; font-size: 15px; font-weight: 600; line-height: 1.4; min-height: 48px; }
.xf-product-grid .product { background: #fff; border: 1px solid var(--xf-border); border-radius: var(--xf-radius); overflow: hidden; transition: box-shadow .2s; }
.xf-product-grid .product img { width: 100%; height: 200px; object-fit: cover; }

/* ------------------------------------------------------------------
   Header logo sizing (hard override).
   WooCommerce ships `.woocommerce-page img { height:auto; max-width:100% }`
   (specificity 0,1,1) which outranks `.custom-logo` (0,1,0) and made the
   logo render at its natural size on product / cart / checkout pages,
   breaking the header layout. These rules outrank it everywhere.
   ------------------------------------------------------------------ */
.xf-logo img,
.xf-logo .custom-logo,
.xf-logo .custom-logo-link img,
.xf-logo-img,
img.custom-logo {
  height: 56px !important;
  width: auto !important;
  max-width: 200px !important;
  object-fit: contain;
  display: block;
}

@media (max-width: 768px) {
  .xf-logo img,
  .xf-logo .custom-logo,
  .xf-logo-img,
  img.custom-logo {
    height: 44px !important;
    max-width: 160px !important;
  }
}

@media (max-width: 480px) {
  .xf-logo img,
  .xf-logo .custom-logo,
  .xf-logo-img,
  img.custom-logo {
    height: 36px !important;
    max-width: 140px !important;
  }
}

/* ICP filing number (footer) */
.xf-icp { margin-left: 10px; color: inherit; opacity: .85; text-decoration: none; }
.xf-icp:hover { opacity: 1; text-decoration: underline; }
/* Homepage: process photos + featured product cards (match the static prototype) */
.xf-process-item img { width: 100%; border-radius: 8px; margin-bottom: 12px; aspect-ratio: 4/3; object-fit: cover; display: block; }
.xf-product-grid .product .xf-product-img { height: 200px; overflow: hidden; background: #f5f7fa; }
.xf-product-grid .product .xf-product-img img { width: 100%; height: 200px; object-fit: cover; display: block; }
.xf-product-grid .product h3 { padding: 12px 16px 4px; font-size: 15px; font-weight: 600; line-height: 1.4; min-height: 48px; }
.xf-product-grid .product h3 a { color: var(--xf-text); text-decoration: none; }
.xf-product-grid .product h3 a:hover { color: var(--xf-primary); }
/* Global coverage map (real world map SVG) */
.xf-market-map { max-width: 1000px; margin: 0 auto 24px; }
.xf-market-map img { width: 100%; height: auto; display: block; }
/* Hero brand line (above the main headline) */
.xf-hero-brand { display: block; font-size: 48px; font-weight: 800; color: var(--xf-accent); letter-spacing: 10px; margin-bottom: 14px; text-indent: 10px; line-height: 1.25; }
@media (max-width: 768px) {
  .xf-hero-brand { font-size: 30px; letter-spacing: 6px; margin-bottom: 10px; text-indent: 6px; }
}
@media (max-width: 480px) {
  .xf-hero-brand { font-size: 26px; letter-spacing: 4px; margin-bottom: 8px; text-indent: 4px; }
}
/* Homepage: core advantages (image cards) */
.xf-adv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.xf-adv-card { background: #fff; border: 1px solid var(--xf-border); border-radius: var(--xf-radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.xf-adv-card:hover { box-shadow: 0 10px 28px rgba(0,0,0,.09); transform: translateY(-2px); }
.xf-adv-visual { aspect-ratio: 4 / 3; overflow: hidden; background: #eef3fa; }
.xf-adv-visual img { width: 100%; height: 100%; object-fit: cover; display: block; }
.xf-adv-card h3 { padding: 18px 20px 8px; margin: 0; font-size: 17px; line-height: 1.4; color: var(--xf-primary); }
.xf-adv-card p { padding: 0 20px 22px; margin: 0; font-size: 14px; line-height: 1.75; color: var(--xf-muted); }
@media (max-width: 1024px) { .xf-adv-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
@media (max-width: 640px) { .xf-adv-grid { grid-template-columns: 1fr; } .xf-adv-card h3 { font-size: 16px; } }
/* Product page: model, price CTA, lead time / loading capacity */
.xf-product-model { display: inline-block; margin: -4px 0 10px; padding: 4px 12px; border-radius: 20px; background: #eef3fa; color: var(--xf-primary); font-size: 13px; letter-spacing: .3px; }
.xf-price-cta { display: inline-flex; align-items: center; justify-content: center; margin: 4px 0 10px; }
.xf-product-logistics { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 16px; }
.xf-logistics-item { flex: 1 1 150px; display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; border: 1px solid var(--xf-border); border-radius: var(--xf-radius); background: #f8fafc; }
.xf-logistics-item span { font-size: 12px; color: var(--xf-muted); }
.xf-logistics-item strong { font-size: 15px; color: var(--xf-primary); }
/* Footer social links */
.xf-footer-social { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-left: 10px; }
.xf-social-link { display: inline-block; padding: 2px 10px; border: 1px solid rgba(255,255,255,.35); border-radius: 14px; font-size: 12px; color: inherit; text-decoration: none; }
.xf-social-link:hover { background: rgba(255,255,255,.12); color: #fff; }
/* Shared company profile block (product pages + about page) */
.xf-company-profile { padding: 56px 0; background: #f7f9fc; border-top: 1px solid var(--xf-border); }
.xf-company-subtitle { text-align: center; color: var(--xf-muted); margin: -6px 0 28px; font-size: 15px; }
.xf-company-desc { max-width: 980px; margin: 0 auto 36px; }
.xf-company-desc p { font-size: 15px; line-height: 1.9; color: #33475b; margin: 0 0 16px; }
.xf-company-galleries { display: grid; gap: 28px; }
.xf-company-gallery h3 { font-size: 16px; color: var(--xf-primary); margin: 0 0 12px; padding-left: 12px; border-left: 3px solid var(--xf-primary); }
.xf-company-gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.xf-company-gallery-grid img { width: 100%; height: 190px; object-fit: cover; border-radius: var(--xf-radius); border: 1px solid var(--xf-border); background: #fff; }
.xf-company-faq-title { font-size: 20px; color: var(--xf-primary); margin: 44px 0 18px; text-align: center; }
.xf-company-faq { max-width: 900px; margin: 0 auto; }
.xf-faq-item { background: #fff; border: 1px solid var(--xf-border); border-radius: var(--xf-radius); padding: 14px 18px; margin-bottom: 10px; }
.xf-faq-item summary { cursor: pointer; font-weight: 600; color: #1f2d3d; font-size: 15px; list-style: none; }
.xf-faq-item summary::-webkit-details-marker { display: none; }
.xf-faq-item summary::after { content: "+"; float: right; color: var(--xf-primary); font-weight: 700; }
.xf-faq-item[open] summary::after { content: "–"; }
.xf-faq-item p { margin: 10px 0 0; font-size: 14px; line-height: 1.8; color: var(--xf-muted); }
.xf-price-hidden { display: inline-block; font-size: 15px; color: var(--xf-primary); }
/* Product description images (mirrors the Alibaba detail area) */
.xf-desc-images { margin-top: 18px; }
.xf-desc-images img { width: 100%; height: auto; display: block; margin: 0 auto 10px; border-radius: var(--xf-radius); }
@media (max-width: 1024px) { .xf-company-gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) {
  .xf-company-profile { padding: 36px 0; }
  .xf-company-gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .xf-company-gallery-grid img { height: 130px; }
}
