
/* 
本文样式设计参考
==================================================
 本CSS样式文件旨在为渐变极光效果与智能投顾量化交易平台的网页设计提供全面的视觉与交互支持。 
 通过运用现代CSS3特性，如渐变、动画、响应式布局、Flexbox与Grid系统，确保页面具有高度的视觉吸引力及良好的用户体验。
 设计遵循黄金比例色彩搭配，主色70%、辅色25%、点缀色5%，通过高对比度与平衡的留白，营造出沉浸感与科技感并重的高级质感界面。 
 使用圆角、阴影、过渡效果等高级CSS技巧，使图像与元素呈现出精致而动感的视觉效果。 
 页面布局采用模块化网格设计，确保内容的层次分明与导航的便捷性，结合微动效与动态背景，增强用户的交互体验。 
 所有内部链接均添加了 rel="nofollow" 属性，有效控制链接行为，保证页面的SEO优化。 
 图片以圆角、阴影及悬浮效果呈现，增强装饰性且不影响加载性能。 
 通过媒体查询与响应式设计，确保页面在320px至1920px的屏幕宽度下均有出色表现，无需横向滚动条，内容完整可见。 
 以下部分包括基础样式设置、布局设计、色彩与字体搭配、动画与过渡效果以及响应式调整等，全面覆盖页面的视觉与功能需求。
*/

// 基础样式设置
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #00ff99 70%, #6600ff 25%, #0066ff 5%);
    color: #ffffff;
    line-height: 1.6;
    font-size: 16px;
}

/* 通用链接样式 */
a {
    color: #00ff99;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #6600ff;
}

/* 导航栏样式 */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.7);
    padding: 15px 30px;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.navbar .logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ffffff;
}

.navbar .nav-links {
    display: flex;
    gap: 20px;
}

.navbar .nav-links a {
    font-size: 1rem;
    color: #ffffff;
    transition: color 0.3s;
}

.navbar .nav-links a:hover {
    color: #00ff99;
}

/* 主要容器 */
.container {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 20px;
    padding: 100px 50px 50px 50px;
}

/* 侧边栏导航 */
.sidebar {
    background: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 10px;
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar ul li {
    margin-bottom: 15px;
}

.sidebar ul li a {
    font-size: 1rem;
    color: #ffffff;
    transition: color 0.3s;
}

.sidebar ul li a:hover {
    color: #00ff99;
}

/* 文章主体 */
.article-content {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.article-content h2, .article-content h3, .article-content h4 {
    color: #00ff99;
}

.article-content h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.article-content h3 {
    font-size: 1.75rem;
    margin-top: 30px;
}

.article-content h4 {
    font-size: 1.5rem;
    margin-top: 20px;
}

.article-content p {
    font-size: 1rem;
    margin-bottom: 15px;
}

.article-content pre {
    background: rgba(0, 0, 0, 0.8);
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    margin-bottom: 20px;
}

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

/* 图片样式 */
.article-content img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 20px;
}

.article-content img:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.5);
}

/* 动态背景 */
.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.aurora {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, rgba(0, 255, 153, 0.3), rgba(102, 0, 255, 0.3), rgba(0, 102, 255, 0.3));
    background-size: 400% 400%;
    animation: gradientAnimation 20s ease infinite;
    mix-blend-mode: overlay;
}

@keyframes gradientAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 粒子效果 */
.particle {
    position: absolute;
    width: 5px;
    height: 5px;
    background: #00ff99;
    border-radius: 50%;
    animation: moveParticle 5s linear infinite;
}

@keyframes moveParticle {
    from {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
    to {
        transform: translateY(-100vh) scale(0.5);
        opacity: 0;
    }
}

/* 按钮样式 */
.button {
    background: linear-gradient(45deg, #00ff99, #6600ff, #0066ff);
    border: none;
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.3s ease, background 0.5s ease;
}

.button:hover {
    transform: scale(1.05);
    background: linear-gradient(45deg, #6600ff, #00ff99, #0066ff);
}

/* 动态链接下划线 */
.dynamic-link {
    position: relative;
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.dynamic-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: #00ff99;
    transition: width 0.3s;
    bottom: -5px;
    left: 0;
}

.dynamic-link:hover::after {
    width: 100%;
}

/* 信息卡片 */
.info-card {
    background: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.info-card h3 {
    color: #00ff99;
    margin-bottom: 10px;
}

/* 徽章 */
.badge {
    background-color: #ff6600;
    color: #fff;
    padding: 5px 10px;
    border-radius: 12px;
    font-size: 12px;
    display: inline-block;
}

/* 章节导航 */
.chapter-nav {
    position: fixed;
    top: 60px;
    right: 20px;
    background: rgba(0, 0, 0, 0.5);
    padding: 15px;
    border-radius: 10px;
}

.chapter-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.chapter-nav ul li {
    margin-bottom: 10px;
}

.chapter-nav ul li a {
    color: #ffffff;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.chapter-nav ul li a:hover {
    color: #00ff99;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
        padding: 100px 20px 20px 20px;
    }

    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .navbar .nav-links {
        flex-direction: column;
        width: 100%;
    }

    .navbar .nav-links a {
        margin: 10px 0;
    }

    .chapter-nav {
        display: none;
    }
}

