:root {
    --ink: #2e2730;
    --muted: #736b75;
    --rose: #ff5d81;
    --rose-deep: #d93e65;
    --cream: #fff8f5;
    --peach: #fff0ea;
    --line: #f0dee1;
    --white: #ffffff;
    --shadow: 0 14px 38px rgba(111, 59, 72, 0.11);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--cream);
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
    line-height: 1.75;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

.container {
    width: min(1180px, calc(100% - 40px));
    margin-right: auto;
    margin-left: auto;
}

.site-header {
    position: sticky;
    z-index: 10;
    top: 0;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 248, 245, 0.94);
    backdrop-filter: blur(14px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    gap: 9px;
    color: var(--rose-deep);
    font-size: 21px;
    font-weight: 800;
    letter-spacing: 0.03em;
}

.brand-mark {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 10px;
    color: var(--white);
    background: linear-gradient(135deg, var(--rose), #ff9a79);
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
}

.main-nav a {
    padding: 8px 9px;
    border-radius: 10px;
    color: #5b505b;
    font-size: 14px;
    white-space: nowrap;
}

.main-nav a:hover {
    color: var(--rose-deep);
    background: var(--peach);
}

.main-nav span {
    margin-right: 4px;
    color: var(--rose);
}

.nav-toggle {
    display: none;
    border: 0;
    color: var(--rose-deep);
    background: transparent;
    font-size: 24px;
}

.hero {
    position: relative;
    margin-top: 36px;
}

.hero-track {
    position: relative;
    min-height: 480px;
    overflow: hidden;
    border-radius: 28px;
    box-shadow: var(--shadow);
}

.hero-slide {
    position: absolute;
    inset: 0;
    visibility: hidden;
    opacity: 0;
    transition: opacity 500ms ease;
}

.hero-slide.is-active {
    position: relative;
    visibility: visible;
    opacity: 1;
}

.hero-image {
    width: 100%;
    height: 480px;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 52px;
    color: var(--white);
    background: linear-gradient(transparent, rgba(41, 23, 30, 0.88));
}

.hero-overlay h2,
.intro-panel h1,
.section-heading h2,
.about h2,
.app-box h2,
.category-hero h1,
.article-page h1 {
    margin: 5px 0 12px;
    line-height: 1.25;
}

.hero-overlay h2 {
    font-size: clamp(32px, 5vw, 58px);
}

.hero-overlay p {
    max-width: 600px;
    margin: 0 0 22px;
}

.eyebrow {
    margin: 0;
    color: var(--rose-deep);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.hero-overlay .eyebrow {
    color: #ffd5de;
}

.button {
    display: inline-block;
    padding: 10px 21px;
    border-radius: 999px;
    color: var(--rose-deep);
    background: var(--white);
    font-weight: 700;
}

.button-dark {
    color: var(--white);
    background: var(--rose-deep);
}

.hero-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
}

.hero-dots button {
    width: 36px;
    height: 4px;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: #e7c8cf;
}

.hero-dots button.is-active {
    background: var(--rose);
}

.intro-panel,
.about,
.reading-note {
    margin-top: 68px;
    padding: 34px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--white);
}

.intro-panel h1 {
    font-size: 34px;
}

.intro-panel h1 a:hover {
    color: var(--rose-deep);
}

.intro-panel p:last-child,
.about p,
.reading-note p {
    margin: 0;
    color: var(--muted);
}

.content-section {
    margin-top: 68px;
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 22px;
}

.section-heading h2,
.about h2,
.app-box h2 {
    font-size: 30px;
}

.text-link {
    color: var(--rose-deep);
    font-size: 14px;
    font-weight: 700;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.video-card {
    display: flex;
    min-width: 0;
    height: 100%;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--white);
    box-shadow: 0 5px 16px rgba(111, 59, 72, 0.05);
}

.image-link {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #f3dce1;
}

.cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 300ms ease;
}

.video-card:hover .cover {
    transform: scale(1.04);
}

.duration {
    position: absolute;
    right: 10px;
    bottom: 10px;
    padding: 2px 8px;
    border-radius: 5px;
    color: var(--white);
    background: rgba(0, 0, 0, 0.66);
    font-size: 12px;
}

.card-copy {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 18px;
}

.card-meta {
    margin: 0 0 8px;
    color: var(--rose-deep);
    font-size: 12px;
}

.card-copy h3 {
    margin: 0;
    font-size: 19px;
    line-height: 1.45;
}

.card-copy h3 a:hover {
    color: var(--rose-deep);
}

