/**
 * 首页专用样式
 * 
 * 包含首页特有的样式定义
 */

/* ==================== 轮播图区域 ==================== */
span h3 {
    font-size: 14px;
    font-weight: 500;
}
.carousel-section {
    margin-bottom: 30px;
}

.carousel {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.carousel-inner {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-item {
    flex: 0 0 100%;
    position: relative;
}

.carousel-item img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    background: linear-gradient(135deg, var(--primary-bg) 0%, var(--gray-200) 100%);
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 30px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
}

.carousel-caption h2 {
    font-size: 32px;
    margin-bottom: 10px;
    font-weight: 600;
}

.carousel-caption p {
    font-size: 16px;
    opacity: 0.9;
}

.carousel-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
}

.carousel-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    pointer-events: auto;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-md);
}

.carousel-btn:hover {
    background: white;
    transform: scale(1.1);
    box-shadow: var(--shadow-lg);
}

.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.carousel-indicator.active,
.carousel-indicator:hover {
    background: white;
    transform: scale(1.3);
}

/* ==================== 分类导航 ==================== */
.category-section .card {
    background: linear-gradient(135deg, white 0%, var(--primary-bg) 100%);
}

.category-nav {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 15px;
}

.category-item {
    text-align: center;
    padding: 20px 10px;
    border-radius: var(--radius-md);
    background: white;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.category-item:hover {
    background: var(--primary-bg);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.category-icon {
    width: 56px;
    height: 56px;
    margin: 0 0 0;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--primary-bg) 0%, var(--gray-100) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--primary-color);
}

.category-name {
    font-size: 14px;
    color: var(--gray-700);
    font-weight: 500;
}

/* ==================== 快速导航 ==================== */
.quick-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.quick-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    border-radius: var(--radius-md);
    background: var(--gray-100);
    color: var(--gray-700);
    transition: all var(--transition-fast);
}

.quick-nav-item:hover {
    background: var(--primary-bg);
    color: var(--primary-color);
    transform: translateX(5px);
}

/* ==================== 排行榜样式 ==================== */
.rank-list {
    counter-reset: rank;
}

.rank-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 0;
    border-bottom: 1px solid #f3f3f3;
    counter-increment: rank;
}

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

.rank-number {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--gray-200);
    color: var(--gray-600);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    flex-shrink: 0;
}

.rank-item:nth-child(1) .rank-number {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: white;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
}

.rank-item:nth-child(2) .rank-number {
    background: linear-gradient(135deg, #C0C0C0, #A8A8A8);
    color: white;
    box-shadow: 0 2px 8px rgba(192, 192, 192, 0.4);
}

.rank-item:nth-child(3) .rank-number {
    background: linear-gradient(135deg, #CD7F32, #B8860B);
    color: white;
    box-shadow: 0 2px 8px rgba(205, 127, 50, 0.4);
}

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

.rank-name {
    display: block;
    color: var(--gray-800);
    font-size: 14px;
    font-weight: normal;
    margin-bottom: -2px;
    transition: color var(--transition-fast);
}

.rank-name:hover {
    color: var(--primary-color);
}

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

/* ==================== 标签云 ==================== */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-cloud .tag {
    transition: all var(--transition-fast);
}

.tag-cloud .tag:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-sm);
}

/* ==================== 软件网格 ==================== */
.software-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

/* ==================== 资讯网格列表 ==================== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 30px;
}

.news-grid-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    font-size: 14px;
    color: var(--gray-700);
    text-decoration: none;
    transition: all var(--transition-fast);
    overflow: hidden;
}

.news-grid-item:hover {
    color: var(--primary-color);
}

.news-grid-item:hover .news-title {
    color: var(--primary-color);
}
.news-cat {
    color: #1e76e5;
    font-size: 14px;
    flex-shrink: 0;
}

.news-title {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--gray-700);
}

.news-date {
    color: #ff4d4f;
    font-size: 13px;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
}

.software-card {
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 20px;
    transition: all var(--transition-fast);
    display: flex;
    flex-direction: column;
    gap: 15px;
    border: 1px solid var(--gray-200);
}

.software-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
    border-color: var(--primary-light);
}

.software-icon {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--primary-bg) 0%, var(--gray-100) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin: 0 auto;
    box-shadow: var(--shadow-sm);
}

.software-icon img {
    width: 56px;
    height: 56px;
    object-fit: contain;
}

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

.software-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 8px;
    display: block;
    transition: color var(--transition-fast);
}

.software-name:hover {
    color: var(--primary-color);
}

.software-desc {
    font-size: 13px;
    color: var(--gray-600);
    margin-bottom: 12px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.software-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 12px;
    color: var(--gray-500);
    flex-wrap: wrap;
}

.software-action {
    text-align: center;
}

.software-action .btn {
    width: 100%;
}

/* ==================== 今日推荐 ==================== */
.today-recommend {
    text-align: center;
}

