
/* 全局样式重置，确保不同浏览器显示一致 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 设置网页的整体字体和背景颜色 */
body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #1A2B47 70%, #F2F2F2 30%);
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

/* 固定导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(26, 43, 71, 0.9);
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 导航菜单样式 */
.nav-menu {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-menu li {
    position: relative;
}

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

.nav-menu a:hover {
    color: #FF8C00;
}

/* 多级菜单样式 */
.nav-menu li:hover > .submenu {
    display: block;
}

.submenu {
    display: none;
    position: absolute;
    top: 40px;
    left: 0;
    background-color: #fff;
    padding: 10px;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.submenu a {
    color: #1A2B47;
    font-size: 14px;
}

/* 面包屑导航样式 */
.breadcrumb {
    display: flex;
    align-items: center;
    font-size: 14px;
    margin: 100px 40px 20px 40px;
}

.breadcrumb a {
    color: #1A2B47;
    text-decoration: none;
    margin-right: 5px;
}

.breadcrumb span {
    margin-right: 5px;
}

/* 容器样式，使用网格布局 */
.container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
    gap: 40px;
    padding: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

/* 卡片样式 */
.card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 20px;
}

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

/* 标题样式 */
h2, h3, h4 {
    color: #1A2B47;
    margin-bottom: 15px;
}

h2 {
    font-size: 24px;
}

h3 {
    font-size: 20px;
}

h4 {
    font-size: 18px;
}

/* 段落样式 */
p {
    margin-bottom: 15px;
    font-size: 16px;
}

/* 强调文本 */
strong {
    color: #FF8C00;
}

/* 代码块样式 */
pre {
    background: #F2F2F2;
    padding: 15px;
    border-radius: 8px;
    overflow: auto;
    position: relative;
}

pre code {
    font-family: 'Courier New', Courier, monospace;
    font-size: 15px;
    color: #1A2B47;
    overflow: visible;
}

/* 代码块标题 */
pre code::before {
    content: "示例代码";
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}

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

img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

/* 按钮样式 */
.button {
    background-color: #FF8C00;
    color: #fff;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    font-size: 16px;
}

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

/* 加载动画样式 */
.loader {
    border: 8px solid #F2F2F2;
    border-top: 8px solid #FF8C00;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
    margin: 50px auto;
}

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

/* 仪表盘样式 */
.dashboard {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 20px;
    padding: 20px;
}

.sidebar {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
}

.content {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
}

/* 聊天工具样式 */
.chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #FF8C00;
    color: #fff;
    padding: 15px;
    border-radius: 50%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.chat-widget:hover {
    background-color: #e07b00;
}

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

    .nav-menu {
        flex-direction: column;
        gap: 10px;
    }

    .breadcrumb {
        flex-direction: column;
        align-items: flex-start;
    }

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

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

/* 提示文本样式 */
.reference-note {
    text-align: center;
    font-size: 18px;
    color: #FF8C00;
    margin: 40px 0;
}

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

.active, .collapsible:hover {
    background-color: #FF8C00;
}

.content-collapsible {
    padding: 0 15px;
    display: none;
    overflow: hidden;
    background-color: #F2F2F2;
    color: #333;
    border-radius: 4px;
    margin-bottom: 20px;
}

.content-collapsible p {
    margin: 15px 0;
}

/* 动画效果 */
.fade-in {
    animation: fadeInUp 0.6s forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 高级链接样式 */
a.internal-link {
    color: #FF8C00;
    text-decoration: underline;
}

/* 代码块内的链接样式 */
pre a {
    color: #FF8C00;
    text-decoration: none;
}

pre a:hover {
    text-decoration: underline;
}

