/*================================================================
   石油化工安全解决方案 (Petrochemical Safety Solution) 专属样式
   遵循 gemini.md 规范：全量 REM 布局 (1rem = 16px)
================================================================*/

/* 1. 通用布局容器 */
.petrify-section-white { padding: 3.75rem 0 6rem; background-color: #FFFFFF; }
.petrify-section-gray { padding: 3.75rem 0 6rem; background-color: #F9FAFC; }
.petrify-section-alt { padding: 3.75rem 0 6.0625rem; background-color: #F9FAFC; } /* 60px 0 97px */
.petrify-section-functions { padding: 3.75rem 0 7.25rem; background-color: #FFFFFF; }

/* 2. Banner 样式定制 */
.petrify-banner-custom {
    display: flex;
    position: relative;
    width: 100%;
    min-height: 43.75rem; /* 700px */
    overflow: hidden;
}

.petrify-banner-inner {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    position: relative;
    z-index: 1;
    height: 100%;
}

.petrify-banner-text {
    flex: 0 0 60rem;
    padding-top: 12.6875rem; /* 203px */
}

.petrify-banner-main-title { 
    margin-bottom: .75rem !important; /* 10px */
}
.petrify-banner-subtitle { 
    max-width: 60rem; 
    font-size: 1.5rem!important;
    color: #D3DBF4!important;
    line-height: 2rem!important;
}
.petrify-banner-btn-wrap { 
    margin-top: 2.8125rem; /* 32px */
}

.petrify-ui-btn-custom {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4375rem 0.875rem; /* 7px 14px */
    background: transparent;
    border: 0.0625rem solid #D3DBF4;
    border-radius: 1.375rem; /* 4px */
    font-size: 1.375rem; /* 22px */
    color: #D3DBF4;
    line-height: 1.8125rem; /* 29px */
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: s-regular, sans-serif;
}

.petrify-ui-btn-custom:hover {
    background: #2664F5;
    border-color: transparent;
    color: #FFFFFF;
}

/* 3. 智慧安全底座模块 */
.petrify-base-title { margin-bottom: 2.5rem !important; }
.petrify-base-grid { gap: 1.75rem; } /* 28px */

.petrify-feature-card {
    background-color: #FFFFFF;
    border-radius: 0.875rem; /* 14px */
    box-shadow: 0.5rem 0.5rem 1.25rem 0px #E7EBF1; /* 8px 8px 20px */
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 1.75rem 2rem; /* 28px 32px */
    height: 19.375rem; /* 310px */
    border: none;
    display: flex;
    flex-direction: column;
}

.petrify-feature-card:hover {
    transform: translateY(-1.25rem); /* 20px */
    box-shadow: 0.5rem 1rem 1.875rem 0px rgba(231,235,241,0.8);
}

.petrify-feature-card-icon {
    height: 3.3125rem; /* 53px */
    width: auto;
    display: block;
    align-self: flex-start;
    margin-bottom: 3rem; /* 48px */
    object-fit: contain;
}

.petrify-feature-card-title {
    font-size: 1.5rem; /* 24px */
    line-height: 2rem; /* 32px */
    color: #232B3B;
    font-family: s-demibold;
    margin: 0;
    margin-bottom: 0.875rem; /* 14px */
}

.petrify-feature-card-desc {
    font-size: 1rem; /* 16px */
    line-height: 1.625rem; /* 26px */
    color: #333333;
    margin: 0;
    text-align: justify;
    opacity: 0.5;
}

/* 4. 应用功能选项卡模块 */
.petrify-functions-title { margin-bottom: 1.25rem; } /* 20px */
.petrify-tabs-wrap {
    display: flex;
    flex-direction: row;
    justify-content: center;
    margin-bottom: 2.25rem;
    gap: 4.625rem;
}

.petrify-tab-btn {
    position: relative;
    color: #333333;
    transition: color 0.3s ease;
    user-select: none;
    font-size: 1.375rem; /* 22px */
    line-height: 1.4375rem; /* 23px */
    cursor: pointer;
    padding-bottom: 0.625rem;
}

.petrify-tab-btn:hover { color: #2664F5; }
.petrify-tab-btn.active { 
    color: #2664F5; 
    font-family: s-demibold;
}

.petrify-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0.125rem; /* 2px */
    background-color: #2664F5;
}

.petrify-panel {
    border-radius: 0.75rem; /* 12px */
    overflow: hidden;
    background: linear-gradient( 138deg, #F5F9FF 0%, #F3F6FD 100%);
    border: 0.0625rem solid #D9E2FF;
    height: 43.75rem; /* 700px */
}

.petrify-panel-features {
    flex: 0 0 30.5625rem; /* 489px */
    padding: 2.3125rem 3.25rem;
}

.petrify-feature-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    max-width: 22.0625rem; /* 353px 内容限制 */
}

.petrify-feature-title-wrap {
    display: flex;
    align-items: center;
    gap: 0.625rem; /* 10px */
}

.feature-icon-check {
    width: 0.875rem; /* 14px */
    height: 0.875rem; /* 14px */
    border: 0.125rem solid #FC5900;
    border-radius: 50%;
    display: inline-block;
    position: relative;
}

.feature-icon-check::after {
    content: '';
    position: absolute;
    left: 0.1875rem;
    top: 0;
    width: 0.25rem;
    height: 0.4375rem;
    border: solid #FC5900;
    border-width: 0 0.125rem 0.125rem 0;
    transform: rotate(45deg);
}

.petrify-feature-item-title {
    font-size: 1rem; /* 16px */
    color: #333333;
    line-height: 1.5rem; /* 24px */
    font-family: s-demibold;
    margin: 0;
}

.petrify-feature-item-desc {
    font-size: 1rem; /* 16px */
    color: #607293;
    line-height: 1.5rem; /* 24px */
    margin: 0;
}

.petrify-panel-img-wrap {
    flex: 1;
    height: 43.75rem; /* 700px */
}

.petrify-panel-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 5. 全栈定位产品矩阵 (手风琴) */
.petrify-matrix-title {
    margin-bottom: 2.5rem !important; /* 40px */
}

.petrify-matrix-accordion {
    display: flex;
    flex-direction: row;
    gap: 1.75rem; /* 30px */
    width: 100%;
    height: 40rem; /* 640px */
    justify-content: center;
}

.petrify-matrix-item {
    position: relative;
    flex: 0 0 21.125rem; /* 338px */
    height: 100%;
    border-radius: 0.75rem;
    overflow: hidden;
    transition: flex 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

/* 默认激活第一个 (且在鼠标未悬浮容器时) */
.petrify-matrix-accordion:not(:hover) .petrify-matrix-item:first-child,
.petrify-matrix-item:hover {
    flex: 0 0 44.0625rem; /* 705px */
}

.petrify-matrix-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: opacity 0.4s ease;
}

.petrify-matrix-bg.normal-bg {
    opacity: 1;
    z-index: 1;
}

.petrify-matrix-bg.select-bg {
    opacity: 0;
    z-index: 0;
}

/* 状态切换：默认第一项激活 或 悬浮某一项 */
.petrify-matrix-accordion:not(:hover) .petrify-matrix-item:first-child .normal-bg,
.petrify-matrix-item:hover .normal-bg {
    opacity: 0;
}

.petrify-matrix-accordion:not(:hover) .petrify-matrix-item:first-child .select-bg,
.petrify-matrix-item:hover .select-bg {
    opacity: 1;
    z-index: 2;
}

.petrify-matrix-content {
    position: relative;
    z-index: 10;
    height: 100%;
    padding: 3.625rem 2.625rem; /* 58px 42px */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    pointer-events: none;
    white-space: nowrap; /* 不换行 */
}

.petrify-matrix-card-title {
    font-size: 1.5rem; /* 24px */
    line-height: 1.5rem;
    color: #FFFFFF;
    font-family: s-demibold;
    margin: 0;
    margin-bottom: 0.625rem; /* 10px */
    white-space: nowrap; /* 不换行 */
}

.petrify-matrix-card-desc {
    font-size: 1rem; /* 16px */
    line-height: 1.5rem; /* 24px */
    color: #FFFFFF;
    margin: 0;
    white-space: nowrap; /* 不换行 */
}

.petrify-matrix-item .desc-normal {
    display: block;
}

.petrify-matrix-item .desc-active {
    display: none;
}

/* 状态切换：内容显隐 */
.petrify-matrix-accordion:not(:hover) .petrify-matrix-item:first-child .desc-normal,
.petrify-matrix-item:hover .desc-normal {
    display: none;
}

.petrify-matrix-accordion:not(:hover) .petrify-matrix-item:first-child .desc-active,
.petrify-matrix-item:hover .desc-active {
    display: block;
    margin-bottom: 1.125rem; /* 18px */
}

.petrify-matrix-card-link {
    font-size: 1rem; /* 16px */
    color: #FFFFFF;
    line-height: 1.5rem;
    text-decoration: none;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: auto;
    white-space: nowrap; /* 不换行 */
}

.petrify-matrix-accordion:not(:hover) .petrify-matrix-item:first-child .petrify-matrix-card-link,
.petrify-matrix-item:hover .petrify-matrix-card-link {
    opacity: 1;
}

.petrify-matrix-card-link:hover {
    text-decoration: underline;
}

/* 6. 智能感知卡片 */
.petrify-product-grid {
    display: flex;
    flex-direction: row;
    width: 100%;
    justify-content: space-between;
    margin-top: 1.25rem;
    gap: 1.75rem;
}

.petrify-product-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: #FFFFFF;
    box-shadow: 0.5rem 0.5rem 1.25rem 0px #E7EBF1;
    border-radius: 0.875rem;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.petrify-product-card:hover {
    transform: translateY(-0.375rem);
    box-shadow: 0.5rem 1rem 1.875rem 0px rgba(231,235,241,0.8);
}

.petrify-product-img {
    width: 100%;
    height: 19.0625rem;
    object-fit: cover;
}

.petrify-product-content {
    padding: 2.25rem 1.625rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.petrify-product-title {
    font-size: 1.5rem;
    line-height: 1.5rem;
    color: #333333;
    font-family: s-demibold;
    margin: 0;
    margin-bottom: 0.75rem;
}

.petrify-product-desc {

    font-size: 1rem;
    line-height: 1.5rem;
    color: #333333;
    margin: 0;
    margin-bottom: 1.25rem;
}

.petrify-product-btn {
    font-size: 1rem;
    color: #333333;
    line-height: 1.5rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.petrify-product-btn:hover {
    text-decoration: underline;
}
.petrify-product-btn--disabled {
    cursor: default;
    opacity: 0.45;
    pointer-events: none;
}

/* 7. 场景化数据卡片 */
.petrify-stat-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
    justify-content: space-between;
    margin-top: 1.25rem;
    gap: 1.75rem;
}

.petrify-stat-card {
    display: flex;
    width: calc(50% - 0.875rem);
    gap: 3.75rem;
    height: 12.5rem;
    padding: 2.75rem 2.75rem;
    border-radius: 0.875rem;
    box-shadow: .5rem .5rem 1.25rem 0px #E7EBF1;
    background: linear-gradient( 134deg, #FCFDFF 0%, #EFF2F9 100%);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.petrify-stat-card:hover {
    transform: translateY(-0.125rem); /* 2px */
    box-shadow: 0.75rem 1rem 1.875rem 0px rgba(231,235,241,0.8);
}

.petrify-stat-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .375rem;
    align-items: center;
    margin-top: -0.875rem;
}

.petrify-stat-title {
    white-space: nowrap;
    font-size: 1.375rem;
    color: #333333;
    line-height: 1.8125rem;
    font-family: s-demibold;
}

.petrify-stat-val {
    font-size: 5rem;
    line-height: 5.625rem;
    font-family: sd-bolditalic;
    background: linear-gradient(to bottom right, #5EBCFF, #4F49FF);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.petrify-stat-desc-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
    min-width: 0;
}

.petrify-stat-line {
    display: flex;
    flex-direction: column;
    gap: .125rem;
}

.petrify-stat-line-title {
    display: flex;
    align-items: center;
    font-size: 1rem;
    font-family: s-demibold;
    color: #333333;
    line-height: 1.5rem;
}

.petrify-stat-line-title::before {
    content: '';
    display: inline-block;
    width: 0.5rem;
    height: 0.5rem;
    background-color: #004FFF;
    border-radius: 50%;
    margin-right: 0.5rem;
}
.petrify-stat-line-desc {
    font-size: 1rem;
    color: #333333;
    line-height: 1.5rem;
    opacity: 0.7;
}

@media screen and (max-width: 96rem) {
    .petrify-stat-val {
        font-size: 4.25rem !important;
        line-height: 4.78125rem !important;
    }
}
@media screen and (max-width: 80rem) {
    .petrify-stat-val {
        font-size: 3.375rem !important;
        line-height: 3.796875rem !important;
    }
}

/* 8. Logo 墙样式 */
.petrify-logo-section {
    position: relative;
    height: 55rem; /* 880px */
    width: 100%;
    overflow: hidden;
}

.petrify-logo-full-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.petrify-logo-content {
    position: relative;
    z-index: 5;
    height: 100%;
    display: flex;
    justify-content: center;
    padding-top: 5.625rem; /* 90px */
}

.petrify-logo-floating-title {
    margin: 0 !important;
}

/* 9. 底部 CTA 定制 */
.uwb-cta {
    padding: 4.8125rem 5.5rem!important;
    text-align: center;
    background: #fff;
}
.petrify-cta .uwb-cta-title {
    background: linear-gradient(to right, #0E56FF, #FF226D, #FC5900);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    margin-bottom: 2.125rem !important; /* 34px 间距 */
}

.petrify-cta .uwb-cta-subtitle {
    display: none !important;
}
