:root {
    --paper: #f3e7c9;
    --bronze: #c58a3b;
    --bronze-soft: #e2b268;
    --red: #a12f1a;
    --red-glow: #ff6a3a;
    --bg-base: #0b1022;
    --bg-mid: #1a2244;

    --line-brass: #ffca6b;
    --line-stone: rgba(255, 200, 120, 0.24);
    --text-main: #f5ead0;
    --text-soft: #dcc8a3;
    --text-muted: #a7977d;

    --radius-xl: 30px;
    --radius-lg: 22px;
    --radius-md: 16px;
    --site-max: 1180px;
    --site-pad: 24px;

    --shadow: 0 20px 52px rgba(0, 0, 0, 0.55);
    --shadow-sm: 0 10px 28px rgba(0, 0, 0, 0.4);

    --font-display: "ZCOOL XiaoWei", "Noto Serif SC", serif;
    --font-body: "Noto Sans SC", "Microsoft YaHei", sans-serif;
    --font-pixel: "Silkscreen", "Courier New", monospace;
    --font-hero: "Uncial Antiqua", "ZCOOL XiaoWei", serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
    height: 100%;
    background-color: var(--bg-base);
}

body {
    color: var(--text-main);
    font-family: var(--font-body);
    background-color: var(--bg-base);
    background-image:
        url("/assets/bg-sanguo-site.png"),
        radial-gradient(ellipse at 50% 40%, rgba(255, 140, 60, 0.18), transparent 55%),
        radial-gradient(ellipse at 20% 85%, rgba(180, 80, 40, 0.22), transparent 60%),
        radial-gradient(ellipse at 80% 90%, rgba(70, 120, 230, 0.25), transparent 60%),
        linear-gradient(180deg, #0a0f1e 0%, #111935 50%, #0a0f1e 100%);
    background-size: cover, auto, auto, auto, auto;
    background-position: center center, center, center, center, center;
    background-repeat: no-repeat, no-repeat, no-repeat, no-repeat, no-repeat;
    background-attachment: fixed;
    overflow-x: hidden;
}

body::after {
    content: "";
    position: fixed;
    right: 0;
    bottom: 0;
    z-index: 1;
    width: 360px;
    height: 210px;
    pointer-events: none;
    background: linear-gradient(225deg,
        rgba(10, 15, 30, 0.995) 0%,
        rgba(10, 15, 30, 0.97) 20%,
        rgba(12, 18, 35, 0.9) 45%,
        rgba(16, 24, 48, 0.62) 72%,
        transparent 100%);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(circle at 10% 38%, rgba(255, 158, 56, 0.22) 0%, transparent 22%),
        radial-gradient(circle at 90% 38%, rgba(255, 158, 56, 0.22) 0%, transparent 22%),
        linear-gradient(180deg, rgba(6, 10, 22, 0.22) 0%, rgba(6, 10, 22, 0) 28%, rgba(6, 10, 22, 0) 72%, rgba(6, 10, 22, 0.32) 100%);
}

a {
    color: inherit;
}

.site-shell {
    position: relative;
    z-index: 2;
    max-width: var(--site-max);
    margin: 0 auto;
    padding: 26px var(--site-pad) 44px;
}

.topbar,
.panel,
.footer-panel {
    position: relative;
    border: 1px solid var(--line-stone);
    background:
        linear-gradient(180deg, rgba(24, 32, 60, 0.78) 0%, rgba(16, 22, 44, 0.9) 100%),
        radial-gradient(circle at top left, rgba(255, 150, 70, 0.12), transparent 45%);
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px) saturate(1.15);
}

.topbar::before,
.panel::before,
.footer-panel::before,
.page-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    pointer-events: none;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 190, 110, 0.78) 20%, rgba(255, 230, 170, 0.95) 50%, rgba(255, 190, 110, 0.78) 80%, transparent 100%);
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 22px;
    border-radius: 999px;
    margin-bottom: 24px;
}

.brand-stack {
    display: grid;
    gap: 5px;
}