.card-copy p:last-child {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.moments {
    margin-top: 68px;
}

.note-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.note-grid p {
    min-height: 138px;
    margin: 0;
    padding: 23px;
    border-radius: 16px;
    background: #ffe7db;
    font-size: 16px;
}

.note-grid p:nth-child(2) {
    background: #fbe7f1;
}

.note-grid p:nth-child(3) {
    background: #e9effd;
}

.note-grid p:nth-child(4) {
    background: #e2f4ea;
}

.about {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 46px;
}

.app-box {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 36px;
    margin-top: 68px;
    margin-bottom: 68px;
    padding: 40px;
    border-radius: 24px;
    color: var(--white);
    background: linear-gradient(120deg, #d94067, #ff8a76);
}

.app-box .eyebrow {
    color: #ffe0e6;
}

.app-box p:not(.eyebrow) {
    max-width: 680px;
    margin: 0 0 20px;
}

.qr-card {
    width: 130px;
    padding: 10px;
    border-radius: 16px;
    background: var(--white);
}

.site-footer {
    color: #e7dce0;
    background: #2f2730;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr 1fr;
    gap: 50px;
    padding-top: 52px;
    padding-bottom: 42px;
}

.site-footer .brand {
    color: #ff9cb0;
}

.site-footer p {
    color: #bfb2b9;
    font-size: 14px;
}

.site-footer h2 {
    margin-top: 0;
    font-size: 15px;
}

.site-footer a:not(.brand) {
    display: block;
    margin: 7px 0;
    color: #dfd2d8;
    font-size: 14px;
}

.copyright {
    padding: 16px 20px;
    border-top: 1px solid #4b414b;
    color: #a99ca4;
    text-align: center;
    font-size: 13px;
}

.page-main {
    padding-top: 26px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    color: var(--muted);
    font-size: 14px;
}

.breadcrumb a:hover {
    color: var(--rose-deep);
}

.category-hero {
    margin-top: 24px;
    padding: 42px;
    border-radius: 22px;
    background: linear-gradient(120deg, #ffe8e3, #fce8f2);
}

.category-hero h1 {
    font-size: 42px;
}

.category-hero p:last-child {
    max-width: 780px;
    margin: 0;
    color: #675b65;
}

.reading-note {
    margin-bottom: 68px;
}

.reading-note h2 {
    margin-top: 0;
    font-size: 22px;
}

.article-page {
    max-width: 820px;
    margin-top: 24px;
    margin-bottom: 68px;
    padding: 42px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--white);
}

.article-page h1 {
    font-size: clamp(31px, 5vw, 48px);
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 18px 0 29px;
    color: var(--muted);
    font-size: 14px;
}

.lead {
    padding: 19px 22px;
    border-left: 4px solid var(--rose);
    color: #5f535c;
    background: #fff7f6;
    font-size: 18px;
}

.article-chapter {
    margin-top: 42px;
}

.article-chapter h2 {
    font-size: 25px;
}

.article-chapter p {
    color: #5e5660;
}

.article-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    margin-top: 20px;
    border-radius: 14px;
    object-fit: cover;
    background: #f5e3e6;
}

.chapter-end {
    margin-top: 46px;
    padding-top: 30px;
    border-top: 1px solid var(--line);
}

@media (max-width: 880px) {
    .main-nav {
        display: none;
        position: absolute;
        top: 72px;
        right: 20px;
        left: 20px;
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
        border: 1px solid var(--line);
        border-radius: 16px;
        background: var(--white);
        box-shadow: var(--shadow);
    }

    .main-nav.is-open {
        display: flex;
    }

    .nav-toggle {
        display: block;
    }

    .card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .note-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .container {
        width: min(100% - 28px, 1180px);
    }

    .header-inner {
        min-height: 64px;
    }

    .hero {
        margin-top: 20px;
    }

    .hero-track,
    .hero-image {
        min-height: 400px;
        height: 400px;
        border-radius: 20px;
    }

    .hero-overlay {
        padding: 28px;
    }

    .intro-panel,
    .about,
    .reading-note,
    .article-page,
    .category-hero {
        padding: 25px;
    }

    .content-section,
    .intro-panel,
    .about,
    .moments,
    .app-box {
        margin-top: 45px;
    }

    .card-grid,
    .note-grid,
    .about,
    .app-box,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .video-card {
        min-height: 0;
    }

    .note-grid p {
        min-height: 0;
    }

    .app-box {
        gap: 24px;
        padding: 30px;
    }

    .qr-card {
        width: 112px;
    }

    .article-page {
        margin-bottom: 46px;
    }
}
