/* 佳姻官网 — 品牌蓝紫渐变 */

: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;
}

*,
*::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);
}

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

.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);
}

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

.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);
}

.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) + 2rem) 1.5rem 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: clamp(1.5rem, 4vw, 2.75rem);
}

.hero-plane {
    position: relative;
    width: min(86vw, 420px);
    animation: floatLogo 5.5s ease-in-out infinite;
}

.hero-plane::before {
    content: "";
    position: absolute;
    inset: 12% 8% -8%;
    background: radial-gradient(ellipse at center, rgba(43, 155, 255, 0.28), rgba(180, 76, 255, 0.18), transparent 70%);
    filter: blur(28px);
    z-index: -1;
}

.hero-logo {
    width: 100%;
    height: auto;
    margin: 0 auto;
    filter: drop-shadow(0 18px 40px rgba(90, 80, 255, 0.18));
}

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

.hero-copy {
    max-width: 560px;
    animation: riseIn 0.9s var(--ease) both;
    animation-delay: 0.15s;
}

.hero-copy h1 {
    font-family: var(--font-display);
    font-size: clamp(2.1rem, 5.5vw, 3.4rem);
    font-weight: 400;
    letter-spacing: 0.04em;
    line-height: 1.25;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 0.85rem;
}

.hero-copy > p {
    font-size: clamp(1rem, 2.2vw, 1.15rem);
    color: var(--ink-soft);
    margin-bottom: 1.75rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.85rem;
}

@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.65);
    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);
}

.btn-download {
    background: var(--grad);
    color: var(--white);
    padding: 1rem 1.5rem;
    border-radius: 18px;
    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;
}

/* Features — no cards, clean rows */
.feature-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.feature-item {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 1.25rem;
    align-items: start;
    padding: 1.75rem 0;
    border-bottom: 1px solid rgba(43, 155, 255, 0.12);
    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:last-child {
    border-bottom: 0;
}

.feature-mark {
    width: 56px;
    height: 56px;
}

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

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

.feature-item p {
    color: var(--ink-soft);
    font-size: 0.98rem;
}

/* 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: 720px;
    margin: 0 auto;
    padding: 0 0.5rem;
}

.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 2.5rem;
    margin-top: 0.5rem;
}

.about-points li {
    position: relative;
    padding-left: 1.4rem;
    font-weight: 500;
    color: var(--ink);
    font-size: 1.05rem;
}

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

/* —— 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: 56px;
    width: auto;
    margin: 0 auto 1.25rem;
    opacity: 0.92;
}

.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: 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-cta {
        margin: 0.5rem 1.5rem 0;
        display: block !important;
    }

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

    .hero-plane {
        width: min(72vw, 280px);
    }

    .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.85rem;
    }

    .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;
    }
}
