/* web/study/rank_rewards_modal.css - 荣耀段位赏金之路模态框样式 (手机端特化) */

.rr-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 9999;
    display: none;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.rr-overlay.active {
    display: flex;
    opacity: 1;
}

.rr-modal-card {
    width: 100%;
    max-width: 500px;
    height: 90vh;
    max-height: 840px;
    background: #ffffff;
    border-radius: 20px 20px 0 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.3);
    animation: rrSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes rrSlideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.rr-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
    color: #ffffff;
    flex-shrink: 0;
}

.rr-header-title {
    font-size: 1.15rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.5px;
}

.rr-btn-close {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 700;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

.rr-btn-close:active {
    background: rgba(255, 255, 255, 0.3);
}

/* 顶部学生状态摘要栏 */
.rr-summary-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.rr-summary-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.rr-summary-badge {
    font-size: 0.95rem;
    font-weight: 900;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 6px;
}

.rr-summary-sub {
    font-size: 0.76rem;
    color: #64748b;
    font-weight: 700;
}

.rr-btn-claim-all {
    background: #e2e8f0;
    color: #94a3b8;
    border: none;
    padding: 7px 14px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 800;
    cursor: not-allowed;
    transition: all 0.25s;
    white-space: nowrap;
}

.rr-btn-claim-all.active {
    background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
    color: #ffffff;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(234, 88, 12, 0.35);
    animation: rrPulse 2s infinite ease-in-out;
}

@keyframes rrPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.04); }
}

/* 终极大奖展示展台 */
.rr-grand-showcase {
    margin: 14px 16px 8px;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 50%, #fde68a 100%);
    border: 2px solid #f59e0b;
    border-radius: 14px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.2);
    flex-shrink: 0;
}

.rr-grand-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #ffffff;
    border: 2px solid #f59e0b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.25);
}

.rr-grand-info {
    flex: 1;
    min-width: 0;
}

.rr-grand-title {
    font-size: 0.92rem;
    font-weight: 900;
    color: #92400e;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.rr-grand-desc {
    font-size: 0.72rem;
    color: #b45309;
    font-weight: 600;
    line-height: 1.3;
}

/* 赏金之路竖向卡片流列表 */
.rr-list-container {
    flex: 1;
    overflow-y: auto;
    padding: 10px 16px 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    -webkit-overflow-scrolling: touch;
}

.rr-node-card {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    transition: all 0.2s;
    position: relative;
}

.rr-node-major {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-width: 2px;
    border-color: #cbd5e1;
}

.rr-node-card.status-claimable {
    border-color: #f59e0b;
    background: linear-gradient(135deg, #fffbeb 0%, #ffffff 100%);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.15);
}

.rr-node-card.status-claimed {
    opacity: 0.72;
    background: #f8fafc;
}

.rr-node-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1;
}

.rr-node-icon {
    font-size: 24px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    border-radius: 10px;
    flex-shrink: 0;
}

.rr-node-detail {
    min-width: 0;
    flex: 1;
}

.rr-node-title-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 3px;
}

.rr-node-title {
    font-size: 0.88rem;
    font-weight: 800;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rr-node-mmr-badge {
    background: #eff6ff;
    color: #2563eb;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 6px;
    white-space: nowrap;
}

.rr-node-rewards-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    font-size: 0.75rem;
    color: #475569;
    font-weight: 700;
}

.rr-reward-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 6px;
    color: #334155;
    font-size: 0.72rem;
}

.rr-chip-points {
    background: #fef3c7;
    color: #b45309;
}

.rr-chip-item {
    background: #ede9fe;
    color: #6d28d9;
}

.rr-chip-special {
    background: #fce7f3;
    color: #be185d;
    font-weight: 800;
}

/* 按钮区 */
.rr-node-action {
    flex-shrink: 0;
}

.rr-btn-claim {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff;
    border: none;
    font-size: 0.8rem;
    font-weight: 800;
    padding: 6px 12px;
    border-radius: 16px;
    cursor: pointer;
    box-shadow: 0 3px 8px rgba(37, 99, 235, 0.3);
    transition: transform 0.15s;
    white-space: nowrap;
}

.rr-btn-claim:active {
    transform: scale(0.94);
}

.rr-btn-claim.pulse-glow {
    background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
    box-shadow: 0 4px 12px rgba(234, 88, 12, 0.4);
    animation: rrPulse 1.8s infinite ease-in-out;
}

.rr-btn-claimed {
    background: #e2e8f0;
    color: #64748b;
    border: none;
    font-size: 0.76rem;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 16px;
    cursor: default;
    white-space: nowrap;
}

.rr-tag-locked {
    font-size: 0.72rem;
    font-weight: 700;
    color: #94a3b8;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    padding: 4px 8px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    white-space: nowrap;
}
