:root {
    color-scheme: light;
    --page-width: 430px;
    --section-space: 26px;
    --cream: #fff8f0;
    --deep: #1c4b5a;
    --teal: #00938d;
    --teal-strong: #00817b;
    --orange: #eb8327;
    --text: #3c4a4d;
    --muted: #637672;
    --line: #dce8e1;
    --serif: "Songti SC", "STSong", "SimSun", serif;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: 14px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    margin: 0;
    overflow-x: hidden;
    color: var(--text);
    background: #eaf0ed;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
    -webkit-text-size-adjust: 100%;
}

body.has-modal {
    overflow: hidden;
}

[hidden] {
    display: none !important;
}

button,
input {
    font: inherit;
}

button,
a,
input {
    -webkit-tap-highlight-color: transparent;
}

button,
a {
    touch-action: manipulation;
}

button {
    cursor: pointer;
}

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

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

button:focus-visible,
a:focus-visible,
input:focus-visible,
[tabindex="0"]:focus-visible {
    outline: 3px solid var(--orange);
    outline-offset: 4px;
}

.icon-sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.icon {
    width: 24px;
    height: 24px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* 手机和电脑共用430px窄版，页面使用自然高度，避免模拟器内层滚动。 */
.page {
    max-width: var(--page-width);
    min-width: 0;
    margin: 0 auto;
    padding-bottom: 0;
    background: var(--cream);
    box-shadow: 0 12px 60px rgba(28, 75, 90, 0.08);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 70px;
    padding: 10px 18px;
    padding-top: calc(10px + env(safe-area-inset-top));
    border-bottom: 1px solid rgba(28, 75, 90, 0.06);
    background: rgba(255, 250, 244, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.brand {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    min-height: 44px;
}

.brand img {
    flex: 0 0 auto;
    border-radius: 50%;
}

.brand-copy {
    min-width: 0;
}

.brand-copy strong,
.brand-copy small {
    display: block;
}

.brand-copy strong {
    color: var(--deep);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
    white-space: nowrap;
}

.brand-copy small {
    color: var(--muted);
    font-size: 12px;
    letter-spacing: 1px;
    line-height: 1.5;
}

.header-download {
    flex: 0 0 auto;
    min-height: 44px;
    padding: 9px 13px;
    border: 0;
    border-radius: 12px;
    color: #fff;
    background: var(--teal-strong);
    font-weight: 700;
}

.header-download span {
    margin-left: 3px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    padding: 12px 18px;
    border: 1px solid transparent;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
    text-align: center;
    transition: background-color 160ms ease, box-shadow 160ms ease;
}

.button-primary {
    color: #fff;
    background: var(--teal-strong);
}

.button-primary:hover,
.header-download:hover {
    background: #006e69;
}

.button-secondary {
    border-color: #cbe1df;
    color: var(--teal-strong);
    background: #edf6f1;
}

.button-secondary:hover {
    background: #e1f0e9;
}

.button:disabled {
    cursor: wait;
    opacity: 0.65;
}

.hero-download {
    width: 100%;
    box-shadow: 0 8px 20px rgba(0, 129, 123, 0.17);
}

.platform-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 44px;
    color: var(--muted);
}

.platform-links button {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 5px 9px;
    border: 0;
    color: var(--teal-strong);
    background: transparent;
    font-size: 13px;
}

.platform-links button:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

h1,
h2,
h3,
h4,
p,
figure {
    margin: 0;
}

.page-screen {
    /* 内容自然排布，避免整屏最小高度和垂直居中撑出大块上下留白。 */
    padding: var(--section-space) 20px;
}

.eyebrow {
    margin-bottom: 8px;
    color: var(--teal-strong);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-align: center;
}

.hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 95% 62%, #e0f0e8 0, transparent 55%),
        linear-gradient(160deg, #fffaf5 0%, #fff6e9 65%, #f1f7ef 100%);
}

.hero-copy {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero h1 {
    margin-bottom: 10px;
    color: var(--deep);
    font-family: var(--serif);
    font-size: 29px;
    font-weight: 700;
    line-height: 1.45;
    letter-spacing: 0.02em;
}

.hero h1 span,
.screenshots-section h2 span {
    color: var(--teal-strong);
}

.hero-description {
    margin-bottom: 12px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
}

.hero-keywords {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    color: #526f66;
    font-size: 12px;
}

.hero-keywords span {
    padding: 3px 8px;
    border: 1px solid #e2e8d8;
    border-radius: 20px;
    background: rgba(255, 253, 247, 0.65);
}

.phone-stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 270px;
    margin: 6px 0 12px;
}

.stage-halo {
    position: absolute;
    top: 15%;
    right: -10%;
    bottom: 0;
    left: -10%;
    border-radius: 50%;
    background: radial-gradient(ellipse, #daefe4 0%, rgba(245, 229, 202, 0.45) 45%, transparent 72%);
}

.phone-frame {
    position: relative;
    width: 125px;
    padding: 4px;
    border: 1px solid #245950;
    border-radius: 25px;
    background: #234e47;
    box-shadow: 8px 16px 30px rgba(36, 78, 71, 0.2);
    transform: rotate(-4deg);
}

.phone-frame::before {
    position: absolute;
    z-index: 1;
    top: 6px;
    left: 31%;
    width: 38%;
    height: 8px;
    border-radius: 0 0 8px 8px;
    background: #234e47;
    content: "";
}

.phone-frame img {
    width: 100%;
    height: auto;
    border-radius: 20px;
}

.growth-bubble {
    position: absolute;
    z-index: 3;
    max-width: 155px;
    padding: 8px 10px;
    border: 1px solid #e0e7d9;
    border-radius: 14px;
    color: var(--deep);
    background: rgba(255, 253, 247, 0.96);
    box-shadow: 0 6px 22px rgba(54, 95, 78, 0.07);
    font-size: 12px;
    line-height: 1.5;
}

.bubble-top {
    top: 45px;
    right: 0;
}

.bubble-bottom {
    bottom: 32px;
    left: 0;
    color: #97601e;
    background: #fff9ed;
}

.section > h2 {
    margin-bottom: 10px;
    color: var(--deep);
    font-family: var(--serif);
    font-size: 25px;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
}

.section-lead {
    margin-bottom: 14px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.65;
    text-align: center;
}

/* 仅对齐关系介绍区域的参考字号与灰绿色，不改变其他区块的说明文字。 */
.intro-section > .section-lead {
    max-width: 320px;
    margin: 0 auto 11px;
    color: #6b7d76;
    font-size: 11px;
    line-height: 1.45;
}

.pain-grid,
.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.pain-card {
    padding: 8px;
    border: 1px solid #e5e9dc;
    border-radius: 12px;
    background: #fffdf8;
}

.pain-card h3 {
    margin-bottom: 4px;
    color: var(--deep);
    font-size: 14px;
    line-height: 1.5;
}

.pain-card p {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.6;
}

.intro-message {
    margin: 11px 0 10px;
    color: var(--deep);
    font-family: var(--serif);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.6;
    text-align: center;
}

.intro-message strong {
    color: var(--orange);
    font-weight: 600;
}

.intro-feature-title {
    margin-bottom: 9px;
    color: var(--deep);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
    text-align: center;
}

.feature-card {
    /* 两列卡片内均采用左图右文，图标跨标题和说明两行并垂直居中。 */
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    column-gap: 8px;
    align-content: center;
    padding: 8px;
    border: 1px solid #e5e9dc;
    border-radius: 14px;
    background: #fffdf8;
    text-align: left;
}

.feature-icon {
    grid-column: 1;
    grid-row: 1 / 3;
    align-self: center;
    width: 40px;
    height: 40px;
    margin: 0;
    border-radius: 50%;
}

.feature-card h3 {
    grid-column: 2;
    margin-bottom: 2px;
    color: var(--deep);
    font-size: 14px;
    line-height: 1.5;
}

.feature-card p {
    grid-column: 2;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.6;
}

.growth-path {
    margin-top: 12px;
    padding: 8px 6px;
    border-radius: 10px;
    color: var(--teal-strong);
    background: #e8f2e9;
    font-size: 12px;
    line-height: 1.5;
    text-align: center;
}

.growth-path span {
    margin: 0 2px;
    color: #83a394;
}

/* 第三组完整展示生命树五力合图，下方衔接训练产品。 */
.growth-section {
    --tree-background: #fdf9f3;
    /* 图中底色与区域中部接近，两端再柔和过渡回页面奶油白。 */
    background: linear-gradient(
        to bottom,
        var(--cream),
        var(--tree-background) 80px,
        var(--tree-background) calc(100% - 80px),
        var(--cream)
    );
}

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

.growth-section > .section-lead {
    margin-bottom: 4px;
    font-size: 12px;
}

.tree-visual {
    /* 原图 1254×1254，显示纵向 160～1080px，裁去顶部空白与底部图内说明。 */
    position: relative;
    height: 0;
    padding-bottom: 73.3652%;
    margin: 12px 0 24px;
    overflow: hidden;
}

.tree-visual::after {
    /* 仅柔化图片外围空白，保留文字标注区域；不拦截触摸和点击。 */
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    pointer-events: none;
    background:
        linear-gradient(
            to right,
            var(--tree-background),
            transparent 1.5%,
            transparent 98.5%,
            var(--tree-background)
        ),
        linear-gradient(
            to bottom,
            var(--tree-background),
            transparent 2%,
            transparent 95%,
            var(--tree-background)
        );
    content: "";
}

.tree-visual img {
    /* 只移动显示窗口，保持图片比例与五力标注完整，不重新绘制素材。 */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0;
    transform: translateY(-12.7592%);
}

.training-heading {
    margin: 0 0 12px;
    text-align: center;
}

.training-heading h3 {
    color: var(--deep);
    font-family: var(--serif);
    font-size: 19px;
    line-height: 1.4;
}

.training-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
}

.training-card {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    align-items: start;
    gap: 12px;
    padding: 10px;
    border: 1px solid #e1e6d8;
    border-radius: 12px;
    background: #fffdf7;
}

.training-cover {
    width: 88px;
    height: 88px;
    border-radius: 9px;
}

.training-copy {
    min-width: 0;
}

.training-card h4 {
    margin-bottom: 4px;
    color: var(--deep);
    font-size: 15px;
    line-height: 1.5;
}

.training-card p {
    color: var(--text);
    font-size: 13px;
    line-height: 1.6;
}

.training-card small {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
}

.growth-section > .growth-path {
    margin-top: 10px;
    padding-top: 6px;
    padding-bottom: 6px;
}

.screenshots-section {
    padding-top: var(--section-space);
    padding-bottom: 90px;
    padding-bottom: calc(90px + env(safe-area-inset-bottom));
    background: linear-gradient(#fff8f0, #f7eddd);
}

.screenshots {
    display: flex;
    gap: 12px;
    padding: 2px 0 6px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    scrollbar-color: #a9c8bd transparent;
    -webkit-overflow-scrolling: touch;
}

.screenshot-card {
    flex: 0 0 calc((100% - 12px) / 2.2);
    min-width: 0;
    overflow: hidden;
    border: 1px solid #dfe6dc;
    border-radius: 15px;
    background: #fffdf8;
    scroll-snap-align: start;
}

/* 原图均为 1080×1920，使用自然高度，去掉原 9:19.5 容器造成的上下空白。 */
.screenshot-frame {
    overflow: hidden;
    border-radius: 14px;
}

.screenshot-frame img {
    width: 100%;
    height: auto;
}

.screenshot-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 6px;
    color: var(--muted);
    font-size: 12px;
}

.round-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid #dce7dd;
    border-radius: 50%;
    color: var(--teal-strong);
    background: #fffdf8;
}

.round-button:disabled {
    cursor: default;
    opacity: 0.35;
}

.round-button.previous .icon {
    transform: rotate(180deg);
}

.ending-download {
    width: 100%;
    margin-top: 12px;
}

.ending-note {
    margin-top: 6px;
    color: var(--muted);
    font-size: 12px;
    text-align: center;
}

.site-footer {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid #e7e5d8;
    color: var(--muted);
    font-size: 12px;
    text-align: center;
}

.legal-links,
.contact-links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    column-gap: 12px;
}

