/* 全局变量与重置 */
:root {
    --cr-primary: #c62a2f;   /* 中国红 */
    --cr-gold: #d4af37;       /* 金色 */
    --cr-dark: #1e1e1e;
    --cr-gray: #f8f6f2;
    --cr-text: #4a4a4a;
    --shadow: 0 8px 24px rgba(0,0,0,0.05);
    --radius: 12px;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Inter', sans-serif;
    color: var(--cr-text);
    background: #fff;
    line-height: 1.5;
}
h1, h2, h3, h4, h5, h6 {
    font-family: 'Urbanist', sans-serif;
    font-weight: 700;
    color: var(--cr-dark);
}
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}
/* 按钮风格 */
.btn-primary, .btn-outline, .add-to-cart-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 28px;
    border-radius: 40px;
    font-weight: 600;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}
.btn-primary {
    background: var(--cr-primary);
    color: white;
}
.btn-primary:hover {
    background: #a51e22;
    transform: translateY(-2px);
}
.btn-outline {
    border: 1px solid var(--cr-primary);
    color: var(--cr-primary);
    background: transparent;
}
.btn-outline:hover {
    background: var(--cr-primary);
    color: white;
}
.add-to-cart-btn {
    background: var(--cr-gold);
    color: #1e1e1e;
    width: 100%;
    justify-content: center;
    margin-top: 12px;
}
.add-to-cart-btn:hover {
    background: #b8942e;
}
/* 顶部栏 */
.top-bar {
    background: rgba(0,0,0,0.03);
    font-size: 13px;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}
.top-bar .container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
.top-links a, .currency {
    margin-right: 20px;
}
.top-links a:hover, .currency:hover {
    color: var(--cr-primary);
}
/* 头部 */
.main-header {
    background: white;
    padding: 20px 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 999;
}
.header-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}
.logo img {
    max-height: 45px;
}
.search-form {
    flex: 1;
    max-width: 500px;
    position: relative;
}
.search-form input {
    width: 100%;
    padding: 12px 20px;
    border-radius: 60px;
    border: 1px solid #e2e2e2;
    background: #fafafa;
}
.header-actions {
    display: flex;
    gap: 18px;
}
.action-icon {
    font-size: 20px;
    cursor: pointer;
    position: relative;
}
.count-badge {
    background: var(--cr-primary);
    color: white;
    font-size: 10px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    position: absolute;
    top: -8px;
    right: -12px;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* 导航 */
.nav-menu {
    background: white;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}
.nav-list {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    list-style: none;
    padding: 14px 0;
}
.nav-list a {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}
.nav-list a:hover {
    color: var(--cr-primary);
}
/* 滑块 */
.hero-slider {
    margin: 30px 0 60px;
}
.swiper-slide {
    border-radius: var(--radius);
    min-height: 520px;
    background-size: cover;
    display: flex;
    align-items: center;
}
.slide-content {
    max-width: 550px;
    padding: 40px;
    color: white;
}
.slide-content h2 {
    font-size: 48px;
    color: white;
}
/* 分类网格 */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px,1fr));
    gap: 24px;
    margin: 40px 0;
}
.category-card {
    background: white;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: 0.2s;
}
.category-card:hover {
    transform: translateY(-6px);
}
/* 产品选项卡 */
.tabs-header {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
    border-bottom: 2px solid #eee;
}
.tab-btn {
    background: none;
    border: none;
    font-size: 18px;
    font-weight: 700;
    padding: 12px 0;
    cursor: pointer;
    color: #6b6b6b;
    transition: 0.2s;
}
.tab-btn.active {
    color: var(--cr-primary);
    border-bottom: 2px solid var(--cr-primary);
}
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px,1fr));
    gap: 30px;
}
.product-card {
    background: white;
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    text-align: center;
}
.product-card img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 8px;
}
.product-title {
    font-size: 16px;
    margin: 12px 0 8px;
}
/* 品牌区域 */
.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px,1fr));
    gap: 20px;
    margin: 50px 0;
}
.brand-item {
    background-size: cover;
    background-position: center;
    padding: 60px 20px;
    border-radius: var(--radius);
    text-align: center;
    color: white;
}
/* 热点区域 */
.hotspot-section {
    margin: 70px 0;
}
.hotspot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px,1fr));
    gap: 24px;
}
.hotspot-image {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
}
.hotspot-dot {
    position: absolute;
    width: 38px;
    height: 38px;
    background: var(--cr-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #1e1e1e;
    transition: 0.2s;
}
/* 博客卡片 */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px,1fr));
    gap: 30px;
    margin: 50px 0;
}
.blog-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}
/* 底部 */
.footer {
    background: #111;
    color: #ccc;
    padding: 60px 0 30px;
    margin-top: 70px;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px,1fr));
    gap: 40px;
}
.footer h4 {
    color: white;
}
.social-icons {
    display: flex;
    gap: 12px;
}
@media (max-width: 768px) {
    .header-grid { flex-direction: column; }
    .slide-content h2 { font-size: 32px; }
}