
/* 全局样式 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    color: #F5F5F5;
    background: linear-gradient(135deg, #1C2541, #3B5DC9);
    overflow-x: hidden;
}

/* 动态星河背景 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: aurora-move 15s linear infinite;
    z-index: -1;
}

/* 动画效果 */
@keyframes aurora-move {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(-1000px);
    }
}

/* 头部样式 */
.header {
    background-color: rgba(245, 245, 245, 0.3);
    padding: 20px;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    color: #1C2541;
    border-bottom: 2px solid #FFA500;
}

.header h1 {
    font-family: 'Pacifico', cursive;
    font-size: 48px;
    margin: 0;
    color: #FFA500;
}

/* 主内容区 */
.main-content {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
    background-color: rgba(28, 37, 65, 0.8);
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

/* 文章样式 */
article {
    line-height: 1.6;
}

article h2 {
    font-family: 'Pacifico', cursive;
    font-size: 36px;
    color: #FFA500;
    margin-bottom: 20px;
    text-align: center;
}

article h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    color: #88C057;
    margin-top: 40px;
    margin-bottom: 15px;
}

article p {
    font-size: 16px;
    color: #F5F5F5;
    margin-bottom: 20px;
}

article pre {
    background-color: rgba(245, 245, 245, 0.3);
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    margin-bottom: 20px;
}

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

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

table th, table td {
    border: 1px solid #FFA500;
    padding: 10px;
    text-align: left;
    color: #F5F5F5;
}

table th {
    background-color: rgba(136, 192, 87, 0.7);
    font-family: 'Montserrat', sans-serif;
}

table tr:nth-child(even) {
    background-color: rgba(28, 37, 65, 0.6);
}

/* 按钮样式 */
.button {
    background-color: #88C057;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 16px;
}

.button:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

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

.image-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.image-gallery img {
    width: 320px;
    height: 320px;
    object-fit: cover;
}

/* 示例展示区 */
.sample-display {
    background-color: rgba(245, 245, 245, 0.3);
    padding: 20px;
    border-radius: 10px;
    margin-top: 40px;
}

.sample-display h2 {
    font-size: 24px;
    color: #FFA500;
    margin-bottom: 15px;
}

.sample-display p {
    font-size: 16px;
    color: #1C2541;
    margin-bottom: 10px;
}

.sample-display pre {
    background-color: #fff;
    color: #1C2541;
    padding: 10px;
    border-radius: 5px;
    overflow-x: auto;
}

/* 提示信息 */
.note {
    background-color: rgba(136, 192, 87, 0.7);
    color: #1C2541;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
    font-size: 18px;
    margin-top: 30px;
}

/* 响应式设计 */
@media (max-width: 1440px) {
    .header h1 {
        font-size: 42px;
    }
    article h2 {
        font-size: 32px;
    }
}

@media (max-width: 1200px) {
    .main-content {
        padding: 30px 15px;
    }
    .image-gallery {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 1024px) {
    article h3 {
        font-size: 24px;
    }
    article p, table th, table td {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 15px;
    }
    .header h1 {
        font-size: 36px;
    }
    article h2 {
        font-size: 28px;
    }
    .button {
        padding: 8px 16px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 28px;
    }
    article h2 {
        font-size: 24px;
    }
    .image-gallery img {
        width: 100%;
        height: auto;
    }
}

@media (max-width: 320px) {
    .header h1 {
        font-size: 24px;
    }
    article h2 {
        font-size: 20px;
    }
    .button {
        width: 100%;
        padding: 10px;
    }
}

