
/* 基础样式设置 */
/* 设置页面的整体字体和背景 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #0A2463 70%, #3CB371 25%, #FF6347 5%);
    color: #ffffff;
    line-height: 1.6;
}

/* 设置导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(10, 36, 99, 0.9);
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 导航菜单列表样式 */
.nav-menu {
    list-style: none;
    display: flex;
    gap: 30px;
}

/* 单个导航项样式 */
.nav-item {
    position: relative;
}

/* 导航链接样式 */
.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 18px;
    transition: color 0.3s ease;
}

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

/* 下拉菜单样式 */
.dropdown {
    position: absolute;
    top: 50px;
    left: 0;
    background-color: #0A2463;
    padding: 10px 0;
    display: none;
    flex-direction: column;
    min-width: 160px;
    border-radius: 5px;
}

/* 鼠标悬停显示下拉菜单 */
.nav-item:hover .dropdown {
    display: flex;
}

/* 下拉菜单链接样式 */
.dropdown-link {
    color: #ffffff;
    padding: 12px 20px;
    text-decoration: none;
    transition: background 0.3s ease;
}

.dropdown-link:hover {
    background: #3CB371;
}

/* 主内容区域样式 */
.container {
    padding: 100px 40px 40px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

/* 章节标题样式 */
h2, h3, h4 {
    color: #ffffff;
    margin-top: 40px;
    margin-bottom: 20px;
}

/* 文章段落样式 */
p {
    font-size: 16px;
    margin-bottom: 20px;
}

/* 代码块样式 */
pre {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 20px;
}

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

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

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

/* 卡片式设计样式 */
.card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* 按钮样式 */
.button {
    padding: 12px 25px;
    background-color: #3CB371;
    border: none;
    border-radius: 25px;
    color: #ffffff;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.button:hover {
    background: linear-gradient(45deg, #3CB371, #ffffff);
    transform: scale(1.05);
}

/* 网格布局容器 */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

/* 表格模块样式 */
.module {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* 背景动画样式 */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://www.gptkong.com/static/images/data-flow.svg') repeat;
    animation: moveBackground 60s linear infinite;
    z-index: -1;
    opacity: 0.2;
}

@keyframes moveBackground {
    from { background-position: 0 0; }
    to { background-position: 1000px 1000px; }
}

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

    .nav-menu {
        flex-direction: column;
        width: 100%;
    }

    .nav-item {
        width: 100%;
    }

    .nav-link {
        padding: 10px 0;
    }

    .container {
        padding: 120px 20px 20px 20px;
    }
}

