/**
 * cmdb.css — CMDB 产品详情页专属样式
 * 从 cmdb.html 内联 <style> 提取（2026-06-17）
 * PC 间距遵循 specs/css-spacing-progressive-migration-plan.md 的产品详情页 PC 间距标准。
 */

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

/* CMDB 首屏 - 对齐 ITAM 页面参数 */
body.cmdb-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;
    padding-top: 160px;
    padding-bottom: 164px;
    align-items: flex-start;
    margin-bottom: 0;
}

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

/* 2. 标题 */
body.cmdb-page .product-hero .product-hero-title {
    color: #6246E8;
    /* PC 标准：首屏 H1 */
    font-size: var(--title-hero);
    line-height: 68px;
}

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

/* 4. 按钮 - 233×62,
radius:12,
gap:43,
fill:#6246E8,
去掉绿色阴影 */
body.cmdb-page .product-hero .product-btn-primary {
    border-radius: 12px;
    height: 62px;
    min-width: 233px;
    font-size: 18px;
    line-height: 21px;
    gap: 43px;
    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;
    background: linear-gradient(180deg, #6246E8 0%, #6246E8 100%);
    transition: opacity 0.25s ease, box-shadow 0.25s ease;
}
body.cmdb-page .product-hero .product-btn-primary svg {
    transition: transform 0.25s ease;
}
body.cmdb-page .product-hero .product-btn-primary:hover,
body.cmdb-page .product-hero .product-btn-primary:focus {
    opacity: 0.9;
    box-shadow: 0 8px 24px rgba(98, 70, 232, 0.45);
}
body.cmdb-page .product-hero .product-btn-primary:hover svg,
body.cmdb-page .product-hero .product-btn-primary:focus svg {
    transform: translateX(4px);
}

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

/* CMDB页面背景色交替设置 */
/* 第2屏 - CMDB生命周期 */
body.cmdb-page .product-lifecycle {
    background: #FFFFFF;
    /* PC 标准：首屏下边界 → 第2屏主标题文字上边界 120px；第2屏图片下边界 → 第3屏主标题文字上边界 152px */
    padding: 120px var(--page-gutter) 152px;
}

body.cmdb-page .product-lifecycle-header {
    max-width: var(--content-max-w);
    /* PC 标准：副标题 → 图片 60px */
    margin: 0 auto 60px;
    text-align: center;
}

body.cmdb-page .product-lifecycle-title {
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
    /* PC 标准：模块主标题 */
    font-size: var(--title-section);
    font-weight: 600;
    color: #1F2A28;
    margin-bottom: 20px;
    line-height: 56px;
}

body.cmdb-page .product-lifecycle-subtitle {
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: #1E293B;
    line-height: 26px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0;
}

body.cmdb-page .product-lifecycle-description {
    font-size: 1rem;
    color: #1E293B;
    line-height: 1.6;
    margin-bottom: 4px;
    text-align: center;
}

body.cmdb-page .product-lifecycle-image {
    max-width: var(--content-max-w);
    margin: 0 auto;
    text-align: center;
}

body.cmdb-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;
}

@media (min-width: 768px) {
    body.cmdb-page .product-lifecycle-title {
        font-size: 48px;
    }
}

@media (max-width: 767px) {
    /* 问题2：第2屏与第1屏间距过小——内联 .product-lifecycle { padding: 0 } body.cmdb-page 覆盖了 mobile.css 的 .product-section { padding: 40px 16px }body.cmdb-page ，需显式补回 top padding */
    .product-lifecycle {
        padding-top: 32px;
    }

    body.cmdb-page .product-lifecycle-header {
        margin: 0 auto 24px;
    }

    body.cmdb-page .product-lifecycle-title {
        font-size: 22px;
        line-height: 30px;
    }

    body.cmdb-page .product-lifecycle-subtitle {
        font-size: 13px;
        line-height: 20px;
    }
}

/* 第3屏 - Benefits Section */
body.cmdb-page .product-benefits {
    background: #FFFFFF;
    /* PC 标准：第3屏最后一行特性下边界 → 第4屏容器上边框 152px */
    padding: 0 var(--page-gutter) 152px;
}

body.cmdb-page .product-benefits-section-title {
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
    /* PC 标准：模块主标题 */
    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.cmdb-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.cmdb-page .product-benefits .product-benefit-item + .product-benefit-item {
    /* PC 标准：每行特性之间 80px */
    margin-top: 80px;
}

body.cmdb-page .product-benefits .product-benefit-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 64px;
}

body.cmdb-page .product-benefits .product-benefit-item.reverse {
    flex-direction: row-reverse;
}

body.cmdb-page .product-benefits .product-benefit-content {
    flex: 1;
    min-width: 0;
    max-width: 520px;
    margin-left: 0;
    margin-right: 0;
    align-self: center;
}

body.cmdb-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.cmdb-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.cmdb-page .product-benefits .product-benefit-image .product-benefit-image-wrapper {
    position: relative;
    z-index: 1;
}

