:root {
    --night: #090d18;
    --night-mid: #0e1428;
    --moon: #f6eed6;
    --tea: #cbb07a;
    --tea-dim: rgba(203, 176, 122, 0.38);
    --mist: rgba(180, 200, 230, 0.2);
    --text: #e8ecf5;
    --glass: rgba(255, 255, 255, 0.065);
    --glass-border: rgba(255, 255, 255, 0.13);
    --glass-highlight: rgba(255, 255, 255, 0.1);
    --carousel-h: clamp(220px, 42vw, 320px);
    --page-max: min(92vw, 71rem);
    --page-max-hub: min(94vw, 74rem);
    --radius-lg: 1.35rem;
    --radius-xl: 1.75rem;
    --shadow-panel: 0 4px 6px rgba(0, 0, 0, 0.08), 0 24px 56px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(255, 255, 255, 0.04);
    --shadow-nav: 0 10px 40px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.07);
    --fx-glow-tea: rgba(203, 176, 122, 0.22);
    --fx-glow-cool: rgba(130, 170, 255, 0.14);
}

/* --- 全局动效（酷炫向，尊重 prefers-reduced-motion）--- */
@keyframes fx-aurora {
    0% {
        transform: translate(-5%, -3%) rotate(0deg) scale(1);
        opacity: 0.45;
    }
    33% {
        opacity: 0.62;
    }
    66% {
        transform: translate(4%, 5%) rotate(6deg) scale(1.05);
        opacity: 0.5;
    }
    100% {
        transform: translate(-3%, 2%) rotate(-4deg) scale(1.02);
        opacity: 0.55;
    }
}

@keyframes fx-stars-twinkle {
    0%, 100% {
        opacity: 0.88;
        filter: brightness(1);
    }
    50% {
        opacity: 1;
        filter: brightness(1.12);
    }
}

