
/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background: linear-gradient(135deg, #0A2463, #3C0D8F);
    background-attachment: fixed;
    animation: backgroundAnimation 15s linear infinite;
    padding: 20px;
}

/* 背景动画 */
@keyframes backgroundAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    backdrop-filter: blur(8.5px);
    -webkit-backdrop-filter: blur(8.5px);
}

/* 标题样式 */
h1, h2, h3, h4, h5, h6 {
    color: #FFD700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

h1 {
    font-size: 2.5rem;
    text-align: center;
    margin-top: 20px;
}

h2 {
    font-size: 2rem;
    border-bottom: 2px solid #FFD700;
    padding-bottom: 10px;
}

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

h4 {
    font-size: 1.5rem;
    margin-top: 25px;
}

/* 段落样式 */
p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #E0FFFF;
}

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

a:hover {
    text-decoration: underline;
}

/* 代码块样式 */
pre, code {
    background: rgba(255, 255, 255, 0.2);
    padding: 10px;
    border-radius: 8px;
    font-family: 'Courier New', Courier, monospace;
    color: #00FF99;
    overflow-x: auto;
}

pre {
    margin-bottom: 20px;
}

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

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

th {
    background: #3C0D8F;
}

tr:nth-child(even) {
    background: rgba(0, 255, 153, 0.1);
}

/* 列表样式 */
ul {
    list-style-type: disc;
    margin-left: 20px;
    margin-bottom: 20px;
}

li {
    margin-bottom: 10px;
    color: #ADFF2F;
}

/* 模块化卡片样式 */
.module-card {
    background: linear-gradient(to bottom, #0A2463, #3C0D8F);
    border-radius: 15px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    padding: 20px;
    margin: 20px 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.module-card:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.5);
}

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

/* 表格内嵌图片 */
table img {
    max-width: 100%;
    height: auto;
}

/* 按钮样式 */
button, .button {
    background: #FFD700;
    color: #0A2463;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s ease, transform 0.3s ease;
}

button:hover, .button:hover {
    background: #FFA500;
    transform: translateY(-3px);
}

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

nav a {
    margin: 0 15px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    transition: background 0.3s ease;
}

nav a:hover {
    background: rgba(255, 255, 255, 0.4);
}

/* 响应式设计 */

/* 小尺寸手机 (320px) */
@media (max-width: 320px) {
    h1 {
        font-size: 2rem;
    }
    h2 {
        font-size: 1.5rem;
    }
    p, li {
        font-size: 1rem;
    }
    .container {
        padding: 10px;
    }
}

/* 大尺寸手机 (480px) */
@media (min-width: 321px) and (max-width: 480px) {
    h1 {
        font-size: 2.2rem;
    }
    h2 {
        font-size: 1.6rem;
    }
    p, li {
        font-size: 1.05rem;
    }
}

/* 竖屏平板 (768px) */
@media (min-width: 481px) and (max-width: 768px) {
    .container {
        padding: 15px;
    }
    h1 {
        font-size: 2.3rem;
    }
    h2 {
        font-size: 1.8rem;
    }
}

/* 中等屏幕 (1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        padding: 20px 30px;
    }
    h1 {
        font-size: 2.5rem;
    }
    h2 {
        font-size: 2rem;
    }
}

/* 桌面显示器 (1200px) */
@media (min-width: 1025px) and (max-width: 1440px) {
    .container {
        padding: 30px 50px;
    }
    h1 {
        font-size: 3rem;
    }
    h2 {
        font-size: 2.2rem;
    }
}

/* 大尺寸桌面显示器 (1440px及以上) */
@media (min-width: 1441px) {
    .container {
        padding: 40px 60px;
    }
    h1 {
        font-size: 3.5rem;
    }
    h2 {
        font-size: 2.5rem;
    }
}

/* 文章样式 */
article {
    margin-bottom: 40px;
}

article pre {
    background: rgba(0, 255, 153, 0.2);
    padding: 15px;
    border-radius: 10px;
    overflow-x: auto;
}

.article-image {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.article-image img {
    width: calc(33.333% - 10px);
}

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

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

/* 提示信息样式 */
.footer-note {
    text-align: center;
    font-size: 1rem;
    color: #ADFF2F;
    margin-top: 30px;
    padding: 10px;
    background: rgba(255, 215, 0, 0.2);
    border-radius: 10px;
}

