@font-face {
    font-family: "fangsong";
    src: url("../assets/fonts/FS_GB2312.TTF") format("woff2");
    font-display: swap;
}

:root {
    --md-text-font: "fangsong";
    --site-text: rgba(255, 255, 255, 0.92);
    --site-text-soft: rgba(255, 255, 255, 0.72);
    --site-text-muted: rgba(255, 255, 255, 0.54);
    --site-icon: rgba(255, 255, 255, 0.86);
    --site-link: rgba(255, 255, 255, 0.96);
    /* --site-selected: #b6c1fa; */
    --site-selected: #0dfcff;
    --site-accent: rgba(255, 255, 255, 0.98);
    --site-spotlight-text: rgba(8, 12, 10, 0.9);
    --site-line: rgba(255, 255, 255, 0.2);
    --site-line-strong: rgba(255, 255, 255, 0.46);
    --site-page-bg: #07120f;
    --site-rain-opacity: 0.95;
    --site-rain-filter: brightness(0.92) saturate(1.08) contrast(1.04);
    --site-glass-bg:
        radial-gradient(110% 78% at 9% 0%, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0.052) 42%, rgba(255, 255, 255, 0.012) 72%),
        radial-gradient(64% 48% at 100% 12%, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.024) 54%, transparent 78%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.082), rgba(255, 255, 255, 0.022));
    --site-glass-bg-quiet:
        radial-gradient(80% 140% at 18% 0%, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.035) 42%, transparent 72%),
        radial-gradient(64% 120% at 100% 10%, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.02) 52%, transparent 78%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.095), rgba(244, 248, 239, 0.042) 52%, rgba(0, 0, 0, 0.035));
    --site-content-glass-bg:
        radial-gradient(110% 78% at 9% 0%, rgba(255, 255, 255, 0.44), rgba(240, 244, 242, 0.36) 42%, rgba(224, 230, 227, 0.28) 72%),
        radial-gradient(64% 48% at 100% 12%, rgba(255, 255, 255, 0.3), rgba(238, 243, 240, 0.2) 54%, rgba(218, 226, 222, 0.14) 78%),
        linear-gradient(145deg, rgba(238, 242, 240, 0.52), rgba(218, 224, 221, 0.34));
    --site-glass-border: rgba(255, 255, 255, 0.42);
    --site-glass-border-strong: rgba(255, 255, 255, 0.72);
    --site-glass-highlight:
        linear-gradient(115deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.024) 27%, rgba(255, 255, 255, 0.16) 48%, rgba(255, 255, 255, 0.012) 72%),
        radial-gradient(36% 22% at 15% 0%, rgba(255, 255, 255, 0.62), transparent 78%),
        radial-gradient(42% 30% at 100% 100%, rgba(255, 255, 255, 0.09), transparent 70%);
    --site-glass-highlight-opacity: 0.5;
    --site-glass-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.64),
        inset 0 0 18px rgba(255, 255, 255, 0.14),
        inset 0 -12px 24px rgba(0, 0, 0, 0.02),
        0 10px 34px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.18);
    --site-glass-filter: blur(7px) saturate(1.18) contrast(1.1) brightness(1.08);
    --site-content-glass-filter: blur(12px) saturate(1.06) contrast(1.02) brightness(1.02);
    --site-control-bg: linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.05));
    --site-control-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.34),
        0 8px 22px rgba(0, 0, 0, 0.08);
    --site-liquid-control-bg:
        radial-gradient(140% 145% at 14% 0%, rgba(255, 255, 255, 0.46), rgba(255, 255, 255, 0.15) 34%, rgba(255, 255, 255, 0.075) 58%, rgba(255, 255, 255, 0.12)),
        linear-gradient(135deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.085) 46%, rgba(218, 228, 223, 0.16));
    --site-liquid-control-bg-strong:
        radial-gradient(150% 155% at 18% 0%, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.2) 34%, rgba(255, 255, 255, 0.095) 58%, rgba(255, 255, 255, 0.14)),
        linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.11) 46%, rgba(228, 236, 232, 0.2));
    --site-liquid-control-border: rgba(255, 255, 255, 0.34);
    --site-liquid-control-border-strong: rgba(255, 255, 255, 0.76);
    --site-liquid-control-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.72),
        inset 0 -14px 24px rgba(8, 12, 10, 0.05),
        0 16px 38px rgba(0, 0, 0, 0.12),
        0 0 0 1px rgba(255, 255, 255, 0.12);
    --site-liquid-control-shadow-hover:
        inset 0 1px 0 rgba(255, 255, 255, 0.92),
        inset 0 0 24px rgba(255, 255, 255, 0.16),
        0 18px 42px rgba(0, 0, 0, 0.16),
        0 0 0 1px rgba(255, 255, 255, 0.22);
    --site-liquid-control-filter: blur(16px) saturate(1.24) contrast(1.05) brightness(1.08);
    --site-code-bg: rgba(0, 0, 0, 0.28);
    --site-code-block-bg:
        radial-gradient(110% 78% at 9% 0%, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0.09) 42%, rgba(255, 255, 255, 0.03) 72%),
        radial-gradient(64% 48% at 100% 12%, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.04) 54%, transparent 78%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.07));
    --site-code-nav-bg:
        radial-gradient(100% 160% at 10% 0%, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.07) 48%, transparent 78%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.05));
    --site-code-filter: blur(18px) saturate(1.1) contrast(1.03) brightness(0.92);
    --site-code-button-bg: rgba(255, 255, 255, 0.08);
    --site-code-button-bg-hover: rgba(255, 255, 255, 0.16);
    --site-code-button-border: rgba(255, 255, 255, 0.24);
    --site-code-button-border-hover: rgba(255, 255, 255, 0.48);
    --site-code-button-color: var(--site-text-soft);
    --site-code-button-color-hover: var(--site-link);
    --site-code-text: rgba(255, 255, 255, 0.92);
    --md-default-fg-color: var(--site-text);
    --md-default-fg-color--light: var(--site-text-soft);
    --md-default-fg-color--lighter: var(--site-text-muted);
    --md-default-bg-color: var(--site-page-bg);
    --md-default-bg-color--light: rgba(7, 18, 15, 0.92);
    --md-default-bg-color--lighter: rgba(7, 18, 15, 0.72);
    --md-default-bg-color--lightest: rgba(7, 18, 15, 0.48);
    --md-accent-fg-color: var(--site-selected);
    --md-typeset-color: var(--site-text);
}

[data-md-color-scheme="slate"] {
    --site-text: rgba(243, 239, 230, 0.92);
    --site-text-soft: rgba(243, 239, 230, 0.7);
    --site-text-muted: rgba(243, 239, 230, 0.52);
    --site-icon: rgba(243, 239, 230, 0.84);
    --site-link: rgba(243, 239, 230, 0.96);
    --site-selected: #0dfcff;
    --site-accent: rgba(243, 239, 230, 0.98);
    --site-spotlight-text: rgba(8, 12, 10, 0.88);
    --site-line: rgba(243, 239, 230, 0.16);
    --site-line-strong: rgba(243, 239, 230, 0.3);
    --site-page-bg: #020605;
    --site-rain-opacity: 0.5;
    --site-rain-filter: brightness(0.56) saturate(0.82) contrast(1.08);
    --site-glass-bg:
        radial-gradient(110% 78% at 9% 0%, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03) 42%, rgba(255, 255, 255, 0.01) 72%),
        radial-gradient(64% 48% at 100% 12%, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02) 54%, transparent 78%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.04), rgba(0, 0, 0, 0.16));
    --site-glass-bg-quiet:
        radial-gradient(80% 140% at 18% 0%, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02) 42%, transparent 72%),
        radial-gradient(64% 120% at 100% 10%, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.014) 52%, transparent 78%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.046), rgba(0, 0, 0, 0.22) 100%);
    --site-content-glass-bg:
        radial-gradient(110% 78% at 9% 0%, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.08) 42%, rgba(18, 20, 19, 0.2) 72%),
        radial-gradient(64% 48% at 100% 12%, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.055) 54%, rgba(0, 0, 0, 0.24) 78%),
        linear-gradient(145deg, rgba(26, 28, 27, 0.54), rgba(0, 0, 0, 0.44));
    --site-glass-border: rgba(255, 255, 255, 0.16);
    --site-glass-border-strong: rgba(255, 255, 255, 0.26);
    --site-glass-highlight-opacity: 0.28;
    --site-glass-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 0 18px rgba(255, 255, 255, 0.06),
        inset 0 -18px 34px rgba(0, 0, 0, 0.16),
        0 10px 34px rgba(0, 0, 0, 0.34);
    --site-glass-filter: blur(7px) saturate(1.02) contrast(1.06) brightness(0.92);
    --site-content-glass-filter: blur(12px) saturate(1) contrast(1.04) brightness(0.92);
    --site-control-bg: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.022));
    --site-control-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.14),
        0 8px 22px rgba(0, 0, 0, 0.24);
    --site-liquid-control-bg:
        radial-gradient(140% 145% at 14% 0%, rgba(255, 255, 255, 0.17), rgba(255, 255, 255, 0.065) 34%, rgba(255, 255, 255, 0.026) 58%, rgba(255, 255, 255, 0.05)),
        linear-gradient(135deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.024) 46%, rgba(0, 0, 0, 0.18));
    --site-liquid-control-bg-strong:
        radial-gradient(150% 155% at 18% 0%, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.09) 34%, rgba(255, 255, 255, 0.03) 58%, rgba(255, 255, 255, 0.065)),
        linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03) 46%, rgba(0, 0, 0, 0.22));
    --site-liquid-control-border: rgba(255, 255, 255, 0.16);
    --site-liquid-control-border-strong: rgba(255, 255, 255, 0.3);
    --site-liquid-control-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.22),
        inset 0 -18px 30px rgba(0, 0, 0, 0.2),
        0 16px 38px rgba(0, 0, 0, 0.34),
        0 0 0 1px rgba(255, 255, 255, 0.04);
    --site-liquid-control-shadow-hover:
        inset 0 1px 0 rgba(255, 255, 255, 0.32),
        inset 0 0 24px rgba(255, 255, 255, 0.06),
        0 18px 42px rgba(0, 0, 0, 0.42),
        0 0 0 1px rgba(255, 255, 255, 0.08);
    --site-liquid-control-filter: blur(16px) saturate(1.08) contrast(1.04) brightness(0.96);
    --site-code-bg: rgba(0, 0, 0, 0.42);
    --site-code-block-bg:
        radial-gradient(110% 78% at 9% 0%, rgba(255, 255, 255, 0.052), rgba(255, 255, 255, 0.016) 42%, rgba(255, 255, 255, 0.006) 72%),
        radial-gradient(64% 48% at 100% 12%, rgba(255, 255, 255, 0.036), rgba(255, 255, 255, 0.01) 54%, transparent 78%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.024), rgba(0, 0, 0, 0.32));
    --site-code-nav-bg:
        radial-gradient(110% 170% at 10% 0%, rgba(80, 86, 82, 0.48), rgba(47, 52, 49, 0.5) 46%, rgba(29, 33, 31, 0.46) 78%),
        linear-gradient(180deg, rgba(50, 55, 52, 0.82), rgba(31, 35, 33, 0.78));
    --site-code-filter: blur(18px) saturate(1.04) contrast(1.05) brightness(0.86);
    --site-code-button-bg: rgba(255, 255, 255, 0.055);
    --site-code-button-bg-hover: rgba(255, 255, 255, 0.115);
    --site-code-button-border: rgba(255, 255, 255, 0.14);
    --site-code-button-border-hover: rgba(255, 255, 255, 0.28);
    --site-code-button-color: var(--site-text-soft);
    --site-code-button-color-hover: var(--site-link);
    --site-code-text: #cdd6f4;
    --site-table-bg:
        radial-gradient(110% 78% at 9% 0%, rgba(255, 255, 255, 0.052), rgba(255, 255, 255, 0.016) 42%, rgba(255, 255, 255, 0.006) 72%),
        radial-gradient(64% 48% at 100% 12%, rgba(255, 255, 255, 0.036), rgba(255, 255, 255, 0.01) 54%, transparent 78%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.024), rgba(0, 0, 0, 0.32));
    --site-table-filter: blur(18px) saturate(1.04) contrast(1.05) brightness(0.86);
    --site-table-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 0 18px rgba(255, 255, 255, 0.06),
        inset 0 -18px 34px rgba(0, 0, 0, 0.16),
        0 10px 34px rgba(0, 0, 0, 0.34);
    /* Dark theme: Dark Modern surfaces with GitHub Dark style tokens */
    --site-code-token-text: #e6edf3;
    --site-code-token-keyword: #ff7b72;
    --site-code-token-function: #d2a8ff;
    --site-code-token-class: #79c0ff;
    --site-code-token-attribute: #ffab70;
    --site-code-token-variable: #e6edf3;
    --site-code-token-builtin: #79c0ff;
    --site-code-token-constant: #79c0ff;
    --site-code-token-tag: #7ee787;
    --site-code-token-string: #a5d6ff;
    --site-code-token-number: #56d364;
    --site-code-token-comment: #8b949e;
    --site-code-token-operator: #c9d1d9;
    --site-code-token-punctuation: #6e7681;
    --md-default-bg-color: var(--site-page-bg);
    --md-default-bg-color--light: rgba(2, 6, 5, 0.94);
    --md-default-bg-color--lighter: rgba(2, 6, 5, 0.72);
    --md-default-bg-color--lightest: rgba(2, 6, 5, 0.48);
}

