
/* 基础页面样式设置 */
/* 设置页面的全局字体、背景色和文字颜色 */
body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background-color: #121212; /* 主色调，深色背景 */
    color: #B0B0B0; /* 中性色，用于次要文本 */
    line-height: 1.6;
}

/* 链接样式设置 */
/* 设置所有链接的颜色和过渡效果 */
a {
    color: #1E90FF; /* 辅助色，亮蓝色 */
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #00CED1; /* 点缀色，青绿色 */
}

/* 导航栏样式 */
/* 使用线性渐变背景，固定在顶部，并添加阴影效果 */
.navbar {
    background: linear-gradient(90deg, #121212, #1E90FF);
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

/* 导航栏内的链接样式 */
.navbar a {
    color: #fff;
    margin: 0 15px;
    font-size: 16px;
}

/* 容器样式 */
/* 使用网格布局，实现响应式设计 */
.container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 100px 40px 40px 40px; /* 上方留出导航栏空间 */
    background-color: #1E1E1E; /* 深色背景 */
}

/* 图片样式 */
/* 添加圆角、阴影和悬停缩放效果 */
img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* 按钮样式 */
/* 使用辅色背景，圆角，添加过渡和悬停效果 */
.button {
    background-color: #1E90FF;
    border: none;
    padding: 12px 24px;
    color: #fff;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.button:hover {
    background-color: #00CED1;
    transform: translateY(-2px);
}

/* 标题样式 */
/* 不同级别标题的字体大小和颜色设置 */
h2, h3, h4 {
    color: #1E90FF; /* 辅助色 */
}

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

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

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

/* 代码块样式 */
/* 设置代码块背景色、边框和字体样式 */
pre {
    background-color: #2E2E2E; /* 深色背景 */
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
}

code {
    color: #00CED1; /* 点缀色 */
    font-family: 'Courier New', Courier, monospace;
}

/* 响应式设计 */
/* 针对屏幕宽度小于768px的设备调整布局 */
@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
        padding: 100px 20px 20px 20px;
    }

    .navbar a {
        margin: 0 10px;
        font-size: 14px;
    }
}

/* 动画效果 */
/* 定义淡入动画 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fadeIn {
    animation: fadeIn 1s ease-out;
}

/* 手风琴折叠内容样式 */
/* 设置折叠内容的最大高度和过渡效果 */
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: #1E90FF;
    padding: 0 20px;
}

.accordion.active .accordion-content {
    max-height: 200px;
    padding: 20px;
}

/* 下拉菜单样式 */
/* 设置下拉内容的隐藏和显示效果 */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #1E1E1E;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
}

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

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

.dropdown-content a:hover {
    background-color: #00CED1;
}

/* 其他自定义样式 */

/* 模块间隔样式 */
.section {
    padding: 60px 20px;
}

/* 数据可视化布局样式 */
.data-visualization {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 40px;
    background-color: #121212;
}

/* Hero Section 动画效果 */
/* 定义插画的移动动画 */
.hero-illustration {
    animation: moveUpDown 5s infinite alternate;
}

@keyframes moveUpDown {
    from { transform: translateY(0); }
    to { transform: translateY(-20px); }
}

/* AR元素样式 */
/* 设置AR元素的动态展示效果 */
.ar-element {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    transition: transform 0.5s ease, opacity 0.5s ease;
    opacity: 0;
}

.ar-element.active {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

/* 固定导航栏样式 */
/* 保证导航栏在所有元素之上，并添加阴影 */
.fixed-navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: #121212;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

