
/* 
整体样式设置
设置全局的字体、颜色、背景和盒模型，确保页面在不同设备上的一致性和美观性。使用流式布局、flexbox和grid布局来实现响应式设计。主色调采用蓝色和紫色的渐变，辅以霓虹绿和橙色作为强调色，背景使用深灰色来增强科技感。
*/

/* 盒模型重置，统一边距和填充 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 设置全局字体和颜色 */
body {
    font-family: 'Montserrat', sans-serif;
    color: #ffffff;
    background: #0d0d0d;
    line-height: 1.6;
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.8);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.navbar ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

.navbar li {
    position: relative;
}

.navbar a {
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.navbar a:hover {
    color: #4A90E2;
}

/* 下拉菜单样式 */
.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: #2a5298;
    padding: 10px 0;
    display: none;
    flex-direction: column;
    min-width: 150px;
    border-radius: 4px;
}

.navbar li:hover .dropdown {
    display: flex;
}

.dropdown a {
    padding: 10px 20px;
}

.dropdown a:hover {
    background: #1e3c72;
}

/* 主内容区域 */
.main {
    padding: 100px 20px 50px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* 文章样式 */
article {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

article h2, article h3, article h4 {
    color: #4A90E2;
    margin-bottom: 15px;
}

article p {
    margin-bottom: 20px;
    font-size: 16px;
}

/* 代码块样式 */
pre {
    background: #1e1e1e;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    margin-bottom: 20px;
}

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

/* 卡片式布局 */
.card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 40px;
}

.card {
    background: #1e1e72;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    padding: 20px;
    flex: 1 1 calc(33% - 40px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.card img {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.card img:hover {
    transform: scale(1.05);
}

/* 按钮样式 */
.btn {
    background: #4A90E2;
    color: #ffffff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn:hover {
    background: #2a5298;
    transform: scale(1.05);
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .card {
        flex: 1 1 calc(50% - 40px);
    }
}

@media (max-width: 768px) {
    .navbar ul {
        flex-direction: column;
        background: rgba(0, 0, 0, 0.9);
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        display: none;
    }
    
    .navbar.active ul {
        display: flex;
    }

    .card {
        flex: 1 1 100%;
    }

    .main {
        padding: 120px 10px 30px 10px;
    }
}

/* 背景渐变 */
.background-gradient {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    animation: gradientMove 10s ease infinite;
}

/* 渐变动画 */
@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* 动态粒子背景 */
.particle {
    width: 10px;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    position: absolute;
    animation: move 10s linear infinite;
}

@keyframes move {
    0% { transform: translate(0, 0); }
    50% { transform: translate(100px, 100px); }
    100% { transform: translate(0, 0); }
}

/* 非对称分割与斜线布局 */
.slant-section {
    position: relative;
    height: 400px;
    background: #2a5298;
    overflow: hidden;
}

.slant-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent 50%, #1e3c72 50%);
    transform: skewY(-5deg);
    transform-origin: top left;
}

/* 仪表盘样式 */
.dashboard {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.widget {
    background: #1e3c72;
    color: #ffffff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    transition: background 0.3s ease;
}

.widget:hover {
    background: #2a5298;
}

.chart {
    width: 100%;
    height: 200px;
}

/* 提示文本样式 */
.hint {
    text-align: center;
    font-size: 18px;
    margin: 20px 0;
    color: #ffcc00;
}

/* 图片样式 */
.decorative-image {
    max-width: 650px;
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
}

.decorative-image:hover {
    transform: scale(1.05);
}

/* 折叠区域样式 */
.collapsible {
    background-color: #2a5298;
    color: white;
    cursor: pointer;
    padding: 10px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 16px;
    border-radius: 5px;
    margin-bottom: 10px;
}

.active, .collapsible:hover {
    background-color: #4A90E2;
}

.content {
    padding: 0 18px;
    display: none;
    overflow: hidden;
    background-color: #1e3c72;
    border-radius: 5px;
}

