* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #4a7dff;
    --primary-dark: #3568f0;
    --accent: #6b9aff;
    --text: #111827;
    --text-muted: #6b7280;
    --bg: #ffffff;
    --bg-soft: #f4f7ff;
    --border: #e5e7eb;
    --shadow: 0 10px 40px rgba(74, 125, 255, 0.15);
    --shadow-phone: 0 32px 64px rgba(74, 125, 255, 0.22);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

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

.btn-nav {
    padding: 10px 18px;
    font-size: 0.9rem;
    border-radius: 10px;
    white-space: nowrap;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text);
    font-weight: 700;
    font-size: 1.1rem;
}

.brand-logo {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    object-fit: cover;
    flex-shrink: 0;
}

.brand-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 28px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    transition: color 0.2s;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--text);
}

.hero {
    padding: 100px 0 80px;
    background: linear-gradient(160deg, #eef2ff 0%, #f0fdfa 50%, #fff 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.hero h1 {
    font-size: 2.75rem;
    line-height: 1.2;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    color: var(--text-muted);
    font-size: 1.125rem;
    margin-bottom: 32px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-2px);
}

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    margin-left: 12px;
}

.hero-card {
    background: #fff;
    border-radius: 20px;
    padding: 32px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.hero-card h3 {
    margin-bottom: 16px;
    font-size: 1.25rem;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--text-muted);
}

.feature-list li:last-child {
    border-bottom: none;
}

.feature-list .icon {
    color: var(--primary);
    font-weight: bold;
}

.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 48px;
}

.section-title h2 {
    font-size: 2rem;
    margin-bottom: 12px;
}

