.home-page {
    padding: 24px 0 4px;
    background:
        radial-gradient(circle at 10% 0, rgba(201, 0, 43, .055), transparent 29%),
        var(--site-background);
}

.site-navigation__desktop a[aria-current="page"] {
    background: var(--site-red-dark);
    box-shadow: inset 0 -4px 0 #ffffff;
}

.home-carousel {
    position: relative;
    height: auto;
    aspect-ratio: 1800 / 766;
    overflow: hidden;
    border-radius: 8px;
    color: #fff;
    background: #dadde2;
    box-shadow: var(--site-shadow);
    touch-action: pan-y;
}

.home-carousel__viewport,
.home-carousel__track,
.home-carousel__slide,
.home-carousel__slide > a {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
}

.home-carousel__slide {
    position: absolute;
    inset: 0;
    z-index: 0;
    visibility: hidden;
    transition: none;
    will-change: transform;
}

.home-carousel__slide:first-child,
.home-carousel__slide.is-active {
    z-index: 1;
    visibility: visible;
}

.home-carousel.is-enhanced .home-carousel__slide[hidden] {
    display: none;
}

.home-carousel.is-enhanced .home-carousel__slide.is-active,
.home-carousel.is-enhanced .home-carousel__slide.is-transitioning {
    display: block;
    visibility: visible;
}

.home-carousel.is-enhanced.is-animating .home-carousel__slide.is-transitioning {
    transition: transform .52s cubic-bezier(.22, .61, .36, 1);
}

.home-carousel__slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.home-carousel__overlay {
    position: absolute;
    z-index: 3;
    right: 0;
    bottom: 0;
    left: 0;
    height: 70px;
    background: rgba(0, 0, 0, .6);
    pointer-events: none;
}