[data-md-color-scheme="default"] {
    /* 明亮模式：深色玻璃背景保持不动；token 采用 GitHub Light 色相并提亮为浅色，确保深色玻璃上可读 */
    --site-code-text: #eef3ef;
    --site-code-token-text: #eef3ef;
    --site-code-token-keyword: #ff8da1;
    --site-code-token-function: #d2a8ff;
    --site-code-token-class: #d2a8ff;
    --site-code-token-attribute: #79c0ff;
    --site-code-token-variable: #ffab70;
    --site-code-token-builtin: #79c0ff;
    --site-code-token-constant: #79c0ff;
    --site-code-token-tag: #7ee787;
    --site-code-token-string: #a5d6ff;
    --site-code-token-number: #79c0ff;
    --site-code-token-comment: #9ba6b2;
    --site-code-token-operator: #c8d3dc;
    --site-code-token-punctuation: #aab4bd;
}

[data-md-color-scheme="slate"] .md-logo img {
    filter: invert(1) opacity(0.86);
}

.rain-glass-canvas {
    position: fixed;
    inset: 0 auto auto 0;
    z-index: 0;
    display: block;
    width: 100vw;
    height: 100vh;
    min-height: 100vh;
    opacity: var(--site-rain-opacity);
    filter: var(--site-rain-filter);
    pointer-events: none;
    transition: opacity 0.28s ease, filter 0.28s ease;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    contain: strict;
    will-change: transform;
}

@supports (height: 100lvh) {
    .rain-glass-canvas {
        height: 100lvh;
        min-height: 100lvh;
    }
}

html.is-touch-spotlight-lock,
body.is-touch-spotlight-lock {
    overflow: hidden !important;
    overscroll-behavior: none;
}

body.is-touch-spotlight-lock {
    touch-action: none;
}

html,
body {
    min-height: 100%;
    color: var(--site-text);
}

html {
    background: var(--site-page-bg);
}

body {
    min-height: 100vh;
    min-height: 100svh;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    background: transparent;
}

.md-container,
.md-main,
.md-main__inner,
.md-content,
.md-content__inner,
.md-sidebar,
.md-footer {
    background: transparent;
    color: var(--site-text);
}

.md-container,
.md-main,
.md-header,
.md-tabs,
.md-footer {
    position: relative;
}

.md-container,
.md-main,
.md-footer {
    z-index: 1;
}

.md-container {
    min-height: 0;
    display: flex;
    flex: 1 0 auto;
    flex-direction: column;
}

.md-main {
    flex: 1 0 auto;
}

.md-typeset,
.md-typeset h1,
.md-typeset h2,
.md-typeset h3,
.md-typeset h4,
.md-typeset h5,
.md-typeset h6 {
    color: var(--site-text);
}

.md-typeset a,
.md-nav__link,
.md-tabs__link,
.md-header__button,
.md-header__title {
    color: var(--site-link);
}

.md-typeset code {
    color: var(--site-code-text);
    background: var(--site-code-bg);
}

.md-icon,
.md-icon svg,
.md-header__button svg,
.md-search__icon,
.md-source,
.md-logo {
    color: var(--site-icon);
}

html:has(.home-shell),
body:has(.home-shell) {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

html:has(.home-shell)::-webkit-scrollbar,
body:has(.home-shell)::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.md-content__inner:has(.home-shell) {
    padding-top: 0;
}

.md-content__inner:has(.home-shell)::before {
    display: none;
}

.md-content__inner:has(.home-shell) .home-shell {
    padding-top: 1.2rem;
}

.md-header {
    position: sticky;
    z-index: 3;
    background: var(--site-glass-bg);
    border-bottom: 1px solid var(--site-glass-border);
    box-shadow: var(--site-glass-shadow);
    backdrop-filter: var(--site-glass-filter);
    -webkit-backdrop-filter: var(--site-glass-filter);
}

.md-header__inner,
.md-header .md-grid,
.md-header__option,
.md-header__source {
    background: transparent;
    box-shadow: none;
}

.md-tabs {
    z-index: 3;
    background: transparent;
    border-bottom: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.md-tabs__list {
    border-top: 0;
}

.md-header .md-tabs,
.md-header .md-tabs .md-grid,
.md-header .md-tabs__list {
    background: transparent;
    border: 0;
    box-shadow: none;
}

.md-header__button,
.md-header__title,
.md-tabs__link {
    color: var(--site-link);
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.22);
}

.md-header__title .md-header__topic {
    opacity: 1 !important;
    transform: none !important;
}

.md-header__title .md-header__topic[data-md-component="header-topic"] {
    display: none !important;
}

/* Active tab: text + underline use site accent color */
.md-tabs__item--active {
    border-bottom-color: var(--site-selected) !important;
}

.md-tabs__item--active .md-tabs__link {
    color: var(--site-selected) !important;
    opacity: 1;
}

.md-search__form {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--site-liquid-control-border);
    border-radius: 999px;
    background: var(--site-liquid-control-bg);
    box-shadow: var(--site-liquid-control-shadow);
    backdrop-filter: var(--site-liquid-control-filter);
    -webkit-backdrop-filter: var(--site-liquid-control-filter);
    transition: border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.md-search__input,
.md-search__input::placeholder {
    color: var(--site-text);
}

.md-search__button,
.md-top,
.md-tooltip__inner,
.md-tooltip2__inner,
.md-dialog,
.md-clipboard,
.md-code__nav,
.md-code__button {
    border: 1px solid var(--site-liquid-control-border);
    background: var(--site-liquid-control-bg);
    box-shadow: var(--site-liquid-control-shadow);
    backdrop-filter: var(--site-liquid-control-filter);
    -webkit-backdrop-filter: var(--site-liquid-control-filter);
}

.md-search__button,
.md-top,
.md-clipboard,
.md-code__button {
    color: var(--site-text);
    transition:
        color 0.22s ease,
        background 0.22s ease,
        border-color 0.22s ease,
        box-shadow 0.22s ease,
        transform 0.22s ease;
}

.md-search__button,
.md-search__form,
.md-tooltip__inner,
.md-tooltip2__inner,
.md-dialog,
.md-code__nav {
    position: relative;
    overflow: hidden;
}

.md-search__button {
    min-width: 11.2rem;
    height: 2rem;
    padding-left: 2.05rem;
    padding-right: 3.25rem;
    border-radius: 999px;
    background: var(--site-liquid-control-bg);
    color: var(--site-text-soft);
    letter-spacing: 0.01em;
}

.md-search__button::before {
    top: 50%;
    margin-left: 0.72rem;
    background-color: currentColor;
    transform: translateY(-50%);
}

.md-search__button::after {
    top: 50%;
    right: 0.5rem;
    padding: 0.12rem 0.4rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.36), rgba(255, 255, 255, 0.14));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42);
    color: var(--site-text-soft);
    transform: translateY(-50%);
}

.md-search__form:hover,
.md-search__form:focus-within,
.md-search__button:hover,
.md-search__button:focus,
.md-top:hover,
.md-top:focus {
    border-color: var(--site-liquid-control-border-strong);
    background: var(--site-liquid-control-bg-strong);
    box-shadow: var(--site-liquid-control-shadow-hover);
    color: var(--site-link);
}

.md-search__button:hover,
.md-search__button:focus {
    transform: translateY(-1px);
}

.md-search__form .md-search__input,
.md-search__form .md-search__input::placeholder {
    color: var(--site-text);
}

.md-top {
    bottom: 1.4rem;
    padding: 0.54rem 1rem 0.54rem 0.78rem;
    border-radius: 999px;
    color: var(--site-text);
    letter-spacing: 0.01em;
}

.md-top svg {
    opacity: 0.94;
}

.md-tooltip__inner,
.md-tooltip2__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--site-liquid-control-bg-strong);
    color: var(--site-text);
    text-align: center;
    line-height: 1.35;
}

.md-tooltip__inner {
    padding: 0.38rem 0.58rem;
}

.md-tooltip2__inner {
    padding: 0.12rem 0.28rem;
    scrollbar-gutter: auto;
}

[role="dialog"]>.md-tooltip2__inner {
    padding: 0.12rem 0.42rem;
}

.md-tooltip:has(.md-tooltip__inner:empty),
.md-tooltip2:has(.md-tooltip2__inner:empty),
.md-tooltip__inner:empty,
.md-tooltip2__inner:empty {
    display: none !important;
}

.md-tooltip__inner code,
.md-tooltip2__inner code {
    background: rgba(255, 255, 255, 0.12);
}

.md-tooltip2--top::before {
    border-top-color: rgba(255, 255, 255, 0.22);
}

.md-tooltip2--bottom::before {
    border-bottom-color: rgba(255, 255, 255, 0.22);
}

.code-tooltip {
    position: fixed;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 3.5rem;
    min-height: 1.24rem;
    padding: 0.2rem 0.42rem;
    border: 1px solid var(--site-code-button-border);
    border-radius: 6px;
    background: var(--site-code-nav-bg);
    color: var(--site-text);
    box-sizing: border-box;
    font-size: 0.58rem;
    line-height: 1.1;
    text-align: center;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transform: translateY(-2px);
    transition: opacity 0.14s ease, transform 0.14s ease;
}

.code-tooltip.is-visible {
    opacity: 1;
    transform: translateY(0);
}

[data-md-color-scheme="slate"] .md-tooltip2--top::before {
    border-top-color: rgba(255, 255, 255, 0.12);
}

[data-md-color-scheme="slate"] .md-tooltip2--bottom::before {
    border-bottom-color: rgba(255, 255, 255, 0.12);
}

.md-dialog {
    padding: 0.55rem 1rem;
    background: var(--site-liquid-control-bg-strong);
    color: var(--site-text);
}

.md-dialog__inner {
    color: var(--site-text);
    font-weight: 600;
    letter-spacing: 0.01em;
}

.md-dialog:has(.md-dialog__inner:empty) {
    display: none;
}

.md-code__nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0.18rem;
    gap: 0.18rem;
    width: 100%;
    border-radius: 0;
    box-sizing: border-box;
}

.md-clipboard,
.md-code__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.22rem;
    height: 1.22rem;
    min-width: 1.22rem;
    min-height: 1.22rem;
    padding: 0;
    border-radius: 6px;
    box-sizing: border-box;
    line-height: 1;
}

.md-code__button--active {
    transform: none;
}

.md-footer {
    position: relative;
    z-index: 1;
    isolation: isolate;
    display: grid;
    grid-template-rows: 1fr;
    place-items: end center;
    margin-top: auto;
    padding: 0.42rem 0 0.5rem;
    min-height: 3.1rem;
    background: var(--site-glass-bg);
    border-top: 1px solid var(--site-glass-border-strong);
    color: var(--site-text);
    box-shadow: var(--site-glass-shadow);
    backdrop-filter: var(--site-glass-filter);
    -webkit-backdrop-filter: var(--site-glass-filter);
    overflow: hidden;
}