body.cmdb-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.cmdb-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.cmdb-page .product-benefits .product-benefit-image-wrapper::before {
    content: none;
}

body.cmdb-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.cmdb-page .product-benefits .product-benefit-title {
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
    /* PC 标准：图文行标题 */
    font-size: 36px;
    font-weight: 600;
    line-height: 44px;
    color: #1F2A28;
    margin-bottom: 20px;
    letter-spacing: 0;
}

body.cmdb-page .product-benefits .product-benefit-description {
    margin-bottom: 0;
}

body.cmdb-page .product-benefits .benefit-point {
    margin-bottom: 12px;
}

body.cmdb-page .product-benefits .benefit-point:last-child {
    margin-bottom: 0;
}

body.cmdb-page .product-benefits .benefit-point-title {
    position: relative;
    margin: 0 0 4px;
    padding-left: 14px;
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
    /* PC 标准：小项标题 */
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
    color: #1E293B;
}

body.cmdb-page .product-benefits .benefit-point-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #1F2A28;
}

body.cmdb-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;
    white-space: normal;
}

@media (max-width: 767px) {
    body.cmdb-page .product-benefits .product-section-content {
        gap: 0;
        padding-top: 80px;
    }

    body.cmdb-page .product-benefits .product-benefit-item + .product-benefit-item {
        margin-top: 60px;
    }

    body.cmdb-page .product-benefits .product-benefit-item,
body.cmdb-page .product-benefits .product-benefit-item.reverse {
        flex-direction: column;
        gap: 40px;
        align-items: flex-start;
    }

    body.cmdb-page .product-benefits .product-benefit-content,
body.cmdb-page .product-benefits .product-benefit-image {
        width: 100%;
        max-width: 100%;
        min-height: 0;
        margin-left: 0;
    }

    body.cmdb-page .product-benefits .product-benefit-image-wrapper,
body.cmdb-page .product-benefits .product-benefit-image-wrapper img {
        margin-left: 0;
        margin-right: 0;
    }

    body.cmdb-page .product-benefits .product-benefit-title {
        font-size: 30px;
        line-height: 38px;
    }
}

@media (max-width: 767px) {
    body.cmdb-page .product-benefits {
        padding: 0 16px 32px;
    }

    /* 问题2：第3屏与第2屏间距过大——重置来自 1279px 的 padding-top:80px */
    body.cmdb-page .product-benefits .product-section-content {
        gap: 0;
        padding-top: 0;
    }

    /* 问题2：重置节标题的 padding-top:56px 和 margin-bottom:100px */
    body.cmdb-page .product-benefits-section-title {
        padding-top: 24px;
        margin-bottom: 20px;
        font-size: 22px;
        line-height: 30px;
    }

    /* 问题2：特性之间间距对齐 dosm 规范値 */
    body.cmdb-page .product-benefits .product-benefit-item + .product-benefit-item {
        margin-top: 40px;
    }

    /* 图文行内间距缩减 */
    body.cmdb-page .product-benefits .product-benefit-item,
    body.cmdb-page .product-benefits .product-benefit-item.reverse {
        gap: 16px;
    }

    /* 问题1：特性标题字号 28px → 规范 18px */
    body.cmdb-page .product-benefits .product-benefit-title {
        font-size: 18px;
        line-height: 26px;
        margin-bottom: 12px;
    }

    /* 重置 hero margin-bottom，mobile.css 全局规则已覆盖，此处保險 */
    body.cmdb-page .product-hero {
        margin-bottom: 0;
    }
}

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

body.cmdb-page .product-features .product-section-content {
    max-width: 1232px;
    margin: 0 auto;
}

body.cmdb-page .product-features .product-features-header {
    margin-bottom: 40px;
    text-align: center;
}

body.cmdb-page .product-features .product-features-title {
    margin: 0 0 16px;
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
    /* PC 标准：模块主标题 */
    font-size: var(--title-section);
    font-weight: 600;
    line-height: 56px;
    color: #1F2A28;
    text-align: center;
}

body.cmdb-page .product-features .product-feature-card {
    box-sizing: border-box;
    border-radius: 8px;
    border: 1px solid rgba(90, 107, 103, 0.1);
    box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.05);
    padding: 32px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
    background: #fff;
    transition: all 0.3s;
}

body.cmdb-page .product-features .product-feature-card:hover {
    border-color: rgba(98, 70, 232, 0.6);
    box-shadow: 0 8px 24px rgba(98, 70, 232, 0.18);
}

