:root {
    --ink: #222035;
    --muted: #747286;
    --paper: #fffdfa;
    --violet: #7966d8;
    --pink: #ff719f;
    --gold: #ffb76c;
    --line: #ebe8f2;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--ink);
    background: linear-gradient(180deg, #fffdfa, #f7f5ff);
    font-family: "Microsoft YaHei", Arial, sans-serif;
    line-height: 1.7;
}

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

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

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

.header {
    position: sticky;
    top: 0;
    z-index: 9;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 253, 250, 0.96);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 28px;
    min-height: 76px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 22px;
    font-weight: 800;
}

.brand-mark {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 13px;
    color: white;
    background: linear-gradient(135deg, var(--pink), var(--violet));
}

.nav {
    display: flex;
    flex: 1;
    justify-content: space-between;
    gap: 5px;
}

.nav a {
    padding: 8px;
    border-radius: 9px;
    color: #555268;
    font-size: 14px;
    white-space: nowrap;
}

.nav a:hover,
.nav a[aria-current="page"] {
    color: var(--violet);
    background: #f0edff;
    font-weight: 700;
}

.hero {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 34px;
    align-items: center;
    min-height: 390px;
    margin-top: 38px;
    padding: 45px;
    overflow: hidden;
    border-radius: 28px;
    color: white;
    background: radial-gradient(circle at 80% 10%, #ffc675, transparent 25%), linear-gradient(130deg, #332668, #7864d1 55%, #ff789f);
    box-shadow: 0 16px 36px rgba(58, 44, 110, 0.14);
}

.eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    color: #ffedb9;
    font-weight: 700;
    letter-spacing: 1px;
}

.hero h1 {
    margin: 0 0 15px;
    font-size: clamp(40px, 6vw, 64px);
    line-height: 1.15;
}

.hero p {
    margin: 0;
    color: #f2edff;
    font-size: 17px;
}

.hero-bubbles {
    position: relative;
    min-height: 220px;
}

.bubble {
    position: absolute;
    display: grid;
    place-items: center;
    border: 6px solid rgba(255,255,255,.45);
    border-radius: 50%;
    background: #fffdfa;
    color: var(--violet);
    font-size: 18px;
    font-weight: 800;
}

.bubble-a {
    top: 10px;
    left: 15px;
    width: 130px;
    height: 130px;
}

.bubble-b {
    right: 0;
    bottom: 0;
    width: 165px;
    height: 165px;
    background: #ffd577;
    color: #573e83;
}

.section {
    margin-top: 70px;
}

.heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.heading h2 {
    margin: 0;
    font-size: 28px;
}

.heading p {
    margin: 4px 0 0;
    color: var(--muted);
}

.more {
    color: var(--violet);
    font-weight: 700;
    white-space: nowrap;
}

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

.card,
.category,
.topic,
.rank {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 17px;
    background: white;
    box-shadow: 0 8px 20px rgba(47, 37, 93, 0.06);
}

.card img {
    aspect-ratio: 3 / 4;
}

.card-body {
    padding: 14px;
}

.card h3,
.category h3,
.topic h3,
.rank h3 {
    margin: 0 0 5px;
    font-size: 17px;
}

.card p,
.category p,
.topic p,
.rank p,
.about p,
.tip p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.tag {
    display: inline-block;
    margin-top: 10px;
    padding: 3px 8px;
    border-radius: 99px;
    color: #75523f;
    background: #fff0df;
    font-size: 12px;
}

.feature {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    overflow: hidden;
    border-radius: 22px;
    background: white;
    box-shadow: 0 16px 34px rgba(47, 37, 93, 0.10);
}

.feature img {
    min-height: 320px;
    aspect-ratio: 16 / 10;
}

.feature-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 38px;
}

.feature-copy h2 {
    margin: 0 0 12px;
    font-size: 32px;
}

.feature-copy p {
    color: var(--muted);
}

