/* 全局颜色定义 */
:root {
    --primary-color: #3498db;
    --secondary-color: #2ecc71;
    --accent-color: #e74c3c;
    --dark-color: #2c3e50;
    --light-color: #ecf0f1;
    --gradient-primary: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    --gradient-secondary: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

body {
    font-family: 'Segoe UI', 'Roboto', sans-serif;
    line-height: 1.6;
    background-color: var(--light-color);
    color: var(--dark-color);
    background: linear-gradient(to right, #f5f7fa, #c3cfe2);
}

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

/* 头部样式 */
header {
    background: var(--gradient-primary);
    color: white;
    padding: 15px 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    width: 60px;
    margin-right: 15px;
    border-radius: 50%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.logo h1 {
    font-weight: 300;
    letter-spacing: 1px;
}

nav a {
    color: white;
    text-decoration: none;
    margin-left: 20px;
    position: relative;
    font-weight: 300;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: white;
    transition: width 0.3s;
}

nav a:hover::after {
    width: 100%;
}

nav a.register-btn {
    background-color: var(--secondary-color);
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
}

nav a.register-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.3);
}

/* 价格区域 */
.price-section {
    background: white;
    padding: 30px 0;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
}

.price-info {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.current-price {
    margin-right: 50px;
    background: var(--gradient-secondary);
    padding: 20px;
    border-radius: 10px;
    color: white;
}

.current-price .price {
    font-size: 42px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.price-details {
    display: flex;
    background: #f9f9f9;
    padding: 15px;
    border-radius: 10px;
}

.price-details .detail {
    margin: 0 15px;
    text-align: center;
}

.price-details .change {
    font-weight: bold;
    font-size: 18px;
}

.change.positive {
    color: var(--secondary-color);
}

.change.negative {
    color: var(--accent-color);
}

.price-register-btn {
    display: inline-block;
    margin-top: 15px;
    background-color: var(--accent-color);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.3s, box-shadow 0.3s;
}

.price-register-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* 图表区域 */
.chart-section {
    background: rgba(255, 255, 255, 0.8);
    padding: 30px 0;
    backdrop-filter: blur(10px);
}

.chart-controls {
    text-align: center;
    margin-bottom: 20px;
}

.chart-controls select {
    padding: 10px;
    border-radius: 5px;
    border: 1px solid var(--primary-color);
    background-color: white;
    color: var(--dark-color);
}

.chart {
    width: 100%;
    height: 500px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* 关于区域 */
.about-section {
    background: white;
    padding: 30px 0;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    background: linear-gradient(to right, #f6d365 0%, #fda085 100%);
    padding: 20px;
    border-radius: 10px;
    color: white;
}

.about-content p {
    margin-bottom: 15px;
    line-height: 1.8;
    opacity: 0.9;
}

/* 底部 */
footer {
    background: var(--dark-color);
    color: white;
    text-align: center;
    padding: 15px 0;
    box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.1);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .price-info {
        flex-direction: column;
    }

    .current-price {
        margin-right: 0;
        margin-bottom: 20px;
        width: 100%;
    }

    .price-details {
        flex-direction: column;
        width: 100%;
    }

    .price-details .detail {
        margin: 10px 0;
    }

    .chart {
        height: 300px;
        width: 100%;
        overflow-x: auto;
    }

    nav {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    nav a {
        margin: 10px 0;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

section {
    animation: fadeIn 1s ease;
}

/* 汉堡菜单 */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1000;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 3px 0;
    transition: 0.4s;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    header .container {
        position: relative;
    }

    nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--gradient-primary);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    nav.active {
        display: flex;
    }

    nav a {
        margin: 10px 0;
        width: 100%;
        text-align: center;
    }

    nav a.register-btn {
        margin-top: 15px;
    }
} 