
/* 全局样式 */
body {
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #ffffff, #f0f8ff);
    color: #333333;
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    transition: background 0.5s ease;
}

/* 容器布局 */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 0;
}

/* 头部样式 */
header {
    text-align: center;
    padding: 50px 0;
    background: radial-gradient(circle, rgba(255,87,34,0.1), transparent);
    animation: aurora-move 15s linear infinite;
}

header h1 {
    font-size: 3rem;
    color: #0D47A1;
    margin-bottom: 20px;
    border-bottom: 2px solid #82B1FF;
    display: inline-block;
    padding-bottom: 10px;
}

header p {
    font-size: 1.2rem;
    color: #555555;
}

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

nav a {
    text-decoration: none;
    color: #333333;
    font-size: 1rem;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #82B1FF;
}

/* 主内容区 */
main {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

section {
    background: rgba(255, 255, 255, 0.8);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

article h2 {
    font-size: 2.5rem;
    color: #0D47A1;
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
}

article h3 {
    font-size: 2rem;
    color: #333333;
    margin-top: 30px;
    margin-bottom: 15px;
}

article h4 {
    font-size: 1.5rem;
    color: #555555;
    margin-top: 20px;
    margin-bottom: 10px;
}

article p {
    font-size: 1rem;
    color: #555555;
    margin-bottom: 15px;
}

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

article li {
    margin-bottom: 10px;
}

article pre {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    margin-bottom: 20px;
}

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

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

table, th, td {
    border: 1px solid #ddd;
}

th, td {
    padding: 10px;
    text-align: left;
}

th {
    background-color: #f2f2f2;
}

/* 示例展示样式 */
.example {
    background: linear-gradient(135deg, #ffffff, #e6f7ff);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.example h2 {
    font-size: 2rem;
    color: #333333;
    margin-bottom: 20px;
    text-align: center;
}

.example pre {
    background: #f0f8ff;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    margin-bottom: 20px;
}

.example code {
    font-family: 'Courier New', Courier, monospace;
    color: #0D47A1;
}

/* 按钮样式 */
button {
    background-color: #82B1FF;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease;
    margin-top: 10px;
}

button:hover {
    transform: scale(1.1);
    background-color: #69F0AE;
}

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

/* 提示信息样式 */
.footer-note {
    text-align: center;
    font-size: 1rem;
    color: #888888;
    margin-top: 40px;
}

/* 动画效果 */
@keyframes aurora-move {
    0% {
        background: radial-gradient(circle, rgba(255,87,34,0.1), transparent);
    }
    50% {
        background: radial-gradient(circle, rgba(255,87,34,0.3), transparent);
    }
    100% {
        background: radial-gradient(circle, rgba(255,87,34,0.1), transparent);
    }
}

/* 响应式设计 */
@media (max-width: 1440px) {
    header h1 {
        font-size: 2.5rem;
    }

    article h2 {
        font-size: 2rem;
    }
}

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

@media (max-width: 1024px) {
    nav {
        flex-direction: column;
        gap: 15px;
    }

    article h2 {
        font-size: 2rem;
    }

    article h3 {
        font-size: 1.8rem;
    }

    article h4 {
        font-size: 1.4rem;
    }

    button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }

    article h2 {
        font-size: 1.8rem;
    }

    article h3 {
        font-size: 1.6rem;
    }

    article h4 {
        font-size: 1.2rem;
    }

    nav a {
        font-size: 0.9rem;
    }

    .container {
        padding: 20px 0;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.5rem;
    }

    article h2 {
        font-size: 1.5rem;
    }

    article h3 {
        font-size: 1.4rem;
    }

    article h4 {
        font-size: 1rem;
    }

    nav a {
        font-size: 0.8rem;
    }

    button {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
}

@media (max-width: 320px) {
    header h1 {
        font-size: 1.2rem;
    }

    article h2 {
        font-size: 1.2rem;
    }

    article h3 {
        font-size: 1.2rem;
    }

    article h4 {
        font-size: 0.9rem;
    }

    nav a {
        font-size: 0.7rem;
    }

    button {
        padding: 6px 12px;
        font-size: 0.7rem;
    }
}

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

a:hover {
    text-decoration: underline;
}

/* 表单元素禁用样式 */
input, textarea, select, button {
    outline: none;
}

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

code {
    font-family: 'Source Code Pro', monospace;
    color: #d6336c;
}

/* 强调文本 */
strong {
    color: #82B1FF;
}

/* 表格响应 */
@media (max-width: 768px) {
    table, thead, tbody, th, td, tr {
        display: block;
    }

    th, td {
        padding: 10px;
        text-align: right;
        position: relative;
    }

    th::before, td::before {
        content: attr(data-label);
        position: absolute;
        left: 0;
        width: 50%;
        padding-left: 15px;
        font-weight: bold;
        text-align: left;
    }
}