@keyframes fx-page-rise {
    from {
        opacity: 0;
        transform: translateY(22px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fx-float-soft {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

@keyframes fx-moon-glow {
    0%, 100% {
        filter: drop-shadow(0 0 28px rgba(244, 233, 200, 0.28))
            drop-shadow(0 0 60px rgba(196, 165, 116, 0.12));
    }
    50% {
        filter: drop-shadow(0 0 36px rgba(244, 233, 200, 0.4))
            drop-shadow(0 0 80px rgba(196, 165, 116, 0.2));
    }
}

@keyframes fx-title-glow {
    0%, 100% {
        text-shadow:
            0 0 50px rgba(244, 233, 200, 0.2),
            0 6px 40px rgba(0, 0, 0, 0.5);
    }
    50% {
        text-shadow:
            0 0 70px rgba(244, 233, 200, 0.32),
            0 8px 48px rgba(0, 0, 0, 0.45);
    }
}

@keyframes fx-shine-sweep {
    0% {
        transform: translateX(-130%) skewX(-12deg);
        opacity: 0;
    }
    35% {
        opacity: 0.45;
    }
    100% {
        transform: translateX(180%) skewX(-12deg);
        opacity: 0;
    }
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

html, body {
    min-height: 100%;
}

body {
    position: relative;
    isolation: isolate;
    overflow-x: hidden;
    font-family: "Noto Serif SC", "Songti SC", "SimSun", serif;
    font-size: clamp(15px, 0.42vw + 14px, 17px);
    line-height: 1.65;
    background:
        radial-gradient(ellipse 120% 80% at 50% -25%, rgba(55, 82, 138, 0.45) 0%, transparent 55%),
        radial-gradient(ellipse 90% 60% at 100% 80%, rgba(90, 62, 110, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse 70% 50% at 0% 95%, rgba(40, 96, 92, 0.1) 0%, transparent 45%),
        linear-gradient(180deg, #11172c 0%, var(--night) 38%, #060810 100%);
    color: var(--text);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: clamp(1.75rem, 4vw, 3rem) clamp(1rem, 3vw, 2rem) clamp(2rem, 5vw, 3.25rem);
    gap: 0;
    -webkit-font-smoothing: antialiased;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 85% 55% at 50% -5%, transparent 42%, rgba(3, 5, 14, 0.55) 100%),
        radial-gradient(circle at 50% 100%, transparent 52%, rgba(0, 0, 0, 0.45) 100%);
}

body::after {
    content: "";
    position: fixed;
    inset: -35%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.52;
    background:
        radial-gradient(ellipse 55% 45% at 20% 30%, rgba(120, 150, 255, 0.16) 0%, transparent 55%),
        radial-gradient(ellipse 50% 40% at 85% 20%, rgba(196, 165, 116, 0.14) 0%, transparent 50%),
        radial-gradient(ellipse 45% 50% at 70% 90%, rgba(100, 200, 180, 0.08) 0%, transparent 48%);
    animation: fx-aurora 32s ease-in-out infinite alternate;
    mix-blend-mode: screen;
}

::selection {
    background: rgba(196, 165, 116, 0.35);
    color: #fff;
}

.stars {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        radial-gradient(1.5px 1.5px at 8% 18%, rgba(255,255,255,0.78), transparent),
        radial-gradient(1px 1px at 22% 65%, rgba(255,255,255,0.42), transparent),
        radial-gradient(1px 1px at 78% 32%, rgba(255,230,190,0.55), transparent),
        radial-gradient(1.5px 1.5px at 92% 78%, rgba(255,255,255,0.38), transparent),
        radial-gradient(1px 1px at 48% 12%, rgba(255,255,255,0.55), transparent),
        radial-gradient(1px 1px at 65% 88%, rgba(255,240,210,0.32), transparent),
        radial-gradient(1px 1px at 14% 44%, rgba(200,215,255,0.55), transparent),
        radial-gradient(1px 1px at 56% 72%, rgba(255,255,255,0.35), transparent);
    opacity: 0.94;
    z-index: 1;
    animation: fx-stars-twinkle 14s ease-in-out infinite alternate;
}

.page {
    position: relative;
    z-index: 2;
    animation: fx-page-rise 1s cubic-bezier(0.22, 1, 0.36, 1) 0.05s both;
    width: 100%;
    max-width: var(--page-max);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(2.25rem, 4vw, 3.5rem);
    flex: 1;
}

/* --- Nav --- */
.site-nav {
    width: 100%;
    max-width: var(--page-max);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.4rem 0.3rem;
    padding: 0.7rem 1.1rem;
    border-radius: 999px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 42%, transparent 100%),
        rgba(10, 14, 28, 0.72);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(18px) saturate(1.2);
    -webkit-backdrop-filter: blur(18px) saturate(1.2);
    box-shadow: var(--shadow-nav);
}

.site-nav a {
    font-size: 0.86rem;
    letter-spacing: 0.1em;
    color: rgba(232, 236, 245, 0.82);
    text-decoration: none;
    padding: 0.52rem 1rem;
    border-radius: 999px;
    transition:
        background 0.22s ease,
        color 0.22s ease,
        transform 0.18s ease,
        box-shadow 0.22s ease;
}

.site-nav a:hover {
    background: rgba(196, 165, 116, 0.22);
    color: var(--moon);
    transform: translateY(-1px);
    box-shadow:
        0 0 20px rgba(196, 165, 116, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.site-nav a:focus-visible {
    outline: 2px solid var(--tea);
    outline-offset: 2px;
}

.site-nav a.is-active {
    background: linear-gradient(135deg, rgba(196, 165, 116, 0.38), rgba(244, 233, 200, 0.16));
    color: var(--moon);
    font-weight: 600;
    box-shadow:
        0 0 24px rgba(196, 165, 116, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

/* --- Clock --- */
.clock-panel {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
    padding: 1.15rem 1.25rem 1.25rem;
    border-radius: var(--radius-xl);
    background:
        linear-gradient(165deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 45%, transparent 68%),
        rgba(10, 14, 28, 0.55);
    border: 1px solid var(--glass-border);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 4px 24px rgba(244, 233, 200, 0.06),
        0 24px 56px rgba(0, 0, 0, 0.38);
}

.clock-face {
    position: relative;
    width: min(42vw, 168px);
    height: min(42vw, 168px);
    border-radius: 50%;
    background:
        radial-gradient(circle at 32% 28%, #fffef5 0%, var(--moon) 38%, #c9b27a 72%, #8a7650 100%);
    box-shadow:
        inset 0 0 0 3px rgba(90, 75, 55, 0.2),
        inset -8px -10px 24px rgba(120, 100, 70, 0.35),
        0 0 28px rgba(244, 233, 200, 0.25);
}

.clock-face::after {
    content: "";
    position: absolute;
    inset: 10%;
    border-radius: 50%;
    border: 1px solid rgba(90, 75, 55, 0.12);
    pointer-events: none;
}

.clock-tick {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 1;
    width: 2px;
    height: 42%;
    margin-left: -1px;
    margin-top: -42%;
    background: rgba(60, 50, 40, 0.35);
    transform-origin: 50% 100%;
    border-radius: 1px;
}

.clock-tick.major {
    width: 3px;
    margin-left: -1.5px;
    height: 44%;
    margin-top: -44%;
    background: rgba(60, 50, 40, 0.55);
}

.clock-hand {
    position: absolute;
    left: 50%;
    bottom: 50%;
    transform-origin: 50% 100%;
    border-radius: 2px;
    pointer-events: none;
    z-index: 3;
}

.clock-hand.hour {
    width: 5px;
    height: 26%;
    margin-left: -2.5px;
    background: linear-gradient(180deg, #3d3548 0%, #2a2438 100%);
    box-shadow: 0 0 6px rgba(0,0,0,0.25);
}

.clock-hand.minute {
    width: 3px;
    height: 36%;
    margin-left: -1.5px;
    background: linear-gradient(180deg, #5c4d3a 0%, #3d3328 100%);
}

.clock-hand.second {
    width: 2px;
    height: 40%;
    margin-left: -1px;
    background: linear-gradient(180deg, #b85848 0%, #8b3a32 100%);
    box-shadow: 0 0 8px rgba(184, 88, 72, 0.45);
}

.clock-cap {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 10px;
    height: 10px;
    margin: -5px 0 0 -5px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #f5f0e6, #8b7355);
    box-shadow: 0 1px 4px rgba(0,0,0,0.35);
    z-index: 4;
}

.clock-digital {
    text-align: center;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    color: rgba(232, 236, 245, 0.88);
    line-height: 1.65;
}

.clock-digital time {
    display: block;
}

.clock-digital .clock-date {
    font-size: 0.72rem;
    color: rgba(196, 165, 116, 0.85);
    letter-spacing: 0.14em;
}

.clock-digital .clock-time {
    font-size: 1.05rem;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.18em;
    margin-top: 0.2rem;
    color: var(--moon);
    text-shadow: 0 0 20px rgba(244, 233, 200, 0.25);
}

/* --- Hero row --- */
.hero-clock-row {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 2rem 2.5rem;
}

.hero {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    flex: 1 1 280px;
    min-width: min(100%, 260px);
}

.moon-wrap {
    position: relative;
    width: min(72vw, 220px);
    aspect-ratio: 1;
    animation: fx-float-soft 11s ease-in-out infinite;
    will-change: transform;
}

.moon-wrap .moon {
    animation: fx-moon-glow 14s ease-in-out infinite alternate;
}

.moon {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #fff9e6 0%, var(--moon) 45%, #d8c896 100%);
    box-shadow:
        0 0 70px rgba(244, 233, 200, 0.38),
        inset -12px -12px 40px rgba(180, 160, 100, 0.25);
}

.moon-crater {
    position: absolute;
    border-radius: 50%;
    background: rgba(180, 165, 120, 0.22);
}

.moon-crater:nth-child(2) { width: 18%; height: 18%; top: 28%; left: 22%; }
.moon-crater:nth-child(3) { width: 12%; height: 12%; top: 55%; left: 58%; }
.moon-crater:nth-child(4) { width: 10%; height: 10%; top: 38%; left: 62%; }

.tea-scene {
    position: absolute;
    bottom: 12%;
    left: 50%;
    transform: translateX(-50%);
    width: 55%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
}

.cup {
    width: 42%;
    max-width: 72px;
    height: 36px;
    border: 2px solid rgba(90, 75, 55, 0.45);
    border-radius: 0 0 50% 50% / 0 0 100% 100%;
    background: linear-gradient(180deg, rgba(255,250,240,0.35) 0%, rgba(196, 165, 116, 0.5) 100%);
    position: relative;
}

.cup::after {
    content: "";
    position: absolute;
    right: -22%;
    top: 12%;
    width: 28%;
    height: 55%;
    border: 2px solid rgba(90, 75, 55, 0.45);
    border-left: none;
    border-radius: 0 40% 40% 0;
}

.steam {
    position: absolute;
    bottom: 100%;
    left: 50%;
    width: 4px;
    height: 24px;
    margin-left: -2px;
    background: linear-gradient(to top, transparent, var(--mist));
    border-radius: 4px;
    animation: rise 2.4s ease-in-out infinite;
    opacity: 0.7;
}

.steam:nth-child(2) { margin-left: -14px; animation-delay: 0.4s; height: 20px; }
.steam:nth-child(3) { margin-left: 10px; animation-delay: 0.8s; height: 22px; }

@keyframes rise {
    0%, 100% { transform: translateY(0) scaleY(1); opacity: 0.5; }
    50% { transform: translateY(-8px) scaleY(1.1); opacity: 0.85; }
}

.cat {
    width: 56%;
    max-width: 100px;
    height: auto;
    opacity: 0.92;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.25));
}

.hero h1,
h1.site-brand {
    font-size: clamp(1.6rem, 4.2vw + 0.6rem, 2.45rem);
    font-weight: 700;
    letter-spacing: 0.16em;
    line-height: 1.45;
    color: var(--moon);
    animation: fx-title-glow 10s ease-in-out infinite;
}

.welcome {
    font-size: clamp(0.98rem, 1.1vw + 0.85rem, 1.12rem);
    font-weight: 400;
    color: rgba(232, 236, 245, 0.82);
    line-height: 2;
    letter-spacing: 0.07em;
    max-width: 32em;
}

/* --- Quick links --- */
.quick-links {
    width: 100%;
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
    gap: clamp(0.85rem, 2vw, 1.15rem);
}

.quick-card {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1.2rem 1rem;
    min-height: 6.25rem;
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: inherit;
    background:
        linear-gradient(165deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.02) 100%),
        rgba(12, 16, 30, 0.4);
    border: 1px solid var(--glass-border);
    transition: border-color 0.28s ease, transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.28s ease;
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.12),
        0 16px 40px rgba(0, 0, 0, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.quick-card::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -20%;
    width: 42%;
    height: 180%;
    background: linear-gradient(
        115deg,
        transparent 22%,
        rgba(255, 255, 255, 0.18) 48%,
        transparent 74%
    );
    transform: translateX(-120%) skewX(-12deg);
    pointer-events: none;
    opacity: 0;
    z-index: 1;
}

.quick-card:hover::after {
    animation: fx-shine-sweep 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.quick-card > * {
    position: relative;
    z-index: 2;
}

.quick-card:hover {
    border-color: rgba(196, 165, 116, 0.42);
    transform: translateY(-4px);
    box-shadow:
        0 8px 16px rgba(0, 0, 0, 0.2),
        0 28px 56px rgba(0, 0, 0, 0.32),
        0 0 36px rgba(196, 165, 116, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.quick-card:focus-visible {
    outline: 2px solid var(--tea);
    outline-offset: 3px;
}

.quick-card .qk-icon {
    font-size: 1.35rem;
    line-height: 1;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
}

.quick-card .qk-label {
    font-size: 0.82rem;
    letter-spacing: 0.12em;
    font-weight: 600;
    color: var(--moon);
}

.quick-card .qk-sub {
    font-size: 0.68rem;
    letter-spacing: 0.06em;
    color: rgba(200, 210, 230, 0.55);
}

/* --- Subpages --- */
.sub-main {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.page-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.25rem;
    width: 100%;
}

.page-head .clock-panel {
    margin-left: auto;
}

.page-title {
    font-size: clamp(1.35rem, 4vw, 1.75rem);
    font-weight: 700;
    letter-spacing: 0.14em;
    color: var(--moon);
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.35);
}

.page-lead {
    font-size: 0.95rem;
    color: rgba(232, 236, 245, 0.78);
    line-height: 1.85;
    letter-spacing: 0.05em;
    max-width: 36rem;
}

.content-card {
    width: 100%;
    padding: 1.45rem 1.55rem;
    border-radius: var(--radius-lg);
    background:
        linear-gradient(160deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%),
        rgba(12, 16, 32, 0.35);
    border: 1px solid var(--glass-border);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 12px 40px rgba(0, 0, 0, 0.25);
}

.content-card h2 {
    font-size: 1rem;
    letter-spacing: 0.12em;
    color: var(--tea);
    margin-bottom: 0.65rem;
    font-weight: 600;
}

.prose {
    font-size: 0.92rem;
    line-height: 1.95;
    color: rgba(232, 236, 245, 0.78);
    letter-spacing: 0.04em;
}

.prose p + p {
    margin-top: 0.85em;
}

.prose ul {
    margin: 0.75em 0 0 1.15em;
}

.prose li + li {
    margin-top: 0.35em;
}

.back-home {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--tea);
    text-decoration: none;
    letter-spacing: 0.08em;
}

.back-home:hover {
    text-decoration: underline;
}

/* --- Carousel --- */
.section-title {
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.32em;
    color: rgba(203, 176, 122, 0.92);
    text-transform: uppercase;
    margin-bottom: 1rem;
    text-align: center;
}

.carousel-shell {
    width: 100%;
    padding: 0.35rem;
    border-radius: var(--radius-xl);
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.11) 0%,
        rgba(255, 255, 255, 0.025) 48%,
        rgba(196, 165, 116, 0.1) 100%
    );
    box-shadow:
        0 8px 48px rgba(0, 0, 0, 0.38),
        0 0 72px rgba(130, 170, 255, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.09);
}

.carousel {
    position: relative;
    border-radius: 1.05rem;
    overflow: hidden;
    background: rgba(8, 12, 28, 0.55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.carousel-viewport {
    overflow: hidden;
    touch-action: pan-y pinch-zoom;
}

.carousel-track {
    display: flex;
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.carousel-track.is-no-motion {
    transition: none;
}

.slide {
    flex: 0 0 100%;
    min-height: var(--carousel-h);
    padding: 1.75rem 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.65rem;
    position: relative;
    isolation: isolate;
}

.slide::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0.92;
}

.slide:nth-child(1)::before {
    background:
        radial-gradient(ellipse 80% 60% at 20% 30%, rgba(120, 160, 220, 0.2) 0%, transparent 55%),
        radial-gradient(ellipse 70% 50% at 85% 75%, rgba(196, 165, 116, 0.18) 0%, transparent 50%),
        linear-gradient(165deg, #141a35 0%, #0e1328 100%);
}

.slide:nth-child(2)::before {
    background:
        radial-gradient(circle at 70% 25%, rgba(244, 233, 200, 0.15) 0%, transparent 45%),
        radial-gradient(ellipse 90% 70% at 10% 90%, rgba(80, 120, 180, 0.12) 0%, transparent 55%),
        linear-gradient(165deg, #1a1630 0%, #0f1225 100%);
}

.slide:nth-child(3)::before {
    background:
        radial-gradient(ellipse 60% 50% at 50% 0%, rgba(180, 200, 230, 0.12) 0%, transparent 60%),
        linear-gradient(165deg, #121828 0%, #0c1020 100%);
}

.slide:nth-child(4)::before {
    background:
        radial-gradient(circle at 30% 70%, rgba(196, 165, 116, 0.2) 0%, transparent 40%),
        linear-gradient(165deg, #161c38 0%, #0a0e1f 100%);
}

.slide-icon {
    width: 3.25rem;
    height: 3.25rem;
    margin-bottom: 0.15rem;
    opacity: 0.95;
}

.slide h2 {
    font-size: clamp(1.15rem, 3.5vw, 1.35rem);
    font-weight: 600;
    letter-spacing: 0.12em;
    color: #f5f3ff;
}

.slide p {
    font-size: 0.95rem;
    line-height: 1.85;
    color: rgba(232, 236, 245, 0.78);
    max-width: 28rem;
    letter-spacing: 0.04em;
}

.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 0.85rem 1rem 1.1rem;
    border-top: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.15);
}

.carousel-btn {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    background: var(--glass);
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

.carousel-btn:hover {
    background: rgba(196, 165, 116, 0.15);
    border-color: var(--tea-dim);
}

.carousel-btn:active {
    transform: scale(0.94);
}

.carousel-btn:focus-visible {
    outline: 2px solid var(--tea);
    outline-offset: 2px;
}

.carousel-dots {
    display: flex;
    gap: 0.45rem;
    align-items: center;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    padding: 0;
    background: rgba(255, 255, 255, 0.22);
    cursor: pointer;
    transition: transform 0.2s, background 0.2s, width 0.25s;
}

.carousel-dot[aria-current="true"] {
    background: var(--tea);
    width: 22px;
    border-radius: 4px;
}

.carousel-dot:focus-visible {
    outline: 2px solid var(--tea);
    outline-offset: 2px;
}

.carousel-hint {
    font-size: 0.72rem;
    color: rgba(200, 210, 230, 0.45);
    text-align: center;
    padding-bottom: 0.35rem;
    letter-spacing: 0.08em;
}

.intro-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.intro-card {
    padding: 1.25rem 1.35rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: border-color 0.25s, transform 0.25s;
}

.intro-card:hover {
    border-color: rgba(196, 165, 116, 0.28);
    transform: translateY(-2px);
}

.intro-card h3 {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--moon);
    margin-bottom: 0.5rem;
}

.intro-card p {
    font-size: 0.88rem;
    line-height: 1.8;
    color: rgba(232, 236, 245, 0.72);
    letter-spacing: 0.03em;
}

footer,
.site-footer {
    position: relative;
    z-index: 1;
    padding-top: clamp(1.75rem, 3vw, 2.5rem);
    font-size: 0.84rem;
    color: rgba(200, 210, 230, 0.58);
    letter-spacing: 0.03em;
}

.footer-beian-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.35rem 0.65rem;
    text-align: center;
}

.footer-beian-sep {
    opacity: 0.45;
    user-select: none;
}

.footer-beian-police {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.footer-police-badge {
    width: 1.125rem;
    height: 1.125rem;
    flex-shrink: 0;
    display: block;
    object-fit: contain;
}

footer a,
.site-footer a {
    color: rgba(200, 210, 230, 0.65);
    text-decoration: none;
}

footer a:hover,
.site-footer a:hover {
    color: var(--tea);
    text-decoration: underline;
}

.nav-auth-slot {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.35rem 0.5rem;
    margin-left: 0.15rem;
}

.nav-logout {
    margin: 0;
    padding: 0;
    display: inline;
}

.nav-link-btn {
    font: inherit;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    background: transparent;
    border: none;
    cursor: pointer;
    color: rgba(232, 236, 245, 0.82);
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    transition: background 0.2s, color 0.2s;
}

.nav-link-btn:hover {
    background: rgba(196, 165, 116, 0.14);
    color: var(--moon);
}

.nav-link-btn:focus-visible {
    outline: 2px solid var(--tea);
    outline-offset: 2px;
}

.auth-panel-wrap {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: clamp(0.75rem, 2vw, 1.25rem) 0 clamp(2.5rem, 5vw, 3.75rem);
}

.auth-panel {
    position: relative;
    width: min(32rem, 100%);
    padding: clamp(1.85rem, 4vw, 2.35rem) clamp(1.75rem, 3vw, 2.25rem);
    border-radius: var(--radius-xl);
    background:
        linear-gradient(155deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.028) 45%, transparent 72%),
        linear-gradient(180deg, rgba(14, 20, 40, 0.85) 0%, rgba(8, 11, 24, 0.72) 100%);
    border: 1px solid var(--glass-border);
    box-shadow:
        var(--shadow-panel),
        0 0 60px rgba(196, 165, 116, 0.05);
}

.auth-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(
        120deg,
        rgba(244, 233, 200, 0.25) 0%,
        rgba(255, 255, 255, 0.06) 45%,
        transparent 72%
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.75;
}

.auth-panel > * {
    position: relative;
    z-index: 1;
}

.auth-panel.admin-panel {
    width: min(58rem, 100%);
}

.auth-title {
    font-size: clamp(1.32rem, 2vw + 1rem, 1.62rem);
    font-weight: 700;
    color: var(--moon);
    margin-bottom: 1.05rem;
    letter-spacing: 0.08em;
    text-align: center;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.auth-hint {
    font-size: 0.88rem;
    line-height: 1.75;
    color: rgba(232, 236, 245, 0.65);
    margin-bottom: 1rem;
}

.auth-hint code {
    font-size: 0.85em;
    padding: 0.1rem 0.35rem;
    border-radius: 0.35rem;
    background: rgba(255, 255, 255, 0.06);
}

.auth-error {
    font-size: 0.85rem;
    color: #f0a8a8;
    margin-bottom: 1rem;
    text-align: center;
}

.auth-success {
    font-size: 0.85rem;
    color: #9dd4a3;
    margin-bottom: 1rem;
    text-align: center;
}

.auth-foot-split {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.75rem 1.25rem;
}

.admin-panel .admin-section {
    margin-top: 1rem;
    margin-bottom: 0.75rem;
}

.admin-section-title {
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--tea);
    margin-bottom: 0.5rem;
}

.admin-desc {
    text-align: left;
}

.admin-desc code {
    font-size: 0.82em;
    padding: 0.12rem 0.35rem;
    border-radius: 0.3rem;
    background: rgba(255, 255, 255, 0.07);
}

.admin-status-line {
    font-size: 0.92rem;
    margin: 1rem 0 0.85rem;
    color: rgba(232, 236, 245, 0.85);
}

.admin-on {
    color: #9dd4a3;
}

.admin-off {
    color: #e8c08f;
}

.admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: center;
}

.inline-form {
    margin: 0;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.auth-label {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    color: rgba(232, 236, 245, 0.75);
}

.auth-label input {
    font: inherit;
    font-size: 0.95rem;
    padding: 0.6rem 0.85rem;
    border-radius: 0.65rem;
    border: 1px solid var(--glass-border);
    background: rgba(12, 16, 34, 0.55);
    color: var(--text);
}

.auth-label input:focus {
    outline: 2px solid var(--tea);
    outline-offset: 1px;
}

.auth-label textarea {
    font: inherit;
    font-size: 0.95rem;
    line-height: 1.65;
    padding: 0.65rem 0.85rem;
    border-radius: 0.65rem;
    border: 1px solid var(--glass-border);
    background: rgba(12, 16, 34, 0.55);
    color: var(--text);
    resize: vertical;
    min-height: 6rem;
}

.auth-label textarea:focus {
    outline: 2px solid var(--tea);
    outline-offset: 1px;
}

.profile-theme-select {
    font: inherit;
    font-size: 0.95rem;
    padding: 0.55rem 0.85rem;
    border-radius: 0.65rem;
    border: 1px solid var(--glass-border);
    background: rgba(12, 16, 34, 0.55);
    color: var(--text);
    cursor: pointer;
    max-width: 100%;
}

.profile-theme-select:focus {
    outline: 2px solid var(--tea);
    outline-offset: 1px;
}

.auth-submit {
    font: inherit;
    margin-top: 0.35rem;
    padding: 0.72rem 1.35rem;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    letter-spacing: 0.14em;
    font-size: 0.9rem;
    background: linear-gradient(135deg, rgba(213, 186, 130, 0.55), rgba(244, 233, 200, 0.32));
    color: var(--night);
    font-weight: 600;
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.12),
        0 8px 24px rgba(196, 165, 116, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.35);
    transition: filter 0.2s ease, transform 0.18s ease, box-shadow 0.2s ease;
}

.auth-submit:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
    box-shadow:
        0 4px 8px rgba(0, 0, 0, 0.15),
        0 12px 32px rgba(196, 165, 116, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.auth-submit.ghost {
    background: transparent;
    color: var(--moon);
    border: 1px solid var(--tea-dim);
}

.auth-foot {
    margin-top: 1.25rem;
    text-align: center;
    font-size: 0.82rem;
}

.auth-foot a {
    color: rgba(200, 210, 230, 0.7);
    text-decoration: none;
}

.auth-foot a:hover {
    color: var(--tea);
    text-decoration: underline;
}

.auth-greeting {
    font-size: 1.05rem;
    text-align: center;
    margin-bottom: 0.65rem;
    color: var(--text);
}

.auth-greeting .tea {
    color: var(--tea);
}

.auth-muted {
    font-size: 0.85rem;
    line-height: 1.75;
    color: rgba(232, 236, 245, 0.55);
    text-align: center;
    margin-bottom: 1.25rem;
}

.member-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
}

/* --- Auth 若依式分栏：左品牌深蓝 + 右浅灰工作台（登录 / 注册 / 会员角）--- */
body.layout-auth-split {
    padding: 0;
    align-items: stretch;
    background: #f5f7fa;
}

body.layout-auth-split::before,
body.layout-auth-split::after {
    display: none;
}

body.layout-auth-split .stars {
    display: none;
}

.layout-auth-split-root {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

.auth-split-brand {
    position: relative;
    flex: 1 1 44%;
    min-height: min(520px, 42vh);
    max-width: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(2rem, 5vw, 3.5rem);
    color: rgba(255, 255, 255, 0.96);
    background:
        radial-gradient(ellipse 90% 70% at 20% 0%, rgba(120, 180, 255, 0.35) 0%, transparent 55%),
        radial-gradient(ellipse 70% 50% at 100% 100%, rgba(40, 220, 200, 0.12) 0%, transparent 45%),
        linear-gradient(155deg, #1a6fd4 0%, #1356a8 42%, #0b3d78 100%);
    overflow: hidden;
}

.auth-split-brand-decor {
    position: absolute;
    inset: -20%;
    background:
        radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.08) 0%, transparent 42%),
        radial-gradient(circle at 10% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 38%);
    pointer-events: none;
}

.auth-split-brand-inner {
    position: relative;
    z-index: 1;
    max-width: 22rem;
}

.auth-split-mark {
    font-size: 0.95rem;
    letter-spacing: 0.28em;
    font-weight: 600;
    margin-bottom: 0.85rem;
    opacity: 0.95;
}

.auth-split-mark span {
    letter-spacing: 0.12em;
}

.auth-split-headline {
    font-size: clamp(1.35rem, 2vw + 0.9rem, 1.75rem);
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 1.45;
    margin-bottom: 1.35rem;
    text-shadow: 0 2px 24px rgba(0, 20, 60, 0.35);
}

.auth-split-stack {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    font-size: 0.86rem;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.82);
}

.auth-split-stack li {
    position: relative;
    padding-left: 1.1rem;
}

.auth-split-stack li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.55);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.12);
}

.auth-split-quote {
    margin-top: 1.5rem;
    font-size: 0.82rem;
    line-height: 1.75;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.72);
    font-style: italic;
}

.auth-split-mini-copy {
    margin-top: 2rem;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
}

.auth-split-main {
    flex: 1 1 56%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: #f5f7fa;
    border-left: 1px solid rgba(20, 40, 80, 0.08);
}

.layout-auth-split-root .site-nav.site-nav-split {
    width: 100%;
    max-width: none;
    margin: 0;
    border-radius: 0;
    justify-content: flex-end;
    flex-wrap: wrap;
    padding: 0.55rem clamp(0.85rem, 3vw, 1.5rem);
    background: #fff;
    border: none;
    border-bottom: 1px solid #e4e7ed;
    box-shadow: 0 1px 4px rgba(15, 35, 70, 0.05);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.layout-auth-split-root .site-nav.site-nav-split a {
    color: #606266;
    font-size: 0.82rem;
}

.layout-auth-split-root .site-nav.site-nav-split a:hover {
    background: #f0f2f5;
    color: #1a6fd4;
    transform: none;
    box-shadow: none;
}

.layout-auth-split-root .site-nav.site-nav-split a.is-active {
    background: rgba(26, 111, 212, 0.1);
    color: #1a6fd4;
    font-weight: 600;
    box-shadow: none;
}

.layout-auth-split-root .site-nav.site-nav-split a:focus-visible {
    outline-color: #1a6fd4;
}

.layout-auth-split-root .nav-link-btn {
    color: #606266;
}

.layout-auth-split-root .nav-link-btn:hover {
    background: #ecf5ff;
    color: #1a6fd4;
}

.layout-auth-split-root .auth-panel-wrap {
    flex: 1;
    align-items: center;
    justify-content: center;
    padding: clamp(1.25rem, 4vw, 2.75rem) clamp(1rem, 3vw, 2rem);
}

.layout-auth-split-root .auth-panel.auth-panel-split {
    width: min(28rem, 100%);
    background: #fff;
    border: 1px solid #e4e7ed;
    box-shadow:
        0 6px 16px rgba(15, 35, 70, 0.07),
        0 0 1px rgba(15, 35, 70, 0.04);
}

.layout-auth-split-root .auth-panel.auth-panel-split::before {
    display: none;
}

.layout-auth-split-root .auth-title {
    color: #303133;
    text-shadow: none;
    text-align: left;
}

.layout-auth-split-root .auth-hint,
.layout-auth-split-root .auth-muted {
    color: #909399;
    text-align: left;
}

.layout-auth-split-root .auth-hint code {
    background: #f4f4f5;
    color: #606266;
}

.layout-auth-split-root .auth-error {
    text-align: left;
    color: #f56c6c;
}

.layout-auth-split-root .auth-success {
    text-align: left;
    color: #67c23a;
}

.layout-auth-split-root .auth-label {
    color: #606266;
}

.layout-auth-split-root .auth-label input,
.layout-auth-split-root .auth-label textarea {
    background: #fff;
    border: 1px solid #dcdfe6;
    color: #303133;
    border-radius: 0.5rem;
}

.layout-auth-split-root .auth-label input:focus,
.layout-auth-split-root .auth-label textarea:focus {
    outline: 2px solid rgba(26, 111, 212, 0.35);
    outline-offset: 0;
    border-color: #1a6fd4;
}

.layout-auth-split-root .auth-submit {
    margin-top: 0.5rem;
    width: 100%;
    border-radius: 0.5rem;
    letter-spacing: 0.12em;
    background: linear-gradient(180deg, #409eff 0%, #2b7bdc 100%);
    color: #fff;
    box-shadow: 0 4px 14px rgba(43, 123, 220, 0.35);
}

.layout-auth-split-root .auth-submit:hover {
    filter: brightness(1.05);
    box-shadow: 0 6px 20px rgba(43, 123, 220, 0.4);
}

.layout-auth-split-root .auth-submit.ghost {
    width: auto;
    background: transparent;
    color: #409eff;
    border: 1px solid #c6e2ff;
    box-shadow: none;
}

.layout-auth-split-root .auth-submit.ghost:hover {
    background: #ecf5ff;
}

.layout-auth-split-root .auth-foot,
.layout-auth-split-root .auth-foot-split {
    text-align: left;
    justify-content: flex-start;
}

.layout-auth-split-root .auth-foot a {
    color: #409eff;
}

.layout-auth-split-root .auth-foot a:hover {
    color: #1a6fd4;
}

.layout-auth-split-root .auth-greeting {
    color: #303133;
    text-align: left;
}

.layout-auth-split-root .site-footer.site-footer-split {
    margin-top: auto;
    padding: 0.85rem clamp(0.85rem, 3vw, 1.5rem) 1.1rem;
    border-top: 1px solid #ebeef5;
    background: #fafbfd;
    color: #909399;
}

.layout-auth-split-root .site-footer.site-footer-split a {
    color: #909399;
}

.layout-auth-split-root .site-footer.site-footer-split a:hover {
    color: #1a6fd4;
}

@media (max-width: 900px) {
    .layout-auth-split-root {
        flex-direction: column;
    }

    .auth-split-brand {
        flex: 0 0 auto;
        max-width: none;
        min-height: auto;
        padding: clamp(1.5rem, 4vw, 2.25rem) clamp(1.25rem, 4vw, 2rem);
    }

    .auth-split-brand-inner {
        max-width: none;
    }

    .auth-split-main {
        border-left: none;
        min-height: 0;
    }
}

/* --- App hub (welcome / blog) --- */
.hub-body {
    align-items: center;
}

.page-hub {
    max-width: var(--page-max-hub);
    gap: clamp(1.75rem, 3vw, 2.75rem);
}

.glass-panel {
    position: relative;
    width: 100%;
    padding: clamp(1.65rem, 3vw, 2rem) clamp(1.55rem, 3vw, 2.15rem);
    border-radius: var(--radius-xl);
    background:
        linear-gradient(150deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.025) 40%, transparent 58%),
        linear-gradient(180deg, rgba(16, 22, 42, 0.78) 0%, rgba(8, 12, 26, 0.65) 100%);
    border: 1px solid var(--glass-border);
    box-shadow:
        var(--shadow-panel),
        0 0 80px rgba(130, 170, 255, 0.04);
}

.glass-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.22) 0%,
        rgba(255, 255, 255, 0.04) 38%,
        transparent 62%,
        rgba(196, 165, 116, 0.12) 100%
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.85;
}

.glass-panel > * {
    position: relative;
    z-index: 1;
}

.app-hub-nav {
    justify-content: center;
}

.hub-hero {
    width: 100%;
    padding: 1.5rem 1.65rem;
}

.hub-avatar-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.15rem 1.25rem;
}

.hub-avatar {
    width: 5.5rem;
    height: 5.5rem;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--tea-dim);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}

.hub-avatar-fallback {
    background: radial-gradient(circle at 35% 30%, rgba(244, 233, 200, 0.35), rgba(18, 24, 50, 0.9));
    border: 2px dashed var(--tea-dim);
}

.hub-hero-text {
    flex: 1;
    min-width: 12rem;
}

.hub-kicker {
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 0.35rem;
    color: rgba(232, 236, 245, 0.55);
}

.hub-title {
    font-size: clamp(1.45rem, 2.8vw + 0.85rem, 2rem);
    font-weight: 700;
    color: var(--moon);
    letter-spacing: 0.05em;
    line-height: 1.3;
    text-shadow: 0 2px 28px rgba(0, 0, 0, 0.35);
    animation: fx-title-glow 12s ease-in-out infinite;
}

.hub-username {
    display: inline-block;
    margin-left: 0.35rem;
    font-size: 0.92rem;
    font-weight: 500;
    color: rgba(232, 236, 245, 0.45);
}

.hub-lead {
    margin-top: 0.75rem;
    font-size: 0.92rem;
    line-height: 1.75;
    color: rgba(232, 236, 245, 0.68);
}

.hub-cards {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(12.5rem, 1fr));
    gap: 0.85rem;
}

.hub-card {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    padding: 1.2rem 1.25rem;
    border-radius: var(--radius-lg);
    text-decoration: none;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, transparent 55%),
        rgba(12, 16, 34, 0.5);
    border: 1px solid var(--glass-border);
    color: var(--text);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.22s, background 0.22s, box-shadow 0.22s;
}

.hub-card::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -24%;
    width: 46%;
    height: 190%;
    background: linear-gradient(
        118deg,
        transparent 24%,
        rgba(255, 255, 255, 0.12) 50%,
        transparent 76%
    );
    transform: translateX(-120%) skewX(-10deg);
    pointer-events: none;
    opacity: 0;
    z-index: 1;
}

