
/* 重置与基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Open Sans', sans-serif;
    color: #FFFFFF;
    background: linear-gradient(135deg, #0A192F, #645CBB);
    background-size: 400% 400%;
    animation: aurora-move 15s linear infinite;
    min-height: 100vh;
    overflow-x: hidden;
    padding: 20px;
}
@keyframes aurora-move {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
/* 文字排版 */
h1, h2, h3 {
    font-family: 'Roboto', sans-serif;
    color: #FFFFFF;
}
h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}
h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}
h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}
p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 15px;
}
/* 容器 */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}
/* 网格布局 */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}
/* 卡片样式 */
.card {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, background-color 0.3s ease;
}
.card:hover {
    transform: scale(1.05);
    background-color: rgba(255, 255, 255, 0.2);
}
/* 按钮样式 */
button {
    position: relative;
    overflow: hidden;
    background-color: #645CBB;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}
button:hover {
    background-color: #5563AA;
}
button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.5s ease;
}
button:hover::before {
    width: 200px;
    height: 200px;
}
/* 代码块样式 */
pre {
    background-color: rgba(0, 0, 0, 0.7);
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    margin-bottom: 15px;
}
code {
    color: #FFD700;
}
/* 图片样式 */
img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}
/* 文章样式 */
.article {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    margin-bottom: 30px;
}
.article h2 {
    margin-bottom: 20px;
}
.article pre {
    background-color: rgba(0, 0, 0, 0.8);
    padding: 10px;
    border-radius: 5px;
    overflow-x: auto;
}
.article code {
    color: #FFD700;
}
/* 页脚样式 */
footer {
    text-align: center;
    padding: 20px 0;
    font-size: 0.9rem;
    color: #AAAAAA;
}
/* 响应式设计 */
@media (max-width: 1440px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }
}
@media (max-width: 1200px) {
    .container { width: 95%; }
}
@media (max-width: 1024px) {
    .grid { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
}
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.25rem; }
}
@media (max-width: 480px) {
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.1rem; }
}
@media (max-width: 320px) {
    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.25rem; }
    h3 { font-size: 1rem; }
}

