:root {
    --ink: #20202b;
    --muted: #72727f;
    --cream: #fffaf6;
    --pink: #ef6f9f;
    --peach: #ffd7c6;
    --violet: #7065d7;
    --line: #ece5e5;
    --shadow: 0 14px 32px rgba(71, 45, 56, 0.10);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

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

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

.header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 72px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: max-content;
    font-weight: 800;
    letter-spacing: 0.5px;
}

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

.nav-list {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    margin: 0;
    padding: 0;
    overflow-x: auto;
    list-style: none;
}

.nav-list a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 10px;
    border-radius: 10px;
    color: #4c4c59;
    font-size: 14px;
    white-space: nowrap;
}

.nav-list a:hover,
.nav-list a[aria-current="page"] {
    color: #b83d6a;
    background: #ffe7ef;
}

.hero {
    margin-top: 30px;
}

.hero-card {
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    min-height: 410px;
    overflow: hidden;
    border-radius: 28px;
    background: #322e50;
    box-shadow: var(--shadow);
}

.hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 52px;
    color: white;
}

.eyebrow,
.tag {
    display: inline-flex;
    align-self: flex-start;
    margin: 0 0 13px;
    padding: 4px 11px;
    border-radius: 99px;
    color: #8c3153;
    background: #ffe0ea;
    font-size: 13px;
    font-weight: 700;
}

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

.hero p {
    max-width: 550px;
    margin: 18px 0 26px;
    color: #e9e5ff;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 44px;
    padding: 0 18px;
    border: 0;
    border-radius: 12px;
    color: white;
    background: var(--pink);
    font-weight: 700;
}

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

.hero-visual img {
    height: 100%;
}

.carousel-dots {
    display: flex;
    gap: 7px;
    margin-top: 24px;
}

.carousel-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #9790c2;
}

.carousel-dots span:first-child {
    width: 25px;
    border-radius: 20px;
    background: white;
}

.section {
    margin-top: 58px;
}

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

.section-heading h2,
.section-heading h1 {
    margin: 0;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.3;
}

.section-heading p {
    max-width: 520px;
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

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

.video-card,
.text-card,
.category-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: white;
    box-shadow: 0 5px 16px rgba(67, 45, 52, 0.05);
}

.video-card img {
    aspect-ratio: 16 / 10;
}

.card-body {
    min-height: 144px;
    padding: 17px;
}

.card-body h3,
.text-card h3,
.category-card h3 {
    margin: 0 0 7px;
    font-size: 18px;
    line-height: 1.4;
}

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

.meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 12px;
    color: #9c9aa4;
    font-size: 12px;
}

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

.category-card {
    min-height: 160px;
    padding: 23px;
}

.category-icon {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    margin-bottom: 15px;
    border-radius: 12px;
    color: #8c3153;
    background: #ffe8ee;
    font-size: 20px;
}

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

.text-card {
    min-height: 190px;
    padding: 25px;
}

.feature-band,
.subscribe {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 28px;
    align-items: center;
    padding: 34px;
    border-radius: 22px;
    color: white;
    background: linear-gradient(120deg, #f1769e, #8068cf);
}

.feature-band h2,
.subscribe h2 {
    margin: 0 0 8px;
    font-size: 28px;
}

.feature-band p,
.subscribe p {
    max-width: 680px;
    margin: 0;
    color: #fff2f6;
}

.subscribe {
    margin-top: 58px;
}

.qr {
    display: grid;
    width: 105px;
    height: 105px;
    place-items: center;
    border-radius: 14px;
    color: #573a72;
    background: repeating-conic-gradient(#312847 0 25%, white 0 50%) 50% / 18px 18px;
    box-shadow: inset 0 0 0 10px white;
    font-size: 12px;
    font-weight: 800;
}

.breadcrumb {
    margin-top: 26px;
    color: var(--muted);
    font-size: 14px;
}

.breadcrumb a {
    color: #a23a62;
}

.article {
    max-width: 840px;
    margin: 28px auto 0;
}

.article-header {
    padding-bottom: 22px;
    border-bottom: 1px solid var(--line);
}

.article-header h1 {
    margin: 10px 0;
    font-size: clamp(30px, 5vw, 46px);
    line-height: 1.25;
}

.article-lead {
    color: var(--muted);
}

.article section {
    margin-top: 30px;
}

.article h2 {
    font-size: 25px;
}

.article figure {
    margin: 24px 0;
}

.article figure img {
    aspect-ratio: 16 / 9;
    border-radius: 17px;
}

.article figcaption {
    margin-top: 8px;
    color: var(--muted);
    font-size: 13px;
}

.end-note {
    padding: 20px;
    border-radius: 14px;
    background: #ffeef3;
    color: #773149;
}

.site-footer {
    margin-top: 58px;
    padding: 28px 0 36px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 14px;
}

@media (max-width: 800px) {
    .header-row {
        align-items: flex-start;
        flex-direction: column;
        padding: 13px 0;
    }

    .nav-list {
        justify-content: flex-start;
        width: 100%;
    }

    .hero-card,
    .two-column,
    .feature-band,
    .subscribe {
        grid-template-columns: 1fr;
    }

    .hero-copy {
        padding: 34px 26px;
    }

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

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

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

@media (max-width: 520px) {
    .wrap {
        width: min(100% - 24px, 1180px);
    }

    .card-grid,
    .category-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        margin-top: 18px;
    }

    .section,
    .subscribe {
        margin-top: 42px;
    }
}
