:root {
    --site-max-width: 1120px;
    --site-radius: 28px;
    --card-radius: 24px;
    --site-shadow: 0 24px 80px rgba(15, 23, 42, 0.18);
    --site-border: rgba(255, 255, 255, 0.3);
    --site-bg: #f4f7fb;
    --site-bg-secondary: rgba(255, 255, 255, 0.52);
    --site-bg-strong: rgba(255, 255, 255, 0.62);
    --site-text: #162033;
    --site-muted: #60708a;
    --site-accent: #4f7cff;
    --site-accent-soft: rgba(79, 124, 255, 0.16);
    --site-line: rgba(111, 128, 160, 0.18);
    --site-glow-a: rgba(110, 167, 255, 0.32);
    --site-glow-b: rgba(167, 126, 255, 0.24);
    --weather-tint: rgba(79, 124, 255, 0.12);
}

html[data-color-mode="dark"] {
    --site-bg: #07111f;
    --site-bg-secondary: rgba(9, 18, 35, 0.54);
    --site-bg-strong: rgba(8, 18, 34, 0.62);
    --site-text: #ebf2ff;
    --site-muted: #99abd0;
    --site-accent: #78b2ff;
    --site-accent-soft: rgba(120, 178, 255, 0.18);
    --site-line: rgba(167, 193, 255, 0.16);
    --site-border: rgba(170, 204, 255, 0.22);
    --site-shadow: 0 30px 90px rgba(0, 0, 0, 0.48);
    --site-glow-a: rgba(47, 104, 204, 0.32);
    --site-glow-b: rgba(102, 74, 190, 0.28);
    --weather-tint: rgba(80, 137, 255, 0.16);
}

html[data-season="spring"] {
    --site-accent: #43b581;
    --site-accent-soft: rgba(67, 181, 129, 0.16);
    --site-glow-a: rgba(111, 214, 162, 0.28);
    --site-glow-b: rgba(255, 167, 198, 0.2);
}

html[data-season="summer"] {
    --site-accent: #2f8cff;
    --site-accent-soft: rgba(47, 140, 255, 0.18);
    --site-glow-a: rgba(93, 201, 255, 0.28);
    --site-glow-b: rgba(255, 190, 72, 0.22);
}

html[data-season="autumn"] {
    --site-accent: #d07a27;
    --site-accent-soft: rgba(208, 122, 39, 0.18);
    --site-glow-a: rgba(255, 170, 92, 0.22);
    --site-glow-b: rgba(168, 98, 28, 0.2);
}

html[data-season="winter"] {
    --site-accent: #5c8dff;
    --site-accent-soft: rgba(92, 141, 255, 0.16);
    --site-glow-a: rgba(123, 174, 255, 0.2);
    --site-glow-b: rgba(132, 210, 255, 0.16);
}

html[data-weather="rain"],
html[data-weather="drizzle"] {
    --weather-tint: rgba(72, 112, 176, 0.18);
}

html[data-weather="snow"] {
    --weather-tint: rgba(188, 220, 255, 0.18);
}

html[data-weather="thunder"] {
    --weather-tint: rgba(112, 94, 191, 0.18);
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    position: relative;
    max-width: none !important;
    margin: 0 !important;
    padding: 32px 20px 72px !important;
    font-size: 16px;
    line-height: 1.72;
    color: var(--site-text);
    background:
        radial-gradient(circle at 8% 12%, var(--site-glow-a), transparent 28%),
        radial-gradient(circle at 88% 14%, var(--site-glow-b), transparent 24%),
        radial-gradient(circle at 50% 100%, var(--weather-tint), transparent 30%),
        linear-gradient(180deg, rgba(255,255,255,0.24), transparent 24%),
        var(--site-bg);
    overflow-x: hidden;
}

body::before,
body::after {
    content: "";
    position: fixed;
    inset: auto;
    width: 42vw;
    height: 42vw;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(80px);
    z-index: -3;
    opacity: 0.48;
}

body::before {
    top: -10vw;
    left: -12vw;
    background: var(--site-glow-a);
}

body::after {
    right: -12vw;
    bottom: -16vw;
    background: var(--site-glow-b);
}

a {
    color: var(--site-accent);
}

