/* 分类卡片布局样式 - 新版设计 */

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.category-card {
    background: rgba(40, 40, 40, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 25px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: 1fr auto;
    gap: 20px;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    background: rgba(50, 50, 50, 0.7);
    border-color: rgba(255, 255, 255, 0.25);
}

/* 图标区域 */
.category-icon {
    grid-column: 1;
    grid-row: 1;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    color: white;
    transition: all 0.3s ease;
}

.category-card:hover .category-icon {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.05);
}

/* 内容区域 */
.category-content {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.category-content h3 {
    color: white;
    font-size: 22px;
    margin-bottom: 8px;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.category-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 15px;
    line-height: 1.5;
    margin: 0;
}

/* 分割线 */
.category-divider {
    grid-column: 1 / -1;
    grid-row: 2;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.2) 20%, 
        rgba(255, 255, 255, 0.2) 80%, 
        transparent 100%);
    margin: 10px 0;
}

/* 底部信息区域 */
.category-footer {
    grid-column: 1 / -1;
    grid-row: 3;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    padding-top: 10px;
}

.category-footer .latest-video {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 60%;
}

.category-footer .latest-video .video-icon {
    font-size: 14px;
    color: #ff6b6b;
}

.category-footer .latest-video span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.category-footer .video-count {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.1);
    padding: 6px 12px;
    border-radius: 12px;
    font-weight: 500;
}

.category-footer .video-count .count-icon {
    font-size: 14px;
    color: #00b09b;
}

/* 分类页面标题 */
.category-header {
    text-align: center;
    margin: 30px 0;
    padding: 30px;
    background: rgba(50, 50, 50, 0.45);
    border: 1px solid rgba(100, 100, 100, 0.6);
    border-radius: 15px;
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.category-header .icon {
    font-size: 60px;
    margin-bottom: 15px;
}

.category-header h2 {
    color: white;
    font-size: 28px;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.category-header p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
}

.category-header .count {
    color: #ff6b6b;
    font-weight: bold;
}

/* 返回按钮 */
.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(50, 50, 50, 0.45);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border: 1px solid rgba(100, 100, 100, 0.6);
    border-radius: 20px;
    color: white;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.back-btn:hover {
    background: rgba(70, 70, 70, 0.6);
    backdrop-filter: blur(35px);
    -webkit-backdrop-filter: blur(35px);
    border-color: rgba(130, 130, 130, 0.8);
    transform: translateX(-5px) translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .category-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 20px;
    }
    
    .category-card {
        padding: 20px;
        gap: 15px;
    }
    
    .category-icon {
        width: 60px;
        height: 60px;
        font-size: 30px;
        border-radius: 14px;
    }
    
    .category-content h3 {
        font-size: 20px;
    }
    
    .category-content p {
        font-size: 14px;
    }
    
    .category-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .category-footer .latest-video {
        max-width: 100%;
    }
    
    .category-footer .video-count {
        align-self: flex-start;
    }
}

@media (max-width: 480px) {
    .category-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .category-card {
        padding: 18px;
        gap: 12px;
    }
    
    .category-icon {
        width: 50px;
        height: 50px;
        font-size: 26px;
        border-radius: 12px;
    }
    
    .category-content h3 {
        font-size: 18px;
    }
    
    .category-content p {
        font-size: 13px;
    }
    
    .category-footer {
        font-size: 13px;
    }
    
    .category-header {
        padding: 20px;
    }
    
    .category-header .icon {
        font-size: 48px;
    }
    
    .category-header h2 {
        font-size: 24px;
    }
    
    .category-header p {
        font-size: 14px;
    }
}
