/* ========== 基础重置 ========== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --primary: #5b3fd6;
    --primary-dark: #3d2aa5;
    --primary-light: #7a63e8;
    --accent: #22c1c3;
    --bg: #f6f4ff;
    --bg-hero: linear-gradient(160deg, #7a63e8 0%, #5b3fd6 45%, #3d2aa5 100%);
    --text: #1a1533;
    --text-muted: #6b6689;
    --white: #ffffff;
    --card: #ffffff;
    --shadow-sm: 0 4px 12px rgba(61, 42, 165, 0.08);
    --shadow-md: 0 12px 32px rgba(61, 42, 165, 0.15);
    --shadow-lg: 0 24px 60px rgba(61, 42, 165, 0.25);
    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --transition: 0.25s ease;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

html[lang="ar"] body {
    font-family: 'Cairo', 'Segoe UI', Tahoma, sans-serif;
}

html[lang="en"] body {
    font-family: 'Inter', 'Segoe UI', Roboto, sans-serif;
}

html[lang="zh"] body {
    font-family: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Segoe UI', sans-serif;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
}

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

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

button {
    font: inherit;
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: 20px;
}

/* ========== 顶部导航 ========== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid rgba(91, 63, 214, 0.08);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-block: 14px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    font-size: 20px;
    color: var(--primary-dark);
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--bg-hero);
    color: var(--white);
    font-size: 14px;
    letter-spacing: 0.5px;
}

.lang-switch {
    display: inline-flex;
    padding: 4px;
    background: rgba(91, 63, 214, 0.08);
    border-radius: 999px;
    gap: 4px;
}

.lang-btn {
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-dark);
    transition: var(--transition);
    white-space: nowrap;
}

@media (min-width: 480px) {
    .lang-btn {
        padding: 8px 16px;
    }
}

.lang-btn:hover {
    color: var(--primary);
}

.lang-btn.is-active {
    background: var(--white);
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

/* ========== Hero ========== */
.hero {
    position: relative;
    background: var(--bg-hero);
    color: var(--white);
    padding-block: 40px 60px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.5;
}

.blob-1 {
    width: 320px;
    height: 320px;
    background: #a58fff;
    top: -80px;
    inset-inline-end: -80px;
}

.blob-2 {
    width: 260px;
    height: 260px;
    background: #22c1c3;
    bottom: -60px;
    inset-inline-start: -60px;
    opacity: 0.35;
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: center;
}

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

.eyebrow {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
    margin-bottom: 18px;
}

.hero-title {
    font-size: clamp(26px, 5.5vw, 44px);
    line-height: 1.25;
    font-weight: 800;
    margin: 0 0 14px;
    letter-spacing: -0.01em;
}

.hero-sub {
    font-size: clamp(14px, 2.4vw, 17px);
    color: rgba(255, 255, 255, 0.88);
    margin: 0 auto 26px;
    max-width: 560px;
}

/* ========== 收入卡片 ========== */
.income-card {
    background: var(--card);
    color: var(--text);
    border-radius: var(--radius-xl);
    padding: 28px 22px;
    box-shadow: var(--shadow-lg);
    max-width: 520px;
    margin-inline: auto;
    text-align: center;
}

.income-label {
    color: var(--text-muted);
    font-size: 14px;
    margin: 0 0 10px;
    font-weight: 600;
}

.income-range {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: baseline;
    gap: 8px;
    margin: 0 0 6px;
    font-size: clamp(16px, 3vw, 20px);
    color: var(--text-muted);
    font-weight: 600;
}

