/* 游戏卡片列表 */
.rx-game-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.rx-game-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.rx-game-card:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0,0,0,0.1); }

.card-thumbnail {
    position: relative;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    background: #f0f2f5;
}

.card-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
}

.badge {
    background: #ff4d4f;
    color: white;
    padding: 2px 8px;
    font-size: 12px;
    border-radius: 4px;
    font-weight: bold;
}

.card-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-content h3 {
    margin: 0 0 10px 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    min-height: 44px; /* 保证两行高度 */
}

.card-content p {
    color: #666;
    font-size: 14px;
    margin: 0 0 15px 0;
    flex-grow: 1;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #eee;
    padding-top: 10px;
    margin-top: auto;
}

.card-footer small { color: #999; font-size: 12px; }

.rx-download-btn {
    background: #1890ff;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.2s;
}

.rx-download-btn:hover { background: #40a9ff; }

/* ================= 模态框样式 (仿照截图) ================= */
.rx-modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 99999;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.rx-modal {
    background: #fff;
    width: 100%;
    max-width: 480px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    animation: modalIn 0.3s ease;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

@keyframes modalIn { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }

.rx-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
}

.rx-modal-header h3 { margin: 0; font-size: 18px; }

.rx-close-btn {
    background: none; border: none; font-size: 24px; cursor: pointer; color: #999;
}

.rx-modal-body {
    padding: 20px;
    overflow-y: auto;
}

/* 黄色警告条 */
.rx-warning-bar {
    background: #fffbe6;
    border: 1px solid #ffe58f;
    color: #ad8b00;
    padding: 10px 15px;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 网盘列表项 */
.provider-item {
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.provider-info { display: flex; align-items: center; gap: 12px; }

.provider-icon {
    width: 32px; height: 32px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: white; font-weight: bold; font-size: 14px;
}

.icon-quark { background: #25a5e6; }
.icon-baidu { background: #2932e1; }
.icon-xunlei { background: #0099ff; }

.provider-name { font-weight: 500; }

.provider-action button {
    background: #1890ff;
    color: white;
    border: none;
    padding: 6px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
}

.provider-action button.secondary {
    background: white;
    color: #1890ff;
    border: 1px solid #1890ff;
}

/* 二维码显示区域 */
.qr-code-area {
    text-align: center;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    margin-top: 10px;
}

.qr-code-area img { width: 180px; height: 180px; margin-bottom: 10px; }