@import url("/css/fonts.css");

:root {
    --site-copy-font: "思源黑体", "Source Han Sans SC", "Source Han Sans CN", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
    --site-display-font: "思源黑体", "Source Han Sans SC", "Source Han Sans CN", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
    --site-bg: #edf2fb;
    --site-bg-strong: #0f172a;
    --site-surface: rgba(255, 255, 255, 0.78);
    --site-surface-strong: rgba(255, 255, 255, 0.92);
    --site-surface-dark: rgba(13, 20, 36, 0.82);
    --site-surface-dark-strong: rgba(14, 23, 43, 0.92);
    --site-border: rgba(148, 163, 184, 0.18);
    --site-border-strong: rgba(255, 255, 255, 0.16);
    --site-text: #0f172a;
    --site-text-soft: #475569;
    --site-text-muted: #64748b;
    --site-text-inverse: rgba(248, 250, 252, 0.94);
    --site-text-inverse-soft: rgba(226, 232, 240, 0.76);
    --site-primary: #111827;
    --site-primary-strong: #0b1222;
    --site-accent: #60a5fa;
    --site-accent-strong: #2563eb;
    --site-accent-soft: rgba(96, 165, 250, 0.14);
    --site-success: #15803d;
    --site-warning: #d97706;
    --site-danger: #dc2626;
    --site-shadow-soft: 0 28px 60px rgba(15, 23, 42, 0.08);
    --site-shadow-strong: 0 32px 90px rgba(15, 23, 42, 0.16);
    --site-shadow-dark: 0 40px 110px rgba(2, 6, 23, 0.34);
    --site-radius-xl: 38px;
    --site-radius-lg: 28px;
    --site-radius-md: 20px;
    --site-radius-sm: 14px;
    --site-page-width: min(1320px, calc(100% - 40px));
    --site-reading-width: min(1240px, calc(100% - 40px));
    --site-transition-base: 320ms cubic-bezier(0.22, 1, 0.36, 1);
    --site-transition-fast: 160ms cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
    scroll-behavior: auto;
}

