/* =========================
   1. 全局设计变量
   ========================= */
:root {
    --primary: #155EEF;
    --primary-dark: #0B3A91;
    --primary-light: #EAF2FF;
    --secondary: #00A6D6;
    --text-main: #102033;
    --text-sub: #5B677A;
    --text-light: #FFFFFF;
    --bg-main: #F5F8FC;
    --bg-white: #FFFFFF;
    --border: #DDE6F2;
    --shadow-soft: 0 16px 40px rgba(21, 94, 239, 0.12);
    --shadow-card: 0 10px 28px rgba(16, 32, 51, 0.08);
    --radius-lg: 24px;
    --radius-md: 16px;
    --header-height: 72px;
    --container-width: 1200px;
}

/* =========================
   2. 基础重置
   ========================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
    color: var(--text-main);
    background: var(--bg-main);
    line-height: 1.6;
}

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

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

.container {
    width: min(100% - 40px, var(--container-width));
    margin: 0 auto;
}

/* =========================
   3. 页眉 Header
   ========================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(221, 230, 242, 0.8);
}

.header-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

/* =========================
   Header Logo Area
   ========================= */
.logo-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    min-width: 0;
}

.logo-image-box {
    width: 138px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-shrink: 0;
}

.logo-image {
    display: block;
    width: 100%;
    height: auto;
    max-height: 42px;
    object-fit: contain;
}

.logo-divider {
    width: 1px;
    height: 30px;
    background: linear-gradient(
            to bottom,
            transparent,
            rgba(21, 94, 239, 0.28),
            transparent
    );
    flex-shrink: 0;
}

.logo-text {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.logo-text strong {
    display: block;
    font-size: 17px;
    line-height: 1.1;
    color: var(--text-main);
    font-weight: 800;
    white-space: nowrap;
}

.logo-text span {
    display: block;
    font-size: 12px;
    color: var(--text-sub);
    white-space: nowrap;
}

.logo-text strong {
    display: block;
    font-size: 18px;
    line-height: 1.1;
    color: var(--text-main);
}

.logo-text span {
    display: block;
    font-size: 12px;
    color: var(--text-sub);
    margin-top: 2px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
    font-size: 15px;
    color: var(--text-main);
}

.nav-menu a {
    position: relative;
    padding: 24px 0;
    white-space: nowrap;
}

.nav-menu a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 18px;
    width: 0;
    height: 3px;
    border-radius: 999px;
    background: var(--primary);
    transition: width 0.25s ease;
}

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

.nav-menu a:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.header-label {
    font-size: 14px;
    color: var(--text-sub);
    white-space: nowrap;
}

.header-cta {
    height: 42px;
    padding: 0 20px;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 10px 24px rgba(21, 94, 239, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(21, 94, 239, 0.32);
}

.mobile-menu-btn {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    color: var(--text-main);
    font-size: 22px;
    cursor: pointer;
}

/* =========================
   首页首屏 Hero：背景图片版
   ========================= */
.hero {
    position: relative;
    min-height: calc(100vh - var(--header-height));
    padding: 88px 0 76px;
    overflow: hidden;
    background-image: linear-gradient(
            90deg,
            rgba(247, 250, 255, 0.98) 0%,
            rgba(247, 250, 255, 0.90) 34%,
            rgba(247, 250, 255, 0.48) 58%,
            rgba(247, 250, 255, 0.08) 100%
    ),
    url("../images/index-hero.png");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 18% 16%, rgba(21, 94, 239, 0.14), transparent 34%),
    radial-gradient(circle at 34% 78%, rgba(0, 166, 214, 0.10), transparent 38%);
    pointer-events: none;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(21, 94, 239, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 94, 239, 0.045) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.50) 0%,
            rgba(0, 0, 0, 0.24) 44%,
            transparent 76%
    );
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 1;
    min-height: 620px;
    display: grid;
    grid-template-columns: 0.92fr 0.98fr;
    align-content: center;
    gap: 40px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid rgba(21, 94, 239, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--primary-dark);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 22px;
    box-shadow: 0 8px 20px rgba(21, 94, 239, 0.08);
}

.hero-title {
    font-size: clamp(40px, 4.8vw, 64px);
    line-height: 1.08;
    letter-spacing: -1.6px;
    margin-bottom: 24px;
    color: #081A33;
}

.hero-title span {
    color: var(--primary);
}

.hero-desc {
    max-width: 650px;
    font-size: 18px;
    color: var(--text-sub);
    margin-bottom: 34px;
}

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

.btn {
    height: 52px;
    padding: 0 26px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    box-shadow: 0 16px 34px rgba(21, 94, 239, 0.28);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--border);
    color: var(--primary-dark);
}