body.cmdb-page .product-features .product-feature-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
    border-radius: 8px;
    background: rgba(98, 70, 232, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

body.cmdb-page .product-features .product-feature-icon img {
    width: 24px;
    height: 24px;
    display: block;
}

body.cmdb-page .product-features .product-feature-title {
    margin: 0 0 10px;
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
    /* PC 标准：卡片标题 */
    font-size: 20px;
    font-weight: 600;
    line-height: 28px;
    color: #1F2A28;
}

body.cmdb-page .product-features .product-feature-description {
    margin: 0;
    font-family: "Public Sans", "Microsoft YaHei", "PingFang SC", sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 22px;
    color: #5A6B67;
    text-align: left;
}

@media (max-width: 767px) {
    body.cmdb-page .product-features {
        padding: 64px 20px 56px;
    }

    body.cmdb-page .product-features .product-features-title {
        font-size: 40px;
        line-height: 48px;
    }
}

@media (max-width: 767px) {
    body.cmdb-page .product-features {
        padding: 40px 16px 32px;
    }

    body.cmdb-page .product-features .product-features-title {
        font-size: 22px;
        line-height: 30px;
    }
}

/* 第6屏 - CTA Section */
body.cmdb-page .product-cta {
    background: #FFFFFF;
    /* PC 标准：CTA 到上、下相邻屏边框均为 120px */
    padding: 120px var(--page-gutter);
}

body.cmdb-page .product-cta .product-cta-content {
    width: 100%;
    max-width: var(--content-max-w);
    min-height: 310px;
    margin: 0 auto;
    background:
        linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(89.89deg, #6246E8 0%, #411CF5 100%);
    background-size: 36px 36px, 36px 36px, 100% 100%;
    border-radius: 16px;
    box-sizing: border-box;
    padding: 56px 40px 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

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


body.cmdb-page .product-cta .product-cta-title {
    margin: 0;
    padding: 0;
                /* 渐变光流文字 */
    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: cmdb-cta-gradient-shift 5s linear infinite alternate;
    text-align: center;
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
    /* PC 标准：模块主标题；渐变文字用 56px 行高避免字形裁切 */
    font-size: var(--title-section);
    font-weight: 600;
    line-height: 56px;
    letter-spacing: 0;
    white-space: nowrap;
}

body.cmdb-page .product-cta .product-cta-buttons {
    width: 420px;
    height: 62px;
    margin: 36px auto 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

body.cmdb-page .product-cta .product-cta-buttons .product-btn-primary,
body.cmdb-page .product-cta .product-cta-buttons .product-btn-secondary {
    width: 200px;
    height: 62px;
    min-height: 62px;
    padding: 0 20px;
    box-sizing: border-box;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    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.cmdb-page .product-cta .product-cta-buttons .product-btn-primary {
    background: #FFFFFF;
    color: #6246E8;
    transition: opacity 0.2s ease, box-shadow 0.2s ease;
}
body.cmdb-page .product-cta .product-cta-buttons .product-btn-primary:hover,
body.cmdb-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.cmdb-page .product-cta .product-cta-buttons .product-btn-secondary {
    background: #1E293B;
    color: #FFFFFF;
    transition: opacity 0.2s ease, box-shadow 0.2s ease;
}
body.cmdb-page .product-cta .product-cta-buttons .product-btn-secondary:hover,
body.cmdb-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.cmdb-page .product-cta .product-cta-buttons .product-btn-primary svg,
body.cmdb-page .product-cta .product-cta-buttons .product-btn-secondary svg {
    width: 18px;
    height: 18px;
    transition: transform 0.2s ease;
}
body.cmdb-page .product-cta .product-cta-buttons .product-btn-primary:hover svg,
body.cmdb-page .product-cta .product-cta-buttons .product-btn-primary:focus svg,
body.cmdb-page .product-cta .product-cta-buttons .product-btn-secondary:hover svg,
body.cmdb-page .product-cta .product-cta-buttons .product-btn-secondary:focus svg {
    transform: translateX(4px);
}

@media (max-width: 767px) {
    body.cmdb-page .product-cta {
        padding: 88px 20px;
    }

    body.cmdb-page .product-cta .product-cta-content {
        width: 100%;
        max-width: 100%;
        height: auto;
        min-height: 310px;
        padding: 64px 32px;
    }

    body.cmdb-page .product-cta .product-cta-title {
        padding: 0;
        font-size: 40px;
        line-height: 44px;
    }
}

@media (max-width: 767px) {
    body.cmdb-page .product-cta {
        padding: 64px 16px;
    }

    body.cmdb-page .product-cta .product-cta-content {
        min-height: 0;
        padding: 44px 20px;
    }

    body.cmdb-page .product-cta .product-cta-title {
        font-size: 28px;
        line-height: 36px;
    }

    body.cmdb-page .product-cta .product-cta-buttons {
        width: 100%;
        height: auto;
        margin-top: 28px;
        flex-direction: column;
        gap: 12px;
    }

    body.cmdb-page .product-cta .product-cta-buttons .product-btn-primary,
body.cmdb-page .product-cta .product-cta-buttons .product-btn-secondary {
        width: 100%;
        max-width: 280px;
        height: 54px;
        min-height: 54px;
        font-size: 16px;
        line-height: 20px;
    }
}

/* 第5屏 - Testimonials Section */
body.cmdb-page .product-testimonials {
    background: #F7F9F8;
}
