
/* 网页通用样式 */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #03071e, #370617, #6a040f, #9d0208, #d00000, #dc2f02, #e85d04, #f48c06, #faa307, #ffba08); /* 热情洋溢的渐变背景 */
    background-size: 200% 200%;
    animation: gradientAnimation 15s ease infinite;
    color: #fff;
    overflow-x: hidden; /* 防止水平滚动条 */
}

@keyframes gradientAnimation {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 标题和头部样式 */
header {
    text-align: center;
    padding: 50px 20px;
    margin-bottom: 30px;
}

header h1 {
    font-size: 3.5em;
    font-weight: bold;
    letter-spacing: 3px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
    margin-bottom: 15px;
    text-transform: uppercase; /* 标题文字转换为大写 */
    color: #ffd700; /* 金色标题，更显高端 */
}

header p {
    font-size: 1.2em;
    color: #eee;
    margin-bottom: 20px;
}

/* 主要内容区域样式 */
main {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.section {
    background-color: rgba(255, 255, 255, 0.05); /* 半透明白色背景，增加层次感 */
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px); /* 玻璃模糊效果 */
    border: 1px solid rgba(255, 255, 255, 0.1); /* 细边框，提升精致感 */
}

.section-title {
    font-size: 2.5em;
    font-weight: bold;
    color: #ff6f61; /* 醒目的副标题颜色 */
    margin-bottom: 25px;
    text-align: center;
    text-transform: capitalize; /* 副标题首字母大写 */
    position: relative; /* 为下划线定位做准备 */
    padding-bottom: 10px; /* 为下划线留出空间 */
    display: inline-block; /* 使宽度自适应内容 */
}

.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background-color: #ff6f61; /* 下划线颜色与标题一致 */
}


/* 示例数据展示区域样式 */
.data-display {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* 响应式网格布局 */
    gap: 25px;
}

.data-item {
    background-color: rgba(0, 0, 0, 0.3); /* 深色背景，突出数据项 */
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* 添加过渡效果 */
    border: 1px solid rgba(255, 255, 255, 0.1); /* 细边框 */
}

.data-item:hover {
    transform: translateY(-5px); /* 悬停时轻微上移 */
    box-shadow: 0 5px 20px rgba(255, 111, 97, 0.5); /* 悬停时阴影更醒目 */
}

.data-item h3 {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: #b2ebf2; /* 标题颜色 */
}

.data-item p {
    font-size: 1.1em;
    line-height: 1.6;
    color: #d9d9d9; /* 描述文本颜色 */
}

.data-item ul {
    list-style: none;
    padding: 0;
    margin-top: 10px;
}

.data-item li {
    font-size: 1em;
    color: #c0c0c0; /* 列表项颜色 */
    margin-bottom: 8px;
    position: relative; /* 创建定位上下文 */
    padding-left: 15px; /* 为自定义列表标记留出空间 */
}

.data-item li::before {
    content: "✨"; /* 使用 ✨ 作为列表标记 */
    position: absolute;
    left: 0;
    top: 0;
}


/* 示例文章展示区域样式 */
.article-display article {
    line-height: 1.8;
    font-size: 1.1em;
    color: #f0f0f0;
}

.article-display h2 {
    font-size: 2.2em;
    color: #a7c957; /* 文章二级标题颜色 */
    margin-top: 40px;
    margin-bottom: 20px;
    border-bottom: 1px dashed #a7c957; /* 虚线下划线 */
    padding-bottom: 10px;
}

.article-display h3 {
    font-size: 1.8em;
    color: #f2e8cf; /* 文章三级标题颜色 */
    margin-top: 30px;
    margin-bottom: 15px;
}

.article-display p {
    margin-bottom: 15px;
    text-align: justify; /* 段落两端对齐 */
}

.article-display pre {
    background-color: rgba(0, 0, 0, 0.7); /* 代码块深色背景 */
    color: #f8f8f2; /* 代码颜色 */
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto; /* 水平滚动条，当代码过长时 */
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    white-space: pre-wrap; /* 代码块自动换行 */
    tab-size: 4; /* 设置制表符大小 */
    margin: 15px 0;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5); /* 代码块阴影 */
    border: 1px solid rgba(255, 255, 255, 0.1); /* 代码块边框 */
}

.article-display ul, .article-display ol {
    margin-left: 25px;
    margin-bottom: 15px;
    color: #d0d0d0;
}

.article-display li {
    margin-bottom: 8px;
}

.article-display table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    border: 1px solid #6c757d; /* 表格边框颜色 */
}

.article-display th, .article-display td {
    border: 1px solid #6c757d; /* 表格单元格边框颜色 */
    padding: 10px;
    text-align: left;
    color: #e0e0e0; /* 表格文字颜色 */
}

.article-display th {
    background-color: rgba(108, 117, 125, 0.4); /* 表头背景色 */
    font-weight: bold;
    color: #fff; /* 表头文字颜色 */
}

/* 页脚样式 */
footer {
    text-align: center;
    padding: 30px 20px;
    color: #999;
    border-top: 1px solid rgba(255, 255, 255, 0.1); /* 页脚顶部边框 */
    margin-top: 50px;
}

footer p {
    font-size: 0.9em;
}

