
/* 全局样式设置 */
/* 使用现代无衬线字体，确保文本清晰易读 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364); /* 背景使用深色渐变 */
    color: #ffffff;
    line-height: 1.6;
}

/* 顶部导航栏样式 */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(32, 58, 67, 0.9);
    padding: 20px;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* 导航栏中的品牌标识 */
header .brand {
    font-size: 24px;
    font-weight: bold;
    color: #00ffcc; /* 点缀色 */
}

/* 导航菜单 */
nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

nav ul li a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #00ffcc; /* 点缀色 */
}

/* 主内容区域 */
main {
    padding: 100px 20px 20px 20px; /* 为固定导航栏留出空间 */
}

/* 章节导航样式 */
.section-nav {
    position: fixed;
    top: 100px;
    right: 20px;
    background: rgba(32, 58, 67, 0.8);
    padding: 10px;
    border-radius: 8px;
}

.section-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.section-nav ul li {
    margin-bottom: 10px;
}

.section-nav ul li a {
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.section-nav ul li a:hover {
    color: #00ffcc;
}

/* 文章内容样式 */
article {
    max-width: 800px;
    margin: 0 auto;
}

article section {
    margin-bottom: 40px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

article section:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 8px rgba(0,0,0,0.2);
}

article h2 {
    font-size: 24px;
    color: #00ffcc; /* 点缀色 */
    margin-bottom: 15px;
}

article p {
    font-size: 16px;
    color: #cccccc;
    margin-bottom: 15px;
}

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

.article-image:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 8px rgba(0,0,0,0.4);
}

/* CSS代码块样式 */
code {
    display: block;
    background: rgba(0, 0, 0, 0.8);
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    font-family: 'Courier New', Courier, monospace;
    color: #00ffcc;
    margin-bottom: 15px;
}

/* 提示信息样式 */
.notice {
    text-align: center;
    font-size: 18px;
    color: #ffcc00; /* 点缀色 */
    margin: 20px 0;
}

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

    .section-nav {
        position: static;
        margin-bottom: 20px;
    }
}

/* 按钮样式 */
.button {
    display: inline-block;
    padding: 10px 20px;
    background: #00ffcc; /* 点缀色 */
    color: #fff;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.3s;
}

.button:hover {
    background: #00e6b8;
}

/* 卡片式布局 */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.card h3 {
    color: #00ffcc;
    margin-bottom: 10px;
}

.card p {
    color: #cccccc;
    font-size: 15px;
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 2s ease-in;
}

/* 更多样式根据需求延展 */

