
/* 全局样式设置 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Open Sans', sans-serif;
    background: linear-gradient(135deg, #1e3c72, #2a5298, #8e2de2);
    background-size: 2000px 100%;
    animation: backgroundMove 30s linear infinite;
    color: #333;
}

/* 背景动画关键帧 */
@keyframes backgroundMove {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

/* 容器设置 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 导航栏样式 */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.2);
    padding: 15px 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
}

.navbar a {
    color: #fff;
    text-decoration: none;
    margin: 0 15px;
    font-size: 16px;
    transition: color 0.3s ease;
    rel="nofollow"
}

.navbar a:hover {
    color: #f0f4f8;
}

/* 标题样式 */
h1, h2, h3, h4 {
    color: #f0f4f8;
    margin-top: 20px;
    margin-bottom: 10px;
}

h1 {
    font-size: 2.5em;
    text-align: center;
}

h2 {
    font-size: 2em;
    border-bottom: 2px solid #f0f4f8;
    padding-bottom: 5px;
}

h3 {
    font-size: 1.75em;
}

h4 {
    font-size: 1.5em;
}

/* 段落样式 */
p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* 链接样式 */
a {
    color: #4A90E2;
    text-decoration: none;
    rel="nofollow"
}

a:hover {
    text-decoration: underline;
}

/* 卡片样式 */
.card {
    background: rgba(240, 244, 248, 0.8);
    border-radius: 15px;
    box-shadow: 7px 7px 14px rgba(0,0,0,0.1), -7px -7px 14px rgba(255,255,255,0.7);
    padding: 20px;
    margin: 20px 0;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.card:hover {
    box-shadow: 10px 10px 20px rgba(0,0,0,0.15), -10px -10px 20px rgba(255,255,255,0.8);
    transform: translateY(-5px);
}

/* 图片样式 */
img.decorative {
    width: 100%;
    max-width: 320px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    alt: ""
}

img.decorative:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 12px rgba(0,0,0,0.2);
}

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

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

table th {
    background-color: #f0f4f8;
    color: #333;
}

pre {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 10px;
    overflow-x: auto;
}

/* 导航系统样式 */
.nav-chapters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}

.nav-chapters a {
    background: rgba(74, 144, 226, 0.8);
    color: #fff;
    padding: 10px 15px;
    border-radius: 20px;
    font-size: 14px;
    transition: background 0.3s ease;
    rel="nofollow"
}

.nav-chapters a:hover {
    background: #357ABD;
}

/* 脚注样式 */
.footer {
    text-align: center;
    padding: 20px;
    color: #f0f4f8;
    background: rgba(0, 0, 0, 0.5);
    position: fixed;
    width: 100%;
    bottom: 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
    }

    .nav-chapters {
        flex-direction: column;
        align-items: center;
    }

    h1 {
        font-size: 2em;
    }

    p {
        font-size: 14px;
    }
}

/* 提示信息样式 */
.prompt-message {
    background: rgba(255, 255, 255, 0.3);
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    font-size: 18px;
    color: #fff;
    margin: 20px 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.code-example {
    background: #2d2d2d;
    color: #f8f8f2;
    padding: 15px;
    border-radius: 10px;
    overflow-x: auto;
    font-family: 'Courier New', Courier, monospace;
    margin-bottom: 20px;
}

