/* 佳缘觅爱官网 — 品牌蓝紫渐变 */

:root {
    --blue: #2B9BFF;
    --blue-deep: #1A6FE8;
    --violet: #B44CFF;
    --violet-deep: #8B2FE0;
    --ink: #1A1F36;
    --ink-soft: #5A6178;
    --mist: #F4F7FF;
    --white: #FFFFFF;
    --grad: linear-gradient(135deg, var(--blue) 0%, var(--violet) 100%);
    --grad-soft: linear-gradient(160deg, #E8F4FF 0%, #F3E9FF 45%, #EEF6FF 100%);
    --font-display: "ZCOOL QingKe HuangYou", "Noto Sans SC", sans-serif;
    --font-body: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", sans-serif;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --header-h: 72px;
    --radius-lg: 24px;
    --radius-md: 16px;
    --shadow-soft: 0 8px 32px rgba(43, 155, 255, 0.1), 0 2px 8px rgba(180, 76, 255, 0.06);
    --shadow-card: 0 16px 48px rgba(90, 80, 255, 0.12), 0 4px 12px rgba(26, 31, 54, 0.04);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--mist);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
}

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

ul {
    list-style: none;
}

/* —— Atmosphere —— */
.page-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: var(--grad-soft);
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.55;
    animation: drift 18s var(--ease) infinite alternate;
}

.orb-a {
    width: min(60vw, 520px);
    height: min(60vw, 520px);
    top: -12%;
    left: -8%;
    background: radial-gradient(circle, rgba(43, 155, 255, 0.55), transparent 70%);
}

.orb-b {
    width: min(55vw, 480px);
    height: min(55vw, 480px);
    top: 18%;
    right: -10%;
    background: radial-gradient(circle, rgba(180, 76, 255, 0.45), transparent 70%);
    animation-delay: -6s;
    animation-duration: 22s;
}

.mesh {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(rgba(26, 31, 54, 0.04) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: linear-gradient(180deg, rgba(0,0,0,0.5), transparent 70%);
}

@keyframes drift {
    from { transform: translate(0, 0) scale(1); }
    to { transform: translate(4%, 6%) scale(1.08); }
}

/* —— Header —— */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--header-h);
    backdrop-filter: blur(16px) saturate(1.2);
    -webkit-backdrop-filter: blur(16px) saturate(1.2);
    background: rgba(244, 247, 255, 0.72);
    border-bottom: 1px solid rgba(43, 155, 255, 0.08);
    transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

.site-header.is-scrolled {
    background: rgba(255, 255, 255, 0.88);
    border-bottom-color: rgba(43, 155, 255, 0.14);
    box-shadow: 0 4px 24px rgba(43, 155, 255, 0.08);
}

.nav {
    max-width: 1100px;
    margin: 0 auto;
    height: 100%;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
    transition: transform 0.3s var(--ease);
}

.nav-brand:hover {
    transform: scale(1.03);
}

.nav-logo {
    height: 44px;
    width: auto;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-menu a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--ink-soft);
    transition: color 0.25s var(--ease);
    position: relative;
}

.nav-menu a:not(.nav-cta)::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 2px;
    background: var(--grad);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s var(--ease);
}

.nav-menu a:not(.nav-cta):hover {
    color: var(--blue-deep);
}

.nav-menu a:not(.nav-cta):hover::after {
    transform: scaleX(1);
}

.nav-cta {
    padding: 0.45rem 1.1rem;
    border-radius: 999px;
    background: var(--grad);
    color: var(--white) !important;
    box-shadow: 0 6px 20px rgba(90, 80, 255, 0.25);
}

.nav-cta:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border: 0;
    background: transparent;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform 0.3s var(--ease);
}

/* —— Hero —— */
.hero {
    min-height: 100vh;
    min-height: 100dvh;
    padding: calc(var(--header-h) + 2.5rem) 1.5rem 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-inner {
    width: 100%;
    max-width: 1080px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: clamp(2rem, 5vw, 4rem);
}

.hero-plane {
    position: relative;
    display: flex;
    justify-content: center;
    animation: floatLogo 5.5s ease-in-out infinite;
}

.hero-logo-wrap {
    position: relative;
    width: min(100%, 340px);
    padding: clamp(1.5rem, 4vw, 2.25rem);
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(43, 155, 255, 0.1);
}

.hero-logo-wrap::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: var(--grad);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.35;
    pointer-events: none;
}