.recommend-item {
    padding: 10px;
}

.recommend-img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin-bottom: 15px;
    background: var(--gray-200);
}

.recommend-title {
    font-size: 18px;
    color: var(--gray-800);
    margin-bottom: 8px;
}

.recommend-desc {
    font-size: 14px;
    color: var(--gray-600);
    margin-bottom: 15px;
}

/* ==================== 评分样式 ==================== */
.rating {
    display: flex;
    align-items: center;
    gap: 5px;
}

.stars {
    color: #FFB800;
    font-size: 12px;
    letter-spacing: 1px;
}

.rating-score {
    font-size: 12px;
    color: var(--gray-600);
    font-weight: 600;
}

/* ==================== 新闻列表 ==================== */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.news-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px dashed var(--gray-200);
    transition: all var(--transition-fast);
}

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

.news-item:hover {
    padding-left: 5px;
}

.news-date {
    flex-shrink: 0;
    font-size: 14px;
    color: var(--gray-500);
    font-weight: 400;
}

.news-title {
    flex: 1;
    font-size: 14px;
    color: var(--gray-700);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-item:hover .news-title {
    color: var(--primary-color);
}

/* ==================== 专题列表 ==================== */
.topic-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.topic-item {
    display: flex;
    gap: 12px;
    padding: 10px;
    border-radius: var(--radius-md);
    background: var(--gray-100);
    transition: all var(--transition-fast);
}

.topic-item:hover {
    background: var(--primary-bg);
    transform: translateX(5px);
}

.topic-img {
    width: 100px;
    height: 68px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    background: var(--gray-200);
}

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

.topic-title {
    font-size: 14px;
    color: var(--gray-800);
    font-weight: 500;
    margin-bottom: 5px;
}

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

/* ==================== 更多链接 ==================== */
.more-link {
    font-size: 13px;
    color: var(--gray-500);
    transition: color var(--transition-fast);
}

.more-link:hover {
    color: var(--primary-color);
}

/* ==================== 响应式设计 ==================== */
/* 已移除响应式媒体查询，保持固定宽度布局 */

/* ==================== 动画效果 ==================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.software-card {
    animation: fadeInUp 0.4s ease;
}

.category-item {
    animation: fadeInUp 0.3s ease;
}

/* 延迟动画 */
.software-card:nth-child(1) { animation-delay: 0.05s; }
.software-card:nth-child(2) { animation-delay: 0.1s; }
.software-card:nth-child(3) { animation-delay: 0.15s; }
.software-card:nth-child(4) { animation-delay: 0.2s; }

.category-item:nth-child(1) { animation-delay: 0.02s; }
.category-item:nth-child(2) { animation-delay: 0.04s; }
.category-item:nth-child(3) { animation-delay: 0.06s; }
.category-item:nth-child(4) { animation-delay: 0.08s; }
.category-item:nth-child(5) { animation-delay: 0.1s; }
.category-item:nth-child(6) { animation-delay: 0.12s; }

/* ==================== 顶部三栏布局 ==================== */
.top-three-column {
    margin-bottom: 30px;
}

.top-three-column .three-column-layout {
    display: grid;
    grid-template-columns: 260px 1fr 320px;
    gap: 20px;
    align-items: start;
}

/* 左侧栏样式 */
.top-three-column .sidebar-left {
    position: static;
}

.top-three-column .sidebar-left .card {
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: 0 1px 2px rgba(0,0,0,.05);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    
}

.top-three-column .sidebar-left .card-header {
    padding: 13px 16px;
    font-size: 15px;
    font-weight: 600;
    color: var(--gray-800);
    border-bottom: 1px solid var(--gray-100);
    background: #fff;
}

.top-three-column .sidebar-left .card-header .card-title {
    display: flex;
    align-items: center;
    gap: 6px;
}

.top-three-column .sidebar-left .card-header .card-title svg {
    color: var(--primary-color);
}

.top-three-column .sidebar-left .card-body {
    padding: 8px 0;
}

/* 左侧软件分类列表 */
.category-list {
    display: flex;
    flex-direction: column;
}

.category-list-item {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 9px 16px;
    font-size: 14px;
    color: var(--gray-700);
    transition: all var(--transition-fast);
}

.category-list-item .category-icon {
    margin-right: 8px;
    flex-shrink: 0;
}

.category-list-item > span:not(.category-count) {
    flex: 1;
}

.category-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    color: #5B8FF9;
    transition: all var(--transition-fast);
}

