/* MOODOOR 官网主样式（UTF-8） — 由 index.html 抽离 */
/* ── 阿里巴巴普惠体 3.0（项目使用字重：300/400/500）── */
@font-face {
    font-family: "AlibabaPuHuiTi";
    src:
        url("../fonts/AlibabaPuHuiTi-3-45-Light.otf") format("opentype"),
        url("../fonts/AlibabaPuHuiTi-3-45-Light.ttf") format("truetype");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "AlibabaPuHuiTi";
    src:
        url("../fonts/AlibabaPuHuiTi-3-55-Regular.otf") format("opentype"),
        url("../fonts/AlibabaPuHuiTi-3-55-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "AlibabaPuHuiTi";
    src:
        url("../fonts/AlibabaPuHuiTi-3-65-Medium.otf") format("opentype"),
        url("../fonts/AlibabaPuHuiTi-3-65-Medium.ttf") format("truetype");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

/* ── Poppins（项目使用字重：200/275/300/400/500）── */
@font-face {
    font-family: "Poppins";
    src: url("../fonts/Poppins-Light.ttf") format("truetype");
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Poppins";
    src: url("../fonts/Poppins-Light.ttf") format("truetype");
    font-weight: 275;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Poppins";
    src: url("../fonts/Poppins-Light.ttf") format("truetype");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Poppins";
    src: url("../fonts/Poppins-Light.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Poppins";
    src: url("../fonts/Poppins-Medium.ttf") format("truetype");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

:root {
    --accent: #9a9dd0;
    --accent-warm: #c4b0d6;
    --blush: #e8cdd8;
    --mist: #b8afc5;
    --bg: #0C1019;
    --card: #12141f;
    --text-primary: rgba(255, 255, 255, 0.9);
    --text-secondary: rgba(255, 255, 255, 0.56);
    --text-muted: rgba(255, 255, 255, 0.34);
    --border: rgba(255, 255, 255, 0.05);
    --content-w: 680px;
    --content-wide-w: 88%;
    --fs-bump: 2px;
}

/* 浅色主题设计令牌（版式与 index 一致，配色参考含浅色版本的品牌紫 + 暖灰底） */
html[data-theme="light"] {
    color-scheme: light;
    --accent: #7c6fad;
    --accent-warm: #a892c4;
    --blush: #c9a8bc;
    --mist: #9a8fb0;
    --bg: #f4f2f8;
    --card: #ffffff;
    --text-primary: rgba(32, 28, 48, 0.92);
    --text-secondary: rgba(32, 28, 48, 0.62);
    --text-muted: rgba(32, 28, 48, 0.4);
    --border: rgba(32, 28, 48, 0.1);
}

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

html {
    scroll-behavior: smooth;
    /* 用 100% 限宽；min-height 与 body 配合，便于布局 */
    width: 100%;
    max-width: 100%;
    min-height: 100%;
    overflow-x: hidden;
}

body {
    font-family: "Poppins", "AlibabaPuHuiTi", "PingFang SC", system-ui, sans-serif;
    background: var(--bg);
    color: var(--text-primary);
    width: 100%;
    max-width: 100%;
    min-height: 100%;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ── 自定义鼠标：白色圆 + difference 反色；仅精细指针设备（桌面鼠标）── */
.cursor-follower {
    position: fixed;
    left: 0;
    top: 0;
    width: 40px;
    height: 40px;
    margin-left: 0;
    margin-top: 0;
    border-radius: 50%;
    background: #fff;
    mix-blend-mode: difference;
    pointer-events: none;
    z-index: 2147483646;
    transition: width 0.22s ease, height 0.22s ease, margin 0.22s ease;
    transform: translate3d(0, 0, 0) translate(-20px, -20px);
    will-change: transform;
}

.cursor-follower.cursor-follower--big {
    width: 50px;
    height: 50px;
    transform: translate3d(0, 0, 0) translate(-25px, -25px);
}

.cursor-follower.cursor-follower--hidden {
    opacity: 0;
}

/* 弹窗打开时降低混合开销，避免 Hero 视频 + 毛玻璃 + difference 叠加导致跟手卡顿 */
html.qr-open .cursor-follower {
    mix-blend-mode: normal;
    background: rgba(255, 255, 255, 0.92);
}

@media (pointer: coarse) {
    .cursor-follower {
        display: none;
    }
}

@media (pointer: fine) {
    html.has-cursor-follower body {
        cursor: none;
    }
}

::-webkit-scrollbar {
    width: 0;
}

/* ── 导航（多端：安全区、flex 分配宽度、文案省略防横向溢出） ── */
.nav {
    position: static;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    padding-top: max(24px, env(safe-area-inset-top, 0px));
    padding-right: max(48px, env(safe-area-inset-right, 0px));
    padding-bottom: 24px;
    padding-left: max(48px, env(safe-area-inset-left, 0px));
    background: rgba(12, 16, 25, 0.45);
    backdrop-filter: blur(40px);
    border-bottom: 1px solid var(--border);
    transition: background 0.7s ease, padding 0.35s ease, opacity 0.28s ease, transform 0.28s ease, visibility 0.28s ease;
}

/* 滚动后吸顶：切到 fixed，并由 site-header 占位避免内容跳动 */
.nav.nav-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
}

/* Hero 区域内隐藏整块 site-header，滚过 Hero 底部再显示 */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 120;
    transition: opacity 0.28s ease, transform 0.28s ease, visibility 0.28s ease;
}

.site-header.site-header-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);
}

body.nav-fixed .site-header {
    height: var(--nav-height, 0px);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    /* 窄屏时优先压缩左侧，保全语言/下载触控区 */
    flex: 1 1 0%;
}

.nav-logo-img {
    height: 22px;
    width: auto;
    flex-shrink: 0;
}

.nav-brand {
    font-family: "Poppins", system-ui;
    font-weight: 300;
    font-size: calc(14px + var(--fs-bump));
    letter-spacing: 0.12em;
    opacity: 0.7;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    max-width: 200px;
}

.nav-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    flex: 0 0 auto;
    min-width: 0;
}

/* 主题切换：日月并列，当前模式高亮；分区点击见 main.js */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: transparent;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    appearance: none;
    font-family: inherit;
    margin: 0;
    overflow: hidden;
    transition: border-color 0.35s ease, background 0.35s ease;
    -webkit-tap-highlight-color: transparent;
}

.theme-toggle:hover {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
}

.theme-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    color: rgba(255, 255, 255, 0.35);
    transition: color 0.35s ease, background 0.35s ease;
    /* 需可点击以区分浅色 / 深色入口 */
    pointer-events: auto;
    cursor: pointer;
}

