/* ========== 基础重置 & 变量 ========== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

/* Lucide 图标在彩色容器内为白色 */
.feature-icon > [data-lucide],
.card-icon > [data-lucide],
.auth-feature-icon > [data-lucide] {
    color: white;
    stroke: white;
}

/* ========== Lucide 图标尺寸工具类 ========== */
[class*="ic-"] {
    display: inline-block;
    vertical-align: -0.125em;
    stroke-width: 2;
    flex-shrink: 0;
}
.ic-14 { width: 14px; height: 14px; }
.ic-18 { width: 18px; height: 18px; }
.ic-22 { width: 22px; height: 22px; }
.ic-28 { width: 28px; height: 28px; }
.ic-32 { width: 32px; height: 32px; }

:root {
    --bg: #ffffff;
    --bg-soft: #f7f8fc;
    --bg-alt: #fafbff;
    --text: #0f1729;
    --text-soft: #4a5468;
    --text-mute: #8892a8;
    --border: #e8eaf2;
    --border-soft: #f0f2f8;
    --primary: #18181b;
    --primary-dark: #0a0a0a;
    --accent: #facc15;
    --gradient: linear-gradient(135deg, #18181b 0%, #facc15 100%);
    --gradient-soft: linear-gradient(135deg, rgba(24, 24, 27, 0.08), rgba(250, 204, 21, 0.08));
    --shadow-sm: 0 1px 2px rgba(15, 23, 41, 0.04);
    --shadow: 0 4px 16px rgba(15, 23, 41, 0.06);
    --shadow-lg: 0 20px 50px -10px rgba(24, 24, 27, 0.25);
    --radius: 14px;
    --radius-lg: 22px;
}

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    position: relative;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; border: 0; background: none; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}
.container-narrow { max-width: 820px; }

/* ========== 动态极光背景 ========== */
.aurora {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}
.aurora-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.5;
    animation: float 18s ease-in-out infinite;
}
.blob-1 {
    width: 600px; height: 600px;
    background: radial-gradient(circle, #fbbf24 0%, transparent 70%);
    top: -200px; inset-inline-end: -150px;
}
.blob-2 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, #f59e0b 0%, transparent 70%);
    top: 400px; inset-inline-start: -200px;
    animation-delay: -6s;
}
.blob-3 {
    width: 400px; height: 400px;
    background: radial-gradient(circle, #fde047 0%, transparent 70%);
    top: 1200px; inset-inline-end: 10%;
    animation-delay: -12s;
    opacity: 0.3;
}
@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(50px, -30px) scale(1.1); }
    66% { transform: translate(-30px, 40px) scale(0.95); }
}

/* ========== 渐变文字 ========== */
.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========== 通用按钮 ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
    white-space: nowrap;
    cursor: pointer;
}
.btn-lg { padding: 14px 28px; font-size: 16px; border-radius: 12px; }
.btn-block { display: flex; width: 100%; }

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: 0 4px 14px rgba(250, 204, 21, 0.4);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(250, 204, 21, 0.5);
}

.btn-secondary {
    background: var(--bg);
    color: var(--text);
    border: 1px solid var(--border);
}
.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-1px);
}

.btn-ghost {
    color: var(--text-soft);
    padding: 8px 14px;
}
.btn-ghost:hover { color: var(--primary); }

/* ========== 导航栏 ========== */
.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    background: rgba(255, 255, 255, 0.72);
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}
.nav.scrolled {
    border-bottom-color: var(--border);
    background: rgba(255, 255, 255, 0.9);
}
.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}
.brand-mark {
    width: 32px;
    height: 32px;
    display: block;
}
.brand-mark svg { width: 100%; height: 100%; }
.brand-name {
    font-size: 19px;
    letter-spacing: -0.02em;
}
.nav-links {
    display: flex;
    gap: 32px;
}
.nav-links a {
    font-size: 14px;
    color: var(--text-soft);
    font-weight: 500;
    transition: color 0.2s;
    position: relative;
}
.nav-links a:hover { color: var(--primary); }
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    inset-inline-start: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--gradient);
    border-radius: 2px;
    transition: width 0.2s;
}
.nav-links a:hover::after { width: 20px; }
.nav-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 8px;
}
.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: 0.3s;
}

