/* =========================================================
   首页内容区（全屏）
   ========================================================= */

:root {
    --home-orange: var(--color-primary);
    --home-orange-deep: var(--color-primary-hover);
    --home-orange-soft: var(--color-primary-soft);
    --home-blue: var(--color-primary);
    --home-peach: var(--color-primary-tint);
    --home-ink: var(--color-ink);
    --home-muted: var(--color-muted);
    --home-page: var(--color-page);
    --home-surface: var(--color-surface);
    --home-radius: var(--radius-lg);
    --home-radius-sm: var(--radius-md);
    --home-shadow: var(--shadow-card);
    --home-shadow-hover: var(--shadow-card-hover);
    --home-font: var(--font-sans);
    --home-display: var(--font-sans);
}

.home-page {
    font-family: var(--home-font);
    color: var(--home-ink);
    background: transparent;
    min-height: calc(100vh - var(--site-header-h, 64px) - var(--site-footer-h, 74px));
    -webkit-font-smoothing: antialiased;
}

/* 首页底图铺满视口 */
body:has(.home-page),
body.is-home {
    background-color: #f5f2e9;
    background-image: url("../img/home_bg.jpg");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 100% 100%;
    background-attachment: fixed;
}

.home-page a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease, box-shadow 0.25s ease, background 0.2s ease;
}

.home-page button {
    font: inherit;
    border: 0;
    background: none;
    cursor: pointer;
    color: inherit;
}

/* 全屏内容容器 */
.home-screen {
    width: 100%;
    max-width: none;
    min-height: calc(100vh - var(--site-header-h, 64px) - var(--site-footer-h, 74px));
    display: flex;
    flex-direction: column;
    padding: 20px clamp(16px, 3vw, 40px) 24px;
    box-sizing: border-box;
}

