
/* 页面通用样式 */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    color: #f0f0f0;
    background-color: #0a0a0a;
    overflow-x: hidden; /* 避免水平滚动条 */
}

/* 全局链接样式，去除默认样式 */
a {
    text-decoration: none;
    color: inherit; /* 继承父元素颜色 */
}

/* 容器基础样式 */
.container {
    width: 100%;
    max-width: 1440px; /* 限制最大宽度以适应大屏幕 */
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box; /* 包含 padding 和 border 在元素总宽度内 */
}

/* 标题通用样式 */
h2, h3 {
    font-weight: bold;
    margin-bottom: 15px;
    color: #cceeff; /* 浅蓝色标题 */
}

h2 {
    font-size: 2.5em;
    letter-spacing: 1px;
    text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.5); /* 标题阴影增强立体感 */
}

h3 {
    font-size: 1.8em;
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5); /* 副标题阴影 */
}

p {
    font-size: 1.1em;
    line-height: 1.7;
    color: #d0d0d0; /* 柔和的文本颜色 */
}

ul, ol {
    padding-left: 25px;
    margin-bottom: 15px;
}

li {
    line-height: 1.6;
    color: #d0d0d0;
}

/* 代码块样式 */
pre {
    background-color: #1e1e1e; /* 深色代码背景 */
    color: #f8f8f2; /* 代码高亮颜色 */
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto; /* 水平滚动条在需要时出现 */
    font-size: 0.9em;
    line-height: 1.5;
    tab-size: 4; /* 制表符宽度 */
    white-space: pre-wrap; /* 代码换行 */
    word-wrap: break-word; /* 长单词换行 */
    box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.3); /* 代码块阴影 */
}

code {
    font-family: 'Courier New', monospace; /* 代码字体 */
}

/* 主要内容区域样式 */
#main-content {
    background: linear-gradient(to bottom, #1a1a2e, #0a0a1a); /* 深色渐变背景 */
    padding: 60px 0;
    position: relative; /* 为背景粒子效果定位 */
    overflow: hidden; /* 隐藏溢出的粒子 */
}

/* 模块化网格布局 */
.module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* 响应式列数 */
    gap: 30px;
}

.module {
    background-color: rgba(25, 25, 40, 0.8); /* 模块背景半透明 */
    padding: 30px;
    border-radius: 15px;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.4); /* 模块阴影 */
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out; /* 动画过渡 */
}

.module:hover {
    transform: translateY(-5px); /* 悬停时轻微上移 */
    box-shadow: 8px 8px 15px rgba(0, 0, 0, 0.5); /* 悬停时阴影加深 */
}

.module h3 {
    color: #66ffcc; /* 模块标题颜色 */
    margin-top: 0;
}

.module p {
    margin-bottom: 25px;
}

.module-image {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.3); /* 图片阴影 */
    transition: transform 0.3s ease-in-out;
}

.module:hover .module-image {
    transform: scale(1.05); /* 悬停时图片轻微放大 */
}

/* 特色功能列表样式 */
.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.feature-list li::before {
    content: '•'; /* 小圆点 */
    position: absolute;
    left: 8px;
    top: 2px;
    color: #99eeff; /* 特征点颜色 */
}

/* 示例文章展示区域样式 */
#example-article {
    background-color: rgba(25, 25, 25, 0.9); /* 更深的背景 */
    padding: 40px;
    border-radius: 15px;
    margin-top: 50px;
    box-shadow: 6px 6px 12px rgba(0, 0, 0, 0.5); /* 更强的阴影 */
}

#example-article h2 {
    color: #ffcc99; /* 示例文章标题颜色 */
}

#example-article h3 {
    color: #bbeeaa; /* 示例文章副标题颜色 */
}

#example-article p, #example-article li, #example-article code {
    color: #e0e0e0; /* 示例文章文本颜色 */
}

#example-article strong {
    color: #ffdd55; /* 强调文本颜色 */
}

#example-article table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    margin-bottom: 20px;
}

#example-article th, #example-article td {
    border: 1px solid #444;
    padding: 10px;
    text-align: left;
}

#example-article th {
    background-color: #333;
    color: #f0f0f0;
}

/* 页脚提示信息样式 */
footer {
    text-align: center;
    padding: 30px 0;
    color: #888;
    font-size: 0.9em;
}

/* 响应式媒体查询 */
@media (max-width: 1024px) {
    .container {
        max-width: 960px;
    }

    h2 {
        font-size: 2.2em;
    }

    h3 {
        font-size: 1.6em;
    }

    .module-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    h2 {
        font-size: 2em;
    }

    h3 {
        font-size: 1.4em;
    }

    .module {
        padding: 25px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }

    h2 {
        font-size: 1.8em;
    }

    h3 {
        font-size: 1.3em;
    }

    p {
        font-size: 1em;
    }

    .module {
        padding: 20px;
    }
}

@media (max-width: 320px) {
    h2 {
        font-size: 1.6em;
    }

    h3 {
        font-size: 1.2em;
    }
}

