
/* 整体页面样式设置 */
/* 设置全局字体及基础样式 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif; /* 使用Roboto字体 */
    background: linear-gradient(135deg, #1E90FF 70%, #32CD32 25%, #FF8C00 5%); /* 主色、辅色、点缀色渐变背景 */
    color: #333;
    line-height: 1.6;
}

/* 固定顶部导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(30, 144, 255, 0.9); /* 道奇蓝半透明背景 */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: box-shadow 0.3s ease;
}

.navbar.scrolled {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.navbar ul {
    list-style: none;
    display: flex;
    justify-content: center;
    padding: 15px 0;
    margin: 0;
}

.navbar ul li {
    margin: 0 20px;
}

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

.navbar ul li a:hover {
    color: #FF8C00; /* 点缀色悬停效果 */
}

/* 主内容区样式 */
.container {
    max-width: 1200px;
    margin: 100px auto 50px auto; /* 留出导航栏空间 */
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

/* 卡片式设计 */
.card {
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.card img {
    width: 100%;
    height: auto;
    border-bottom: 2px solid #32CD32; /* 辅助色边框 */
    transition: transform 0.3s ease;
}

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

.card-content {
    padding: 20px;
}

.card-content h3 {
    margin-top: 0;
    color: #1E90FF;
}

.card-content p {
    font-size: 16px;
    color: #555;
}

/* 文章内容样式 */
article {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 50px;
}

article h2 {
    color: #1E90FF;
    font-size: 24px;
    margin-bottom: 20px;
}

article h3 {
    color: #32CD32;
    font-size: 20px;
    margin-top: 20px;
}

article p {
    font-size: 16px;
    color: #333;
    margin-bottom: 15px;
}

article pre {
    background-color: #f4f4f4;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
}

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

/* 导航系统样式 */
.nav-sidebar {
    position: fixed;
    top: 80px;
    left: 20px;
    width: 200px;
}

.nav-sidebar ul {
    list-style: none;
    padding: 0;
}

.nav-sidebar ul li {
    margin-bottom: 10px;
}

.nav-sidebar ul li a {
    text-decoration: none;
    color: #fff;
    background-color: #1E90FF;
    padding: 10px 15px;
    border-radius: 5px;
    display: block;
    transition: background-color 0.3s ease;
}

.nav-sidebar ul li a:hover {
    background-color: #32CD32;
}

/* 提示信息样式 */
.reference-note {
    text-align: center;
    font-size: 18px;
    color: #FF8C00;
    margin: 20px 0;
    font-weight: bold;
}

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

    .nav-sidebar {
        display: none;
    }

    .container {
        grid-template-columns: 1fr;
    }
}

/* 按钮样式 */
.button {
    background: linear-gradient(45deg, #1E90FF, #32CD32);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    color: #fff;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
    font-size: 16px;
}

.button:hover {
    background: linear-gradient(45deg, #32CD32, #1E90FF);
    transform: scale(1.05);
}

/* 折叠区域样式 */
.collapsible {
    background-color: #1E90FF;
    color: white;
    cursor: pointer;
    padding: 10px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 18px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.collapsible:hover {
    background-color: #32CD32;
}

.content {
    padding: 0 18px;
    display: none;
    overflow: hidden;
    background-color: #f1f1f1;
    border-radius: 5px;
}

