/* ===========================================================
   生活记账工具 · 视觉样式
   =========================================================== */

:root {
    --ink: #14121F;
    --ink-soft: #3B3850;
    --body: #63607A;
    --muted: #8E8BA6;
    --bg: #FFFFFF;
    --bg-soft: #F7F6FC;
    --primary: #5B4BD5;
    --primary-2: #8B7CF6;
    --accent: #22D3C5;
    --line: rgba(20, 18, 31, 0.08);
    --line-strong: rgba(20, 18, 31, 0.14);
    --radius-lg: 24px;
    --radius: 16px;
    --shadow-sm: 0 2px 10px rgba(20, 18, 31, 0.05);
    --shadow: 0 18px 44px -22px rgba(41, 33, 110, 0.35);
    --shadow-lg: 0 40px 80px -40px rgba(41, 33, 110, 0.45);
    --nav-h: 76px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-h);
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Segoe UI", system-ui, -apple-system, sans-serif;
    color: var(--body);
    background: var(--bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img,
svg {
    display: block;
}

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

ul {
    list-style: none;
}

.container {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
}

/* ===================== 导航 ===================== */
.nav {
    position: fixed;
    inset: 0 0 auto 0;
    height: var(--nav-h);
    z-index: 1000;
    background: rgba(255, 255, 255, 0.84);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    border-bottom: 1px solid rgba(20, 18, 31, 0.05);
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.nav.is-scrolled {
    background: rgba(255, 255, 255, 0.94);
    border-bottom-color: var(--line);
    box-shadow: 0 10px 30px -24px rgba(20, 18, 31, 0.6);
}

.nav-inner {
    width: min(1180px, calc(100% - 48px));
    height: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 32px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 11px;
    flex-shrink: 0;
}

.brand-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(140deg, var(--primary), var(--primary-2) 60%, var(--accent));
    box-shadow: 0 10px 22px -12px rgba(91, 75, 213, 0.9);
}

.brand-mark svg {
    width: 21px;
    height: 21px;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand-text strong {
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: 0.01em;
}

.brand-text em {
    font-style: normal;
    font-size: 0.66rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

.nav-links a {
    position: relative;
    display: block;
    padding: 9px 16px;
    border-radius: 999px;
    font-size: 0.94rem;
    color: var(--ink-soft);
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-links a:hover {
    color: var(--primary);
    background: rgba(91, 75, 213, 0.07);
}

.nav-cta {
    flex-shrink: 0;
    padding: 10px 22px;
    border-radius: 999px;
    font-size: 0.92rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    box-shadow: 0 12px 26px -14px rgba(91, 75, 213, 0.95);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 32px -16px rgba(91, 75, 213, 1);
}

/* ===================== 首屏 ===================== */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding: calc(var(--nav-h) + 70px) 0 130px;
    overflow: hidden;
    isolation: isolate;
}

/* 背景图（记账界面截图）：强模糊 + 压暗，避免画面文字干扰主标题 */
.hero-bg {
    position: absolute;
    inset: -8%;
    z-index: -3;
    background: url("images/bg3.jpeg") center / cover no-repeat;
    filter: blur(7px) brightness(0.46) saturate(1.15);
    transform: scale(1.02);
}

/* 渐变遮罩层 */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(72% 62% at 80% 12%, rgba(91, 75, 213, 0.42), transparent 62%),
        radial-gradient(62% 55% at 6% 96%, rgba(34, 211, 197, 0.16), transparent 62%),
        linear-gradient(165deg, rgba(12, 10, 22, 0.95) 0%, rgba(26, 21, 54, 0.88) 48%, rgba(11, 9, 20, 0.96) 100%);
}

.hero-glow {
    position: absolute;
    width: 560px;
    height: 560px;
    right: -200px;
    top: -180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(139, 124, 246, 0.32), transparent 66%);
    filter: blur(30px);
    z-index: -1;
    animation: float 14s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(-30px, 40px, 0) scale(1.06); }
}

.hero-inner {
    position: relative;
    text-align: center;
    color: #fff;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 8px 18px;
    margin-bottom: 28px;
    border-radius: 999px;
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(10px);
    animation: rise 0.8s both;
}

.pulse {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 0 rgba(34, 211, 197, 0.7);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(34, 211, 197, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(34, 211, 197, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 211, 197, 0); }
}

.hero h1 {
    font-size: clamp(2.2rem, 5.2vw, 4rem);
    font-weight: 800;
    line-height: 1.22;
    letter-spacing: -0.02em;
    text-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
    animation: rise 0.9s 0.06s both;
}

