/* 积分明细模态框样式 */
.modal-points-history {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #0f1b3d, #182b56, #1a336b);
    border: 1px solid rgba(78, 204, 255, 0.5);
    border-radius: 20px;
    color: #fff;
    padding: 30px 25px;
    text-align: left;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7), 0 0 20px rgba(78, 204, 255, 0.4);
    z-index: 1001;
    width: 90%;
    max-width: 650px;
    box-sizing: border-box;
    max-height: 80vh;
    overflow-y: auto;
    transition: all 0.3s ease;
}

.modal-points-history.active {
    display: block;
    animation: fadeInModal 0.4s ease;
}

/* 关闭按钮样式 */
.modal-points-history .close-points-history-button {
    background: rgba(30, 48, 93, 0.7);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 15px;
    right: 15px;
    border: 1px solid rgba(78, 204, 255, 0.3);
    transition: all 0.3s ease;
}

.modal-points-history .close-points-history-button:hover {
    background: rgba(78, 204, 255, 0.3);
    transform: rotate(90deg);
}

.modal-points-history .close-points-history-button svg {
    width: 16px;
    height: 16px;
    stroke: #4eceff;
}

.modal-points-history h2 {
    background: linear-gradient(to right, #4eceff, #c054ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: none;
    font-weight: 600;
    margin: 5px 0 20px;
    letter-spacing: 1px;
    font-size: 24px;
}

/* 添加内容区域固定高度 */
.points-history-content {
    min-height: 300px;
    position: relative;
}

.points-history-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
}

.points-history-table th, 
.points-history-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid rgba(78, 204, 255, 0.3);
    font-size: 14px;
}

.points-history-table th {
    color: rgba(78, 204, 255, 0.9);
    font-weight: 500;
    padding-bottom: 15px;
}

.points-history-table td.amount {
    font-weight: 500;
}

.points-history-table td.balance {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
}

.points-history-table td.positive {
    color: #4ecb73;
}

.points-history-table td.negative {
    color: #ff6b6b;
}

.points-history-table td.date {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
}

.points-history-empty {
    text-align: center;
    padding: 30px 0;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(30, 48, 93, 0.6);
    border-radius: 12px;
    margin: 20px 0;
}

.points-history-loading {
    text-align: center;
    padding: 30px 0;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(30, 48, 93, 0.6);
    border-radius: 12px;
    margin: 20px 0;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(78, 204, 255, 0.3);
    border-radius: 50%;
    border-top: 3px solid #4eceff;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.points-history-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 25px;
}

.points-history-pagination button {
    background: none;
    border: 1px solid rgba(78, 204, 255, 0.3);
    border-radius: 10px;
    color: #4eceff;
    padding: 8px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 13px;
    position: relative;
    overflow: hidden;
}

.points-history-pagination button:hover:not(:disabled) {
    background: rgba(30, 48, 93, 0.7);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.points-history-pagination button:active:not(:disabled) {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.points-history-pagination button::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.points-history-pagination button:hover::after:not(:disabled) {
    left: 100%;
}

.points-history-pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.points-history-pagination-info {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    background: rgba(30, 48, 93, 0.6);
    padding: 6px 12px;
    border-radius: 12px;
}

.points-history-footnote {
    margin-top: 20px;
    padding: 10px;
    background: rgba(30, 48, 93, 0.6);
    border-radius: 10px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.5;
    text-align: center;
    border-left: 3px solid rgba(78, 204, 255, 0.5);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .modal-points-history {
        width: 90%;
        max-width: 350px;
        padding: 25px 20px;
    }
    
    .modal-points-history h2 {
        font-size: 20px;
    }
    
    .points-history-table th,
    .points-history-table td {
        padding: 8px 5px;
        font-size: 12px;
    }
    
    .points-history-pagination button {
        font-size: 12px;
        padding: 6px 12px;
    }
} 