
/* 基础样式重置与全局设置 */
body, html {
    margin: 0;
    padding: 0;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background: linear-gradient(135deg, #0c2559, #3a7bd5); /* 深邃蓝紫渐变背景 */
    color: #f0f8ff; /* 浅蓝色文字 */
    overflow-x: hidden; /* 防止水平滚动条 */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto', sans-serif;
    color: #ffffff; /* 白色标题 */
    font-weight: bold;
    margin-bottom: 15px;
    letter-spacing: 0.05em;
}

h1 { font-size: 2.5em; line-height: 1.2; }
h2 { font-size: 2em; line-height: 1.3; }
h3 { font-size: 1.6em; line-height: 1.4; }
h4 { font-size: 1.3em; line-height: 1.5; }
h5 { font-size: 1.1em; line-height: 1.6; }
h6 { font-size: 1em; line-height: 1.6; }

p {
    font-size: 1em;
    color: #dbe9ff; /* 浅蓝灰段落文字 */
    margin-bottom: 15px;
}

a {
    color: #70bfff; /* 亮蓝色链接 */
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #ffffff; /* 鼠标悬停时白色链接 */
}

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

.section {
    margin-bottom: 60px;
    padding: 40px 0;
    position: relative;
    overflow: hidden; /* 确保背景渐变不溢出 */
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

/* 头部区域样式 */
.header {
    background: rgba(0, 0, 0, 0.1); /* 半透明黑色头部背景 */
    padding: 20px 0;
    margin-bottom: 50px;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8em;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5); /*  logo文字阴影 */
}

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

.feature-item {
    background: rgba(255, 255, 255, 0.05); /* 特性项背景 */
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); /* 特性项阴影 */
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2); /* 鼠标悬停时特性项阴影加深 */
}

.feature-icon {
    margin-bottom: 20px;
}

.feature-icon img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3); /* 图标阴影 */
}

.feature-title {
    margin-bottom: 15px;
    font-size: 1.4em;
}

/* 示例文章展示区域 */
.article-section {
    background: rgba(0, 0, 0, 0.1); /* 文章区域背景 */
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2); /* 文章区域阴影 */
}

.article-section h2, .article-section h3 {
    color: #ffffff; /* 文章标题白色 */
}

.article-section p, .article-section li {
    color: #dbe9ff; /* 文章段落浅蓝灰 */
}

pre {
    background-color: #1e293b; /* 代码块背景色，深色 */
    color: #abb2bf; /* 代码颜色，浅色 */
    padding: 15px;
    border-radius: 10px;
    overflow-x: auto; /* 水平滚动条，如果代码过长 */
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    line-height: 1.5;
    margin-bottom: 20px;
    tab-size: 4; /* 设置制表符大小 */
    white-space: pre-wrap; /* 代码块换行 */
}

code {
    font-family: 'Courier New', monospace;
    color: #d8dee9; /* 代码内联颜色 */
}

/* 表格样式 */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

th, td {
    border: 1px solid rgba(255, 255, 255, 0.1); /* 表格边框 */
    padding: 10px;
    text-align: left;
}

th {
    background-color: rgba(255, 255, 255, 0.05); /* 表头背景 */
    font-weight: bold;
    color: #ffffff; /* 表头文字白色 */
}

/* 底部区域样式 */
.footer {
    text-align: center;
    padding: 30px 0;
    color: #dbe9ff; /* 底部文字颜色 */
    border-top: 1px solid rgba(255, 255, 255, 0.1); /* 底部上边框 */
}

/* 自适应布局调整 */
@media screen and (max-width: 768px) {
    .container {
        width: 95%;
        padding: 20px 15px;
    }
    .section {
        padding: 30px 0;
        margin-bottom: 50px;
    }
    .features {
        grid-template-columns: 1fr; /* 平板及以下屏幕特性单列显示 */
    }
    h1 { font-size: 2em; }
    h2 { font-size: 1.7em; }
    h3 { font-size: 1.4em; }
}

@media screen and (max-width: 480px) {
    h1 { font-size: 1.8em; }
    h2 { font-size: 1.5em; }
    h3 { font-size: 1.3em; }
    .header-inner {
        flex-direction: column;
        text-align: center;
    }
    .logo {
        margin-bottom: 10px;
    }
}

/* 额外的视觉修饰 - 渐变边框和投影效果 */
.feature-item {
    border: 1px solid transparent; /* 初始透明边框 */
    background-clip: padding-box; /* 确保渐变背景在内边距内 */
    position: relative; /* 为伪元素定位 */
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    z-index: -1;
    margin: -1px; /* 扩展边框覆盖原有边框 */
    border-radius: inherit; /* 继承父元素的 border-radius */
    background: linear-gradient(45deg, #6a5af9, #d66df7); /* 动态渐变边框 */
    opacity: 0; /* 初始透明 */
    transition: opacity 0.3s ease; /* 平滑过渡 */
}

.feature-item:hover::before {
    opacity: 1; /* 鼠标悬停时显示渐变边框 */
}

/* 按钮样式 - 如果需要按钮 */
button, .button {
    display: inline-block;
    padding: 12px 30px;
    font-size: 1em;
    text-align: center;
    text-decoration: none;
    color: #fff;
    background-color: #6a5af9; /* 主题色按钮背景 */
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15); /* 按钮阴影 */
}

button:hover, .button:hover {
    background-color: #5a4ae9; /* 悬停时按钮背景色 */
    transform: translateY(-2px); /* 悬停时轻微上移效果 */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2); /* 悬停时按钮阴影加深 */
}

button:active, .button:active {
    transform: translateY(0); /* 点击时取消上移效果 */
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15); /* 点击时阴影 */
}

.code-block-caption {
    font-size: 0.9em;
    color: #999;
    text-align: center;
    margin-bottom: 10px;
    font-style: italic;
}

/* 文字排版优化 */
.article-section p {
    text-align: justify; /* 段落两端对齐 */
    hyphens: auto; /* 允许单词在换行处断字，提升排版美观性 */
}

/* 示例数据展示区域特殊样式 */
.example-data-section {
    background: rgba(255, 255, 255, 0.03); /* 示例数据区域背景，更浅 */
    border-radius: 15px;
    padding: 30px;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.1); /* 内阴影效果 */
    margin-bottom: 50px;
}

.example-data-section h3 {
    color: #b3e0ff; /* 示例数据小标题颜色 */
    margin-bottom: 20px;
}

.example-data-section ul {
    list-style-type: none;
    padding-left: 0;
}

.example-data-section li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.example-data-section li:before {
    content: "-"; /* 列表项符号 */
    position: absolute;
    left: 5px;
    top: 0;
    color: #70bfff; /* 列表符号颜色 */
}

/* 图片样式统一管理 */
img {
    max-width: 100%;
    height: auto;
    display: block; /* 移除图片底部默认间隙 */
}

.section-image {
    text-align: center;
    margin-bottom: 30px;
}

/* 响应式图片网格 - 如果需要在文章中使用图片网格 */
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.image-grid img {
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

