/* ============ 公共首页 ============ */

.home-page {
    --home-bg: #f5f9fd;
    --home-surface: #ffffff;
    --home-surface-muted: #edf4fa;
    --home-ink: #12233b;
    --home-muted: #617086;
    --home-line: #dce7f1;
    --home-accent: #0aa6a6;
    --home-blue: #0d6efd;
    --home-shadow: 0 18px 55px rgba(27, 58, 91, .10);
    margin-top: 62px;
    color: var(--home-ink);
}

[data-bs-theme="dark"] .home-page {
    --home-bg: #10161e;
    --home-surface: #171f29;
    --home-surface-muted: #1d2733;
    --home-ink: #edf3fa;
    --home-muted: #aab7c5;
    --home-line: #2c3948;
    --home-accent: #34c9c1;
    --home-blue: #62a1ff;
    --home-shadow: 0 18px 55px rgba(0, 0, 0, .28);
}

.home-page .container {
    max-width: 1240px;
}

.home-section-kicker {
    margin-bottom: .65rem;
    color: var(--home-accent);
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.home-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(3.5rem, 8vw, 7.5rem) 0 clamp(4rem, 8vw, 7rem);
    background:
        radial-gradient(circle at 88% 20%, rgba(10, 166, 166, .13), transparent 30rem),
        radial-gradient(circle at 12% 90%, rgba(13, 110, 253, .12), transparent 34rem),
        var(--home-bg);
}

.home-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .42;
    background-image:
        linear-gradient(rgba(79, 115, 151, .06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(79, 115, 151, .06) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom, black, transparent 88%);
}

.home-hero > .container {
    position: relative;
    z-index: 1;
}

.home-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    margin-bottom: 1.25rem;
    padding: .42rem .75rem;
    border: 1px solid rgba(10, 166, 166, .24);
    border-radius: 999px;
    background: rgba(255, 255, 255, .72);
    color: #087f82;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .03em;
}

[data-bs-theme="dark"] .home-eyebrow {
    background: rgba(23, 31, 41, .74);
    color: var(--home-accent);
}

.home-hero-title {
    max-width: 12em;
    margin: 0 0 1.25rem;
    color: var(--home-ink);
    font-size: clamp(2.5rem, 5.4vw, 4.45rem);
    font-weight: 800;
    letter-spacing: -.055em;
    line-height: 1.07;
}

.home-hero-title span {
    color: var(--home-blue);
}

.home-hero-lead {
    max-width: 38rem;
    margin-bottom: 1.75rem;
    color: var(--home-muted);
    font-size: clamp(1rem, 1.7vw, 1.12rem);
    line-height: 1.8;
}

.home-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
}

.home-primary-btn {
    box-shadow: 0 8px 20px rgba(13, 110, 253, .22);
}

.home-hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem 1.3rem;
    margin: 1.6rem 0 0;
    padding: 0;
    color: var(--home-muted);
    font-size: .82rem;
    list-style: none;
}

.home-hero-points li {
    display: flex;
    align-items: center;
    gap: .35rem;
}

.home-hero-points .bi {
    color: var(--home-accent);
}

.home-product-preview {
    position: relative;
    max-width: 580px;
    margin-left: auto;
}

.home-product-preview::before {
    content: "";
    position: absolute;
    inset: 12% -6% -7% 16%;
    border-radius: 2rem;
    background: linear-gradient(135deg, rgba(13, 110, 253, .16), rgba(10, 166, 166, .18));
    filter: blur(8px);
    transform: rotate(3deg);
}

.home-preview-window {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(165, 190, 214, .62);
    border-radius: 1.4rem;
    background: var(--home-surface);
    box-shadow: var(--home-shadow);
    transform: rotate(-1.25deg);
}

.home-preview-toolbar {
    display: flex;
    align-items: center;
    gap: .42rem;
    padding: .8rem 1rem;
    border-bottom: 1px solid var(--home-line);
    background: var(--home-surface-muted);
}

.home-preview-toolbar > span {
    width: .58rem;
    height: .58rem;
    border-radius: 50%;
    background: #e07878;
}

.home-preview-toolbar > span:nth-child(2) {
    background: #e5b24f;
}

.home-preview-toolbar > span:nth-child(3) {
    background: #58b579;
}

.home-preview-toolbar small {
    margin-left: auto;
    color: var(--home-muted);
    font-size: .68rem;
    font-weight: 650;
    letter-spacing: .04em;
}

.home-preview-body {
    padding: clamp(1.1rem, 3vw, 1.75rem);
}

.home-preview-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.home-preview-heading div {
    display: flex;
    flex-direction: column;
    gap: .25rem;
}

