/* ==========================================================================
   米山英语 · 官方网站 样式表
   沈阳米山教育科技有限公司
   --------------------------------------------------------------------------
   1. 变量与基础
   2. 通用组件（按钮 / 容器 / 标题）
   3. 顶部导航
   4. 首屏 Hero
   5. 功能亮点
   6. 应用截图
   7. 帮助与合规（FAQ / 协议）
   8. 下载 CTA
   9. 页脚
   10. 灯箱 / 提示 / 动效
   11. 响应式
   ========================================================================== */

/* 1. 变量与基础 ---------------------------------------------------------- */
:root {
    --brand: #22c55e;
    --brand-600: #16a34a;
    --brand-700: #15803d;
    --brand-50: #f0fdf4;
    --brand-100: #dcfce7;
    --brand-200: #bbf7d0;

    --ink: #0b1f16;
    --ink-1: #132b20;
    --text: #1f2937;
    --muted: #5b6b63;
    --muted-2: #7c8b83;

    --line: #e4ebe6;
    --bg: #ffffff;
    --bg-soft: #f6faf7;

    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;

    --shadow-sm: 0 1px 2px rgba(11, 31, 22, .06), 0 4px 12px rgba(11, 31, 22, .05);
    --shadow: 0 10px 30px rgba(11, 31, 22, .08), 0 2px 8px rgba(11, 31, 22, .04);
    --shadow-lg: 0 30px 60px -20px rgba(11, 31, 22, .22), 0 8px 24px rgba(11, 31, 22, .08);

    --font: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Hiragino Sans GB",
        "Source Han Sans SC", "Noto Sans CJK SC", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;

    --max: 1180px;
    --header-h: 72px;

    --ease: cubic-bezier(.22, .61, .36, 1);
}

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.75;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

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

a {
    color: var(--brand-600);
    text-decoration: none;
    transition: color .18s var(--ease);
}

a:hover { color: var(--brand-700); }

h1, h2, h3, h4 {
    margin: 0;
    color: var(--ink);
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: -.01em;
}

h1 { font-size: clamp(30px, 4.4vw, 52px); line-height: 1.18; }

h2 { font-size: clamp(24px, 2.8vw, 36px); }

h3 { font-size: 19px; }

p { margin: 0 0 1em; }

ul, ol { margin: 0 0 1em; padding-left: 1.25em; }

:focus-visible {
    outline: 3px solid var(--brand);
    outline-offset: 3px;
    border-radius: 6px;
}

.skip {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--brand-600);
    color: #fff;
    padding: 12px 20px;
    z-index: 999;
    border-radius: 0 0 12px 0;
}

.skip:focus { left: 0; color: #fff; }

.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* 2. 通用组件 ------------------------------------------------------------ */
.container {
    width: 100%;
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 24px;
}

.section { padding: 96px 0; }
.section--soft { background: var(--bg-soft); }

.section-head {
    max-width: 720px;
    margin: 0 auto 56px;
    text-align: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .06em;
    color: var(--brand-700);
    background: var(--brand-50);
    border: 1px solid var(--brand-100);
    border-radius: 999px;
}

.eyebrow::before {
    content: "";
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--brand);
}

.section-head p {
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 17px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 26px;
    font: inherit;
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    cursor: pointer;
    transition: transform .18s var(--ease), box-shadow .18s var(--ease),
        background .18s var(--ease), border-color .18s var(--ease);
}

.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

.btn svg { flex: none; }

.btn--primary {
    color: #fff;
    background: linear-gradient(135deg, #34d17a, var(--brand-600));
    border-color: transparent;
    box-shadow: 0 10px 24px -8px rgba(22, 163, 74, .55);
}

.btn--primary:hover { box-shadow: 0 16px 32px -10px rgba(22, 163, 74, .65); }

.btn--ghost { background: rgba(255, 255, 255, .7); }

.btn--lg { min-height: 58px; padding: 0 32px; font-size: 17px; }

.btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

/* 3. 顶部导航 ------------------------------------------------------------ */
.header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(255, 255, 255, .82);
    backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}

