:root {
    --page-bg: #eef4ff;
    --page-bg-2: #f8fbff;
    --text: #101828;
    --muted: #667085;
    --primary: #1677ff;
    --primary-2: #2f54eb;
    --primary-3: #69a7ff;
    --line: #dbe7f6;
    --card: #ffffff;
    --shadow: 0 18px 60px rgba(28, 76, 148, 0.10);
    --radius: 22px;
    --sidebar: 260px;
    --main: 920px;
    --layout-gap: 28px;
    --layout-width: calc(var(--sidebar) + var(--layout-gap) + var(--main));
    --layout-left: max(28px, calc((100vw - var(--layout-width)) / 2));
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(circle at 8% 12%, rgba(65, 135, 255, .12), transparent 28%),
        radial-gradient(circle at 90% 10%, rgba(255, 255, 255, .9), transparent 24%),
        linear-gradient(180deg, var(--page-bg) 0%, var(--page-bg-2) 44%, #f3f7ff 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    letter-spacing: 0;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

button,
input {
    font: inherit;
}

.menu-state {
    position: fixed;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.mobile-topbar,
.mobile-menu-backdrop,
.mobile-bottom-bar {
    display: none;
}

#preloader {
    display: none;
    pointer-events: none;
}

.site-sidebar {
    position: fixed;
    left: var(--layout-left);
    top: 24px;
    width: var(--sidebar);
    padding: 30px 28px;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    background: rgba(255, 255, 255, .88);
    border: 1px solid rgba(220, 231, 247, .9);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    z-index: 50;
    display: flex;
    flex-direction: column;
}

.sidebar-close {
    display: none;
}

.brand-block {
    display: grid;
    gap: 10px;
    justify-items: start;
    margin-bottom: 24px;
}

.brand-block img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(22, 119, 255, .25);
}

.brand-title {
    display: block;
    font-size: 24px;
    font-weight: 900;
    line-height: 1.1;
}

.brand-subtitle {
    display: block;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
}

.side-nav {
    display: grid;
    gap: 8px;
}

.nav-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 46px;
    padding: 0 14px;
    border-radius: 12px;
    color: #344054;
    font-weight: 700;
    transition: color .2s ease, background .2s ease, transform .2s ease;
}

.nav-link i {
    width: 18px;
    color: #9aa8bc;
    text-align: center;
}

.nav-link.active,
.nav-link:hover {
    color: #1263d8;
    background: linear-gradient(90deg, rgba(22, 119, 255, .12), rgba(22, 119, 255, .04));
}

.nav-link.active i,
.nav-link:hover i {
    color: var(--primary);
}

.nav-link.active::before {
    content: "";
    position: absolute;
    left: -28px;
    width: 4px;
    height: 24px;
    border-radius: 999px;
    background: var(--primary);
}

.sidebar-contact {
    margin-top: 22px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: linear-gradient(180deg, #fff, #f7fbff);
}

.sidebar-contact p,
.copyright {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}

.sidebar-contact .btn {
    width: 100%;
    margin-top: 12px;
}

.copyright {
    margin-top: 18px;
}

.site-main {
    width: min(var(--main), calc(100vw - var(--sidebar) - 96px));
    margin: 24px 28px 80px calc(var(--layout-left) + var(--sidebar) + var(--layout-gap));
}

.section-block {
    scroll-margin-top: 24px;
}

.hero {
    position: relative;
    min-height: 500px;
    border-radius: var(--radius);
    overflow: hidden;
    color: #fff;
    display: grid;
    place-items: center;
    box-shadow: var(--shadow);
    border: 1px solid rgba(73, 142, 255, .35);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 16% 10%, rgba(255, 255, 255, .18), transparent 30%),
        radial-gradient(circle at 90% 62%, rgba(255, 255, 255, .16), transparent 24%),
        linear-gradient(135deg, #2f6ff4 0%, #4da0ff 100%);
}

.hero-bg::before,
.hero-bg::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
}

.hero-bg::before {
    width: 360px;
    height: 360px;
    left: -80px;
    top: -70px;
}

.hero-bg::after {
    width: 260px;
    height: 260px;
    right: -30px;
    bottom: 60px;
}

