/* ========================================
   江苏华泽智能制造有限公司 - 官方网站样式
   参考风格: kdmsteel.com
   ======================================== */

/* CSS Variables */
:root {
    --primary-color: #1a365d;
    --primary-dark: #0f172a;
    --primary-light: #2d4a7c;
    --secondary-color: #c9a227;
    --secondary-dark: #b8941f;
    --secondary-light: #d4b43a;
    --accent-color: #e63946;
    --text-dark: #1a1a1a;
    --text-light: #666;
    --text-muted: #888;
    --bg-light: #f8f9fa;
    --bg-dark: #0f172a;
    --white: #ffffff;
    --transition: all 0.3s ease;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-gold: 0 10px 20px rgba(201, 162, 39, 0.3);
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

/* ========================================
   Header & Navigation
   ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    min-height: 60px;
    position: relative;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

@media (max-width: 768px) {
    .header-inner {
        padding: 10px 0;
        min-height: 50px;
    }
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 1001;
}

.logo img {
    height: 60px;
    width: auto;
    display: block;
    object-fit: contain;
    max-width: 160px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 1px;
}

.logo-text span {
    color: var(--secondary-color);
}

.logo-subtitle {
    font-size: 0.75rem;
    color: var(--text-light);
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Logo hover effect */
.logo:hover img {
    transform: scale(1.03);
    transition: var(--transition);
}

/* Mobile logo adjustment */
@media (max-width: 768px) {
    .logo img {
        height: 30px;
        max-width: 130px;
    }
}

.nav {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-dark);
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.lang-switch {
    display: flex;
    gap: 10px;
    font-size: 0.85rem;
}

.lang-switch a {
    padding: 5px 10px;
    border-radius: 4px;
    transition: var(--transition);
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.lang-switch a.active {
    background: var(--primary-color);
    color: var(--white);
}

.lang-switch a:hover:not(.active) {
    background: var(--bg-light);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
    position: relative;
    z-index: 1001;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    background: transparent;
    border: none;
    outline: none;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--text-dark);
    transition: var(--transition);
    pointer-events: none;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--primary-color) 100%);
    overflow: hidden;
    padding-top: 60px;
}

@media (max-width: 768px) {
    .hero {
        padding-top: 50px;
        min-height: 500px;
    }
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.3;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    padding: 0 20px;
    max-width: 900px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-title span {
    color: var(--secondary-color);
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 20px;
    opacity: 0.9;
}

.hero-desc {
    font-size: 1.1rem;
    margin-bottom: 40px;
    opacity: 0.85;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 35px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-dark) 100%);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(201, 162, 39, 0.4);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--secondary-light) 0%, var(--secondary-color) 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

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

/* ========================================
   Section Styles
   ======================================== */
.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 15px;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.section-title span {
    color: var(--secondary-color);
}

/* ========================================
   Products Section
   ======================================== */
.products-section {
    background: var(--bg-light);
}

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

.product-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.product-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-dark) 100%);
    color: var(--white);
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(201, 162, 39, 0.3);
}

.product-content {
    padding: 25px;
}

.product-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.product-desc {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.5;
}

.product-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.product-feature {
    font-size: 0.8rem;
    padding: 4px 10px;
    background: var(--bg-light);
    border-radius: 15px;
    color: var(--text-light);
}

.product-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 0.95rem;
}

.product-link:hover {
    gap: 12px;
}

/* ========================================
   Features Section
   ======================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.feature-card {
    text-align: center;
    padding: 40px 25px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 50%, var(--secondary-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.75rem;
    box-shadow: 0 8px 20px rgba(26, 54, 93, 0.3);
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 25px rgba(26, 54, 93, 0.4);
}

.feature-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.feature-desc {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* ========================================
   About Section
   ======================================== */
.about-section {
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-content h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.about-content p {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* ========================================
   Manufacturing Section
   ======================================== */
.manufacturing-section {
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--primary-color) 100%);
    color: var(--white);
}

.manufacturing-section .section-title {
    color: var(--white);
}

.manufacturing-section .section-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

