:root {
    --primary: #8dd3ff;
    --primary-strong: #d8f1ff;
    --primary-soft: rgba(141, 211, 255, 0.16);
    --bg-page: #f5f7fb;
    --bg-surface: rgba(255, 255, 255, 0.78);
    --bg-muted: rgba(255, 255, 255, 0.5);
    --text-main: #f8fbff;
    --text-muted: rgba(235, 244, 255, 0.88);
    --text-soft: rgba(221, 232, 244, 0.72);
    --border: rgba(255, 255, 255, 0.18);
    --border-strong: rgba(255, 255, 255, 0.28);
    --shadow-sm: 0 10px 30px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 24px 52px rgba(0, 0, 0, 0.18);
    --shadow-card: 0 18px 40px rgba(0, 0, 0, 0.16);
}

body.dark,
html.dark body {
    --primary: #b9e7ff;
    --primary-strong: #eff9ff;
    --primary-soft: rgba(185, 231, 255, 0.18);
    --bg-page: #07101b;
    --bg-surface: rgba(10, 20, 34, 0.62);
    --bg-muted: rgba(10, 20, 34, 0.42);
    --text-main: #f8fbff;
    --text-muted: rgba(226, 236, 247, 0.9);
    --text-soft: rgba(206, 221, 236, 0.76);
    --border: rgba(255, 255, 255, 0.14);
    --border-strong: rgba(255, 255, 255, 0.22);
    --shadow-sm: 0 10px 28px rgba(0, 0, 0, 0.28);
    --shadow-lg: 0 28px 60px rgba(0, 0, 0, 0.38);
    --shadow-card: 0 20px 44px rgba(0, 0, 0, 0.32);
}

.whole-scene-body.space-scene-body {
    --primary: #ffd79d;
    --primary-strong: #fff7ee;
    --primary-soft: rgba(255, 215, 157, 0.2);
    --bg-surface: rgba(28, 34, 56, 0.56);
    --bg-muted: rgba(34, 40, 66, 0.38);
    --text-main: #fffaf4;
    --text-muted: rgba(245, 236, 227, 0.88);
    --text-soft: rgba(220, 210, 204, 0.74);
    --border: rgba(255, 227, 190, 0.16);
    --border-strong: rgba(255, 235, 210, 0.24);
    --shadow-sm: 0 14px 34px rgba(22, 16, 24, 0.24);
    --shadow-lg: 0 28px 70px rgba(18, 12, 20, 0.34);
    --shadow-card: 0 20px 48px rgba(18, 12, 20, 0.3);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
    color: var(--text-main);
    line-height: 1.68;
    font-size: 16px;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    transition: background-color 0.25s ease, color 0.25s ease;
}

button,
input,
select,
textarea,
audio {
    font-family: inherit;
    font-size: 1rem;
}

a {
    color: inherit;
}

.whole-scene-body {
    min-height: 100vh;
    position: relative;
    background: #08111d;
}

.whole-scene-backdrop,
.whole-scene-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
}

.whole-scene-backdrop {
    background-image: url('https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&fit=crop&w=1800&q=80');
    background-size: cover;
    background-position: center center;
    z-index: 0;
    transform: scale(1.03);
}

.whole-scene-body.space-scene-body .whole-scene-backdrop {
    background-image: url('/assets/backgrounds/back-landscape-v2.png');
    background-size: cover;
    background-position: center center;
    transform: scale(1.01);
    filter: saturate(1.03) contrast(1.01);
}

.whole-scene-overlay {
    background:
        linear-gradient(120deg, rgba(6, 16, 28, 0.82) 0%, rgba(12, 26, 42, 0.62) 42%, rgba(19, 37, 56, 0.5) 100%),
        linear-gradient(180deg, rgba(5, 12, 20, 0.35), rgba(5, 12, 20, 0.62));
    z-index: 1;
}

.whole-scene-body.space-scene-body .whole-scene-overlay {
    background:
        linear-gradient(115deg, rgba(18, 16, 28, 0.56) 0%, rgba(42, 56, 92, 0.22) 44%, rgba(32, 24, 38, 0.54) 100%),
        radial-gradient(circle at 24% 22%, rgba(255,255,255,0.1), transparent 18%),
        linear-gradient(180deg, rgba(14, 12, 22, 0.18), rgba(20, 18, 28, 0.5));
}

