/* ==================== 软件专题页面样式 ==================== */

/* Hero专题横幅区 - 网格布局 */
.topic-hero-section {
    padding: 0 0 30px 0;
}

.topic-hero-grid {
    display: grid;
    grid-template-columns: 1fr 700px;
    gap: 16px;
    height: 300px;
}

/* 左侧大卡片 */
.topic-hero-main {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.hero-main-slides {
    position: relative;
    height: 100%;
}

.hero-main-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
}

.hero-main-slide.active {
    opacity: 1;
    visibility: visible;
}

.hero-main-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-main-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 40px;
    color: #fff;
}

.hero-main-text {
    flex: 1;
}

.hero-main-text h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.hero-main-text p {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 24px;
}

.hero-main-btn {
    display: inline-block;
    padding: 10px 32px;
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.hero-main-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.hero-main-image {
    width: 180px;
    height: 180px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.hero-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-main-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
}

.hero-main-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-main-dots .dot.active {
    background: #fff;
    width: 20px;
    border-radius: 4px;
}

/* 右侧小卡片网格 */
.topic-hero-sub {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 10px;
}

.hero-sub-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.hero-sub-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.hero-sub-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-sub-bg-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-sub-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 55%;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.75) 100%);
    z-index: 1;
}

.hero-sub-text-only {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px;
    color: #fff;
    z-index: 2;
}

.hero-sub-text-only h3 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    line-height: 1.3;
}

.hero-sub-text-only p {
    font-size: 11px;
    opacity: 0.9;
    line-height: 1.4;
}

/* 旧的Hero样式删除 */

/* 专题分类导航区 */
.topic-category-section {
    padding: 24px 0;
    background: #fff;
    border-bottom: 1px solid #e9ecef;
}

.topic-category-section .container {
    /* max-width: 800px; */
    margin: 0 auto;
}

.topic-category-list {
    display: flex;
    justify-content: center;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
    flex-wrap: wrap;
}

.topic-category-list::-webkit-scrollbar {
    display: none;
}

.topic-category-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #f8f9fa;
    border-radius: 50px;
    color: #666;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.topic-category-item:hover {
    background: #e9ecef;
    color: #333;
}

.topic-category-item.active {
    background: linear-gradient(135deg, #4A6CF7 0%, #6B7CFF 100%);
    color: #fff;
}

.topic-category-item.active svg {
    color: #fff;
    fill: #fff;
}

/* 精选专题推荐区 */
.topic-featured-section {
    padding: 40px 0;
    background: #f8f9fa;
}

.section-title-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    color: #333;
}

.section-title svg {
    color: #4A6CF7;
}

.topic-filter {
    display: flex;
    gap: 8px;
}

.filter-btn {
    padding: 6px 16px;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 20px;
    color: #666;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: #4A6CF7;
    color: #4A6CF7;
}

.filter-btn.active {
    background: #4A6CF7;
    border-color: #4A6CF7;
    color: #fff;
}

.topic-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.topic-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.topic-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.topic-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.topic-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.topic-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.topic-card:hover .topic-card-image img {
    transform: scale(1.05);
}

.topic-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    background: rgba(74, 108, 247, 0.9);
    color: #fff;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
}

.topic-card-content {
    padding: 16px;
}

.topic-card-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.topic-card-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    height: 40px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-bottom: 12px;
}

.topic-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

.topic-card-count {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #999;
}

.topic-card-download {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #4A6CF7;
    font-weight: 500;
}

.topic-load-more {
    text-align: center;
}

.load-more-btn {
    padding: 12px 40px;
    background: #fff;
    border: 2px solid #e9ecef;
    border-radius: 50px;
    color: #666;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.load-more-btn:hover {
    border-color: #4A6CF7;
    color: #4A6CF7;
}

/* 空状态 */
.topic-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 15px;
    background: #f8f9fa;
    border-radius: 12px;
}

/* 最新动态 + 热门排行 */
.topic-sidebar-section {
    /* padding: 40px 0; */
    background: #f8f9fa;
}

.topic-sidebar-section .container {
    /* max-width: 1200px; */
    margin: 0 auto;
    padding: 0 20px;
}

