/* ============================================================
   base.css — 全站公共层
   设计令牌 / reset / 光晕 / 头部 / 抽屉 / 按钮 / Section / 页脚 / 二维码弹窗
   命名：BEM（block / block__element / block--modifier），状态用 is-/无前缀状态类
   约定：组件样式避免结构性父子选择器，仅交互态（:hover/[open]）使用后代
   ============================================================ */
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@100..900&family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap");

@property --border-angle {
    syntax: "<angle>";
    inherits: false;
    initial-value: 0deg;
}

/* ---------- 设计令牌 ---------- */
:root {
    /* 品牌色 */
    --blue: #2251ff;
    --blue-deep: #1b28d6;
    --blue-bright: #6ea2ff;
    --green: #00ea94;
    --green-bright: #2bf0a8;
    --green-text: #53ffab;

    /* 背景与中性 */
    --bg: #0a0623;
    --white: #fff;

    /* 文本层级 */
    --text-strong: #f8fafc;
    --text-sub: #b9c0cc;
    --text-gray: #8b949e;
    --text-slate: #94a3b8;
    --text-dim: #64748b;

    /* 玻璃拟态 / 卡片 */
    --glass-bg: rgba(30, 41, 59, 0.4);
    --glass-border: rgba(255, 255, 255, 0.05);
    --glass-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    --card-border: rgba(120, 150, 210, 0.22);

    /* 布局 */
    --container: 1440px;

    /* 字体（全站统一 Noto Sans SC，品牌字 Ubuntu） */
    --font-cn: "Noto Sans SC", "Source Han Sans SC", sans-serif;
    --font-en: "Noto Sans SC", "Source Han Sans SC", sans-serif;
    --font-poppins: "Noto Sans SC", "Source Han Sans SC", sans-serif;
    --font-brand: "Ubuntu", "Source Han Sans SC", sans-serif;
}

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

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
    background: var(--bg);
    color: var(--white);
    font-family: var(--font-cn);
    overflow-x: clip;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

img, svg { display: block; }
a { text-decoration: none; color: inherit; }