/* ========== Hero ========== */
.hero {
    padding: 60px 0 100px;
    position: relative;
}
.hero-inner { text-align: center; position: relative; }
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: var(--gradient-soft);
    border: 1px solid rgba(250, 204, 21, 0.3);
    border-radius: 100px;
    font-size: 13px;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 24px;
    animation: fadeInUp 0.6s ease;
}
.hero-badge .dot {
    width: 6px; height: 6px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
.hero-title {
    font-size: clamp(40px, 6vw, 68px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
    animation: fadeInUp 0.7s ease 0.1s both;
}
.hero-subtitle {
    font-size: 18px;
    color: var(--text-soft);
    max-width: 620px;
    margin: 0 auto 36px;
    animation: fadeInUp 0.7s ease 0.2s both;
}
.hero-cta {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 56px;
    animation: fadeInUp 0.7s ease 0.3s both;
}
.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
    margin-bottom: 70px;
    animation: fadeInUp 0.7s ease 0.4s both;
}
.stat { text-align: center; }
.stat strong {
    display: block;
    font-size: 28px;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}
.stat > span {
    font-size: 13px;
    color: var(--text-mute);
}
.stat-divider {
    width: 1px;
    height: 36px;
    background: var(--border);
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ========== 邮箱预览窗口 ========== */
.hero-visual {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease 0.5s both;
}
.mail-window {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: 0 30px 80px -20px rgba(24, 24, 27, 0.3), 0 0 0 1px rgba(0,0,0,0.04);
    overflow: hidden;
    text-align: left;
    transform: perspective(2000px) rotateX(2deg);
    transition: transform 0.4s ease;
}
.mail-window:hover { transform: perspective(2000px) rotateX(0); }
.mail-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 18px;
    background: #f5f6fa;
    border-bottom: 1px solid var(--border-soft);
}
.mail-toolbar .dot {
    width: 12px; height: 12px;
    border-radius: 50%;
}
.mail-toolbar .red { background: #ff5f57; }
.mail-toolbar .yellow { background: #ffbd2e; }
.mail-toolbar .green { background: #28c840; }
.mail-search {
    margin-inline-start: 16px;
    flex: 1;
    max-width: 320px;
    padding: 6px 14px;
    background: white;
    border-radius: 8px;
    font-size: 13px;
    color: var(--text-mute);
    border: 1px solid var(--border-soft);
}
.mail-body {
    display: grid;
    grid-template-columns: 200px 280px 1fr;
    min-height: 460px;
}
.mail-sidebar {
    padding: 16px 12px;
    border-inline-end: 1px solid var(--border-soft);
    background: #fbfbfd;
    font-size: 13px;
}
.mail-folder {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    color: var(--text-soft);
    margin-bottom: 2px;
    cursor: pointer;
    transition: 0.2s;
}
.mail-folder:hover { background: rgba(250, 204, 21, 0.1); color: var(--text); }
.mail-folder.active {
    background: var(--gradient-soft);
    color: var(--primary);
    font-weight: 600;
}
.badge {
    background: var(--gradient);
    color: white;
    font-size: 11px;
    padding: 1px 7px;
    border-radius: 100px;
    font-weight: 600;
    margin-inline-start: auto;
}
.badge.gray { background: #e8eaf2; color: var(--text-mute); }
.mail-label {
    margin: 12px 8px 4px;
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 100px;
    display: inline-block;
    margin-inline-end: 4px;
    font-weight: 600;
}
.mail-list {
    border-inline-end: 1px solid var(--border-soft);
    overflow: hidden;
}
.mail-item {
    display: flex;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-soft);
    cursor: pointer;
    transition: 0.2s;
    position: relative;
}
.mail-item:hover { background: var(--bg-soft); }
.mail-item.unread { background: linear-gradient(90deg, rgba(250, 204, 21, 0.08), transparent); }
.mail-item.unread::before {
    content: '';
    position: absolute;
    inset-inline-start: 6px; top: 50%;
    transform: translateY(-50%);
    width: 5px; height: 5px;
    background: var(--primary);
    border-radius: 50%;
}
.mail-avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 14px;
    flex-shrink: 0;
}
.mail-content { flex: 1; min-width: 0; }
.mail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2px;
}
.mail-from { font-weight: 600; font-size: 13px; }
.mail-item:not(.unread) .mail-from { color: var(--text-soft); font-weight: 500; }
.mail-time { font-size: 11px; color: var(--text-mute); }
.ai-tag {
    display: inline-block;
    margin-inline-start: 6px;
    padding: 1px 6px;
    background: var(--gradient);
    color: white;
    font-size: 10px;
    border-radius: 4px;
    font-weight: 500;
}
.mail-subject {
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mail-item:not(.unread) .mail-subject { color: var(--text-soft); font-weight: 400; }
.mail-preview {
    font-size: 12px;
    color: var(--text-mute);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mail-detail { padding: 20px 24px; }
.mail-detail-head { padding-bottom: 12px; border-bottom: 1px solid var(--border-soft); margin-bottom: 16px; }
.mail-detail-head h4 { font-size: 16px; margin-bottom: 4px; }
.mail-detail-meta { font-size: 12px; color: var(--text-mute); }
.mail-detail-body p { font-size: 13px; color: var(--text-soft); margin-bottom: 10px; }
.mail-detail-body ul { font-size: 13px; color: var(--text-soft); margin: 0 0 12px 18px; list-style: none; }
.mail-detail-body li { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.mail-detail-body .check-ok { color: #22c55e; }
.mail-detail-body .muted { color: var(--text-mute); font-size: 12px; }
.ai-suggest {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    padding: 10px 14px;
    background: var(--gradient-soft);
    border: 1px dashed rgba(250, 204, 21, 0.4);
    border-radius: 10px;
    font-size: 12px;
    color: var(--text-soft);
}
.ai-icon { color: var(--accent); width: 18px; height: 18px; }
.ai-suggest b { color: var(--primary); }

/* 浮动小卡片 */
.float-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: white;
    border-radius: 14px;
    box-shadow: var(--shadow-lg);
    animation: floatCard 4s ease-in-out infinite;
}
.card-icon {
    width: 42px; height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}
.card-title { font-size: 13px; font-weight: 700; }
.card-sub { font-size: 11px; color: var(--text-mute); }
.card-1 {
    top: 30px; inset-inline-start: -20px;
    animation-delay: 0s;
}
.card-2 {
    bottom: 40px; inset-inline-end: -20px;
    animation-delay: -2s;
}
@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* ========== 信任标识 ========== */
.trust {
    padding: 40px 0 60px;
    border-top: 1px solid var(--border-soft);
    border-bottom: 1px solid var(--border-soft);
    background: rgba(255, 255, 255, 0.5);
}
.trust-title {
    text-align: center;
    font-size: 13px;
    color: var(--text-mute);
    margin-bottom: 24px;
    letter-spacing: 0.05em;
}
.trust-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 48px;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-mute);
    opacity: 0.7;
}
.trust-logos span { transition: 0.2s; }
.trust-logos span:hover { color: var(--primary); opacity: 1; }

/* ========== 通用 section ========== */
.section { padding: 100px 0; }
.section-alt { background: var(--bg-soft); }
.section-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 60px;
}
.eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 12px;
    padding: 4px 12px;
    background: var(--gradient-soft);
    border-radius: 100px;
}
.section-head h2 {
    font-size: clamp(32px, 4.5vw, 44px);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 16px;
}
.section-sub {
    font-size: 17px;
    color: var(--text-soft);
}

/* ========== 功能卡片 ========== */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}
.feature-card {
    padding: 32px;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.feature-card::before {
    content: '';
    position: absolute;
    top: 0; inset-inline-start: 0; inset-inline-end: 0;
    height: 3px;
    background: var(--gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s;
}
.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}
.feature-card:hover::before { transform: scaleX(1); }
.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}
.feature-card h3 {
    font-size: 19px;
    margin-bottom: 10px;
    font-weight: 700;
}
.feature-card p {
    color: var(--text-soft);
    font-size: 14px;
    line-height: 1.6;
}

