/* =============================================
   Yongtu Machinery - Global Styles
   Industrial Blue Theme
   ============================================= */

:root {
    --primary: #0F172A;
    --primary-light: #1E293B;
    --accent: #2563EB;
    --accent-dark: #1D4ED8;
    --accent-light: #DBEAFE;
    --accent-glow: rgba(37, 99, 235, 0.15);
    --white: #FFFFFF;
    --gray-50: #F8FAFC;
    --gray-100: #F1F5F9;
    --gray-200: #E2E8F0;
    --gray-300: #CBD5E1;
    --gray-400: #94A3B8;
    --gray-500: #64748B;
    --gray-600: #475569;
    --gray-700: #334155;
    --success: #10B981;
    --warning: #F59E0B;
    --error: #EF4444;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--white);
    color: var(--primary);
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ---- Typography ---- */
.font-display { font-family: 'Space Grotesk', sans-serif; }

/* ---- Nav ---- */
nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    display: flex; justify-content: space-between; align-items: center;
    padding: 0 60px; height: 72px;
    background: #ffffff;
}
.logo { font-family: 'Space Grotesk', sans-serif; font-size: 22px; font-weight: 700; color: #0F172A; }
.logo span { color: var(--accent); }
nav .logo img { height: 60px; width: auto; display: block; }
.nav-links { display: flex; gap: 36px; }
.nav-links a {
    color: #374151; font-size: 14px; font-weight: 500;
    padding: 8px 0; border-bottom: 2px solid transparent;
    transition: all 0.3s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--accent); border-color: var(--accent); }
.nav-right { display: flex; align-items: center; gap: 20px; }
.nav-cta {
    background: var(--primary); color: var(--white);
    padding: 9px 22px; font-size: 13px; font-weight: 600;
    transition: all 0.3s;
}
.nav-cta:hover { background: var(--accent-dark); }

/* ---- Hero ---- */
.hero {
    height: 100vh; min-height: 680px;
    background: var(--primary);
    position: relative; display: flex; align-items: center;
    padding: 72px 60px 0; overflow: hidden;
}
.hero::before {
    content: ''; position: absolute; top: 0; right: 0;
    width: 52%; height: 100%;
    background: url('images/hero-bg-v3.jpg?v=3') center/cover;
    opacity: 0.35;
}
.hero-overlay {
    position: absolute; top: 0; right: 0; width: 52%; height: 100%;
    background: linear-gradient(to right, var(--primary) 0%, transparent 50%);
}
.hero-content { position: relative; z-index: 2; max-width: 580px; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    border: 1px solid rgba(37,99,235,0.5); color: #93C5FD;
    font-size: 11px; font-weight: 600; letter-spacing: 2px;
    text-transform: uppercase; padding: 8px 16px; margin-bottom: 20px;
}
.hero-badge::before {
    content: ''; width: 6px; height: 6px;
    background: var(--primary); border-radius: 50%;
    animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot { 0%,100%{opacity:1} 50%{opacity:0.2} }
.hero h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(40px, 5vw, 62px); font-weight: 700;
    color: var(--white); line-height: 1.1;
    margin-bottom: 20px; letter-spacing: -1px;
}
.hero h1 span { color: var(--accent); }
.hero p { font-size: 17px; color: rgba(255,255,255,0.55); margin-bottom: 32px; line-height: 1.8; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-inner {
    position: relative; z-index: 2;
    width: 100%; max-width: 1200px;
    margin: 0 auto;
    padding: 0 60px;
    display: grid; grid-template-columns: 1fr 420px;
    gap: 60px; align-items: center;
}

.hero-content { padding: 80px 0 60px; }

.hero-eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: 12px; font-weight: 600; letter-spacing: 2.5px;
    text-transform: uppercase; color: var(--accent);
    margin-bottom: 24px;
}
.hero-eyebrow::before {
    content: ''; display: block; width: 32px; height: 2px;
    background: var(--primary);
}
.hero h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(38px, 5vw, 60px); font-weight: 700;
    color: var(--white); line-height: 1.08;
    margin-bottom: 24px; letter-spacing: -1.5px;
}
.hero h1 em {
    font-style: normal; color: var(--accent);
    display: inline;
}
.hero-sub {
    font-size: 16px; color: rgba(255,255,255,0.5);
    margin-bottom: 36px; line-height: 1.8; max-width: 480px;
}
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }

