:root {
    --dev-bg: #f4f6f9;
    --dev-surface: #ffffff;
    --dev-border: #d8e0ea;
    --dev-border-strong: #b6c2d1;
    --dev-text: #0f172a;
    --dev-text-muted: #5b6b7c;
    --dev-header-bg: #1e293b;
    --dev-header-bg-end: #243447;
    --dev-header-text: #f1f5f9;
    --dev-header-muted: #e2e8f0;
    --dev-accent: #3b82f6;
    --dev-accent-hover: #2563eb;
    --dev-success: #22c55e;
    --dev-danger: #ef4444;
    --dev-radius: 10px;
    --dev-radius-sm: 6px;
    --dev-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 8px 24px rgba(15, 23, 42, 0.05);
    --dev-font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    --dev-mono: Consolas, "Courier New", "Lucida Console", monospace;
    --dev-header-h: 50px;
    --dev-tabs-h: 42px;
    --dev-panel-header-h: 40px;
    --dev-footer-h: 96px;
    --dev-workspace-gap: 24px;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

body.dev-page {
    font-family: var(--dev-font);
    color: var(--dev-text);
    background: var(--dev-bg);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    --dev-json-font-size: 15px;
    --dev-json-line-height: 1.5;
    --dev-tip-font-size: 14px;
}

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

a:hover {
    color: var(--dev-accent-hover);
}

/* Header / Nav (legacy menu markup, new skin) */
.dev-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: linear-gradient(180deg, var(--dev-header-bg) 0%, var(--dev-header-bg-end) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.18);
    overflow: visible;
}

.dev-header__inner,
.dev-header__bar,
.dev-header .navbar-collapse,
.dev-header .navbar-nav > li.dropdown {
    overflow: visible;
}

.dev-header__inner {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 8px;
    max-width: 100%;
    padding: 0 16px;
    min-height: var(--dev-header-h);
}

.dev-header .navbar-header {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    min-height: var(--dev-header-h);
    order: 1;
}

.dev-header .navbar-brand {
    display: flex;
    align-items: center;
    padding: 0;
    margin-right: 20px;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    flex-shrink: 0;
}

.dev-header .navbar-brand img {
    height: 26px;
    width: auto;
    display: block;
}

.dev-header .navbar-toggle {
    display: none;
    margin-left: auto;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--dev-radius-sm);
    background: rgba(255, 255, 255, 0.06);
    cursor: pointer;
    padding: 0;
    position: relative;
}

.dev-header .navbar-toggle .icon-bar {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--dev-header-text);
    margin: 4px auto;
    border-radius: 1px;
    transition: transform 0.2s ease;
}

.dev-header .navbar-collapse {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    flex-wrap: nowrap;
    min-width: 0;
    gap: 4px;
    order: 2;
}

.dev-header .navbar-nav {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2px;
    flex: 1 1 auto;
    min-width: 0;
}

.dev-header .navbar-nav > li {
    position: relative;
    flex: 0 0 auto;
}

/* 默认收进「更多」；JS 检测到够宽时加 .nav-expanded 再展开 */
.dev-header .navbar-nav > .nav-extra {
    display: none !important;
}

.dev-header .navbar-nav > .nav-more {
    display: block !important;
}

.dev-header.nav-expanded .navbar-nav > .nav-extra {
    display: block !important;
}

.dev-header.nav-expanded .navbar-nav > .nav-more {
    display: none !important;
}

.dev-header .navbar-nav > li > a,
.dev-header .dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    border-radius: var(--dev-radius-sm);
    color: var(--dev-header-muted);
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    transition: color 0.15s ease, background 0.15s ease;
}

.dev-header .navbar-nav > li > a:hover,
.dev-header .dropdown-toggle:hover,
.dev-header .dropdown.is-open > .dropdown-toggle {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    text-decoration: none;
}

.dev-header .caret {
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 2px;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid currentColor;
    vertical-align: middle;
}

.dev-header .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 180px;
    max-height: 70vh;
    overflow: auto;
    margin: 0;
    padding: 8px;
    list-style: none;
    background: #fff;
    border: 1px solid var(--dev-border);
    border-radius: var(--dev-radius);
    box-shadow: var(--dev-shadow);
    z-index: 1100;
}

