/* 开心果打牌记账推广站 — 对齐小程序用色：砖红主色 + 浅灰底 + 正负分红绿 */

:root {
    --brand: #c84c46;
    --brand-deep: #a83d38;
    --brand-hot: #d25d56;
    --brand-soft: #fdf2f1;
    --score-up: #c84c46;
    --score-down: #6b9e77;
    --accent-blue: #4a90e2;
    --ink: #2a2a2a;
    --ink-soft: #333333;
    --text: #333333;
    --text-muted: #888888;
    --chalk: #ffffff;
    --soft: #f4f6f9;
    --page-bg: #f4f6f9;
    --hero-grad-a: #7f1010;
    --hero-grad-b: #c62828;
    --hero-grad-c: #e53935;
    --card: #f1eef0;
    --line: rgba(42, 42, 42, 0.08);
    --radius: 12px;
    --wrap: min(1080px, calc(100% - 2.5rem));
    --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC",
        "Helvetica Neue", Arial, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
    background: var(--chalk);
}

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

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

figure {
    margin: 0;
}

code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.9em;
    padding: 0.1em 0.35em;
    border-radius: 4px;
    background: rgba(42, 42, 42, 0.06);
}

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

.skip-link {
    position: absolute;
    left: 1rem;
    top: -3rem;
    z-index: 100;
    padding: 0.5rem 1rem;
    background: var(--brand);
    color: #fff;
    border-radius: var(--radius);
}

.skip-link:focus {
    top: 1rem;
}

.wrap {
    width: var(--wrap);
    margin-inline: auto;
}

.page-top-anchor {
    position: relative;
    height: 0;
    width: 0;
    overflow: hidden;
}

/* —— Header —— */
.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(8px);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 3.75rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: var(--ink);
}

.brand__logo {
    width: 2.25rem;
    height: 2.25rem;
    flex-shrink: 0;
    border-radius: 8px;
    object-fit: cover;
    object-position: center;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.site-nav__link {
    padding: 0.4rem 0.65rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-muted);
    border-radius: var(--radius);
}

.site-nav__link:hover,
.site-nav__link:focus-visible {
    color: var(--ink);
    background: var(--soft);
}

.site-nav__btn {
    margin-left: 0.35rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    font-size: 0.88rem;
    font-weight: 800;
    color: #fff;
    background: var(--brand);
}

.site-nav__btn:hover,
.site-nav__btn:focus-visible {
    background: var(--brand-deep);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    cursor: pointer;
}

.nav-toggle__bar {
    display: block;
    width: 1.1rem;
    height: 2px;
    margin-inline: auto;
    background: var(--ink);
}

[data-app-name]:not(.brand__text)::before {
    content: "「";
}

[data-app-name]:not(.brand__text)::after {
    content: "」";
}

/* —— Hero：小程序同款渐变底 + 居中双栏（文案 / 截图）—— */
.hero {
    position: relative;
    color: #fff;
    background: var(--page-bg);
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(
        135deg,
        var(--hero-grad-a) 0%,
        var(--hero-grad-b) 48%,
        var(--hero-grad-c) 100%
    );
}

.hero__panel {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(10.5rem, 15rem);
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: center;
    min-height: min(86vh, 44rem);
    padding: clamp(3rem, 5vh, 4.5rem) 0;
}

.hero__panel::after {
    content: "";
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    right: 8%;
    top: -2rem;
    pointer-events: none;
}

.hero__copy {
    min-width: 0;
    max-width: 36rem;
    animation: hero-rise 0.75s ease-out both;
}

.hero__phone {
    margin: 0;
    width: 100%;
    max-width: 15rem;
    justify-self: center;
}

.hero__phone img {
    width: 100%;
    max-height: min(70vh, 32rem);
    aspect-ratio: 9 / 16;
    object-fit: cover;
    object-position: top center;
    border-radius: var(--radius);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
}