/* ---------- Hero ---------- */
.home-hero {
    position: relative;
    display: block;
    min-height: clamp(300px, 36vh, 400px);
    height: clamp(300px, 36vh, 400px);
    padding: 0;
    border-radius: var(--radius-lg);
    background:
        radial-gradient(120% 80% at 70% 20%, rgba(255, 248, 242, 0.95) 0%, transparent 55%),
        linear-gradient(135deg, var(--color-primary-soft) 0%, var(--color-primary-tint) 45%, #fff 100%);
    border: 1px solid var(--color-line);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    animation: home-fade-up 0.3s ease both;
    flex-shrink: 0;
    outline: none;
}

.home-hero:focus-visible {
    box-shadow: var(--shadow-card), 0 0 0 3px rgba(195, 122, 103, 0.28);
}

.home-hero::before {
    content: "";
    position: absolute;
    inset: auto -40px -60px auto;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(195, 122, 103, 0.12);
    pointer-events: none;
    z-index: 0;
}

.home-hero-canvas-wrap {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.home-hero-canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.home-hero-copy {
    position: absolute;
    left: clamp(20px, 3.5vw, 40px);
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    max-width: min(22em, 42%);
    pointer-events: none;
}

.home-hero-copy .home-hero-actions,
.home-hero-copy .home-hero-touch {
    pointer-events: auto;
}

.home-hero-brand {
    margin: 0 0 10px;
    font-family: var(--home-display);
    font-size: var(--fs-tiny);
    line-height: var(--lh-tiny);
    font-weight: 600;
    letter-spacing: 0.12em;
    color: var(--color-primary);
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
}

.home-hero-title {
    margin: 0 0 10px;
    font-family: "STKaiti", "KaiTi", var(--home-display);
    font-size: clamp(1.85rem, 3.6vw, 2.75rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: 0.02em;
    color: var(--home-ink);
}

.home-hero-title-line {
    display: block;
}

.home-hero-title-accent {
    display: inline-block;
    margin-top: 0.08em;
    background: linear-gradient(110deg, #C37A67 0%, #D4895E 40%, #A86452 70%, #C37A67 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: home-title-shine 4.5s ease-in-out infinite;
    filter: drop-shadow(0 2px 10px rgba(195, 122, 103, 0.25));
}

.home-hero-lead {
    margin: 0 0 8px;
    font-size: var(--fs-aux);
    line-height: var(--lh-aux);
    color: #5c4f44;
    max-width: 22em;
}

.home-hero-lead-static {
    display: none;
}

.home-hero-hint {
    margin: 0 0 16px;
    font-size: 12px;
    font-weight: 500;
    color: #3d342c;
}

.home-hero-hint kbd {
    display: inline-block;
    min-width: 1.4em;
    padding: 1px 5px;
    margin: 0 1px;
    border-radius: 4px;
    border: 1px solid rgba(44, 36, 28, 0.22);
    background: #fff;
    color: #2c241c;
    font-family: inherit;
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    box-shadow: 0 1px 2px rgba(44, 36, 28, 0.08);
}

.home-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.home-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: var(--radius-md);
    font-size: var(--fs-aux);
    font-weight: 600;
    background: var(--color-surface);
    color: var(--home-ink);
    border: 1px solid var(--color-line);
    transition: background-color var(--duration) var(--ease), color var(--duration) var(--ease), border-color var(--duration) var(--ease);
}

.home-btn:hover {
    background: var(--color-primary-soft);
    color: var(--color-primary);
}

.home-btn-primary {
    background: var(--color-primary);
    color: #fff !important;
    border-color: var(--color-primary);
}

.home-btn-primary:hover {
    background: var(--color-primary-hover);
    color: #fff !important;
}

.home-hero-touch {
    display: none;
    margin-top: 14px;
    gap: 8px;
}

.home-hero-pad {
    width: 44px;
    height: 40px;
    border: 1px solid rgba(44, 36, 28, 0.12);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.78);
    color: var(--home-ink);
    font-size: 14px;
    font-weight: 700;
    touch-action: none;
    user-select: none;
}

.home-hero-pad:active {
    background: var(--color-primary-soft);
    color: var(--color-primary);
}

.home-hero-pad-jump {
    width: 52px;
    background: rgba(195, 122, 103, 0.16);
    color: var(--color-primary);
}

.home-hero-fallback {
    display: none;
    position: absolute;
    right: clamp(12px, 4vw, 40px);
    bottom: 12px;
    z-index: 2;
    justify-content: center;
    pointer-events: none;
}

.home-hero-stage.is-fallback .home-hero-canvas-wrap {
    display: none;
}

.home-hero-stage.is-fallback .home-hero-fallback {
    display: flex;
}

.home-hero-stage:not(.is-ready):not(.is-fallback) .home-hero-fallback {
    display: flex;
    opacity: 0.35;
}

/* 移动端 / 静态回退：还原原始左右布局，隐藏游戏 UI */
.home-hero-stage.is-mobile-static,
.home-hero-stage.is-fallback.is-mobile-static {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 24px;
    min-height: clamp(200px, 24vh, 280px);
    height: auto;
    padding: 32px clamp(24px, 4vw, 48px);
}

.home-hero-stage.is-mobile-static .home-hero-copy {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    max-width: 32em;
    pointer-events: auto;
    z-index: 1;
}

.home-hero-stage.is-mobile-static .home-hero-lead-game,
.home-hero-stage.is-mobile-static .home-hero-hint,
.home-hero-stage.is-mobile-static .home-hero-touch {
    display: none !important;
}

.home-hero-stage.is-mobile-static .home-hero-lead-static {
    display: block;
    margin: 0 0 20px;
    color: var(--home-muted);
}

.home-hero-stage.is-mobile-static .home-hero-fallback {
    position: relative;
    right: auto;
    bottom: auto;
    display: flex;
    justify-content: center;
    z-index: 1;
    pointer-events: none;
}

.home-hero-stage.is-mobile-static .home-hero-svg {
    width: min(100%, 400px);
}

.home-hero-svg {
    width: min(100%, 320px);
    height: auto;
}

@keyframes home-title-shine {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* 顶蘑菇跳转全页遮罩：阻断鼠标/键盘 */
body.home-hero-nav-locked {
    overflow: hidden !important;
}

.home-hero-nav-mask {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(44, 36, 28, 0.52);
    backdrop-filter: blur(2px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.18s ease, visibility 0.18s ease;
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
    cursor: wait;
}

.home-hero-nav-mask.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.home-hero-nav-mask-card {
    min-width: 220px;
    max-width: min(86vw, 360px);
    padding: 22px 26px 20px;
    border-radius: 14px;
    background: #fffaf5;
    border: 1px solid rgba(195, 122, 103, 0.28);
    box-shadow: 0 16px 40px rgba(44, 36, 28, 0.22);
    text-align: center;
}

.home-hero-nav-mask-text {
    margin: 0 0 14px;
    font-size: 15px;
    font-weight: 600;
    color: #2c241c;
    line-height: 1.5;
}

.home-hero-nav-mask-spinner {
    width: 28px;
    height: 28px;
    margin: 0 auto;
    border-radius: 50%;
    border: 3px solid rgba(195, 122, 103, 0.22);
    border-top-color: #c37a67;
    animation: home-hero-spin 0.7s linear infinite;
}

@keyframes home-hero-spin {
    to { transform: rotate(360deg); }
}

/* ---------- Grid ---------- */
.home-grid {
    display: grid;
    grid-template-columns: 220px minmax(0, 1.35fr) minmax(0, 1fr) 220px;
    gap: 18px;
    margin-top: 22px;
    align-items: start;
    flex: 1;
}

.home-col {
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-width: 0;
}

.home-col-left { animation: home-fade-up 0.7s ease 0.08s both; }
.home-col-center { animation: home-fade-up 0.7s ease 0.16s both; }
.home-col-mid { animation: home-fade-up 0.7s ease 0.24s both; }
.home-col-right { animation: home-fade-up 0.7s ease 0.32s both; }

/* ---------- Panels ---------- */
.home-panel {
    background: var(--home-surface);
    border-radius: var(--home-radius);
    padding: 16px;
    box-shadow: var(--home-shadow);
}

.home-panel-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.home-panel-head h2 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.home-panel-head > a {
    margin-left: auto;
    font-size: 12px;
    color: var(--home-muted);
    white-space: nowrap;
}

.home-panel-head > a:hover {
    color: var(--home-orange);
}

.home-panel-head > a span {
    font-size: 14px;
}

/* ---------- Quick links ---------- */
.home-quick {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.home-quick-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 12px;
    border-radius: var(--home-radius-sm);
    background: var(--home-surface);
    box-shadow: var(--home-shadow);
}

.home-quick-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--home-shadow-hover);
}

.home-quick-card.is-warm {
    background: var(--color-primary-soft);
}

.home-quick-card.is-cool {
    background: var(--color-primary-tint);
}

.home-quick-icon {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.8);
}

.home-quick-card.is-warm .home-quick-icon {
    color: var(--home-orange);
}

.home-quick-card.is-cool .home-quick-icon {
    color: var(--home-blue);
}

.home-quick-card strong {
    font-size: 13px;
    font-weight: 600;
}

/* ---------- Feature cards ---------- */
.home-feature-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.home-feature-card {
    display: block;
    border-radius: var(--home-radius-sm);
    overflow: hidden;
    background: var(--color-page);
}

.home-feature-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--home-shadow);
}

