
/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 全局字体与背景 */
body {
    font-family: 'Poppins', '思源黑体', sans-serif;
    background: linear-gradient(135deg, #a1c4fd, #c2e9fb);
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background-size: cover;
    background-attachment: fixed;
}

/* 容器设置 */
.container {
    width: 100%;
    max-width: 1200px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    padding: 40px;
    margin: 20px 0;
    position: relative;
    overflow: hidden;
}

/* 标题样式 */
h1, h2, h3, h4 {
    font-family: 'Poppins', '思源黑体', sans-serif;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-align: center;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

h3 {
    font-size: 2rem;
    margin-bottom: 10px;
}

h4 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

/* 段落与列表 */
p {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #f0f0f0;
}

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

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

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

a::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: #00bfff;
    transition: width .3s;
}

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

/* 按钮样式 */
.button {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(45deg, #6a11cb, #2575fc);
    border: none;
    border-radius: 25px;
    color: #fff;
    cursor: pointer;
    transition: transform 0.3s ease, background 0.3s ease;
    text-align: center;
    text-decoration: none;
    font-size: 1rem;
}

.button:hover {
    transform: scale(1.05);
    background: linear-gradient(45deg, #2575fc, #6a11cb);
}

/* 卡片式模块 */
.module-card {
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 15px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 20px;
    margin-bottom: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.module-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.37);
}

/* 图片样式 */
.module-card img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 15px;
    object-fit: cover;
}

/* 代码块样式 */
pre {
    background: rgba(0, 0, 0, 0.6);
    padding: 15px;
    border-radius: 10px;
    overflow-x: auto;
    margin-bottom: 15px;
    font-family: 'Courier New', Courier, monospace;
    color: #f8f8f2;
}

code {
    font-size: 1rem;
}

/* 示例展示区域 */
.sample-display {
    background: rgba(0, 0, 0, 0.5);
    border-left: 5px solid #00bfff;
    padding: 20px;
    border-radius: 10px;
    margin-top: 40px;
}

.sample-display h2 {
    color: #00bfff;
    margin-bottom: 20px;
}

.sample-display .article-content {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.sample-display .article-content pre {
    background: rgba(30, 30, 30, 0.8);
    padding: 10px;
    border-radius: 5px;
}

/* 提示信息 */
.notice {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.3);
    padding: 10px 20px;
    border-radius: 20px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    color: #fff;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

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

.aurora {
    background: radial-gradient(circle, rgb(255, 87, 34), transparent);
    animation: aurora-move 15s linear infinite;
}

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

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

@media (max-width: 1024px) {
    .container {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    h2 {
        font-size: 2rem;
    }
    h3 {
        font-size: 1.75rem;
    }
    h4 {
        font-size: 1.25rem;
    }
    .module-card {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }
    h2 {
        font-size: 1.75rem;
    }
    h3 {
        font-size: 1.5rem;
    }
    h4 {
        font-size: 1rem;
    }
    .button {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}

@media (max-width: 320px) {
    .container {
        padding: 20px;
    }
    h1 {
        font-size: 1.75rem;
    }
    h2 {
        font-size: 1.5rem;
    }
    h3 {
        font-size: 1.25rem;
    }
    h4 {
        font-size: 0.9rem;
    }
    .button {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}

