        :root {
            --bg: #f4f1ea;
            --panel: #fffdf9;
            --ink: #1e2a2f;
            --muted: #66757f;
            --line: #ded7ca;
            --brand: #0f766e;
            --brand-soft: #d9f3ef;
            --accent: #b45309;
            --code: #1f2937;
        }

        * {
            box-sizing: border-box;
        }

        body {
            margin: 0;
            font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
            color: var(--ink);
            background:
                radial-gradient(circle at top left, rgba(180, 83, 9, 0.08), transparent 28%),
                radial-gradient(circle at right 20%, rgba(15, 118, 110, 0.1), transparent 24%),
                linear-gradient(180deg, #f7f3ec 0%, #f1ede6 100%);
        }

        .hero {
            padding: 48px 24px 28px;
            border-bottom: 1px solid rgba(30, 42, 47, 0.08);
        }

        .hero-inner,
        .container {
            width: min(1240px, calc(100% - 24px));
            margin: 0 auto;
        }

        .hero-toolbar {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 16px;
        }

        .hero-console-panel {
            display: flex;
            flex-direction: column;
            align-items: flex-end;
            gap: 8px;
            margin-top: 12px;
        }

        .eyebrow {
            display: inline-block;
            padding: 6px 12px;
            border-radius: 999px;
            background: var(--brand-soft);
            color: var(--brand);
            font-size: 13px;
            font-weight: 700;
            letter-spacing: 0.04em;
        }

        h1 {
            margin: 18px 0 10px;
            font-size: clamp(30px, 5vw, 52px);
            line-height: 1.08;
        }

        .hero p {
            margin: 0;
            max-width: 860px;
            color: var(--muted);
            font-size: 16px;
            line-height: 1.8;
        }

        .hero-console-hint {
            color: var(--muted);
            font-size: 13px;
            line-height: 1.7;
        }

        .hero-console-copy {
            max-width: 320px;
            text-align: right;
        }

        .quick-links {
            display: flex;
            flex-wrap: wrap;
            gap: 12px;
            margin-top: 24px;
        }

        .quick-links a {
            display: inline-flex;
            align-items: center;
            padding: 10px 14px;
            border: 1px solid rgba(15, 118, 110, 0.15);
            border-radius: 999px;
            color: var(--brand);
            text-decoration: none;
            background: rgba(255, 255, 255, 0.78);
        }

        .hero-actions {
            margin-top: 18px;
            display: flex;
            gap: 12px;
            flex-wrap: wrap;
        }

        .primary-action {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 12px 18px;
            border-radius: 999px;
            background: var(--brand);
            color: #fff;
            text-decoration: none;
            font-weight: 700;
            box-shadow: 0 10px 24px rgba(15, 118, 110, 0.18);
        }

        .hero-console-link {
            padding: 10px 16px;
            color: var(--brand);
            border-color: rgba(15, 118, 110, 0.22);
            background: rgba(255, 255, 255, 0.72);
            box-shadow: none;
        }

        .secondary-action {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 12px 18px;
            border-radius: 999px;
            border: 1px solid rgba(15, 118, 110, 0.18);
            background: rgba(255, 255, 255, 0.82);
            color: var(--ink);
            text-decoration: none;
            font-weight: 700;
        }

        .console-entry-grid {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 16px;
            margin-top: 16px;
        }

        .console-entry {
            display: block;
            padding: 18px;
            border-radius: 18px;
            border: 1px solid rgba(15, 118, 110, 0.14);
            background: linear-gradient(180deg, rgba(255,255,255,0.96) 0%, rgba(240,248,246,0.96) 100%);
            text-decoration: none;
        }

        .console-entry strong {
            display: block;
            margin-bottom: 8px;
            color: var(--ink);
            font-size: 16px;
        }

        .console-entry span {
            color: var(--muted);
            line-height: 1.7;
            font-size: 14px;
        }

        .layout {
            display: grid;
            grid-template-columns: 236px minmax(0, 1fr);
            gap: 20px;
            padding: 28px 0 40px;
        }

        .nav {
            position: sticky;
            top: 18px;
            align-self: start;
            max-height: calc(100vh - 36px);
            overflow-y: auto;
            overscroll-behavior: contain;
            padding: 20px;
            border: 1px solid var(--line);
            border-radius: 20px;
            background: rgba(255, 253, 249, 0.94);
            box-shadow: 0 12px 30px rgba(30, 42, 47, 0.06);
            scrollbar-width: thin;
            scrollbar-color: rgba(15, 118, 110, 0.32) transparent;
        }

        .nav::-webkit-scrollbar {
            width: 8px;
        }

        .nav::-webkit-scrollbar-track {
            background: transparent;
        }

        .nav::-webkit-scrollbar-thumb {
            border-radius: 999px;
            background: rgba(15, 118, 110, 0.26);
        }

        .nav h2 {
            margin: 0 0 12px;
            font-size: 15px;
        }

        .nav a {
            display: block;
            padding: 9px 0;
            color: var(--muted);
            text-decoration: none;
            border-bottom: 1px dashed rgba(102, 117, 127, 0.16);
        }

        .nav a:last-child {
            border-bottom: none;
        }

        .nav-group {
            margin: 0;
            border-bottom: 1px dashed rgba(102, 117, 127, 0.16);
        }

        .nav-group:last-child {
            border-bottom: none;
        }

        .nav-group summary {
            list-style: none;
            cursor: pointer;
            padding: 9px 0;
            color: var(--ink);
            font-weight: 700;
        }

        .nav-group summary::-webkit-details-marker {
            display: none;
        }

        .nav-group summary::before {
            content: "▾";
            display: inline-block;
            margin-right: 8px;
            color: var(--brand);
            transition: transform .2s ease;
        }

        .nav-group:not([open]) summary::before {
            transform: rotate(-90deg);
        }

.nav-children {
    margin: 0 0 8px 18px;
    padding-left: 14px;
    border-left: 2px solid rgba(15, 118, 110, 0.16);
}

.nav-children a {
    padding: 8px 0;
    font-size: 14px;
}

.nav-subgroup {
    margin: 6px 0 10px;
}

.nav-subgroup:last-child {
    margin-bottom: 0;
}

.nav-subgroup-link {
    display: block;
    padding: 8px 0 6px;
    color: var(--ink);
    font-size: 13px;
    font-weight: 700;
    border-bottom: none;
}

.nav-subgroup-children {
    margin-left: 14px;
    padding-left: 12px;
    border-left: 1px solid rgba(15, 118, 110, 0.14);
}

.nav-subgroup-children a {
    padding: 7px 0;
    font-size: 13px;
}

        .content {
            display: grid;
            gap: 16px;
            min-width: 0;
        }

        .card {
            padding: 20px 22px;
            border: 1px solid var(--line);
            border-radius: 24px;
            background: rgba(255, 253, 249, 0.96);
            box-shadow: 0 12px 30px rgba(30, 42, 47, 0.05);
            min-width: 0;
        }

        .card h2 {
            margin: 0 0 8px;
            font-size: 22px;
        }

        .card h3 {
            margin: 20px 0 8px;
            font-size: 18px;
        }

        .card h3 .heading-link {
            display: inline-flex;
            margin-left: 8px;
            font-size: 13px;
            font-weight: 700;
            color: var(--brand);
            text-decoration: none;
            white-space: nowrap;
        }

        .card h3 .heading-link:hover {
            text-decoration: underline;
        }

        .card p,
        .card li {
            color: var(--muted);
            line-height: 1.8;
        }

        .card .doc-note {
            margin: 8px 0 12px;
            padding: 10px 12px;
            border: 1px solid rgba(15, 118, 110, 0.16);
            border-radius: 8px;
            background: rgba(15, 118, 110, 0.08);
            color: var(--ink);
        }

        .section-heading {
            display: grid;
            gap: 12px;
            margin-bottom: 24px;
            position: relative;
            z-index: 1;
        }

        .section-kicker {
            display: inline-flex;
            width: fit-content;
            align-items: center;
            padding: 6px 12px;
            border-radius: 999px;
            background: rgba(15, 118, 110, 0.12);
            color: var(--brand);
            font-size: 12px;
            font-weight: 800;
            letter-spacing: 0.08em;
        }

        .section-lead {
            margin: 0;
            max-width: 880px;
            font-size: 16px;
            color: #50616b;
        }

        .ticket-overview {
            position: relative;
            overflow: hidden;
        }

        .ticket-overview::before {
            content: "";
            position: absolute;
            inset: -120px -120px auto auto;
            width: 280px;
            height: 280px;
            border-radius: 50%;
            background: radial-gradient(circle, rgba(15, 118, 110, 0.12) 0%, rgba(15, 118, 110, 0) 68%);
            pointer-events: none;
        }

        .ticket-note-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 16px;
            position: relative;
            z-index: 1;
        }

        .ticket-note-card {
            position: relative;
            padding: 22px;
            border-radius: 20px;
            border: 1px solid rgba(15, 118, 110, 0.12);
            background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(244, 249, 247, 0.94) 100%);
            box-shadow: 0 16px 32px rgba(30, 42, 47, 0.05);
            overflow: hidden;
        }

        .ticket-note-card::before {
            content: "";
            position: absolute;
            inset: 0 0 auto;
            height: 4px;
            background: linear-gradient(90deg, rgba(15, 118, 110, 0.88), rgba(180, 83, 9, 0.72));
        }

        .ticket-note-card.featured {
            background: linear-gradient(180deg, rgba(240, 248, 246, 0.98) 0%, rgba(255, 255, 255, 0.96) 100%);
        }

        .ticket-note-card.accent {
            border-color: rgba(180, 83, 9, 0.16);
            background: linear-gradient(180deg, rgba(255, 249, 241, 0.98) 0%, rgba(255, 255, 255, 0.96) 100%);
        }

        .ticket-note-card.muted {
            border-color: rgba(102, 117, 127, 0.16);
            background: linear-gradient(180deg, rgba(250, 248, 244, 0.98) 0%, rgba(255, 255, 255, 0.96) 100%);
        }

        .ticket-note-index {
            display: inline-flex;
            margin-bottom: 14px;
            color: var(--brand);
            font-size: 12px;
            font-weight: 800;
            letter-spacing: 0.22em;
        }

        .ticket-note-card strong {
            display: block;
            margin-bottom: 8px;
            color: var(--ink);
            font-size: 18px;
        }

        .ticket-note-card p {
            margin: 0;
        }

        .ticket-inline-meta {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-top: 18px;
            position: relative;
            z-index: 1;
        }

        .ticket-inline-meta span {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 10px 14px;
            border-radius: 999px;
            border: 1px solid rgba(15, 118, 110, 0.14);
            background: rgba(255, 255, 255, 0.82);
            color: var(--muted);
            font-size: 13px;
        }

        .ticket-inline-meta .wide-chip {
            flex: 1 1 100%;
            align-items: flex-start;
            border-radius: 18px;
            line-height: 1.7;
        }

        .grid {
            display: grid;
            gap: 16px;
        }

        .grid.two {
            grid-template-columns: repeat(2, minmax(0, 1fr));
        }

        .metric {
            padding: 18px;
            border-radius: 18px;
            background: linear-gradient(180deg, #fff 0%, #f7f5ef 100%);
            border: 1px solid rgba(180, 83, 9, 0.12);
        }

        .metric strong {
            display: block;
            margin-bottom: 8px;
            color: var(--ink);
            font-size: 15px;
        }

        table {
            width: 100%;
            border-collapse: collapse;
            font-size: 14px;
            overflow: hidden;
            border-radius: 16px;
            table-layout: auto;
        }

        thead th {
            text-align: left;
            padding: 12px 14px;
            background: #f2eee5;
            color: var(--ink);
            border-bottom: 1px solid var(--line);
            overflow-wrap: anywhere;
            word-break: break-word;
        }

        tbody td {
            padding: 12px 14px;
            color: var(--muted);
            border-bottom: 1px solid #eee6d9;
            vertical-align: top;
            overflow-wrap: anywhere;
            word-break: break-word;
        }

        tbody td.required-cell {
            white-space: nowrap;
            overflow-wrap: normal;
            word-break: normal;
        }

        .required-badge {
            display: inline;
            font-size: 13px;
            line-height: 1.6;
            font-weight: 700;
        }

        .required-badge.required-yes {
            color: #b42318;
        }

        .required-badge.required-no {
            color: #8a97a3;
            font-weight: 500;
        }

        table td code,
        table th code {
            display: inline-block;
            white-space: nowrap;
            overflow-wrap: normal;
            word-break: normal;
        }

        table td:nth-child(1),
        table th:nth-child(1) {
            min-width: 140px;
        }

        table td:nth-child(2),
        table th:nth-child(2) {
            min-width: 140px;
        }

        table td:nth-child(3),
        table th:nth-child(3) {
            white-space: nowrap;
            overflow-wrap: normal;
            word-break: normal;
            min-width: 92px;
        }

        table td:last-child,
        table th:last-child {
            width: 100%;
        }

        table.table-with-source {
            table-layout: fixed;
        }

        table.platform-compare-table {
            table-layout: fixed;
        }

        table.platform-compare-table td,
        table.platform-compare-table th {
            white-space: normal;
            overflow-wrap: anywhere;
            word-break: break-word;
        }

        table.platform-compare-table td:nth-child(1),
        table.platform-compare-table th:nth-child(1) {
            width: 140px;
            min-width: 120px;
        }

        table.platform-compare-table td:nth-child(2),
        table.platform-compare-table th:nth-child(2),
        table.platform-compare-table td:nth-child(3),
        table.platform-compare-table th:nth-child(3) {
            width: 28%;
            min-width: 0;
        }

        table.platform-compare-table td:nth-child(4),
        table.platform-compare-table th:nth-child(4) {
            width: auto;
        }

        table.table-with-source td:nth-child(1),
        table.table-with-source th:nth-child(1) {
            width: 220px;
            min-width: 220px;
        }

        table.table-with-source td:nth-child(2),
        table.table-with-source th:nth-child(2) {
            width: 110px;
            min-width: 110px;
        }

        table.table-with-source td:nth-child(3),
        table.table-with-source th:nth-child(3) {
            width: 120px;
            min-width: 120px;
        }

        table.table-with-source td:nth-child(4),
        table.table-with-source th:nth-child(4) {
            width: auto;
        }

        table.table-with-source td:nth-child(5),
        table.table-with-source th:nth-child(5) {
            width: 260px;
            min-width: 260px;
        }

        table.table-with-source td:nth-child(5) code,
        table.table-with-source th:nth-child(5) code {
            white-space: normal;
            overflow-wrap: anywhere;
            word-break: break-word;
        }

        table.table-with-source td:nth-child(1) code,
        table.table-with-source th:nth-child(1) code,
        table.table-with-source td:nth-child(3) code,
        table.table-with-source th:nth-child(3) code {
            white-space: normal;
            overflow-wrap: anywhere;
            word-break: break-word;
        }

        table.table-with-source td:nth-child(3),
        table.table-with-source th:nth-child(3) {
            white-space: normal;
            overflow-wrap: anywhere;
            word-break: break-word;
        }

        table.table-with-source-extended {
            table-layout: fixed;
        }

        table.table-with-source-extended td:nth-child(1),
        table.table-with-source-extended th:nth-child(1) {
            width: 200px;
            min-width: 200px;
        }

        table.table-with-source-extended td:nth-child(2),
        table.table-with-source-extended th:nth-child(2) {
            width: 88px;
            min-width: 88px;
        }

        table.table-with-source-extended td:nth-child(3),
        table.table-with-source-extended th:nth-child(3) {
            width: 72px;
            min-width: 72px;
            white-space: nowrap;
            overflow-wrap: normal;
            word-break: normal;
        }

        table.table-with-source-extended td:nth-child(4),
        table.table-with-source-extended th:nth-child(4) {
            width: 28%;
        }

        table.table-with-source-extended td:nth-child(5),
        table.table-with-source-extended th:nth-child(5) {
            width: 22%;
        }

        table.table-with-source-extended td:nth-child(6),
        table.table-with-source-extended th:nth-child(6) {
            width: 200px;
            min-width: 200px;
        }

        table.table-with-source-extended td:nth-child(1) code,
        table.table-with-source-extended th:nth-child(1) code,
        table.table-with-source-extended td:nth-child(6) code,
        table.table-with-source-extended th:nth-child(6) code {
            white-space: normal;
            overflow-wrap: anywhere;
            word-break: break-word;
        }

        table.field-desc-table,
        table.field-detail-table {
            table-layout: fixed;
        }

        table.field-desc-table td,
        table.field-desc-table th,
        table.field-detail-table td,
        table.field-detail-table th {
            line-height: 1.75;
        }

        table.field-desc-table td:nth-child(1),
        table.field-desc-table th:nth-child(1) {
            width: 220px;
            min-width: 160px;
        }

        table.field-desc-table td:nth-child(2),
        table.field-desc-table th:nth-child(2) {
            width: 120px;
            min-width: 90px;
        }

        table.field-desc-table td:nth-child(3),
        table.field-desc-table th:nth-child(3) {
            white-space: normal;
            overflow-wrap: anywhere;
            word-break: break-word;
        }

        table.field-detail-table td:nth-child(1),
        table.field-detail-table th:nth-child(1) {
            width: 210px;
            min-width: 160px;
        }

        table.field-detail-table td:nth-child(2),
        table.field-detail-table th:nth-child(2) {
            width: 220px;
            min-width: 160px;
        }

        table.field-detail-table td:nth-child(3),
        table.field-detail-table th:nth-child(3) {
            width: 100px;
            min-width: 80px;
            white-space: nowrap;
        }

        table.field-detail-table td:nth-child(4),
        table.field-detail-table th:nth-child(4) {
            width: 110px;
            min-width: 90px;
            white-space: nowrap;
        }

        table.field-detail-table td:nth-child(5),
        table.field-detail-table th:nth-child(5) {
            width: auto;
            white-space: normal;
            overflow-wrap: anywhere;
            word-break: break-word;
        }

        .enum-list {
            display: flex;
            flex-wrap: wrap;
            gap: 6px 12px;
            margin-top: 6px;
        }

        .enum-item {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            white-space: nowrap;
        }

        tbody tr:last-child td {
            border-bottom: none;
        }

        code,
        pre {
            font-family: Consolas, "Courier New", monospace;
        }

        code {
            padding: 2px 6px;
            border-radius: 6px;
            background: #f0ebe2;
            color: var(--code);
        }

        pre {
            margin: 12px 0 0;
            padding: 16px;
            overflow: auto;
            border-radius: 16px;
            background: #13212b;
            color: #ecf5ff;
            line-height: 1.65;
            font-size: 13px;
        }

        .tag {
            display: inline-block;
            padding: 4px 10px;
            border-radius: 999px;
            font-size: 12px;
            font-weight: 700;
            color: var(--accent);
            background: rgba(180, 83, 9, 0.12);
        }

        .endpoint {
            margin-top: 18px;
            padding-top: 18px;
            border-top: 1px dashed var(--line);
        }

.endpoint:first-of-type {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.doc-subsection {
    margin: 18px 0 10px;
    padding: 14px 18px;
    border: 1px solid rgba(15, 118, 110, 0.12);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(241, 249, 247, 0.96) 0%, rgba(255, 255, 255, 0.96) 100%);
}

.doc-subsection h3 {
    margin: 4px 0 6px;
}

.doc-subsection p,
.doc-subsection ul {
    margin: 0;
}

.doc-subsection ul {
    padding-left: 20px;
}

.page-intro {
    margin: 0 0 4px;
}

.doc-subsection-kicker {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(15, 118, 110, 0.12);
    color: var(--brand);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

        .path {
            margin-top: 6px;
            font-size: 14px;
            color: var(--ink);
        }

        .endpoint-head {
            display: flex;
            align-items: center;
            gap: 10px;
            flex-wrap: wrap;
        }

        .endpoint-head h3 {
            margin: 0;
        }

        .footer {
            padding: 0 0 40px;
            color: var(--muted);
            text-align: center;
            font-size: 13px;
        }

        @media (max-width: 980px) {
            .layout,
            .grid.two,
            .console-entry-grid,
            .ticket-note-grid {
                grid-template-columns: 1fr;
            }

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

            .hero-console-panel {
                align-items: flex-start;
                margin-top: 0;
            }

            .hero-console-copy {
                max-width: none;
                text-align: left;
            }

            .nav {
                position: static;
                max-height: none;
                overflow: visible;
            }

            table td:nth-child(1),
            table th:nth-child(1),
            table td:nth-child(2),
            table th:nth-child(2),
            table td:nth-child(3),
            table th:nth-child(3) {
                min-width: 0;
            }

            table.table-with-source {
                table-layout: auto;
            }

            table.table-with-source td:nth-child(5),
            table.table-with-source th:nth-child(5) {
                width: auto;
                min-width: 0;
            }

            table.field-desc-table,
            table.field-detail-table {
                table-layout: auto;
            }

            table.field-desc-table td:nth-child(1),
            table.field-desc-table th:nth-child(1),
            table.field-desc-table td:nth-child(2),
            table.field-desc-table th:nth-child(2),
            table.field-detail-table td:nth-child(1),
            table.field-detail-table th:nth-child(1),
            table.field-detail-table td:nth-child(2),
            table.field-detail-table th:nth-child(2),
            table.field-detail-table td:nth-child(3),
            table.field-detail-table th:nth-child(3) {
                width: auto;
                min-width: 0;
            }

            .enum-item {
                white-space: normal;
            }
        }
    

.nav a.current,
.nav-children a.current {
    color: var(--brand);
    font-weight: 700;
}

.quick-links a.current {
    border-color: rgba(15, 118, 110, 0.3);
    background: rgba(217, 243, 239, 0.72);
}

.field {
    display: grid;
    gap: 8px;
}

.field label {
    font-size: 14px;
    font-weight: 700;
    color: var(--ink);
}

.field input,
.field textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid rgba(15, 118, 110, 0.18);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--ink);
    font: inherit;
}

.field textarea {
    min-height: 220px;
    resize: vertical;
    font-family: Consolas, "Courier New", monospace;
    line-height: 1.6;
}

.field input[readonly] {
    background: rgba(240, 235, 226, 0.8);
    color: var(--muted);
}
