/* ========== 基础变量 - 白色清爽风格 ========== */
:root {
    --primary: #7c3aed;
    --primary-dark: #6d28d9;
    --primary-light: #a78bfa;
    --secondary: #6366f1;
    --accent: #ec4899;
    --bg: #ffffff;
    --bg-elevated: #f8fafc;
    --bg-card: #ffffff;
    --bg-hover: #f1f5f9;
    --text: #1e293b;
    --text-muted: #64748b;
    --text-dim: #94a3b8;
    --border: #e2e8f0;
    --border-focus: rgba(124, 58, 237, 0.3);
    --success: #22c55e;
    --error: #ef4444;
    --warning: #f59e0b;
    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 20px;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
    --shadow-glow: 0 0 40px rgba(124, 58, 237, 0.12);
    --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.04), 0 0 1px rgba(0, 0, 0, 0.08);
    --shadow-card-hover: 0 8px 24px rgba(0, 0, 0, 0.08), 0 0 1px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

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

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

input, textarea {
    font-family: inherit;
    outline: none;
}

/* ========== 容器 ========== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========== 按钮 ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    white-space: nowrap;
    border: none;
}

.btn svg {
    flex-shrink: 0;
}

.btn-primary {
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    color: white;
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.45);
}

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

.btn-outline {
    border: 1.5px solid #e2e8f0;
    color: var(--text);
    background: white;
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(124, 58, 237, 0.04);
}

.btn-ghost {
    color: var(--text-muted);
    background: transparent;
}

.btn-ghost:hover {
    color: var(--text);
    background: var(--bg-hover);
}

.btn-block {
    width: 100%;
    padding: 14px;
    font-size: 15px;
}

.btn-large {
    padding: 14px 32px;
    font-size: 15px;
}

.btn-sm {
    padding: 6px 14px;
    font-size: 13px;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* ========== 导航栏 ========== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links a {
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
    background: rgba(124, 58, 237, 0.06);
}

/* ========== 部署成功弹窗 ========== */
.deploy-toast {
    position: fixed;
    bottom: 32px;
    left: 32px;
    z-index: 999;
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), 0 0 1px rgba(0, 0, 0, 0.08);
    animation: deployToastFloat 3s ease-in-out infinite;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    cursor: pointer;
}

.deploy-toast.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.deploy-toast-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.deploy-toast-icon svg {
    width: 20px;
    height: 20px;
    color: white;
}

.deploy-toast-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.deploy-toast-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
}

.deploy-toast-url {
    font-size: 13px;
    color: var(--text-muted);
    font-family: "SF Mono", Monaco, "Cascadia Code", monospace;
}

@keyframes deployToastFloat {
    0%, 100% {
        transform: translateY(0) rotate(-0.5deg);
    }
    50% {
        transform: translateY(-6px) rotate(0.5deg);
    }
}