.home-preview-heading small {
    color: var(--home-muted);
    font-size: .7rem;
}

.home-preview-heading strong {
    color: var(--home-ink);
    font-size: 1.05rem;
}

.home-preview-email {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid var(--home-line);
    border-radius: 1rem;
    background: var(--home-bg);
}

.home-preview-image {
    display: flex;
    flex: 0 0 5.8rem;
    align-items: center;
    justify-content: center;
    aspect-ratio: 4 / 3;
    border-radius: .8rem;
    background:
        linear-gradient(145deg, rgba(13, 110, 253, .15), rgba(10, 166, 166, .28));
    color: #fff;
    font-size: 1.75rem;
}

.home-preview-email-copy {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: .55rem;
}

.home-placeholder-line {
    display: block;
    width: 86%;
    height: .5rem;
    border-radius: 999px;
    background: var(--home-line);
}

.home-placeholder-line-lg {
    width: 72%;
    height: .7rem;
    background: #98aec4;
}

.home-placeholder-line-sm {
    width: 58%;
}

.home-preview-progress {
    margin: 1.25rem 0;
}

.home-preview-progress > div:first-child {
    margin-bottom: .5rem;
    color: var(--home-muted);
    font-size: .76rem;
    font-weight: 650;
}

.home-preview-progress .progress {
    height: .5rem;
    background: var(--home-surface-muted);
}

.home-preview-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .6rem;
}

.home-preview-metrics > div {
    display: flex;
    align-items: center;
    gap: .45rem;
    min-width: 0;
    padding: .7rem;
    border-radius: .75rem;
    background: var(--home-surface-muted);
    color: var(--home-muted);
    font-size: .72rem;
    font-weight: 650;
}

.home-preview-metrics .bi {
    flex: none;
    color: var(--home-accent);
    font-size: 1rem;
}

.home-preview-note {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    margin-top: 1.3rem;
    color: var(--home-muted);
    font-size: .72rem;
}

.home-section {
    padding: clamp(4rem, 8vw, 7rem) 0;
    background: var(--home-surface);
}

.home-section-heading {
    max-width: 45rem;
    margin-bottom: clamp(2rem, 4vw, 3.25rem);
}

.home-section-heading h2,
.home-faq-section h2 {
    margin: 0 0 .85rem;
    color: var(--home-ink);
    font-size: clamp(2rem, 4vw, 3.15rem);
    font-weight: 800;
    letter-spacing: -.045em;
}

.home-section-heading p,
.home-faq-section > .container p {
    margin-bottom: 0;
    color: var(--home-muted);
    line-height: 1.75;
}

.home-feature-card {
    padding: 1.5rem;
    border: 1px solid var(--home-line);
    border-radius: 1rem;
    background: var(--home-surface);
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.home-feature-card:hover {
    border-color: rgba(10, 166, 166, .48);
    box-shadow: 0 15px 35px rgba(27, 58, 91, .08);
    transform: translateY(-3px);
}

.home-feature-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.home-feature-top > span {
    color: var(--home-line);
    font-size: 1.4rem;
    font-weight: 800;
}

.home-feature-icon,
.home-step-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: .85rem;
    background: rgba(10, 166, 166, .11);
    color: var(--home-accent);
    font-size: 1.35rem;
}

.home-feature-card h3,
.home-step-card h3,
.home-price-card h3 {
    color: var(--home-ink);
    font-size: 1.08rem;
    font-weight: 750;
}

.home-feature-card p,
.home-step-card p,
.home-price-card p {
    margin-bottom: 0;
    color: var(--home-muted);
    font-size: .88rem;
    line-height: 1.7;
}

.home-workflow-section {
    background:
        linear-gradient(180deg, var(--home-surface-muted), var(--home-surface));
}

.home-step-card {
    position: relative;
    overflow: hidden;
    padding: 1.75rem;
    border: 1px solid var(--home-line);
    border-radius: 1rem;
    background: var(--home-surface);
}

.home-step-number {
    position: absolute;
    top: .7rem;
    right: 1rem;
    color: rgba(13, 110, 253, .10);
    font-size: 4rem;
    font-weight: 900;
    letter-spacing: -.07em;
    line-height: 1;
}

[data-bs-theme="dark"] .home-step-number {
    color: rgba(98, 161, 255, .14);
}

.home-step-icon {
    margin-bottom: 1.4rem;
    background: rgba(13, 110, 253, .10);
    color: var(--home-blue);
}

.home-step-card h3 {
    margin-bottom: .55rem;
}