.md-footer::before {
    content: "";
    position: absolute;
    inset: 1px;
    z-index: 0;
    pointer-events: none;
    background: var(--site-glass-highlight);
    opacity: var(--site-glass-highlight-opacity);
    mix-blend-mode: screen;
    mask-image: linear-gradient(#000, rgba(0, 0, 0, 0.84));
    -webkit-mask-image: linear-gradient(#000, rgba(0, 0, 0, 0.84));
}

.md-footer.is-liquid-glass {
    backdrop-filter: var(--liquid-filter) blur(1.25px) contrast(1.28) brightness(1.16) saturate(1.2);
    -webkit-backdrop-filter: var(--liquid-filter) blur(1.25px) contrast(1.28) brightness(1.16) saturate(1.2);
}

.md-footer-nav {
    display: none;
    background: transparent;
}

.md-footer__inner,
.md-footer-meta,
.md-footer-meta__inner {
    position: relative;
    z-index: 1;
    background: transparent;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.md-footer__inner {
    display: none;
    min-height: 0;
    padding-top: 0;
    padding-bottom: 0.18rem;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.65rem;
}

.md-footer__link,
.md-footer-meta,
.md-footer-meta__inner {
    color: var(--site-text-soft);
}

.md-footer__link {
    width: auto;
    min-width: 8.8rem;
    margin: 0;
    padding: 0.34rem 0.54rem 0.34rem 0.7rem;
    border: 1px solid var(--site-glass-border);
    border-radius: 8px;
    background: var(--site-control-bg);
    box-shadow: var(--site-control-shadow);
    backdrop-filter: blur(4px) saturate(1.08);
    -webkit-backdrop-filter: blur(4px) saturate(1.08);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.md-footer__link--prev {
    margin-right: auto;
}

.md-footer__link--next {
    margin-left: auto;
}

.md-footer__link:hover {
    border-color: var(--site-glass-border-strong);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.34),
        0 10px 26px rgba(0, 0, 0, 0.12);
    transform: translateY(-1px);
}

.md-footer__title {
    padding: 0;
    line-height: 1.28;
}

.md-footer__direction {
    margin-bottom: 0.04rem;
    font-size: 0.54rem;
    letter-spacing: 0.12em;
    opacity: 0.52;
}

.md-footer__button {
    width: 1.45rem;
    height: 1.45rem;
    margin-left: 0.5rem;
    border-radius: 50%;
    background: var(--site-control-bg);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.md-footer-meta {
    width: 100%;
    padding: 0;
}

.md-footer-meta__inner {
    min-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    justify-content: center;
    text-align: center;
}

.md-copyright {
    width: 100%;
    margin: 0 auto;
    font-size: 0.6rem;
    line-height: 1.55;
    opacity: 0.78;
    text-align: center;
}

.md-copyright__highlight {
    margin: 0;
}

/* [data-md-color-scheme="slate"]:has(.home-shell) .md-header {
    background:
        radial-gradient(110% 78% at 9% 0%, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.038) 42%, rgba(255, 255, 255, 0.012) 72%),
        radial-gradient(64% 48% at 100% 12%, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.025) 54%, transparent 78%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018));
    border-color: rgba(255, 255, 255, 0.22);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.28),
        inset 0 0 18px rgba(255, 255, 255, 0.08),
        inset 0 -18px 34px rgba(0, 0, 0, 0.14),
        0 10px 34px rgba(0, 0, 0, 0.34);
    color: rgba(255, 255, 255, 0.86);
} */

.md-main:has(.home-shell),
.md-main__inner:has(.home-shell),
.md-content:has(.home-shell),
.md-content__inner:has(.home-shell) {
    background: transparent;
}

.md-content__inner:not(:has(.home-shell)) {
    position: relative;
    isolation: isolate;
    margin-top: 0.8rem;
    margin-bottom: 2rem;
    padding: 1.35rem 1.6rem 1.6rem;
    border: 0;
    border-radius: 0;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.052), rgba(255, 255, 255, 0.028));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.58),
        inset 0 0 20px rgba(255, 255, 255, 0.1),
        inset 0 -18px 36px rgba(0, 0, 0, 0.035),
        0 20px 60px rgba(0, 0, 0, 0.12);
    color: var(--site-text);
    backdrop-filter: blur(18px) saturate(1.18) contrast(1.08) brightness(1.12);
    -webkit-backdrop-filter: blur(18px) saturate(1.18) contrast(1.08) brightness(1.12);
    overflow: visible;
}

[data-md-color-scheme="slate"] .md-content__inner:not(:has(.home-shell)) {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.034), rgba(0, 0, 0, 0.11));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        inset 0 0 18px rgba(255, 255, 255, 0.045),
        inset 0 -22px 42px rgba(0, 0, 0, 0.18),
        0 20px 60px rgba(0, 0, 0, 0.38);
    backdrop-filter: blur(18px) saturate(1.05) contrast(1.05) brightness(0.96);
    -webkit-backdrop-filter: blur(18px) saturate(1.05) contrast(1.05) brightness(0.96);
}

.md-content__inner:not(:has(.home-shell))::before {
    display: none;
}

.md-content__inner:not(:has(.home-shell))::after {
    content: none;
    display: none;
}

.md-content__inner:not(:has(.home-shell))>* {
    position: relative;
    z-index: 1;
}

.md-typeset hr,
.md-typeset table:not([class]) th,
.md-typeset table:not([class]) td {
    border-color: var(--site-line);
}

.md-typeset table:not([class]) {
    overflow: hidden;
    border: 1px solid var(--site-line);
    border-radius: 14px;
    background: var(--site-table-bg);
    box-shadow: var(--site-table-shadow);
    backdrop-filter: var(--site-table-filter);
    -webkit-backdrop-filter: var(--site-table-filter);
}

.md-typeset table:not([class]) th,
.md-typeset table:not([class]) td {
    background: rgba(255, 255, 255, 0.06);
}

.md-typeset table:not([class]) thead th {
    background: rgba(255, 255, 255, 0.12);
}

.md-typeset blockquote {
    color: var(--site-text-soft);
    border-color: var(--site-line-strong);
}

.md-typeset mark,
.md-typeset [data-md-highlight] {
    background: transparent !important;
    box-shadow: none !important;
    color: inherit !important;
}

/* 折叠块（<details>）文字：明亮模式白色，暗黑模式 #cdd6f4（!important 覆盖主题默认） */
[data-md-color-scheme="default"] .md-typeset details,
[data-md-color-scheme="default"] .md-typeset details>summary {
    color: #ffffff !important;
}

[data-md-color-scheme="slate"] .md-typeset details,
[data-md-color-scheme="slate"] .md-typeset details>summary {
    color: #cdd6f4 !important;
}

.md-typeset pre,
.md-typeset .highlight {
    border: 0;
    background: var(--site-code-block-bg);
    box-shadow: var(--site-table-shadow);
    color: var(--site-code-text);
    backdrop-filter: var(--site-code-filter);
    -webkit-backdrop-filter: var(--site-code-filter);
}

.md-typeset .highlight :is(.c, .ch, .cm, .cp, .cpf, .c1, .cs) {
    color: var(--site-code-token-comment);
    font-style: italic;
}

.md-typeset .highlight :is(.k, .kd, .kn, .kp, .kr, .kt, .kc) {
    color: var(--site-code-token-keyword);
    font-weight: 700;
}

.md-typeset .highlight :is(.n) {
    color: var(--site-code-token-text);
}

.md-typeset .highlight :is(.nf, .fm) {
    color: var(--site-code-token-function);
    font-weight: 700;
}

.md-typeset .highlight :is(.nc, .nn, .nd) {
    color: var(--site-code-token-class);
    font-weight: 700;
}

.md-typeset .highlight :is(.na) {
    color: var(--site-code-token-attribute);
}

.md-typeset .highlight :is(.nt) {
    color: var(--site-code-token-tag);
    font-weight: 700;
}

.md-typeset .highlight :is(.nb, .bp) {
    color: var(--site-code-token-builtin);
}

.md-typeset .highlight :is(.no) {
    color: var(--site-code-token-constant);
}

.md-typeset .highlight :is(.nv, .vc, .vg, .vi, .nl, .ni, .nx) {
    color: var(--site-code-token-variable);
}

.md-typeset .highlight :is(.s, .sa, .sb, .sc, .dl, .sd, .s2, .se, .sh, .si, .sr, .ss, .sx) {
    color: var(--site-code-token-string);
}

.md-typeset .highlight :is(.m, .mb, .mf, .mh, .mi, .il, .mo) {
    color: var(--site-code-token-number);
    font-weight: 700;
}

.md-typeset .highlight :is(.o, .ow) {
    color: var(--site-code-token-operator);
    font-weight: 700;
}

.md-typeset .highlight :is(.p) {
    color: var(--site-code-token-punctuation);
    font-weight: 700;
}

.md-nav,
.md-nav__title,
.md-nav__link,
.md-sidebar-button {
    color: var(--site-text-soft);
}

/* Ensure secondary sidebar elements don't inherit theme's white background at all widths */
.md-nav--secondary .md-nav__title {
    background: transparent;
}

.md-sidebar--secondary .md-sidebar__inner {
    background-color: transparent;
}

.md-nav__link--active,
.md-nav__link:focus,
.md-nav__link:hover {
    color: var(--site-selected);
}

@media screen and (min-width: 76.25em) {
    :root {
        --site-desktop-header-visible-bottom: 0px;
        --site-desktop-footer-visible-height: 0px;
        --site-desktop-sidebar-height: calc(100dvh - var(--site-desktop-header-visible-bottom) - var(--site-desktop-footer-visible-height));
    }

    .md-sidebar__scrollwrap {
        position: relative;
        isolation: isolate;
        margin-top: 0.8rem;
        padding: 0.72rem 0.58rem;
        border: 0;
        border-radius: 8px;
        background: transparent;
        box-shadow: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        overflow-x: hidden;
        overflow-y: auto;
        height: var(--site-sidebar-local-height, var(--site-desktop-sidebar-height)) !important;
        max-height: var(--site-sidebar-local-height, var(--site-desktop-sidebar-height)) !important;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }

    .md-sidebar--secondary .md-sidebar__scrollwrap {
        overflow: hidden;
    }

    .md-sidebar__scrollwrap::before {
        content: "";
        position: absolute;
        inset: 0.05rem 0.22rem;
        z-index: 0;
        border: 0;
        border-radius: 0;
        background: none;
        box-shadow: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        pointer-events: none;
        mask-image: linear-gradient(transparent, #000 6%, #000 91%, transparent);
        -webkit-mask-image: linear-gradient(transparent, #000 6%, #000 91%, transparent);
    }

    .md-sidebar--primary .md-sidebar__scrollwrap::before {
        border-right: 1px solid rgba(255, 255, 255, 0.26);
    }

    .md-sidebar--secondary .md-sidebar__scrollwrap::before {
        border-left: 1px solid rgba(255, 255, 255, 0.26);
    }

    .md-sidebar--secondary .md-sidebar__scrollwrap:not(:has(.md-nav__link))::before {
        inset: 0.05rem 0.22rem;
    }

    .md-sidebar--secondary .md-sidebar__scrollwrap:not(:has(.md-nav__link)) .md-nav {
        display: none;
    }

    .md-sidebar__inner,
    .md-sidebar .md-nav {
        position: relative;
        z-index: 1;
        background: transparent;
    }

    .md-sidebar--secondary .md-sidebar__inner,
    .md-sidebar--secondary .md-nav {
        display: flex;
        flex-direction: column;
        min-height: 0;
        height: 100%;
        max-height: 100%;
    }

    .md-sidebar .md-nav__title {
        margin: 0 0 0.35rem;
        padding: 0.42rem 0.5rem 0.52rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.16);
        background: transparent;
        color: var(--site-text);
        text-shadow: 0 1px 12px rgba(0, 0, 0, 0.2);
    }

    .md-sidebar--secondary .md-nav__title {
        flex: 0 0 auto;
    }

    .md-sidebar .md-nav__list {
        padding: 0.12rem 0;
    }

    .md-sidebar--secondary .md-nav__list[data-md-component="toc"] {
        flex: 1 1 auto;
        min-height: 0;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }

    .md-sidebar .md-nav__item {
        margin: 0.04rem 0;
    }

    .md-sidebar .md-nav__link {
        margin: 0.02rem 0.04rem;
        padding: 0.32rem 0.5rem;
        border-radius: 6px;
        color: var(--site-text-soft);
        text-shadow: 0 1px 10px rgba(0, 0, 0, 0.18);
        transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    }

    .md-sidebar .md-nav__link:focus,
    .md-sidebar .md-nav__link:hover,
    .md-sidebar .md-nav__link--active {
        color: var(--site-selected);
        background: linear-gradient(90deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.036));
        box-shadow:
            inset 1px 0 0 rgba(255, 255, 255, 0.44),
            0 8px 18px rgba(0, 0, 0, 0.06);
        transform: translateX(1px);
    }

    .md-sidebar--secondary .md-nav__link:focus,
    .md-sidebar--secondary .md-nav__link:hover,
    .md-sidebar--secondary .md-nav__link--active {
        background: linear-gradient(270deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.036));
        box-shadow:
            inset -1px 0 0 rgba(255, 255, 255, 0.44),
            0 8px 18px rgba(0, 0, 0, 0.06);
        transform: translateX(-1px);
    }

    .md-sidebar .md-nav__icon,
    .md-sidebar .md-nav__link svg {
        color: var(--site-icon);
        opacity: 0.78;
    }

    [data-md-color-scheme="slate"] .md-sidebar__scrollwrap::before {
        background: none;
        box-shadow: none;
    }

    [data-md-color-scheme="slate"] .md-sidebar--primary .md-sidebar__scrollwrap::before {
        border-right-color: rgba(255, 255, 255, 0.12);
    }

    [data-md-color-scheme="slate"] .md-sidebar--secondary .md-sidebar__scrollwrap::before {
        border-left-color: rgba(255, 255, 255, 0.12);
    }

    [data-md-color-scheme="slate"] .md-sidebar .md-nav__title {
        border-bottom-color: rgba(255, 255, 255, 0.1);
    }

    [data-md-color-scheme="slate"] .md-sidebar .md-nav__link:focus,
    [data-md-color-scheme="slate"] .md-sidebar .md-nav__link:hover,
    [data-md-color-scheme="slate"] .md-sidebar .md-nav__link--active {
        background: linear-gradient(90deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
        box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.2);
    }

    [data-md-color-scheme="slate"] .md-sidebar--secondary .md-nav__link:focus,
    [data-md-color-scheme="slate"] .md-sidebar--secondary .md-nav__link:hover,
    [data-md-color-scheme="slate"] .md-sidebar--secondary .md-nav__link--active {
        background: linear-gradient(270deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
        box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.2);
    }
}

/* .md-container {
    background-image: url('../assets/icon/utopiaExist.svg');
    background-repeat: no-repeat;
    background-position: center;
} */