.category-list-item:hover {
    background: #dbeafe;
    color: var(--primary-color);
}

.category-count {
    font-size: 12px;
    color: var(--gray-400);
    background: var(--gray-100);
    padding: 1px 6px;
    border-radius: 10px;
    margin-left: auto;
    flex-shrink: 0;
}

/* 热门文章列表 */
.article-list {
    display: flex;
    flex-direction: column;
}

.article-list-item {
    display: block;
    padding: 10px 16px;
    font-size: 14px;
    color: var(--gray-700);
    transition: all var(--transition-fast);
    border-bottom: 1px solid var(--gray-100);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.article-list-item:last-child {
    border-bottom: none;
}

.article-list-item:hover {
    background: #dbeafe;
    color: var(--primary-color);
    transition: all var(--transition-fast);
}

.category-list-item:hover .category-count {
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary-color);
}

.category-list-item:hover .category-icon {
    color: var(--primary-color);
}

/* 安卓常用软件区域 */
.android-apps-section {
    padding: 30px 0;
}

.android-apps-section .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    overflow-x: auto;
}

.android-apps-section .card-header::-webkit-scrollbar {
    height: 4px;
}

.android-apps-section .card-header::-webkit-scrollbar-track {
    background: var(--gray-100);
}

.android-apps-section .card-header::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 2px;
}

.android-apps-section .card-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.android-apps-section .card-title svg {
    color: var(--primary-color);
}

/* 电脑常用软件和安卓常用软件的标签样式 */
.pc-software-section .section-tabs,
.android-apps-section .section-tabs {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
    white-space: nowrap;
}

.pc-software-section .section-tabs .tab,
.android-apps-section .section-tabs .tab {
    font-size: 16px;
    color: var(--gray-600);
    padding: 4px 4px;
    margin: 0 8px;
    position: relative;
    transition: all var(--transition-fast);
}

.pc-software-section .section-tabs .tab:hover,
.android-apps-section .section-tabs .tab:hover {
    color: var(--primary-color);
}

.pc-software-section .section-tabs .tab.active,
.android-apps-section .section-tabs .tab.active {
    color: #1e76e5;
    font-weight: 600;
}

/* 电脑常用软件和安卓常用软件的标签下划线样式 */
.pc-software-section .section-tabs .tab.active::after,
.android-apps-section .section-tabs .tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20%;
    right: 20%;
    height: 2px;
    background: var(--primary-color);
}

.pc-software-section .section-tabs .more-link,
.android-apps-section .section-tabs .more-link {
    font-size: 14px;
    color: var(--gray-500);
    display: flex;
    align-items: center;
    gap: 4px;
}

.pc-software-section .section-tabs .more-link:hover,
.android-apps-section .section-tabs .more-link:hover {
    color: var(--primary-color);
}

/* 苹果常用软件区域标签样式 - 与安卓保持一致 */
.ios-apps-section .section-tabs {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
    white-space: nowrap;
}

.ios-apps-section .section-tabs .tab {
    font-size: 16px;
    color: var(--gray-600);
    padding: 4px 4px;
    margin: 0 8px;
    position: relative;
    transition: all var(--transition-fast);
}

