/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 头部样式 */
header {
    text-align: center;
    margin-bottom: 40px;
    padding: 20px 0;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

header h1 {
    color: #d4af37;
    font-size: 2.5em;
    margin-bottom: 10px;
}

header p {
    color: #666;
    font-size: 1.2em;
}

/* 价格容器样式 */
.price-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 40px;
}

/* 价格卡片样式 */
.price-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 30px;
    width: 300px;
    text-align: center;
    transition: transform 0.3s ease;
}

.price-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.price-card h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.5em;
}

.price-value {
    font-size: 2.5em;
    font-weight: bold;
    margin-bottom: 10px;
    color: #d4af37;
}

.price-change {
    font-size: 1.1em;
    margin-bottom: 10px;
}

.price-change.positive {
    color: #4CAF50;
}

.price-change.negative {
    color: #f44336;
}

.price-time {
    font-size: 0.9em;
    color: #999;
}

/* 底部样式 */
footer {
    text-align: center;
    padding: 20px 0;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    color: #666;
}

/* 加载动画样式 */
.loading-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 3px solid rgba(212, 175, 55, 0.3);
    border-radius: 50%;
    border-top-color: #d4af37;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .price-container {
        flex-direction: column;
        align-items: center;
    }
    
    .price-card {
        width: 90%;
    }
    
    header h1 {
        font-size: 2em;
    }
}