/* 积分系统样式 */

/* 积分显示区域 */
.points-display {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin: 10px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.points-display h3 {
    margin-top: 0;
    color: #343a40;
    font-size: 18px;
}

.points-display .points-info {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

.points-display .point-item {
    text-align: center;
}

.points-display .point-value {
    font-size: 24px;
    font-weight: bold;
    color: #007bff;
}

.points-display .point-label {
    font-size: 12px;
    color: #6c757d;
    margin-top: 5px;
}

/* 积分预览 */
.points-preview {
    background-color: #e7f3ff;
    border-radius: 8px;
    padding: 10px;
    margin: 10px 0;
    border-left: 4px solid #007bff;
}

.points-preview h4 {
    margin-top: 0;
    color: #007bff;
    font-size: 16px;
}

.points-preview .preview-item {
    display: flex;
    justify-content: space-between;
    margin: 5px 0;
    font-size: 14px;
}

/* 实时积分 */
.real-time-points {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    min-width: 200px;
}

.real-time-points h4 {
    margin-top: 0;
    color: #343a40;
    font-size: 16px;
}

.real-time-points .points-value {
    font-size: 24px;
    font-weight: bold;
    color: #28a745;
    text-align: center;
    margin: 10px 0;
}

.real-time-points .points-detail {
    font-size: 12px;
    color: #6c757d;
}

/* 成就通知 */
.achievement-notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    display: flex;
    align-items: center;
    min-width: 300px;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        top: -100px;
        opacity: 0;
    }
    to {
        top: 20px;
        opacity: 1;
    }
}

.achievement-notification .achievement-icon {
    font-size: 36px;
    margin-right: 15px;
}

.achievement-notification .achievement-content h4 {
    margin: 0;
    color: #343a40;
    font-size: 16px;
}

.achievement-notification .achievement-content p {
    margin: 5px 0 0;
    color: #6c757d;
    font-size: 14px;
}

/* 连续挑战提示 */
.consecutive提示 {
    background-color: #fff3cd;
    border-radius: 8px;
    padding: 10px;
    margin: 10px 0;
    border-left: 4px solid #ffc107;
}

.consecutive提示 h4 {
    margin-top: 0;
    color: #856404;
    font-size: 16px;
}

.consecutive提示 .提示-content {
    font-size: 14px;
    color: #856404;
}

/* 排行榜样式 */
.leaderboard {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin: 10px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.leaderboard h3 {
    margin-top: 0;
    color: #343a40;
    font-size: 18px;
}

.leaderboard .leaderboard-tabs {
    display: flex;
    margin-bottom: 15px;
}

.leaderboard .tab {
    flex: 1;
    padding: 8px;
    text-align: center;
    background-color: #e9ecef;
    border-radius: 4px 4px 0 0;
    cursor: pointer;
    font-size: 14px;
}

.leaderboard .tab.active {
    background-color: #007bff;
    color: white;
}

.leaderboard .leaderboard-content {
    background-color: white;
    border-radius: 0 0 4px 4px;
    padding: 10px;
}

.leaderboard .leaderboard-item {
    display: flex;
    justify-content: space-between;
    padding: 8px;
    border-bottom: 1px solid #e9ecef;
}

.leaderboard .leaderboard-item:last-child {
    border-bottom: none;
}

.leaderboard .rank {
    font-weight: bold;
    width: 30px;
}

.leaderboard .name {
    flex: 1;
}

.leaderboard .score {
    font-weight: bold;
    color: #007bff;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .real-time-points {
        top: 10px;
        right: 10px;
        padding: 10px;
        min-width: 150px;
    }

    .real-time-points h4 {
        font-size: 14px;
    }

    .real-time-points .points-value {
        font-size: 20px;
    }

    .achievement-notification {
        top: 10px;
        min-width: 250px;
        padding: 10px;
    }

    .achievement-notification .achievement-icon {
        font-size: 28px;
        margin-right: 10px;
    }

    .achievement-notification .achievement-content h4 {
        font-size: 14px;
    }

    .achievement-notification .achievement-content p {
        font-size: 12px;
    }
}
