/* 现代化Hero Section样式 - 基于Neobrutalism和Glassmorphism设计 */

.modern-hero-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    padding: 20px 15px;
    position: relative;
    overflow: hidden;
    margin-bottom: 15px;
}

.modern-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(212, 175, 55, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.modern-hero-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.modern-hero-header {
    text-align: center;
    margin-bottom: 15px;
}

.modern-hero-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #d4af37;
    margin-bottom: 8px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.modern-hero-header p {
    font-size: 0.9rem;
    color: #ccc;
    margin-bottom: 0;
}

/* 搜索框样式 */
.modern-search-container {
    display: flex;
    max-width: 400px;
    margin: 0 auto 20px;
    gap: 8px;
}

.modern-search-input {
    flex: 1;
    padding: 10px 15px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: #fff;
    font-size: 14px;
    transition: all 0.3s ease;
}

.modern-search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.modern-search-input:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.2);
}

.modern-search-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, #d4af37, #ffd700);
    color: #000;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
    font-size: 14px;
}

.modern-search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

/* 情绪选择器样式 */
.emotion-selector {
    margin-bottom: 20px;
}

.emotion-selector h3 {
    text-align: center;
    color: #d4af37;
    font-size: 1rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.emotion-grid {
    display: flex;
    justify-content: center;
    gap: 15px;
    max-width: 400px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.emotion-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.emotion-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.2), transparent);
    transition: left 0.5s ease;
}

.emotion-card:hover::before {
    left: 100%;
}

.emotion-card:hover {
    transform: translateY(-4px);
    border-color: #d4af37;
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.emotion-card.active {
    background: rgba(212, 175, 55, 0.2);
    border-color: #d4af37;
    transform: scale(1.02);
}

.emotion-icon {
    font-size: 2rem;
    animation: float 3s ease-in-out infinite;
}

.emotion-card span,
.emotion-card small {
    display: none;
}

/* 标签选择器样式 */
.tag-selector {
    margin-bottom: 20px;
}

.tag-selector h3 {
    text-align: center;
    color: #d4af37;
    font-size: 1rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    max-width: 600px;
    margin: 0 auto;
}

.tag-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 6px 12px;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    font-size: 0.8rem;
}

/* 移除标签数量显示 */

.tag-item:hover::after {
    transform: scale(1);
}

.tag-item:hover {
    transform: translateY(-2px);
    border-color: #d4af37;
    background: rgba(212, 175, 55, 0.2);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.tag-item.active {
    background: #d4af37;
    color: #000;
    border-color: #ffd700;
    transform: scale(1.05);
}

.tag-item.recommended {
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.6);
    border-color: #d4af37;
}

/* 统计信息样式已移除 */

/* 动画效果 */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.emotion-card, .tag-item {
    animation: fadeInUp 0.6s ease forwards;
}

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

/* 加载状态 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(212, 175, 55, 0.3);
    border-top: 3px solid #d4af37;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 筛选结果更新动画 */
.readers-grid {
    transition: opacity 0.3s ease;
}

.readers-grid.updating {
    opacity: 0.5;
}

/* 清除筛选按钮 */
.clear-filters-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    margin: 10px auto;
    display: block;
}

.clear-filters-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #d4af37;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .modern-hero-section {
        padding: 15px 10px;
    }

    .modern-hero-header h1 {
        font-size: 1.3rem;
    }

    .modern-hero-header p {
        font-size: 0.8rem;
    }

    .modern-search-container {
        flex-direction: column;
        max-width: 300px;
    }

    .emotion-grid {
        gap: 10px;
        max-width: 300px;
    }

    .emotion-card {
        width: 50px;
        height: 50px;
    }

    .emotion-icon {
        font-size: 1.5rem;
    }

    .tag-cloud {
        gap: 4px;
        max-width: 400px;
    }

    .tag-item {
        padding: 4px 8px;
        font-size: 0.7rem;
    }
}
