
/* 基础样式重置与全局设定 */
html, body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif; /* 选用现代无衬线字体 */
    color: #f0f0f0; /* 提升文字在深色背景下的可读性 */
    background: linear-gradient(135deg, #0a0a33, #2a0a55); /* 深蓝紫渐变背景，营造梦幻科技感 */
    overflow-x: hidden; /* 避免水平滚动条 */
    -webkit-font-smoothing: antialiased; /* 字体抗锯齿，提升显示效果 */
    -moz-osx-font-smoothing: grayscale;
}

*, *::before, *::after {
    box-sizing: border-box;
}

a {
    text-decoration: none;
    color: inherit;
}

/* 页面通用容器样式 */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 标题样式 */
h2, h3 {
    font-family: 'Futura', sans-serif; /* 标题使用更具设计感的字体 */
    color: #ffffff;
    text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.3); /* 标题阴影增加立体感 */
    margin-bottom: 20px;
    text-align: center;
}

h2 {
    font-size: 2.5em;
    margin-top: 40px;
}

h3 {
    font-size: 1.8em;
    margin-top: 30px;
}

/* 段落文本样式 */
p {
    font-size: 1.1em;
    line-height: 1.7;
    margin-bottom: 15px;
    color: #e0e0e0; /* 稍浅的文字颜色 */
}

/* 链接样式 */
a {
    color: #aaccff; /* 链接颜色 */
    transition: color 0.3s ease;
}

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

/* 代码块样式 */
pre {
    background-color: #1e1e3a; /* 深色代码块背景 */
    color: #ffffff;
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto; /* 代码块超出容器时显示横向滚动条，小屏设备下会换行 */
    tab-size: 4;
    font-size: 0.9em;
    line-height: 1.6;
    margin-bottom: 20px;
    white-space: pre-wrap; /* 代码自动换行 */
    word-wrap: break-word; /* 单词过长时断开换行 */
}

code {
    font-family: 'Consolas', monospace; /* 代码字体 */
}

/* 列表样式 */
ol, ul {
    margin-bottom: 20px;
    padding-left: 20px;
    color: #e0e0e0;
}

li {
    line-height: 1.6;
    margin-bottom: 8px;
}

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

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

th {
    background-color: #333355; /* 表头背景色 */
    font-weight: bold;
}

/* 按钮样式 */
button {
    background-color: #663399; /* 按钮背景色 */
    color: #ffffff;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2); /* 按钮阴影 */
}

button:hover {
    background-color: #8855bb; /* 按钮悬停背景色 */
    transform: scale(1.05); /* 按钮悬停放大效果 */
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3); /* 按钮悬停阴影 */
}

/* 卡片布局样式 */
.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* 自适应卡片列数 */
    gap: 30px;
    margin-top: 30px;
}

.card {
    background-color: #1a1a44; /* 卡片背景色 */
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3); /* 卡片阴影 */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px); /* 卡片悬停上移效果 */
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.4); /* 卡片悬停阴影 */
}

.card img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 15px;
    display: block;
}

.card h4 {
    font-family: 'Futura', sans-serif;
    color: #ffffff;
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.5em;
}

.card p {
    font-size: 1em;
    color: #d0d0d0;
}

/* 英雄区域样式 */
.hero {
    position: relative;
    padding: 100px 0;
    text-align: center;
    overflow: hidden; /* 确保背景元素不超出 */
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 10, 51, 0.8), rgba(42, 10, 85, 0.8)); /* 英雄区域背景渐变，略微透明 */
    z-index: -1; /* 背景置于内容下方 */
}

.hero h1 {
    font-family: 'Futura', sans-serif;
    font-size: 3.5em;
    color: #ffffff;
    text-shadow: 3px 3px 5px rgba(0, 0, 0, 0.5); /* 更强的标题阴影 */
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.3em;
    color: #e0e0e0;
    max-width: 800px;
    margin: 0 auto 30px;
}

/* 示例数据展示区域样式 */
.example-data-section {
    background-color: #111133; /* 示例数据区域背景色 */
    padding: 40px 0;
    border-radius: 10px;
    margin-top: 40px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

.example-data-list {
    list-style: none;
    padding: 0;
}

.example-data-item {
    background-color: #1e1e44; /* 示例数据项背景色 */
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.15);
}

.example-data-item h4 {
    font-family: 'Futura', sans-serif;
    color: #ffffff;
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.3em;
}

.example-data-item p {
    font-size: 1em;
    color: #d0d0d0;
    margin-bottom: 10px;
}

.example-data-item strong {
    color: #aaccff; /* 强调文本颜色 */
}

/* 文章展示区域样式 */
.article-section {
    background-color: #111133; /* 文章区域背景色 */
    padding: 40px 0;
    border-radius: 10px;
    margin-top: 40px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

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

.article-content h2 {
    text-align: left; /* 文章标题左对齐 */
    font-size: 2em;
    margin-top: 0;
    margin-bottom: 20px;
}

.article-content h3 {
    text-align: left; /* 文章小标题左对齐 */
    font-size: 1.6em;
    margin-top: 30px;
    margin-bottom: 15px;
}

.article-content p {
    text-align: justify; /* 文章段落两端对齐 */
    font-size: 1.1em;
    line-height: 1.8;
    color: #e0e0e0;
    margin-bottom: 20px;
}

.article-content pre {
    margin-left: 0;
    margin-right: 0;
}

/* 页脚样式 */
footer {
    text-align: center;
    padding: 30px 0;
    color: #888888;
    font-size: 0.9em;
    border-top: 1px solid #333355; /* 页脚顶部分割线 */
    margin-top: 60px;
}

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

    h2 {
        font-size: 2.2em;
        margin-top: 30px;
    }

    h3 {
        font-size: 1.6em;
        margin-top: 25px;
    }

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

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

    .card-container {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }

    .card {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    h2 {
        font-size: 2em;
        margin-top: 25px;
    }

    h3 {
        font-size: 1.4em;
        margin-top: 20px;
    }

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

    .hero p {
        font-size: 1.1em;
        max-width: 90%;
    }

    .card-container {
        grid-template-columns: 1fr; /* 平板及以下设备卡片堆叠显示 */
    }

    .example-data-section, .article-section {
        padding: 30px 0;
    }

    .article-content {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    h2 {
        font-size: 1.8em;
    }

    h3 {
        font-size: 1.3em;
    }

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

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

    .card {
        padding: 15px;
    }
}

@media (max-width: 320px) {
    h2 {
        font-size: 1.6em;
    }

    h3 {
        font-size: 1.2em;
    }

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