/* Hero Stats Row */
.hero-stats {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 0; margin-top: 60px;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 28px;
}
.hero-stat-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 32px; font-weight: 700; color: var(--white);
    line-height: 1;
}
.hero-stat-value span { color: var(--accent); }
.hero-stat-label {
    font-size: 11px; color: rgba(255,255,255,0.35);
    text-transform: uppercase; letter-spacing: 1.5px;
    margin-top: 6px;
}
.hero-stat-divider {
    width: 1px; background: rgba(255,255,255,0.1);
    margin: 0 8px;
}

/* Hero — Right: Machine Preview Card */
.hero-machine-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(12px);
    border-radius: 16px; padding: 28px;
    margin: 80px 0 60px;
}
.hero-machine-card img {
    width: 100%; height: 240px; object-fit: cover;
    border-radius: 10px; margin-bottom: 16px;
}
.hero-machine-tag {
    display: inline-block; background: rgba(37,99,235,0.2);
    color: #93C5FD; font-size: 11px; font-weight: 600;
    padding: 4px 12px; border-radius: 20px;
    letter-spacing: 1px; text-transform: uppercase;
    margin-bottom: 10px;
}
.hero-machine-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 18px; font-weight: 600; color: var(--white);
    margin-bottom: 4px;
}
.hero-machine-desc {
    font-size: 13px; color: rgba(255,255,255,0.4);
    line-height: 1.6; margin-bottom: 14px;
}
.hero-machine-link {
    font-size: 13px; color: var(--accent); font-weight: 600;
    display: flex; align-items: center; gap: 6px;
}
.hero-machine-link:hover { color: #60a5fa; gap: 10px; }

/* Scroll indicator */
.hero-scroll {
    position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
    z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 8px;
    color: rgba(255,255,255,0.25); font-size: 10px; letter-spacing: 2px;
    text-transform: uppercase;
}
.hero-scroll-line {
    width: 1px; height: 40px; background: linear-gradient(to bottom, rgba(255,255,255,0.3), transparent);
    animation: scroll-line 2s infinite;
}
@keyframes scroll-line { 0%{transform:scaleY(0); transform-origin:top} 50%{transform:scaleY(1); transform-origin:top} 51%{transform:scaleY(1); transform-origin:bottom} 100%{transform:scaleY(0); transform-origin:bottom} }

/* ---- Buttons ---- */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 28px; font-size: 14px; font-weight: 600;
    border: none; cursor: pointer; transition: all 0.3s;
}
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(37,99,235,0.3); }
.btn-outline { background: transparent; color: var(--white); border: 1px solid rgba(255,255,255,0.3); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-dark { background: var(--primary); color: var(--white); border: 1px solid var(--gray-700); }
.btn-dark:hover { background: var(--primary-light); }
.btn-white { background: var(--white); color: var(--primary); }
.btn-white:hover { background: var(--gray-100); transform: translateY(-2px); }
.btn-lg { padding: 16px 36px; font-size: 15px; }

/* ---- Stats Bar ---- */
.stats-bar {
    background: var(--primary);
    padding: 48px 60px;
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 40px; text-align: center;
}
.stat-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 52px; font-weight: 700;
    color: var(--white); line-height: 1;
}
.stat-label {
    font-size: 12px; color: rgba(255,255,255,0.75);
    text-transform: uppercase; letter-spacing: 2px; margin-top: 8px;
}

/* ---- Sections ---- */
section { padding: 100px 60px; }
.section-label {
    font-size: 12px; font-weight: 600; letter-spacing: 3px;
    text-transform: uppercase; color: var(--accent); margin-bottom: 14px;
}
.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(28px, 3.5vw, 42px); font-weight: 600;
    margin-bottom: 14px; line-height: 1.2;
}
.section-desc { font-size: 16px; color: var(--gray-500); max-width: 560px; line-height: 1.8; }
.section-header { margin-bottom: 60px; }
.section-header.center { text-align: center; }
.section-header.center .section-desc { margin: 0 auto; }

/* ---- Intro Grid ---- */
.intro-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
.intro-card {
    padding: 36px 30px; border: 1px solid var(--gray-200);
    transition: all 0.3s;
}
.intro-card:hover { border-color: var(--accent); box-shadow: 0 12px 40px rgba(37,99,235,0.08); transform: translateY(-4px); }
.intro-icon {
    width: 52px; height: 52px; background: var(--accent-light);
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; margin-bottom: 20px; border-radius: 10px;
}
.intro-card h3 { font-family: 'Space Grotesk', sans-serif; font-size: 19px; font-weight: 600; margin-bottom: 10px; }
.intro-card p { font-size: 14px; color: var(--gray-500); line-height: 1.75; }

