
/* 
    样式表：智能投顾与量化交易单页设计
    该样式表采用CSS3技术，结合现代Web设计美学，打造具有未来感与高级质感的网页。
    主要包含布局、色彩搭配、响应式设计、动画效果、交互样式等多个部分。
    色彩方案遵循黄金比例，主色70%，辅色25%，点缀色5%，确保整体视觉协调。
    布局采用网格和Flexbox，保证内容层次分明，适配不同屏幕尺寸。
    动画与过渡效果提升用户体验，悬停与滚动交互增强网页的动态感。
*/

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

/* 常用字体设置 */
body {
    font-family: 'Roboto', sans-serif;
    color: #333333;
    background-color: #F5F5F5;
    line-height: 1.6;
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(3, 169, 244, 0.8);
    backdrop-filter: blur(10px);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: background 0.3s ease;
}

.navbar.scrolled {
    background: rgba(3, 169, 244, 1);
}

.navbar a {
    color: #FFC107;
    text-decoration: none;
    margin: 0 15px;
    font-size: 16px;
    transition: color 0.3s ease;
}

.navbar a:hover {
    color: #FFFFFF;
}

/* 主要内容区 */
.main-container {
    display: grid;
    grid-template-areas:
        'header'
        'hero'
        'features'
        'data'
        'testimonials'
        'footer';
    grid-gap: 50px;
    padding: 100px 20px 50px 20px;
}

/* Hero 部分样式 */
.hero-section {
    grid-area: hero;
    background: linear-gradient(135deg, #03A9F4, #673AB7);
    color: #FFFFFF;
    padding: 100px 20px;
    text-align: center;
    border-radius: 10px;
    position: relative;
}

.hero-section h1 {
    font-size: 36px;
    margin-bottom: 20px;
}

.hero-section p {
    font-size: 18px;
    max-width: 800px;
    margin: 0 auto 30px;
}

.hero-section .notice {
    font-size: 20px;
    font-weight: bold;
    background: rgba(255, 193, 7, 0.9);
    color: #000000;
    padding: 10px 20px;
    border-radius: 5px;
    display: inline-block;
}

/* 功能特点区样式 */
.features-section {
    grid-area: features;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 30px;
}

.feature-card {
    background: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
    width: 300px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
}

.feature-card h3 {
    color: #03A9F4;
    margin-bottom: 15px;
    font-size: 18px;
}

.feature-card p {
    font-size: 16px;
    color: #666666;
}

/* 数据展示区样式 */
.data-section {
    grid-area: data;
    background: #FFFFFF;
    padding: 40px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.data-section h2 {
    color: #03A9F4;
    margin-bottom: 20px;
    font-size: 24px;
    text-align: center;
}

.chart-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
}

.chart {
    width: 300px;
    height: 300px;
    position: relative;
}

/* 折线图样式 */
.line-chart {
    display: flex;
    align-items: flex-end;
    height: 300px;
    background: #F5F5F5;
    padding: 20px;
    border-radius: 8px;
    position: relative;
}

.line-chart::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: #03A9F4;
}

.line-chart .data-point {
    width: 10px;
    height: 150px;
    background: linear-gradient(45deg, #03A9F4, #673AB7);
    margin: 0 15px;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.line-chart .data-point:hover {
    transform: scale(1.5);
}

/* 柱状图样式 */
.bar-chart {
    display: flex;
    align-items: flex-end;
    height: 300px;
    background: #F5F5F5;
    padding: 20px;
    border-radius: 8px;
}

.bar-chart .bar {
    width: 30px;
    height: 200px;
    background-color: #673AB7;
    margin: 0 10px;
    transition: height 0.5s ease, background-color 0.3s ease;
}

.bar-chart .bar:hover {
    background-color: #03A9F4;
    height: 240px;
}

/* 环形图样式 */
.donut-chart {
    position: relative;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: conic-gradient(#03A9F4 25%, #fff 0);
    transition: transform 0.5s ease;
}

.donut-chart::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 25px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: #F5F5F5;
}

.donut-chart:hover {
    transform: rotate(45deg);
}

/* 用户评价区样式 */
.testimonials-section {
    grid-area: testimonials;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.testimonial-card {
    background: #FFFFFF;
    border-radius: 10px;
    padding: 20px;
    width: 300px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
}

.testimonial-card p {
    color: #666666;
    font-size: 16px;
    margin-bottom: 10px;
}

.testimonial-card .user-name {
    color: #03A9F4;
    font-weight: bold;
    font-size: 18px;
}

/* 底部联系方式样式 */
.footer {
    grid-area: footer;
    background: rgba(3, 169, 244, 0.9);
    color: #FFFFFF;
    padding: 30px 20px;
    text-align: center;
    border-radius: 10px;
}

.footer p {
    font-size: 16px;
}

/* 图片样式 */
img.decorative-image {
    width: 320px;
    height: 320px;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* 代码块样式 */
.code-block {
    background: #F0F0F0;
    padding: 15px;
    border-radius: 8px;
    font-family: 'Courier New', Courier, monospace;
    overflow-x: auto;
    margin: 20px 0;
}

.code-block pre {
    margin: 0;
}

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

table, th, td {
    border: 1px solid #CCCCCC;
}

th, td {
    padding: 10px;
    text-align: left;
}

th {
    background-color: #03A9F4;
    color: #FFFFFF;
}

tr:nth-child(even) {
    background-color: #F5F5F5;
}

/* 折叠区域样式 */
.collapsible {
    background-color: #03A9F4;
    color: #FFFFFF;
    cursor: pointer;
    padding: 10px 20px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 18px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.collapsible:hover {
    background-color: #0288D1;
}

.collapsible.active, .collapsible:focus {
    background-color: #0288D1;
}

.content {
    padding: 0 20px;
    display: none;
    overflow: hidden;
    background-color: #F9F9F9;
    border-radius: 5px;
}

.content p {
    padding: 10px 0;
    font-size: 16px;
    color: #333333;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .features-section, .chart-container, .testimonials-section {
        flex-direction: column;
        align-items: center;
    }
    
    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .navbar a {
        margin: 10px 0;
    }
}

