
/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #000046, #292e49);
    color: #ecf0f1;
    line-height: 1.6;
    padding: 20px;
    min-height: 100vh;
    overflow-x: hidden;
}
h1, h2, h3 {
    font-family: 'Montserrat', sans-serif;
    color: #6dd5ed;
}
p, li, a {
    color: #bdc3c7;
}
a {
    text-decoration: none;
    transition: color 0.3s ease;
}
a:hover {
    color: #6dd5ed;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}
img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}
code {
    background: rgba(255, 255, 255, 0.1);
    padding: 5px 10px;
    border-radius: 4px;
    font-family: 'Courier New', Courier, monospace;
    color: #6dd5ed;
}
pre {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
}
button {
    background: linear-gradient(135deg, #6dd5ed, #292e49);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    transition: transform 0.3s ease;
}
button:hover {
    transform: scale(1.1);
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 70, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    z-index: 1000;
}
.navbar .logo {
    font-size: 24px;
    font-weight: bold;
    color: #6dd5ed;
}
.navbar .menu {
    display: flex;
    gap: 20px;
}
.navbar .menu a {
    position: relative;
    color: #ecf0f1;
}
.navbar .menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #6dd5ed;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}
.navbar .menu a:hover::after {
    transform: scaleX(1);
}

/* 模块化设计 */
.module {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}
.module:hover {
    transform: translateY(-5px);
}
.module h3 {
    margin-bottom: 10px;
}
.module p {
    margin-bottom: 15px;
}

/* 动画效果 */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}
.fade-in.active {
    opacity: 1;
    transform: translateY(0);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }
    .container {
        grid-template-columns: 1fr;
    }
    h1 {
        font-size: 24px;
    }
    pre {
        font-size: 14px;
    }
}

