
/* 全局样式 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, rgba(173, 216, 230, 0.3), rgba(147, 112, 219, 0.3));
    backdrop-filter: blur(10px);
    color: #fff;
    transition: background 0.5s ease;
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

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

.navbar a:hover {
    color: #6A5ACD;
}

/* 主容器样式 */
.container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 40px;
    padding: 100px 50px 50px 50px;
}

/* 模块样式 */
.module {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 30px;
    transition: transform 0.3s ease, background 0.3s ease;
}

.module:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.25);
}

/* 标题样式 */
h2, h3, h4 {
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

h2 {
    font-size: 24px;
    margin-bottom: 20px;
}

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

h4 {
    font-size: 18px;
    margin-top: 15px;
    margin-bottom: 10px;
}

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

/* 代码块样式 */
pre {
    background: rgba(0, 0, 0, 0.6);
    padding: 15px;
    border-radius: 10px;
    overflow: auto;
    margin-bottom: 15px;
}

code {
    color: #00FFFF;
    font-family: 'Courier New', Courier, monospace;
}

/* 按钮样式 */
.button {
    background: rgba(255, 255, 255, 0.25);
    border: none;
    border-radius: 10px;
    padding: 10px 20px;
    color: #fff;
    cursor: pointer;
    transition: transform 0.3s ease, background 0.3s ease;
    font-size: 16px;
}

.button:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.35);
}

/* 图片样式 */
img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

img:hover {
    transform: scale(1.05);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
        padding: 100px 20px 20px 20px;
    }

    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .navbar a {
        margin: 10px 0;
    }
}

/* 滚动效果 */
body {
    scroll-behavior: smooth;
}

/* 点缀色 */
.highlight {
    color: #FFA500;
}

/* 过渡动画 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.module {
    animation: fadeIn 1s ease-in-out;
}

/* 样式提示 */
.reference {
    position: fixed;
    bottom: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    border-radius: 20px;
    backdrop-filter: blur(5px);
    font-size: 14px;
    color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.reference:hover {
    background: rgba(255, 255, 255, 0.3);
}

