
body {
    font-family: sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #0a0a0a, #1a2a6c);
    color: #ffffff;
    overflow-x: hidden;
}

/* 头部区域样式 */
header {
    background: linear-gradient(45deg, #2c3e50, #3498db);
    padding: 30px 20px;
    text-align: center;
    margin-bottom: 30px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

header h1 {
    font-size: 2.5em;
    font-weight: bold;
    letter-spacing: 1.5px;
    text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.5);
    color: #ecf0f1;
}

/* 主要内容区域样式 */
main {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 3px 7px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.section:last-child {
    margin-bottom: 0;
}

.section h2 {
    font-size: 2em;
    color: #ffffff;
    margin-top: 0;
    margin-bottom: 20px;
    border-bottom: 2px solid #2980b9;
    padding-bottom: 10px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
}

.section p {
    font-size: 1.1em;
    line-height: 1.7;
    color: #dcdcdc;
    margin-bottom: 20px;
}

.section ul, .section ol {
    color: #dcdcdc;
    line-height: 1.7;
    margin-bottom: 20px;
}

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

/* 图片展示样式 */
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.image-grid img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease-in-out;
}

.image-grid img:hover {
    transform: scale(1.05);
}

/* 代码块样式 */
pre {
    background-color: #282c34;
    color: #abb2bf;
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto; /* 代码块超出容器时显示横向滚动条 */
    font-size: 0.9em;
    line-height: 1.5;
    margin-bottom: 20px;
    tab-size: 4; /* 统一tab宽度 */
    white-space: pre-wrap; /* 代码自动换行 */
    word-wrap: break-word; /* 单词过长时换行 */
}

pre code {
    display: block; /* 确保代码块占据整个pre宽度 */
}

/* 表格样式 */
.section table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 5px;
    overflow: hidden; /* 确保边框半径生效 */
}

.section th, .section td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.section th {
    background-color: rgba(255, 255, 255, 0.15);
    font-weight: bold;
    color: #ffffff;
}

.section td {
    color: #dcdcdc;
}

.section tr:last-child td {
    border-bottom: none;
}

/* 示例文章区域样式 */
.example-article {
    background: rgba(0, 0, 0, 0.6);
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.example-article h2 {
    font-size: 2.2em;
    color: #a0d468; /* 突出示例文章标题 */
    margin-bottom: 25px;
    border-bottom: 2px solid #a0d468;
    padding-bottom: 12px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.example-article h3 {
    font-size: 1.6em;
    color: #ffffff;
    margin-top: 30px;
    margin-bottom: 15px;
    border-bottom: 1px dashed #ffffff;
    padding-bottom: 8px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.example-article p {
    font-size: 1.1em;
    line-height: 1.8;
    color: #eeeeee;
    margin-bottom: 20px;
}

.example-article pre {
    background-color: #343a40; /* 更深的背景色突出代码 */
    color: #f8f8f2; /* 修改代码颜色 */
    border: 1px solid #495057;
}

/* 页脚样式 */
footer {
    text-align: center;
    padding: 20px;
    color: #95a5a6;
    font-size: 0.9em;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* 响应式设计 */
@media (max-width: 768px) {
    header {
        padding: 20px 15px;
    }
    header h1 {
        font-size: 2em;
    }
    main {
        padding: 15px;
    }
    .section {
        padding: 20px;
        margin-bottom: 20px;
    }
    .section h2 {
        font-size: 1.7em;
        margin-bottom: 15px;
        padding-bottom: 8px;
    }
    .section p, .section ul, .section ol {
        font-size: 1em;
        margin-bottom: 15px;
    }
    .example-article {
        padding: 20px;
        margin-bottom: 20px;
    }
    .example-article h2 {
        font-size: 1.9em;
        margin-bottom: 20px;
        padding-bottom: 10px;
    }
    .example-article h3 {
        font-size: 1.4em;
        margin-top: 25px;
        margin-bottom: 12px;
        padding-bottom: 6px;
    }
    .example-article p {
        font-size: 1em;
        line-height: 1.7;
        margin-bottom: 15px;
    }
    .image-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 10px;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.6em;
    }
    .section h2 {
        font-size: 1.5em;
    }
    .example-article h2 {
        font-size: 1.7em;
    }
    .example-article h3 {
        font-size: 1.2em;
    }
}

@media (max-width: 320px) {
    header h1 {
        font-size: 1.4em;
    }
    .section h2 {
        font-size: 1.3em;
    }
    .example-article h2 {
        font-size: 1.5em;
    }
    .example-article h3 {
        font-size: 1.1em;
    }
}

