/* 翌星智控说明书：沿用 doc.html 的阅读结构，补充流程、代码块和截图占位样式 */

.device-manual-body {
    background: #f7f9fc;
}

.manual-sidebar {
    scrollbar-width: thin;
    scrollbar-color: #ccd6e8 transparent;
}

.manual-sidebar .menu-parent a.active,
.manual-sidebar .sub-menu a.active {
    color: #254b9c;
    font-weight: 600;
    background: #edf2fc;
}

.manual-main {
    scroll-padding-top: 24px;
}

.manual-main section {
    max-width: 1180px;
}

.manual-main h2 {
    scroll-margin-top: 20px;
}

.manual-main h3,
.manual-main h4 {
    scroll-margin-top: 20px;
}

.manual-cover {
    position: relative;
    overflow: hidden;
    max-width: 1180px;
    margin: 0 0 22px;
    padding: 54px 58px 48px;
    color: #fff;
    border-radius: 16px;
    background:
        radial-gradient(circle at 84% 18%, rgba(94, 164, 255, 0.36), transparent 28%),
        radial-gradient(circle at 72% 90%, rgba(105, 72, 220, 0.4), transparent 34%),
        linear-gradient(130deg, #07152e 0%, #0d2d61 52%, #164b94 100%);
    box-shadow: 0 18px 48px rgba(18, 47, 95, 0.18);
}

.manual-cover::before {
    content: "";
    position: absolute;
    width: 380px;
    height: 380px;
    right: -80px;
    top: -150px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    box-shadow:
        0 0 0 48px rgba(255, 255, 255, 0.025),
        0 0 0 96px rgba(255, 255, 255, 0.018);
}

.manual-cover::after {
    content: "";
    position: absolute;
    right: 54px;
    bottom: 32px;
    width: 240px;
    height: 80px;
    opacity: 0.2;
    background-image: radial-gradient(circle, #fff 1px, transparent 1.5px);
    background-size: 16px 16px;
    transform: rotate(-7deg);
}

.cover-eyebrow {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    color: #a9c9ff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
}

.cover-eyebrow span {
    display: inline-block;
    width: 28px;
    height: 2px;
    background: #69a9ff;
}

.manual-cover h1 {
    position: relative;
    z-index: 1;
    margin: 0 0 16px;
    color: #fff;
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.15;
    letter-spacing: 0.02em;
}

.cover-subtitle {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 0 0 28px;
    color: rgba(255, 255, 255, 0.76);
    font-size: 17px;
    line-height: 1.8;
}

.cover-meta {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.cover-meta span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 13px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 30px;
    color: rgba(255, 255, 255, 0.84);
    background: rgba(255, 255, 255, 0.07);
    font-size: 13px;
    backdrop-filter: blur(8px);
}

.manual-info-bar {
    max-width: 1100px;
    margin-bottom: 0;
    line-height: 1.75;
}

.overview-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 18px 0 28px;
}

.overview-card {
    position: relative;
    min-height: 185px;
    padding: 22px;
    overflow: hidden;
    border: 1px solid #e0e7f2;
    border-radius: 11px;
    background: #fff;
    box-shadow: 0 4px 18px rgba(31, 57, 102, 0.05);
}

.overview-card::after {
    content: "";
    position: absolute;
    right: -28px;
    bottom: -38px;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: #f0f5ff;
}

.overview-index {
    position: absolute;
    top: 12px;
    right: 16px;
    color: #dfe8f7;
    font-size: 34px;
    font-weight: 800;
    line-height: 1;
}

.overview-card h3 {
    position: relative;
    margin: 0 0 8px;
    padding-right: 42px;
    font-size: 18px;
}

.overview-card p {
    position: relative;
    min-height: 55px;
    color: #5d6778;
    font-size: 14px;
    line-height: 1.7;
}

.overview-card a {
    position: relative;
    z-index: 1;
    color: #315fb5;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.table-scroll {
    width: 100%;
    overflow-x: auto;
}

.manual-main table {
    min-width: 720px;
}

.manual-main th,
.manual-main td {
    white-space: normal;
    vertical-align: top;
    line-height: 1.65;
}

.manual-main th {
    background: #315fb5;
}

.required-tag,
.allowed-tag,
.denied-tag {
    display: inline-block;
    padding: 1px 8px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.required-tag {
    color: #8c4a00;
    background: #fff0d4;
}

.allowed-tag {
    color: #126b4b;
    background: #ddf7ec;
}

.denied-tag {
    color: #a63232;
    background: #fde8e8;
}

.term-list,
.lifecycle-list {
    margin: 14px 0;
    border: 1px solid #e2e8f1;
    border-radius: 10px;
    background: #fff;
}

.term-list > div,
.lifecycle-list > div {
    display: grid;
    grid-template-columns: 145px minmax(0, 1fr);
    gap: 18px;
    padding: 14px 18px;
}

.term-list > div + div,
.lifecycle-list > div + div {
    border-top: 1px solid #edf1f7;
}

.term-list dt,
.lifecycle-list dt {
    color: #254b9c;
    font-weight: 700;
}

.term-list dd,
.lifecycle-list dd {
    margin: 0;
    color: #4b5565;
}

.main-wrap .manual-main p {
    color: #374151;
}

.manual-main ul,
.manual-main ol {
    line-height: 1.8;
}

.manual-main li {
    margin: 4px 0;
}

.command-block {
    padding: 16px 20px;
    background: #f5f8fd;
    border-color: #dce5f3;
}

.command-block .tip {
    color: #315795;
    font-weight: 600;
}

.command-block ul {
    margin: 4px 0 0 20px;
}

.dialogue-block {
    padding: 14px 18px 16px;
}

.dialogue-row {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    margin-top: 9px;
}

.dialogue-row > span {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 5px;
    color: #254b9c;
    background: #e7effd;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
}

.dialogue-row.agent > span {
    color: #16624d;
    background: #e3f6ef;
}

.dialogue-row p {
    margin: 0;
    padding: 7px 12px;
    border-radius: 4px 10px 10px 10px;
    color: #273246;
    background: #fff;
    border: 1px solid #e1e7ef;
    line-height: 1.65;
}

.dialogue-row.agent p {
    border-color: #d8ece5;
    background: #f8fffc;
}

.step-list {
    margin: 16px 0 !important;
    padding: 0 !important;
    list-style: none !important;
    border: 1px solid #e2e8f1;
    border-radius: 10px;
    background: #fff;
}

.step-list li {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    column-gap: 12px;
    padding: 14px 18px;
}

.step-list li + li {
    border-top: 1px solid #edf1f7;
}

.step-list li::before {
    counter-increment: step;
    content: counter(step, decimal-leading-zero);
    grid-row: span 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    color: #fff;
    background: #4070d8;
    font-size: 11px;
    font-weight: 700;
}

.step-list {
    counter-reset: step;
}

.step-list strong {
    color: #1b2c48;
}

.step-list span {
    color: #5a6576;
}

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

.query-card {
    padding: 15px 17px;
    border-radius: 9px;
    border: 1px solid #e0e7f3;
    background: linear-gradient(145deg, #fff, #f6f9ff);
}

.query-card span {
    display: inline-block;
    margin-bottom: 8px;
    color: #315fb5;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.query-card p {
    margin: 0;
    color: #313c50;
    font-size: 14px;
    line-height: 1.7;
}

.callout {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 13px 16px;
    margin: 16px 0;
    border-radius: 8px;
    border: 1px solid transparent;
    line-height: 1.7;
}

.callout > i {
    margin-top: 4px;
}

.callout-blue {
    color: #285086;
    background: #edf4ff;
    border-color: #d8e6fb;
}

.callout-green {
    color: #1c5f4b;
    background: #eefaf6;
    border-color: #d7f0e6;
}

.callout-amber {
    color: #775214;
    background: #fff8e8;
    border-color: #f5e4b8;
}

.callout-red {
    color: #873636;
    background: #fff1f1;
    border-color: #f2d5d5;
}

.figure-placeholder {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 230px;
    margin: 18px 0 12px;
    padding: 28px;
    overflow: hidden;
    text-align: center;
    border: 1.5px dashed #b9c7db;
    border-radius: 11px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(245, 249, 255, 0.94)),
        repeating-linear-gradient(45deg, #f2f6fc 0, #f2f6fc 10px, #fff 10px, #fff 20px);
}

.figure-placeholder::before,
.figure-placeholder::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: #e5edf9;
}

.figure-placeholder::before {
    width: 150px;
    height: 150px;
    right: -55px;
    top: -55px;
}

.figure-placeholder::after {
    width: 90px;
    height: 90px;
    left: -35px;
    bottom: -35px;
}

.placeholder-label {
    position: relative;
    z-index: 1;
    padding: 3px 9px;
    margin-bottom: 13px;
    border-radius: 3px;
    color: #557099;
    background: #e6eefb;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.figure-placeholder strong {
    position: relative;
    z-index: 1;
    color: #2c466b;
    font-size: 17px;
}

.figure-placeholder small {
    position: relative;
    z-index: 1;
    max-width: 620px;
    margin-top: 8px;
    color: #758196;
    line-height: 1.7;
}

.wide-placeholder {
    min-height: 310px;
}

.manual-figure {
    max-width: 1080px;
    margin: 24px auto 28px;
}

.manual-figure img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 760px;
    height: auto;
    margin: 0 auto;
    border: 1px solid #e2e8f2;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(28, 55, 92, 0.07);
}

.manual-figure img + img {
    margin-top: 16px;
}

.manual-figure.is-wide {
    max-width: 1180px;
}

.manual-figure figcaption {
    margin-top: 9px;
    color: #758196;
    font-size: 13px;
    line-height: 1.7;
    text-align: center;
}

.manual-figure figcaption strong {
    color: #2c466b;
    font-weight: 600;
}

.manual-figure.is-tall img {
    max-height: 780px;
}

@media (max-width: 768px) {
    .manual-figure {
        max-width: 100%;
        margin: 20px auto 24px;
    }

    .manual-figure img {
        max-height: 560px;
    }

    .manual-figure.is-tall img {
        max-height: 620px;
    }
}

.metric-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 20px 0;
    overflow: hidden;
    border: 1px solid #dfe7f3;
    border-radius: 11px;
    background: #fff;
}