.hero h1 .grad {
    display: block;
    margin-top: 6px;
    background: linear-gradient(100deg, #FFFFFF 6%, #D8D2FF 44%, #86F8E8 96%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-sub {
    max-width: 620px;
    margin: 22px auto 0;
    font-size: clamp(1rem, 1.5vw, 1.16rem);
    color: rgba(255, 255, 255, 0.8);
    animation: rise 0.9s 0.14s both;
}

.hero-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 38px;
    animation: rise 0.9s 0.22s both;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 15px 32px;
    border-radius: 999px;
    font-size: 0.98rem;
    font-weight: 600;
    transition: transform 0.24s ease, box-shadow 0.24s ease, background 0.24s ease, border-color 0.24s ease;
}

.btn svg {
    width: 17px;
    height: 17px;
    transition: transform 0.24s ease;
}

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--primary-2) 70%, #A79BFF);
    box-shadow: 0 20px 40px -20px rgba(139, 124, 246, 0.95);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 26px 48px -20px rgba(139, 124, 246, 1);
}

.btn-primary:hover svg {
    transform: translateX(4px);
}

.btn-ghost {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(10px);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-3px);
}

.hero-tags {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 30px;
    margin-top: 46px;
    font-size: 0.87rem;
    color: rgba(255, 255, 255, 0.6);
    animation: rise 0.9s 0.3s both;
}

.hero-tags li {
    position: relative;
    padding-left: 18px;
}

.hero-tags li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 7px;
    height: 7px;
    margin-top: -4px;
    border-radius: 50%;
    border: 1px solid rgba(125, 247, 230, 0.9);
}

.hero-fade {
    position: absolute;
    inset: auto 0 0 0;
    height: 140px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff 92%);
    pointer-events: none;
}

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

/* ===================== 通用区块 ===================== */
.section {
    position: relative;
    padding: 110px 0;
}

.section-head {
    max-width: 640px;
    margin: 0 auto 58px;
    text-align: center;
}

.eyebrow {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.24em;
    color: var(--primary);
    opacity: 0.85;
}

h2 {
    font-size: clamp(1.75rem, 3vw, 2.4rem);
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: var(--ink);
    margin: 14px 0 0;
}

.section-lead {
    margin-top: 14px;
    font-size: 1.02rem;
    color: var(--body);
}

/* ===================== 功能特点 ===================== */
.section-features {
    background:
        radial-gradient(70% 60% at 50% 0%, rgba(139, 124, 246, 0.09), transparent 70%),
        var(--bg);
    margin-top: -1px;
}

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

.service-card {
    position: relative;
    padding: 36px 32px 34px;
    border-radius: var(--radius-lg);
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
    overflow: hidden;
}

.service-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(150deg, rgba(139, 124, 246, 0.09), transparent 46%);
    opacity: 0;
    transition: opacity 0.28s ease;
    pointer-events: none;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(91, 75, 213, 0.28);
    box-shadow: var(--shadow);
}

.service-card:hover::after {
    opacity: 1;
}

.card-icon {
    position: relative;
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 15px;
    color: var(--primary);
    background: linear-gradient(150deg, rgba(91, 75, 213, 0.12), rgba(34, 211, 197, 0.12));
    border: 1px solid rgba(91, 75, 213, 0.16);
}

.card-icon svg {
    width: 25px;
    height: 25px;
}

.service-card h3 {
    position: relative;
    margin: 22px 0 10px;
    font-size: 1.18rem;
    font-weight: 700;
    color: var(--ink);
}

.service-card p {
    position: relative;
    font-size: 0.95rem;
    line-height: 1.75;
    color: var(--body);
}

/* ===================== 关于我们 ===================== */
.section-about {
    background: var(--bg-soft);
    overflow: hidden;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.02fr 0.98fr;
    align-items: center;
    gap: 72px;
}

.about-copy h2 {
    margin-bottom: 22px;
}

.about-copy p {
    font-size: 1rem;
    line-height: 1.9;
    color: var(--body);
    margin-bottom: 16px;
}

.about-copy p:last-child {
    margin-bottom: 0;
}

.about-visual {
    position: relative;
    padding: 34px;
    border-radius: 28px;
    background: linear-gradient(150deg, #1C1836, #2A2352 58%, #1A1730);
    box-shadow: var(--shadow-lg);
}

.about-visual::before {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    right: -80px;
    bottom: -90px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(34, 211, 197, 0.35), transparent 68%);
    filter: blur(6px);
    pointer-events: none;
}

