/* 全局重置 - 极简设计 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* 极简色彩系统 */
    --text-primary: #ffffff;
    --text-secondary: #999999;
    --bg-buy: #10b981; /* 买入信号 - 绿色 */
    --bg-neutral: #6b7280; /* 中性 - 灰色 */
    --bg-sell: #ef4444; /* 卖出信号 - 红色 */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    font-family: var(--font-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--bg-neutral);
    color: var(--text-primary);
    transition: background-color 1s ease;
    overflow: hidden;
}

/* 主容器 */
.container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    position: relative;
}

/* 巨大数值显示 - 核心设计 */
.index-value {
    font-size: 20vw; /* 巨大的视窗单位字体 */
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.02em;
    text-align: center;
    margin-bottom: 1rem;
    animation: pulse 3s ease-in-out infinite;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* 微妙的脉冲动画 */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.02);
        opacity: 0.95;
    }
}

/* 最后更新时间 - 白色小字 */
.last-update {
    position: absolute;
    bottom: 2rem;
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 400;
    letter-spacing: 0.05em;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.last-update:hover {
    opacity: 1;
}


/* BTC价格样式 - 更不显眼 */
.btc-price {
    font-size: 0.9em;
    opacity: 0.9;
}

/* 状态背景颜色 */
body.buy {
    background-color: var(--bg-buy);
}

body.sell {
    background-color: var(--bg-sell);
}

body.neutral {
    background-color: var(--bg-neutral);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .index-value {
        font-size: 25vw;
    }
    
    .last-update {
        font-size: 0.9rem;
        bottom: 1.5rem;
    }
}

@media (max-width: 480px) {
    .index-value {
        font-size: 30vw;
    }
    
    .last-update {
        font-size: 0.8rem;
        bottom: 1rem;
    }
}

/* 加载状态 */
.loading {
    opacity: 0.7;
}