.brand-tag {
    color: var(--line-brass);
    font-family: var(--font-pixel);
    font-size: 0.66rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.brand-title {
    font-family: var(--font-display);
    font-size: 1.28rem;
    letter-spacing: 0.06em;
    color: var(--paper);
}

.topnav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.topnav a {
    position: relative;
    text-decoration: none;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid rgba(255, 208, 129, 0.16);
    background: rgba(255, 237, 205, 0.04);
    color: var(--text-main);
    font-weight: 700;
    transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease, color 0.22s ease;
}

.topnav a:hover,
.topnav a.is-active {
    transform: translateY(-2px);
    border-color: rgba(255, 180, 100, 0.48);
    background: linear-gradient(135deg, rgba(255, 140, 70, 0.18), rgba(180, 40, 30, 0.1));
    color: #fff5de;
    box-shadow: inset 0 1px 0 rgba(255, 230, 180, 0.16);
}

.hero-stage {
    padding: 40px 34px 36px;
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.eyebrow {
    display: inline-block;
    padding: 8px 14px;
    margin-bottom: 18px;
    border-radius: 999px;
    border: 1px solid rgba(255, 202, 107, 0.28);
    background: linear-gradient(135deg, rgba(255, 202, 107, 0.1), rgba(255, 140, 70, 0.08));
    color: var(--line-brass);
    font-family: var(--font-pixel);
    font-size: 0.64rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    box-shadow: inset 0 1px 0 rgba(255, 220, 160, 0.12);
}

.page-title,
.hero-title {
    margin: 0;
    font-family: var(--font-display);
    line-height: 1;
    letter-spacing: 0.06em;
    color: #fff2d1;
    text-shadow:
        0 0 18px rgba(255, 150, 70, 0.36),
        0 3px 0 #6a2a10,
        0 10px 30px rgba(0, 0, 0, 0.5);
}

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

.page-title {
    font-size: clamp(2.1rem, 5vw, 3.4rem);
}

.hero-subtitle,
.page-subtitle,
.section-text,
.card-text,
.muted {
    color: var(--text-soft);
    line-height: 1.9;
}

.hero-subtitle {
    max-width: 760px;
    margin: 16px auto 0;
    font-size: 1.02rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    align-items: end;
}

.button-row,
.chip-row,
.stats-row,
.card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.board-button,
.ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 700;
    border-radius: 14px;
    padding: 12px 18px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.board-button {
    border: 1px solid rgba(255, 220, 160, 0.32);
    background: linear-gradient(135deg, rgba(255, 140, 70, 0.95), rgba(180, 40, 30, 0.95));
    color: #fff7e6;
    box-shadow: 0 12px 32px rgba(255, 100, 50, 0.28), inset 0 1px 0 rgba(255, 230, 180, 0.35);
}

.ghost-button {
    border: 1px solid rgba(255, 208, 129, 0.24);
    background: linear-gradient(180deg, rgba(255, 244, 223, 0.08), rgba(255, 244, 223, 0.03));
    color: var(--text-main);
    backdrop-filter: blur(4px);
    box-shadow: inset 0 1px 0 rgba(255, 230, 180, 0.12);
}

.board-button:hover,
.ghost-button:hover {
    transform: translateY(-2px);
}

.board-button:hover {
    box-shadow: 0 16px 40px rgba(255, 100, 50, 0.38), inset 0 1px 0 rgba(255, 230, 180, 0.45);
}

.section-stack {
    display: grid;
    gap: 22px;
    margin-top: 22px;
}

.panel {
    border-radius: var(--radius-xl);
    padding: 28px;
}

.panel-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.section-kicker {
    color: var(--line-brass);
    font-family: var(--font-pixel);
    font-size: 0.62rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.section-title {
    margin: 0 0 8px;
    font-family: var(--font-display);
    letter-spacing: 0.06em;
    font-size: 1.9rem;
    color: #ffe7b9;
    text-shadow: 0 0 16px rgba(255, 160, 80, 0.25);
}

.grid-two {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 18px;
}

.grid-three {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.feature-card,
.profile-card,
.note-card,
.project-card,
.mini-card {
    position: relative;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 200, 120, 0.18);
    background:
        linear-gradient(180deg, rgba(28, 36, 68, 0.78), rgba(16, 22, 44, 0.92)),
        radial-gradient(circle at top left, rgba(255, 150, 70, 0.12), transparent 50%);
    padding: 22px;
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(8px) saturate(1.1);
}

.feature-card::before,
.profile-card::before,
.note-card::before,
.project-card::before,
.mini-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 16%;
    right: 16%;
    height: 2px;
    pointer-events: none;
    background: linear-gradient(90deg, transparent, rgba(255, 210, 140, 0.6), transparent);
    border-radius: 2px;
}

.project-card {
    display: grid;
    gap: 14px;
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.project-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 200, 120, 0.4);
    box-shadow: 0 22px 54px rgba(0, 0, 0, 0.55), 0 0 28px rgba(255, 150, 70, 0.12);
}

.card-title {
    margin: 0;
    font-family: var(--font-display);
    letter-spacing: 0.06em;
    font-size: 1.36rem;
    color: #ffe6bc;
    text-shadow: 0 0 14px rgba(255, 160, 80, 0.22);
}

.card-meta {
    color: var(--text-muted);
    font-size: 0.92rem;
    letter-spacing: 0.02em;
}

.chip {
    padding: 9px 13px;
    border-radius: 999px;
    border: 1px solid rgba(255, 208, 129, 0.22);
    background: linear-gradient(135deg, rgba(255, 208, 129, 0.12), rgba(255, 140, 70, 0.06));
    color: #ffe3b5;
    font-size: 0.92rem;
    box-shadow: inset 0 1px 0 rgba(255, 230, 180, 0.12);
}

.stat {
    min-width: 140px;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid rgba(255, 200, 120, 0.18);
    background: linear-gradient(180deg, rgba(255, 250, 238, 0.06), rgba(255, 250, 238, 0.02));
    box-shadow: inset 0 1px 0 rgba(255, 230, 180, 0.1);
}

.stat strong {
    display: block;
    margin-bottom: 6px;
    font-size: 1.45rem;
    color: #ffd68f;
    font-family: var(--font-display);
    letter-spacing: 0.04em;
}

.archive-list {
    display: grid;
    gap: 14px;
}

.archive-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    border-radius: 18px;
    border: 1px solid rgba(255, 200, 120, 0.16);
    background: linear-gradient(180deg, rgba(255, 247, 232, 0.06), rgba(255, 247, 232, 0.02));
    text-decoration: none;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
    box-shadow: inset 0 1px 0 rgba(255, 230, 180, 0.08);
}