.container {
    max-width: 1220px;
    margin: 0 auto;
    padding: 0 22px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.navbar {
    height: 70px;
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(9, 19, 31, 0.36);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.home-topbar-shell {
    gap: 16px;
}

.home-topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.home-hero-search {
    display: block;
    padding: 6px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.08));
    border: 1px solid rgba(223, 239, 255, 0.16);
    backdrop-filter: blur(16px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.14);
    position: relative;
    width: 360px;
    max-width: 42vw;
}

.home-hero-search input {
    width: calc(100% - 48px);
    min-height: 38px;
    padding: 0 14px;
    border: 0;
    outline: 0;
    background: transparent;
    color: #f8fbff;
}

.home-hero-search input::placeholder {
    color: rgba(229, 239, 250, 0.68);
}

.home-hero-search button {
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(153, 220, 255, 0.9), rgba(111, 181, 255, 0.78));
    color: #07121f;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(88, 173, 255, 0.26);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.home-hero-search,
.navbar-search {
    position: relative;
}

.home-hero-search,
.navbar-search {
    display: block;
}

.home-hero-search button:hover {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 12px 24px rgba(88, 173, 255, 0.32);
    filter: brightness(1.04);
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-decoration: none;
    color: #f8fbff;
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    align-items: center;
}

.navbar-search {
    display: block;
    margin-left: 14px;
    padding: 5px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255,255,255,0.1), rgba(255,255,255,0.06));
    border: 1px solid rgba(223, 239, 255, 0.12);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    position: relative;
    width: 360px;
    max-width: 42vw;
}

.navbar-search input {
    width: calc(100% - 44px);
    min-height: 34px;
    padding: 0 12px;
    border: 0;
    outline: 0;
    background: transparent;
    color: #f8fbff;
}

.home-hero-search,
.navbar-search {
    display: flex;
    align-items: center;
    gap: 8px;
}

.navbar-search input::placeholder {
    color: rgba(229, 239, 250, 0.64);
}

.navbar-search button {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 215, 157, 0.92), rgba(255, 184, 120, 0.84));
    color: #23160f;
    cursor: pointer;
}

.global-search-suggestions {
    position: fixed;
    width: 360px;
    min-width: 320px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
    border-radius: 18px;
    background: rgba(22, 26, 42, 0.96);
    border: 1px solid rgba(255, 225, 190, 0.12);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(18px);
    z-index: 400;
}

.global-search-suggestion {
    text-align: left;
    border: 0;
    border-radius: 14px;
    padding: 10px 12px;
    background: rgba(255,255,255,0.04);
    color: #fffaf4;
    cursor: pointer;
    width: 100%;
    overflow: hidden;
}

.global-search-suggestion strong {
    display: block;
    font-size: 0.92rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.global-search-suggestion span {
    display: block;
    margin-top: 3px;
    font-size: 0.8rem;
    color: rgba(245, 236, 227, 0.68);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.global-search-suggestion:hover {
    background: rgba(255,255,255,0.1);
}

.nav-links a {
    margin-left: 12px;
    text-decoration: none;
    color: rgba(235, 244, 255, 0.88);
    font-size: 0.92rem;
    line-height: 1;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid transparent;
    background: rgba(255,255,255,0.04);
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a.is-active {
    color: #ffffff;
    background: rgba(255,255,255,0.1);
    border-color: rgba(220, 239, 255, 0.14);
    transform: translateY(-1px);
}

.nav-links a.is-active {
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.14);
}

.nav-auth-status {
    margin-left: 18px;
    display: inline-flex;
    align-items: center;
}

.nav-auth-status a {
    margin-left: 0;
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 999px;
    padding: 6px 12px;
    line-height: 1.2;
    color: #f8fbff;
    background: rgba(255,255,255,0.08);
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.08);
    color: #f8fbff;
    cursor: pointer;
    margin-right: 16px;
}

.whole-scene-main {
    position: relative;
    z-index: 2;
    padding-top: 102px;
    padding-bottom: 50px;
}

.whole-scene-main.container,
.page-scene-cover .container,
.navbar .container,
.footer .container {
    width: min(1480px, calc(100% - 40px));
    max-width: none;
}

.home-main-after-cover {
    padding-top: 24px;
}

.whole-scene-layout {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr) 260px;
    gap: 22px;
    align-items: start;
}