/* ========== 首页英雄区 ========== */
.hero {
    position: relative;
    padding: 140px 0 80px;
    overflow: hidden;
    background: linear-gradient(180deg, #faf5ff 0%, #ffffff 100%);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% -10%, rgba(124, 58, 237, 0.08), transparent),
        radial-gradient(ellipse 60% 40% at 80% 60%, rgba(99, 102, 241, 0.04), transparent);
    pointer-events: none;
}

.hero-content {
    position: relative;
    text-align: center;
    max-width: 720px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 100px;
    background: rgba(124, 58, 237, 0.08);
    border: 1px solid rgba(124, 58, 237, 0.12);
    font-size: 13px;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 28px;
    animation: fadeInUp 0.6s ease;
}

.hero h1 {
    font-size: clamp(36px, 6vw, 56px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
    animation: fadeInUp 0.6s ease 0.1s both;
}

.gradient-text {
    background: linear-gradient(135deg, #7c3aed, #a855f7, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 520px;
    margin: 0 auto 36px;
    line-height: 1.7;
    animation: fadeInUp 0.6s ease 0.2s both;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 60px;
    flex-wrap: wrap;
    animation: fadeInUp 0.6s ease 0.3s both;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 56px;
    flex-wrap: wrap;
    animation: fadeInUp 0.6s ease 0.4s both;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    background: linear-gradient(135deg, #7c3aed, #6366f1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 6px;
    font-weight: 500;
}

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

/* ========== 代码窗口 ========== */
.code-window {
    margin-top: 48px;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
    animation: fadeInUp 0.6s ease 0.5s both;
}

.code-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 16px;
    background: #1e293b;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.code-dots {
    display: flex;
    gap: 7px;
    flex-shrink: 0;
}

.code-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    display: block;
}

.code-dot.red { background: #ef4444; }
.code-dot.yellow { background: #f59e0b; }
.code-dot.green { background: #22c55e; }

.code-filename {
    font-size: 12px;
    color: #94a3b8;
    font-family: "SF Mono", Monaco, "Cascadia Code", monospace;
    opacity: 0.6;
}

.code-tabs {
    display: flex;
    gap: 2px;
    margin-left: auto;
}

.code-tab {
    font-size: 11px;
    padding: 4px 12px;
    border-radius: 6px;
    color: #64748b;
    font-family: "SF Mono", Monaco, "Cascadia Code", monospace;
    cursor: default;
    transition: background 0.2s;
}

.code-tab.active {
    background: rgba(255, 255, 255, 0.06);
    color: #cbd5e1;
}

.code-body {
    background: #0f172a;
    padding: 16px 0;
    overflow-x: auto;
}

.code-lines {
    width: 100%;
    border-collapse: collapse;
    font-family: "SF Mono", "Fira Code", Monaco, "Cascadia Code", monospace;
    font-size: 13px;
    line-height: 1.8;
}

.code-lines tr {
    transition: background 0.15s;
}

.code-lines tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.line-num {
    padding: 0 12px 0 16px;
    text-align: right;
    color: #334155;
    user-select: none;
    -webkit-user-select: none;
    width: 1%;
    white-space: nowrap;
    font-size: 12px;
    min-width: 44px;
}

.line-code {
    padding: 0 20px 0 12px;
    color: #e2e8f0;
    white-space: pre;
}

.code-tag { color: #c084fc; }
.code-comment { color: #475569; font-style: italic; }
.code-keyword { color: #38bdf8; }
.code-string { color: #4ade80; }
.code-func { color: #fbbf24; }

/* 打字光标动画 */
.typing-cursor {
    color: #a855f7;
    animation: blink 0.8s infinite;
    font-weight: bold;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* ========== 特性区 ========== */
.features {
    padding: 80px 0;
    background: var(--bg);
}

.section-title {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
}

.section-subtitle {
    text-align: center;
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 48px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.feature-card {
    padding: 32px;
    border-radius: var(--radius);
    background: var(--bg-card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-card);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(124, 58, 237, 0.2);
    box-shadow: var(--shadow-card-hover);
}

.feature-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    margin-bottom: 20px;
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    transform: scale(1.08);
}

.feature-icon.purple {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(168, 85, 247, 0.08));
    color: #7c3aed;
}

.feature-icon.pink {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.1), rgba(244, 114, 182, 0.08));
    color: #ec4899;
}

.feature-icon.blue {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(96, 165, 250, 0.08));
    color: #3b82f6;
}

.feature-icon.green {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(74, 222, 128, 0.08));
    color: #22c55e;
}

.feature-icon.orange {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.1), rgba(251, 146, 60, 0.08));
    color: #f97316;
}

.feature-icon.cyan {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.1), rgba(34, 211, 238, 0.08));
    color: #06b6d4;
}

.feature-card h3 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ========== 定价区 ========== */
.pricing {
    padding: 80px 0;
    background: linear-gradient(180deg, #ffffff 0%, #faf5ff 50%, #ffffff 100%);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.pricing-card {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-card);
    padding: 40px 32px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
}

.pricing-card.featured {
    border-color: rgba(124, 58, 237, 0.2);
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.1), var(--shadow-card);
}

.pricing-card.featured::before {
    content: "推荐";
    position: absolute;
    top: 16px;
    right: -32px;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 36px;
    transform: rotate(45deg);
}

.pricing-name {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}

.pricing-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.pricing-price {
    font-size: 42px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 4px;
}

.pricing-price span {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-muted);
}

.pricing-period {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 28px;
}

.pricing-features {
    list-style: none;
    margin-bottom: 28px;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 14px;
    color: var(--text-muted);
}

.pricing-features li svg {
    width: 18px;
    height: 18px;
    color: var(--success);
    flex-shrink: 0;
}

.pricing-features li.disabled {
    color: var(--text-dim);
    text-decoration: line-through;
}

.pricing-features li.disabled svg {
    color: var(--text-dim);
}

.pricing-btn {
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
    border: 1.5px solid var(--border);
    background: white;
    color: var(--text);
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
}

.pricing-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(124, 58, 237, 0.04);
}

