/* 分类信息卡片优化样式 */
.category-info-card-wrapper {
    perspective: 1000px;
}

.category-info-card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.category-info-card:hover {
    transform: translateY(-8px) rotateX(5deg);
    box-shadow: 0 30px 60px rgba(102, 126, 234, 0.25);
}

.category-hero-section {
    position: relative;
    min-height: 280px;
    overflow: hidden;
}

.category-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 60%, rgba(255,255,255,0.05) 0%, transparent 50%);
    background-size: 200px 200px, 300px 300px, 250px 250px;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-10px) rotate(1deg); }
    66% { transform: translateY(5px) rotate(-1deg); }
}

.category-content-overlay {
    position: relative;
    z-index: 2;
    padding: 2rem;
    color: #fff;
}

.category-main-info {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.category-header-group {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.category-icon-wrapper {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 1rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
}

.category-icon {
    font-size: 2rem;
    color: #fff;
    display: block;
}

.category-title-group {
    flex: 1;
}

.category-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 0.75rem 0;
    color: #fff;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

.category-badge-wrapper {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.category-count-badge {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    text-shadow: none;
}

.category-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

.category-description p {
    margin-bottom: 0.5rem;
}

.category-stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.stats-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.25);
    padding: 0.75rem 1.25rem;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.stats-icon {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
}

.category-views-info {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
    font-size: 0.95rem;
}

/* 热门分类排行优化样式 */
.popular-categories-section {
    background: rgba(255, 255, 255, 0.25);
    border-radius: 20px;
    padding: 1.5rem;
    height: fit-content;
}

.section-header {
    margin-bottom: 1.25rem;
}

.section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.trending-icon {
    color: #ff6b6b;
    font-size: 1.2rem;
    filter: drop-shadow(0 2px 4px rgba(255, 107, 107, 0.3));
}

.popular-categories-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.popular-category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.popular-category-item:last-child {
    border-bottom: none;
}

.popular-category-item:hover {
    transform: translateX(5px);
    background: rgba(255, 255, 255, 0.1);
    margin: 0 -1rem;
    padding-left: 1rem;
    padding-right: 1rem;
    border-radius: 10px;
}

.popular-category-item .rank {
    font-weight: 700;
    color: rgba(255, 255, 255, 0.7);
    margin-right: 0.75rem;
    min-width: 20px;
    font-size: 0.9rem;
}

.popular-category-item:nth-child(1) .rank { 
    color: #FFD700; 
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}
.popular-category-item:nth-child(2) .rank { 
    color: #C0C0C0; 
    text-shadow: 0 0 8px rgba(192, 192, 192, 0.5);
}
.popular-category-item:nth-child(3) .rank { 
    color: #CD7F32; 
    text-shadow: 0 0 8px rgba(205, 127, 50, 0.5);
}

.popular-category-item a {
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    flex: 1;
    margin: 0 0.75rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.popular-category-item a:hover {
    color: #fff;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

.popular-category-item .views-count {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    backdrop-filter: blur(5px);
}

/* 响应式优化 */
@media (max-width: 1199px) {
    .category-content-overlay {
        padding: 1.75rem;
    }
    
    .category-title {
        font-size: 2.25rem;
    }
}

@media (max-width: 991px) {
    .category-info-card {
        border-radius: 20px;
        margin: 0 0.5rem;
    }
    
    .category-title {
        font-size: 2rem;
    }
    
    .category-content-overlay {
        padding: 1.5rem;
    }
    
    .category-header-group {
        flex-direction: column;
        gap: 1.25rem;
        text-align: center;
        align-items: center;
    }
    
    .category-icon-wrapper {
        margin: 0 auto;
    }
    
    .category-badge-wrapper {
        justify-content: center;
    }
    
    .category-stats {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .popular-categories-section {
        margin-top: 2rem;
        padding: 1.25rem;
    }
    
    .section-title {
        font-size: 1rem;
        justify-content: center;
    }
}

@media (max-width: 767px) {
    .category-info-card {
        border-radius: 16px;
        margin: 0;
    }
    
    .category-info-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 15px 30px rgba(102, 126, 234, 0.2);
    }
    
    .category-hero-section {
        min-height: 200px;
    }
    
    .category-title {
        font-size: 1.75rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }
    
    .category-content-overlay {
        padding: 1.25rem;
    }
    
    .category-header-group {
        gap: 1rem;
        margin-bottom: 1.25rem;
    }
    
    .category-icon-wrapper {
        padding: 0.75rem;
        border-radius: 12px;
    }
    
    .category-icon {
        font-size: 1.5rem;
    }
    
    .category-count-badge {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
        border-radius: 25px;
    }
    
    .category-description {
        font-size: 1rem;
        line-height: 1.5;
        margin-bottom: 1.25rem;
        text-align: center;
    }
    
    .category-stats {
        justify-content: center;
        gap: 0.75rem;
    }
    
    .stats-item {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
        gap: 0.5rem;
        border-radius: 25px;
    }
    
    .stats-icon {
        font-size: 1rem;
    }
    
    .popular-categories-section {
        margin-top: 1.5rem;
        padding: 1rem;
        border-radius: 16px;
    }
    
    .section-header {
        margin-bottom: 1rem;
    }
    
    .section-title {
        font-size: 0.95rem;
    }
    
    .trending-icon {
        font-size: 1rem;
    }
    
    .popular-category-item {
        padding: 0.5rem 0;
        font-size: 0.9rem;
    }
    
    .popular-category-item .rank {
        min-width: 18px;
        font-size: 0.85rem;
        margin-right: 0.5rem;
    }
    
    .popular-category-item a {
        margin: 0 0.5rem;
        font-size: 0.9rem;
    }
    
    .popular-category-item .views-count {
        font-size: 0.8rem;
        padding: 0.2rem 0.4rem;
        border-radius: 8px;
    }
    
    .popular-category-item:hover {
        margin: 0 -0.75rem;
        padding-left: 0.75rem;
        padding-right: 0.75rem;
        border-radius: 8px;
    }
}

@media (max-width: 575px) {
    .category-info-card-wrapper {
        margin-bottom: 1rem;
    }
    
    .category-info-card {
        border-radius: 12px;
    }
    
    .category-hero-section {
        min-height: 180px;
    }
    
    .category-title {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }
    
    .category-content-overlay {
        padding: 1rem;
    }
    
    .category-header-group {
        gap: 0.75rem;
        margin-bottom: 1rem;
    }
    
    .category-icon-wrapper {
        padding: 0.6rem;
        border-radius: 10px;
    }
    
    .category-icon {
        font-size: 1.25rem;
    }
    
    .category-count-badge {
        padding: 0.35rem 0.7rem;
        font-size: 0.8rem;
        border-radius: 20px;
    }
    
    .category-description {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }
    
    .category-stats {
        gap: 0.5rem;
        flex-direction: column;
        align-items: center;
    }
    
    .stats-item {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
        border-radius: 20px;
        min-width: 0;
        width: auto;
    }
    
    .stats-icon {
        font-size: 0.9rem;
    }
    
    .category-views-info {
        font-size: 0.8rem;
        text-align: center;
    }
    
    .popular-categories-section {
        margin-top: 1rem;
        padding: 0.75rem;
        border-radius: 12px;
    }
    
    .section-header {
        margin-bottom: 0.75rem;
    }
    
    .section-title {
        font-size: 0.9rem;
        gap: 0.4rem;
    }
    
    .trending-icon {
        font-size: 0.95rem;
    }
    
    .popular-category-item {
        padding: 0.4rem 0;
        font-size: 0.85rem;
    }
    
    .popular-category-item .rank {
        min-width: 16px;
        font-size: 0.8rem;
        margin-right: 0.4rem;
    }
    
    .popular-category-item a {
        margin: 0 0.4rem;
        font-size: 0.85rem;
    }
    
    .popular-category-item .views-count {
        font-size: 0.75rem;
        padding: 0.15rem 0.35rem;
        border-radius: 6px;
    }
    
    .popular-category-item:hover {
        margin: 0 -0.5rem;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
        border-radius: 6px;
        transform: translateX(2px);
    }
}

/* 横屏模式优化 */
@media (max-width: 767px) and (orientation: landscape) {
    .category-hero-section {
        min-height: 160px;
    }
    
    .category-content-overlay {
        padding: 1rem 1.25rem;
    }
    
    .category-header-group {
        flex-direction: row;
        text-align: left;
        align-items: flex-start;
    }
    
    .category-icon-wrapper {
        margin: 0;
    }
    
    .category-stats {
        flex-direction: row;
        justify-content: flex-start;
        flex-wrap: wrap;
    }
    
    .popular-categories-section {
        margin-top: 1rem;
    }
}

/* 触摸设备优化 */
@media (hover: none) {
    .category-info-card:hover {
        transform: none;
        box-shadow: 0 20px 40px rgba(102, 126, 234, 0.15);
    }
    
    .popular-category-item:hover {
        transform: none;
        background: transparent;
        margin: 0;
        padding: 0.75rem 0;
        border-radius: 0;
    }
    
    .popular-category-item a:hover {
        text-shadow: none;
    }
}