:root {
    color-scheme: light;
    --ink: #18221e;
    --ink-soft: #34433d;
    --muted: #68766f;
    --line: #d8e0dc;
    --paper: #ffffff;
    --paper-soft: #f4f7f3;
    --mist: #e8efea;
    --green: #17664d;
    --green-deep: #103e31;
    --green-night: #16342d;
    --coral: #df664f;
    --gold: #b58b3c;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    line-height: 1.65;
}

a {
    color: inherit;
}

.site-nav {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid rgba(216, 224, 220, .92);
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(14px);
}

.nav-inner,
.content,
.footer-inner {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
}

.nav-inner {
    min-height: 64px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 740;
    white-space: nowrap;
}

.brand img {
    width: 34px;
    height: 34px;
    border-radius: 7px;
}

.brand small {
    padding-left: 10px;
    border-left: 1px solid var(--line);
    color: var(--muted);
    font-size: 11px;
    font-weight: 650;
}

.nav-links {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 20px;
    color: var(--muted);
    font-size: 14px;
}

.nav-links a {
    text-decoration: none;
}

.nav-links a:hover,
.text-link:hover {
    color: var(--coral);
}

.language-link {
    padding-left: 18px;
    border-left: 1px solid var(--line);
    color: var(--green-deep);
    font-weight: 700;
}

.hero {
    min-height: min(720px, calc(100svh - 170px));
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background-color: #edf2ea;
    background-image: url("/assets/dayu-notes-hero.png");
    background-position: center;
    background-size: cover;
}

.hero-copy {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    padding: 82px 0 96px;
}

.eyebrow,
.section-kicker {
    color: var(--green);
    font-size: 12px;
    font-weight: 780;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 650px;
    margin: 14px 0 8px;
    font-size: clamp(48px, 7vw, 76px);
    line-height: 1.02;
    letter-spacing: 0;
}

.hero-tagline {
    max-width: 620px;
    margin: 0 0 18px;
    color: var(--green-deep);
    font-size: clamp(22px, 3vw, 31px);
    font-weight: 720;
    line-height: 1.32;
}

.hero-description {
    max-width: 590px;
    margin: 0;
    color: var(--ink-soft);
    font-size: 18px;
}

.hero h1,
.hero-tagline,
.hero-description,
.hero .eyebrow,
.hero-proof {
    text-shadow: 0 1px 12px rgba(255, 255, 255, .9);
}

.hero-actions {
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.button {
    min-height: 46px;
    padding: 10px 19px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--green);
    border-radius: 6px;
    background: var(--green);
    color: white;
    text-decoration: none;
    font-weight: 700;
}

.button:hover {
    background: var(--green-deep);
}

.button.secondary {
    border-color: rgba(23, 102, 77, .38);
    background: rgba(255, 255, 255, .58);
    color: var(--green-deep);
}

.hero-proof {
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    color: var(--ink-soft);
    font-size: 13px;
    font-weight: 680;
}

.hero-proof span {
    position: relative;
}

.hero-proof span + span::before {
    content: "";
    position: absolute;
    left: -12px;
    top: 50%;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--coral);
}

.intro-strip {
    border-top: 1px solid rgba(255, 255, 255, .7);
    border-bottom: 1px solid var(--line);
    background: #18483a;
    color: white;
}

.intro-grid {
    min-height: 190px;
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    align-items: center;
    gap: 64px;
}

.intro-grid h2,
.section h2,
.boundary h2 {
    margin: 0;
    font-size: clamp(29px, 4vw, 42px);
    line-height: 1.2;
    letter-spacing: 0;
}

.intro-grid p {
    margin: 0;
    color: #d6e4de;
    font-size: 17px;
}

.section {
    padding: 86px 0;
    border-bottom: 1px solid var(--line);
}

.section-heading {
    margin-bottom: 38px;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr);
    gap: 56px;
    align-items: end;
}

.section-heading h2,
.product-copy h2,
.platform-layout h2 {
    margin-top: 8px;
}

.section-heading p,
.product-copy > p,
.platform-layout > p {
    margin: 0;
    color: var(--muted);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
}

.feature {
    min-height: 260px;
    padding: 27px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--paper);
}

.feature:nth-child(2),
.feature:nth-child(4),
.feature:nth-child(6) {
    background: var(--paper-soft);
}

