
/* 全局样式设置 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    color: #333;
    background: linear-gradient(135deg, #1E90FF 70%, #F5F5F5 25%, #FFD700 5%);
    box-sizing: border-box;
}

/* 固定导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    width: calc(100% - 40px); /* 减去左右padding */
    padding: 20px;
    background-color: rgba(30, 144, 255, 0.9);
    display: flex;
    justify-content: space-between;
    align-items: center;
    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: 16px;
    transition: color 0.3s ease;
}

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

/* 主要内容区样式 */
.main-content {
    padding: 100px 40px 40px 40px; /* 顶部留出导航栏空间 */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    grid-gap: 20px;
}

/* 模块样式 */
.module {
    background-color: #fff;
    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;
}

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

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

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

/* 按钮样式 */
.button-primary {
    background: linear-gradient(45deg, #1E90FF, #FFD700);
    border: none;
    color: #fff;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 50px;
    cursor: pointer;
    transition: background 0.5s ease, transform 0.3s ease;
}

.button-primary:hover {
    background: linear-gradient(45deg, #FFD700, #1E90FF);
    transform: scale(1.05);
}

/* 代码块样式 */
.code-block {
    background-color: #2d2d2d;
    color: #ccc;
    padding: 15px;
    border-radius: 5px;
    font-family: 'Courier New', Courier, monospace;
    overflow-x: auto;
}

.code-block code {
    display: block;
    white-space: pre;
}

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

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

table th {
    background-color: #1E90FF;
    color: #fff;
}

table tr:nth-child(even) {
    background-color: #f9f9f9;
}

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

    .navbar a {
        margin: 10px 0;
    }

    .main-content {
        grid-template-columns: 1fr;
        padding: 100px 20px 20px 20px;
    }
}

/* 微动效悬停效果 */
.icon:hover {
    transform: scale(1.2);
    color: #FFD700;
    transition: transform 0.3s ease, color 0.3s ease;
}

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

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

.collapsible:after {
    content: '\002B'; /* 加号符号 */
    font-size: 13px;
    float: right;
}

.active:after {
    content: "\2212"; /* 减号符号 */
}

.content {
    padding: 0 15px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: #fafafa;
    border-radius: 0 0 5px 5px;
}

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

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

/* 滚动动画 */
.scroll-animate {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 实时聊天窗口样式 */
.chat-window {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 300px;
    height: 400px;
    background-color: #fff;
    border: 2px solid #1E90FF;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.chat-window.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 多语言切换按钮样式 */
.language-switcher {
    position: fixed;
    top: 20px;
    right: 80px;
    background-color: #FFD700;
    border: none;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.language-switcher:hover {
    background-color: #FFC300;
}

/* 表单输入样式 */
.input-field {
    border: 2px solid #1E90FF;
    padding: 10px;
    border-radius: 4px;
    transition: border-color 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.input-field:focus {
    border-color: #FFD700;
    outline: none;
}