.header.is-stuck {
    border-bottom-color: var(--line);
    box-shadow: 0 6px 20px rgba(11, 31, 22, .05);
}

.header__inner {
    display: flex;
    align-items: center;
    gap: 28px;
    height: var(--header-h);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: none;
    color: var(--ink);
}

.brand:hover { color: var(--ink); }

.brand img { width: 44px; height: 44px; }

.brand__name { font-size: 19px; font-weight: 800; letter-spacing: .01em; }

.brand__sub {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .14em;
    color: var(--brand-600);
    text-transform: uppercase;
}

.nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

.nav a {
    padding: 9px 14px;
    font-size: 15px;
    font-weight: 500;
    color: var(--muted);
    border-radius: 10px;
}

.nav a:hover,
.nav a.is-active { color: var(--brand-700); background: var(--brand-50); }

.header .btn { min-height: 44px; padding: 0 20px; font-size: 15px; }

.nav-toggle {
    display: none;
    margin-left: auto;
    width: 44px; height: 44px;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 18px; height: 2px;
    background: var(--ink);
    border-radius: 2px;
    position: relative;
    transition: background .2s var(--ease);
}

.nav-toggle span::before,
.nav-toggle span::after {
    content: "";
    position: absolute;
    left: 0;
    width: 18px; height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform .22s var(--ease);
}