.manufacturing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.manufacturing-grid-home {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.manufacturing-card {
    text-align: center;
    padding: 40px 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.manufacturing-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.manufacturing-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2rem;
    box-shadow: 0 8px 20px rgba(201, 162, 39, 0.4);
    transition: var(--transition);
}

.manufacturing-card:hover .manufacturing-icon {
    transform: scale(1.1);
    box-shadow: 0 12px 25px rgba(201, 162, 39, 0.5);
}

.manufacturing-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.manufacturing-desc {
    font-size: 0.95rem;
    opacity: 0.85;
    line-height: 1.6;
}

/* ========================================
   Contact Section
   ======================================== */
.contact-section {
    background: var(--bg-light);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-info {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    height: 100%;
    font-style: normal;
}

.contact-info h3 {
    font-size: 1.75rem;
    color: var(--primary-color);
    margin-bottom: 30px;
}

.contact-list {
    margin: 0;
}

.contact-item {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    align-items: flex-start;
}

.contact-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.1rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(26, 54, 93, 0.3);
    margin-top: 0;
}

.contact-text {
    flex: 1;
}

.contact-text h4 {
    font-size: 0.95rem;
    color: var(--primary-color);
    margin-bottom: 4px;
    font-weight: 600;
}

.contact-text p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.5;
}

.contact-link {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.contact-business-card {
    margin-top: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #1a365d 0%, #2d4a7c 100%);
    border-radius: 12px;
    color: white;
}

.contact-business-card h4 {
    margin-bottom: 12px;
    color: #c9a227;
    font-size: 1rem;
}

.contact-business-card p {
    opacity: 0.9;
    line-height: 1.6;
    font-size: 0.9rem;
}

.contact-business-card ul {
    margin-top: 12px;
    line-height: 1.8;
    opacity: 0.9;
    font-size: 0.9rem;
    list-style: none;
    padding-left: 0;
}

.contact-business-card li {
    padding-left: 16px;
    position: relative;
}

.contact-business-card li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #c9a227;
}

.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    height: 100%;
}

.contact-form h3 {
    font-size: 1.75rem;
    color: var(--primary-color);
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-dark);
    margin-bottom: 8px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.1);
}

.form-control textarea {
    resize: vertical;
    min-height: 120px;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--bg-dark);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.footer-brand p {
    font-size: 0.9rem;
    opacity: 0.7;
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    font-size: 0.9rem;
    opacity: 0.7;
    transition: var(--transition);
}

.footer-links a:hover {
    opacity: 1;
    color: var(--secondary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copyright {
    font-size: 0.85rem;
    opacity: 0.6;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.footer-social a:hover {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-dark) 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(201, 162, 39, 0.4);
}

/* WeChat QR Code Popup */
.wechat-icon-wrapper {
    position: relative;
}

.wechat-icon-wrapper .wechat-qr-popup {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%) scale(0);
    opacity: 0;
    visibility: hidden;
    background: white;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    text-align: center;
    transition: all 0.3s ease;
    z-index: 1000;
    width: 160px;
}

.wechat-icon-wrapper .wechat-qr-popup img {
    width: 130px;
    height: 130px;
    border-radius: 8px;
    display: block;
}

.wechat-icon-wrapper .wechat-qr-popup p {
    color: #333;
    font-size: 0.75rem;
    margin-top: 8px;
    white-space: nowrap;
}

.wechat-icon-wrapper:hover .wechat-qr-popup {
    transform: translateX(-50%) scale(1);
    opacity: 1;
    visibility: visible;
}

/* Contact Page WeChat Hover */
.wechat-hover {
    position: relative;
}

.wechat-hover .wechat-qr-popup {
    position: absolute;
    top: 0;
    left: 100%;
    margin-left: 20px;
    background: white;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    z-index: 100;
    width: 160px;
}

.wechat-hover .wechat-qr-popup img {
    width: 130px;
    height: 130px;
    border-radius: 8px;
    display: block;
}

.wechat-hover .wechat-qr-popup p {
    color: #666;
    font-size: 0.8rem;
    margin-top: 8px;
}

.wechat-hover:hover .wechat-qr-popup {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

@media (max-width: 768px) {
    .wechat-hover .wechat-qr-popup {
        left: 50%;
        top: 100%;
        margin-left: 0;
        margin-top: 10px;
        transform: translateX(-50%) translateY(-10px);
    }

    .wechat-hover:hover .wechat-qr-popup {
        transform: translateX(-50%) translateY(0);
    }
}

/* ========================================
   Page Header
   ======================================== */
.page-header {
    position: relative;
    padding: 120px 0 80px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--bg-dark) 100%);
    color: var(--white);
    text-align: center;
    overflow: hidden;
}

.page-header-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.page-header-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 60%;
}

.page-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(26, 54, 93, 0.7) 0%, rgba(15, 23, 42, 0.8) 100%);
    z-index: 1;
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.page-header-content {
    position: relative;
    z-index: 2;
}

