/* fear-greed.css - 恐惧与贪婪指数模块样式 */

.fgi-container {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 16px;
    padding: 20px;
    color: white;
    border: 1px solid #2d3748;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    margin-bottom: 25px;
    position: relative;
    overflow: hidden;
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

.fgi-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #d63031, #fdcb6e, #00b894);
}

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

.fgi-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
}

.fgi-title i {
    color: #f0b90b;
}

.fgi-update-time {
    font-size: 12px;
    color: #a0aec0;
    background: rgba(255, 255, 255, 0.08);
    padding: 4px 8px;
    border-radius: 12px;
}

/* 扇形仪表盘样式 */
.fgi-gauge-wrapper {
    position: relative;
    width: 220px;
    height: 120px;
    margin: 0 auto 25px;
}

.fgi-gauge {
    position: relative;
    width: 100%;
    height: 100%;
}

.fgi-gauge-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 220px 220px 0 0;
    background: conic-gradient(
        from 0.75turn at 50% 100%,
        #d63031 0deg,
        #e17055 45deg,
        #fdcb6e 90deg,
        #55efc4 135deg,
        #00b894 180deg
    );
    overflow: hidden;
    clip-path: polygon(0% 100%, 100% 100%, 100% 0%, 50% 0%, 0% 0%);
}

.fgi-gauge-inner {
    position: absolute;
    width: 140px;
    height: 70px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 140px 140px 0 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.fgi-gauge-pointer {
    position: absolute;
    width: 4px;
    height: 80px;
    background: white;
    bottom: 0;
    left: 50%;
    transform-origin: bottom center;
    z-index: 3;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    border-radius: 2px 2px 0 0;
}

.fgi-gauge-pointer::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.7);
}

.fgi-gauge-scale {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 4;
}

.fgi-scale-mark {
    position: absolute;
    bottom: 0;
    left: 50%;
    height: 15px;
    width: 2px;
    background: rgba(255, 255, 255, 0.3);
    transform-origin: bottom center;
}

.fgi-scale-label {
    position: absolute;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.6);
    transform-origin: bottom center;
    bottom: 18px;
}

.fgi-gauge-value {
    position: absolute;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 5;
}

.fgi-gauge-number {
    font-size: 36px;
    font-weight: 800;
    color: white;
    line-height: 1;
    margin-bottom: 5px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.fgi-gauge-text {
    font-size: 14px;
    font-weight: 600;
    color: #a0aec0;
}

/* 情绪状态指示器 */
.fgi-status {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 15px 0;
}

.fgi-status-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #a0aec0;
}

.fgi-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.fgi-status-dot.extreme-fear { background: #d63031; }
.fgi-status-dot.fear { background: #e17055; }
.fgi-status-dot.neutral { background: #fdcb6e; }
.fgi-status-dot.greed { background: #55efc4; }
.fgi-status-dot.extreme-greed { background: #00b894; }

/* 数据网格 */
.fgi-data-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin: 20px 0;
}

.fgi-data-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 12px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.fgi-data-label {
    font-size: 11px;
    color: #a0aec0;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.fgi-data-value {
    font-size: 16px;
    font-weight: 700;
    color: white;
}

/* 解读区域 */
.fgi-insight {
    background: rgba(240, 185, 11, 0.1);
    border-left: 4px solid #f0b90b;
    padding: 12px 15px;
    border-radius: 0 8px 8px 0;
    margin: 15px 0;
}

.fgi-insight-title {
    font-size: 14px;
    font-weight: 600;
    color: #f0b90b;
    margin-bottom: 5px;
}

.fgi-insight-desc {
    font-size: 13px;
    color: #e2e8f0;
    line-height: 1.4;
}

/* 历史数据 */
.fgi-history {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 15px 0;
}

.fgi-history-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.03);
    padding: 10px;
    border-radius: 8px;
}

.fgi-history-label {
    font-size: 11px;
    color: #a0aec0;
    margin-bottom: 4px;
}

.fgi-history-value {
    font-size: 14px;
    font-weight: 600;
    color: white;
    margin-bottom: 3px;
}

.fgi-history-change {
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 10px;
    display: inline-block;
}

.fgi-history-change.positive {
    background: rgba(14, 203, 129, 0.2);
    color: #0ecb81;
}

.fgi-history-change.negative {
    background: rgba(246, 70, 93, 0.2);
    color: #f6465d;
}

/* 脚注 */
.fgi-footer {
    font-size: 10px;
    color: #718096;
    text-align: center;
    margin-top: 15px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* 响应式 */
@media (max-width: 768px) {
    .fgi-gauge-wrapper {
        width: 180px;
        height: 100px;
    }
    
    .fgi-gauge-inner {
        width: 110px;
        height: 55px;
    }
    
    .fgi-gauge-number {
        font-size: 30px;
    }
    
    .fgi-gauge-text {
        font-size: 12px;
    }
}