/* 首页 B 版独立样式，经典版继续使用 style.css。 */
:root {
    --night: #17102f;
    --night-soft: #241645;
    --purple: #8055e9;
    --purple-deep: #5d32c7;
    --lavender: #b69af7;
    --gold: #f2c66d;
    --paper: #fbf9ff;
    --ink: #1f1932;
    --muted: #746e82;
    --line: #e9e2f2;
    --white: #fff;
}

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

html {
    scroll-behavior: smooth;
}

body.variant-b {
    min-width: 320px;
    color: var(--ink);
    background:
        linear-gradient(180deg, var(--night) 0 720px, var(--paper) 720px 100%);
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.55;
    overflow-x: hidden;
}

body.variant-b.theme-chinese {
    --night: #28130f;
    --night-soft: #3d1e17;
    --purple: #b1453f;
    --purple-deep: #8f2f2b;
    --lavender: #d79a88;
    --gold: #e8bd68;
    --paper: #f8f2e8;
    --ink: #2b211b;
    --muted: #78685c;
    --line: #ead8c4;
}

.star-field {
    position: absolute;
    inset: 0 0 auto;
    height: 720px;
    overflow: hidden;
    pointer-events: none;
    background:
        radial-gradient(circle at 12% 22%, rgba(182, 154, 247, .18), transparent 24%),
        radial-gradient(circle at 84% 10%, rgba(128, 85, 233, .22), transparent 26%),
        radial-gradient(circle at 70% 74%, rgba(242, 198, 109, .08), transparent 25%);
}

.star-field::before,
.star-field::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .7;
    background-image:
        radial-gradient(circle, #fff 0 1px, transparent 1.5px),
        radial-gradient(circle, var(--gold) 0 1px, transparent 1.5px);
    background-position: 20px 30px, 80px 110px;
    background-size: 150px 150px, 210px 210px;
}

.star-field::after {
    transform: rotate(17deg) scale(1.15);
    opacity: .2;
}

.topbar {
    position: relative;
    z-index: 2;
    max-width: 1180px;
    height: 88px;
    margin: 0 auto;
    padding: 0 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--white);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: inherit;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: .06em;
    text-decoration: none;
}

.brand img {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    box-shadow: 0 5px 18px rgba(98, 62, 184, .45);
}

.topbar-tag {
    color: rgba(255, 255, 255, .66);
    font-size: 13px;
    letter-spacing: .12em;
}

body.variant-b .theme-switch-container {
    position: static;
    z-index: 3;
}

body.variant-b .theme-toggle-btn {
    padding: 7px 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px;
    color: rgba(255, 255, 255, .82);
    background: rgba(255, 255, 255, .08);
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    transition: border-color .2s, background-color .2s, transform .2s;
}

body.variant-b .theme-toggle-btn:hover {
    border-color: rgba(255, 255, 255, .36);
    background: rgba(255, 255, 255, .14);
    transform: translateY(-1px);
}

body.variant-b .theme-toggle-btn:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}

.hero-shell {
    position: relative;
    z-index: 1;
    max-width: 1180px;
    min-height: 632px;
    margin: 0 auto;
    padding: 48px 28px 74px;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(410px, .82fr);
    align-items: center;
    gap: 76px;
}

.hero-copy {
    color: var(--white);
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--gold);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .18em;
}

.eyebrow span {
    width: 24px;
    height: 1px;
    background: var(--gold);
}

.hero-copy h1 {
    margin-top: 18px;
    font-family: "Songti SC", "STSong", serif;
    font-size: clamp(48px, 5.3vw, 72px);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -.03em;
}

.hero-copy h1 em {
    color: var(--gold);
    font-style: normal;
}

.hero-desc {
    max-width: 590px;
    margin-top: 24px;
    color: rgba(255, 255, 255, .72);
    font-size: 17px;
    line-height: 1.85;
}

.report-preview {
    margin-top: 34px;
}

