/* 智能窥探样式文件 */

/* ============================================ */
/* 1. 评分卡片样式 */
/* ============================================ */

.peeping-score-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
    color: white;
    margin: 20px 0;
}

.peeping-score-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.peeping-score-header h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

.peeping-timestamp {
    font-size: 12px;
    opacity: 0.8;
}

/* ============================================ */
/* 2. 总分显示 */
/* ============================================ */

.peeping-score-main {
    text-align: center;
    margin: 30px 0;
}

.peeping-total-score {
    margin-bottom: 24px;
}

.score-number {
    font-size: 72px;
    font-weight: 700;
    line-height: 1;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    animation: scorePopIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.score-level {
    font-size: 32px;
    margin: 8px 0;
}

.score-level-name {
    font-size: 20px;
    font-weight: 500;
    opacity: 0.95;
}

@keyframes scorePopIn {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* ============================================ */
/* 3. 操作建议 */
/* ============================================ */

.peeping-advice {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 16px 20px;
    margin: 20px 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.advice-label {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    opacity: 0.9;
}

.advice-content {
    font-size: 16px;
    line-height: 1.6;
    font-weight: 500;
}

/* ============================================ */
/* 4. 趋势状态 */
/* ============================================ */

.peeping-trend-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
}

.trend-label {
    opacity: 0.8;
}

.trend-value {
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 12px;
}

.trend-上涨 {
    background: rgba(0, 230, 118, 0.3);
    color: #00e676;
}

.trend-下跌 {
    background: rgba(244, 67, 54, 0.3);
    color: #ff5252;
}

.trend-震荡 {
    background: rgba(255, 193, 7, 0.3);
    color: #ffc107;
}

/* ============================================ */
/* 4.1 位置状态显示 */
/* ============================================ */

.peeping-position-state {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    padding: 10px 16px;
    border-radius: 20px;
    font-size: 14px;
    margin-top: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.position-label {
    opacity: 0.9;
    font-weight: 500;
}

.position-value {
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 12px;
    font-size: 15px;
}

/* 位置状态颜色 */
.position-support {
    background: rgba(0, 230, 118, 0.3);
    color: #00e676;
    box-shadow: 0 0 10px rgba(0, 230, 118, 0.4);
}

.position-resistance {
    background: rgba(255, 152, 0, 0.3);
    color: #ffa726;
    box-shadow: 0 0 10px rgba(255, 152, 0, 0.4);
}

.position-bearish {
    background: rgba(244, 67, 54, 0.3);
    color: #ff5252;
    box-shadow: 0 0 10px rgba(244, 67, 54, 0.4);
}

.position-bullish {
    background: rgba(76, 175, 80, 0.3);
    color: #4caf50;
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.4);
}

.position-neutral {
    background: rgba(158, 158, 158, 0.3);
    color: #bdbdbd;
}

.weight-info {
    font-size: 12px;
    opacity: 0.8;
    background: rgba(0, 0, 0, 0.1);
    padding: 2px 8px;
    border-radius: 8px;
}

/* ============================================ */
/* 4.2 重点关注维度样式 */
/* ============================================ */

.dimension-priority {
    background: rgba(255, 193, 7, 0.15) !important;
    border: 2px solid rgba(255, 193, 7, 0.5) !important;
    position: relative;
    animation: priorityGlow 2s ease-in-out infinite;
}

@keyframes priorityGlow {

    0%,
    100% {
        box-shadow: 0 0 5px rgba(255, 193, 7, 0.3);
    }

    50% {
        box-shadow: 0 0 15px rgba(255, 193, 7, 0.5);
    }
}

.priority-badge {
    font-size: 12px;
    background: linear-gradient(135deg, #ff9800 0%, #ffc107 100%);
    color: #fff;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 8px;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(255, 152, 0, 0.4);
    animation: badgePulse 1.5s ease-in-out infinite;
}

@keyframes badgePulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* ============================================ */
/* 5. 按钮样式 */
/* ============================================ */

.peeping-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.peeping-btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.peeping-btn-primary {
    background: white;
    color: #667eea;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

.peeping-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 255, 255, 0.4);
}

.peeping-btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.peeping-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* ============================================ */
/* 6. 详细得分面板 */
/* ============================================ */

.peeping-details-panel {
    margin-top: 24px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dimensions-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.dimension-card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.dimension-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.dimension-name {
    font-size: 16px;
    font-weight: 600;
}

.dimension-score-badge {
    font-size: 14px;
    color: white;
    padding: 6px 14px;
    border-radius: 16px;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* 保留旧样式以兼容（如果有其他地方使用） */
.dimension-weight {
    font-size: 12px;
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 10px;
    border-radius: 12px;
}

/* ============================================ */
/* 7. 得分条 */
/* ============================================ */

.dimension-score-bar {
    position: relative;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 12px;
}

.score-bar-fill {
    height: 100%;
    border-radius: 16px;
    transition: width 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 12px;
    position: relative;
}

.score-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.3) 50%,
            transparent 100%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.score-value {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 600;
    font-size: 14px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* ============================================ */
/* 8. 详情列表 */
/* ============================================ */

.dimension-details {
    font-size: 13px;
    line-height: 1.6;
}

.detail-item {
    padding: 6px 0;
    opacity: 0.9;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

/* ============================================ */
/* 9. 雷达图面板 */
/* ============================================ */

.peeping-radar-panel {
    margin-top: 24px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.radar-chart-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

#peepingRadarChart {
    max-width: 100%;
    height: auto;
}

/* ============================================ */
/* 10. 批量评分样式 */
/* ============================================ */

.batch-score-list {
    margin-top: 20px;
}

.batch-score-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.batch-score-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(4px);
}

.batch-rank {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    font-weight: 700;
    font-size: 18px;
}

.batch-info {
    flex: 1;
}

.batch-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.batch-code {
    font-size: 12px;
    opacity: 0.7;
}

.batch-score {
    font-size: 28px;
    font-weight: 700;
}

.batch-level {
    font-size: 20px;
}

/* ============================================ */
/* 11. 响应式设计 */
/* ============================================ */

@media (max-width: 768px) {
    .peeping-score-card {
        padding: 20px 16px;
    }

    .score-number {
        font-size: 56px;
    }

    .score-level {
        font-size: 24px;
    }

    .peeping-actions {
        flex-direction: column;
    }

    .radar-chart-container canvas {
        width: 100% !important;
        height: auto !important;
    }
}