
/* 全局样式 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(135deg, #E0F7FA, #C8E6C9);
    color: #333;
    line-height: 1.6;
}

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

/* 头部样式 */
header {
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8), transparent);
    padding: 40px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    background: url('https://images.gptkong.com/demo/sample1.png') no-repeat center center;
    background-size: cover;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.3;
}

header h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 48px;
    color: #2E7D32;
    z-index: 1;
    position: relative;
}

header p {
    font-size: 18px;
    color: #1B5E20;
    z-index: 1;
    position: relative;
}

/* 导航栏 */
nav {
    background: rgba(255, 255, 255, 0.9);
    padding: 15px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

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

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    text-decoration: none;
    color: #2E7D32;
    font-size: 16px;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #66BB6A;
}

/* 主体内容 */
main {
    padding: 40px 0;
}

article {
    background: rgba(255, 255, 255, 0.85);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

article h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 32px;
    color: #2E7D32;
    margin-bottom: 20px;
}

article h3, article h4 {
    font-family: 'Montserrat', sans-serif;
    color: #388E3C;
    margin-top: 30px;
    margin-bottom: 15px;
}

article p {
    font-size: 16px;
    color: #424242;
    margin-bottom: 15px;
}

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

article code {
    font-family: 'Courier New', Courier, monospace;
    color: #1B5E20;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

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

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

th {
    background: #AED581;
    color: #1B5E20;
}

ul {
    list-style: disc inside;
    margin-bottom: 20px;
}

ul li {
    margin-bottom: 10px;
    color: #388E3C;
}

/* 示例展示区 */
.example-section {
    margin-top: 50px;
    padding: 30px;
    background: linear-gradient(45deg, #A5D6A7, #81C784);
    border-radius: 10px;
}

.example-section h2 {
    color: #2E7D32;
    font-size: 28px;
    margin-bottom: 20px;
}

.example-section pre {
    background: #E8F5E9;
    padding: 20px;
    border-radius: 5px;
    overflow: auto;
    font-size: 14px;
}

.example-section code {
    color: #1B5E20;
}

/* 图片展示 */
.image-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 30px;
}

.image-gallery img {
    width: calc(25% - 15px);
    border-radius: 5px;
    transition: transform 0.3s ease;
}

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

@media (max-width: 1200px) {
    .image-gallery img {
        width: calc(33.333% - 15px);
    }
}

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

    nav ul li {
        margin: 10px 0;
    }

    .image-gallery img {
        width: calc(50% - 15px);
    }
}

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

    header p {
        font-size: 16px;
    }

    nav ul li a {
        font-size: 14px;
    }

    article h2 {
        font-size: 24px;
    }

    article h3, article h4 {
        font-size: 20px;
    }

    .image-gallery img {
        width: 100%;
    }
}

/* 动画效果 */
@keyframes aurora-move {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

header {
    animation: aurora-move 15s linear infinite;
}

.hover-effect {
    transition: transform 0.3s ease-in-out;
}

.hover-effect:hover {
    transform: scale(1.1);
}

/* 提示信息 */
.reference-note {
    text-align: center;
    padding: 20px;
    background: rgba(255, 235, 59, 0.2);
    color: #F9A825;
    font-size: 18px;
    border-radius: 5px;
    margin-top: 40px;
}

