
/* 全局样式设置 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Open Sans', sans-serif;
    background: linear-gradient(135deg, #F0F4F8, #B3CDE0);
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

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

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255,87,34,0.3), transparent);
    animation: aurora-move 15s linear infinite;
    z-index: -1;
}

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

/* 头部样式 */
header {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 30px;
}

header h1 {
    font-family: 'Roboto', sans-serif;
    font-size: 2.5em;
    color: #9C27B0;
}

/* 导航栏样式 */
.navbar {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

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

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

/* 主要内容区域 */
main {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

/* 文章展示区 */
.article {
    flex: 2;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 20px;
}

.article h2, .article h3 {
    font-family: 'Roboto', sans-serif;
    color: #FFA726;
}

.article pre {
    background: rgba(0, 0, 0, 0.1);
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
}

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

/* 示例展示区 */
.sample-display {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 20px;
}

.sample-display h2 {
    font-family: 'Roboto', sans-serif;
    color: #9C27B0;
    text-align: center;
}

.sample-display ul {
    list-style: none;
    padding: 0;
}

.sample-display li {
    background: rgba(255, 255, 255, 0.2);
    margin: 10px 0;
    padding: 10px;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.sample-display li:hover {
    background: rgba(255, 255, 255, 0.3);
}

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

.image-gallery img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

/* 代码块样式 */
.code-block {
    background: rgba(0, 0, 0, 0.05);
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    font-family: 'Courier New', Courier, monospace;
    color: #333;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #B3CDE0;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    position: relative;
    transition: background-color 0.3s ease;
    text-decoration: none;
}

.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 5px;
}

.btn:hover::after {
    opacity: 1;
}

/* 底部样式 */
footer {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    margin-top: 30px;
}

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

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

@media (max-width: 1024px) {
    main {
        flex-direction: column;
    }

    .sample-display {
        order: -1;
    }
}

@media (max-width: 768px) {
    header h1 {
        font-size: 2em;
    }

    .navbar {
        flex-direction: column;
        align-items: center;
    }

    .article, .sample-display {
        flex: 1 1 100%;
    }
}

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

    .navbar a {
        font-size: 1em;
    }

    .btn {
        padding: 8px 16px;
    }
}

@media (max-width: 320px) {
    .article h2, .article h3, .sample-display h2 {
        font-size: 1.2em;
    }

    .btn {
        padding: 6px 12px;
        font-size: 0.9em;
    }
}

/* 提示信息样式 */
.reference-note {
    text-align: center;
    font-style: italic;
    color: #666;
    margin-top: 20px;
}

