/* 远见者预测页面专用样式 */

/* 日期显示样式 */
.date-display {
    margin-top: 1rem;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
}

/* 预测容器样式 */
.predictions-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* 预测卡片样式 */
.prediction-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 1.5rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.prediction-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

/* 预测头部样式 */
.prediction-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    border-bottom: 2px solid #f8f9fa;
    padding-bottom: 1rem;
}

.prediction-title {
    font-size: 1.3rem;
    color: #2c3e50;
    margin: 0;
}

.prediction-category {
    background: #3498db;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

/* 预测内容样式 */
.prediction-content {
    margin-bottom: 1.5rem;
}

.prediction-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.prediction-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.prediction-label {
    font-weight: bold;
    color: #555;
}

.prediction-value {
    color: #e74c3c;
    font-weight: bold;
}

/* 预测底部样式 */
.prediction-footer {
    border-top: 1px solid #f0f0f0;
    padding-top: 1rem;
}

.confidence-meter {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.confidence-label {
    font-size: 0.9rem;
    color: #666;
    min-width: 60px;
}

.confidence-bar {
    flex: 1;
    height: 8px;
    background: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
}

.confidence-fill {
    height: 100%;
    background: linear-gradient(90deg, #2ecc71, #27ae60);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.confidence-value {
    font-weight: bold;
    color: #27ae60;
    min-width: 40px;
    text-align: right;
}

/* 自定义内容文本框样式 */
.features-section {
    padding: 3rem 0;
    text-align: center;
}

.features-section h3 {
    text-align: center;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.styleable-textbox {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.intro-text {
    line-height: 1.8;
    margin: 0 0 2rem 0;
    color: #666;
}

/* 表格容器样式 */
.table-container {
    overflow-x: auto;
    margin: 2rem 0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* 情景分析表格样式 */
.scenario-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    background: white;
}

.scenario-table th,
.scenario-table td {
    padding: 12px 8px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
    white-space: nowrap;
}

.scenario-table th {
    background: #f8f9fa;
    font-weight: bold;
    color: #2c3e50;
    position: sticky;
    top: 0;
    z-index: 1;
}

.scenario-table tr:hover {
    background-color: #f8f9fa;
}

/* 情景类型颜色标识 */
.scenario-table td:first-child {
    font-weight: bold;
}

.scenario-table tr:nth-child(-n+3) td:first-child {
    color: #27ae60; /* 乐观情景 - 绿色 */
}

/* 黄金价格情景分析图表样式 */
.chart-container {
    margin: 2rem 0;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.chart-container h4 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #2c3e50;
    font-size: 1.2rem;
}

.chart-wrapper {
    position: relative;
    margin: 0 auto;
    max-width: 800px;
}

.chart-legend {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #555;
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 3px;
}

.legend-color.optimistic {
    background: #27ae60; /* 绿色 - 乐观情景 */
}

.legend-color.baseline {
    background: #3498db; /* 蓝色 - 基准情景 */
}

.legend-color.pessimistic {
    background: #e74c3c; /* 红色 - 悲观情景 */
}

/* 水印样式 */
.chart-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
    font-size: 48px;
    color: rgba(0, 0, 0, 0.05);
    font-weight: bold;
    pointer-events: none;
    z-index: 1;
    white-space: nowrap;
}


.scenario-table tr:nth-child(n+4):nth-child(-n+6) td:first-child {
    color: #3498db; /* 基准情景 - 蓝色 */
}

.scenario-table tr:nth-child(n+7) td:first-child {
    color: #e74c3c; /* 悲观情景 - 红色 */
}

/* 概率列样式 */
.scenario-table td:nth-child(2) {
    font-weight: bold;
    text-align: center;
}

/* 价格相关列样式 */
.scenario-table td:nth-child(4),
.scenario-table td:nth-child(5),
.scenario-table td:nth-child(6) {
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
}

/* 响应式表格 */
@media screen and (max-width: 768px) {
    .scenario-table {
        font-size: 0.8rem;
    }
    
    .scenario-table th,
    .scenario-table td {
        padding: 8px 4px;
    }
    
    .scenario-table td:nth-child(4),
    .scenario-table td:nth-child(5),
    .scenario-table td:nth-child(6) {
        font-size: 0.75rem;
    }
}

/* 预测说明区域样式 */
.prediction-info {
    max-width: 800px;
    margin: 3rem auto;
    padding: 0 2rem;
}

.info-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    padding: 2rem;
    text-align: center;
}

.info-card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.info-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.update-info {
    font-size: 0.9rem;
    color: #999;
    border-top: 1px solid #f0f0f0;
    padding-top: 1rem;
}

/* 响应式设计 */
@media screen and (max-width: 768px) {
    .predictions-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .prediction-card {
        padding: 1rem;
    }
    
    .prediction-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .confidence-meter {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .confidence-bar {
        width: 100%;
    }
    
    .prediction-info {
        padding: 0 1rem;
        margin: 2rem auto;
    }
    
    .info-card {
        padding: 1.5rem;
    }
}

@media screen and (max-width: 480px) {
    .predictions-container {
        gap: 1rem;
    }
    
    .prediction-card {
        padding: 0.8rem;
    }
    
    .prediction-title {
        font-size: 1.1rem;
    }
    
    .prediction-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3rem;
    }
}

/* 情绪情景说明样式 */
.chart-explanation {
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.chart-explanation h5 {
    margin: 0 0 1rem 0;
    color: #2c3e50;
    font-size: 1.1rem;
    font-weight: 600;
}

.emotion-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.emotion-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.emotion-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.emotion-color {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 2px;
}

.emotion-item.optimistic .emotion-color {
    background: #27ae60; /* 绿色 - 乐观情景 */
}

.emotion-item.baseline .emotion-color {
    background: #3498db; /* 蓝色 - 基准情景 */
}

.emotion-item.pessimistic .emotion-color {
    background: #e74c3c; /* 红色 - 悲观情景 */
}

.emotion-content {
    flex: 1;
}

.emotion-content strong {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    color: #2c3e50;
}

.emotion-content p {
    margin: 0;
    color: #666;
    line-height: 1.4;
    font-size: 0.9rem;
}

/* 响应式设计 */
@media screen and (max-width: 768px) {
    .emotion-items {
        gap: 0.8rem;
    }
    
    .emotion-item {
        padding: 0.8rem;
        gap: 0.8rem;
    }
    
    .emotion-color {
        width: 16px;
        height: 16px;
    }
    
    .emotion-content strong {
        font-size: 0.95rem;
    }
    
    .emotion-content p {
        font-size: 0.85rem;
    }
}

@media screen and (max-width: 480px) {
    .chart-explanation {
        padding: 1rem;
        margin: 1rem 0;
    }
    
    .emotion-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .emotion-color {
        margin-top: 0;
    }
}