.dev-header .dropdown-menu::before {
    content: "";
    position: absolute;
    top: -8px;
    left: 0;
    right: 0;
    height: 8px;
}

.dev-header .dropdown:hover > .dropdown-menu,
.dev-header .dropdown.is-open > .dropdown-menu {
    display: block;
}

.dev-header .dropdown-menu > li > a {
    display: block;
    padding: 7px 12px;
    border-radius: var(--dev-radius-sm);
    color: var(--dev-text);
    font-size: 13px;
    white-space: nowrap;
}

.dev-header .dropdown-menu > li > a:hover {
    color: var(--dev-accent);
    background: rgba(59, 130, 246, 0.08);
    text-decoration: none;
}

.dev-header .dropdown-menu .divider {
    height: 1px;
    margin: 6px 0;
    overflow: hidden;
    background: var(--dev-border);
    list-style: none;
}

.dev-header .dropdown-menu > .menu-section {
    float: none;
    width: 100%;
    clear: both;
    list-style: none;
}

.dev-header .dropdown-menu .dropdown-header {
    display: block;
    padding: 8px 14px 4px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--dev-muted, #94a3b8);
    text-transform: none;
    white-space: nowrap;
    cursor: default;
}

.dev-header .menu-section__items {
    list-style: none;
    margin: 0;
    padding: 0 6px 4px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

.dev-header .show-two .menu-section__items,
.dev-header .menu-section__items[data-cols="2"] {
    grid-template-columns: 1fr 1fr;
}

.dev-header .show-three .menu-section__items,
.dev-header .menu-section__items[data-cols="3"] {
    grid-template-columns: 1fr 1fr 1fr;
}

.dev-header .menu-section__items > li {
    float: none;
    width: auto;
    margin: 0;
}

.dev-header .menu-section__items > li > a {
    display: block;
    padding: 7px 12px;
    font-size: 13px;
    white-space: nowrap;
    color: var(--dev-text);
    text-decoration: none;
}

.dev-header .menu-section__items > li > a:hover {
    color: var(--dev-accent);
    background: rgba(59, 130, 246, 0.08);
}

.dev-header .show-two {
    width: 420px;
}

.dev-header .show-three {
    width: 520px;
}

/* 图表等长标题菜单单独加宽 */
.dev-header .show-two.show-wide {
    width: 560px;
    max-width: calc(100vw - 24px);
}

.dev-header .show-three.show-wide {
    width: 720px;
    max-width: calc(100vw - 24px);
}

/* legacy float helpers kept for older markup if any */
.dev-header .show-two > li:not(.menu-section):not(.divider),
.dev-header .show-three > li:not(.menu-section):not(.divider) {
    float: left;
}

.dev-header .show-two > li:not(.menu-section):not(.divider) {
    width: 50%;
}

.dev-header .show-three > li:not(.menu-section):not(.divider) {
    width: 33.333%;
}

#select2-tool,
.dev-header__search {
    display: inline-flex;
    align-items: center;
    margin: 0 0 0 8px;
    min-width: 160px;
    flex: 0 0 auto;
    position: relative;
    z-index: 1100;
    order: 3;
}

#select2-tool .select2-container {
    width: 220px !important;
}

.dev-header .select2-container--default .select2-selection--single {
    height: 34px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--dev-radius-sm);
    background: rgba(255, 255, 255, 0.08);
    transition: border-color 0.15s ease, background 0.15s ease;
}

.dev-header .select2-container--default.select2-container--open .select2-selection--single {
    border-color: rgba(96, 165, 250, 0.6);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.dev-header .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: var(--dev-header-text);
    line-height: 32px;
    font-size: 13px;
    padding-left: 10px;
    padding-right: 28px;
}

.dev-header .select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: var(--dev-header-muted);
}

.dev-header .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 32px;
    right: 6px;
}

.dev-header .select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: var(--dev-header-muted) transparent transparent transparent;
}

.dev-header .select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
    border-color: transparent transparent var(--dev-header-muted) transparent;
}

.dev-header .select2-dropdown {
    border: 1px solid var(--dev-border);
    border-radius: var(--dev-radius-sm);
    box-shadow: var(--dev-shadow);
    z-index: 1200;
    font-size: 13px;
}