/* ---- Product Grid ---- */
.products-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
.product-card {
    border: 1px solid var(--gray-200); overflow: hidden;
    transition: all 0.3s;
}
.product-card:hover { border-color: var(--accent); box-shadow: 0 16px 48px rgba(37,99,235,0.1); transform: translateY(-4px); }
.product-img {
    height: 240px; overflow: hidden; position: relative;
    background: var(--gray-100);
}
.product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.product-card:hover .product-img img { transform: scale(1.05); }
.product-tag {
    position: absolute; top: 14px; left: 14px;
    background: var(--primary); color: var(--white);
    font-size: 11px; font-weight: 600; padding: 4px 12px; border-radius: 20px;
}
.product-info { padding: 24px 24px 28px; }
.product-info h3 { font-family: 'Space Grotesk', sans-serif; font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.product-info p { font-size: 13px; color: var(--gray-500); line-height: 1.7; margin-bottom: 16px; }
.product-meta { display: flex; gap: 20px; font-size: 12px; color: var(--gray-400); margin-bottom: 20px; }
.product-meta span { display: flex; align-items: center; gap: 5px; }
.product-link {
    display: inline-flex; align-items: center; gap: 8px;
    color: var(--accent); font-size: 13px; font-weight: 600;
    transition: gap 0.3s;
}
.product-link:hover { gap: 14px; color: var(--accent-dark); }

/* ---- Why Section (Dark) ---- */
.why-section { background: var(--primary); padding: 100px 60px; }
.why-section .section-label { color: #93C5FD; }
.why-section .section-title { color: var(--white); }
.why-section .section-desc { color: rgba(255,255,255,0.45); }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.why-card {
    padding: 32px 26px; border: 1px solid rgba(255,255,255,0.06);
    transition: all 0.3s;
}
.why-card:hover { border-color: rgba(37,99,235,0.4); background: rgba(37,99,235,0.05); }
.why-num {
    font-family: 'Space Grotesk', sans-serif; font-size: 40px; font-weight: 700;
    color: rgba(255,255,255,0.06); margin-bottom: 16px;
}
.why-card h3 { font-family: 'Space Grotesk', sans-serif; font-size: 16px; font-weight: 600; color: var(--white); margin-bottom: 10px; }
.why-card p { font-size: 14px; color: rgba(255,255,255,0.4); line-height: 1.8; }

/* ---- Cases Section ---- */
.cases-grid { display: grid; grid-template-columns: repeat(auto-fill, 420px); justify-content: center; gap: 24px; }
.case-card { position: relative; width: 420px; height: 264px; overflow: hidden; border-radius: 4px; }
.case-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.case-card:hover img { transform: scale(1.05); }
.case-overlay {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, rgba(15,23,42,0.9), transparent);
    padding: 40px 24px 20px;
}
.case-overlay h3 { font-family: 'Space Grotesk', sans-serif; font-size: 16px; font-weight: 600; color: var(--white); margin-bottom: 4px; }
.case-overlay p { font-size: 12px; color: rgba(255,255,255,0.6); }

/* ---- CTA Section ---- */
.cta-section {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    padding: 90px 60px; text-align: center;
}
.cta-section h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(28px, 3.5vw, 42px); font-weight: 600;
    color: var(--white); margin-bottom: 14px;
}
.cta-section p { font-size: 16px; color: rgba(255,255,255,0.75); margin-bottom: 30px; }
.cta-section .btn { background: var(--white); color: var(--accent); }
.cta-section .btn:hover { background: var(--gray-100); transform: translateY(-2px); }

/* ---- Inquiry Form Section ---- */
.inquiry-section { background: var(--gray-50); padding: 100px 60px; }
.inquiry-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 80px; align-items: start; }
.inquiry-info h2 { font-family: 'Space Grotesk', sans-serif; font-size: 32px; font-weight: 600; margin-bottom: 16px; }
.inquiry-info p { color: var(--gray-500); line-height: 1.8; margin-bottom: 32px; }
.inquiry-contacts { display: flex; flex-direction: column; gap: 20px; }
.inquiry-contact { display: flex; align-items: center; gap: 16px; }
.inquiry-contact-icon {
    width: 44px; height: 44px; background: var(--accent-light);
    display: flex; align-items: center; justify-content: center;
    border-radius: 8px; font-size: 18px; flex-shrink: 0;
}
.inquiry-contact-text { font-size: 14px; }
.inquiry-contact-text strong { display: block; font-size: 13px; color: var(--gray-500); font-weight: 500; margin-bottom: 2px; }
.inquiry-contact-text span { font-size: 15px; font-weight: 600; color: var(--primary); }

