/* ========================================
   汇付云数据 - 企业官网设计系统
   简约大气 · 科技感
   ======================================== */

/* ---- Reset & Base ---- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* 主色系 - 科技蓝 */
    --c-primary: #0A5CFF;
    --c-primary-dark: #0040CC;
    --c-primary-light: #3B82F6;
    --c-primary-soft: #EBF2FF;
    --c-primary-bg: #F5F8FF;

    /* 辅助色 - 渐变伙伴 */
    --c-accent: #00C6FB;
    --c-accent-dark: #0099D4;

    /* 渐变 */
    --grad-hero: linear-gradient(135deg, #0A5CFF 0%, #00C6FB 100%);
    --grad-hero-dark: linear-gradient(135deg, #001a3d 0%, #003080 50%, #0066CC 100%);
    --grad-text: linear-gradient(135deg, #0A5CFF, #00C6FB);
    --grad-card: linear-gradient(135deg, #EBF2FF 0%, #F5F8FF 100%);

    /* 中性色 */
    --c-text: #1A1A2E;
    --c-text-secondary: #555570;
    --c-text-light: #8888A0;
    --c-border: #E8E8F0;
    --c-border-light: #F0F0F5;
    --c-bg: #FFFFFF;
    --c-bg-alt: #FAFBFD;
    --c-bg-dark: #0B0F1A;

    /* 阴影 */
    --shadow-sm: 0 2px 8px rgba(10, 92, 255, 0.06);
    --shadow-md: 0 8px 30px rgba(10, 92, 255, 0.10);
    --shadow-lg: 0 20px 60px rgba(10, 92, 255, 0.15);
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.05);

    /* 圆角 */
    --r-sm: 8px;
    --r-md: 12px;
    --r-lg: 20px;
    --r-xl: 28px;
    --r-full: 999px;

    /* 间距 */
    --sp: 8px;

    /* 布局 */
    --nav-h: 72px;
    --max-w: 1200px;

    /* 字体 */
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;

    /* 动画 */
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --dur: 0.4s;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    color: var(--c-text);
    background: var(--c-bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

/* ---- 容器 ---- */
.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
}

.section-sm {
    padding: 64px 0;
}

.bg-alt {
    background: var(--c-bg-alt);
}

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

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

/* ---- 排版 ---- */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--c-text-secondary);
    text-align: center;
    max-width: 640px;
    margin: 0 auto 56px;
    line-height: 1.8;
}

.gradient-text {
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.eyebrow {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--c-primary);
    background: var(--c-primary-soft);
    padding: 6px 18px;
    border-radius: var(--r-full);
    margin-bottom: 20px;
    letter-spacing: 0.05em;
}

/* ---- 导航栏 ---- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-h);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(232, 232, 240, 0.6);
    z-index: 1000;
    transition: all var(--dur) var(--ease);
}

.navbar.scrolled {
    box-shadow: var(--shadow-sm);
    background: rgba(255, 255, 255, 0.95);
}

.nav-inner {
    max-width: var(--max-w);
    height: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--c-text);
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: var(--grad-hero);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(10, 92, 255, 0.3);
}

.logo-text {
    letter-spacing: -0.01em;
}

.logo-text span {
    color: var(--c-primary);
}

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

.nav-links a {
    padding: 8px 20px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--c-text-secondary);
    border-radius: var(--r-full);
    transition: all 0.2s var(--ease);
    position: relative;
}

.nav-links a:hover {
    color: var(--c-primary);
    background: var(--c-primary-soft);
}

.nav-links a.active {
    color: var(--c-primary);
    font-weight: 600;
}

.nav-cta {
    padding: 10px 28px;
    background: var(--c-primary);
    color: #fff;
    border-radius: var(--r-full);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.25s var(--ease);
    box-shadow: 0 4px 14px rgba(10, 92, 255, 0.25);
}

.nav-cta:hover {
    background: var(--c-primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(10, 92, 255, 0.35);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--c-text);
    border-radius: 2px;
    transition: all 0.3s var(--ease);
}

/* ---- 按钮 ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 36px;
    border-radius: var(--r-full);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s var(--ease);
    font-family: inherit;
}

.btn-primary {
    background: var(--c-primary);
    color: #fff;
    box-shadow: 0 6px 20px rgba(10, 92, 255, 0.3);
}

.btn-primary:hover {
    background: var(--c-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(10, 92, 255, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--c-primary);
    border: 2px solid var(--c-primary);
}

.btn-outline:hover {
    background: var(--c-primary);
    color: #fff;
    transform: translateY(-2px);
}

.btn-white {
    background: #fff;
    color: var(--c-primary);
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.btn-ghost-white {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-ghost-white:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #fff;
}

.btn-lg {
    padding: 16px 44px;
    font-size: 1.05rem;
}

/* ---- Hero 通用 ---- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--nav-h);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: var(--grad-hero-dark);
    z-index: 0;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 198, 251, 0.25) 0%, transparent 60%);
    border-radius: 50%;
}

.hero-bg::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(10, 92, 255, 0.2) 0%, transparent 60%);
    border-radius: 50%;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.25;
    margin-bottom: 24px;
    letter-spacing: -0.03em;
}

.hero-tagline {
    font-size: 1.25rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
    max-width: 560px;
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* ---- 浮动卡片装饰 ---- */
.float-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--r-md);
    padding: 20px 24px;
    color: #fff;
    animation: floatAnim 6s ease-in-out infinite;
}