.pricing-card.featured .pricing-btn {
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    color: white;
    border: none;
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.35);
}

.pricing-card.featured .pricing-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.45);
}

/* ========== 企业版定价卡 ========== */
.pricing-card.enterprise {
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.08), var(--shadow-card);
}

.pricing-card.enterprise::before {
    content: "专业";
    position: absolute;
    top: 16px;
    right: -32px;
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 36px;
    transform: rotate(45deg);
}

.pricing-card.enterprise .pricing-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 14px;
    color: var(--text-muted);
}

.pricing-card.enterprise .pricing-features li::before {
    content: "";
    width: 18px;
    height: 18px;
    background: currentColor;
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
    mask-size: contain;
    -webkit-mask-size: contain;
    mask-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat;
    background: var(--success);
    flex-shrink: 0;
}

.pricing-card.enterprise .pricing-btn {
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    color: white;
    border: none;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35);
}

.pricing-card.enterprise .pricing-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.45);
}

/* ========== FAQ ========== */
.faq {
    padding: 80px 0;
    background: var(--bg);
}

.faq-list {
    max-width: 720px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: var(--transition);
}

.faq-question:hover {
    color: var(--primary);
}

.faq-question svg {
    width: 20px;
    height: 20px;
    color: var(--text-dim);
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 16px;
}

.faq-item.active .faq-question svg {
    transform: rotate(180deg);
    color: var(--primary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding-bottom: 20px;
}

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

/* ========== CTA ========== */
.cta {
    padding: 40px 0 80px;
    background: var(--bg);
}

.cta-box {
    text-align: center;
    padding: 60px 40px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.04), rgba(99, 102, 241, 0.03));
    border: 1px solid rgba(124, 58, 237, 0.1);
    max-width: 800px;
    margin: 0 auto;
}

.cta-box h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
}

.cta-box p {
    color: var(--text-muted);
    margin-bottom: 28px;
    font-size: 16px;
}

/* ========== 页脚 ========== */
.footer {
    border-top: 1px solid var(--border);
    padding: 48px 0 24px;
    background: var(--bg-elevated);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 32px;
}

.footer-brand p {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 8px;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    font-size: 14px;
    color: var(--text-muted);
    transition: var(--transition);
}

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

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    font-size: 13px;
    color: var(--text-dim);
}

/* ========== 认证页面 ========== */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 24px;
    background: linear-gradient(180deg, #faf5ff 0%, #ffffff 60%, #f8fafc 100%);
}

.auth-bg {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 50% 0%, rgba(124, 58, 237, 0.06), transparent),
        radial-gradient(ellipse 40% 40% at 80% 80%, rgba(99, 102, 241, 0.04), transparent);
    pointer-events: none;
    z-index: 0;
}

.auth-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
}

.auth-card {
    padding: 40px;
    border-radius: var(--radius-lg);
    background: white;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-header .logo {
    justify-content: center;
    margin-bottom: 20px;
}

.auth-header h1 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.auth-header p {
    font-size: 14px;
    color: var(--text-muted);
}

/* ========== 表单 ========== */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
}

.input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 14px;
    color: var(--text-dim);
    pointer-events: none;
}