/* ---- Form Styles ---- */
.inquiry-form { background: var(--white); padding: 40px; border: 1px solid var(--gray-200); border-radius: 8px; }
.form-title { font-family: 'Space Grotesk', sans-serif; font-size: 20px; font-weight: 600; margin-bottom: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--gray-700); margin-bottom: 6px; }
.form-group label span { color: var(--error); }
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%; padding: 11px 14px; font-size: 14px;
    border: 1px solid var(--gray-300); border-radius: 6px;
    font-family: inherit; transition: border-color 0.2s;
    background: var(--white); color: var(--primary);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.form-group textarea { resize: vertical; min-height: 100px; }
.form-group select { cursor: pointer; }
.form-submit { margin-top: 8px; }
.form-submit .btn { width: 100%; justify-content: center; padding: 14px; font-size: 15px; }

/* Form success state */
.form-success {
    display: none; text-align: center; padding: 40px;
}
.form-success.show { display: block; }
.form-success-icon { font-size: 48px; margin-bottom: 16px; }
.form-success h3 { font-family: 'Space Grotesk', sans-serif; font-size: 22px; margin-bottom: 10px; }
.form-success p { color: var(--gray-500); }

/* ---- Footer ---- */
footer { background: var(--primary); color: var(--white); padding: 70px 60px 32px; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 60px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-brand .logo { font-family: 'Space Grotesk', sans-serif; font-size: 24px; font-weight: 700; margin-bottom: 18px; display: inline-block; }
.footer-brand p { font-size: 13px; color: rgba(255,255,255,0.35); line-height: 1.8; max-width: 280px; margin-bottom: 20px; }
.footer-social { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.footer-social a {
    min-height: 34px; padding: 0 12px; background: rgba(255,255,255,0.06);
    display: flex; align-items: center; justify-content: center;
    border-radius: 6px; font-size: 13px; line-height: 1; white-space: nowrap; transition: all 0.3s;
}
.footer-social a:hover { background: var(--accent); }
.footer-col h4 { font-size: 11px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,0.35); margin-bottom: 20px; }
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a { color: rgba(255,255,255,0.6); font-size: 14px; transition: color 0.3s; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 28px; }
.footer-bottom p { font-size: 13px; color: rgba(255,255,255,0.3); }
.footer-bottom-links { display: flex; gap: 28px; }
.footer-bottom-links a { font-size: 13px; color: rgba(255,255,255,0.3); transition: color 0.3s; }
.footer-bottom-links a:hover { color: var(--accent); }

/* ---- Floating WhatsApp CTA ---- */
.whatsapp-float {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1000;
    width: 58px;
    height: 58px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: #25d366;
    box-shadow: 0 14px 34px rgba(37, 211, 102, 0.34), 0 4px 12px rgba(15, 23, 42, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.whatsapp-float:hover {
    transform: translateY(-3px);
    background: #1ebe5d;
    box-shadow: 0 18px 42px rgba(37, 211, 102, 0.42), 0 6px 16px rgba(15, 23, 42, 0.2);
}
.whatsapp-float:focus-visible {
    outline: 3px solid rgba(37, 211, 102, 0.35);
    outline-offset: 4px;
}
.whatsapp-float svg {
    width: 30px;
    height: 30px;
    display: block;
}

/* ---- Page Header ---- */
.page-header {
    background: var(--primary); padding: 160px 60px 80px;
    position: relative; overflow: hidden;
}
.page-header::before {
    content: ''; position: absolute; top: 0; right: 0;
    width: 40%; height: 100%; background: url('https://images.unsplash.com/photo-1581092160607-7ee22804bc4a?w=800&q=60') center/cover; opacity: 0.15;
}
.page-header h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(36px, 4vw, 52px); font-weight: 700;
    color: var(--white); margin-bottom: 14px; position: relative; z-index: 2;
}
.page-header p { font-size: 17px; color: rgba(255,255,255,0.5); max-width: 520px; position: relative; z-index: 2; }

.product-application-hero {
    margin-top: 72px;
    min-height: 280px;
    padding: 48px 60px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    background-color: #06142a;
    background-image:
        linear-gradient(90deg, rgba(6, 20, 42, 0.96) 0%, rgba(6, 20, 42, 0.86) 42%, rgba(6, 20, 42, 0.46) 68%, rgba(6, 20, 42, 0.14) 100%),
        url('../images/HT-2L-hero-bottles-wide.png');
    background-position: center 58%;
    background-size: cover;
    background-repeat: no-repeat;
}
.product-application-hero::before { display: none; }
.product-application-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0) 35%);
    pointer-events: none;
}
.product-hero-content {
    position: relative;
    z-index: 2;
    max-width: 760px;
}
.product-hero-kicker {
    margin-bottom: 16px;
    color: #93c5fd;
    font-size: 12px;
    line-height: 1;
    letter-spacing: 2.8px;
    text-transform: uppercase;
    font-weight: 700;
}
.product-application-hero h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(36px, 5vw, 58px);
    line-height: 1.06;
    letter-spacing: 0;
    color: #ffffff;
    margin-bottom: 16px;
}
.product-application-hero p {
    max-width: 560px;
    font-size: 17px;
    line-height: 1.75;
    color: rgba(255,255,255,0.78);
}
.product-application-hero.hero-5l {
    background-image:
        linear-gradient(90deg, rgba(6, 20, 42, 0.96) 0%, rgba(6, 20, 42, 0.86) 42%, rgba(6, 20, 42, 0.46) 68%, rgba(6, 20, 42, 0.14) 100%),
        url('../images/2-5L.png');
}
.product-application-hero.hero-3l {
    background-image:
        linear-gradient(90deg, rgba(6, 20, 42, 0.96) 0%, rgba(6, 20, 42, 0.86) 42%, rgba(6, 20, 42, 0.46) 68%, rgba(6, 20, 42, 0.14) 100%),
        url('../images/3L.png');
}
.product-application-hero.hero-12l {
    background-image:
        linear-gradient(90deg, rgba(6, 20, 42, 0.96) 0%, rgba(6, 20, 42, 0.86) 42%, rgba(6, 20, 42, 0.46) 68%, rgba(6, 20, 42, 0.14) 100%),
        url('../images/5-12L.png');
}
.product-application-hero.hero-tdb-25-250 {
    background-image:
        linear-gradient(90deg, rgba(6, 20, 42, 0.96) 0%, rgba(6, 20, 42, 0.86) 42%, rgba(6, 20, 42, 0.46) 68%, rgba(6, 20, 42, 0.14) 100%),
        url('../images/25-250L.png');
}

