
/* 全局样式设置 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif; /* 使用现代无衬线字体 */
    background: linear-gradient(135deg, #1E90FF, #0D0D0D); /* 主色调渐变背景 */
    color: #C0C0C0; /* 正文字体颜色 */
    overflow-x: hidden; /* 防止出现水平滚动条 */
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(13, 13, 13, 0.9); /* 半透明背景 */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    z-index: 1000;
    transition: background 0.3s ease;
}

.navbar.scrolled {
    background: #0D0D0D; /* 滚动后背景色 */
}

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

.navbar a:hover {
    color: #FFA500; /* 点缀色悬停效果 */
    rel="nofollow";
}

/* 分屏布局容器 */
.split-screen {
    display: flex;
    height: 100vh;
    padding-top: 60px; /* 留出导航栏高度 */
}

.split-screen .left, 
.split-screen .right {
    flex: 1;
    position: relative;
    overflow: hidden;
    padding: 20px;
}

/* 左侧区域样式 */
.split-screen .left {
    background: linear-gradient(135deg, #1E90FF, #0D0D0D); /* 渐变背景 */
}

.split-screen .left img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    transition: transform 0.3s ease;
}

.split-screen .left img:hover {
    transform: scale(1.05); /* 悬浮放大效果 */
}

/* 右侧区域样式 */
.split-screen .right {
    background: linear-gradient(45deg, #0D0D0D, #C0C0C0); /* 渐变背景 */
}

.split-screen .right img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    transition: transform 0.3s ease;
}

.split-screen .right img:hover {
    transform: scale(1.05); /* 悬浮放大效果 */
}

/* 按钮样式 */
.btn {
    background: #FFA500;
    border: none;
    padding: 15px 30px;
    color: #fff;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.3s ease;
    text-decoration: none;
}

.btn:hover {
    background: linear-gradient(45deg, #FFA500, #FF4500); /* 渐变悬停效果 */
}

/* 模块化内容样式 */
.module {
    background: #1E90FF;
    border-radius: 8px;
    padding: 20px;
    margin: 10px 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, background 0.3s ease;
}

.module:hover {
    transform: translateY(-10px); /* 悬浮位移效果 */
    background: linear-gradient(135deg, #1E90FF, #C0C0C0); /* 背景渐变 */
}

/* 代码块样式 */
pre {
    background: #0D0D0D;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
}

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

/* 响应式设计 */
@media (max-width: 768px) {
    .split-screen {
        flex-direction: column;
        height: auto;
    }
    
    .navbar a {
        margin: 10px 0;
        font-size: 14px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    h2 {
        font-size: 2em;
    }
}