.theme-icon.active {
    color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.06);
}

.theme-icon svg {
    width: 16px;
    height: 16px;
}

.nav-cta {
    font-family: "Poppins", system-ui;
    font-size: calc(10px + var(--fs-bump));
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 10px 28px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), var(--accent-warm));
    color: #fff;
    text-decoration: none;
    font-weight: 400;
    transition: all 0.6s ease;
    box-shadow: 0 4px 20px rgba(154, 157, 208, 0.14);
    flex-shrink: 0;
    text-align: center;
    -webkit-tap-highlight-color: transparent;
}

.nav-cta:hover {
    box-shadow: 0 8px 36px rgba(154, 157, 208, 0.24);
    transform: translateY(-2px);
}

/* 语言切换器 */
.lang-switcher {
    position: relative;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    max-width: min(200px, 100%);
}

.lang-current {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: calc(12px + var(--fs-bump));
    letter-spacing: 0.06em;
    color: var(--text-secondary);
    padding: 7px 14px;
    border-radius: 10px;
    border: 1px solid var(--border);
    transition: all 0.5s ease;
    user-select: none;
    max-width: min(200px, 100%);
    -webkit-tap-highlight-color: transparent;
    /* button 元素重置，样式与原先 div 一致 */
    appearance: none;
    background: transparent;
    font-family: inherit;
    margin: 0;
    text-align: inherit;
}

/* 语言按钮内文案过长时省略，避免把下载按钮挤出视口 */
#langLabel {
    display: inline-block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
}

.lang-current:hover {
    border-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.65);
}

.lang-current svg {
    width: 10px;
    height: 10px;
    opacity: 0.35;
    transition: transform 0.4s ease;
}

.lang-switcher.open .lang-current svg {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 100%;
    background: rgba(18, 20, 31, 0.96);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    min-width: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
}

.lang-switcher.open .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: block;
    width: 100%;
    padding: 11px 18px;
    border: none;
    background: none;
    color: var(--text-secondary);
    font-size: calc(12px + var(--fs-bump));
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    letter-spacing: 0.04em;
}

.lang-option:hover {
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.75);
}

.lang-option.active {
    color: var(--accent-warm);
}

/* ── Hero 视频背景 ── */
.hero {
    /* 首屏高度：等于视口高度 */
    min-height: var(--viewport-height, 100vh);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
    padding: 120px 48px 100px;
    overflow: hidden;
}

@media (min-width: 1024px) {
    .hero {
        min-height: var(--viewport-height, 100vh);
    }
}

/* 视频层 */
.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
}

/* 多层蒙版：底部渐变 + 整体压暗，保证文字可读 */
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        /* 顶部轻压暗（导航区） */
        linear-gradient(180deg,
            rgba(12, 16, 25, 0.55) 0%,
            rgba(12, 16, 25, 0.1) 25%,
            rgba(12, 16, 25, 0.05) 50%,
            rgba(12, 16, 25, 0.25) 78%,
            rgba(12, 16, 25, 0.72) 100%),
        /* 中心彩色光晕，继承品牌感 */
        radial-gradient(ellipse 80% 60% at 50% 48%,
            rgba(154, 157, 208, 0.08) 0%,
            rgba(196, 176, 214, 0.04) 40%,
            transparent 70%);
}

/* 浮动光球（保留品牌氛围，叠在视频上） */
.hero-orb-1 {
    position: absolute;
    top: 20%;
    right: 15%;
    z-index: 1;
    width: min(280px, 42%);
    height: min(280px, 42%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(196, 176, 214, 0.06), transparent 70%);
    filter: blur(70px);
    pointer-events: none;
    animation: float-orb 14s ease-in-out infinite;
}

.hero-orb-2 {
    position: absolute;
    bottom: 25%;
    left: 10%;
    z-index: 1;
    width: min(220px, 36%);
    height: min(220px, 36%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(232, 205, 216, 0.05), transparent 70%);
    filter: blur(60px);
    pointer-events: none;
    animation: float-orb 18s ease-in-out infinite reverse;
}

@keyframes float-orb {

    0%,
    100% {
        transform: translate(0, 0);
    }

    33% {
        transform: translate(18px, -12px);
    }

    66% {
        transform: translate(-12px, 8px);
    }
}

/* ── Hero 文字区 ── */
.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: min(860px, 100%);
    transform: translateY(28px);
}

.hero-eyebrow {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 0;
    margin-bottom: 56px;
}

.hero-eyebrow-line {
    width: 2rem;
    height: 1px;
    background: rgba(196, 176, 214, 0.25);
}

.hero-eyebrow-text {
    font-family: "Poppins", system-ui;
    font-size: calc(10px + var(--fs-bump));
    font-weight: 300;
    letter-spacing: 0.5em;
    text-transform: uppercase;
    color: var(--accent-warm);
    opacity: 0.75;
    white-space: nowrap;
}

.hero-title {
    font-family: "AlibabaPuHuiTi", "PingFang SC", system-ui;
    font-size: calc(4.75rem + var(--fs-bump));
    font-weight: 300;
    line-height: 1.2;
    letter-spacing: 0.08em;
    text-shadow: 0 2px 40px rgba(0, 0, 0, 0.45);
}

html[lang="en"] .hero-title {
    font-family: "Poppins", system-ui;
    font-size: calc(4rem + var(--fs-bump));
    font-weight: 300;
    letter-spacing: -0.01em;
}

.hero-title-line1 {
    display: block;
    color: rgba(255, 255, 255, 0.88);
}

