
/* 全局样式设置，包括字体、背景颜色、整体布局等 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Open Sans', sans-serif;
    background: linear-gradient(135deg, #3F0071 70%, #32CD32 25%, #FFD700 5%);
    color: #333333;
    line-height: 1.6;
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(63, 0, 113, 0.9);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 1000;
}

.navbar .logo a {
    color: #FFFFFF;
    font-size: 24px;
    font-weight: bold;
    text-decoration: none;
}

.navbar .menu a {
    color: #FFFFFF;
    text-decoration: none;
    margin-left: 20px;
    font-size: 16px;
    transition: color 0.3s ease;
}

.navbar .menu a:hover {
    color: #FFD700;
}

/* 主容器样式，使用Flexbox布局 */
.container {
    display: flex;
    flex-wrap: wrap;
    padding-top: 80px;
    padding-left: 5%;
    padding-right: 5%;
    background-color: #ADD8E6;
}

/* 左侧与右侧分屏样式 */
.left-panel, .right-panel {
    flex: 1;
    min-width: 300px;
    padding: 20px;
}

/* 图片样式，包括圆角、阴影和悬停效果 */
.left-panel img, .right-panel img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.left-panel img:hover, .right-panel img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
}

/* 标题样式，使用不同字体和颜色 */
.left-panel h2, .right-panel h2 {
    font-family: 'Fira Sans', sans-serif;
    color: #FFFFFF;
    font-size: 28px;
    margin-bottom: 15px;
}

/* 正文字体大小和颜色 */
.left-panel p, .right-panel p {
    font-size: 16px;
    color: #FFFFFF;
    margin-bottom: 15px;
}

/* 文章内容样式，包裹示例文章 */
.article-content {
    background-color: #FFFFFF;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    margin: 40px 0;
}

/* 文章标题样式 */
.article-content h2, .article-content h3, .article-content h4 {
    font-family: 'Fira Sans', sans-serif;
    color: #3F0071;
    margin-bottom: 10px;
}

/* 代码块样式，与正文内容区分 */
.article-content pre {
    background-color: #F0F0F0;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    margin-bottom: 15px;
}

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

/* 卡片式布局样式 */
.card {
    background-color: #FFFFFF;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    padding: 20px;
    margin: 20px 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* 响应式设计，适配各种屏幕宽度 */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        padding-left: 10%;
        padding-right: 10%;
    }
    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }
    .navbar .menu {
        margin-top: 10px;
    }
    .navbar .menu a {
        margin-left: 0;
        margin-bottom: 10px;
    }
}

/* 动画效果，淡入动画 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    opacity: 0;
    animation: fadeIn 1s forwards;
}

/* 按钮样式 */
.button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #32CD32;
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.button:hover {
    background-color: #28a428;
}

/* 提示文本样式 */
.note {
    font-size: 14px;
    color: #FF4500;
    margin-top: 20px;
    text-align: center;
}

/* 折叠区域样式 */
.collapsible {
    background-color: #3F0071;
    color: #FFFFFF;
    cursor: pointer;
    padding: 10px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 16px;
    border-radius: 5px;
    margin-top: 20px;
    transition: background-color 0.3s ease;
}

.collapsible:hover {
    background-color: #5A00A3;
}

.content {
    padding: 0 15px;
    display: none;
    overflow: hidden;
    background-color: #E6E6FA;
    border-radius: 5px;
    margin-bottom: 20px;
}

/* 图片边框样式 */
.image-frame {
    border: 2px solid #32CD32;
    border-radius: 10px;
    overflow: hidden;
}

/* 强调文字样式 */
.highlight {
    color: #FFD700;
    font-weight: bold;
}

/* 平滑过渡效果 */
.transition-effect {
    transition: all 0.3s ease;
}

/* 视觉焦点样式 */
.focus {
    box-shadow: 0 0 10px #FFD700;
}