.float-card .fc-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 4px;
}

.float-card .fc-value {
    font-size: 1.5rem;
    font-weight: 700;
}

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

/* ---- 卡片网格 ---- */
.card-grid {
    display: grid;
    gap: 24px;
}

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

.feature-card {
    background: #fff;
    border: 1px solid var(--c-border-light);
    border-radius: var(--r-lg);
    padding: 40px 32px;
    transition: all 0.35s var(--ease);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--grad-hero);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--ease);
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--r-md);
    background: var(--c-primary-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    font-size: 1.5rem;
    transition: all 0.35s var(--ease);
}

.feature-card:hover .feature-icon {
    background: var(--grad-hero);
    transform: scale(1.05);
}

.feature-card h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--c-text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ---- 统计数据 ---- */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    text-align: center;
}

.stat-item .stat-num {
    font-size: 2.75rem;
    font-weight: 800;
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

.stat-item .stat-label {
    font-size: 0.95rem;
    color: var(--c-text-secondary);
    margin-top: 8px;
}

/* ---- CTA 区域 ---- */
.cta-section {
    position: relative;
    padding: 80px 0;
    background: var(--grad-hero-dark);
    color: #fff;
    text-align: center;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(0, 198, 251, 0.2) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-section h2 {
    font-size: 2.25rem;
    margin-bottom: 16px;
    position: relative;
}

.cta-section p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 36px;
    position: relative;
}

.cta-section .btn {
    position: relative;
}

/* ---- 页脚 ---- */
.footer {
    background: var(--c-bg-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 64px 0 24px;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand .logo {
    color: #fff;
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.8;
    max-width: 320px;
}

.footer-col h4 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 20px;
}

.footer-col li {
    margin-bottom: 12px;
}

.footer-col a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.2s;
}

.footer-col a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
}

/* ---- 页面通用 Hero ---- */
.page-hero {
    position: relative;
    padding: 160px 0 80px;
    background: var(--grad-hero-dark);
    color: #fff;
    text-align: center;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 198, 251, 0.2) 0%, transparent 60%);
    border-radius: 50%;
}

.page-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(10, 92, 255, 0.15) 0%, transparent 60%);
    border-radius: 50%;
}

.page-hero .container {
    position: relative;
    z-index: 2;
}

.page-hero h1 {
    font-size: 3rem;
    margin-bottom: 16px;
}

.page-hero p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.75);
    max-width: 600px;
    margin: 0 auto;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 8px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 24px;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.7);
}

.breadcrumb a:hover {
    color: #fff;
}

/* ---- 动画入场 ---- */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-up:nth-child(1) { transition-delay: 0s; }
.fade-up:nth-child(2) { transition-delay: 0.1s; }
.fade-up:nth-child(3) { transition-delay: 0.2s; }
.fade-up:nth-child(4) { transition-delay: 0.3s; }
.fade-up:nth-child(5) { transition-delay: 0.4s; }
.fade-up:nth-child(6) { transition-delay: 0.5s; }

/* ---- 响应式 ---- */
@media (max-width: 968px) {
    .card-grid-4 { grid-template-columns: repeat(2, 1fr); }
    .card-grid-3 { grid-template-columns: repeat(2, 1fr); }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .footer-top { grid-template-columns: 1fr 1fr; }

    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    /* 平板及手机：隐藏浮动装饰卡片，避免与文字挤在一起 */
    .float-card {
        display: none;
    }
}

@media (max-width: 640px) {
    .card-grid-4,
    .card-grid-3,
    .card-grid-2 {
        grid-template-columns: 1fr;
    }

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

    .footer-top {
        grid-template-columns: 1fr;
    }

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

    .hero-tagline {
        font-size: 1rem;
    }

    .section {
        padding: 64px 0;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .page-hero h1 {
        font-size: 2.25rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
    }
}