.section-title p {
    color: var(--text-muted);
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.card {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.card h3 {
    margin-bottom: 12px;
    color: var(--primary-dark);
}

.card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.page-header {
    padding: 80px 0 40px;
    background: linear-gradient(160deg, #eef2ff, #fff);
    text-align: center;
}

.page-header h1 {
    font-size: 2.25rem;
    margin-bottom: 8px;
}

.page-header p {
    color: var(--text-muted);
}

.content-block {
    max-width: 720px;
    margin: 0 auto;
    padding: 48px 24px 80px;
}

.content-block p {
    margin-bottom: 16px;
    color: var(--text-muted);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 48px 0 64px;
}

.contact-info {
    background: var(--bg-soft);
    border-radius: 16px;
    padding: 32px;
    border: 1px solid var(--border);
}

.contact-info h3 {
    margin-bottom: 20px;
}

.contact-info p {
    margin-bottom: 12px;
    color: var(--text-muted);
}

.contact-info a {
    color: var(--primary-dark);
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* 短页面 footer 吸底 */
.site-layout {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

.site-main {
    flex: 1 0 auto;
}

.site-footer {
    flex-shrink: 0;
    margin-top: auto;
}

.footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 40px 0;
    text-align: center;
    font-size: 0.9rem;
}

.footer a {
    color: #cbd5e1;
    text-decoration: none;
}

/* —— App 下载落地页 —— */

.download-page .hero {
    display: none;
}

.hero-download {
    padding: 88px 0 72px;
    background:
        radial-gradient(ellipse 80% 60% at 70% 0%, rgba(74, 125, 255, 0.18), transparent),
        radial-gradient(ellipse 50% 40% at 10% 80%, rgba(107, 154, 255, 0.12), transparent),
        linear-gradient(180deg, #f8faff 0%, #fff 100%);
    overflow: hidden;
}

.hero-download-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 40px;
    align-items: center;
}

.platform-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(74, 125, 255, 0.1);
    color: var(--primary-dark);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero-download h1 {
    font-size: clamp(2.2rem, 5vw, 3.25rem);
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
    color: var(--text);
}

.hero-accent {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-lead {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 32em;
    margin-bottom: 28px;
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.hero-hint {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.app-store-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 22px 12px 16px;
    background: #000;
    color: #fff;
    border-radius: 12px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.app-store-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
}

.app-store-btn.is-pending {
    background: #1f2937;
    cursor: default;
}

.app-store-btn.is-pending:hover {
    transform: none;
}

.app-store-btn-lg {
    padding: 14px 28px 14px 20px;
}

.app-store-btn-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.app-store-btn-text small {
    font-size: 0.7rem;
    opacity: 0.85;
}

.app-store-btn-text strong {
    font-size: 1.25rem;
    font-weight: 600;
}

.phone-showcase {
    display: flex;
    justify-content: center;
    padding: 20px 0;
}

.phone-frame {
    width: min(280px, 100%);
    aspect-ratio: 9 / 19;
    background: #111;
    border-radius: 40px;
    padding: 10px;
    box-shadow: var(--shadow-phone);
    position: relative;
}

.phone-notch {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 26px;
    background: #111;
    border-radius: 0 0 16px 16px;
    z-index: 2;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #eef3ff 0%, #fff 45%);
    border-radius: 32px;
    overflow: hidden;
    padding: 44px 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.phone-screen-shot {
    padding: 0;
    background: #0a0a0a;
}

.phone-screen-shot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    border-radius: 32px;
}

.phone-status {
    display: flex;
    justify-content: space-between;
    font-size: 0.65rem;
    font-weight: 600;
    color: #333;
    padding: 0 4px;
}

.phone-status-icons {
    letter-spacing: 1px;
    font-size: 0.55rem;
}

.phone-app-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 4px 2px 8px;
}

.phone-app-header img {
    border-radius: 8px;
}

.phone-card {
    background: #fff;
    border-radius: 14px;
    padding: 12px;
    box-shadow: 0 4px 16px rgba(74, 125, 255, 0.1);
    border: 1px solid rgba(74, 125, 255, 0.08);
}

.phone-card-primary strong {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 4px;
}

.phone-card-primary p {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin: 0;
}

.phone-card-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.phone-card-sm {
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
    padding: 14px 8px;
    color: var(--primary-dark);
}

.phone-widget-bar {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.65rem;
    color: var(--text-muted);
    padding: 10px;
    background: rgba(74, 125, 255, 0.06);
    border-radius: 10px;
}

.phone-widget-bar .dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--primary);
}

.section-soft {
    background: var(--bg-soft);
}

.cards-4 {
    grid-template-columns: repeat(4, 1fr);
}

.card-feature .card-icon {
    font-size: 1.75rem;
    margin-bottom: 12px;
}

.steps {
    list-style: none;
    max-width: 640px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.steps li {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
}

.step-num {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.steps h3 {
    font-size: 1.05rem;
    margin-bottom: 6px;
}

.steps p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0;
}

.download-cta {
    text-align: center;
}

.download-cta-inner {
    max-width: 520px;
}

.download-cta-logo {
    border-radius: 20px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.download-cta h2 {
    font-size: 1.75rem;
    margin-bottom: 10px;
}

.download-cta > .container > p,
.download-cta-inner > p {
    color: var(--text-muted);
    margin-bottom: 24px;
}

.download-note {
    margin-top: 16px;
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: color 0.3s;
}

.download-note.highlight {
    color: var(--primary-dark);
    font-weight: 600;
}

.download-note .live-label {
    display: none;
}

.download-note .pending-label {
    display: inline;
}

body.store-live .download-note .live-label {
    display: inline;
}

body.store-live .download-note .pending-label {
    display: none;
}

body.store-live .app-store-btn.is-pending {
    background: #000;
    cursor: pointer;
}

.download-meta {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 24px;
    margin-top: 28px;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.section-about {
    padding-top: 48px;
    padding-bottom: 64px;
}

.content-narrow {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
}

.content-narrow h2 {
    margin-bottom: 16px;
}

.content-narrow p {
    color: var(--text-muted);
    margin-bottom: 12px;
    line-height: 1.75;
}

.footer-rich {
    text-align: left;
    padding: 48px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.footer-brand strong {
    display: block;
    color: #fff;
    font-size: 1.1rem;
    margin: 12px 0 6px;
}

.footer-brand p {
    font-size: 0.875rem;
}

.footer-logo {
    border-radius: 10px;
}

.footer-links h4 {
    color: #e2e8f0;
    font-size: 0.9rem;
    margin-bottom: 14px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-bottom {
    padding: 20px 0;
    text-align: center;
    font-size: 0.85rem;
}

@media (max-width: 1024px) {
    .cards-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .btn-nav {
        display: none;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: #fff;
        padding: 20px 24px;
        border-bottom: 1px solid var(--border);
        gap: 16px;
    }

    .nav-menu.open {
        display: flex;
    }

    .hero-grid,
    .hero-download-grid,
    .cards,
    .cards-4,
    .contact-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero h1,
    .hero-download h1 {
        font-size: 2rem;
    }

    .btn-outline {
        margin-left: 0;
        margin-top: 12px;
    }

    .phone-showcase {
        order: -1;
        padding-top: 0;
    }

    .hero-download {
        padding-top: 72px;
    }

    .steps li {
        flex-direction: column;
        gap: 12px;
    }
}