.hero-plane::after {
    content: "";
    position: absolute;
    inset: 10% 5% -10%;
    background: radial-gradient(ellipse at center, rgba(43, 155, 255, 0.25), rgba(180, 76, 255, 0.15), transparent 72%);
    filter: blur(32px);
    z-index: -1;
}

.hero-logo {
    width: 100%;
    height: auto;
    margin: 0 auto;
}

@keyframes floatLogo {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hero-copy {
    text-align: left;
    animation: riseIn 0.9s var(--ease) both;
    animation-delay: 0.15s;
}

.hero-tag {
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--violet-deep);
    background: rgba(180, 76, 255, 0.1);
    border: 1px solid rgba(180, 76, 255, 0.18);
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    margin-bottom: 1.1rem;
}

.hero-copy h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4.5vw, 3.1rem);
    font-weight: 400;
    letter-spacing: 0.03em;
    line-height: 1.3;
    color: var(--ink);
    margin-bottom: 1rem;
}

.hero-br {
    display: none;
}

.hero-copy h1 em,
.hero-copy h1 span {
    font-style: normal;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-desc {
    font-size: clamp(1rem, 2vw, 1.12rem);
    color: var(--ink-soft);
    margin-bottom: 1.75rem;
    max-width: 420px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-bottom: 2rem;
}

.hero-stats {
    display: flex;
    gap: clamp(1.25rem, 3vw, 2.5rem);
    padding-top: 1.5rem;
    border-top: 1px solid rgba(43, 155, 255, 0.12);
}

.hero-stats li {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.hero-stats strong {
    font-size: 1rem;
    font-weight: 700;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-stats span {
    font-size: 0.82rem;
    color: var(--ink-soft);
}

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

/* —— Buttons —— */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem 1.75rem;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 600;
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s;
}

.btn-primary {
    background: var(--grad);
    color: var(--white);
    box-shadow: 0 10px 28px rgba(90, 80, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 36px rgba(90, 80, 255, 0.38);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.75);
    color: var(--ink);
    border: 1px solid rgba(43, 155, 255, 0.22);
    backdrop-filter: blur(8px);
}

.btn-ghost:hover {
    transform: translateY(-2px);
    border-color: rgba(180, 76, 255, 0.35);
    background: var(--white);
}

.btn-download {
    background: var(--grad);
    color: var(--white);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: 0 12px 32px rgba(90, 80, 255, 0.28);
    text-align: left;
    min-width: 220px;
}

.btn-download:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(90, 80, 255, 0.36);
}

.btn-download-icon {
    display: flex;
    flex-shrink: 0;
}

.btn-download-text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.btn-download-text strong {
    font-size: 1.05rem;
    font-weight: 700;
}

.btn-download-text small {
    font-size: 0.78rem;
    font-weight: 400;
    opacity: 0.85;
}

/* —— Sections —— */
.section {
    padding: clamp(4rem, 10vw, 6.5rem) 1.5rem;
}

.section-inner {
    max-width: 920px;
    margin: 0 auto;
}

.section-head {
    text-align: center;
    margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.section-head h2 {
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 4vw, 2.35rem);
    font-weight: 400;
    letter-spacing: 0.03em;
    color: var(--ink);
    margin-bottom: 0.75rem;
}

.section-head p {
    color: var(--ink-soft);
    font-size: 1.05rem;
    max-width: 520px;
    margin: 0 auto;
}

/* Features — glass cards */
.features {
    position: relative;
}

.feature-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.feature-item {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(43, 155, 255, 0.12);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
    animation: riseIn 0.8s var(--ease) both;
}

.feature-item:first-child { animation-delay: 0.05s; }
.feature-item:nth-child(2) { animation-delay: 0.12s; }
.feature-item:nth-child(3) { animation-delay: 0.2s; }

.feature-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
    border-color: rgba(180, 76, 255, 0.22);
}

.feature-mark {
    width: 52px;
    height: 52px;
    padding: 0.35rem;
    background: linear-gradient(135deg, rgba(43, 155, 255, 0.08), rgba(180, 76, 255, 0.1));
    border-radius: 14px;
}

