:root {
    --ink: #17211b;
    --muted: #69726d;
    --paper: #fbf5e8;
    --card: #fffdf6;
    --cream: #f2e6cf;
    --green: #1d6f5b;
    --blue: #229ed9;
    --orange: #dc7f37;
    --line: rgba(23, 33, 27, 0.12);
    --shadow: 0 22px 50px rgba(64, 48, 28, 0.12);
    --radius: 24px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    font-family: "Songti SC", "Noto Serif CJK SC", "STSong", serif;
    color: var(--ink);
    line-height: 1.8;
    background:
        linear-gradient(90deg, rgba(23, 33, 27, 0.035) 1px, transparent 1px),
        linear-gradient(180deg, rgba(23, 33, 27, 0.035) 1px, transparent 1px),
        var(--paper);
    background-size: 34px 34px;
}

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

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

.topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid var(--line);
    background: rgba(251, 245, 232, 0.9);
    backdrop-filter: blur(16px);
}

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

.wordmark {
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.menu {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.menu a {
    padding: 9px 15px;
    border: 1px solid transparent;
    border-radius: 999px;
    color: var(--muted);
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: 14px;
    font-weight: 800;
}

.menu a:hover,
.menu a[aria-current="page"] {
    color: var(--green);
    border-color: rgba(29, 111, 91, 0.24);
    background: rgba(255, 253, 246, 0.8);
}

.masthead {
    padding: 96px 0 70px;
}

.download-head {
    padding-bottom: 58px;
}

.masthead-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.06fr) minmax(300px, 0.94fr);
    gap: 44px;
    align-items: stretch;
}

.masthead-copy {
    align-self: center;
}

.kicker {
    margin-bottom: 14px;
    color: var(--green);
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

h1,
h2,
h3 {
    color: var(--ink);
    line-height: 1.16;
}

h1 {
    max-width: 830px;
    margin-bottom: 24px;
    font-size: clamp(42px, 6vw, 76px);
    letter-spacing: -0.075em;
}

h2 {
    margin-bottom: 18px;
    font-size: clamp(31px, 4.5vw, 54px);
    letter-spacing: -0.055em;
}

h3 {
    margin-bottom: 12px;
    font-size: 22px;
    letter-spacing: -0.03em;
}

p {
    color: var(--muted);
}

.lead {
    max-width: 760px;
    color: #4f5d55;
    font-size: 19px;
}

.masthead-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 32px;
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}

.primary-link,
.text-link,
.outline-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    border-radius: 999px;
    font-weight: 900;
}

.primary-link {
    padding: 0 24px;
    color: #ffffff;
    background: var(--green);
    box-shadow: 0 18px 32px rgba(29, 111, 91, 0.22);
}

.text-link {
    padding: 0 20px;
    color: var(--green);
    background: rgba(255, 253, 246, 0.82);
    border: 1px solid rgba(29, 111, 91, 0.18);
}

.editor-card {
    position: relative;
    padding: 34px;
    overflow: hidden;
    border: 1px solid rgba(29, 111, 91, 0.18);
    border-radius: var(--radius);
    background:
        radial-gradient(circle at 90% 12%, rgba(34, 158, 217, 0.25), transparent 28%),
        linear-gradient(145deg, #fffdf6, #f4ead7);
    box-shadow: var(--shadow);
}

.editor-card::after {
    content: "";
    position: absolute;
    right: -48px;
    bottom: -48px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: rgba(220, 127, 55, 0.24);
}

.editor-card.compact {
    align-self: center;
}

.editor-card span {
    display: inline-flex;
    margin-bottom: 76px;
    color: var(--orange);
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.14em;
}

.editor-card dl {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 16px;
    margin-top: 28px;
}

.editor-card dl div {
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.editor-card dt {
    color: var(--muted);
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: 13px;
}

.editor-card dd {
    margin-top: 4px;
    font-weight: 900;
}

.section {
    padding: 78px 0;
}

.section-title {
    max-width: 780px;
    margin-bottom: 34px;
}

.story-grid,
.module-list,
.platform-grid,
.faq-list,
.safe-grid,
.note-layout {
    display: grid;
    gap: 22px;
}

.story-grid {
    grid-template-columns: 1.2fr 0.9fr 0.9fr;
}

.story-card,
.platform-card,
.faq-list article,
.check-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 253, 246, 0.78);
    box-shadow: var(--shadow);
}

.story-card {
    padding: 30px;
}

.story-card.wide {
    background: #fffdf6;
}

.section-cream {
    background:
        radial-gradient(circle at 10% 30%, rgba(220, 127, 55, 0.15), transparent 26%),
        var(--cream);
}

.note-layout {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    align-items: start;
}

.note-text {
    display: grid;
    gap: 18px;
    padding-left: 30px;
    border-left: 3px solid var(--green);
}

.module-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.module-list article {
    padding: 24px 0 0;
    border-top: 2px solid var(--line);
}

.module-list span,
.platform-card span {
    display: inline-flex;
    margin-bottom: 16px;
    color: var(--orange);
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.14em;
}

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

.platform-card {
    display: flex;
    min-height: 310px;
    flex-direction: column;
    align-items: flex-start;
    padding: 28px;
}

.outline-link {
    width: 100%;
    margin-top: auto;
    color: var(--green);
    border: 1px solid rgba(29, 111, 91, 0.22);
    background: rgba(29, 111, 91, 0.06);
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}

.safe-grid {
    grid-template-columns: minmax(0, 1fr) minmax(310px, 0.82fr);
    align-items: start;
}

.check-card {
    padding: 28px;
    background: #fffdf6;
}

.check-card ul {
    display: grid;
    gap: 12px;
    margin-top: 18px;
    padding-left: 20px;
    color: var(--muted);
}

.faq-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.faq-list article {
    padding: 26px;
}

.footer {
    padding: 42px 0;
    border-top: 1px solid var(--line);
    background: #17211b;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr 1.4fr auto;
    gap: 22px;
    align-items: center;
}

.footer p,
.footer a {
    color: rgba(255, 253, 246, 0.74);
}

.footer nav {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.footer a:hover {
    color: #ffffff;
}

@media (max-width: 1040px) {
    .story-grid,
    .platform-grid,
    .module-list,
    .faq-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .topbar-inner,
    .footer-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .topbar-inner,
    .masthead-grid,
    .note-layout,
    .safe-grid,
    .footer-inner {
        display: flex;
    }

    .masthead-grid,
    .note-layout,
    .safe-grid {
        flex-direction: column;
    }

    .topbar-inner {
        min-height: auto;
        padding: 16px 0;
    }

    .masthead,
    .section {
        padding: 54px 0;
    }

    .editor-card span {
        margin-bottom: 42px;
    }

    .note-text {
        padding-left: 0;
        border-left: 0;
    }
}

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

    .story-grid,
    .platform-grid,
    .module-list,
    .faq-list {
        grid-template-columns: 1fr;
    }

    .primary-link,
    .text-link,
    .outline-link {
        width: 100%;
    }
}