.hero-title-line2 {
    display: block;
    background: linear-gradient(110deg, var(--accent-warm) 0%, rgba(255, 255, 255, 0.92) 50%, var(--blush) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 112px;
}

/* 仅首页 Hero 的下载按钮：增强对比，避免融进视频光效 */
.hero .hero-actions .btn-primary {
    box-shadow:
        0 18px 70px rgba(0, 0, 0, 0.42),
        0 10px 48px rgba(154, 157, 208, 0.18),
        0 0 0 1px rgba(255, 255, 255, 0.10);
}

.btn-primary {
    font-family: "Poppins", system-ui;
    padding: 14px 40px;
    border-radius: 999px;
    font-size: calc(11px + var(--fs-bump));
    font-weight: 300;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    background: linear-gradient(135deg, var(--accent), var(--accent-warm));
    color: #fff;
    transition: all 0.7s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 24px rgba(154, 157, 208, 0.18);
}

.btn-primary:hover {
    box-shadow: 0 10px 48px rgba(154, 157, 208, 0.3);
    transform: translateY(-3px);
}

/* ── 内容容器 ── */
.content-narrow {
    max-width: var(--content-w);
    margin: 0 auto;
    width: 100%;
}

.content-wide {
    max-width: var(--content-wide-w);
    margin: 0 auto;
    width: 100%;
}

/* ── 通用排版 ── */
.section-label {
    font-family: "Poppins", system-ui;
    font-size: calc(10px + var(--fs-bump));
    letter-spacing: 0.42em;
    text-transform: uppercase;
    color: rgba(196, 176, 214, 0.85);
    margin-bottom: 24px;
    font-weight: 300;
    display: block;
}

.section-title {
    font-family: "AlibabaPuHuiTi", "PingFang SC", system-ui;
    font-size: calc(2.5rem + var(--fs-bump));
    font-weight: 400;
    line-height: 1.35;
    margin-top: 0;
    margin-bottom: 28px;
    letter-spacing: 0.02em;
    color: var(--text-primary);
    text-align: left;
}

html[lang="en"] .section-title {
    font-family: "Poppins", system-ui;
    font-weight: 300;
    letter-spacing: -0.01em;
}

.section-desc {
    font-family: "AlibabaPuHuiTi", "PingFang SC", system-ui;
    font-size: calc(16px + var(--fs-bump));
    line-height: 2.05;
    color: var(--text-secondary);
    font-weight: 300;
    letter-spacing: 0.02em;
}

html[lang="en"] .section-desc {
    font-family: "Poppins", system-ui;
    font-weight: 200;
}

.section-tags {
    display: flex;
    gap: 28px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.section-tag {
    font-family: "Poppins", system-ui;
    font-size: calc(10px + var(--fs-bump));
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.42);
    font-weight: 300;
}

/* ── 功能 Section ── */
.feature-section {
    padding: 120px 48px;
    /* 宽屏下整块区域在视口内水平居中（子级 feature-layout 再负责版心宽度） */
    display: flex;
    flex-direction: column;
    align-items: center;
}



.feature-layout {
    width: 100%;
    /* 百分比版心 + 像素上限，超宽屏不再无限拉宽，始终保持左右留白对称 */
    max-width: min(var(--content-wide-w), 1680px);
    margin-left: auto;
    margin-right: auto;
    /* 双栏时用 space-between 把图文推向两端；gap 仅保证最窄时的最小间距 */
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
}


.feature-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 0 1 auto;
    max-width: 520px;
    width: min(100%, 520px);
    min-width: 0;
    text-align: justify;
}

/* 双栏配图列：最大宽度由 .ai-chat / .feature-section-meditation 分别指定；移动端通栏见媒体查询 */
.feature-img-col {
    flex: 0 1 auto;
    width: 100%;
    min-width: 0;
}

/* 配图框：宽度随列；高度由 aspect-ratio 与 max-height 自适应 */
.feature-img-col .img-frame {
    width: 100%;
    height: auto;
    aspect-ratio: 4/5;
    max-height: 680px;
}

/* AI 对话区块：整体再下移一点（仅本段加顶部留白） */
.ai-chat.feature-section {
    padding-top: 160px;
}

/* AI：图最宽 900px；列内 img-frame 靠左；高度由下方比例与 max-height 自适应 */
.ai-chat .feature-img-col {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    max-width: min(900px, 100%);
}

/* AI 区块图文距离再拉开一档 */
.ai-chat .feature-layout {
    gap: 56px;
}

/* AI 对话配图：完整呈现（contain），避免灰边；比例略宽于默认 4/5 */
.ai-chat .feature-img-col .img-frame {
    aspect-ratio: 4/3;
    background: var(--bg);
    box-shadow: none;
}

.ai-chat .img-frame img {
    object-fit: contain;
    filter: brightness(0.92) saturate(0.9) contrast(0.98);
}

.ai-chat .img-frame::after {
    display: none;
}

.ai-chat .img-frame:hover img {
    transform: none;
}

.feature-section.feature-section-meditation .feature-layout {
    /* 保持与 .feature-layout 相同的主轴 row，避免 row-reverse 下部分浏览器对 space-between / 子项 width 计算异常 */
    align-items: center;
}

/* DOM 顺序仍为配图→文案；这里用 order 达成左文右图，逻辑与 AI 区一致（主轴正向 + space-between） */
.feature-section.feature-section-meditation .feature-layout .feature-text {
    order: 1;
    padding-top: 0;
}

/* 冥想：图最宽 500px、高度自适应（见 .feature-img-col .img-frame 的 aspect-ratio / height） */
.feature-section.feature-section-meditation .feature-layout .feature-img-col {
    order: 2;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    max-width: min(600px, 100%);
}

/* 非移动端：按屏宽分档调整图文间距与配图列宽 */
@media (min-width: 769px) and (max-width: 1199px) {
    .feature-layout {
        gap: 26px;
    }

    .ai-chat .feature-layout {
        gap: 44px;
    }

    .feature-text {
        width: 47%;
        max-width: min(520px, 47%);
    }

    .ai-chat .feature-img-col {
        width: 51%;
        max-width: min(900px, 51%);
    }

    .feature-section.feature-section-meditation .feature-layout .feature-img-col {
        width: 43%;
        max-width: min(600px, 43%);
    }

    /* 该尺寸段下 feature-text 文案略微缩小 */
    .feature-text .section-label {
        font-size: calc(9px + var(--fs-bump));
        margin-bottom: 18px;
    }

    .feature-text .section-title {
        font-size: calc(2.18rem + var(--fs-bump));
        margin-bottom: 22px;
    }

    .feature-text .section-desc {
        font-size: calc(14px + var(--fs-bump));
        line-height: 1.9;
    }

    .feature-text .section-tag {
        font-size: calc(9px + var(--fs-bump));
        letter-spacing: 0.2em;
    }
}

@media (min-width: 1200px) and (max-width: 1599px) {
    .feature-layout {
        gap: 34px;
    }

    .ai-chat .feature-layout {
        gap: 120px;
    }

    .feature-text {
        width: 44%;
        max-width: min(520px, 44%);
    }

    .ai-chat .feature-img-col {
        width: 52%;
        max-width: min(900px, 52%);
    }

    .feature-section.feature-section-meditation .feature-layout .feature-img-col {
        width: 41%;
        max-width: min(600px, 41%);
    }
}

