
/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto Mono', monospace;
    background: linear-gradient(135deg, #0A0C2B, #1F1E46);
    color: #FFFFFF;
    line-height: 1.6;
    padding: 20px;
}

/* 标题样式 */
h1, h2, h3, h4 {
    font-family: 'NeonFuture', sans-serif;
    text-shadow: 0px 0px 5px rgba(255, 255, 255, 0.5);
    margin-bottom: 20px;
}

h1 {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 40px;
}

h2 {
    font-size: 2em;
    color: #4B0082;
}

h3 {
    font-size: 1.75em;
    color: #9400D3;
}

h4 {
    font-size: 1.5em;
    color: #00FF7F;
}

/* 段落样式 */
p {
    margin-bottom: 20px;
    font-size: 1em;
    color: #FFFFFF;
}

/* 链接样式 */
a {
    color: #00FFFF;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #FF00FF;
}

/* 按钮样式 */
.button {
    background: #4B0082;
    color: #FFFFFF;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
    border-radius: 5px;
    font-size: 1em;
}

.button:hover {
    background: #9400D3;
    transform: scale(1.05);
}

/* 代码块样式 */
pre {
    background: #1F1E46;
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 20px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
}

code {
    color: #00FF7F;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9em;
}

/* 布局容器 */
.container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 40px;
}

.module {
    flex: 1 1 calc(33.33% - 20px);
    background: #282C37;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.module:hover {
    transform: translateY(-10px);
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.3);
}

/* 图像样式 */
img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
}

/* 导航菜单 */
.navbar {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
}

.navbar a {
    font-size: 1.1em;
    position: relative;
}

.navbar a::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 2px;
    background: #00FFFF;
    left: 0;
    bottom: -5px;
    transition: width 0.3s ease;
}

.navbar a:hover::after {
    width: 100%;
}

/* 视觉冲击元素 */
.parallax {
    height: 400px;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    margin-bottom: 40px;
}

.section1 {
    background-image: url('https://images.gptkong.com/demo/sample1.png');
}

.section2 {
    background-image: url('https://images.gptkong.com/demo/sample2.png');
}

/* 动画粒子效果 */
.particles {
    position: relative;
    width: 100%;
    height: 200px;
    background: transparent;
    overflow: hidden;
}

.particles::before,
.particles::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: move 10s linear infinite;
}

.particles::after {
    animation-direction: reverse;
}

@keyframes move {
    from { transform: translate(0, 0); }
    to { transform: translate(-50px, -50px); }
}

/* 响应式设计 */
@media (max-width: 1440px) {
    .module {
        flex: 1 1 calc(33.33% - 20px);
    }
}

@media (max-width: 1200px) {
    .module {
        flex: 1 1 calc(50% - 20px);
    }
}

@media (max-width: 1024px) {
    .container {
        flex-direction: column;
    }
    .module {
        flex: 1 1 100%;
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 15px;
    }

    .module {
        flex: 1 1 100%;
    }

    .button {
        width: 100%;
        padding: 15px;
    }
}

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

    h2 {
        font-size: 1.75em;
    }

    h3 {
        font-size: 1.5em;
    }

    h4 {
        font-size: 1.25em;
    }

    .navbar {
        gap: 10px;
    }
}

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

    h2 {
        font-size: 1.5em;
    }

    h3 {
        font-size: 1.25em;
    }

    h4 {
        font-size: 1em;
    }

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

/* 描述提示 */
.reference-note {
    text-align: center;
    font-size: 1em;
    margin-top: 40px;
    color: #FFD700;
}

/* 示例数据展示 */
.sample-data {
    background: #1F1E46;
    padding: 20px;
    border-radius: 8px;
    margin-top: 40px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
}

.sample-data h2 {
    text-align: center;
    margin-bottom: 20px;
}

.sample-data ul {
    list-style: disc inside;
}

.sample-data li {
    margin-bottom: 10px;
    font-size: 0.95em;
    color: #CCCCCC;
}

/* 代码块优化 */
pre code {
    display: block;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* 鼠标悬停动画 */
.hover-animate {
    position: relative;
    display: inline-block;
}

.hover-animate::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background: #00FFFF;
    left: 0;
    bottom: -5px;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.hover-animate:hover::after {
    transform: scaleX(1);
}