.dev-header .select2-search--dropdown .select2-search__field {
    border: 1px solid var(--dev-border);
    border-radius: var(--dev-radius-sm);
    padding: 6px 8px;
    font-size: 13px;
    outline: none;
}

.dev-header .select2-search--dropdown .select2-search__field:focus {
    border-color: var(--dev-accent);
}

.dev-header .select2-results__option {
    padding: 8px 10px;
}

.dev-header .select2-container--default .select2-results__option--highlighted[aria-selected] {
    background: rgba(59, 130, 246, 0.1);
    color: var(--dev-accent);
}

.dev-header .select2-container--default .select2-results__option[aria-selected="true"] {
    background: rgba(59, 130, 246, 0.14);
    color: var(--dev-accent);
}

/* Workspace */
.dev-workspace {
    max-width: 100%;
    padding: 16px 16px 0;
}

/* Tabs — white strip so it doesn't sit on gray page bg */
.dev-tabs {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 4px;
    margin-bottom: 14px;
    padding: 4px 10px 0;
    background: #fff;
    border: 1px solid var(--dev-border);
    border-radius: var(--dev-radius);
    overflow: visible;
    position: relative;
    z-index: 20;
}

.dev-tabs__track {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 4px;
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
}

.dev-tabs__item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    border: none;
    border-radius: var(--dev-radius-sm) var(--dev-radius-sm) 0 0;
    background: transparent;
    color: var(--dev-text-muted);
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
    cursor: pointer;
    transition: color 0.15s ease, background 0.15s ease;
}

.dev-tabs__item:hover {
    color: var(--dev-text);
    background: rgba(59, 130, 246, 0.06);
    text-decoration: none;
}

.dev-tabs__item.is-active {
    color: var(--dev-accent);
    background: transparent;
    box-shadow: inset 0 -2px 0 var(--dev-accent);
}

.dev-tabs__more {
    margin-left: auto;
    flex-shrink: 0;
    position: relative;
    z-index: 21;
}

.dev-tabs .dev-dropdown__menu {
    z-index: 200;
}

/* Long “更多” lists: scroll + multi-column so it doesn't fill the screen */
.dev-tabs__more .dev-dropdown__menu {
    max-height: min(56vh, 400px);
    overflow-x: hidden;
    overflow-y: auto;
    min-width: 200px;
    padding: 6px 0;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.dev-tabs__more .dev-dropdown__menu--cols {
    column-count: 2;
    column-gap: 0;
    min-width: min(90vw, 420px);
    max-width: min(92vw, 460px);
}

.dev-tabs__more .dev-dropdown__menu--cols-3 {
    column-count: 3;
    column-gap: 0;
    min-width: min(94vw, 600px);
    max-width: min(96vw, 680px);
}

.dev-tabs__more .dev-dropdown__menu--cols li,
.dev-tabs__more .dev-dropdown__menu--cols-3 li {
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
}

.dev-tabs__more .dev-dropdown__menu li a.is-active {
    color: var(--dev-accent);
    background: rgba(59, 130, 246, 0.08);
    font-weight: 600;
}

.dev-page-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: -4px 0 16px;
    padding: 0;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0.01em;
    color: #334155;
}

.dev-page-title::before {
    content: "";
    flex: 0 0 3px;
    align-self: stretch;
    min-height: 1.05em;
    border-radius: 2px;
    background: var(--dev-accent, #3b82f6);
}

.dev-caret {
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid currentColor;
}

/* Split editor layout */
.dev-editor-split {
    display: grid;
    grid-template-columns: minmax(280px, 42fr) minmax(320px, 58fr);
    gap: 12px;
    align-items: stretch;
}

.dev-panel {
    display: flex;
    flex-direction: column;
    background: var(--dev-surface);
    border: 1px solid var(--dev-border);
    border-radius: var(--dev-radius);
    box-shadow: var(--dev-shadow);
    overflow: hidden;
}

.dev-panel__label {
    display: flex;
    align-items: center;
    height: var(--dev-panel-header-h);
    min-height: var(--dev-panel-header-h);
    padding: 0 14px;
    border-bottom: 1px solid var(--dev-border);
    background: #f8fafc;
    color: var(--dev-text-muted);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    flex-shrink: 0;
}

.dev-panel__body {
    flex: 1;
    min-height: 0;
    padding: 0;
}

#json-src {
    width: 100%;
    padding: 10px 12px;
    border: 0;
    resize: none;
    outline: none;
    background: #fafbfc;
    color: var(--dev-text);
    box-sizing: border-box;
    font-size: var(--dev-json-font-size, 15px);
    line-height: var(--dev-json-line-height, 1.5);
}

