
/* 全局样式与页面基础设置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #032B44 0%, #AEE6E6 100%);
    color: #FFFFFF;
    line-height: 1.6;
    overflow-x: hidden;
    animation: aurora-move 15s linear infinite;
}
@keyframes aurora-move {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}
h1, h2, h3, h4 {
    font-weight: bold;
    opacity: 0.9;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}
p {
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}
a {
    color: #C7B8FF;
    text-decoration: none;
    transition: color 0.3s ease;
}
a:hover {
    color: #AEE6E6;
}
code, pre {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    padding: 0.5rem;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    display: block;
    white-space: pre-wrap;
    word-break: break-word;
}
pre {
    margin: 1rem 0;
    overflow-x: auto;
    max-width: 100%;
}

/* 导航栏设计 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(3, 43, 68, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
}
.navbar.scrolled {
    background: rgba(3, 43, 68, 1);
}
.navbar .logo {
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 2px;
}
.navbar .menu {
    display: flex;
    gap: 1.5rem;
}
.navbar .menu a {
    font-size: 1rem;
    position: relative;
}
.navbar .menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #C7B8FF;
    transition: width 0.3s ease;
}
.navbar .menu a:hover::after {
    width: 100%;
}

/* 卡片式模块布局 */
.card {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    padding: 1.5rem;
    margin: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}
.card img {
    max-width: 100%;
    border-radius: 10px;
    margin-bottom: 1rem;
}

/* 表格与按钮样式 */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}
th, td {
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.8rem;
    text-align: left;
}
th {
    background: rgba(199, 184, 255, 0.3);
}
button {
    background: #C7B8FF;
    color: #FFFFFF;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}
button:hover {
    background: #AEE6E6;
    transform: scale(1.05);
}

/* 响应式布局 */
@media (max-width: 768px) {
    .navbar .menu {
        flex-direction: column;
        align-items: flex-start;
    }
    .card {
        margin: 0.5rem;
        padding: 1rem;
    }
}

