* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
    font-size: 16px;
    line-height: 1.8;
    color: #222;
    background: #f7f9fc;
    /* 页面本身不滚动：导航栏常驻，内容区自己滚动 */
    display: flex;
    flex-direction: column;
    height: 100vh;
    height: 100dvh;
}

p {
    margin-bottom: 10px;
}

/* 左侧导航浅色样式，支持二级菜单 */
.sidebar {
    position: fixed;
    top: 64px;
    left: 0;
    width: 260px;
    height: calc(100vh - 64px);
    background: #ffffff;
    color: #222;
    padding: 24px 16px;
    overflow-y: auto;
    border-right: 1px solid #e2e5eb;
    z-index: 50;
}

.sidebar h2 {
    font-size: 18px;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e2e5eb;
    color: #254b9c;
}

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

.sidebar li {
    margin: 1px 0;
    /* 减小一级菜单间距 */
}

/* 整行可点击父菜单容器 */
.sidebar .menu-parent {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    border-radius: 4px;
    padding: 6px 10px;
}

.sidebar .menu-parent:hover {
    background: #edf2fc;
}

.sidebar .menu-parent a {
    flex: 1;
    color: #444955;
    text-decoration: none;
    font-size: 16px;
}

/* 线条式图标，弱化，不突出 */
.sidebar .icon-toggle {
    font-size: 16px;
    color: #888;
    user-select: none;
    width: 16px;
    text-align: center;
    transition: transform 0.2s ease;
}

/* 二级子菜单缩进 */
.sidebar .sub-menu {
    padding-left: 18px;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.25s ease;
}

.sidebar .sub-menu.open {
    max-height: 2000px;
}

.sidebar .sub-menu a {
    display: block;
    color: #444955;
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 16px;
}

.sidebar .sub-menu a:hover {
    background: #edf2fc;
    color: #254b9c;
}

/* 主内容区域 */
.main-wrap {
    margin-left: 260px;
    padding: 30px 40px;
    /* 撑满导航栏以下的高度，滚动条常驻窗口底部 */
    flex: 1 1 auto;
    min-height: 0;
    /* 内容超出宽度时显示横向滚动条 */
    overflow: auto;
    overscroll-behavior: contain;
    scroll-behavior: smooth;
    scroll-padding-top: 24px;
}

h1 {
    font-size: 24px;
    margin-bottom: 24px;
    color: #254b9c;
}

h2 {
    font-size: 24px;
    margin: 32px 0 16px;
    color: #254b9c;
    border-left: 4px solid #4070d8;
    padding-left: 10px;
}

h3 {
    font-size: 20px;
    margin: 24px 0 12px;
    color: #254b9c;
}

h4 {
    font-size: 16px;
    margin: 16px 0px 8px;
    color: #254b9c;
    font-weight: 600;
}

.info-bar {
    background: #e8f0ff;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 24px;
    color: #254b9c;
}

.info-bar a {
    color: #254b9c;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 14px 0;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

th,
td {
    border: 1px solid #ddd;
    padding: 9px 11px;
    text-align: left;
    font-size: 16px;
    white-space: nowrap;
}

th {
    background: #4070d8;
    color: #fff;
}

td:last-child {
    white-space: normal;
}

tr:nth-child(even) {
    background: #f4f7fc;
}

ul,
ol {
    margin: 10px 0 10px 22px;
}

code {
    background: #e9ecef;
    padding: 2px 5px;
    border-radius: 3px;

    font-size: 16px;
}

/* 智能体指令示例美化样式 */
.command-block {
    background: #f3f5f8;
    border: 1px solid #dde1e8;
    border-radius: 8px;
    padding: 14px 18px;
    margin: 12px 0 18px 0;
}

.command-block .tip {
    font-size: 15px;
    color: #505866;
    margin-bottom: 8px;
}

.command-block ol {
    margin: 0 0 0 22px;
}

.command-block li {

    font-size: 15px;
    color: #1f2937;
    margin: 6px 0;
}

.note {
    background: #fff8e1;
    padding: 9px 13px;
    border-radius: 6px;
    margin: 12px 0;
    border-left: 4px solid #ffc107;
}

.main-wrap img {
    border: 1px solid #ddd;
    border-radius: 12px;
    margin: 10px 0;
}

.img-tip {
    font-size: 13px;
    color: #777;
    margin: -6px 0 12px 0;
}

.back-top {
    display: inline-block;
    margin-top: 30px;
    background: #4070d8;
    color: #fff;
    padding: 6px 11px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 16px;
    cursor: pointer;
}

/* doc.html：去除 logo 鼠标悬停动画 */
.navbar .logo .star-icon:hover {
    transform: none;
}

 