.home-carousel__caption {
    display: block;
    height: 70px;
    overflow: hidden;
    padding: 23px 260px 23px 24px;
    color: #fff;
    font-size: 18px;
    line-height: 24px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-carousel__dots {
    position: absolute;
    z-index: 4;
    right: 18px;
    bottom: 0;
    display: flex;
    height: 70px;
    align-items: center;
    gap: 0;
    pointer-events: auto;
}

.home-carousel__dots button {
    position: relative;
    width: 24px;
    height: 70px;
    min-height: 0;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.home-carousel__dots button::before {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    border: 1px solid rgba(255, 255, 255, .92);
    border-radius: 50%;
    background: rgba(255, 255, 255, .38);
    content: "";
    transform: translate(-50%, -50%);
}

.home-carousel__dots button.is-active::before {
    background: #fff;
}

.home-carousel--empty {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    padding: 52px;
    background:
        linear-gradient(100deg, rgba(112, 0, 30, .88), rgba(201, 0, 43, .56)),
        linear-gradient(135deg, #df2f5c, #8d0026);
}

.home-carousel--empty::before {
    position: absolute;
    right: -70px;
    bottom: -160px;
    width: 480px;
    height: 330px;
    border: 44px solid rgba(255, 255, 255, .1);
    border-radius: 50%;
    content: "";
}

.home-carousel--empty > span {
    position: relative;
    z-index: 1;
    margin-bottom: 10px;
    padding: 4px 10px;
    border-radius: 3px;
    color: #fff;
    background: var(--site-red);
    font-size: 13px;
}

.home-carousel--empty strong {
    position: relative;
    z-index: 1;
    font-size: clamp(31px, 4vw, 48px);
    line-height: 1.25;
}

.home-carousel--empty p {
    position: relative;
    z-index: 1;
    margin: 12px 0 0;
    font-size: 18px;
}

.home-dashboard {
    --home-dashboard-height: 771px;
    display: grid;
    align-items: start;
    height: auto;
    min-height: 0;
    grid-template-columns: minmax(0, 3fr) minmax(360px, 2fr);
    gap: 16px;
    margin-top: 20px;
}

.home-card {
    min-width: 0;
    padding: 24px;
    border: 0;
    border-radius: 7px;
    background: var(--site-card);
    box-shadow: var(--site-shadow);
}

.home-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 2px solid #f2f2f3;
}

.home-section-heading h1,
.home-section-heading h2 {
    position: relative;
    margin: 0;
    font-size: 24px;
    line-height: 1.25;
}

.home-section-heading h1::after,
.home-section-heading h2::after {
    position: absolute;
    bottom: -16px;
    left: 0;
    width: 42px;
    height: 3px;
    content: "";
    background: var(--site-red);
}

.home-section-heading__eyebrow {
    display: block;
    margin-bottom: 2px;
    color: #a3a6ac;
    font-size: 10px;
    letter-spacing: 1.3px;
}

.home-section-heading > a {
    flex: 0 0 auto;
    color: var(--site-red);
    font-size: 13px;
}

.home-section-heading--compact {
    align-items: center;
    margin-bottom: 12px;
}

.home-section-heading--compact h2 { font-size: 21px; }

.home-card.home-lottery {
    display: flex;
    height: var(--home-dashboard-height);
    min-height: 0;
    flex-direction: column;
    padding: 18px;
}

.home-lottery-list {
    display: flex;
    flex: 0 0 auto;
    justify-content: flex-start;
    flex-direction: column;
}

/* 首页暂时隐藏东方6+1，保留模板及开奖数据，恢复时移除此规则。 */
.home-lottery-row[data-lottery-code="df6j1"] { display: none; }

.home-lottery-heading {
    display: flex;
    min-height: 40px;
    align-items: center;
    margin-bottom: 6px;
}

.home-lottery-heading h1 {
    display: flex;
    width: 100%;
    min-height: 40px;
    align-items: center;
    margin: 0;
    margin-bottom: -3px;
    margin-left: 8px;
    color: var(--site-text);
    font-size: 20px;
    line-height: 1.4;
}

.home-lottery-row {
    display: grid;
    min-height: 104px;
    align-items: center;
    grid-template-columns: 87px minmax(0, 1fr);
    gap: 0;
    padding: 19px 0;
    border-radius: 6px;
    transition: background-color .16s ease, box-shadow .16s ease;
}

.home-lottery-row:hover,
.home-lottery-row:focus-within {
    background: var(--site-red-soft);
    box-shadow: inset 3px 0 0 var(--site-red);
}

.home-lottery-row__logo {
    display: grid;
    align-self: stretch;
    place-items: center;
}

.home-lottery-row__logo img,
.home-lottery-row__fallback {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.home-lottery-row__main { min-width: 0; }

.home-lottery-row__top,
.home-lottery-row__bottom {
    display: grid;
    min-width: 0;
    align-items: center;
    grid-template-columns: minmax(0, 380px) minmax(150px, 1fr);
    gap: 18px;
}

.home-lottery-row__top { margin-bottom: 6px; }

.home-lottery-row__identity {
    display: grid;
    width: 100%;
    max-width: 380px;
    min-width: 0;
    flex: 0 1 380px;
    align-items: center;
    grid-template-columns: 87px minmax(0, 1fr);
    gap: 32px;
}

.home-lottery-row__fallback {
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, #ff7b5b, var(--site-red));
    font-size: 14px;
    font-weight: 700;
}

.home-lottery-row__identity h2 {
    margin: 0;
    color: var(--site-text);
    font-size: 17px;
    line-height: 1.3;
}

.home-lottery-row__identity span {
    color: var(--site-muted);
    font-size: 16px;
    white-space: nowrap;
}

.home-lottery-row__prize {
    display: flex;
    width: 100%;
    min-width: 0;
    margin-left: -9px;
    align-items: baseline;
    justify-content: flex-end;
    gap: 3px;
    color: var(--site-muted);
    font-size: 15px;
    text-align: right;
    white-space: nowrap;
}

.home-lottery-row__prize strong {
    color: var(--site-text);
    font-size: 15px;
}

.home-lottery-row__prize small { font-size: 15px; }

.home-lottery-balls {
    display: flex;
    width: 100%;
    max-width: 380px;
    min-width: 0;
    align-items: center;
    flex: 0 1 380px;
    flex-wrap: wrap;
    gap: 8px;
}

.home-lottery-ball {
    display: grid;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    font-size: 20px;
    line-height: 1;
}

.home-lottery-ball--red { background: #db1e2f; }
.home-lottery-ball--blue { background: #1e66db; }

.home-lottery-row[data-lottery-code="kl8"] .home-lottery-balls {
    display: grid;
    flex: 1 1 auto;
    grid-template-columns: repeat(10, 30px);
    justify-content: space-between;
    gap: 6px 0;
}

.home-lottery-row[data-lottery-code="kl8"] .home-lottery-ball {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
    font-size: 14px;
}

.home-lottery-row__actions {
    display: flex;
    width: 100%;
    min-height: 36px;
    min-width: 0;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
    color: var(--site-red);
    font-size: 16px;
    white-space: nowrap;
}

.home-lottery-row__actions a {
    display: grid;
    min-height: 36px;
    padding: 0 6px;
    place-items: center;
    border-radius: 4px;
    color: var(--site-red);
    transition: color .16s ease, background-color .16s ease;
}

.home-lottery-row__actions a:hover,
.home-lottery-row__actions a:focus-visible {
    color: var(--site-red-dark);
    background: #fff;
}

.home-lottery-row__result {
    min-width: 0;
    margin: 0;
    color: var(--site-muted);
    font-size: 14px;
}

.home-notices__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    height: 40px;
    margin-top: -8px;
    margin-bottom: 12px;
    padding-bottom: 0;
    border-bottom: 0;
}

.home-notices {
    display: flex;
    height: var(--home-dashboard-height);
    min-height: 0;
    overflow: hidden;
    flex-direction: column;
}

.home-notices__panel {
    width: calc(100% - 4px);
    min-height: 0;
    max-height: 462px;
    overflow: hidden;
    flex: 1 1 0;
}

.home-notices__tabs {
    display: flex;
    align-items: center;
    gap: 18px;
}

.home-notices__tab {
    min-height: 40px;
    padding: 0;
    border: 0;
    color: var(--site-text);
    background: transparent;
    font: inherit;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
}

.home-notices__tab.is-active { color: var(--site-red); }

.home-notices__more a {
    color: var(--site-red);
    font-size: 14px;
}

.home-notices__panel[hidden],
.home-notices__more a[hidden] { display: none; }

.home-notice-list,
.home-news-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.home-notice-list {
    width: calc(100% - 5px);
    height: auto;
    min-height: 0;
}

.home-notice-list li {
    position: relative;
    height: 50px;
    min-height: 50px;
    padding: 0 0 0 16px;
    line-height: 50px;
    border-bottom: 0;
}

.home-notice-list li[hidden] { display: none; }

.home-notice-list li::before {
    position: absolute;
    top: 50%;
    left: 1px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    content: "";
    background: var(--site-text);
    transform: translateY(-50%);
}

.home-notice-list a {
    display: block;
    min-width: 0;
    overflow: hidden;
    color: var(--site-text);
    font-size: 18px;
    line-height: 50px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-notice-list time {
    display: none;
    color: var(--site-muted);
    font-size: 14px;
    line-height: 50px;
    white-space: nowrap;
}

.home-notice-list a:hover,
.home-news-list a:hover { color: var(--site-red); }

.home-services {
    display: grid;
    height: 260px;
    flex-shrink: 0;
    align-content: space-between;
    grid-template-columns: repeat(2, 209px);
    justify-content: space-between;
    gap: 12px 8px;
    margin-top: auto;
    padding-top: 0;
    border-top: 0;
}

.home-service-item {
    display: flex;
    min-width: 0;
    height: 76px;
    min-height: 76px;
    align-items: center;
    gap: 12px;
    padding: 8px;
    border-radius: 6px;
}

.home-services > a.home-service-item:hover { background: var(--site-red-soft); }

.home-service-icon {
    display: block;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    object-fit: contain;
}

.home-service-item > span,
.home-service-item strong,
.home-service-item small { display: block; min-width: 0; }
.home-services strong { color: var(--site-text); font-size: 18px; }
.home-services small {
    overflow: hidden;
    color: var(--site-muted);
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-feature {
    position: relative;
    display: flex;
    min-height: 200px;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin-top: 20px;
    overflow: hidden;
    padding: 32px 40px;
    border-radius: 8px;
    color: #fff;
    background: linear-gradient(90deg, #fd9284, #fff1f0);
    box-shadow: var(--site-shadow);
}

.home-feature::after {
    position: absolute;
    right: 8%;
    bottom: -100px;
    width: 330px;
    height: 210px;
    border: 32px solid rgba(255, 255, 255, .5);
    border-radius: 50%;
    content: "";
}

.home-feature > div,
.home-feature > a { position: relative; z-index: 1; }
.home-feature span { font-size: 14px; }
.home-feature h2 { margin: 6px 0; font-size: 36px; line-height: 1.3; }
.home-feature p { margin: 0; color: rgba(255, 255, 255, .82); font-size: 16px; }

.home-feature > a {
    min-height: 46px;
    flex: 0 0 auto;
    padding: 10px 24px;
    border: 1px solid #837d7d;
    background: #837d7d;
    border-radius: 23px;
}

.home-news-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.home-news-list li {
    display: grid;
    min-height: 42px;
    align-items: center;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    border-bottom: 1px dashed var(--site-border);
}

.home-news-list li:last-child { border-bottom: 0; }

.home-news-list a {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-news-list time {
    color: var(--site-muted);
    font-size: 12px;
}

@media (max-width: 1199px) {
    .home-carousel { height: auto; }
    .home-dashboard { grid-template-columns: minmax(0, 1.45fr) minmax(290px, .85fr); }
    .home-card { padding: 20px; }
    .home-lottery-row__identity { gap: 10px; }
    .home-lottery-balls { gap: 4px; }
    .home-lottery-row__actions { gap: 8px; }
    .home-services { grid-template-columns: 1fr; }
}

/* 双栏窄屏仍保留两列便民服务，给八条公告留足高度。 */
@media (min-width: 992px) and (max-width: 1199px) {
    .home-services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .home-service-item { gap: 6px; padding: 6px; }
    .home-services strong { font-size: 16px; }
    .home-services small { white-space: normal; }
}

@media (max-width: 991px) {
    .home-page { padding-top: 18px; }
    .home-carousel { height: auto; }
    .home-dashboard { height: auto; min-height: 0; grid-template-columns: 1fr; }
    .home-card.home-lottery { height: auto; min-height: 0; }
    .home-notices { height: auto; overflow: visible; }
    .home-notices__panel { width: 100%; max-height: none; overflow: visible; flex: none; }
    .home-lottery-row__actions { justify-content: flex-end; padding-right: 8px; }
    .home-services { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .home-notice-list { width: 100%; height: auto; min-height: 0; }
    .home-notice-list li {
        display: grid;
        align-items: center;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 16px;
    }
    .home-notice-list time { display: block; }
    .home-feature { min-height: 140px; padding: 24px 28px; }
    .home-news-grid { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
    .home-page { padding-top: 12px; }
    .home-carousel { height: auto; border-radius: 6px; }
    .home-carousel__caption {
        height: 56px;
        padding: 16px 180px 16px 12px;
        font-size: 14px;
        line-height: 24px;
    }
    .home-carousel__overlay { height: 56px; }
    .home-carousel__dots { right: 10px; bottom: 0; height: 56px; gap: 0; }
    .home-carousel__dots button { width: 20px; height: 56px; }
    .home-carousel__dots button::before { width: 8px; height: 8px; }
    .home-carousel--empty { align-items: center; padding: 28px 20px; text-align: center; }
    .home-carousel--empty strong { font-size: 27px; }
    .home-carousel--empty p { font-size: 16px; }
    .home-dashboard { gap: 14px; margin-top: 14px; }
    .home-card { padding: 17px 15px; border-radius: 6px; }
    .home-card.home-lottery { padding: 10px; }
    .home-section-heading { margin-bottom: 10px; padding-bottom: 12px; }
    .home-section-heading h1,
    .home-section-heading h2 { font-size: 20px; }
    .home-section-heading h1::after,
    .home-section-heading h2::after { bottom: -14px; }
    .home-lottery-row {
        min-height: 0;
        grid-template-columns: 38px minmax(0, 1fr);
        gap: 10px;
        padding: 19px 0 19px 8px;
    }
    /* 手机端 Logo 跟随每行顶部的 19px 内边距，不随正文高度居中。 */
    .home-lottery-row__logo { align-self: start; }
    .home-lottery-row__logo img,
    .home-lottery-row__fallback { width: 38px; height: 38px; }
    .home-lottery-heading h1 { font-size: 17px; }
    .home-lottery-row__top,
    .home-lottery-row__bottom { display: flex; align-items: flex-start; flex-wrap: wrap; }
    .home-lottery-row__top { gap: 6px; }
    .home-lottery-row__bottom { gap: 8px; }
    .home-lottery-row__identity {
        display: flex;
        width: auto;
        max-width: none;
        flex: 1 1 100%;
    }
    .home-lottery-row__prize {
        min-height: 28px;
        flex: 1 1 100%;
        margin-left: 0;
        justify-content: flex-end;
    }
    .home-lottery-balls {
        max-width: 100%;
        flex: 1 1 100%;
        gap: 4px;
    }
    .home-lottery-ball {
        width: 30px;
        height: 30px;
        flex-basis: 30px;
        font-size: 16px;
    }
    .home-lottery-row[data-lottery-code="kl8"] .home-lottery-balls {
        width: 100%;
        flex: 1 1 100%;
        grid-template-columns: repeat(10, 24px);
        gap: 6px 0;
    }
    .home-lottery-row[data-lottery-code="kl8"] .home-lottery-ball {
        width: 24px;
        height: 24px;
        flex-basis: 24px;
        font-size: 12px;
    }
    .home-lottery-row__identity { gap: 9px; }
    .home-lottery-row__actions { flex-basis: 100%; justify-content: flex-end; }
    .home-lottery-row__result { flex-basis: 100%; }
    .home-notice-list li { display: block; }
    .home-notice-list time { display: none; }
    .home-services { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
    .home-service-item { min-height: 68px; padding: 6px; }
    .home-services small { white-space: normal; }
    .home-feature {
        min-height: 0;
        align-items: flex-start;
        flex-direction: column;
        gap: 18px;
        margin-top: 14px;
        padding: 24px 20px;
    }
    .home-feature h2 { font-size: 23px; }
    .home-news-grid { gap: 14px; margin-top: 14px; }
    .home-news-list li {
        align-items: start;
        grid-template-columns: 1fr;
        gap: 2px;
        padding: 9px 0;
    }
    .home-news-list a { white-space: normal; }
    .home-news-list time { font-size: 12px; }
}

@media (min-width: 430px) and (max-width: 767px) {
    .home-lottery-row__top {
        align-items: center;
        flex-wrap: nowrap;
    }
    .home-lottery-row__identity { flex: 1 1 auto; }
    .home-lottery-row__prize {
        width: auto;
        min-height: 0;
        flex: 0 0 auto;
    }
}

@media (max-width: 420px) {
    .home-lottery-row__result { padding-left: 0; }
}

/* 蓝湖首页红框内容区：规则全部使用独立前缀，避免影响上方已验收区域。 */
.home-info-layout {
    display: grid;
    align-items: stretch;
    grid-template-columns: minmax(0, 2.6fr) minmax(300px, 1fr);
    gap: 16px;
    margin-top: 20px;
}

.home-info-main,
.home-info-sidebar {
    min-height: 971px;
    overflow: hidden;
    border: 0;
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--site-shadow);
}

.home-info-card {
    padding: 24px;
    background: #fff;
}

.home-info-main > .home-info-card + .home-info-card,
.home-info-sidebar > .home-info-card + .home-info-card {
    border-top: 1px solid var(--site-border);
}

.home-info-sidebar > .home-info-card + .home-info-card {
    border-top: 0;
}

.home-info-news-pair {
    display: grid;
    min-height: 374px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
}

.home-info-news-column + .home-info-news-column {
    padding-left: 28px;
    border-left: 0;
}

.home-info-news-column {
    min-width: 0;
}

.home-info-heading {
    display: flex;
    min-height: 36px;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 12px;
}

.home-info-heading h2 {
    margin: 0;
    color: var(--site-text);
    font-size: 22px;
    line-height: 1.35;
}

.home-info-heading a {
    flex: 0 0 auto;
    color: var(--site-red);
    font-size: 14px;
}

.home-info-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.home-info-list li {
    position: relative;
    min-height: 44px;
    padding: 10px 0 9px 16px;
    line-height: 24px;
}

.home-info-news-pair .home-info-list li {
    min-height: 46px;
}

.home-info-list li::before {
    position: absolute;
    top: 20px;
    left: 2px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--site-red);
    content: "";
}

.home-info-list a {
    display: block;
    overflow: hidden;
    color: var(--site-text);
    font-size: 16px;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color .16s ease;
}

.home-info-list a:hover,
.home-info-list a:focus-visible {
    color: var(--site-red);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.home-info-welfare {
    display: grid;
    min-height: 330px;
    align-items: start;
    grid-template-columns: 420px minmax(0, 1fr);
    gap: 20px;
}

.home-info-welfare__visual {
    display: grid;
    width: 420px;
    height: 273px;
    min-height: 0;
    overflow: hidden;
    place-items: center;
    border-radius: 5px;
    color: #fff;
    background: linear-gradient(135deg, #31a9e9, #72d5d0 55%, #aad25f);
}

.home-info-welfare__visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-info-welfare__visual span {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: .08em;
}

.home-info-welfare-carousel {
    position: relative;
    display: block;
    touch-action: pan-y;
}

.home-info-welfare-carousel [data-carousel-slide] {
    position: absolute;
    inset: 0;
    visibility: hidden;
    transition: none;
    will-change: transform;
}

.home-info-welfare-carousel [data-carousel-slide]:first-child,
.home-info-welfare-carousel [data-carousel-slide].is-active {
    visibility: visible;
}

.home-info-welfare-carousel.is-enhanced [data-carousel-slide][hidden] {
    display: none;
}

.home-info-welfare-carousel.is-enhanced [data-carousel-slide].is-active,
.home-info-welfare-carousel.is-enhanced [data-carousel-slide].is-transitioning {
    display: block;
    visibility: visible;
}

.home-info-welfare-carousel.is-enhanced.is-animating [data-carousel-slide].is-transitioning {
    transition: transform .52s cubic-bezier(.22, .61, .36, 1);
}

.home-info-welfare-carousel__item {
    display: block;
    width: 100%;
    height: 100%;
}

.home-info-welfare-carousel__dots {
    position: absolute;
    right: 12px;
    bottom: 10px;
    z-index: 2;
    display: flex;
    gap: 7px;
}

.home-info-welfare-carousel__dots button {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .9);
    border-radius: 50%;
    background: rgba(0, 0, 0, .2);
    cursor: pointer;
}

.home-info-welfare-carousel__dots button.is-active {
    background: #fff;
}

.home-info-welfare__content { min-width: 0; }

.home-info-welfare__content h3 {
    min-width: 0;
    margin: 2px 0 10px;
    color: var(--site-text);
    font-size: 24px;
    line-height: 1.4;
}

.home-info-welfare__content h3 a {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-info-list--compact li { min-height: 46px; padding-top: 9px; padding-bottom: 8px; }
.home-info-list--compact li::before { top: 19px; }

.home-info-media {
    min-height: 265px;
    padding-bottom: 20px;
}

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

.home-info-media__item {
    display: block;
    min-width: 0;
}

.home-info-media__item img,
.home-info-media__placeholder {
    display: grid;
    width: 100%;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    place-items: center;
    border-radius: 4px;
    object-fit: cover;
    color: #fff;
    background: linear-gradient(135deg, #f18b4f, #e93f60 48%, #36a6d7);
}

.home-info-media__item strong {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    margin: -1px;
    padding: 0;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    border: 0;
    color: var(--site-text);
    white-space: nowrap;
}

.home-info-sidebar {
    display: flex;
    flex-direction: column;
}

.home-info-operations { min-height: 360px; }
.home-info-reports { min-height: 244px; padding-bottom: 12px; }
.home-info-materials { flex: 1; min-height: 366px; }

.home-operation-list { display: grid; gap: 12px; }

.home-operation-item {
    display: flex;
    min-height: 76px;
    align-items: center;
    gap: 14px;
    border-radius: 6px;
    color: var(--site-text);
    transition: background-color .16s ease, box-shadow .16s ease;
}

a.home-operation-item:hover,
a.home-operation-item:focus-visible {
    background: var(--site-red-soft);
    box-shadow: inset 3px 0 0 var(--site-red);
}

.home-operation-item b {
    display: grid;
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
    overflow: hidden;
    place-items: center;
    color: transparent;
    background-color: transparent;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    font-size: 0;
}

.home-operation-item:nth-child(1) b { background-image: url("/static/frontend/images/home-operation-guide.png"); }
.home-operation-item:nth-child(2) b { background-image: url("/static/frontend/images/home-operation-recruit.png"); }
.home-operation-item:nth-child(3) b { background-image: url("/static/frontend/images/home-operation-training.png"); }

.home-operation-item span,
.home-operation-item strong,
.home-operation-item small { display: block; min-width: 0; }
.home-operation-item strong { font-size: 18px; }
.home-operation-item small { margin-top: 4px; color: var(--site-muted); font-size: 14px; }

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

.home-report-grid a {
    min-width: 0;
}

.home-report-grid img {
    width: 100%;
    aspect-ratio: 3 / 4;
    border: 1px solid var(--site-border);
    object-fit: cover;
}

.home-report-grid strong {
    display: block;
    overflow: hidden;
    margin-top: 5px;
    color: var(--site-text);
    font-size: 14px;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-material-list { margin: 0; padding: 0; list-style: none; }
.home-material-list li {
    display: flex;
    min-height: 45px;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    border-top: 1px solid var(--site-border);
}
.home-material-list a { overflow: hidden; color: var(--site-text); font-size: 16px; text-overflow: ellipsis; white-space: nowrap; }
.home-material-list span { flex: 0 0 auto; color: var(--site-muted); font-size: 10px; }

.home-info-empty {
    min-height: 44px;
    margin: 0;
    padding: 12px 0;
    color: var(--site-muted);
    font-size: 14px;
}

@media (max-width: 991px) {
    .home-info-layout { grid-template-columns: 1fr; gap: 14px; margin-top: 14px; }
    .home-info-main,
    .home-info-sidebar,
    .home-info-news-pair,
    .home-info-welfare,
    .home-info-media,
    .home-info-operations,
    .home-info-reports,
    .home-info-materials { min-height: 0; }
    .home-info-materials { flex: none; }
    .home-operation-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
    .home-info-card { padding: 18px 16px; }
    .home-info-news-pair { grid-template-columns: 1fr; gap: 18px; }
    .home-info-news-column + .home-info-news-column { padding-top: 18px; padding-left: 0; border-top: 1px solid var(--site-border); border-left: 0; }
    .home-info-heading h2 { font-size: 19px; }
    .home-info-list a { font-size: 16px; white-space: normal; }
    .home-info-news-pair .home-info-list a {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .home-info-news-pair .home-info-list li {
        min-width: 0;
        overflow: hidden;
    }
    .home-info-welfare { grid-template-columns: 1fr; gap: 16px; }
    .home-info-welfare__visual {
        width: 100%;
        height: auto;
        min-height: 0;
        aspect-ratio: 420 / 273;
    }
    .home-info-welfare__content h3 { font-size: 19px; }
    .home-info-media__grid { grid-template-columns: 1fr; }
    .home-info-media__item strong { font-size: 14px; white-space: normal; }
    .home-operation-list { grid-template-columns: 1fr; }
    .home-operation-item { min-height: 62px; }
}
