/* ===========================
   Guangwei Optics - Styles v2
   Professional Factory Style
   =========================== */

*{margin:0;padding:0;box-sizing:border-box}
:root{
  --bg-white:#FFFFFF;
  --bg-light:#F8F9FA;
  --text-dark:#1A1A1A;
  --text-gray:#6B7280;
  --accent:#C9A84C;
  --border:#E5E7EB;
  --p:#1A1A1A;
  --a:#C9A84C;
  --bg:#F8F9FA;
  --w:#FFFFFF;
  --t:#1A1A1A;
  --tl:#6B7280;
  --e:#E5E7EB;
  --shadow:0 3px 10px rgba(0,0,0,.06);
  --shadow-lg:0 12px 40px rgba(0,0,0,.08)
}
body{font-family:system-ui,-apple-system,sans-serif;color:var(--t);line-height:1.6;background:var(--bg)}
.cn{max-width:1200px;margin:0 auto;padding:0 20px}
a{text-decoration:none;color:inherit}

/* ---- Header ---- */
header{background:var(--w);box-shadow:0 1px 0 var(--border);position:sticky;top:0;z-index:100}
.hi{display:flex;justify-content:space-between;align-items:center;padding:16px 0;flex-wrap:wrap;gap:10px}
.logo{font-size:18px;font-weight:800;color:var(--p)}
.logo span{color:var(--a)}
.logo-img{height:36px;vertical-align:middle;margin-right:6px}
.hr{display:flex;align-items:center;gap:16px;flex-wrap:wrap}
nav{display:flex;gap:24px;flex-wrap:wrap}
nav a{font-weight:500;font-size:14px;color:var(--t);padding:4px 0;position:relative}
nav a:hover,nav a.active{color:var(--a)}
nav a.active::after{content:'';position:absolute;bottom:-2px;left:0;width:100%;height:2px;background:var(--a)}
.nc{background:var(--a);color:var(--w)!important;padding:8px 16px;border-radius:6px;font-weight:600;font-size:13px}
.ls{background:#fff;border:1px solid var(--border);padding:6px 10px;border-radius:6px;font-size:13px;cursor:pointer}
.mobile-menu{display:none;background:none;border:none;font-size:24px;cursor:pointer;padding:4px}
@media(max-width:768px){
  .mobile-menu{display:block}
  nav{display:none;width:100%;flex-direction:column;gap:4px}
  nav.open{display:flex}
  .hr{width:100%}
  .hi{flex-direction:column;align-items:flex-start}
}

/* ---- Hero ---- */
.hero{
  background:linear-gradient(135deg,#1A1A1A 0%,#374151 100%);
  color:#fff;padding:100px 20px;text-align:center;
}
.hero-inner{max-width:900px;margin:0 auto}
.hero h1{font-size:clamp(28px,5vw,52px);font-weight:800;margin-bottom:16px;letter-spacing:-0.5px;line-height:1.15}
.hero h1 .gold{color:var(--a)}
.hero p{font-size:17px;max-width:640px;margin:0 auto 32px;color:#9CA3AF;line-height:1.7}
.hero-ctas{display:flex;justify-content:center;gap:12px;flex-wrap:wrap;margin-bottom:40px}
.btn{padding:14px 32px;border-radius:6px;text-decoration:none;font-weight:600;font-size:14px;display:inline-block;cursor:pointer;border:none;transition:all .2s}
.btn-primary{background:var(--a);color:var(--w)}
.btn-primary:hover{background:#b8963f;transform:translateY(-1px);box-shadow:0 4px 16px rgba(201,168,76,.3)}
.btn-outline{background:transparent;color:var(--w)!important;border:2px solid rgba(255,255,255,.35)}
.btn-outline:hover{border-color:#fff;background:rgba(255,255,255,.05)}
.hero-badges{display:flex;justify-content:center;gap:32px;flex-wrap:wrap}
.hero-badges span{font-size:13px;color:#9CA3AF;letter-spacing:0.3px}

/* ---- Stats ---- */
.stats{padding:64px 0;background:var(--w)}
.sg{grid-template-columns:repeat(4,1fr);display:grid;gap:0;text-align:center;max-width:1000px;margin:0 auto}
.stat-item{padding:24px 20px;border-right:1px solid var(--border)}
.stat-item:last-child{border-right:none}
.sn{font-size:52px;font-weight:800;color:var(--text-dark);line-height:1}
.sl{font-size:13px;color:var(--text-gray);margin-top:6px}

/* ---- Section base ---- */
section{padding:80px 0}
.section-title{text-align:center;font-size:32px;font-weight:800;color:var(--text-dark);margin-bottom:12px}
.section-sub{text-align:center;color:var(--text-gray);margin-bottom:48px;font-size:14px}
.section-light{background:var(--bg-light)}
.section-white{background:var(--w)}

/* ---- Products grid ---- */
.pg{grid-template-columns:repeat(3,1fr);display:grid;gap:24px}
.pc{background:var(--w);border:1px solid var(--border);border-radius:12px;overflow:hidden;transition:all .3s ease}
.pc:hover{transform:translateY(-4px);border-color:var(--a);box-shadow:var(--shadow-lg)}
.pi{height:220px;overflow:hidden;cursor:pointer}
.pi img{width:100%;height:100%;object-fit:cover;transition:transform .3s}
.pc:hover .pi img{transform:scale(1.04)}
.pinfo{padding:20px}
.pn{font-size:17px;font-weight:700;color:var(--text-dark);margin-bottom:8px}
.pd{font-size:13px;color:var(--text-gray);margin-bottom:12px;line-height:1.5}
.ptg{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:16px}
.pt{background:var(--bg-light);padding:4px 12px;border-radius:20px;font-size:12px;color:var(--text-gray)}
.pmore{text-align:center;margin-top:40px}

/* ---- Features grid (Why Us) ---- */
.fg{grid-template-columns:repeat(3,1fr);display:grid;gap:32px;max-width:1000px;margin:0 auto}
.f{display:flex;gap:16px;padding:0}
.fi{width:48px;height:48px;background:linear-gradient(135deg,var(--a),#D4AF37);border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:20px;flex-shrink:0}
.f h3{font-size:17px;font-weight:700;margin-bottom:8px;color:var(--text-dark)}
.f p{color:var(--text-gray);font-size:13px;line-height:1.6}

/* ---- Process steps ---- */
.ps{grid-template-columns:repeat(5,1fr);display:grid;gap:16px;margin-top:40px}
.step{text-align:center;position:relative}
.step::after{content:'→';position:absolute;right:-18px;top:14px;font-size:18px;color:var(--a);font-weight:700}
.step:last-child::after{display:none}
.snum{width:44px;height:44px;background:var(--a);color:var(--w);border-radius:50%;display:flex;align-items:center;justify-content:center;font-weight:800;font-size:15px;margin:0 auto 12px}
.step h4{font-size:13px;font-weight:700;color:var(--text-dark);margin-bottom:4px}
.step p{font-size:12px;color:var(--text-gray);line-height:1.5}

/* ---- Certifications ---- */
.certs{background:var(--bg-light);padding:48px 0}
.certs-list{max-width:800px;margin:0 auto;display:flex;justify-content:center;gap:56px;flex-wrap:wrap}
.cert-item{text-align:center}
.cert-icon{font-size:36px;font-weight:800;color:var(--a);letter-spacing:-1px}
.cert-name{font-size:13px;font-weight:600;color:var(--text-gray);margin-top:8px}

/* ---- CTA Banner ---- */
.cta-banner{
  background:linear-gradient(135deg,#1A1A1A 0%,#374151 100%);
  text-align:center;color:#fff;padding:80px 20px
}
.cta-banner h2{font-size:32px;font-weight:800;margin-bottom:12px}
.cta-banner p{font-size:15px;margin-bottom:28px;opacity:.8}

/* ---- Contact section ---- */
.cg{grid-template-columns:1fr 1fr;display:grid;gap:48px}
.ci h2{font-size:22px;font-weight:800;color:var(--text-dark);margin-bottom:12px}
.ci > p{color:var(--text-gray);margin-bottom:24px;font-size:14px;line-height:1.7}
.citem{display:flex;align-items:center;gap:12px;margin-bottom:16px;font-size:14px}
.cicon{width:36px;height:36px;background:var(--a);border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:14px;color:var(--w);flex-shrink:0}
.cform{background:var(--w);padding:28px;border-radius:12px;border:1px solid var(--border);box-shadow:var(--shadow)}
.fgg{margin-bottom:14px}
.fgg label{display:block;font-weight:600;margin-bottom:6px;font-size:13px;color:var(--text-dark)}
.fgg input,.fgg textarea,.fgg select{width:100%;padding:11px 14px;border:1px solid var(--border);border-radius:6px;font-size:14px;font-family:inherit;transition:border-color .2s}
.fgg input:focus,.fgg textarea:focus,.fgg select:focus{outline:none;border-color:var(--a)}
.fgg textarea{resize:vertical;min-height:100px}
.fr{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.fs{background:var(--a);color:var(--w);padding:14px 24px;border:none;border-radius:6px;font-weight:700;font-size:14px;cursor:pointer;width:100%;transition:background .2s}
.fs:hover{background:#b8963f}
#formSuccess{display:none;margin-bottom:14px;text-align:center;padding:14px;border-radius:8px;background:#f0fff4;border:1px solid #c6f6d5}
.wa-btn{display:inline-flex;align-items:center;gap:8px;background:#25D366;color:#fff;padding:12px 18px;border-radius:6px;font-size:14px;font-weight:600;text-decoration:none;transition:background .2s}
.wa-btn:hover{background:#1da851}

/* ---- Footer ---- */
footer{background:var(--p);color:#9CA3AF;padding:40px 0;font-size:13px}
.fi2{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:16px}
.fl{display:flex;gap:24px}
.fl a{color:#9CA3AF;transition:color .2s}
.fl a:hover{color:#fff}

/* ---- Lightbox ---- */
.lb{display:none;position:fixed;z-index:9999;left:0;top:0;width:100%;height:100%;background:rgba(0,0,0,.92);align-items:center;justify-content:center}
.lb.ac{display:flex}
.lb img{max-width:88%;max-height:78vh;border-radius:10px}
.lbc{position:absolute;top:16px;right:20px;font-size:28px;color:#fff;cursor:pointer;background:rgba(255,255,255,.1);width:44px;height:44px;border-radius:50%;display:flex;align-items:center;justify-content:center}
.lbi{position:absolute;bottom:20px;left:50%;transform:translateX(-50%);background:rgba(255,255,255,.97);padding:16px 32px;border-radius:10px;text-align:center;max-width:480px}
.lbi h3{margin-bottom:6px;color:var(--text-dark);font-size:17px}
.lbi p{color:#555;margin:0;font-size:13px}

/* ---- Page Header ---- */
.page-header{
  background:linear-gradient(135deg,#1A1A1A 0%,#374151 100%);
  color:#fff;padding:60px 20px;text-align:center
}
.page-header h1{font-size:clamp(24px,4vw,38px);font-weight:800;margin-bottom:8px}
.page-header p{font-size:14px;opacity:.75;max-width:560px;margin:0 auto}
.breadcrumb{font-size:12px;opacity:.6;margin-bottom:12px}

/* ---- Factory/About ---- */
.factory-grid{display:grid;grid-template-columns:1fr 1fr;gap:48px;align-items:center}
.factory-img{border-radius:12px;overflow:hidden;box-shadow:var(--shadow-lg)}
.factory-img img{width:100%;height:400px;object-fit:cover;display:block}
.cert-grid{grid-template-columns:repeat(4,1fr);display:grid;gap:16px;text-align:center}
.cert-card{background:var(--w);padding:20px;border-radius:10px;border:1px solid var(--border);text-align:center}
.cert-icon{font-size:32px;margin-bottom:10px}
.cert-card h4{font-size:13px;font-weight:700;color:var(--text-dark)}
.cert-card p{font-size:11px;color:var(--text-gray);margin-top:4px}
.team-grid{grid-template-columns:repeat(3,1fr);display:grid;gap:20px}
.team-card{background:var(--w);border-radius:12px;overflow:hidden;text-align:center;border:1px solid var(--border)}
.team-card img{width:100%;height:200px;object-fit:cover}
.team-info{padding:16px}
.team-info h4{font-size:14px;font-weight:700;color:var(--text-dark)}
.team-info p{font-size:12px;color:var(--text-gray)}

/* ---- Product Detail ---- */
.product-detail{display:grid;grid-template-columns:1fr 1fr;gap:48px;align-items:start}
.product-gallery img{width:100%;border-radius:10px;margin-bottom:10px;cursor:pointer}
.product-thumb{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.product-thumb img{width:100%;height:90px;object-fit:cover;border-radius:6px;cursor:pointer;opacity:.65;transition:opacity .2s}
.product-thumb img:hover,.product-thumb img.active{opacity:1}
.product-info h2{font-size:24px;font-weight:800;color:var(--text-dark);margin-bottom:12px}
.product-tags{display:flex;gap:8px;margin-bottom:20px}
.product-tags span{background:var(--bg-light);padding:5px 12px;border-radius:20px;font-size:12px;color:var(--text-gray)}
.product-desc{color:var(--text-gray);font-size:14px;line-height:1.7;margin-bottom:24px}
.product-specs{background:var(--bg-light);padding:20px;border-radius:10px;margin-bottom:24px}
.product-specs h4{font-size:14px;font-weight:700;color:var(--text-dark);margin-bottom:12px}
.spec-row{display:flex;justify-content:space-between;padding:8px 0;border-bottom:1px solid var(--border);font-size:13px}
.spec-row:last-child{border:none}
.spec-label{color:var(--text-gray)}
.spec-value{font-weight:600;color:var(--text-dark)}

/* ---- Process Detail ---- */
.process-step{display:grid;grid-template-columns:64px 1fr;gap:24px;margin-bottom:36px;align-items:start}
.process-num{width:64px;height:64px;background:var(--a);color:var(--w);border-radius:50%;display:flex;align-items:center;justify-content:center;font-weight:900;font-size:22px;flex-shrink:0}
.process-content h3{font-size:17px;font-weight:700;color:var(--text-dark);margin-bottom:10px}
.process-content p{color:var(--text-gray);font-size:14px;line-height:1.7}
.process-timeline{max-width:720px;margin:0 auto}
.process-cta{text-align:center;margin-top:48px}

/* ---- Responsive ---- */
@media(max-width:900px){
  .pg,.fg,.cg,.factory-grid,.product-detail{grid-template-columns:1fr}
  .sg{grid-template-columns:repeat(2,1fr)}
  .stat-item{border-right:none;border-bottom:1px solid var(--border)}
  .ps{grid-template-columns:repeat(3,1fr)}
  .step::after{display:none}
  .cert-grid{grid-template-columns:repeat(2,1fr)}
  .team-grid{grid-template-columns:1fr}
}
@media(max-width:600px){
  .sg,.ps{grid-template-columns:1fr}
  .fr{grid-template-columns:1fr}
  .fi2{flex-direction:column;text-align:center}
  .certs-list{gap:32px}
  .hero-badges{gap:16px}
}
