/* 漫糖屋 - 首页样式 */

.hero-section {
    text-align: center;
    padding: 20px 0;
    margin-bottom: 30px;
}

.hero-title {
    font-size: 3rem;
    background: linear-gradient(135deg, var(--primary-pink) 0%, var(--purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.hero-icon {
    width: 48px;
    height: 48px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.sparkle-icon {
    width: 20px;
    height: 20px;
}

.tags-section {
    background: white;
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 40px;
    box-shadow: 0 8px 30px var(--shadow);
}

.section-title {
    font-size: 1.3rem;
    color: var(--primary-pink);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-icon {
    width: 24px;
    height: 24px;
}

.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    max-height: 170px;
    overflow: hidden;
}

.tag-large {
    padding: 10px 24px;
    font-size: 1rem;
}

.comics-section {
    margin-bottom: 40px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

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

@media (max-width: 1024px) {
    .comics-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .comics-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .comics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

.comic-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px var(--shadow);
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--text);
    display: block;
}

.comic-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 40px rgba(255, 158, 181, 0.4);
}

.comic-cover {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    background: linear-gradient(135deg, var(--light-pink), var(--cream));
}

.comic-info {
    padding: 20px;
}

.comic-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.comic-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 10px;
}

.comic-tag {
    font-size: 0.75rem;
    padding: 4px 10px;
    background: var(--light-pink);
    color: var(--primary-pink);
    border-radius: 15px;
}

.comic-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-light);
}

.comic-pages {
    display: flex;
    align-items: center;
    gap: 5px;
}

.page-icon {
    width: 16px;
    height: 16px;
}

.filter-info {
    background: var(--light-pink);
    padding: 15px 25px;
    border-radius: 15px;
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.clear-filter {
    color: var(--primary-pink);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.clear-filter:hover {
    text-decoration: underline;
}

.close-icon {
    width: 14px;
    height: 14px;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-icon-svg {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
}

.empty-text {
    font-size: 1.2rem;
    color: var(--text-light);
}

.arrow-icon {
    width: 16px;
    height: 16px;
    display: inline-block;
    vertical-align: middle;
}

/* 首页特有样式（从 index.html 提取） */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.view-all-btn {
    color: var(--primary-pink);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.view-all-btn:hover {
    transform: translateX(5px);
}

.hot-section {
    margin-bottom: 40px;
}

.latest-section {
    margin-bottom: 20px;
}

.section-title-with-icon {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text);
    margin: 0;
}

.hot-icon {
    width: 28px;
    height: 28px;
    fill: #FF6B6B;
}

.new-icon {
    width: 28px;
    height: 28px;
    fill: var(--primary-pink);
}

.rank-number {
    position: absolute;
    top: 5px;
    left: 5px;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--primary-pink) 0%, var(--purple) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.9rem;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.rank-number.top3 {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
}

.comic-card {
    position: relative;
}

.view-count {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--text-light);
    font-size: 0.85rem;
}

.view-count svg {
    width: 14px;
    height: 14px;
}

.update-time {
    color: var(--text-light);
    font-size: 0.85rem;
}