body {
    margin: 0;
    color: var(--site-text);
    font-family: var(--site-copy-font);
    background:
        radial-gradient(circle at 8% 10%, rgba(148, 163, 184, 0.16), transparent 26%),
        radial-gradient(circle at 86% 8%, rgba(96, 165, 250, 0.16), transparent 24%),
        linear-gradient(180deg, #f8fafc 0%, #edf2fb 40%, #e7eef8 100%);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.is-ready {
    opacity: 1;
}

body.home-page,
body.docs-page,
body.legal-page,
body.remote-page,
body.admin-dashboard-page,
body.admin-login-page {
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

button,
input,
textarea,
select {
    font: inherit;
}

.site-aura {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 16% 18%, rgba(255, 255, 255, 0.72), transparent 26%),
        radial-gradient(circle at 84% 22%, rgba(255, 255, 255, 0.48), transparent 30%);
    opacity: 0.92;
    z-index: 0;
}

.site-topbar,
.site-shell,
.legal-shell,
.remote-shell,
.site-footer {
    position: relative;
    z-index: 1;
}

.site-topbar {
    position: sticky;
    top: 12px;
    z-index: 40;
    padding: 16px 0 0;
    transition: transform var(--site-transition-fast);
}

.site-topbar-inner {
    width: var(--site-page-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 78px;
    padding: 14px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.74);
    box-shadow: var(--site-shadow-soft);
    backdrop-filter: blur(18px) saturate(170%);
    transition:
        background var(--site-transition-fast),
        border-color var(--site-transition-fast),
        box-shadow var(--site-transition-fast),
        min-height var(--site-transition-fast),
        transform var(--site-transition-fast);
}

.site-topbar.is-compact .site-topbar-inner {
    min-height: 70px;
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(148, 163, 184, 0.22);
    box-shadow: 0 24px 52px rgba(15, 23, 42, 0.12);
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.site-brand-mark {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: linear-gradient(145deg, #111827, #334155);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.08em;
    box-shadow: 0 18px 28px rgba(15, 23, 42, 0.18);
}

.site-brand-copy {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.site-brand-copy strong {
    font-size: 15px;
    letter-spacing: -0.02em;
}

.site-brand-copy span {
    font-size: 12px;
    color: var(--site-text-soft);
}

.site-link-set,
.site-footer-links {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.site-link-pill,
.site-button,
.site-button-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 15px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 13px;
    font-weight: 700;
    transition:
        transform var(--site-transition-fast),
        background var(--site-transition-fast),
        border-color var(--site-transition-fast),
        box-shadow var(--site-transition-fast),
        color var(--site-transition-fast);
}

.site-link-pill,
.site-button-secondary {
    color: var(--site-text-soft);
    background: rgba(255, 255, 255, 0.78);
    border-color: rgba(148, 163, 184, 0.16);
}

.site-button {
    color: #fff;
    background: linear-gradient(135deg, var(--site-primary), var(--site-primary-strong));
    box-shadow: 0 18px 30px rgba(15, 23, 42, 0.18);
}

.site-link-pill:hover,
.site-button:hover,
.site-button-secondary:hover {
    transform: translateY(-1px);
}

.site-shell,
.legal-shell,
.remote-shell {
    width: var(--site-reading-width);
    margin: 0 auto;
}

.site-shell {
    padding: 34px 0 44px;
}

.docs-shell,
.remote-shell {
    padding-top: 32px;
    padding-bottom: 44px;
}

.legal-shell {
    padding: 32px 0 44px;
    display: grid;
    gap: 22px;
}

.site-card {
    padding: 28px;
    border-radius: var(--site-radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.78);
    background: linear-gradient(180deg, var(--site-surface-strong), var(--site-surface));
    box-shadow: var(--site-shadow-soft);
    backdrop-filter: blur(18px) saturate(160%);
}

.site-card-strong {
    background:
        linear-gradient(180deg, rgba(11, 17, 32, 0.94), rgba(16, 24, 43, 0.86)),
        linear-gradient(135deg, rgba(96, 165, 250, 0.18), transparent 60%);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: var(--site-shadow-dark);
    color: var(--site-text-inverse);
}

.site-card-strong .site-kicker,
.site-card-strong .site-link-pill {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
    color: var(--site-text-inverse-soft);
}

.site-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 31px;
    width: fit-content;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(148, 163, 184, 0.2);
    color: var(--site-text-soft);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.site-section-title {
    margin: 16px 0 0;
    font-family: var(--site-display-font);
    font-size: clamp(34px, 4.2vw, 54px);
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.site-section-copy {
    margin: 18px 0 0;
    max-width: 780px;
    color: var(--site-text-soft);
    font-size: 15px;
    line-height: 1.86;
}

.site-card-strong .site-section-copy {
    color: var(--site-text-inverse-soft);
}

.site-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 12px;
}

.site-list li {
    position: relative;
    padding-left: 20px;
    color: var(--site-text-soft);
    line-height: 1.8;
}

.site-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 11px;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--site-accent), var(--site-accent-strong));
}

.docs-hero,
.legal-header,
.remote-story {
    position: relative;
    overflow: hidden;
}

.docs-hero::after,
.legal-header::after,
.remote-story::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 72% 12%, rgba(96, 165, 250, 0.18), transparent 28%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 34%);
}

.site-support-widget {
    position: fixed;
    right: 26px;
    bottom: 26px;
    z-index: 64;
    display: flex;
    align-items: flex-end;
    gap: 14px;
    pointer-events: none;
}

.site-support-widget > * {
    pointer-events: auto;
}

.site-support-launcher {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    background:
        radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.24), transparent 48%),
        linear-gradient(135deg, #4f7df8, #6d5ef8);
    box-shadow:
        0 22px 40px rgba(37, 99, 235, 0.26),
        inset 0 1px 0 rgba(255, 255, 255, 0.24);
    color: #fff;
    cursor: pointer;
    transition:
        transform var(--site-transition-fast),
        box-shadow var(--site-transition-fast),
        filter var(--site-transition-fast);
}

