/**
 * itam.css — ITAM 产品详情页专属样式
 * 从 itam.html 内联 <style> 提取（2026-06-17）
 *
 * 选择器前缀：body.itam-page（特异度 0,2,0，确保覆盖 mobile.css 通用规则）
 * 加载顺序：product-detail-fix.css → itam.css → iconfont → mobile.css
 *
 * 断点：
 *   默认  → PC（1280px+）
 *   @media (max-width: 1279px) → 平板 iPad
 *   @media (max-width: 767px)  → 手机 H5
 *
 * 注意事项：
 *  1. @keyframes 命名为 itam-cta-gradient-shift（避免与其他页面冲突）
 *  2. PC 的 .product-cta-content width:1280px → width:100% + max-width:var(--content-max-w)
 *  3. iPad 块所有属性加 !important，防止 mobile.css 通用 !important 规则在 375px 泄漏
 *  4. H5 块所有属性加 !important，覆盖上方 iPad 块（max-width:1279px 包含 375px）
 *  5. iPad/H5 的 .product-cta-title 添加 white-space:normal，覆盖 PC 的 nowrap
 */

/* ================================================================
   PC 默认样式（1280px+）
================================================================ */

/* 页眉与首屏背景融合 - 初始透明，滚动后变白 */
body.itam-page .header:not(.header-active) {
    background-color: transparent !important;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
body.itam-page .header.header-active {
    background-color: #FFFFFF !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* ITAM 首屏背景 - 对齐 Figma 设计
   线性渐变 #F5F4FF(0%) → #E1DBFF(100%), H:640，保留 Header.png 网格叠层 */
body.itam-page .product-hero {
    background-image: url('/frontStatic/cn/image/newIndex/Header.png'),
                      linear-gradient(135deg, #F5F4FF 0%, #E1DBFF 100%);
    background-color: #F5F4FF;
    background-position: center center, center center;
    background-repeat: no-repeat, no-repeat;
    background-size: cover, cover;
    height: 640px;
    /* 间距：标签距顶部 160px（含 64px 页眉），按钮距底部 164px */
    padding-top: 160px;
    padding-bottom: 164px;
    align-items: flex-start;
}

/* 1. 左侧标签 */
body.itam-page .product-hero .product-badge {
    color: #6B7280;
    font-size: 14px;
    line-height: 22px;
    margin-bottom: var(--space-element);
}
body.itam-page .product-hero .product-badge .badge-accent {
    color: #6246E8;
    font-weight: 700;
}

/* 2. 标题 */
body.itam-page .product-hero .product-hero-title {
    color: #6246E8;
    font-size: var(--title-hero);
    line-height: 68px;
}

/* 3. 描述文本 */
body.itam-page .product-hero .product-hero-description {
    color: #1E293B;
    font-size: 20px;
    line-height: 28px;
    max-width: 680px;
}

/* 4. 按钮 - Figma: 233×62, radius:12, gap:43, fill:#6246E8, stroke:#FFF 20% top/bottom 1px */
body.itam-page .product-hero .product-btn-primary {
    border-radius: 12px;
    height: 62px;
    min-width: 233px;
    font-size: 18px;
    line-height: 21px;
    gap: var(--space-element);
    box-shadow: none;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    border-left: none;
    border-right: none;
    /* 修复闪烁：统一用渐变背景，避免 solid↔gradient 切换 */
    background: linear-gradient(180deg, #6246E8 0%, #6246E8 100%);
    transition: opacity 0.25s ease, box-shadow 0.25s ease;
}
body.itam-page .product-hero .product-btn-primary svg {
    transition: transform 0.25s ease;
}
body.itam-page .product-hero .product-btn-primary:hover,
body.itam-page .product-hero .product-btn-primary:focus {
    opacity: 0.9;
    box-shadow: 0 8px 24px rgba(98, 70, 232, 0.45);
}
body.itam-page .product-hero .product-btn-primary:hover svg,
body.itam-page .product-hero .product-btn-primary:focus svg {
    transform: translateX(4px);
}

/* 5. 右侧图片 */
body.itam-page .product-hero .product-hero-image-wrapper img {
    width: 600px;
    height: 335px;
    border-radius: 8px;
    object-fit: cover;
}

/* ── 第2屏：IT 资产生命周期管理 ── */
body.itam-page .product-lifecycle {
    background: #FFFFFF;
    /* PC 标准：首屏下边界 → 第2屏主标题文字上边界 120px；第2屏图片下边界 → 第3屏主标题文字上边界 152px */
    padding: 120px var(--page-gutter) 152px;
    position: relative;
    overflow: hidden;
}
body.itam-page .product-lifecycle-header {
    max-width: var(--content-max-w);
    /* PC 标准：副标题 → 图片 60px */
    margin: 0 auto 60px;
    text-align: center;
}
body.itam-page .product-lifecycle-title {
    font-size: var(--title-section);
    font-weight: 600;
    color: #1F2A28;
    /* PC 标准：主标题 → 副标题 20px */
    margin-bottom: 20px;
    line-height: 56px;
}
body.itam-page .product-lifecycle-subtitle {
    font-size: 18px;
    font-weight: 400;
    color: #1E293B;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0;
}
body.itam-page .product-lifecycle-image {
    max-width: var(--content-max-w);
    margin: 0 auto;
    text-align: center;
}
body.itam-page .product-lifecycle-image img {
    width: 100%;
    max-width: var(--content-max-w);
    aspect-ratio: 1280 / 506;
    height: auto;
    display: block;
    margin: 0 auto;
    object-fit: contain;
}

/* ── 第3屏：Benefits Section ── */
body.itam-page .product-benefits {
    background: #FFFFFF;
    /* PC 标准：第3屏最后一行特性下边界 → 第4屏容器上边框 152px */
    padding: 0 var(--page-gutter) 152px;
}
body.itam-page .product-benefits-section-title {
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
    font-size: var(--title-section);
    font-weight: 600;
    line-height: 56px;
    color: #1F2A28;
    /* PC 标准：第3屏标题 → 文本及图片区域 60px */
    margin: 0 0 60px;
    text-align: center;
    padding-top: 0;
}
body.itam-page .product-benefits .product-section-content {
    max-width: var(--content-max-w);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-top: 0;
}
body.itam-page .product-benefits .product-benefit-item + .product-benefit-item {
    /* PC 标准：每行特性之间 80px */
    margin-top: 80px;
}
body.itam-page .product-benefits .product-benefit-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-block);
}
body.itam-page .product-benefits .product-benefit-item.reverse {
    flex-direction: row-reverse;
}
body.itam-page .product-benefits .product-benefit-content {
    flex: 1;
    min-width: 0;
    max-width: 520px;
    margin-left: 0;
    margin-right: 0;
    align-self: center;
}
body.itam-page .product-benefits .product-benefit-image {
    flex: 1;
    min-width: 0;
    max-width: 760px;
    margin-left: 0;
    margin-right: 0;
    align-self: center;
    position: relative;
}

/* 图片卡片背景光晕装饰 */
body.itam-page .product-benefits .product-benefit-image::before {
    content: "";
    position: absolute;
    inset: -24px;
    border-radius: 32px;
    background: radial-gradient(ellipse at 50% 50%, rgba(98, 70, 232, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}
body.itam-page .product-benefits .product-benefit-image .product-benefit-image-wrapper {
    position: relative;
    z-index: 1;
}
body.itam-page .product-benefits .product-benefit-image-wrapper {
    border-radius: 16px;
    border: 1px solid rgba(90, 107, 103, 0.10);
    box-shadow: 0px 8px 10px -6px rgba(0, 0, 0, 0.10), 0px 20px 25px -5px rgba(0, 0, 0, 0.10);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.002);
    margin-left: 0;
    margin-right: 0;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}
body.itam-page .product-benefits .product-benefit-image-wrapper:hover {
    box-shadow: 0px 12px 20px -6px rgba(98, 70, 232, 0.15), 0px 30px 40px -5px rgba(98, 70, 232, 0.10);
    transform: translateY(-4px);
}
body.itam-page .product-benefits .product-benefit-image-wrapper::before {
    content: none;
}
body.itam-page .product-benefits .product-benefit-image-wrapper img {
    width: 100%;
    aspect-ratio: 576 / 334;
    object-fit: cover;
    object-position: left center;
    display: block;
    margin: 0;
}
body.itam-page .product-benefits .product-benefit-title {
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
    font-size: 36px;
    font-weight: 600;
    line-height: 44px;
    color: #1F2A28;
    margin-bottom: var(--space-tight);
    letter-spacing: 0;
}
body.itam-page .product-benefits .product-benefit-description {
    margin-bottom: 0;
}
body.itam-page .product-benefits .benefit-point {
    margin-bottom: var(--space-tight);
}
body.itam-page .product-benefits .benefit-point:last-child {
    margin-bottom: 0;
}
body.itam-page .product-benefits .benefit-point-title {
    position: relative;
    margin: 0 0 var(--space-xs);
    padding-left: 14px;
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
    color: #1E293B;
}
body.itam-page .product-benefits .benefit-point-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #1F2A28;
}
body.itam-page .product-benefits .benefit-point-text {
    margin: 0;
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    color: #6B7280;
}

/* ── 第4屏：Features Section ── */
body.itam-page .product-features {
    background: linear-gradient(180deg, #EBF0FF 0%, #FFFFFF 47%, #EBF0FF 100%);
    /* PC 标准：容器上边框 → 标题 80px；功能区域 → 容器下边框 80px */
    padding: 80px var(--page-gutter);
    margin-top: 0;
}
body.itam-page .product-features .product-section-content {
    padding-top: 0;
}
body.itam-page .product-features .product-features-header {
    padding-top: 0;
    /* PC 标准：标题 → Tab/功能卡片区域 40px */
    margin-bottom: 40px;
}

/* layers.svg 自带 48×48 背景，修正图标尺寸与容器背景 */
body.itam-page .product-feature-icon img[src*="lucide/layers"] {
    width: 48px;
    height: 48px;
}
body.itam-page .product-feature-icon:has(img[src*="lucide/layers"]) {
    background: none;
}

/* ── CTA Section ── */
body.itam-page .product-cta {
    background: #FFFFFF;
    /* PC 标准：CTA 到上、下相邻屏边框均为 120px */
    padding: 120px var(--page-gutter);
}
body.itam-page .product-cta .product-cta-content {
    /* 原 width:1280px → width:100% 防止父容器 padding 下溢出；max-width 兜底 */
    width: 100%;
    max-width: var(--content-max-w);
    min-height: 310px;
    margin: 0 auto;
    background: linear-gradient(89.89deg, #6246E8 0%, #411CF5 100%);
    border-radius: 16px;
    box-sizing: border-box;
    padding: var(--space-block) 0;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
body.itam-page .product-cta .product-cta-content::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(
            rgba(255,255,255,0.08) 0 1px,
            transparent 1px 36px,
            rgba(255,255,255,0.08) 36px 37px,
            transparent 37px 72px
        ),
        repeating-linear-gradient(
            90deg,
            rgba(255,255,255,0.08) 0 1px,
            transparent 1px 36px,
            rgba(255,255,255,0.08) 36px 37px,
            transparent 37px 72px
        );
    pointer-events: none;
    border-radius: 16px;
}

@keyframes itam-cta-gradient-shift {
    from { background-position: 0% 50%; }
    to   { background-position: 100% 50%; }
}

body.itam-page .product-cta .product-cta-title {
    margin: 0;
    padding: 0 256px;
    /* 渐变光流文字 */
    background: linear-gradient(to right, #fff, #ede9fe, #c4b5fd, #a78bfa, #c4b5fd, #ede9fe, #fff);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: itam-cta-gradient-shift 5s linear infinite alternate;
    text-align: center;
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
    font-size: var(--title-section);
    font-weight: 600;
    line-height: 48px;
    letter-spacing: 0;
    white-space: nowrap;
}
body.itam-page .product-cta .product-cta-description {
    display: none;
}
body.itam-page .product-cta .product-cta-buttons {
    width: 420px;
    height: 62px;
    margin: var(--space-block) auto 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-element);
}
body.itam-page .product-cta .product-cta-buttons .product-btn-primary,
body.itam-page .product-cta .product-cta-buttons .product-btn-secondary {
    width: 200px;
    height: 62px;
    min-height: 62px;
    padding: 0 var(--space-element);
    box-sizing: border-box;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    text-decoration: none;
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 21px;
    box-shadow: none;
    border: none;
}
body.itam-page .product-cta .product-cta-buttons .product-btn-primary {
    background: #FFFFFF;
    color: #6246E8;
    transition: opacity 0.2s ease, box-shadow 0.2s ease;
}
body.itam-page .product-cta .product-cta-buttons .product-btn-primary:hover,
body.itam-page .product-cta .product-cta-buttons .product-btn-primary:focus {
    opacity: 0.9;
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.35);
}
body.itam-page .product-cta .product-cta-buttons .product-btn-secondary {
    background: #1E293B;
    color: #FFFFFF;
    transition: opacity 0.2s ease, box-shadow 0.2s ease;
}
body.itam-page .product-cta .product-cta-buttons .product-btn-secondary:hover,
body.itam-page .product-cta .product-cta-buttons .product-btn-secondary:focus {
    opacity: 0.9;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}
body.itam-page .product-cta .product-cta-buttons .product-btn-primary svg,
body.itam-page .product-cta .product-cta-buttons .product-btn-secondary svg {
    width: 18px;
    height: 18px;
    transition: transform 0.2s ease;
}
body.itam-page .product-cta .product-cta-buttons .product-btn-primary:hover svg,
body.itam-page .product-cta .product-cta-buttons .product-btn-primary:focus svg,
body.itam-page .product-cta .product-cta-buttons .product-btn-secondary:hover svg,
body.itam-page .product-cta .product-cta-buttons .product-btn-secondary:focus svg {
    transform: translateX(4px);
}


/* ================================================================
   平板（768px – 1279px）—— TODO: move to ipad.css
   所有属性加，防止 mobile.css 通用 规则泄漏至 375px
================================================================ */
@media (max-width: 767px) {
    /* ── Hero：重置 PC 的固定高度 / padding / 图片尺寸 ── */
    body.itam-page .product-hero {
        height: auto;
        min-height: 0;
        padding-top: calc(var(--space-section) + var(--space-element));
        padding-bottom: var(--space-section);
    }
    body.itam-page .product-hero .product-hero-image-wrapper img {
        width: 100%;
        height: auto;
    }

    /* ── Lifecycle ── */
    body.itam-page .product-lifecycle-title {
        font-size: 28px;
        line-height: 34px;
    }

    /* ── Benefits ── */
    body.itam-page .product-benefits-section-title {
        font-size: 28px;
        line-height: 34px;
        margin-bottom: var(--space-block);
    }
    body.itam-page .product-benefits .product-section-content {
        gap: 0;
        padding-top: 0;
    }
    body.itam-page .product-benefits .product-benefit-item + .product-benefit-item {
        margin-top: calc(var(--space-block) + var(--space-element));
    }
    body.itam-page .product-benefits .product-benefit-item,
    body.itam-page .product-benefits .product-benefit-item.reverse {
        flex-direction: column;
        gap: var(--space-block);
        align-items: flex-start;
    }
    body.itam-page .product-benefits .product-benefit-content,
    body.itam-page .product-benefits .product-benefit-image {
        width: 100%;
        max-width: 100%;
        min-height: 0;
        margin-left: 0;
    }
    body.itam-page .product-benefits .product-benefit-image-wrapper,
    body.itam-page .product-benefits .product-benefit-image-wrapper img {
        margin-left: 0;
        margin-right: 0;
    }
    body.itam-page .product-benefits .product-benefit-title {
        font-size: 30px;
        line-height: 38px;
    }

    /* ── Features ── */
    body.itam-page .product-features {
        padding: var(--space-section) var(--page-gutter);
    }

    /* ── CTA ── */
    body.itam-page .product-cta {
        padding: var(--space-section) var(--page-gutter);
    }
    body.itam-page .product-cta .product-cta-content {
        width: 100%;
        max-width: 100%;
        height: auto;
        min-height: 310px;
        padding: var(--space-block) var(--space-element);
    }
    body.itam-page .product-cta .product-cta-title {
        padding: 0;
        font-size: 28px;
        line-height: 34px;
        white-space: normal;
    }
}


/* ================================================================
   手机（≤ 767px）
   所有属性加，覆盖上方 iPad 块（max-width:1279px 包含 375px）
================================================================ */
@media (max-width: 767px) {
    /* ── Hero：H5 进一步收缩 padding ── */
    body.itam-page .product-hero {
        height: auto;
        min-height: 0;
        padding-top: 80px;
        padding-bottom: 32px;
        margin-bottom: 0;
    }

    /* ── Lifecycle ──
       mobile.css §9.3b 已通过 覆盖 H5 的 padding/font-size，
       此处不重复声明，由 mobile.css 统一控制。 ── */

    /* ── Benefits ──
       mobile.css §9.4 §9.4a 已通过 覆盖 H5 的 section spacing/字体，
       此处仅保留 ITAM 特有的图文行内间距和卡片内部 padding。 ── */
    body.itam-page .product-benefits {
        padding: 0 var(--page-gutter) var(--space-section);
    }
    body.itam-page .product-benefits .product-section-content {
        gap: 0;
        padding-top: 0;
    }
    /* 图文交替 item 之间的间距（与 mobile.css §9.4a 的 margin-top:0 !important 配合） */
    body.itam-page .product-benefits .product-benefit-item + .product-benefit-item {
        margin-top: var(--space-block);
    }
    body.itam-page .product-benefits .product-benefit-item,
    body.itam-page .product-benefits .product-benefit-item.reverse {
        gap: var(--space-element);
    }
    body.itam-page .product-benefits .product-benefit-title {
        font-size: 18px;
        line-height: 26px;
        margin-bottom: var(--space-tight);
    }

    /* ── Features ── */
    body.itam-page .product-features {
        padding: var(--space-section) var(--page-gutter);
    }
    body.itam-page .product-features .product-features-title {
        font-size: 22px;
        line-height: 30px;
    }

    /* ── CTA ── */
    body.itam-page .product-cta {
        padding: var(--space-section) var(--page-gutter);
    }
    body.itam-page .product-cta .product-cta-content {
        min-height: 0;
        padding: var(--space-block) var(--space-element);
    }
    body.itam-page .product-cta .product-cta-title {
        font-size: 28px;
        line-height: 34px;
        white-space: normal;
    }
    body.itam-page .product-cta .product-cta-buttons {
        width: 100%;
        height: auto;
        margin-top: var(--space-block);
        flex-direction: column;
        gap: var(--space-tight);
    }
    body.itam-page .product-cta .product-cta-buttons .product-btn-primary,
    body.itam-page .product-cta .product-cta-buttons .product-btn-secondary {
        width: 100%;
        max-width: 280px;
        height: 54px;
        min-height: 54px;
        font-size: 16px;
    }
}
