/* =========================================================
   About · SaaS UX 公司介绍页
   - 保留原有样式
   - 升级动画效果
   - 修复 Vue 渲染前空白 / 页面抖动
========================================================= */

/* =========================================================
   修复 Vue 渲染前空白问题
   1. 保证 .reveal 元素默认显示
   2. 不破坏原有动画
========================================================= */
.reveal {
    opacity: 1;
    /* Vue 渲染后立即可见 */
    transform: none;
    /* 不影响布局显示 */
}
 
/* =========================================================
   About · 公司概览
========================================================= */
.about-overview {
    max-width: 900px;
    margin: 0 auto 120px;
    padding: 120px 24px 0;
    text-align: center;
}

/* =========================================================
   文字防抖（关键）
========================================================= */
.text-stable {
    will-change: opacity, transform;
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ================= Overview Title（公司概览主标题） ================= */
.overview-title {
    font-size: 42px;
    font-weight: 800;
    letter-spacing: -0.02em;

    background: linear-gradient(90deg,
            #2e1065 0%,
            #33206f 50%,
            #3b1a80 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 4px rgba(122, 108, 255, 0.25);

    /* ❌ 去掉 scale，只保留位移动画 */
    opacity: 0;
    transform: translateY(32px);
    animation: fadeSlideSoft 1s cubic-bezier(.22, 1, .36, 1) forwards;

    will-change: opacity, transform;
    transform: translateZ(0);
}


/* 光影微交互 */
.overview-title:hover {
    background-position: 15% 50%;
    transition: background-position 1s ease;
}

/* Overview Divider（标题下横线｜不抖稳定版） */
/* .overview-divider {
    width: 180px;
    height: 2px;
    margin: 20px auto 36px;
    border-radius: 2px;
    background: linear-gradient(90deg,
        rgba(122, 108, 255, 0),
        #7A6CFF,
        #9B5CFF,
        rgba(155, 92, 255, 0)); */

/* ✅ 不抖关键：不 scale，只做位移 */
/* opacity: 0;
    transform: translateY(8px);
    animation: dividerFadeUp 0.8s cubic-bezier(.22, 1, .36, 1) forwards;
    animation-delay: 0.3s; */

/* 防抖补强 */
/* will-change: opacity, transform;
} */

/* Overview Divider（从中间左右展开｜不抖版） */
.overview-divider {
    position: relative;
    width: 150px;
    height: 2px;
    margin: 10px auto 36px;
    overflow: hidden;
}

/* 真正动画的线 */
.overview-divider::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    height: 100%;
    width: 0;
    transform: translateX(-50%);
    border-radius: 2px;
    background: linear-gradient(90deg,
            rgba(122, 108, 255, 0),
            #7A6CFF,
            #9B5CFF,
            rgba(155, 92, 255, 0));

    /* animation: dividerExpand 1.1s cubic-bezier(.22, 1, .36, 1) forwards; */
    animation: dividerExpand 0.6s ease-out forwards;

    animation-delay: 0.3s;

    /* 防抖 */
    will-change: width;
}


/* =========================================================
   Overview Description（公司概览文字说明｜不抖四环进入）
========================================================= */
.overview-desc {
    font-size: 16px;
    line-height: 2;
    max-width: 760px;
    margin: 0 auto;

    color: #6b6484;
    text-shadow: 0 0 2px rgba(122, 108, 255, 0.15);

    /* ✅ 四环进入：只透明度 + 位移 */
    opacity: 0;
    transform: translateY(24px);

    animation: fadeSlideSoft 0.9s ease forwards;
    animation-delay: 0.45s;

    /* 🔒 防抖补强 */
    will-change: opacity, transform;
    transform: translateZ(0);
}


/* =========================================================
   Organization Structure · 组织架构整体容器（背景框）
   - 不抖进入
   - 不影响内部卡片动画
========================================================= */
.org-section {
    max-width: 1100px;
    margin: 0 auto 140px;
    padding: 0 24px;
    text-align: center;

    position: relative;
    z-index: 1;

    /* ✅ 背景容器进入动画（克制版） */
    opacity: 0;
    transform: translateY(16px);

    animation: sectionFadeIn 0.9s ease forwards;
    animation-delay: 0.15s;

    will-change: opacity, transform;
}


/* =========================================================
   Org Title（组织架构标题）
========================================================= */
/* =========================================================
   Org Title（组织架构标题｜统一渐变｜不抖动版）
========================================================= */
.org-title {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 46px;

    position: relative;
    /* 作为下方横线的定位基准 */
    display: inline-block;

    /* 🎨 与 Founder 名字、卡片标题完全一致的渐变 */
    background: linear-gradient(90deg,
            #2e1065 0%,
            #33206f 50%,
            #3b1a80 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    /* ✨ 轻微发光（稳定，不影响布局） */
    text-shadow: 0 0 4px rgba(122, 108, 255, 0.25);

    /* ✅ 稳定进入：仅透明度 + 位移（无缩放） */
    opacity: 0;
    transform: translateY(24px);
    animation: fadeSlideSoft 0.9s cubic-bezier(.22, 1, .36, 1) forwards;

    /* 🔒 防抖 */
    will-change: opacity, transform;
}


/* =========================================================
   Org Title 下横线（单线｜左右展开｜不抖）
========================================================= */
.org-title::after {
    content: "";
    position: absolute;

    /* 📍 横向居中 */
    left: 50%;
    transform: translateX(-50%);

    /* 📍 垂直位置控制（⬇️ 想再往下就调这个） */
    top: 140%;

    /* 📐 初始宽度为 0（动画从这里开始） */
    width: 0;
    height: 2px;
    border-radius: 2px;

    /* 🎨 渐变横线 */
    background: linear-gradient(90deg,
            rgba(122, 108, 255, 0),
            #7A6CFF,
            rgba(155, 92, 255, 0));

    /* 🎬 左右展开动画（不使用 scale，完全不抖） */
    animation: titleLineExpand 0.9s cubic-bezier(.22, 1, .36, 1) forwards;
    animation-delay: 0.25s;

    will-change: width;
}



/* =========================================================
   Founder Card · 创始人
========================================================= */
.org-founder {
    display: flex;
    justify-content: center;
    margin-bottom: 32px;
}

/* =========================================================
   Founder Card（创始人卡片）
   - 进场：淡入 + 上移（不抖）
   - 悬停：阴影增强 + 背景提亮（不位移）
========================================================= */
.org-founder-card {
    position: relative;
    padding: 36px 40px 40px;
    border-radius: 22px;

    /* 🎨 半透明白底 */
    background: rgba(255, 255, 255, 0.22);
    border: none;

    /* 🌫 初始阴影（静态状态） */
    box-shadow: 0 18px 42px rgba(46, 16, 101, 0.14);

    /* 🧱 布局 */
    z-index: 0;

    /* ✅ 进场动画（只用 opacity + translateY） */
    opacity: 0;
    transform: translateY(24px);
    animation: fadeSlideSoft 0.9s ease forwards;

    /* 🔒 防抖核心 */
    will-change: opacity, transform;
    backface-visibility: hidden;
    transform-style: preserve-3d;

    /* 🧠 hover 只过渡视觉属性，不碰 transform */
    transition:
        box-shadow .3s cubic-bezier(.4, 0, .2, 1),
        background .3s cubic-bezier(.4, 0, .2, 1);
}


/* 渐变边框伪元素 */
.org-founder-card::before {
    content: "";
    position: absolute;
    top: -1.5px;
    left: -1.5px;
    right: -1.5px;
    bottom: -1.5px;
    border-radius: 22px;
    background: linear-gradient(90deg, rgba(155, 92, 255, 0.35), rgba(122, 108, 255, 0.35));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    padding: 1.5px;
    pointer-events: none;
    z-index: 1;
}

/* =========================================================
   Founder Card 悬停态（增强层级，不抖）
========================================================= */
.org-founder-card:hover {
    /* 🎨 背景稍微更亮 */
    background: rgba(255, 255, 255, 0.38);

    /* 🌫 阴影更深、更聚焦 */
    box-shadow:
        0 28px 64px rgba(46, 16, 101, 0.22),
        0 8px 18px rgba(46, 16, 101, 0.12);

    /* 🚫 锁定 transform，防止 hover 跳动 */
    transform: translateY(0);
}

/* =========================================================
   创始人姓名（与标题同款渐变｜不抖动版）
========================================================= */
.org-founder-card strong {
    display: block;
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 6px;
    text-align: center;

    /* 🎨 与 Org Title 完全一致的渐变色 */
    background: linear-gradient(90deg,
            #2e1065 0%,
            #33206f 50%,
            #3b1a80 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    /* ✨ 轻微发光（不影响布局，不抖） */
    text-shadow: 0 0 4px rgba(122, 108, 255, 0.25);

    /* ✅ 稳定进场动画：只透明度 + 位移 */
    opacity: 0;
    transform: translateY(16px);
    animation: fadeSlideSoft 0.8s ease forwards;
    animation-delay: 0.15s;

    /* 🔒 防抖补强 */
    will-change: opacity, transform;
}




.org-founder-card strong::after {
    content: "";
    display: block;
    width: 50%;
    height: 1px;
    margin: 6px auto 0;
    border-radius: 1px;
    background: linear-gradient(90deg, rgba(155, 92, 255, 0.1), rgba(122, 108, 255, 0.1));
}

/* 创始人说明文字（不抖版） */
.org-founder-card span {
    display: block;
    font-size: 13.5px;
    line-height: 1.85;
    text-align: center;
    margin-top: 8px;
    color: #6b6484;

    /* ✅ 不抖：慢淡入 */
    opacity: 0;
    transform: translateY(12px);
    animation: fadeSlideSoft 0.8s ease forwards;
    animation-delay: 0.25s;
}



/* =========================================================
   Organization Connector · 组织架构连接线（不抖展开版）
========================================================= */
.org-connector-t {
    width: 78%;
    height: 38px;
    margin: 14px auto 30px;

    position: relative;
    pointer-events: none;

    /* 容器本身不做动画，避免影响子元素 */
}

/* =========================================================
   竖向连接线（从下往上展开，不抖）
========================================================= */
.org-connector-t::before {
    content: "";
    position: absolute;

    bottom: 0;
    /* 🔑 从底部开始画 */
    left: 50%;
    transform: translateX(-50%);

    width: 1.5px;
    height: 0;
    /* 初始高度为 0 */
    border-radius: 1px;

    background: linear-gradient(180deg,
            rgba(122, 108, 255, 0),
            rgba(122, 108, 255, .55),
            rgba(122, 108, 255, .9));

    animation: connectorVerticalGrow 1s ease forwards;
    animation-delay: 0.15s;

    will-change: height;
}

/* =========================================================
   横向连接线（底部）
========================================================= */
.org-connector-t::after {
    content: "";
    position: absolute;

    bottom: 0;
    left: 50%;
    transform: translateX(-50%);

    height: 1.5px;
    width: 0;
    /* 🔑 初始宽度为 0 */
    border-radius: 1px;

    background: linear-gradient(90deg,
            rgba(122, 108, 255, 0),
            rgba(122, 108, 255, .55),
            rgba(122, 108, 255, 0));

    /* 🎬 左右展开（在竖线之后） */
    animation: connectorHorizontalGrow 1s ease forwards;
    animation-delay: 0.55s;

    will-change: width;
}




/* =========================================================
   Department Cards · 部门模块
========================================================= */
.org-departments {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 32px;
}

.org-departments::after {
    content: "";
    display: block;
    width: 70%;
    height: 1px;
    margin: -10px auto 0;
    background: linear-gradient(90deg, rgba(122, 108, 255, 0), rgba(122, 108, 255, .25), rgba(155, 92, 255, .25), rgba(122, 108, 255, 0));
    pointer-events: none;
}

.org-dept-card {
    position: relative;
    width: 200px;
    padding: 26px 24px 28px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .06);

    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;

    /* ✅ 稳定进场：不缩放 */
    opacity: 0;
    transform: translateY(28px);
    animation: cardFadeUp 0.9s ease-out forwards;

    /* 🔒 防抖核心 */
    will-change: transform, opacity;
    backface-visibility: hidden;
    transform-style: preserve-3d;

    transition: transform .25s cubic-bezier(.4, 0, .2, 1),
        box-shadow .25s cubic-bezier(.4, 0, .2, 1);
}



/* 渐变边框 */
.org-dept-card::before {
    content: "";
    position: absolute;
    top: -1.5px;
    left: -1.5px;
    right: -1.5px;
    bottom: -1.5px;
    border-radius: 16px;
    background: linear-gradient(90deg, rgba(155, 92, 255, 0.35), rgba(122, 108, 255, 0.35));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    padding: 1.5px;
    pointer-events: none;
    z-index: 1;
}

/* Hover 光晕 */
/* .org-dept-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow:
        0 18px 36px rgba(123, 79, 201, .14),
        0 0 24px rgba(155, 92, 255, .08);
} */
/* =========================================================
   Dept Card 悬停态（增强层级，不抖）
========================================================= */
.org-dept-card:hover {
    /* 🎨 背景更实一些 */
    background: rgba(255, 255, 255, 0.35);

    /* 🌫 阴影更明显、更立体 */
    box-shadow:
        0 16px 38px rgba(46, 16, 101, 0.18),
        0 4px 12px rgba(46, 16, 101, 0.08);

    /* 🚫 不做位移、不缩放，避免抖动 */
    transform: translateY(0);
}


/* 标题文字渐变 + 微光 */
.org-dept-card strong {
    display: block;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 6px;
    text-align: center;
    position: relative;

    background: linear-gradient(90deg,
            #2e1065 0%,
            #33206f 50%,
            #3b1a80 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 4px rgba(122, 108, 255, 0.25);

    /* 🔒 防抖关键（新增） */
    transform: translateZ(0);
    will-change: opacity, transform;
    backface-visibility: hidden;
}


/* 标题下横线 */
.org-dept-card strong::after {
    content: "";
    display: block;
    width: 50%;
    height: 1px;
    margin: 6px auto 0;
    border-radius: 1px;
    background: linear-gradient(90deg, rgba(155, 92, 255, 0.1), rgba(122, 108, 255, 0.1));
}

/* 内容文字 */
.org-dept-card span {
    display: block;
    font-size: 13px;
    line-height: 1.65;
    text-align: center;
    margin-top: 8px;
    color: #6b6484;
    text-shadow: 0 0 2px rgba(122, 108, 255, 0.15);

    /* 🔒 防抖关键（新增） */
    transform: translateZ(0);
    will-change: opacity, transform;
    backface-visibility: hidden;
}


/* =========================================================
   Crystal Layer · 承载层
========================================================= */
.org-section::after {
    content: "";
    position: absolute;
    inset: -30px 44px -28px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, 0));
    border: 1px solid rgba(122, 108, 255, .08);
    box-shadow: 0 6px 18px rgba(46, 16, 101, .06);
    pointer-events: none;
    z-index: 0;
}

/* =========================================================
   Safe Area
========================================================= */
main {
    padding-bottom: 60px;
}

/* =========================================================
   分层动画 延迟错开，波浪式浮动感
========================================================= */
.org-dept-card:nth-child(1) {
    animation-delay: 0.2s;
}

.org-dept-card:nth-child(2) {
    animation-delay: 0.3s;
}

.org-dept-card:nth-child(3) {
    animation-delay: 0.4s;
}

.org-dept-card:nth-child(4) {
    animation-delay: 0.5s;
}

/* =========================================================
   Responsive
========================================================= */
@media (max-width: 768px) {
    .overview-title {
        font-size: 30px;
    }

    .overview-divider {
        width: 100px;
        /* ⬅️ 移动端长度 */
    }

    .org-title {
        font-size: 18px;
        margin-bottom: 44px;
    }

    .org-departments {
        flex-direction: column;
        align-items: center;
    }

    .org-departments::after {
        width: 88%;
        margin-top: -12px;
    }

    .org-dept-card {
        width: 90%;
    }

    .org-founder-card {
        padding: 26px 22px 28px;
    }

    .org-section::after {
        inset: -26px 14px -24px;
        border-radius: 18px;
    }
}

/* =========================================================
   Keyframe Animations · 高级动画升级版
========================================================= */

/* 弹性浮入动画（淡入 + 上浮 + 弹性缩放 + 微晃动） */
@keyframes fadeSlideElastic {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }

    60% {
        opacity: 1;
        transform: translateY(-6px) scale(1.03);
    }

    80% {
        transform: translateY(3px) scale(0.99);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* 弹性浮入动画（创始人卡片专用，略强弹性） */
@keyframes fadeSlideBounce {
    0% {
        opacity: 0;
        transform: translateY(36px) scale(0.95);
    }

    50% {
        opacity: 1;
        transform: translateY(-10px) scale(1.04);
    }

    70% {
        transform: translateY(6px) scale(0.98);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* 横线弹性拉伸动画 */
@keyframes dividerElastic {
    0% {
        opacity: 0;
        transform: scaleX(0);
    }

    60% {
        opacity: 1;
        transform: scaleX(1.1);
    }

    80% {
        transform: scaleX(0.95);
    }

    100% {
        opacity: 1;
        transform: scaleX(1);
    }
}

/* 分割线：从中间向左右展开（不抖） */
@keyframes dividerExpand {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

/* 新增一个「文字专用动画」（不弹、不缩放） */
@keyframes fadeSlideSoft {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================================
   卡片专用 · 稳定进场动画（无 scale，无反弹）
   只做 位移 + 渐显 → 绝对不抖
========================================================= */
@keyframes cardFadeUp {
    0% {
        opacity: 0;
        transform: translateY(28px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 分割线：稳定淡入上移 */
@keyframes dividerFadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================================
   标题横线：左右展开动画（稳定版）
========================================================= */
@keyframes titleLineExpand {
    from {
        width: 0;
    }

    to {
        width: 72px;
        /* 👈 横线最终长度，想长就改这里 */
    }
}

/* =========================================================
   Section 级别淡入动画（背景专用）
========================================================= */
@keyframes sectionFadeIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================================
   连接线动画 Keyframes
========================================================= */

/* 竖线：高度增长 */
@keyframes connectorVerticalGrow {
    from {
        height: 0;
    }

    to {
        height: 100%;
    }
}

/* 横线：左右展开 */
@keyframes connectorHorizontalGrow {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}



/* =========================================================
   Mobile Text Clarity Patch · 移动端文字清晰度终极修复
   - 不影响 PC
   - 不破坏布局
   - 只在 mobile 生效
========================================================= */
/* @media (max-width: 768px) { */

    /* =========================
       1️⃣ 所有正文：彻底禁止 transform 参与渲染
    ========================= */
    /* .overview-desc,
    .org-founder-card span,
    .org-dept-card span,
    .process-list li,
    .service-right p,
    .service-right li {
        transform: none !important;
        animation: fadeOnly 0.5s ease forwards;
        text-shadow: none;
        will-change: opacity;
        -webkit-font-smoothing: antialiased;
    } */

    /* =========================
       2️⃣ 所有渐变文字标题 → 降级为纯色（关键）
    ========================= */
    /* .overview-title,
    .org-title,
    .org-founder-card strong,
    .org-dept-card strong {
        background: none !important;
        -webkit-text-fill-color: initial !important;
        color: #2e1065 !important;
        text-shadow: none !important;
        transform: none !important;
        animation: fadeOnly 0.5s ease forwards;
    } */

    /* =========================
       3️⃣ 禁止 hover / transition 触发 GPU 抖动
    ========================= */
    /* .org-founder-card,
    .org-dept-card {
        transition: box-shadow .25s ease, background .25s ease;
    } */
/* } */

/* =========================================================
   Mobile 专用动画：只做透明度（最清晰）
========================================================= */
/* @keyframes fadeOnly {
    from { opacity: 0; }
    to   { opacity: 1; }
} */
