
/* 基础样式重置与全局设定 */
body, html {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(to bottom, #0a0a2e, #0f0c29, #24243e); /* 深邃渐变背景 */
    color: #e0e0e0; /* 柔和的文本颜色 */
    overflow-x: hidden; /* 避免水平滚动条 */
    scroll-behavior: smooth; /* 平滑滚动效果 */
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto', sans-serif;
    font-weight: bold;
    color: #ffffff; /* 标题白色 */
    margin-bottom: 15px;
    text-shadow: 1px 1px 2px #000; /* 标题阴影 */
}

p {
    line-height: 1.7;
    margin-bottom: 15px;
    color: #d0d0d0; /* 段落稍浅色 */
}

a {
    color: #64b5f6; /* 链接颜色 */
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #bbdefb; /* 链接悬停颜色 */
}

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

.section {
    padding: 60px 0;
    position: relative; /* 为背景元素定位 */
    overflow: hidden; /* 防止子元素溢出影响布局 */
}

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

/* 头部区域样式 */
header {
    background: rgba(0, 0, 0, 0.5); /* 半透明头部背景 */
    padding: 20px 0;
    position: sticky; /* 头部固定顶部 */
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px); /* 毛玻璃效果 */
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    color: #fff;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

nav ul li {
    margin-left: 20px;
}

nav ul li:first-child {
    margin-left: 0;
}

nav ul li a {
    display: block;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

nav ul li a:hover {
    background-color: rgba(255, 255, 255, 0.1); /* 导航链接悬停效果 */
    color: #fff;
}

/* 首页主视觉区 */
.hero {
    background: linear-gradient(45deg, #141e30, #243b55); /* 英雄区渐变背景 */
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 1; /* 确保内容在背景之上 */
}

.hero h1 {
    font-size: 3.5em;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px #000; /* 更强烈的标题阴影 */
}

.hero p {
    font-size: 1.2em;
    max-width: 700px;
    margin: 0 auto 30px;
    color: #eee;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.15; /* 背景图透明度 */
    z-index: 0; /* 背景图层置后 */
}

/* 特色功能区 */
.features {
    background-color: #1a1a33; /* 特性区背景色 */
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

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

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

.feature-item img {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    border-radius: 50%;
    object-fit: cover;
}

.feature-item h3 {
    margin-bottom: 15px;
}

/* 示例文章展示区 */
.article-section {
    background-color: #14142b; /* 文章区背景色 */
}

.article-content {
    background: rgba(0, 0, 0, 0.2); /* 文章内容背景 */
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.article-content h2 {
    border-bottom: 2px solid #42a5f5; /* 文章二级标题下划线 */
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.article-content h3 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: #80deea; /* 文章三级标题颜色 */
}

.article-content h4 {
    margin-top: 25px;
    margin-bottom: 10px;
    color: #b2ebf2; /* 文章四级标题颜色 */
}

.article-content pre {
    background-color: #263238; /* 代码块背景色 */
    color: #f0f0f0; /* 代码颜色 */
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto; /* 代码块水平滚动 */
    font-family: monospace, monospace;
    white-space: pre-wrap; /* 代码换行 */
}

.article-content code {
    font-family: monospace, monospace;
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    margin-bottom: 20px;
    background-color: #212121; /* 表格背景 */
    color: #e0e0e0; /* 表格文字颜色 */
}

.article-content th, .article-content td {
    border: 1px solid #424242; /* 表格边框颜色 */
    padding: 10px;
    text-align: left;
}

.article-content th {
    background-color: #303030; /* 表头背景 */
    font-weight: bold;
}

.article-content b {
    color: #ffcc80; /* 文章内强调文本颜色 */
}

/* 示例数据展示区 */
.data-section {
    background-color: #1a1a33; /* 数据区背景色 */
}

.data-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.data-item {
    background: rgba(255, 255, 255, 0.05); /* 数据项背景 */
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
}

.data-item:hover {
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

.data-item h4 {
    margin-top: 0;
    margin-bottom: 15px;
}

.data-item p {
    font-size: 0.95em;
    color: #bdbdbd;
}

/* 页脚样式 */
footer {
    background-color: #0a0a2e; /* 页脚背景色 */
    color: #9e9e9e; /* 页脚文本颜色 */
    text-align: center;
    padding: 30px 0;
    font-size: 0.9em;
}

footer a {
    color: #9e9e9e;
}

footer a:hover {
    color: #fff;
}

/* 分割线样式 */
.divider {
    border-top: 1px dashed rgba(255, 255, 255, 0.1); /* 虚线分割线 */
    margin: 50px 0;
}

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

    .section {
        padding: 40px 0;
    }

    .section-title {
        margin-bottom: 30px;
    }

    .hero {
        padding: 80px 0;
    }

    .hero h1 {
        font-size: 2.5em;
    }

    .hero p {
        font-size: 1em;
    }

    nav {
        flex-direction: column;
        align-items: flex-start;
    }

    nav ul {
        flex-direction: column;
        margin-top: 10px;
    }

    nav ul li {
        margin-left: 0;
        margin-top: 10px;
    }

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

    .feature-item, .data-item {
        padding: 20px;
    }

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

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

