:root {
    --hkg-home-ink: #23233a;
    --hkg-home-muted: #84869a;
    --hkg-home-surface: #ffffff;
    --hkg-home-line: #ececf3;
    --hkg-home-accent: #ff6b5e;
    --hkg-home-accent-soft: #fff0ed;
    --hkg-home-shadow: 0 14px 40px rgba(35, 35, 58, 0.08);
}

body.home {
    background: #f6f7fb;
}

.banner-slider {
    padding: 24px 0 0;
}

.banner-slider .swiper-container,
.banner-slider .swiper-slide img,
.slider-right img,
.slider-right2 img {
    border-radius: 14px;
}

.hkg-home-main {
    padding-top: 0;
}

.hkg-home-features {
    margin: 24px 0;
}

.hkg-home-feature-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.hkg-home-feature-card {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    padding: 18px;
    color: var(--hkg-home-ink);
    background: var(--hkg-home-surface);
    border: 1px solid var(--hkg-home-line);
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(35, 35, 58, 0.045);
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.hkg-home-feature-card:hover,
.hkg-home-feature-card:focus-visible {
    color: var(--hkg-home-ink);
    border-color: rgba(255, 107, 94, 0.38);
    box-shadow: var(--hkg-home-shadow);
    transform: translateY(-3px);
}

.hkg-home-feature-card:focus-visible,
.hkg-home-section-heading nav a:focus-visible {
    outline: 3px solid rgba(255, 107, 94, 0.28);
    outline-offset: 3px;
}

.hkg-home-feature-card img {
    flex: 0 0 58px;
    width: 58px;
    height: 58px;
    object-fit: cover;
    border-radius: 50%;
}

.hkg-home-feature-card span {
    min-width: 0;
}

.hkg-home-feature-card strong,
.hkg-home-feature-card small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hkg-home-feature-card strong {
    margin-bottom: 5px;
    font-size: 17px;
    font-weight: 650;
}

.hkg-home-feature-card small {
    color: var(--hkg-home-muted);
    font-size: 12px;
}

.hkg-home-notices {
    margin: 0 0 24px;
    background: var(--hkg-home-surface);
    border-top: 1px solid var(--hkg-home-line);
    border-bottom: 1px solid var(--hkg-home-line);
}

.hkg-home-notices .container {
    display: flex;
    align-items: center;
    min-height: 54px;
}

.hkg-home-notice-label {
    flex: 0 0 auto;
    margin-right: 22px;
    padding-left: 24px;
    color: var(--hkg-home-ink);
    font-size: 14px;
    position: relative;
}

.hkg-home-notice-label::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 13px;
    height: 13px;
    background: var(--hkg-home-accent);
    border-radius: 50% 50% 50% 5px;
    transform: translateY(-55%) rotate(-18deg);
}

.hkg-home-notice-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    flex: 1;
    gap: 22px;
    min-width: 0;
}

.hkg-home-notice-list a {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
    color: #57586a;
    font-size: 13px;
}

.hkg-home-notice-list span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hkg-home-notice-list time {
    flex: 0 0 auto;
    color: #aaabb8;
    font-size: 11px;
}

.home-cathumbs {
    margin: 22px 0 34px;
}

.home-cathumbs .items .item {
    border-radius: 12px;
}

.home-cathumbs .items .item img {
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.hkg-home-latest {
    padding: 4px 0 24px;
}

.hkg-home-section-heading {
    margin-bottom: 26px;
    text-align: center;
}

.hkg-home-section-heading h1 {
    margin: 0 0 14px;
    color: var(--hkg-home-ink);
    font-size: 25px;
    font-weight: 650;
}

.hkg-home-section-heading h1 i {
    display: inline-block;
    margin-left: 5px;
    padding: 2px 5px;
    color: #fff;
    background: #4d8cff;
    border-radius: 8px 8px 8px 2px;
    font-size: 9px;
    font-style: normal;
    vertical-align: top;
}

.hkg-home-section-heading nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 7px 20px;
}

.hkg-home-section-heading nav a {
    padding: 3px 2px 7px;
    color: #666879;
    border-bottom: 2px solid transparent;
    font-size: 13px;
}

.hkg-home-section-heading nav a:hover,
.hkg-home-section-heading nav a.is-active {
    color: var(--hkg-home-accent);
    border-bottom-color: var(--hkg-home-accent);
}

.hkg-home-latest .grids .grid {
    overflow: hidden;
    border: 1px solid var(--hkg-home-line);
    box-shadow: 0 10px 28px rgba(35, 35, 58, 0.055);
}

@media (max-width: 1024px) {
    .hkg-home-feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hkg-home-notice-list {
        grid-template-columns: 1fr;
        gap: 5px;
        padding: 10px 0;
    }

    .hkg-home-notice-list a:nth-child(n + 2) {
        display: none;
    }
}

@media (max-width: 600px) {
    .banner-slider {
        padding-top: 12px;
    }

    .hkg-home-features {
        margin: 14px 0;
    }

    .hkg-home-feature-grid {
        gap: 10px;
    }

    .hkg-home-feature-card {
        display: block;
        padding: 13px;
        text-align: center;
    }

    .hkg-home-feature-card img {
        width: 48px;
        height: 48px;
        margin: 0 auto 8px;
    }

    .hkg-home-feature-card strong {
        font-size: 15px;
    }

    .hkg-home-feature-card small {
        display: none;
    }

    .hkg-home-notices .container {
        min-height: 48px;
    }

    .hkg-home-notice-label {
        margin-right: 14px;
    }

    .hkg-home-notice-list time {
        display: none;
    }

    .hkg-home-section-heading {
        margin-bottom: 18px;
    }

    .hkg-home-section-heading h1 {
        font-size: 22px;
    }

    .hkg-home-section-heading nav {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding: 0 2px 7px;
        scrollbar-width: none;
    }

    .hkg-home-section-heading nav a {
        flex: 0 0 auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hkg-home-feature-card {
        transition: none;
    }
}
