/* iApy — Miuix (HyperOS) 设计规范
 * 参考 dekk 模块 ModuleTheme / MiuixUi：扁平、无阴影、无渐变、20px 卡片、#3482FF 主色
 */

:root {
    --bg: #f5f5f5;
    --surface: #ffffff;
    --surface2: #f0f0f0;
    --border: #ededed;
    --text: #1a1a1a;
    --text2: #8c8c8c;
    --text3: #adadad;
    --accent: #3482ff;
    --accent-press: #2b6fdb;
    --accent-soft: #e8f0ff;
    --green: #1fa855;
    --green-soft: #ddf5e4;
    --red: #d9473b;
    --red-soft: #fdecea;
    --orange: #c97a1e;
    --orange-soft: #fdf1e2;
    --r: 20px;
    --r-sm: 12px;
    --r-pill: 15px;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #101010;
        --surface: #1e1e1e;
        --surface2: #2a2a2a;
        --border: #2c2c2c;
        --text: #f0f0f0;
        --text2: #9a9a9a;
        --text3: #7a7a7a;
        --accent-soft: #17273f;
        --green: #5bd98d;
        --green-soft: #15271b;
        --red: #ff7a6e;
        --red-soft: #2a1717;
        --orange: #e8a45f;
        --orange-soft: #2a2117;
    }
}

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

body {
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.5;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
}

a { color: var(--accent); text-decoration: none; }

/* ===== 布局 ===== */
.main {
    max-width: 720px;
    margin: 0 auto;
    padding: 28px 16px 72px;
}

.header { margin-bottom: 22px; }

.header h1 {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.4px;
    line-height: 1.2;
}

.header-desc {
    margin-top: 8px;
    font-size: 14px;
    color: var(--text2);
    line-height: 1.6;
}

/* 顶部导航：Miuix 分段标签 */
.header-links {
    display: flex;
    gap: 4px;
    margin-top: 20px;
    padding: 4px;
    background: var(--surface2);
    border-radius: var(--r-pill);
    overflow-x: auto;
    scrollbar-width: none;
}
.header-links::-webkit-scrollbar { display: none; }

.header-link {
    flex: 1 0 auto;
    padding: 9px 14px;
    border-radius: 12px;
    font-size: 14px;
    color: var(--text2);
    text-align: center;
    white-space: nowrap;
    transition: background .18s ease, color .18s ease;
}
.header-link:hover { color: var(--text); }
.header-link.active {
    background: var(--surface);
    color: var(--text);
    font-weight: 600;
}

.header-toggles {
    display: flex;
    gap: 20px;
    margin-top: 16px;
    padding: 0 4px;
}

.toggle-switch {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text2);
    user-select: none;
}
.toggle-switch .label { color: var(--text2); }
.toggle-switch .switch {
    position: relative;
    width: 44px;
    height: 26px;
    border-radius: 13px;
    background: var(--surface2);
    transition: background .2s ease;
}
.toggle-switch .switch::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .12);
    transition: transform .2s ease;
}
.toggle-switch.active .switch { background: var(--accent); }
.toggle-switch.active .switch::after { transform: translateX(18px); }
.toggle-switch.active .label { color: var(--text); }

/* ===== 分组标题 ===== */
.section-title {
    font-size: 13px;
    color: var(--text2);
    padding: 22px 4px 10px;
    font-weight: 400;
}

/* ===== 表单卡片 ===== */
.form-wrap.hidden { display: none; }

.form-card {
    background: var(--surface);
    border-radius: var(--r);
    padding: 6px 18px;
}

.field-row {
    display: flex;
    gap: 12px;
    padding: 14px 0;
    border-top: 1px solid var(--border);
}
.field-row:first-child { border-top: none; }
.form-card > .field + .field { border-top: 1px solid var(--border); }

.field {
    flex: 1;
    min-width: 0;
    padding: 12px 0;
}
.field-row .field { padding: 0; }
.field-row:first-child .field { padding-top: 0; }
.field-row:last-child .field { padding-bottom: 0; }

.field label {
    display: block;
    font-size: 15px;
    color: var(--text);
    margin-bottom: 8px;
}

