/* ===== 竞赛记录页面样式 ===== */
.record-page {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #F7F8FA;
    z-index: 10000;
    display: flex;
    flex-direction: column;
}

.record-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: linear-gradient(180deg, #E83C25 0%, #CC2310 100%);
}

.record-back-btn {
    background: none;
    border: none;
    padding: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.record-title {
    font-size: 17px;
    font-weight: 700;
    color: #FFF;
}

.record-placeholder {
    width: 36px;
}

.record-content {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

.record-week-group {
    margin-bottom: 20px;
}

.week-divider {
    text-align: center;
    position: relative;
    margin-bottom: 14px;
}

.week-divider::before,
.week-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: calc(50% - 60px);
    height: 1px;
    background: linear-gradient(90deg, transparent, #DDD);
}

.week-divider::before { left: 0; }
.week-divider::after { 
    right: 0; 
    background: linear-gradient(90deg, #DDD, transparent); 
}

.week-label {
    background: #F0F0F0;
    color: #666;
    font-size: 13px;
    font-weight: 600;
    padding: 4px 16px;
    border-radius: 12px;
    position: relative;
    z-index: 1;
}

.record-item {
    background: #FFF;
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

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

.record-date {
    font-size: 13px;
    color: #888;
    margin-bottom: 4px;
}

.record-team {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}

.record-stats {
    display: flex;
    gap: 12px;
}

.record-stats .stat {
    font-size: 12px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 8px;
}

.stat.correct { background: #E8F5E9; color: #388E3C; }
.stat.wrong { background: #FFEBEE; color: #D32F2F; }
.stat.score { background: #FFF3E0; color: #F57C00; }

.record-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-shrink: 0;
}

.record-action-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.review-btn {
    background: #FFF3E0;
    color: #F57C00;
}

.review-btn:hover { background: #FFE0B2; }

.invite-btn {
    background: #E3F2FD;
    color: #1976D2;
}

.invite-btn:hover { background: #BBDEFB; }

/* ===== 空状态 ===== */
.empty-state {
    text-align: center;
    padding: 80px 30px;
}

.empty-lottie-icon {
    width: 160px;
    height: 160px;
    margin-bottom: 8px;
    margin-left: 55px;
}

.empty-title {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}

.empty-text {
    font-size: 14px;
    color: #888;
    line-height: 1.6;
    margin-bottom: 24px;
}

.empty-start-btn {
    background: linear-gradient(180deg, #E83C25 0%, #CC2310 100%);
    color: #FFF;
    border: none;
    padding: 12px 32px;
    border-radius: 24px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

/* ===== 错题复习页面 ===== */
.wrong-page {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #FFF;
    z-index: 10001;
    display: flex;
    flex-direction: column;
}

.wrong-header {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    gap: 12px;
    background: linear-gradient(180deg, #FF7043 0%, #F4511E 100%);
}

.wrong-back-btn {
    background: none;
    border: none;
    padding: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.wrong-title {
    font-size: 17px;
    font-weight: 700;
    color: #FFF;
    flex: 1;
}

.wrong-count {
    font-size: 13px;
    color: rgba(255,255,255,0.85);
    background: rgba(255,255,255,0.15);
    padding: 4px 10px;
    border-radius: 10px;
}

.wrong-content {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

.wrong-item {
    background: #FAFAFA;
    border-radius: 14px;
    padding: 18px;
    margin-bottom: 16px;
    border: 1px solid #EEE;
}

.wrong-question-num {
    font-size: 13px;
    color: #F44336;
    font-weight: 700;
    margin-bottom: 10px;
}

.wrong-question-text {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    line-height: 1.5;
    margin-bottom: 14px;
}

.wrong-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
}

.wrong-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 10px;
    background: #FFF;
    border: 1px solid #E0E0E0;
}

.wrong-option.correct {
    background: #E8F5E9;
    border-color: #A5D6A7;
}

.wrong-option.wrong {
    background: #FFEBEE;
    border-color: #EF9A9A;
}

.opt-letter {
    width: 24px;
    height: 24px;
    background: #F5F5F5;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: #666;
    flex-shrink: 0;
}

.correct .opt-letter { background: #4CAF50; color: #FFF; }
.wrong .opt-letter { background: #F44336; color: #FFF; }

.opt-text {
    font-size: 14px;
    color: #333;
    flex: 1;
}

.answer-tag,
.error-tag {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: 600;
}

.answer-tag { background: #4CAF50; color: #FFF; }
.error-tag { background: #F44336; color: #FFF; }

.wrong-relearn-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(180deg, #4CAF50 0%, #388E3C 100%);
    color: #FFF;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wrong-relearn-btn:hover { filter: brightness(1.05); }
.wrong-relearn-btn.learned {
    background: #BDBDBD;
    cursor: default;
}
