
/* 
    网站整体样式设计
    该样式旨在实现未来主义智能投顾与量化交易平台，通过运用现代CSS3技术，打造出充满科技感与未来感的网页界面。
    以下样式涵盖了页面布局、色彩搭配、字体设定、响应式设计以及交互动画等多个方面，确保网页在不同设备和屏幕下都能保持良好的用户体验。
*/

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

/* 页面字体与背景设定 */
body {
    font-family: 'Roboto', sans-serif; /* 使用现代无衬线字体，提高可读性 */
    color: #ffffff; /* 文字颜色设置为白色，确保在深色背景下清晰可见 */
    line-height: 1.6; /* 设置行高，提高文本可读性 */
    background: linear-gradient(135deg, #1e3c72, #2a5298); /* 背景采用蓝紫渐变，增强科技感 */
    overflow-x: hidden; /* 防止页面出现横向滚动条 */
}

/* 固定导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(30, 60, 114, 0.8); /* 半透明深蓝色背景 */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1); /* 添加阴影，提升层次感 */
}

.navbar a {
    color: #fff;
    margin: 0 20px;
    text-decoration: none;
    font-size: 16px;
    position: relative;
    transition: color 0.3s ease;
}

.navbar a::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: #ff6600; /* 橙色下划线，作为点缀色 */
    transition: width 0.3s;
}

.navbar a:hover::after {
    width: 100%;
}

.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    border-radius: 5px;
    backdrop-filter: blur(10px);
    top: 40px;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    color: #fff;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* 主要内容区容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 20px 50px 20px; /* 留出导航栏的高度 */
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

/* 模块化内容块样式 */
.module {
    background: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 30px rgba(0,0,0,0.5);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.module:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 60px rgba(0,0,0,0.7);
}

/* 标题样式 */
h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif; /* 现代无衬线字体 */
    margin-bottom: 15px;
    color: #ffffff;
}

h1 {
    font-size: 36px;
    text-align: center;
    margin-bottom: 40px;
}

h2 {
    font-size: 28px;
    margin-bottom: 20px;
}

h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

h4 {
    font-size: 18px;
    margin-bottom: 10px;
}

/* 段落文字样式 */
p {
    font-size: 16px;
    margin-bottom: 15px;
    color: #f0f0f0;
}

/* 交互按钮样式 */
.button {
    background: #00ff00; /* 绿色按钮，主色 */
    border: none;
    padding: 12px 30px;
    color: #fff;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.4s, transform 0.2s;
    position: relative;
    overflow: hidden;
}

.button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300%;
    height: 300%;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.5s;
}

.button:hover::after {
    transform: translate(-50%, -50%) scale(1);
}

.button:hover {
    background: #ff6600; /* 橙色，点缀色 */
    transform: scale(1.05);
}

.button:active {
    transform: scale(1);
}

/* 图片样式 */
.image {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(0,0,0,0.5);
}

/* 渐变线条装饰 */
.decorative-line {
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, #00ffcc, #3333ff);
    margin: 30px 0;
    animation: moveLine 5s linear infinite;
}

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

/* 代码示例样式 */
.code-sample {
    background: rgba(0, 0, 0, 0.7);
    padding: 20px;
    border-radius: 10px;
    overflow-x: auto;
    font-family: 'Courier New', Courier, monospace;
    margin-bottom: 20px;
}

.code-sample code {
    color: #00ffcc;
    font-size: 14px;
}

/* 章节导航栏样式 */
.chapter-nav {
    position: sticky;
    top: 100px; /* 导航栏下方 */
    background: rgba(30, 60, 114, 0.8);
    padding: 20px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

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

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

.chapter-nav a {
    color: #ff6600;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
}

.chapter-nav a:hover {
    color: #00ffcc;
}

/* 表格样式 */
.table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.table th, .table td {
    padding: 12px 15px;
    text-align: left;
}

.table th {
    background: rgba(255, 255, 255, 0.2);
    font-size: 16px;
}

.table tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.1);
}

