
/* 
  整体页面的基础样式设置，包括字体、背景和响应式布局
*/
body {
    margin: 0;
    padding: 0;
    font-family: 'Open Sans', sans-serif; /* 正文字体 */
    background: linear-gradient(135deg, #1e3c72, #2a5298, #00c6ff, #0072ff); /* 渐变极光背景 */
    background-size: 400% 400%;
    animation: gradientAnimation 15s ease infinite; /* 背景动画 */
    color: #e0e0e0; /* 文字颜色 */
}

/* 标题的字体样式 */
h1, h2, h3, h4 {
    font-family: 'Roboto', sans-serif; /* 标题字体 */
    color: #ffffff;
    margin-bottom: 20px;
}

/* 段落的样式 */
p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* 背景渐变动画关键帧 */
@keyframes gradientAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 容器使用网格布局，响应式设计 */
.container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 40px;
    padding: 60px;
}

/* 每个模块的样式 */
.module {
    background: rgba(255, 255, 255, 0.1); /* 半透明背景 */
    border-radius: 15px;
    padding: 30px;
    backdrop-filter: blur(10px); /* 背景模糊效果 */
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1); /* 阴影效果 */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* 图像样式，添加圆角、阴影和悬停效果 */
.decorative-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;
}

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

/* 固定导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.7); /* 半透明背景 */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 60px;
    backdrop-filter: blur(10px); /* 背景模糊 */
    z-index: 1000;
}

.navbar a {
    color: #ffffff;
    text-decoration: none;
    margin: 0 15px;
    font-family: 'Roboto', sans-serif;
    position: relative;
}

.navbar a::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: #00c6ff;
    transition: width 0.3s;
    position: absolute;
    bottom: -5px;
    left: 0;
}

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

/* 搜索框样式 */
.search-box {
    position: relative;
}

.search-box input {
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    outline: none;
    font-size: 16px;
}

/* 按钮样式 */
button {
    background-color: #0072ff;
    border: none;
    color: white;
    padding: 15px 32px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    border-radius: 8px;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

button:hover {
    background-color: #00c6ff;
}

/* 折叠区域样式 */
.collapsible {
    background-color: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    cursor: pointer;
    padding: 18px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 18px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.active, .collapsible:hover {
    background-color: rgba(0, 198, 255, 0.3);
}

.content {
    padding: 0 18px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease-out;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 0 0 5px 5px;
}

pre {
    background: rgba(0, 0, 0, 0.7);
    padding: 15px;
    border-radius: 10px;
    overflow-x: auto;
}

code {
    color: #00c6ff;
    font-family: 'Courier New', Courier, monospace;
}

/* AR技术展示区样式 */
.ar-section {
    position: relative;
    width: 100%;
    height: 500px;
    background: #000000;
    border: 2px solid #00c6ff;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 40px;
}

.ar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 198, 255, 0.5);
    animation: pulse 5s infinite;
}

@keyframes pulse {
    0% { opacity: 0.5; }
    50% { opacity: 1; }
    100% { opacity: 0.5; }
}

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

.node {
    width: 15px;
    height: 15px;
    background: #0072ff;
    border-radius: 50%;
    position: absolute;
    animation: moveNode 10s linear infinite;
}

@keyframes moveNode {
    0% { top: 0; left: 0; }
    50% { top: 90%; left: 90%; }
    100% { top: 0; left: 0; }
}

/* 提示文本样式 */
.notice {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    border-radius: 5px;
    color: #ffffff;
    font-size: 14px;
    z-index: 1000;
}

/* 响应式媒体查询 */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .container {
        padding: 30px;
        gap: 20px;
    }

    .ar-section {
        height: 300px;
    }

    .data-chart {
        height: 200px;
    }
}

