* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, "Microsoft YaHei", sans-serif;
    color: #26262b;
    background: #fff;
    line-height: 1.8;
    overflow-x: hidden;
}

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

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

.wrap {
    width: min(1200px, calc(100% - 36px));
    margin: 0 auto;
}

.topbar {
    background: #172657;
    color: #fff;
    font-size: 14px;
}

.topbar-inner {
    min-height: 48px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
}

.top-left,
.top-right {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 28px rgba(25,28,45,.06);
}

.nav-wrap {
    height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 25px;
    font-weight: 900;
    color: #22242a;
    white-space: nowrap;
}

.brand img {
    width: 46px;
    height: 46px;
    object-fit: contain;
}

.brand span {
    color: #7049f4;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 26px;
    font-weight: 700;
}

.nav-menu a:hover {
    color: #7049f4;
}

.enroll {
    display: inline-flex;
    height: 48px;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
    color: #fff;
    background: linear-gradient(135deg, #7049f4, #8b5cf6);
    border-radius: 999px;
    font-weight: 800;
    box-shadow: 0 16px 35px rgba(112,73,244,.24);
}

.menu-btn {
    display: none;
    border: 0;
    background: #f2edff;
    color: #7049f4;
    padding: 10px 14px;
    border-radius: 12px;
    font-weight: 800;
}

.hero {
    position: relative;
    overflow: hidden;
    padding: 90px 0 80px;
    background: radial-gradient(circle at 10% 20%, rgba(236, 43, 122, .12), transparent 28%), linear-gradient(110deg, #fff2f2 0%, #f7faff 58%, #e9fff7 100%);
}

.hero::before {
    content: "";
    position: absolute;
    width: 360px;
    height: 360px;
    border-radius: 80px;
    background: rgba(255,255,255,.38);
    left: -120px;
    top: -80px;
    transform: rotate(16deg);
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 70px;
    align-items: center;
}

.pill,
.section-title span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 22px;
    border-radius: 999px;
    background: #f12674;
    color: #fff;
    font-weight: 800;
    letter-spacing: .02em;
}

.hero h1 {
    font-size: clamp(38px, 5vw, 68px);
    line-height: 1.15;
    margin: 24px 0 22px;
    letter-spacing: -1px;
}

.hero p {
    font-size: 19px;
    color: #5b5e6b;
    max-width: 640px;
}

.search-box {
    margin-top: 34px;
    max-width: 560px;
    padding: 10px;
    background: #fff;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 18px 45px rgba(55,63,90,.1);
}

.search-box span {
    color: #656877;
    padding-left: 20px;
}

.search-box a {
    min-width: 150px;
    text-align: center;
    background: #7049f4;
    color: #fff;
    padding: 12px 18px;
    border-radius: 999px;
    font-weight: 800;
}

.hot-search {
    margin-top: 20px;
    color: #555866;
}

.hot-search a {
    text-decoration: underline;
    margin-right: 8px;
}

.hero-art {
    position: relative;
    min-height: 420px;
}

.main-card {
    position: relative;
    width: min(390px, 100%);
    margin: 40px auto 0;
    min-height: 360px;
    border-radius: 42px;
    padding: 42px;
    background: linear-gradient(145deg, #ffffff, #f2ecff);
    box-shadow: 0 28px 70px rgba(112,73,244,.2);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
}

.main-card::before {
    content: "";
    position: absolute;
    inset: 34px 34px 135px;
    border-radius: 32px;
    background: radial-gradient(circle at 30% 25%, #ffb32b, transparent 18%), linear-gradient(135deg, #172657, #7049f4 58%, #f12674);
}

.game-screen {
    position: relative;
    z-index: 1;
    width: 120px;
    height: 120px;
    margin-bottom: 24px;
    border-radius: 34px;
    background: #fff;
    color: #7049f4;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    box-shadow: 0 14px 30px rgba(0,0,0,.08);
}

.main-card strong {
    position: relative;
    z-index: 1;
    font-size: 28px;
}

.main-card span {
    position: relative;
    z-index: 1;
    color: #646777;
}

.bubble {
    position: absolute;
    z-index: 2;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 900;
    box-shadow: 0 20px 35px rgba(0,0,0,.12);
}

.b1 {
    left: 6%;
    top: 28px;
    background: #ffa51f;
}

.b2 {
    right: 4%;
    top: 118px;
    background: #f12674;
}

.section-title {
    text-align: center;
    margin-bottom: 48px;
}

.section-title h2 {
    margin: 16px 0 0;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.25;
}

.category {
    padding: 78px 0;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.category-card {
    min-height: 205px;
    border: 1px solid #e6e6f3;
    border-radius: 12px;
    padding: 34px 24px;
    text-align: center;
    background: #fbfaff;
    transition: transform .2s ease, box-shadow .2s ease;
}

.category-card:nth-child(2n) {
    background: #fff8fb;
}

.category-card:nth-child(3n) {
    background: #fbfff8;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 45px rgba(55,63,90,.12);
}

.category-card i {
    display: inline-flex;
    width: 74px;
    height: 74px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    background: #7049f4;
    color: #fff;
    font-size: 30px;
    font-style: normal;
    font-weight: 900;
    outline: 1px dashed #7049f4;
    outline-offset: 8px;
}

.category-card h3 {
    margin: 30px 0 12px;
    font-size: 22px;
}

.category-card em {
    font-style: normal;
    color: #7049f4;
    font-weight: 800;
}

.about {
    padding: 85px 0;
    display: grid;
    grid-template-columns: .95fr 1.05fr;
    gap: 70px;
    align-items: center;
}

.about-media {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    position: relative;
}

.about-media figure {
    margin: 0;
    height: 460px;
    border-radius: 42px;
    overflow: hidden;
    background: #eef0fb;
}

.about-media figure:nth-child(2) {
    margin-top: 42px;
}

.about-media figure:nth-child(3) {
    margin-top: 8px;
}

.about-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.award {
    position: absolute;
    left: 35%;
    bottom: 90px;
    padding: 18px 28px;
    border-radius: 16px;
    background: #7049f4;
    color: #fff;
    font-size: 32px;
    font-weight: 900;
    box-shadow: 0 18px 35px rgba(112,73,244,.28);
}

.award small {
    display: block;
    font-size: 14px;
}

.about-text h2 {
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.25;
    margin: 26px 0 18px;
}

.about-html {
    color: #5d606c;
    font-size: 17px;
}

.about-feature {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-top: 30px;
}

.about-feature div {
    border: 1px solid #e5e6f4;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    color: #7049f4;
    font-size: 24px;
}

.about-feature b {
    color: #22242a;
    font-size: 18px;
}

.intro {
    padding: 70px 0;
}

.intro-body,
.category-main,
.article-body {
    background: #fff;
    border: 1px solid #ededf7;
    border-radius: 22px;
    padding: 34px;
    box-shadow: 0 16px 40px rgba(55,63,90,.06);
}

.intro-body p,
.category-main p,
.article-body p {
    margin: 0 0 18px;
    color: #555866;
    font-size: 17px;
}

.testimonial {
    padding: 90px 0;
    background: radial-gradient(circle at right center, rgba(241,38,116,.12), transparent 20%), #fff;
}

.review-grid {
    display: grid;
    grid-template-columns: .9fr 1fr 1fr;
    gap: 30px;
    align-items: center;
}

.review-copy h2 {
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.25;
}

.review-copy p,
.review-card p {
    color: #5e6270;
}

.arrows {
    display: flex;
    gap: 18px;
    margin-top: 26px;
}

.arrows b {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #7049f4;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.review-card {
    min-height: 250px;
    border: 1px solid #e5e6f4;
    border-radius: 28px;
    padding: 34px;
    background: #fff;
    box-shadow: 0 18px 55px rgba(55,63,90,.08);
}

.review-card h3 {
    font-size: 24px;
    margin: 0 0 12px;
}

.stars {
    color: #ffa51f;
    font-size: 22px;
    letter-spacing: 3px;
}

.blog {
    padding: 76px 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.blog-card {
    background: #fff;
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 18px 45px rgba(55,63,90,.08);
    transition: transform .2s ease;
}

.blog-card:hover {
    transform: translateY(-4px);
}

.blog-card img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    border-radius: 14px;
    background: #f0f2fa;
}

.blog-meta {
    margin-top: 18px;
    color: #7049f4;
    font-weight: 800;
}

.blog-card h3 {
    font-size: 22px;
    line-height: 1.45;
    margin: 12px 0 20px;
}

.blog-card span {
    color: #5f6370;
    font-weight: 800;
}

.blog-card.mini {
    min-height: 160px;
}

.links {
    padding: 40px 0 86px;
}

.link-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

.link-grid a {
    padding: 13px 14px;
    border: 1px solid #e7e7f4;
    border-radius: 12px;
    background: #fbfbff;
    color: #4d5060;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.page-hero {
    padding: 74px 0;
    background: linear-gradient(110deg, #fff2f2, #f2efff 55%, #eafff7);
    text-align: center;
}

.page-hero h1 {
    font-size: clamp(34px, 5vw, 56px);
    margin: 20px auto 14px;
    max-width: 980px;
}

.page-hero p {
    max-width: 760px;
    margin: 0 auto;
    color: #5e6270;
}

.category-layout,
.article-layout {
    padding: 76px 0;
    display: grid;
    grid-template-columns: 1fr 330px;
    gap: 30px;
    align-items: start;
}

.category-side,
.article-side {
    display: grid;
    gap: 18px;
}

.category-side img {
    height: 210px;
    width: 100%;
    object-fit: cover;
    border-radius: 18px;
}

.article-side {
    border: 1px solid #ededf7;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 16px 40px rgba(55,63,90,.06);
}

.article-side h3 {
    margin: 0;
    font-size: 22px;
}

.article-side a {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid #ededf7;
    color: #505463;
}

.article-body h2,
.article-body h3 {
    color: #22242a;
}

.footer {
    background: #03051b;
    color: #fff;
    padding-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
    gap: 42px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 900;
}

.footer-logo img {
    width: 46px;
    height: 46px;
    object-fit: contain;
}

.footer p,
.footer a {
    color: rgba(255,255,255,.78);
}

.footer a {
    display: block;
    margin-bottom: 10px;
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.footer-social span {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #7049f4;
    font-weight: 900;
}

.copyright {
    margin-top: 58px;
    padding: 22px;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,.08);
    color: rgba(255,255,255,.72);
}

.notfound {
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.notfound h1 {
    font-size: 88px;
    margin: 0;
    color: #7049f4;
}

.notfound a {
    color: #fff;
    background: #7049f4;
    padding: 10px 24px;
    border-radius: 999px;
}

@media (max-width: 1050px) {
    .hero-grid,
    .about,
    .review-grid,
    .category-layout,
    .article-layout {
        grid-template-columns: 1fr;
    }

    .category-grid,
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .link-grid,
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-art {
        min-height: 360px;
    }
}

@media (max-width: 760px) {
    .topbar-inner,
    .top-left,
    .top-right {
        justify-content: center;
        text-align: center;
        gap: 10px;
    }

    .nav-wrap {
        height: auto;
        min-height: 70px;
        flex-wrap: wrap;
    }

    .menu-btn {
        display: inline-flex;
    }

    .nav-menu {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 12px 0 18px;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu a {
        padding: 10px 0;
    }

    .enroll {
        display: none;
    }

    .hero {
        padding: 58px 0;
    }

    .search-box {
        border-radius: 22px;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .search-box span {
        padding: 8px 14px 0;
    }

    .search-box a {
        width: 100%;
    }

    .category-grid,
    .blog-grid,
    .about-feature,
    .link-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .about-media {
        grid-template-columns: 1fr;
    }

    .about-media figure {
        height: 260px;
        margin-top: 0 !important;
    }

    .award {
        left: 20px;
        bottom: 20px;
    }
}