.ios-apps-section .section-tabs .tab:hover {
    color: var(--primary-color);
}

.ios-apps-section .section-tabs .tab.active {
    color: #1e76e5;
    font-weight: 600;
}

.ios-apps-section .section-tabs .tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20%;
    right: 20%;
    height: 2px;
    background: var(--primary-color);
}

.ios-apps-section .section-tabs .more-link {
    font-size: 14px;
    color: var(--gray-500);
    display: flex;
    align-items: center;
    gap: 4px;
}

.ios-apps-section .section-tabs .more-link:hover {
    color: var(--primary-color);
}

/* 最近更新区域标签样式 - 与其他区域保持一致 */
.recent-updates-section .section-tabs {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
    white-space: nowrap;
}

.recent-updates-section .section-tabs .tab {
    font-size: 16px;
    color: var(--gray-600);
    padding: 4px 4px;
    margin: 0 8px;
    position: relative;
    transition: all var(--transition-fast);
}

.recent-updates-section .section-tabs .tab:hover {
    color: var(--primary-color);
}

.recent-updates-section .section-tabs .tab.active {
    color: #1e76e5;
    font-weight: 600;
}

.recent-updates-section .section-tabs .tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20%;
    right: 20%;
    height: 2px;
    background: var(--primary-color);
}

.recent-updates-section .section-tabs .more-link {
    font-size: 14px;
    color: var(--gray-500);
    display: flex;
    align-items: center;
    gap: 4px;
}

.recent-updates-section .section-tabs .more-link:hover {
    color: var(--primary-color);
}

.recent-updates-section .tab-content {
    display: none;
}

.recent-updates-section .tab-content.active {
    display: block;
}

.android-apps-content {
    display: flex;
    gap: 30px;
}

.ios-apps-content {
    display: flex;
    gap: 30px;
}

.apps-grid-wrapper {
    flex: 1;
    min-width: 0;
}

/* 电脑常用软件区域 - 五列横向卡片布局 */
.pc-software-section .apps-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px 16px;
}

.pc-software-section .app-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    text-align: left;
    padding: 8px;
    transition: all var(--transition-fast);
    gap: 12px;
}

.pc-software-section .app-item:hover {
    background: rgba(30, 118, 229, 0.08);
    border-radius: 8px;
}

.pc-software-section .app-item .app-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    object-fit: cover;
    flex-shrink: 0;
}

.pc-software-section .app-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    /* gap: 2px; */
}

.pc-software-section .app-item .app-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0px;
}

.pc-software-section .app-item .app-name {
    font-size: 15px;
    font-weight: 500;
    color: var(--gray-800);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pc-software-section .app-item .app-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--gray-500);
}

.pc-software-section .app-item .app-stars {
    color: #ffc107;
    font-size: 13px;
    letter-spacing: 1px;
    margin: -2px 0px;
}

.pc-software-section .app-item .app-desc {
    font-size: 12px;
    color: var(--gray-500);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 标签内容切换 */
.tab-content {
    display: none;
    opacity: 0;
    transform: translateY(10px);
    /* transition: opacity 0.3s ease, transform 0.3s ease; */
}

.tab-content.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
    /* animation: tabFadeIn 0.3s ease; */
}

@keyframes tabFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.app-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform var(--transition-fast);
}

.app-item:hover {
    transform: translateY(-3px);
}

.app-item .app-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    /* margin-bottom: 8px; */
    object-fit: cover;
}

.app-item .app-name {
    font-size: 14px;
    color: var(--gray-700);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.app-item .app-info {
    font-size: 11px;
    color: var(--gray-400);
}

/* 安卓常用软件区域样式 - 匹配热门软件推荐 */
.android-apps-section .apps-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 12px;
}

.android-apps-section .app-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 4px 8px;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.android-apps-section .app-item:hover {
    background: #f8fafc;
    transform: translateY(-2px);
}

.android-apps-section .app-item .app-icon {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-md);
    margin-bottom: 8px;
    object-fit: cover;
}

