/* LuckyChat 官网 · 共享样式（首页 / 下载页） */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --brand: #2f7cf6;
    --brand-600: #1e63dd;
    --brand-700: #164fb8;
    --brand-50: #eef5ff;
    --brand-100: #dceaff;
    --mint: #2fc3a2;
    --mint-50: #e7f9f3;
    --mint-100: #c9f1e5;
    --amber: #f5a524;
    --rose: #f0627a;
    --ink: #0e1a2b;
    --ink-2: #2c3b50;
    --muted: #66768c;
    --line: #e4ecf7;
    --bg: #f7faff;
    --card: #ffffff;
    --radius-xl: 32px;
    --radius-lg: 24px;
    --radius: 18px;
    --radius-sm: 12px;
    --shadow-1: 0 1px 2px rgba(16, 40, 80, 0.05), 0 6px 18px rgba(16, 40, 80, 0.06);
    --shadow-2: 0 2px 6px rgba(16, 40, 80, 0.05), 0 22px 56px rgba(30, 80, 160, 0.14);
    --shadow-brand: 0 10px 24px rgba(47, 124, 246, 0.32);
    --font-display: "Sora", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    --font-body: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Segoe UI", sans-serif;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font-body);
    color: var(--ink-2);
    background: var(--bg);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; }
:focus-visible { outline: 3px solid rgba(47, 124, 246, 0.45); outline-offset: 2px; border-radius: 8px; }

.wrap { width: min(1180px, calc(100% - 2.5rem)); margin: 0 auto; }

/* ---------- 按钮 ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    height: 48px; padding: 0 1.5rem; border-radius: 999px;
    font-weight: 600; font-size: 0.98rem; text-decoration: none; white-space: nowrap;
    border: 1px solid transparent; cursor: pointer;
    transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s, color 0.2s, border-color 0.2s;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-brand); }
.btn-primary:hover { background: var(--brand-600); transform: translateY(-1px); box-shadow: 0 14px 30px rgba(47, 124, 246, 0.38); }
.btn-secondary { background: #fff; color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-1); }
.btn-secondary:hover { border-color: var(--brand-100); color: var(--brand-600); transform: translateY(-1px); }
.btn-light { background: #fff; color: var(--brand-700); }
.btn-light:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(8, 30, 80, 0.25); }
.btn-ghost-light { background: rgba(255, 255, 255, 0.12); color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.2); }
.btn-sm { height: 40px; padding: 0 1.1rem; font-size: 0.9rem; }

/* ---------- 导航 ---------- */
.navbar {
    position: fixed; inset: 0 0 auto 0; z-index: 100;
    background: rgba(247, 250, 255, 0.72);
    backdrop-filter: saturate(180%) blur(16px);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
}
.navbar.is-scrolled { background: rgba(255, 255, 255, 0.88); border-bottom-color: var(--line); box-shadow: 0 4px 20px rgba(16, 40, 80, 0.05); }
.navbar .wrap { height: 68px; display: flex; align-items: center; gap: 2rem; }
.logo {
    display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none;
    font-family: var(--font-display); font-weight: 700; font-size: 1.22rem; color: var(--ink); letter-spacing: -0.02em;
}
.logo img { width: 34px; height: 34px; border-radius: 9px; }
.nav-links { display: flex; gap: 0.25rem; list-style: none; margin-right: auto; }
.nav-links a {
    display: block; padding: 0.45rem 0.85rem; border-radius: 999px;
    text-decoration: none; font-size: 0.94rem; font-weight: 500; color: var(--ink-2);
    transition: background 0.2s, color 0.2s;
}
.nav-links a:hover, .nav-links a.active { background: var(--brand-50); color: var(--brand-600); }
.nav-right { display: flex; align-items: center; gap: 0.6rem; margin-left: auto; }
.lang-select {
    appearance: none; -webkit-appearance: none;
    height: 40px; padding: 0 2rem 0 0.9rem; border-radius: 999px;
    border: 1px solid var(--line); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2366768c' d='M6 8L1.5 3.5h9z'/%3E%3C/svg%3E") no-repeat right 0.75rem center;
    color: var(--ink-2); font: inherit; font-size: 0.88rem; cursor: pointer;
}
.lang-select:hover { border-color: var(--brand-100); }

/* ---------- 通用区块 ---------- */
.section { padding: 112px 0; position: relative; }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head.is-left { margin-left: 0; text-align: left; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 0.45rem;
    padding: 0.32rem 0.85rem; border-radius: 999px;
    background: var(--brand-50); color: var(--brand-600);
    font-size: 0.84rem; font-weight: 600; letter-spacing: 0.02em; margin-bottom: 1.1rem;
}
.eyebrow.is-mint { background: var(--mint-50); color: #138a71; }
.section-title {
    font-family: var(--font-display); color: var(--ink);
    font-size: clamp(1.9rem, 3.4vw, 2.75rem); font-weight: 700;
    line-height: 1.22; letter-spacing: -0.02em;
}
.section-lead { margin-top: 1rem; font-size: 1.08rem; color: var(--muted); }

/* ---------- 页脚 ---------- */
.footer { background: #fff; border-top: 1px solid var(--line); padding: 64px 0 32px; font-size: 0.92rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2.5rem; }
.footer-brand p { margin-top: 0.9rem; color: var(--muted); max-width: 320px; }
.footer h4 { font-size: 0.95rem; color: var(--ink); margin-bottom: 0.9rem; }
.footer ul { list-style: none; display: grid; gap: 0.55rem; }
.footer a { color: var(--muted); text-decoration: none; transition: color 0.2s; }
.footer a:hover { color: var(--brand-600); }
.footer-bottom {
    margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line);
    display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; color: #8c99ab; font-size: 0.85rem;
}

/* ---------- 入场动画 ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    *, *::before, *::after { animation: none !important; }
}

@media (max-width: 960px) {
    .nav-links { display: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
    .section { padding: 80px 0; }
}
@media (max-width: 560px) {
    .wrap { width: calc(100% - 2rem); }
    .navbar .wrap { gap: 0.75rem; }
    .nav-right .btn { display: none; }
    .footer-grid { grid-template-columns: 1fr; }
}