.subpage-hero-header {
    margin-top: 72px;
    height: 318px;
    padding: 0 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: #06142a;
    background-image:
        linear-gradient(90deg, rgba(6, 20, 42, 0.9) 0%, rgba(6, 20, 42, 0.72) 45%, rgba(6, 20, 42, 0.24) 100%),
        var(--subpage-hero-image);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}
.subpage-hero-header::before { display: none; }
.subpage-hero-header::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0) 34%),
        radial-gradient(circle at 85% 18%, rgba(37,99,235,0.22), transparent 28%);
    pointer-events: none;
}
.subpage-hero-kicker {
    position: relative;
    z-index: 2;
    margin-bottom: 16px;
    color: #93c5fd;
    font-size: 12px;
    line-height: 1;
    letter-spacing: 2.8px;
    text-transform: uppercase;
    font-weight: 700;
}
.subpage-hero-header h1,
.subpage-hero-header p {
    max-width: 660px;
}
.subpage-hero-header p {
    color: rgba(255,255,255,0.76);
    line-height: 1.75;
}
.about-hero-header { --subpage-hero-image: url('../images/subpage-heroes/about-hero-banner.png'); }
.service-hero-header { --subpage-hero-image: url('../images/subpage-heroes/service-hero-banner.png'); }
.cases-hero-header { --subpage-hero-image: url('../images/subpage-heroes/cases-hero-banner.png'); }

