
/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 设置背景色与渐变效果 */
body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #1e005c, #6a00ff);
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 顶部导航栏样式 */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.7);
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}

header .logo {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: bold;
    color: #ff4081;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

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

nav ul li a:hover {
    color: #ff4081;
}

/* 主页主要内容区域 */
.main-content {
    padding-top: 100px;
    padding-left: 50px;
    padding-right: 50px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 50px;
}

/* 标题样式 */
.main-content h1,
.main-content h2,
.main-content h3 {
    font-family: 'Poppins', sans-serif;
    color: #ff4081;
    margin-bottom: 20px;
}

.main-content h1 {
    font-size: 2.5rem;
}

.main-content h2 {
    font-size: 2rem;
}

.main-content h3 {
    font-size: 1.5rem;
}

/* 段落样式 */
.main-content p {
    font-size: 1rem;
    margin-bottom: 20px;
    line-height: 1.8;
    color: #ffffff;
}

/* 列表样式 */
.main-content ul,
.main-content ol {
    margin-left: 20px;
    margin-bottom: 20px;
}

.main-content li {
    margin-bottom: 10px;
    color: #ffffff;
}

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

.main-content table, 
.main-content th, 
.main-content td {
    border: 1px solid #ffffff;
}

.main-content th,
.main-content td {
    padding: 10px;
    text-align: left;
    color: #ffffff;
}

.main-content pre {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    margin-bottom: 20px;
}

.main-content code {
    font-family: 'Courier New', monospace;
    color: #00ff99;
}

/* 按钮样式 */
.button {
    display: inline-block;
    padding: 10px 20px;
    background: #00ff99;
    color: #000000;
    text-decoration: none;
    border-radius: 5px;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.button:hover {
    background: #ff4081;
    transform: scale(1.1);
}

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

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

@keyframes auroraMove {
    0% {
        transform: translateY(0) translateX(0);
    }
    50% {
        transform: translateY(-50px) translateX(50px);
    }
    100% {
        transform: translateY(0) translateX(0);
    }
}

/* 响应式设计 */
@media (max-width: 1440px) {
    header {
        padding: 15px 30px;
    }

    .main-content {
        padding-left: 30px;
        padding-right: 30px;
    }

    .main-content h1 {
        font-size: 2.2rem;
    }

    .main-content h2 {
        font-size: 1.8rem;
    }

    .main-content h3 {
        font-size: 1.3rem;
    }
}

@media (max-width: 1200px) {
    header .logo {
        font-size: 1.3rem;
    }

    nav ul li a {
        font-size: 0.9rem;
    }
}

@media (max-width: 1024px) {
    .main-content {
        padding-left: 20px;
        padding-right: 20px;
    }

    nav ul {
        gap: 15px;
    }

    .main-content h1 {
        font-size: 2rem;
    }

    .main-content h2 {
        font-size: 1.6rem;
    }

    .main-content h3 {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: flex-start;
    }

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

    .main-content {
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (max-width: 480px) {
    header {
        padding: 10px 20px;
    }

    .main-content h1 {
        font-size: 1.8rem;
    }

    .main-content h2 {
        font-size: 1.4rem;
    }

    .main-content h3 {
        font-size: 1rem;
    }

    .main-content p,
    .main-content li,
    .main-content table,
    .main-content pre {
        font-size: 0.9rem;
    }
}

@media (max-width: 320px) {
    header {
        padding: 8px 15px;
    }

    .main-content h1 {
        font-size: 1.5rem;
    }

    .main-content h2 {
        font-size: 1.2rem;
    }

    .main-content h3 {
        font-size: 0.9rem;
    }

    nav ul li a {
        font-size: 0.8rem;
    }
}

/* 提示信息样式 */
.reference-note {
    background: rgba(0, 0, 0, 0.5);
    padding: 15px;
    border-radius: 5px;
    text-align: center;
    font-size: 1rem;
    color: #ffffff;
}

/* 固定提示标签 */
.fixed-note {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #ff4081;
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 0.9rem;
    color: #ffffff;
    z-index: 1000;
}

/* 代码示例预览效果 */
.code-preview {
    background: rgba(0, 0, 0, 0.8);
    padding: 20px;
    border-radius: 10px;
    overflow-x: auto;
}

.code-preview code {
    display: block;
    white-space: pre-wrap;
    word-break: break-all;
    color: #00ff99;
}

/* Hover 动画效果 */
.hover-animate:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

/* 视差滚动容器 */
.parallax-container {
    position: relative;
    height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
}

.parallax-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.layer-background {
    transform: translateZ(-1px) scale(2);
    background: url('https://images.gptkong.com/demo/sample1.png') no-repeat center center;
    background-size: cover;
}

.layer-foreground {
    transform: translateZ(0);
    background: url('https://images.gptkong.com/demo/sample2.png') no-repeat center center;
    background-size: contain;
}

/* 动态背景动画 */
.background-animation {
    background: rgba(255, 255, 255, 0.1);
    animation: fadeInOut 5s infinite;
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

/* 页脚样式 */
footer {
    background: rgba(0, 0, 0, 0.7);
    padding: 20px 50px;
    text-align: center;
    color: #ffffff;
    font-size: 0.9rem;
}

/* 图片响应式 */
.responsive-img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 20px;
}

