:root {
    --ink: #25213c;
    --muted: #706a82;
    --cream: #fff9f4;
    --paper: #ffffff;
    --pink: #ff557b;
    --orange: #ff9c60;
    --purple: #6c55d9;
    --line: #eee5e2;
    --shadow: 0 16px 36px rgba(54, 35, 58, 0.09);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    overflow-x: hidden;
    color: var(--ink);
    background: var(--cream);
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
    line-height: 1.7;
}

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

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
}

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

.brand {
    display: flex;
    align-items: center;
    gap: 9px;
    flex: 0 0 auto;
    font-size: 19px;
    font-weight: 800;
}

.brand-mark {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, var(--pink), var(--orange));
    border-radius: 12px 12px 12px 4px;
}

.main-nav {
    display: flex;
    flex: 1;
    justify-content: center;
    gap: 4px;
}

.nav-link {
    padding: 8px 10px;
    border-radius: 10px;
    color: #514b63;
    font-size: 13px;
    white-space: nowrap;
}

.nav-link span {
    margin-right: 5px;
    color: var(--pink);
}

.nav-link:hover {
    color: var(--pink);
    background: #fff0f3;
}

.search-pill,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 10px 15px;
    color: #fff;
    background: var(--ink);
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
}

.menu-button {
    display: none;
    border: 0;
    color: var(--ink);
    background: transparent;
    font-size: 23px;
}

.hero {
    margin: 30px auto 0;
}

.hero-slide {
    min-height: 440px;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    overflow: hidden;
    background: #3c3160;
    border-radius: 28px;
    box-shadow: var(--shadow);
}

.hero-slide:not(.is-active) {
    display: none;
}

.hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 54px;
    color: #fff;
    background: radial-gradient(circle at 15% 15%, #ff7798 0, transparent 35%), linear-gradient(135deg, #453772, #6c55d9);
}

.hero-kicker,
.eyebrow {
    margin: 0 0 8px;
    color: #ffbfcd;
    font-size: 13px;
    letter-spacing: 0.08em;
}

.hero h1,
.hero h2 {
    margin: 0;
    font-size: clamp(32px, 4vw, 52px);
    line-height: 1.2;
}

.hero h1 a {
    color: #fff;
}

.hero-copy p:not(.hero-kicker) {
    max-width: 470px;
    color: #eee9ff;
}

.hero-visual {
    min-height: 300px;
}

.hero-dots {
    display: flex;
    gap: 8px;
    margin-top: 24px;
}

.hero-dots span {
    width: 8px;
    height: 8px;
    background: #f5c0cd;
    border-radius: 50%;
}

.hero-dots span:first-child {
    width: 24px;
    border-radius: 5px;
    background: #fff;
}

.section {
    margin-top: 68px;
}

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

.section-heading h2,
.article-title,
.category-title {
    margin: 0;
    font-size: 27px;
    line-height: 1.3;
}