.home-pricing-heading {
    display: flex;
    max-width: none;
    align-items: end;
    justify-content: space-between;
    gap: 2rem;
}

.home-pricing-heading > div {
    max-width: 43rem;
}

.home-price-card {
    display: flex;
    flex-direction: column;
    padding: 1.6rem;
    border: 1px solid var(--home-line);
    border-radius: 1rem;
    background: var(--home-surface);
}

.home-price-card.is-best {
    border-color: rgba(10, 166, 166, .58);
    box-shadow: 0 12px 35px rgba(10, 166, 166, .09);
}

.home-price-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .85rem;
    min-height: 5.1rem;
}

.home-price-card h3 {
    margin-bottom: .4rem;
}

.home-price {
    margin: .4rem 0 .6rem;
    color: var(--home-ink);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -.045em;
}

.home-price small {
    margin-right: .1rem;
    color: var(--home-muted);
    font-size: .95rem;
    font-weight: 650;
}

.home-price-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem .9rem;
    min-height: 3.8rem;
    margin-bottom: 1.2rem;
    padding-bottom: 1.2rem;
    border-bottom: 1px solid var(--home-line);
    color: var(--home-muted);
    font-size: .75rem;
}

.home-price-meta strong {
    color: var(--home-ink);
}

.home-price-card > .btn {
    margin-top: auto;
}

.home-pricing-note {
    display: flex;
    align-items: flex-start;
    gap: .45rem;
    margin: 1.35rem 0 0;
    color: var(--home-muted);
    font-size: .74rem;
}

.home-empty-state {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    border: 1px dashed var(--home-line);
    border-radius: 1rem;
    background: var(--home-surface-muted);
}

.home-empty-state > .bi {
    color: var(--home-muted);
    font-size: 2rem;
}

.home-empty-state strong {
    color: var(--home-ink);
}

.home-empty-state p {
    margin: .25rem 0 0;
    color: var(--home-muted);
    font-size: .82rem;
}

.home-faq-section {
    background: var(--home-bg);
}

.home-faq-section h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.65rem);
}

.home-faq-section > .container > .row > div:last-child {
    padding-top: .4rem;
}

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

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

.home-faq-list summary {
    position: relative;
    padding: 1.15rem 2.5rem 1.15rem 0;
    color: var(--home-ink);
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}

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

.home-faq-list summary::after {
    content: "+";
    position: absolute;
    top: 50%;
    right: .2rem;
    color: var(--home-accent);
    font-size: 1.45rem;
    font-weight: 400;
    transform: translateY(-50%);
}

.home-faq-list details[open] summary::after {
    content: "−";
}

.home-faq-list details p {
    max-width: 48rem;
    margin: -.25rem 0 1.25rem;
    color: var(--home-muted);
    font-size: .88rem;
    line-height: 1.75;
}

.home-final-cta {
    padding: 0 0 clamp(4rem, 7vw, 6rem);
    background: var(--home-bg);
}

.home-final-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: clamp(1.75rem, 5vw, 3.5rem);
    border-radius: 1.35rem;
    background:
        radial-gradient(circle at 94% 5%, rgba(255, 255, 255, .18), transparent 16rem),
        linear-gradient(120deg, #083d77, #0d6efd 58%, #078a8e);
    color: #fff;
    box-shadow: 0 22px 55px rgba(13, 74, 135, .20);
}

.home-final-card .home-section-kicker {
    color: #9cebe5;
}

.home-final-card h2 {
    margin: 0 0 .65rem;
    color: #fff;
    font-size: clamp(1.7rem, 3.4vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -.035em;
}

.home-final-card p {
    margin: 0;
    color: rgba(255, 255, 255, .78);
}

@media (max-width: 991.98px) {
    .home-hero {
        padding-top: 4.5rem;
    }

    .home-product-preview {
        margin: 1rem auto 0;
    }

    .home-pricing-heading {
        display: block;
    }

    .home-pricing-heading > .btn {
        margin-top: 1.2rem;
    }

    .home-final-card {
        display: block;
    }

    .home-final-card > div:last-child {
        margin-top: 1.5rem;
    }
}

@media (max-width: 575.98px) {
    .home-page {
        margin-top: 62px;
    }

    .home-hero {
        padding-top: 3.5rem;
    }

    .home-hero-title {
        font-size: 2.45rem;
    }

    .home-actions .btn {
        width: 100%;
    }

    .home-preview-email {
        align-items: flex-start;
    }

    .home-preview-image {
        flex-basis: 4.5rem;
    }

    .home-preview-metrics {
        grid-template-columns: 1fr;
    }

    .home-final-card .btn {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-feature-card {
        transition: none;
    }
}