.metric-strip > div {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 19px 22px;
}

.metric-strip > div + div {
    border-left: 1px solid #edf1f7;
}

.metric-strip strong {
    color: #315fb5;
    font-size: 33px;
    line-height: 1;
}

.metric-strip span {
    color: #5b6474;
    font-size: 13px;
    line-height: 1.5;
}

.config-panel {
    margin: 18px 0;
    padding: 18px 20px;
    border: 1px solid #dfe7f3;
    border-radius: 11px;
    background: #f8fbff;
}

.config-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.config-head span:first-child {
    color: #738099;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.config-head h4 {
    margin: 3px 0 0;
    font-size: 18px;
}

.config-head .config-state {
    padding: 3px 8px;
    border-radius: 3px;
    color: #315fb5;
    background: #e5eefc;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.config-table {
    min-width: 680px !important;
}

.manual-main .config-table {
    margin-top: 0;
}

.config-note {
    margin: 10px 0 0;
    color: #748094 !important;
    font-size: 13px;
    line-height: 1.7;
}

.enterprise-id-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    margin: 16px 0 22px;
    padding: 16px 20px;
    border: 1px solid #cddcf3;
    border-radius: 10px;
    background:
        linear-gradient(110deg, rgba(235, 244, 255, 0.95), rgba(248, 251, 255, 0.98));
}

