.page-home {
    --home-ink: #0f1218;
    --home-soft-panel: rgba(255, 255, 255, 0.07);
    --home-line: rgba(255, 255, 255, 0.15);
    --home-magenta: #ff5d8f;
    --home-deep-purple: #24142f;
    --home-deep-red: #2d121d;
    --home-deep-green: #12241b;
    --home-normal-space: 16px;
}

.page-home .home-context {
    display: flex;
    justify-content: flex-end;
    padding-top: 14px;
    padding-bottom: 0;
}

.page-home .breadcrumb {
    font-size: 0.8rem;
    letter-spacing: 0.02em;
    color: var(--text-secondary);
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.page-home .breadcrumb a {
    color: var(--accent-cyan);
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 245, 212, 0.35);
}

.page-home .breadcrumb-sep {
    opacity: 0.6;
}

.page-home .home-hero-wrap {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 30px;
    align-items: start;
    padding-top: 18px;
    padding-bottom: 18px;
}

.page-home .home-command-col {
    padding-top: 20px;
    margin-bottom: 14px;
}

.page-home .home-command-title {
    font-size: 2rem;
    line-height: 1.15;
    color: var(--text-primary);
    text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.55), -2px -2px 0 var(--accent-cyan), 2px 2px 0 var(--accent-yellow);
    letter-spacing: -0.02em;
    font-weight: 900;
    margin: 0 0 12px;
}

.page-home .home-command-sub {
    display: block;
    font-size: 1.35rem;
    line-height: 1.35;
    color: var(--accent-yellow);
    -webkit-text-stroke: 1px rgba(0, 0, 0, 0.4);
    margin-top: 6px;
}

.page-home .home-command-summary {
    font-size: 0.9rem;
    line-height: 1.75;
    color: var(--text-secondary);
    margin-bottom: 18px;
}

.page-home .home-command-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.page-home .home-command-actions .btn {
    font-size: 0.85rem;
    padding: 8px 14px;
    border-radius: var(--radius);
}

.page-home .home-command-actions .btn-primary {
    background: var(--accent-yellow);
    color: var(--home-ink);
    border: none;
    box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.4);
}

.page-home .home-command-actions .btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    border: 1px solid var(--home-line);
    box-shadow: none;
}

.page-home .home-command-actions .btn:hover {
    transform: translateY(-2px);
}

.page-home .home-command-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0 0 16px;
}

.page-home .home-command-stat {
    background: var(--home-soft-panel);
    border: 1px solid var(--home-line);
    border-radius: var(--radius);
    padding: 10px 14px;
    min-width: 74px;
}

.page-home .home-command-stat dt {
    font-size: 0.7rem;
    color: var(--text-secondary);
    letter-spacing: 0.08em;
}

.page-home .home-command-stat dd {
    font-size: 1.35rem;
    font-weight: 900;
    margin: 2px 0 0;
    color: var(--accent-cyan);
}

.page-home .home-command-tip {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.page-home .home-command-tip-text {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.page-home .home-tiles-col {
    min-width: 0;
}

.page-home .home-tiles-col .section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.page-home .home-tiles-col .section-title {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--text-primary);
    text-shadow: 2px 2px 0 var(--card-amber);
    margin: 0;
}

.page-home .home-tiles-col .section-note {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.page-home .home-tile-matrix {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.page-home .home-tile {
    display: flex;
    flex-direction: column;
    gap: 6px;
    border-radius: 10px;
    padding: 18px 16px 20px;
    min-height: 142px;
    box-shadow: var(--shadow-pop);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    position: relative;
    text-decoration: none;
    color: var(--home-ink);
    overflow: hidden;
}

.page-home .home-tile::after {
    content: "";
    position: absolute;
    right: -18px;
    top: -18px;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    pointer-events: none;
}

.page-home .home-tile:hover {
    transform: translateY(-4px);
    box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.5);
}

.page-home .home-tile-amber {
    background: var(--card-amber);
}

.page-home .home-tile-blue {
    background: var(--card-blue);
}

.page-home .home-tile-rose {
    background: var(--card-rose);
}

.page-home .home-tile-index {
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    opacity: 0.7;
}

.page-home .home-tile-name {
    font-size: 1.55rem;
    font-weight: 900;
    line-height: 1.15;
}

.page-home .home-tile-count {
    font-size: 1.1rem;
    font-weight: 900;
    opacity: 0.85;
}

.page-home .home-tile-count::after {
    content: " 条";
    font-size: 0.8rem;
    font-weight: 500;
}

.page-home .home-tile-note {
    font-size: 0.75rem;
    opacity: 0.75;
    line-height: 1.4;
    max-width: 15em;
}

.page-home .home-tile-arrow {
    position: absolute;
    right: 14px;
    bottom: 12px;
    font-size: 1.4rem;
    font-weight: 900;
    opacity: 0.85;
    transition: transform 0.15s ease;
}

.page-home .home-tile:hover .home-tile-arrow {
    transform: translateX(4px);
}

.page-home .home-hero-art {
    margin-top: 18px;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--home-line);
}

.page-home .home-hero-art-img {
    display: block;
    width: 100%;
    max-height: 150px;
    object-fit: cover;
    opacity: 0.8;
}

.page-home .home-hero-art-label {
    position: absolute;
    left: 12px;
    bottom: 10px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-primary);
    background: rgba(0, 0, 0, 0.55);
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-home .home-new {
    padding-top: 34px;
    padding-bottom: 38px;
}

.page-home .home-new .section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.page-home .home-new .section-title {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--text-primary);
    text-shadow: 2px 2px 0 var(--card-rose);
    margin: 0;
}

