/* ════════════════════════════════════════════════════
   活点智行 — 小程序宣传落地页
   移动优先；PC（≥768px）双列 Hero + 多列网格
   品牌色 #e94560
   ════════════════════════════════════════════════════ */

:root {
    --brand: #e94560;
    --brand-dark: #c8314a;
    --ink: #1f2430;
    --ink-soft: #5b6472;
    --bg: #ffffff;
    --bg-soft: #f6f8fb;
    --line: #e7ebf1;
    --radius: 16px;
    --shadow: 0 8px 30px rgba(31, 36, 48, 0.08);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

/* ── 顶部品牌条 ── */
.landing-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.landing-nav__brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--ink);
}
.landing-nav__brand span { color: var(--brand); }
.landing-nav__logo { height: 28px; width: auto; border-radius: 6px; }

/* ── 通用区块标题 ── */
.section-title {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 28px;
}
.section-title::after {
    content: "";
    display: block;
    width: 44px;
    height: 3px;
    margin: 10px auto 0;
    border-radius: 3px;
    background: var(--brand);
}

/* ── ① Hero ── */
.hero {
    position: relative;
    overflow: hidden;
    padding: 56px 20px 64px;
}
.hero__bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(900px 420px at 85% -10%, rgba(233, 69, 96, 0.12), transparent 60%),
        radial-gradient(700px 380px at -10% 110%, rgba(76, 119, 167, 0.10), transparent 60%),
        linear-gradient(180deg, #fff 0%, var(--bg-soft) 100%);
    z-index: -1;
}
.hero__inner {
    max-width: 1080px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 36px;
}
.hero__copy { text-align: center; max-width: 560px; }
.hero__eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--brand);
    background: rgba(233, 69, 96, 0.1);
    padding: 4px 12px;
    border-radius: 999px;
    margin-bottom: 16px;
}
.hero__title {
    font-size: 2.2rem;
    line-height: 1.25;
    font-weight: 800;
    letter-spacing: 0.01em;
}
.hero__sub {
    margin-top: 16px;
    color: var(--ink-soft);
    font-size: 1.02rem;
}

/* 二维码（PC 内联在 Hero 文案下；手机走可折叠） */
.qr-reveal {
    margin: 28px auto 0;
    max-width: 280px;
}
.qr-reveal__btn {
    display: inline-block;
    cursor: pointer;
    list-style: none;
    background: var(--brand);
    color: #fff;
    font-weight: 600;
    padding: 12px 22px;
    border-radius: 999px;
    box-shadow: 0 6px 18px rgba(233, 69, 96, 0.3);
    user-select: none;
}
.qr-reveal__btn::-webkit-details-marker { display: none; }
.qr-reveal__body { margin-top: 16px; }
/* PC 常显：隐藏「查看小程序码」按钮，使二维码像直接展示 */
.qr-reveal.qr-always > summary { display: none; }
.qr-reveal.qr-always { margin-top: 28px; }
.qr-reveal__hint { margin-top: 8px; font-size: 0.82rem; color: var(--ink-soft); }
.qr-img {
    width: 200px;
    height: 200px;
    margin: 0 auto;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: #fff;
    box-shadow: var(--shadow);
}

/* 手机样机（仅 PC 双列时显示） */
.hero__visual { display: none; }
.phone {
    width: 260px;
    height: 520px;
    background: #11151c;
    border-radius: 38px;
    padding: 12px;
    box-shadow: 0 30px 60px rgba(31, 36, 48, 0.25);
    position: relative;
}
.phone__notch {
    position: absolute;
    top: 14px; left: 50%;
    transform: translateX(-50%);
    width: 110px; height: 18px;
    background: #11151c;
    border-radius: 0 0 14px 14px;
    z-index: 2;
}
.phone__screen {
    width: 100%; height: 100%;
    border-radius: 28px;
    background: #eaf1f7;
    overflow: hidden;
    position: relative;
}
/* 真实小程序截图填充手机屏幕
   object-fit: cover 保证不同比例截图都不变形；object-position: top 优先展示界面顶部 */
