/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #000;
    --secondary-color: #fff;
    --accent-color: #333;
    --text-color: #333;
    --light-bg: #f8f8f8;
    --border-color: #e0e0e0;
    --hover-color: #555;
    --transition: all 0.3s ease;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--secondary-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 顶部促销横幅 */
.top-banner {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 12px 0;
    text-align: center;
    font-size: 14px;
}

.top-banner p {
    margin: 4px 0;
}

.top-banner strong {
    font-weight: 700;
}

/* 导航栏 */
.header {
    background-color: var(--secondary-color);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
}

.logo a {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    line-height: 1.4;
    display: block;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-item.has-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--secondary-color);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    min-width: 600px;
    padding: 30px;
    display: none;
    margin-top: 10px;
    z-index: 1001;
}

.nav-item.has-dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.dropdown-section h3 {
    font-size: 16px;
    margin-bottom: 15px;
    color: var(--primary-color);
    text-transform: uppercase;
}

.dropdown-section ul {
    list-style: none;
}

.dropdown-section ul li {
    margin-bottom: 8px;
}

.dropdown-section a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

.dropdown-section a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-btn,
.cart-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-color);
    display: flex;
    align-items: center;
    padding: 8px;
    transition: var(--transition);
}

.search-btn:hover,
.cart-btn:hover {
    color: var(--primary-color);
}

.cart-btn {
    position: relative;
}

.cart-count {
    position: absolute;
    top: 0;
    right: 0;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-link {
    color: var(--text-color);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

.login-link:hover {
    color: var(--primary-color);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 2px;
    background-color: var(--text-color);
    transition: var(--transition);
}

/* Hero 区域 */
.hero {
    background: linear-gradient(135deg, var(--light-bg) 0%, var(--secondary-color) 100%);
    padding: 80px 0;
    text-align: center;
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.hero-subtitle {
    font-size: 32px;
    margin-bottom: 10px;
}

.hero-code {
    font-size: 18px;
    margin-bottom: 30px;
    color: var(--text-color);
}

.btn-primary {
    display: inline-block;
    padding: 15px 40px;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-color);
}

/* 区块标题 */
.section-title {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 50px;
    text-transform: lowercase;
    letter-spacing: 2px;
}

/* 热门分类 */
.top-collections {
    padding: 80px 0;
    background-color: var(--secondary-color);
}

.collections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px;
}

.collection-card {
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.collection-card:hover {
    transform: translateY(-5px);
}

.collection-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    background-color: var(--light-bg);
    margin-bottom: 15px;
}

.collection-card h3 {
    font-size: 18px;
    font-weight: 600;
}

/* 热门产品 */
.top-products {
    padding: 80px 0;
    background-color: var(--light-bg);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background-color: var(--secondary-color);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.product-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    background-color: var(--light-bg);
    display: block;
}

.product-info {
    padding: 20px;
}

.product-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-color);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-reviews {
    font-size: 14px;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.product-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.product-price .original {
    font-size: 16px;
    color: var(--accent-color);
    text-decoration: line-through;
    margin-left: 10px;
}

.add-to-cart-btn {
    width: 100%;
    padding: 12px;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
}

.add-to-cart-btn:hover {
    background-color: var(--hover-color);
}

/* 客户评价 */
.testimonials {
    padding: 80px 0;
    background-color: var(--secondary-color);
}

.testimonials-header {
    text-align: center;
    margin-bottom: 60px;
}

.testimonials-header h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
}

.testimonials-header h3 {
    font-size: 24px;
    font-weight: 400;
    color: var(--accent-color);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.testimonial-card {
    padding: 30px;
    background-color: var(--light-bg);
    border-radius: 8px;
}

.testimonial-text {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-author {
    font-weight: 600;
    color: var(--primary-color);
}

/* 品牌故事 */
.brand-story {
    padding: 80px 0;
    background-color: var(--light-bg);
    text-align: center;
}

.brand-story h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 30px;
}

.brand-story p {
    font-size: 18px;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
    color: var(--accent-color);
}

/* 特色服务 */
.features {
    padding: 80px 0;
    background-color: var(--secondary-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: center;
}

.feature-item {
    padding: 30px;
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.feature-item h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
}

.feature-item p {
    font-size: 16px;
    color: var(--accent-color);
    line-height: 1.6;
}

/* 邮件订阅 */
.newsletter {
    padding: 80px 0;
    background-color: var(--light-bg);
    text-align: center;
}

.newsletter h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
}

.newsletter p {
    font-size: 18px;
    color: var(--accent-color);
    margin-bottom: 30px;
}

.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    gap: 10px;
}

.newsletter-form input {
    flex: 1;
    padding: 15px 20px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 16px;
}

.newsletter-form button {
    padding: 15px 30px;
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
    opacity: 0.8;
}

.footer-section a:hover {
    opacity: 1;
}

.footer-section p {
    font-size: 14px;
    margin-bottom: 10px;
    opacity: 0.8;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 15px;
}

.social-links a {
    font-size: 14px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom p {
    font-size: 14px;
    opacity: 0.8;
}