#json-src::placeholder {
    color: #94a3b8;
}

/* Toolbar */
.dev-toolbar {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 12px;
    height: var(--dev-panel-header-h);
    min-height: var(--dev-panel-header-h);
    padding: 0 10px;
    border-bottom: 1px solid var(--dev-border);
    background: #f8fafc;
    overflow-x: auto;
    overflow-y: hidden;
    flex-shrink: 0;
}

.dev-toolbar__actions {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
}

.dev-tool-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 1px solid transparent;
    border-radius: var(--dev-radius-sm);
    color: var(--dev-text-muted);
    background: transparent;
    transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
    flex-shrink: 0;
}

.dev-tool-btn:hover,
.dev-tool-btn.is-active {
    color: var(--dev-accent);
    background: rgba(59, 130, 246, 0.08);
    border-color: rgba(59, 130, 246, 0.15);
    text-decoration: none;
}

.dev-toolbar__options {
    display: inline-flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 10px;
    margin-left: 0;
    font-size: 13px;
    color: var(--dev-text-muted);
    white-space: nowrap;
    flex-shrink: 0;
}

.dev-toolbar__options label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    cursor: pointer;
    user-select: none;
    font-weight: normal;
}

.dev-page .dev-toolbar .checkbox {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding-left: 0;
    margin: 0;
    min-height: 0;
}

.dev-page .dev-toolbar .checkbox input[type="checkbox"] {
    position: static;
    margin: 0;
}