.home-shell {
    --home-bg: var(--site-page-bg);
    --home-card: rgba(255, 255, 255, 0.08);
    --home-text: var(--site-text);
    --home-soft: var(--site-text-soft);
    --home-line: var(--site-line);
    --home-accent: var(--site-accent);
    --home-accent-2: #f3efe6;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0.5rem 0 3rem;
    min-height: 100vh;
    min-height: 100dvh;
    color: var(--home-text);
}

[data-md-color-scheme="slate"] .home-shell {
    --home-bg: var(--site-page-bg);
    --home-card: rgba(0, 0, 0, 0.36);
    --home-text: var(--site-text);
    --home-soft: var(--site-text-soft);
    --home-line: var(--site-line);
    --home-accent: var(--site-accent);
    --home-accent-2: #808080;
}

/* .home-shell::before {
    content: "";
    position: absolute;
    inset: -2rem -2rem auto -2rem;
    height: 18rem;
    background:
        linear-gradient(135deg, rgba(243, 239, 230, 0.26), rgba(0, 0, 0, 0.2)),
        url("../assets/images/almond_blossom.jpg") center 22% / cover no-repeat;
    pointer-events: none;
    z-index: 0;
} */

[data-md-color-scheme="slate"] .home-shell::before {
    background:
        linear-gradient(135deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.45)),
        url("../assets/images/almond_blossom.jpg") center 22% / cover no-repeat;
}

.home-card {
    position: relative;
    z-index: 1;
    margin: 0;
    border: 1px solid var(--home-line);
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(243, 239, 230, 0.72), rgba(128, 128, 128, 0.14));
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(18px) saturate(1.12);
    -webkit-backdrop-filter: blur(18px) saturate(1.12);
    overflow: hidden;
    animation: homeRise 0.65s ease both;
}

.quote-card,
.gallery-card,
.nav-card {
    content-visibility: auto;
    contain-intrinsic-size: 320px;
}

.gallery-card,
.nav-card {
    container-type: inline-size;
}

.home-card:nth-of-type(2) {
    animation-delay: 0.08s;
}

.home-card:nth-of-type(3) {
    animation-delay: 0.16s;
}

.home-card:nth-of-type(4) {
    animation-delay: 0.24s;
}

/* Push remaining cards below the fold */
.home-shell>.nav-card {
    margin-bottom: auto;
}

@keyframes homeRise {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.99);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.home-hero {
    /* padding: 2rem; */
    padding: 2rem 2rem 1rem 2rem;
    --mx: 50%;
    --my: 50%;
    --spotlight-size: 380px;
    --spotlight-radius: 190px;
    --spotlight-ring-size: 140px;
    --spotlight-ring-radius: 70px;
    isolation: isolate;
    min-height: 0;
    /* margin-bottom: 3.2rem; */
    background: rgba(0, 0, 0, 1);
    border-color: rgba(243, 239, 230, 0.16);
    box-shadow:
        inset 0 1px 0 rgba(243, 239, 230, 0.03),
        0 20px 45px rgba(0, 0, 0, 0.52);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.home-hero:hover,
.home-hero:hover * {
    cursor: none !important;
}

.home-hero.is-btn-lit .hero-btn,
.home-hero.is-btn-lit .hero-btn * {
    cursor: pointer !important;
}

.md-typeset .home-hero>.hero-code-noise {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 0;
    margin: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    overflow: hidden;
    pointer-events: none;
    white-space: pre;
    user-select: none;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 12px;
    line-height: 1.16;
    letter-spacing: 0.08em;
    color: rgba(243, 239, 230, 0.18);
    text-shadow: 0 0 10px rgba(128, 128, 128, 0.22);
    mask-image: none;
    -webkit-mask-image: none;
}

.md-typeset a {
    text-decoration: none;
    color: var(--site-link);
}

.md-typeset img {
    height: 100%;
}

.home-hero::before {
    content: "";
    position: absolute;
    width: var(--spotlight-size);
    height: var(--spotlight-size);
    left: 0;
    top: 0;
    background: radial-gradient(var(--spotlight-radius) circle at center,
            rgba(243, 239, 230, 0.92) 0%,
            rgba(243, 239, 230, 0.62) 38%,
            rgba(128, 128, 128, 0.16) 58%,
            rgba(0, 0, 0, 0) 72%);
    /* Reverted variant (last change):
    background: radial-gradient(190px circle at var(--mx) var(--my),
            rgba(243, 239, 230, 0) 0 72px,
            rgba(243, 239, 230, 0.2) 102px,
            rgba(128, 128, 128, 0.14) 132px,
            rgba(0, 0, 0, 0) 170px);
    */
    opacity: 0;
    transform: translate3d(calc(var(--mx) - var(--spotlight-radius)), calc(var(--my) - var(--spotlight-radius)), 0);
    transition: opacity 0.18s ease;
    pointer-events: none;
    z-index: 1;
    will-change: transform, opacity;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.home-hero::after {
    content: "";
    position: absolute;
    width: var(--spotlight-ring-size);
    height: var(--spotlight-ring-size);
    left: 0;
    top: 0;
    border-radius: 50%;
    border: 1px solid rgba(243, 239, 230, 0.84);
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    opacity: 0;
    transform: translate3d(calc(var(--mx) - var(--spotlight-ring-radius)), calc(var(--my) - var(--spotlight-ring-radius)), 0) scale(0.9);
    transition: opacity 0.14s ease;
    pointer-events: none;
    z-index: 2;
    will-change: transform, opacity;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.home-hero:hover::before,
.home-hero:hover::after,
.home-hero.is-spotlight-active::before,
.home-hero.is-spotlight-active::after {
    opacity: 1;
}

.home-hero:hover::after,
.home-hero.is-spotlight-active::after {
    transform: translate3d(calc(var(--mx) - var(--spotlight-ring-radius)), calc(var(--my) - var(--spotlight-ring-radius)), 0) scale(1);
}

.home-hero.spotlight-off::before,
.home-hero.spotlight-off::after {
    opacity: 0 !important;
    transition: none !important;
}

.home-hero.spotlight-off>.hero-spotlight-img {
    opacity: 0 !important;
    transition: none !important;
}

.home-hero.is-lit::before {
    opacity: 1;
}

.home-hero.is-touch-spotlight::before,
.home-hero.is-touch-spotlight::after {
    opacity: 1;
}

.home-hero.is-touch-spotlight::after {
    transform: translate3d(calc(var(--mx) - var(--spotlight-ring-radius)), calc(var(--my) - var(--spotlight-ring-radius)), 0) scale(1);
}

.md-typeset .home-hero>.hero-spotlight-img {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.18s ease;
    will-change: opacity;
}

.home-hero:hover>.hero-spotlight-img,
.home-hero.is-spotlight-active>.hero-spotlight-img {
    opacity: 1;
}

.home-hero:hover>.hero-code-noise {
    opacity: 0.72;
}

.home-hero.is-touch-spotlight>.hero-code-noise {
    opacity: 0.72;
}

.hero-grid {
    display: grid;
    grid-template-columns: 170px 1fr;
    gap: 1.6rem;
    align-items: start;
    position: relative;
    z-index: 3;
}

.hero-avatar-wrap {
    width: 148px;
    height: 148px;
    border-radius: 50%;
    padding: 2px;
    overflow: hidden;
    background: transparent;
    border: 1.5px solid rgba(243, 239, 230, 0.85);
    box-shadow: none;
}

.hero-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 0;
    background: #808080;
}

.hero-kicker,
.hero-title,
.hero-desc {
    position: relative;
}

.hero-kicker .t-lit,
.hero-title .t-lit,
.hero-desc .t-lit,
.hero-typing .t-lit {
    position: absolute;
    inset: 0;
    color: var(--site-spotlight-text);
    -webkit-mask-image: radial-gradient(var(--spotlight-ring-radius) circle at var(--lit-x, -9999px) var(--lit-y, -9999px), rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 96%, rgba(0, 0, 0, 0) 100%);
    mask-image: radial-gradient(var(--spotlight-ring-radius) circle at var(--lit-x, -9999px) var(--lit-y, -9999px), rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 96%, rgba(0, 0, 0, 0) 100%);
    pointer-events: none;
}

.hero-kicker .t-def,
.hero-title .t-def,
.hero-desc .t-def {
    transition: none;
    font-size: 0.8rem;
}


.hero-title .t-lit.t2 {
    color: #ec7d7d;
}

.hero-kicker .t-def.t0 {
    font-size: 0.8rem;
    color: yellow;
}

.hero-kicker .t-lit.t0 {
    font-size: 0.8rem;
    font-weight: 600;
}

.hero-title .t-def.t1 {
    font-size: 1.03rem;
    color: #f3efe6;
}

.home-hero.is-lit .t-def {
    opacity: 0;
}

.hero-kicker {
    margin: 0;
    letter-spacing: 0.18em;
    font-size: 0.74rem;
    color: rgba(243, 239, 230, 0.86);
    transition: color 0.16s ease;
}

.hero-title {
    margin: 0.35rem 0 0.75rem;
    font-size: clamp(2.1rem, 4.2vw, 3.2rem);
    line-height: 1.18;
    color: #f3efe6;
    transition: color 0.16s ease;
}

.hero-typing {
    position: relative;
    min-height: 1.9rem;
    margin: 0;
    font-size: 1.03rem;
    color: #f3efe6;
    transition: color 0.16s ease;
}

.hero-typing .t-def,
.hero-typing .t-lit {
    display: inline;
}

.hero-typing .t-def::after,
.hero-typing .t-lit::after {
    content: "|";
    margin-left: 2px;
    color: #f3efe6;
    animation: blink 1s steps(1, end) infinite;
}

.hero-typing .t-lit::after {
    color: var(--site-spotlight-text);
    opacity: 0;
}

.home-hero.is-lit .hero-typing .t-def::after {
    opacity: 0;
}

.home-hero.is-lit .hero-typing .t-lit::after {
    opacity: 1;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

.hero-desc {
    margin: 0.6rem 0 0;
    font-size: 1.02rem;
    line-height: 1.75;
    color: rgba(243, 239, 230, 0.9);
    transition: color 0.16s ease;
}

.hero-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.85rem;
    margin-top: 1rem;
    /* margin-left: 50%;
    flex-wrap: wrap;
    position: relative; */
    z-index: 8;
}

.hero-btn {
    --hero-btn-dark-bg:
        radial-gradient(140% 180% at 18% 0%, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.05) 34%, rgba(255, 255, 255, 0.012) 58%, rgba(0, 0, 0, 0.1)),
        linear-gradient(145deg, rgba(10, 10, 10, 0.9), rgba(0, 0, 0, 0.72) 52%, rgba(0, 0, 0, 0.92));
    --hero-btn-dark-bg-hover:
        radial-gradient(150% 190% at 18% 0%, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.07) 34%, rgba(255, 255, 255, 0.018) 58%, rgba(0, 0, 0, 0.12)),
        linear-gradient(145deg, rgba(18, 18, 18, 0.92), rgba(0, 0, 0, 0.78) 52%, rgba(0, 0, 0, 0.96));
    --hero-btn-dark-color: rgba(255, 255, 255, 0.94);
    --hero-btn-dark-border: rgba(255, 255, 255, 0.26);
    --hero-btn-dark-border-hover: rgba(255, 255, 255, 0.52);
    --hero-btn-dark-glow: rgba(0, 0, 0, 0.42);
    --hero-btn-dark-inner: rgba(255, 255, 255, 0.16);
    --hero-btn-dark-text-shadow: 0 1px 8px rgba(0, 0, 0, 0.34);
    --hero-btn-light-bg:
        radial-gradient(140% 180% at 18% 0%, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.56) 36%, rgba(255, 255, 255, 0.34) 60%, rgba(255, 255, 255, 0.46)),
        linear-gradient(145deg, rgba(255, 255, 255, 0.76), rgba(243, 239, 230, 0.5) 52%, rgba(255, 255, 255, 0.68));
    --hero-btn-light-bg-hover:
        radial-gradient(150% 190% at 18% 0%, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.66) 36%, rgba(255, 255, 255, 0.4) 60%, rgba(255, 255, 255, 0.54)),
        linear-gradient(145deg, rgba(255, 255, 255, 0.84), rgba(243, 239, 230, 0.58) 52%, rgba(255, 255, 255, 0.76));
    --hero-btn-light-color: rgba(5, 7, 6, 0.9);
    --hero-btn-light-border: rgba(255, 255, 255, 0.72);
    --hero-btn-light-border-hover: rgba(255, 255, 255, 0.94);
    --hero-btn-light-glow: rgba(243, 239, 230, 0.2);
    --hero-btn-light-inner: rgba(255, 255, 255, 0.76);
    --hero-btn-light-text-shadow: 0 1px 8px rgba(255, 255, 255, 0.36);
    --hero-btn-bg: var(--hero-btn-dark-bg);
    --hero-btn-bg-hover: var(--hero-btn-dark-bg-hover);
    --hero-btn-color: var(--hero-btn-dark-color);
    --hero-btn-border: var(--hero-btn-dark-border);
    --hero-btn-border-hover: var(--hero-btn-dark-border-hover);
    --hero-btn-glow: var(--hero-btn-dark-glow);
    --hero-btn-inner: var(--hero-btn-dark-inner);
    --hero-btn-text-shadow: var(--hero-btn-dark-text-shadow);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 3.4rem;
    min-height: 2.1rem;
    padding: 0.28rem 0.95rem;
    border-radius: 999px;
    font-size: 0.95rem;
    line-height: 1;
    color: var(--hero-btn-color);
    text-shadow: var(--hero-btn-text-shadow);
    text-decoration: none;
    background: var(--hero-btn-bg);
    border: 1px solid var(--hero-btn-border);
    box-shadow:
        inset 0 1px 0 var(--hero-btn-inner),
        inset 0 -15px 24px rgba(0, 0, 0, 0.18),
        0 12px 30px var(--hero-btn-glow),
        0 0 0 1px rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(18px) saturate(1.2) contrast(1.06);
    -webkit-backdrop-filter: blur(18px) saturate(1.2) contrast(1.06);
    overflow: hidden;
    position: relative;
    z-index: 9;
    isolation: isolate;
    transition:
        transform 0.18s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        background 0.24s ease,
        filter 0.2s ease;
}

