/* 帮帮找房官网 — App Store / 应用市场支持页 */
html,
body {
    height: 100%;
    width: 100%;
}

* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

body.site {
    margin: 0;
    color: #1f2937;
    background: #f8fafc;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-family: "SF Pro SC", "PingFang SC", "Noto Sans SC", "Microsoft YaHei",
        BlinkMacSystemFont, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    font-weight: 400;
    line-height: 1.6;
}

a {
    color: #2563eb;
    text-decoration: none;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

a:hover,
a:focus {
    color: #1d4ed8;
}

.wrap {
    width: min(1080px, calc(100% - 40px));
    margin: 0 auto;
}

/* Top bar */
.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(248, 250, 252, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
    gap: 20px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #0f172a;
    font-weight: 700;
}

.brand:hover {
    color: #0f172a;
}

.brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #3b82f6, #2563eb);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
}

.brand-name {
    font-size: 18px;
    letter-spacing: 0.02em;
}

.nav {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav a {
    color: #475569;
    font-size: 14px;
    font-weight: 500;
}

.nav a:hover {
    color: #2563eb;
}

.nav-cta {
    padding: 8px 14px;
    border-radius: 999px;
    background: #2563eb;
    color: #fff !important;
}

.nav-cta:hover {
    background: #1d4ed8;
    color: #fff !important;
}

/* Hero — one composition, brand first */
.hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(1200px 500px at 70% -10%, rgba(59, 130, 246, 0.18), transparent 60%),
        linear-gradient(180deg, #eef4ff 0%, #f8fafc 70%);
    border-bottom: 1px solid rgba(15, 23, 42, 0.04);
}

.hero-inner {
    padding: 88px 0 96px;
    max-width: 720px;
}

.hero-kicker {
    margin: 0 0 14px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #64748b;
}

.hero-title {
    margin: 0;
    font-size: clamp(40px, 7vw, 64px);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #0f172a;
}

.hero-lead {
    margin: 22px 0 0;
    font-size: 18px;
    line-height: 1.75;
    color: #475569;
    max-width: 34em;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.hero-note {
    margin: 18px 0 0;
    font-size: 13px;
    color: #94a3b8;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 22px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    border: 1px solid transparent;
}

.btn-primary {
    background: #2563eb;
    color: #fff;
}

.btn-primary:hover {
    background: #1d4ed8;
    color: #fff;
}

.btn-ghost {
    background: #fff;
    border-color: #dbe3f0;
    color: #334155;
}

.btn-ghost:hover {
    border-color: #93c5fd;
    color: #1d4ed8;
}

/* Sections */
.section {
    padding: 72px 0;
}

.section-soft {
    background: #fff;
    border-top: 1px solid rgba(15, 23, 42, 0.04);
    border-bottom: 1px solid rgba(15, 23, 42, 0.04);
}

.section-title {
    margin: 0;
    font-size: 28px;
    font-weight: 750;
    letter-spacing: -0.02em;
    color: #0f172a;
}

.section-desc {
    margin: 12px 0 0;
    max-width: 40em;
    color: #64748b;
    font-size: 16px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-top: 36px;
}

.feature {
    background: #fff;
    border: 1px solid #e8eef7;
    border-radius: 18px;
    padding: 22px 20px;
}

.feature h3 {
    margin: 0 0 10px;
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
}

.feature p {
    margin: 0;
    font-size: 14px;
    color: #64748b;
    line-height: 1.7;
}

.download-box {
    text-align: left;
}

.download-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.download-tips {
    margin: 24px 0 0;
    padding-left: 18px;
    color: #64748b;
    font-size: 14px;
}

.download-tips li {
    margin: 8px 0;
}

.support-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 28px;
    align-items: start;
}

.contact-list {
    margin: 28px 0 0;
}

.contact-list > div {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #eef2f7;
}

.contact-list dt {
    margin: 0;
    color: #94a3b8;
    font-size: 13px;
    font-weight: 600;
}

.contact-list dd {
    margin: 0;
    color: #1f2937;
    font-size: 15px;
    font-weight: 500;
}

.support-more {
    margin-top: 20px;
    font-size: 14px;
    color: #64748b;
}

.legal-card {
    background: #0f172a;
    color: #e2e8f0;
    border-radius: 20px;
    padding: 28px 24px;
}

.legal-card h3 {
    margin: 0 0 12px;
    font-size: 18px;
    color: #fff;
}

.legal-card p {
    margin: 0;
    font-size: 14px;
    color: #94a3b8;
    line-height: 1.7;
}

.legal-links {
    list-style: none;
    margin: 20px 0 0;
    padding: 0;
}

.legal-links li {
    margin: 0;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.legal-links a {
    display: block;
    padding: 14px 0;
    color: #93c5fd;
    font-weight: 600;
}

.legal-links a:hover {
    color: #bfdbfe;
}

/* Footer */
.footer {
    background: #0b1220;
    color: rgba(255, 255, 255, 0.55);
    padding: 36px 0 28px;
}

.footer-inner {
    display: grid;
    gap: 18px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer-brand strong {
    color: #fff;
    font-size: 16px;
}

.footer-brand span,
.footer-copy {
    font-size: 13px;
}

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

.footer-links a,
.footer-copy a {
    color: #93c5fd;
    font-size: 13px;
}

.footer-copy {
    margin: 0;
    padding-top: 8px;
    border-top: 1px solid rgba(148, 163, 184, 0.15);
}

/* Support / doc pages reuse */
.page-support .wrap,
.page-doc .wrap {
    padding: 40px 0 72px;
}

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

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

@media (max-width: 640px) {
    .nav a:not(.nav-cta) {
        display: none;
    }

    .hero-inner {
        padding: 56px 0 64px;
    }

    .section {
        padding: 52px 0;
    }

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

    .contact-list > div {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}