.archive-item:hover {
    transform: translateX(4px);
    border-color: rgba(255, 208, 129, 0.32);
    background: linear-gradient(135deg, rgba(255, 140, 70, 0.16), rgba(180, 40, 30, 0.06));
}

.archive-date {
    flex-shrink: 0;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 208, 129, 0.22);
    background: linear-gradient(135deg, rgba(255, 208, 129, 0.12), rgba(255, 140, 70, 0.06));
    color: #ffdca2;
    font-size: 0.86rem;
}

.footer-panel {
    margin-top: 22px;
    border-radius: 20px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    color: var(--text-muted);
}

.footer-panel strong {
    color: #ffda97;
    letter-spacing: 0.04em;
}

.page-hero {
    position: relative;
    padding: 32px 30px;
    border-radius: var(--radius-xl);
    margin-bottom: 22px;
}

.page-hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 18px;
    align-items: start;
    position: relative;
    z-index: 1;
}

.aside-panel {
    position: relative;
    border-radius: 24px;
    padding: 22px;
    border: 1px solid rgba(255, 200, 120, 0.2);
    background:
        linear-gradient(180deg, rgba(40, 26, 50, 0.55), rgba(18, 22, 44, 0.82)),
        radial-gradient(circle at top right, rgba(255, 159, 53, 0.18), transparent 55%),
        radial-gradient(circle at bottom left, rgba(70, 120, 230, 0.22), transparent 55%);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(8px) saturate(1.1);
}