.home-cover-minimal {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 90px;
}

.home-cover-center {
    width: 100%;
    min-height: calc(100vh - 90px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
}

.home-cover-badge {
    width: min(560px, calc(100% - 32px));
    margin-bottom: 26px;
    padding: 24px 26px 20px;
    text-align: center;
}

.home-cover-badge h1 {
    font-size: clamp(2.4rem, 6vw, 4.2rem);
    line-height: 0.95;
    letter-spacing: -0.05em;
    margin-bottom: 10px;
}

.home-cover-badge p {
    color: var(--text-muted);
    font-size: 1rem;
}

.home-cover-scroll {
    padding-bottom: 44px;
}

.home-cover-scroll a {
    color: rgba(255,255,255,0.88);
    text-decoration: none;
    letter-spacing: 0.18em;
    font-size: 0.78rem;
}

.page-scene-cover {
    position: relative;
    z-index: 2;
    min-height: 72vh;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 90px 0 26px;
}

.page-scene-cover-inner {
    width: 100%;
    display: flex;
    justify-content: center;
}

.page-scene-cover-scroll a {
    color: rgba(255,255,255,0.86);
    text-decoration: none;
    letter-spacing: 0.16em;
    font-size: 0.78rem;
}

.page-scene-main {
    padding-top: 20px;
}

.platform-compact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.platform-compact-card {
    padding: 18px 18px 16px;
}

.platform-compact-card h3 {
    font-size: 1.04rem;
    letter-spacing: -0.02em;
}

.platform-compact-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.platform-compact-list.two-col {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.platform-compact-list a {
    display: grid;
    grid-template-columns: 18px 1fr;
    grid-template-rows: auto auto;
    column-gap: 9px;
    row-gap: 1px;
    text-decoration: none;
    padding: 10px 12px;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.07));
    border: 1px solid rgba(255,255,255,0.12);
    color: #f8fbff;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.platform-compact-list a:hover {
    transform: translateY(-2px);
    background: linear-gradient(180deg, rgba(255,255,255,0.16), rgba(255,255,255,0.09));
    border-color: rgba(255,255,255,0.2);
}

.platform-compact-list a i {
    grid-row: 1 / span 2;
    align-self: center;
    color: #dff4ff;
    font-size: 0.9rem;
}

.platform-compact-list a strong {
    font-size: 0.92rem;
    letter-spacing: -0.01em;
}

.platform-compact-list a span {
    color: rgba(235,244,255,0.72);
    font-size: 0.78rem;
}

.whole-scene-left {
    position: sticky;
    top: 92px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.glass-card {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow-card);
    border-radius: 22px;
}

.whole-scene-body.space-scene-body .glass-card {
    background: linear-gradient(180deg, rgba(38, 42, 68, 0.58), rgba(28, 30, 52, 0.42));
    border: 1px solid rgba(255, 226, 196, 0.14);
    box-shadow: 0 24px 60px rgba(15, 10, 18, 0.34);
}

.soft-glass-card {
    background: rgba(255, 255, 255, 0.1);
}

.whole-scene-body.space-scene-body .soft-glass-card {
    background: linear-gradient(180deg, rgba(46, 52, 82, 0.52), rgba(32, 36, 60, 0.36));
}

.scene-avatar-card,
.scene-panel,
.whole-scene-hero,
.home-scene-summary-card,
.topic-card,
.blog-tools,
.card {
    padding: 22px 22px 18px;
}

.scene-avatar-card {
    position: relative;
    overflow: hidden;
}

.scene-avatar-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top, rgba(122, 205, 255, 0.18), transparent 42%);
    pointer-events: none;
}

.scene-avatar-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}

.scene-avatar-frame {
    position: relative;
    padding: 6px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(244, 250, 255, 0.9), rgba(114, 191, 255, 0.54));
    box-shadow: 0 0 0 1px rgba(226, 240, 255, 0.26), 0 0 26px rgba(93, 181, 255, 0.26);
}

.scene-avatar-frame::after {
    content: "";
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 1px solid rgba(183, 222, 255, 0.24);
    box-shadow: 0 0 34px rgba(74, 154, 255, 0.14);
}