.android-apps-section .app-item .app-name {
    font-size: 14px;
    color: var(--gray-700);
    /* margin-bottom: 4px; */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.android-apps-section .app-item .app-info {
    font-size: 11px;
    color: var(--gray-400);
}

.app-item:hover .app-name {
    color: var(--primary-color);
}

/* 苹果常用软件区域样式 - 与安卓区域保持一致 */
.ios-apps-section .apps-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 12px;
}

.ios-apps-section .app-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 4px 8px;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.ios-apps-section .app-item:hover {
    background: #f8fafc;
    transform: translateY(-2px);
}

.ios-apps-section .app-item .app-icon {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-md);
    margin-bottom: 8px;
    object-fit: cover;
}

.ios-apps-section .app-item .app-name {
    font-size: 14px;
    color: var(--gray-700);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.ios-apps-section .app-item .app-info {
    font-size: 11px;
    color: var(--gray-400);
}

.apps-rank-wrapper {
    width: 280px;
    flex-shrink: 0;
}

.apps-rank-wrapper .rank-header {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 12px;
}

.apps-rank-wrapper .rank-header svg {
    color: #ff6b6b;
}

.apps-rank-wrapper .rank-list {
    display: flex;
    flex-direction: column;
    /* gap: 10px; */
}

.apps-rank-wrapper .rank-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 8px;
    border-radius: 8px;
    transition: background var(--transition-fast);
}

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

.apps-rank-wrapper .rank-num {
    width: 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-400);
    text-align: center;
}

.apps-rank-wrapper .rank-num.rank-1 {
    color: #ff6b6b;
}

.apps-rank-wrapper .rank-num.rank-2 {
    color: #ffa94d;
}

.apps-rank-wrapper .rank-num.rank-3 {
    color: #ffd43b;
}

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

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

.apps-rank-wrapper .rank-name {
    font-size: 14px;
    color: var(--gray-800);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.apps-rank-wrapper .rank-desc {
    font-size: 12px;
    color: var(--gray-500);
    margin-top: 2px;
}

.apps-rank-wrapper .rank-btn {
    font-size: 12px;
    color: var(--primary-color);
    background: rgba(59, 130, 246, 0.1);
    padding: 4px 10px;
    border-radius: 4px;
}

/* 响应式媒体查询已移除，保持固定宽度布局 */

/* 底部主内容区三栏布局 */
.main-section .three-column-layout {
    display: grid;
    grid-template-columns: 260px 1fr 320px;
    gap: 20px;
    align-items: start;
}

/* 中间区域 */
.top-three-column .content-main {
    min-width: 0;
}

/* 中间区域轮播图调整 */
.top-three-column .carousel {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,.07), 0 2px 4px -2px rgba(0,0,0,.05);
    aspect-ratio: 16/8;
    background: var(--primary-dark);
}

.top-three-column .carousel-track {
    display: flex;
    height: 100%;
    transition: transform 0.5s cubic-bezier(.4,0,.2,1);
}

.top-three-column .carousel-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    display: flex;
     align-items: flex-end; 
    justify-content: flex-start;
    padding: 20px 60px;
}

.top-three-column .carousel-slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.top-three-column .carousel-slide-bg::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0) 100%);
}

.top-three-column .carousel-slide-content {
    position: relative;
    z-index: 1;
    color: #fff;
    max-width: 500px;
    text-align: left;
}

.top-three-column .carousel-slide-content h2 {
    font-size: 28px;
    color: #fff;
    /* margin-bottom: 8px; */
    font-weight: 600;
    text-shadow: 0 2px 8px rgba(0,0,0,.3);
}

.top-three-column .carousel-slide-content p {
    font-size: 15px;
    opacity: .9;
    margin-bottom: 16px;
    text-shadow: 0 1px 4px rgba(0,0,0,.3);
}

.top-three-column .carousel-slide-content a.carousel-btn {
    display: inline-block;
    padding: 6px 14px;
    background: #fff;
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    transition: all var(--transition-fast);
    width: auto;
    height: auto;
}

.top-three-column .carousel-slide-content a.carousel-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0,0,0,.07), 0 2px 4px -2px rgba(0,0,0,.05);
    color: var(--primary-color);
}