.button {
    display: inline-flex;
    width: fit-content;
    margin-top: 10px;
    padding: 10px 17px;
    border: 0;
    border-radius: 10px;
    color: white;
    background: var(--violet);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

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

.category {
    padding: 22px;
}

.category i {
    display: grid;
    width: 42px;
    height: 42px;
    margin-bottom: 13px;
    place-items: center;
    border-radius: 12px;
    color: var(--violet);
    background: #f0edff;
    font-style: normal;
    font-size: 20px;
}

.rank-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.rank {
    display: grid;
    grid-template-columns: 40px 65px 1fr;
    gap: 13px;
    align-items: center;
    padding: 12px;
}

.rank-number {
    color: var(--pink);
    font-size: 22px;
    font-weight: 800;
}

.rank img {
    height: 80px;
    border-radius: 9px;
}

.topic-grid,
.tips,
.about {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    overflow: hidden;
    border-radius: 18px;
    background: white;
    box-shadow: 0 9px 22px rgba(47, 37, 93, 0.06);
}

.topic-grid {
    gap: 18px;
    overflow: visible;
    background: transparent;
    box-shadow: none;
}

.topic {
    padding: 23px;
}

.topic:nth-child(1) {
    background: #fff6ee;
}

.topic:nth-child(2) {
    background: #f0f7ff;
}

.topic:nth-child(3) {
    background: #f5f0ff;
}

.schedule {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 11px;
}

.day {
    min-height: 125px;
    padding: 15px;
    border-radius: 15px;
    background: white;
    box-shadow: 0 7px 18px rgba(47, 37, 93, 0.06);
}

.day strong {
    color: var(--violet);
}

.day span {
    display: block;
    margin-top: 11px;
    font-size: 13px;
}

.tip,
.about > div {
    padding: 25px;
    border-right: 1px solid var(--line);
}

.tip:last-child,
.about > div:last-child {
    border-right: 0;
}

.tip h3,
.about h3 {
    margin: 0 0 8px;
}

.download {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 30px;
    align-items: center;
    padding: 37px 40px;
    border-radius: 22px;
    color: white;
    background: linear-gradient(125deg, #3d2e70, #7864d1);
}

.download h2 {
    margin: 0 0 10px;
}

.download p {
    max-width: 720px;
    margin: 0;
    color: #e7dfff;
}

.qr {
    display: grid;
    width: 130px;
    height: 130px;
    place-items: center;
    background: repeating-conic-gradient(#4c3981 0 25%, #fff 0 50%) 0 / 20px 20px;
    box-shadow: inset 0 0 0 12px white;
}

.qr span {
    padding: 3px 5px;
    background: white;
    color: #4c3981;
    font-size: 12px;
    font-weight: 700;
}

.footer {
    margin-top: 70px;
    padding: 34px 0 40px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 14px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 18px;
}

.breadcrumb {
    margin: 28px 0 17px;
    color: var(--muted);
    font-size: 14px;
}

.banner {
    margin-bottom: 34px;
    padding: 34px 38px;
    border-radius: 21px;
    color: white;
    background: linear-gradient(120deg, #5e4da7, #ff7fa7);
}

.banner h1 {
    margin: 0 0 8px;
    font-size: 36px;
}

.banner p {
    margin: 0;
    color: #f4edff;
}

.article {
    width: min(840px, 100%);
    margin: auto;
}

.article-header {
    margin-bottom: 25px;
    text-align: center;
}

.article-header h1 {
    margin: 0 0 9px;
    font-size: clamp(28px, 5vw, 42px);
}

.meta {
    color: var(--muted);
    font-size: 14px;
}

.notice {
    margin: 22px 0;
    padding: 16px;
    border-left: 4px solid var(--gold);
    border-radius: 0 11px 11px 0;
    background: #fff8ef;
}

.reader-image {
    margin: 20px 0;
    overflow: hidden;
    border-radius: 13px;
    background: #efebf6;
}

.reader-image img {
    aspect-ratio: 16 / 10;
}

.end {
    margin: 28px 0;
    padding: 20px;
    border-radius: 14px;
    text-align: center;
    color: #57438d;
    background: #f0edff;
}

.article-nav {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 40px;
}

.article-nav a {
    padding: 10px 14px;
    border-radius: 10px;
    background: white;
    box-shadow: 0 4px 13px rgba(47,37,93,.09);
    font-weight: 700;
}

@media (max-width: 900px) {
    .header-inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
        padding: 12px 0;
    }

    .nav {
        width: 100%;
        justify-content: flex-start;
        overflow-x: auto;
    }

    .hero,
    .feature {
        grid-template-columns: 1fr;
    }

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

    .schedule {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 620px) {
    .shell {
        width: min(100% - 24px, 1200px);
    }

    .hero {
        min-height: auto;
        margin-top: 24px;
        padding: 28px 23px;
    }

    .hero-bubbles {
        min-height: 165px;
    }

    .bubble-b {
        width: 130px;
        height: 130px;
    }

    .section {
        margin-top: 50px;
    }

    .heading,
    .footer-inner,
    .download,
    .article-nav {
        align-items: flex-start;
        flex-direction: column;
    }

    .cards,
    .category-grid,
    .rank-list,
    .topic-grid,
    .tips,
    .about {
        grid-template-columns: 1fr;
    }

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

    .tip,
    .about > div {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .tip:last-child,
    .about > div:last-child {
        border-bottom: 0;
    }

    .feature-copy,
    .download {
        padding: 27px 23px;
    }
}