.enterprise-id-card > div {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    min-width: 0;
}

.enterprise-id-card span {
    color: #4b6283;
    font-size: 13px;
    font-weight: 700;
}

.enterprise-id-card code {
    color: #173f7b;
    background: #fff;
    border: 1px solid #d8e5f7;
    overflow-wrap: anywhere;
}

.copy-inline {
    flex: 0 0 auto;
    padding: 5px 11px;
    border: 1px solid #b9cce8;
    border-radius: 5px;
    color: #315fb5;
    background: #fff;
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 600;
}

.copy-inline:hover {
    border-color: #6f96d0;
    background: #f4f8ff;
}

.table-export-bar {
    display: flex;
    justify-content: flex-end;
    margin: 10px 2px 0;
}

.result-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0 18px;
}

.result-fields span {
    padding: 4px 10px;
    border: 1px solid #dce5f2;
    border-radius: 20px;
    color: #3b557a;
    background: #f7faff;
    font-size: 13px;
}

.process-flow {
    display: grid;
    grid-template-columns: repeat(11, auto);
    align-items: stretch;
    gap: 8px;
    margin: 22px 0;
}

.compact-flow {
    grid-template-columns: repeat(7, auto);
}

.flow-step {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 100px;
    padding: 15px 12px;
    text-align: center;
    border: 1px solid #dce5f2;
    border-radius: 9px;
    background: #fff;
}