#dynamicBackdrop,
#weatherScene,
#seasonCanvas {
    position: fixed;
    inset: 0;
    pointer-events: none;
}

#dynamicBackdrop {
    z-index: 0;
    overflow: hidden;
}

#weatherScene {
    z-index: 1;
    width: 100%;
    height: 100%;
    overflow: visible;
}

#weatherScene .weather-layer {
    transform: translate3d(calc(var(--mx, 0) * 1px), calc(var(--my, 0) * 1px), 0);
    transition: transform 220ms ease-out;
}

#weatherScene .weather-core {
    opacity: 0.96;
}

#weatherScene .weather-soft {
    opacity: 0.7;
}

#weatherScene .weather-stroke {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

#weatherScene .cloud-shape {
    fill: rgba(255, 255, 255, 0.42);
}

html[data-color-mode="dark"] #weatherScene .cloud-shape {
    fill: rgba(197, 221, 255, 0.3);
}

#weatherScene .fog-band {
    fill: rgba(255, 255, 255, 0.28);
    opacity: 0.92;
}

html[data-color-mode="dark"] #weatherScene .fog-band {
    fill: rgba(180, 213, 255, 0.2);
}

#weatherScene .rain-drop {
    stroke: rgba(123, 182, 255, 0.72);
    stroke-width: 3.6;
}

#weatherScene .snow-dot {
    fill: rgba(255, 255, 255, 0.98);
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
}

#weatherScene .sun-core {
    fill: rgba(255, 212, 102, 0.86);
    filter: drop-shadow(0 0 28px rgba(255, 212, 102, 0.36));
}

#weatherScene .sun-ring {
    stroke: rgba(255, 199, 87, 0.54);
    stroke-width: 10;
}

#weatherScene .bolt {
    fill: rgba(255, 238, 172, 0.9);
    filter: drop-shadow(0 0 18px rgba(255, 240, 170, 0.5));
}

#weatherScene .bolt-soft {
    opacity: 0.72;
    filter: drop-shadow(0 0 12px rgba(255, 240, 170, 0.36));
}

#weatherScene .weather-hidden {
    opacity: 0;
}

#weatherScene .weather-visible {
    opacity: 1;
}

#weatherScene [data-weather-group] {
    transition: opacity 240ms ease;
}

#dynamicBackdrop .orb {
    position: absolute;
    border-radius: 999px;
    filter: blur(18px);
    opacity: 0.58;
    animation: orbFloat linear infinite;
    will-change: transform;
}

#seasonCanvas {
    z-index: 2;
}

@keyframes orbFloat {
    from { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(20px, -32px, 0) scale(1.08); }
    to { transform: translate3d(-18px, 18px, 0) scale(0.94); }
}

#header,
#content,
#footer {
    position: relative;
    z-index: 3;
    max-width: var(--site-max-width);
    margin-left: auto;
    margin-right: auto;
    border: 1px solid var(--site-border);
    background:
        linear-gradient(180deg, rgba(255,255,255,0.3), rgba(255,255,255,0.06) 30%),
        var(--site-bg-secondary);
    backdrop-filter: blur(28px) saturate(155%);
    -webkit-backdrop-filter: blur(28px) saturate(155%);
    box-shadow: var(--site-shadow);
}

#header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px 28px;
    border-radius: var(--site-radius);
    margin-bottom: 22px;
}

#content {
    padding: 28px;
    border-radius: 0 0 var(--site-radius) var(--site-radius);
}

body.page-home #content,
body.page-tag #content,
body.page-post #content {
    border-radius: var(--site-radius);
}

#footer {
    margin-top: 28px !important;
    padding: 18px 24px;
    border-radius: 24px;
    text-align: center;
    color: var(--site-muted);
}

#footer a,
#footer span {
    color: inherit;
}

.title-left,
.title-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.title-right {
    margin-left: auto !important;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.avatar {
    width: 76px !important;
    height: 76px !important;
    border: 2px solid rgba(255, 255, 255, 0.68);
    box-shadow: 0 12px 32px rgba(79, 124, 255, 0.18);
}

.blogTitle,
.tagTitle,
.postTitle {
    margin: 0 !important;
    font-size: clamp(2rem, 4vw, 3.3rem) !important;
    line-height: 1.1;
    letter-spacing: -0.04em;
    color: var(--site-text) !important;
}

.blogTitle {
    display: inline-flex;
    align-items: center;
}

.page-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--site-accent-soft);
    color: var(--site-accent);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.hero-intro,