.income-amount {
    font-size: clamp(28px, 6vw, 40px);
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.amount-max {
    background: linear-gradient(120deg, #5b3fd6, #22c1c3);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.income-note {
    color: var(--text-muted);
    font-size: 13px;
    margin: 0 0 22px;
}

.features {
    list-style: none;
    padding: 0;
    margin: 0 0 22px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.feature {
    background: #f4f1ff;
    border-radius: var(--radius);
    padding: 14px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.feature:hover {
    transform: translateY(-2px);
    background: #ece5ff;
}

.feature-icon {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: 10px;
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.feature-icon svg {
    width: 20px;
    height: 20px;
}

.feature-text {
    font-size: 12px;
    font-weight: 600;
    color: var(--text);
    text-align: center;
    line-height: 1.3;
}

/* ========== CTA 按钮 ========== */
.cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px 22px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: var(--white);
    font-weight: 700;
    font-size: 16px;
    border-radius: 999px;
    box-shadow: 0 12px 28px rgba(91, 63, 214, 0.4);
    transition: var(--transition);
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(91, 63, 214, 0.5);
}

.cta-btn:active {
    transform: translateY(0);
}

.cta-icon {
    width: 20px;
    height: 20px;
}

html[dir="rtl"] .cta-icon {
    transform: scaleX(-1);
}

.cta-btn--light {
    background: var(--white);
    color: var(--primary);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
    max-width: 260px;
}

.cta-btn--light:hover {
    background: #f4f1ff;
}

.disclaimer {
    color: var(--text-muted);
    font-size: 12px;
    margin: 16px 0 0;
    line-height: 1.55;
}

/* ========== Hero 右侧 Visual ========== */
.hero-visual {
    display: none;
}

.visual-card {
    position: relative;
    aspect-ratio: 4 / 5;
    max-width: 460px;
    margin-inline: auto;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: linear-gradient(160deg, #f4efff, #dcd0ff);
    box-shadow: var(--shadow-lg);
    isolation: isolate;
}

.person-photo {
    display: block;
    width: 100%;
    height: 100%;
}

.person-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    display: block;
}

.visual-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(91, 63, 214, 0) 55%, rgba(61, 42, 165, 0.55) 100%);
    pointer-events: none;
    z-index: 1;
}

.visual-card .chat-bubble {
    z-index: 2;
}

.chat-bubble {
    position: absolute;
    background: var(--white);
    color: var(--text);
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: var(--shadow-md);
    z-index: 2;
    white-space: nowrap;
}

.bubble-top {
    top: 18px;
    inset-inline-start: 18px;
}

.bubble-bottom {
    bottom: 24px;
    inset-inline-end: 18px;
    color: #16a34a;
}

.bubble-dot {
    width: 8px;
    height: 8px;
    background: #16a34a;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.15);
}

.bubble-amount {
    color: var(--primary);
    font-weight: 800;
}

.bubble-check {
    width: 16px;
    height: 16px;
}

/* ========== 通用区块标题 ========== */
.section-title {
    font-size: clamp(22px, 3.6vw, 32px);
    font-weight: 800;
    color: var(--text);
    text-align: center;
    margin: 0 0 10px;
    letter-spacing: -0.01em;
}

.section-sub {
    text-align: center;
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto 32px;
    font-size: 15px;
}

/* ========== 步骤 ========== */
.steps {
    padding-block: 64px;
    background: var(--white);
}

.step-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.step-item {
    position: relative;
    background: var(--bg);
    border: 1px solid rgba(91, 63, 214, 0.1);
    border-radius: var(--radius-lg);
    padding: 26px 22px 22px;
    transition: var(--transition);
}

.step-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: rgba(91, 63, 214, 0.25);
}

.step-num {
    position: absolute;
    top: -18px;
    inset-inline-start: 22px;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-hero);
    color: var(--white);
    border-radius: 12px;
    font-weight: 800;
    font-size: 18px;
    box-shadow: var(--shadow-md);
}

.step-title {
    font-size: 18px;
    font-weight: 700;
    margin: 8px 0 6px;
}

.step-desc {
    color: var(--text-muted);
    font-size: 14px;
    margin: 0;
    line-height: 1.6;
}

/* ========== 信任数据 ========== */
.trust {
    padding-block: 40px;
    background: var(--bg);
}

.trust-inner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    text-align: center;
}

.trust-item {
    padding: 16px 8px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.trust-num {
    display: block;
    font-size: clamp(20px, 4vw, 28px);
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.trust-label {
    display: block;
    color: var(--text-muted);
    font-size: 12px;
    margin-top: 4px;
}

/* ========== FAQ ========== */
.faq {
    padding-block: 64px;
    background: var(--white);
}

.faq-item {
    border: 1px solid rgba(91, 63, 214, 0.12);
    border-radius: var(--radius);
    padding: 18px 20px;
    margin-bottom: 12px;
    background: var(--bg);
    transition: var(--transition);
}

.faq-item[open] {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    border-color: rgba(91, 63, 214, 0.25);
}

.faq-item summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
    font-weight: 700;
    color: var(--text);
    font-size: 15px;
}

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

.faq-item summary::after {
    content: "+";
    font-size: 22px;
    color: var(--primary);
    font-weight: 400;
    transition: var(--transition);
    line-height: 1;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item p {
    color: var(--text-muted);
    margin: 10px 0 0;
    font-size: 14px;
    line-height: 1.7;
}

/* ========== 底部 CTA ========== */
.cta-band {
    padding-block: 48px;
    background: var(--bg-hero);
    color: var(--white);
}

.cta-band-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
}

.cta-band-title {
    font-size: clamp(22px, 3.6vw, 30px);
    font-weight: 800;
    margin: 0 0 6px;
}

.cta-band-sub {
    margin: 0;
    color: rgba(255, 255, 255, 0.85);
    font-size: 15px;
}

/* ========== Footer ========== */
.site-footer {
    padding-block: 24px;
    background: #17123a;
    color: rgba(255, 255, 255, 0.75);
    font-size: 13px;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 20px;
}

.footer-links a {
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white);
}

.site-footer p {
    margin: 0;
}

/* ========== 平板 ========== */
@media (min-width: 640px) {
    .step-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ========== 桌面 ========== */
@media (min-width: 900px) {
    .container {
        padding-inline: 32px;
    }

    .hero {
        padding-block: 72px 96px;
    }

    .hero-inner {
        grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
        gap: 56px;
        align-items: center;
    }

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

    .hero-sub {
        margin-inline: 0;
    }

    .income-card {
        margin-inline: 0;
        padding: 32px 28px;
    }

    .hero-visual {
        display: block;
    }

    .cta-band-inner {
        flex-direction: row;
        justify-content: space-between;
        text-align: start;
    }

    .footer-inner {
        flex-direction: row;
        justify-content: space-between;
        text-align: start;
    }

    .trust-inner {
        gap: 24px;
    }

    .trust-item {
        padding: 24px 16px;
    }

    .steps,
    .faq {
        padding-block: 96px;
    }

    .faq .container {
        max-width: 820px;
    }
}

@media (min-width: 1200px) {
    .hero-inner {
        gap: 80px;
    }

    .visual-card {
        max-width: 520px;
    }
}

/* ========== 无障碍：动效偏好 ========== */
@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        animation: none !important;
        scroll-behavior: auto !important;
    }
}