.page-home .home-new .section-note {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.page-home .home-entry-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 14px;
    padding-top: 2px;
}

.page-home .home-entry-card {
    flex: 0 0 250px;
    scroll-snap-align: start;
    background: var(--home-soft-panel);
    border: 1px solid var(--home-line);
    border-radius: 10px;
    overflow: hidden;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: transform 0.15s ease, border-color 0.15s ease;
}

.page-home .home-entry-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-cyan);
}

.page-home .home-entry-card-featured {
    flex-basis: 300px;
}

.page-home .home-entry-cover {
    position: relative;
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(0, 0, 0, 0.2));
    overflow: hidden;
}

.page-home .home-entry-cover-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-home .home-entry-badge {
    position: absolute;
    right: 10px;
    top: 10px;
    font-size: 0.72rem;
    padding: 4px 8px;
    border-radius: 999px;
    background: var(--status-ok);
    color: #0f1218;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.page-home .home-entry-badge.badge-warn {
    background: var(--status-warn);
    color: #fff;
}

.page-home .home-entry-badge.badge-off {
    background: var(--status-off);
    color: #fff;
}

.page-home .home-cover-css {
    display: grid;
    place-items: center;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.1), transparent 60%), linear-gradient(135deg, rgba(0, 0, 0, 0.25), transparent);
}

.page-home .home-cover-shape {
    font-size: 2.2rem;
    color: rgba(255, 255, 255, 0.3);
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.4);
}

.page-home .home-entry-body {
    padding: 14px 14px 18px;
}

.page-home .home-entry-name {
    margin: 0 0 6px;
    font-size: 1rem;
    line-height: 1.35;
    font-weight: 900;
    color: var(--text-primary);
}

.page-home .home-entry-meta {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
    letter-spacing: 0.02em;
}

.page-home .home-entry-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.page-home .home-entry-tags .tag {
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 999px;
}

.page-home .home-hot {
    padding-top: 34px;
    padding-bottom: 38px;
}

.page-home .home-hot .section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.page-home .home-hot .section-title {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--text-primary);
    text-shadow: 2px 2px 0 var(--card-blue);
    margin: 0;
}

.page-home .home-hot .section-note {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.page-home .home-hot-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 24px;
    align-items: start;
}

.page-home .home-rank-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.page-home .home-rank-item {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--home-line);
    border-radius: 8px;
    transition: background 0.15s ease, transform 0.15s ease;
}

.page-home .home-rank-item:hover {
    background: rgba(255, 255, 255, 0.09);
    transform: translateX(3px);
}

.page-home .home-rank-index {
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--accent-yellow);
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.4);
}

.page-home .home-rank-main {
    min-width: 0;
}

.page-home .home-rank-head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: baseline;
}

.page-home .home-rank-name {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.page-home .home-rank-count {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent-cyan);
    white-space: nowrap;
}

.page-home .home-rank-metric {
    height: 6px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    overflow: hidden;
    margin-top: 7px;
}

.page-home .home-rank-fill {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--accent-yellow), var(--accent-cyan));
    border-radius: 999px;
}

.page-home .home-hot-side {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
}

.page-home .home-hot-side-img {
    display: block;
    width: 100%;
    max-height: 380px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--home-line);
}

.page-home .home-hot-side-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-align: center;
    letter-spacing: 0.1em;
}

.page-home .home-tags {
    padding-top: 34px;
    padding-bottom: 38px;
}

.page-home .home-tags .section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.page-home .home-tags .section-title {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--text-primary);
    text-shadow: 2px 2px 0 var(--card-amber);
    margin: 0;
}

.page-home .home-tags .section-note {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.page-home .home-tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    padding-bottom: 8px;
}

