/*
Theme Name: Xinfeng Masterbatch
Theme URI: https://xinfeng-masterbatch.com
Template: hello-elementor
Author: Hebei Xinfeng Plastic Co., Ltd.
Description: 河北欣丰塑料官网主题 — 上传激活后自动创建所有页面，支持Elementor可视化编辑
Version: 2.0.0
Text Domain: xinfeng
*/

:root {
  --xf-bg:     #040a1a;
  --xf-bg2:    #071020;
  --xf-bg3:    #0a1628;
  --xf-bg4:    #0d1f3c;
  --xf-border: #1a3355;
  --xf-text:   #cfe0ec;
  --xf-text2:  #aac4d8;
  --xf-text3:  #7a9ab8;
  --xf-brand:  #00b4d8;
  --xf-green:  #25D366;
  --xf-white:  #ffffff;
}
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{font-family:'Inter','Segoe UI',Arial,sans-serif;background:var(--xf-bg);color:var(--xf-text);line-height:1.7;-webkit-font-smoothing:antialiased}
a{color:var(--xf-brand);text-decoration:none;transition:.2s}
a:hover{color:#48cae4}
img{max-width:100%;height:auto;display:block}
.elementor-page{background:var(--xf-bg)!important}

/* ── Header ── */
.xf-hdr{position:sticky;top:0;z-index:9999;background:rgba(4,10,26,.97);border-bottom:1px solid var(--xf-border);backdrop-filter:blur(10px)}
.xf-hdr-inner{max-width:1200px;margin:0 auto;padding:0 32px;height:64px;display:flex;align-items:center;justify-content:space-between}
.xf-logo{text-decoration:none}
.xf-logo-cn{font-size:18px;font-weight:700;color:#fff;line-height:1.2}
.xf-logo-en{font-size:9px;color:var(--xf-text3);letter-spacing:1.5px;text-transform:uppercase}
.xf-nav{display:flex;align-items:center;gap:2px;list-style:none}
.xf-nav a{color:var(--xf-text2);font-size:13.5px;font-weight:500;padding:8px 13px;border-radius:4px;transition:.2s}
.xf-nav a:hover,.xf-nav .current-menu-item a{color:#fff;background:rgba(0,180,216,.08)}
.xf-nav .current-menu-item a{color:var(--xf-brand)}
.xf-nav-cta a{border:1.5px solid var(--xf-brand)!important;color:var(--xf-brand)!important;padding:7px 18px!important;border-radius:5px!important;font-weight:600!important}
.xf-nav-cta a:hover{background:var(--xf-brand)!important;color:var(--xf-bg)!important}
.xf-hamburger{display:none;background:none;border:none;color:var(--xf-text2);cursor:pointer;padding:6px}

/* ── Hero ── */
.xf-hero{position:relative;min-height:88vh;background:linear-gradient(135deg,#040a1a,#071828 60%,#0a1f3a);display:flex;align-items:center;overflow:hidden}
.xf-hero-bg{position:absolute;inset:0;background-size:cover;background-position:center;opacity:.2}
.xf-hero-inner{position:relative;z-index:1;max-width:800px;margin:0 auto;padding:80px 32px 60px;text-align:center}
.xf-eyebrow{font-size:11px;font-weight:700;letter-spacing:3px;text-transform:uppercase;color:var(--xf-brand);background:rgba(0,180,216,.1);border:1px solid rgba(0,180,216,.3);display:inline-block;padding:6px 16px;border-radius:20px;margin-bottom:24px}
.xf-hero h1{font-size:clamp(36px,6vw,68px);font-weight:800;color:#fff;line-height:1.1;margin-bottom:16px}
.xf-hero h1 span{color:var(--xf-brand)}
.xf-hero-sub{font-size:16px;color:var(--xf-text2);line-height:1.7;margin-bottom:8px}
.xf-hero-sub2{font-size:13px;color:var(--xf-text3);margin-bottom:36px}
.xf-btns{display:flex;gap:14px;justify-content:center;flex-wrap:wrap}
.xf-btn{display:inline-flex;align-items:center;gap:7px;padding:13px 28px;border-radius:6px;font-size:14px;font-weight:600;transition:.2s;text-decoration:none}
.xf-btn-p{background:var(--xf-brand);color:var(--xf-bg)!important}
.xf-btn-p:hover{background:#48cae4;transform:translateY(-1px)}
.xf-btn-o{background:transparent;color:#fff!important;border:1.5px solid rgba(255,255,255,.35)}
.xf-btn-o:hover{border-color:#fff;transform:translateY(-1px)}

/* ── Stats ── */
.xf-stats{background:var(--xf-bg2);border-top:1px solid var(--xf-border);border-bottom:1px solid var(--xf-border);padding:40px 32px}
.xf-stats-grid{max-width:1100px;margin:0 auto;display:grid;grid-template-columns:repeat(4,1fr)}
.xf-stat{text-align:center;padding:16px 24px;border-right:1px solid var(--xf-border)}
.xf-stat:last-child{border-right:none}
.xf-stat-n{font-size:48px;font-weight:800;color:var(--xf-brand);line-height:1}
.xf-stat-en{font-size:11px;color:var(--xf-text3);text-transform:uppercase;letter-spacing:1px;margin-top:6px}
.xf-stat-cn{font-size:13px;color:var(--xf-text2);margin-top:2px}

/* ── Section base ── */
.xf-sec{padding:88px 32px}
.xf-sec-dark{background:var(--xf-bg)}
.xf-sec-darker{background:var(--xf-bg2);border-top:1px solid var(--xf-border);border-bottom:1px solid var(--xf-border)}
.xf-sec-hd{text-align:center;margin-bottom:56px}
.xf-sec-label{font-size:10px;font-weight:700;letter-spacing:2px;text-transform:uppercase;color:var(--xf-brand);display:block;margin-bottom:10px}
.xf-sec-title{font-size:clamp(26px,3.5vw,38px);font-weight:700;color:#fff;line-height:1.2;margin-bottom:10px}
.xf-sec-title span{color:var(--xf-brand)}
.xf-sec-sub{font-size:14px;color:var(--xf-text3)}

/* ── Product cards ── */
.xf-prods{max-width:1160px;margin:0 auto;display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.xf-pcard{background:var(--xf-bg3);border:1px solid var(--xf-border);border-radius:14px;padding:32px 28px;transition:.25s;display:flex;flex-direction:column}
.xf-pcard:hover{border-color:var(--xf-brand);transform:translateY(-4px);box-shadow:0 12px 40px rgba(0,180,216,.15)}
.xf-pcard-icon{width:50px;height:50px;border-radius:10px;background:rgba(0,180,216,.12);display:flex;align-items:center;justify-content:center;margin-bottom:20px}
.xf-pcard-icon svg{width:24px;height:24px;stroke:var(--xf-brand);fill:none;stroke-width:2}
.xf-pcard-num{font-size:10px;font-weight:700;letter-spacing:1px;color:var(--xf-brand);margin-bottom:6px}
.xf-pcard-title{font-size:20px;font-weight:700;color:#fff;margin-bottom:4px}
.xf-pcard-en{font-size:12px;color:var(--xf-brand);margin-bottom:14px}
.xf-pcard-desc{font-size:13px;color:var(--xf-text2);line-height:1.7;margin-bottom:20px;flex:1}
.xf-tags{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:22px}
.xf-tag{background:var(--xf-bg2);border:1px solid var(--xf-border);color:var(--xf-text3);font-size:11px;padding:3px 8px;border-radius:4px}
.xf-pcard-link{font-size:13px;font-weight:600;color:var(--xf-brand)}

/* ── About ── */
.xf-about{max-width:1160px;margin:0 auto;display:grid;grid-template-columns:1fr 1fr;gap:64px;align-items:center}
.xf-about-img{border-radius:14px;overflow:hidden;border:1px solid var(--xf-border);aspect-ratio:4/3;background:var(--xf-bg3)}
.xf-about-img img{width:100%;height:100%;object-fit:cover}
.xf-about-img-ph{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%;gap:12px;color:var(--xf-border)}
.xf-about-label{font-size:11px;font-weight:700;letter-spacing:2px;text-transform:uppercase;color:var(--xf-brand);margin-bottom:10px}
.xf-about-title{font-size:clamp(24px,3vw,34px);font-weight:700;color:#fff;line-height:1.25;margin-bottom:18px}
.xf-about-title span{color:var(--xf-brand)}
.xf-about-p{font-size:14px;color:var(--xf-text2);line-height:1.85;margin-bottom:14px}
.xf-checks{list-style:none;margin:20px 0 28px}
.xf-checks li{display:flex;align-items:center;gap:10px;font-size:14px;color:var(--xf-text2);padding:7px 0;border-bottom:1px solid var(--xf-border)}
.xf-checks li:last-child{border:none}
.xf-checks li::before{content:'✓';color:var(--xf-brand);font-weight:700;flex-shrink:0}

/* ── Certs ── */
.xf-certs{max-width:1160px;margin:0 auto;display:grid;grid-template-columns:repeat(4,1fr);gap:20px}
.xf-cert{background:var(--xf-bg3);border:1px solid var(--xf-border);border-radius:12px;padding:24px 18px;text-align:center;transition:.2s}
.xf-cert:hover{border-color:var(--xf-brand);transform:translateY(-2px)}
.xf-cert-icon{width:60px;height:60px;border-radius:50%;margin:0 auto 14px;background:rgba(0,180,216,.1);display:flex;align-items:center;justify-content:center}
.xf-cert-icon svg{width:28px;height:28px;stroke:var(--xf-brand);fill:none;stroke-width:1.8}
.xf-cert img{width:100%;border-radius:8px;margin-bottom:10px}
.xf-cert-title{font-size:14px;font-weight:700;color:#fff;margin-bottom:6px}
.xf-cert-sub{font-size:11px;color:var(--xf-text3);line-height:1.5}

/* ── Exhibition ── */
.xf-exh-grid{max-width:1160px;margin:0 auto;display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.xf-exh-item{border-radius:10px;overflow:hidden;border:1px solid var(--xf-border);aspect-ratio:4/3;background:var(--xf-bg3);position:relative;transition:.2s}
.xf-exh-item:hover{border-color:var(--xf-brand);transform:scale(1.02)}
.xf-exh-item img{width:100%;height:100%;object-fit:cover}
.xf-exh-ph{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%;gap:8px;color:var(--xf-border)}
.xf-exh-ph p{font-size:11px;text-align:center;line-height:1.5}

/* ── WA strip ── */
.xf-wa-strip{background:linear-gradient(90deg,#071020,#0a1f3a);border-top:1px solid var(--xf-border);border-bottom:1px solid var(--xf-border);padding:48px 32px;text-align:center}
.xf-wa-strip h3{font-size:24px;font-weight:700;color:#fff;margin-bottom:8px}
.xf-wa-strip p{font-size:14px;color:var(--xf-text3);margin-bottom:24px}
.xf-btn-wa{display:inline-flex;align-items:center;gap:10px;background:var(--xf-green);color:#fff!important;font-size:14px;font-weight:700;padding:13px 28px;border-radius:7px;transition:.2s;text-decoration:none}
.xf-btn-wa:hover{background:#1ebe57;transform:translateY(-1px)}
.xf-btn-wa svg{width:18px;height:18px;fill:#fff;flex-shrink:0}

/* ── Footer ── */
.xf-footer{background:var(--xf-bg2);border-top:1px solid var(--xf-border);padding:52px 32px 24px}
.xf-footer-grid{max-width:1160px;margin:0 auto;display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:48px;margin-bottom:40px}
.xf-footer-col h4{font-size:10px;font-weight:700;letter-spacing:1.5px;text-transform:uppercase;color:var(--xf-brand);margin-bottom:16px}
.xf-footer-col ul{list-style:none}
.xf-footer-col ul li{margin-bottom:9px}
.xf-footer-col ul li a{font-size:13px;color:var(--xf-text3)}
.xf-footer-col ul li a:hover{color:#fff}
.xf-footer-btm{max-width:1160px;margin:0 auto;border-top:1px solid var(--xf-border);padding-top:20px;display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px}
.xf-footer-btm p{font-size:12px;color:var(--xf-text3)}

/* ── FAB ── */
.xf-fab{position:fixed;bottom:28px;right:28px;z-index:9990;width:56px;height:56px;background:var(--xf-green);border-radius:50%;display:flex;align-items:center;justify-content:center;box-shadow:0 4px 20px rgba(37,211,102,.4);transition:.2s;text-decoration:none}
.xf-fab:hover{transform:scale(1.08);box-shadow:0 6px 28px rgba(37,211,102,.6)}
.xf-fab svg{width:28px;height:28px;fill:#fff}

/* ── Blog ── */
.xf-blog-hero{background:linear-gradient(135deg,var(--xf-bg),var(--xf-bg2));border-bottom:1px solid var(--xf-border);padding:72px 32px 52px;text-align:center}
.xf-blog-hero h1{font-size:clamp(28px,4vw,44px);font-weight:700;color:#fff;margin-bottom:10px}
.xf-blog-con{max-width:860px;margin:0 auto;padding:52px 24px 80px}
.xf-post-card{border:1px solid var(--xf-border);border-radius:12px;padding:28px 32px;margin-bottom:20px;background:var(--xf-bg4);transition:.2s}
.xf-post-card:hover{border-color:var(--xf-brand);transform:translateY(-2px)}
.xf-post-meta{display:flex;align-items:center;gap:12px;margin-bottom:10px;flex-wrap:wrap}
.xf-post-cat{background:rgba(0,180,216,.12);color:var(--xf-brand);font-size:10px;font-weight:700;letter-spacing:.8px;text-transform:uppercase;padding:3px 9px;border-radius:3px}
.xf-post-date{color:var(--xf-text3);font-size:12px}
.xf-post-card h2{font-size:18px;font-weight:700;color:#fff;line-height:1.35;margin-bottom:10px}
.xf-post-card h2 a{color:inherit}
.xf-post-card h2 a:hover{color:var(--xf-brand)}
.xf-post-exc{color:var(--xf-text2);font-size:13px;line-height:1.7;margin-bottom:14px}
.xf-post-tags{display:flex;flex-wrap:wrap;gap:6px}
.xf-post-tag{background:var(--xf-bg2);border:1px solid var(--xf-border);color:var(--xf-text3);font-size:11px;padding:3px 9px;border-radius:4px}
.xf-single-con{max-width:820px;margin:0 auto;padding:52px 24px 80px}
.xf-single-con h1{font-size:clamp(22px,3vw,32px);font-weight:700;color:#fff;line-height:1.3;margin:14px 0 16px}
.xf-post-body{font-size:15px;color:var(--xf-text);line-height:1.9}
.xf-post-body h2{font-size:20px;font-weight:700;color:#fff;margin:36px 0 12px;padding-bottom:8px;border-bottom:1px solid var(--xf-border)}
.xf-post-body h3{font-size:17px;font-weight:700;color:var(--xf-text2);margin:24px 0 8px}
.xf-post-body p{margin-bottom:16px}
.xf-post-body ul,.xf-post-body ol{margin:0 0 16px 22px}
.xf-post-body li{margin-bottom:6px}
.xf-post-body strong{color:#fff}
.xf-post-body a{color:var(--xf-brand)}
.xf-post-body table{width:100%;border-collapse:collapse;margin:20px 0;font-size:13px}
.xf-post-body th{background:var(--xf-bg2);color:var(--xf-brand);padding:10px 12px;border:1px solid var(--xf-border);text-align:left;font-size:11px;text-transform:uppercase;letter-spacing:.5px}
.xf-post-body td{padding:9px 12px;border:1px solid var(--xf-border);color:var(--xf-text2)}
.xf-post-body tr:nth-child(even) td{background:var(--xf-bg2)}

/* ── Responsive ── */
@media(max-width:1024px){.xf-footer-grid{grid-template-columns:1fr 1fr}.xf-about{grid-template-columns:1fr;gap:36px}.xf-certs{grid-template-columns:repeat(2,1fr)}.xf-exh-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:768px){.xf-hdr-inner{padding:0 18px;height:56px}.xf-nav{display:none;position:absolute;top:56px;left:0;right:0;background:rgba(4,10,26,.98);border-bottom:1px solid var(--xf-border);flex-direction:column;gap:0;padding:8px 0}.xf-nav.open{display:flex}.xf-nav a{padding:13px 20px;border-radius:0}.xf-hamburger{display:block}.xf-stats-grid{grid-template-columns:repeat(2,1fr)}.xf-stat{border-right:none;border-bottom:1px solid var(--xf-border)}.xf-prods{grid-template-columns:1fr}.xf-certs{grid-template-columns:1fr 1fr}.xf-exh-grid{grid-template-columns:1fr}.xf-footer-grid{grid-template-columns:1fr;gap:28px}.xf-footer-btm{flex-direction:column;text-align:center}.xf-sec{padding:56px 18px}.xf-fab{bottom:18px;right:18px;width:50px;height:50px}}
