/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Playfair Display', serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f8f8;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 1rem;
    color: #2c1810;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

/* Header */
header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    font-size: 1.8rem;
    font-weight: 900;
    color: #2c1810;
    text-decoration: none;
    margin: 0;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    text-decoration: none;
    color: #2c1810;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #8b4513;
}

/* Cart Icon */
.cart-icon {
    position: relative;
}

.cart-icon a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #2c1810;
}

.cart-count {
    background-color: #8b4513;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    position: absolute;
    top: -10px;
    right: -10px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: #2c1810;
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    font-size: 1rem;
}

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

.btn-primary {
    background-color: #8b4513;
}

.btn-primary:hover {
    background-color: #a0522d;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('images/关于我们更多产品咨询/_DSC2015.jpg');
    background-size: cover;
    background-position: center;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: white;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
}

/* Products Section */
.products {
    padding: 4rem 0;
}

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

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

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.product-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    aspect-ratio: 3/4;
}

.product-info {
    padding: 1.5rem;
}

.product-info h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.product-info .price {
    font-weight: 700;
    color: #8b4513;
    font-size: 1.1rem;
}

/* More Products Section */
.more-products {
    padding: 4rem 0;
    background-color: #f0f0f0;
}

.more-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.more-product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

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

/* About Section */
.about {
    padding: 4rem 0;
    background-color: white;
    text-align: center;
}

.about p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* Contact Section */
.contact {
    padding: 4rem 0;
    background-color: #f8f8f8;
}

.contact form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact input, .contact textarea {
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
}

.contact textarea {
    resize: vertical;
    min-height: 150px;
}

/* Product Detail Page */
.product-detail {
    padding: 4rem 0;
    background-color: white;
}

.back-btn {
    background: none;
    border: none;
    color: #2c1810;
    font-size: 1rem;
    cursor: pointer;
    margin-bottom: 2rem;
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.back-btn:hover {
    color: #8b4513;
}

.product-detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.product-images {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.main-image {
    background-color: #f8f8f8;
    padding: 1rem;
    border-radius: 8px;
    overflow: hidden;
}

.main-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    max-height: 500px;
}

.thumbnail-images {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 1rem;
}

.thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 2px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.thumbnail:hover, .thumbnail.active {
    border-color: #8b4513;
    transform: scale(1.1);
}

.product-info h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.product-info .price {
    font-size: 1.5rem;
    color: #8b4513;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.description {
    margin-bottom: 2rem;
    line-height: 1.8;
}

.product-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    border: 1px solid #ddd;
    background-color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.quantity-btn:hover {
    background-color: #f0f0f0;
}

#quantity {
    width: 60px;
    padding: 0.5rem;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Cart Page */
.cart {
    padding: 4rem 0;
    background-color: white;
}

.cart-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.cart-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    align-items: center;
}

.cart-item-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 4px;
}

.cart-item-info {
    flex: 1;
}

.cart-item-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.cart-item-price {
    color: #8b4513;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.remove-btn {
    background-color: #ff4d4d;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.remove-btn:hover {
    background-color: #ff3333;
}

.empty-cart {
    text-align: center;
    padding: 3rem 0;
    color: #666;
}

.empty-cart p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.cart-summary {
    background-color: #f8f8f8;
    padding: 2rem;
    border-radius: 8px;
    height: fit-content;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #ddd;
}

.summary-item.total {
    font-weight: 700;
    font-size: 1.2rem;
    border-bottom: none;
    margin-top: 1rem;
}

.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 2rem 0;
}

.payment-method {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

#checkoutBtn {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
}

/* Footer */
footer {
    background-color: #2c1810;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
}

footer p {
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        gap: 1rem;
    }

    nav ul li {
        margin-left: 1rem;
        margin-right: 1rem;
    }

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

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

    .cart-content {
        grid-template-columns: 1fr;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .more-products-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}

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

    .hero h2 {
        font-size: 1.5rem;
    }

    .product-card {
        margin: 0 1rem;
    }

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