.hub-card:hover::after {
    animation: fx-shine-sweep 0.95s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hub-card > * {
    position: relative;
    z-index: 2;
}

.hub-card:hover {
    transform: translateY(-3px);
    border-color: rgba(196, 165, 116, 0.38);
    background: rgba(18, 24, 50, 0.72);
    box-shadow:
        0 12px 36px rgba(0, 0, 0, 0.25),
        0 0 32px rgba(196, 165, 116, 0.08);
}

.hub-card-icon {
    font-size: 1.15rem;
    opacity: 0.85;
    color: var(--tea);
}

.hub-card-title {
    font-size: 0.98rem;
    font-weight: 600;
    letter-spacing: 0.08em;
}

.hub-card-sub {
    font-size: 0.78rem;
    color: rgba(232, 236, 245, 0.45);
    letter-spacing: 0.06em;
}

.hub-card.hub-card-static {
    cursor: default;
    opacity: 0.78;
    pointer-events: none;
}

.hub-card.hub-card-static::after {
    display: none;
}

.hub-card.hub-card-static:hover {
    transform: none;
    border-color: var(--glass-border);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, transparent 55%),
        rgba(12, 16, 34, 0.5);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.nav-compose-denied {
    font-size: 0.86rem;
    letter-spacing: 0.1em;
    color: rgba(232, 236, 245, 0.4);
    padding: 0.52rem 1rem;
    border-radius: 999px;
    cursor: help;
    border: 1px dashed rgba(255, 255, 255, 0.14);
    user-select: none;
}

/* --- Blog --- */
.blog-main {
    margin-bottom: 0.5rem;
}

.blog-section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.blog-section-head h1 {
    font-size: clamp(1.38rem, 1.6vw + 1rem, 1.75rem);
    font-weight: 700;
    color: var(--moon);
    letter-spacing: 0.07em;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.btn-mini {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.95rem;
    border-radius: 999px;
    font: inherit;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-decoration: none;
    border: 1px solid var(--tea-dim);
    background: rgba(196, 165, 116, 0.12);
    color: var(--moon);
    cursor: pointer;
    transition: background 0.18s, border-color 0.18s;
}

button.btn-mini {
    color: var(--moon);
}

.btn-mini:hover {
    background: rgba(196, 165, 116, 0.22);
    border-color: rgba(196, 165, 116, 0.45);
}

.btn-follow.is-on {
    background: rgba(157, 212, 163, 0.18);
    border-color: rgba(157, 212, 163, 0.4);
}

.blog-hint {
    font-size: 0.86rem;
    color: rgba(232, 236, 245, 0.55);
    margin-bottom: 1.1rem;
    line-height: 1.65;
}

.blog-empty {
    font-size: 0.92rem;
    color: rgba(232, 236, 245, 0.6);
    padding: 1.5rem 0;
    text-align: center;
}

.blog-hint-warn {
    color: rgba(232, 200, 160, 0.72);
    border-left: 3px solid rgba(232, 192, 120, 0.45);
    padding-left: 0.85rem;
    margin-bottom: 1.25rem;
}

.following-authors-panel {
    margin-bottom: 1.35rem;
    padding: 1rem 1.1rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, transparent 55%),
        rgba(12, 16, 34, 0.45);
}

.following-strip-title {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(203, 176, 122, 0.88);
    margin-bottom: 0.65rem;
}

.following-author-chips {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 0.65rem;
    margin: 0;
    padding: 0;
}

.following-author-chip {
    display: inline-flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.15rem 0.35rem;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(8, 12, 26, 0.35);
    font-size: 0.84rem;
}

.following-author-link {
    font-weight: 600;
    color: var(--moon);
    text-decoration: none;
    letter-spacing: 0.04em;
}

.following-author-link:hover {
    color: var(--tea);
    text-decoration: underline;
}

.following-author-uname {
    font-size: 0.74rem;
    color: rgba(232, 236, 245, 0.42);
    letter-spacing: 0.02em;
}

.blog-flash {
    margin-bottom: 1rem;
    text-align: left;
}

.blog-cards {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.blog-card-mini {
    border-radius: var(--radius-lg);
    padding: 1.05rem 1.15rem;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, transparent 52%),
        rgba(8, 12, 28, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.14);
    transition: border-color 0.22s ease, box-shadow 0.22s ease;
}

.blog-card-mini:hover {
    border-color: rgba(196, 165, 116, 0.12);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.18);
}

