/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #4a90e2;
    --secondary-color: #50c878;
    --accent-color: #ff6b6b;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e1e8ed;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 
                 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-light);
    overflow-x: hidden;
}

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

/* 顶部导航 */
.header {
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 12px 0;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 2px;
}

.tagline {
    font-size: 12px;
    color: var(--text-light);
    font-weight: 400;
}

.nav {
    display: flex;
    gap: 24px;
}

.nav a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

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

.nav a:hover::after {
    width: 100%;
}

/* 主横幅 */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 60px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120"><path fill="rgba(255,255,255,0.05)" d="M0,0 C300,80 600,80 900,40 L1200,20 L1200,120 L0,120 Z"/></svg>') no-repeat bottom;
    background-size: cover;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 36px;
    font-weight: 700;
    color: white;
    margin-bottom: 12px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 32px;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.feature-item {
    text-align: center;
}

.feature-icon {
    font-size: 40px;
    margin-bottom: 8px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}

.feature-text {
    font-size: 16px;
    color: white;
    font-weight: 500;
}

/* 通用区块样式 */
.section {
    padding: 50px 0;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 32px;
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.title-icon {
    font-size: 32px;
}

.title-desc {
    font-size: 14px;
    color: var(--text-light);
    font-weight: 400;
}

/* 福利专区 */
.welfare-section {
    background: var(--bg-white);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 24px 16px;
    text-align: center;
    border: 2px solid var(--border-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.card:hover::before {
    transform: scaleX(1);
}

.card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--accent-color);
    color: white;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.card-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.card-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.card-desc {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 16px;
    line-height: 1.5;
}

.card-btn {
    display: inline-block;
    padding: 10px 24px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.card-btn:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

/* 卡片特定颜色 */
.card-highlight .card-badge { background: #ff6b6b; }
.card-radar .card-badge { background: #4ecdc4; }
.card-lucky .card-badge { background: #ffe66d; color: var(--text-dark); }
.card-limited .card-badge { background: #ff6348; }
.card-selected .card-badge { background: #a29bfe; }

/* 热卖专区 */
.hotlist-section {
    background: var(--bg-light);
}

.hotlist-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.hotlist-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 20px 16px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.hotlist-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.hotlist-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.hotlist-header h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
}

.hotlist-tag {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    color: white;
}

.hotlist-tag.seckill { background: #e74c3c; }
.hotlist-tag.recommend { background: #3498db; }
.hotlist-tag.quality { background: #2ecc71; }
.hotlist-tag.hot { background: #e67e22; }
.hotlist-tag.group { background: #9b59b6; }

.hotlist-desc {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 14px;
}

.hotlist-btn {
    display: block;
    width: 100%;
    padding: 9px 0;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 14px;
    text-align: center;
    transition: var(--transition);
}

.hotlist-btn:hover {
    background: #357abd;
    transform: scale(1.02);
}

/* 关于我们 */
.about-section {
    background: var(--bg-white);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 16px;
}

/* 页脚 */
.footer {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    padding: 32px 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.copyright {
    font-size: 14px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
}

.copyright a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: var(--transition);
}

.copyright a:hover {
    color: white;
    text-decoration: underline;
}

.beian-link {
    text-decoration: none;
}

.wa_desc {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.beian-link:hover .wa_desc {
    color: white;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .hotlist-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hotlist-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 12px;
    }
    
    .nav {
        gap: 16px;
    }
    
    .hero {
        padding: 40px 0;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .hero-subtitle {
        font-size: 14px;
    }
    
    .hero-features {
        gap: 24px;
    }
    
    .section {
        padding: 36px 0;
    }
    
    .section-title {
        font-size: 22px;
        margin-bottom: 24px;
        flex-wrap: wrap;
    }
    
    .title-icon {
        font-size: 24px;
    }
    
    .title-desc {
        font-size: 12px;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .hotlist-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .hero {
        padding: 36px 0;
    }
    
    .hero-title {
        font-size: 24px;
    }
    
    .hero-subtitle {
        font-size: 13px;
    }
    
    .feature-icon {
        font-size: 32px;
    }
    
    .feature-text {
        font-size: 13px;
    }
    
    .card {
        padding: 20px 16px;
    }
    
    .card-icon {
        font-size: 40px;
    }
    
    .section-title {
        font-size: 18px;
        gap: 8px;
    }
    
    .title-icon {
        font-size: 20px;
    }
    
    .title-desc {
        font-size: 11px;
    }
    
    .section {
        padding: 30px 0;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card, .hotlist-card {
    animation: fadeInUp 0.6s ease-out backwards;
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }
.card:nth-child(5) { animation-delay: 0.5s; }

.hotlist-card:nth-child(1) { animation-delay: 0.1s; }
.hotlist-card:nth-child(2) { animation-delay: 0.2s; }
.hotlist-card:nth-child(3) { animation-delay: 0.3s; }
.hotlist-card:nth-child(4) { animation-delay: 0.4s; }
.hotlist-card:nth-child(5) { animation-delay: 0.5s; }