/* 首页CSS样式 - 清源下载站 */

/* 轮播图样式 */
.carousel {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    margin-bottom: 40px;
    background-color: #f0f0f0;
    border-radius: 8px;
}

.carousel-container {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease;
}

.carousel-item {
    flex: 0 0 100%;
    height: 100%;
    position: relative;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-content {
    position: absolute;
    left: 10%;
    top: 50%;
    transform: translateY(-50%);
    max-width: 500px;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.carousel-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
}

.carousel-description {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.carousel-button {
    padding: 12px 24px;
    background-color: #1890ff;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.carousel-button:hover {
    background-color: #40a9ff;
}

/* 轮播图控制按钮 */
.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.3);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.carousel-control:hover {
    background-color: rgba(0, 0, 0, 0.5);
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

/* 轮播图指示器 */
.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-indicator.active {
    width: 30px;
    border-radius: 6px;
    background-color: #fff;
}

/* 分类导航样式 */
.category-nav {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 40px;
}

.category-list {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.category-item {
    flex: 0 0 calc(20% - 16px);
    text-align: center;
    padding: 15px 0;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.category-item:hover {
    background-color: #f0f8ff;
}

.category-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f0f0f0;
    border-radius: 50%;
    font-size: 28px;
    color: #1890ff;
}

.category-name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

/* 推荐应用样式 */
.recommended-section {
    margin-bottom: 40px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.view-more {
    color: #1890ff;
    font-size: 14px;
}

.view-more:hover {
    color: #40a9ff;
}

/* 应用列表样式 */
.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.app-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.app-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.app-info {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.app-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    margin-right: 15px;
    background-color: #f0f0f0;
    overflow: hidden;
}

.app-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.app-details {
    flex: 1;
    min-width: 0;
}

.app-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
    white-space: nowrap;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.app-category {
    font-size: 12px;
    color: #999;
    margin-bottom: 5px;
}

.app-stats {
    display: block;
    gap: 10px;
    font-size: 12px;
    color: #666;
}

.app-description {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.app-version {
    font-size: 12px;
    color: #999;
}

.app-download-btn {
    padding: 6px 16px;
    background-color: #1890ff;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.app-download-btn:hover {
    background-color: #40a9ff;
}

/* 最新上架样式 */
.latest-section {
    margin-bottom: 40px;
}

.latest-app-list {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
}

.latest-app-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.3s ease;
}

.latest-app-item:hover {
    background-color: #fafafa;
}

.latest-app-item:last-child {
    border-bottom: none;
}

.latest-app-rank {
    width: 30px;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    color: #999;
    margin-right: 15px;
}

.latest-app-rank.top3 {
    color: #ff4d4f;
}

.latest-app-rank.top3:nth-child(2) {
    color: #ff7a45;
}

.latest-app-rank.top3:nth-child(3) {
    color: #ffa940;
}

.latest-app-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    margin-right: 15px;
    overflow: hidden;
}

.latest-app-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.latest-app-info {
    flex: 1;
}

.latest-app-name {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 5px;
    color: #333;
}

.latest-app-desc {
    font-size: 12px;
    color: #999;
}

.latest-app-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.latest-app-size,
.latest-app-downloads {
    font-size: 12px;
    color: #999;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .app-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .category-item {
        flex: 0 0 calc(25% - 15px);
        margin-bottom: 15px;
    }
}

@media (max-width: 768px) {
    .app-info{
        
flex-wrap: wrap;
    }
    .app-details{
        
width: 100%;
        
display: block;
        
overflow: hidden;
        
white-space: nowrap;
        
flex: none;
        
text-align: center;
        
text-overflow: ellipsis;
        
margin-top: 10px;
    }
    .carousel {
        height: 250px;
    }
    
    .carousel-content {
        left: 5%;
        right: 5%;
        max-width: none;
    }
    
    .carousel-title {
        font-size: 24px;
    }
    
    .carousel-description {
        font-size: 14px;
    }
    
    .app-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .app-card {
        padding: 15px;
    }
    
    .app-icon {
        width: 66px;
        height: 66px;
        min-width: 66px;
        display: block;
        margin: 0 auto;
        overflow: hidden;
    }
    
    .category-item {
        flex: 0 0 calc(33.333% - 10px);
        margin-bottom: 15px;
    }
    
    .category-icon {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
    
    .latest-app-item {
        flex-wrap: wrap;
    }
    
    .latest-app-actions {
        margin-top: 10px;
        width: 100%;
        justify-content: flex-end;
    }
}