.legal-links a,
.contact-links a,
.site-footer p > a {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
}

.contact-links {
    gap: 10px;
}

.site-footer p {
    margin: 4px 0 0;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.site-footer .health-note {
    margin-top: 8px;
}

/* 固定栏与窄版页面对齐；第四屏页脚为底栏和安全区保留空间。 */
.download-dock {
    position: fixed;
    z-index: 80;
    bottom: 0;
    left: 50%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    max-width: var(--page-width);
    padding: 10px 15px;
    padding: 10px 15px calc(10px + env(safe-area-inset-bottom));
    border-top: 1px solid #dce6dc;
    background: rgba(255, 253, 247, 0.97);
    box-shadow: 0 -6px 22px rgba(40, 77, 60, 0.05);
    transform: translateX(-50%);
}

.dock-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.dock-brand img {
    flex: 0 0 auto;
    border-radius: 50%;
}

.dock-brand strong,
.dock-brand small {
    display: block;
    white-space: nowrap;
}

.dock-brand strong {
    color: var(--deep);
    font-size: 14px;
}

.dock-brand small {
    color: var(--muted);
    font-size: 12px;
}

.download-dock .button {
    min-height: 48px;
    flex: 0 0 auto;
    padding: 10px 14px;
    font-size: 14px;
}

.download-dock .icon {
    width: 18px;
    height: 18px;
}

.has-modal .download-dock {
    visibility: hidden;
    pointer-events: none;
}

.modal {
    position: fixed;
    z-index: 1000;
    /* 显式设置四边，兼容尚不支持 inset 的 Safari。 */
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    align-items: center;
    justify-items: center;
    padding: 16px;
    padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
    background: rgba(21, 43, 45, 0.55);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.dialog-panel {
    width: 100%;
    max-width: 390px;
    max-height: calc(100vh - 40px);
    max-height: calc(100dvh - 40px);
    max-height: calc(var(--dialog-height, 100dvh) - 40px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 25px 22px 16px;
    border: 1px solid #f1f0e7;
    border-radius: 24px;
    background: #fffdf9;
    box-shadow: 0 20px 70px rgba(12, 36, 35, 0.18);
    text-align: center;
}

.dialog-panel h2 {
    margin-bottom: 10px;
    color: var(--deep);
    font-size: 21px;
    line-height: 1.5;
}

.dialog-panel h2:focus {
    outline: 0;
}

.dialog-description {
    margin-bottom: 18px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.8;
}

.dialog-panel .button {
    width: 100%;
}

.channel-panel {
    max-width: 420px;
    padding: 18px 16px 8px;
    border: 10px solid #f3f4f0;
    background: #fff;
}

.channel-panel h2 {
    font-size: 20px;
}

.channel-panel .dialog-description {
    font-size: 13px;
}

.dialog-status {
    margin: 17px 0;
    color: var(--muted);
    font-size: 14px;
}

.field-label {
    display: block;
    margin-bottom: 7px;
    color: var(--deep);
    font-size: 14px;
    font-weight: 600;
    text-align: left;
}

.phone-input {
    width: 100%;
    min-height: 50px;
    padding: 11px 13px;
    border: 1px solid #c7dfe0;
    border-radius: 12px;
    color: var(--text);
    background: #fff;
    font-size: 16px;
    line-height: 1.5;
    -webkit-appearance: none;
}

.phone-input[aria-invalid="true"] {
    border-color: #c24731;
}

.phone-input::placeholder {
    color: #7c8d89;
}

.field-hint {
    margin: 8px 0 12px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.8;
    text-align: left;
}

.field-error {
    margin: 0 0 12px;
    color: #b73725;
    font-size: 13px;
    text-align: left;
}

.field-error:empty,
.copy-status:empty {
    display: none;
}

.text-button {
    display: block;
    width: 100%;
    min-height: 44px;
    margin-top: 6px;
    padding: 10px 0;
    border: 0;
    color: var(--teal-strong);
    background: transparent;
    font-size: 13px;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.dialog-illustration {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    margin-bottom: 16px;
    border-radius: 18px;
    color: var(--teal-strong);
    background: #e9f3ec;
}

.dialog-illustration .icon {
    width: 29px;
    height: 29px;
}

.guide-steps {
    margin: 0 0 20px;
    padding: 14px 15px 14px 35px;
    border-radius: 14px;
    color: #3c665c;
    background: #eef5ee;
    font-size: 14px;
    line-height: 1.9;
    text-align: left;
}

.guide-steps li + li {
    margin-top: 5px;
}

.copy-status {
    margin: 10px 0 0;
    color: var(--teal-strong);
    font-size: 13px;
}

.dialog-logo {
    margin: 0 auto 14px;
    border-radius: 50%;
}

.dialog-actions {
    display: grid;
    gap: 11px;
}

.noscript-note {
    position: fixed;
    z-index: 2000;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 18px;
    color: var(--deep);
    background: #fff4de;
    text-align: center;
}

/* 低于参考屏高时先收紧视觉装饰，正文和辅助字分别保持 14px、12px。 */
@media (max-height: 799px) {
    .phone-stage {
        height: 220px;
    }

    .phone-frame {
        width: 104px;
    }

}

@media (max-height: 699px) {
    .hero h1 {
        font-size: 26px;
    }

    .hero-description {
        margin-bottom: 8px;
    }

    .phone-stage {
        height: 174px;
    }

    .phone-frame {
        width: 83px;
        border-radius: 21px;
    }

    .phone-frame img {
        border-radius: 16px;
    }
}

@media (max-width: 350px) {
    .site-header {
        gap: 8px;
        padding-right: 14px;
        padding-left: 14px;
    }

    .brand {
        gap: 6px;
    }

    .brand > img {
        width: 34px;
        height: 34px;
    }

    .brand-copy strong {
        font-size: 14px;
    }

    .page-screen {
        padding-right: 14px;
        padding-left: 14px;
    }

    .feature-card {
        grid-template-columns: 32px minmax(0, 1fr);
        column-gap: 6px;
    }

    .feature-icon {
        width: 32px;
        height: 32px;
    }

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

    .growth-section > h2 {
        font-size: 20px;
    }

    .training-card {
        grid-template-columns: 72px minmax(0, 1fr);
        gap: 10px;
        padding: 8px;
    }

    .training-cover {
        width: 72px;
        height: 72px;
    }

    .download-dock {
        gap: 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition: none !important;
    }
}