.blog-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.blog-card-link h2 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--moon);
    margin-bottom: 0.4rem;
    letter-spacing: 0.04em;
}

.blog-card-link:hover h2 {
    color: var(--tea);
}

.blog-excerpt {
    font-size: 0.86rem;
    line-height: 1.65;
    color: rgba(232, 236, 245, 0.58);
}

.blog-card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: 0.65rem;
    font-size: 0.78rem;
}

.blog-card-actions {
    margin-top: 0.55rem;
    display: flex;
    justify-content: flex-end;
}

.blog-card-delete-form {
    margin: 0;
}

.blog-card-delete-form .btn-mini {
    padding: 0.3rem 0.65rem;
    font-size: 0.72rem;
}

.btn-mini.btn-mini-danger {
    border-color: rgba(240, 120, 100, 0.45);
    background: rgba(240, 100, 80, 0.1);
    color: rgba(255, 200, 190, 0.95);
}

.btn-mini.btn-mini-danger:hover {
    background: rgba(240, 100, 80, 0.2);
    border-color: rgba(255, 140, 120, 0.55);
}

.author-link {
    color: var(--tea);
    text-decoration: none;
    letter-spacing: 0.04em;
}

.author-link:hover {
    text-decoration: underline;
}

.meta-stats {
    letter-spacing: 0.04em;
}