.search-panel,
.article-shell {
    position: relative;
    overflow: hidden;
    padding: 26px;
    border-radius: var(--card-radius);
    border: 1px solid color-mix(in srgb, var(--site-border) 80%, white);
    background:
        linear-gradient(180deg, rgba(255,255,255,0.28), rgba(255,255,255,0.08) 45%),
        var(--site-bg-strong);
    backdrop-filter: blur(24px) saturate(145%);
    -webkit-backdrop-filter: blur(24px) saturate(145%);
    box-shadow: 0 18px 60px rgba(31, 43, 73, 0.12);
}

.hero-intro::after,
.search-panel::after,
.article-shell::after {
    content: "";
    position: absolute;
    inset: auto -10% -55% auto;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--site-accent-soft), transparent 68%);
    pointer-events: none;
}

.hero-intro {
    margin-bottom: 24px;
}

.hero-intro p,
.search-panel p {
    margin: 0;
    color: var(--site-muted);
    font-size: 1.02rem;
}

.hero-intro p[data-config-pending="1"] {
    visibility: hidden;
}

.intro-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.intro-stat,
.weather-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border: 1px solid var(--site-line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.38);
    color: var(--site-text);
    font-size: 13px;
    font-weight: 600;
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
}

.intro-copy {
    cursor: pointer;
    appearance: none;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.intro-copy:hover {
    transform: translateY(-1px);
    border-color: var(--site-accent);
}

.intro-copy.is-copied {
    background: var(--site-accent-soft);
    color: var(--site-accent);
    box-shadow: 0 10px 24px rgba(79, 124, 255, 0.18);
}

.site-toast {
    position: fixed;
    left: 50%;
    bottom: 34px;
    transform: translateX(-50%) translateY(18px);
    z-index: 9999;
    padding: 12px 18px;
    border-radius: 999px;
    border: 1px solid var(--site-line);
    background: color-mix(in srgb, var(--site-bg-strong) 88%, white 12%);
    color: var(--site-text);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
    backdrop-filter: blur(20px) saturate(145%);
    -webkit-backdrop-filter: blur(20px) saturate(145%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.site-toast.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.weather-preview {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 8px 10px;
    border: 1px solid var(--site-line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.34);
    backdrop-filter: blur(20px) saturate(145%);
    -webkit-backdrop-filter: blur(20px) saturate(145%);
}

html[data-color-mode="dark"] .weather-preview {
    background: rgba(12, 23, 41, 0.72);
}

.weather-preview select {
    min-width: 88px;
    height: 36px;
    padding: 0 34px 0 14px;
    border: 1px solid var(--site-line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.28);
    color: var(--site-text);
    font-size: 13px;
    font-weight: 700;
    outline: none;
    cursor: pointer;
    backdrop-filter: blur(14px) saturate(135%);
    -webkit-backdrop-filter: blur(14px) saturate(135%);
}

.weather-preview select,
.weather-preview option {
    color: #162033;
}

.weather-preview option {
    background: rgba(255, 255, 255, 0.96);
}

.weather-preview select:focus {
    border-color: var(--site-accent);
    box-shadow: 0 0 0 3px var(--site-accent-soft);
}

html[data-color-mode="dark"] .intro-stat,
html[data-color-mode="dark"] .weather-chip {
    background: rgba(12, 23, 41, 0.7);
}

html[data-color-mode="dark"] .weather-preview select,
html[data-color-mode="dark"] .weather-preview option {
    color: #ebf2ff;
}

html[data-color-mode="dark"] .weather-preview option {
    background: #13233d;
}

.section-title {
    margin: 0 0 14px;
    font-size: 1.08rem;
    color: var(--site-text);
    letter-spacing: 0.02em;
}

.SideNav {
    min-width: 0 !important;
    border: 0 !important;
    background: transparent !important;
}

.SideNav-item {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 18px;
    padding: 18px 20px !important;
    min-height: 92px;
    margin-bottom: 14px;
    border: 1px solid var(--site-line) !important;
    border-radius: 20px !important;
    background: rgba(255, 255, 255, 0.34) !important;
    backdrop-filter: blur(22px) saturate(140%);
    -webkit-backdrop-filter: blur(22px) saturate(140%);
    box-shadow: 0 10px 40px rgba(31, 43, 73, 0.1);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.SideNav-item:hover {
    transform: translateY(-4px);
    border-color: rgba(79, 124, 255, 0.28) !important;
    box-shadow: 0 16px 44px rgba(31, 43, 73, 0.12);
    text-decoration: none;
}

.SideNav-icon {
    margin-right: 14px !important;
    padding: 10px;
    border-radius: 14px;
    background: var(--site-accent-soft);
    color: var(--site-accent);
}

.SideNav-item > .d-flex {
    min-width: 0;
    align-self: center;
}

.listTitle {
    color: var(--site-text);
    font-size: 1.02rem;
    font-weight: 700;
}

.listLabels {
    display: flex !important;
    flex-wrap: wrap;
    align-items: flex-end;
    align-content: flex-end;
    justify-content: flex-end;
    gap: 12px;
    margin-left: auto;
    align-self: flex-end;
    height: 100%;
}

.Label,
.Counter {
    border-radius: 999px !important;
}

.Label {
    padding: 4px 10px;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
    margin-left: 0 !important;
}

.subnav-search {
    width: min(360px, 100%) !important;
    margin: 0 !important;
}

.subnav-search-input {
    width: calc(100% - 68px) !important;
    height: 42px !important;
    border-radius: 14px 0 0 14px !important;
    border-color: var(--site-line) !important;
    background: var(--site-bg-strong) !important;
}

.subnav-search .btn {
    height: 42px;
    border-radius: 0 14px 14px 0 !important;
}

#taglabel {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px !important;
}

#taglabel .Label {
    margin: 0 !important;
    padding: 6px 12px !important;
    border: 0;
}

.notFind {
    padding: 28px;
    border: 1px dashed var(--site-line);
    border-radius: 20px;
    color: var(--site-muted);
    background: var(--site-bg-strong);
}

.article-shell {
    padding: 28px;
}

.article-shell > .page-kicker {
    margin-bottom: 18px;
}

.article-shell > .postTitle {
    margin-bottom: 24px !important;
}

.article-shell > .article-meta,
.article-shell > .article-tag-list {
    margin-bottom: 20px;
}

#postBody {
    border-bottom: 1px solid var(--site-line) !important;
    padding-bottom: 36px !important;
    line-height: 1.9;
}

#postBody > :first-child {
    margin-top: 0;
}