.feature-index {
    color: var(--coral);
    font-size: 12px;
    font-weight: 800;
}

.feature h3 {
    margin: 30px 0 10px;
    font-size: 20px;
    line-height: 1.3;
}

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

.product-view {
    background: var(--paper-soft);
}

.product-layout {
    display: grid;
    grid-template-columns: minmax(280px, .72fr) minmax(0, 1.28fr);
    gap: 56px;
    align-items: center;
}

.check-list {
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
}

.check-list li {
    padding: 10px 0 10px 25px;
    position: relative;
    border-bottom: 1px solid var(--line);
    color: var(--ink-soft);
}

.check-list li::before {
    content: ">";
    position: absolute;
    left: 0;
    color: var(--coral);
    font-weight: 900;
}

.workspace {
    overflow: hidden;
    border: 1px solid #bdc9c3;
    border-radius: 8px;
    background: #f5f7f4;
    box-shadow: 0 26px 65px rgba(30, 60, 48, .14);
}

.workspace-bar {
    min-height: 58px;
    padding: 10px 14px;
    display: grid;
    grid-template-columns: 1fr minmax(160px, .9fr) 1fr;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #cbd5d0;
    background: #e6ece8;
    color: #315047;
    font-size: 12px;
}

.workspace-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 760;
}

.workspace-brand img {
    width: 25px;
    height: 25px;
    border-radius: 5px;
}

.workspace-search {
    padding: 7px 12px;
    border: 1px solid #c4d0ca;
    border-radius: 6px;
    background: #d9e2dd;
    text-align: center;
}

.workspace-actions {
    justify-self: end;
    font-weight: 700;
}

.workspace-body {
    min-height: 390px;
    display: grid;
    grid-template-columns: 190px 1fr;
}

.workspace-list {
    padding: 22px 12px;
    display: flex;
    flex-direction: column;
    gap: 7px;
    border-right: 1px solid #d2dad6;
    background: #edf1ee;
    font-size: 12px;
}

.workspace-list > strong {
    padding: 0 8px 10px;
    color: #52645d;
}

.workspace-list > span {
    padding: 10px 9px;
    border-radius: 5px;
    color: #41514b;
}

.workspace-list > span.active {
    background: #d7e2dc;
    color: var(--green-deep);
    font-weight: 700;
}

.workspace-list small {
    margin-top: 3px;
    display: block;
    color: #819089;
    font-weight: 500;
}

.workspace-note {
    padding: 42px 46px;
    background: #f9faf7;
}

.workspace-note > small {
    color: var(--green);
    font-weight: 750;
}

.workspace-note h3 {
    margin: 10px 0 18px;
    font-size: 25px;
}

.workspace-note p {
    color: #52615a;
}

.workspace-note blockquote {
    margin: 24px 0;
    padding: 12px 16px;
    border-left: 3px solid var(--coral);
    background: #eef2ee;
    color: #44544d;
}

.workspace-note pre {
    margin: 0;
    padding: 14px 16px;
    overflow: hidden;
    border: 1px solid #d2d9d5;
    border-radius: 5px;
    background: #e8ede9;
    color: #315047;
    white-space: normal;
}

.privacy-section {
    border-color: #284a40;
    background: var(--green-night);
    color: white;
}

.privacy-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr);
    gap: 76px;
    align-items: center;
}

.section-kicker.light {
    color: #a9cbbb;
}

.privacy-layout h2 {
    margin-top: 8px;
}

.privacy-layout p {
    max-width: 670px;
    color: #c6d8d1;
}

.text-link {
    display: inline-block;
    margin-top: 15px;
    color: #f3c99a;
    text-decoration: none;
    font-weight: 700;
}

.privacy-flow {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: privacy-step;
}

.privacy-flow li {
    min-height: 82px;
    padding: 14px 0 14px 54px;
    position: relative;
    border-bottom: 1px solid rgba(214, 228, 222, .22);
    counter-increment: privacy-step;
}

.privacy-flow li::before {
    content: "0" counter(privacy-step);
    position: absolute;
    left: 0;
    top: 16px;
    color: #f0a78f;
    font-size: 13px;
    font-weight: 800;
}

.privacy-flow strong,
.privacy-flow span {
    display: block;
}

.privacy-flow span {
    margin-top: 3px;
    color: #afc7be;
    font-size: 14px;
}

