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

:root {
    --primary: #1a365d;
    --primary-light: #2a4a7f;
    --secondary: #c9a96e;
    --secondary-light: #d4b87d;
    --bg: #f5f5f5;
    --text: #1a202c;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    background: var(--primary);
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    color: var(--secondary);
    font-size: 24px;
    font-weight: bold;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--secondary);
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lang-switch button {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 4px 12px;
    font-size: 14px;
    border-radius: 4px;
    transition: background 0.2s;
}

.lang-switch button:hover,
.lang-switch button.active {
    background: var(--primary-light);
}

.lang-switch span {
    color: #666;
}

.menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
}

.mobile-menu {
    display: none;
    background: var(--primary-light);
    padding: 16px;
}

.mobile-menu a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* Hero */
.hero {
    background: url('images/hero-bg.png') center center / cover no-repeat;
    color: white;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(15, 23, 42, 0.9), rgba(30, 41, 59, 0.7), transparent);
}

.hero-content {
    position: relative;
    text-align: left;
}

.hero h1 {
    font-size: 56px;
    margin-bottom: 24px;
    line-height: 1.1;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

.hero h2 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 16px;
}

.hero-desc {
    font-size: 20px;
    color: #e5e7eb;
    margin-bottom: 32px;
}

.btn-primary {
    display: inline-block;
    background: linear-gradient(to right, #d4af37, #aa8c2c);
    color: #0f172a;
    padding: 16px 40px;
    border-radius: 9999px;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.btn-primary:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.btn-primary {
    display: inline-block;
    background: var(--secondary);
    color: var(--primary);
    padding: 14px 36px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    transition: background 0.2s;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--secondary-light);
}

/* Sections */
.section {
    padding: 80px 0;
}

.bg-white {
    background: white;
}

.bg-gray {
    background: var(--bg);
}

.section-title {
    text-align: center;
    margin-bottom: 48px;
}

.section-title h2 {
    font-size: 36px;
    color: var(--primary);
    margin-bottom: 16px;
}

.divider {
    width: 80px;
    height: 4px;
    background: var(--secondary);
    margin: 0 auto;
}

/* Profile */
.profile-content {
    max-width: 800px;
    margin: 0 auto;
}

.profile-content p {
    font-size: 18px;
    line-height: 1.8;
    color: #444;
    text-align: center;
}

/* Factories */
.factories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.factory-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.factory-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.15);
}

.factory-card img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    display: block;
}

.factory-card .factory-name {
    display: block;
    padding: 20px;
    text-align: center;
    font-weight: 700;
    color: var(--primary);
    font-size: 20px;
    border-top: 3px solid var(--secondary);
}

/* Products */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.15);
}

.product-img {
    aspect-ratio: 4/3;
    overflow: hidden;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.product-card:hover .product-img img {
    transform: scale(1.05);
}

.product-card h3 {
    padding: 20px;
    text-align: center;
    font-size: 20px;
    color: var(--primary);
}

.product-card:hover h3 {
    color: var(--secondary);
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-info {
    background: white;
    padding: 36px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.contact-info h3 {
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 28px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
    font-size: 16px;
}

.info-item .icon {
    font-size: 24px;
}

.inquiry-form {
    background: white;
    padding: 36px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.inquiry-form h3 {
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 28px;
}

.inquiry-form form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.inquiry-form input,
.inquiry-form select,
.inquiry-form textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.2s;
}

.inquiry-form input:focus,
.inquiry-form select:focus,
.inquiry-form textarea:focus {
    outline: none;
    border-color: var(--secondary);
}

.form-success {
    background: #f0fdf4;
    border: 1px solid #86efac;
    color: #166534;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    font-size: 16px;
}

/* Footer */
.footer {
    background: var(--primary);
    color: white;
    padding: 32px 0;
    text-align: center;
}

.footer p {
    font-size: 14px;
}

/* Responsive */
@media (max-width: 1024px) {
    .factories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links, .lang-switch {
        display: none;
    }
    .menu-btn {
        display: block;
    }
    .mobile-menu.open {
        display: block;
    }
    .hero::before {
        background: linear-gradient(to right, rgba(15, 23, 42, 0.9), rgba(30, 41, 59, 0.7));
    }
    .hero h1 {
        font-size: 32px;
    }
    .hero h2 {
        font-size: 20px;
    }
    .hero-desc {
        font-size: 16px;
    }
    .factories-grid {
        grid-template-columns: 1fr;
    }
    .products-grid {
        grid-template-columns: 1fr;
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .section {
        padding: 48px 0;
    }
    .section-title h2 {
        font-size: 28px;
    }
}