.scene-avatar {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    color: #0f172a;
    background: linear-gradient(135deg, #fef3c7, #bae6fd);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
}

.whole-scene-body.space-scene-body .scene-avatar {
    background: linear-gradient(135deg, #eef8ff, #9bd8ff 60%, #6db8ff);
    color: #06111f;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.34);
}

.scene-avatar-image {
    width: 104px;
    height: 104px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    display: block;
    border: 2px solid rgba(224, 240, 255, 0.92);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.34);
    background: rgba(255,255,255,0.08);
}

.scene-avatar-card h2,
.scene-panel h3,
.whole-scene-hero h1,
.home-scene-summary-card h2,
.home-scene-summary-card h3,
.topic-card h3,
.card h3 {
    margin-bottom: 10px;
}

.scene-avatar-card h2 {
    font-size: 1.55rem;
    letter-spacing: -0.03em;
    text-align: center;
}

.scene-avatar-subtitle {
    text-align: center;
    font-weight: 600;
    color: rgba(226, 240, 255, 0.92);
}

.scene-avatar-note {
    text-align: center;
}

.scene-avatar-subtitle,
.scene-avatar-note,
.scene-panel p,
.scene-panel li,
.home-scene-summary-card p,
.home-scene-summary-card li,
.topic-card p,
.content-intro p,
.card p,
.post-filter-status,
.loading-text,
.empty-text {
    color: var(--text-muted);
}

.scene-link-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}

.scene-link-list a {
    text-decoration: none;
    color: #f8fbff;
    padding: 9px 12px;
    border-radius: 12px;
    background: rgba(255,255,255,0.08);
}

.scene-link-list a:hover {
    background: rgba(255,255,255,0.16);
}

.enhanced-link-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 13px;
    border: 1px solid rgba(255,255,255,0.1);
    background: linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.07));
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.enhanced-link-list a:hover {
    transform: translateY(-2px);
    border-color: rgba(173, 223, 255, 0.26);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
    background: linear-gradient(180deg, rgba(160, 220, 255, 0.14), rgba(255,255,255,0.08));
}

.enhanced-link-list a i {
    width: 16px;
    text-align: center;
    color: #dff4ff;
}

.scene-audio {
    width: 100%;
    margin-top: 10px;
}

.whole-scene-right {
    min-width: 0;
}

.whole-scene-sideinfo {
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: sticky;
    top: 92px;
}

.scene-mini-card {
    padding: 16px 16px 14px;
}

.scene-mini-card h3 {
    font-size: 1rem;
    margin-bottom: 8px;
}

.scene-mini-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.scene-mini-list span,
.scene-mini-list a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
}

.scene-mini-list a:hover {
    color: var(--primary-strong);
}

.whole-scene-hero {
    min-height: 54vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-bottom: 24px;
    padding: 34px 34px 30px;
}

.page-scene-body .whole-scene-hero {
    min-height: clamp(260px, 38vh, 440px);
}

.page-scene-body .whole-scene-hero.hero-compact {
    min-height: clamp(180px, 26vh, 280px);
}

.home-topbar-minimal {
    background: rgba(9, 19, 31, 0.18);
}

.navbar.navbar-floating .container,
.home-topbar-shell {
    min-height: 66px;
    padding: 10px 14px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(8, 18, 32, 0.44), rgba(8, 18, 32, 0.22));
    border: 1px solid rgba(221, 239, 255, 0.1);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(18px);
}

.home-topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero-minimal-kicker,
.section-kicker {
    display: inline-block;
    margin-bottom: 14px;
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.16em;
}

.whole-scene-hero h1 {
    font-size: clamp(3rem, 6vw, 5.5rem);
    line-height: 0.98;
    letter-spacing: -0.06em;
    max-width: 9ch;
}

.page-scene-body .whole-scene-hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.6rem);
    max-width: 12ch;
}

.page-scene-body .whole-scene-hero.hero-compact h1 {
    font-size: clamp(2.2rem, 4.2vw, 3.6rem);
    max-width: 14ch;
}

.scene-main-desc {
    max-width: 50rem;
    font-size: 1.12rem;
}

