/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f8f8;
}

/* 容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏 */
.navbar {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

.nav-container {
    display: flex;
    align-items: center;
    gap: 30px;
}

.language-switcher {
    display: flex;
    gap: 10px;
}

.lang-btn {
    padding: 6px 12px;
    border: 1px solid #ddd;
    background-color: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    border-color: #9b59b6;
    color: #9b59b6;
}

.lang-btn.active {
    background-color: #9b59b6;
    color: white;
    border-color: #9b59b6;
}

.logo h1 {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    color: #2c3e50;
    margin-bottom: 5px;
}

.logo span {
    font-size: 14px;
    color: #7f8c8d;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #9b59b6;
}

/* Hero Banner */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('https://trae-api-cn.mchost.guru/api/ide/v1/text_to_image?prompt=luxury%20jewelry%20banner%2C%20elegant%20design%2C%20gold%20and%20diamonds%2C%20professional%20photography&image_size=landscape_16_9');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-top: 80px;
}

.hero-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: 48px;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #9b59b6;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: #8e44ad;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(155, 89, 182, 0.3);
}

/* 通用 section 样式 */
section {
    padding: 80px 0;
}

h2 {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    text-align: center;
    margin-bottom: 40px;
    color: #2c3e50;
}

/* 核心产品分类 */
.products-section {
    background-color: white;
}

.product-categories {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.category {
    flex: 1;
    min-width: 300px;
    margin: 20px;
    text-align: center;
}

.category img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.category img:hover {
    transform: scale(1.05);
}

.category h3 {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    color: #2c3e50;
}

/* 制造工艺展示 */
.craft-section {
    background-color: #f8f8f8;
    text-align: center;
}

.craft-section p {
    font-size: 18px;
    margin-bottom: 40px;
    color: #7f8c8d;
}

.craft-steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.step {
    width: 120px;
    text-align: center;
}

.step-number {
    width: 60px;
    height: 60px;
    background-color: #9b59b6;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    margin: 0 auto 15px;
}

.step h4 {
    font-size: 14px;
    color: #2c3e50;
}

/* 核心竞争力 */
.advantages-section {
    background-color: white;
}

.advantages {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.advantage {
    flex: 1;
    min-width: 300px;
    margin: 20px;
    text-align: center;
    padding: 30px;
    background-color: #f8f8f8;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.advantage:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.advantage h3 {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    margin-bottom: 15px;
    color: #2c3e50;
}

.advantage p {
    color: #7f8c8d;
}

/* 客户评价 */
.testimonials-section {
    background-color: #f8f8f8;
}

.testimonials {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.testimonial {
    flex: 1;
    min-width: 300px;
    margin: 20px;
    padding: 30px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.testimonial p {
    font-style: italic;
    margin-bottom: 20px;
    color: #555;
}

.testimonial span {
    display: block;
    text-align: right;
    color: #9b59b6;
    font-weight: 600;
}

/* 页脚 */
.footer {
    background-color: #2c3e50;
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.footer-info,
.footer-links,
.footer-contact {
    flex: 1;
    min-width: 250px;
    margin: 20px;
}

.footer-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    margin-bottom: 20px;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 18px;
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #ecf0f1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #9b59b6;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #34495e;
    font-size: 14px;
    color: #bdc3c7;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        padding: 15px;
    }

    .nav-links {
        margin-top: 15px;
    }

    .nav-links li {
        margin: 0 10px;
    }

    .hero-content h1 {
        font-size: 36px;
    }

    .product-categories,
    .advantages,
    .testimonials,
    .footer-content {
        flex-direction: column;
        align-items: center;
    }

    .category,
    .advantage,
    .testimonial {
        width: 100%;
        max-width: 400px;
    }
}

/* 关于我们页面 */
.about-section {
    background-color: white;
    padding: 100px 0;
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-image {
    flex: 1;
    min-width: 300px;
}

.about-image img {
    width: 100%;
    border-radius: 8px;
}

.about-text h3 {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    margin-bottom: 20px;
    color: #2c3e50;
}

.about-text p {
    margin-bottom: 20px;
    color: #555;
}

.timeline {
    margin: 60px 0;
}

.timeline-item {
    display: flex;
    margin-bottom: 30px;
}

.timeline-date {
    flex: 0 0 120px;
    font-weight: 600;
    color: #9b59b6;
}

.timeline-content {
    flex: 1;
}

/* 产品展示页面 */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.product-item {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.product-item:hover {
    transform: translateY(-5px);
}

.product-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    margin-bottom: 10px;
    color: #2c3e50;
}

.product-info p {
    color: #7f8c8d;
    font-size: 14px;
}

/* 制造工艺页面 */
.craft-details {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 40px;
}

.craft-step-detail {
    flex: 1;
    min-width: 300px;
    display: flex;
    gap: 20px;
    align-items: center;
}

.craft-step-detail img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
}

.craft-step-info h4 {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    margin-bottom: 10px;
    color: #2c3e50;
}

.craft-step-info p {
    color: #7f8c8d;
    font-size: 14px;
}

/* 联系我们页面 */
.contact-section {
    background-color: white;
}

.contact-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-form {
    flex: 1;
    min-width: 300px;
    background-color: #f8f8f8;
    padding: 40px;
    border-radius: 8px;
}

.contact-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    margin-bottom: 20px;
    color: #2c3e50;
}

.contact-info p {
    margin-bottom: 15px;
    color: #555;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #2c3e50;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group button {
    width: 100%;
    padding: 12px;
    background-color: #9b59b6;
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.form-group button:hover {
    background-color: #8e44ad;
}

/* 表单验证错误 */
.error {
    color: #e74c3c;
    font-size: 12px;
    margin-top: 5px;
}

/* 成功消息 */
.success-message {
    background-color: #27ae60;
    color: white;
    padding: 15px;
    border-radius: 4px;
    margin-top: 20px;
    text-align: center;
}