.section-heading p,
.crumb,
.section-intro {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.text-link {
    color: var(--purple);
    font-weight: 700;
    white-space: nowrap;
}

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

.grid.five {
    grid-template-columns: repeat(5, 1fr);
}

.video-card,
.feature-card,
.category-card,
.guide-card {
    min-width: 0;
    overflow: hidden;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 18px;
}

.video-card {
    display: flex;
    flex-direction: column;
    min-height: 315px;
}

.thumb {
    position: relative;
    display: block;
    height: 160px;
    overflow: hidden;
    background: #eee;
}

.thumb img {
    transition: transform 0.35s ease;
}

.thumb:hover img {
    transform: scale(1.05);
}

.duration {
    position: absolute;
    right: 10px;
    bottom: 10px;
    padding: 2px 7px;
    color: #fff;
    background: rgba(25, 20, 35, 0.78);
    border-radius: 6px;
    font-size: 12px;
}

.card-copy {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 15px;
}

.card-copy .eyebrow {
    color: var(--pink);
    font-size: 11px;
}

.card-copy h3 {
    margin: 0;
    font-size: 16px;
    line-height: 1.45;
}

.card-copy h3:hover {
    color: var(--pink);
}

.card-copy p:last-child {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 12px;
}

.feature-card,
.guide-card {
    min-height: 175px;
    padding: 22px;
}

.feature-icon,
.category-icon {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    margin-bottom: 14px;
    color: var(--pink);
    background: #fff0f3;
    border-radius: 13px;
    font-size: 20px;
}

.feature-card h3,
.guide-card h3 {
    margin: 0;
    font-size: 16px;
}

.feature-card p,
.guide-card p {
    margin: 7px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.category-card {
    min-height: 205px;
    padding: 22px;
    background: linear-gradient(145deg, #fff, #fff3ee);
}

.category-card h3 {
    margin: 0;
}

.category-card p {
    margin: 8px 0 14px;
    color: var(--muted);
    font-size: 13px;
}

.feature-strip,
.about-box,
.subscribe-box {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    overflow: hidden;
    background: var(--line);
    border-radius: 18px;
}

.stat {
    padding: 24px;
    text-align: center;
    background: #fff;
}

.stat strong {
    display: block;
    color: var(--pink);
    font-size: 28px;
}

.about-box {
    grid-template-columns: 1.4fr 0.6fr;
    background: #fff;
    border: 1px solid var(--line);
}

.about-copy {
    padding: 34px;
}

.about-copy h2 {
    margin-top: 0;
}

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

.about-visual {
    min-height: 260px;
}

.subscribe-box {
    grid-template-columns: 1fr auto;
    align-items: center;
    padding: 32px;
    color: #fff;
    background: linear-gradient(135deg, #ff557b, #9258d5);
}

.subscribe-box h2,
.subscribe-box p {
    margin: 0;
}

.subscribe-box p {
    margin-top: 8px;
    color: #fff4f6;
}

.qr {
    width: 112px;
    height: 112px;
    display: grid;
    place-items: center;
    color: var(--ink);
    background: repeating-linear-gradient(45deg, #fff 0 8px, #f7dced 8px 12px);
    border: 8px solid #fff;
    border-radius: 14px;
    font-weight: 800;
    text-align: center;
}

.site-footer {
    margin-top: 68px;
    padding: 38px 0;
    color: #ddd6ea;
    background: #2d2744;
}

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

.footer-brand {
    margin: 0;
    color: #fff;
    font-size: 19px;
    font-weight: 800;
}

.footer-grid p {
    margin: 6px 0;
    font-size: 13px;
}

.footer-grid a {
    display: block;
    margin-bottom: 7px;
    font-size: 13px;
}

.breadcrumb-wrap {
    padding-top: 30px;
}

.category-hero,
.article-wrap {
    padding: 34px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 22px;
}

.category-hero {
    background: linear-gradient(135deg, #fff0f3, #fff);
}

.category-hero p {
    max-width: 720px;
    margin-bottom: 0;
    color: var(--muted);
}

.article-wrap {
    max-width: 880px;
    margin: 0 auto;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 16px 0 25px;
    color: var(--muted);
    font-size: 13px;
}

.article-lead {
    padding: 16px 18px;
    color: #584c67;
    background: #fff6f0;
    border-left: 4px solid var(--orange);
    border-radius: 8px;
}

.article-body h2 {
    margin-top: 34px;
    font-size: 21px;
}

.article-body p {
    color: #514b63;
}

.article-image-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin: 24px 0;
}

.article-image-grid figure {
    height: 220px;
    margin: 0;
    overflow: hidden;
    border-radius: 14px;
}

.article-end {
    margin-top: 34px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
    text-align: center;
}

@media (max-width: 900px) {
    .main-nav {
        display: none;
    }

    .main-nav.open {
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-start;
        padding: 14px 20px;
        background: #fff;
        border-bottom: 1px solid var(--line);
    }

    .menu-button {
        display: block;
        margin-left: auto;
    }

    .search-pill {
        display: none;
    }

    .hero-slide,
    .about-box {
        grid-template-columns: 1fr;
    }

    .hero-copy {
        padding: 34px;
    }

    .hero-visual {
        min-height: 250px;
    }

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

@media (max-width: 560px) {
    .shell {
        width: min(100% - 28px, 1180px);
    }

    .header-inner {
        min-height: 62px;
    }

    .hero {
        margin-top: 18px;
    }

    .hero-slide {
        border-radius: 20px;
    }

    .hero-copy,
    .category-hero,
    .article-wrap {
        padding: 24px;
    }

    .grid,
    .grid.five,
    .feature-strip,
    .footer-grid,
    .subscribe-box {
        grid-template-columns: 1fr;
    }

    .video-card {
        min-height: 300px;
    }

    .section {
        margin-top: 48px;
    }

    .section-heading {
        align-items: start;
        flex-direction: column;
    }

    .subscribe-box {
        padding: 26px;
    }

    .qr {
        width: 94px;
        height: 94px;
    }

    .article-image-grid {
        grid-template-columns: 1fr;
    }
}