.field input[type="text"],
.field select {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border: none;
    border-radius: var(--r-sm);
    background: var(--surface2);
    color: var(--text);
    font-size: 15px;
    font-family: inherit;
    outline: none;
    appearance: none;
}
.field select {
    background-image: linear-gradient(45deg, transparent 50%, var(--text2) 50%),
                      linear-gradient(135deg, var(--text2) 50%, transparent 50%);
    background-position: calc(100% - 20px) 19px, calc(100% - 15px) 19px;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    padding-right: 36px;
}
.field input[type="text"]:focus,
.field select:focus { background-color: var(--surface2); box-shadow: inset 0 0 0 1.5px var(--accent); }

.field input[type="text"]::placeholder {
    color: var(--text3);
    font-size: 14px;
}

.field-hint {
    margin-top: 8px;
    font-size: 12px;
    line-height: 1.6;
    color: var(--text3);
}

/* ===== 文件上传区 ===== */
.file-zone {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 132px;
    padding: 22px 16px;
    background: var(--surface);
    border-radius: var(--r);
    cursor: pointer;
    transition: background .18s ease;
    text-align: center;
}
.file-zone:hover { background: var(--surface2); }
.file-zone.dragover { box-shadow: inset 0 0 0 2px var(--accent); }

.file-zone input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-zone .icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: var(--accent-soft);
    color: var(--accent);
    margin-bottom: 12px;
}
.file-zone .icon svg { width: 22px; height: 22px; }

.file-zone .label { font-size: 15px; color: var(--text); }
.file-zone .filename {
    margin-top: 6px;
    font-size: 13px;
    color: var(--text2);
    word-break: break-all;
}
.file-zone .zone-hint {
    margin-top: 8px;
    font-size: 12px;
    color: var(--text3);
    line-height: 1.6;
}

/* ===== 上传进度 ===== */
.upload-progress {
    display: none;
    margin-top: 12px;
    padding: 14px 16px;
    background: var(--surface);
    border-radius: var(--r-sm);
}
.upload-progress.show { display: block; }
.upload-progress-bar {
    height: 4px;
    border-radius: 2px;
    background: var(--surface2);
    overflow: hidden;
}
.upload-progress-fill {
    height: 100%;
    width: 0;
    border-radius: 2px;
    background: var(--accent);
    transition: width .2s ease;
}
.upload-progress-text {
    margin-top: 8px;
    font-size: 12px;
    color: var(--text2);
}

/* ===== 按钮 ===== */
.submit-btn {
    display: block;
    width: 100%;
    height: 48px;
    margin-top: 18px;
    border: none;
    border-radius: 14px;
    background: var(--accent);
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background .18s ease;
}
.submit-btn:hover { background: var(--accent-press); }
.submit-btn:active { background: var(--accent-press); }
.submit-btn:disabled { opacity: .5; cursor: default; }

/* ===== 错误提示 ===== */
.error-msg {
    display: none;
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: var(--r-sm);
    background: var(--red-soft);
    color: var(--red);
    font-size: 13px;
    line-height: 1.6;
}
.error-msg.show { display: block; }

/* ===== 结果区 ===== */
.result-wrap { display: none; }
.result-wrap.active { display: block; }

.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}
.top-bar h2 {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.2px;
}
.top-actions { display: flex; align-items: center; gap: 8px; }

.pill {
    display: inline-flex;
    align-items: center;
    height: 28px;
    padding: 0 12px;
    border-radius: 14px;
    font-size: 12px;
    background: var(--surface2);
    color: var(--text2);
}
.pill-ok { background: var(--green-soft); color: var(--green); }
.pill-fail { background: var(--red-soft); color: var(--red); }

.hint-bar {
    margin: 10px 0;
    padding: 12px 16px;
    border-radius: var(--r-sm);
    background: var(--surface);
    color: var(--text2);
    font-size: 13px;
    line-height: 1.6;
}

.info-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 10px;
    margin: 12px 0 20px;
}
.info-chip {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 86px;
    padding: 16px 18px;
    background: var(--surface);
    border-radius: var(--r);
}
.info-chip .num {
    font-size: 28px;
    font-weight: 600;
    line-height: 1.1;
    word-break: break-all;
}
.info-chip .num.green { color: var(--green); }
.info-chip .num.red { color: var(--red); }
.info-chip .num.orange { color: var(--orange); }
.info-chip .num.accent { color: var(--accent); font-size: 20px; }
.info-chip .desc {
    margin-top: 8px;
    font-size: 13px;
    color: var(--text2);
    line-height: 1.4;
}

