
/* 全局样式设置 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif; /* 使用现代无衬线字体提升可读性 */
    background: linear-gradient(135deg, #0d47a1, #4527a0); /* 背景采用深蓝到紫色的线性渐变 */
    color: #ffffff;
    line-height: 1.6;
}

/* 响应式布局容器 */
.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* 固定导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.7); /* 半透明背景增加层次感 */
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5); /* 阴影效果增强导航栏立体感 */
}

.navbar a {
    color: #00eaff; /* 霓虹亮蓝色链接 */
    margin: 0 15px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.navbar a:hover {
    color: #ffffff; /* 悬停时链接颜色变为白色 */
}

/* 主标题样式 */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto', sans-serif;
    color: #00eaff;
    margin-bottom: 20px;
}

/* 文章内容样式 */
article {
    background: rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    max-width: 800px;
    width: 100%;
    margin-top: 100px; /* 避免被固定导航栏遮挡 */
}

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

code {
    color: #00eaff;
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
}

/* 高亮文本样式 */
.highlight {
    background: rgba(0, 234, 255, 0.2);
    padding: 2px 4px;
    border-radius: 3px;
}

/* 图片样式 */
img.decoration {
    max-width: 650px;
    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;
    margin: 20px 0;
}

img.decoration:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

/* 提示信息样式 */
.notice {
    background: rgba(255, 255, 255, 0.2);
    padding: 15px 30px;
    border-left: 5px solid #00eaff;
    margin: 40px 0;
    font-size: 18px;
    text-align: center;
    border-radius: 5px;
}

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

    .navbar a {
        margin: 10px 0;
    }

    article {
        padding: 20px;
    }

    pre {
        padding: 15px;
    }

    .notice {
        font-size: 16px;
        padding: 10px 20px;
    }
}

/* 过渡效果 */
button, .button {
    background-color: #00eaff;
    border: none;
    color: #ffffff;
    padding: 10px 20px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border-radius: 5px;
}

button:hover, .button:hover {
    background-color: #ffffff;
    color: #00eaff;
    transform: scale(1.05);
}

/* 折叠内容样式 */
.collapsible {
    background-color: #333333;
    color: #ffffff;
    cursor: pointer;
    padding: 10px 20px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 16px;
    border-radius: 5px;
    margin: 10px 0;
}

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

.content {
    padding: 0 20px;
    display: none;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
}

.content p {
    margin: 15px 0;
}