.panel {
    position: relative;
    padding: 22px 22px 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
}

.panel-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.panel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 12px rgba(34, 211, 197, 0.9);
}

.panel-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.88);
}

.panel-chip {
    margin-left: auto;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.chart {
    width: 100%;
    height: 150px;
}

.panel-foot {
    display: flex;
    gap: 22px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.legend {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.62);
}

.legend i {
    width: 10px;
    height: 10px;
    border-radius: 3px;
}

.lg-a {
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
}

.lg-b {
    background: var(--accent);
}

/* ===================== 联系我们 ===================== */
.section-contact {
    background:
        radial-gradient(60% 60% at 50% 100%, rgba(91, 75, 213, 0.1), transparent 70%),
        var(--bg);
}

.contact-form {
    width: min(760px, 100%);
    margin: 0 auto;
    padding: 40px;
    border-radius: var(--radius-lg);
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px 18px;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--ink);
    background: var(--bg-soft);
    border: 1px solid transparent;
    border-radius: 13px;
    outline: none;
    transition: border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.contact-form textarea {
    resize: vertical;
    min-height: 132px;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--muted);
}

.contact-form input:focus,
.contact-form textarea:focus {
    background: #fff;
    border-color: rgba(91, 75, 213, 0.45);
    box-shadow: 0 0 0 4px rgba(91, 75, 213, 0.1);
}

.contact-form button {
    align-self: center;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: 8px;
    padding: 15px 42px;
    font-family: inherit;
    font-size: 0.98rem;
    font-weight: 600;
    color: #fff;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    background: linear-gradient(135deg, var(--primary), var(--primary-2) 72%, #A79BFF);
    box-shadow: 0 18px 36px -20px rgba(91, 75, 213, 0.95);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.contact-form button svg {
    width: 17px;
    height: 17px;
    transition: transform 0.22s ease;
}

.contact-form button:hover {
    transform: translateY(-3px);
    box-shadow: 0 24px 44px -20px rgba(91, 75, 213, 1);
}

.contact-form button:hover svg {
    transform: translateX(4px);
}

/* ===================== 页脚 ===================== */
.footer {
    position: relative;
    padding: 78px 0 0;
    color: rgba(255, 255, 255, 0.66);
    background:
        radial-gradient(70% 80% at 82% 0%, rgba(91, 75, 213, 0.34), transparent 62%),
        #14121F;
    overflow: hidden;
}

.footer::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(139, 124, 246, 0.55), transparent);
}

.footer-content {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 44px;
}

.footer-brand .brand-mark {
    margin-bottom: 18px;
}

.footer-brand-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.footer-brand-desc {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-section h4 {
    margin-bottom: 16px;
    font-size: 0.94rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.01em;
}

.footer-section p {
    font-size: 0.88rem;
    line-height: 1.85;
    color: rgba(255, 255, 255, 0.56);
    margin-bottom: 6px;
}

.footer-bottom {
    margin-top: 62px;
    padding: 24px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom p {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.42);
}

/* ===================== 渐显动效 ===================== */
.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.reveal.in-view {
    opacity: 1;
    transform: none;
}

/* ===================== 响应式 ===================== */
@media (max-width: 1080px) {
    .about-grid {
        gap: 46px;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }
}

@media (max-width: 900px) {
    .nav-links {
        display: none;
    }

    .nav-cta {
        margin-left: auto;
    }

    .marketing-services {
        grid-template-columns: 1fr 1fr;
    }

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

    .about-visual {
        order: -1;
        max-width: 520px;
        margin: 0 auto;
        width: 100%;
    }
}

@media (max-width: 640px) {
    :root {
        --nav-h: 68px;
    }

    .container,
    .nav-inner,
    .footer-content {
        width: calc(100% - 40px);
    }

    .hero {
        padding: calc(var(--nav-h) + 56px) 0 96px;
    }

    .section {
        padding: 78px 0;
    }

    .section-head {
        margin-bottom: 40px;
    }

    .marketing-services {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .service-card {
        padding: 28px 24px;
    }

    .hero-tags {
        gap: 8px 18px;
        font-size: 0.8rem;
    }

    .btn {
        padding: 13px 26px;
        font-size: 0.94rem;
    }

    .contact-form {
        padding: 26px 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .about-visual {
        padding: 22px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}