.aside-panel::before {
    content: "";
    position: absolute;
    top: 0;
    left: 18%;
    right: 18%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 210, 140, 0.68), transparent);
    border-radius: 2px;
}

.aside-title {
    margin: 0 0 10px;
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: #ffd68c;
    letter-spacing: 0.06em;
    text-shadow: 0 0 14px rgba(255, 160, 80, 0.25);
}

.divider {
    height: 1px;
    margin: 18px 0;
    background: linear-gradient(90deg, transparent, rgba(255, 208, 129, 0.36), transparent);
}

@media (max-width: 1024px) {
    .hero-grid,
    .grid-three,
    .grid-two,
    .page-hero-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    :root {
        --site-pad: 14px;
    }

    .site-shell {
        padding-top: 16px;
        padding-bottom: 28px;
    }

    .topbar,
    .panel,
    .page-hero,
    .footer-panel {
        border-radius: 20px;
        padding: 18px;
    }

    .topbar {
        gap: 14px;
        border-radius: 22px;
    }

    .hero-title {
        font-size: 2.45rem;
    }

    .page-title {
        font-size: 2rem;
    }
}

/* ============ HOME PAGE ============ */

body.page-home {
    /* 继承 body 的统一背景，不做额外覆盖 */
}

body.page-home::after {
    /* 保留右下角水印遮罩 */
}

.page-home .site-shell {
    max-width: 1380px;
    min-height: 100vh;
    padding: 18px 22px 18px;
}

.home-header {
    position: relative;
    z-index: 3;
    margin-bottom: 12px;
}

.home-nav {
    display: flex;
    gap: 34px;
    align-items: center;
    padding: 8px 6px;
}

.home-nav a {
    text-decoration: none;
    color: rgba(255, 243, 218, 0.92);
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 2vw, 2.1rem);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-shadow:
        0 2px 8px rgba(0, 0, 0, 0.65),
        0 0 14px rgba(255, 150, 70, 0.22);
    transition: transform 0.2s ease, color 0.2s ease;
}

.home-nav a:hover,
.home-nav a.is-active {
    color: #fff8e5;
    transform: translateY(-1px);
    text-shadow:
        0 3px 12px rgba(0, 0, 0, 0.7),
        0 0 22px rgba(255, 180, 100, 0.42);
}

.home-scene {
    position: relative;
    min-height: calc(100vh - 108px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 56px 44px 34px;
    overflow: hidden;
    border-radius: 22px;
    border: 1px solid rgba(255, 200, 120, 0.18);
    background:
        radial-gradient(ellipse at 50% 55%, rgba(70, 120, 220, 0.18), transparent 48%),
        radial-gradient(circle at 12% 42%, rgba(255, 140, 60, 0.22), transparent 22%),
        radial-gradient(circle at 88% 42%, rgba(255, 140, 60, 0.22), transparent 22%),
        linear-gradient(180deg, rgba(8, 12, 28, 0.32) 0%, rgba(8, 12, 28, 0.18) 45%, rgba(8, 12, 28, 0.44) 100%);
    box-shadow:
        var(--shadow),
        inset 0 0 120px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 220, 160, 0.12);
    backdrop-filter: blur(2px) saturate(1.05);
}

.home-scene::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    z-index: 2;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 190, 110, 0.82) 25%, rgba(255, 230, 170, 0.95) 50%, rgba(255, 190, 110, 0.82) 75%, transparent 100%);
}

.home-scene::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 50% 72%, rgba(80, 160, 255, 0.14), transparent 28%),
        linear-gradient(180deg, rgba(4, 7, 18, 0) 0%, rgba(4, 7, 18, 0) 56%, rgba(4, 7, 18, 0.38) 100%);
}