.page-scene-body .scene-main-desc {
    font-size: 0.98rem;
    max-width: 42rem;
}

.page-scene-body .hero-minimal-kicker,
.page-scene-body .section-kicker {
    margin-bottom: 10px;
    font-size: 0.74rem;
}

.scene-main-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 22px;
}

.scene-main-meta span {
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.14);
}

.scene-main-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.hero-cta,
.hero-secondary,
.btn-primary,
.btn-secondary,
.btn-danger,
.btn-link,
.post-tool-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 18px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.2;
    border: 1px solid transparent;
    transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    cursor: pointer;
}

.hero-cta,
.btn-primary {
    color: #08111d;
    background: linear-gradient(135deg, #fef3c7, #d7f0ff);
}

.hero-secondary,
.btn-secondary,
.btn-link,
.post-tool-btn {
    color: #f8fbff;
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.16);
}

.btn-danger {
    color: #fff;
    background: #dc2626;
}

.scene-scroll-inline {
    margin-top: 24px;
}

.scene-scroll-inline a {
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    letter-spacing: 0.16em;
    font-size: 0.8rem;
}

.home-scene-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.home-scene-summary-card ul {
    padding-left: 18px;
}

.topic-strip {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.topic-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.topic-links a {
    text-decoration: none;
    color: var(--primary-strong);
    font-weight: 700;
}

.feature-topic-card {
    position: relative;
    overflow: hidden;
}

.topic-card-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.14);
    color: #f8fbff;
}

.latest-posts-section {
    margin-top: 8px;
}

.content-intro {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.content-intro h2 {
    font-size: 1.9rem;
}

.blog-tools {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 18px;
}

.post-search-input,
.admin-input,
.inline-select,
textarea,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
select {
    width: 100%;
    min-height: 42px;
    padding: 10px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.16);
    background: rgba(255,255,255,0.1);
    color: #f8fbff;
}

.post-search-input::placeholder,
textarea::placeholder,
input::placeholder {
    color: rgba(235,244,255,0.66);
}