.phone__picture { display: block; width: 100%; height: 100%; }
.phone__shot {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

/* ── ② 功能 ── */
.features { padding: 56px 20px; background: var(--bg-soft); }
.features__grid {
    max-width: 1080px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
.feature-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px 22px;
    box-shadow: var(--shadow);
}
.feature-card__icon { font-size: 1.8rem; }
.feature-card__title { font-size: 1.1rem; margin: 10px 0 6px; }
.feature-card__desc { color: var(--ink-soft); font-size: 0.94rem; }

/* ── ③ 教学 ── */
.tutorial { padding: 56px 20px; }
.tutorial__list {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.tutorial__item {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}
.tutorial__item > summary {
    list-style: none;
    cursor: pointer;
    padding: 16px 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
}
.tutorial__item > summary::-webkit-details-marker { display: none; }
.tutorial__num {
    flex: 0 0 26px;
    width: 26px; height: 26px;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.tutorial__body {
    padding: 0 18px 18px;
    color: var(--ink-soft);
}
/* ── 教学区截图轮播 ── */
.carousel { position: relative; }
.carousel__viewport {
    position: relative;
    width: 100%;
    max-width: 455px;
    margin: 0 auto 12px;
    aspect-ratio: 547 / 1082;   /* 与手机截图比例一致，避免高度抖动 */
    max-height: 900px;
    border-radius: 16px;
    background: linear-gradient(135deg, #dfeaf3 0%, #eef4f9 100%);
    border: 1px solid var(--line);
    overflow: hidden;
}
.carousel__slide {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    transition: opacity .45s ease;
    pointer-events: none;
}
.carousel__slide.is-active { opacity: 1; pointer-events: auto; }
/* 教学截图要看全界面，因此用 contain 而非 cover（不会裁掉底部内容） */
.carousel__slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}
.carousel__dots {
    display: flex;
    justify-content: center;
    gap: 6px;
}
.carousel__dot {
    width: 24px;
    height: 24px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.carousel__dot::before {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #c9d2de;
    transition: background .2s, transform .2s;
}
.carousel__dot.is-active::before { background: var(--brand); transform: scale(1.3); }
.carousel__dot:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 50%; }
/* 尊重系统「减少动态效果」：关闭切换过渡 */
@media (prefers-reduced-motion: reduce) {
    .carousel__slide { transition: none; }
    .carousel__dot::before { transition: none; }
}
/* 窄屏：收窄轮播，避免把二维码挤出首屏 */
@media (max-width: 767px) {
    .carousel__viewport { max-width: 210px; max-height: 430px; }
}

/* ── ④ 二维码引导 ── */
.qr-cta {
    padding: 60px 20px 70px;
    text-align: center;
    background: linear-gradient(180deg, var(--bg-soft), #fff);
}
.qr-cta__title { font-size: 1.5rem; font-weight: 700; }
.qr-cta__sub { color: var(--ink-soft); margin: 10px 0 24px; }
.qr-img--lg { width: 220px; height: 220px; }
.qr-cta__note { margin-top: 16px; font-size: 0.8rem; color: #9aa6b5; }
.qr-cta__note code { background: #f0f3f7; padding: 1px 6px; border-radius: 4px; }

/* ── ⑤ 关于活点智行 ── */
.about { padding: 56px 20px; background: var(--bg-soft); }
/* ── ⑤b 适合谁用（白底与 FAQ 相邻；正文复用 .about__body）
   下内边距置 0：FAQ 自身有 56px 上边距，避免两块白底叠加出 112px 空隙 ── */
.who { padding: 56px 20px 0; }
.about__body {
    max-width: 720px;
    margin: 0 auto;
    color: var(--ink-soft);
    font-size: 1rem;
    line-height: 1.8;
}
.about__body p + p { margin-top: 14px; }
.about__body strong { color: var(--ink); }

/* ── ⑥ 常见问题 ── */
.faq { padding: 56px 20px; }
.faq__list { max-width: 760px; margin: 0 auto; }
.faq__item { padding: 18px 0; border-bottom: 1px solid var(--line); }
.faq__item:last-child { border-bottom: none; }
.faq__q { font-size: 1.05rem; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.faq__a { color: var(--ink-soft); line-height: 1.75; }

/* ── ⑦ 页脚 ── */
.landing-footer {
    border-top: 1px solid var(--line);
    padding: 28px 20px;
    text-align: center;
    color: var(--ink-soft);
    font-size: 0.88rem;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.landing-footer__brand { font-weight: 600; color: var(--ink); }
.landing-footer__links { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }
.landing-footer__links a { color: var(--ink-soft); text-decoration: none; }
.landing-footer__links a:hover { color: var(--brand); }

/* ════════════════ PC（≥768px） ════════════════ */
@media (min-width: 768px) {
    .hero { padding: 80px 24px 90px; }
    .hero__inner {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 48px;
    }
    .hero__copy { text-align: left; }
    .qr-reveal { margin-left: 0; margin-right: 0; }
    .hero__visual { display: block; flex: 0 0 auto; }

    .hero__title { font-size: 3rem; }
    .hero__sub { font-size: 1.1rem; }

    .features__grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