.hero-btn::before,
.hero-btn::after {
    content: "";
    position: absolute;
    pointer-events: none;
    border-radius: inherit;
}

.hero-btn::before {
    inset: 1px;
    z-index: -1;
    background:
        linear-gradient(115deg, rgba(255, 255, 255, 0.34), transparent 32%, rgba(255, 255, 255, 0.08) 58%, transparent 78%),
        radial-gradient(70% 90% at 18% 0%, rgba(255, 255, 255, 0.34), transparent 64%);
    opacity: 0.68;
    mix-blend-mode: screen;
}

.hero-btn::after {
    inset: 0;
    z-index: -2;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.08),
        inset 0 -11px 20px rgba(255, 255, 255, 0.045);
    opacity: 0.9;
}

.hero-btn:hover {
    transform: translateY(-2px) scale(1.02);
    border-color: var(--hero-btn-border-hover);
    background: var(--hero-btn-bg-hover);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.34),
        inset 0 -14px 26px rgba(0, 0, 0, 0.12),
        0 16px 36px var(--hero-btn-glow),
        0 0 0 1px rgba(255, 255, 255, 0.14);
    color: var(--hero-btn-color);
}

.hero-btn.ghost {
    --hero-btn-bg: var(--hero-btn-light-bg);
    --hero-btn-bg-hover: var(--hero-btn-light-bg-hover);
    --hero-btn-color: var(--hero-btn-light-color);
    --hero-btn-border: var(--hero-btn-light-border);
    --hero-btn-border-hover: var(--hero-btn-light-border-hover);
    --hero-btn-glow: var(--hero-btn-light-glow);
    --hero-btn-inner: var(--hero-btn-light-inner);
    --hero-btn-text-shadow: var(--hero-btn-light-text-shadow);
}

.md-typeset .hero-btn,
.md-typeset .hero-btn:visited,
.md-typeset .hero-btn:hover,
.md-typeset .hero-btn:focus-visible {
    color: var(--hero-btn-color);
}

.hero-btn.ghost:hover {
    color: var(--hero-btn-color);
}

.home-hero.is-lit .hero-typing {
    color: var(--site-spotlight-text);
}

.home-hero.is-btn-lit .hero-btn.ghost {
    --hero-btn-bg: var(--hero-btn-dark-bg);
    --hero-btn-bg-hover: var(--hero-btn-dark-bg-hover);
    --hero-btn-color: var(--hero-btn-dark-color);
    --hero-btn-border: var(--hero-btn-dark-border);
    --hero-btn-border-hover: var(--hero-btn-dark-border-hover);
    --hero-btn-glow: var(--hero-btn-dark-glow);
    --hero-btn-inner: var(--hero-btn-dark-inner);
    --hero-btn-text-shadow: var(--hero-btn-dark-text-shadow);
    border-color: var(--hero-btn-border-hover);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.36),
        inset 0 -14px 26px rgba(0, 0, 0, 0.12),
        0 18px 42px rgba(0, 0, 0, 0.46),
        0 0 0 1px rgba(255, 255, 255, 0.16);
}

.home-hero.is-btn-lit .hero-btn:not(.ghost) {
    --hero-btn-bg: var(--hero-btn-light-bg);
    --hero-btn-bg-hover: var(--hero-btn-light-bg-hover);
    --hero-btn-color: var(--hero-btn-light-color);
    --hero-btn-border: var(--hero-btn-light-border);
    --hero-btn-border-hover: var(--hero-btn-light-border-hover);
    --hero-btn-glow: var(--hero-btn-light-glow);
    --hero-btn-inner: var(--hero-btn-light-inner);
    --hero-btn-text-shadow: var(--hero-btn-light-text-shadow);
    border-color: var(--hero-btn-border-hover);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.92),
        inset 0 -12px 24px rgba(255, 255, 255, 0.22),
        0 18px 42px rgba(243, 239, 230, 0.24),
        0 0 0 1px rgba(255, 255, 255, 0.18);
}

/* ── Non-hero cards: premium minimalist ── */

.quote-card,
.gallery-card,
.nav-card {
    padding: 1rem;
    isolation: isolate;
    background: var(--site-glass-bg);
    border-color: var(--site-glass-border-strong);
    box-shadow: var(--site-glass-shadow);
    backdrop-filter: var(--site-glass-filter);
    -webkit-backdrop-filter: var(--site-glass-filter);
    transition: transform 0.35s cubic-bezier(.25, .46, .45, .94),
        box-shadow 0.35s ease,
        border-color 0.35s ease,
        background 0.3s ease;
}

.quote-card.is-liquid-glass,
.gallery-card.is-liquid-glass,
.nav-card.is-liquid-glass {
    backdrop-filter: var(--liquid-filter) blur(1.25px) contrast(1.28) brightness(1.16) saturate(1.2);
    -webkit-backdrop-filter: var(--liquid-filter) blur(1.25px) contrast(1.28) brightness(1.16) saturate(1.2);
}

[data-md-color-scheme="slate"] .quote-card,
[data-md-color-scheme="slate"] .gallery-card,
[data-md-color-scheme="slate"] .nav-card {
    background: var(--site-glass-bg);
    border-color: var(--site-glass-border-strong);
    box-shadow: var(--site-glass-shadow);
}

.quote-card:hover,
.gallery-card:hover,
.nav-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.94);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 1),
        inset 0 0 28px rgba(255, 255, 255, 0.3),
        inset 0 -18px 34px rgba(0, 0, 0, 0.03),
        0 16px 46px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.36);
}

[data-md-color-scheme="slate"] .quote-card:hover,
[data-md-color-scheme="slate"] .gallery-card:hover,
[data-md-color-scheme="slate"] .nav-card:hover {
    border-color: rgba(255, 255, 255, 0.24);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.24),
        inset 0 -26px 52px rgba(0, 0, 0, 0.3),
        0 16px 46px rgba(0, 0, 0, 0.52),
        0 0 0 1px rgba(255, 255, 255, 0.04);
}

.quote-card::before,
.gallery-card::before,
.nav-card::before {
    content: "";
    position: absolute;
    inset: 1px;
    z-index: 0;
    border-radius: 21px;
    pointer-events: none;
    background: var(--site-glass-highlight);
    opacity: var(--site-glass-highlight-opacity);
    mix-blend-mode: screen;
    mask-image: linear-gradient(#000, rgba(0, 0, 0, 0.84));
    -webkit-mask-image: linear-gradient(#000, rgba(0, 0, 0, 0.84));
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.quote-card:hover::before,
.gallery-card:hover::before,
.nav-card:hover::before {
    opacity: 1;
    transform: scale(1.006);
}

[data-md-color-scheme="slate"] .quote-card::before,
[data-md-color-scheme="slate"] .gallery-card::before,
[data-md-color-scheme="slate"] .nav-card::before {
    opacity: 0.34;
}

/* Decorative quote mark */
.quote-card::after {
    content: "\201C";
    position: absolute;
    right: 1.8rem;
    bottom: 1rem;
    font-size: 5rem;
    line-height: 1;
    color: rgba(0, 0, 0, 0.04);
    pointer-events: none;
    font-family: Georgia, "Times New Roman", serif;
}

.card-head,
.quote-list,
.gallery-grid,
.nav-list {
    position: relative;
    z-index: 1;
}

[data-md-color-scheme="slate"] .quote-card::after {
    color: rgba(255, 255, 255, 0.04);
}

.card-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 0.9rem;
    border-bottom: none;
    position: relative;
}

.card-head::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 28px;
    height: 2px;
    background: var(--site-line-strong);
    border-radius: 1px;
}

[data-md-color-scheme="slate"] .card-head::after {
    background: rgba(255, 255, 255, 0.18);
}

.card-head h2 {
    margin: 0;
    font-size: 1.18rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--site-text);
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.22);
}

[data-md-color-scheme="slate"] .card-head h2 {
    color: rgba(255, 255, 255, 0.92);
}

.card-head span {
    font-size: 0.78rem;
    color: var(--site-text-muted);
    opacity: 0.68;
    letter-spacing: 0.02em;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.18);
}

[data-md-color-scheme="slate"] .card-head span {
    color: rgba(255, 255, 255, 0.38);
}

/* Quote list */
.quote-list {
    margin: 1.1rem 0 0;
    padding-left: 0;
    list-style: none !important;
}

.quote-list li {
    position: relative;
    margin: 0.7rem 0;
    padding-left: 0;
    list-style: none !important;
    color: var(--site-text-soft);
    line-height: 1.85;
    font-size: 0.95rem;
    opacity: 0.86;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.2);
    transition: opacity 0.25s ease;
}

.quote-list li::before,
.quote-list li::marker {
    display: none;
    content: none;
}

[data-md-color-scheme="slate"] .quote-list li {
    color: rgba(255, 255, 255, 0.78);
}

.quote-list li:hover {
    opacity: 1;
}

/* Gallery grid */
.gallery-grid {
    --gallery-gap: 0.85rem;
    --gallery-height: clamp(300px, 32vw, 460px);
    --gallery-slide-count: 4;
    margin-top: 1.1rem;
    position: relative;
    overflow: hidden;
    height: var(--gallery-height);
    max-height: 460px;
    border-radius: 14px;
    isolation: isolate;
}

.gallery-grid::before,
.gallery-grid::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 3;
    width: min(10vw, 7rem);
    pointer-events: none;
}

.gallery-grid::before {
    left: 0;
    background: linear-gradient(90deg, rgba(8, 12, 10, 0.22), rgba(8, 12, 10, 0));
}

.gallery-grid::after {
    right: 0;
    background: linear-gradient(270deg, rgba(8, 12, 10, 0.22), rgba(8, 12, 10, 0));
}

.gallery-track {
    display: flex;
    width: max-content;
    height: 100%;
    animation: gallery-carousel-rtl 22s linear infinite;
    transform: translate3d(0, 0, 0);
    will-change: transform;
    backface-visibility: hidden;
}

.gallery-grid:hover .gallery-track {
    animation-play-state: paused;
}

.gallery-set {
    display: flex;
    flex: 0 0 auto;
    gap: var(--gallery-gap);
    height: 100%;
    padding-right: var(--gallery-gap);
}

.tile {
    position: relative;
    box-sizing: border-box;
    border-radius: 14px;
    overflow: hidden;
    min-height: 110px;
    background: #808080;
    isolation: isolate;
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: border-color 0.3s ease;
}

[data-md-color-scheme="slate"] .tile {
    border-color: rgba(243, 239, 230, 0.04);
}

.tile:hover {
    border-color: rgba(0, 0, 0, 0.08);
}

[data-md-color-scheme="slate"] .tile:hover {
    border-color: rgba(243, 239, 230, 0.1);
}

.tile img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate3d(0, 0, 0);
    transition: transform 0.55s cubic-bezier(.25, .46, .45, .94),
        filter 0.4s ease;
    backface-visibility: hidden;
}

.tile::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.48) 0%, transparent 55%);
    z-index: 1;
}

.tile figcaption {
    position: absolute;
    left: 0.8rem;
    bottom: 0.7rem;
    z-index: 2;
    color: #f3efe6;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    font-weight: 500;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.tile:hover img {
    transform: scale(1.035);
    filter: saturate(1.05) contrast(1.02);
}

.tile:hover figcaption {
    opacity: 1;
}

.gallery-grid .tile {
    flex: 0 0 clamp(340px, 38vw, 620px);
    width: clamp(340px, 38vw, 620px);
    height: 100%;
    min-height: 0;
    margin: 0;
    cursor: zoom-in;
}

.gallery-grid .t2,
.gallery-grid .t3 {
    flex-basis: clamp(320px, 34vw, 560px);
    width: clamp(320px, 34vw, 560px);
}

.gallery-grid .t1,
.gallery-grid .t4 {
    flex-basis: clamp(420px, 46vw, 720px);
    width: clamp(420px, 46vw, 720px);
}

@keyframes gallery-carousel-rtl {
    from {
        transform: translate3d(0, 0, 0);
    }

    to {
        transform: translate3d(-50%, 0, 0);
    }
}

@keyframes gallery-carousel-ltr {
    from {
        transform: translate3d(-50%, 0, 0);
    }

    to {
        transform: translate3d(0, 0, 0);
    }
}