.muted {
    color: rgba(232, 236, 245, 0.45);
}

.pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.75rem 1rem;
    margin-top: 1.35rem;
    font-size: 0.85rem;
}

.pager a {
    color: var(--tea);
    text-decoration: none;
}

.pager a:hover {
    text-decoration: underline;
}

.blog-article-head {
    margin-bottom: 1.15rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.blog-article-head h1 {
    font-size: clamp(1.25rem, 3.5vw, 1.65rem);
    font-weight: 700;
    color: var(--moon);
    line-height: 1.35;
    letter-spacing: 0.04em;
}

.blog-article-meta {
    margin-top: 0.55rem;
    font-size: 0.86rem;
    color: rgba(232, 236, 245, 0.55);
}

.blog-article-meta a {
    color: var(--tea);
    text-decoration: none;
}

.blog-article-meta a:hover {
    text-decoration: underline;
}

.meta-sep {
    margin: 0 0.35rem;
}

.text-pre {
    white-space: pre-wrap;
    word-break: break-word;
}

.blog-body {
    font-size: 0.95rem;
    line-height: 1.85;
    color: rgba(232, 236, 245, 0.88);
    margin-bottom: 1.25rem;
}

.blog-delete-wrap {
    margin-bottom: 0.85rem;
}

.blog-btn-delete {
    border-color: rgba(240, 140, 140, 0.45) !important;
    color: rgba(255, 200, 200, 0.9) !important;
    background: rgba(120, 40, 40, 0.25) !important;
}

.blog-btn-delete:hover {
    border-color: rgba(255, 180, 180, 0.55) !important;
    background: rgba(160, 50, 50, 0.35) !important;
}

.blog-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.btn-chip {
    font: inherit;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    border: 1px solid var(--glass-border);
    background: rgba(12, 16, 34, 0.5);
    color: rgba(232, 236, 245, 0.85);
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

.btn-chip:hover {
    border-color: var(--tea-dim);
    background: rgba(196, 165, 116, 0.12);
}

.btn-chip.is-on {
    border-color: rgba(157, 212, 163, 0.45);
    background: rgba(157, 212, 163, 0.12);
    color: #c8e8cc;
}

.chip-count {
    opacity: 0.75;
    margin-left: 0.15rem;
}

.blog-comments-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--moon);
    margin-bottom: 0.75rem;
    letter-spacing: 0.06em;
}