.topic-sidebar-section .topic-content-layout {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.topic-content-layout {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
}

/* 软件下载排行榜 */
.topic-download-rank .topic-rank-list {
    background: linear-gradient(135deg, #fff5f0 0%, #fff 100%);
    border-radius: 12px;
    padding: 10px 20px;
    border: 1px solid #ffe4d6;
}

.topic-download-rank .topic-rank-heat {
    color: #ff7a45;
}

/* 最新专题动态 */
.topic-latest-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.topic-latest-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 10px;
    transition: all 0.25s ease;
    cursor: pointer;
}

.topic-latest-item:hover {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.topic-latest-icon {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
}

.topic-latest-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.topic-latest-info {
    flex: 1;
    min-width: 0;
}

.topic-latest-title {
    font-size: 15px;
    font-weight: 500;
    color: #333;
    margin-bottom: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.topic-latest-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: #999;
}

.topic-latest-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.topic-latest-time {
    font-size: 12px;
    color: #999;
    flex-shrink: 0;
}

/* 热门专题排行 */
.topic-rank-list {
    background: linear-gradient(135deg, #f0f4ff 0%, #fff 100%);
    border-radius: 12px;
    padding: 10px 20px;
    border: 1px solid #d6e0ff;
}

.topic-rank-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.2s ease;
    cursor: pointer;
}

.topic-rank-item:last-child {
    border-bottom: none;
}

.topic-rank-item:hover {
    transform: translateX(4px);
}

.topic-rank-number {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: #666;
    background: #f0f0f0;
    border-radius: 6px;
    flex-shrink: 0;
}

.topic-rank-item.top1 .topic-rank-number {
    background: linear-gradient(135deg, #ff4d4f 0%, #ff7875 100%);
    color: #fff;
}

.topic-rank-item.top2 .topic-rank-number {
    background: linear-gradient(135deg, #ff7a45 0%, #ff9c6e 100%);
    color: #fff;
}

.topic-rank-item.top3 .topic-rank-number {
    background: linear-gradient(135deg, #ffa940 0%, #ffc069 100%);
    color: #fff;
}

.topic-rank-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.topic-rank-info {
    flex: 1;
    min-width: 0;
}

.topic-rank-name {
    font-size: 14px;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-bottom: 4px;
}

.topic-rank-heat {
    font-size: 12px;
    color: #4A6CF7;
    font-weight: 500;
}

/* 软件评测与教程板块 */
.topic-review-section {
    padding: 40px 0;
    background: #f8f9fa;
}

.topic-review-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

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

.review-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.review-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.review-card-image {
    position: relative;
    height: 243px;
    overflow: hidden;
}

.review-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.review-card:hover .review-card-image img {
    transform: scale(1.05);
}

.review-card-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    background: rgba(74, 108, 247, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.review-card-play:hover {
    background: #4A6CF7;
    transform: translate(-50%, -50%) scale(1.1);
}

.review-card-content {
    padding: 16px;
}

.review-card-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.review-card-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-bottom: 12px;
}

.review-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: #999;
}

/* 使用技巧 */
.topic-tips {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.tips-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.tips-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.more-link {
    font-size: 13px;
    color: #4A6CF7;
    text-decoration: none;
}

.more-link:hover {
    text-decoration: underline;
}

.tips-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tips-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.tips-item:hover {
    background: #e9ecef;
    transform: translateX(4px);
}

.tips-number {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FFB800;
    color: #fff;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    flex-shrink: 0;
}

.tips-content {
    flex: 1;
}

.tips-title {
    font-size: 14px;
    color: #333;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tips-category {
    font-size: 12px;
    color: #999;
}

/* 最近更新的软件样式 */
.tips-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.tips-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #666;
}

.tips-version {
    color: #4A6CF7;
    font-weight: 500;
}

.tips-size {
    color: #999;
}

.tips-time {
    font-size: 12px;
    color: #999;
    flex-shrink: 0;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .topic-hero-grid {
        grid-template-columns: 1fr;
        grid-template-rows: 300px auto;
        height: auto;
    }
    
    .topic-hero-sub {
        grid-template-columns: repeat(6, 1fr);
        grid-template-rows: 1fr;
        height: 100px;
    }
    
    .topic-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .topic-content-layout {
        grid-template-columns: 1fr;
    }
    
    .topic-hot-rank {
        order: -1;
    }
    
    .topic-review-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 992px) {
    .topic-hero-sub {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: 1fr 1fr;
        height: auto;
    }
    
    .hero-sub-card {
        height: 90px;
    }
}

@media (max-width: 768px) {
    .topic-hero-grid {
        grid-template-rows: 240px auto;
    }
    
    .hero-main-content {
        padding: 24px;
    }
    
    .hero-main-text h1 {
        font-size: 22px;
    }
    
    .hero-main-text p {
        font-size: 14px;
    }
    
    .hero-main-image {
        display: none;
    }
    
    .hero-sub-text h3 {
        font-size: 13px;
    }
    
    .hero-sub-text p {
        font-size: 11px;
    }
    
    .hero-sub-image {
        width: 44px;
        height: 44px;
    }
    
    .topic-grid {
        grid-template-columns: 1fr;
    }
    
    .review-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .topic-hero-sub {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    
    .hero-sub-card {
        height: 90px;
    }
    
    .hero-sub-content {
        padding: 12px;
    }
    
    .hero-sub-image {
        width: 40px;
        height: 40px;
    }
}
