
/* 
整体页面样式
采用深蓝色与银灰色为主色调，辅以蓝紫色霓虹色作为点缀色，营造科技感与专业性的氛围。
使用CSS3的高级特性，如线性渐变、box-shadow、text-shadow、关键帧动画和平滑过渡效果，提升页面的视觉层次和互动性。
确保页面完全响应式，适配从320px到1920px的所有屏幕宽度，采用流式布局、Flexbox和Grid布局技术，保证在各种设备上均有良好的显示效果。
*/

/* 页面背景设置 */
body {
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364); /* 主色调渐变 */
    color: #ffffff;
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(30, 60, 114, 0.9);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    z-index: 1000;
    transition: background 0.3s ease;
}

.navbar.scrolled {
    background: rgba(30, 60, 114, 1);
}

.navbar a {
    color: #ffffff;
    text-decoration: none;
    margin: 0 15px;
    transition: color 0.3s ease;
}

.navbar a:hover {
    color: #00ffea; /* 点缀色悬停效果 */
}

/* 主内容区 */
.main-content {
    padding-top: 80px; /* 为固定导航栏留出空间 */
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 20px;
}

.article {
    max-width: 1200px;
    width: 100%;
    background: #1e3c72;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.article h2, .article h3 {
    font-family: 'Montserrat', sans-serif;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.article p {
    font-size: 16px;
    color: #dddddd;
    margin-bottom: 20px;
}

.article pre {
    background: #2a5298;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 20px;
}

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

/* 按钮样式 */
.btn-gradient {
    background: linear-gradient(45deg, #1e3c72, #2a5298);
    border: none;
    padding: 10px 20px;
    color: #ffffff;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-gradient:hover {
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* 图片样式 */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.image-gallery img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* 代码块样式 */
.code-block {
    background: #2a5298;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 20px;
}

.code-block code {
    color: #00ffea;
    font-family: 'Courier New', Courier, monospace;
    display: block;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .article {
        padding: 30px;
    }

    .navbar {
        padding: 15px 20px;
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        align-items: center;
    }

    .navbar a {
        margin: 10px 0;
    }

    .image-gallery {
        grid-template-columns: 1fr;
    }
}

/* 动画效果 - 渐显 */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 特效文本 */
.glow-text {
    background: linear-gradient(90deg, #00ffea, #2a5298);
    -webkit-background-clip: text;
    color: transparent;
    text-shadow: 0 0 10px rgba(0, 255, 234, 0.5);
}

/* 加载动画 */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #1e3c72;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    transition: opacity 0.5s ease;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #2a5298;
    border-top: 5px solid #00ffea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 微粒子动画 */
.particle-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    pointer-events: none;
    z-index: -1;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #ffffff;
    border-radius: 50%;
    animation: move 10s linear infinite;
}

@keyframes move {
    from {
        transform: translateY(0) translateX(0);
        opacity: 1;
    }
    to {
        transform: translateY(-1000px) translateX(500px);
        opacity: 0;
    }
}

/* 内容卡片 */
.content-card {
    background: #2a5298;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

/* 高亮类 */
.highlight {
    color: #00ffea;
    background: linear-gradient(90deg, #1e3c72, #2a5298);
    -webkit-background-clip: text;
    color: transparent;
}