.comment-list {
    list-style: none;
    margin: 0 0 1.15rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.comment-item {
    padding: 0.75rem 0.85rem;
    border-radius: 0.75rem;
    background: rgba(8, 12, 28, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.comment-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.35rem;
    font-size: 0.78rem;
    color: rgba(232, 236, 245, 0.5);
    margin-bottom: 0.35rem;
}

.comment-head span:first-child {
    color: var(--tea);
    font-weight: 600;
}

.comment-body {
    font-size: 0.88rem;
    line-height: 1.7;
    color: rgba(232, 236, 245, 0.82);
}

.blog-comment-form {
    margin-top: 0.5rem;
}

.blog-compose-form {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.blog-form-panel .blog-section-head {
    margin-bottom: 1rem;
}

.blog-author-head {
    margin-bottom: 1.1rem;
}

.blog-author-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.85rem 1rem;
    margin-bottom: 0.85rem;
}

.blog-author-avatar {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--tea-dim);
}

.blog-author-avatar-fallback {
    background: radial-gradient(circle at 35% 30%, rgba(244, 233, 200, 0.3), rgba(18, 24, 50, 0.95));
    border: 2px dashed var(--tea-dim);
}

.blog-author-head h1 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--moon);
}

.blog-author-sub {
    font-size: 0.82rem;
    color: rgba(232, 236, 245, 0.45);
    margin-top: 0.2rem;
}

.blog-author-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.blog-mod-flash {
    font-size: 0.88rem;
    margin-bottom: 0.85rem;
    text-align: left;
}

.blog-mod-banner {
    font-size: 0.88rem;
    line-height: 1.65;
    padding: 0.65rem 0.85rem;
    border-radius: 0.65rem;
    margin-bottom: 1rem;
    border: 1px solid var(--glass-border);
}

.blog-mod-banner.pending {
    background: rgba(232, 192, 120, 0.12);
    border-color: rgba(232, 192, 120, 0.35);
    color: rgba(244, 233, 200, 0.92);
}

.blog-mod-banner.rejected {
    background: rgba(240, 120, 120, 0.1);
    border-color: rgba(240, 160, 160, 0.35);
    color: rgba(245, 200, 200, 0.95);
}

.blog-mod-reason-wrap {
    margin-top: 0.65rem;
    padding-top: 0.65rem;
    border-top: 1px solid rgba(240, 160, 160, 0.22);
}

.blog-mod-reason-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 0.35rem;
    color: rgba(250, 215, 205, 0.88);
}

.blog-mod-reason-text {
    font-size: 0.88rem;
    line-height: 1.65;
    white-space: pre-wrap;
    word-break: break-word;
    color: rgba(252, 226, 218, 0.98);
}