.site-support-launcher:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow:
        0 28px 48px rgba(37, 99, 235, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.site-support-launcher:focus-visible,
.site-support-close:focus-visible {
    outline: none;
    box-shadow:
        0 0 0 4px rgba(96, 165, 250, 0.22),
        0 20px 40px rgba(37, 99, 235, 0.26);
}

.site-support-icon {
    width: 32px;
    height: 32px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.site-support-popover {
    width: min(318px, calc(100vw - 128px));
    padding: 18px;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background:
        linear-gradient(180deg, rgba(12, 17, 32, 0.96), rgba(13, 20, 35, 0.92)),
        radial-gradient(circle at top right, rgba(96, 165, 250, 0.18), transparent 36%);
    box-shadow: 0 28px 60px rgba(2, 6, 23, 0.42);
    backdrop-filter: blur(22px) saturate(135%);
    color: var(--site-text-inverse);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px) scale(0.96);
    transform-origin: right bottom;
    transition:
        opacity var(--site-transition-fast),
        transform var(--site-transition-fast),
        visibility var(--site-transition-fast);
}

.site-support-widget.is-open .site-support-popover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.site-support-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.site-support-title-group {
    min-width: 0;
}

.site-support-eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(96, 165, 250, 0.12);
    border: 1px solid rgba(96, 165, 250, 0.24);
    color: rgba(191, 219, 254, 0.94);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.site-support-title {
    display: block;
    margin-top: 10px;
    font-size: 19px;
    line-height: 1.2;
    letter-spacing: -0.03em;
}

.site-support-close {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--site-text-inverse-soft);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    transition:
        background var(--site-transition-fast),
        color var(--site-transition-fast),
        transform var(--site-transition-fast);
}

.site-support-close:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-1px);
}

.site-support-grid {
    display: grid;
    gap: 12px;
}

.site-support-card {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 12px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.045);
}

.site-support-popover.is-single .site-support-card,
.site-support-card:only-child {
    grid-template-columns: 104px minmax(0, 1fr);
}

.site-support-qr-wrap {
    padding: 8px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.66);
}

.site-support-qr {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 12px;
}

.site-support-copy {
    min-width: 0;
}

.site-support-card-title {
    margin: 0;
    font-size: 16px;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.site-support-card-copy {
    margin: 8px 0 0;
    color: var(--site-text-inverse-soft);
    font-size: 13px;
    line-height: 1.7;
}

@media (max-width: 720px) {
    .site-support-widget {
        right: 16px;
        bottom: 16px;
        gap: 10px;
    }

    .site-support-launcher {
        width: 62px;
        height: 62px;
    }

    .site-support-icon {
        width: 28px;
        height: 28px;
    }

    .site-support-popover {
        width: min(292px, calc(100vw - 96px));
        padding: 16px;
        border-radius: 24px;
    }

    .site-support-card {
        grid-template-columns: 84px minmax(0, 1fr);
    }
}

@media (max-width: 560px) {
    .site-support-widget {
        right: 14px;
        left: 14px;
        bottom: 14px;
        justify-content: flex-end;
    }

    .site-support-popover {
        width: min(280px, calc(100vw - 96px));
    }

    .site-support-head {
        margin-bottom: 12px;
    }

    .site-support-card {
        grid-template-columns: 72px minmax(0, 1fr);
        gap: 10px;
        border-radius: 18px;
    }

    .site-support-card-title {
        font-size: 15px;
    }

    .site-support-card-copy {
        font-size: 12px;
        line-height: 1.6;
    }
}

.docs-meta,
.legal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.docs-layout {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 20px;
    margin-top: 22px;
}

.docs-sidebar,
.docs-content,
.legal-content {
    min-width: 0;
}

.docs-sidebar {
    position: sticky;
    top: 108px;
    align-self: start;
    display: grid;
    gap: 18px;
}

.docs-nav {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

.docs-nav a {
    padding: 13px 14px;
    border-radius: 16px;
    color: var(--site-text-soft);
    background: rgba(255, 255, 255, 0.66);
    border: 1px solid rgba(148, 163, 184, 0.14);
    transition:
        transform var(--site-transition-fast),
        background var(--site-transition-fast),
        border-color var(--site-transition-fast),
        box-shadow var(--site-transition-fast),
        color var(--site-transition-fast);
}

.docs-nav a:hover {
    color: var(--site-text);
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(96, 165, 250, 0.18);
    box-shadow: 0 14px 26px rgba(15, 23, 42, 0.06);
    transform: translateY(-1px);
}

.support-card {
    display: grid;
    gap: 12px;
    padding: 18px;
    border-radius: var(--site-radius-lg);
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(148, 163, 184, 0.12);
}

.support-card strong {
    font-size: 16px;
}

.support-card p {
    margin: 0;
    color: var(--site-text-soft);
    line-height: 1.8;
}

.support-card img {
    border-radius: 22px;
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.12);
}

.docs-content {
    display: grid;
    gap: 20px;
}

.doc-section {
    padding: 22px 22px 24px;
    border-radius: var(--site-radius-lg);
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.12);
}