/* ---- Product Detail ---- */
.product-detail { padding: 80px 60px; }
.product-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.product-gallery { position: sticky; top: 100px; }
.product-gallery-main { height: 440px; background: var(--gray-100); border-radius: 8px; overflow: hidden; margin-bottom: 12px; position: relative; }
.product-gallery-main img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.3s; }
.gallery-desc {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, rgba(15,23,42,0.92), transparent);
    padding: 60px 20px 20px;
    transition: opacity 0.3s;
}
.gallery-desc h3 { font-family: 'Space Grotesk', sans-serif; font-size: 15px; font-weight: 600; color: var(--white); margin-bottom: 6px; }
.gallery-desc p { font-size: 12px; color: rgba(255,255,255,0.7); line-height: 1.6; }
.product-gallery-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.product-gallery-thumbs > div { height: 80px; background: var(--gray-100); border-radius: 6px; overflow: hidden; cursor: pointer; border: 2px solid transparent; transition: border-color 0.2s, transform 0.2s; }
.product-gallery-thumbs > div:hover { border-color: rgba(37,99,235,0.5); transform: scale(1.03); }
.product-gallery-thumbs > div.active { border-color: var(--accent); }
.product-gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.product-detail-info h1 { font-family: 'Space Grotesk', sans-serif; font-size: 32px; font-weight: 700; margin-bottom: 12px; }
.product-detail-info .product-subtitle { font-size: 16px; color: var(--gray-500); margin-bottom: 24px; }
.product-tags { display: flex; gap: 10px; margin-bottom: 28px; flex-wrap: wrap; }
.product-tags span { background: var(--accent-light); color: var(--accent); font-size: 12px; font-weight: 600; padding: 5px 14px; border-radius: 20px; }
.product-short-desc { font-size: 15px; color: var(--gray-600); line-height: 1.8; margin-bottom: 32px; border-left: 3px solid var(--accent); padding-left: 16px; }
.param-table { width: 100%; border-collapse: collapse; margin-bottom: 32px; cursor: pointer; }
.param-table th { text-align: left; padding: 10px 14px; background: var(--gray-50); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: var(--gray-500); border-bottom: 1px solid var(--gray-200); }
.param-table td { padding: 11px 14px; font-size: 14px; border-bottom: 1px solid var(--gray-100); color: var(--gray-700); transition: background 0.15s, color 0.15s; }
.param-table tr:last-child td { border-bottom: none; }
.param-table tbody tr:hover td { background: var(--accent-light); color: var(--accent); }
.param-table tbody tr:hover td:last-child { font-weight: 600; }

/* ---- Inquiry Fixed CTA ---- */
.inquiry-sticky {
    background: var(--white); border: 1px solid var(--gray-200);
    border-radius: 8px; padding: 28px; position: sticky; top: 100px;
}
.inquiry-sticky h3 { font-family: 'Space Grotesk', sans-serif; font-size: 18px; font-weight: 600; margin-bottom: 6px; }
.inquiry-sticky > p { font-size: 13px; color: var(--gray-500); margin-bottom: 20px; }
.inquiry-sticky .form-group { margin-bottom: 12px; }
.inquiry-sticky .form-group input,
.inquiry-sticky .form-group select,
.inquiry-sticky .form-group textarea { padding: 9px 12px; font-size: 13px; }
.inquiry-sticky .model-field input[readonly] {
    background: var(--gray-50);
    color: var(--gray-700);
    cursor: default;
}
.inquiry-sticky .form-group textarea { min-height: 80px; }
.inquiry-sticky .btn { width: 100%; justify-content: center; }

