/**
 * 安卓软件二级首页样式
 * 
 * 严格延续pc-software.html的卡片样式设计风格
 * 包含：横幅区、分类导航、精选推荐、双栏内容区、专题聚合
 */

/* ==================== 页面横幅区域 ==================== */
.pc-hero-section {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    padding: 40px 0;
    margin-bottom: 30px;
}

.pc-hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    max-width: 100%;
}

.pc-hero-left {
    display: flex;
    align-items: center;
    gap: 24px;
    flex: 1;
    min-width: 0;
}

.pc-hero-icon {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    backdrop-filter: blur(10px);
}

.pc-hero-text h1 {
    font-size: 36px;
    color: white;
    margin-bottom: 8px;
    font-weight: 600;
}

.pc-hero-text p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 16px;
}

.pc-hero-stats {
    display: flex;
    gap: 24px;
}

.pc-hero-stats span {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
}

.pc-hero-stats strong {
    color: white;
    font-size: 20px;
    display: block;
}

/* 分类快捷入口 */
.pc-hero-categories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    width: 320px;
    flex-shrink: 0;
}

.hero-cat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-cat-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    color: white;
}

/* ==================== 精选推荐区域 - 卡片网格布局 ==================== */
.featured-section {
    margin-bottom: 30px;
}

/* 网格布局：三等分布局，三个卡片等宽等高 */
.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* 左侧大卡片（轮播图） */
.featured-carousel {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 220px;
}

/* 右侧2个小卡片 - 左右排列，等高 */
.featured-links {
    display: contents;
}

.featured-link-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    height: 220px;
    text-decoration: none;
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

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

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

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

.slide-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
}

.slide-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 40px;
}

.slide-text h3 {
    font-size: 26px;
    color: white;
    /* margin-bottom: 12px; */
    font-weight: 600;
}

.slide-text p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 12px;
}

.slide-btn {
    display: inline-block;
    padding: 6px 16px;
    background: var(--android-primary, #10B981);
    color: white;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.slide-btn:hover {
    background: var(--android-primary-dark, #059669);
    transform: translateY(-2px);
}

/* 轮播指示器 */
.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: white;
    width: 24px;
    border-radius: 4px;
}



.link-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.featured-link-item:hover .link-bg {
    transform: scale(1.05);
}

.link-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 50%, transparent 100%);
}

.link-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 16px;
}

.link-content h4 {
    font-size: 16px;
    color: white;
    margin-bottom: 4px;
    font-weight: 600;
}

.link-content p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
}

/* ==================== 主内容区域 ==================== */
.main-content-section {
    margin-bottom: 30px;
}

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

/* 左侧内容区 */
.content-left {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* 分类区块 - 简洁列表形式 */
.category-section {
    background: white;
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    box-shadow: var(--shadow-sm);
    /* margin-bottom: 16px; */
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--gray-100);
}

.category-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 600;
    color: var(--gray-800);
}

.category-title svg {
    color: var(--android-primary, #10B981);
}

.more-link {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: var(--gray-500);
    text-decoration: none;
    transition: color 0.3s ease;
}

.more-link:hover {
    color: var(--android-primary, #10B981);
}

/* 软件网格 - 紧凑列表布局 */
.software-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px 12px;
}

.software-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    text-decoration: none;
    background: var(--gray-50);
    border: 1px solid transparent;
}

