/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'SimHei', 'SimSun', 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
}

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

/* 导航栏 */
nav {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

.logo h1 {
    font-size: 24px;
    color: #333;
    margin-bottom: 5px;
}

.logo span {
    font-size: 14px;
    color: #666;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-size: 16px;
    transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: #c8102e;
}

.language-switch {
    display: flex;
    gap: 15px;
}

.language-switch a {
    text-decoration: none;
    color: #666;
    font-size: 14px;
    transition: color 0.3s ease;
}

.language-switch a:hover,
.language-switch a.lang-active {
    color: #c8102e;
    font-weight: bold;
}

/* 英雄区域 */
.hero {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('https://trae-api-cn.mchost.guru/api/ide/v1/text_to_image?prompt=handmade%20jewelry%20workshop%2C%20craftsmen%20working%2C%20warm%20lighting%2C%20professional%20photography&image_size=landscape_16_9');
    background-size: cover;
    background-position: center;
    color: #fff;
    text-align: center;
    padding: 150px 0;
}

.hero h2 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: bold;
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #c8102e;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    font-size: 16px;
}

.btn:hover {
    background-color: #a80d26;
}

/* 公司简介预览 */
.about-preview {
    padding: 100px 0;
    background-color: #f9f9f9;
    text-align: center;
}

.about-preview h3 {
    font-size: 32px;
    margin-bottom: 30px;
    color: #333;
}

.about-preview p {
    font-size: 16px;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #666;
}

/* 产品预览 */
.products-preview {
    padding: 100px 0;
    text-align: center;
}

.products-preview h3 {
    font-size: 32px;
    margin-bottom: 50px;
    color: #333;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.product-item {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.product-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.product-item h4 {
    font-size: 18px;
    color: #333;
}

/* 品牌理念预览 */
.brand-preview {
    padding: 100px 0;
    background-color: #f0f0f0;
    text-align: center;
}

.brand-preview h3 {
    font-size: 32px;
    margin-bottom: 30px;
    color: #333;
}

.brand-preview p {
    font-size: 16px;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #666;
}

/* 页脚 */
footer {
    background-color: #333;
    color: #fff;
    padding: 50px 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.footer-logo span {
    font-size: 14px;
    color: #999;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #fff;
}

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

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

.footer-links a {
    text-decoration: none;
    color: #999;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #fff;
}

.footer-contact p {
    margin-bottom: 10px;
    color: #999;
}

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 20px;
    text-align: center;
    color: #999;
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    nav .container {
        flex-direction: column;
        padding: 10px;
    }

    .nav-links {
        margin: 15px 0;
    }

    .nav-links li {
        margin: 0 10px;
    }

    .hero {
        padding: 100px 0;
    }

    .hero h2 {
        font-size: 36px;
    }

    .hero p {
        font-size: 18px;
    }

    .about-preview,
    .products-preview,
    .brand-preview {
        padding: 60px 0;
    }

    .about-preview h3,
    .products-preview h3,
    .brand-preview h3 {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .hero h2 {
        font-size: 28px;
    }

    .hero p {
        font-size: 16px;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* 页面特定样式 */
.page-content {
    padding: 60px 0;
}

.page-content h2 {
    font-size: 32px;
    margin-bottom: 30px;
    color: #333;
    text-align: center;
}

.page-content p {
    font-size: 16px;
    margin-bottom: 20px;
    color: #666;
}

/* 公司介绍页面 */
.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-content h3 {
    font-size: 24px;
    margin-top: 40px;
    margin-bottom: 20px;
    color: #333;
}

/* 产品展示页面 */
.product-categories {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 50px;
}

.category-btn {
    padding: 10px 20px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-btn:hover,
.category-btn.active {
    background-color: #c8102e;
    color: #fff;
    border-color: #c8102e;
}

/* 联系方式页面 */
.contact-info {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-info p {
    margin-bottom: 15px;
    font-size: 18px;
}

/* 品牌理念页面 */
.brand-content {
    max-width: 800px;
    margin: 0 auto;
}

.brand-content h3 {
    font-size: 24px;
    margin-top: 40px;
    margin-bottom: 20px;
    color: #333;
}