/* skin/css/index.css */

/*
 * 极径下载站 - 现代柔和蓝风格
 * 首页专用CSS文件
 */

/* ==================== 1. 轮播图样式 ==================== */
.hero-slider {
    position: relative;
    overflow: hidden; /* 确保内容不溢出 */
    background-color: var(--background-light-gray); /* 占位背景 */
}

.swiper-container {
    width: 100%;
    height: 200px; /* 移动端高度 */
}

.swiper-slide {
    text-align: center;
    font-size: var(--font-size-lg);
    background-color: var(--background-light-gray);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover; /* 覆盖整个区域，可能裁剪 */
}

/* Swiper 导航按钮 */
.swiper-button-next,
.swiper-button-prev {
    color: var(--background-white); /* 按钮颜色 */
    background-color: rgba(74, 144, 226, 0.5); /* 半透明品牌蓝 */
    border-radius: var(--border-radius-pill);
    width: 40px;
    height: 40px;
    display: none; /* 移动端默认隐藏，PC端显示 */
    transition: background-color 0.3s ease;
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background-color: rgba(74, 144, 226, 0.8);
}

/* Swiper 分页指示器 */
.swiper-pagination-bullet {
    background-color: var(--text-light-gray); /* 非激活点 */
    opacity: 0.7;
    transition: background-color 0.3s ease;
}

.swiper-pagination-bullet-active {
    background-color: var(--primary-blue); /* 激活点 */
    opacity: 1;
    transform: scale(1.2);
}

/* ==================== 2. 首页内容板块 ==================== */
.home-section {
    padding-bottom: var(--spacing-xl);
    border-bottom: 1px solid var(--border-gray);
    padding-top: 20px;
}

.home-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* 最新应用、安卓游戏、安卓软件等板块的标题 */
.section-header {
    margin-bottom: var(--spacing-lg);
    text-align: center;
}

.section-header h2 {
    font-size: var(--font-size-xl);
    color: var(--text-dark-gray);
    display: flex;
}
.section-header h2 span{
    flex: 1;
}
.section-header h2 a{
    
}

/* 内容网格布局 */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); /* 移动端至少140px宽 */
    gap: var(--spacing-md);
}

@media (min-width: 480px) {
    .content-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: var(--spacing-lg);
    }
}

/* PC端样式 */
@media (min-width: 769px) {
    .swiper-container {
        height: 400px; /* PC端高度 */
    }

    .swiper-button-next,
    .swiper-button-prev {
        display: flex; /* PC端显示导航按钮 */
    }

    .content-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); /* PC端至少180px宽 */
        gap: var(--spacing-xl);
    }

    .section-header {
        text-align: left;
    }
}