@media (min-width: 1600px) {
    .feature-layout {
        gap: 42px;
    }

    .ai-chat .feature-layout {
        gap: 72px;
    }

    .feature-text {
        width: 42%;
        max-width: min(520px, 42%);
    }

    .ai-chat .feature-img-col {
        width: 54%;
        max-width: min(900px, 54%);
    }

    .feature-section.feature-section-meditation .feature-layout .feature-img-col {
        width: 40%;
        max-width: min(600px, 40%);
    }
}

/* ── 图片 ── */
.img-frame {
    position: relative;
    overflow: hidden;
    background: #181b2a;
    border-radius: 20px;
}

.img-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.8) saturate(0.75) contrast(0.94);
    transition: all 1.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.img-frame:hover img {
    filter: brightness(0.9) saturate(0.85) contrast(0.97);
    transform: scale(1.02);
}

.img-frame::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(12, 16, 25, 0.35) 100%);
    pointer-events: none;
}

/* 语义化分隔线：使用 hr；上下外边距替代原 section-spacer，保持与区段 padding 的留白节奏 */
.section-rule {
    display: block;
    border: none;
    max-width: var(--content-w);
    margin: 20px auto;
    height: 1px;
    background: var(--border);
}

/* 桌面端工具卡错落布局（原先内联 style，便于维护） */
.tools-grid .tool-card:nth-child(2),
.tools-grid .tool-card:nth-child(4) {
    margin-top: 52px;
}

/* 键盘用户：跳到主内容（默认离屏，聚焦时出现） */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 300;
    padding: 12px 20px;
    background: var(--card);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 8px;
    border: 1px solid var(--border);
    font-size: 14px;
}

.skip-link:focus {
    left: max(16px, env(safe-area-inset-left, 0px));
    top: max(12px, env(safe-area-inset-top, 0px));
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* ── 工具卡 ── */
.tools-section {
    padding: 120px 48px 0;
}

.tools-section .section-title {
    text-align: center;
}

.tools-section .content-narrow {
    text-align: center;
    margin-bottom: 80px;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: var(--content-wide-w);
    margin: 0 auto;
}

.tool-card {
    cursor: pointer;
    position: relative;
    transition: transform 0.7s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.tool-card:hover {
    transform: translateY(-5px);
}

.tool-card .img-frame {
    aspect-ratio: 3/4;
    margin-bottom: 24px;
}

.tool-label {
    font-family: "AlibabaPuHuiTi", "PingFang SC", system-ui;
    text-align: center;
    font-size: calc(15px + var(--fs-bump));
    font-weight: 400;
    color: rgba(255, 255, 255, 0.55);
    transition: color 0.6s ease;
    letter-spacing: 0.04em;
    margin: 0;
}

html[lang="en"] .tool-label {
    font-family: "Poppins", system-ui;
    font-weight: 300;
}

.tool-card:hover .tool-label {
    color: var(--accent-warm);
}

/* ── 分隔装饰 ── */
.section-divider {
    display: flex;
    justify-content: center;
    padding: 12px 0;
}

.section-divider-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(196, 176, 214, 0.18);
}

/* ── 评价 ── */
.reviews {
    /* 替代 tools 与 reviews 之间的 section-spacer */
    margin-top: 60px;
    padding: 200px 0 120px;
    overflow: hidden;
}

.reviews-title {
    font-family: "Poppins", system-ui;
    text-align: center;
    font-size: calc(15px + var(--fs-bump));
    letter-spacing: 0.45em;
    text-transform: uppercase;
    color: rgba(196, 176, 214, 0.85);
    margin-top: 0;
    margin-bottom: 72px;
    font-weight: 300;
}

.marquee-track {
    display: flex;
    gap: 24px;
    width: max-content;
    animation: marquee 80s linear infinite;
}

.marquee-track:hover {
    animation-play-state: paused;
}

@keyframes marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.review-card {
    width: 340px;
    padding: 40px 36px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    transition: all 0.7s cubic-bezier(0.25, 0.8, 0.25, 1);
    flex-shrink: 0;
}

.review-card:hover {
    border-color: rgba(154, 157, 208, 0.12);
    transform: translateY(-3px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
}

.review-text {
    font-family: "AlibabaPuHuiTi", "PingFang SC", system-ui;
    font-size: calc(14.5px + var(--fs-bump));
    line-height: 2.05;
    color: var(--text-secondary);
    font-weight: 300;
}

html[lang="en"] .review-text {
    font-family: "Poppins", system-ui;
    font-weight: 200;
    font-style: italic;
}

.review-author {
    font-family: "Poppins", system-ui;
    margin: 28px 0 0;
    font-size: calc(10px + var(--fs-bump));
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--accent-warm);
    font-weight: 300;
}

/* ── CTA ── */
.cta-section {
    padding: 220px 48px;
    text-align: center;
    position: relative;
}

.cta-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 700px;
    height: 500px;
    background: radial-gradient(ellipse, rgba(154, 157, 208, 0.07) 0%, rgba(232, 205, 216, 0.025) 40%, transparent 70%);
    pointer-events: none;
    filter: blur(90px);
}

.cta-inner {
    position: relative;
    z-index: 2;
    max-width: var(--content-w);
    margin: 0 auto;
}

.cta-title {
    font-family: "AlibabaPuHuiTi", "PingFang SC", system-ui;
    font-size: calc(2.2rem + var(--fs-bump));
    font-weight: 400;
    line-height: 1.45;
    margin-top: 0;
    margin-bottom: 28px;
    letter-spacing: 0.02em;
}

html[lang="en"] .cta-title {
    font-family: "Poppins", system-ui;
    font-weight: 300;
}

.cta-desc {
    font-family: "AlibabaPuHuiTi", "PingFang SC", system-ui;
    font-size: calc(14px + var(--fs-bump));
    color: var(--text-secondary);
    font-weight: 300;
    margin-bottom: 52px;
    letter-spacing: 0.02em;
    line-height: 1.9;
}

html[lang="en"] .cta-desc {
    font-family: "Poppins", system-ui;
    font-weight: 200;
}