.platform-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(360px, .9fr);
    gap: 24px 70px;
    align-items: center;
}

.platform-layout > p {
    grid-column: 1 / -1;
    max-width: 820px;
}

.platform-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
}

.platform-list span {
    min-height: 62px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    color: var(--green-deep);
    font-weight: 760;
}

.boundary {
    padding: 46px 0;
    background: #e9eee9;
}

.boundary-inner {
    display: grid;
    grid-template-columns: minmax(280px, .9fr) minmax(0, 1.1fr);
    gap: 58px;
    align-items: center;
}

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

.boundary p {
    margin: 0;
    color: var(--muted);
}

.document {
    width: min(780px, calc(100% - 40px));
    margin: 0 auto;
    padding: 68px 0 96px;
}

.document h1 {
    margin: 0 0 10px;
    font-size: 44px;
    line-height: 1.15;
}

.document h2 {
    margin: 38px 0 10px;
    font-size: 23px;
}

.document p,
.document li {
    color: #35413c;
}

.document-meta {
    margin-bottom: 32px;
    color: var(--muted);
}

.account-delete-form { display: grid; gap: 10px; max-width: 520px; margin: 24px 0; padding: 20px; border: 1px solid rgba(90, 108, 103, .24); background: rgba(255, 255, 255, .72); }
.account-delete-form[hidden],
.account-delete-result[hidden],
#accountDeleteContent[hidden] { display: none !important; }
.account-delete-form label { font-weight: 600; }
.account-delete-form input { width: 100%; min-height: 44px; padding: 9px 11px; border: 1px solid rgba(90, 108, 103, .35); border-radius: 6px; background: #fff; color: #17221f; }
.account-delete-form .button { border: 0; cursor: pointer; }
.account-delete-form #deleteStatus { color: #53615d; font-size: .92rem; line-height: 1.45; }
.account-delete-form #deleteStatus.is-ok { color: #2f6655; }
.account-delete-form #deleteStatus.is-error { color: #9a4f47; font-weight: 600; }
.inline-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.account-delete-result { max-width: 520px; margin: 24px 0; padding: 22px; border: 1px solid rgba(47, 102, 85, .28); background: var(--paper-soft); }
.account-delete-result strong { display: block; color: var(--green-deep); font-size: 1.18rem; }
.account-delete-result p { margin: 8px 0 18px; }
.account-delete-result .button { display: inline-flex; }

.notice {
    margin: 26px 0;
    padding: 16px 18px;
    border-left: 4px solid var(--green);
    background: var(--paper-soft);
}

footer {
    border-top: 1px solid var(--line);
    background: #fafbf9;
}

.footer-inner {
    padding: 32px 0;
    display: flex;
    justify-content: space-between;
    gap: 24px;
    color: var(--muted);
    font-size: 14px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

@media (max-width: 980px) {
    .nav-links a:not(.language-link) {
        display: none;
    }

    .intro-grid,
    .section-heading,
    .product-layout,
    .privacy-layout,
    .platform-layout,
    .boundary-inner {
        grid-template-columns: 1fr;
    }

    .intro-grid {
        padding: 38px 0;
        gap: 18px;
    }

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

    .platform-layout > p {
        grid-column: auto;
    }
}

@media (max-width: 680px) {
    .nav-inner,
    .content,
    .footer-inner,
    .hero-copy {
        width: min(100% - 28px, 1180px);
    }

    .brand small {
        display: none;
    }

    .hero {
        min-height: calc(100svh - 140px);
        align-items: flex-start;
        background-position: 54% center;
    }

    .hero-copy {
        padding: 64px 0 74px;
    }

    .hero h1 {
        font-size: 48px;
    }

    .hero-description {
        font-size: 16px;
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .button {
        width: 100%;
    }

    .hero-proof {
        gap: 6px 18px;
    }

    .section {
        padding: 62px 0;
    }

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

    .feature {
        min-height: 0;
    }

    .workspace-bar {
        grid-template-columns: 1fr auto;
    }

    .workspace-search {
        display: none;
    }

    .workspace-body {
        min-height: 410px;
        grid-template-columns: 1fr;
    }

    .workspace-list {
        display: none;
    }

    .workspace-note {
        padding: 34px 24px;
    }

    .platform-list {
        grid-template-columns: 1fr 1fr;
    }

    .footer-inner {
        flex-direction: column;
    }
}
