
/* 页面通用样式 reset 和基础设置 */
body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    background: linear-gradient(to bottom, #1a1a37, #2a2a5a); /* 深蓝紫色渐变背景 */
    color: #f0f0f0; /* 浅灰色文字 */
    overflow-x: hidden; /* 防止水平滚动条 */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* 全局链接样式 */
a {
    color: #00bcd4; /* 青色链接 */
    text-decoration: none;
}

a:hover {
    color: #4dd0e1; /* 悬停时颜色加亮 */
}

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

/* 标题通用样式 */
h1, h2, h3 {
    font-weight: bold;
    margin-bottom: 15px;
    color: #e0e0e0; /* 稍浅的灰色标题 */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3); /* 标题阴影增强立体感 */
}

h1 {
    font-size: 2.5em;
    text-align: center;
    margin-top: 30px;
    margin-bottom: 40px;
    letter-spacing: 2px; /* 增加字间距 */
}

h2 {
    font-size: 2em;
    border-bottom: 2px solid #673ab7; /* 紫色下划线 */
    padding-bottom: 5px;
    margin-top: 30px;
}

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

p {
    font-size: 1.1em;
    line-height: 1.7;
    margin-bottom: 15px;
    color: #d0d0d0; /* 更浅的灰色段落文字 */
}

ul, ol {
    margin-bottom: 20px;
    padding-left: 25px;
}

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

/* 代码块样式 */
pre {
    background-color: #263238; /* 深灰色代码背景 */
    color: #f8f8f2; /* 代码高亮颜色 */
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto; /* 水平滚动条在需要时显示 */
    font-size: 0.9em;
    line-height: 1.4;
    tab-size: 4;
    -webkit-overflow-scrolling: touch; /* iOS 滚动优化 */
    margin-bottom: 20px;
    white-space: pre-wrap; /* 代码换行 */
    word-wrap: break-word; /* 单词过长时换行 */
}

code {
    font-family: monospace, monospace;
    font-size: 1em;
}

/* 按钮样式 */
.button {
    display: inline-block;
    padding: 12px 25px;
    background: linear-gradient(to right, #ff9800, #f44336); /* 橙色到红色渐变按钮 */
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.button:hover {
    transform: translateY(-2px); /* 悬停时轻微上移 */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3); /* 悬停时阴影加深 */
}

/* 分割线样式 */
hr {
    border: 0;
    height: 1px;
    background: linear-gradient(to right, rgba(103,58,183,0), #673ab7, rgba(103,58,183,0)); /* 紫色渐变分割线 */
    margin: 30px 0;
}

/* 图片样式，用于示例图片 */
.sample-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 3px 7px rgba(0, 0, 0, 0.2);
    margin-bottom: 20px;
}

/* 卡片式布局，用于项目展示等 */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* 响应式列数 */
    gap: 25px;
}

.card {
    background-color: #26264d; /* 稍亮的深紫色卡片背景 */
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 5px 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 8px 20px rgba(0, 0, 0, 0.4); /* 悬停时阴影更深 */
}

.card h3 {
    margin-top: 0;
    color: #fff; /* 白色卡片标题 */
}

.card p {
    color: #e0e0e0; /* 浅灰色卡片段落 */
}

/* 示例数据展示区域样式 */
.example-data-section {
    background-color: #1f1f40; /* 稍暗的深紫色背景 */
    padding: 30px;
    border-radius: 10px;
    margin-top: 40px;
    margin-bottom: 40px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

.example-data-section h2 {
    color: #fff; /* 白色示例数据标题 */
    border-bottom-color: #9c27b0; /* 深紫色下划线 */
}

/* 自适应布局媒体查询 */
@media screen and (max-width: 768px) {
    .container {
        width: 95%;
        padding: 15px;
    }

    h1 {
        font-size: 2em;
        margin-top: 25px;
        margin-bottom: 30px;
    }

    h2 {
        font-size: 1.7em;
    }

    h3 {
        font-size: 1.4em;
    }

    p {
        font-size: 1em;
    }

    .card-grid {
        grid-template-columns: 1fr; /* 平板及以下设备卡片单列 */
    }

    .button {
        font-size: 0.9em;
        padding: 10px 20px;
    }
}

@media screen and (max-width: 480px) {
    h1 {
        font-size: 1.8em;
        margin-top: 20px;
        margin-bottom: 25px;
    }

    h2 {
        font-size: 1.5em;
    }

    h3 {
        font-size: 1.3em;
    }

    p {
        font-size: 0.95em;
    }
}

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

    h2 {
        font-size: 1.4em;
    }

    h3 {
        font-size: 1.2em;
    }
}
/* 额外视觉增强样式 - 几何图案背景 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: -1; /* 置于内容下方 */
    background-image: url('https://images.gptkong.com/demo/sample9.png'), url('https://images.gptkong.com/demo/sample10.png'); /* 叠加几何图案 */
    background-size: 20%, 15%; /* 调整图案大小 */
    background-position: top left, bottom right; /* 图案位置 */
    background-repeat: no-repeat, no-repeat; /* 防止图案重复 */
    opacity: 0.15; /* 降低背景图案的透明度 */
}

/*  按钮强调样式 */
.button-primary {
    background: linear-gradient(135deg, #00bcd4, #009688); /* 青色到蓝绿色渐变 */
}

.button-secondary {
    background: linear-gradient(135deg, #ffc107, #ff9800); /* 黄色到橙色渐变 */
}

/*  卡片标题增强样式 */
.card h3 {
    position: relative;
    padding-bottom: 10px;
}

.card h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background-color: #00bcd4; /* 青色装饰线 */
    border-radius: 1.5px;
}

/*  分隔线样式增强 */
hr.fancy-line {
    height: 2px;
    background: linear-gradient(to right, #673ab7, #9c27b0); /* 更鲜艳的紫色渐变 */
    margin: 40px 0;
    border-radius: 2px;
}

/*  图片圆角和边框 */
.sample-image.rounded-image {
    border-radius: 50%; /* 圆形图片 */
    border: 5px solid #4a148c; /* 深紫色边框 */
    padding: 5px;
    box-sizing: border-box;
}