/* ── Footer ── */
.footer {
    padding: 60px 48px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.footer-brand {
    font-family: "Poppins", system-ui;
    font-size: calc(12px + var(--fs-bump));
    font-weight: 300;
    letter-spacing: 0.12em;
    opacity: 0.6;
    margin: 0;
}

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

.footer-links a {
    font-family: "AlibabaPuHuiTi", "PingFang SC", system-ui;
    font-size: calc(12px + var(--fs-bump));
    color: rgba(255, 255, 255, 0.46);
    text-decoration: none;
    letter-spacing: 0.06em;
    transition: color 0.5s ease;
    font-weight: 300;
}

html[lang="en"] .footer-links a {
    font-family: "Poppins", system-ui;
}

.footer-links a:hover {
    color: rgba(255, 255, 255, 0.68);
}

.footer-copy {
    font-family: "AlibabaPuHuiTi", "PingFang SC", system-ui;
    font-size: calc(11px + var(--fs-bump));
    color: rgba(255, 255, 255, 0.34);
    text-align: center;
    line-height: 2.05;
    font-weight: 300;
}

/* ── 下载二维码弹窗（各端：安全区、短视口可滚动、卡片限高内滚） ── */
.qr-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: 0;
    /* 与刘海/横条对齐，并留出上下呼吸边距 */
    padding:
        max(28px, calc(env(safe-area-inset-top, 0px) + 12px)) max(28px, env(safe-area-inset-right, 0px)) max(28px, calc(env(safe-area-inset-bottom, 0px) + 12px)) max(28px, env(safe-area-inset-left, 0px));
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: none;
}

.qr-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: none;
}

.qr-backdrop {
    position: absolute;
    inset: 0;
    /* 统一背景层，避免只在卡片区域出现突兀的“清晰→模糊”分界 */
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.qr-card {
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 0 1 auto;
    /* 关闭钮仅相对本卡片定位（不用 env safe-area，避免与 .qr-modal 外层安全区重复、断点间跳动） */
    width: min(100%, 920px);
    max-width: min(100%, 920px);
    /* 限高：像素上限 + 不超过弹层可用高度 */
    max-height: min(800px, 100%);
    min-height: 360px;
    border-radius: 48px;
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    background: none;
    /* 提升通透与层次，让卡片更接近液态玻璃观感 */
    -webkit-backdrop-filter: blur(10px) contrast(1.25) brightness(1.04) saturate(1.18);
    backdrop-filter: blur(10px) contrast(1.25) brightness(1.04) saturate(1.18);
    /* 保持静止，避免卡片位移动画 */
    opacity: 1;
    transform: none;
    transition: none;
}

.qr-modal.is-open .qr-card {
    transform: none;
}

/* 触控端：Safari/WebKit 需要非全透明底才能稳定合成 backdrop-filter；折射在移动端仍依赖桌面 Chromium */
@media (pointer: coarse) {
    .qr-card {
        background: rgba(14, 18, 28, 0.55);
        -webkit-backdrop-filter: blur(14px) saturate(1.12);
        backdrop-filter: blur(14px) saturate(1.12);
    }

    html[data-theme="light"] .qr-card {
        background: rgba(255, 255, 255, 0.78);
    }
}

/* 不支持 backdrop-filter 的浏览器：取消毛玻璃声明，用实色底（脚本会加 .qr-card--no-frost；此处为无 JS/首帧兜底） */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .qr-card {
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
        background: rgba(18, 22, 34, 0.94);
    }

    html[data-theme="light"] .qr-card {
        background: rgba(252, 250, 255, 0.96);
    }

    .qr-modal .qr-backdrop {
        background: rgba(7, 10, 18, 0.72);
    }

    html[data-theme="light"] .qr-modal .qr-backdrop {
        background: rgba(32, 28, 48, 0.45);
    }
}

/* 脚本检测不支持时：提高优先级，覆盖触控端的半透明+模糊内联样式 */
.qr-card.qr-card--no-frost {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    background: rgba(18, 22, 34, 0.94);
}

html[data-theme="light"] .qr-card.qr-card--no-frost {
    background: rgba(252, 250, 255, 0.96);
}

.qr-modal:has(.qr-card--no-frost) .qr-backdrop {
    background: rgba(7, 10, 18, 0.72);
}

html[data-theme="light"] .qr-modal:has(.qr-card--no-frost) .qr-backdrop {
    background: rgba(32, 28, 48, 0.45);
}

.qr-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: none;
    padding: 0;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 28px;
    font-weight: 300;
    line-height: 1;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.qr-close:hover {
    opacity: 0.92;
    transform: scale(1.04);
}

.qr-inner {
    position: relative;
    z-index: 1;
    flex: 1 1 auto;
    min-height: 0;
    display: grid;
    grid-template-columns: 1fr;
    align-content: center;
    justify-items: center;
    row-gap: 22px;
    /* 顶距为关闭钮 52px + 边距 12px + 与内容间距 16px */
    padding:
        80px 48px max(48px, env(safe-area-inset-bottom, 0px));
    padding-left: max(48px, env(safe-area-inset-left, 0px));
    padding-right: max(48px, env(safe-area-inset-right, 0px));
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    text-align: center;
    box-sizing: border-box;
}

.qr-brand {
    font-family: "Poppins", system-ui, sans-serif;
    font-weight: 275;
    font-style: normal;
    font-size: 64px;
    line-height: 1;
    letter-spacing: 0;
    color: rgba(222, 206, 255, 1);
    margin: 0 0 13px;
}

.qr-sub {
    font-family: "AlibabaPuHuiTi", "Alibaba PuHuiTi 3.0", "PingFang SC", system-ui;
    font-weight: 300;
    font-style: normal;
    font-size: 20px;
    line-height: 24px;
    letter-spacing: 0;
    /* Figma 为字色半透明灰；若写成 background 会变成整行底块，此处用 color */
    color: rgba(217, 217, 217, 0.8);
    margin: 0 0 29px;
}

/* 双二维码：iOS / Android 并排，小屏可换行 */
.qr-code-block {
    width: 100%;
    max-width: 520px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.qr-code-pair {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 24px 40px;
    width: 100%;
}

.qr-code-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.qr-code-caption {
    font-family: "AlibabaPuHuiTi", "Alibaba PuHuiTi 3.0", "PingFang SC", system-ui;
    font-weight: 300;
    font-size: 15px;
    line-height: 1.35;
    color: rgba(217, 217, 217, 0.88);
    margin: 0;
    text-align: center;
    max-width: 220px;
}

/* 脚注仅在 Android 列说明（qr-code-caption）下方展示 */
.qr-footnote {
    font-family: "AlibabaPuHuiTi", "Alibaba PuHuiTi 3.0", "PingFang SC", system-ui;
    font-weight: 300;
    font-size: 12px;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.42);
    margin: 0;
    text-align: center;
    max-width: 220px;
}

.qr-code-wrap {
    width: 200px;
    height: 200px;
    box-sizing: border-box;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
    display: grid;
    place-items: center;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
    padding: 0;
}