/* 文本渐变工具类 */
.text-grad {
    background-image: linear-gradient(125deg, #309fff 40%, #34bcff 105%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ---------- 页面级光晕（允许 absolute） ---------- */
.glows {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: clip;
}
/* 纯 CSS 还原 Figma 椭圆光晕（#3D60EC + 150px 高斯模糊），随容器等比缩放 */
.glow {
    position: absolute;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    animation: glow-breathe 5s ease-in-out infinite;
    will-change: transform, opacity;
}
/* 椭圆 619×558，模糊后 1219×1158，整体不透明度 0.6（原 glow-right.svg） */
.glow--lg {
    background-image: radial-gradient(50% 50% at 50% 50%,
    rgba(61, 96, 236, 0.59) 0%,
    rgba(61, 96, 236, 0.56) 15%,
    rgba(61, 96, 236, 0.48) 30%,
    rgba(61, 96, 236, 0.40) 40%,
    rgba(61, 96, 236, 0.30) 51%,
    rgba(61, 96, 236, 0.19) 62%,
    rgba(61, 96, 236, 0.10) 75%,
    rgba(61, 96, 236, 0.05) 85%,
    rgba(61, 96, 236, 0.02) 95%,
    rgba(61, 96, 236, 0) 100%);
}
/* 椭圆 394×355，模糊后 994×955，整体不透明度 0.6（原 glow-small.svg） */
.glow--sm {
    background-image: radial-gradient(50% 50% at 50% 50%,
    rgba(61, 96, 236, 0.54) 0%,
    rgba(61, 96, 236, 0.48) 15%,
    rgba(61, 96, 236, 0.38) 30%,
    rgba(61, 96, 236, 0.30) 40%,
    rgba(61, 96, 236, 0.22) 50%,
    rgba(61, 96, 236, 0.12) 65%,
    rgba(61, 96, 236, 0.05) 80%,
    rgba(61, 96, 236, 0.03) 90%,
    rgba(61, 96, 236, 0) 100%);
}
/* 椭圆 586×528，模糊后 1186×1128，整体不透明度 0.3（原 glow-blue.svg） */
.glow--dim {
    background-image: radial-gradient(50% 50% at 50% 50%,
    rgba(61, 96, 236, 0.29) 0%,
    rgba(61, 96, 236, 0.27) 15%,
    rgba(61, 96, 236, 0.23) 30%,
    rgba(61, 96, 236, 0.19) 40%,
    rgba(61, 96, 236, 0.15) 49%,
    rgba(61, 96, 236, 0.09) 62%,
    rgba(61, 96, 236, 0.05) 75%,
    rgba(61, 96, 236, 0.02) 87%,
    rgba(61, 96, 236, 0) 100%);
}
.glow--hero-right     { left: calc(50% - 720px + 938px); top: -21px;  width: 1219px; aspect-ratio: 1219 / 1158; animation-duration: 5s; }
.glow--problems-left  { left: calc(50% - 720px - 493px); top: 1098px; width: 993px;  aspect-ratio: 994 / 955;   animation-duration: 5s; animation-delay: -3s; }
.glow--services-right { left: calc(50% - 720px + 907px); top: 1610px; width: 993px;  aspect-ratio: 994 / 955;   animation-duration: 5s; animation-delay: -6s; }
.glow--services-left  { left: calc(50% - 720px - 582px); top: 2492px; width: 1186px; aspect-ratio: 1186 / 1128; animation-duration: 5s; animation-delay: -2s; }
.glow--why-left       { left: calc(50% - 720px - 531px); top: 3250px; width: 1186px; aspect-ratio: 1186 / 1128; animation-duration: 5s; animation-delay: -5s; }

/* 呼吸动效：缩放 + 透明度缓慢起伏 */
@keyframes glow-breathe {
    0%, 100% { transform: scale(0.85); opacity: 0.6; }
    50%      { transform: scale(1.15); opacity: 1; }
}
@keyframes glow-breathe-1 {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.7; }
}
@keyframes border-orbit {
    to { --border-angle: 360deg; }
}

main, .site-footer, .site-header { position: relative; z-index: 1; }

/* ---------- 头部 ---------- */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 60px;
    background: var(--bg);
    box-shadow: 0 1px 0 rgba(166, 162, 162, 0.25);
    z-index: 100;
    transition: box-shadow .4s ease, background .4s ease;
}
.site-header.scrolled {
    background: rgba(10, 6, 35, 0.82);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(166, 162, 162, 0.25), 0 12px 32px rgba(0, 0, 0, 0.35);
}
.site-header__inner {
    max-width: var(--container);
    margin: 0 auto;
    height: 60px;
    display: flex;
    align-items: center;
    padding: 0 80px 0 73px;
}
.site-header__cta {
    margin-left: auto;
    width: 122px; height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--blue-deep);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    color: var(--white);
    filter: drop-shadow(0 18px 20px rgba(22, 86, 245, 0.28));
    transition: background .3s ease, transform .3s ease, filter .3s ease;
}
.site-header__cta:hover { background: #2a3bff; filter: drop-shadow(0 18px 26px rgba(22, 86, 245, 0.45)); }

/* 品牌标识 */
.brand { display: flex; align-items: center; }
.brand__mark { width: 35.2px; height: 35.2px; margin-right: 13px; }
.brand__name { font-family: var(--font-brand); font-weight: 700; font-size: 26.2px; line-height: 42.9px; color: var(--white); }
.brand__suffix { font-family: var(--font-brand); font-weight: 300; font-size: 24.75px; line-height: 42.9px; color: var(--white); }
.brand--sm .brand__mark { width: 26px; height: 26px; margin-right: 8px; }
.brand--sm .brand__name { font-size: 19px; line-height: 28px; }
.brand--sm .brand__suffix { font-size: 18px; line-height: 28px; }

/* 主导航 */
.main-nav {
    display: flex;
    gap: 34px;
    margin-left: auto;
    height: 60px;
}
.main-nav__link {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 60px;
    min-width: 60px;
    font-size: 14px;
    font-weight: 500;
    color: var(--white);
    transition: color .3s ease;
}
.main-nav__label { margin-top: 18px; line-height: 24px; }
.main-nav__link:hover .main-nav__label { color: var(--blue-bright); }
.main-nav__link--active .main-nav__label {
    background: linear-gradient(48deg, #2a4ec6 25%, #007bff 83%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.main-nav__underline {
    width: 47px; height: 3px;
    margin-top: auto;
    opacity: 0;
    transform: scaleX(0);
    transition: opacity .35s ease, transform .35s ease;
}
.main-nav__link--active .main-nav__underline,
.main-nav__link:hover .main-nav__underline { opacity: 1; transform: scaleX(1); }

/* ---------- 移动端汉堡按钮（仅 ≤768px 显示） ---------- */
.menu-btn {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 40px; height: 40px;
    margin-left: auto;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    cursor: pointer;
    transition: background .3s ease;
}
.menu-btn:active { background: rgba(255, 255, 255, 0.14); }
.menu-btn__bar {
    width: 18px; height: 2px;
    border-radius: 2px;
    background: var(--white);
}

/* ---------- 移动端抽屉导航（dialog） ---------- */
.drawer {
    margin: 0 0 0 auto;
    padding: 0;
    border: none;
    outline: none;
    width: min(81vw, 320px);
    height: 100dvh;
    max-height: 100dvh;
    background: linear-gradient(200deg, #100b38 0%, #070420 100%);
    color: var(--white);
    box-shadow: -24px 0 60px rgba(0, 0, 0, 0.5);
    transform: translateX(100%);
    transition: transform .38s cubic-bezier(.22, .68, 0, 1);
}
.drawer[open] { transform: translateX(0); }
.drawer.closing { transform: translateX(100%); }
.drawer::backdrop {
    background: rgba(4, 2, 16, 0.55);
    backdrop-filter: blur(3px);
    transition: opacity .38s ease;
}
.drawer.closing::backdrop { opacity: 0; }
@starting-style {
    .drawer[open] { transform: translateX(100%); }
    .drawer[open]::backdrop { opacity: 0; }
}
.drawer__inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 16px 22px calc(24px + env(safe-area-inset-bottom));
}
.drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.drawer__close {
    width: 36px; height: 36px;
    background: none;
    border: none;
    color: #cfd6e6;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    transition: color .3s ease, transform .3s ease;
}
.drawer__close:active { color: var(--white); transform: rotate(90deg); }
.drawer__nav { display: flex; flex-direction: column; margin-top: 6px; }
.drawer__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 2px;
    font-size: 16px;
    font-weight: 500;
    color: #e7ebf5;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    transition: color .3s ease, padding-left .3s ease;
}
.drawer__link::after { content: "›"; color: #5d6580; font-size: 18px; }
.drawer__link:active { color: var(--blue-bright); padding-left: 8px; }
.drawer__link--active { color: #4d8bff; }
.drawer__link--active::after { color: #4d8bff; }
.drawer__cta { margin-top: auto; width: 100%; max-width: none; flex: 0 0 auto; height: 50px; }

/* ---------- 按钮 ---------- */
.btn {
    width: 173px; height: 53px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    font-size: 16px;
    font-weight: 500;
    position: relative;
    transition: transform .35s cubic-bezier(.22,.68,0,1.2), box-shadow .35s ease, filter .35s ease;
}
.btn__icon { width: 17px; height: 13px; transition: transform .35s ease; }
.btn:hover .btn__icon { transform: translateX(5px); }
.btn--primary {
    color: var(--white);
    border: 1px solid #517efa;
    background-image: linear-gradient(15deg, #2a4ec6 49%, #1f47d8 8%, #0059ff 80%);
    box-shadow: inset 0 18px 40px rgba(51, 90, 255, 0.28);
}
.btn--primary:hover {
    box-shadow: inset 0 18px 40px rgba(51, 90, 255, 0.45), 0 14px 36px rgba(22, 86, 245, 0.4);
}
.btn--ghost {
    border: 1px solid #0c87e4;
    box-shadow: 0 18px 40px rgba(22, 86, 245, 0.28);
    background: transparent;
}
.btn--ghost:hover { box-shadow: 0 18px 48px rgba(22, 86, 245, 0.5); background: rgba(12, 135, 228, 0.08); }

/* ---------- Hero（容器，各页填充不同内容） ---------- */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 162px;
}
.hero__title {
    margin-top: 25px;
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 72.16px;
    font-weight: 700;
    line-height: 85.28px;
    letter-spacing: 0.32px;
    color: var(--white);
    text-align: center;
}
.hero__actions {
    margin-top: 28px;
    display: flex;
    gap: 17px;
}

/* ---------- 通用 Section ---------- */
.section { max-width: var(--container); margin: 0 auto; padding: 0 112px; }
.section-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.section-head__mark { width: 51px; height: 48px; margin-bottom: 24px; }
.section-head__title {
    font-size: 48px;
    font-weight: 700;
    line-height: 48px;
    letter-spacing: -1.2px;
    color: var(--text-strong);
}
.section-head__sub { margin-top: 12px; font-size: 18px; line-height: 28px; color: var(--text-gray); }
.section-pill {
    margin-top: 22px;
    width: 80px; height: 6px;
    border-radius: 9999px;
    background: var(--blue);
    transform-origin: center;
}

/* ---------- 页脚 ---------- */
.site-footer {
    position: relative;
    min-height: 791px;
    overflow: clip;
}
/* 背景渐变与世界地图：装饰（允许 absolute） */
.site-footer__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: scaleX(-1);
    pointer-events: none;
}
.site-footer__map {
    position: absolute;
    left: 3.1%;
    right: 3.1%;
    bottom: 0;
    width: 93.8%;
    mix-blend-mode: luminosity;
    opacity: 0.5;
    pointer-events: none;
    object-fit: cover;
    object-position: bottom;
    height: 276px;
}
.site-footer__inner {
    position: relative;
    max-width: var(--container);
    margin: 0 auto;
    padding: 142px 100px 0;
    display: flex;
    flex-direction: column;
}
.footer-logo { display: flex; align-items: center; gap: 28px; height: 64px; }
.footer-logo__bird { width: 62.7px; height: 64px; display: flex; flex-direction: column; }
.footer-logo__bird-fill-1 { width: 62.7px; height: 50.4px; }
.footer-logo__bird-fill-3 { width: 39.8px; height: 28.3px; margin: -14.8px 0 0 11.5px; }
.footer-logo__wordmark { width: 161px; height: 46px; }
.footer-divider {
    margin-top: 58px;
    border: none;
    height: 1px;
    background: rgba(152, 152, 152, 0.5);
}
.footer-columns {
    margin-top: 56px;
    display: grid;
    grid-template-columns: minmax(280px, 1fr) auto;
    align-items: start;
    font-family: var(--font-poppins);
    gap: 100px;
}
.footer-contact__line { font-size: 16px; line-height: 22.4px; color: var(--white); }
.footer-contact__line + .footer-contact__line { margin-top: 14px; }
.footer-social { margin-top: 28px; display: flex; gap: 16px; }
.footer-social__item {
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    transition: transform .3s ease, opacity .3s ease;
}
.footer-social__item:hover { transform: translateY(-4px); opacity: 0.85; }
.footer-social__icon { width: 40px; height: 40px; }
.footer-nav { justify-self: end; }
.footer-nav__list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 16px 28px;
}
.footer-nav__link {
    display: block;
    font-size: 14px;
    line-height: 20px;
    color: var(--white);
    white-space: nowrap;
    transition: color .3s ease, transform .3s ease;
}
.footer-nav__link:hover { color: var(--blue-bright); transform: translateY(-4px); }
.footer-copy {
    margin: 96px auto 0;
    padding-bottom: 26px;
    font-size: 14px;
    line-height: 19.6px;
    opacity: 0.6;
    color: var(--white);
    font-family: var(--font-cn);
}

/* ---------- 微信二维码弹窗（dialog） ---------- */
.qr-modal {
    margin: auto;
    padding: 0;
    border: 1px solid var(--card-border);
    border-radius: 12px;
    background: var(--white);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
    /* 关闭态 = 退出过渡终点；overlay/display 用 allow-discrete 延迟到过渡结束才隐藏 */
    opacity: 0;
    transform: scale(0.92);
    transition: opacity .3s ease, transform .3s ease,
        overlay .3s ease allow-discrete,
        display .3s ease allow-discrete;
}
.qr-modal[open] { opacity: 1; transform: scale(1); }
@starting-style {
    .qr-modal[open] { opacity: 0; transform: scale(0.92); }
}
.qr-modal::backdrop {
    background: rgba(3, 7, 29, 0);
    backdrop-filter: blur(0px);
    transition: background .3s ease, backdrop-filter .3s ease,
        overlay .3s ease allow-discrete,
        display .3s ease allow-discrete;
}
.qr-modal[open]::backdrop {
    background: rgba(3, 7, 29, 0.7);
    backdrop-filter: blur(4px);
}
@starting-style {
    .qr-modal[open]::backdrop { background: rgba(3, 7, 29, 0); backdrop-filter: blur(0px); }
}
.qr-modal__inner {
    position: relative;
    padding: 16px 12px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 320px;
    aspect-ratio: 1;
}
.qr-modal__close {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-sub);
    font-size: 14px;
    cursor: pointer;
    transition: background .3s ease, color .3s ease;
}
.qr-modal__close:hover { background: rgba(255, 255, 255, 0.16); color: var(--white); }
.qr-modal__img { width: 100%; aspect-ratio: 1; border-radius: 0; }
.qr-modal__tip { font-size: 14px; line-height: 1; color: #8294b8; }

/* ---------- 动效初始态（JS 控制，noscript 安全） ---------- */
.js [data-reveal],
.js [data-stagger] > * { opacity: 0; }
.js .section-pill { transform: scaleX(0); }

/* ---------- 响应式：公共组件降级 ---------- */
@media (max-width: 1280px) {
    .main-nav { margin-left: 60px; gap: 14px; }
    .site-header__inner { padding: 0 32px; }
    .section { padding-left: 48px; padding-right: 48px; }
    .footer-columns { grid-template-columns: 1fr 1fr; gap: 48px; }
    .site-footer__inner { padding: 120px 48px 0; }
}
@media (max-width: 1024px) {
    .hero__title { font-size: 52px; line-height: 64px; }
}

@media (prefers-reduced-motion: reduce) {
    .glow { animation: none; }
}

/* ============================================================
   移动端（≤768px）：公共组件
   ============================================================ */
@media (max-width: 768px) {
    /* 光晕：按页面百分比定位 */
    .glow--hero-right     { left: auto; right: -60vw; top: -30px; width: 150vw; }
    .glow--problems-left  { left: -70vw; top: 16%; width: 150vw; }
    .glow--services-right { left: auto; right: -70vw; top: 36%; width: 150vw; }
    .glow--services-left  { left: -75vw; top: 54%; width: 160vw; }
    .glow--why-left       { left: -70vw; top: 72%; width: 160vw; }

    /* 头部：logo + 汉堡 */
    .site-header__inner { padding: 0 16px; }
    .main-nav { display: none; }
    .site-header__cta { display: none; }
    .menu-btn { display: flex; }

    /* Hero 容器 */
    .hero { padding-top: 118px; overflow-x: clip; }
    .hero__title {
        margin-top: 20px;
        padding: 0 16px;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0 12px;
        font-size: clamp(30px, 9vw, 40px);
        line-height: 1.4;
        letter-spacing: 0;
    }
    .hero__actions {
        margin-top: 22px;
        width: 100%;
        padding: 0 24px;
        justify-content: center;
        gap: 12px;
    }
    .btn { width: auto; flex: 1 1 0; max-width: 173px; height: 48px; font-size: 15px; }
    .drawer__cta { flex: 0 0 auto; width: 100%; max-width: none; height: 50px; }

    /* 通用 Section */
    .section { padding-left: 16px; padding-right: 16px; }
    .section-head__mark { width: 40px; height: 38px; margin-bottom: 16px; }
    .section-head__title { font-size: 30px; line-height: 38px; letter-spacing: -0.5px; }
    .section-head__sub { margin-top: 10px; padding: 0 12px; font-size: 15px; line-height: 24px; }
    .section-pill { margin-top: 16px; width: 64px; height: 5px; }

    /* 页脚 */
    .site-footer { min-height: auto; }
    .site-footer__inner { padding: 72px 20px 0; }
    .footer-logo { gap: 18px; height: auto; }
    .footer-logo__bird { width: 46px; height: 47px; }
    .footer-logo__bird-fill-1 { width: 46px; height: 37px; }
    .footer-logo__bird-fill-3 { width: 29px; height: 21px; margin: -11px 0 0 8.5px; }
    .footer-logo__wordmark { width: 118px; height: 34px; }
    .footer-divider { margin-top: 30px; }
    .footer-columns { margin-top: 32px; grid-template-columns: 1fr; gap: 32px; }
    .footer-nav { justify-self: start; }
    .footer-nav__list { justify-content: flex-start; gap: 12px 22px; }
    .footer-social { margin-top: 22px; }
    .site-footer__map { height: 180px; }
    .footer-copy { margin-top: 56px; padding-bottom: 20px; font-size: 12px; text-align: center; }
}
