
/* 
整体页面样式定义
使用渐变色作为主要背景，结合现代字体和色彩搭配，营造科技感与专业感
*/

/* 页面全局样式 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Open Sans', sans-serif; /* 正文字体 */
    background: linear-gradient(135deg, #0D47A1, #8E24AA); /* 主色调渐变 */
    color: #ffffff; /* 字体颜色 */
    animation: backgroundChange 10s infinite; /* 背景渐变动画 */
}

/* 页面加载动画 */
@keyframes backgroundChange {
    0% {
        background: #0D47A1;
    }
    50% {
        background: #8E24AA;
    }
    100% {
        background: #0D47A1;
    }
}

/* 顶部导航栏样式 */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: rgba(0, 0, 0, 0.5); /* 半透明背景 */
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar .logo {
    font-family: 'Montserrat', sans-serif; /* 标题字体 */
    font-size: 24px;
    font-weight: bold;
}

.navbar .menu {
    display: flex;
    gap: 20px;
}

.navbar .menu a {
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
}

.navbar .menu a:hover {
    color: #00E676; /* 强调色 */
}

/* 英雄区样式 */
.hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    padding: 0 20px;
}

.hero h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 48px;
    margin-bottom: 20px;
    background: linear-gradient(90deg, #0D47A1, #8E24AA);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 18px;
    max-width: 600px;
    margin-bottom: 30px;
}

.hero .button {
    background: #00E676;
    color: #ffffff;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    font-size: 16px;
}

.hero .button:hover {
    background: #00C853;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* 功能模块样式 */
.features {
    padding: 80px 40px;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    background: rgba(255, 255, 255, 0.1); /* 辅助色背景 */
}

.feature-card {
    background: #ffffff;
    color: #000000;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    flex: 1 1 calc(33.333% - 40px);
    padding: 20px;
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: scale(1.05);
}

.feature-card img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.feature-card img:hover {
    transform: scale(1.1);
}

.feature-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    margin-top: 15px;
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 16px;
    line-height: 1.5;
}

/* 代码示例样式 */
.code-snippet {
    background: #f5f5f5;
    color: #333333;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    font-family: 'Courier New', Courier, monospace;
    margin: 20px 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.code-snippet code {
    display: block;
}

/* 数据可视化模块样式 */
.data-visualization {
    padding: 80px 40px;
    background: rgba(0, 0, 0, 0.5);
    color: #ffffff;
}

.chart {
    width: 100%;
    height: 400px;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.chart svg {
    width: 100%;
    height: 100%;
}

/* 底部信息区样式 */
.footer {
    padding: 40px;
    background: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer .links {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.footer .links a {
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
}

.footer .links a:hover {
    color: #00E676;
}

.footer .legal {
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .feature-card {
        flex: 1 1 calc(50% - 40px);
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .navbar .menu {
        flex-direction: column;
        width: 100%;
    }
    
    .navbar .menu a {
        padding: 10px 0;
        width: 100%;
    }
    
    .feature-card {
        flex: 1 1 100%;
    }
    
    .hero h1 {
        font-size: 32px;
    }
    
    .hero p {
        font-size: 16px;
    }
}

/* 动态线条效果 */
@keyframes drawLine {
    from {
        stroke-dasharray: 0, 1000;
    }
    to {
        stroke-dasharray: 1000, 0;
    }
}

.line-animation {
    stroke: #00E676;
    stroke-width: 2;
    fill: none;
    animation: drawLine 2s ease-in-out forwards;
}