#postBody p,
#postBody li,
#postBody blockquote {
    color: var(--site-text);
    font-size: 1.02rem;
}

#postBody p {
    margin: 0 0 1.1em;
}

#postBody h1,
#postBody h2,
#postBody h3,
#postBody h4,
#postBody h5,
#postBody h6 {
    margin-top: 1.7em;
    margin-bottom: 0.7em;
    line-height: 1.28;
    letter-spacing: -0.02em;
}

#postBody h1 { font-size: clamp(1.95rem, 4vw, 2.6rem); }
#postBody h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
#postBody h3 { font-size: clamp(1.25rem, 2.4vw, 1.55rem); }

#postBody ul,
#postBody ol {
    margin: 0.8em 0 1.2em;
    padding-left: 1.5em;
}

#postBody hr {
    margin: 2.1em 0;
    border: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--site-line), transparent);
}

#postBody img,
#postBody video,
#postBody audio,
#postBody iframe {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 1.25rem 0;
    border: 0;
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.08);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
}

#postBody audio {
    min-height: 54px;
    padding: 4px;
}

#postBody iframe {
    min-height: 360px;
}

#postBody .media-shell {
    margin: 1.4rem 0 1.8rem;
    padding: 14px;
    border: 1px solid var(--site-line);
    border-radius: 24px;
    background: color-mix(in srgb, var(--site-bg-strong) 88%, white 12%);
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.12);
}