.report-preview > p {
    margin-bottom: 14px;
    color: rgba(255, 255, 255, .47);
    font-size: 12px;
    letter-spacing: .16em;
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.preview-grid div {
    position: relative;
    min-height: 76px;
    padding: 15px 14px 13px 50px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 12px;
    background: rgba(255, 255, 255, .045);
}

.preview-grid span {
    position: absolute;
    left: 14px;
    top: 15px;
    color: var(--gold);
    font-family: Georgia, serif;
    font-size: 13px;
}

.preview-grid strong,
.preview-grid small {
    display: block;
}

.preview-grid strong {
    font-size: 15px;
}

.preview-grid small {
    margin-top: 2px;
    color: rgba(255, 255, 255, .48);
    font-size: 12px;
}

.trust-line {
    margin-top: 21px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    color: rgba(255, 255, 255, .52);
    font-size: 12px;
}

.form-card {
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, .34);
    border-radius: 24px;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 28px 65px rgba(5, 0, 25, .38);
}

.step-pill {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 999px;
    color: var(--purple-deep);
    background: #f0eaff;
    font-size: 11px;
    font-weight: 700;
}

.form-card-head h2 {
    margin-top: 12px;
    font-family: "Songti SC", "STSong", serif;
    font-size: 27px;
    line-height: 1.3;
}

.form-card-head p {
    margin-top: 5px;
    color: var(--muted);
    font-size: 13px;
}

.conversion-form {
    margin-top: 23px;
}

.compact-row {
    display: grid;
    grid-template-columns: 1.35fr .9fr;
    gap: 12px;
}

.field {
    margin-bottom: 16px;
    border: 0;
}

.field label,
.field legend {
    display: block;
    margin-bottom: 7px;
    color: #393148;
    font-size: 13px;
    font-weight: 700;
}

.field input[type="text"],
.field input[type="date"],
.field select {
    width: 100%;
    height: 48px;
    padding: 0 13px;
    border: 1px solid #ded7e8;
    border-radius: 10px;
    outline: none;
    color: var(--ink);
    background: var(--white);
    font-size: 15px;
    transition: border-color .2s, box-shadow .2s;
}

.field input:focus,
.field select:focus {
    border-color: var(--purple);
    box-shadow: 0 0 0 3px rgba(128, 85, 233, .12);
}

.field input::placeholder {
    color: #aaa4b3;
}

.segmented {
    height: 48px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 4px;
    border: 1px solid #ded7e8;
    border-radius: 10px;
    background: #f8f6fb;
}

.segmented label {
    margin: 0;
    cursor: pointer;
}

.segmented input {
    position: absolute;
    opacity: 0;
}

.segmented span {
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    color: var(--muted);
    font-size: 14px;
}

.segmented input:checked + span {
    color: var(--purple-deep);
    background: var(--white);
    box-shadow: 0 2px 8px rgba(50, 35, 90, .1);
    font-weight: 700;
}

.time-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.field-hint {
    margin-top: 6px;
    color: #9a94a4;
    font-size: 11px;
}

.conversion-cta {
    width: 100%;
    min-height: 54px;
    margin-top: 2px;
    padding: 0 17px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 0;
    border-radius: 11px;
    color: var(--white);
    background: linear-gradient(115deg, var(--purple-deep), #8e5df1);
    box-shadow: 0 10px 24px rgba(93, 50, 199, .28);
    cursor: pointer;
    font-size: 16px;
    font-weight: 800;
    transition: transform .2s, box-shadow .2s;
}

.conversion-cta b {
    font-size: 20px;
    transition: transform .2s;
}

.conversion-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(93, 50, 199, .35);
}

.conversion-cta:hover b {
    transform: translateX(3px);
}

.conversion-cta:disabled {
    cursor: wait;
    opacity: .72;
    transform: none;
}

.privacy-note {
    margin-top: 11px;
    text-align: center;
    color: #938d9d;
    font-size: 11px;
}

.how-it-works,
.history-panel {
    max-width: 1124px;
    margin: 0 auto;
    padding: 84px 28px 60px;
}