html.is-gallery-preview-open,
body.is-gallery-preview-open {
    overflow: hidden !important;
    overscroll-behavior: none;
}

.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 400;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(1rem, 4vw, 3rem);
    background: rgba(4, 7, 6, 0.9);
    backdrop-filter: blur(18px) saturate(1.08);
    -webkit-backdrop-filter: blur(18px) saturate(1.08);
    cursor: zoom-out;
    touch-action: none;
}

.gallery-lightbox[hidden] {
    display: none !important;
}

.gallery-lightbox-stage {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.gallery-lightbox-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transform: scale(var(--gallery-preview-scale, 1));
    transform-origin: center center;
    transition: transform 0.12s ease;
    cursor: zoom-in;
    user-select: none;
}

.gallery-lightbox.is-zoomed .gallery-lightbox-image {
    cursor: zoom-out;
}

.gallery-lightbox-close {
    position: fixed;
    top: max(env(safe-area-inset-top), 1rem);
    right: max(env(safe-area-inset-right), 1rem);
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid var(--site-liquid-control-border);
    border-radius: 999px;
    background: var(--site-liquid-control-bg);
    box-shadow: var(--site-liquid-control-shadow);
    color: var(--site-text);
    font-size: 1.15rem;
    line-height: 1;
    cursor: pointer;
}

.gallery-lightbox-close:hover {
    border-color: var(--site-liquid-control-border-strong);
    box-shadow: var(--site-liquid-control-shadow-hover);
}

.gallery-lightbox-close-icon {
    display: block;
    width: 1.35rem;
    height: 1.35rem;
}

.gallery-lightbox-close-icon path {
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
}

/* Nav list */
.nav-list {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    /* gap: 0.6rem 1rem;
    margin: 0.9rem 0 0; */
    padding-left: 0;
    list-style: none !important;
}

.nav-list li {
    list-style: none !important;
    margin: 0;
    padding: 0.4rem 0;
    border-bottom: none;
}

.nav-list li::before {
    display: none;
}

.nav-list a {
    color: var(--site-text-soft);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0;
    font-size: 0.95rem;
    transition: opacity 0.2s ease, gap 0.3s ease, color 0.2s ease;
}

[data-md-color-scheme="slate"] .nav-list a {
    color: rgba(255, 255, 255, 0.7);
}