/* ========== Why ========== */
.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 32px;
}
.why-item {
    padding: 32px 28px;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: 0.3s;
}
.why-item:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.why-num {
    font-size: 36px;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    font-family: 'SF Mono', 'Monaco', monospace;
    letter-spacing: -0.02em;
}
.why-item h3 {
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: 700;
}
.why-item p {
    color: var(--text-soft);
    font-size: 14px;
}

/* ========== 价格 ========== */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    align-items: stretch;
}
.price-card {
    position: relative;
    padding: 36px 30px;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}
.price-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.price-card.featured {
    background: white;
    border: 0;
    transform: scale(1.04);
    box-shadow: 0 24px 60px -12px rgba(24, 24, 27, 0.45);
    z-index: 1;
}
.price-card.featured::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    padding: 2px;
    background: var(--gradient);
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    pointer-events: none;
}
.price-card.featured::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, rgba(250, 204, 21, 0.1) 0%, rgba(255, 255, 255, 0) 50%);
    pointer-events: none;
    z-index: -1;
}
.price-card.featured .price-name { color: var(--primary); }
.price-card.featured .btn-primary {
    background: var(--gradient);
    box-shadow: 0 6px 18px rgba(24, 24, 27, 0.5);
}
.price-tag {
    position: absolute;
    top: -14px;
    inset-inline-start: 50%;
    transform: translateX(-50%);
    padding: 5px 16px;
    background: var(--gradient);
    color: white;
    font-size: 12px;
    font-weight: 600;
    border-radius: 100px;
    letter-spacing: 0.05em;
}
.price-name {
    font-size: 15px;
    color: var(--text-soft);
    font-weight: 600;
    margin-bottom: 12px;
}
.price-amount {
    display: flex;
    align-items: baseline;
    margin-bottom: 12px;
}
.price-currency { font-size: 22px; font-weight: 600; margin-inline-end: 2px; }
.price-num {
    font-size: 52px;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
}
.price-period { font-size: 15px; color: var(--text-mute); margin-inline-start: 4px; }
.price-desc {
    color: var(--text-mute);
    font-size: 13px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-soft);
}
.price-features {
    list-style: none;
    margin-bottom: 32px;
    flex: 1;
}
.price-features li {
    padding: 7px 0;
    font-size: 14px;
    color: var(--text-soft);
    display: flex;
    align-items: center;
    gap: 8px;
}
.price-features .check-ok { color: #22c55e; }
.price-features .check-no { color: #cbd0dc; }

/* ========== Testimonial ========== */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}
.testimonial {
    padding: 28px;
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: 0.3s;
}
.testimonial:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.stars { color: #fbbf24; margin-bottom: 14px; display: flex; gap: 2px; }
.stars [data-lucide] { fill: #fbbf24; }
.testimonial p {
    color: var(--text-soft);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 20px;
}
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}
.author-avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}
.author-name { font-size: 14px; font-weight: 600; }
.author-role { font-size: 12px; color: var(--text-mute); }

/* ========== FAQ ========== */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.faq-item {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 24px;
    transition: 0.2s;
}
.faq-item:hover { border-color: rgba(250, 204, 21, 0.4); }
.faq-item summary {
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '+';
    font-size: 24px;
    color: var(--primary);
    font-weight: 300;
    transition: transform 0.2s;
    line-height: 1;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
    margin-top: 12px;
    color: var(--text-soft);
    font-size: 14px;
    line-height: 1.7;
}

/* ========== CTA ========== */
.cta { padding: 80px 0; }
.cta-card {
    position: relative;
    padding: 70px 40px;
    text-align: center;
    background: var(--bg-soft);
    border-radius: 32px;
    overflow: hidden;
    border: 1px solid var(--border);
}
.cta-glow {
    position: absolute;
    inset: -50%;
    background: conic-gradient(from 180deg at 50% 50%, #18181b 0deg, #facc15 90deg, #f59e0b 180deg, #18181b 360deg);
    filter: blur(80px);
    opacity: 0.15;
    animation: rotate 20s linear infinite;
    z-index: 0;
}
@keyframes rotate { to { transform: rotate(360deg); } }
.cta-card > * { position: relative; z-index: 1; }
.cta-card h2 {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}
.cta-card p {
    font-size: 16px;
    color: var(--text-soft);
    margin-bottom: 32px;
}
.cta-form {
    display: flex;
    gap: 8px;
    max-width: 480px;
    margin: 0 auto 16px;
    padding: 6px;
    background: white;
    border-radius: 14px;
    box-shadow: var(--shadow);
}
.cta-form input {
    flex: 1;
    padding: 12px 16px;
    border: 0;
    background: transparent;
    font-size: 15px;
    outline: none;
    color: var(--text);
}
.cta-hint { font-size: 12px; color: var(--text-mute); }

/* ========== Footer ========== */
.footer {
    background: #0f1729;
    color: #94a3b8;
    padding: 70px 0 30px;
}
.footer .brand-name { color: white; }
.footer .brand-mark { width: 32px; height: 32px; }
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}
.footer-tagline {
    margin-top: 14px;
    font-size: 14px;
    line-height: 1.6;
    color: #64748b;
}
.footer h4 {
    color: white;
    font-size: 14px;
    margin-bottom: 16px;
    font-weight: 600;
}
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 10px; }
.footer ul a {
    color: #94a3b8;
    font-size: 14px;
    transition: 0.2s;
}
.footer ul a:hover { color: white; }
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid #1e293b;
    font-size: 13px;
    color: #64748b;
}
.social { display: flex; gap: 14px; }
.social a {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: #1e293b;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    transition: 0.2s;
    font-size: 16px;
}
.social a:hover { background: var(--gradient); color: white; transform: translateY(-2px); }