.top-three-column .carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(0,0,0,.3);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    z-index: 10;
    transition: all var(--transition-fast);
    backdrop-filter: blur(4px);
    border: none;
    cursor: pointer;
}

.top-three-column .carousel-control:hover {
    background: rgba(0,0,0,.5);
}

.top-three-column .carousel-prev { left: 12px; }
.top-three-column .carousel-next { right: 12px; }

.top-three-column .carousel-dots {
    position: absolute;
    bottom: 12px;
    left: 85%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
}

.top-three-column .carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,.5);
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
}

.top-three-column .carousel-dot.active {
    background: #fff;
    width: 24px;
    border-radius: 4px;
}

/* 热门软件推荐卡片 */
.top-three-column .content-main .card {
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: 0 1px 2px rgba(0,0,0,.05);
    border: 1px solid var(--gray-200);
    overflow: hidden;
}

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

.top-three-column .content-main .card-header .card-title {
    display: flex;
    align-items: center;
    gap: 0px;
    font-size: 18px;
    font-weight: 600;
    color: var(--gray-800);
}

.top-three-column .content-main .card-header .card-title svg {
    color: #ff6b35;
}

.top-three-column .content-main .more-link {
    font-size: 13px;
    color: var(--gray-400);
}

.top-three-column .content-main .more-link:hover {
    color: var(--primary-color);
}

/* 热门软件推荐网格 */
.hot-software-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px 10px;
    /* padding: 16px; */
}

.hot-software-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 4px 8px;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.hot-software-item:hover {
    background: #f8fafc;
    transform: translateY(-2px);
}

.hot-software-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 8px;
}

.hot-software-img {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-md);
    object-fit: cover;
    margin-bottom: 8px;
}

.hot-software-name {
    font-size: 16px;
    color: var(--gray-700);
    /* margin-bottom: 4px; */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.hot-software-downloads {
    font-size: 11px;
    color: var(--gray-400);
}

/* 热门软件评分区域 */
.hot-software-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.hot-software-stars {
    font-size: 13px;
    color: #FFB800;
    letter-spacing: 0.5px;
}

.hot-software-score {
    font-size: 12px;
    color: #6c757d;
    font-weight: 500;
}

/* 右侧栏样式 */
.top-three-column .sidebar-right {
    position: static;
}

.top-three-column .sidebar-right .card {
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: 0 1px 2px rgba(0,0,0,.05);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    /* margin-bottom: 12px; */
}

.top-three-column .sidebar-right .card-header {
    padding: 12px 16px;
    font-size: 15px;
    font-weight: 600;
    color: var(--gray-800);
    border-bottom: 1px solid var(--gray-100);
    display: flex;
    align-items: center;
    gap: 6px;
}

.top-three-column .sidebar-right .card-header .card-title svg[href*="icon-fire"] {
    color: #ff6b35;
}

.top-three-column .sidebar-right .card-header .card-title svg {
    /* color: var(--primary-color); */
}

.top-three-column .sidebar-right .card-body {
    padding: 8px 12px;
}

/* 右侧今日推荐列表 */
.today-recommend-list {
    display: flex;
    flex-direction: column;
}

.today-recommend-item {
    display: flex;
    gap: 10px;
    padding: 10px 4px;
    border-bottom: 1px solid var(--gray-100);
    cursor: pointer;
    transition: background var(--transition-fast);
}

.today-recommend-item:last-child {
    border-bottom: none;
}

.today-recommend-item:hover {
    background: #eff6ff;
}

.today-recommend-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    font-weight: bold;
    flex-shrink: 0;
}

.today-recommend-img {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    flex-shrink: 0;
}

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

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

.today-recommend-desc {
    font-size: 12px;
    color: var(--gray-400);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 热门搜索标签 */
.hot-search-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 4px;
}

.hot-search-tag {
    padding: 4px 12px;
    background: #eff6ff;
    color: var(--primary-color);
    border-radius: 14px;
    font-size: 12px;
    transition: all var(--transition-fast);
}

.hot-search-tag:hover {
    background: var(--primary-color);
    color: #fff;
}

/* 响应式调整 */
/* 响应式媒体查询已移除，保持固定宽度布局 */
