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

:root {
    /* 小红书主题色 */
    --primary-color: #ff2442;
    --primary-light: #ff6b7a;
    --primary-dark: #e01e3a;
    --secondary-color: #ff8a95;
    --accent-color: #ffb3ba;
    --background-light: #fff5f7;
    --background-white: #ffffff;
    --text-primary: #333333;
    --text-secondary: #666666;
    --text-light: #999999;
    --border-color: #f0f0f0;
    --shadow-light: 0 2px 12px rgba(255, 36, 66, 0.1);
    --shadow-medium: 0 4px 20px rgba(255, 36, 66, 0.15);
    --shadow-hover: 0 8px 30px rgba(255, 36, 66, 0.2);
    --gradient-primary: linear-gradient(135deg, #ff2442 0%, #ff6b7a 100%);
    --gradient-secondary: linear-gradient(135deg, #ff8a95 0%, #ffb3ba 100%);
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background-light);
}

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

/* 导航栏 */
.navbar {
    background: var(--background-white);
    box-shadow: var(--shadow-light);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo h1 {
    color: var(--primary-color);
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-logo i {
    font-size: 28px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    margin: 3px 0;
    transition: 0.3s;
}

/* 主页横幅 */
.hero {
    background: var(--gradient-primary);
    color: white;
    padding: 120px 0 80px;
    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 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

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

.hero-content h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.95;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 40px;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    opacity: 0.9;
}

/* 博主展示区域 */
.bloggers-section {
    padding: 80px 0;
    background: var(--background-white);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h3 {
    font-size: 36px;
    color: var(--text-primary);
    margin-bottom: 15px;
    font-weight: 700;
}

.section-header p {
    font-size: 18px;
    color: var(--text-secondary);
}

/* 筛选标签 */
.filter-tags {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.tag-btn {
    padding: 10px 25px;
    border: 2px solid var(--border-color);
    background: var(--background-white);
    color: var(--text-secondary);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 14px;
}

.tag-btn:hover,
.tag-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-light);
}

/* 博主卡片网格 */
.bloggers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.blogger-card {
    background: var(--background-white);
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.blogger-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.blogger-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.blogger-card:hover::before {
    opacity: 1;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary-light);
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blogger-info h4 {
    font-size: 18px;
    color: var(--text-primary);
    margin-bottom: 5px;
    font-weight: 600;
}

.category-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.category-tag.skincare {
    background: rgba(255, 36, 66, 0.1);
    color: var(--primary-color);
}

.category-tag.makeup {
    background: rgba(255, 138, 149, 0.1);
    color: var(--secondary-color);
}

.category-tag.hair {
    background: rgba(255, 179, 186, 0.1);
    color: #ff6b9d;
}

.category-tag.general {
    background: rgba(102, 102, 102, 0.1);
    color: var(--text-secondary);
}

.card-body {
    margin-bottom: 25px;
}

.specialty {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 10px;
    font-size: 14px;
}

.style-desc {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.style-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.feature-tag {
    padding: 4px 10px;
    background: var(--background-light);
    color: var(--text-secondary);
    border-radius: 10px;
    font-size: 12px;
    border: 1px solid var(--border-color);
}

.card-footer {
    text-align: center;
}

.use-btn {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow-light);
}

.use-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.use-btn i {
    font-size: 18px;
}

/* 使用介绍区域 */
.guide-section {
    padding: 80px 0;
    background: var(--background-light);
}

.guide-section h3 {
    text-align: center;
    font-size: 36px;
    color: var(--text-primary);
    margin-bottom: 60px;
    font-weight: 700;
}

.guide-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.step {
    text-align: center;
    padding: 30px;
    background: var(--background-white);
    border-radius: 20px;
    box-shadow: var(--shadow-light);
    transition: transform 0.3s ease;
}

.step:hover {
    transform: translateY(-5px);
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    margin: 0 auto 20px;
}

.step h4 {
    font-size: 20px;
    color: var(--text-primary);
    margin-bottom: 15px;
    font-weight: 600;
}

.step p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

/* 页脚 */
.footer {
    background: var(--text-primary);
    color: white;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.footer-section p,
.footer-section li {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--background-white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-light);
        padding: 20px 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero-content h2 {
        font-size: 32px;
    }
    
    .hero-content p {
        font-size: 16px;
    }
    
    .hero-stats {
        gap: 30px;
    }
    
    .stat-number {
        font-size: 28px;
    }
    
    .bloggers-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .blogger-card {
        padding: 20px;
    }
    
    .filter-tags {
        gap: 10px;
    }
    
    .tag-btn {
        padding: 8px 16px;
        font-size: 12px;
    }
    
    .guide-steps {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-content h2 {
        font-size: 24px;
    }
    
    .section-header h3 {
        font-size: 24px;
    }
    
    .bloggers-grid {
        grid-template-columns: 1fr;
    }
    
    .blogger-card {
        padding: 20px 15px;
    }
}

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

.blogger-card {
    animation: fadeInUp 0.6s ease forwards;
}

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

/* 隐藏类 */
.hidden {
    display: none !important;
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}