@keyframes hero-rise {
    from {
        opacity: 0;
        transform: translateY(1rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero__brand {
    margin: 0 0 0.7rem;
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: 0.04em;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.hero__title {
    margin: 0 0 0.9rem;
    font-size: clamp(1.35rem, 2.8vw, 1.75rem);
    font-weight: 800;
    line-height: 1.35;
}

.hero__desc {
    margin: 0 0 1.6rem;
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.92);
    max-width: 30em;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    padding: 0 1.35rem;
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-weight: 800;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.btn--lg {
    min-height: 3.15rem;
    padding-inline: 1.55rem;
    font-size: 1rem;
}

.btn--primary {
    color: #fff;
    background: var(--brand);
}

.btn--primary:hover,
.btn--primary:focus-visible {
    background: var(--brand-deep);
    transform: translateY(-1px);
}

.btn--ghost {
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.55);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
    background: rgba(255, 255, 255, 0.24);
    border-color: #fff;
}

/* —— Sections —— */
.section {
    padding: 4.5rem 0;
    background: var(--chalk);
}

.section--soft {
    background: var(--soft);
}

.section--pop {
    background: linear-gradient(145deg, var(--brand-deep) 0%, var(--brand) 42%, #b85a52 100%);
    color: #fff;
}

.section--ink {
    background: var(--ink-soft);
    color: #f5f5f5;
}

.section-head {
    max-width: 40rem;
    margin-bottom: 2.25rem;
}

.section-head--light .section-head__title,
.section-head--on-ink .section-head__title {
    color: #fff;
}

.section-head--light .section-head__desc {
    color: rgba(255, 255, 255, 0.9);
}

.section-head--on-ink .section-head__desc {
    color: rgba(245, 245, 245, 0.72);
}

.section-head__title {
    margin: 0 0 0.55rem;
    font-size: clamp(1.7rem, 3vw, 2.2rem);
    font-weight: 900;
    letter-spacing: 0.01em;
    color: var(--ink);
}

.section-head__desc {
    margin: 0;
    color: var(--text-muted);
    font-size: 1.05rem;
}

.section-closing {
    margin: 2.25rem 0 0;
    max-width: 36em;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--brand-deep);
    padding-top: 1.25rem;
    border-top: 3px solid var(--brand-soft);
}

.note {
    margin: 2rem 0 0;
    max-width: 40em;
    font-size: 0.92rem;
    color: var(--text-muted);
    padding-left: 0.85rem;
    border-left: 4px solid var(--brand);
}

.note--on-pop {
    color: rgba(255, 255, 255, 0.92);
    border-left-color: rgba(255, 255, 255, 0.55);
}

/* 痛点 + 小程序截图 */
.pain-grid {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 2rem;
    align-items: start;
}

.pain-visual img {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    aspect-ratio: 9 / 16;
    max-height: 36rem;
    object-fit: cover;
    object-position: top center;
    box-shadow: 0 12px 40px rgba(42, 42, 42, 0.12);
}

.pain-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1.15rem;
}

.pain {
    position: relative;
    padding: 0.85rem 0.85rem 0.85rem 1.25rem;
    border-radius: var(--radius);
    overflow: hidden;
    --pain-accent: var(--brand);
    --pain-tint: rgba(200, 76, 70, 0.08);
    background: var(--pain-tint);
}

.pain::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: var(--pain-accent);
    border-top-left-radius: var(--radius);
    border-bottom-left-radius: var(--radius);
}

.pain:nth-child(2) {
    --pain-accent: var(--accent-blue);
    --pain-tint: rgba(74, 144, 226, 0.08);
}

.pain:nth-child(3) {
    --pain-accent: var(--score-down);
    --pain-tint: rgba(107, 158, 119, 0.1);
}

.pain:nth-child(4) {
    --pain-accent: #d84315;
    --pain-tint: rgba(216, 67, 21, 0.1);
}

.pain:nth-child(5) {
    --pain-accent: #c9a227;
    --pain-tint: rgba(201, 162, 39, 0.1);
}

.pain__title {
    margin: 0 0 0.3rem;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--ink);
}

.pain__text {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* 场景 */
.scene-showcase {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 1.75rem;
    align-items: start;
}

.scene-showcase__pic img {
    width: 100%;
    border-radius: var(--radius);
    aspect-ratio: 1;
    object-fit: cover;
}

.scene-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.scene {
    display: grid;
    grid-template-columns: 2.75rem 1fr;
    gap: 0.75rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.28);
}

.scene:first-child {
    border-top: 1px solid rgba(255, 255, 255, 0.28);
}

.scene__n {
    font-size: 0.95rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.75);
    padding-top: 0.1rem;
}

.scene__title {
    margin: 0 0 0.2rem;
    font-size: 1.05rem;
    font-weight: 800;
}

.scene__text {
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.95rem;
}