.doc-section h3,
.legal-section h2,
.remote-story h1 {
    margin: 0;
    font-family: var(--site-display-font);
    letter-spacing: -0.05em;
}

.doc-section h3 {
    font-size: 28px;
    line-height: 1.02;
}

.doc-section p,
.doc-list li,
.legal-section p,
.legal-section li,
.remote-story p,
.remote-help-card p,
.remote-mini-card p {
    color: var(--site-text-soft);
    line-height: 1.86;
}

.doc-section p {
    margin: 14px 0 0;
}

.subheading {
    margin-top: 18px;
    font-size: 18px;
    font-weight: 700;
    color: var(--site-text);
}

.doc-list,
.legal-section ul {
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}

.doc-list li,
.legal-section li {
    position: relative;
    padding: 14px 16px 14px 18px;
    border-radius: 18px;
    background: rgba(248, 250, 252, 0.88);
    border: 1px solid rgba(148, 163, 184, 0.12);
}

.doc-list li::before,
.legal-section li::before {
    content: "";
    position: absolute;
    left: 9px;
    top: 19px;
    width: 4px;
    height: 16px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--site-accent), var(--site-accent-strong));
}

.legal-header,
.legal-content {
    padding: 30px;
}

.legal-summary {
    margin: 0 0 22px;
    padding: 18px 20px;
    border-radius: var(--site-radius-lg);
    background: rgba(96, 165, 250, 0.08);
    color: var(--site-text);
    line-height: 1.88;
}

.legal-section + .legal-section {
    margin-top: 24px;
}

.legal-section h2 {
    font-size: 28px;
    line-height: 1.04;
}

.legal-section p {
    margin: 14px 0 0;
}

.legal-section a {
    color: var(--site-accent-strong);
    font-weight: 700;
}

.remote-shell {
    display: grid;
    gap: 22px;
}

.remote-stage {
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(360px, 0.96fr);
    align-items: start;
    gap: 22px;
}

.remote-story h1 {
    margin-top: 18px;
    font-size: clamp(34px, 4.1vw, 48px);
    line-height: 1.02;
    color: var(--site-text-inverse);
}

.remote-story p {
    margin: 18px 0 0;
    max-width: 860px;
    color: var(--site-text-inverse-soft);
}

.remote-story-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    margin-top: 24px;
}

.remote-help-card,
.remote-mini-card {
    padding: 20px;
    border-radius: var(--site-radius-lg);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(18px);
}