/* ========== 响应式 ========== */
@media (max-width: 1024px) {
    .mail-body { grid-template-columns: 180px 240px 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 68px;
        inset-inline-start: 0; inset-inline-end: 0;
        background: white;
        padding: 16px 24px;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow);
        gap: 16px;
    }
    .nav-toggle { display: flex; }
    .nav-actions .btn-ghost { display: none; }

    .hero { padding: 40px 0 60px; }
    .hero-stats { gap: 16px; }
    .stat strong { font-size: 22px; }
    .stat > span { font-size: 11px; }
    .stat-divider { height: 28px; }

    .mail-body { grid-template-columns: 1fr; min-height: auto; }
    .mail-sidebar, .mail-list { display: none; }
    .float-card { display: none; }
    .mail-window { transform: none; }

    .section { padding: 60px 0; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .footer-bottom { flex-direction: column; gap: 12px; }
    .cta-form { flex-direction: column; }
    .cta-form input { padding: 14px 16px; }
    .price-card.featured { transform: scale(1); }
}

@media (max-width: 480px) {
    .hero-title { font-size: 36px; }
    .hero-subtitle { font-size: 15px; }
    .hero-stats { flex-wrap: wrap; }
    .stat-divider { display: none; }
    .container { padding: 0 20px; }
}