.blog-mod-reason-note {
    margin-top: 0.5rem;
    font-size: 0.82rem;
    color: rgba(245, 200, 200, 0.55);
}

.blog-card-reject-reason {
    margin-top: 0.35rem;
    font-size: 0.76rem;
    line-height: 1.55;
    color: rgba(248, 185, 175, 0.88);
}

.blog-card-reject-prefix {
    font-weight: 600;
    letter-spacing: 0.08em;
    margin-right: 0.35rem;
}

.blog-mod-chip {
    display: inline-block;
    flex-shrink: 0;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 0.28rem 0.55rem;
    border-radius: 999px;
    border: 1px solid var(--glass-border);
    vertical-align: middle;
}

.blog-mod-chip.mod-live {
    background: rgba(120, 200, 150, 0.14);
    border-color: rgba(120, 200, 150, 0.38);
    color: rgba(200, 240, 210, 0.95);
}

.blog-mod-chip.mod-pending {
    background: rgba(232, 192, 120, 0.14);
    border-color: rgba(232, 192, 120, 0.4);
    color: rgba(244, 233, 200, 0.95);
}

.blog-mod-chip.mod-rejected {
    background: rgba(240, 130, 120, 0.12);
    border-color: rgba(240, 160, 150, 0.38);
    color: rgba(250, 210, 200, 0.96);
}

.blog-card-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.55rem;
}

.blog-card-title-row .blog-card-link {
    flex: 1;
    min-width: 0;
}

.admin-blog-panel .admin-blog-table-wrap {
    width: 100%;
    overflow-x: auto;
    margin-top: 1rem;
}

.admin-blog-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.86rem;
}

.admin-blog-table th,
.admin-blog-table td {
    padding: 0.65rem 0.85rem;
    text-align: left;
    border-bottom: 1px solid var(--glass-border);
}

.admin-blog-table th {
    color: var(--tea);
    font-weight: 600;
    letter-spacing: 0.06em;
}

.admin-blog-title-link {
    color: var(--moon);
    text-decoration: none;
}

.admin-blog-title-link:hover {
    text-decoration: underline;
    color: var(--tea);
}

.admin-blog-actions-cell {
    white-space: normal;
    vertical-align: top;
    min-width: min(18rem, 48vw);
}

.admin-reject-form {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.4rem;
    margin-top: 0.5rem;
    max-width: min(22rem, 100%);
}

.admin-reject-label {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.admin-reject-label span {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: rgba(232, 236, 245, 0.55);
}

.admin-reject-form textarea {
    font: inherit;
    font-size: 0.82rem;
    padding: 0.45rem 0.55rem;
    border-radius: 0.5rem;
    border: 1px solid var(--glass-border);
    background: rgba(12, 16, 34, 0.45);
    color: var(--text);
    resize: vertical;
    min-height: 3.2rem;
}

.admin-reject-form .auth-submit {
    margin-top: 0;
    align-self: flex-start;
    padding: 0.4rem 0.85rem;
    font-size: 0.78rem;
}

.admin-inline-action {
    display: inline-block;
    margin-right: 0.35rem;
}

.admin-inline-action .auth-submit {
    margin-top: 0;
    padding: 0.4rem 0.75rem;
    font-size: 0.78rem;
}

.admin-blog-pager {
    margin-top: 1.25rem;
}

.admin-blog-perm-table .admin-perm-badge {
    font-size: 0.82rem;
    color: rgba(157, 212, 163, 0.95);
    letter-spacing: 0.05em;
}

.admin-user-perm-table .admin-perm-col {
    vertical-align: top;
    min-width: 5.5rem;
}

.admin-perm-status {
    display: block;
    font-size: 0.78rem;
    margin-bottom: 0.35rem;
    color: rgba(232, 236, 245, 0.55);
}

.perm-toggle-form {
    margin: 0;
}

.perm-toggle-form .auth-submit {
    margin-top: 0;
    padding: 0.35rem 0.55rem;
    font-size: 0.75rem;
}

.blog-perm-muted {
    font-size: 0.8rem;
    color: rgba(232, 236, 245, 0.45);
    align-self: center;
}

.blog-comment-ban {
    margin-top: 0.75rem;
}

/* --- 后台 · 用户管理（卡片 + 分组操作）--- */
.auth-panel.user-mgmt-shell .auth-title.user-mgmt-title {
    margin-bottom: 0.35rem;
}

.user-mgmt-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem 1.5rem;
    margin-bottom: 1rem;
    padding-bottom: 1.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.user-mgmt-sub {
    font-size: 0.88rem;
    color: rgba(232, 236, 245, 0.52);
    letter-spacing: 0.05em;
    margin: 0;
}

.user-mgmt-stat-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.65rem;
}

.user-mgmt-stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    background: rgba(196, 165, 116, 0.14);
    border: 1px solid rgba(196, 165, 116, 0.28);
    color: rgba(232, 236, 245, 0.88);
}

.user-mgmt-stat-pill strong {
    font-variant-numeric: tabular-nums;
    color: var(--moon);
}

.user-mgmt-stat-pill.is-muted {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--glass-border);
    color: rgba(232, 236, 245, 0.65);
}

.user-mgmt-stat-pill.is-muted strong {
    color: rgba(244, 233, 200, 0.85);
}

.user-mgmt-link-out {
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    color: var(--tea);
    text-decoration: none;
    padding: 0.35rem 0.25rem;
}

.user-mgmt-link-out:hover {
    color: var(--moon);
    text-decoration: underline;
}

.user-mgmt-hint-details {
    margin-bottom: 1rem;
    padding: 0.65rem 1rem;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.82rem;
    color: rgba(232, 236, 245, 0.62);
    line-height: 1.65;
}

.user-mgmt-hint-details summary {
    cursor: pointer;
    letter-spacing: 0.08em;
    font-weight: 600;
    color: rgba(232, 236, 245, 0.72);
    list-style: none;
}

.user-mgmt-hint-details summary::-webkit-details-marker {
    display: none;
}

.user-mgmt-hint-details summary::before {
    content: "▸ ";
    display: inline-block;
    transition: transform 0.18s ease;
}

.user-mgmt-hint-details[open] summary::before {
    transform: rotate(90deg);
}

.user-mgmt-hint-details ul {
    margin: 0.65rem 0 0;
    padding-left: 1.25rem;
}

.user-mgmt-hint-details li + li {
    margin-top: 0.35rem;
}

.user-mgmt-flash {
    margin-top: 0 !important;
    margin-bottom: 1rem !important;
}

.user-mgmt-empty {
    text-align: center;
    padding: 2rem 0.5rem;
}

.user-mgmt-list {
    display: flex;
    flex-direction: column;
    gap: 0.95rem;
}

.user-mgmt-card {
    border-radius: var(--radius-lg);
    padding: 1.05rem 1.15rem;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.06) 0%, transparent 55%),
        rgba(12, 16, 34, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.14);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.user-mgmt-card:hover {
    border-color: rgba(196, 165, 116, 0.15);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.18);
}

.user-mgmt-card.is-self {
    border-left: 3px solid rgba(196, 165, 116, 0.65);
    background:
        linear-gradient(145deg, rgba(196, 165, 116, 0.08) 0%, transparent 52%),
        rgba(12, 16, 34, 0.58);
}

.user-mgmt-card.is-disabled-user {
    opacity: 0.88;
}

.user-mgmt-card-top {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.85rem 1rem;
}

.user-mgmt-who {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    min-width: min(100%, 14rem);
}

.user-mgmt-id {
    font-size: 0.72rem;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.04em;
    color: rgba(232, 236, 245, 0.42);
    padding-top: 0.35rem;
}

.user-mgmt-names {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.user-mgmt-login {
    font-size: 1.08rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--moon);
}

.user-mgmt-nick {
    font-size: 0.82rem;
    color: rgba(232, 236, 245, 0.52);
    letter-spacing: 0.03em;
}

.user-mgmt-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: flex-end;
}

.user-mgmt-pill {
    display: inline-block;
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
    font-size: 0.74rem;
    letter-spacing: 0.08em;
    border: 1px solid transparent;
}

.user-mgmt-pill.is-on {
    background: rgba(157, 212, 163, 0.14);
    border-color: rgba(157, 212, 163, 0.35);
    color: rgba(184, 228, 188, 0.95);
}

.user-mgmt-pill.is-off {
    background: rgba(224, 140, 120, 0.12);
    border-color: rgba(224, 140, 120, 0.35);
    color: rgba(255, 190, 178, 0.92);
}