.table tr:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* 表单样式 */
input, textarea {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 10px 15px;
    border-radius: 5px;
    color: #fff;
    transition: border-color 0.3s ease;
    width: 100%;
    margin-bottom: 15px;
}

input:focus, textarea:focus {
    border-color: #00ffcc;
    outline: none;
}

/* 数据可视化图表样式 */
.chart-container {
    position: relative;
    width: 100%;
    height: 400px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    overflow: hidden;
}

.chart-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, #00ffcc, #3333ff);
    animation: draw 2s linear forwards;
}

@keyframes draw {
    from { width: 0; }
    to { width: 100%; }
}

/* 响应式布局 */
@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
        padding: 80px 15px 40px 15px;
    }

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

    .navbar a {
        margin: 10px 0;
    }

    .chapter-nav {
        position: static;
        margin-bottom: 20px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        grid-template-columns: repeat(2, 1fr);
        padding: 90px 20px 45px 20px;
    }
}

/* 视差滚动效果 */
.parallax {
    perspective: 1000px;
}

.layer {
    transform: translateZ(0);
    transition: transform 0.5s;
}

.layer:hover {
    transform: translateZ(50px);
}

/* 按钮微动画 */
.animate-button {
    position: relative;
    overflow: hidden;
}

.animate-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300%;
    height: 300%;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.5s;
}

.animate-button:hover::before {
    transform: translate(-50%, -50%) scale(1);
}

/* 表单输入过渡效果 */
input, textarea {
    transition: border-color 0.3s ease, background 0.3s ease;
}

input::placeholder, textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

/* 链接过渡效果 */
a {
    transition: color 0.3s ease;
}

a:hover {
    color: #ff6600;
}

/* 包含动画 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 1s ease-in-out forwards;
}

/* 3D卡片效果 */
.card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    transform: rotateY(10deg) rotateX(10deg);
    transition: transform 0.5s, box-shadow 0.5s;
    perspective: 1000px;
}

.card:hover {
    transform: rotateY(0deg) rotateX(0deg);
    box-shadow: 0 8px 60px rgba(0, 0, 0, 0.2);
}

/* 页面底部样式 */
.footer {
    background: rgba(30, 60, 114, 0.8);
    color: #fff;
    text-align: center;
    padding: 20px;
    position: relative;
}

/* 动态粒子背景 */
.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    animation: move 10s linear infinite;
}

@keyframes move {
    from { transform: translateY(0) translateX(0); }
    to { transform: translateY(-1000px) translateX(1000px); }
}

/* 装饰性图像阴影与悬浮效果 */
.decorative-image {
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: transform 0.3s, box-shadow 0.3s;
}

.decorative-image:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(0,0,0,0.5);
}

/* 高级选择器示例 */
.table tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.1);
}

.table tr:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* 内容区块留白与分隔线 */
.section {
    margin-bottom: 50px;
}

.section:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 50px;
}

/* 数据安全提示样式 */
.security-note {
    background: rgba(255, 0, 0, 0.1);
    padding: 15px;
    border-left: 5px solid #ff6600;
    margin: 20px 0;
    border-radius: 5px;
}

/* 动态布局与视差效果 */
.dynamic-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.dynamic-layout .item {
    flex: 1 1 calc(33.333% - 20px);
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.dynamic-layout .item:hover {
    transform: translateY(-10px);
}

/* 多媒体内容样式 */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    padding-top: 25px;
    height: 0;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* 动态背景效果 */
.background-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* 表单按钮样式 */
.submit-button {
    background: #00ff00;
    border: none;
    padding: 12px 30px;
    color: #fff;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.4s, transform 0.2s;
    position: relative;
    overflow: hidden;
}

.submit-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300%;
    height: 300%;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.5s;
}

.submit-button:hover::after {
    transform: translate(-50%, -50%) scale(1);
}

.submit-button:hover {
    background: #ff6600;
    transform: scale(1.05);
}

