.home-shell {
    background: #f5f5f5;
    padding-bottom: 12px;
    color: #333;
}

.home-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.home-panel {
    padding: 0 12px 12px;
    margin: 8px 0 0;
    background: #fff;
}

.home-panel > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 43px;
    margin-bottom: 10px;
    border-bottom: 1px solid #ededed;
}

.home-panel h2 {
    padding-left: 7px;
    border-left: 3px solid var(--gamehome-red);
    color: #222;
    font-size: 17px;
    line-height: 19px;
}

.home-panel > header a { color: #676767; font-size: 13px; }
.home-icons, .home-topics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px 8px;
}
.home-icons li, .home-topics li { min-width: 0; }
.home-icons a, .home-topics a { display: grid; justify-items: center; gap: 5px; font-size: 13px; }
.home-icons img { max-width: 100%; border-radius: 13px; object-fit: cover; }
.home-icons span, .home-topics span {
    display: block;
    max-width: 100%;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}
.home-topics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.home-topics img { width: 100%; height: auto; aspect-ratio: 160 / 83; object-fit: cover; }
.home-news a {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 67px;
    padding: 7px 0;
    font-size: 14px;
}
.home-news img { object-fit: cover; flex: 0 0 auto; max-width: 35%; }
.home-news time { display: block; color: #777; font-size: 12px; margin-top: 4px; }
.home-news li + li { border-top: 1px solid #eee; }
.home-spotlight { display: grid; gap: 8px; margin-bottom: 12px; }
.home-spotlight img { display: block; width: 100%; height: auto; }
.home-ranking img { aspect-ratio: 160 / 78; }
.home-topics li a { padding-bottom: 4px; border: 1px solid #eee; }

.home-banner .carousel-track > div { flex: 0 0 100%; }
.home-banner img { display: block; width: 100%; height: auto; aspect-ratio: 390 / 164; object-fit: cover; }
.home-banner .carousel-track a::after { display: none; }
.home-banner .carousel-dots { bottom: 0; gap: 2px; }
.home-banner .carousel-dots button { width: 14px; }
.home-banner .carousel-dots button[aria-current="true"]::before { width: 7px; background: var(--gamehome-red); }
.home-quick-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); min-height: 87px; align-items: center; text-align: center; border-bottom: 2px solid #ddd; }
.home-quick-links a { display: grid; justify-items: center; gap: 2px; font-size: 12px; }
.home-quick-links span { display: block; width: 48px; height: 48px; border-radius: 50%; background: url(../images/home-shortcuts.png) 0 0 / 240px auto no-repeat; }
.home-quick-links .quick-legend { background-position: -58px -97px; }
.home-quick-links .quick-sanguo { background-position: -116px 0; }
.home-quick-links .quick-collections { background-position: -174px 0; }
.home-featured, .home-latest { background: #f7f7f7; }
.home-featured > header { min-height: 39px; }
.home-featured { padding-bottom: 14px; }
.home-featured .home-icons { gap: 18px 8px; }
.home-featured .home-icons img { background: #fff; box-shadow: 0 1px 0 #bbb; border-radius: 10px; }
.home-featured small { border: 1px solid var(--gamehome-red); border-radius: 2px; color: var(--gamehome-red); min-width: 58px; line-height: 26px; text-align: center; font-size: 12px; }
.home-latest { padding: 10px 8px 0; }
.home-tab-buttons { display: flex; }
.home-tab-buttons button { flex: 1; line-height: 34px; border: 1px solid #ddd; border-bottom-color: var(--gamehome-red); border-radius: 5px 5px 0 0; color: #444; background: linear-gradient(#fff, #eee); font-size: 14px; cursor: pointer; }
.home-tab-buttons button[aria-pressed="true"] { color: #fff; background: var(--gamehome-red); border-color: var(--gamehome-red); }
.home-latest-list li { display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; align-items: center; gap: 9px; min-height: 64px; border-bottom: 1px solid #e6e6e6; padding: 6px 5px; }
.home-latest-list img { border-radius: 9px; object-fit: cover; }
.home-latest-name { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 15px; }
.home-latest-name small { color: #777; display: block; margin-top: 3px; font-size: 12px; }
.home-latest-view { border: 1px solid #ccc; border-radius: 4px; padding: 4px 9px; color: #666; }
.home-latest-more { display: block; padding: 9px; text-align: center; color: #666; }
