:root {
    color-scheme: light;
    --page-bg: #f6f7f8;
    --surface: #ffffff;
    --text: #20242a;
    --muted: #68717d;
    --line: #dce1e7;
    --line-strong: #c2c9d1;
    --primary: #176b4d;
    --primary-hover: #10573e;
    --primary-soft: #e7f5ed;
    --ink-soft: #edf1f4;
    --focus: rgba(23, 107, 77, 0.22);
}

* {
    box-sizing: border-box;
}

body {
    min-width: 320px;
    margin: 0;
    background:
        linear-gradient(180deg, #ffffff 0, var(--page-bg) 320px),
        var(--page-bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
        "Microsoft YaHei", sans-serif;
    font-size: 14px;
    line-height: 1.5;
}

a {
    color: inherit;
}

.home-shell,
.hero-copy,
.welcome-copy,
.hero-panel,
.quote-card {
    min-width: 0;
}

.welcome-copy,
.step-desc,
.quote-card blockquote,
.quote-meaning {
    overflow-wrap: anywhere;
}

.primary-action:focus-visible,
.secondary-action:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 2px;
}

.home-shell {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
    padding: 48px 0 64px;
}

.home-hero {
    display: grid;
    min-height: min(520px, calc(100dvh - var(--top-navbar-height, 48px) - 56px));
    align-items: center;
    gap: 48px;
    grid-template-columns: minmax(0, 1fr) 360px;
    padding: 42px 0 54px;
}

.hero-copy {
    max-width: 680px;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
}

.home-hero h1 {
    margin: 0;
    font-size: 44px;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.15;
}

.welcome-copy {
    max-width: 620px;
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.8;
}

.quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.primary-action,
.secondary-action {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--primary);
    border-radius: 6px;
    padding: 7px 14px;
    font-weight: 650;
    text-decoration: none;
}

.primary-action {
    background: var(--primary);
    color: #ffffff;
}

.primary-action:hover {
    background: var(--primary-hover);
}

.secondary-action {
    background: #ffffff;
    color: var(--primary);
}

.secondary-action:hover {
    background: var(--primary-soft);
}

.hero-panel {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 18px 40px rgba(32, 36, 42, 0.08);
    padding: 18px;
}

.practice-step {
    display: grid;
    gap: 2px 12px;
    grid-template-columns: 44px minmax(0, 1fr);
    padding: 16px 0;
    border-bottom: 1px solid var(--ink-soft);
}

.practice-step:first-child {
    padding-top: 0;
}

.practice-step:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.step-index {
    grid-row: span 2;
    color: var(--line-strong);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.step-title {
    color: var(--text);
    font-size: 16px;
    font-weight: 700;
}

.step-desc {
    min-width: 0;
    color: var(--muted);
    line-height: 1.7;
}

.quote-section {
    border-top: 1px solid var(--line);
    padding-top: 36px;
}

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

.section-heading h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.3;
}

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

.quote-card {
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
}

.quote-card blockquote {
    margin: 0;
    color: var(--text);
    font-size: 17px;
    font-weight: 650;
    line-height: 1.75;
}

.quote-source {
    margin: 14px 0 0;
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
}

.quote-meaning {
    margin: 12px 0 0;
    color: var(--muted);
    line-height: 1.8;
}

@media (max-width: 980px) {
    .home-hero {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero-panel {
        max-width: 620px;
    }

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

@media (max-width: 760px) {
    .home-shell {
        width: min(100% - 32px, 1080px);
        padding: 28px 0 44px;
    }

    .home-hero {
        min-height: 0;
        gap: 28px;
        padding: 30px 0 38px;
    }

    .home-hero h1 {
        font-size: 34px;
    }

    .section-heading {
        display: block;
    }

    .section-heading h2 {
        font-size: 22px;
    }

    .quote-card {
        padding: 18px;
    }
}