.software-card:hover {
    background: white;
    border-color: var(--android-primary, #10B981);
    box-shadow: var(--shadow-sm);
}

.software-card:hover .software-info h4 {
    color: var(--android-primary, #10B981);
}

.software-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    object-fit: cover;
    flex-shrink: 0;
}

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

.software-info h4 {
    font-size: 14px;
    color: var(--gray-800);
    margin-bottom: 4px;
    font-weight: 500;
    transition: color 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.software-desc {
    font-size: 12px;
    color: var(--gray-500);
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 右侧边栏 */
.content-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-section {
    background: white;
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 16px;
    /* padding-bottom: 12px;
    border-bottom: 1px solid var(--gray-100); */
}

.sidebar-header svg {
    color: var(--android-primary, #10B981);
}

/* 排行列表 */
.rank-list {
    display: flex;
    flex-direction: column;
    /* gap: 12px; */
}

.rank-item {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    padding: 8px;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.rank-item:hover {
    background: var(--gray-50);
}

.rank-number {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-600);
    flex-shrink: 0;
}

.rank-item:nth-child(1) .rank-number {
    background: #FF6B6B;
    color: white;
}

.rank-item:nth-child(2) .rank-number {
    background: #FFB800;
    color: white;
}

.rank-item:nth-child(3) .rank-number {
    background: #4ECDC4;
    color: white;
}

.rank-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    object-fit: cover;
    flex-shrink: 0;
}

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

.rank-name {
    font-size: 14px;
    color: var(--gray-800);
    margin-bottom: 2px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rank-meta {
    font-size: 12px;
    color: var(--gray-500);
}

/* ==================== 安卓软件资讯 ==================== */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.news-item {
    display: flex;
    gap: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.news-item:hover {
    opacity: 0.8;
}

.news-thumb {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

.news-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-title {
    font-size: 13px;
    color: var(--gray-800);
    font-weight: 500;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 6px;
}

.news-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.news-tag {
    display: inline-block;
    padding: 2px 8px;
    font-size: 11px;
    color: var(--android-primary, #10B981);
    background: rgba(16, 185, 129, 0.1);
    border-radius: 4px;
}

.news-date {
    font-size: 12px;
    color: var(--gray-400);
}

/* ==================== 专题聚合区域 ==================== */
.topic-section {
    margin-bottom: 30px;
}

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

.section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 600;
    color: var(--gray-800);
}

.section-title svg {
    color: var(--android-primary, #10B981);
}

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

.topic-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    text-decoration: none;
}

.topic-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.topic-img {
    width: 100px;
    height: 80px;
    border-radius: var(--radius-md);
    object-fit: cover;
    flex-shrink: 0;
}

.topic-info {
    flex: 1;
}

.topic-info h4 {
    font-size: 16px;
    color: var(--gray-800);
    margin-bottom: 4px;
    font-weight: 600;
}

.topic-info p {
    font-size: 13px;
    color: var(--gray-500);
}

.topic-count {
    font-size: 12px;
    color: var(--android-primary, #10B981);
    background: rgba(16, 185, 129, 0.1);
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 500;
}

/* ==================== 热门标签区域 ==================== */
.tag-section {
    margin-bottom: 30px;
}

.tag-cloud-wrapper {
    background: white;
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tag-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--gray-50);
    border: none;
    border-radius: 50px;
    font-size: 14px;
    color: var(--gray-700);
    text-decoration: none;
    transition: all 0.3s ease;
}

.tag-item:hover {
    background: var(--android-primary, #10B981);
    color: white;
    transform: translateY(-2px);
}

.tag-item.hot {
    background: #FF6B6B;
    color: white;
}

.tag-item.hot:hover {
    background: #FF5252;
}

.tag-item.new {
    background: #4ECDC4;
    color: white;
}

.tag-item.new:hover {
    background: #26D0CE;
}

/* ==================== 响应式设计 ==================== */
@media (max-width: 1200px) {
    .featured-grid {
        grid-template-columns: 1fr;
    }
    
    .featured-carousel {
        height: 320px;
    }
    
    .featured-links {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .featured-link-item {
        height: 160px;
    }
    
    .content-layout {
        grid-template-columns: 1fr;
    }
    
    .content-right {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .software-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .pc-hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .pc-hero-left {
        flex-direction: column;
    }
    
    .pc-hero-categories {
        width: 100%;
    }
    
    .featured-carousel {
        height: 260px;
    }
    
    .featured-link-item {
        height: 140px;
    }
    
    .software-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .slide-text h3 {
        font-size: 24px;
    }
    
    .software-card {
        padding: 10px;
        gap: 10px;
    }
    
    .software-icon {
        width: 44px;
        height: 44px;
    }
    
    .content-right {
        grid-template-columns: 1fr;
    }
    
    .topic-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .software-grid {
        grid-template-columns: 1fr;
    }
    
    .software-card {
        padding: 10px;
    }
    
    .software-icon {
        width: 40px;
        height: 40px;
        height: 44px;
    }
    
    .pc-hero-categories {
        grid-template-columns: repeat(2, 1fr);
    }
}
