.home-kefu {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #5c6b80;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
}
.home-kefu img {
    width: 28px;
    height: 28px;
    display: block;
    object-fit: contain;
}
.home-kefu:hover { color: #2f86f5; }
body.theme-app {
    background: #f6faff url("../images/bg.png") center bottom / cover no-repeat fixed;
    color: #3a4454;
}
.topbar--index {
    background: transparent;
    border-bottom-color: transparent;
    box-shadow: none;
    backdrop-filter: none;
}
.topbar--index::after { display: none; }
.topbar--index .brand__mark {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
    font-size: 19px;
}
.topbar--index .brand__name {
    font-size: 20px;
    font-weight: 600;
    color: var(--text);
}
.topbar--index .btn--primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: auto;
    padding: 10px 20px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.35);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    text-decoration: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.topbar--index .btn--primary::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -100%;
    width: 50%;
    height: 200%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.55s;
}
.topbar--index .btn--primary:hover::after { left: 250%; }
.topbar--index .btn--primary:hover {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(99, 102, 241, 0.45);
}
.home-go {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 22px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(180deg, #67b6ff, #3b93ff);
    box-shadow: 0 8px 20px rgba(59, 147, 255, 0.26);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    text-decoration: none;
    cursor: pointer;
}
.home-go:hover {
    background: linear-gradient(180deg, #4aa8ff, #2f86f5);
    color: #fff;
}
.topbar--index .wrap {
    max-width: none;
    padding-left: 28px;
    padding-right: 28px;
}
.topbar--index .topbar__actions { margin-left: 18px; }
.home-kefu-qr { display: flex; justify-content: center; }
.home-kefu-qr img {
    width: 220px;
    height: 220px;
    object-fit: contain;
}
.home-portal { position: relative; }
.home-stage { padding: 34px 0 96px; }
.home-stage h1 {
    margin: 8px 0 32px;
    text-align: center;
    font-size: clamp(36px, 4vw, 52px);
    line-height: 1.25;
    letter-spacing: 0.02em;
    font-weight: 700;
    color: #172033;
}
.home-stage .wrap { max-width: 1360px; }
.home-tabs-wrap { display: flex; justify-content: center; margin: 0 0 56px; }
.home-tabs {
    position: relative;
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    gap: 4px;
    padding: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.98);
    border-radius: 999px;
    box-shadow: 0 10px 36px rgba(90, 150, 210, 0.12);
}
.home-tab-jelly {
    position: absolute;
    top: 6px;
    left: 6px;
    z-index: 0;
    height: 40px;
    width: 40px;
    border-radius: 999px;
    pointer-events: none;
    visibility: hidden;
    background: #d0d8e4;
}
.home-tabs.is-jelly .home-tab-jelly { visibility: visible; }
.home-tab {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    height: 40px;
    padding: 0 16px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #66758a;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
}
a.home-tab { color: #66758a; }
.home-tab:hover { color: #2f86f5; }
.home-tab.is-active,
a.home-tab.is-active {
    background: linear-gradient(180deg, #67b6ff, #3b93ff);
    color: #fff;
    box-shadow: 0 8px 16px rgba(59, 147, 255, 0.28);
}
.home-tabs.is-jelly .home-tab.is-active,
.home-tabs.is-jelly a.home-tab.is-active {
    background: transparent;
    box-shadow: none;
}
.home-tab.is-active:hover,
a.home-tab.is-active:hover { color: #fff; }
.home-tabs::-webkit-scrollbar { display: none; }
.home-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.75fr);
    gap: 24px;
    align-items: center;
    max-width: 1080px;
    margin: 0 auto;
    padding: 24px 28px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.98);
    border-radius: 28px;
    box-shadow: 0 18px 50px rgba(90, 150, 210, 0.14);
}
.home-schools {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
    overflow: hidden;
    /* -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); */
}
.home-school-row { overflow: hidden; }
.home-school-track {
    display: flex;
    width: max-content;
    gap: 12px;
    animation: homeSchoolLeft 48s linear infinite;
    will-change: transform;
}
.home-school-row--2 .home-school-track { animation-duration: 58s; animation-delay: -18s; }
.home-school-row--3 .home-school-track { animation-duration: 42s; animation-delay: -8s; }
.home-school-row:hover .home-school-track { animation-play-state: paused; }
.home-school-card {
    flex: 0 0 auto;
    width: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #fff;
    border: 1px solid #eef3f8;
    border-radius: 16px;
}
.home-school-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
@keyframes homeSchoolLeft {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}
.home-offer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 12px 8px;
    text-align: center;
}
.home-offer__lead {
    max-width: 100%;
    font-size: 18px;
    line-height: 1.4;
    font-weight: 600;
    letter-spacing: 0;
    white-space: nowrap;
    color: #1c2430;
}
.home-offer__empty { color: #94a3b8; }
.home-choices {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    max-width: 100%;
}
.home-choice {
    height: 30px;
    padding: 0 12px;
    border: 1px solid #e6eaf0;
    border-radius: 999px;
    background: #fff;
    color: #a8b0ba;
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
}
.home-choice.is-active {
    border-color: #ff8a1e;
    color: #ff8a1e;
}
.home-price {
    margin: 8px 0 0;
    color: #ff8a1e;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.02em;
}
.home-flow { color: #8b98a8; font-size: 14px; }

.site-foot {
    margin-top: 28px;
    padding: 8px 32px 48px;
    background: transparent;
    color: #66758a;
    font-size: 14px;
}
.site-foot p { margin: 0; line-height: 1.7; }
.site-foot__bottom {
    max-width: 1120px;
    margin: 0 auto;
    text-align: center;
    font-size: 13px;
}
.site-foot__bottom > p + p { margin-top: 16px; }
.site-foot__beian {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.site-foot__beian img { width: 18px; height: 18px; display: block; }
.site-foot__beian a { color: #66758a; }
.site-foot__beian a:hover { color: #2f86f5; }

@media (prefers-reduced-motion: reduce) {
    .home-school-track { animation: none; }
}
@media (max-width: 860px) {
    .home-stage { padding-top: 36px; }
    .home-panel { grid-template-columns: 1fr; min-height: 0; padding: 22px; }
    .home-school-card { width: 120px; height: 60px; }
    .home-offer__lead { font-size: 16px; white-space: normal; }
    .site-foot__beian { flex-wrap: wrap; }
}