.user-mgmt-pill.is-role {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
    color: rgba(232, 236, 245, 0.72);
}

.user-mgmt-pill.is-role.is-admin {
    background: rgba(170, 190, 255, 0.14);
    border-color: rgba(170, 190, 255, 0.38);
    color: rgba(210, 218, 255, 0.96);
}

.user-mgmt-toolbar {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.45rem 0.65rem;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.user-mgmt-toolbar-group {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.45rem 0.55rem;
    flex: 0 0 auto;
}

.user-mgmt-toolbar-group:not(:first-child) {
    padding-left: 0.7rem;
    margin-left: 0.25rem;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.user-mgmt-toolbar-group.user-mgmt-toolbar-danger:not(:first-child) {
    border-left-color: rgba(255, 100, 86, 0.28);
}

.user-mgmt-toolbar-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(196, 165, 116, 0.75);
    white-space: nowrap;
    flex-shrink: 0;
}

.user-mgmt-toolbar-danger .user-mgmt-toolbar-label {
    color: rgba(255, 160, 140, 0.75);
}

.user-mgmt-toolbar-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
}

.user-mgmt-self-tag {
    font-size: 0.8rem;
    color: rgba(232, 236, 245, 0.48);
    letter-spacing: 0.04em;
}

.user-mgmt-hint-inline {
    font-size: 0.76rem;
    color: rgba(232, 236, 245, 0.42);
    letter-spacing: 0.03em;
}

.user-mgmt-form {
    margin: 0;
    display: inline-block;
}

.user-mgmt-btn {
    font: inherit;
    margin: 0;
    cursor: pointer;
    padding: 0.42rem 0.85rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    border: 1px solid transparent;
    transition: filter 0.18s ease, transform 0.15s ease, box-shadow 0.18s ease;
}

.user-mgmt-btn:hover {
    transform: translateY(-1px);
}

.user-mgmt-btn:active {
    transform: translateY(0);
}

.user-mgmt-btn.is-primary {
    background: linear-gradient(135deg, rgba(213, 186, 130, 0.5), rgba(244, 233, 200, 0.22));
    border-color: rgba(196, 165, 116, 0.45);
    color: var(--night);
    box-shadow: 0 2px 10px rgba(196, 165, 116, 0.18);
}

.user-mgmt-btn.is-muted {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.18);
    color: rgba(232, 236, 245, 0.82);
}

.user-mgmt-btn.is-muted:hover {
    border-color: rgba(196, 165, 116, 0.35);
    background: rgba(255, 255, 255, 0.05);
}

.user-mgmt-btn.is-warn {
    background: rgba(232, 188, 120, 0.12);
    border-color: rgba(232, 188, 120, 0.35);
    color: rgba(255, 224, 186, 0.95);
}

.user-mgmt-btn.is-warn:hover {
    background: rgba(232, 188, 120, 0.2);
}

.user-mgmt-btn.is-ok {
    background: rgba(157, 212, 163, 0.18);
    border-color: rgba(157, 212, 163, 0.4);
    color: rgba(216, 242, 218, 0.96);
}

.user-mgmt-btn.is-danger {
    background: rgba(220, 90, 72, 0.12);
    border-color: rgba(255, 130, 110, 0.45);
    color: rgba(255, 210, 200, 0.96);
}

.user-mgmt-btn.is-danger:hover {
    background: rgba(220, 90, 72, 0.22);
    box-shadow: 0 4px 16px rgba(200, 60, 50, 0.2);
}

.user-mgmt-pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.65rem 1rem;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.user-mgmt-pager-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 6.5rem;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-decoration: none;
    color: var(--moon);
    background: rgba(196, 165, 116, 0.16);
    border: 1px solid rgba(196, 165, 116, 0.35);
    transition: background 0.2s ease, transform 0.15s ease;
}

.user-mgmt-pager-btn:hover {
    background: rgba(196, 165, 116, 0.26);
    transform: translateY(-1px);
}

.user-mgmt-pager-info {
    font-size: 0.82rem;
    color: rgba(232, 236, 245, 0.55);
    letter-spacing: 0.04em;
    font-variant-numeric: tabular-nums;
}

.user-mgmt-pager-solo {
    margin-top: 1.25rem;
    text-align: center;
    font-size: 0.84rem;
    color: rgba(232, 236, 245, 0.48);
}

/* --- 个人界面主题（body.theme-*，由 UiThemeModelAdvice 注入）--- */
body.theme-night .stars {
    opacity: 0.9;
}

body.theme-dawn {
    --night: #242028;
    --night-mid: #34303a;
    --moon: #fff3e8;
    --tea: #c49a7a;
    --tea-dim: rgba(196, 154, 122, 0.38);
    --mist: rgba(255, 210, 200, 0.14);
    --text: #f4eeea;
    --glass: rgba(255, 255, 255, 0.085);
    --glass-border: rgba(255, 255, 255, 0.16);
    background:
        radial-gradient(ellipse 100% 70% at 50% -15%, #5e4c58 0%, var(--night) 50%),
        var(--night);
}

body.theme-dawn .stars {
    opacity: 0.55;
}

body.theme-forest {
    --night: #0a1814;
    --night-mid: #0f2620;
    --moon: #e4f2e8;
    --tea: #7eb89a;
    --tea-dim: rgba(126, 184, 154, 0.38);
    --mist: rgba(160, 220, 190, 0.12);
    --text: #e2f0ea;
    --glass: rgba(255, 255, 255, 0.065);
    --glass-border: rgba(200, 235, 215, 0.12);
    background:
        radial-gradient(ellipse 100% 70% at 50% -15%, #1a4838 0%, var(--night) 52%),
        var(--night);
}

body.theme-forest .stars {
    opacity: 0.75;
}

body.theme-ember {
    --night: #1c100c;
    --night-mid: #2a1710;
    --moon: #ffe8cc;
    --tea: #d4956a;
    --tea-dim: rgba(212, 149, 106, 0.42);
    --mist: rgba(255, 180, 120, 0.12);
    --text: #f5eae3;
    --glass: rgba(255, 255, 255, 0.07);
    --glass-border: rgba(255, 200, 160, 0.14);
    background:
        radial-gradient(ellipse 100% 70% at 50% -15%, #6b3828 0%, var(--night) 52%),
        var(--night);
}

body.theme-ember .stars {
    opacity: 0.72;
}

body.theme-aurora {
    --night: #0e1228;
    --night-mid: #141839;
    --moon: #d8ebff;
    --tea: #8ab4d9;
    --tea-dim: rgba(138, 180, 217, 0.4);
    --mist: rgba(160, 200, 255, 0.16);
    --text: #e4eef8;
    --glass: rgba(255, 255, 255, 0.07);
    --glass-border: rgba(180, 210, 255, 0.18);
    background:
        radial-gradient(ellipse 100% 70% at 50% -15%, #342c6e 0%, var(--night) 52%),
        radial-gradient(ellipse 80% 50% at 88% 20%, rgba(80, 200, 180, 0.12), transparent),
        var(--night);
}

body.theme-aurora .stars {
    opacity: 0.82;
}

body.theme-dawn::after {
    opacity: 0.3;
    mix-blend-mode: overlay;
}

body.theme-forest::after {
    opacity: 0.36;
    filter: hue-rotate(-22deg) saturate(1.06);
}

body.theme-ember::after {
    opacity: 0.34;
    filter: hue-rotate(18deg) saturate(1.1);
}

body.theme-aurora::after {
    opacity: 0.5;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    body::after {
        animation: none !important;
        transform: none !important;
        opacity: 0.36;
        filter: none;
    }
    .stars {
        animation: none !important;
    }
    .page {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
    .moon-wrap {
        animation: none !important;
    }
    .moon-wrap .moon {
        animation: none !important;
    }
    .hero h1,
    h1.site-brand,
    .hub-title {
        animation: none !important;
        text-shadow:
            0 0 50px rgba(244, 233, 200, 0.2),
            0 6px 40px rgba(0, 0, 0, 0.5);
    }
    .hub-title {
        text-shadow: 0 2px 28px rgba(0, 0, 0, 0.35);
    }
    .quick-card::after,
    .hub-card::after {
        animation: none !important;
        opacity: 0 !important;
        transform: none !important;
    }
    .carousel-track {
        transition-duration: 0.01ms;
    }
    .steam {
        animation: none;
    }
    .intro-card:hover,
    .quick-card:hover,
    .hub-card:hover,
    .site-nav a:hover {
        transform: none;
    }
}
