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

body {
    font-family: 'Montserrat', 'Noto Serif SC', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f5f0;
}

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

/* Typography */
.section-title {
    font-size: 2.5rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 2rem;
    color: #5d4037;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #8b4513;
}

/* Colors */
:root {
    --primary-color: #5d4037; /* Walnut */
    --secondary-color: #d7ccc8; /* Light wood */
    --accent-color: #8b4513; /* Saddle brown */
    --text-color: #333;
    --light-text: #666;
    --background-color: #f8f5f0;
    --white: #fff;
    --border-color: #ddd;
}

/* Header - 修复遮挡核心样式 */
.header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 70px; /* 固定导航栏高度 */
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%; /* 继承导航栏高度，消除额外padding导致的高度偏差 */
    padding: 0 20px; /* 仅保留左右内边距，上下无额外padding */
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo-text {
    font-family: 'Noto Serif SC', serif;
    position: relative;
    padding-left: 1.5rem;
}

.logo-text::before {
    content: '⚫';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-color);
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--accent-color);
}

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

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

.nav-link.active {
    color: var(--accent-color);
}

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

.language-selector select {
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background-color: var(--white);
    font-family: 'Montserrat', sans-serif;
}

/* Page Header - 精准补偿导航栏高度 */
.page-header {
    padding-top: 80px; /* 70px导航栏高度 + 10px呼吸空间，彻底避免遮挡 */
    padding-bottom: 3rem;
    background-color: var(--background-color);
    text-align: center;
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-family: 'Noto Serif SC', serif;
}

.page-subtitle {
    font-size: 1.2rem;
    color: var(--light-text);
    max-width: 800px;
    margin: 0 auto;
}

/* Hero Section */
.hero {
    height: 100vh;
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://via.placeholder.com/1920x1080?text=Traditional+Chair');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    margin-top: 70px; /* 匹配导航栏高度 */
}

.hero-content {
    max-width: 800px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    font-family: 'Noto Serif SC', serif;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-weight: 300;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

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

.btn-primary:hover {
    background-color: #6d3510;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--text-color);
}

.btn-secondary:hover {
    background-color: #c7b3a9;
    transform: translateY(-2px);
}

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

.btn-outline:hover {
    background-color: var(--accent-color);
    color: var(--white);
}

/* Advantages Section */
.advantages {
    padding: 5rem 0;
    background-color: var(--white);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.advantage-item {
    text-align: center;
    padding: 2rem;
    background-color: var(--background-color);
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.advantage-item:hover {
    transform: translateY(-10px);
}

.advantage-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.advantage-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.advantage-description {
    color: var(--light-text);
}

/* Products Section */
.products-section {
    padding: 5rem 0;
    background-color: var(--background-color);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.product-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

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

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

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

.product-info {
    padding: 1.5rem;
}

.product-name {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.product-material, .product-size {
    color: var(--light-text);
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.product-info .btn {
    margin-top: 1rem;
    width: 100%;
}

.view-all {
    text-align: center;
    margin-top: 3rem;
}

/* Company Introduction (About Page) */
.company-intro {
    padding: 5rem 0;
    background-color: var(--white);
}

.intro-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.intro-text {
    padding: 0 2rem;
}

.intro-paragraph {
    margin-bottom: 1.5rem;
    color: var(--text-color);
    font-size: 1.1rem;
    line-height: 1.8;
}

.intro-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Core Strengths (About Page) */
.strengths {
    padding: 5rem 0;
    background-color: var(--background-color);
}

.strengths-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.strength-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    background-color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.strength-item:hover {
    transform: translateY(-5px);
}

.strength-icon {
    font-size: 2.5rem;
    min-width: 60px;
    text-align: center;
}

.strength-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: var(--primary-color);
}

.strength-description {
    color: var(--light-text);
    line-height: 1.7;
}

/* Factory & Artisans (About Page) */
.factory-artisans {
    padding: 5rem 0;
    background-color: var(--white);
}

.factory-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

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

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
}

.gallery-caption {
    font-size: 1rem;
    color: var(--light-text);
    font-weight: 500;
}

/* Certifications (About Page) */
.certifications {
    padding: 5rem 0;
    background-color: var(--background-color);
}

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
    align-items: center;
    justify-items: center;
}

.cert-item img {
    max-width: 100%;
    height: 150px;
    object-fit: contain;
    background-color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

/* Craftsmanship Highlights Section */
.craftsmanship-highlights {
    padding: 5rem 0;
    background-color: var(--white);
}

.craftsmanship-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

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

.craft-image {
    height: 200px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 1rem;
}

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

.craft-item:hover .craft-image img {
    transform: scale(1.1);
}

.craft-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
}

/* Clients Section */
.clients {
    padding: 5rem 0;
    background-color: var(--background-color);
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    align-items: center;
}

.client-item {
    background-color: var(--white);
    padding: 2rem;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.client-item img {
    max-width: 100%;
    height: auto;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.client-item:hover img {
    opacity: 1;
}

/* Contact Section */
.contact-section {
    padding: 5rem 0;
    background-color: var(--white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.contact-info h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.contact-info p {
    margin-bottom: 1rem;
    color: var(--text-color);
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.contact-form .btn {
    width: 100%;
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 3rem 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-copyright {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* 移动端导航栏适配 */
    .header {
        height: auto; /* 取消固定高度，自适应内容 */
        padding: 0.5rem 0;
    }

    .header-content {
        flex-wrap: wrap;
        height: auto;
        justify-content: center;
    }

    .logo {
        width: 100%;
        text-align: center;
        margin-bottom: 0.5rem;
    }

    .nav-list {
        flex-wrap: wrap;
        gap: 1rem;
        justify-content: center;
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .language-selector {
        width: 100%;
        text-align: center;
    }

    /* 移动端页面头部补偿 */
    .page-header {
        padding-top: 160px; /* 适配移动端导航栏换行后的高度 */
    }

    .page-title {
        font-size: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    /* 移动端布局适配 */
    .intro-content,
    .advantages-grid,
    .products-grid,
    .craftsmanship-grid,
    .clients-grid,
    .contact-content {
        grid-template-columns: 1fr;
    }

    .intro-text {
        padding: 0;
        margin-bottom: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 80vh;
    }

    .hero-title {
        font-size: 2rem;
    }

    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    .page-header {
        padding-top: 180px; /* 小屏进一步调整补偿间距 */
    }

    .strengths-grid,
    .factory-gallery,
    .certifications-grid {
        grid-template-columns: 1fr;
    }

    .strength-item {
        flex-direction: column;
        text-align: center;
    }

    .strength-icon {
        margin-bottom: 1rem;
    }
}