/* 能力：截图通栏 + 说明列表 */
.ability-banner {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.ability-phones {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: clamp(0.85rem, 1.6vw, 1.35rem);
}

.ability-phones__item {
    min-width: 0;
}

.ability-phones__item img {
    width: 100%;
    border-radius: var(--radius);
    aspect-ratio: 9 / 16;
    max-height: min(24rem, 52vh);
    object-fit: cover;
    object-position: top center;
    box-shadow: 0 10px 32px rgba(42, 42, 42, 0.12);
}

.ability-phones__cap {
    margin-top: 0.6rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-muted);
    text-align: center;
}

.ability-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.15rem 1.35rem;
}

.ability-list h3 {
    margin: 0 0 0.25rem;
    font-size: 1.02rem;
    font-weight: 800;
    color: var(--ink);
}

.ability-list p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.ability-list li {
    padding: 0.75rem 0.85rem;
    background: var(--card);
    border-radius: var(--radius);
    border-top: 3px solid var(--brand);
}

.ability-list li:nth-child(even) {
    border-top-color: var(--score-down);
}

/* 对比 */
.compare__cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem 2rem;
}

.compare__label {
    margin: 0 0 0.75rem;
    font-size: 1.35rem;
    font-weight: 900;
    color: rgba(245, 245, 245, 0.5);
}

.compare__col--hilite .compare__label {
    color: var(--brand-hot);
}

.compare__col ul {
    margin: 0;
    padding-left: 1.1rem;
    color: rgba(245, 245, 245, 0.78);
    font-size: 0.95rem;
}

.compare__col li + li {
    margin-top: 0.45rem;
}

.compare__col--hilite {
    padding: 1.25rem;
    border-radius: var(--radius);
    background: rgba(200, 76, 70, 0.14);
    border: 1px solid rgba(200, 76, 70, 0.35);
}

.compare__col--hilite ul {
    color: #fff5f4;
}

/* 步骤 */
.how__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2rem 2.5rem;
    align-items: center;
}

.how__qr {
    margin: 0;
    width: 11rem;
    text-align: center;
    flex-shrink: 0;
}

.how__qr-img {
    width: 11rem;
    height: 11rem;
    margin-inline: auto;
    border-radius: var(--radius);
    background: #fff;
    object-fit: contain;
    padding: 10px;
    box-shadow: 0 12px 36px rgba(42, 42, 42, 0.1);
}

.how__qr-cap {
    margin: 0.65rem 0 0;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
    color: var(--text-muted);
}

.steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1rem;
    max-width: 40rem;
}

.steps__item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.steps__num {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: var(--radius);
    font-weight: 900;
    font-size: 1rem;
    color: #fff;
    background: var(--brand);
}

.steps__item:nth-child(2) .steps__num {
    background: var(--accent-blue);
}

.steps__item:nth-child(3) .steps__num {
    background: var(--score-down);
}

.steps__title {
    margin: 0 0 0.2rem;
    font-size: 1.05rem;
    font-weight: 800;
}

.steps__text {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* 评价 */
.voice-layout {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 1.75rem;
    align-items: start;
}

.voice-layout__pic img {
    width: 100%;
    border-radius: var(--radius);
    aspect-ratio: 1;
    object-fit: cover;
}

.voice-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1.15rem;
}

.voice {
    padding: 1rem 1.1rem;
    background: var(--card);
    border-radius: var(--radius);
    border-left: 4px solid var(--brand);
}

.voice:nth-child(even) {
    border-left-color: var(--score-down);
}

.voice__quote {
    margin: 0 0 0.45rem;
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.4;
    color: var(--ink);
}

.voice__body {
    margin: 0 0 0.45rem;
    color: var(--text-muted);
    font-size: 0.92rem;
}

.voice__meta {
    margin: 0;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--brand);
}

.trust-line {
    margin: 2.25rem 0 0;
    padding: 1rem 1.15rem;
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: var(--ink);
    background: linear-gradient(90deg, var(--brand-soft), #fff);
}

/* —— Open —— */
.open {
    background: linear-gradient(160deg, #2a2a2a 0%, #3d2826 55%, #2a2a2a 100%);
    color: #fff;
}

.open__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2rem 2.5rem;
    align-items: center;
}

.open__copy {
    min-width: 0;
}

.open__title {
    margin: 0 0 0.75rem;
    font-size: clamp(1.7rem, 3vw, 2.2rem);
    font-weight: 900;
}

.open__desc {
    margin: 0 0 1.15rem;
    color: rgba(255, 255, 255, 0.78);
    max-width: 36em;
}

.open-ways {
    margin: 0 0 1.35rem;
    padding-left: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
}

.open-ways li + li {
    margin-top: 0.4rem;
}

.open-ways strong {
    color: #ffc8c4;
    font-weight: 800;
}

.open__qr-cap {
    margin: 0.65rem 0 0;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
    color: rgba(255, 255, 255, 0.82);
}

.open__visuals {
    display: flex;
    align-items: flex-end;
    gap: 1.15rem;
    flex-shrink: 0;
}

.open__shot {
    margin: 0;
    width: 8.75rem;
}

.open__shot img {
    width: 100%;
    height: 14.5rem;
    border-radius: var(--radius);
    object-fit: cover;
    object-position: top center;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.25);
}