/* ========== 滚动渐显 ========== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========== 鉴权页面（登录/注册） ========== */
.auth-body {
    min-height: 100vh;
}
.auth-wrap {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    position: relative;
}

/* --- 左侧品牌区 --- */
.auth-side {
    position: relative;
    color: white;
    padding: 48px 56px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: linear-gradient(135deg, #18181b 0%, #292524 50%, #facc15 100%);
}
.auth-side-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(255,255,255,0.18) 0%, transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(255,255,255,0.12) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(0,0,0,0.15) 0%, transparent 60%);
    pointer-events: none;
}
.auth-side::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    mask-image: radial-gradient(circle at 50% 50%, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(circle at 50% 50%, black 30%, transparent 70%);
}
.auth-side::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.12) 0%, transparent 70%);
    bottom: -150px;
    inset-inline-end: -100px;
    border-radius: 50%;
    animation: float 14s ease-in-out infinite;
    pointer-events: none;
}
.brand-light .brand-name { color: white; }
.brand-light { color: white; }
.auth-side-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 1;
    max-width: 480px;
    margin: 40px 0;
}
.auth-side-content h1 {
    font-size: clamp(32px, 3.5vw, 44px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}
.auth-side-content > p {
    font-size: 17px;
    opacity: 0.9;
    margin-bottom: 40px;
}
.auth-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}
.auth-feature {
    display: flex;
    align-items: center;
    gap: 16px;
}
.auth-feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255,255,255,0.18);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}
.auth-feature-title { font-weight: 600; font-size: 15px; margin-bottom: 2px; }
.auth-feature-sub { font-size: 13px; opacity: 0.75; }