.btn:hover {
    transform: translateY(-3px);
}

.hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-points span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(221, 230, 242, 0.85);
    color: var(--text-sub);
    font-size: 14px;
}

.hero-points span::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--secondary);
}

/* =========================
   5. 右侧主视觉 Dashboard
   ========================= */
.hero-visual {
    position: relative;
    min-height: 520px;
}

.dashboard-card {
    position: relative;
    width: 100%;
    min-height: 460px;
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(221, 230, 242, 0.88);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(16px);
    padding: 26px;
    overflow: hidden;
}

.dashboard-card::before {
    content: "";
    position: absolute;
    inset: auto -80px -120px auto;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: rgba(21, 94, 239, 0.12);
}

.dashboard-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
}

.window-dots {
    display: flex;
    gap: 8px;
}

.window-dots i {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #B6C5DC;
}

.dashboard-label {
    font-size: 13px;
    color: var(--text-sub);
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 18px;
}

.metric-card {
    padding: 18px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: 0 8px 22px rgba(16, 32, 51, 0.06);
}

.metric-card small {
    color: var(--text-sub);
    font-size: 13px;
}

.metric-card strong {
    display: block;
    margin-top: 6px;
    font-size: 24px;
    color: var(--primary-dark);
}

.flow-panel {
    padding: 20px;
    border-radius: 22px;
    background: linear-gradient(135deg, #0B3A91, #155EEF);
    color: #fff;
    margin-bottom: 18px;
}

.flow-panel h3 {
    font-size: 18px;
    margin-bottom: 16px;
}

.flow-list {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

.flow-item {
    position: relative;
    padding: 12px 8px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.14);
    text-align: center;
    font-size: 13px;
}

.product-chip-wrap {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.product-chip {
    padding: 14px 10px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid var(--border);
    text-align: center;
    font-weight: 700;
    color: var(--primary-dark);
    box-shadow: 0 8px 18px rgba(16, 32, 51, 0.05);
}

.floating-card {
    position: absolute;
    right: -22px;
    bottom: 42px;
    width: 210px;
    padding: 18px;
    border-radius: 22px;
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-card);
}

.floating-card strong {
    display: block;
    font-size: 28px;
    color: var(--primary);
    line-height: 1.1;
}

.floating-card span {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: var(--text-sub);
}

/* =========================
   6. 通用区块 Section
   ========================= */
.section {
    padding: 88px 0;
    background: var(--bg-white);
}

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

.section-head {
    max-width: 760px;
    margin-bottom: 38px;
}

.section-eyebrow {
    color: var(--primary);
    font-weight: 800;
    margin-bottom: 10px;
}

.section-title {
    font-size: clamp(30px, 3vw, 42px);
    line-height: 1.2;
    margin-bottom: 14px;
}

.section-desc {
    color: var(--text-sub);
    font-size: 17px;
}

/* =========================
   7. 产品卡片
   ========================= */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.product-card {
    min-height: 260px;
    padding: 26px;
    border-radius: var(--radius-lg);
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-card);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: rgba(21, 94, 239, 0.35);
    box-shadow: 0 18px 42px rgba(16, 32, 51, 0.12);
}

.product-icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 900;
    margin-bottom: 20px;
}

.product-card h3 {
    font-size: 21px;
    margin-bottom: 10px;
}

.product-card p {
    color: var(--text-sub);
    font-size: 15px;
    margin-bottom: 18px;
}

.product-card a {
    color: var(--primary);
    font-weight: 800;
    font-size: 15px;
}

/* =========================
   8. 解决方案卡片
   ========================= */
.solution-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.solution-card {
    padding: 30px;
    border-radius: var(--radius-lg);
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-card);
}

.solution-card h3 {
    font-size: 22px;
    margin-bottom: 12px;
    color: var(--primary-dark);
}

.solution-card p {
    color: var(--text-sub);
    font-size: 15px;
}

/* =========================
   9. 联系区
   ========================= */
.contact-section {
    padding: 70px 0;
    background: linear-gradient(135deg, #0B3A91, #155EEF);
    color: #fff;
}

.contact-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.contact-inner h2 {
    font-size: clamp(28px, 3vw, 40px);
    margin-bottom: 8px;
}

.contact-inner p {
    color: rgba(255, 255, 255, 0.82);
}

.contact-section .btn-primary {
    background: #fff;
    color: var(--primary-dark);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.16);
}

/* =========================
   10. 页脚 Footer
   ========================= */
