
/* 全局样式设置 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif; /* 使用现代无衬线字体 */
    font-size: 16px; /* 正文字号设置为16px */
    background: linear-gradient(135deg, #0A2351, #34C759); /* 背景使用渐变色 */
    color: #ffffff; /* 文字颜色设置为白色 */
    transition: background 0.5s ease-in-out;
}

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

.navbar .logo {
    font-size: 1.5em;
    font-weight: bold;
}

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

.navbar ul li a {
    text-decoration: none;
    color: #EAEAEA;
    font-size: 1em;
    transition: color 0.3s;
}

.navbar ul li a:hover {
    color: #FFA500; /* 橙色点缀 */
}

/* 汉堡菜单样式（移动端） */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger div {
    width: 25px;
    height: 3px;
    background-color: #EAEAEA;
    margin: 4px;
    transition: all 0.3s;
}

/* 主容器样式 */
.container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 100px 20px 20px 20px; /* 顶部留出导航栏空间 */
}

/* 卡片样式 */
.card {
    background-color: rgba(234, 234, 234, 0.1); /* 半透明卡片背景 */
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

/* 图片样式 */
.card img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

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

/* 标题样式 */
h2 {
    font-size: 1.8em;
    margin-bottom: 10px;
    color: #34C759; /* 绿色点缀 */
}

h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #FFA500; /* 橙色点缀 */
}

/* 正文段落样式 */
p {
    font-size: 1em;
    line-height: 1.6;
    margin-bottom: 15px;
    color: #EAEAEA;
}

/* 分隔线样式 */
.separator {
    height: 2px;
    background: linear-gradient(90deg, #0A2351, #34C759);
    margin: 40px 0;
    border: none;
}

/* 导航系统样式 */
.sidebar {
    position: fixed;
    top: 80px;
    left: 0;
    width: 200px;
    background-color: rgba(10, 35, 81, 0.9);
    padding: 20px;
    border-right: 1px solid #FFA500;
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

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

.sidebar ul li a {
    text-decoration: none;
    color: #EAEAEA;
    font-size: 1em;
    transition: color 0.3s;
}

.sidebar ul li a:hover {
    color: #FFA500;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar ul {
        display: none;
    }
    .hamburger {
        display: flex;
    }
    .sidebar {
        display: none;
    }
    .container {
        padding: 80px 10px 10px 10px;
    }
}

@media (min-width: 769px) {
    .hamburger {
        display: none;
    }
    .sidebar {
        display: block;
    }
}

/* 动画效果 */
@keyframes backgroundMove {
    from {
        background-position: 0% 50%;
    }
    to {
        background-position: 100% 50%;
    }
}

body {
    background-size: 400% 400%;
    animation: backgroundMove 15s ease infinite;
}

button, .button {
    background-color: #FFA500;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, box-shadow 0.3s;
}

button:hover, .button:hover {
    background-color: #FF8C00;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* 加载动画 */
.loader {
    width: 100%;
    height: 4px;
    background: #EAEAEA;
    overflow: hidden;
}

.loader::after {
    content: '';
    display: block;
    width: 50%;
    height: 100%;
    background-color: #34C759;
    animation: load 2s infinite;
}

@keyframes load {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(100%);
    }
}

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

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

/* 提示信息样式 */
.reference-note {
    background-color: rgba(255, 165, 0, 0.1);
    border-left: 5px solid #FFA500;
    padding: 10px 20px;
    margin: 20px 0;
}

/* 图片装饰效果 */
.decorative-image {
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: transform 0.3s, box-shadow 0.3s;
}

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