.flow-step span {
    margin-bottom: 6px;
    color: #7f92b2;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.flow-step strong {
    color: #254b9c;
    font-size: 14px;
}

.flow-step small {
    margin-top: 3px;
    color: #7b8495;
    font-size: 11px;
    line-height: 1.4;
}

.flow-arrow {
    display: flex;
    align-items: center;
    color: #a8b8cf;
    font-size: 14px;
}

.algorithm-list {
    padding-left: 0 !important;
    list-style: none !important;
    counter-reset: algorithm;
}

.algorithm-list li {
    position: relative;
    min-height: 28px;
    padding: 6px 0 14px 42px;
    border-left: 1px solid #dfe7f2;
    margin-left: 13px;
}

.algorithm-list li:last-child {
    border-left-color: transparent;
}

.algorithm-list li::before {
    counter-increment: algorithm;
    content: counter(algorithm);
    position: absolute;
    left: -14px;
    top: 2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 27px;
    height: 27px;
    border-radius: 50%;
    color: #315fb5;
    background: #e9f0fc;
    font-size: 11px;
    font-weight: 800;
}

.algorithm-list strong {
    color: #203451;
}

.code-panel {
    margin: 16px 0 20px;
    overflow: hidden;
    border: 1px solid #203350;
    border-radius: 10px;
    background: #0c1728;
    box-shadow: 0 8px 24px rgba(15, 35, 65, 0.1);
}

.code-panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 14px;
    color: #aebfd7;
    background: #13233a;
    border-bottom: 1px solid #223754;
    font-size: 12px;
}

.copy-code {
    padding: 3px 9px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    color: #c4d4e9;
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
    font: inherit;
}

.copy-code:hover {
    background: rgba(255, 255, 255, 0.1);
}

.code-panel pre {
    margin: 0;
    padding: 17px 18px;
    overflow-x: auto;
    color: #d6e4f6;
    font-family: Consolas, Monaco, "Courier New", monospace;
    font-size: 13px;
    line-height: 1.75;
    white-space: pre;
}

.code-panel code {
    padding: 0;
    color: inherit;
    background: transparent;
    font-size: inherit;
}

.auth-spec {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 18px 0 14px;
    overflow: hidden;
    border: 1px solid #dfe7f3;
    border-radius: 10px;
    background: #fff;
}

.auth-spec > div {
    padding: 14px 16px;
}

.auth-spec > div + div {
    border-left: 1px solid #edf1f7;
}

.auth-spec span {
    display: block;
    margin-bottom: 4px;
    color: #7b8799;
    font-size: 11px;
}

.auth-spec strong {
    color: #254b9c;
    font-size: 14px;
}

.auth-formula {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 14px 0;
    padding: 11px 15px;
    border-radius: 7px;
    border: 1px solid #d9e4f4;
    background: #f4f8ff;
}

.auth-formula span {
    flex: 0 0 auto;
    color: #6980a4;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.09em;
}

.auth-formula code {
    color: #214779;
    background: transparent;
    font-size: 13px;
    overflow-wrap: anywhere;
}

.auth-tool {
    margin: 18px 0;
    padding: 22px;
    border: 1px solid #d8e2f1;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 28px rgba(32, 66, 120, 0.07);
}

.auth-tool-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid #edf1f7;
}

.auth-tool-head span {
    color: #7890b3;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.auth-tool-head h3 {
    margin: 3px 0 0;
    font-size: 20px;
}

.auth-tool-head > i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    color: #fff;
    background: linear-gradient(145deg, #4070d8, #2d56a8);
    box-shadow: 0 7px 16px rgba(48, 89, 169, 0.2);
}

.auth-form-grid {
    display: grid;
    grid-template-columns: 1.15fr 1.15fr 0.8fr;
    gap: 14px;
    margin-top: 18px;
}