.page-home .home-tag {
    text-decoration: none;
    border-radius: 999px;
    padding: 6px 14px;
    font-weight: 700;
    line-height: 1.4;
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.page-home .home-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-home .home-tag-2 {
    font-size: 0.95rem;
    padding: 8px 16px;
}

.page-home .home-tag-3 {
    font-size: 0.85rem;
    padding: 7px 13px;
}

.page-home .home-tag-4 {
    font-size: 0.76rem;
    padding: 5px 11px;
    background: rgba(255, 255, 255, 0.12);
    color: var(--text-primary);
    border: 1px solid var(--home-line);
}

.page-home .home-tag-texture {
    margin-top: 22px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--home-line);
}

.page-home .home-tag-texture-img {
    display: block;
    width: 100%;
    max-height: 160px;
    object-fit: cover;
    opacity: 0.75;
}

.page-home .home-log {
    padding-top: 34px;
    padding-bottom: 40px;
}

.page-home .home-log .section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
}

.page-home .home-log .section-title {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--text-primary);
    text-shadow: 2px 2px 0 var(--card-rose);
    margin: 0;
}

.page-home .home-log .section-note {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.page-home .home-log-timeline {
    position: relative;
    padding-left: 28px;
    display: flex;
    flex-direction: column;
    gap: 22px;
    margin-bottom: 26px;
}

.page-home .home-log-timeline::before {
    content: "";
    position: absolute;
    left: 6px;
    top: 6px;
    bottom: 6px;
    width: 2px;
    background: rgba(255, 255, 255, 0.18);
}

.page-home .home-log-item {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--home-line);
    border-radius: 10px;
    padding: 18px 18px 18px 22px;
}

.page-home .home-log-node {
    position: absolute;
    left: -25px;
    top: 22px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: var(--accent-yellow);
    border: 3px solid var(--home-deep-red);
    box-shadow: 0 0 8px var(--accent-yellow);
}

.page-home .home-log-node::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 2px;
    right: 2px;
    bottom: 2px;
    border-radius: 50%;
    background: var(--accent-cyan);
}

.page-home .home-log-batch {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 900;
    color: #0f1218;
    background: var(--accent-cyan);
    border-radius: 999px;
    padding: 4px 10px;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
}

.page-home .home-log-item:nth-child(2) .home-log-batch {
    background: var(--card-amber);
}

.page-home .home-log-item:nth-child(3) .home-log-batch {
    background: var(--card-rose);
    color: #0f1218;
}

.page-home .home-log-title {
    font-size: 1.05rem;
    font-weight: 900;
    color: var(--text-primary);
    margin: 0 0 8px;
    line-height: 1.45;
}

.page-home .home-log-desc {
    font-size: 0.85rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin: 0;
}

.page-home .home-log-more {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.page-home .home-log-more .btn {
    font-size: 0.85rem;
    padding: 9px 16px;
    border-radius: var(--radius);
}

.page-home .home-log-more .btn-primary {
    background: var(--accent-yellow);
    color: var(--home-ink);
    border: none;
    box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.4);
}

.page-home .home-log-more .btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    border: 1px solid var(--home-line);
}

@media (min-width: 1200px) {
    .page-home .container {
        max-width: 1200px;
        margin-inline: auto;
        padding-inline: 24px;
    }
}

@media (max-width: 960px) {
    .page-home .home-hero-wrap {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .page-home .home-command-col {
        padding-top: 0;
    }

    .page-home .home-tile-matrix {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

    .page-home .home-hot-side {
        display: none;
    }
}

@media (max-width: 600px) {
    .page-home .home-command-title {
        font-size: 1.7rem;
    }

    .page-home .home-command-sub {
        font-size: 1.1rem;
    }

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

    .page-home .home-tile {
        min-height: 128px;
        padding: 14px 14px 18px;
    }

    .page-home .home-tile-name {
        font-size: 1.25rem;
    }

    .page-home .home-tile-count {
        font-size: 0.95rem;
    }

    .page-home .home-hero-art-img {
        max-height: 110px;
    }

    .page-home .home-rank-item {
        grid-template-columns: 34px minmax(0, 1fr);
        padding: 10px 12px;
    }

    .page-home .home-rank-item .badge {
        display: none;
    }

    .page-home .home-rank-index {
        font-size: 1.1rem;
    }

    .page-home .home-entry-card {
        flex-basis: 230px;
    }

    .page-home .home-entry-card-featured {
        flex-basis: 260px;
    }

    .page-home .home-log-item {
        padding: 14px 14px 16px;
    }

    .page-home .home-log-timeline {
        padding-left: 24px;
    }

    .page-home .home-log-node {
        left: -22px;
    }
}

@media (max-width: 380px) {
    .page-home .home-tile-matrix {
        grid-template-columns: 1fr;
    }

    .page-home .home-tile {
        min-height: 110px;
    }

    .page-home .home-command-stats {
        gap: 8px;
    }

    .page-home .home-command-stat {
        min-width: 66px;
        padding: 8px 10px;
    }
}