.qr-code-wrap img {
    width: 200px;
    height: 200px;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.qr-hint:empty {
    display: none;
    margin-top: 0;
}

/* 极窄屏：双码纵向排列，避免挤压 */
@media (max-width: 420px) {
    .qr-code-pair {
        flex-direction: column;
        align-items: center;
    }
}

/* ── 平板 / 小笔电（≤1024px）：收紧留白与栅格间距，避免 iPad 横竖屏拥挤 ── */
@media (max-width: 1024px) {

    /* 手机/平板：主内容区改为占满可用宽度（桌面仍保留 88% 留白构图） */
    :root {
        --content-wide-w: 100%;
    }

    .nav {
        padding-top: max(20px, env(safe-area-inset-top, 0px));
        padding-bottom: 20px;
        padding-right: max(24px, env(safe-area-inset-right, 0px));
        padding-left: max(24px, env(safe-area-inset-left, 0px));
        gap: 12px;
    }

    .nav-brand {
        max-width: min(160px, 42%);
    }

    .nav-right {
        gap: 12px;
    }

    .nav-cta {
        padding: 10px 20px;
        font-size: calc(9px + var(--fs-bump));
        letter-spacing: 0.14em;
    }

    /* 平板触控：语言入口略加大命中区域 */
    .lang-current {
        min-height: 40px;
        box-sizing: border-box;
    }

    .theme-toggle {
        min-height: 40px;
    }

    .lang-switcher {
        max-width: min(200px, 100%);
    }

    .feature-section {
        padding: 80px max(24px, env(safe-area-inset-left, 0px)) 72px max(24px, env(safe-area-inset-right, 0px));
    }

    .feature-layout {
        gap: 22px;
    }

    .ai-chat.feature-section {
        padding-top: 96px;
    }

    .tools-section {
        padding: 112px max(24px, env(safe-area-inset-left, 0px)) 0 max(24px, env(safe-area-inset-right, 0px));
    }

    .tools-section .content-narrow {
        margin-bottom: 52px;
    }

    .tools-grid {
        gap: 18px;
    }

    .cta-section {
        padding: 76px max(24px, env(safe-area-inset-left, 0px)) 76px max(24px, env(safe-area-inset-right, 0px));
    }

    .cta-title {
        margin-bottom: 22px;
    }

    .cta-desc {
        margin-bottom: 40px;
    }

    .qr-modal {
        padding:
            max(20px, calc(env(safe-area-inset-top, 0px) + 10px)) max(20px, env(safe-area-inset-right, 0px)) max(20px, calc(env(safe-area-inset-bottom, 0px) + 10px)) max(20px, env(safe-area-inset-left, 0px));
    }

    .qr-card {
        width: min(100%, 720px);
        max-width: min(100%, 720px);
        min-height: 400px;
    }

    .qr-inner {
        padding:
            78px max(32px, env(safe-area-inset-right, 0px)) 40px max(32px, env(safe-area-inset-left, 0px));
    }

    .reviews {
        padding-left: max(16px, env(safe-area-inset-left, 0px));
        padding-right: max(16px, env(safe-area-inset-right, 0px));
    }
}

/* ── 响应式 ── */
@media (max-width: 960px) {
    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ── 手机 / 小平板竖屏（≤768px）：单栏与触摸目标 ── */
@media (max-width: 768px) {
    html {
        -webkit-text-size-adjust: 100%;
    }

    /* 手机端整体收字号（不影响桌面：仅视口 ≤768px 生效） */
    :root {
        --fs-bump: 0px;
    }

    .nav {
        padding-top: max(14px, env(safe-area-inset-top, 0px));
        padding-bottom: 14px;
        padding-left: max(16px, env(safe-area-inset-left, 0px));
        padding-right: max(16px, env(safe-area-inset-right, 0px));
        gap: 8px;
    }

    /* 与桌面一致：左侧可缩，品牌名过长省略 */
    .nav-logo {
        flex: 1 1 0%;
        min-width: 0;
    }

    .nav-logo-img {
        height: 20px;
    }

    .nav-brand {
        max-width: 108px;
    }

    .nav-right {
        gap: 8px;
        align-items: center;
    }

    .lang-switcher {
        max-width: min(148px, 100%);
    }

    .lang-current {
        min-height: 44px;
        padding: 8px 10px;
        display: inline-flex;
        align-items: center;
        max-width: 100%;
        box-sizing: border-box;
    }

    .theme-toggle {
        min-height: 44px;
    }

    #langLabel {
        max-width: min(5rem, 100%);
    }

    .lang-dropdown {
        right: 0;
        left: auto;
        top: calc(100% + 8px);
        width: 100%;
        min-width: 0;
        max-width: none;
        border-radius: 12px;
        box-shadow: 0 14px 36px rgba(0, 0, 0, 0.32);
        transform: translateY(-6px);
        box-sizing: border-box;
    }

    .lang-option {
        min-height: 44px;
        padding: 10px 14px;
        line-height: 1.2;
    }

    .nav-cta {
        min-height: 44px;
        min-width: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 10px 14px;
        letter-spacing: 0.1em;
        font-size: 10px;
        -webkit-tap-highlight-color: transparent;
        max-width: min(120px, 46%);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .lang-current,
    .lang-option {
        font-size: 10px;
    }

    .hero {
        padding-top: max(104px, calc(64px + env(safe-area-inset-top, 0px)));
        padding-bottom: max(96px, env(safe-area-inset-bottom, 0px));
        padding-left: max(16px, env(safe-area-inset-left, 0px));
        padding-right: max(16px, env(safe-area-inset-right, 0px));
    }

    /* 小屏 Hero 通栏，与左右内边距对齐 */
    .hero-content {
        max-width: 100%;
    }

    .hero-eyebrow-text {
        letter-spacing: 0.24em;
    }

    .hero-title {
        font-size: 2.25rem;
        letter-spacing: 0.05em;
    }

    html[lang="en"] .hero-title {
        font-size: 2rem;
    }

    .hero-actions .btn-primary {
        min-height: 48px;
        width: min(100%, 300px);
        padding-left: 28px;
        padding-right: 28px;
        font-size: 9px;
        letter-spacing: 0.11em;
    }

    /* 功能区块：手机端上下留白一致并略收紧 */
    .feature-section {
        padding: 40px max(16px, env(safe-area-inset-left, 0px)) 40px max(16px, env(safe-area-inset-right, 0px));
    }

    .feature-layout {
        flex-direction: column;
        flex-wrap: nowrap;
        justify-content: flex-start;
        align-items: stretch;
        gap: 24px;
    }

    .feature-layout.reverse .feature-text {
        order: 1;
    }

    .feature-layout.reverse .feature-img-col {
        order: 2;
    }

    /* 移动端：通栏略扁比例，高度随宽自适应并限制极高，避免一图占满屏 */
    .feature-img-col .img-frame {
        aspect-ratio: 4/3;
        max-height: 420px;
        width: 100%;
    }

    .feature-text {
        max-width: 100%;
        width: 100%;
        flex: none;
    }

    .feature-img-col {
        max-width: none;
        width: 100%;
        flex: none;
    }

    /* 小屏单栏：配图通栏，取消桌面端列内 flex 对齐 */
    .ai-chat .feature-img-col,
    .feature-section.feature-section-meditation .feature-img-col {
        display: block;
        max-width: none;
    }

    /* 冥想区：小屏与上方 feature-section 同为单栏；order 沿用桌面已定义（先文后图） */
    .feature-section.feature-section-meditation .feature-layout {
        flex-direction: column;
    }

    /* AI 对话：小屏先标题与正文，再展示配图 */
    .ai-chat .feature-text {
        padding-left: 0;
        order: 1;
    }

    .ai-chat .feature-img-col {
        order: 2;
    }

    .section-label {
        font-size: 9px;
        letter-spacing: 0.18em;
        margin-bottom: 14px;
    }

    .section-title {
        font-size: 1.42rem;
        margin-bottom: 16px;
        line-height: 1.3;
    }

    html[lang="en"] .section-title {
        font-size: 1.32rem;
    }

    .section-desc {
        font-size: 13px;
        line-height: 1.68;
        letter-spacing: 0.01em;
    }

    html[lang="en"] .section-desc {
        font-size: 12px;
        line-height: 1.64;
    }

    /* 工具区：手机端上下内边距一致 */
    .tools-section {
        padding: 48px max(16px, env(safe-area-inset-left, 0px)) 48px max(16px, env(safe-area-inset-right, 0px));
    }

    .tools-section .content-narrow {
        margin-bottom: 28px;
    }

    /* 探索工具：手机端固定 2×2，两列等宽 */
    .tools-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px 12px;
        max-width: 100%;
    }

    .tool-card:nth-child(2),
    .tool-card:nth-child(4) {
        margin-top: 0 !important;
    }

    .tool-card .img-frame {
        margin-bottom: 10px;
        border-radius: 14px;
    }

    .tool-label {
        font-size: 11px;
        line-height: 1.35;
        padding-inline: 2px;
    }

    /* CTA：手机端上下内边距一致 */
    .cta-section {
        padding: 56px max(16px, env(safe-area-inset-left, 0px)) 56px max(16px, env(safe-area-inset-right, 0px));
    }

    .cta-inner {
        max-width: 100%;
        padding-inline: 0;
    }

    .cta-title {
        font-size: 1.32rem;
        margin-bottom: 12px;
    }

    html[lang="en"] .cta-title {
        font-size: 1.22rem;
    }

    .cta-desc {
        font-size: 12px;
        line-height: 1.68;
        margin-bottom: 28px;
    }

    html[lang="en"] .cta-desc {
        font-size: 11px;
    }

    .cta-section .btn-primary {
        font-size: 9px;
        letter-spacing: 0.11em;
    }

    .footer {
        padding-top: 44px;
        padding-left: max(20px, env(safe-area-inset-left, 0px));
        padding-right: max(20px, env(safe-area-inset-right, 0px));
        padding-bottom: max(44px, env(safe-area-inset-bottom, 0px));
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        row-gap: 10px;
        column-gap: 20px;
    }

    .footer-brand {
        font-size: 10px;
    }

    .footer-links a {
        font-size: 10px;
    }

    .footer-copy {
        font-size: 9px;
        line-height: 1.8;
    }

    .section-rule {
        margin: 20px auto;
    }

    .reviews {
        padding: 120px 0 80px;
        padding-left: env(safe-area-inset-left, 0px);
        padding-right: env(safe-area-inset-right, 0px);
    }

    .reviews-title {
        font-size: 11px;
        letter-spacing: 0.14em;
        margin-top: 0;
        margin-bottom: 40px;
        padding-inline: 16px;
        line-height: 1.5;
    }

    .marquee-track {
        gap: 16px;
    }

    .review-card {
        width: min(300px, 320px);
        max-width: 100%;
        padding: 24px 18px;
        border-radius: 18px;
    }

    .review-text {
        font-size: 12px;
        line-height: 1.72;
    }

    html[lang="en"] .review-text {
        font-size: 11px;
    }

    .review-author {
        font-size: 8px;
        letter-spacing: 0.14em;
        margin-top: 18px;
    }

    .qr-modal {
        padding:
            max(12px, calc(env(safe-area-inset-top, 0px) + 8px)) max(12px, env(safe-area-inset-right, 0px)) max(12px, calc(env(safe-area-inset-bottom, 0px) + 8px)) max(12px, env(safe-area-inset-left, 0px));
    }

    .qr-card {
        width: min(100%, 640px);
        max-width: 100%;
        min-height: unset;
        max-height: min(640px, 100%);
        border-radius: 24px;
    }

    .qr-inner {
        row-gap: 12px;
        padding:
            72px max(16px, env(safe-area-inset-right, 0px)) max(24px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
    }

    .qr-brand {
        font-size: 2.5rem;
        line-height: 1.12;
    }

    .qr-sub {
        font-size: 14px;
        line-height: 1.4;
        margin-bottom: 12px;
    }

    /* 移动端二维码再收一档，双排更易一眼看完弹窗 */
    .qr-code-wrap {
        width: 144px;
        height: 144px;
    }

    .qr-code-wrap img {
        width: 100%;
        height: 100%;
    }

    .qr-close {
        top: 16px;
        right: 16px;
        width: 48px;
        height: 48px;
        font-size: 22px;
        line-height: 1;
        -webkit-tap-highlight-color: transparent;
    }
}

/* ── 二维码弹窗：矮视口（横屏手机、小高度窗口）紧凑布局，避免裁切 ── */
@media (max-height: 560px) {
    .qr-modal {
        justify-content: flex-start;
        padding:
            max(8px, calc(env(safe-area-inset-top, 0px) + 4px)) max(10px, env(safe-area-inset-right, 0px)) max(8px, calc(env(safe-area-inset-bottom, 0px) + 4px)) max(10px, env(safe-area-inset-left, 0px));
    }

    .qr-card {
        margin-top: auto;
        margin-bottom: auto;
        min-height: unset;
        max-height: min(520px, 100%);
        border-radius: 20px;
    }

    .qr-inner {
        row-gap: 8px;
        padding:
            62px 14px 14px;
        padding-left: max(14px, env(safe-area-inset-left, 0px));
        padding-right: max(14px, env(safe-area-inset-right, 0px));
    }

    .qr-brand {
        font-size: 28px;
        margin-bottom: 4px;
    }

    .qr-sub {
        font-size: 12px;
        line-height: 1.35;
        margin-bottom: 10px;
    }

    .qr-code-pair {
        gap: 12px 20px;
    }

    .qr-code-caption {
        font-size: 12px;
        max-width: 180px;
    }

    .qr-footnote {
        font-size: 11px;
        max-width: 180px;
    }

    /* 矮视口：与 144px 移动端约同比例（相对桌面 200px） */
    .qr-code-wrap {
        width: 96px;
        height: 96px;
    }

    .qr-code-wrap img {
        width: 100%;
        height: 100%;
    }

    .qr-close {
        top: 14px;
        right: 14px;
        width: 44px;
        height: 44px;
        font-size: 18px;
    }
}

/* ── 窄屏手机（≤560px）：隐藏品牌字，为语言+下载让路 ── */
@media (max-width: 560px) {
    .nav-brand {
        display: none;
    }

    /* 仅保留 Logo 图时不再占满 flex，把宽度让给语言与下载 */
    .nav-logo {
        flex: 0 0 auto;
    }

    .lang-switcher {
        max-width: 130px;
    }

    .lang-current {
        padding: 8px 8px;
    }

    #langLabel {
        max-width: min(3.8rem, 200px);
    }

    .nav-cta {
        font-size: 9px;
        padding: 10px 12px;
        max-width: 118px;
        letter-spacing: 0.08em;
    }
}

@media (max-width: 480px) {
    .lang-switcher {
        max-width: min(132px, 100%);
    }

    #langLabel {
        max-width: 4.2rem;
    }

    .lang-dropdown {
        width: 100%;
        min-width: 0;
        max-width: none;
        right: 0;
    }

    .lang-option {
        min-height: 42px;
        padding: 9px 12px;
    }

    .hero-eyebrow {
        gap: 10px;
        margin-bottom: 28px;
    }

    .hero-eyebrow-line {
        width: 22px;
    }

    .hero-eyebrow-text {
        font-size: 8px;
        letter-spacing: 0.2em;
    }

    /* 探索工具：保持 2×2，缩间距与标签字号 */
    .tools-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px 10px;
    }

    .tool-card .img-frame {
        margin-bottom: 8px;
        border-radius: 12px;
    }

    .tool-label {
        font-size: 10px;
        line-height: 1.28;
    }

    .review-card {
        width: min(272px, 300px);
        padding: 20px 16px;
    }

    .review-text {
        font-size: 11px;
    }

    .section-desc {
        font-size: 12px;
        line-height: 1.72;
    }
}