/* 文件卡 */
.cards { display: flex; flex-direction: column; gap: 12px; }

.card {
    background: var(--surface);
    border-radius: var(--r);
    overflow: hidden;
}
.card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 56px;
    padding: 12px 18px;
}
.card-name {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    font-size: 16px;
    font-weight: 500;
}
.card-name span:not(.dot):not(.badge) {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.card-name .dot {
    flex: 0 0 auto;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text3);
}
.card-name .dot.entry { background: var(--accent); }
.card-name .dot.normal { background: var(--green); }

.badge {
    flex: 0 0 auto;
    padding: 2px 8px;
    border-radius: 8px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 11px;
}

.copy-btn {
    flex: 0 0 auto;
    padding: 6px 12px;
    border: none;
    border-radius: 10px;
    background: var(--surface2);
    color: var(--text2);
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
}
.copy-btn:hover { color: var(--text); }
.copy-btn.copied { background: var(--green-soft); color: var(--green); }

.card-body { padding: 0 18px 18px; }
.card-body.hidden { display: none; }
.code-wrap { border-radius: var(--r-sm); overflow: hidden; }
.code-block {
    max-height: 420px;
    overflow: auto;
    padding: 14px 16px;
    background: var(--surface2);
    color: var(--text);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12.5px;
    line-height: 1.7;
    white-space: pre;
    tab-size: 4;
}

/* 失败列表 */
.failed-section {
    margin-top: 16px;
    padding: 16px 18px;
    background: var(--red-soft);
    border-radius: var(--r);
}
.failed-section .head { font-size: 14px; color: var(--red); font-weight: 600; }
.failed-section ul { margin-top: 10px; padding-left: 18px; }
.failed-section li { font-size: 13px; color: var(--text2); line-height: 1.8; }
.failed-section .fname { color: var(--text); margin-right: 8px; }
.failed-section .err { color: var(--red); }

/* Key 面板 */
.strategy-panel {
    margin: 12px 0 20px;
    padding: 16px 18px;
    background: var(--surface);
    border-radius: var(--r);
}
.strategy-title {
    font-size: 13px;
    color: var(--text2);
    margin-bottom: 12px;
}
.strategy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 12px;
}
.strategy-item { min-width: 0; }
.strategy-label {
    font-size: 12px;
    color: var(--text3);
    margin-bottom: 4px;
}
.strategy-value {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12.5px;
    color: var(--text);
    word-break: break-all;
}
.strategy-item .strategy-copy { margin-top: 6px; }

/* ===== 弹窗 ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, .32);
}
.modal-content {
    width: 100%;
    max-width: 460px;
    background: var(--surface);
    border-radius: 24px;
    overflow: hidden;
}
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 22px 12px;
}
.modal-header h3 { font-size: 19px; font-weight: 600; }
.modal-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: var(--surface2);
    color: var(--text2);
    cursor: pointer;
}
.modal-body { padding: 4px 22px 8px; }
.warning-box {
    display: flex;
    gap: 12px;
    padding: 14px;
    background: var(--orange-soft);
    border-radius: var(--r-sm);
}
.warning-text { font-size: 13px; color: var(--text2); line-height: 1.7; }
.warning-text p { color: var(--text); margin-bottom: 6px; }
.warning-text ul { padding-left: 16px; }
.modal-footer {
    display: flex;
    gap: 10px;
    padding: 16px 22px 22px;
}
.modal-btn {
    flex: 1;
    height: 44px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-family: inherit;
    cursor: pointer;
}
.modal-btn-cancel { background: var(--surface2); color: var(--text); }
.modal-btn-confirm { background: var(--accent); color: #ffffff; font-weight: 600; }

/* ===== Toast ===== */
.toast {
    position: fixed;
    left: 50%;
    bottom: 40px;
    transform: translate(-50%, 12px);
    z-index: 90;
    padding: 11px 20px;
    border-radius: 22px;
    background: #2c2c2c;
    color: #ffffff;
    font-size: 13px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ===== 动态库 / 修复页 ===== */
.lib-tool { display: none; }
.lib-tool.active { display: block; }

.api-section {
    background: var(--surface);
    border-radius: var(--r);
    padding: 18px;
    margin-bottom: 12px;
}
.api-section h3 { font-size: 17px; font-weight: 600; }
.api-desc {
    margin-top: 6px;
    font-size: 13px;
    color: var(--text2);
    line-height: 1.7;
}

.tool-result { margin-top: 16px; }
.tool-result:empty { display: none; }

.api-doc { display: none; }
.api-doc.active { display: block; }
.api-code {
    margin-top: 12px;
    padding: 14px 16px;
    background: var(--surface);
    border-radius: var(--r-sm);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12.5px;
    line-height: 1.7;
    white-space: pre-wrap;
    word-break: break-all;
    color: var(--text);
}
.api-example {
    margin-top: 10px;
    padding: 14px 16px;
    background: var(--surface);
    border-radius: var(--r-sm);
    font-size: 13px;
    color: var(--text2);
    line-height: 1.7;
}

.api-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
    background: var(--surface);
    border-radius: var(--r);
    overflow: hidden;
    font-size: 13px;
}
.api-table th {
    text-align: left;
    padding: 12px 14px;
    background: var(--surface2);
    color: var(--text2);
    font-weight: 500;
}
.api-table td {
    padding: 12px 14px;
    border-top: 1px solid var(--border);
    color: var(--text);
    vertical-align: top;
}
.api-table .mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px; }
.api-table .req { color: var(--red); font-size: 12px; }