.home-feature-cover {
    aspect-ratio: 16 / 10;
    background: center / cover no-repeat #E8E4DE;
}

.home-feature-cover.is-empty {
    background: linear-gradient(135deg, #FFE4C2, #FFC878);
}

.home-feature-card.is-text {
    border: 1px solid var(--color-line, rgba(0,0,0,.06));
}

.home-feature-body {
    padding: 10px 12px 12px;
}

.home-feature-body h3 {
    margin: 0 0 6px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home-feature-meta {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    font-size: 11px;
    color: var(--home-muted);
}

/* ---------- Feed / media ---------- */
.home-checkin-banner {
    margin-bottom: 14px;
    padding: 12px 14px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(195, 122, 103, 0.12), rgba(160, 160, 136, 0.12));
    border: 1px solid rgba(195, 122, 103, 0.18);
}

.home-checkin-banner-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.home-checkin-banner-head strong {
    font-size: 14px;
}

.home-checkin-banner-head a {
    font-size: 12px;
    color: var(--home-orange-deep);
}

.home-checkin-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.home-checkin-list a {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px 10px;
    align-items: center;
    padding: 8px 10px;
    border-radius: var(--radius-md);
    background: var(--home-surface);
}

.home-checkin-list a:hover {
    background: var(--home-orange-soft);
}

.home-checkin-circle {
    display: block;
    font-size: 13px;
    font-weight: 600;
}

.home-checkin-task {
    display: block;
    grid-column: 1;
    font-size: 12px;
    color: var(--home-muted);
}

.home-checkin-list em {
    grid-row: 1 / span 2;
    grid-column: 2;
    font-style: normal;
    font-size: 12px;
    color: var(--home-orange-deep);
    font-weight: 600;
}

.home-tabs {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.home-tabs button,
.home-tabs .home-tab {
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    color: var(--home-muted);
    line-height: 1.4;
}

.home-tabs button.is-active,
.home-tabs .home-tab.is-active {
    background: var(--home-orange-soft);
    color: var(--home-orange-deep);
    font-weight: 600;
}

.home-feed-text {
    list-style: none;
    margin: 0 0 14px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.home-feed-text li a {
    display: grid;
    grid-template-columns: 28px auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: var(--radius-md);
    background: var(--color-page);
}

.home-feed-text li a:hover {
    background: var(--home-orange-soft);
}

.home-feed-text img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.home-feed-meta-tag {
    font-size: 11px;
    padding: 1px 6px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.06);
    color: var(--home-muted);
    white-space: nowrap;
}

.home-feed-meta-tag.is-blog {
    background: rgba(195, 122, 103, 0.15);
    color: var(--home-orange-deep);
}

.home-feed-meta-tag.is-weibo {
    background: rgba(54, 207, 201, 0.15);
    color: #1a8f8a;
}

.home-feed-content {
    font-size: 13px;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-feed-text time {
    font-size: 11px;
    color: var(--home-muted);
}

.home-feed-empty-actions {
    margin-top: 10px;
    display: flex;
    gap: 12px;
    justify-content: center;
}

.home-feed-empty-actions a {
    font-size: 13px;
    color: var(--home-orange-deep);
}

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

.home-media-card {
    display: block;
    min-width: 0;
}

.home-media-card:hover .home-media-cover {
    transform: scale(1.03);
}

.home-media-cover {
    position: relative;
    aspect-ratio: 1;
    border-radius: 12px;
    background: center / cover no-repeat #E8E4DE;
    overflow: hidden;
    transition: transform 0.35s ease;
}

.home-media-cover.is-empty {
    background: linear-gradient(145deg, #F0E7DC, #E2D4C4);
}

.home-media-cover.is-resource {
    background: linear-gradient(145deg, #E8F3FC, #D3E7F8);
}

.home-media-tag {
    position: absolute;
    left: 8px;
    bottom: 8px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 600;
    color: #fff;
    background: rgba(28, 28, 30, 0.55);
    backdrop-filter: blur(4px);
}

.home-media-tag.is-weibo {
    background: #C37A67;
}

.home-media-tag.is-album {
    background: #3A9B8F;
}

.home-media-tag.is-blog {
    background: #5B7C99;
}

.home-media-tag.is-resource {
    background: #D4A017;
}

.home-media-card h3 {
    margin: 8px 0 2px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home-media-card p {
    margin: 0;
    font-size: 11px;
    color: var(--home-muted);
}

/* ---------- Push / Journal ---------- */
.home-push-card {
    display: block;
}

.home-push-card:hover .home-push-cover {
    transform: translateY(-2px);
}

.home-push-cover {
    position: relative;
    aspect-ratio: 16 / 10;
    border-radius: 12px;
    background: center / cover no-repeat #E8E2D8;
    overflow: hidden;
    transition: transform 0.25s ease;
}

.home-push-cover.is-empty {
    background: linear-gradient(135deg, #E6E4D8, #C8C2B4);
}

.home-push-card.is-text h3 {
    margin-top: 0;
}

.home-push-card h3 {
    margin: 10px 0 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home-push-meta {
    margin: 4px 0 0;
    font-size: 11px;
    color: var(--home-muted);
}

.home-journal-more {
    margin-top: 12px;
}

/* ---------- Market / Shelf ---------- */
.home-mini-users {
    list-style: none;
    margin: 0 0 12px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.home-mini-users li > a {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    color: inherit;
    text-decoration: none;
}

.home-mini-users li > a:hover strong {
    color: var(--home-orange);
}

.home-mini-users img,
.home-mini-avatar-fallback {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.home-mini-avatar-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #EDE8E1;
    color: var(--home-muted);
    font-size: 12px;
    font-weight: 600;
}

.home-mini-users strong {
    display: block;
    font-size: 12px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-mini-users p {
    margin: 2px 0 0;
    font-size: 11px;
    color: var(--home-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-market-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.home-market-card {
    display: block;
    min-width: 0;
}

.home-market-card:hover {
    transform: translateY(-2px);
}

.home-market-cover {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-md);
    background: center / cover no-repeat #EDE8E1;
    overflow: hidden;
}

.home-market-cover.is-empty {
    background: linear-gradient(145deg, #FFE8C8, #FFD29A);
}

.home-market-tag-inline,
.home-media-tag-inline {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 999px;
    background: var(--home-orange-soft);
    color: var(--home-orange-deep);
    font-size: 10px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 6px;
}

.home-media-tag-inline.is-weibo {
    background: rgba(195, 122, 103, 0.16);
    color: #C37A67;
}

.home-media-tag-inline.is-album {
    background: rgba(58, 155, 143, 0.16);
    color: #3A9B8F;
}

.home-media-tag-inline.is-blog {
    background: rgba(91, 124, 153, 0.16);
    color: #5B7C99;
}

.home-media-tag-inline.is-resource {
    background: rgba(212, 160, 23, 0.16);
    color: #B8860B;
}

.home-market-tag {
    position: absolute;
    left: 6px;
    top: 6px;
    padding: 2px 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--home-muted);
    font-size: 10px;
    font-weight: 600;
    line-height: 1.4;
}

.home-market-card h3 {
    margin: 8px 0 0;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ---------- QA ---------- */
.home-qa-panel {
    background: linear-gradient(180deg, #FFFDFB 0%, #FFF7EF 100%);
}

.home-qa-list {
    list-style: none;
    margin: 0 0 14px;
    padding: 0;
}

.home-qa-list li + li {
    margin-top: 8px;
}

.home-qa-list a {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    line-height: 1.45;
}

.home-qa-list a:hover {
    color: var(--home-orange-deep);
}

.home-qa-dot {
    width: 6px;
    height: 6px;
    margin-top: 7px;
    border-radius: 50%;
    background: var(--home-orange);
    flex-shrink: 0;
}

.home-ask-btn {
    display: block;
    text-align: center;
    padding: 10px 16px;
    border-radius: 999px;
    background: var(--home-orange);
    color: #fff !important;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(255, 138, 26, 0.28);
}

.home-ask-btn:hover {
    background: var(--home-orange-deep);
    transform: translateY(-1px);
}

/* ---------- Events ---------- */
.home-event-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.home-event-list li + li {
    margin-top: 10px;
}

.home-event-list a {
    display: flex;
    gap: 10px;
    align-items: center;
}

.home-event-list a:hover h3 {
    color: var(--home-orange-deep);
}

.home-event-thumb {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    flex-shrink: 0;
    background: center / cover no-repeat #E8E4DE;
}

.home-event-thumb.is-empty {
    background: linear-gradient(145deg, #E4F0FC, #C5DDF5);
}

.home-event-body {
    min-width: 0;
}

.home-event-body h3 {
    margin: 0 0 4px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-event-body span {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    color: var(--home-orange-deep);
    background: var(--home-orange-soft);
}

.home-link-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.home-link-row a {
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    background: var(--color-page);
    color: var(--home-ink);
}

.home-link-row a:hover {
    background: var(--home-orange-soft);
    color: var(--home-orange-deep);
}

/* ---------- Empty / Footer ---------- */
.home-empty {
    padding: 18px 8px;
    text-align: center;
    font-size: 12px;
    color: var(--home-muted);
}

.home-empty-wide {
    grid-column: 1 / -1;
}

.home-footer {
    display: none;
}

@keyframes home-fade-up {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes home-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@media (prefers-reduced-motion: reduce) {
    .home-hero,
    .home-col-left,
    .home-col-center,
    .home-col-mid,
    .home-col-right,
    .home-hero-title-accent {
        animation: none;
    }
}

@media (max-width: 1180px) {
    .home-grid {
        grid-template-columns: 200px minmax(0, 1.2fr) minmax(0, 1fr);
    }

    .home-col-right {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 18px;
    }
}

@media (max-width: 960px) {
    /* 移动端默认走静态 Hero（JS 会加 is-mobile-static；此处兜底布局） */
    .home-hero.home-hero-stage {
        display: grid;
        grid-template-columns: 1fr;
        height: auto;
        min-height: 0;
        padding: 28px 24px 20px;
        text-align: center;
    }

    .home-hero-stage .home-hero-canvas-wrap {
        display: none;
    }

    .home-hero-stage .home-hero-copy {
        position: relative;
        left: auto;
        right: auto;
        top: auto;
        transform: none;
        max-width: none;
        text-align: center;
        pointer-events: auto;
    }

    .home-hero-stage .home-hero-lead-game,
    .home-hero-stage .home-hero-hint,
    .home-hero-stage .home-hero-touch {
        display: none !important;
    }

    .home-hero-stage .home-hero-lead-static {
        display: block;
        margin: 0 0 20px;
        color: var(--home-muted);
        max-width: none;
    }

    .home-hero-title {
        font-size: clamp(1.6rem, 6vw, 2.1rem);
    }

    .home-hero-actions {
        justify-content: center;
    }

    .home-hero-stage .home-hero-fallback {
        position: relative;
        right: auto;
        bottom: auto;
        order: -1;
        display: flex;
        justify-content: center;
        opacity: 1;
    }

    .home-hero-stage .home-hero-svg {
        width: min(100%, 280px);
    }

    .home-grid {
        grid-template-columns: 1fr 1fr;
    }

    .home-col-left,
    .home-col-center,
    .home-col-mid,
    .home-col-right {
        grid-column: auto;
    }

    .home-col-center {
        grid-column: 1 / -1;
    }

    .home-col-right {
        display: flex;
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    .home-screen {
        padding: 12px 12px 0;
    }

    .home-grid {
        grid-template-columns: 1fr;
    }

    .home-media-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-panel-head {
        flex-wrap: wrap;
    }

    .home-tabs {
        order: 3;
        width: 100%;
    }

    .home-feature-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
}
