/* =========================
   Global Reset
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', Arial, sans-serif;
    color: #1F2933;
    background-color: #F5F7FA;
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

/* =========================
   Container
========================= */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* =========================
   Typography
========================= */
h1, h2, h3 {
    font-family: 'Montserrat', sans-serif;
    color: #466DD8;
    margin-bottom: 15px;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.3rem; }

p {
    margin-bottom: 15px;
    color: #4b5563;
}

/* =========================
   Buttons
========================= */
.btn {
    display: inline-block;
    padding: 12px 26px;
    background: linear-gradient(135deg, #46D8B1, #466DD8);
    color: #fff;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    box-shadow: 0 8px 20px rgba(70, 216, 177, 0.3);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(70, 216, 177, 0.4);
}

.btn-outline {
    border: 2px solid #46D8B1;
    color: #46D8B1;
    background: transparent;
}

.btn-outline:hover {
    background: #46D8B1;
    color: #fff;
}

/* =========================
   Header
========================= */
header {
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #466DD8;
}

/* =========================
   Navigation
========================= */
nav ul {
    display: flex;
    list-style: none;
    gap: 22px;
}

nav ul li a {
    font-size: 0.9rem;
    position: relative;
    transition: 0.3s;
}

nav ul li a.active,
nav ul li a:hover {
    color: #46D8B1;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #46D8B1;
    transition: 0.3s;
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%;
}

/* =========================
   Mobile Menu
========================= */
.menu-toggle {
    display: none;
    font-size: 1.6rem;
    cursor: pointer;
}

.mobile-nav {
    display: none;
    flex-direction: column;
    background: #fff;
    padding: 15px;
}

.mobile-nav a {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

/* =========================
   Hero Section
========================= */
/* 修改 Hero 背景为图片主导（放在 style.css 中 hero 部分，覆盖原有） */

.hero {
    position: relative;
    background: url('../img/factory-overview.jpg') center/cover no-repeat;
    padding: 140px 0;
    text-align: center;
    color: #fff;
    overflow: hidden;
}

/* 渐变叠加（让文字更清晰） */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(31,41,51,0.75), rgba(70,109,216,0.6));
    z-index: 1;
}

/* 内容层级提升 */
.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    color: #fff;
}

.hero p {
    color: #e5e7eb;
    max-width: 700px;
    margin: 0 auto 20px;
}

/* =========================
   Section Base
========================= */
.section {
    padding: 80px 0;
}

.section-light {
    background: #fff;
}

.section-gradient {
    background: linear-gradient(135deg, #46D8B1, #466DD8);
    color: #fff;
}

.section-gradient h2,
.section-gradient p {
    color: #fff;
}

/* =========================
   Split Layout
========================= */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

/* =========================
   Cards
========================= */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.card {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    transition: 0.3s;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

/* =========================
   Feature Blocks
========================= */
.feature-box {
    padding: 30px;
    border-left: 4px solid #46D8B1;
    background: #fff;
    border-radius: 8px;
    margin-bottom: 20px;
}

/* =========================
   Stats Section
========================= */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
    gap: 20px;
}

.stat h3 {
    font-size: 2rem;
    color: #46D8B1;
}

/* =========================
   Tables
========================= */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: #fff;
}

table th, table td {
    padding: 14px;
    border: 1px solid #e5e7eb;
}

table th {
    background: #46B6D8;
    color: #fff;
}

/* =========================
   Image Modules
========================= */
.img-box {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.img-box img {
    transition: 0.5s;
}

.img-box:hover img {
    transform: scale(1.05);
}

.img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent, rgba(0,0,0,0.5));
}

/* =========================
   CTA Section
========================= */
.cta {
    text-align: center;
    padding: 60px;
    background: linear-gradient(135deg, #46D8B1, #466DD8);
    color: #fff;
    border-radius: 12px;
}

/* =========================
   Footer
========================= */
footer {
    background: #1F2933;
    color: #fff;
    padding: 50px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.footer-grid h3 {
    margin-bottom: 15px;
    color: #fff;
}

.footer-grid a {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #d1d5db;
}

.footer-grid a:hover {
    color: #46D8B1;
}

.footer-bottom {
    text-align: center;
    margin-top: 30px;
    font-size: 0.85rem;
    color: #9ca3af;
}

/* =========================
   Animations
========================= */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================
   Responsive
========================= */
@media (max-width: 992px) {

    nav ul {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .mobile-nav.active {
        display: flex;
    }

    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .split {
        grid-template-columns: 1fr;
    }

    .stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {

    .card-grid {
        grid-template-columns: 1fr;
    }

    .stats {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 2.2rem;
    }
}
/* =========================
   Dropdown Menu
========================= */
nav ul li {
    position: relative;
}

nav ul li ul {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    padding: 15px 0;
    min-width: 200px;
    display: none;
    flex-direction: column;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    border-radius: 6px;
    z-index: 999;
}

nav ul li ul li {
    width: 100%;
}

nav ul li ul li a {
    padding: 10px 20px;
    display: block;
    font-size: 0.9rem;
    color: #1F2933;
}

nav ul li ul li a:hover {
    background: #F5F7FA;
    color: #46D8B1;
}

/* Hover show dropdown */
nav ul li:hover > ul {
    display: flex;
}

/* =========================
   Mobile Dropdown
========================= */
.mobile-nav .submenu {
    display: none;
    padding-left: 15px;
}

.mobile-nav .submenu a {
    font-size: 0.9rem;
}

.mobile-nav .has-submenu.active .submenu {
    display: block;
}
/* =========================
   Page Hero Backgrounds
========================= */

/* About */
body.about .hero {
    background: url('../img/about-hero.jpg') center/cover no-repeat;
}

/* Factory */
body.factory .hero {
    background: url('../img/factory-hero.jpg') center/cover no-repeat;
}

/* Quality */
body.quality .hero {
    background: url('../img/qc-hero.jpg') center/cover no-repeat;
}

/* Custom */
body.custom .hero {
    background: url('../img/custom-hero.jpg') center/cover no-repeat;
}

/* Catalog */
body.catalog .hero {
    background: url('../img/catalog-hero.jpg') center/cover no-repeat;
}

/* OEM */
body.oem .hero {
    background: url('../img/oem-hero.jpg') center/cover no-repeat;
}

/* Contact */
body.contact .hero {
    background: url('../img/contact-hero.jpg') center/cover no-repeat;
}