.remote-story-secondary {
    position: relative;
    min-height: 100%;
    background:
        radial-gradient(circle at 14% 12%, rgba(96, 165, 250, 0.12), transparent 26%),
        linear-gradient(160deg, rgba(11, 18, 34, 0.92), rgba(15, 23, 42, 0.82));
    border-color: rgba(255, 255, 255, 0.09);
    box-shadow: 0 24px 48px rgba(2, 6, 23, 0.2);
}

.remote-tip-card {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.remote-tip-card .site-list {
    display: grid;
    gap: 10px;
    padding-left: 20px;
}

.remote-tip-card .site-list li {
    line-height: 1.78;
}

.remote-context-card {
    background: rgba(255, 255, 255, 0.07);
}

.remote-help-card strong,
.remote-mini-card strong {
    display: block;
    font-size: 18px;
    color: var(--site-text-inverse);
}

.remote-help-card p,
.remote-mini-card p {
    margin: 12px 0 0;
    color: rgba(226, 232, 240, 0.82);
}

.remote-help-card img {
    margin-top: 16px;
    width: 100%;
    border-radius: 24px;
    box-shadow: 0 22px 44px rgba(2, 6, 23, 0.22);
}

.remote-panel-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    position: relative;
    z-index: 1;
}

.remote-panel-wrap .control-card,
.remote-panel-wrap .card,
.remote-panel-wrap .main-card {
    padding: 28px;
    border-radius: var(--site-radius-xl);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.8));
    border: 1px solid rgba(255, 255, 255, 0.74);
    box-shadow: var(--site-shadow-soft);
    backdrop-filter: blur(18px);
}

.remote-login-card {
    border-color: rgba(255, 255, 255, 0.82);
    box-shadow: 0 28px 58px rgba(15, 23, 42, 0.14);
}

.remote-main-card {
    box-shadow: 0 24px 44px rgba(15, 23, 42, 0.1);
}

.remote-panel-wrap h1,
.remote-panel-wrap .card h1,
.remote-panel-wrap .control-card h1 {
    margin: 16px 0 0;
    font-family: var(--site-display-font);
    font-size: clamp(28px, 3.6vw, 40px);
    line-height: 0.98;
    letter-spacing: -0.05em;
}

.remote-panel-wrap .control-sub,
.remote-panel-wrap .sub,
.remote-panel-wrap .hint {
    color: var(--site-text-soft);
    line-height: 1.82;
}

.remote-panel-wrap .control-sub,
.remote-panel-wrap .sub {
    margin: 14px 0 0;
}

.remote-login-card h1 {
    margin-top: 14px;
}

.remote-login-card .control-sub {
    margin-top: 12px;
    line-height: 1.76;
}

.remote-panel-wrap .field,
.remote-panel-wrap .memory-field {
    display: grid;
    gap: 8px;
    margin-top: 16px;
}

.remote-login-card .field {
    margin-top: 14px;
}

.remote-panel-wrap .field label,
.remote-panel-wrap .memory-field label {
    font-size: 13px;
    font-weight: 700;
    color: var(--site-text);
}

.remote-panel-wrap .field input,
.remote-panel-wrap .field select,
.remote-panel-wrap .memory-field input {
    width: 100%;
    min-height: 54px;
    padding: 0 16px;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.02);
    transition:
        border-color var(--site-transition-fast),
        box-shadow var(--site-transition-fast),
        transform var(--site-transition-fast);
}

.remote-panel-wrap .field input:focus,
.remote-panel-wrap .field select:focus,
.remote-panel-wrap .memory-field input:focus {
    outline: none;
    border-color: rgba(37, 99, 235, 0.28);
    box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.14);
}

.remote-panel-wrap .btn-primary,
.remote-panel-wrap .btn-connect,
.remote-panel-wrap .memory-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 18px;
    border: 0;
    border-radius: 999px;
    font-weight: 800;
    transition:
        transform var(--site-transition-fast),
        box-shadow var(--site-transition-fast),
        opacity var(--site-transition-fast),
        background var(--site-transition-fast);
}

