
/* 
页面整体样式设置
使用响应式设计，确保在不同设备上有良好的展示效果
主色调采用蓝色，辅以橙色点缀，背景使用灰色和白色中性色
*/

/* 基本样式 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif; /* 使用现代无衬线字体 */
    background: linear-gradient(to bottom, #E0F7FA, #00796B); /* 背景渐变色 */
    color: #333333;
}

/* 导航栏样式 */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #00796B; /* 主色调 */
    padding: 15px 30px;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* 阴影效果 */
}

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

.navbar a:hover {
    color: #FFA500; /* 点缀色用于悬停效果 */
}

/* 主要容器样式 */
.container {
    display: grid;
    grid-template-columns: 1fr 3fr 1fr;
    gap: 20px;
    padding: 100px 30px 30px 30px; /* 顶部留出导航栏空间 */
}

@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
    }
}

/* 侧边栏样式 */
.sidebar {
    background-color: #FFFFFF;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.sidebar img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

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

/* 主内容区样式 */
.main-content {
    background-color: #FFFFFF;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.main-content h2 {
    color: #00796B;
    margin-bottom: 10px;
    font-size: 24px;
}

.main-content h3 {
    color: #FFA500;
    margin-bottom: 8px;
    font-size: 20px;
}

.main-content p {
    line-height: 1.6;
    font-size: 16px;
    margin-bottom: 15px;
}

/* 分隔线样式 */
.section-divider {
    height: 2px;
    background: linear-gradient(to right, #00796B, #1E90FF);
    margin: 30px 0;
    border: none;
}

/* 图片展示区样式 */
.image-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
}

.image-gallery img {
    width: 160px; /* 320px 的图片在双倍尺寸下显示 */
    height: 160px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-gallery img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* 代码示例区样式 */
.code-example {
    background-color: #f5f5f5;
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 20px 0;
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
}

.code-example code {
    color: #d6336c;
}

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

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

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

.button:hover {
    background-color: #FF8C00;
    transform: translateY(-3px);
}

/* 固定通知样式 */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #FFA500;
    color: #FFFFFF;
    padding: 15px 25px;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.notification.show {
    opacity: 1;
    transform: translateY(0);
}

/* 导航锚点样式 */
.nav-link {
    display: block;
    margin: 10px 0;
    color: #00796B;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #FFA500;
}

/* 页脚样式 */
.footer {
    background-color: #00796B;
    color: #FFFFFF;
    text-align: center;
    padding: 20px 0;
    margin-top: 50px;
}

.footer p {
    margin: 0;
    font-size: 14px;
}

/* 高级CSS效果 */
@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.network-node {
    width: 100px;
    height: 100px;
    border: 2px solid #FFA500;
    border-radius: 50%;
    position: relative;
    animation: rotate 10s linear infinite;
}

.predefined-scroll-animation {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.predefined-scroll-animation.visible {
    opacity: 1;
    transform: translateY(0);
}