/* ===== 文档站 ===== */
.docs-layout { position: relative; }

.docs-menu-btn {
    display: none;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 14px;
    margin-bottom: 12px;
    border: none;
    border-radius: 12px;
    background: var(--surface);
    color: var(--text);
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
}

.docs-sidebar { display: none; }

.docs-content {
    background: var(--surface);
    border-radius: var(--r);
    padding: 22px;
}

.docs-group { margin-bottom: 20px; }
.docs-group-title {
    font-size: 13px;
    color: var(--text2);
    margin-bottom: 8px;
}
.docs-side-item {
    display: block;
    padding: 9px 12px;
    border-radius: 10px;
    font-size: 14px;
    color: var(--text);
}
.docs-side-item:hover { background: var(--surface2); }
.docs-side-item.active { background: var(--accent-soft); color: var(--accent); font-weight: 500; }

.docs-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 40;
    background: rgba(0, 0, 0, .32);
}
.docs-backdrop.show { display: block; }

.docs-sidebar.open {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 50;
    width: 260px;
    padding: 20px 14px;
    background: var(--surface);
    overflow-y: auto;
}

.docs-nav {
    display: flex;
    gap: 10px;
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
}
.docs-nav-card {
    flex: 1;
    padding: 12px 14px;
    border-radius: var(--r-sm);
    background: var(--surface2);
    color: var(--text);
    min-width: 0;
}
.docs-nav-dir { font-size: 12px; color: var(--text2); }
.docs-nav-title {
    margin-top: 2px;
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.docs-nav-next { text-align: right; }
.docs-nav-card:hover { background: var(--accent-soft); }

/* Markdown */
.markdown-body { font-size: 14.5px; line-height: 1.8; color: var(--text); }
.markdown-body h1 {
    font-size: 24px;
    font-weight: 700;
    margin: 4px 0 14px;
    letter-spacing: -0.2px;
}
.markdown-body h2 {
    font-size: 18px;
    font-weight: 600;
    margin: 28px 0 10px;
    padding-top: 6px;
}
.markdown-body h3 { font-size: 15.5px; font-weight: 600; margin: 20px 0 8px; }
.markdown-body p { margin: 10px 0; }
.markdown-body ul, .markdown-body ol { margin: 10px 0; padding-left: 22px; }
.markdown-body li { margin: 5px 0; }
.markdown-body code {
    padding: 2px 6px;
    border-radius: 6px;
    background: var(--surface2);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12.5px;
}
.markdown-body pre {
    margin: 12px 0;
    padding: 14px 16px;
    border-radius: var(--r-sm);
    background: var(--surface2);
    overflow-x: auto;
}
.markdown-body pre code { padding: 0; background: none; font-size: 12.5px; line-height: 1.7; }
.markdown-body blockquote {
    margin: 12px 0;
    padding: 10px 14px;
    border-left: 3px solid var(--accent);
    background: var(--accent-soft);
    border-radius: 0 var(--r-sm) var(--r-sm) 0;
    color: var(--text2);
}
.markdown-body table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 13px; }
.markdown-body th, .markdown-body td {
    padding: 9px 12px;
    border: 1px solid var(--border);
    text-align: left;
}
.markdown-body th { background: var(--surface2); font-weight: 500; color: var(--text2); }
.markdown-body a:hover { text-decoration: underline; }
.markdown-body hr { border: none; border-top: 1px solid var(--border); margin: 20px 0; }

