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

/* 引入字体 */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

/* 全局样式 */
body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #004AAD, #6F2EBD, #FFA500);
    background-size: 600% 600%;
    animation: gradientAnimation 15s ease infinite;
    padding: 20px;
}

/* 渐变动画 */
@keyframes gradientAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 容器布局 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.9);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

/* 标题样式 */
h1, h2, h3 {
    font-weight: bold;
    color: #FFA500;
    margin-bottom: 20px;
}

h1 {
    font-size: 3rem;
    text-align: center;
}

h2 {
    font-size: 2.5rem;
    margin-top: 40px;
}

h3 {
    font-size: 1.8rem;
    margin-top: 30px;
}

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

/* 代码块样式 */
pre {
    background: #f4f4f4;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    margin-bottom: 20px;
}

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

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

th, td {
    padding: 12px;
    border: 1px solid #ddd;
    text-align: left;
}

th {
    background-color: #FFA500;
    color: #fff;
}

tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* 按钮样式 */
.button {
    display: inline-block;
    background: #004AAD;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    transition: background 0.3s ease, color 0.3s ease;
    cursor: pointer;
    text-decoration: none;
}

.button:hover {
    background: #FFA500;
    color: #004AAD;
}

/* 导航栏样式 */
nav {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    padding: 15px 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: background 0.3s ease;
}

nav.scrolled {
    background: rgba(249, 249, 249, 0.95);
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

/* 主视觉区样式 */
.banner {
    position: relative;
    height: 400px;
    background: linear-gradient(135deg, #004AAD, #6F2EBD, #FFA500);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    margin-bottom: 40px;
    animation: bannerMove 15s linear infinite;
}

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

.banner h1 {
    font-size: 3.5rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
}

/* 内容区样式 */
.content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.content .text, .content .image {
    position: relative;
}

.content .image::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    width: calc(100% + 20px);
    height: calc(100% + 20px);
    border: 2px solid #FFA500;
    border-radius: 10px;
}

.content img {
    width: 100%;
    border-radius: 10px;
}

/* 示例展示区样式 */
.example-section {
    background: rgba(0, 0, 0, 0.05);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 40px;
}

.example-section h2 {
    font-size: 2rem;
    color: #004AAD;
    margin-bottom: 20px;
}

.example-section pre {
    background: #e8e8e8;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
}

.example-section p {
    margin-bottom: 15px;
}

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

    .banner h1 {
        font-size: 3rem;
    }

    .content {
        grid-template-columns: 1fr 1fr;
    }
}

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

    .banner {
        height: 300px;
    }

    .banner h1 {
        font-size: 2.5rem;
    }

    .content {
        grid-template-columns: 1fr;
    }

    nav ul {
        flex-direction: column;
    }

    nav ul li {
        margin: 10px 0;
    }
}

@media (max-width: 1024px) {
    .banner {
        height: 250px;
    }

    .banner h1 {
        font-size: 2rem;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    body {
        padding: 15px;
    }

    .banner {
        height: 200px;
    }

    .banner h1 {
        font-size: 1.8rem;
    }

    .content {
        grid-template-columns: 1fr;
    }
}

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

    h2 {
        font-size: 1.8rem;
    }

    h3 {
        font-size: 1.3rem;
    }

    .banner {
        height: 150px;
    }

    nav ul li {
        margin: 5px 0;
    }
}

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

    .banner {
        height: 120px;
    }

    .banner h1 {
        font-size: 1.5rem;
    }

    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.1rem;
    }
}

/* 动画效果 */
.fade-in {
    animation: fadeIn 2s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.slide-up {
    animation: slideUp 1s ease-in-out;
}

@keyframes slideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* 装饰性图形 */
.decorative-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.gptkong.com/demo/sample1.png') repeat;
    opacity: 0.1;
    pointer-events: none;
}

/* 提示文本样式 */
.reference-note {
    text-align: center;
    font-size: 1rem;
    color: #555;
    margin-top: 20px;
}