.home-title-block,
.home-door-grid,
.home-footer {
    position: relative;
    z-index: 2;
}

.home-title-block {
    text-align: center;
    margin-top: 8px;
}

.home-title {
    margin: 0;
    font-family: var(--font-hero);
    font-size: clamp(3rem, 7vw, 6.4rem);
    line-height: 0.94;
    letter-spacing: 0.04em;
    color: #ffe3a6;
    text-shadow:
        0 0 6px rgba(255, 241, 194, 0.72),
        0 0 22px rgba(255, 166, 52, 0.55),
        0 3px 0 #fff6d7,
        0 6px 0 #dd8723,
        0 11px 0 #7a3810,
        0 22px 40px rgba(0, 0, 0, 0.6);
}

.home-subtitle {
    margin: 20px 0 0;
    color: #fff8e7;
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: 0.08em;
    font-size: clamp(2rem, 3.6vw, 4rem);
    text-shadow:
        0 4px 18px rgba(0, 0, 0, 0.65),
        0 0 16px rgba(255, 170, 90, 0.32);
}

.home-door-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 34px;
    align-items: end;
    min-height: 380px;
    padding: 0 34px 6px;
}

.home-door {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    min-height: 330px;
    text-decoration: none;
    border-radius: 28px;
    padding-top: 14px;
    transition: transform 0.22s ease, filter 0.22s ease;
}

.home-door::before {
    content: "";
    position: absolute;
    left: 14%;
    right: 14%;
    top: 20%;
    bottom: 0;
    border-radius: 28px 28px 22px 22px;
    background:
        linear-gradient(180deg,
            rgba(255, 220, 160, 0.14) 0%,
            rgba(255, 150, 70, 0.1) 16%,
            rgba(60, 30, 16, 0.72) 60%,
            rgba(30, 16, 10, 0.88) 100%),
        repeating-linear-gradient(90deg,
            rgba(84, 44, 18, 0.94) 0 16px,
            rgba(114, 58, 24, 0.96) 16px 32px);
    border: 10px solid rgba(78, 42, 18, 0.92);
    box-shadow:
        inset 0 0 0 2px rgba(255, 211, 131, 0.18),
        inset 0 -20px 28px rgba(0, 0, 0, 0.45),
        0 14px 38px rgba(0, 0, 0, 0.45);
}

.home-door::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 64%;
    width: 22px;
    height: 22px;
    margin-left: 64px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #3a2717 0%, #1a0f08 70%);
    box-shadow:
        0 0 0 5px rgba(64, 40, 24, 0.95),
        0 0 0 6px rgba(255, 200, 120, 0.18),
        0 2px 8px rgba(0, 0, 0, 0.5);
}

.home-door-center::before {
    background:
        radial-gradient(circle at 50% 55%, rgba(130, 220, 255, 0.88) 0%, rgba(70, 150, 230, 0.52) 32%, rgba(16, 36, 80, 0.1) 68%, transparent 78%),
        linear-gradient(180deg, rgba(20, 40, 88, 0.96) 0%, rgba(8, 18, 46, 0.98) 100%);
    border-color: rgba(100, 170, 255, 0.42);
    box-shadow:
        inset 0 0 40px rgba(140, 220, 255, 0.4),
        0 0 44px rgba(90, 160, 255, 0.28),
        0 14px 38px rgba(0, 0, 0, 0.45);
}

