
/* 页面整体样式设置，包括背景渐变、字体、布局等 */
body {
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #2E86C1, #8E44AD); /* 渐变背景，从深蓝到紫色 */
    color: #ffffff;
    font-family: 'Roboto', sans-serif; /* 使用现代无衬线字体 */
    line-height: 1.6;
    font-size: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* 确保内容在各种屏幕宽度下居中显示 */
}

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

/* 文章标题样式 */
article h2 {
    font-size: 2em;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
    text-align: center;
}

/* 二级标题样式 */
article h3 {
    font-size: 1.5em;
    font-weight: 600;
    color: #D5DBDB;
    margin-top: 30px;
    margin-bottom: 15px;
}

/* 段落样式 */
article p {
    font-size: 1em;
    color: #f0f0f0;
    margin-bottom: 15px;
    text-align: justify;
}

/* 代码块样式，添加背景色、边框、内边距等 */
pre {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 8px;
    overflow: auto;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

code {
    font-family: 'Courier New', Courier, monospace;
    color: #2ECC71;
    background: rgba(0, 0, 0, 0.05);
    padding: 2px 4px;
    border-radius: 4px;
}

/* 表格样式 */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

table, th, td {
    border: 1px solid #7f8c8d;
}

th, td {
    padding: 12px;
    text-align: left;
}

th {
    background-color: rgba(255, 255, 255, 0.2);
}

tbody tr:nth-child(odd) {
    background-color: rgba(255, 255, 255, 0.1);
}

/* 图片样式，添加圆角、阴影、悬浮效果等 */
img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

/* 按钮样式，使用强调色 */
.button {
    background: #28B463;
    color: #ffffff;
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
    font-size: 1em;
    display: inline-block;
    text-decoration: none;
}

.button:hover {
    background: #1D8348;
    transform: scale(1.05);
}

/* 导航栏样式，固定在顶部 */
nav {
    width: 100%;
    background: rgba(46, 134, 193, 0.9);
    padding: 20px 0;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 0;
    padding: 0;
}

nav ul li {
    display: inline;
}

nav ul li a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1em;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #E67E22;
}

/* 提示语样式，显著位置显示 */
.prompt {
    background: rgba(255, 255, 255, 0.2);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    font-size: 1.2em;
    margin-top: 100px; /* 避免被导航栏遮挡 */
}

/* 关键帧动画，用于背景或其他元素的动态效果 */
@keyframes waveMove {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* 渐变动画应用于特定元素 */
.wave {
    position: relative;
    width: 100%;
    height: 200px;
    background: linear-gradient(270deg, #2E86C1, #8E44AD);
    animation: waveMove 10s infinite linear;
    border-radius: 50%;
    margin-top: 50px;
}

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

.collapsible:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.content {
    padding: 0 18px;
    display: none;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
    margin-bottom: 10px;
}

/* 响应式设计调整 */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        gap: 15px;
    }

    .container {
        grid-template-columns: 1fr;
    }

    .prompt {
        font-size: 1em;
    }
}

/* 特定区域留白与布局平衡 */
.section {
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* 高亮效果用于重要信息 */
.highlight {
    color: #E67E22;
    font-weight: bold;
}

/* 视觉引导区样式，添加渐变和阴影 */
.lead-section {
    background: linear-gradient(135deg, #1ABC9C, #16A085);
    padding: 60px 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    margin-bottom: 40px;
}

/* 列表样式，提升可读性 */
ul.custom-list {
    list-style-type: disc;
    margin-left: 20px;
}

ul.custom-list li {
    margin-bottom: 10px;
}

/* 动态内容动画 */
.dynamic-content {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.dynamic-content.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 面包屑导航样式 */
.breadcrumb {
    font-size: 0.9em;
    margin-bottom: 20px;
    color: #D5DBDB;
}

.breadcrumb a {
    color: #E67E22;
    text-decoration: none;
    margin-right: 5px;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* 提示文本样式 */
.alert {
    background: rgba(231, 76, 60, 0.8);
    color: #ffffff;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
    margin-bottom: 20px;
    font-size: 1em;
}