.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* 4. 首屏 Hero ----------------------------------------------------------- */
.hero {
    position: relative;
    overflow: hidden;
    padding: 72px 0 96px;
    background:
        radial-gradient(1100px 620px at 84% -8%, var(--brand-100), transparent 62%),
        radial-gradient(760px 520px at 6% 8%, #e8f7ee, transparent 60%),
        linear-gradient(180deg, #fbfefc, #ffffff 70%);
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(to right, rgba(11, 31, 22, .045) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(11, 31, 22, .045) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(760px 460px at 72% 22%, #000 10%, transparent 78%);
    -webkit-mask-image: radial-gradient(760px 460px at 72% 22%, #000 10%, transparent 78%);
}

.hero__inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: 56px;
    align-items: center;
}

/* 防止长内容把网格/弹性子项撑宽导致横向溢出 */
.hero__inner > *,
.features > *,
.help > *,
.footer__top > * { min-width: 0; }

.hero h1 { margin-bottom: 20px; }

.hero h1 em {
    font-style: normal;
    background: linear-gradient(120deg, var(--brand-600), #4ade80);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero__lead {
    max-width: 560px;
    font-size: 18px;
    color: var(--muted);
    margin-bottom: 32px;
}

.hero__points {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    margin: 32px 0 0;
    padding: 0;
    list-style: none;
    font-size: 15px;
    color: var(--ink-1);
}

.hero__points li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero__points svg { color: var(--brand-600); flex: none; }

.hero__note {
    margin: 18px 0 0;
    font-size: 14px;
    color: var(--muted-2);
}

.hero__contact {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 10px;
    margin: 22px 0 0;
    padding-top: 20px;
    border-top: 1px dashed var(--line);
    font-size: 15px;
    color: var(--muted);
}

.hero__contact svg { color: var(--brand-600); flex: none; }

.hero__contact a { font-weight: 700; }

.hero__visual {
    position: relative;
    display: flex;
    justify-content: center;
    padding: 24px 0;
}

.hero__glow {
    position: absolute;
    width: 420px; height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle at 40% 35%, rgba(52, 209, 122, .34), rgba(34, 197, 94, .06) 62%, transparent 72%);
    filter: blur(6px);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
}

.hero__cards { position: absolute; inset: 0; pointer-events: none; }

.float-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, .92);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
    animation: float 6s ease-in-out infinite;
}

.float-card__icon {
    display: grid;
    place-items: center;
    width: 38px; height: 38px;
    border-radius: 12px;
    background: var(--brand-50);
    color: var(--brand-600);
    flex: none;
}

.float-card strong { display: block; font-size: 15px; color: var(--ink); line-height: 1.3; }
.float-card span { font-size: 12px; color: var(--muted-2); }

.float-card--a { top: 12%; left: -4%; animation-delay: .2s; }
.float-card--b { bottom: 16%; right: -6%; animation-delay: 1.6s; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* 手机模型 */
.phone {
    display: block;
    position: relative;
    width: 292px;
    aspect-ratio: 9 / 19.4;
    border-radius: 46px;
    padding: 10px;
    background: linear-gradient(160deg, #253027, #0d1712 60%);
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, .4) inset;
    flex: none;
}

.phone__screen {
    display: block;
    position: relative;
    height: 100%;
    border-radius: 36px;
    overflow: hidden;
    background: #fff;
}

.phone__screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.phone__island {
    position: absolute;
    top: 12px; left: 50%;
    transform: translateX(-50%);
    width: 84px; height: 24px;
    background: #0d1712;
    border-radius: 999px;
    z-index: 3;
    opacity: .92;
}

.phone--hero { transform: rotate(-2deg); }
.phone--sm { width: 100%; max-width: 232px; border-radius: 38px; padding: 8px; }
.phone--sm .phone__screen { border-radius: 30px; }
.phone--sm .phone__island { width: 68px; height: 19px; top: 10px; }

/* 5. 功能亮点 ------------------------------------------------------------ */
.features {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.feature {
    display: flex;
    flex-direction: column;
    padding: 30px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: transform .24s var(--ease), box-shadow .24s var(--ease), border-color .24s var(--ease);
}

.feature:hover {
    transform: translateY(-6px);
    border-color: var(--brand-200);
    box-shadow: var(--shadow);
}

.feature__icon {
    display: grid;
    place-items: center;
    width: 52px; height: 52px;
    margin-bottom: 20px;
    border-radius: 16px;
    background: linear-gradient(140deg, var(--brand-50), var(--brand-100));
    color: var(--brand-700);
}

.feature h3 { margin-bottom: 10px; }

.feature p {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
}

.feature__shot {
    margin-top: 22px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--bg-soft);
}

.feature__shot img {
    width: 100%;
    height: auto;
}

.feature__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
    padding: 0;
    list-style: none;
}

.feature__tags li {
    font-size: 13px;
    color: var(--brand-700);
    background: var(--brand-50);
    border: 1px solid var(--brand-100);
    border-radius: 999px;
    padding: 4px 12px;
}

/* 卡位占位可视化（21 天抗遗忘计划用） */
.feature__viz {
    margin-top: auto;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: linear-gradient(160deg, var(--brand-50), #fff 70%);
}

.viz__dots {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.viz__dots i {
    width: 9px; height: 9px;
    border-radius: 50%;
    background: #d9e8de;
}

.viz__dots i.is-done { background: var(--brand-600); }
.viz__dots i.is-today { background: #fff; box-shadow: 0 0 0 2px var(--brand-600); }

.viz__bar {
    height: 8px;
    border-radius: 999px;
    background: #e3efe7;
    overflow: hidden;
}

.viz__bar span {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #4ade80, var(--brand-600));
}

.viz__legend {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 12.5px;
    color: var(--muted-2);
}

/* 6. 应用截图 ------------------------------------------------------------ */
.shots {
    position: relative;
}

.shots__viewport {
    display: flex;
    gap: 28px;
    overflow-x: auto;
    padding: 8px 4px 28px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

.shots__viewport:focus-visible { outline-offset: 6px; }

.shot {
    flex: 0 0 auto;
    width: 258px;
    scroll-snap-align: center;
    text-align: center;
    background: none;
    border: 0;
    padding: 0;
    cursor: zoom-in;
    font: inherit;
    color: inherit;
}

.shot .phone {
    width: 258px;
    transition: transform .26s var(--ease), box-shadow .26s var(--ease);
}

.shot:hover .phone,
.shot:focus-visible .phone {
    transform: translateY(-8px);
    box-shadow: 0 40px 70px -24px rgba(11, 31, 22, .32);
}

.shot__label {
    display: block;
    margin-top: 16px;
    font-size: 15px;
    font-weight: 600;
    color: var(--ink);
}

.shot__desc {
    display: block;
    font-size: 13px;
    color: var(--muted-2);
}

.shots__bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-top: 12px;
}

.shots__arrow {
    display: grid;
    place-items: center;
    width: 46px; height: 46px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--line);
    color: var(--ink);
    cursor: pointer;
    transition: transform .18s var(--ease), border-color .18s var(--ease), opacity .18s var(--ease);
}

.shots__arrow:hover { transform: translateY(-2px); border-color: var(--brand-200); color: var(--brand-700); }

.shots__dots {
    display: flex;
    gap: 8px;
}

.shots__dots button {
    width: 9px; height: 9px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #d5e2d9;
    cursor: pointer;
    transition: width .22s var(--ease), background .22s var(--ease);
}

.shots__dots button[aria-current="true"] {
    width: 26px;
    border-radius: 999px;
    background: var(--brand-600);
}

/* 7. 帮助与合规 ---------------------------------------------------------- */
.help {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
    gap: 40px;
    align-items: start;
}

.faq { border-top: 1px solid var(--line); }

.faq details {
    border-bottom: 1px solid var(--line);
}

.faq summary {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 4px;
    font-size: 16.5px;
    font-weight: 600;
    color: var(--ink);
    cursor: pointer;
    list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
    content: "";
    margin-left: auto;
    width: 12px; height: 12px;
    border-right: 2px solid var(--muted-2);
    border-bottom: 2px solid var(--muted-2);
    transform: rotate(45deg) translate(-2px, -2px);
    transition: transform .22s var(--ease);
    flex: none;
}

.faq details[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }

.faq details > div {
    padding: 0 4px 22px;
    color: var(--muted);
    font-size: 15.5px;
}

.faq details > div p:last-child { margin-bottom: 0; }

.legal-cards {
    display: grid;
    gap: 16px;
}

.legal-card {
    display: block;
    padding: 24px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    color: var(--text);
    transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}

.legal-card:hover {
    transform: translateY(-4px);
    border-color: var(--brand-200);
    box-shadow: var(--shadow);
    color: var(--text);
}

.legal-card h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.legal-card h3 svg { color: var(--brand-600); }

.legal-card p {
    margin: 0;
    font-size: 14.5px;
    color: var(--muted);
}

.legal-card__meta {
    display: block;
    margin-top: 10px;
    font-size: 13px;
    color: var(--muted-2);
}

.legal-card__more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    font-size: 14px;
    font-weight: 600;
    color: var(--brand-700);
}

/* 权限与 SDK 表格 */
.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-sm);
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14.5px;
    min-width: 560px;
}

th, td {
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}

th {
    background: var(--bg-soft);
    font-weight: 600;
    color: var(--ink);
    white-space: nowrap;
}

tbody tr:last-child th,
tbody tr:last-child td { border-bottom: 0; }

td code {
    font-size: 13px;
    padding: 2px 7px;
    border-radius: 6px;
    background: var(--brand-50);
    color: var(--brand-700);
}

/* 第三方 SDK 清单表：列多，桌面端给首列与链接列足够空间，
   窄屏由 .table-wrap 的 overflow-x 横向滚动兜底 */
.doc__body table.sdk-table {
    min-width: 760px;
}

.doc__body table.sdk-table td:first-child {
    min-width: 140px;
}

.doc__body table.sdk-table td:last-child {
    min-width: 150px;
}

.doc__body table.sdk-table small {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

/* 8. 下载 CTA ------------------------------------------------------------ */
.cta {
    position: relative;
    overflow: hidden;
    padding: 72px 0;
    background: linear-gradient(135deg, #10381f, #0b1f16 55%, #12351f);
    color: #fff;
}

.cta::before {
    content: "";
    position: absolute;
    width: 620px; height: 620px;
    right: -160px; top: -260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(52, 209, 122, .30), transparent 66%);
}

.cta__inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.cta h2 { color: #fff; margin-bottom: 10px; }

.cta p { margin: 0; color: rgba(255, 255, 255, .74); max-width: 540px; }

.cta .btn { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .26); color: #fff; }

.cta .btn:hover { background: rgba(255, 255, 255, .17); }

.cta .btn--primary {
    background: linear-gradient(135deg, #4ade80, var(--brand-600));
    border-color: transparent;
}

/* 9. 页脚 ---------------------------------------------------------------- */
.footer {
    padding: 64px 0 28px;
    background: #0b1f16;
    border-top: 1px solid rgba(255, 255, 255, .07);
    color: rgba(255, 255, 255, .68);
    font-size: 14.5px;
}

.footer a { color: rgba(255, 255, 255, .82); }
.footer a:hover { color: #fff; }

.footer__top {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
    gap: 36px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.footer .brand { color: #fff; margin-bottom: 16px; }
.footer .brand:hover { color: #fff; }
.footer .brand__name { color: #fff; }
.footer .brand__sub { color: #86efac; }
.footer .brand img { width: 48px; height: 48px; }

.footer__about { max-width: 320px; color: rgba(255, 255, 255, .6); }

.footer h4 {
    color: #fff;
    font-size: 15px;
    margin-bottom: 16px;
}

.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }

.footer__contact li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.footer__contact svg { flex: none; margin-top: 4px; color: #86efac; }

.footer__bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-top: 24px;
    font-size: 13.5px;
    color: rgba(255, 255, 255, .5);
}

.footer__legal {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    align-items: center;
}

.footer__legal a { color: rgba(255, 255, 255, .62); }

.beian {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, .62);
}

.beian img { width: 16px; height: 16px; opacity: .8; }

/* 10. 灯箱 / 提示 / 动效 ------------------------------------------------- */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: none;
    place-items: center;
    padding: 32px 20px;
    background: rgba(6, 17, 12, .82);
    backdrop-filter: blur(6px);
}

.lightbox.is-open { display: grid; }

.lightbox__figure {
    max-height: 100%;
    text-align: center;
}

.lightbox img {
    max-height: min(78vh, 720px);
    width: auto;
    margin: 0 auto;
    border-radius: 22px;
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .6);
}

.lightbox figcaption {
    margin-top: 16px;
    color: rgba(255, 255, 255, .82);
    font-size: 15px;
}

.lightbox__close,
.lightbox__nav {
    position: absolute;
    display: grid;
    place-items: center;
    width: 46px; height: 46px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .22);
    color: #fff;
    border-radius: 50%;
    cursor: pointer;
    transition: background .18s var(--ease);
}

.lightbox__close:hover,
.lightbox__nav:hover { background: rgba(255, 255, 255, .22); }

.lightbox__close { top: 22px; right: 22px; }
.lightbox__nav--prev { left: 22px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 22px; top: 50%; transform: translateY(-50%); }

.toast {
    position: fixed;
    left: 50%;
    bottom: 36px;
    z-index: 140;
    max-width: min(560px, calc(100vw - 40px));
    padding: 14px 22px;
    background: #0b1f16;
    color: #fff;
    font-size: 15px;
    border-radius: 14px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transform: translate(-50%, 16px);
    pointer-events: none;
    transition: opacity .25s var(--ease), transform .25s var(--ease);
}

.toast.is-show { opacity: 1; transform: translate(-50%, 0); }

.to-top {
    position: fixed;
    right: 26px;
    bottom: 26px;
    z-index: 70;
    display: grid;
    place-items: center;
    width: 46px; height: 46px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    color: var(--ink);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity .24s var(--ease), transform .24s var(--ease), visibility .24s;
}

.to-top.is-show { opacity: 1; visibility: visible; }
.to-top:hover { transform: translateY(-3px); }

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .7s var(--ease), transform .7s var(--ease);
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* 内容页（用户协议 / 隐私政策） */
.doc {
    padding: 56px 0 72px;
    background: var(--bg-soft);
}

.doc__head {
    max-width: 900px;
    margin: 0 auto 28px;
}

.crumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    font-size: 14px;
    color: var(--muted-2);
}

.doc__head h1 { font-size: clamp(26px, 3vw, 38px); margin-bottom: 12px; }

.doc__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    font-size: 14px;
    color: var(--muted);
}

.doc__body {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px clamp(24px, 4vw, 56px);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.doc__body h2 {
    margin: 40px 0 14px;
    font-size: 21px;
    padding-left: 14px;
    border-left: 4px solid var(--brand);
    line-height: 1.4;
}

.doc__body h2:first-of-type { margin-top: 0; }

.doc__body h3 { margin: 26px 0 10px; font-size: 17px; }

.doc__body p,
.doc__body li { color: #37474a; font-size: 15.5px; }

.doc__body table { margin: 18px 0; }

.doc__body strong { color: var(--ink); }

.doc__note {
    margin: 24px 0 0;
    padding: 18px 22px;
    background: var(--brand-50);
    border: 1px solid var(--brand-100);
    border-radius: var(--radius);
    font-size: 14.5px;
    color: #2f6b4a;
}

.doc__toc {
    display: grid;
    gap: 8px;
    margin: 0 0 32px;
    padding: 20px 24px;
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    list-style: none;
}

.doc__toc a { font-size: 15px; }

/* 政策/协议首部的日期声明区。
   应用商店审核要求「明确标识政策发布、生效或更新日期」，
   这块必须显眼、正文纯文本抓取时也能读到，故用独立色块强调。 */
.doc__dates {
    margin: 26px 0 30px;
    padding: 20px 22px;
    background: var(--brand-50);
    border: 1px solid var(--brand-100);
    border-left: 4px solid var(--brand);
    border-radius: var(--radius);
}

.doc__dates__title {
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 700;
    color: var(--brand-700);
}

.doc__dates .table-wrap {
    margin: 0;
}

.doc__dates table {
    margin: 0;
    background: #fff;
}

.doc__dates table th {
    width: 132px;
    white-space: nowrap;
    background: #fff;
}

.doc__dates__note {
    margin: 12px 0 0;
    font-size: 13.5px;
    line-height: 1.7;
    color: var(--muted);
}

@media (max-width: 640px) {
    .doc__dates { padding: 16px 14px; }
    .doc__dates table th { width: auto; }
}

/* 11. 响应式 ------------------------------------------------------------- */
@media (max-width: 1080px) {
    .hero__inner { grid-template-columns: 1fr; gap: 40px; }
    .hero__visual { order: -1; }
    .hero__lead { max-width: none; }
    .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .help { grid-template-columns: 1fr; }
    .footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
    .section { padding: 72px 0; }
    .nav {
        position: absolute;
        top: var(--header-h);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        padding: 12px 24px 20px;
        background: #fff;
        border-bottom: 1px solid var(--line);
        box-shadow: 0 18px 30px -18px rgba(11, 31, 22, .25);
        display: none;
    }
    .nav.is-open { display: flex; }
    .nav a { padding: 12px 10px; font-size: 16px; }
    .nav-toggle { display: inline-flex; }
    .header .btn { display: none; }
    .float-card--a { left: 0; }
    .float-card--b { right: 0; }
    .cta__inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
    body { font-size: 15.5px; }
    .container { padding: 0 18px; }
    .section { padding: 56px 0; }
    .section-head { margin-bottom: 36px; }
    .features { grid-template-columns: 1fr; }
    .feature { padding: 24px; }
    .hero { padding: 40px 0 64px; }
    .phone { width: 244px; }
    .shot, .shot .phone { width: 224px; }
    .float-card { padding: 10px 12px; }
    .float-card--b { display: none; }
    .btn-group .btn { flex: 1 1 100%; }
    .footer__top { grid-template-columns: 1fr; gap: 28px; }
    .footer__bottom { flex-direction: column; align-items: flex-start; }
    .lightbox__nav--prev { left: 8px; }
    .lightbox__nav--next { right: 8px; }
    .lightbox__close { top: 10px; right: 10px; }
    .to-top { right: 16px; bottom: 16px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }
    .reveal { opacity: 1; transform: none; }
}