.site-footer {
    padding: 34px 0;
    background: #071B36;
    color: rgba(255, 255, 255, 0.82);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.footer-inner strong {
    display: block;
    color: #fff;
    font-size: 18px;
    margin-bottom: 6px;
}

.footer-inner p {
    font-size: 14px;
}

/* =========================
   11. 响应式适配
   ========================= */
@media (max-width: 1080px) {
    .nav-menu,
    .header-label {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .hero-visual {
        min-height: auto;
    }

    .floating-card {
        right: 20px;
    }

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

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

@media (max-width: 720px) {
    :root {
        --header-height: 64px;
    }

    .container {
        width: min(100% - 28px, var(--container-width));
    }

    .site-header {
        height: var(--header-height);
    }

    .logo-text span {
        display: none;
    }

    .header-cta {
        display: none;
    }

    .hero {
        padding: 48px 0 44px;
    }

    .hero-title {
        letter-spacing: -0.8px;
    }

    .hero-desc {
        font-size: 16px;
    }

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

    .btn {
        width: 100%;
    }

    .dashboard-card {
        min-height: auto;
        padding: 20px;
        border-radius: 24px;
    }

    .metric-grid,
    .product-grid {
        grid-template-columns: 1fr;
    }

    .flow-list,
    .product-chip-wrap {
        grid-template-columns: repeat(2, 1fr);
    }

    .floating-card {
        position: static;
        width: 100%;
        margin-top: 16px;
    }

    .section {
        padding: 64px 0;
    }

    .contact-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .logo-image-box {
        width: 118px;
        height: 36px;
    }

    .logo-image {
        max-height: 36px;
    }

    .logo-divider,
    .logo-text span {
        display: none;
    }

    .logo-text strong {
        font-size: 16px;
    }
}

/* =========================
   移动端菜单
   ========================= */
.mobile-menu-mask {
    position: fixed;
    inset: 0;
    z-index: 998;
    background: rgba(8, 26, 51, 0.42);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.mobile-menu-mask.is-open {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-panel {
    position: fixed;
    top: calc(var(--header-height, 76px) + 14px);
    right: 18px;
    z-index: 999;
    width: min(320px, calc(100vw - 36px));
    padding: 14px;
    border-radius: 24px;
    background: radial-gradient(circle at 12% 18%, rgba(21, 94, 239, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 255, 0.96));
    border: 1px solid rgba(221, 230, 242, 0.94);
    box-shadow: 0 24px 60px rgba(8, 26, 51, 0.18);
    transform: translateY(-12px) scale(0.98);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s ease;
}

.mobile-menu-panel.is-open {
    transform: translateY(0) scale(1);
    opacity: 1;
    visibility: visible;
}

.mobile-menu-panel a {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    padding: 0 14px;
    border-radius: 16px;
    color: var(--primary-dark, #0B3A91);
    font-size: 15px;
    font-weight: 800;
    text-decoration: none;
    transition: background 0.22s ease, transform 0.22s ease, color 0.22s ease;
}

.mobile-menu-panel a:hover {
    background: rgba(21, 94, 239, 0.08);
    color: var(--primary, #155EEF);
    transform: translateX(4px);
}

.mobile-menu-panel a span {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(135deg, #155EEF, #00A6D6);
    color: #fff;
    font-size: 12px;
    font-weight: 900;
}

body.menu-open {
    overflow: hidden;
}

.mobile-menu-btn.is-open {
    color: var(--primary, #155EEF);
}

/* =========================
   首页首屏 Hero - 移动端背景图防重叠优化
   只影响移动端，不影响网页端
   ========================= */
@media (max-width: 720px) {
    .hero {
        min-height: auto;
        padding: 42px 0 320px;
        background-image: linear-gradient(
                180deg,
                rgba(247, 250, 255, 0.99) 0%,
                rgba(247, 250, 255, 0.98) 42%,
                rgba(247, 250, 255, 0.86) 62%,
                rgba(247, 250, 255, 0.28) 100%
        ),
        url("../images/index-hero.png");
        background-size: 100% 100%,
        145% auto;
        background-position: center center,
        center bottom;
        background-repeat: no-repeat;
    }

    .hero-inner {
        min-height: auto;
        display: block;
    }

    .hero-content {
        position: relative;
        z-index: 2;
        max-width: 100%;
    }

    .hero::before {
        background: radial-gradient(circle at 18% 12%, rgba(21, 94, 239, 0.12), transparent 34%),
        radial-gradient(circle at 78% 88%, rgba(0, 166, 214, 0.10), transparent 36%);
    }

    .hero::after {
        mask-image: linear-gradient(
                180deg,
                rgba(0, 0, 0, 0.36) 0%,
                rgba(0, 0, 0, 0.16) 46%,
                transparent 78%
        );
    }
}