
/* 全局样式设置 */
/* 设置页面的背景渐变，采用深蓝色和中灰色的线性渐变，营造专业与现代感 */
body {
    background: linear-gradient(135deg, #2D3A5B, #4B5563);
    color: #FFFFFF;
    font-family: 'Open Sans', sans-serif;
    margin: 0;
    padding: 0;
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(45, 58, 91, 0.9);
    display: flex;
    justify-content: space-between;
    padding: 15px 30px;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

.navbar li {
    margin: 0 20px;
    position: relative;
}

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

.navbar a:hover {
    color: #F97316;
}

.dropdown {
    display: none;
    position: absolute;
    top: 35px;
    background: #4B5563;
    padding: 10px;
    border-radius: 4px;
}

.navbar li:hover .dropdown {
    display: block;
}

@media (max-width: 768px) {
    .navbar ul {
        display: none;
    }
    .navbar .menu-icon {
        display: block;
        cursor: pointer;
    }
}

/* 主容器样式，使用网格布局确保模块宽度不小于500px */
.container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 40px;
    padding: 100px 60px 60px 60px;
}

/* 模块样式，添加阴影和圆角 */
.module {
    background: rgba(75, 85, 99, 0.8);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.module:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

/* 标题样式 */
h2, h3, h4 {
    font-family: 'Roboto', sans-serif;
    color: #FFFFFF;
    margin-bottom: 15px;
}

h2 {
    font-size: 24px;
}

h3 {
    font-size: 20px;
}

h4 {
    font-size: 18px;
}

/* 正文样式 */
p {
    font-size: 16px;
    line-height: 1.8;
    color: #D1D5DB;
}

/* 高亮文本 */
.highlight {
    color: #F59E0B;
    font-weight: bold;
}

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

.button:hover {
    background: #059669;
    transform: scale(1.05);
}

/* 图片样式，添加圆角和阴影 */
img.decorative {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* 代码块样式，使用浅色背景和圆角 */
pre {
    background: #1F2937;
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
}

code {
    color: #F59E0B;
    font-family: 'Courier New', Courier, monospace;
    font-size: 15px;
}

/* 表格样式，增加边框和背景色 */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

th, td {
    border: 1px solid #374151;
    padding: 12px 15px;
    text-align: left;
}

th {
    background: #2D3A5B;
    color: #FFFFFF;
}

tr:nth-child(even) {
    background: rgba(75, 85, 99, 0.5);
}

/* 动画效果 */
@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.svg-animated {
    animation: rotate 5s linear infinite;
}

/* 提示语样式 */
.notice {
    background: rgba(245, 158, 11, 0.1);
    border-left: 4px solid #F59E0B;
    padding: 10px 20px;
    margin: 20px 0;
    border-radius: 4px;
    font-size: 15px;
}

