/* 限免列表弹窗样式 */
.freeapps-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 16px;
}
.freeapp-list-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s;
}
.freeapp-list-card:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}
.freeapp-list-icon-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    margin-bottom: 12px;
}
.freeapp-list-icon {
    width: 100%;
    height: 100%;
    border-radius: 20%;
    object-fit: cover;
}
.freeapp-list-code-badge {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background: linear-gradient(135deg,#667eea,#764ba2);
    color: #fff;
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 600;
}
.freeapp-list-name {
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.4;
}
.freeapp-list-brief {
    font-size: 11px;
    color: #666;
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.5;
}
.freeapp-list-platform {
    font-size: 10px;
    color: #999;
    text-transform: uppercase;
}

@media (max-width: 768px) {
    .freeapps-list-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 12px;
    }
}
/* 限免应用弹窗样式 - 从文件插入 */
/* 限免应用弹窗样式 */
.freeapp-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.freeapp-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.freeapp-modal-content {
    position: relative;
    background: white;
    border-radius: 16px;
    width: 85%;
    max-width: 800px;
    max-height: 75vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.freeapp-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
}

.freeapp-title {
    font-size: 20px;
    font-weight: 600;
    color: #1e293b;
}

.freeapp-close {
    width: 36px;
    height: 36px;
    border: none;
    background: #f1f5f9;
    border-radius: 50%;
    font-size: 24px;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
    line-height: 1;
}

.freeapp-close:hover {
    background: #e2e8f0;
}

.freeapp-tabs {
    display: flex;
    gap: 8px;
    padding: 16px 24px 20px 24px;
    border-bottom: 1px solid #e5e7eb;
    background: white;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.freeapp-tabs::-webkit-scrollbar {
    display: none;
}

.freeapp-tab {
    padding: 8px 20px;
    border-radius: 20px;
    background: #f1f5f9;
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s;
}

.freeapp-tab.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.freeapp-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px;
    background: #f8fafc;
}

.freeapp-platform-section {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.freeapp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.freeapp-card {
    background: white;
    border-radius: 12px;
    padding: 14px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

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

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

.freeapp-card-content {
    display: flex;
    gap: 12px;
}

.freeapp-icon {
    flex-shrink: 0;
}

.freeapp-icon img {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    object-fit: cover;
}

.freeapp-info {
    flex: 1;
    min-width: 0;
}

.freeapp-name {
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.freeapp-badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.freeapp-badge {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
}

.freeapp-badge-hot {
    background: #ef4444;
    color: white;
}

.freeapp-badge-code {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.freeapp-badge-platform {
    background: #e0e7ff;
    color: #667eea;
}

.freeapp-brief {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 4px;
}

.freeapp-desc {
    font-size: 12px;
    color: #94a3b8;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.freeapp-empty {
    text-align: center;
    padding: 60px 20px;
    color: #94a3b8;
    font-size: 14px;
}

/* 移动端优化 */
@media (max-width: 768px) {
 
    .freeapp-modal {
        padding: 16px;
    }

    .freeapp-modal-content {
        width: 92%;
        max-width: 92%;
        max-height: 80vh;
        border-radius: 12px;
    }

    .freeapp-header {
        padding: 16px 20px;
    }

    .freeapp-title {
        font-size: 18px;
    }

    .freeapp-tabs {
        padding: 12px 20px 16px 20px;
    }

    .freeapp-body {
        padding: 16px 20px;
    }

    .freeapp-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .freeapp-card {
        padding: 10px;
    }

    .freeapp-card-content {
        flex-direction: column;
        gap: 8px;
    }

    .freeapp-icon img {
        width: 48px;
        height: 48px;
        border-radius: 10px;
    }

    .freeapp-name {
        font-size: 14px;
        -webkit-line-clamp: 1;
    }

    .freeapp-badge {
        font-size: 10px;
        padding: 2px 6px;
    }

    .freeapp-desc {
        display: none;
    }
}

/* 兑换码弹窗 */
.redeem-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10001;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.redeem-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
}

.redeem-modal-content {
    position: relative;
    background: white;
    border-radius: 16px;
    max-width: 500px;
    width: 100%;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.redeem-header {
    padding: 20px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.redeem-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.redeem-close {
    width: 32px;
    height: 32px;
    border: none;
    background: #f1f5f9;
    border-radius: 50%;
    font-size: 20px;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
    line-height: 1;
}

.redeem-close:hover {
    background: #e2e8f0;
}

.redeem-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.redeem-code-box {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 16px;
    text-align: center;
}

.redeem-label {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 8px;
}

.redeem-code {
    font-size: 24px;
    font-weight: 600;
    color: #1e293b;
    letter-spacing: 2px;
    margin-bottom: 12px;
    word-break: break-all;
}

.redeem-copy-btn, .redeem-store-btn, .redeem-download-btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.redeem-copy-btn {
    background: #667eea;
    color: white;
}

.redeem-copy-btn:hover {
    background: #5568d3;
}

.redeem-store-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    text-decoration: none;
    display: block;
    text-align: center;
}

.redeem-download-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    text-decoration: none;
    display: block;
    text-align: center;
}

.redeem-store-btn:hover {
    opacity: 0.9;
}
