/*
 * 100%还原原网站应用卡片样式
 * 基于 zjapp.net 截图精确重建
 */

/* ==================== 应用卡片容器 ==================== */
.app-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 12px;
    padding: 12px 15px;
    margin-bottom: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s;
    cursor: pointer;
    position: relative;
}

.app-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.app-card:active {
    transform: translateY(0);
}

/* ==================== 卡片内容区 ==================== */
.app-card-content {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

/* ==================== 应用图标 ==================== */
.app-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 14px;
    overflow: hidden;
    background: #f5f5f5;
}

.app-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==================== 应用信息区 ==================== */
.app-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* 应用标题行 */
.app-header {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* 应用名称 */
.app-name {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

/* 新应用标签 */
.new-update-badge {
    background: #ef4444;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: normal;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ==================== 状态标签组 ==================== */
.app-status {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

/* 状态标签基础样式 */
.status-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    color: white;
    white-space: nowrap;
}

/* 各种状态标签颜色 */
.status-tag.status-女神专区,
.status-tag.status-nvshen {
    background: #ff69b4;
}

.status-tag.status-热门,
.status-tag.status-hot {
    background: #ff4500;
}

.status-tag.status-蓝光,
.status-tag.status-bluray {
    background: #4169e1;
}

.status-tag.status-4K {
    background: #9370db;
}

.status-tag.status-免费,
.status-tag.status-free {
    background: #32cd32;
}

.status-tag.status-破解,
.status-tag.status-crack {
    background: #9c27b0;
}

.status-tag.status-iOS专区,
.status-tag.status-ios {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.status-tag.status-安卓专区,
.status-tag.status-android {
    background: linear-gradient(135deg, #3ddc84 0%, #00c853 100%);
}

.status-tag.status-TV专区,
.status-tag.status-tv {
    background: #f5576c;
}

.status-tag.status-电脑专区,
.status-tag.status-pc {
    background: #4facfe;
}

.status-tag.status-VIP {
    background: #ffd700;
    color: #333;
}

.status-tag.status-HD {
    background: #00bcd4;
}

.status-tag.status-独家 {
    background: #ff6b6b;
}

/* ==================== 应用描述 ==================== */
.app-description {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin: 0;
}

/* ==================== 推荐理由（仅推荐板块） ==================== */
.app-recommended-note {
    font-size: 12px;
    color: #999;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin: 0;
}

/* ==================== 下载按钮区域 ==================== */
.app-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}

/* 下载按钮 */
.download-btn {
    padding: 8px 20px;
    background: linear-gradient(135deg, #ff8c00 0%, #ff6b00 100%);
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(255, 140, 0, 0.3);
    transition: all 0.2s;
    white-space: nowrap;
}

.download-btn:hover {
    background: linear-gradient(135deg, #ff9900 0%, #ff7700 100%);
    box-shadow: 0 3px 10px rgba(255, 140, 0, 0.4);
    transform: translateY(-1px);
}

.download-btn:active {
    transform: translateY(0);
}

/* 下架按钮 */
.off-shelf-btn {
    background: #e0e0e0 !important;
    color: #999 !important;
    box-shadow: none !important;
    cursor: not-allowed !important;
}

.off-shelf-btn:hover {
    transform: none !important;
}

/* ==================== 平台标识 ==================== */
.app-platform {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    opacity: 0.8;
}

.platform-iOS {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.platform-Android,
.platform-安卓 {
    background: linear-gradient(135deg, #3ddc84 0%, #00c853 100%);
    color: white;
}

.platform-TV {
    background: #f5576c;
    color: white;
}

.platform-PC,
.platform-电脑 {
    background: #4facfe;
    color: white;
}

/* ==================== 移动端优化 ==================== */
@media (max-width: 768px) {
    .app-card {
        padding: 10px 12px;
        margin-bottom: 8px;
    }

    .app-card-content {
        gap: 10px;
    }

    .app-icon {
        width: 50px;
        height: 50px;
        border-radius: 12px;
    }

    .app-name {
        font-size: 15px;
    }

    .app-description {
        font-size: 12px;
    }

    .download-btn {
        padding: 7px 16px;
        font-size: 13px;
    }

    .status-tag {
        padding: 2px 6px;
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .app-icon {
        width: 48px;
        height: 48px;
    }

    .download-btn {
        padding: 6px 14px;
        font-size: 12px;
    }

    .app-status {
        gap: 4px;
    }
}

/* ==================== 应用列表容器 ==================== */
.apps-list {
    display: flex;
    flex-direction: column;
}

/* 分类板块 */
.category-section {
    margin-bottom: 24px;
}

/* 分类标题 */
.category-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 12px 0;
    padding-left: 4px;
}

/* 无应用提示 */
.no-apps {
    text-align: center;
    color: #999;
    padding: 40px 20px;
    font-size: 14px;
}
