
/* 基本重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 颜色变量 */
:root {
    --primary-color: #0A1F44;
    --secondary-color-start: #5B247A;
    --secondary-color-end: #8D3B97;
    --accent-color: #FFC107;
    --background-color: #f5f5f5;
    --text-color: #333;
    --font-primary: 'Roboto', sans-serif;
    --font-secondary: 'Montserrat', sans-serif;
}

/* 全局样式 */
body {
    font-family: var(--font-primary);
    background: linear-gradient(135deg, var(--secondary-color-start), var(--secondary-color-end));
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 顶部导航栏 */
.header {
    background-color: var(--primary-color);
    color: #fff;
    padding: 20px;
    text-align: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header h1 {
    font-family: var(--font-secondary);
    font-size: 24px;
}

.nav-menu {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.nav-menu a {
    color: #fff;
    text-decoration: none;
    margin: 0 15px;
    font-weight: bold;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: var(--accent-color);
}

/* 主内容区 */
.main-content {
    display: flex;
    margin-top: 100px;
    flex: 1;
}

/* 左侧面板 */
.left-panel {
    width: 35%;
    background: radial-gradient(circle, rgba(255, 87, 34, 0.5), transparent);
    padding: 20px;
    overflow-y: auto;
}

.left-panel h2 {
    font-family: var(--font-secondary);
    color: #fff;
    margin-bottom: 20px;
}

.stock-list, .portfolio-overview, .financial-news, .investment-stats, .smart-recommendations, .risk-assessment, .market-heatmap, .personalized-reminders {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.stock-list ul, .portfolio-overview ul, .financial-news ul, .investment-stats ul, .smart-recommendations ul, .risk-assessment ul, .market-heatmap ul, .personalized-reminders ul {
    list-style: none;
}

.stock-list li, .portfolio-overview li, .financial-news li, .investment-stats li, .smart-recommendations li, .risk-assessment li, .market-heatmap li, .personalized-reminders li {
    margin-bottom: 10px;
    color: #fff;
}

.right-panel {
    width: 65%;
    background: linear-gradient(135deg, #ffffff, #e0e0e0);
    padding: 20px;
    overflow-y: auto;
}

.right-panel h2 {
    font-family: var(--font-secondary);
    color: var(--primary-color);
    margin-bottom: 20px;
}

.operation-area {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
}

.operation-area h3 {
    font-family: var(--font-secondary);
    color: var(--secondary-color-start);
    margin-bottom: 15px;
}

.button-group {
    display: flex;
    gap: 15px;
}

.button-group a {
    text-decoration: none;
    background-color: var(--primary-color);
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    transition: transform 0.2s ease, background-color 0.3s;
}

.button-group a:hover {
    background-color: var(--accent-color);
    transform: scale(1.05);
}

.cta-button {
    background-color: var(--accent-color);
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.cta-button:hover {
    background-color: #FFA000;
    transform: scale(1.05);
}

.article-section {
    margin-top: 40px;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
}

.article-section h2, .article-section h3 {
    font-family: var(--font-secondary);
    color: var(--primary-color);
}

.article-section p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.article-section ul {
    list-style: disc inside;
    margin-bottom: 15px;
}

.article-section pre {
    background-color: #f0f0f0;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
}

.article-section code {
    font-family: 'Courier New', Courier, monospace;
    color: #d14;
}

.image-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.image-gallery img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 5px;
    transition: transform 0.3s;
}

.image-gallery img:hover {
    transform: scale(1.1);
}

/* 提示信息 */
.reference-note {
    text-align: center;
    margin-top: 20px;
    font-style: italic;
    color: #555;
}

/* 动画 */
@keyframes aurora-move {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.left-panel {
    animation: aurora-move 15s linear infinite;
}

/* 响应式设计 */
@media (max-width: 1440px) {
    .left-panel {
        width: 35%;
    }
    .right-panel {
        width: 65%;
    }
}

@media (max-width: 1200px) {
    .left-panel {
        width: 40%;
    }
    .right-panel {
        width: 60%;
    }
}

@media (max-width: 1024px) {
    .left-panel {
        width: 45%;
    }
    .right-panel {
        width: 55%;
    }
}

@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
    }
    .left-panel, .right-panel {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 20px;
    }
    .nav-menu a {
        margin: 0 10px;
        font-size: 14px;
    }
    .button-group a, .cta-button {
        padding: 8px 16px;
        font-size: 14px;
    }
    .image-gallery img {
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 320px) {
    .header h1 {
        font-size: 18px;
    }
    .nav-menu a {
        margin: 0 5px;
        font-size: 12px;
    }
    .button-group a, .cta-button {
        padding: 6px 12px;
        font-size: 12px;
    }
    .image-gallery img {
        width: 60px;
        height: 60px;
    }
}

