/* ============================================================
   WUFANG MACHINERY — English Foreign Trade Website
   Design: Premium Industrial B2B — Navy + Gold + Green
   ============================================================ */

/* ========== Reset & Base ========== */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;font-size:16px}
body{
    font-family:"Segoe UI","Helvetica Neue",Arial,"Microsoft YaHei",sans-serif;
    color:#222;line-height:1.75;background:#fff;overflow-x:hidden;
    -webkit-font-smoothing:antialiased
}
a{text-decoration:none;color:inherit}
ul{list-style:none}
img{max-width:100%;height:auto;display:block}
.container{max-width:1280px;margin:0 auto;padding:0 28px}
.section{padding:100px 0}
.section-label{
    display:inline-block;font-size:0.78rem;font-weight:700;letter-spacing:4px;
    text-transform:uppercase;color:#c8963e;margin-bottom:16px
}
.section-title{
    font-family:Georgia,"Times New Roman",serif;
    font-size:2.6rem;font-weight:700;color:#0d2137;line-height:1.25;margin-bottom:18px
}
.section-subtitle{
    font-size:1.1rem;color:#666;max-width:640px;line-height:1.7
}

/* ========== Buttons ========== */
.btn{
    display:inline-block;padding:14px 38px;font-size:0.95rem;font-weight:600;
    letter-spacing:1.5px;text-transform:uppercase;cursor:pointer;
    border:2px solid transparent;transition:all .35s;text-align:center
}
.btn-primary{
    background:#c8963e;color:#fff;border-color:#c8963e
}
.btn-primary:hover{background:#b8872e;border-color:#b8872e;transform:translateY(-2px);box-shadow:0 8px 24px rgba(200,150,62,.35)}
.btn-outline{
    background:transparent;color:#fff;border-color:rgba(255,255,255,.6)
}
.btn-outline:hover{background:#fff;color:#0d2137;border-color:#fff}
.btn-dark{
    background:#0d2137;color:#fff;border-color:#0d2137
}
.btn-dark:hover{background:#152d4a;border-color:#152d4a;transform:translateY(-2px);box-shadow:0 8px 24px rgba(13,33,55,.3)}

/* ========== Top Bar ========== */
.topbar{
    background:#0d2137;color:#a0b4c8;font-size:.82rem;padding:8px 0
}
.topbar .container{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:8px}
.topbar a{color:#c8d6e5;margin-left:18px;transition:color .3s}
.topbar a:hover{color:#c8963e}

/* ========== Header ========== */
.header{
    background:rgba(255,255,255,.97);backdrop-filter:blur(12px);
    box-shadow:0 1px 0 rgba(0,0,0,.06);position:sticky;top:0;z-index:999;
    transition:box-shadow .3s
}
.header.scrolled{box-shadow:0 2px 16px rgba(0,0,0,.1)}
.header .container{display:flex;justify-content:space-between;align-items:center;padding:14px 28px}
.logo{display:flex;align-items:center;gap:12px}
.logo svg{width:44px;height:44px;flex-shrink:0}
.logo-text h1{font-size:1rem;color:#0d2137;font-weight:700;letter-spacing:3px;line-height:1.2}
.logo-text span{font-size:.62rem;color:#999;letter-spacing:4px;text-transform:uppercase}
.nav{display:flex;gap:34px;align-items:center}
.nav a{
    font-size:.88rem;color:#444;font-weight:500;position:relative;
    padding:6px 0;transition:color .3s;letter-spacing:1px;text-transform:uppercase
}
.nav a::after{
    content:'';position:absolute;bottom:0;left:0;width:0;height:2px;
    background:#c8963e;transition:width .35s
}
.nav a:hover,.nav a.active{color:#0d2137}
.nav a:hover::after,.nav a.active::after{width:100%}
.nav .btn{padding:10px 24px;font-size:.8rem;letter-spacing:1px}
.menu-btn{display:none;font-size:1.6rem;cursor:pointer;color:#0d2137;background:none;border:none}

/* ========== Hero ========== */
.hero{
    position:relative;min-height:90vh;
    background:url('../images/hero-banner.jpg') center/cover no-repeat;
    display:flex;align-items:center;justify-content:center;text-align:center;
    padding:120px 20px
}
.hero::before{
    content:'';position:absolute;inset:0;
    background:linear-gradient(170deg,rgba(5,14,28,.92) 0%,rgba(8,20,36,.78) 40%,rgba(5,14,28,.65) 100%);
    z-index:1
}
.hero-content{position:relative;z-index:2;max-width:820px;color:#fff;text-align:center}
.hero-badge{
    display:inline-block;background:rgba(200,150,62,.15);
    border:1px solid rgba(200,150,62,.35);padding:10px 28px;
    font-size:.8rem;margin-bottom:28px;letter-spacing:6px;
    text-transform:uppercase;color:#c8963e
}
.hero-content h2{
    font-family:Georgia,"Times New Roman",serif;
    font-size:3.8rem;font-weight:700;margin-bottom:22px;
    letter-spacing:2px;line-height:1.2;text-shadow:0 4px 30px rgba(0,0,0,.5);
    text-align:center;width:100%;text-wrap:balance
}
.hero-content p{
    font-size:1.2rem;color:rgba(255,255,255,.78);margin-bottom:48px;
    line-height:1.9;max-width:620px;margin-left:auto;margin-right:auto;font-weight:300;
    text-wrap:balance
}
.hero-btns{display:flex;gap:18px;justify-content:center;flex-wrap:wrap}

/* Hero Stats */
.hero-stats{
    position:relative;z-index:3;display:flex;justify-content:center;gap:60px;
    margin-top:-60px;padding:0 28px;flex-wrap:wrap
}
.hero-stat{
    background:#fff;border-radius:8px;padding:32px 44px;text-align:center;
    box-shadow:0 8px 40px rgba(0,0,0,.1);min-width:180px;
    transition:transform .35s
}
.hero-stat:hover{transform:translateY(-6px)}
.hero-stat .stat-num{
    font-family:Georgia,"Times New Roman",serif;
    font-size:2.6rem;font-weight:700;color:#c8963e;line-height:1.1
}
.hero-stat .stat-label{font-size:.82rem;color:#777;margin-top:8px;letter-spacing:1px;text-transform:uppercase}

/* ========== About Section ========== */
.about{background:#fafbfc}
.about-grid{
    display:grid;grid-template-columns:1fr 1fr;gap:70px;align-items:center
}
.about-img{
    border-radius:6px;overflow:hidden;box-shadow:0 12px 48px rgba(0,0,0,.12);
    position:relative
}
.about-img img{width:100%;height:460px;object-fit:cover}
.about-img::after{
    content:'';position:absolute;bottom:-16px;right:-16px;
    width:100%;height:100%;border:3px solid #c8963e;border-radius:6px;z-index:-1
}
.about-text .section-label{color:#1a5c3a}
.about-text .section-title{margin-bottom:24px}
.about-text p{color:#555;margin-bottom:18px;font-size:1.02rem;line-height:1.85}
.about-features{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:28px 0}
.about-feat{
    display:flex;align-items:center;gap:10px;font-size:.92rem;color:#444
}
.about-feat .feat-icon{color:#1a5c3a;font-size:1.2rem;flex-shrink:0}

/* ========== Products Section ========== */
.products{background:#fff}
.products-header{text-align:center;margin-bottom:64px}
.products-grid{
    display:grid;grid-template-columns:repeat(4,1fr);gap:28px
}
.product-card{
    background:#fff;border-radius:8px;overflow:hidden;
    box-shadow:0 2px 16px rgba(0,0,0,.06);
    transition:all .4s;border:1px solid rgba(0,0,0,.06)
}
.product-card:hover{
    transform:translateY(-8px);box-shadow:0 16px 48px rgba(0,0,0,.12)
}
.product-card-img{height:240px;overflow:hidden;position:relative}
.product-card-img img{width:100%;height:100%;object-fit:cover;transition:transform .5s}
.product-card:hover .product-card-img img{transform:scale(1.06)}
.product-card-body{padding:24px 22px 28px}
.product-card-body h4{
    font-family:Georgia,"Times New Roman",serif;
    font-size:1.15rem;color:#0d2137;margin-bottom:10px
}
.product-card-body p{font-size:.88rem;color:#777;line-height:1.6;margin-bottom:18px}
.product-card-body .card-link{
    font-size:.82rem;font-weight:700;color:#c8963e;letter-spacing:1.5px;
    text-transform:uppercase;display:inline-flex;align-items:center;gap:6px;
    transition:gap .3s
}
.product-card-body .card-link:hover{gap:12px}

/* ========== Why Choose Us ========== */
.why-us{background:#0d2137;color:#fff}
.why-us .section-label{color:#c8963e}
.why-us .section-title{color:#fff}
.why-us .section-subtitle{color:rgba(255,255,255,.65)}
.why-us-header{text-align:center;margin-bottom:64px}
.why-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:32px}
.why-card{
    background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08);
    border-radius:8px;padding:38px 28px;text-align:center;
    transition:all .35s
}
.why-card:hover{background:rgba(255,255,255,.08);transform:translateY(-6px)}
.why-icon{
    width:64px;height:64px;margin:0 auto 22px;
    background:rgba(200,150,62,.12);border-radius:50%;
    display:flex;align-items:center;justify-content:center;font-size:1.8rem
}
.why-card h4{
    font-family:Georgia,"Times New Roman",serif;
    font-size:1.15rem;margin-bottom:10px;color:#fff
}
.why-card p{font-size:.9rem;color:rgba(255,255,255,.6);line-height:1.7}

/* ========== Projects Section ========== */
.projects{background:#fafbfc}
.projects-header{text-align:center;margin-bottom:56px}
.projects-grid{
    display:grid;grid-template-columns:repeat(3,1fr);gap:20px
}
.project-card{
    position:relative;border-radius:6px;overflow:hidden;
    aspect-ratio:4/3;cursor:pointer
}
.project-card img{width:100%;height:100%;object-fit:cover;transition:transform .5s}
.project-card:hover img{transform:scale(1.08)}
.project-overlay{
    position:absolute;inset:0;
    background:linear-gradient(to top,rgba(13,33,55,.85) 0%,transparent 60%);
    display:flex;align-items:flex-end;padding:24px;
    opacity:0;transition:opacity .35s
}
.project-card:hover .project-overlay{opacity:1}
.project-overlay span{
    color:#fff;font-size:.95rem;font-weight:600;letter-spacing:1px
}

/* ========== Manufacturing Section ========== */
.manufacturing{background:#fff}
.manufacturing-grid{
    display:grid;grid-template-columns:1fr 1fr;gap:70px;align-items:center
}
.manufacturing-img{border-radius:6px;overflow:hidden;box-shadow:0 8px 32px rgba(0,0,0,.1)}
.manufacturing-img img{width:100%;height:420px;object-fit:cover}
.manufacturing-text .section-label{color:#1a5c3a}
.manufacturing-text ul{margin-top:24px}
.manufacturing-text li{
    padding:12px 0;border-bottom:1px solid #eee;display:flex;align-items:center;gap:12px;
    font-size:.95rem;color:#444
}
.manufacturing-text li::before{
    content:'✓';color:#1a5c3a;font-weight:700;font-size:1.1rem;flex-shrink:0
}

/* ========== CTA Section ========== */
.cta{
    background:linear-gradient(135deg,#0d2137 0%,#152d4a 100%);
    color:#fff;text-align:center;padding:80px 0
}
.cta h2{
    font-family:Georgia,"Times New Roman",serif;
    font-size:2.4rem;margin-bottom:16px
}
.cta p{color:rgba(255,255,255,.7);font-size:1.05rem;margin-bottom:36px;max-width:560px;margin-left:auto;margin-right:auto}
.cta .btn-primary{font-size:1rem;padding:16px 48px}

/* ========== Contact Section ========== */
.contact{background:#fafbfc}
.contact-grid{display:grid;grid-template-columns:1fr 1.2fr;gap:60px}
.contact-info h3{
    font-family:Georgia,"Times New Roman",serif;
    font-size:1.8rem;color:#0d2137;margin-bottom:28px
}
.contact-info-item{
    display:flex;gap:16px;margin-bottom:22px;align-items:flex-start
}
.contact-info-item .ci-icon{
    width:44px;height:44px;background:rgba(200,150,62,.1);
    border-radius:50%;display:flex;align-items:center;justify-content:center;
    font-size:1.1rem;flex-shrink:0;color:#c8963e
}
.contact-info-item strong{display:block;font-size:.9rem;color:#0d2137;margin-bottom:4px}
.contact-info-item span{font-size:.92rem;color:#666}
.contact-qr{text-align:center;margin-top:28px}
.contact-qr img{width:130px;margin:0 auto 10px;border-radius:8px;box-shadow:0 4px 16px rgba(0,0,0,.1)}
.contact-qr span{font-size:.78rem;color:#999}

/* Contact Form */
.contact-form{
    background:#fff;padding:40px;border-radius:8px;
    box-shadow:0 4px 28px rgba(0,0,0,.06)
}
.contact-form h3{
    font-family:Georgia,"Times New Roman",serif;
    font-size:1.5rem;color:#0d2137;margin-bottom:28px
}
.form-row{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-bottom:18px}
.form-group{display:flex;flex-direction:column}
.form-group.full{grid-column:1/-1}
.form-group label{
    font-size:.82rem;font-weight:600;color:#444;margin-bottom:6px;letter-spacing:.5px;
    text-transform:uppercase
}
.form-group input,.form-group select,.form-group textarea{
    padding:12px 16px;border:1px solid #ddd;border-radius:4px;
    font-size:.95rem;font-family:inherit;color:#333;transition:border-color .3s;
    background:#fafbfc
}
.form-group input:focus,.form-group select:focus,.form-group textarea:focus{
    outline:none;border-color:#c8963e;background:#fff
}
.form-group textarea{resize:vertical;min-height:120px}
#formStatus{display:none;padding:14px;border-radius:6px;margin-bottom:18px;font-size:.9rem}

/* ========== Footer ========== */
.footer{
    background:#0a1622;color:#a0b4c8;padding:70px 0 0
}
.footer-grid{display:grid;grid-template-columns:1.5fr 1fr 1fr 1.2fr;gap:44px;padding-bottom:50px}
.footer h4{
    font-family:Georgia,"Times New Roman",serif;
    font-size:1.05rem;color:#fff;margin-bottom:20px;letter-spacing:1px
}
.footer p,.footer li{font-size:.88rem;line-height:2;color:#8899aa}
.footer a{color:#8899aa;transition:color .3s}
.footer a:hover{color:#c8963e}
.footer-links li::before{content:'›';margin-right:8px;color:#c8963e}
.footer-bottom{
    border-top:1px solid rgba(255,255,255,.06);
    padding:22px 0;text-align:center;font-size:.8rem;color:#667788
}

/* ========== Page Header (for product/sub pages) ========== */
.page-header{
    background:linear-gradient(135deg,#0d2137 0%,#152d4a 100%);
    color:#fff;text-align:center;padding:70px 0
}
.page-header h1{
    font-family:Georgia,"Times New Roman",serif;
    font-size:2.4rem;margin-bottom:12px
}
.page-header .breadcrumb{font-size:.85rem;color:rgba(255,255,255,.6)}
.page-header .breadcrumb a{color:rgba(255,255,255,.8);transition:color .3s}
.page-header .breadcrumb a:hover{color:#c8963e}

/* ========== Product Detail Page ========== */
.product-detail{padding:80px 0}
.product-detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:60px;align-items:start}
.product-gallery .main-img{
    border-radius:8px;overflow:hidden;box-shadow:0 8px 32px rgba(0,0,0,.1);margin-bottom:16px
}
.product-gallery .main-img img{width:100%;height:420px;object-fit:cover}
.product-gallery .thumb-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.product-gallery .thumb{
    border-radius:4px;overflow:hidden;cursor:pointer;border:2px solid transparent;
    transition:border-color .3s;aspect-ratio:4/3
}
.product-gallery .thumb:hover,.product-gallery .thumb.active{border-color:#c8963e}
.product-gallery .thumb img{width:100%;height:100%;object-fit:cover}
.product-info h2{
    font-family:Georgia,"Times New Roman",serif;
    font-size:2rem;color:#0d2137;margin-bottom:16px
}
.product-info .prod-desc{color:#666;font-size:1.02rem;line-height:1.8;margin-bottom:28px}
.product-info .specs-table{width:100%;border-collapse:collapse;margin-bottom:28px}
.product-info .specs-table td{
    padding:10px 14px;border-bottom:1px solid #eee;font-size:.9rem
}
.product-info .specs-table td:first-child{font-weight:600;color:#0d2137;width:40%}
.product-features{margin-bottom:28px}
.product-features h4{
    font-family:Georgia,"Times New Roman",serif;
    font-size:1.15rem;color:#0d2137;margin-bottom:14px
}
.product-features li{
    padding:6px 0;font-size:.92rem;color:#555;display:flex;align-items:center;gap:10px
}
.product-features li::before{content:'●';color:#c8963e;font-size:.5rem}

/* Related Products */
.related-products{padding:0 0 80px}
.related-products h3{
    font-family:Georgia,"Times New Roman",serif;
    font-size:1.6rem;color:#0d2137;text-align:center;margin-bottom:40px
}

/* ========== Animations ========== */
.reveal{opacity:0;transform:translateY(30px);transition:opacity .7s,transform .7s}
.reveal.visible{opacity:1;transform:translateY(0)}

/* ========== Mobile ========== */
@media(max-width:1024px){
    .products-grid{grid-template-columns:repeat(2,1fr)}
    .why-grid{grid-template-columns:repeat(2,1fr)}
    .projects-grid{grid-template-columns:repeat(2,1fr)}
    .about-grid,.manufacturing-grid{grid-template-columns:1fr;gap:40px}
    .contact-grid{grid-template-columns:1fr}
    .product-detail-grid{grid-template-columns:1fr}
    .footer-grid{grid-template-columns:repeat(2,1fr)}
    .hero-content h2{font-size:2.8rem}
    .section-title{font-size:2rem}
}
@media(max-width:768px){
    .nav{display:none;position:absolute;top:100%;left:0;right:0;
        background:#fff;flex-direction:column;padding:20px 28px;
        box-shadow:0 8px 24px rgba(0,0,0,.1);gap:0}
    .nav.show{display:flex}
    .nav a{padding:14px 0;border-bottom:1px solid #f0f0f0;font-size:.85rem}
    .nav .btn{margin-top:10px;text-align:center}
    .menu-btn{display:block}
    .hero{min-height:70vh;padding:80px 20px}
    .hero-content h2{font-size:2.2rem}
    .hero-content p{font-size:1rem}
    .hero-stats{gap:16px;margin-top:-40px}
    .hero-stat{padding:20px 24px;min-width:120px}
    .hero-stat .stat-num{font-size:1.8rem}
    .products-grid{grid-template-columns:1fr}
    .why-grid{grid-template-columns:1fr}
    .projects-grid{grid-template-columns:1fr}
    .form-row{grid-template-columns:1fr}
    .footer-grid{grid-template-columns:1fr;gap:32px}
    .section{padding:60px 0}
    .section-title{font-size:1.7rem}
    .contact-form{padding:24px}
}