/* ---- About Page ---- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; padding: 100px 60px; }
.about-img { height: 480px; background: var(--gray-100); border-radius: 8px; overflow: hidden; }
.about-img img { width: 100%; height: 100%; object-fit: cover; }
.about-text h2 { font-family: 'Space Grotesk', sans-serif; font-size: 36px; font-weight: 600; margin-bottom: 16px; }
.about-text p { color: var(--gray-500); line-height: 1.8; margin-bottom: 14px; }
.about-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; }
.about-stat { background: var(--gray-50); padding: 20px; border-radius: 8px; text-align: center; }
.about-stat-value { font-family: 'Space Grotesk', sans-serif; font-size: 32px; font-weight: 700; color: var(--accent); }
.about-stat-label { font-size: 12px; color: var(--gray-500); margin-top: 4px; }

/* ---- Service Cards ---- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.service-card { padding: 40px 30px; border: 1px solid var(--gray-200); transition: all 0.3s; }
.service-card:hover { border-color: var(--accent); box-shadow: 0 12px 40px rgba(37,99,235,0.08); }
.service-num { font-family: 'Space Grotesk', sans-serif; font-size: 48px; font-weight: 700; color: var(--gray-200); margin-bottom: 16px; }
.service-card h3 { font-family: 'Space Grotesk', sans-serif; font-size: 20px; font-weight: 600; margin-bottom: 12px; }
.service-card p { font-size: 14px; color: var(--gray-500); line-height: 1.75; margin-bottom: 20px; }
.service-list { display: flex; flex-direction: column; gap: 8px; }
.service-list li { font-size: 13px; color: var(--gray-600); display: flex; align-items: center; gap: 8px; }
.service-list li::before { content: '✓'; color: var(--accent); font-weight: 700; }

/* ---- Certificate cards shared by About and product detail pages ---- */
.certificate-section {
    background: var(--gray-50);
    padding: 80px 60px;
    overflow: visible;
}
.certificate-section .section-header {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}
.certificate-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    max-width: 1180px;
    margin: 42px auto 0;
    overflow: visible;
}
.certificate-card {
    position: relative;
    overflow: visible;
    border: 1px solid var(--gray-200);
    background: #fff;
    min-height: 280px;
    padding: 22px;
}
.certificate-card:hover {
    z-index: 10;
}
.certificate-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(37, 99, 235, 0.08), transparent 42%),
        linear-gradient(180deg, transparent 0%, rgba(15, 23, 42, 0.03) 100%);
    pointer-events: none;
}
.certificate-doc {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 230px;
    margin-bottom: 22px;
    padding: 16px;
    border: 1px solid var(--gray-200);
    background: #fff;
    box-shadow: 0 18px 35px rgba(15, 23, 42, 0.08);
}
.certificate-image-doc {
    display: block;
    padding: 10px;
    text-decoration: none;
    cursor: zoom-in;
}
.certificate-image-doc img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.certificate-zoom {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 30;
    width: clamp(300px, 30vw, 440px);
    aspect-ratio: 3 / 4;
    padding: 12px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.12);
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.24);
    transform: translate(-50%, -50%) scale(0.92);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
    pointer-events: none;
}
.certificate-zoom img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.certificate-image-doc:hover .certificate-zoom,
.certificate-image-doc:focus-visible .certificate-zoom {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}
.certificate-card h3 {
    position: relative;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 18px;
    margin-bottom: 8px;
}
.certificate-card p {
    position: relative;
    color: var(--gray-500);
    font-size: 13px;
    line-height: 1.65;
}

/* ---- Responsive ---- */
@media (max-width: 1100px) {
    .intro-grid, .products-grid, .services-grid { grid-template-columns: repeat(2, 1fr); }
    .why-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
    .inquiry-grid { grid-template-columns: 1fr; gap: 48px; }
    .product-detail-grid { grid-template-columns: 1fr; gap: 40px; }
    .product-gallery { position: static; }
    .about-grid { grid-template-columns: 1fr; gap: 40px; padding: 60px; }
    .certificate-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1024px) {
    nav { padding: 0 24px; }
    .nav-links { display: none; }
    section { padding: 70px 24px; }
    .hero { padding: 72px 24px 0; }
    .stats-bar { grid-template-columns: repeat(2, 1fr); padding: 40px 24px; }
    .intro-grid, .products-grid, .why-grid, .services-grid { grid-template-columns: 1fr; }
    .certificate-section { padding: 70px 24px; }
    .certificate-grid { grid-template-columns: 1fr; }
    .cases-grid { grid-template-columns: minmax(0, 1fr); }
    .case-card { width: 100%; max-width: 420px; justify-self: center; }
    .form-row { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
    .page-header { padding: 140px 24px 60px; }
    .product-application-hero {
        padding: 104px 24px 40px;
        min-height: 320px;
        background-image:
            linear-gradient(90deg, rgba(6, 20, 42, 0.97) 0%, rgba(6, 20, 42, 0.86) 70%, rgba(6, 20, 42, 0.58) 100%),
            url('../images/HT-2L-hero-bottles-wide.png');
    }
    .product-application-hero.hero-5l {
        background-image:
            linear-gradient(90deg, rgba(6, 20, 42, 0.97) 0%, rgba(6, 20, 42, 0.86) 70%, rgba(6, 20, 42, 0.58) 100%),
            url('../images/2-5L.png');
    }
    .product-application-hero.hero-3l {
        background-image:
            linear-gradient(90deg, rgba(6, 20, 42, 0.97) 0%, rgba(6, 20, 42, 0.86) 70%, rgba(6, 20, 42, 0.58) 100%),
            url('../images/3L.png');
    }
    .product-application-hero.hero-12l {
        background-image:
            linear-gradient(90deg, rgba(6, 20, 42, 0.97) 0%, rgba(6, 20, 42, 0.86) 70%, rgba(6, 20, 42, 0.58) 100%),
            url('../images/5-12L.png');
    }
    .product-application-hero.hero-tdb-25-250 {
        background-image:
            linear-gradient(90deg, rgba(6, 20, 42, 0.97) 0%, rgba(6, 20, 42, 0.86) 70%, rgba(6, 20, 42, 0.58) 100%),
            url('../images/25-250L.png');
    }
    .subpage-hero-header {
        height: auto;
        min-height: 318px;
        margin-top: 72px;
        padding: 112px 24px 48px;
        background-image:
            linear-gradient(90deg, rgba(6, 20, 42, 0.92) 0%, rgba(6, 20, 42, 0.78) 62%, rgba(6, 20, 42, 0.44) 100%),
            var(--subpage-hero-image);
    }
    .whatsapp-float {
        right: 18px;
        bottom: 18px;
        width: 54px;
        height: 54px;
    }
    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }
}

