.app-download-card {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin: 15px 0;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    width: 100%;
    box-sizing: border-box;
}

/* 统一图片尺寸为100×100px */
.app-image {
    flex: 0 0 110px;
    margin-right: 15px;
    flex-shrink: 0; /* 防止图片缩小 */
}

.app-image img {
    width: 110px;
    height: 110px;
    object-fit: cover;
    border-radius: 20px;
}

.app-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100px; /* 与图片高度一致，确保垂直居中对齐 */
    min-width: 0; /* 确保内容不会溢出容器 */
}

/* 确保所有文本元素不换行 */
.app-name,
.app-subname,
.app-rating,
.app-tags {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 优化应用名称样式 - 增大字号并加粗，移除h3默认样式 */
.app-name {
    margin: 0;
    padding: 0;
    font-size: 18px; /* 增大字号 */
    font-weight: 700; /* 加粗 */
    color: #111827;
    line-height: 1.3; /* 优化行高 */
}

.app-subname {
    font-size: 13px;
    color: #6b7280;
}

.app-rating {
    color: #f59e0b;
    font-size: 12px;
    display: flex;
    align-items: center;
}

.app-rating .rating-value {
    margin-left: 5px;
    color: #6b7280;
}

.app-tags {
    display: flex;
    gap: 5px;
    flex-wrap: nowrap;
}

.app-tag {
    background-color: #f3f4f6;
    color: #4b5563 !important;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 6px;
    text-decoration: none;
    transition: background-color 0.2s;
}

.app-tag:hover {
    background-color: #e5e7eb;
    color: #374151 !important;
}

.app-download-btn {
    flex: 0 0 auto;
    margin-left: 15px;
    flex-shrink: 0; /* 防止按钮缩小 */
}

.download-btn {
    display: inline-block;
    background-color: #3b82f6;
    color: white !important; /* 强制白色 */
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s;
    white-space: nowrap;
}

.download-btn:hover {
    background-color: #2563eb;
    color: white !important; /* 强制白色 */
}

/* 移动端响应式设计 */
@media (max-width: 768px) {
    .app-download-card {
        flex-wrap: wrap; /* 允许按钮换行 */
        align-items: flex-start;
    }
    
    .app-info {
        flex: 1;
        min-width: 0;
    }
    
    /* 移动端应用名称可适当调整 */
    .app-name {
        font-size: 17px;
    }
    
    /* 按钮单独成行并占满宽度 */
    .app-download-btn {
        width: 100%;
        margin: 15px 0 0 0;
    }
    
    .download-btn {
        display: block;
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }
}

/* 确保ripro v5主题兼容性 */
.ripro-theme .app-download-card {
    border-color: #eee;
}

.ripro-theme .app-name {
    color: #333;
}

.ripro-theme .app-subname {
    color: #666;
}

/* 确保主题不会覆盖按钮文字颜色 */
.ripro-theme .download-btn,
.ripro-theme .download-btn:hover {
    color: white !important;
}