.nav-list a::before {
    content: "→";
    font-size: 0.72rem;
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.nav-list a:hover {
    opacity: 1;
    gap: 0.35rem;
    color: var(--site-link);
}

[data-md-color-scheme="slate"] .nav-list a:hover {
    color: #fff;
}

.nav-list a:hover::before {
    opacity: 0.5;
    transform: translateX(0);
}

@media (max-width: 900px) {
    .home-hero {
        padding: 1.2rem;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .hero-avatar-wrap {
        width: 110px;
        height: 110px;
    }

    .hero-title {
        font-size: clamp(1.75rem, 7vw, 2.3rem);
    }

    .quote-card,
    .gallery-card,
    .nav-card {
        padding: 1.3rem 1.2rem 1.15rem;
    }

    .quote-card::after {
        font-size: 3.5rem;
        right: 1.2rem;
    }

    .gallery-grid {
        --gallery-height: clamp(240px, 45vw, 360px);
    }

    .gallery-grid .tile,
    .gallery-grid .t1,
    .gallery-grid .t2,
    .gallery-grid .t3,
    .gallery-grid .t4 {
        flex-basis: min(74vw, 520px);
        width: min(74vw, 520px);
    }
}

@container (max-width: 22rem) {
    .nav-list {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        width: fit-content;
        max-width: 100%;
        margin: 0.9rem auto 0;
        padding: 0;
        gap: 0.32rem;
        text-align: center;
    }

    .md-typeset .nav-list {
        margin-left: auto !important;
    }

    .nav-list li {
        width: 100%;
        margin-left: 0 !important;
        padding: 0;
        display: flex;
        justify-content: center;
    }

    .nav-list li::before {
        display: none !important;
        content: none !important;
    }

    .nav-list a {
        width: 100%;
        max-width: 100%;
        justify-content: center;
        text-align: center;
        white-space: nowrap;
    }

    .nav-list a::before {
        display: none !important;
        content: none !important;
    }

    .gallery-grid {
        height: auto;
        max-height: none;
        overflow: visible;
    }

    .gallery-grid::before,
    .gallery-grid::after {
        content: none;
    }

    .gallery-track {
        width: 100%;
        height: auto;
        animation: none;
    }

    .gallery-set {
        width: 100%;
        padding-right: 0;
        flex-direction: column;
    }

    .gallery-set[aria-hidden="true"] {
        display: none;
    }

    .gallery-grid .tile,
    .gallery-grid .t1,
    .gallery-grid .t2,
    .gallery-grid .t3,
    .gallery-grid .t4 {
        width: 100%;
        flex-basis: auto;
        min-height: 168px;
        aspect-ratio: 16 / 10;
    }
}

@media (max-width: 700px) and (orientation: portrait) {
    .gallery-card {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .gallery-grid {
        --gallery-gap: 0.6rem;
        --gallery-mobile-gap: 0.6rem;
        --gallery-height: clamp(180px, 54vw, 260px);
        height: var(--gallery-height);
        max-height: none;
        overflow: hidden;
    }

    .gallery-grid::before,
    .gallery-grid::after {
        content: none;
    }

    .gallery-track {
        width: 800%;
        height: 100%;
        animation: gallery-carousel-rtl 38s linear infinite;
        transform: translate3d(0, 0, 0);
        contain: layout paint;
    }

    .gallery-grid:hover .gallery-track {
        animation-play-state: running;
    }

    .gallery-set {
        flex: 0 0 50%;
        width: 50%;
        height: 100%;
        box-sizing: border-box;
        padding-right: var(--gallery-mobile-gap);
        gap: var(--gallery-mobile-gap);
        flex-direction: row;
    }

    .gallery-set[aria-hidden="true"] {
        display: flex;
    }

    .gallery-grid .tile,
    .gallery-grid .t1,
    .gallery-grid .t2,
    .gallery-grid .t3,
    .gallery-grid .t4 {
        flex: 0 0 calc(25% - var(--gallery-mobile-gap));
        width: calc(25% - var(--gallery-mobile-gap));
        height: 100%;
        min-height: 0;
        aspect-ratio: auto;
        border-radius: 12px;
    }

    .gallery-grid .tile img {
        transition: none;
        will-change: transform;
    }
}

@media screen and (max-width: 76.234375em) {
    .md-container {
        min-height: 0;
    }

    .md-container,
    .md-main,
    .md-main__inner {
        position: relative;
        z-index: auto !important;
    }

    .md-content {
        position: relative;
        z-index: 1;
    }

    .md-header {
        z-index: 210 !important;
    }

    .md-overlay {
        position: fixed !important;
        inset: 0 !important;
        z-index: 220 !important;
        background-color: transparent !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    #__drawer:not(:checked)~.md-overlay {
        pointer-events: none !important;
    }

    #__drawer:checked~.md-overlay {
        pointer-events: auto !important;
    }

    .md-sidebar--primary {
        position: fixed !important;
        inset: 0 auto 0 0 !important;
        z-index: 240 !important;
        width: min(82vw, 20rem) !important;
        max-width: calc(100vw - 2.25rem) !important;
        height: 100vh !important;
        height: 100dvh !important;
        min-height: 100vh !important;
        min-height: 100dvh !important;
        max-height: none !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        margin: 0 !important;
        padding: 0 !important;
        background: transparent !important;
        transform: translateX(-105%) !important;
        transition: transform 0.22s ease;
        pointer-events: auto !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    #__drawer:checked~.md-container .md-sidebar--primary {
        transform: translateX(0) !important;
        visibility: visible !important;
    }

    .md-sidebar--primary .md-sidebar__scrollwrap {
        position: relative;
        z-index: 1;
        height: 100% !important;
        max-height: none !important;
        margin: 0 !important;
        padding: calc(env(safe-area-inset-top) + 0.85rem) 0.72rem calc(env(safe-area-inset-bottom) + 1rem) !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch;
        border-radius: 0;
        background: var(--site-glass-bg);
        border-right: 1px solid var(--site-glass-border);
        box-shadow: var(--site-glass-shadow);
        backdrop-filter: var(--site-glass-filter);
        -webkit-backdrop-filter: var(--site-glass-filter);
        pointer-events: auto !important;
    }

    .md-sidebar--primary .md-sidebar__inner,
    .md-sidebar--primary .md-nav {
        min-height: 100%;
        background: transparent;
    }

    .md-sidebar--primary .md-nav,
    .md-sidebar--primary .md-nav__link {
        pointer-events: auto !important;
    }
}

@media screen and (max-width: 76.234375em) and (orientation: landscape) {
    .md-sidebar--primary {
        width: clamp(16rem, 42vw, 22rem) !important;
        max-width: min(88vw, 24rem) !important;
    }

    .md-sidebar--primary .md-sidebar__scrollwrap {
        padding-top: max(env(safe-area-inset-top), 0.45rem) !important;
        padding-bottom: max(env(safe-area-inset-bottom), 0.55rem) !important;
    }

    .md-sidebar--primary .md-nav__title {
        margin-bottom: 0.2rem;
        padding-top: 0.25rem;
        padding-bottom: 0.35rem;
    }

    .md-sidebar--primary .md-nav__link {
        min-height: 1.9rem;
        margin-top: 0.02rem;
        margin-bottom: 0.02rem;
        padding-top: 0.22rem;
        padding-bottom: 0.22rem;
    }
}

@media (max-width: 700px),
(max-height: 700px) and (orientation: landscape) {
    :root {
        --site-mobile-header-height: 2.4rem;
        --site-mobile-search-gap: 0.45rem;
    }

    .home-card,
    .quote-card,
    .gallery-card,
    .nav-card,
    .md-search__button,
    .md-search__form,
    .md-top,
    .md-tooltip__inner,
    .md-tooltip2__inner,
    .md-dialog,
    .md-code__nav,
    .md-footer,
    .md-content__inner:not(:has(.home-shell)),
    .md-sidebar__scrollwrap {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .md-header {
        background: var(--site-glass-bg);
        border-bottom: 1px solid var(--site-glass-border);
        box-shadow: var(--site-glass-shadow);
        backdrop-filter: var(--site-glass-filter);
        -webkit-backdrop-filter: var(--site-glass-filter);
    }

    .md-search__overlay {
        position: fixed !important;
        inset: 0 !important;
        z-index: 250 !important;
    }

    #__search:not(:checked)~.md-header .md-search__overlay {
        pointer-events: none !important;
    }

    #__search:checked~.md-header .md-search__overlay {
        pointer-events: auto !important;
    }

    .md-search__inner {
        position: fixed !important;
        top: calc(env(safe-area-inset-top) + var(--site-mobile-header-height) + var(--site-mobile-search-gap)) !important;
        left: max(env(safe-area-inset-left), 0.6rem) !important;
        right: max(env(safe-area-inset-right), 0.6rem) !important;
        z-index: 260 !important;
        width: auto !important;
        max-width: none !important;
        margin: 0 !important;
        transform: none !important;
    }

    .md-search__form {
        width: 100% !important;
        min-width: 0 !important;
    }

    .md-search__input {
        width: 100% !important;
        min-width: 0 !important;
        font-size: 16px;
    }

    .md-search__output {
        width: 100% !important;
        max-height: calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - var(--site-mobile-header-height) - var(--site-mobile-search-gap) - 3.55rem) !important;
        margin-top: 0.45rem !important;
        overflow: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    /* Keep the canvas visible behind the document on iOS Safari. */
    body {
        isolation: isolate;
        background: transparent;
    }

    .rain-glass-canvas {
        z-index: 0;
        display: block !important;
    }

    .md-container,
    .md-main,
    .md-main__inner {
        position: relative;
        z-index: auto !important;
    }

    .md-content {
        position: relative;
        z-index: 1;
    }

    .md-header {
        z-index: 210 !important;
    }

    .md-overlay {
        position: fixed !important;
        inset: 0 !important;
        z-index: 220 !important;
    }

    #__drawer:not(:checked)~.md-overlay {
        pointer-events: none !important;
    }

    #__drawer:checked~.md-overlay {
        pointer-events: auto !important;
    }

    .md-sidebar--primary {
        position: fixed !important;
        inset: 0 auto 0 0 !important;
        z-index: 240 !important;
        width: min(82vw, 20rem) !important;
        max-width: calc(100vw - 2.25rem) !important;
        height: 100vh !important;
        height: 100dvh !important;
        max-height: none !important;
        margin: 0 !important;
        padding: 0 !important;
        transform: translateX(-105%) !important;
        transition: transform 0.22s ease;
        pointer-events: auto !important;
    }

    #__drawer:checked~.md-container .md-sidebar--primary {
        transform: translateX(0) !important;
        visibility: visible !important;
    }

    .md-sidebar--primary {
        background: transparent !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    .md-sidebar--primary .md-sidebar__scrollwrap {
        position: relative;
        z-index: 1;
        height: 100% !important;
        max-height: none !important;
        margin: 0 !important;
        padding: calc(env(safe-area-inset-top) + 0.85rem) 0.72rem calc(env(safe-area-inset-bottom) + 1rem) !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch;
        border-radius: 0;
        background: var(--site-glass-bg);
        border-right: 1px solid var(--site-glass-border);
        box-shadow: var(--site-glass-shadow);
        backdrop-filter: var(--site-glass-filter);
        -webkit-backdrop-filter: var(--site-glass-filter);
        pointer-events: auto !important;
    }

    .md-sidebar--primary .md-nav,
    .md-sidebar--primary .md-nav__link {
        pointer-events: auto !important;
    }

    .md-sidebar--secondary {
        position: fixed !important;
        inset: 0 !important;
        z-index: 270 !important;
        width: auto !important;
        height: auto !important;
        max-height: none !important;
        margin: 0 !important;
        padding: 0 !important;
        pointer-events: none !important;
    }

    .md-sidebar--secondary .md-sidebar__scrollwrap {
        position: static !important;
        width: auto !important;
        height: auto !important;
        max-height: none !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
        background: transparent;
        border: 0;
        box-shadow: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        pointer-events: none !important;
    }

    .md-sidebar--secondary .md-sidebar-button__wrapper {
        position: fixed !important;
        right: max(env(safe-area-inset-right), 0.78rem) !important;
        bottom: calc(env(safe-area-inset-bottom) + 0.75rem) !important;
        z-index: 272 !important;
        pointer-events: auto !important;
    }

    .md-sidebar--secondary .md-sidebar__inner {
        position: fixed !important;
        right: max(env(safe-area-inset-right), 0.7rem) !important;
        bottom: calc(env(safe-area-inset-bottom) + 3.6rem) !important;
        z-index: 271 !important;
        width: min(68vw, 13rem) !important;
        max-height: min(68dvh, calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 5.7rem)) !important;
        margin: 0 !important;
        padding: 0.55rem 0.62rem !important;
        overflow: hidden !important;
        overscroll-behavior: contain;
        touch-action: pan-y;
        border: 1px solid var(--site-glass-border);
        border-radius: 8px;
        background: var(--site-glass-bg);
        box-shadow: var(--site-glass-shadow);
        backdrop-filter: var(--site-glass-filter);
        -webkit-backdrop-filter: var(--site-glass-filter);
        pointer-events: auto !important;
        flex-direction: column;
        box-sizing: border-box;
    }

    .md-sidebar--secondary #__toc:not(:checked)~.md-sidebar__inner {
        display: none !important;
    }

    .md-sidebar--secondary #__toc:checked~.md-sidebar__inner {
        display: flex !important;
        visibility: visible !important;
    }

    html:has(.md-sidebar--secondary #__toc:checked),
    body:has(.md-sidebar--secondary #__toc:checked) {
        overflow: hidden !important;
    }

    .md-sidebar--secondary .md-nav {
        display: flex;
        flex: 1 1 auto;
        flex-direction: column;
        min-height: 0;
        max-height: 100%;
        background: transparent;
    }

    .md-sidebar--secondary .md-nav__title {
        flex: 0 0 auto;
        margin: 0 0 0.25rem;
        padding: 0.1rem 0.38rem 0.3rem;
    }

    .md-sidebar--secondary .md-nav__list[data-md-component="toc"] {
        flex: 1 1 auto;
        min-height: 0;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 0.15rem;
    }

    .md-sidebar--secondary .md-nav__link--active,
    .md-sidebar--secondary .md-nav__link:focus,
    .md-sidebar--secondary .md-nav__link:hover {
        color: var(--site-selected) !important;
    }

    .md-sidebar--secondary #__toc:not(:checked)+.md-sidebar-button__wrapper .md-sidebar-button,
    .md-sidebar--secondary #__toc:not(:checked)+.md-sidebar-button__wrapper .md-sidebar-button:focus,
    .md-sidebar--secondary #__toc:not(:checked)+.md-sidebar-button__wrapper .md-sidebar-button:focus-visible,
    .md-sidebar--secondary #__toc:not(:checked)+.md-sidebar-button__wrapper .md-sidebar-button:active {
        border-color: var(--site-glass-border) !important;
        background: var(--site-glass-bg) !important;
        box-shadow: var(--site-glass-shadow) !important;
        color: var(--site-text-soft) !important;
        outline: 0 !important;
    }

    .md-sidebar--secondary #__toc:not(:checked)+.md-sidebar-button__wrapper .md-sidebar-button::before,
    .md-sidebar--secondary #__toc:not(:checked)+.md-sidebar-button__wrapper .md-sidebar-button::after,
    .md-sidebar--secondary #__toc:not(:checked)+.md-sidebar-button__wrapper .md-sidebar-button:focus::before,
    .md-sidebar--secondary #__toc:not(:checked)+.md-sidebar-button__wrapper .md-sidebar-button:focus::after,
    .md-sidebar--secondary #__toc:not(:checked)+.md-sidebar-button__wrapper .md-sidebar-button:focus-visible::before,
    .md-sidebar--secondary #__toc:not(:checked)+.md-sidebar-button__wrapper .md-sidebar-button:focus-visible::after,
    .md-sidebar--secondary #__toc:not(:checked)+.md-sidebar-button__wrapper .md-sidebar-button:active::before,
    .md-sidebar--secondary #__toc:not(:checked)+.md-sidebar-button__wrapper .md-sidebar-button:active::after {
        background-color: var(--site-text-soft) !important;
        color: var(--site-text-soft) !important;
    }

    .md-sidebar--secondary #__toc:checked+.md-sidebar-button__wrapper .md-sidebar-button {
        border-color: var(--site-selected) !important;
        background: var(--site-selected) !important;
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.5),
            0 10px 24px rgba(13, 252, 255, 0.28);
        color: rgba(8, 12, 10, 0.92) !important;
    }

    .md-sidebar--secondary #__toc:checked+.md-sidebar-button__wrapper .md-sidebar-button::before,
    .md-sidebar--secondary #__toc:checked+.md-sidebar-button__wrapper .md-sidebar-button::after {
        background-color: rgba(8, 12, 10, 0.92) !important;
        color: rgba(8, 12, 10, 0.92) !important;
    }

    .md-overlay {
        background-color: transparent !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    .home-card {
        box-shadow: 0 10px 26px rgba(0, 0, 0, 0.12);
        animation-duration: 0.35s;
    }

    .quote-card.is-liquid-glass,
    .gallery-card.is-liquid-glass,
    .nav-card.is-liquid-glass,
    .md-footer.is-liquid-glass {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .md-footer {
        margin-top: auto;
        padding: 0.42rem 0.7rem 0.5rem;
        min-height: 3.2rem;
    }

    .md-footer__inner {
        padding: 0 0 0.2rem;
    }

    .md-footer__link {
        width: 100%;
        min-width: 0;
        margin-left: 0;
        margin-right: 0;
        justify-content: space-between;
    }

    .md-footer-meta {
        padding-bottom: 0;
    }

    .md-copyright {
        width: 100%;
        text-align: center;
    }

    .home-hero {
        --spotlight-size: 300px;
        --spotlight-radius: 150px;
        --spotlight-ring-size: 112px;
        --spotlight-ring-radius: 56px;
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        touch-action: pan-y;
        user-select: none;
    }

    .home-hero.is-touch-spotlight {
        touch-action: none;
    }

    .home-hero:hover::before,
    .home-hero:hover::after,
    .md-typeset .home-hero:hover>.hero-spotlight-img {
        opacity: 0;
    }

    .home-hero:hover::after {
        transform: translate3d(calc(var(--mx) - var(--spotlight-ring-radius)), calc(var(--my) - var(--spotlight-ring-radius)), 0) scale(0.9);
    }

    .home-hero:hover>.hero-code-noise {
        opacity: 1;
    }

    .home-hero.is-touch-spotlight::before,
    .home-hero.is-touch-spotlight::after,
    .home-hero.is-spotlight-active::before,
    .home-hero.is-spotlight-active::after {
        opacity: 1;
    }

    .md-typeset .home-hero.is-touch-spotlight>.hero-spotlight-img,
    .md-typeset .home-hero.is-spotlight-active>.hero-spotlight-img {
        opacity: 1;
    }

    .home-hero.is-touch-spotlight::after,
    .home-hero.is-spotlight-active::after {
        transform: translate3d(calc(var(--mx) - var(--spotlight-ring-radius)), calc(var(--my) - var(--spotlight-ring-radius)), 0) scale(1);
    }

    .home-hero.is-touch-spotlight>.hero-code-noise {
        opacity: 0.72;
    }
}

@media (prefers-reduced-motion: reduce) {
    .rain-glass-canvas {
        transition: none;
    }

    .home-card,
    .gallery-track,
    .hero-typing .t-def::after,
    .hero-typing .t-lit::after {
        animation: none;
    }

    .home-card,
    .hero-btn,
    .quote-card,
    .gallery-card,
    .nav-card,
    .tile img {
        transition: none;
    }
}

/* Framework styles */
.md-main__inner {
    margin-top: 1rem;
}

/* .md-main__inner:has(.home-shell) > .md-sidebar.md-sidebar--primary {
    display: none;
} */

/* Home page only: remove primary sidebar footprint on desktop without breaking mobile drawer */
@media screen and (min-width: 76.25em) {
    .md-main__inner:has(.home-shell)>.md-sidebar.md-sidebar--primary {
        width: 0;
        min-width: 0;
        max-width: 0;
        padding: 0;
        margin: 0;
        overflow: hidden;
        visibility: hidden;
    }

    .md-main__inner:has(.home-shell)>.md-content {
        margin: 0;
        max-width: none;
    }
}

/* Corrections: keep nav color, code controls, footer, and scrollbars tight. */
html,
body,
.md-sidebar__scrollwrap,
.md-content,
.md-main,
[data-md-scrollfix] {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

* {
    scrollbar-width: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar,
.md-sidebar__scrollwrap::-webkit-scrollbar,
.md-content::-webkit-scrollbar,
.md-main::-webkit-scrollbar,
[data-md-scrollfix]::-webkit-scrollbar,
*::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.md-nav__link--active,
.md-nav__link--active *,
.md-nav__link:focus,
.md-nav__link:focus *,
.md-nav__link:hover,
.md-nav__link:hover *,
.md-tabs__item--active .md-tabs__link,
.md-tabs__item--active .md-tabs__link *,
.md-tabs__link:focus,
.md-tabs__link:focus *,
.md-tabs__link:hover,
.md-tabs__link:hover *,
.md-header__button:focus,
.md-header__button:hover,
.md-header__button:active,
.md-search__button:focus,
.md-search__button:hover,
.md-top:focus,
.md-top:hover,
.md-top:active,
.md-sidebar .md-nav__title:hover,
.md-sidebar .md-nav__title:active,
.md-sidebar .md-nav__title:hover *,
.md-sidebar .md-nav__title:active *,
.md-typeset a:focus,
.md-typeset a:hover,
.md-typeset a:active,
.md-typeset [tabindex]:focus,
.md-typeset [tabindex]:hover,
.md-typeset [tabindex]:active,
[aria-selected="true"],
[aria-current],
:target>.headerlink {
    color: var(--site-selected) !important;
}

.md-nav__link--active svg,
.md-nav__link:focus svg,
.md-nav__link:hover svg,
.md-nav__link:active svg,
.md-tabs__link:focus svg,
.md-tabs__link:hover svg,
.md-tabs__link:active svg,
.md-header__button:focus svg,
.md-header__button:hover svg,
.md-header__button:active svg {
    color: var(--site-selected) !important;
    fill: currentColor;
}

.md-search__button:active {
    border-color: var(--site-selected) !important;
    background: var(--site-liquid-control-bg);
    color: var(--site-text-soft) !important;
}

.md-header__button[for="__search"]:active {
    border-color: var(--site-selected) !important;
    background: transparent !important;
    color: var(--site-icon) !important;
}

.md-header__button[for="__search"]:active svg {
    color: var(--site-selected) !important;
    fill: none !important;
    stroke: currentColor;
}

/* header 搜索按钮:去掉背景圆形填充和图标实心填充,只做描边变色;点击后不持续高亮 */
.md-header__button[for="__search"]:focus,
.md-header__button[for="__search"]:hover,
.md-header__button[for="__search"]:active {
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
}

.md-header__button[for="__search"]::before,
.md-header__button[for="__search"]:focus::before,
.md-header__button[for="__search"]:hover::before,
.md-header__button[for="__search"]:active::before {
    opacity: 0 !important;
    display: none !important;
}

.md-header__button[for="__search"] svg,
.md-header__button[for="__search"]:focus svg,
.md-header__button[for="__search"]:hover svg {
    fill: none !important;
    stroke: currentColor;
}

.md-header__button[for="__search"]:focus,
.md-header__button[for="__search"]:focus svg {
    color: var(--site-icon) !important;
}

.md-header__button[for="__search"]:active,
.md-header__button[for="__search"]:active svg {
    color: var(--site-selected) !important;
}

::selection {
    background: rgba(182, 193, 250, 0.28);
    color: var(--site-selected);
}

.md-typeset .highlight {
    position: relative;
    overflow: hidden;
}

.md-container {
    min-height: calc(100vh - 5.8rem);
    min-height: calc(100svh - 5.8rem);
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.md-main {
    display: flex;
    flex: 1 0 auto;
    flex-direction: column;
}

.md-main__inner {
    flex: 1 0 auto;
    width: min(82vw, 104rem);
    max-width: min(90vw, 104rem);
    margin-bottom: 0;
    padding-bottom: 0;
}

.md-content {
    flex: 1 1 0;
    width: auto;
    max-width: none !important;
    min-width: 0;
}

.md-content__inner:not(:has(.home-shell)) {
    flex: 1 1 auto;
    width: auto;
    max-width: 100% !important;
    min-width: 0;
    box-sizing: border-box;
}

.md-typeset .highlight,
.md-typeset pre {
    width: 100%;
}

.md-typeset .highlight .md-code__nav,
.md-code__nav {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    left: 0 !important;
    bottom: auto !important;
    z-index: 2;
    width: auto !important;
    max-width: 100% !important;
    height: 2rem;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: var(--site-code-nav-bg);
    box-shadow: none;
    color: var(--site-text);
    backdrop-filter: var(--site-code-filter);
    -webkit-backdrop-filter: var(--site-code-filter);
    overflow: visible;
    transform: none !important;
    transition: none;
}

.md-typeset .highlight .md-code__nav:hover,
.md-code__nav:hover {
    border: 0 !important;
    background: var(--site-code-nav-bg);
    box-shadow: none;
    color: var(--site-text);
}

html.is-code-fullscreen,
body.is-code-fullscreen {
    overflow: hidden;
}

html.is-code-fullscreen .md-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 20;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: none !important;
}

html.is-code-fullscreen .md-tooltip,
html.is-code-fullscreen .md-tooltip2,
html.is-code-fullscreen [role="tooltip"],
html.is-code-fullscreen [role="dialog"] {
    z-index: 30 !important;
}

html.is-code-fullscreen .md-top,
html.is-code-fullscreen .md-footer {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

html.is-code-fullscreen .md-content__inner:not(:has(.home-shell)) {
    border-color: transparent;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.md-typeset .highlight.is-code-fullscreen {
    position: fixed !important;
    inset: 0 !important;
    z-index: 260;
    width: auto !important;
    max-width: none !important;
    height: auto !important;
    margin: 0 !important;
    border-radius: 0 !important;
    background:
        radial-gradient(120% 90% at 14% 0%, rgb(32, 39, 37), rgb(15, 20, 19) 42%, rgb(8, 12, 11) 72%),
        linear-gradient(180deg, rgb(9, 13, 12), rgb(4, 7, 7));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        inset 0 0 42px rgba(255, 255, 255, 0.045),
        0 0 0 1px rgba(255, 255, 255, 0.08);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    overflow: auto !important;
}

.md-typeset .highlight.is-code-fullscreen .md-code__nav {
    position: sticky !important;
    top: 0 !important;
    right: auto !important;
    left: auto !important;
    z-index: 16;
    width: 100% !important;
    background:
        radial-gradient(120% 140% at 12% 0%, rgb(23, 29, 27), rgb(11, 15, 14) 44%, rgb(7, 10, 10) 76%),
        linear-gradient(180deg, rgb(7, 10, 10), rgb(6, 9, 9));
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.md-typeset .highlight.is-code-fullscreen:has(.md-code__nav) code {
    padding-top: 0;
}

.md-typeset .highlight.is-code-fullscreen>pre {
    min-height: calc(100svh - 2rem);
    background: transparent !important;
}

.md-typeset .highlight .md-clipboard,
.md-typeset .highlight .md-code__button,
.md-code__nav .md-clipboard,
.md-code__nav .md-code__button {
    border-color: var(--site-code-button-border);
    background: var(--site-code-button-bg);
    box-shadow: none;
    color: var(--site-code-button-color) !important;
    opacity: 1;
    transform: none !important;
    transition:
        color 0.16s ease,
        background 0.16s ease,
        border-color 0.16s ease,
        box-shadow 0.16s ease;
}

.md-typeset .highlight .md-clipboard svg,
.md-typeset .highlight .md-code__button svg,
.md-code__nav .md-clipboard svg,
.md-code__nav .md-code__button svg {
    display: block;
    width: 0.72rem;
    height: 0.72rem;
    color: currentColor !important;
    fill: currentColor;
    flex: 0 0 auto;
}

.md-typeset .highlight .md-clipboard:hover,
.md-typeset .highlight .md-code__button:hover,
.md-typeset .highlight .md-clipboard:focus-visible,
.md-typeset .highlight .md-code__button:focus-visible,
.md-typeset .highlight .is-code-fullscreen-button,
.md-code__nav .md-clipboard:hover,
.md-code__nav .md-code__button:hover,
.md-code__nav .md-clipboard:focus-visible,
.md-code__nav .md-code__button:focus-visible,
.md-code__nav .is-code-fullscreen-button {
    border-color: var(--site-code-button-border-hover);
    background: var(--site-code-button-bg-hover);
    box-shadow: none;
    color: var(--site-code-button-color-hover) !important;
    transform: none !important;
}

.md-typeset .highlight .md-clipboard:focus:not(:focus-visible),
.md-typeset .highlight .md-code__button:focus:not(:focus-visible):not(.is-code-fullscreen-button),
.md-code__nav .md-clipboard:focus:not(:focus-visible),
.md-code__nav .md-code__button:focus:not(:focus-visible):not(.is-code-fullscreen-button) {
    border-color: var(--site-code-button-border);
    background: var(--site-code-button-bg);
    box-shadow: none;
    color: var(--site-code-button-color) !important;
}

.md-typeset .highlight>pre {
    background: transparent !important;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    margin: 0 !important;
    padding-top: 0 !important;
}

.md-typeset .highlight code,
.md-typeset pre code {
    background: transparent;
    color: var(--site-code-text);
}

.md-typeset .highlight:has(.md-code__nav) code {
    display: block;
    padding-top: 2rem;
}

.md-content__inner:not(:has(.home-shell)) {
    margin-bottom: 20px;
}

.md-footer {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: auto;
    margin-bottom: 0 !important;
    padding: 0;
    min-height: 3.1rem;
    max-height: 3.1rem;
}

.md-footer::before {
    display: none;
}

.md-footer-meta {
    display: contents;
}

.md-footer-meta__inner {
    width: 100%;
    min-height: 3.1rem;
    padding: 0;
    align-items: center;
    justify-content: center;
}

.md-main:has(.home-shell) {
    min-height: calc(100vh - 5.8rem);
    min-height: calc(100svh - 5.8rem);
}

/* Footer stays in document flow while sharing the header glass layer. */
.md-footer {
    position: relative;
    z-index: 2;
    isolation: isolate;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0;
    margin-bottom: 0 !important;
    padding: 0.38rem clamp(1rem, 4vw, 2rem);
    min-height: 3.25rem;
    max-height: none;
    background: var(--site-glass-bg);
    border-top: 1px solid var(--site-glass-border);
    box-shadow: var(--site-glass-shadow);
    color: #fff;
    backdrop-filter: var(--site-glass-filter);
    -webkit-backdrop-filter: var(--site-glass-filter);
}

.md-footer.is-liquid-glass {
    backdrop-filter: var(--site-glass-filter);
    -webkit-backdrop-filter: var(--site-glass-filter);
}

.md-footer::before {
    display: none;
}

.md-footer * {
    color: inherit;
}

.md-footer-meta {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    padding: 0;
    background: transparent;
}

.md-footer-meta__inner {
    display: flex;
    width: 100%;
    max-width: none;
    min-height: 0;
    margin: 0 auto;
    padding: 0;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    text-align: center;
}

.md-copyright {
    width: 100%;
    margin: 0;
    color: #fff;
    font-size: 0;
    line-height: 1;
    opacity: 1;
}

.md-copyright__highlight {
    margin: 0;
    width: 100%;
}

.site-footer-grid {
    display: grid;
    width: 100%;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: clamp(1rem, 5vw, 4rem);
    align-items: center;
    color: #fff;
    font-size: 0.58rem;
    line-height: 1.55;
}

.site-footer-cell {
    min-width: 0;
    opacity: 0.9;
}

.site-footer-cell--left {
    text-align: left;
}

.site-footer-cell--center {
    text-align: center;
}

.site-footer-cell--right {
    display: flex;
    flex-direction: column;
    text-align: right;
}

.site-footer-cell span {
    display: block;
}

.md-footer .md-typeset a.site-footer-link,
.md-footer .md-typeset a.site-footer-link:visited {
    color: #dfff00 !important;
    text-decoration: none;
}

.md-footer .md-typeset a.site-footer-link:active,
.md-footer .md-typeset a.site-footer-link:focus,
.md-footer .md-typeset a.site-footer-link:hover,
.md-footer .md-typeset a.site-footer-link:focus-visible {
    color: var(--site-selected) !important;
    text-decoration: underline;
    text-underline-offset: 0.14em;
}

html:not(:has(.home-shell)) .site-footer-cell--left,
html:not(:has(.home-shell)) .site-footer-cell--right {
    display: none;
}

html:not(:has(.home-shell)) .site-footer-grid {
    grid-template-columns: 1fr;
    justify-items: center;
}

html:not(:has(.home-shell)) .site-footer-cell--center {
    width: 100%;
    font-size: 0;
    text-align: center;
}

html:not(:has(.home-shell)) .site-footer-cell--center::before {
    content: "诸神十分不幸，因为不能像我们这样可以自杀。";
    font-size: 0.68rem;
    line-height: 1;
}

/* ── 404 页面 ── */
html.is-not-found-page .md-header,
html.is-not-found-page .md-tabs,
html.is-not-found-page .md-footer {
    display: none !important;
}

html.is-not-found-page .md-main__inner {
    width: min(86vw, 82rem);
    max-width: min(92vw, 82rem);
}

html.is-not-found-page .md-sidebar {
    display: none !important;
}

html.is-not-found-page .md-sidebar__scrollwrap::before,
html.is-not-found-page .md-content__inner::before,
html.is-not-found-page .md-content__inner::after {
    content: none !important;
    display: none !important;
}

html.is-not-found-page .md-content {
    margin: 0 !important;
}

html.is-not-found-page .md-content__inner {
    min-height: calc(100svh - 10rem);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 0;
    margin-bottom: 0;
    padding: 0;
    border: 0;
    background: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    text-align: center;
}

html.is-not-found-page .md-typeset h1 {
    margin: 0 0 1.2rem;
    color: var(--site-text);
    font-size: clamp(1.1rem, 1.8vw, 1.4rem);
    line-height: 1.4;
    letter-spacing: 0.02em;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.32);
}

/* 404 返回按钮 */
.not-found-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.45rem 1.2rem;
    border-radius: 999px;
    border: 1px solid var(--site-liquid-control-border);
    background: var(--site-liquid-control-bg);
    box-shadow: var(--site-liquid-control-shadow);
    backdrop-filter: var(--site-glass-filter);
    -webkit-backdrop-filter: var(--site-glass-filter);
    color: var(--site-text);
    font-size: 0.9rem;
    text-decoration: none;
    cursor: pointer;
    transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

.not-found-back:hover {
    border-color: var(--site-liquid-control-border-strong);
    box-shadow: var(--site-liquid-control-shadow-hover);
    transform: translateY(-2px);
}

.not-found-back-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

@media (max-width: 700px) {
    .md-footer {
        padding: 0.42rem 0.9rem;
        min-height: 4.8rem;
    }

    .md-footer-meta__inner {
        width: 100%;
    }

    .site-footer-grid {
        grid-template-columns: 1fr;
        gap: 0.16rem;
        font-size: 0.54rem;
        line-height: 1.45;
    }

    .site-footer-cell,
    .site-footer-cell--left,
    .site-footer-cell--center,
    .site-footer-cell--right {
        text-align: center;
    }
}

/* ── 页脚：30 天浏览量迷你折线（仅首页）── */
.footer-stats {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    /* 自定字号，不继承 .site-footer-grid 的 0.58rem */
    font-size: 0.6rem;
    line-height: 1;
    color: var(--site-text-soft, rgba(255, 255, 255, 0.72));
    vertical-align: middle;
    max-width: 100%;
}

/* 重置 .site-footer-cell span{display:block}（extra.css 3610）对组件内 span 的破坏 */
.footer-stats span {
    display: inline;
}

.footer-stats__inner {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.footer-stats__spark {
    display: block;
    width: 96px;
    height: 24px;
    flex: 0 0 auto;
}

.footer-stats__line {
    stroke: var(--site-selected, #0dfcff);
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.footer-stats__total {
    white-space: nowrap;
}

.footer-stats__num {
    font-weight: 600;
    color: var(--site-text, rgba(255, 255, 255, 0.92));
}

.footer-stats__label {
    color: var(--site-text-muted, rgba(255, 255, 255, 0.54));
}

/* 窄屏下保持折线可读 */
@media (max-width: 768px) {
    .footer-stats {
        font-size: 0.54rem;
        gap: 0.4rem;
    }

    .footer-stats__spark {
        width: 80px;
        height: 22px;
    }
}
