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

/* 页面背景与全局字体 */
body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #0A1F44, #6C5CE7);
    color: #FFFFFF;
    line-height: 1.6;
    padding: 20px;
}

/* 标题样式 */
h1, h2, h3 {
    font-family: 'Montserrat', sans-serif;
    color: #FFFFFF;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

h2 {
    font-size: 36px;
    margin-top: 40px;
    margin-bottom: 20px;
}

h3 {
    font-size: 28px;
    margin-top: 30px;
    margin-bottom: 15px;
}

/* 段落样式 */
p {
    font-size: 16px;
    margin-bottom: 20px;
    color: #B2BEC3;
}

/* 代码块样式 */
pre {
    background: #1E272E;
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 20px;
}

code {
    font-family: 'Courier New', Courier, monospace;
    color: #81ECEC;
}

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

th, td {
    border: 1px solid #6C5CE7;
    padding: 10px;
    text-align: left;
}

th {
    background-color: #38E54D;
    color: #0A1F44;
}

tr:nth-child(even) {
    background-color: #2C3A47;
}

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

li {
    margin-bottom: 10px;
}

/* 按钮样式 */
button, .button {
    background-color: #38E54D;
    color: #0A1F44;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    transition: transform 0.3s ease-in-out, background-color 0.3s ease-in-out;
}

button:hover, .button:hover {
    transform: scale(1.1);
    background-color: #2ecc71;
}

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

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

/* 响应式设计 */
@media (max-width: 320px) {
    body {
        padding: 10px;
    }
    h1 {
        font-size: 32px;
    }
    h2 {
        font-size: 24px;
    }
    h3 {
        font-size: 20px;
    }
    p, li, code {
        font-size: 14px;
    }
}

@media (max-width: 480px) and (min-width: 321px) {
    h1 {
        font-size: 36px;
    }
    h2 {
        font-size: 28px;
    }
    h3 {
        font-size: 22px;
    }
}

@media (max-width: 768px) and (min-width: 481px) {
    h1 {
        font-size: 40px;
    }
    h2 {
        font-size: 32px;
    }
    h3 {
        font-size: 24px;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    h1 {
        font-size: 44px;
    }
    h2 {
        font-size: 34px;
    }
    h3 {
        font-size: 26px;
    }
}

@media (max-width: 1200px) and (min-width: 1025px) {
    h1 {
        font-size: 46px;
    }
    h2 {
        font-size: 35px;
    }
    h3 {
        font-size: 27px;
    }
}

@media (min-width: 1440px) {
    h1 {
        font-size: 52px;
    }
    h2 {
        font-size: 38px;
    }
    h3 {
        font-size: 30px;
    }
}

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

/* 内部链接样式 */
a {
    color: #38E54D;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* 代码示例预览效果 */
.code-preview {
    background-color: #1E272E;
    padding: 10px;
    border-left: 4px solid #6C5CE7;
    margin-bottom: 20px;
    border-radius: 5px;
}

/* 提示样式 */
.note {
    background-color: #2C3A47;
    padding: 15px;
    border-left: 5px solid #38E54D;
    margin-top: 30px;
    border-radius: 5px;
}

/* 结束标注 */
.footer-note {
    text-align: center;
    margin-top: 40px;
    font-size: 18px;
    color: #B2BEC3;
}

