
/* 全局样式设置 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(to top, #0D47A1, #8E24AA); /* 主色调渐变背景 */
    color: #FFFFFF;
    line-height: 1.6;
}

/* 文章内容样式 */
article {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 标题样式 */
h2, h3, h4 {
    font-family: 'Open Sans', sans-serif;
    color: #FFFFFF;
}

h2 {
    font-size: 24px;
    margin-top: 40px;
    margin-bottom: 20px;
}

h3 {
    font-size: 20px;
    margin-top: 30px;
    margin-bottom: 15px;
}

h4 {
    font-size: 18px;
    margin-top: 25px;
    margin-bottom: 10px;
}

/* 段落样式 */
p {
    font-size: 16px;
    margin-bottom: 15px;
}

/* 代码块样式 */
pre {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 20px;
}

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

/* 图片样式 */
img {
    width: 320px;
    height: 320px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin: 20px 0;
}

img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: background 0.5s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.8);
}

.navbar a {
    color: #FFFFFF;
    text-decoration: none;
    margin: 0 10px;
    font-size: 16px;
}

.navbar a:hover {
    text-decoration: underline;
}

/* 主容器样式 */
.container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    padding: 100px 50px 50px 50px; /* 顶部预留导航栏空间 */
}

/* 模块样式 */
.module {
    flex: 1 1 500px;
    margin: 20px;
    background: linear-gradient(45deg, #1E88E5, #00ACC1);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* 按钮样式 */
.cta-button {
    padding: 15px 30px;
    background: linear-gradient(45deg, #00ACC1, #1E88E5);
    border: none;
    border-radius: 25px;
    color: white;
    font-family: 'Roboto', sans-serif;
    cursor: pointer;
    transition: background 0.5s ease, transform 0.3s ease;
    font-size: 16px;
}

.cta-button:hover {
    background: linear-gradient(45deg, #1E88E5, #00ACC1);
    transform: scale(1.1);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        align-items: center;
    }

    .module {
        max-width: 90%;
    }

    h2 {
        font-size: 22px;
    }

    h3 {
        font-size: 18px;
    }

    h4 {
        font-size: 16px;
    }

    p {
        font-size: 15px;
    }

    .cta-button {
        width: 100%;
        text-align: center;
    }
}

/* 加载动画样式 */
.loader {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    border: 10px solid rgba(255, 255, 255, 0.2);
    border-top: 10px solid #8E24AA;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 2000;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loader.hide {
    display: none;
}

/* 星河流动背景效果 */
.star-river {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: url('https://images.gptkong.com/demo/sample1.png') repeat-x;
    animation: moveRiver 60s linear infinite;
    opacity: 0.3;
    z-index: 500;
}

@keyframes moveRiver {
    from { background-position: 0 0; }
    to { background-position: -10000px 0; }
}

/* 折叠区域样式 */
.collapsible {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    cursor: pointer;
    padding: 18px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 18px;
    transition: background 0.3s ease;
}

.active, .collapsible:hover {
    background: rgba(255, 255, 255, 0.2);
}

.content {
    padding: 0 18px;
    display: none;
    background: rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.content p {
    margin: 15px 0;
}

/* 提示文本样式 */
.prompt {
    text-align: center;
    font-size: 20px;
    margin: 40px 0;
    color: #FFD700;
    font-weight: bold;
}