@media (max-width: 768px) {
    .page-header {
        padding: 100px 0 60px;
    }
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 15px;
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.8;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    font-size: 0.9rem;
}

.breadcrumb a {
    opacity: 0.7;
}

.breadcrumb a:hover {
    opacity: 1;
    color: var(--secondary-color);
}

.breadcrumb span {
    opacity: 0.5;
}

/* ========================================
   Products Page
   ======================================== */
.product-detail {
    padding: 80px 0;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.product-gallery {
    position: relative;
}

.product-main-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.product-main-image img {
    width: 100%;
    height: auto;
}

.product-info h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.product-specs {
    margin: 30px 0;
}

.spec-row {
    display: flex;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.spec-label {
    width: 150px;
    font-weight: 600;
    color: var(--primary-color);
}

.spec-value {
    color: var(--text-light);
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .manufacturing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .manufacturing-grid-home {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        gap: 0;
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    }

    .nav.active {
        display: flex;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-list {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }

    .nav-list li {
        border-bottom: 1px solid #eee;
    }

    .nav-list li:last-child {
        border-bottom: none;
    }

    .nav-link {
        display: block;
        padding: 15px 0;
        font-size: 1rem;
    }

    /* 移动端语言切换按钮始终可见 */
    .lang-switch {
        display: flex !important;
        gap: 8px;
        font-size: 0.8rem;
    }

    .lang-switch a {
        padding: 4px 8px;
        border-radius: 4px;
        border: 1px solid var(--primary-color);
        color: var(--primary-color);
        background: transparent;
    }

    .lang-switch a.active {
        background: var(--primary-color);
        color: var(--white);
    }

    .mobile-menu-btn {
        display: flex;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .products-grid,
    .features-grid,
    .manufacturing-grid,
    .manufacturing-grid-home {
        grid-template-columns: 1fr;
    }
    
    .about-grid,
    .contact-grid,
    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-info,
    .contact-form {
        padding: 30px;
    }

    /* 移动端联系项垂直布局 */
    .contact-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 12px;
    }

    .contact-icon {
        margin-top: 0;
    }

    .contact-text {
        text-align: center;
    }

    .contact-text p {
        text-align: center;
    }

    .contact-link {
        display: inline-block;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   Animations
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* Loading animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--white);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ========================================
   Language Switch Styles
   ======================================== */

/* English Language Adaptations */
html[lang="en"] .hero-title {
    font-size: 2.8rem;
}

html[lang="en"] .section-title {
    font-size: 2.2rem;
}

html[lang="en"] .product-title {
    font-size: 1.15rem;
}

html[lang="en"] .feature-title {
    font-size: 1rem;
}

html[lang="en"] .manufacturing-title {
    font-size: 1.15rem;
}

html[lang="en"] .btn {
    font-size: 0.9rem;
    padding: 14px 28px;
}

html[lang="en"] .nav-link {
    font-size: 0.9rem;
}

html[lang="en"] .product-desc,
html[lang="en"] .feature-desc,
html[lang="en"] .manufacturing-desc {
    font-size: 0.9rem;
    line-height: 1.5;
}

html[lang="en"] .footer-links a,
html[lang="en"] .footer-links li {
    font-size: 0.85rem;
}

/* Mobile adaptations for English */
@media (max-width: 768px) {
    html[lang="en"] .hero-title {
        font-size: 1.8rem;
    }
    
    html[lang="en"] .section-title {
        font-size: 1.5rem;
    }
    
    html[lang="en"] .btn {
        font-size: 0.85rem;
        padding: 12px 20px;
    }
}

/* Language switch button active state */
.lang-switch a {
    cursor: pointer;
    user-select: none;
}

.lang-switch a.active {
    background: var(--primary-color);
    color: var(--white);
}

/* Smooth transition for language switch */
[data-i18n] {
    transition: opacity 0.2s ease;
}

.lang-switching [data-i18n] {
    opacity: 0.7;
}

/* ========================================
   Image Carousel Styles
   ======================================== */
.image-carousel {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

/* Product page carousel - auto height with center alignment */
.product-detail-grid .image-carousel {
    height: auto;
}

.product-detail-grid .image-carousel .carousel-container {
    height: auto;
    aspect-ratio: 4/3;
    max-height: 500px;
}

.product-detail-grid .carousel-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
}

.product-detail-grid .carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: var(--secondary-color);
    transform: scale(1.2);
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.8);
}

@media (max-width: 768px) {
    .carousel-container {
        height: 300px;
    }
}