.section-heading {
    text-align: center;
}

.section-heading span {
    color: var(--purple);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .18em;
}

.section-heading h2 {
    margin-top: 8px;
    font-family: "Songti SC", "STSong", serif;
    font-size: 30px;
}

.steps {
    margin-top: 38px;
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    align-items: center;
    gap: 24px;
}

.steps article {
    min-height: 166px;
    padding: 25px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--white);
    text-align: center;
}

.steps article b {
    width: 35px;
    height: 35px;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--purple-deep);
    background: #f0eaff;
    font-family: Georgia, serif;
}

.steps h3 {
    font-size: 16px;
}

.steps p {
    margin-top: 5px;
    color: var(--muted);
    font-size: 13px;
}

.steps > i {
    color: #c3bacf;
    font-style: normal;
}

.history-panel {
    padding-top: 40px;
}

.history-list {
    max-width: 760px;
    margin: 28px auto 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--white);
}

.history-item {
    padding: 17px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: var(--ink);
    border-bottom: 1px solid var(--line);
    text-decoration: none;
}

.history-item:last-child {
    border-bottom: 0;
}

.history-item strong,
.history-item small {
    display: block;
}

.history-item small {
    margin-top: 3px;
    color: var(--muted);
}

.history-item > span {
    color: var(--purple-deep);
    font-size: 13px;
    font-weight: 700;
}

.b-footer {
    margin-top: 40px;
    padding: 46px 24px;
    color: rgba(255, 255, 255, .65);
    background: var(--night);
    text-align: center;
}

.footer-brand {
    color: var(--white);
}

.footer-brand img {
    width: 34px;
    height: 34px;
}

.b-footer p {
    margin-top: 15px;
    font-size: 12px;
}

.b-footer small {
    display: block;
    margin-top: 8px;
    color: rgba(255, 255, 255, .36);
}

@media (max-width: 900px) {
    body.variant-b {
        background: linear-gradient(180deg, var(--night) 0 1090px, var(--paper) 1090px 100%);
    }

    .star-field {
        height: 1090px;
    }

    .hero-shell {
        max-width: 680px;
        padding-top: 36px;
        grid-template-columns: 1fr;
        gap: 38px;
    }

    .hero-copy {
        text-align: center;
    }

    .eyebrow,
    .trust-line {
        justify-content: center;
    }

    .hero-desc {
        margin-left: auto;
        margin-right: auto;
    }

    .report-preview {
        text-align: left;
    }
}

@media (max-width: 600px) {
    body.variant-b {
        background: linear-gradient(180deg, var(--night) 0 920px, var(--paper) 920px 100%);
    }

    .topbar {
        height: 72px;
        padding: 0 18px;
    }

    .brand {
        font-size: 17px;
    }

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

    .topbar-tag {
        display: none;
    }

    body.variant-b .theme-toggle-btn {
        padding: 6px 9px;
        font-size: 11px;
    }

    .hero-shell {
        padding: 22px 16px 48px;
        gap: 24px;
    }

    .hero-copy h1 {
        margin-top: 14px;
        font-size: 40px;
    }

    .hero-desc {
        margin-top: 17px;
        font-size: 14px;
        line-height: 1.75;
    }

    .trust-line {
        margin-top: 17px;
        gap: 6px 13px;
        font-size: 10px;
    }

    .form-card {
        padding: 23px 18px;
        border-radius: 19px;
    }

    .form-card-head h2 {
        font-size: 24px;
    }

    .compact-row {
        grid-template-columns: 1.35fr .9fr;
        gap: 10px;
    }

    .conversion-cta {
        font-size: 15px;
    }

    .how-it-works,
    .history-panel {
        padding: 66px 16px 36px;
    }

    .section-heading h2 {
        font-size: 25px;
    }

    .steps {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .steps > i {
        transform: rotate(90deg);
        text-align: center;
    }

    .steps article {
        min-height: 0;
        padding: 20px;
    }

    .b-footer {
        margin-top: 30px;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
