
/* 全局样式 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    overflow-x: hidden;
}

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

/* 标题样式 */
h1, h2, h3, h4 {
    font-family: 'Orbitron', sans-serif;
    color: #ffffff;
    text-align: center;
    margin-bottom: 20px;
}

h1 {
    font-size: 3em;
    margin-top: 40px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
}

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

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

h4 {
    font-size: 1.2em;
    margin-top: 20px;
}

/* 段落样式 */
p {
    font-size: 1em;
    color: #f0f0f0;
    margin-bottom: 15px;
    text-align: justify;
}

/* 代码块样式 */
pre, code {
    background: rgba(0, 0, 0, 0.7);
    padding: 10px;
    border-radius: 5px;
    font-family: 'Courier New', Courier, monospace;
    color: #00ffcc;
    overflow-x: auto;
}

pre {
    margin-bottom: 20px;
}

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

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

/* 按钮样式 */
.button {
    display: inline-block;
    padding: 10px 20px;
    margin: 10px 0;
    border: none;
    background-color: #0074D9;
    color: #ffffff;
    font-size: 1em;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease;
    text-decoration: none;
}

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

/* 背景渐变 */
.background-gradient {
    background: linear-gradient(to bottom, #0074D9, #6a11cb);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: backgroundMove 15s linear infinite;
}

@keyframes backgroundMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 视差滚动 */
.parallax {
    background-image: url('https://images.gptkong.com/demo/sample1.png');
    height: 100vh;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
}

.parallax-content {
    background: rgba(0, 0, 0, 0.5);
    padding: 30px;
    border-radius: 10px;
    max-width: 800px;
    text-align: center;
}

/* 动态粒子效果 */
.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    background: transparent;
    top: 0;
    left: 0;
    z-index: -1;
    background: radial-gradient(circle, rgba(255,87,34,0.5), transparent);
    animation: auroraMove 15s linear infinite;
}

@keyframes auroraMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 响应式布局 */
@media (max-width: 1440px) {
    h1 {
        font-size: 2.5em;
    }

    h2 {
        font-size: 1.8em;
    }

    h3 {
        font-size: 1.3em;
    }

    h4 {
        font-size: 1em;
    }
}

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

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

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

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

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

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

    h2 {
        font-size: 1.5em;
    }

    .parallax-content {
        padding: 15px;
    }
}

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

    h2 {
        font-size: 1.2em;
    }

    .button {
        padding: 6px 12px;
        font-size: 0.8em;
    }
}

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

.image-gallery img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

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

/* AI 对话框样式 */
.ai-chatbox {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 300px;
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    display: none;
    z-index: 1000;
}

.ai-chatbox.active {
    display: block;
}

.ai-chatbox-header {
    background-color: #0074D9;
    color: #ffffff;
    padding: 10px;
    text-align: center;
    cursor: pointer;
}

.ai-chatbox-content {
    padding: 10px;
    max-height: 400px;
    overflow-y: auto;
}

.ai-chatbox input {
    width: 100%;
    padding: 8px;
    border: none;
    border-top: 1px solid #ccc;
    outline: none;
}

.ai-chatbox input::placeholder {
    color: #999;
}

/* 提示信息 */
.reference-note {
    text-align: center;
    font-size: 0.9em;
    color: #ffdd57;
    margin: 20px 0;
    font-style: italic;
}

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

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

/* 页脚样式 */
footer {
    background-color: rgba(0, 0, 0, 0.7);
    color: #cccccc;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
}