@media (prefers-reduced-motion: reduce) {
    .marquee-track {
        animation: none !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* 语言切换过渡 */
body.switching [data-i18n],
body.switching [data-i18n-html] {
    opacity: 0;
    transition: opacity 0.2s ease;
}

/* ── 浅色主题：硬编码色覆盖（变量已在上文 html[data-theme="light"] 中定义） ── */
html[data-theme="light"] .nav {
    background: rgba(255, 255, 255, 0.62);
}

html[data-theme="light"] .theme-toggle:hover {
    border-color: rgba(32, 28, 48, 0.12);
    background: rgba(32, 28, 48, 0.04);
}

html[data-theme="light"] .theme-icon {
    color: rgba(32, 28, 48, 0.3);
}

html[data-theme="light"] .theme-icon.active {
    color: rgba(32, 28, 48, 0.88);
    background: rgba(32, 28, 48, 0.06);
}

html[data-theme="light"] .lang-current:hover {
    border-color: rgba(32, 28, 48, 0.12);
    color: rgba(32, 28, 48, 0.72);
}

html[data-theme="light"] .lang-dropdown {
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

html[data-theme="light"] .lang-option:hover {
    background: rgba(32, 28, 48, 0.05);
    color: rgba(32, 28, 48, 0.82);
}

html[data-theme="light"] .section-label,
html[data-theme="light"] .reviews-title {
    color: rgba(108, 92, 148, 0.9);
}

html[data-theme="light"] .section-tag {
    color: rgba(32, 28, 48, 0.42);
}

html[data-theme="light"] .section-divider-dot {
    background: rgba(124, 111, 173, 0.28);
}

html[data-theme="light"] .img-frame {
    background: #e8e6f0;
}

html[data-theme="light"] .img-frame img {
    filter: brightness(0.98) saturate(0.92) contrast(0.98);
}

html[data-theme="light"] .img-frame::after {
    background: linear-gradient(180deg, transparent 60%, rgba(244, 242, 248, 0.55) 100%);
}

html[data-theme="light"] .ai-chat .img-frame img {
    filter: brightness(1) saturate(0.96) contrast(1);
}

html[data-theme="light"] .tool-label {
    color: rgba(32, 28, 48, 0.55);
}

html[data-theme="light"] .cta-glow {
    background: radial-gradient(ellipse, rgba(124, 111, 173, 0.18) 0%, rgba(232, 205, 216, 0.08) 40%, transparent 70%);
}

html[data-theme="light"] .footer-links a {
    color: rgba(32, 28, 48, 0.48);
}

html[data-theme="light"] .footer-links a:hover {
    color: rgba(32, 28, 48, 0.72);
}

html[data-theme="light"] .footer-copy {
    color: rgba(32, 28, 48, 0.38);
}

html[data-theme="light"] .review-card:hover {
    border-color: rgba(124, 111, 173, 0.22);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .qr-card {
    box-shadow:
        rgba(0, 0, 0, 0.25) 0px 3px 6px,
        rgba(0, 0, 0, 0.15) 0px -8px 20px inset,
        rgba(255, 255, 255, 0.74) 0px -1px 3px 0px inset;
    background: none;
}

html[data-theme="light"] .qr-close {
    background: rgba(32, 28, 48, 0.08);
    color: var(--text-primary);
}

html[data-theme="light"] .qr-brand {
    color: var(--accent);
}

html[data-theme="light"] .qr-sub {
    color: var(--text-secondary);
}

html[data-theme="light"] .qr-code-caption {
    color: var(--text-secondary);
}

html[data-theme="light"] .qr-footnote {
    color: rgba(32, 28, 48, 0.48);
}

html[data-theme="light"] .qr-code-wrap {
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.12);
}