.auth-steps {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 40px;
}
.auth-steps li {
    display: flex;
    align-items: center;
    gap: 16px;
}
.step-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
    border: 1px solid rgba(255,255,255,0.3);
}
.step-title { font-weight: 600; font-size: 15px; margin-bottom: 2px; }
.step-sub { font-size: 13px; opacity: 0.75; }
.auth-perks { display: flex; gap: 8px; flex-wrap: wrap; }
.perk {
    padding: 6px 14px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid rgba(255,255,255,0.2);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.perk > [data-lucide] { color: white; }

.auth-side-quote {
    position: relative;
    z-index: 1;
    padding: 20px 24px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 16px;
}
.auth-side-quote p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 14px;
    opacity: 0.95;
}
.quote-author { display: flex; align-items: center; gap: 10px; }
.quote-avatar {
    width: 32px; height: 32px;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 13px;
}
.quote-name { font-size: 13px; font-weight: 600; }
.quote-role { font-size: 11px; opacity: 0.7; }

/* --- 右侧表单区 --- */
.auth-main {
    padding: 48px 56px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}
.auth-mobile-logo { display: none; }
.auth-card {
    width: 100%;
    max-width: 440px;
    animation: fadeInUp 0.6s ease;
}
.auth-head { margin-bottom: 28px; }
.auth-head h2 {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}
.auth-head p { font-size: 14px; color: var(--text-soft); }
.link-primary { color: var(--primary); font-weight: 600; transition: 0.2s; }
.link-primary:hover { color: var(--primary-dark); text-decoration: underline; }
.link-sm { font-size: 13px; }

.social-login {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
}
.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 16px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    transition: 0.2s;
}
.social-btn:hover {
    border-color: var(--primary);
    background: var(--bg-soft);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    color: var(--text-mute);
    font-size: 12px;
}
.divider::before, .divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.auth-form { display: flex; flex-direction: column; gap: 18px; }
.form-field { display: flex; flex-direction: column; }
.form-field label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}
.input-wrap { position: relative; display: flex; align-items: center; }
.input-icon {
    position: absolute;
    inset-inline-start: 14px;
    color: var(--text-mute);
    display: flex;
    pointer-events: none;
    transition: 0.2s;
}
.input-wrap input {
    width: 100%;
    padding: 12px 14px 12px 44px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-size: 14px;
    color: var(--text);
    background: white;
    transition: all 0.2s;
    outline: none;
    font-family: inherit;
}
.input-wrap input::placeholder { color: var(--text-mute); }
.input-wrap input:hover { border-color: #c8cee0; }
.input-wrap input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(250, 204, 21, 0.15);
}
.input-wrap:focus-within .input-icon { color: var(--primary); }

