body.page-shell {
    color: #e4ebe7;
    background:
        linear-gradient(180deg, #1b221d 0%, #1b221d 76px, transparent 76px),
        radial-gradient(ellipse 100% 55% at 50% 12%, rgba(45, 95, 68, 0.18) 0%, transparent 52%),
        linear-gradient(180deg, #0a0d0b 0%, #070908 100%);
    background-attachment: fixed;
}

body.page-shell::before {
    opacity: 0;
}

.page-shell main.main {
    margin-top: 88px;
    padding-bottom: 64px;
}

.shell-hero {
    max-width: 960px;
    margin: 0 auto 48px;
    padding: 0 20px;
    text-align: center;
}

.shell-hero h1 {
    font-size: clamp(1.75rem, 4vw, 2.35rem);
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #f2f6f3;
    margin-bottom: 12px;
}

.shell-hero .shell-lead {
    font-size: 1.05rem;
    color: #9aa89f;
    line-height: 1.75;
    max-width: 640px;
    margin: 0 auto;
}

.shell-section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px 48px;
}

.shell-section h2 {
    font-size: 1.15rem;
    font-weight: 600;
    color: #b8c4bc;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.game-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.game-tile {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    padding: 24px 22px;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.game-tile:hover {
    border-color: rgba(61, 139, 92, 0.45);
    background: rgba(255, 255, 255, 0.05);
}

.game-tile h3 {
    font-size: 1.2rem;
    color: #eef3ef;
    margin-bottom: 10px;
    font-weight: 600;
}

.game-tile .platforms {
    margin-bottom: 12px;
}

.game-tile .platforms span {
    display: inline-block;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 4px 10px;
    margin-right: 8px;
    border-radius: 999px;
    background: rgba(61, 139, 92, 0.25);
    color: #c5e5d4;
}

.game-tile p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #9faaa4;
}

.shell-cta {
    text-align: center;
    margin-top: 36px;
}

.shell-cta a {
    display: inline-block;
    margin: 0 8px;
    padding: 12px 26px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
}

.shell-cta .btn-primary-outline {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9), rgba(118, 75, 162, 0.95));
    color: #fff;
}

.shell-cta .btn-ghost {
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #d5ddd8;
}

.shell-cta .btn-ghost:hover {
    border-color: rgba(61, 139, 92, 0.5);
    color: #fff;
}

.changelog-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 40px;
    align-items: start;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px 48px;
}

.changelog-sidebar {
    position: sticky;
    top: 100px;
    padding: 16px 0;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    padding-right: 20px;
}

.changelog-sidebar h3 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #6d7a72;
    margin-bottom: 14px;
}

.changelog-sidebar ul {
    list-style: none;
}

.changelog-sidebar a {
    display: block;
    padding: 8px 0;
    color: #a8b5ad;
    text-decoration: none;
    font-size: 0.95rem;
    border-left: 2px solid transparent;
    padding-left: 12px;
    margin-left: -12px;
}

.changelog-sidebar a:hover,
.changelog-sidebar a:focus {
    color: #e8f0eb;
    border-left-color: rgba(61, 139, 92, 0.8);
}

.changelog-list {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.log-entry {
    padding-bottom: 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.log-entry:last-child {
    border-bottom: none;
}

.log-entry time {
    display: block;
    font-size: 0.85rem;
    color: #6f7c74;
    margin-bottom: 8px;
}

.log-entry h2 {
    font-size: 1.35rem;
    font-weight: 600;
    color: #f0f5f2;
    margin-bottom: 12px;
    border: none;
    padding: 0;
}

.log-entry p {
    color: #a7b2aa;
    line-height: 1.75;
    font-size: 0.98rem;
}

.log-entry .tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.log-entry .tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: 28px;
    padding: 0 10px;
    font-size: 0.75rem;
    line-height: 1;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    color: #9aa89f;
}

.log-entry .read-more {
    display: inline-block;
    margin-top: 14px;
    font-size: 0.9rem;
    color: #7eb8ff;
    text-decoration: none;
}

.log-entry .read-more:hover {
    text-decoration: underline;
}

.changelog-main {
    min-width: 0;
}

.changelog-year-block {
    margin-bottom: 2.5rem;
}

.changelog-year-heading {
    font-size: 1.05rem;
    font-weight: 600;
    color: #8a9690;
    margin-bottom: 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.log-body {
    white-space: pre-wrap;
    color: #a7b2aa;
    line-height: 1.75;
    font-size: 0.98rem;
}

.log-body--rich {
    white-space: normal;
}

.log-entry-images img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
}

/* 正文内图：默认 inline-block，连续两个 ![](…) 无换行则同一行；中间有换行则 <br> 后另起一行 */
.log-body--rich img {
    display: inline-block;
    vertical-align: top;
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 0.35em 0.45em 0.35em 0;
    box-sizing: border-box;
}


.log-entry-images {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.log-img-wrap {
    margin: 0;
}

.log-meta {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    column-gap: 14px;
    row-gap: 8px;
    margin-top: 14px;
}

.log-meta .log-views {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: 28px;
    padding: 0 2px;
    font-size: 0.75rem;
    line-height: 1;
    color: #6d7a72;
}

.log-meta .tags {
    flex: 0 1 auto;
    margin-left: auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.log-views {
    font-size: 0.75rem;
    color: #6d7a72;
}

.changelog-load-err {
    color: #c98a7a;
    padding: 16px;
    border: 1px solid rgba(200, 100, 80, 0.35);
    border-radius: 8px;
    background: rgba(80, 30, 20, 0.2);
}

.page-shell code {
    font-size: 0.88em;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.06);
    color: #c5d4cc;
}

.community-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.comm-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    padding: 26px 22px;
}

.comm-card h3 {
    font-size: 1.1rem;
    color: #eef3ef;
    margin-bottom: 12px;
    font-weight: 600;
}

.comm-card p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #9aa89f;
    margin-bottom: 16px;
}

.comm-card a {
    color: #7eb8ff;
    text-decoration: none;
    font-size: 0.92rem;
}

.comm-card a:hover {
    text-decoration: underline;
}

.comm-note {
    max-width: 720px;
    margin: 32px auto 0;
    padding: 18px 20px;
    border-radius: 10px;
    background: rgba(61, 139, 92, 0.08);
    border: 1px solid rgba(61, 139, 92, 0.2);
    color: #b5c4bb;
    font-size: 0.92rem;
    line-height: 1.65;
}

@media (max-width: 900px) {
    .changelog-layout {
        grid-template-columns: 1fr;
    }

    .changelog-sidebar {
        position: static;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        padding-bottom: 20px;
    }

    .changelog-sidebar ul {
        display: flex;
        flex-wrap: wrap;
        gap: 12px 20px;
    }

    .changelog-sidebar a {
        padding-left: 0;
        margin-left: 0;
        border-left: none;
    }
}