/* ==== Mobile Menu (Hamburger) ==== */
.menu-toggle {
    display: none;
    background: transparent;
    border: 0;
    width: 44px;
    height: 44px;
    cursor: pointer;
    padding: 10px;
    margin-left: 8px;
    z-index: 1001;
}
.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #0F172A;
    margin: 5px auto;
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.2s ease;
}
.menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav dropdown */
@media (max-width: 1024px) {
    .menu-toggle { display: block; }
    .nav-links {
        display: none;
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: #ffffff;
        flex-direction: column;
        gap: 0;
        padding: 8px 0 24px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
        max-height: calc(100vh - 72px);
        overflow-y: auto;
        z-index: 999;
    }
    .nav-links.mobile-open { display: flex; }
    .nav-links a {
        padding: 16px 24px;
        width: 100%;
        font-size: 15px;
        border-bottom: 1px solid #f1f5f9;
    }
    .nav-links a.active { color: var(--accent); }
    .nav-right { margin-left: auto; }
    .nav-cta {
        padding: 8px 16px !important;
        font-size: 13px !important;
    }
}

/* ==== Mobile content fixes ==== */
@media (max-width: 1024px) {
    /* Prevent horizontal scroll */
    html, body { overflow-x: hidden; }
    img, video { max-width: 100%; height: auto; }
    /* Hero typography scales down */
    h1, .hero h1 { font-size: clamp(28px, 7vw, 44px) !important; line-height: 1.2; }
    h2 { font-size: clamp(22px, 5vw, 30px) !important; }
    /* Section padding tighter on small screens */
    section { padding: 56px 20px !important; }
    .hero { padding: 96px 20px 40px !important; }
    /* Tables - allow horizontal scroll inside cards */
    .product-specs, .spec-table, table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    /* Sticky CTA / WhatsApp stays accessible */
    body { padding-bottom: 0; }
}

    .nav-links { gap: 24px; }
    .nav-links a { font-size: 14px; }
    h1, .hero h1 { font-size: clamp(36px, 5vw, 56px); }
}


/* ==== Conservative mobile fixes (避免 * 通配的破坏) ==== */
@media (max-width: 1024px) {
    body { overflow-x: hidden; }
    .container, .wrapper, .section-inner, .page-header { max-width: 100%; }
    /* 防止产品详情大表溢出 */
    .spec-table-wrap, .product-specs { overflow-x: auto; }
    /* 防止图片溢出 */
    img { max-width: 100%; height: auto; }
}

/* ==== Override inline-style grids on mobile (带/不带空格都匹配) ==== */
@media (max-width: 1024px) {
    /* 2-column inline grids (1fr 1fr) → 1 column on mobile */
    div[style*="grid-template-columns:1fr 1fr"],
    div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
    /* 3-column inline grids → 1 column on mobile */
    div[style*="grid-template-columns:repeat(3"],
    div[style*="grid-template-columns: repeat(3"] {
        grid-template-columns: 1fr !important;
    }
    /* 4-column inline grids → 2 columns on tablet */
    div[style*="grid-template-columns:repeat(4"],
    div[style*="grid-template-columns: repeat(4"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    /* 5-6 column inline grids → 2 columns on tablet */
    div[style*="grid-template-columns:repeat(5"],
    div[style*="grid-template-columns:repeat(6"],
    div[style*="grid-template-columns: repeat(5"],
    div[style*="grid-template-columns: repeat(6"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    /* Phone: 4+ columns → 1 column */
    @media (max-width: 600px) {
        div[style*="grid-template-columns:repeat(4"],
        div[style*="grid-template-columns:repeat(5"],
        div[style*="grid-template-columns:repeat(6"],
        div[style*="grid-template-columns: repeat(4"],
        div[style*="grid-template-columns: repeat(5"],
        div[style*="grid-template-columns: repeat(6"] {
            grid-template-columns: 1fr !important;
        }
    }
}