.hero-content {
    position: relative;
    z-index: 1;
    width: min(760px, calc(100% - 52px));
    text-align: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 18px;
    border: 1px solid rgba(255, 255, 255, .38);
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    font-size: 14px;
    font-weight: 700;
}

.hero h1 {
    margin: 22px 0 16px;
    font-size: clamp(38px, 5vw, 58px);
    line-height: 1.1;
    font-weight: 950;
    text-wrap: balance;
    text-shadow: 0 8px 32px rgba(0, 35, 92, .22);
}

.hero p {
    margin: 0 auto;
    max-width: 660px;
    color: rgba(255, 255, 255, .90);
    font-size: 17px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

.hero-pills {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.hero-pills a,
.hero-pills span {
    padding: 7px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .14);
    color: rgba(255, 255, 255, .84);
    font-size: 13px;
    cursor: pointer;
    transition: transform .2s ease, background .2s ease, color .2s ease;
}

.hero-pills a:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, .24);
    color: #fff;
}

.btn {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-width: 156px;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(135deg, #2388ff 0%, #2f66f2 100%);
    color: #fff;
    box-shadow: 0 10px 22px rgba(35, 136, 255, .22);
}

.btn-ghost {
    min-width: 150px;
    color: #fff;
    border-color: rgba(255, 255, 255, .35);
    background: rgba(255, 255, 255, .12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18);
}

.panel {
    margin-top: 26px;
    padding: 46px 48px;
    background: rgba(255, 255, 255, .92);
    border: 1px solid rgba(220, 231, 247, .95);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.section-heading {
    margin-bottom: 28px;
}

.section-heading.with-search {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.entry-heading {
    align-items: center;
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(26px, 3vw, 34px);
    line-height: 1.2;
    font-weight: 950;
}

.section-heading h2::after {
    content: "";
    display: block;
    width: 36px;
    height: 4px;
    margin-top: 13px;
    border-radius: 999px;
    background: var(--primary);
}

.section-heading p {
    margin: 16px 0 0;
    max-width: 680px;
    color: var(--muted);
    line-height: 1.8;
}

.entry-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.entry-card,
.service-card,
.community-card {
    position: relative;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 18px;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.entry-card:hover,
.service-card:hover,
.community-card:hover {
    transform: translateY(-5px);
    border-color: rgba(22, 119, 255, .32);
    box-shadow: 0 18px 44px rgba(22, 80, 160, .12);
}

.entry-card {
    min-height: 230px;
    padding: 24px 22px;
    display: flex;
    flex-direction: column;
}

.icon-bubble {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: #f0f5ff;
    margin-bottom: 24px;
    overflow: hidden;
}

.icon-bubble img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.entry-card h3,
.service-card h3,
.community-card h3 {
    margin: 0;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 900;
}

.entry-card p,
.service-card p,
.community-card p {
    margin: 12px 0 0;
    color: var(--muted);
    line-height: 1.75;
    font-size: 14px;
}

.card-cta {
    margin-top: auto;
    padding-top: 20px;
    color: #1263d8;
    font-weight: 900;
    font-size: 14px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.service-card,
.community-card {
    display: grid;
    grid-template-columns: 58px 1fr;
    gap: 16px;
    align-items: center;
    min-height: 118px;
    padding: 20px;
}

.service-card .icon-bubble,
.community-card .icon-bubble {
    margin: 0;
}

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

.discount-broadcast {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 116, 51, .2);
    border-radius: 18px;
    background: linear-gradient(135deg, #fff8f3, #ffffff);
    min-height: 94px;
    padding: 22px 24px;
}

.discount-broadcast::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: #ff7a1a;
}

.discount-title {
    color: #e65f00;
    font-weight: 900;
    margin-bottom: 10px;
}

.discount-slider {
    height: 42px;
    overflow: hidden;
}

.discount-slides {
    transition: transform .45s ease;
}

.discount-slides.is-animated.count-2 {
    animation: broadcast-roll-2 7s infinite;
}

.discount-slides.is-animated.count-3 {
    animation: broadcast-roll-3 10s infinite;
}

.discount-slides.is-animated.count-4 {
    animation: broadcast-roll-4 13s infinite;
}

@keyframes broadcast-roll-2 {
    0%, 42% { transform: translateY(0); }
    50%, 92% { transform: translateY(-42px); }
    100% { transform: translateY(0); }
}

@keyframes broadcast-roll-3 {
    0%, 28% { transform: translateY(0); }
    34%, 62% { transform: translateY(-42px); }
    68%, 94% { transform: translateY(-84px); }
    100% { transform: translateY(0); }
}

@keyframes broadcast-roll-4 {
    0%, 20% { transform: translateY(0); }
    25%, 45% { transform: translateY(-42px); }
    50%, 70% { transform: translateY(-84px); }
    75%, 94% { transform: translateY(-126px); }
    100% { transform: translateY(0); }
}

.discount-slide {
    height: 42px;
    display: flex;
    align-items: center;
}

.discount-link {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
}

.discount-content {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 700;
}

.countdown {
    color: #f15a24;
    font-weight: 900;
    white-space: nowrap;
    font-size: 13px;
}

.search-panel {
    width: min(360px, 100%);
    min-height: 46px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
}

.search-panel input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    color: var(--text);
}

.search-panel button {
    width: 26px;
    height: 26px;
    border: 0;
    border-radius: 50%;
    background: #eef4ff;
    color: #667085;
    cursor: pointer;
}

.search-empty {
    margin-top: 18px;
    padding: 18px;
    border-radius: 16px;
    background: #f7fbff;
    color: var(--muted);
    text-align: center;
}

.is-hidden-by-search {
    display: none !important;
}

.update-history {
    display: grid;
    gap: 16px;
}

.update-item,
.timeline-item {
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
}

.update-date,
.timeline-date {
    color: #1263d8;
    font-weight: 900;
    margin-bottom: 8px;
}

.update-content p,
.timeline-content p {
    margin: 7px 0;
    color: var(--muted);
    line-height: 1.7;
}

.new-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 20px;
    padding: 0 8px;
    margin-left: 8px;
    border-radius: 999px;
    background: #ff4d4f;
    color: #fff;
    font-size: 12px;
}

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

.fact-card {
    min-height: 128px;
    padding: 24px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, #fff, #f8fbff);
    text-align: center;
}

.fact-card strong {
    display: block;
    color: var(--primary);
    font-size: 32px;
    line-height: 1.1;
}

.fact-card span {
    display: block;
    margin-top: 10px;
    color: var(--muted);
}

.floating-actions {
    position: fixed;
    right: 24px;
    bottom: 28px;
    display: grid;
    gap: 12px;
    z-index: 40;
}

.floating-actions a {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 12px 30px rgba(28, 76, 148, .12);
    color: var(--primary);
}

.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 120;
    padding: 64px 20px;
    background: rgba(5, 15, 30, .72);
    backdrop-filter: blur(8px);
}

.modal.is-open {
    display: grid;
    place-items: center;
    animation: modal-fade-in .24s ease both;
}

.modal-content {
    position: relative;
    width: min(320px, 92vw);
}

.modal.is-open .modal-content {
    animation: qr-pop-in .34s cubic-bezier(.2, .9, .2, 1.08) both;
}

.modal-content img {
    width: 100%;
    border-radius: 18px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .35);
}