.remote-panel-wrap .btn-primary,
.remote-panel-wrap .btn-connect {
    color: #fff;
    background: linear-gradient(135deg, var(--site-primary), var(--site-primary-strong));
    box-shadow: 0 20px 34px rgba(15, 23, 42, 0.18);
}

.remote-panel-wrap .btn-full {
    width: 100%;
    margin-top: 18px;
}

.remote-login-card .btn-full {
    margin-top: 16px;
}

.remote-panel-wrap .memory-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.remote-panel-wrap .memory-btn {
    color: var(--site-text);
    background: rgba(15, 23, 42, 0.06);
}

.remote-panel-wrap .btn-primary:hover,
.remote-panel-wrap .btn-connect:hover,
.remote-panel-wrap .memory-btn:hover {
    transform: translateY(-1px);
}

.remote-panel-wrap .status-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
    padding: 12px 15px;
    border-radius: 999px;
    background: rgba(248, 250, 252, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.16);
    font-size: 13px;
    font-weight: 700;
}

.remote-panel-wrap .dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #94a3b8;
    box-shadow: 0 0 0 6px rgba(148, 163, 184, 0.12);
}

.remote-panel-wrap .dot.connected {
    background: var(--site-success);
    box-shadow: 0 0 0 6px rgba(21, 128, 61, 0.14);
}

.remote-panel-wrap .dot.disconnected {
    background: var(--site-danger);
    box-shadow: 0 0 0 6px rgba(220, 38, 38, 0.12);
}

.remote-panel-wrap .switch-area {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 18px;
    padding: 16px 18px;
    border-radius: 22px;
    background: rgba(248, 250, 252, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.14);
}

.remote-panel-wrap .switch-label {
    font-size: 14px;
    font-weight: 700;
}

.remote-panel-wrap .switch {
    position: relative;
    width: 68px;
    height: 38px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.28);
    cursor: pointer;
    transition: background var(--site-transition-fast);
}

.remote-panel-wrap .switch .knob {
    position: absolute;
    top: 5px;
    left: 5px;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 10px 18px rgba(15, 23, 42, 0.16);
    transition: transform var(--site-transition-fast);
}

.remote-panel-wrap .switch.on {
    background: rgba(37, 99, 235, 0.8);
}

.remote-panel-wrap .switch.on .knob {
    transform: translateX(30px);
}

.remote-panel-wrap .order-box {
    margin-top: 18px;
    padding: 18px 20px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.9));
    border: 1px solid rgba(148, 163, 184, 0.14);
}

.remote-panel-wrap .order-title {
    color: var(--site-text-soft);
    font-size: 13px;
}

.remote-panel-wrap .order-number {
    margin-top: 8px;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.remote-panel-wrap .hint {
    margin-top: 18px;
}

.sidebar-toggle {
    justify-self: start;
    min-height: 42px;
    padding: 0 14px;
    border: 0;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.06);
    font-weight: 700;
}

.sidebar-overlay {
    position: fixed;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    background: rgba(15, 23, 42, 0.36);
    transition: opacity var(--site-transition-fast);
    z-index: 50;
}

.sidebar-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: min(380px, 100%);
    height: 100vh;
    padding: 24px;
    background: rgba(255, 255, 255, 0.92);
    border-left: 1px solid rgba(255, 255, 255, 0.78);
    box-shadow: -28px 0 80px rgba(15, 23, 42, 0.16);
    backdrop-filter: blur(18px);
    transform: translateX(100%);
    transition: transform var(--site-transition-base);
    z-index: 60;
    overflow-y: auto;
}

.sidebar.open {
    transform: translateX(0);
}

.sidebar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.sidebar-head h3 {
    margin: 0;
    font-size: 22px;
    letter-spacing: -0.04em;
}

.close-sidebar {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    border: 0;
    background: rgba(15, 23, 42, 0.06);
    font-size: 18px;
}

