/* ======================================================
   Duefy — public site styles (landing / pricing / blog / legal)
   ====================================================== */

/* a11y: skip-to-content（屏幕阅读器/键盘用户跳过 nav 到主内容） */
.skip-link {
    position: absolute; top: 0; left: 0;
    background: #4F46E5; color: #fff; padding: 8px 16px;
    border-radius: 0 0 6px 0; z-index: 10000;
    text-decoration: none; font-weight: 600;
    transform: translateY(-100%);
    transition: transform .15s;
}
.skip-link:focus { transform: translateY(0); outline: none; }

:focus-visible {
    outline: 2px solid #4F46E5;
    outline-offset: 2px;
    border-radius: 4px;
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

:root {
    --primary:      #4F46E5;
    --primary-dark: #4338CA;
    --ink:          #111827;
    --body:         #4B5563;
    --muted:        #9CA3AF;
    --line:         #E5E7EB;
    --bg-soft:      #F9FAFB;
    --bg-tint:      #EEF2FF;
    --green:        #10B981;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--body); line-height: 1.6; -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---- buttons ---- */
.btn {
    display: inline-block; padding: 12px 24px; border-radius: 9px;
    font-weight: 600; font-size: 15px; cursor: pointer; text-align: center;
    border: 1.5px solid transparent; transition: background .15s, box-shadow .15s, transform .08s;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); box-shadow: 0 8px 20px rgba(79,70,229,.28); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-outline { background: #fff; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--bg-tint); }
.btn-lg { padding: 16px 32px; font-size: 16px; }
.btn-block { display: block; width: 100%; }
.btn:active { transform: translateY(1px); }

/* ---- header / nav ---- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255,255,255,.95); backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}
.nav-container {
    max-width: 1120px; margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; gap: 32px; height: 72px;
}
.logo { display: flex; align-items: center; gap: 8px; }
.logo-icon { font-size: 24px; }
.logo-text { font-size: 24px; font-weight: 800; color: var(--primary); letter-spacing: -.5px; }
.logo span { color: var(--primary); }
.nav-links { list-style: none; display: flex; gap: 26px; flex: 1; }
.nav-links a { color: var(--body); font-weight: 500; font-size: 15px; }
.nav-links a:hover { color: var(--primary); }
.nav-actions { display: flex; align-items: center; gap: 18px; }
.nav-login { color: var(--ink); font-weight: 600; font-size: 15px; }
.btn-nav { position: relative; padding: 10px 20px; font-size: 15px; }
.btn-badge {
    position: absolute; top: -8px; right: -8px;
    background: var(--green); color: #fff; font-size: 10px; font-weight: 700;
    padding: 2px 6px; border-radius: 10px; white-space: nowrap;
}
.nav-hamburger { display: none; background: none; border: none; font-size: 24px; cursor: pointer; }

/* ---- section primitives ---- */
.section { padding: 80px 0; }
.section-soft { background: var(--bg-soft); }
.section-label {
    text-align: center; text-transform: uppercase; letter-spacing: .08em;
    font-size: 13px; font-weight: 700; color: var(--primary); margin-bottom: 10px;
}
.section h2, .results-section h2, .how-it-works h2, .pricing-section h2 {
    font-size: 36px; font-weight: 800; color: var(--ink);
    text-align: center; letter-spacing: -.02em; margin-bottom: 12px;
}
.section-sub { text-align: center; font-size: 17px; max-width: 580px; margin: 0 auto 48px; }

/* ---- hero ---- */
.hero {
    display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center;
    max-width: 1120px; margin: 0 auto; padding: 72px 24px 80px;
}
.hero-badge { margin-bottom: 18px; }
.hero-badge span {
    background: var(--bg-tint); color: var(--primary); font-size: 13px; font-weight: 600;
    padding: 6px 14px; border-radius: 20px;
}
.hero h1 { font-size: 56px; line-height: 1.08; font-weight: 800; color: var(--ink); letter-spacing: -.03em; }
.hero-highlight { color: var(--primary); }
.hero-sub { font-size: 19px; margin: 20px 0 28px; max-width: 520px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-trust { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 20px; font-size: 14px; color: var(--muted); }

/* ---- hero dashboard mock ---- */
.hero-visual { position: relative; }
.hero-dashboard-mock {
    background: #fff; border: 1px solid var(--line); border-radius: 14px;
    box-shadow: 0 24px 60px rgba(17,24,39,.16); overflow: hidden;
}
.mock-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 14px 18px; border-bottom: 1px solid var(--line);
}
.mock-logo { font-weight: 800; color: var(--primary); }
.mock-badge-green { color: var(--green); font-size: 12px; font-weight: 600; }
.mock-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; padding: 16px 18px; }
.mock-stat { background: var(--bg-soft); border-radius: 8px; padding: 12px; text-align: center; }
.mock-stat-green { background: #ECFDF5; }
.mock-stat-value { font-size: 19px; font-weight: 800; color: var(--ink); }
.mock-stat-label { font-size: 11px; color: var(--muted); }
.mock-table { padding: 0 18px 18px; }
.mock-row {
    display: flex; align-items: center; gap: 8px; padding: 10px 0;
    border-top: 1px solid var(--line); font-size: 13px;
}
.mock-client { flex: 1; font-weight: 600; color: var(--ink); }
.mock-amount { font-weight: 700; color: var(--ink); }
.mock-status { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 10px; }
.mock-status-sent { background: #DBEAFE; color: #1D4ED8; }
.mock-status-paid { background: #DCFCE7; color: #15803D; }
.mock-status-overdue { background: #FEE2E2; color: #B91C1C; }
.mock-row-ai { background: var(--bg-tint); border-radius: 8px; margin-top: 6px; padding: 10px; border-top: none; }
.mock-ai-badge { font-size: 11px; font-weight: 700; color: var(--primary); }
.mock-ai-text { flex: 1; color: var(--ink); }
.mock-ai-action { font-size: 11px; color: var(--primary); font-weight: 600; }
.mock-float {
    position: absolute; background: #fff; border-radius: 10px; padding: 10px 14px;
    box-shadow: 0 10px 30px rgba(17,24,39,.16); font-size: 13px; font-weight: 600;
    display: flex; gap: 8px; align-items: center;
}
.mock-float-1 { top: -18px; right: -10px; }
.mock-float-2 { bottom: -18px; left: -16px; }

/* ---- results ---- */
.results-section { padding: 72px 24px; max-width: 1120px; margin: 0 auto; }
.results-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; margin-top: 44px; }
.result-item {
    text-align: center; background: #fff; border: 1px solid var(--line);
    border-radius: 12px; padding: 26px 18px;
}
.result-value { font-size: 34px; font-weight: 800; color: var(--primary); }
.result-label { font-weight: 700; color: var(--ink); margin: 6px 0 4px; }
.result-sub { font-size: 13px; color: var(--muted); }

/* ---- features ---- */
.features { display: grid; grid-template-columns: repeat(3,1fr); gap: 26px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 30px 26px; }
.feature .ico {
    width: 48px; height: 48px; border-radius: 11px; background: var(--bg-tint);
    display: flex; align-items: center; justify-content: center; font-size: 24px; margin-bottom: 14px;
}
.feature h3 { font-size: 19px; color: var(--ink); margin-bottom: 8px; }
.features-note { text-align: center; margin-top: 32px; color: var(--muted); font-size: 14px; }

/* ---- how it works ---- */
.how-it-works { padding: 80px 0; background: var(--bg-soft); }
.steps-container { display: flex; flex-direction: column; gap: 56px; margin-top: 48px; }
.step {
    display: grid; grid-template-columns: 80px 1fr 1fr; gap: 28px; align-items: center;
    max-width: 1000px; margin: 0 auto;
}
.step-number { font-size: 48px; font-weight: 800; color: var(--bg-tint); -webkit-text-stroke: 1px var(--primary); }
.step-content h3 { font-size: 22px; color: var(--ink); margin-bottom: 8px; }
.step-features { list-style: none; margin-top: 12px; }
.step-features li { font-size: 14px; color: var(--body); padding: 3px 0; }
.step-mock {
    background: #fff; border: 1px solid var(--line); border-radius: 12px;
    padding: 16px; box-shadow: 0 12px 30px rgba(17,24,39,.08); font-size: 13px;
}
.mock-upload-zone {
    border: 2px dashed var(--line); border-radius: 8px; padding: 18px;
    text-align: center; color: var(--muted); margin-bottom: 10px;
}
.mock-preview-row { display: flex; gap: 6px; padding: 5px 0; }
.mock-preview-row span { flex: 1; }
.mock-preview-row.header { font-weight: 700; color: var(--ink); border-bottom: 1px solid var(--line); }
.mock-import-btn {
    margin-top: 10px; background: var(--primary); color: #fff; text-align: center;
    padding: 8px; border-radius: 7px; font-weight: 600;
}
.mock-email-header { border-bottom: 1px solid var(--line); padding-bottom: 8px; margin-bottom: 8px; }
.mock-email-header span { display: block; font-size: 12px; color: var(--muted); }
.mock-email-body p { margin-bottom: 8px; color: var(--ink); }
.mock-pay-btn {
    background: var(--primary); color: #fff; text-align: center; padding: 9px;
    border-radius: 7px; font-weight: 700; margin: 8px 0;
}
.mock-email-meta { font-size: 11px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 8px; }
.mock-notification { border-radius: 8px; padding: 12px; margin-bottom: 10px; font-size: 13px; }
.mock-notification small { display: block; color: var(--muted); font-size: 11px; margin-top: 2px; }
.mock-notification-paid { background: #ECFDF5; color: #065F46; }
.mock-notification-ai { background: var(--bg-tint); color: var(--ink); }
.mock-suggestion { display: block; color: var(--primary); font-weight: 600; margin-top: 4px; }

/* ---- faq ---- */
.faq { max-width: 720px; margin: 0 auto; }
.faq details { border: 1px solid var(--line); border-radius: 11px; padding: 18px 22px; margin-bottom: 14px; background: #fff; }
.faq summary { font-weight: 600; color: var(--ink); cursor: pointer; font-size: 16px; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:after { content: "+"; float: right; color: var(--primary); font-size: 20px; }
.faq details[open] summary:after { content: "−"; }
.faq details p { margin-top: 12px; }

/* ---- trust badges ---- */
.trust-badges { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.trust-badge {
    display: flex; gap: 12px; align-items: center; background: var(--bg-soft);
    border: 1px solid var(--line); border-radius: 12px; padding: 18px;
}
.trust-icon { font-size: 26px; }
.trust-title { font-weight: 700; color: var(--ink); font-size: 14px; }
.trust-sub { font-size: 12px; color: var(--muted); }

/* ---- bottom CTA ---- */
.cta-band { background: var(--primary); color: #fff; text-align: center; padding: 72px 0; }
.cta-band h2 { font-size: 32px; font-weight: 800; color: #fff; margin-bottom: 22px; }
.cta-band .btn-primary { background: #fff; color: var(--primary); }
.cta-band .btn-primary:hover { background: #F3F4F6; }

/* ---- footer ---- */
.site-footer { background: var(--ink); color: #9CA3AF; padding: 48px 0 24px; font-size: 14px; }
.footer-main { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 32px; padding-bottom: 32px; }
.footer-brand .logo-text { color: #fff; }
.footer-brand p { margin-top: 8px; color: #9CA3AF; }
.footer-contact { color: #C7D2FE !important; }
.footer-links { display: flex; gap: 56px; }
.footer-col h4 { color: #fff; font-size: 14px; margin-bottom: 12px; }
.footer-col a { display: block; color: #9CA3AF; padding: 4px 0; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
    border-top: 1px solid #374151; padding-top: 22px;
}
.footer-badges { display: flex; gap: 14px; }
.footer-badges span { font-size: 12px; }

/* ---- legacy nav (blog / pricing standalone pages) ---- */
.nav {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255,255,255,.95); backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }

/* ---- legacy pricing cards (pricing.tpl.php) ---- */
.pricing { display: grid; grid-template-columns: repeat(3,1fr); gap: 26px; align-items: start; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 34px 28px; position: relative; }
.plan.featured { border: 2px solid var(--primary); box-shadow: 0 18px 44px rgba(79,70,229,.18); }
.plan .tag {
    position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
    background: var(--primary); color: #fff; font-size: 12px; font-weight: 700;
    padding: 5px 14px; border-radius: 20px;
}
.plan h3 { font-size: 18px; color: var(--ink); }
.plan .price { font-size: 44px; font-weight: 800; color: var(--ink); margin: 10px 0 2px; }
.plan .price span { font-size: 16px; font-weight: 500; color: var(--muted); }
.plan ul { list-style: none; margin: 22px 0; }
.plan li { padding: 7px 0 7px 26px; position: relative; font-size: 15px; }
.plan li:before { content: "✓"; position: absolute; left: 0; color: var(--primary); font-weight: 700; }
.plan .btn { width: 100%; }
.pricing-vs { text-align: center; margin-top: 34px; font-size: 15px; color: var(--muted); }
.lead { text-align: center; font-size: 17px; max-width: 560px; margin: 0 auto 48px; }

/* ---- blog ---- */
.blog-list { max-width: 720px; margin: 0 auto; }
.blog-card { border-bottom: 1px solid var(--line); padding: 26px 0; }
.blog-card h2 { font-size: 22px; color: var(--ink); margin-bottom: 4px; }
.blog-card a:hover h2 { color: var(--primary); }
.blog-date { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.blog-more { font-weight: 600; font-size: 14px; }
.blog-article { max-width: 720px; margin: 0 auto; }
.blog-article h1 { font-size: 38px; color: var(--ink); line-height: 1.15; margin: 6px 0 8px; }
.blog-content { margin-top: 22px; }
.blog-content h2 { font-size: 24px; color: var(--ink); margin: 28px 0 10px; text-align: left; }
.blog-content p { margin-bottom: 14px; }
.site-foot { background: var(--ink); color: #9CA3AF; padding: 34px 0; font-size: 14px; }
.site-foot .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
.site-foot a { color: #C7D2FE; }

/* ---- legal pages ---- */
.legal-page { background: var(--bg-soft); padding: 60px 0; }
.legal-container {
    max-width: 800px; margin: 0 auto; background: #fff;
    border-radius: 12px; padding: 48px; box-shadow: 0 1px 3px rgba(0,0,0,.1);
}
.legal-page h1 { font-size: 32px; font-weight: 800; color: var(--ink); margin-bottom: 8px; }
.legal-date { color: var(--muted); margin-bottom: 40px; }
.legal-content h2 { font-size: 20px; font-weight: 700; margin: 32px 0 12px; color: var(--ink); }
.legal-content h3 { font-size: 16px; font-weight: 600; margin: 20px 0 8px; color: #374151; }
.legal-content p, .legal-content li { color: var(--body); line-height: 1.7; margin-bottom: 12px; }
.legal-content ul { padding-left: 24px; }
.legal-content a { color: var(--primary); }

/* ---- responsive ---- */
@media (max-width: 880px) {
    .nav-links { display: none; }
    .nav-links.open {
        display: flex; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0;
        background: #fff; border-bottom: 1px solid var(--line); padding: 16px 24px; gap: 14px;
    }
    .nav-hamburger { display: block; }
    .hero { grid-template-columns: 1fr; padding-top: 48px; }
    .hero h1 { font-size: 36px; }
    .hero-visual { margin-top: 32px; }
    .results-grid, .features, .trust-badges { grid-template-columns: 1fr 1fr; }
    .pricing-grid { grid-template-columns: 1fr; }
    .step { grid-template-columns: 1fr; gap: 16px; }
    .step-number { font-size: 36px; }
    .section h2, .results-section h2, .how-it-works h2, .pricing-section h2 { font-size: 28px; }
}
@media (max-width: 560px) {
    .results-grid, .features, .trust-badges { grid-template-columns: 1fr; }
}

/* ---- legal pages: DPA + GDPR section (task: GDPR/Analytics) ---- */
.legal-header { margin-bottom: 32px; }
.legal-header .text-muted { color: var(--muted); margin: 8px 0 16px; line-height: 1.7; }
.legal-container > section { margin: 28px 0; }
.legal-container > section h2,
.legal-intro + section h2 { font-size: 20px; font-weight: 700; margin: 0 0 12px; color: var(--ink); }
.legal-container > section h3 { font-size: 16px; font-weight: 600; margin: 20px 0 8px; color: #374151; }
.legal-container > section p,
.legal-container > section li,
.legal-intro p, .legal-intro li,
.dpa-signing p, .dpa-signing li { color: var(--body); line-height: 1.7; margin-bottom: 12px; }
.legal-container > section ul,
.legal-container > section ol,
.legal-intro ul { padding-left: 24px; }
.legal-container a, .legal-intro a, .dpa-signing a { color: var(--primary); }
.legal-intro { margin: 24px 0 8px; }

/* GDPR section heading inside the existing .legal-content layout */
.legal-content #gdpr h2 { font-size: 20px; font-weight: 700; margin: 32px 0 12px; color: var(--ink); }

/* legal data tables (DPA sub-processors / GDPR privacy table) */
.legal-table, .privacy-table {
    width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14px;
}
.legal-table th, .privacy-table th,
.legal-table td, .privacy-table td {
    border: 1px solid var(--line); padding: 10px 12px; text-align: left;
    color: var(--body); vertical-align: top;
}
.legal-table th, .privacy-table th {
    background: var(--bg-tint); color: var(--ink); font-weight: 600;
}

/* DPA signing block */
.dpa-signing {
    margin-top: 36px; padding: 24px; background: var(--bg-soft);
    border: 1px solid var(--line); border-radius: 12px;
}
.dpa-signing h2 { font-size: 18px; font-weight: 700; margin-bottom: 12px; color: var(--ink); }

@media print {
    .site-header, .site-footer, .dpa-signing .btn,
    .legal-header .btn { display: none !important; }
    .legal-page { background: #fff; padding: 0; }
    .legal-container { box-shadow: none; max-width: 100%; padding: 0; }
}

/* ======================================================
   定价区域（重设计：累积功能列表 + Annual/Monthly 切换）
   变量映射到本文件已有 :root 变量
   ====================================================== */
.pricing-section {
    padding: 80px 24px;
    background: var(--bg-soft);
}
.pricing-container {
    max-width: 1080px;
    margin: 0 auto;
}
.pricing-header {
    text-align: center;
    margin-bottom: 40px;
}
.pricing-header h2 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--ink);
}
.pricing-header p {
    font-size: 18px;
    color: var(--body);
}

/* ===== Annual/Monthly 切换 ===== */
.pricing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    font-size: 15px;
}
.toggle-label { color: var(--body); font-weight: 500; }
.toggle-label-active { color: var(--ink); font-weight: 700; }
.toggle-save-badge {
    display: inline-block;
    background: #D1FAE5;
    color: #065F46;
    font-size: 12px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 6px;
    vertical-align: middle;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    width: 48px;
    height: 26px;
    cursor: pointer;
}
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
    position: absolute;
    inset: 0;
    background: #D1D5DB;
    border-radius: 13px;
    transition: 0.3s;
}
.toggle-slider::before {
    content: '';
    position: absolute;
    width: 20px; height: 20px;
    left: 3px; top: 3px;
    background: #fff;
    border-radius: 50%;
    transition: 0.3s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.toggle-switch input:checked + .toggle-slider { background: #4F46E5; }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(22px); }

/* ===== 定价卡片 ===== */
.pricing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    align-items: start;
}
@media (max-width: 900px) {
    .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
}

.pricing-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 28px 24px;
    position: relative;
    transition: box-shadow 0.2s;
    box-sizing: border-box;
}
.pricing-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
/* Pro 卡片：用 box-shadow 叠加高亮边框，不占用内容宽度（三列等宽）*/
.pricing-card-featured {
    border: 1px solid #4F46E5;
    box-shadow:
        0 0 0 1px #4F46E5,
        0 8px 32px rgba(79,70,229,0.15);
    box-sizing: border-box;
}
.pricing-card-featured:hover {
    box-shadow:
        0 0 0 1px #4F46E5,
        0 12px 36px rgba(79,70,229,0.22);
}

/* ===== 推荐标签 ===== */
.pricing-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: #4F46E5;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 4px 16px;
    border-radius: 20px;
    white-space: nowrap;
}

/* ===== 卡片头部 ===== */
.pricing-card-header { margin-bottom: 20px; }
.pricing-plan-name {
    font-size: 20px;
    font-weight: 800;
    color: var(--ink);
    margin-bottom: 4px;
    min-height: 28px;
}
.pricing-plan-desc {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 16px;
    min-height: 40px;   /* 两行文字高度，保证三列价格起点一致 */
}
/* 价格区域固定最小高度，确保三列价格在同一水平线 */
.pricing-price-wrap {
    min-height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}
.pricing-price {
    display: flex;
    align-items: baseline;
    gap: 2px;
    margin-bottom: 6px;
}
.pricing-currency {
    font-size: 20px;
    font-weight: 700;
    color: var(--ink);
}
.pricing-amount {
    font-size: 48px;
    font-weight: 900;
    color: var(--ink);
    line-height: 1;
    letter-spacing: -2px;
    transition: color 0.2s;
}
.pricing-period {
    font-size: 15px;
    color: var(--muted);
    margin-left: 2px;
}
/* ===== 年付提示（月付模式下显示在价格下方）===== */
.pricing-annual-hint {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #065F46;
    background: #D1FAE5;
    border-radius: 6px;
    padding: 4px 10px;
    margin-top: 6px;
    width: fit-content;
    min-height: 28px;
}
.pricing-annual-hint strong { font-weight: 700; }
.annual-hint-arrow {
    font-size: 11px;
    opacity: 0.7;
}

/* 年付模式下的计费说明 */
.pricing-billed-note {
    font-size: 13px;
    color: var(--muted);
    margin-top: 6px;
}

/* ===== CTA 按钮 ===== */
.pricing-cta {
    margin-bottom: 24px;
    font-size: 15px;
    font-weight: 700;
}

/* ===== 功能列表 ===== */
.pricing-features {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* 基础功能项 */
.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 6px 0;
    font-size: 14px;
    color: var(--body);
    border-bottom: 1px solid var(--bg-soft);
}
.feature-item:last-child { border-bottom: none; }

/* 继承的功能（稍微弱化）*/
.feature-inherited { opacity: 0.65; }
/* Pro 继承功能在 Team 列里的样式（比 Solo 继承更淡，区分两层继承）*/
.feature-inherited-pro { opacity: 0.55; }
.feature-inherited-pro .feature-check { color: #9CA3AF; }
.feature-check {
    color: #10B981;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 1px;
}
.feature-check-muted { color: #9CA3AF; }
.feature-note {
    display: block;
    font-size: 12px;
    color: var(--muted);
    margin-top: 1px;
}

/* 分隔线：Everything in X, plus: */
.feature-divider {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 0 8px;
    font-size: 12px;
    font-weight: 700;
    color: #4F46E5;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.feature-divider::before,
.feature-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #E0E7FF;
}

/* 新增功能（高亮）*/
.feature-new {
    color: var(--ink);
    font-weight: 500;
    opacity: 1;
}
.feature-new-icon {
    color: #4F46E5;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 1px;
}

/* 额外费用说明 */
.feature-addon {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    font-size: 12px;
    color: var(--muted);
    font-style: italic;
}

/* ===== 底部说明 ===== */
.pricing-footer {
    text-align: center;
    margin-top: 40px;
}
.pricing-footer-items {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    font-size: 14px;
    color: var(--body);
    margin-bottom: 12px;
}
.pricing-footer-note {
    font-size: 13px;
    color: var(--muted);
}
.pricing-footer-note a { color: #4F46E5; }

/* ===== AI Section 整体（首页 AI 功能展示）===== */
.ai-section {
    padding: 96px 24px;
    background: #fff;
    overflow: hidden;
}
.ai-container { max-width: 1080px; margin: 0 auto; }

/* ===== 标题区 ===== */
.ai-header {
    text-align: center;
    margin-bottom: 64px;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}
.ai-header-tag {
    display: inline-block;
    background: var(--bg-tint);
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 16px;
    letter-spacing: 0.3px;
}
.ai-header h2 {
    font-size: 40px;
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 16px;
    color: var(--ink);
}
.ai-header p {
    font-size: 18px;
    color: var(--body);
    line-height: 1.6;
}
@media (max-width: 768px) {
    .ai-header h2 { font-size: 28px; }
    .ai-header p  { font-size: 16px; }
}

/* ===== Before / After 对比 ===== */
.ai-compare { margin-bottom: 80px; }
.ai-compare-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 24px;
    align-items: center;
}
@media (max-width: 768px) {
    .ai-compare-grid { grid-template-columns: 1fr; gap: 16px; }
    .ai-compare-arrow { transform: rotate(90deg); }
}

.ai-compare-card {
    border-radius: 12px;
    padding: 24px;
    border: 1px solid var(--line);
}
.ai-compare-before { background: #FEF2F2; border-color: #FCA5A5; }
.ai-compare-after  { background: #F0FDF4; border-color: #86EFAC; }

.ai-compare-label {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 16px;
}
.ai-compare-label-bad  { color: #DC2626; }
.ai-compare-label-good { color: #16A34A; }

.ai-email-mock {
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 16px;
    font-size: 13px;
}
.ai-email-header {
    background: #F9FAFB;
    padding: 10px 14px;
    border-bottom: 1px solid #E5E7EB;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.ai-email-from    { color: #6B7280; font-size: 12px; }
.ai-email-subject { color: #111; font-weight: 600; font-size: 13px; }
.ai-email-body    { padding: 14px; color: #374151; line-height: 1.6; }
.ai-email-body p  { margin-bottom: 8px; }
.ai-email-body p:last-child { margin-bottom: 0; }

.ai-annotations {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
}
.ai-annotation {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12px;
    color: #16A34A;
}
.ai-annotation-dot {
    width: 6px; height: 6px;
    background: #16A34A;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 4px;
}

.ai-compare-result {
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    padding: 8px;
    border-radius: 6px;
}
.ai-compare-result-bad  { background: #FEE2E2; color: #DC2626; }
.ai-compare-result-good { background: #DCFCE7; color: #16A34A; }

.ai-compare-arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.ai-compare-arrow-icon  { font-size: 28px; }
.ai-compare-arrow-label { font-size: 12px; color: var(--muted); white-space: nowrap; }

/* ===== 三种场景 Tab ===== */
.ai-scenarios {
    background: var(--bg-soft);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 80px;
}
.ai-scenarios h3 {
    font-size: 26px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 8px;
    color: var(--ink);
}
.ai-scenarios-subtitle {
    text-align: center;
    color: var(--body);
    margin-bottom: 28px;
    font-size: 15px;
}

.ai-scenario-tabs {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 28px;
    flex-wrap: wrap;
}
.ai-scenario-tab {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 30px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    color: var(--body);
    transition: all 0.2s;
}
.ai-scenario-tab:hover {
    border-color: var(--primary);
    color: var(--primary);
}
.ai-scenario-tab.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.ai-scenario-panel { display: none; }
.ai-scenario-panel.active {
    display: block;
    animation: aiFadeIn 0.25s ease;
}
@keyframes aiFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.ai-scenario-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
@media (max-width: 768px) {
    .ai-scenario-grid { grid-template-columns: 1fr; }
}

.ai-scenario-signals {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
}
.ai-scenario-signals h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--ink);
}
.ai-scenario-signals ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}
.ai-scenario-signals li {
    font-size: 13px;
    color: var(--body);
}

.ai-scenario-verdict {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: var(--bg-soft);
    border-radius: 8px;
}
.verdict-label { font-size: 12px; color: var(--muted); font-weight: 600; }
.verdict-text  { font-size: 13px; font-weight: 700; }
.verdict-low    { color: #16A34A; }
.verdict-medium { color: #D97706; }
.verdict-high   { color: #DC2626; }

.ai-scenario-action {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
}
.ai-scenario-action h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--ink);
}

.ai-mini-email {
    background: var(--bg-soft);
    border-left: 3px solid var(--primary);
    padding: 14px 16px;
    border-radius: 0 8px 8px 0;
    font-size: 14px;
    color: var(--body);
    font-style: italic;
    margin-bottom: 16px;
    line-height: 1.6;
}

.ai-scenario-outcome {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--body);
}
.outcome-icon { font-size: 18px; }

/* ===== AI Feature Rows（左右交替）===== */
.ai-feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
}
.ai-feature-row-reverse { direction: rtl; }
.ai-feature-row-reverse > * { direction: ltr; }
@media (max-width: 768px) {
    .ai-feature-row         { grid-template-columns: 1fr; gap: 32px; direction: ltr; }
    .ai-feature-row-reverse { direction: ltr; }
}

.ai-feature-tag {
    display: inline-block;
    background: var(--bg-tint);
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
}
.ai-feature-text h3 {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--ink);
    line-height: 1.3;
}
.ai-feature-text p {
    color: var(--body);
    margin-bottom: 20px;
    line-height: 1.6;
    font-size: 15px;
}
.ai-feature-benefits {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.ai-feature-benefits li {
    font-size: 14px;
    color: var(--body);
}

/* ===== AI 回复分析 Demo ===== */
.ai-reply-demo {
    background: var(--bg-soft);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.ai-reply-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}
.ai-reply-bubble {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 14px;
    color: var(--body);
    font-style: italic;
    line-height: 1.6;
}
.ai-badge {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 10px;
    margin-bottom: 10px;
}
.ai-reply-result {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
}
.ai-reply-row {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    border-bottom: 1px solid #F3F4F6;
    gap: 12px;
}
.ai-reply-row:last-child { border-bottom: none; }
.ai-reply-key {
    width: 110px;
    font-size: 12px;
    font-weight: 700;
    color: var(--muted);
    flex-shrink: 0;
}
.ai-reply-val    { font-size: 13px; font-weight: 500; }
.ai-reply-green  { color: #16A34A; }
.ai-reply-yellow { color: #D97706; }
.ai-reply-action-row { background: var(--bg-tint); }
.ai-reply-action { color: var(--primary); font-weight: 700; }

/* ===== 客户风险评分 Demo ===== */
.ai-risk-demo {
    background: var(--bg-soft);
    border-radius: 16px;
    padding: 24px;
}
.ai-risk-header {
    display: grid;
    grid-template-columns: 1fr auto 80px 40px;
    gap: 12px;
    font-size: 11px;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 12px;
}
.ai-risk-row {
    display: grid;
    grid-template-columns: 1fr auto 80px 40px;
    gap: 12px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #F3F4F6;
}
.ai-risk-row:last-of-type { border-bottom: none; }
.ai-risk-row-highlight {
    background: #FEF2F2;
    margin: 0 -8px;
    padding: 10px 8px;
    border-radius: 8px;
}
.ai-risk-name   { font-size: 14px; font-weight: 600; color: var(--ink); }
.ai-risk-amount { font-size: 13px; color: var(--body); white-space: nowrap; }
.ai-risk-bar-wrap {
    height: 6px;
    background: #F3F4F6;
    border-radius: 3px;
    overflow: hidden;
}
.ai-risk-bar {
    height: 100%;
    border-radius: 3px;
    transition: width 1s ease;
}
.ai-risk-bar-a { background: #16A34A; }
.ai-risk-bar-b { background: #65A30D; }
.ai-risk-bar-c { background: #D97706; }
.ai-risk-bar-d { background: #DC2626; }

.ai-risk-grade {
    font-size: 14px;
    font-weight: 800;
    text-align: center;
    width: 28px; height: 28px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}
.ai-risk-grade-a { background: #DCFCE7; color: #16A34A; }
.ai-risk-grade-b { background: #ECFCCB; color: #65A30D; }
.ai-risk-grade-c { background: #FEF3C7; color: #D97706; }
.ai-risk-grade-d { background: #FEE2E2; color: #DC2626; }

.ai-risk-hint {
    margin-top: 12px;
    font-size: 12px;
    color: #DC2626;
    font-weight: 600;
    padding: 8px 12px;
    background: #FEE2E2;
    border-radius: 6px;
}

/* ===== AI 助手对话 Demo ===== */
.ai-assistant-showcase { margin-bottom: 80px; }
.ai-assistant-header {
    text-align: center;
    margin-bottom: 32px;
}
.ai-assistant-header h3 {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--ink);
}
.ai-assistant-header p {
    color: var(--body);
    font-size: 15px;
}

.ai-chat-demo {
    max-width: 680px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: var(--bg-soft);
    border-radius: 20px;
    padding: 28px;
}
.ai-chat-message { max-width: 85%; }
.ai-chat-user {
    align-self: flex-end;
    background: var(--primary);
    color: #fff;
    border-radius: 18px 18px 4px 18px;
    padding: 12px 18px;
    font-size: 14px;
    font-weight: 500;
}
.ai-chat-ai {
    align-self: flex-start;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 4px 18px 18px 18px;
    padding: 16px 18px;
    font-size: 14px;
    color: var(--ink);
    max-width: 95%;
}
.ai-chat-ai p { margin-bottom: 10px; color: var(--body); }

.ai-chat-badge {
    display: inline-block;
    background: var(--bg-tint);
    color: var(--primary);
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    margin-bottom: 10px;
}

.ai-chat-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.ai-chat-list-item {
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.5;
}
.ai-chat-urgent  { background: #FEE2E2; color: #DC2626; }
.ai-chat-warning { background: #FEF3C7; color: #D97706; }
.ai-chat-normal  { background: var(--bg-soft); color: var(--body); }

.ai-chat-forecast {
    background: var(--bg-soft);
    border-radius: 8px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 8px;
}
.ai-chat-forecast-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--body);
}
.ai-chat-green  { color: #16A34A; font-weight: 700; }
.ai-chat-yellow { color: #D97706; font-weight: 700; }
.ai-chat-red    { color: #DC2626; font-weight: 700; }

/* ===== 结尾 CTA ===== */
.ai-section-cta {
    text-align: center;
    background: linear-gradient(135deg, var(--bg-tint), #F0FDF4);
    border-radius: 24px;
    padding: 56px 40px;
}
.ai-section-cta h3 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--ink);
}
.ai-section-cta > p {
    color: var(--body);
    margin-bottom: 24px;
    font-size: 16px;
}
.ai-cta-testimonial {
    background: #fff;
    border-radius: 12px;
    padding: 20px 24px;
    max-width: 540px;
    margin: 0 auto 28px;
    border-left: 4px solid var(--primary);
    text-align: left;
}
.ai-cta-testimonial p {
    font-size: 15px;
    color: var(--body);
    font-style: italic;
    margin-bottom: 8px;
    line-height: 1.6;
}
.ai-cta-testimonial span {
    font-size: 13px;
    color: var(--muted);
    font-weight: 600;
}
.ai-section .btn-lg {
    padding: 16px 36px;
    font-size: 17px;
    font-weight: 700;
}
.ai-cta-note {
    margin-top: 12px;
    font-size: 13px;
    color: var(--muted);
}

@media (max-width: 768px) {
    .ai-section { padding: 60px 16px; }
    .ai-scenarios { padding: 24px 16px; }
    .ai-feature-row { gap: 24px; }
    .ai-section-cta { padding: 36px 20px; }
    .ai-risk-header,
    .ai-risk-row { grid-template-columns: 1fr auto 60px 32px; }
}

/* ===== Nav logo (品牌 Logo) ===== */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}
.nav-logo span {
    font-size: 22px;
    font-weight: 900;
    color: #1E1B4B;
    letter-spacing: -1px;
}
.nav-logo:hover { opacity: 0.85; }