/* 装饰性渐变线条 */
.decorative-gradient {
    height: 4px;
    background: linear-gradient(to right, #00ffcc, #3333ff);
    margin: 30px 0;
}

/* 文章内容样式 */
.article-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

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

.article-content h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

.article-content p {
    font-size: 16px;
    margin-bottom: 15px;
    color: #f0f0f0;
}

/* 高级CSS示例代码块样式 */
.css-example {
    background: rgba(0, 0, 0, 0.8);
    padding: 20px;
    border-radius: 10px;
    overflow-x: auto;
    font-family: 'Courier New', Courier, monospace;
    color: #00ffcc;
    margin-bottom: 20px;
}

/* 动画与过渡效果 */
.transition-effect {
    transition: all 0.3s ease;
}

.transition-effect:hover {
    transform: translateY(-5px);
}

/* 图标样式 */
.icon {
    width: 24px;
    height: 24px;
    fill: #00ffcc;
    transition: fill 0.3s;
}

.icon:hover {
    fill: #ff6600;
}

/* 图表样式 */
.chart {
    width: 100%;
    height: 200px;
    background: linear-gradient(to right, #00ffcc, #3333ff);
    border-radius: 5px;
    transform: scaleY(1);
    transition: transform 0.3s;
}

.chart:hover {
    transform: scaleY(1.1);
}

/* 固定背景效果 */
.fixed-background {
    background-attachment: fixed;
    background-size: cover;
}

/* 页面提示样式 */
.page-notice {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    font-size: 18px;
    color: #fff;
    margin-bottom: 40px;
}

/* 装饰性图标悬停效果 */
.decorative-icon:hover {
    transform: rotate(20deg);
    transition: transform 0.5s;
}

/* 表单标签样式 */
.form-label {
    display: block;
    margin-bottom: 5px;
    font-size: 16px;
    color: #fff;
}

/* 数据可视化动画 */
@keyframes chartGrow {
    from { height: 0; }
    to { height: 200px; }
}

.chart-animated {
    animation: chartGrow 2s ease-out forwards;
}

/* 3D效果容器 */
.three-d-container {
    perspective: 1000px;
}

/* 3D元素样式 */
.three-d-element {
    transform: rotateY(45deg);
    transition: transform 0.5s;
}

.three-d-element:hover {
    transform: rotateY(0deg);
}

/* 底部阴影效果 */
.footer-shadow {
    box-shadow: 0 -4px 10px rgba(0,0,0,0.5);
}

/* 高级选项卡样式 */
.tabs {
    display: flex;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 20px;
}

.tab {
    padding: 10px 20px;
    cursor: pointer;
    transition: background 0.3s;
}

.tab:hover {
    background: rgba(255, 255, 255, 0.1);
}

.tab.active {
    border-bottom: 2px solid #ff6600;
    color: #ff6600;
}

/* 浮动按钮样式 */
.floating-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #00ffcc;
    color: #fff;
    padding: 15px;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    cursor: pointer;
    transition: transform 0.3s, background 0.3s;
}

.floating-button:hover {
    transform: scale(1.1);
    background: #ff6600;
}

/* 图表容器响应式 */
.chart-responsive {
    width: 100%;
    height: auto;
}

/* 页面加载动画 */
.page-load {
    opacity: 0;
    animation: fadeIn 1s forwards;
}

/* 表单提交按钮样式 */
.submit-form {
    background: #00ffcc;
    border: none;
    padding: 12px 25px;
    color: #fff;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}

.submit-form:hover {
    background: #ff6600;
    transform: translateY(-2px);
}

/* 图片圆角与边框 */
.rounded-image {
    border-radius: 15px;
    border: 2px solid #00ffcc;
}

/* 图标按钮样式 */
.icon-button {
    background: none;
    border: none;
    cursor: pointer;
    color: #fff;
    transition: color 0.3s;
}

.icon-button:hover {
    color: #ff6600;
}

/* 装饰性圆点背景 */
.dot-background {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #ff6600;
    border-radius: 50%;
    animation: dotMove 5s linear infinite;
}

@keyframes dotMove {
    0% { transform: translate(0, 0); }
    50% { transform: translate(100px, 100px); }
    100% { transform: translate(0, 0); }
}

/* 最终检查样式确保无视觉瑕疵 */
body, html {
    scroll-behavior: smooth; /* 平滑滚动 */
}