.history-title {
    margin-top: 22px;
    font-size: 13px;
    font-weight: 800;
    color: var(--site-text-soft);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.history-list {
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 12px;
}

.history-item {
    padding: 15px 16px;
    border-radius: 18px;
    background: rgba(248, 250, 252, 0.94);
    border: 1px solid rgba(148, 163, 184, 0.14);
    cursor: pointer;
    transition:
        transform var(--site-transition-fast),
        border-color var(--site-transition-fast),
        box-shadow var(--site-transition-fast);
}

.history-item:hover {
    transform: translateY(-1px);
    border-color: rgba(96, 165, 250, 0.2);
    box-shadow: 0 18px 30px rgba(15, 23, 42, 0.08);
}

.history-item .remark {
    font-weight: 700;
}

.history-item .code-device,
.history-item .time {
    margin-top: 6px;
    color: var(--site-text-soft);
    font-size: 13px;
}

.site-footer {
    width: var(--site-page-width);
    margin: 0 auto;
    padding: 0 0 26px;
}

.site-footer-meta,
.site-footer .footer-bottom {
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(255, 255, 255, 0.78);
    box-shadow: var(--site-shadow-soft);
    backdrop-filter: blur(18px);
}

.site-footer-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    color: var(--site-text-soft);
}

.site-footer .footer-bottom {
    margin-top: 12px;
    padding: 12px 20px;
    text-align: center;
    color: var(--site-text-soft);
    font-size: 13px;
}

.notification {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 100;
    display: none;
}

@media (max-width: 1100px) {
    .docs-layout,
    .remote-story-grid {
        grid-template-columns: 1fr;
    }

    .docs-sidebar {
        position: static;
    }
}

@media (max-width: 960px) {
    .remote-stage {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .site-topbar-inner,
    .site-footer,
    .site-shell,
    .legal-shell,
    .remote-shell {
        width: min(100% - 24px, 100%);
    }

    .site-topbar-inner,
    .site-footer-meta,
    .legal-header,
    .legal-content,
    .remote-panel-wrap .control-card,
    .remote-panel-wrap .card,
    .remote-panel-wrap .main-card,
    .site-card {
        padding-left: 22px;
        padding-right: 22px;
    }

    .site-topbar-inner {
        border-radius: 28px;
        align-items: flex-start;
        flex-direction: column;
    }

    .site-link-set {
        width: 100%;
    }
}

@media (max-width: 720px) {
    .site-shell,
    .legal-shell,
    .remote-shell {
        padding-top: 24px;
        padding-bottom: 32px;
    }

    .site-card,
    .legal-header,
    .legal-content,
    .remote-panel-wrap .control-card,
    .remote-panel-wrap .card,
    .remote-panel-wrap .main-card {
        padding: 22px;
        border-radius: 28px;
    }

    .site-section-title,
    .remote-story h1 {
        font-size: clamp(30px, 9vw, 42px);
    }

    .site-footer-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .remote-panel-wrap .memory-actions,
    .site-link-set,
    .site-footer-links {
        width: 100%;
    }

    .remote-panel-wrap .memory-btn,
    .site-link-pill,
    .site-button,
    .site-button-secondary {
        flex: 1 1 calc(50% - 6px);
    }
}

@media (max-width: 560px) {
    :root {
        --site-page-width: min(100% - 20px, 100%);
        --site-reading-width: min(100% - 20px, 100%);
    }

    .site-topbar {
        top: 8px;
        padding-top: 10px;
    }

    .site-topbar-inner,
    .site-card,
    .legal-header,
    .legal-content,
    .remote-panel-wrap .control-card,
    .remote-panel-wrap .card,
    .remote-panel-wrap .main-card,
    .site-footer-meta,
    .site-footer .footer-bottom {
        padding: 18px;
    }

    .site-link-pill,
    .site-button,
    .site-button-secondary,
    .remote-panel-wrap .memory-btn {
        flex-basis: 100%;
    }

    .docs-nav a,
    .doc-list li,
    .legal-section li,
    .history-item {
        border-radius: 16px;
    }

    .sidebar {
        padding: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}