.feature-mark svg {
    width: 100%;
    height: 100%;
}

.feature-item h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    color: var(--ink);
}

.feature-item p {
    color: var(--ink-soft);
    font-size: 0.94rem;
    line-height: 1.6;
}

/* Download */
.download {
    position: relative;
}

.download::before {
    content: "";
    position: absolute;
    inset: 8% 5%;
    background: linear-gradient(135deg, rgba(43, 155, 255, 0.08), rgba(180, 76, 255, 0.1));
    border-radius: 40px;
    z-index: 0;
}

.download-inner {
    position: relative;
    z-index: 1;
}

.download-panel {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    max-width: 760px;
    margin: 0 auto;
    padding: clamp(1.75rem, 4vw, 2.5rem);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(43, 155, 255, 0.14);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}

.download-meta {
    flex: 1;
    min-width: 220px;
}

.version-tag {
    display: inline-block;
    padding: 0.3rem 0.85rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--violet-deep);
    background: rgba(180, 76, 255, 0.12);
    margin-bottom: 1rem;
}

.download-meta ul {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.download-meta li {
    position: relative;
    padding-left: 1.35rem;
    color: var(--ink-soft);
    font-size: 0.98rem;
}

.download-meta li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.45em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--grad);
}

/* About */
.about-inner {
    text-align: center;
}

.about-points {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

.about-points li {
    padding: 0.65rem 1.35rem;
    font-weight: 600;
    color: var(--ink);
    font-size: 0.98rem;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(43, 155, 255, 0.14);
    border-radius: 999px;
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}

.about-points li:hover {
    transform: translateY(-2px);
    border-color: rgba(180, 76, 255, 0.28);
}

/* —— Footer —— */
.site-footer {
    padding: 3.5rem 1.5rem 2.5rem;
    background: linear-gradient(180deg, transparent, rgba(26, 31, 54, 0.04));
    border-top: 1px solid rgba(43, 155, 255, 0.1);
}

.footer-inner {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.footer-logo {
    height: 52px;
    width: auto;
    margin: 0 auto 0.85rem;
    opacity: 0.95;
}

.footer-company {
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: var(--ink);
    margin-bottom: 1rem;
}

.footer-mail {
    color: var(--ink-soft);
    font-size: 0.95rem;
    margin-bottom: 0.85rem;
}

.footer-mail a {
    color: var(--blue-deep);
}

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

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.75rem;
}

.footer-links a {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--ink-soft);
    transition: color 0.25s;
}

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

.footer-legal {
    font-size: 0.8rem;
    color: #8A90A5;
    line-height: 1.8;
}

.beian {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem 1.25rem;
    margin-top: 0.35rem;
}

.beian a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #8A90A5;
}

.beian a:hover {
    color: var(--ink-soft);
}

.beian img {
    width: 14px;
    height: 14px;
}

/* —— Responsive —— */
@media (max-width: 900px) {
    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-copy {
        text-align: center;
    }

    .hero-desc {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .feature-list {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    :root {
        --header-h: 64px;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: var(--header-h);
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        padding: 0.5rem 0 1rem;
        background: rgba(244, 247, 255, 0.96);
        backdrop-filter: blur(16px);
        border-bottom: 1px solid rgba(43, 155, 255, 0.1);
        transform: translateY(-120%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
    }

    .nav-menu.is-open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu a {
        display: block;
        padding: 0.9rem 1.5rem;
        text-align: center;
    }

    .nav-menu a:not(.nav-cta)::after {
        display: none;
    }

    .nav-cta {
        margin: 0.5rem 1.5rem 0;
        display: block !important;
    }

    .hero {
        padding-top: calc(var(--header-h) + 1.5rem);
        padding-bottom: 3rem;
    }

    .hero-logo-wrap {
        width: min(72vw, 260px);
        padding: 1.25rem;
    }

    .hero-br {
        display: inline;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 1rem 1.75rem;
    }

    .download-panel {
        flex-direction: column;
        align-items: stretch;
        text-align: left;
    }

    .btn-download {
        justify-content: center;
        width: 100%;
    }

    .about-points {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }

    .download::before {
        inset: 4% 0;
        border-radius: 28px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
