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

body {
    font-family: 'Inter', sans-serif;
    background-color: #F5F5F5;
    color: #333;
    line-height: 1.6;
}

/* 渐变背景动画 */
@keyframes aurora-move {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

body {
    background: linear-gradient(135deg, #4A90E2, #673AB7);
    animation: aurora-move 15s linear infinite;
    padding: 20px;
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(245, 245, 245, 0.9);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 1000;
}

.navbar ul {
    list-style: none;
    display: flex;
    justify-content: center;
    padding: 10px 0;
}

.navbar li {
    margin: 0 15px;
}

.navbar a {
    text-decoration: none;
    color: #4A90E2;
    font-weight: bold;
    transition: color 0.3s;
}

.navbar a:hover {
    color: #FF6F61;
}

/* 主内容区 */
.container {
    max-width: 1200px;
    margin: 100px auto 50px;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
}

.main-content {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.sidebar {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

h1, h2, h3, h4 {
    font-family: 'Roboto Mono', monospace;
    color: #4A90E2;
    margin-bottom: 20px;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

p {
    margin-bottom: 20px;
}

pre {
    background: #f0f0f0;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
}

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

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

table, th, td {
    border: 1px solid #ddd;
}

th, td {
    padding: 12px;
    text-align: left;
}

th {
    background-color: #4A90E2;
    color: white;
}

/* 按钮样式 */
button {
    background-color: #FF6F61;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
}

button:hover {
    transform: scale(1.1);
}

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

/* 卡片式展示 */
.card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    padding: 20px;
    margin-bottom: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 6px 8px rgba(0,0,0,0.15);
}

/* 固定提示 */
.reference-note {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #FF6F61;
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    font-weight: bold;
}

/* 响应式设计 */
@media (max-width: 1440px) {
    .container {
        max-width: 1100px;
    }
}

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

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

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

    .navbar li {
        margin: 10px 0;
    }
}

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

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 320px) {
    .container {
        padding: 10px;
    }

    button {
        width: 100%;
    }

    .sidebar {
        margin-top: 20px;
    }
}

/* 代码块高亮 */
pre code {
    display: block;
    white-space: pre-wrap;
    word-wrap: break-word;
    background: #272822;
    color: #f8f8f2;
    padding: 15px;
    border-radius: 5px;
    font-size: 14px;
}

/* 导航条链接 */
a {
    color: #4A90E2;
    text-decoration: none;
}

a:hover {
    color: #FF6F61;
}

/* 视差效果 */
.parallax {
    background: url('https://images.gptkong.com/demo/sample1.png') no-repeat center center;
    background-attachment: fixed;
    background-size: cover;
    height: 400px;
    border-radius: 8px;
    margin-bottom: 40px;
}

/* 粒子动画 */
.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: -1;
}