.post-search-input {
    max-width: 340px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.card {
    overflow: hidden;
}

.card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.card-img {
    height: 190px;
    margin: -22px -22px 16px;
    background-size: cover;
    background-position: center;
    border-radius: 22px 22px 0 0;
}

.card-meta-top {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.card-tag,
.card-series {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
}

.card-tag {
    background: rgba(255,255,255,0.16);
    color: #f8fbff;
}

.card-series {
    background: rgba(255,255,255,0.1);
    color: rgba(235,244,255,0.88);
}

.card-footer {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    color: var(--text-soft);
    font-size: 0.9rem;
    margin-top: 14px;
}

.footer {
    position: relative;
    z-index: 2;
    padding: 18px 0 38px;
    text-align: center;
    color: rgba(235,244,255,0.78);
}

.floating-hearts {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 999;
}

.floating-heart {
    position: fixed;
    font-size: 18px;
    animation: heart-float 1.4s ease-out forwards;
    will-change: transform, opacity;
}

.post-scene-main {
    max-width: 1240px;
}

.post-container {
    padding: 32px 36px 40px;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.post-header {
    margin-bottom: 24px;
}

.post-header h1 {
    font-size: clamp(2.3rem, 5vw, 3.6rem);
    line-height: 1.08;
    margin: 12px 0 14px;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    color: rgba(235,244,255,0.82);
    font-size: 0.98rem;
}

.post-toc {
    margin: 0 0 28px;
}

.post-toc-card {
    padding: 18px 20px;
    border-radius: 18px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
}

.post-toc-kicker {
    margin: 0 0 8px;
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    color: rgba(235,244,255,0.64);
}

.post-toc-card h2 {
    margin: 0 0 10px;
    font-size: 1.25rem;
}

.post-toc-list {
    margin: 0;
    padding-left: 22px;
    display: grid;
    gap: 8px;
}

.post-toc-list li {
    line-height: 1.5;
}

.post-toc-list a {
    color: rgba(245,248,255,0.92);
    text-decoration: none;
}

.post-toc-list a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.post-content {
    color: rgba(245,248,255,0.94);
    font-size: 1.08rem;
    line-height: 1.9;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.post-content p,
.post-content li,
.post-content h2,
.post-content h3,
.post-toc-list a {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.post-content > *:first-child {
    margin-top: 0;
}

.post-content p,
.post-content ul,
.post-content ol,
.post-content pre,
.post-content blockquote {
    margin: 0 0 18px;
}

.post-content h2 {
    margin: 42px 0 16px;
    font-size: clamp(1.7rem, 3.2vw, 2.3rem);
    line-height: 1.2;
}

.post-content h3 {
    margin: 28px 0 12px;
    font-size: 1.3rem;
    line-height: 1.25;
}

.post-content ul,
.post-content ol {
    padding-left: 26px;
}

.post-content li {
    margin-bottom: 8px;
}

.post-content strong {
    color: #ffffff;
}

.post-content code {
    padding: 0.15em 0.4em;
    border-radius: 8px;
    background: rgba(255,255,255,0.1);
    font-size: 0.94em;
}

.post-content pre {
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(7, 14, 26, 0.55);
    border: 1px solid rgba(255,255,255,0.08);
    overflow-x: auto;
}

.post-content pre code {
    padding: 0;
    background: transparent;
}

@keyframes heart-float {
    0% {
        transform: translate(-50%, -50%) scale(0.6);
        opacity: 0;
    }
    15% {
        opacity: 1;
    }
    100% {
        transform: translate(calc(-50% + var(--drift-x, 0px)), calc(-130px - 50%)) scale(1.35) rotate(var(--rotate, 0deg));
        opacity: 0;
    }
}

@media (max-width: 980px) {
    .whole-scene-layout,
    .home-scene-summary,
    .topic-strip,
    .blog-grid,
    .platform-compact-list,
    .platform-compact-list.two-col {
        grid-template-columns: 1fr;
    }

    .whole-scene-left,
    .whole-scene-sideinfo {
        position: static;
    }

    .whole-scene-hero,
    .page-scene-cover {
        min-height: auto;
    }

    .whole-scene-body.space-scene-body .whole-scene-backdrop {
        background-image: url('/assets/backgrounds/back-portrait-v2.png');
        background-position: center top;
    }
}

@media (max-width: 720px) {
    .post-container {
        padding: 24px 20px 28px;
    }

    .post-header h1 {
        font-size: clamp(2rem, 10vw, 3rem);
    }

    .post-content {
        font-size: 1rem;
        line-height: 1.78;
    }

    .post-content h2 {
        margin-top: 34px;
        font-size: 1.6rem;
    }

    .navbar {
        height: auto;
        padding: 10px 0;
    }

    .navbar .container {
        flex-wrap: wrap;
        gap: 10px;
    }

    .home-topbar-shell {
        align-items: stretch;
        gap: 10px;
        padding: 10px 12px;
        border-radius: 18px;
    }

    .home-topbar-right {
        width: 100%;
        min-width: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .nav-links {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
    }

    .nav-links-topbar {
        display: flex;
        flex-wrap: nowrap;
    }

    .nav-links a {
        margin-left: 10px;
        white-space: nowrap;
        flex: 0 0 auto;
    }

    .nav-links a:first-child {
        margin-left: 0;
    }

    .navbar-search,
    .home-hero-search {
        width: 100%;
        max-width: none;
        margin-left: 0;
    }

    .navbar-search input,
    .home-hero-search input {
        min-width: 0;
    }

    .global-search-suggestions {
        min-width: 0;
        width: calc(100% - 24px);
        left: 12px !important;
        right: 12px !important;
    }

    .whole-scene-main {
        padding-top: 118px;
    }

    .home-cover-minimal {
        min-height: auto;
        padding-top: 88px;
    }

    .home-cover-center {
        min-height: calc(100vh - 88px);
    }

    .home-cover-badge {
        width: min(100%, calc(100% - 20px));
        margin-bottom: 18px;
        padding: 20px 18px 18px;
    }

    .page-scene-cover {
        padding: 82px 0 18px;
    }

    .whole-scene-hero,
    .scene-avatar-card,
    .scene-panel,
    .home-scene-summary-card,
    .topic-card,
    .platform-compact-card,
    .card {
        padding: 18px 16px 16px;
        border-radius: 18px;
    }

    .whole-scene-hero h1 {
        font-size: clamp(2.2rem, 12vw, 4rem);
    }
}