.open__shot-cap {
    margin: 0.55rem 0 0;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
    color: rgba(255, 255, 255, 0.75);
}

.open__qr {
    margin: 0;
    width: 11rem;
    text-align: center;
}

.open__qr-img,
.open__qr-placeholder {
    width: 11rem;
    height: 11rem;
    margin-inline: auto;
    border-radius: var(--radius);
    background: #fff;
}

.open__qr-img {
    object-fit: contain;
    padding: 10px;
}

.open__qr-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    color: var(--text-muted);
    border: 1px dashed rgba(42, 42, 42, 0.2);
}

.open__qr-placeholder span {
    font-weight: 800;
    color: var(--ink);
}

.open__qr-placeholder small {
    font-size: 0.75rem;
    padding-inline: 1rem;
}

/* FAQ */
.faq {
    margin: 0;
    max-width: 40rem;
}

.faq__item {
    padding: 1rem 0;
    border-bottom: 1px solid var(--line);
}

.faq__item:first-child {
    border-top: 1px solid var(--line);
}

.faq__item dt {
    margin: 0 0 0.3rem;
    font-weight: 800;
    color: var(--ink);
}

.faq__item dd {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* —— Footer —— */
.site-footer {
    padding: 1.25rem 0;
    background: #1f1f1f;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.9rem;
}

.site-footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.site-footer__copy {
    margin: 0;
}

.site-footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
}

.site-footer__link {
    color: rgba(255, 255, 255, 0.88);
    font-weight: 700;
}

.site-footer__link:hover,
.site-footer__link:focus-visible {
    color: #ffc8c4;
}

.reveal {
    opacity: 0;
    transform: translateY(0.75rem);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.is-in {
    opacity: 1;
    transform: translateY(0);
}

/* —— Responsive —— */
@media (max-width: 900px) {
    .pain-grid,
    .how__grid,
    .scene-showcase,
    .ability-banner,
    .voice-layout,
    .compare__cols,
    .open__grid {
        grid-template-columns: 1fr;
    }

    .hero__panel {
        grid-template-columns: 1fr;
        min-height: auto;
        padding: 3rem 0;
        text-align: center;
    }

    .hero__copy {
        max-width: none;
    }

    .hero__phone {
        order: -1;
        max-width: 12.5rem;
    }

    .hero__actions {
        justify-content: center;
    }

    .open__visuals {
        justify-content: center;
        width: 100%;
    }

    .open-ways {
        width: 100%;
    }

    .how__qr {
        justify-self: center;
    }

    .ability-phones {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1.15rem;
        max-width: none;
        margin-inline: 0;
    }

    .ability-phones__item img {
        max-height: 20rem;
    }

    .ability-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pain-visual img {
        max-height: 28rem;
        margin-inline: auto;
        max-width: 16rem;
    }
}

@media (max-width: 720px) {
    :root {
        --wrap: min(1080px, calc(100% - 1.5rem));
    }

    .nav-toggle {
        display: flex;
    }

    .site-header__inner {
        position: relative;
    }

    .site-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        padding: 0.75rem 1rem 1rem;
        background: #fff;
        border-bottom: 1px solid var(--line);
    }

    .site-nav.is-open {
        display: flex;
    }

    .site-nav__btn {
        margin-left: 0;
        text-align: center;
    }

    .hero__panel {
        min-height: auto;
        padding: 2.75rem 0 3rem;
    }

    .section {
        padding: 3.25rem 0;
    }

    .hero__actions {
        width: 100%;
    }

    .hero__actions .btn {
        flex: 1 1 auto;
    }

    .ability-phones {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: none;
    }

    .ability-phones__item img {
        max-height: 17rem;
    }

    .ability-list {
        grid-template-columns: 1fr;
    }
}

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

    .hero__copy,
    .reveal,
    .btn {
        animation: none !important;
        transition: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}