@keyframes modal-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes qr-pop-in {
    from {
        opacity: 0;
        transform: translateY(22px) scale(.92);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.close {
    position: absolute;
    right: -10px;
    top: -48px;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: #ff4d4f;
    color: #fff;
    font-size: 26px;
    cursor: pointer;
}

@media (max-width: 1180px) {
    :root {
        --sidebar: 232px;
        --main: 900px;
        --layout-gap: 18px;
        --layout-left: 18px;
    }
    .site-sidebar {
        width: var(--sidebar);
        padding: 26px 22px;
    }
    .site-main {
        width: min(var(--main), calc(100vw - var(--sidebar) - 64px));
        margin-left: calc(var(--layout-left) + var(--sidebar) + var(--layout-gap));
    }
    .entry-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    body {
        padding-bottom: 84px;
    }

    .mobile-topbar {
        position: sticky;
        top: 12px;
        z-index: 70;
        width: calc(100vw - 28px);
        min-height: 58px;
        margin: 12px auto 10px;
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 8px 14px;
        border: 1px solid rgba(220, 231, 247, .95);
        border-radius: 18px;
        background: rgba(255, 255, 255, .92);
        box-shadow: 0 12px 34px rgba(28, 76, 148, .14);
        backdrop-filter: blur(16px);
        transition: opacity .2s ease, transform .2s ease;
    }

    .menu-toggle {
        width: 42px;
        height: 42px;
        display: grid;
        place-items: center;
        border: 0;
        border-radius: 12px;
        background: #f0f5ff;
        color: var(--text);
        font-size: 20px;
    }

    .mobile-brand {
        display: flex;
        align-items: center;
        gap: 10px;
        font-weight: 900;
    }

    .mobile-brand img {
        width: 36px;
        height: 36px;
        border-radius: 50%;
    }

    .site-sidebar {
        left: 10px;
        top: 12px;
        bottom: auto;
        width: 292px;
        max-height: min(82vh, 760px);
        border-radius: 22px;
        transform: translateX(-105%);
        transition: transform .24s ease;
        overflow-y: auto;
    }

    body.menu-open .site-sidebar,
    .menu-state:checked ~ .site-sidebar {
        transform: translateX(0);
    }

    body.menu-open .mobile-topbar,
    .menu-state:checked ~ .mobile-topbar,
    body.menu-open .mobile-bottom-bar,
    .menu-state:checked ~ .mobile-bottom-bar {
        opacity: 0;
        pointer-events: none;
        transform: translateY(-8px);
    }

    .sidebar-close {
        position: absolute;
        right: 18px;
        top: 16px;
        display: grid;
        place-items: center;
        width: 36px;
        height: 36px;
        border: 0;
        border-radius: 50%;
        background: #eef4ff;
        color: var(--text);
        font-size: 24px;
    }

    .mobile-menu-backdrop {
        position: fixed;
        inset: 0;
        z-index: 45;
        background: rgba(4, 12, 28, .48);
        opacity: 0;
        pointer-events: none;
        transition: opacity .24s ease;
        display: block;
    }

    body.menu-open .mobile-menu-backdrop,
    .menu-state:checked ~ .mobile-menu-backdrop {
        opacity: 1;
        pointer-events: auto;
    }

    .site-main {
        width: calc(100vw - 28px);
        margin: 10px auto 92px;
    }

    .hero {
        min-height: 390px;
        place-items: end start;
    }

    .hero-content {
        width: 100%;
        padding: 32px 20px;
        text-align: left;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero p {
        font-size: 15px;
    }

    .hero-actions {
        justify-content: flex-start;
        gap: 10px;
    }

    .hero-actions .btn {
        width: 100%;
        min-width: 0;
        min-height: 44px;
    }

    .hero-actions .btn-ghost {
        width: calc(50% - 6px);
        min-width: 0;
        padding: 0 10px;
        font-size: 14px;
    }

    .hero-pills {
        justify-content: flex-start;
    }

    .panel {
        margin-top: 16px;
        padding: 26px 16px;
        border-radius: 20px;
    }

    .section-heading.with-search {
        display: grid;
    }

    .entry-grid,
    .service-grid,
    .community-grid,
    .facts-grid {
        grid-template-columns: 1fr;
    }

    .entry-card {
        min-height: 190px;
    }

    .floating-actions {
        display: none;
    }

    .mobile-bottom-bar {
        position: fixed;
        left: 10px;
        right: 10px;
        bottom: 12px;
        z-index: 70;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        padding: 8px;
        border: 1px solid rgba(220, 231, 247, .95);
        border-radius: 18px;
        background: rgba(255, 255, 255, .94);
        box-shadow: 0 12px 34px rgba(28, 76, 148, .18);
        backdrop-filter: blur(16px);
        transition: opacity .2s ease, transform .2s ease;
    }

    .mobile-bottom-bar a {
        min-height: 46px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 7px;
        border-radius: 14px;
        color: #344054;
        font-weight: 900;
    }

    .mobile-bottom-bar a.active {
        color: #fff;
        background: linear-gradient(135deg, #1d7dff, #3654e8);
    }
}