.home-door-center::after {
    margin-left: 0;
    background: radial-gradient(circle at 35% 35%, #b9e8ff 0%, #3a8ad8 70%);
    box-shadow:
        0 0 0 5px rgba(36, 80, 160, 0.9),
        0 0 18px rgba(140, 220, 255, 0.68),
        0 2px 8px rgba(0, 0, 0, 0.45);
}

.home-door:hover {
    transform: translateY(-6px);
    filter: brightness(1.06);
}

.home-door-board {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: min(100%, 360px);
    min-height: 82px;
    padding: 16px 18px;
    border-radius: 18px;
    border: 3px solid rgba(54, 24, 10, 0.92);
    background:
        linear-gradient(180deg, rgba(196, 118, 52, 0.98), rgba(124, 62, 26, 0.98)),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0 14px, rgba(0, 0, 0, 0.06) 14px 28px);
    box-shadow:
        0 8px 0 rgba(44, 18, 7, 0.92),
        0 22px 36px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 230, 180, 0.28);
    color: #ffe7b6;
    font-family: var(--font-display);
    font-size: clamp(1.45rem, 2.4vw, 2.25rem);
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.15;
    text-align: center;
    text-shadow:
        0 2px 0 rgba(83, 34, 10, 0.92),
        0 0 10px rgba(255, 180, 100, 0.22);
}

.home-door-center .home-door-board {
    width: min(100%, 320px);
    background:
        linear-gradient(180deg, rgba(80, 150, 230, 0.98), rgba(36, 86, 170, 0.98)),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.07) 0 14px, rgba(0, 0, 0, 0.05) 14px 28px);
    border-color: rgba(20, 44, 96, 0.92);
    box-shadow:
        0 8px 0 rgba(14, 34, 86, 0.92),
        0 0 32px rgba(120, 190, 255, 0.34),
        0 22px 36px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(220, 240, 255, 0.32);
    color: #fff4d8;
    text-shadow:
        0 2px 0 rgba(16, 40, 92, 0.92),
        0 0 14px rgba(180, 220, 255, 0.42);
}

.home-footer {
    position: relative;
    z-index: 3;
    display: flex;
    justify-content: flex-end;
    margin-top: 12px;
}

.home-footer-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.home-footer-links a {
    text-decoration: none;
    color: rgba(255, 239, 213, 0.9);
    font-weight: 700;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 213, 148, 0.22);
    background: linear-gradient(180deg, rgba(16, 22, 44, 0.76), rgba(10, 14, 30, 0.88));
    backdrop-filter: blur(8px) saturate(1.1);
    box-shadow: inset 0 1px 0 rgba(255, 230, 180, 0.12);
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.home-footer-links a:hover {
    transform: translateY(-1px);
    color: #fff7ea;
    border-color: rgba(255, 213, 148, 0.42);
    background: linear-gradient(135deg, rgba(255, 140, 70, 0.22), rgba(180, 40, 30, 0.1));
}

@media (max-width: 980px) {
    .page-home .site-shell {
        padding: 14px 16px 18px;
    }

    .home-nav {
        gap: 20px;
    }

    .home-scene {
        min-height: calc(100vh - 94px);
        padding: 44px 20px 24px;
        background-position: center center;
    }

    .home-door-grid {
        gap: 14px;
        padding: 0;
        min-height: 300px;
    }

    .home-door {
        min-height: 250px;
    }

    .home-door-board {
        min-height: 68px;
        padding: 12px 10px;
        font-size: clamp(1.05rem, 2.2vw, 1.55rem);
    }
}

@media (max-width: 720px) {
    .home-nav {
        justify-content: center;
        gap: 18px;
        padding-top: 2px;
    }

    .home-nav a {
        font-size: 1.18rem;
    }

    .home-scene {
        min-height: auto;
        padding: 34px 16px 18px;
        border-radius: 16px;
    }

    .home-title {
        font-size: 2.4rem;
        line-height: 1.02;
    }

    .home-subtitle {
        margin-top: 14px;
        font-size: 1.9rem;
    }

    .home-door-grid {
        grid-template-columns: 1fr;
        min-height: auto;
        margin-top: 80px;
        gap: 14px;
    }

    .home-door {
        min-height: auto;
        padding-top: 0;
        min-height: 200px;
    }

    .home-door::before {
        left: 10%;
        right: 10%;
        top: 14%;
    }

    .home-door-board,
    .home-door-center .home-door-board {
        width: 100%;
        min-height: 60px;
        font-size: 1.18rem;
    }

    .home-footer {
        justify-content: center;
    }

    .home-footer-links {
        justify-content: center;
    }
}