.input-wrap input {
    width: 100%;
    padding: 12px 14px 12px 42px;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border);
    background: white;
    color: var(--text);
    font-size: 14px;
    transition: var(--transition);
}

.input-wrap input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.input-wrap input::placeholder {
    color: var(--text-dim);
}

.toggle-password {
    position: absolute;
    right: 12px;
    color: var(--text-dim);
    padding: 4px;
    transition: var(--transition);
}

.toggle-password:hover {
    color: var(--text);
}

.code-row {
    display: flex;
    gap: 10px;
}

.code-input-wrap {
    flex: 1;
}

.btn-send-code {
    padding: 12px 16px;
    white-space: nowrap;
    font-size: 13px;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: var(--text-muted);
}

.checkbox input {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border-radius: 5px;
    border: 1.5px solid var(--border);
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
}

.checkbox input:checked + .checkmark {
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    border-color: var(--primary);
}

.checkbox input:checked + .checkmark::after {
    content: "";
    width: 5px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-bottom: 2px;
}

.checkbox a {
    color: var(--primary);
    text-decoration: none;
}

.checkbox a:hover {
    text-decoration: underline;
}

.forgot-link {
    color: var(--primary);
    font-size: 13px;
}

.forgot-link:hover {
    text-decoration: underline;
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    font-size: 14px;
    color: var(--text-muted);
}

.auth-footer a {
    color: var(--primary);
    font-weight: 500;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* ========== 消息提示 ========== */
.toast {
    position: fixed;
    top: 80px;
    right: 24px;
    padding: 14px 20px;
    border-radius: 14px;
    background: white;
    border: 1px solid var(--border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    z-index: 1000;
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.toast.show {
    transform: translateX(0);
}

.toast.success {
    border-color: rgba(34, 197, 94, 0.3);
    color: #16a34a;
}

.toast.error {
    border-color: rgba(239, 68, 68, 0.3);
    color: #dc2626;
}

/* ========== 加载动画 ========== */
.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(124, 58, 237, 0.2);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ========== 响应式 ========== */
@media (max-width: 768px) {
    .nav-links a:not(.btn) {
        display: none;
    }

    .hero {
        padding: 120px 0 60px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-stats {
        gap: 24px;
    }

    .auth-card {
        padding: 28px 20px;
    }

    .code-row {
        flex-direction: column;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .deploy-toast {
        left: 16px;
        right: 16px;
        bottom: 16px;
        animation: deployToastFloatMobile 3s ease-in-out infinite;
    }

    @keyframes deployToastFloatMobile {
        0%, 100% {
            transform: translateY(0) rotate(-0.5deg);
        }
        50% {
            transform: translateY(-6px) rotate(0.5deg);
        }
    }
}

/* ========== 4位图片验证码 ========== */
.captcha-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.captcha-input {
    flex: 1;
    padding: 12px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 18px;
    letter-spacing: 6px;
    text-align: center;
    font-family: 'Courier New', monospace;
    font-weight: 700;
    transition: var(--transition);
    background: var(--bg);
    color: var(--text);
    max-width: 140px;
    height: 48px;
}

.captcha-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--border-focus);
}

.captcha-img {
    height: 48px;
    width: 90px;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border);
    cursor: pointer;
    transition: var(--transition);
    background: #0f172a;
    flex-shrink: 0;
}

.captcha-img:hover {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--border-focus);
}

.captcha-refresh {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    background: var(--bg);
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
    padding: 0;
}

.captcha-refresh:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: #f5f3ff;
}

/* ========== 平板端响应式: 定价2列 ========== */
@media (max-width: 900px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
}

/* ========== 二维码弹窗 ========== */
.qr-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.qr-modal-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.qr-modal-box {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    padding: 40px;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.8);
    max-width: 360px;
    width: 90%;
    animation: qrModalIn 0.4s ease;
}

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

.qr-modal-box h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
}

.qr-modal-img {
    width: 200px;
    height: 200px;
    border-radius: 12px;
    margin: 16px 0;
    border: 1px solid var(--border);
}

.qr-modal-text {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 8px;
}

.qr-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.qr-modal-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: var(--text);
}