.input-toggle {
    position: absolute;
    inset-inline-end: 12px;
    color: var(--text-mute);
    padding: 4px;
    display: flex;
    align-items: center;
    border-radius: 6px;
    transition: 0.2s;
}
.input-toggle:hover { color: var(--primary); background: var(--bg-soft); }
.input-suffix {
    position: absolute;
    inset-inline-end: 14px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-mute);
}
.input-suffix.ok { color: #22c55e; }
.input-suffix.bad { color: #ef4444; }

.form-hint { font-size: 12px; color: var(--text-mute); margin-top: 6px; }
.form-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: -4px;
}

.strength { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.strength-bar {
    flex: 1;
    height: 4px;
    background: var(--border-soft);
    border-radius: 100px;
    overflow: hidden;
}
.strength-bar span {
    display: block;
    height: 100%;
    width: 0;
    background: var(--text-mute);
    border-radius: 100px;
    transition: all 0.3s;
}
.strength-bar span.weak { width: 33%; background: #ef4444; }
.strength-bar span.medium { width: 66%; background: #f59e0b; }
.strength-bar span.strong { width: 100%; background: #22c55e; }
.strength-text {
    font-size: 12px;
    color: var(--text-mute);
    white-space: nowrap;
    min-width: 60px;
    text-align: right;
}

.checkbox {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
    font-size: 14px;
    color: var(--text-soft);
}
.checkbox input { display: none; }
.checkbox-mark {
    width: 18px;
    height: 18px;
    border: 1.5px solid var(--border);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
    background: white;
    flex-shrink: 0;
}
.checkbox-mark::after {
    content: '';
    width: 10px;
    height: 6px;
    border-inline-start: 2px solid white;
    border-bottom: 2px solid white;
    transform: rotate(-45deg) translate(1px, -1px) scale(0);
    transition: 0.2s;
}
.checkbox input:checked + .checkbox-mark {
    background: var(--gradient);
    border-color: transparent;
}
.checkbox input:checked + .checkbox-mark::after { transform: rotate(-45deg) translate(1px, -1px) scale(1); }
.checkbox-block { align-items: flex-start; line-height: 1.5; }
.checkbox-block .checkbox-mark { margin-top: 1px; }

.form-field.error input { border-color: #ef4444; }
.form-field.error .input-icon { color: #ef4444; }
.error-text { color: #ef4444; font-size: 12px; margin-top: 4px; display: none; }
.form-field.error .error-text { display: block; }

.auth-form .btn { margin-top: 6px; }
.auth-form .btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none !important; }

.auth-foot {
    margin-top: 20px;
    font-size: 12px;
    color: var(--text-mute);
    text-align: center;
    line-height: 1.6;
}
.auth-back { margin-top: 24px; font-size: 13px; color: var(--text-mute); }
.auth-back a { color: var(--text-soft); transition: 0.2s; font-weight: 500; }
.auth-back a:hover { color: var(--primary); }

.toast {
    position: fixed;
    top: 24px;
    inset-inline-start: 50%;
    transform: translateX(-50%) translateY(-100px);
    padding: 12px 20px;
    background: var(--text);
    color: white;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    z-index: 1000;
    opacity: 0;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 90vw;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.success { background: linear-gradient(135deg, #22c55e, #16a34a); }
.toast.error { background: linear-gradient(135deg, #ef4444, #dc2626); }
.toast.info { background: linear-gradient(135deg, #18181b, #facc15); }

@media (max-width: 960px) {
    .auth-wrap { grid-template-columns: 1fr; }
    .auth-side { padding: 40px 32px; min-height: auto; }
    .auth-side-content { margin: 24px 0; }
    .auth-side-content h1 { font-size: 30px; }
    .auth-side-content > p { font-size: 15px; margin-bottom: 28px; }
    .auth-features, .auth-steps, .auth-perks, .auth-side-quote { display: none; }
    .auth-side::after { display: none; }
    .auth-main { padding: 32px 24px 48px; }
    .auth-mobile-logo { display: flex; justify-content: center; margin-bottom: 24px; }
    .auth-card { max-width: 100%; }
    .auth-head h2 { font-size: 24px; }
}
@media (max-width: 480px) {
    .auth-side { padding: 32px 24px; }
    .social-login { grid-template-columns: 1fr; }
    .form-row { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* ========== 首屏画龙点睛动效 ========== */

/* 1) 标题渐变流动 */
.gradient-text-flow {
    background: linear-gradient(110deg, #18181b 0%, #18181b 35%, #facc15 50%, #ca8a04 65%, #18181b 80%);
    background-size: 250% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientFlow 6s ease-in-out infinite;
}
@keyframes gradientFlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* 2) 浮动粒子（首屏氛围） */
.hero-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}
.hero-particles span {
    position: absolute;
    width: 6px;
    height: 6px;
    background: #facc15;
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(250, 204, 21, 0.6);
    animation: particleFloat 9s ease-in-out infinite;
    opacity: 0;
}
.hero-particles span:nth-child(1) { top: 12%; inset-inline-start: 8%;  animation-delay: 0s;  width: 5px; height: 5px; }
.hero-particles span:nth-child(2) { top: 28%; inset-inline-end: 6%; animation-delay: 1.5s; width: 8px; height: 8px; }
.hero-particles span:nth-child(3) { top: 55%; inset-inline-start: 4%;  animation-delay: 3s;  width: 4px; height: 4px; background: #fbbf24; }
.hero-particles span:nth-child(4) { top: 70%; inset-inline-end: 10%; animation-delay: 4.5s; width: 7px; height: 7px; }
.hero-particles span:nth-child(5) { top: 85%; inset-inline-start: 20%; animation-delay: 2s;  width: 4px; height: 4px; background: #fde047; }
.hero-particles span:nth-child(6) { top: 18%; inset-inline-start: 45%; animation-delay: 5s;  width: 5px; height: 5px; }
.hero-particles span:nth-child(7) { top: 45%; inset-inline-end: 30%; animation-delay: 6s;  width: 3px; height: 3px; background: #f59e0b; }
.hero-particles span:nth-child(8) { top: 8%; inset-inline-end: 35%;  animation-delay: 7s;  width: 6px; height: 6px; }
@keyframes particleFloat {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0; }
    20% { opacity: 0.7; }
    50% { transform: translate(15px, -30px) scale(1.4); opacity: 0.9; }
    80% { opacity: 0.5; }
}

/* 3) 邮件窗光晕呼吸 */
.hero-visual { position: relative; }
.hero-visual::before {
    content: '';
    position: absolute;
    inset: -30px -20px;
    background: radial-gradient(ellipse at center, rgba(250, 204, 21, 0.25) 0%, transparent 60%);
    z-index: -1;
    border-radius: var(--radius-lg);
    animation: glowBreathe 4.5s ease-in-out infinite;
    pointer-events: none;
}
@keyframes glowBreathe {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.04); }
}

/* 4) 浮动卡片支持鼠标视差变量 */
.float-card {
    --mx: 0px;
    --my: 0px;
    transform: translate(var(--mx), var(--my));
    animation: floatCard 4s ease-in-out infinite;
}
@keyframes floatCard {
    0%, 100% { transform: translate(var(--mx), var(--my)); }
    50%      { transform: translate(var(--mx), calc(var(--my) - 12px)); }
}

/* 5) 邮件列表项交错入场 */
.mail-item {
    opacity: 0;
    transform: translateX(-12px);
    animation: mailSlideIn 0.5s ease forwards;
}
.mail-item:nth-child(1) { animation-delay: 0.9s; }
.mail-item:nth-child(2) { animation-delay: 1.1s; }
.mail-item:nth-child(3) { animation-delay: 1.3s; }
.mail-item:nth-child(4) { animation-delay: 1.5s; }
@keyframes mailSlideIn {
    to { opacity: 1; transform: translateX(0); }
}

/* 6) 「5 2 7」数字徽章式高亮 */
.brand-number {
    display: inline-block;
    font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
    font-weight: 800;
    letter-spacing: 0.06em;
    background: linear-gradient(180deg, #18181b 0%, #facc15 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 8px rgba(250, 204, 21, 0.25));
    transition: transform 0.3s ease;
    cursor: default;
}
.brand-number:hover { transform: scale(1.05); }

/* 7) 数字滚动 - 准备状态 */
.stat strong[data-count] {
    font-variant-numeric: tabular-nums;
}

/* 8) 鼠标视差中浮动卡片层叠提升 */
.float-card {
    will-change: transform;
}

/* Language Switcher */
.lang-switcher {
    position: relative;
    display: inline-block;
    margin-inline-start: 1rem;
}
.lang-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}
.lang-btn:hover {
    border-color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
}
.lang-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    inset-inline-end: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.5rem;
    min-width: 140px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 100;
}
.lang-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.lang-option {
    display: block;
    width: 100%;
    text-align: left;
    padding: 0.5rem 0.75rem;
    background: transparent;
    border: none;
    color: var(--text-color);
    font-size: 0.9rem;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}
.lang-option:hover {
    background: rgba(255, 255, 255, 0.05);
}
.lang-option.active {
    color: var(--primary-color);
    font-weight: 500;
}