/* 图片样式 */
img {
    max-width: 100%; /* 图片不超过容器宽度 */
    height: auto; /* 高度自适应 */
    display: block; /* 移除图片底部默认间隙 */
    margin: 10px auto; /* 居中显示，上下留白 */
    border-radius: 8px; /* 圆角 */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3); /* 图片阴影 */
}

/* 响应式设计 */
@media screen and (max-width: 1024px) {
    .container {
        max-width: 960px;
    }
    header h1 {
        font-size: 3em;
    }
    .section-title {
        font-size: 2.2em;
    }
    .data-display {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media screen and (max-width: 768px) {
    .container {
        max-width: 720px;
        padding: 15px;
    }
    header {
        padding: 40px 15px;
    }
    header h1 {
        font-size: 2.5em;
    }
    .section-title {
        font-size: 2em;
    }
    .section {
        padding: 25px;
    }
}

@media screen and (max-width: 480px) {
    .container {
        max-width: 440px;
        padding: 10px;
    }
    header {
        padding: 30px 10px;
    }
    header h1 {
        font-size: 2em;
    }
    header p {
        font-size: 1em;
    }
    .section-title {
        font-size: 1.7em;
    }
    .section {
        padding: 20px;
    }
    .data-item h3 {
        font-size: 1.5em;
    }
    .article-display h2 {
        font-size: 1.8em;
    }
    .article-display h3 {
        font-size: 1.5em;
    }
    .article-display p, .article-display li, .data-item p, .data-item li {
        font-size: 1em;
    }
}

@media screen and (max-width: 320px) {
    .container {
        max-width: 300px;
        padding: 5px;
    }
    header {
        padding: 20px 5px;
    }
    header h1 {
        font-size: 1.7em;
    }
    .section-title {
        font-size: 1.5em;
    }
    .section {
        padding: 15px;
    }
    .data-item h3 {
        font-size: 1.3em;
    }
    .article-display h2 {
        font-size: 1.6em;
    }
    .article-display h3 {
        font-size: 1.4em;
    }
}
/* 确保代码块在小屏幕下自动换行 */
@media screen and (max-width: 400px) {
    .article-display pre {
        white-space: pre-wrap; /* 代码块自动换行 */
        word-wrap: break-word; /* 单词过长时断词 */
    }
}
/* 使用更具未来感的字体 */
body {
    font-family: 'Montserrat', sans-serif; /* 或 'Roboto', sans-serif; */
}

header h1 {
    font-family: 'Rajdhani', sans-serif; /* 特殊标题字体 */
    font-weight: 700; /* 更粗的标题字体 */
    text-transform: uppercase; /* 全部大写，增强科技感 */
    letter-spacing: 0.1em; /* 字间距 */
}

.section-title {
    font-family: 'Oswald', sans-serif; /* 区块标题字体 */
    font-weight: 500;
    text-transform: uppercase; /* 区块标题大写 */
    letter-spacing: 0.05em;
}

.data-item h3, .article-display h2, .article-display h3 {
    font-family: 'Titillium Web', sans-serif; /* 数据项和文章标题字体 */
    font-weight: 600;
}
/* 添加页面过渡效果 */
body {
    transition: background-color 0.5s ease, color 0.5s ease;
}
/* 按钮悬停效果 (如果页面中有按钮元素) */
button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    background-color: #ffba08;
    color: #333;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

button:hover {
    background-color: #faa307;
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(250, 163, 7, 0.7);
}
/* 细微的滚动条样式 */
::-webkit-scrollbar {
    width: 8px; /* 滚动条宽度 */
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1); /* 滚动条轨道背景色 */
}

::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.2); /* 滚动条滑块颜色 */
    border-radius: 4px; /* 滑块圆角 */
}

::-webkit-scrollbar-thumb:hover {
    background-color: rgba(255, 255, 255, 0.3); /* 滑块悬停颜色 */
}
/* 增强链接颜色辨识度 (如果页面中有链接元素) */
a {
    color: #80deea; /* 链接颜色 */
    text-decoration: none; /* 移除下划线 */
    transition: color 0.3s ease; /* 颜色过渡效果 */
}

a:hover {
    color: #b2ebf2; /* 链接悬停颜色 */
}
/* 为列表增加一些视觉区分 */
.article-display ul, .article-display ol {
    padding-left: 20px;
}

.article-display ul li::marker {
    color: #ff6f61; /* 无序列表标记颜色 */
}

.article-display ol li::marker {
    color: #a7c957; /* 有序列表标记颜色 */
}
/* 调整段落间距，使其更舒适 */
.article-display p {
    margin-bottom: 20px;
}
/* 代码块微调 */
.article-display pre {
    padding: 20px;
    line-height: 1.5;
    border-left: 3px solid #64b5f6; /* 代码块左侧边线 */
    background-color: rgba(30, 30, 30, 0.8); /* 更深的背景色 */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4); /* 更立体的阴影 */
}
/* 移动端优化，进一步减小字号 */
@media screen and (max-width: 320px) {
    header h1 {
        font-size: 1.5em;
    }
    header p {
        font-size: 0.9em;
    }
    .section-title {
        font-size: 1.3em;
    }
    .article-display p, .article-display li, .data-item p, .data-item li {
        font-size: 0.9em;
    }
}


