
/* 页面全局样式设置 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif; /* 使用现代无衬线字体 */
    font-size: 16px; /* 正文字号设置为16px */
    color: #ffffff; /* 文字颜色设为白色 */
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364); /* 应用渐变背景 */
    transition: background 0.5s ease; /* 背景过渡效果 */
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(20, 29, 43, 0.9); /* 半透明背景 */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar .logo {
    font-size: 1.5em;
    font-weight: bold;
    color: #d4af37; /* 金属金色 */
}

.navbar .nav-links a {
    color: #a389d4; /* 淡紫色 */
    margin: 0 15px;
    text-decoration: none;
    font-size: 1em;
    transition: color 0.3s ease;
}

.navbar .nav-links a:hover {
    color: #d4af37; /* 悬停时变为金属金色 */
}

/* 英雄区样式 */
.hero {
    height: 100vh;
    background: linear-gradient(-45deg, #0f2027, #203a43, #2c5364, #a389d4);
    background-size: 400% 400%;
    animation: moveBackground 15s ease infinite;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

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

.hero h1 {
    font-size: 3em;
    margin-bottom: 20px;
    color: #d4af37; /* 标题使用金属金色 */
}

.hero p {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #ffffff;
    max-width: 600px;
}

.hero .cta-button {
    background: linear-gradient(45deg, #a389d4, #d4af37);
    border: none;
    padding: 15px 30px;
    font-size: 1.2em;
    color: #ffffff;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.3s ease, transform 0.3s ease;
}

.hero .cta-button:hover {
    background: linear-gradient(45deg, #d4af37, #a389d4);
    transform: scale(1.05);
}

/* 主体内容区块样式 */
.section {
    padding: 80px 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section:nth-child(even) {
    background: rgba(32, 58, 67, 0.8); /* 深色背景区块 */
}

.section:nth-child(odd) {
    background: rgba(44, 83, 100, 0.8); /* 略浅色背景区块 */
}

.section h2 {
    font-size: 2em;
    margin-bottom: 20px;
    color: #d4af37;
}

.section p {
    font-size: 1em;
    line-height: 1.6;
    max-width: 800px;
    text-align: left;
    color: #ffffff;
}

/* 功能模块网格布局 */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    width: 100%;
    max-width: 1200px;
}

.feature {
    background: #203a43;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.feature img {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.feature:hover img {
    transform: rotate(10deg);
}

.feature h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #d4af37;
}

.feature p {
    font-size: 1em;
    color: #ffffff;
}

/* 案例展示卡片样式 */
.case-studies {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: 1200px;
}

.case-card {
    background: #2c5364;
    width: 300px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateX(100%);
    animation: slideIn 0.5s forwards;
}

.case-card:nth-child(odd) {
    animation-delay: 0.3s;
}

.case-card:nth-child(even) {
    animation-delay: 0.6s;
}

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.case-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.case-card .card-content {
    padding: 15px;
}

.case-card .card-content h4 {
    font-size: 1.2em;
    margin-bottom: 10px;
    color: #d4af37;
}

.case-card .card-content p {
    font-size: 0.9em;
    color: #ffffff;
}

/* 数据可视化图表容器 */
.chart-container {
    width: 100%;
    max-width: 800px;
    height: 400px;
    position: relative;
    margin-top: 40px;
}

.chart-container svg {
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease;
}

.chart-container:hover svg {
    transform: scale(1.05);
}

/* 底部信息栏样式 */
.footer {
    background: rgba(20, 29, 43, 0.9);
    padding: 30px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer .footer-links a {
    color: #a389d4;
    margin: 0 10px;
    text-decoration: none;
    font-size: 1em;
    transition: color 0.3s ease;
}

.footer .footer-links a:hover {
    color: #d4af37;
}

.footer .footer-text {
    font-size: 0.9em;
    color: #ffffff;
}

/* 鼠标悬停动画 */
button, .cta-button {
    cursor: pointer;
}

button:hover, .cta-button:hover {
    opacity: 0.8;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        padding: 20px;
    }
    .features {
        grid-template-columns: 1fr;
    }
    .case-studies {
        flex-direction: column;
        align-items: center;
    }
    .footer {
        flex-direction: column;
        align-items: center;
    }
}