/* 代码切换 */
.code-tabs { margin: 12px 0; }
.code-tabs .tab-btns {
    display: flex;
    gap: 4px;
    padding: 3px;
    background: var(--surface2);
    border-radius: 10px;
    width: fit-content;
}
.tab-btn {
    padding: 5px 12px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--text2);
    font-size: 12.5px;
    font-family: inherit;
    cursor: pointer;
}
.tab-btn.active { background: var(--surface); color: var(--text); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* 调试面板 */
.debug-box {
    margin-top: 20px;
    padding: 18px;
    background: var(--surface2);
    border-radius: var(--r);
}
.debug-title { font-size: 15px; font-weight: 600; margin-bottom: 12px; }
.debug-form { display: flex; flex-direction: column; gap: 12px; }
.debug-field label { display: block; font-size: 13px; color: var(--text2); margin-bottom: 6px; }
.debug-field label b { color: var(--text); font-weight: 500; }
.debug-field input[type="text"],
.debug-field input[type="file"],
.debug-field select {
    width: 100%;
    height: 42px;
    padding: 0 12px;
    border: none;
    border-radius: 10px;
    background: var(--surface);
    color: var(--text);
    font-size: 14px;
    font-family: inherit;
    outline: none;
}
.debug-field input[type="text"]:focus,
.debug-field select:focus { box-shadow: inset 0 0 0 1.5px var(--accent); }
.debug-field input[type="file"] { padding: 9px 12px; font-size: 13px; color: var(--text2); }
.debug-send {
    height: 44px;
    border: none;
    border-radius: 12px;
    background: var(--accent);
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
}
.debug-send:hover { background: var(--accent-press); }
.debug-result { margin-top: 14px; font-size: 13px; color: var(--text2); }
.debug-result pre {
    padding: 14px;
    border-radius: var(--r-sm);
    background: var(--surface);
    overflow-x: auto;
    font-family: ui-monospace, Menlo, Consolas, monospace;
    font-size: 12px;
    line-height: 1.7;
    color: var(--text);
}
.debug-err { color: var(--red); }
.debug-link { display: inline-block; margin-top: 8px; }


/* 动态库 / 修复结果 */
.tool-result-card {
    background: var(--surface);
    border-radius: var(--r);
    padding: 18px;
    margin-bottom: 12px;
}
.tool-result-card h2 {
    font-size: 17px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}
.tool-result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 10px;
    margin-top: 12px;
}
.tool-result-item {
    background: var(--surface2);
    border-radius: var(--r-sm);
    padding: 12px 14px;
    min-width: 0;
}
.tool-result-label {
    font-size: 12px;
    color: var(--text2);
    margin-bottom: 6px;
}
.tool-result-value {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12.5px;
    line-height: 1.7;
    color: var(--text);
    word-break: break-all;
}
.tool-result-path {
    font-size: 12px;
    color: var(--text3);
    margin-bottom: 8px;
    word-break: break-all;
}
.tool-result-list { display: flex; flex-direction: column; gap: 12px; }
.dot { flex: 0 0 auto; width: 8px; height: 8px; border-radius: 50%; background: var(--green); display: inline-block; }

/* ===== 响应式 ===== */
@media (min-width: 900px) {
    .docs-layout { display: grid; grid-template-columns: 220px 1fr; gap: 20px; }
    .docs-sidebar {
        display: block;
        position: sticky;
        top: 24px;
        align-self: start;
        padding: 6px 0;
    }
    .docs-menu-btn { display: none; }
    .docs-backdrop { display: none !important; }
    .docs-sidebar.open { position: static; width: auto; background: none; padding: 0; }
}

@media (max-width: 899px) {
    .docs-menu-btn { display: inline-flex; }
    .docs-content { padding: 18px; }
}

@media (max-width: 520px) {
    .main { padding: 20px 14px 64px; }
    .header h1 { font-size: 28px; }
    .field-row { flex-direction: column; gap: 0; }
    .info-bar { grid-template-columns: repeat(2, 1fr); }
    .info-chip { min-height: 78px; padding: 14px; }
    .info-chip .num { font-size: 24px; }
    .card-body { padding: 0 14px 14px; }
}
