
/* 全局样式设置，应用字体、背景和整体颜色 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif; /* 使用现代无衬线字体，提升可读性 */
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364); /* 主色调为深蓝色渐变，营造科技感 */
    color: #ffffff; /* 全局文字颜色为白色，确保与深色背景的对比 */
}

/* 导航栏样式，固定于顶部，确保用户随时可访问 */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: rgba(0, 0, 0, 0.7); /* 半透明黑色背景，增加层次感 */
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3); /* 添加阴影，提升导航栏立体感 */
}

/* 导航链接样式，设置颜色和过渡效果 */
.navbar a {
    color: #00c6ff; /* 辅色亮蓝色，突出重点 */
    text-decoration: none;
    margin-left: 20px;
    font-size: 16px;
    transition: color 0.3s ease;
}
.navbar a:hover {
    color: #ffffff; /* 悬停时颜色变为白色，增强互动性 */
}

/* 容器样式，定义主内容区域的宽度和布局 */
.container {
    max-width: 1200px;
    margin: 100px auto 50px; /* 顶部留出导航栏空间 */
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

/* 文章部分样式，设置宽度和排版 */
article {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

/* 标题样式，使用辅色突出 */
h2, h3, h4 {
    color: #00c6ff;
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 24px;
}

/* 段落样式，设置字号和行高，提升可读性 */
p {
    font-size: 16px;
    line-height: 1.8;
    margin: 15px 0;
    text-align: justify; /* 两端对齐，提升排版美观度 */
}

/* 代码块样式，采用半透明背景和圆角 */
pre {
    background: rgba(255, 255, 255, 0.1); /* 半透明白色背景 */
    padding: 20px;
    border-radius: 8px;
    overflow: auto;
    margin: 20px 0;
    position: relative;
}

/* 代码标签样式，设置字体和颜色 */
code {
    font-family: 'Courier New', Courier, monospace; /* 等宽字体，便于阅读代码 */
    color: #00c6ff; /* 辅色亮蓝色，突出代码内容 */
}

/* 给代码块添加标题，通过伪元素实现 */
pre code::before {
    content: '代码示例';
    position: absolute;
    top: -20px;
    left: 10px;
    background: #203a43;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    color: #ffffff;
}

/* 图片样式，设置圆角、阴影和悬停效果 */
img {
    width: 100%;
    max-width: 320px;
    border-radius: 12px; /* 圆角设计，提升视觉美感 */
    box-shadow: 0 4px 8px rgba(0,0,0,0.3); /* 添加阴影，增加立体感 */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* 平滑过渡效果 */
    margin: 20px 0;
}
img:hover {
    transform: scale(1.05); /* 悬停时略微放大 */
    box-shadow: 0 8px 16px rgba(0,0,0,0.5); /* 加深阴影，提升互动性 */
}

/* 响应式布局，适配不同屏幕尺寸 */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px 20px;
    }
    .navbar a {
        margin-left: 0;
        margin-top: 10px;
    }
    .container {
        flex-direction: column;
        align-items: center;
    }
    img {
        max-width: 100%;
    }
}

/* 按钮样式，增强视觉引导 */
.button {
    display: inline-block;
    padding: 10px 20px;
    background: #00c6ff; /* 点缀色，吸引视线 */
    color: #ffffff;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-size: 16px;
    transition: background 0.3s ease;
}
.button:hover {
    background: #0072ff; /* 悬停时颜色加深 */
}

/* 加载动画样式，居中显示旋转门 */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0f2027;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}
.door {
    width: 100px;
    height: 100px;
    background: linear-gradient(45deg, #00c6ff, #0072ff);
    animation: rotateDoor 2s infinite; /* 持续旋转动画 */
    border-radius: 10px;
}
@keyframes rotateDoor {
    0% { transform: rotate(0deg); }
    50% { transform: rotate(180deg); }
    100% { transform: rotate(360deg); }
}

/* 仪表盘样式，使用网格布局 */
.dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 40px;
    background: #1e2a38; /* 深色背景，突出数据 */
    color: #fff;
}
.widget {
    background: #2c3e50;
    padding: 20px;
    border-radius: 8px;
    position: relative;
}
.widget::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 5px;
    width: 100%;
    background: linear-gradient(90deg, #00c6ff, #0072ff); /* 渐变条，增加视觉层次 */
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

/* 虚拟展示厅样式，使用三维透视 */
.virtual-room {
    perspective: 1000px;
    width: 100%;
    height: 600px;
    position: relative;
    overflow: hidden;
    margin: 40px 0;
}
.virtual-room .item {
    position: absolute;
    width: 200px;
    height: 200px;
    background: #2c3e50;
    border-radius: 10px;
    transform: rotateY(0deg);
    transition: transform 0.5s;
}
.virtual-room .item:hover {
    transform: rotateY(180deg); /* 悬停时旋转，展示更多信息 */
}

/* 页脚样式，设置背景和布局 */
.footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #1e2a38;
    padding: 40px 20px;
    color: #ffffff;
}
.footer .feedback {
    width: 100%;
    max-width: 600px;
    margin-bottom: 20px;
}
.footer .feedback textarea {
    width: 100%;
    height: 100px;
    border: none;
    border-radius: 5px;
    padding: 10px;
    resize: none;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}
.footer .blog-link {
    color: #00c6ff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}
.footer .blog-link:hover {
    color: #ffffff;
}

/* 折叠区域样式，隐藏内容直到用户展开 */
.collapsible {
    background: #2c3e50;
    color: #ffffff;
    cursor: pointer;
    padding: 10px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 18px;
    transition: background 0.3s ease;
    border-radius: 5px;
    margin-top: 20px;
}
.collapsible:hover {
    background: #00c6ff;
    color: #0f2027;
}
.content {
    padding: 0 15px;
    display: none;
    background: rgba(255, 255, 255, 0.05);
    overflow: hidden;
    border-radius: 5px;
    margin-bottom: 20px;
}

