
/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 全局字体与背景 */
body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #0C1B2D, #1E2738);
    color: #FFFFFF;
    line-height: 1.6;
    overflow-x: hidden;
}

/* 主要容器 */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 0;
}

/* 头部样式 */
header {
    text-align: center;
    padding: 50px 0;
    background: linear-gradient(135deg, #1E2738, #0C1B2D);
    border-bottom: 2px solid #3F51B5;
}

header h1 {
    font-family: 'Futura', sans-serif;
    font-size: 2.5em;
    color: #3F51B5;
    margin-bottom: 10px;
}

header p {
    font-size: 1.2em;
    color: #B0BEC5;
}

/* 导航栏（如果需要未来可扩展） */
nav {
    margin-top: 20px;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 30px;
}

nav ul li a {
    text-decoration: none;
    color: #FFFFFF;
    font-size: 1em;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #3F51B5;
}

/* 主内容区 */
main {
    padding: 40px 0;
    position: relative;
}

/* 示例数据展示区 */
.example-data {
    background: rgba(30, 39, 56, 0.8);
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 40px;
    position: relative;
}

.example-data::before {
    content: "示例数据展示";
    position: absolute;
    top: -20px;
    left: 20px;
    background: #3F51B5;
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: bold;
}

/* 文章内容 */
article {
    background: rgba(30, 39, 56, 0.9);
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 40px;
}

article h2 {
    font-family: 'Futura', sans-serif;
    font-size: 2em;
    color: #3F51B5;
    margin-bottom: 20px;
}

article h3 {
    font-family: 'Futura', sans-serif;
    font-size: 1.5em;
    color: #81D4FA;
    margin: 20px 0;
}

article h4 {
    font-family: 'Futura', sans-serif;
    font-size: 1.2em;
    color: #4FC3F7;
    margin: 15px 0;
}

article p {
    margin-bottom: 15px;
    color: #CFD8DC;
}

article pre {
    background: #263238;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    margin-bottom: 15px;
}

article code {
    color: #FFAB00;
    font-family: 'Courier New', Courier, monospace;
}

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

article table, article th, article td {
    border: 1px solid #3F51B5;
}

article th, article td {
    padding: 10px;
    text-align: left;
    color: #FFFFFF;
}

article th {
    background: #3F51B5;
}

article td code {
    color: #FFAB00;
}

/* 列表样式 */
article ul {
    list-style: disc inside;
    margin-bottom: 20px;
}

article li {
    margin-bottom: 10px;
    color: #CFD8DC;
}

/* 按钮样式 */
.button {
    background-color: #3F51B5;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.button:hover {
    background-color: #2196F3;
    transform: scale(1.1);
}

/* 图片样式 */
.image-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}

.image-gallery img {
    width: 100%;
    max-width: 150px;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

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

/* 提示信息 */
.notice {
    text-align: center;
    font-size: 1em;
    color: #FF5722;
    margin-top: 20px;
}

/* 响应式设计 */
@media (max-width: 1440px) {
    header h1 {
        font-size: 2.2em;
    }

    article h2 {
        font-size: 1.8em;
    }
}

@media (max-width: 1200px) {
    .container {
        width: 95%;
    }

    .image-gallery img {
        max-width: 120px;
    }
}

@media (max-width: 1024px) {
    .grid-container {
        grid-template-columns: repeat(2, 1fr);
    }

    article h2 {
        font-size: 1.6em;
    }
}

@media (max-width: 768px) {
    header {
        padding: 30px 0;
    }

    header h1 {
        font-size: 2em;
    }

    nav ul {
        flex-direction: column;
        gap: 15px;
    }

    .grid-container {
        grid-template-columns: 1fr;
    }

    .image-gallery {
        justify-content: center;
    }
}

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

    article h2 {
        font-size: 1.4em;
    }

    .button {
        padding: 8px 16px;
    }

    .image-gallery img {
        max-width: 100px;
    }
}

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

    article h2 {
        font-size: 1.2em;
    }

    .button {
        padding: 6px 12px;
    }

    .image-gallery img {
        max-width: 80px;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

article, .example-data {
    animation: fadeIn 1s ease-in-out;
}

/* 粒子背景（使用伪元素） */
body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://images.gptkong.com/demo/sample1.png'), url('https://images.gptkong.com/demo/sample2.png'), url('https://images.gptkong.com/demo/sample3.png');
    background-size: 50px 50px;
    background-repeat: repeat;
    opacity: 0.1;
    z-index: -1;
    animation: moveBackground 20s linear infinite;
}

@keyframes moveBackground {
    0% { background-position: 0 0, 100px 100px, 200px 200px; }
    100% { background-position: 1000px 1000px, 1100px 1100px, 1200px 1200px; }
}

/* 代码块样式 */
pre {
    background: #263238;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
}

code {
    color: #FFAB00;
    font-family: 'Courier New', Courier, monospace;
}

/* 链接样式 */
a {
    color: #81D4FA;
    text-decoration: none;
}

a:hover {
    color: #4FC3F7;
    text-decoration: underline;
}