#postBody .media-shell iframe,
#postBody .media-shell video,
#postBody .media-shell audio,
#postBody .media-shell img {
    margin: 0;
}

#postBody .media-shell--embed {
    padding: 0;
    overflow: hidden;
}

#postBody .media-shell--embed iframe {
    aspect-ratio: 16 / 9;
    min-height: auto;
}

#postBody .media-shell--audio {
    padding: 12px;
}

body.page-home #content > .hero-intro + .section-title {
    margin-top: 2px;
}

#postBody blockquote {
    padding: 14px 18px;
    border-left: 4px solid var(--site-accent);
    border-radius: 0 14px 14px 0;
    background: var(--site-accent-soft);
}

#postBody pre,
#postBody .highlight {
    border-radius: 18px !important;
    overflow: auto;
}

#cmButton {
    height: 52px !important;
    margin-top: 28px !important;
    border-radius: 16px !important;
    border: 0 !important;
    background: linear-gradient(135deg, var(--site-accent), color-mix(in srgb, var(--site-accent) 65%, white)) !important;
    color: #fff !important;
    box-shadow: 0 18px 40px rgba(79, 124, 255, 0.24);
}

#comments {
    margin-top: 36px !important;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.article-meta span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--site-accent-soft);
    color: var(--site-accent);
    font-size: 13px;
    font-weight: 600;
}

.article-shell .article-meta {
    margin-bottom: 22px;
}

.article-shell .article-meta span:first-child {
    margin-right: 6px;
}

.article-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 0;
}

.article-tag-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 16px;
    border-radius: 999px;
    color: #fff !important;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none !important;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.12);
}

.article-tag-link:hover {
    transform: translateY(-1px);
    text-decoration: none;
}

.page-note {
    margin-top: 14px;
    color: var(--site-muted);
    font-size: 0.95rem;
}

.theme-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid var(--site-line);
    background: var(--site-bg-strong);
    color: var(--site-muted);
    font-size: 12px;
    font-weight: 600;
}

.title-right .btn,
.title-right button {
    border-radius: 16px !important;
    border-color: var(--site-line) !important;
    background: rgba(255, 255, 255, 0.26) !important;
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    box-shadow: none !important;
}

.title-right .circle {
    padding: 13px 15px !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
}

body.page-post .toc {
    display: none !important;
}

@media (min-width: 1600px) {
    body.page-post .toc {
        display: block !important;
        position: fixed !important;
        top: 118px !important;
        left: auto !important;
        right: 16px !important;
        transform: none !important;
        width: min(240px, calc((100vw - var(--site-max-width)) / 2 - 16px)) !important;
        max-height: 70vh !important;
        overflow-y: auto !important;
        z-index: 40;
    }
}

body.page-post .toc .toc-title {
    position: sticky;
    top: 0;
    background: var(--site-bg-strong);
    z-index: 2;
}

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

@media (max-width: 900px) {
    body {
        padding: 18px 12px 48px !important;
    }

    #header,
    #content,
    #footer {
        padding-left: 18px;
        padding-right: 18px;
    }

    #header {
        flex-wrap: wrap;
    }

    .title-right {
        width: 100%;
        margin-left: 0 !important;
        gap: 10px;
        justify-content: flex-start;
        gap: 10px;
    }

    .SideNav-item {
        display: flex !important;
        align-items: flex-start;
        flex-direction: column;
    }

    .listLabels {
        justify-content: flex-start;
    }

    body.page-post .toc {
        display: none !important;
    }
}

@media (max-width: 640px) {
    .avatar {
        width: 52px !important;
        height: 52px !important;
    }

    .blogTitle,
    .tagTitle,
    .postTitle {
        font-size: 1.7rem !important;
    }

    #header,
    #content,
    #footer,
    .hero-intro,
    .search-panel,
    .article-shell {
        border-radius: 20px;
    }

    #content {
        padding: 18px;
    }

    .subnav-search {
        width: 100% !important;
    }

    .subnav-search-input {
        width: calc(100% - 58px) !important;
    }

    #postBody {
        line-height: 1.8;
    }

    #postBody iframe {
        min-height: 220px;
    }

    #postBody .media-shell {
        padding: 10px;
        border-radius: 18px;
    }
}