
/* 基础样式重置与全局设定 */
body, html {
    margin: 0;
    padding: 0;
    font-family: Helvetica, Arial, sans-serif;
    background: linear-gradient(to bottom, #0a0a0a, #1a1a1a);
    color: #e0e0e0;
    overflow-x: hidden; /* 防止水平滚动条 */
    line-height: 1.6;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* 标题样式 */
h2 {
    font-size: 2.5em;
    color: #ffffff;
    margin-bottom: 0.5em;
    text-shadow: 2px 2px 4px #000000;
    font-weight: bold;
    letter-spacing: 1px;
    text-align: center; /* 居中标题 */
}

h3 {
    font-size: 1.8em;
    color: #b3e0ff; /* 浅蓝色 */
    margin-bottom: 0.5em;
    font-weight: bold;
    letter-spacing: 0.5px;
}

p {
    font-size: 1.1em;
    color: #d0d0d0;
    margin-bottom: 1em;
    line-height: 1.7;
}

/* 链接样式 */
a {
    color: #7acbff; /* 亮蓝色 */
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #ffffff;
}

/* 代码块样式 */
pre {
    background-color: #1e1e1e;
    color: #f8f8f2;
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto; /* 水平滚动条 */
    font-size: 0.9em;
    line-height: 1.4;
    tab-size: 4;
    margin-bottom: 1em;
    white-space: pre-wrap; /* 代码自动换行 */
    word-wrap: break-word; /* 代码长单词换行 */
}

code {
    font-family: monospace, monospace;
    font-size: 1em;
    color: #f8f8f2;
}

/* 容器和布局 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.section {
    margin-bottom: 60px;
    padding: 30px;
    background-color: rgba(255, 255, 255, 0.05); /* 半透明白色背景 */
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* 阴影效果 */
    backdrop-filter: blur(10px); /* 模糊效果 */
}

/* 头部样式 */
header {
    background: linear-gradient(to right, #2c3e50, #34495e); /* 渐变头部背景 */
    padding: 40px 20px;
    text-align: center;
    margin-bottom: 40px;
}

header h1 {
    font-size: 3em;
    color: #ffffff;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px #000000;
    font-weight: bold;
    letter-spacing: 2px;
}

header p {
    font-size: 1.2em;
    color: #d0d0d0;
    max-width: 800px;
    margin: 0 auto;
}

/* 特色展示区域 */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-item {
    padding: 25px;
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(8px);
}

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

.feature-item h4 {
    font-size: 1.5em;
    color: #a6d4fa; /* 浅蓝色 */
    margin-bottom: 15px;
    font-weight: bold;
}

.feature-item p {
    font-size: 1em;
    color: #c0c0c0;
}

.feature-item img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 15px;
    display: block; /* 确保图片独占一行 */
}

/* 示例文章区域 */
.article-section {
    background-color: rgba(0, 0, 0, 0.6); /* 深色半透明背景 */
    color: #f0f0f0;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    margin-bottom: 60px;
    backdrop-filter: blur(12px);
}

.article-section h2 {
    color: #ffffff;
    text-align: left; /* 文章标题左对齐 */
}

.article-section h3 {
    color: #b3e0ff; /* 浅蓝色 */
    margin-top: 1.5em;
    text-align: left; /* 文章小标题左对齐 */
}

.article-section p {
    color: #d0d0d0;
    font-size: 1.05em;
    line-height: 1.8;
}

.article-section pre {
    background-color: #282a36;
    color: #f8f8f2;
    border-radius: 8px;
    padding: 20px;
    overflow-x: auto;
    font-size: 0.95em;
    line-height: 1.5;
    tab-size: 4;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.article-section table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    margin-bottom: 20px;
    color: #d0d0d0;
}

.article-section th, .article-section td {
    border: 1px solid #555;
    padding: 10px;
    text-align: left;
}

.article-section th {
    background-color: #333;
    color: #eee;
}

/* 页脚样式 */
footer {
    text-align: center;
    padding: 30px 20px;
    color: #999;
    margin-top: auto; /* 页脚推到底部 */
    font-size: 0.9em;
    background-color: #121212; /* 深色页脚背景 */
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    header {
        padding: 30px 15px;
    }

    header h1 {
        font-size: 2.5em;
    }

    header p {
        font-size: 1.1em;
    }

    .features-grid {
        grid-template-columns: 1fr; /* 移动端单列布局 */
    }

    .section {
        padding: 20px;
    }

    h2 {
        font-size: 2em;
    }

    h3 {
        font-size: 1.6em;
    }

    p {
        font-size: 1em;
    }

    .article-section {
        padding: 30px;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 2em;
    }

    header p {
        font-size: 1em;
    }

    h2 {
        font-size: 1.8em;
    }

    h3 {
        font-size: 1.4em;
    }

    p {
        font-size: 0.95em;
    }

    .article-section {
        padding: 20px;
    }
}

@media (max-width: 320px) {
    header h1 {
        font-size: 1.8em;
    }

    h2 {
        font-size: 1.6em;
    }

    h3 {
        font-size: 1.3em;
    }
}

