
/* 全局样式设置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 页面背景设置，使用深蓝色渐变 */
body {
    font-family: 'Roboto', sans-serif; /* 使用Roboto字体，确保字体清晰易读 */
    background: linear-gradient(135deg, #0D47A1 70%, #0D47A1 25%, #FF9800 5%);
    color: #ffffff; /* 正文字体颜色为白色，保证与深色背景的对比度 */
    line-height: 1.6; /* 设置合理的行高，提升可读性 */
    padding: 20px; /* 页面内边距，确保内容不贴边 */
}

/* 顶部导航栏样式 */
.navbar {
    display: flex;
    justify-content: space-between; /* 分散对齐导航项 */
    align-items: center;
    background-color: rgba(13, 71, 161, 0.9); /* 半透明深蓝色 */
    padding: 15px 30px;
    position: fixed; /* 固定导航栏在顶部 */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000; /* 确保导航栏在最上层 */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* 添加阴影，提升层次感 */
}

.navbar .logo {
    font-size: 24px;
    font-weight: bold;
    color: #ffffff;
}

.navbar ul {
    list-style: none;
    display: flex;
}

.navbar ul li {
    margin-left: 20px; /* 导航项之间的间距 */
}

.navbar ul li a {
    text-decoration: none;
    color: #ffffff;
    font-size: 16px;
    transition: color 0.3s ease; /* 鼠标悬停时颜色过渡效果 */
}

.navbar ul li a:hover {
    color: #FF9800; /* 悬停时颜色变为橙色，突出显示 */
}

/* 主内容区块的样式 */
.section {
    padding: 100px 20px 60px 20px; /* 上方预留导航栏空间 */
    max-width: 1200px;
    margin: 0 auto;
}

/* 标题样式 */
h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: #FFFFFF;
    position: relative;
    padding-bottom: 10px;
}

h2::after {
    content: "";
    width: 50px;
    height: 4px;
    background: #FF9800;
    position: absolute;
    bottom: 0;
    left: 0;
    border-radius: 2px;
}

/* 子标题样式 */
h3 {
    font-size: 24px;
    margin-top: 40px;
    margin-bottom: 15px;
    color: #FF9800;
}

/* 段落样式 */
section p {
    font-size: 16px;
    margin-bottom: 20px;
    color: #E0E0E0;
}

/* 图片样式 */
img {
    width: 100%;
    max-width: 320px; /* 限制图片最大宽度 */
    border-radius: 10px; /* 圆角 */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* 添加阴影 */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* 悬停时的效果过渡 */
    margin: 20px 0;
}

img:hover {
    transform: scale(1.05); /* 悬停时放大 */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3); /* 加深阴影 */
}

/* 代码块样式 */
pre {
    background: #1E1E1E;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    font-family: 'Courier New', Courier, monospace;
    color: #00FF00;
    margin-bottom: 20px;
}

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

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

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

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

.nav-sidebar ul li a:hover {
    color: #FFFFFF;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar ul {
        display: none; /* 移动端隐藏顶部导航 */
    }

    .nav-sidebar {
        position: static;
        width: 100%;
        display: flex;
        justify-content: space-around;
        background-color: rgba(13, 71, 161, 0.9);
        padding: 10px 0;
    }

    .section {
        padding: 80px 10px 40px 10px;
    }
}

/* 交互动画 */
.button {
    background-color: #FF9800;
    border: none;
    color: #ffffff;
    padding: 15px 30px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.button:hover {
    background-color: #E68900;
    transform: scale(1.05);
}

/* 提示信息样式 */
.alert {
    background-color: #4CAF50;
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 5px;
    margin-bottom: 20px;
    font-size: 16px;
}

/* 分隔线样式 */
.divider {
    height: 2px;
    background: linear-gradient(90deg, #FF9800, #4CAF50);
    margin: 40px 0;
    border: none;
}

/* 列表样式 */
ul {
    list-style: disc;
    margin-left: 20px;
}

li {
    margin-bottom: 10px;
}

/* 按钮组样式 */
.button-group {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

/* 卡片样式 */
.card {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    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 12px 24px rgba(0, 0, 0, 0.2);
}

/* 表格样式 */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

table, th, td {
    border: 1px solid #FF9800;
}

th, td {
    padding: 10px;
    text-align: left;
}

th {
    background-color: rgba(255, 152, 0, 0.8);
    color: #ffffff;
}

td {
    background-color: rgba(255, 255, 255, 0.2);
}

/* 分栏布局 */
.columns {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.column {
    flex: 1;
}

/* 联系按钮样式 */
.contact-button {
    background-color: #4CAF50;
    color: #ffffff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-size: 16px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.contact-button:hover {
    background-color: #388E3C;
    transform: scale(1.05);
}

/* 底部版权信息 */
.footer {
    text-align: center;
    padding: 20px;
    background-color: rgba(13, 71, 161, 0.9);
    color: #ffffff;
    position: fixed;
    bottom: 0;
    width: 100%;
    font-size: 14px;
}

/* 图标样式 */
.icon {
    width: 24px;
    height: 24px;
    fill: #FF9800;
    transition: fill 0.3s ease;
}

.icon:hover {
    fill: #FFFFFF;
}

/* 表单样式 */
form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

input, textarea {
    padding: 10px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
}

input:focus, textarea:focus {
    outline: none;
    box-shadow: 0 0 5px #FF9800;
}

/* 滚动动画 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 2s ease-in-out;
}

/* 按钮组响应式调整 */
@media (max-width: 768px) {
    .button-group {
        flex-direction: column;
    }
}

