
/* 全局变量与重置 */
:root {
    --primary-color: #8d6e63; /* 暖棕色 */
    --secondary-color: #d7ccc8; /* 浅米色 */
    --accent-color: #ff7043; /* 活力橙 */
    --text-dark: #3e2723;
    --text-light: #6d4c41;
    --bg-white: #ffffff;
    --bg-soft: #fdfbf7; /* 极淡的米黄背景 */
    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

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

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-white);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

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

.logo span {
    color: var(--text-dark);
}

.navbar nav a {
    margin-left: 2rem;
    font-weight: 500;
    color: var(--text-dark);
}

.navbar nav a:hover {
    color: var(--primary-color);
}

.btn-cart {
    padding: 0.5rem 1.2rem;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 0.9rem;
}

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

/* 英雄区域 */
.hero {
    height: 90vh;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('https://picsum.photos/1920/1080?random=8') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
}

.hero-content {
    max-width: 800px;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.2);
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-tags {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    font-weight: 500;
}

.btn-primary {
    display: inline-block;
    padding: 1rem 3rem;
    background: white;
    color: var(--primary-color);
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.btn-primary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

/* 通用部分样式 */
.section-container {
    padding: 5rem 5%;
}

.bg-soft {
    background-color: var(--bg-soft);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.section-header p {
    color: var(--text-light);
}

/* 系列精选：不对称网格 */
.collection-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 1.5rem;
}

.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.product-card.large {
    grid-column: span 2;
    grid-row: span 2;
}

.product-card.medium {
    grid-column: span 2;
}

.card-img {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.large .card-img { height: 100%; min-height: 300px; }
.medium .card-img { height: 250px; }

.badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    color: white;
}

.badge.new { background: var(--accent-color); }
.badge.hot { background: #e53935; }

.card-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

.desc {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.price {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--primary-color);
}

.btn-buy {
    padding: 0.5rem 1rem;
    border: 1px solid var(--secondary-color);
    border-radius: 20px;
    font-size: 0.9rem;
}

.btn-buy:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* 面料工艺 */
.material-flex {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.material-item {
    flex: 1;
    min-width: 200px;
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}

.icon-box {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.material-item h3 {
    margin-bottom: 0.8rem;
    color: var(--text-dark);
}

.material-item p {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* 用户评价 */
.review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.review-card {
    background: var(--bg-soft);
    padding: 2rem;
    border-radius: 12px;
    position: relative;
}

.review-card p {
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.review-card footer {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.review-card img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.review-card cite {
    font-weight: bold;
    color: var(--primary-color);
    font-style: normal;
}

/* 页脚 */
footer {
    background: #3e2723;
    color: white;
    padding: 4rem 5% 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-col h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.footer-col h4 {
    margin-bottom: 1rem;
    color: #d7ccc8;
}

.footer-col ul li {
    margin-bottom: 0.5rem;
}

.footer-col ul li a {
    color: #bcaaa4;
    font-size: 0.9rem;
}

.footer-col ul li a:hover {
    color: white;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
}

.newsletter-form input {
    padding: 0.5rem;
    border-radius: 4px;
    border: none;
    background: #5d4037;
    color: white;
}

.newsletter-form button {
    padding: 0.5rem 1rem;
    background: var(--secondary-color);
    color: var(--text-dark);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.copyright {
    text-align: center;
    border-top: 1px solid #5d4037;
    padding-top: 2rem;
    color: #bcaaa4;
    font-size: 0.8rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .hero-tags { flex-direction: column; gap: 0.5rem; }
    .navbar nav { display: none; }
    
    .collection-grid {
        grid-template-columns: 1fr;
    }
    .product-card.large, .product-card.medium {
        grid-column: span 1;
        grid-row: span 1;
    }
    .card-img { height: 200px !important; }
}
