
/* 全局样式 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #87CEFA, #6495ED);
    color: #333;
    line-height: 1.6;
    transition: background 0.5s ease;
}

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

/* 头部样式 */
header {
    text-align: center;
    padding: 50px 0;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

header h1 {
    font-size: 2.5em;
    color: #fff;
    margin-bottom: 10px;
    background: linear-gradient(90deg, #ff758c, #ff7eb3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

header p {
    font-size: 1.2em;
    color: #f0f0f0;
}

/* 导航栏 */
nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

nav a {
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: #fff;
    left: 0;
    bottom: -5px;
    transition: width 0.3s;
}

nav a:hover::after {
    width: 100%;
}

nav a:hover {
    color: #ff7eb3;
}

/* 主内容区 */
main {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 50px;
}

/* 文章内容 */
.article {
    flex: 2;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.article h2, .article h3, .article h4 {
    color: #fff;
}

.article p {
    color: #e0e0e0;
}

.article ul, .article table {
    margin: 20px 0;
}

.article table {
    width: 100%;
    border-collapse: collapse;
}

.article table, .article th, .article td {
    border: 1px solid #fff;
}

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

.article pre {
    background: #2d2d2d;
    color: #f8f8f2;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
}

/* 示例展示 */
.example {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.example h2 {
    color: #ff7eb3;
    text-align: center;
}

.example p {
    color: #e0e0e0;
}

.example img {
    width: 100%;
    border-radius: 10px;
    margin: 10px 0;
    transition: transform 0.3s ease;
}

.example img:hover {
    transform: scale(1.05);
}

.example pre {
    background: #2d2d2d;
    color: #f8f8f2;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    margin-top: 10px;
}

/* 页脚 */
footer {
    text-align: center;
    padding: 20px 0;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    color: #fff;
}

/* 按钮样式 */
button, .cta-button {
    background-color: #87CEFA;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

button:hover, .cta-button:hover {
    background-color: #6495ED;
    transform: scale(1.05);
}

/* 响应式设计 */
@media (max-width: 1440px) {
    header h1 {
        font-size: 2.2em;
    }
}

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

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

@media (max-width: 768px) {
    header {
        padding: 30px 0;
    }

    .article, .example {
        padding: 15px;
    }
}

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

    nav a {
        font-size: 0.9em;
    }

    .article h2, .example h2 {
        font-size: 1.5em;
    }
}

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

    nav a {
        font-size: 0.8em;
    }

    .article p, .example p {
        font-size: 0.9em;
    }
}

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

body {
    background: radial-gradient(circle, rgba(255, 87, 34, 0.5), transparent), linear-gradient(135deg, #87CEFA, #6495ED);
    background-size: 400% 400%;
    animation: aurora-move 15s linear infinite;
}

/* 链接样式 */
a {
    color: #ff7eb3;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* 图片样式 */
.image-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.image-gallery img {
    width: calc(33.333% - 10px);
    border-radius: 5px;
}

@media (max-width: 768px) {
    .image-gallery img {
        width: calc(50% - 10px);
    }
}

@media (max-width: 480px) {
    .image-gallery img {
        width: 100%;
    }
}

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

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

th {
    background-color: rgba(135, 206, 250, 0.2);
    color: #fff;
}

tr:hover {
    background-color: rgba(135, 206, 250, 0.1);
}

