
/* 整体页面背景与字体设置 */
body {
    background: linear-gradient(135deg, #a8e6cf, #dcedc1, #ffd3b6, #ffaaa5); /* 渐变背景 */
    color: #333;
    font-family: 'Open Sans', sans-serif; /* 正文字体 */
    margin: 0;
    padding: 0;
}

/* 导航栏样式 */
.navbar {
    background: linear-gradient(to right, #4caf50, #81c784); /* 渐变背景 */
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1em 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* 阴影效果 */
}

.navbar a {
    color: #fff;
    text-decoration: none;
    margin: 0 15px;
    font-size: 1.1em;
    transition: color 0.3s ease; /* 平滑过渡 */
    rel: nofollow; /* 内部链接nofollow */
}

.navbar a:hover {
    color: #ffd700; /* 悬停颜色变化 */
}

/* 主容器样式 */
.container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr)); /* 响应式网格布局，最小宽度500px */
    gap: 20px;
    padding: 6em 2em 2em 2em; /* 上方留白以适应固定导航栏 */
}

/* 模块样式 */
.module {
    background: linear-gradient(45deg, #ffffff, #f0f0f0); /* 弹性背景渐变 */
    padding: 2em;
    border-radius: 10px; /* 圆角 */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* 阴影效果 */
    transition: transform 0.3s, box-shadow 0.3s; /* 动画过渡 */
}

.module:hover {
    transform: translateY(-10px); /* 悬停上浮效果 */
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

/* 图片样式 */
.module img {
    width: 100%;
    border-radius: 8px; /* 圆角 */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* 阴影 */
    transition: transform 0.3s, box-shadow 0.3s; /* 动画过渡 */
}

.module img:hover {
    transform: scale(1.05); /* 悬停放大 */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* 标题样式 */
h2, h3, h4 {
    font-family: 'Roboto', sans-serif; /* 主标题字体 */
    color: #2e7d32; /* 标题颜色 */
    margin-bottom: 0.5em;
}

/* 正文文本样式 */
p, li {
    font-size: 16px; /* 正文字号 */
    color: #555;
    line-height: 1.6;
    margin-bottom: 1em;
}

/* 代码块样式 */
pre {
    background: #f5f5f5;
    padding: 1em;
    border-radius: 5px;
    overflow: auto;
    position: relative;
}

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

pre code::before {
    content: '代码块';
    display: block;
    font-weight: bold;
    margin-bottom: 0.5em;
}

/* 按钮样式 */
.btn {
    background: #ff9800;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    transition: background 0.3s, transform 0.3s; /* 动画过渡 */
    cursor: pointer;
    rel: nofollow; /* 内部链接nofollow */
}

.btn:hover {
    background: #fb8c00;
    transform: scale(1.05); /* 悬停放大 */
}

/* 加载动画样式 */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.loader div {
    width: 50px;
    height: 50px;
    border: 5px solid #4caf50;
    border-top: 5px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 仪表盘样式 */
.dashboard {
    display: flex;
    justify-content: space-around;
    padding: 2em;
    background: #fafafa;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.dashboard-item {
    text-align: center;
    transition: transform 0.3s, background 0.3s;
}

.dashboard-item:hover {
    transform: scale(1.05);
    background: #e8f5e9;
    border-radius: 5px;
    padding: 1em;
}

.dashboard-item h4 {
    margin-bottom: 0.5em;
    color: #1b5e20;
}

.dashboard-item p {
    font-size: 1.5em;
    color: #388e3c;
}

/* 多语言切换器样式 */
.language-switcher {
    display: flex;
    justify-content: flex-end;
    padding: 1em;
    background: #e0f2f1;
}

.language-switcher button {
    background: none;
    border: none;
    margin: 0 5px;
    padding: 5px 10px;
    cursor: pointer;
    transition: background 0.3s;
}

.language-switcher button:hover {
    background: #b2dfdb;
    border-radius: 3px;
}

/* 折叠区域样式 */
.collapsible {
    background-color: #f1f1f1;
    color: #444;
    cursor: pointer;
    padding: 10px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 16px;
    transition: background-color 0.3s;
}

.collapsible:hover {
    background-color: #ddd;
}

.content {
    padding: 0 18px;
    display: none;
    overflow: hidden;
    background-color: #f9f9f9;
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        align-items: center;
    }

    .container {
        grid-template-columns: 1fr;
    }

    .language-switcher {
        justify-content: center;
    }
}