.auth-field {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.auth-field > span {
    margin-bottom: 6px;
    color: #263b5b;
    font-size: 13px;
    font-weight: 700;
}

.auth-field input {
    width: 100%;
    height: 43px;
    padding: 0 12px;
    border: 1px solid #cfdaea;
    border-radius: 6px;
    color: #17253a;
    background: #fff;
    font-family: Consolas, Monaco, "Courier New", monospace;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-field input:focus {
    border-color: #5c87ce;
    box-shadow: 0 0 0 3px rgba(64, 112, 216, 0.12);
}

.auth-field input[readonly] {
    color: #557297;
    background: #f1f5fb;
    cursor: not-allowed;
}

.auth-field small {
    min-height: 34px;
    margin-top: 5px;
    color: #7b8799;
    font-size: 11px;
    line-height: 1.55;
}

.auth-actions {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-top: 8px;
}

.primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 164px;
    padding: 10px 18px;
    border: 0;
    border-radius: 6px;
    color: #fff;
    background: linear-gradient(135deg, #315fb5, #214b96);
    box-shadow: 0 6px 16px rgba(37, 75, 156, 0.18);
    cursor: pointer;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
}

.primary-button:hover {
    background: linear-gradient(135deg, #376ccc, #254f9d);
}

.primary-button:disabled {
    opacity: 0.65;
    cursor: wait;
}

.auth-actions > span {
    color: #7b8799;
    font-size: 12px;
}

.auth-message {
    margin-top: 12px;
    padding: 9px 12px;
    border-radius: 6px;
    font-size: 13px;
}

.auth-message:empty {
    display: none;
}

.auth-message.success {
    color: #176149;
    background: #ecfaf5;
    border: 1px solid #d3eee4;
}

.auth-message.error {
    color: #963a3a;
    background: #fff2f2;
    border: 1px solid #f0d7d7;
}

.auth-result {
    margin-top: 15px;
    overflow: hidden;
    border: 1px solid #ceddf1;
    border-radius: 9px;
    background: #f8fbff;
}

.auth-result[hidden] {
    display: none;
}

.auth-result-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid #dde7f4;
    background: #eef5ff;
}

.auth-result-head span:first-child {
    color: #7187a8;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.11em;
}

.auth-result-head h4 {
    margin: 2px 0 0;
    font-size: 16px;
}

.auth-result-badge {
    padding: 3px 8px;
    border-radius: 20px;
    color: #176149;
    background: #dff4eb;
    font-size: 11px;
    font-weight: 700;
}

.auth-values {
    margin: 0;
}

.auth-values > div {
    display: grid;
    grid-template-columns: 90px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 10px 15px;
}

.auth-values > div + div {
    border-top: 1px solid #e5edf7;
}

.auth-values dt {
    color: #64758d;
    font-size: 12px;
    font-weight: 700;
}

.auth-values dd {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    min-width: 0;
    margin: 0;
}

.auth-values dd code {
    color: #183f75;
    background: #fff;
    border: 1px solid #dce6f3;
    overflow-wrap: anywhere;
}

.result-copy {
    margin-left: auto;
}

.validation-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 18px 0;
}

.validation-grid > div {
    position: relative;
    padding: 18px;
    border-radius: 9px;
    border: 1px solid #dfe7f2;
    background: #fff;
}

.validation-grid > div > span {
    color: #c4d2e6;
    font-size: 25px;
    font-weight: 800;
    line-height: 1;
}

.validation-grid strong {
    display: block;
    margin: 7px 0 4px;
    color: #254b9c;
}

.validation-grid p {
    margin: 0;
    color: #647084;
    font-size: 13px;
    line-height: 1.7;
}

.faq-list {
    margin: 14px 0 26px;
    border-top: 1px solid #e2e8f1;
}

.faq-list details {
    border-bottom: 1px solid #e2e8f1;
    background: #fff;
}

.faq-list summary {
    position: relative;
    padding: 15px 44px 15px 8px;
    color: #233b5d;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}

.faq-list summary::-webkit-details-marker {
    display: none;
}

.faq-list summary::after {
    content: "+";
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #6e8fc3;
    font-size: 20px;
    font-weight: 400;
}

.faq-list details[open] summary::after {
    content: "−";
}

.faq-list details p {
    padding: 0 42px 16px 8px;
    margin: 0;
    color: #5b6575;
    line-height: 1.8;
}

.support-card {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    margin-top: 16px;
    overflow: hidden;
    border: 1px solid #dfe7f3;
    border-radius: 10px;
    background: #fff;
}

.support-card > div {
    padding: 18px 22px;
}

.support-card > div + div {
    border-left: 1px solid #edf1f7;
}

.support-card span {
    display: block;
    margin-bottom: 5px;
    color: #7c8799;
    font-size: 12px;
}

.support-card a {
    color: #315fb5;
    font-weight: 600;
}

.support-card p {
    margin: 0;
    color: #334155;
}

@media (max-width: 1180px) {
    .process-flow {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .compact-flow {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .flow-arrow {
        display: none;
    }

    .flow-step {
        min-width: 0;
    }
}

@media (max-width: 1024px) {
    .manual-cover {
        padding: 42px 34px 38px;
    }

    .overview-grid,
    .query-grid,
    .validation-grid {
        grid-template-columns: 1fr;
    }

    .overview-card {
        min-height: 0;
    }

    .overview-card p {
        min-height: 0;
    }

    .metric-strip {
        grid-template-columns: 1fr;
    }

    .metric-strip > div + div {
        border-top: 1px solid #edf1f7;
        border-left: 0;
    }

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

    .auth-spec > div:nth-child(3) {
        border-left: 0;
        border-top: 1px solid #edf1f7;
    }

    .auth-spec > div:nth-child(4) {
        border-top: 1px solid #edf1f7;
    }

    .auth-form-grid {
        grid-template-columns: 1fr;
    }

    .auth-field small {
        min-height: 0;
    }
}

@media (max-width: 768px) {
    html {
        scroll-behavior: auto;
    }

    .device-manual-body {
        height: auto;
        min-height: 100vh;
        display: block;
        overflow: visible;
    }

    .manual-sidebar {
        position: static;
        width: 100%;
        height: auto;
        max-height: none;
        padding: 14px 18px;
        border-right: 0;
        border-bottom: 1px solid #e2e5eb;
    }

    .manual-sidebar h2 {
        margin-bottom: 9px;
    }

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

    .manual-main {
        margin-left: 0;
        padding: 20px 18px 36px;
        min-height: auto;
        overflow: visible;
    }

    .manual-cover {
        padding: 34px 24px 30px;
        border-radius: 12px;
    }

    .manual-cover::after {
        display: none;
    }

    .cover-subtitle {
        font-size: 15px;
    }

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

    .term-list > div,
    .lifecycle-list > div {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .support-card {
        grid-template-columns: 1fr;
    }

    .support-card > div + div {
        border-top: 1px solid #edf1f7;
        border-left: 0;
    }

    .enterprise-id-card {
        align-items: flex-start;
    }

    .enterprise-id-card > div {
        flex-direction: column;
        align-items: flex-start;
        gap: 7px;
    }

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

    .primary-button {
        width: 100%;
    }

    .auth-values > div {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .result-copy {
        margin-left: 0;
    }

    .figure-placeholder {
        min-height: 190px;
    }
}

@media (max-width: 480px) {
    .process-flow,
    .compact-flow {
        grid-template-columns: 1fr;
    }

    .dialogue-row {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .dialogue-row > span {
        width: fit-content;
    }

    .manual-main {
        padding-left: 14px;
        padding-right: 14px;
    }

    .manual-cover {
        padding: 28px 18px 26px;
    }

    .cover-meta {
        gap: 7px;
    }

    .auth-spec {
        grid-template-columns: 1fr;
    }

    .auth-spec > div + div {
        border-left: 0;
        border-top: 1px solid #edf1f7;
    }

    .auth-tool {
        padding: 17px 15px;
    }
}

@media print {
    .device-manual-body {
        display: block;
        height: auto;
        background: #fff;
    }

    .navbar-wrapper,
    .manual-sidebar,
    .chat-floater,
    .back-top,
    .copy-code {
        display: none !important;
    }

    .manual-main {
        margin: 0;
        padding: 0;
        overflow: visible;
    }

    .manual-cover {
        break-after: page;
        box-shadow: none;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .manual-main h2 {
        break-before: page;
    }

    .overview-card,
    .figure-placeholder,
    .callout,
    .command-block,
    table,
    .code-panel {
        break-inside: avoid;
    }

    .faq-list details {
        display: block;
    }

    .faq-list details > p {
        display: block;
    }
}
