/* 
* 热门APP推荐区域样式 
* Version: 2.3.1 - 横向简洁卡片式布局，无背景，一行9个，随机颜色，新按钮样式，加粗APP名称
*/
.app-download {
    margin: 5px 0;
    background-color: transparent;
    padding: 5px 0;
}

.app-download-section {
    padding: 5px;
    margin: 0 auto;
}

.app-download-title {
    font-size: 18px;
    margin-bottom: 5px;
    color: #333;
    text-align: center;
    font-weight: bold;
}

.app-download-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 5px;
}

.app-download-item {
    flex: 0 0 calc(11.11% - 5px); /* 一行9个 */
    margin-bottom: 5px;
    transition: all 0.3s ease;
    text-align: center;
}

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

.app-download-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.app-download-img {
    display: block;
    margin-bottom: 3px;
}

.app-download-img img {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    object-fit: cover;
}

.app-download-info {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.app-download-name {
    font-size: 15px;
    font-weight: 900; /* 增加字体粗细 */
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 80px;
    letter-spacing: 0.5px; /* 增加字母间距 */
    text-shadow: 0 0.5px 0 rgba(0,0,0,0.1); /* 添加轻微文字阴影 */
}

/* 新按钮样式 - 图片中的红色圆角按钮 */
.app-download-btn {
    display: inline-block;
    background: linear-gradient(to bottom, #ff6a6a, #ff3838);
    color: #fff !important;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(255, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 0, 0, 0.6);
    text-shadow: 0 1px 1px rgba(139, 0, 0, 0.7);
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.app-download-btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0));
    border-radius: 20px 20px 0 0;
}

.app-download-btn:hover {
    background: linear-gradient(to bottom, #ff7a7a, #ff4848);
    box-shadow: 0 3px 6px rgba(255, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    transform: translateY(-1px);
}

.app-download-btn:active {
    background: linear-gradient(to bottom, #ff3838, #ff6a6a);
    box-shadow: 0 1px 2px rgba(255, 0, 0, 0.4), inset 0 1px 3px rgba(139, 0, 0, 0.3);
    transform: translateY(1px);
}

/* 随机字体颜色 */
.color-1 { color: #f60 !important; }
.color-2 { color: #f06 !important; }
.color-3 { color: #60f !important; }
.color-4 { color: #06f !important; }
.color-5 { color: #0a0 !important; }
.color-6 { color: #c30 !important; }
.color-7 { color: #939 !important; }
.color-8 { color: #099 !important; }
.color-9 { color: #996 !important; }

/* 响应式样式 */
@media (max-width: 1080px) {
    .app-download-item {
        flex: 0 0 calc(12.5% - 5px); /* 一行8个 */
    }
}

@media (max-width: 768px) {
    .app-download-container {
        justify-content: space-between;
    }
    
    .app-download-item {
        flex: 0 0 calc(16.66% - 5px); /* 一行6个 */
    }
    
    .app-download-img img {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 480px) {
    .app-download-item {
        flex: 0 0 calc(25% - 5px); /* 一行4个 */
    }
    
    .app-download-img img {
        width: 45px;
        height: 45px;
    }
    
    .app-download-name {
        font-size: 12px;
    }
    
    .app-download-btn {
        padding: 2px 8px;
        font-size: 10px;
    }
} 