
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #c99e66;
    --primary-dark: #a87b51;
    --light: #f9f5f0;
    --dark: #5a4a42;
    --medium: #8e7d70;
    --accent-1: #e8daca;
    --accent-2: #d4c1a7;
    --indian-yellow: #d97706;
    --turquoise-blue: #0e7490;
    --sakura-pink: #f9a8d4;
}

body {
    background-color: var(--light);
    color: var(--dark);
    font-family: 'Montserrat', sans-serif;
    line-height: 1.7;
    overflow-x: hidden;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><path d="M20,20 Q40,5 50,20 T80,20 M20,50 Q40,35 50,50 T80,50 M20,80 Q40,65 50,80 T80,80" fill="none" stroke="%23e8daca" stroke-width="0.5" opacity="0.3"/></svg>');
    background-size: 300px;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
}

.container {
    width: 100%;
    max-width: 1800px;
    margin: 0 auto;
    position: relative;
}

section {
    padding: 80px 0;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.4s ease;
    border: 2px solid var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    cursor: pointer;
}

.btn:hover {
    background-color: transparent;
    color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* 头部样式 */
header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(249, 245, 240, 0.95);
    padding: 20px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    transition: all 0.4s ease;
}

.header-container {
    width: 90%;
    max-width: 1800px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo h1 {
    font-size: 2.2rem;
    color: var(--dark);
    font-weight: 700;
    letter-spacing: 1px;
}

.logo i {
    color: var(--primary);
    margin-right: 12px;
    font-size: 2.5rem;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin: 0 20px;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    font-size: 1.1rem;
    padding: 8px 0;
    position: relative;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.header-icons {
    display: flex;
}

.header-icons a {
    margin-left: 25px;
    color: var(--dark);
    font-size: 1.4rem;
    transition: color 0.3s ease;
    position: relative;
}

.header-icons a:hover {
    color: var(--primary);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--indian-yellow);
    color: white;
    font-size: 0.7rem;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* 面包屑导航 */
.breadcrumb {
    width: 90%;
    max-width: 1800px;
    margin: 40px auto 20px;
    padding: 0 20px;
}

.breadcrumb a {
    color: var(--medium);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb span {
    color: var(--primary);
    margin: 0 10px;
}

/* 购物车面板 */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cart-panel {
    position: fixed;
    top: 0;
    right: -450px;
    width: 450px;
    height: 100%;
    background: white;
    z-index: 2100;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    transition: right 0.4s ease;
}

@media (max-width: 500px) {
    .cart-panel {
        width: 100%;
        right: -100%;
    }
}

.cart-header {
    padding: 25px 30px;
    border-bottom: 1px solid var(--accent-1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h3 {
    font-size: 1.5rem;
    color: var(--dark);
    display: flex;
    align-items: center;
}

.cart-header h3 i {
    margin-right: 10px;
    color: var(--primary);
}

.close-cart {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--medium);
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-cart:hover {
    color: var(--primary);
    transform: rotate(90deg);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px 30px;
}

.cart-item {
    display: flex;
    padding: 20px 0;
    border-bottom: 1px solid var(--accent-1);
}

.cart-item-image {
    width: 100px;
    height: 100px;
    border-radius: 10px;
    overflow: hidden;
    margin-right: 20px;
    background: var(--accent-1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-image i {
    font-size: 2.5rem;
    color: var(--primary);
}

.cart-item-details {
    flex: 1;
}

.cart-item-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--dark);
}

.cart-item-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.cart-item-price {
    font-weight: 600;
    color: var(--primary);
}

.cart-item-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.quantity-control {
    display: flex;
    align-items: center;
    border: 1px solid var(--accent-1);
    border-radius: 30px;
    padding: 5px 15px;
}

.quantity-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--medium);
    cursor: pointer;
    transition: all 0.3s ease;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-btn:hover {
    color: var(--primary);
}

.quantity-input {
    width: 40px;
    text-align: center;
    border: none;
    background: none;
    font-size: 1.1rem;
    color: var(--dark);
    font-weight: 500;
}

.remove-item {
    background: none;
    border: none;
    color: var(--medium);
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.remove-item:hover {
    color: #e74c3c;
}

.cart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 40px;
    text-align: center;
}

.cart-empty i {
    font-size: 4rem;
    color: var(--accent-1);
    margin-bottom: 20px;
}

.cart-empty h4 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--dark);
}

.cart-empty p {
    color: var(--medium);
    margin-bottom: 30px;
}

.cart-footer {
    padding: 30px;
    border-top: 1px solid var(--accent-1);
    background: white;
}

.cart-summary {
    margin-bottom: 25px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.summary-label {
    color: var(--medium);
}

.summary-value {
    font-weight: 600;
    color: var(--dark);
}

.total-row {
    padding-top: 15px;
    border-top: 1px solid var(--accent-1);
    font-size: 1.3rem;
    font-weight: 700;
}

.total-row .summary-value {
    color: var(--primary);
}

.promo-code {
    margin-bottom: 25px;
    position: relative;
}

.promo-code input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid var(--accent-1);
    border-radius: 50px;
    font-size: 1.05rem;
    transition: all 0.3s ease;
}

.promo-code input:focus {
    outline: none;
    border-color: var(--primary);
}

.promo-code button {
    position: absolute;
    right: 5px;
    top: 5px;
    padding: 10px 25px;
    background: var(--dark);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.promo-code button:hover {
    background: var(--primary);
}

.checkout-btn {
    width: 100%;
    padding: 16px;
    font-size: 1.1rem;
    background: var(--primary);
    border-color: var(--primary);
}

.checkout-btn:hover {
    background: var(--primary-dark);
    color: white;
}

/* 页脚 */
footer {
    background-color: var(--dark);
    color: var(--accent-1);
    padding: 100px 0 30px;
    position: relative;
}

.footer-container {
    width: 90%;
    max-width: 1800px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 60px;
}

.footer-col h3 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
    color: white;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--primary);
    border-radius: 2px;
}

.footer-col p {
    margin-bottom: 20px;
    line-height: 1.8;
    color: var(--accent-2);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: var(--accent-2);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 1.05rem;
}

.footer-links a:hover {
    color: var(--primary);
}

.social-links {
    display: flex;
    margin-top: 25px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background-color: rgba(212, 193, 167, 0.2);
    border-radius: 50%;
    margin-right: 15px;
    color: var(--accent-1);
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.social-links a:hover {
    background-color: var(--primary);
    transform: translateY(-5px);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(212, 193, 167, 0.3);
    font-size: 1rem;
    color: var(--accent-2);
    max-width: 1600px;
    margin: 0 auto;
}

/* 通用响应式调整 */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}