.json-result-nav-func {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.dev-select,
.dev-toolbar__options select {
    height: 26px;
    padding: 0 24px 0 8px;
    border: 1px solid var(--dev-border);
    border-radius: var(--dev-radius-sm);
    background: #fff;
    color: var(--dev-text);
    font-size: 12px;
    outline: none;
    vertical-align: middle;
}

.dev-select:focus,
.dev-toolbar__options select:focus {
    border-color: var(--dev-accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.dev-inline-links {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.dev-inline-links a {
    color: var(--dev-text-muted);
    font-size: 12px;
}

.dev-inline-links a:hover {
    color: var(--dev-accent);
}

/* Dropdown (toolbar) */
.dev-dropdown {
    position: relative;
    display: inline-block;
}

.dev-dropdown__toggle {
    height: 26px;
    padding: 0 8px;
    border: 1px solid var(--dev-border);
    border-radius: var(--dev-radius-sm);
    background: #fff;
    color: var(--dev-text);
    font-size: 12px;
    cursor: pointer;
    line-height: 24px;
}

.dev-dropdown__menu {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    min-width: 120px;
    margin: 0;
    padding: 6px;
    list-style: none;
    background: #fff;
    border: 1px solid var(--dev-border);
    border-radius: var(--dev-radius-sm);
    box-shadow: var(--dev-shadow);
    z-index: 20;
}

.dev-dropdown__menu--right {
    left: auto;
    right: 0;
}

.dev-dropdown.is-open > .dev-dropdown__menu {
    display: block;
}

.dev-dropdown__menu li a {
    display: block;
    padding: 7px 10px;
    border-radius: 4px;
    color: var(--dev-text);
    font-size: 12px;
}

.dev-dropdown__menu li a:hover {
    background: rgba(59, 130, 246, 0.08);
    text-decoration: none;
}

/* JSON result area */
.dev-panel--output {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

#json-result {
    flex: 1;
    min-height: 0;
    background: #fff;
}

/* Bottom ad slot: 122px when ads are on; collapse when empty */
.dev-ad-slot {
    flex-shrink: 0;
    height: 122px !important;
    min-height: 122px !important;
    max-height: 122px !important;
    margin: 0;
    padding: 0;
    overflow: hidden;
    box-sizing: border-box;
    background: var(--dev-surface);
    border: 1px solid var(--dev-border);
    border-radius: var(--dev-radius-sm);
    line-height: 0;
    display: flex;
    align-items: center;
}

.dev-ad-slot:not(:has(*)) {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    border: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.dev-ad-slot > * {
    line-height: normal;
}

.dev-ad-slot .col-md-12 {
    width: 100%;
    height: 122px;
    max-height: 122px;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow: hidden;
}

.dev-ad-slot .col-md-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
    height: 100%;
    padding: 0 8px 0 0;
    box-sizing: border-box;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.dev-ad-slot .col-md-8 {
    flex: 0 0 66.666667%;
    max-width: 66.666667%;
    height: 100%;
    padding: 0;
    box-sizing: border-box;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.dev-ad-slot .wwads-cn {
    max-width: 100% !important;
    max-height: 90px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
}

.dev-ad-slot ins.adsbygoogle {
    display: inline-block !important;
    width: 728px !important;
    max-width: 100% !important;
    height: 90px !important;
    max-height: 90px !important;
}

.dev-tip {
    margin-top: 8px;
    padding: 12px 14px;
    border: 1px solid var(--dev-border);
    border-radius: var(--dev-radius-sm);
    background: var(--dev-surface);
    color: var(--dev-text-muted);
    font-size: var(--dev-tip-font-size, 14px);
    line-height: 1.7;
}

.dev-tip h1,
.dev-tip h2,
.dev-tip h3,
.dev-tip h4 {
    font-weight: 600;
    line-height: 1.5;
    margin: 0 0 8px;
}

.dev-tip h1 {
    font-size: 18px !important;
    color: var(--dev-text);
}

.dev-tip h2 {
    font-size: 16px !important;
    color: #334155;
    margin-top: 18px;
    padding-top: 4px;
}

.dev-tip h2:first-child {
    margin-top: 0;
}

.dev-tip h3 {
    font-size: 15px !important;
    color: #475569;
    margin-top: 14px;
}

.dev-tip h4 {
    font-size: 14px !important;
    color: #64748b;
    margin-top: 12px;
}

.dev-tip p {
    font-size: var(--dev-tip-font-size, 14px);
    color: var(--dev-text-muted);
    margin: 0 0 8px;
}

.dev-tip a {
    color: var(--dev-accent);
}

/* Tip content tables (legacy Bootstrap classes in CMS tip HTML) */
.dev-tip .table,
.dev-page table.table {
    width: 100%;
    max-width: 100%;
    margin: 12px 0 4px;
    border-collapse: collapse;
    background: #fff;
    color: var(--dev-text);
    font-size: 13px;
    line-height: 1.45;
}

.dev-tip .table > thead > tr > th,
.dev-tip .table > tbody > tr > th,
.dev-tip .table > tbody > tr > td,
.dev-page table.table > thead > tr > th,
.dev-page table.table > tbody > tr > th,
.dev-page table.table > tbody > tr > td {
    padding: 8px 12px;
    vertical-align: middle;
    border: 1px solid var(--dev-border);
    text-align: left;
}

.dev-tip .table > thead > tr > th,
.dev-page table.table > thead > tr > th {
    background: #f8fafc;
    color: var(--dev-text);
    font-weight: 600;
}

.dev-tip .table-striped > tbody > tr:nth-of-type(odd),
.dev-page table.table-striped > tbody > tr:nth-of-type(odd) {
    background: #f8fafc;
}

.dev-tip .table-bordered,
.dev-page table.table-bordered {
    border: 1px solid var(--dev-border);
}

.dev-tip .table caption,
.dev-page table.table caption {
    padding: 6px 0;
    color: var(--dev-text-muted);
    caption-side: top;
    text-align: left;
}

/* Footer — full width */
.dev-footer {
    width: 100%;
    margin-top: 24px;
    margin-left: 0;
    margin-right: 0;
    padding: 28px 24px 32px;
    border-top: 1px solid var(--dev-border);
    background: #fff;
    box-sizing: border-box;
}

.dev-footer__inner {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

.dev-footer__links {
    margin: 0 0 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--dev-border);
    color: var(--dev-text-muted);
    font-size: 14px;
    line-height: 1.8;
}

.dev-footer__links > span {
    color: var(--dev-text);
    font-weight: 600;
    margin-right: 6px;
}

.dev-footer__meta {
    margin: 0 0 10px;
    color: var(--dev-text-muted);
    font-size: 13px;
    line-height: 1.8;
}

.dev-footer__meta:last-child {
    margin-bottom: 0;
}

.dev-footer__links a,
.dev-footer__meta a {
    margin-right: 12px;
    color: var(--dev-text-muted);
    text-decoration: none;
}

.dev-footer__links a:hover,
.dev-footer__meta a:hover {
    color: var(--dev-accent);
}

#expandFold {
    display: none !important;
}

@media screen and (max-width: 1919px) {
    #expandFold {
        display: inline-block !important;
    }
    #CollapsibleViewHolder,
    #CollapsibleViewDetail {
        display: none !important;
    }
}

@media (max-width: 992px) {
    .dev-header__inner {
        flex-wrap: wrap;
        align-items: center;
        gap: 8px;
        padding-bottom: 0;
    }

    .dev-header .navbar-header {
        display: contents;
    }

    .dev-header .navbar-brand {
        order: 1;
        flex: 0 0 auto;
        margin-right: 0;
    }

    .dev-header__search,
    #select2-tool {
        order: 2;
        flex: 1 1 auto;
        width: auto;
        min-width: 0;
        margin: 0;
        padding-bottom: 0;
        border-bottom: none;
    }

    #select2-tool .select2-container,
    .dev-header__search .select2-container {
        width: 100% !important;
        max-width: 100%;
    }

    .dev-header .navbar-toggle {
        display: block;
        order: 3;
        flex: 0 0 auto;
        margin-left: 0;
    }

    .dev-header .navbar-collapse {
        order: 4;
        display: none;
        flex: 1 1 100%;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        padding: 8px 0 12px;
        max-height: min(70vh, 520px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

    .dev-header .navbar-collapse.is-open {
        display: flex;
    }

    .dev-header .navbar-nav > .nav-extra {
        display: block !important;
    }

    .dev-header .navbar-nav > .nav-more {
        display: none !important;
    }

    .dev-header .navbar-nav {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .dev-header .dropdown-menu {
        position: static;
        display: none;
        width: 100%;
        max-height: none;
        margin-top: 4px;
        box-shadow: none;
    }

    .dev-header .dropdown.is-open > .dropdown-menu {
        display: block;
    }

    .dev-header .show-two,
    .dev-header .show-three,
    .dev-header .show-two.show-wide,
    .dev-header .show-three.show-wide {
        width: 100%;
    }

    .dev-header .show-two .menu-section__items,
    .dev-header .show-three .menu-section__items,
    .dev-header .menu-section__items[data-cols="2"],
    .dev-header .menu-section__items[data-cols="3"] {
        grid-template-columns: 1fr;
    }

    .dev-editor-split {
        grid-template-columns: 1fr;
    }

    .dev-toolbar {
        flex-wrap: wrap;
        height: auto;
        min-height: var(--dev-panel-header-h);
        padding: 6px 10px;
    }

    .dev-toolbar__options {
        width: 100%;
    }

    /* Tool tabs: auto-pack into “更多”, keep one row */
    .dev-tabs {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        gap: 2px;
        max-width: 100%;
        margin-bottom: 12px;
        padding: 4px 8px 0;
        overflow: visible;
    }

    .dev-tabs__track {
        overflow: hidden;
    }

    .dev-tabs__item {
        flex-shrink: 0;
        padding: 7px 10px;
        font-size: 12px;
    }

    .dev-tabs__more {
        margin-left: auto;
        flex-shrink: 0;
    }
}

@media (max-width: 768px) {
    body.dev-page {
        overflow-x: hidden;
    }

    .dev-workspace {
        padding: 12px 10px 0;
        max-width: 100%;
        overflow-x: hidden;
    }

    .dev-tabs {
        margin-left: -10px;
        margin-right: -10px;
        padding-left: 10px;
        padding-right: 10px;
    }

    .dev-tabs__item {
        padding: 6px 8px;
        font-size: 12px;
    }
}
