/* ========================================================================
   领先的 ITDR 检测技术页面 - 专用样式
   ======================================================================== */

/* ====================== 高级技术卡片样式 ====================== */
.tech-card-advanced {
    position: relative;
    height: 100%;
    padding: 56px 44px;
    background: linear-gradient(135deg, rgba(23, 23, 23, 0.7) 0%, rgba(15, 15, 15, 0.9) 100%);
    border: 1px solid rgba(54, 201, 88, 0.15);
    border-radius: 4px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 顶部装饰线条 - 渐变效果 */
.tech-card-advanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(54, 201, 88, 0.3) 25%,
        rgba(54, 201, 88, 0.6) 50%,
        rgba(54, 201, 88, 0.3) 75%,
        transparent 100%
    );
    opacity: 0;
    transition: opacity 0.6s ease;
}

/* 卡片背景动画效果 */
.tech-card-advanced::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(54, 201, 88, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.tech-card-advanced:hover {
    transform: translateY(-12px);
    border-color: rgba(54, 201, 88, 0.4);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(54, 201, 88, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 0 40px rgba(54, 201, 88, 0.1);
}

.tech-card-advanced:hover::before {
    opacity: 1;
}

.tech-card-advanced:hover::after {
    width: 400px;
    height: 400px;
    opacity: 1;
}

/* 图标容器 - 大尺寸设计 */
.tech-card-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(54, 201, 88, 0.2) 0%, rgba(54, 201, 88, 0.08) 100%);
    border: 2px solid rgba(54, 201, 88, 0.3);
    border-radius: 50%;
    position: relative;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

/* 图标外圈光晕效果 */
.tech-card-icon::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    background: linear-gradient(135deg, rgba(54, 201, 88, 0.15) 0%, transparent 100%);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.tech-card-advanced:hover .tech-card-icon::before {
    opacity: 1;
}

.tech-card-icon i {
    width: 40px;
    height: 40px;
    color: #36c958;
    stroke-width: 1.5;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.tech-card-advanced:hover .tech-card-icon {
    transform: scale(1.15) rotate(-5deg);
    background: linear-gradient(135deg, rgba(54, 201, 88, 0.3) 0%, rgba(54, 201, 88, 0.12) 100%);
    border-color: rgba(54, 201, 88, 0.5);
    box-shadow:
        0 12px 40px rgba(54, 201, 88, 0.25),
        0 0 20px rgba(54, 201, 88, 0.15);
}

.tech-card-advanced:hover .tech-card-icon i {
    transform: scale(1.1);
    filter: drop-shadow(0 0 8px rgba(54, 201, 88, 0.5));
}

/* 卡片标题 */
.tech-card-title {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 24px;
    line-height: 1.3;
    letter-spacing: -0.02em;
    position: relative;
    transition: all 0.4s ease;
    z-index: 1;
}

/* 标题下划线动画 */
.tech-card-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #36c958 0%, transparent 100%);
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.tech-card-advanced:hover .tech-card-title {
    color: #36c958;
}

.tech-card-advanced:hover .tech-card-title::after {
    width: 80px;
}

/* 卡片文字内容 */
.tech-card-text {
    font-size: 16px;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    letter-spacing: 0.02em;
    position: relative;
    z-index: 1;
    transition: color 0.4s ease;
}

.tech-card-advanced:hover .tech-card-text {
    color: rgba(255, 255, 255, 0.85);
}

/* 卡片编号装饰 */
.tech-card-advanced {
    counter-increment: tech-card;
}

.tech-card-advanced::after {
    counter-reset: tech-card;
}

/* ====================== 章节内容优化 ====================== */
#tech-cards {
    position: relative;
}

/* 背景装饰元素 */
#tech-cards::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(54, 201, 88, 0.03) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* ====================== 响应式设计 ====================== */

/* 大屏幕优化 (≥1400px) */
@media (min-width: 1400px) {
    .tech-card-advanced {
        padding: 60px 48px;
    }

    .tech-card-icon {
        width: 88px;
        height: 88px;
    }

    .tech-card-icon i {
        width: 44px;
        height: 44px;
    }

    .tech-card-title {
        font-size: 30px;
    }

    .tech-card-text {
        font-size: 17px;
    }
}

/* 平板 (≤1199px) */
@media (max-width: 1199px) {
    .tech-card-advanced {
        padding: 48px 36px;
    }

    .tech-card-icon {
        width: 72px;
        height: 72px;
        margin-bottom: 28px;
    }

    .tech-card-icon i {
        width: 36px;
        height: 36px;
    }

    .tech-card-title {
        font-size: 26px;
        margin-bottom: 20px;
    }

    .tech-card-text {
        font-size: 15px;
        line-height: 1.8;
    }
}

/* 平板竖屏 (≤991px) */
@media (max-width: 991px) {
    .tech-card-advanced {
        padding: 44px 32px;
    }

    .tech-card-icon {
        width: 68px;
        height: 68px;
        margin-bottom: 24px;
    }

    .tech-card-icon i {
        width: 34px;
        height: 34px;
    }

    .tech-card-title {
        font-size: 24px;
        margin-bottom: 18px;
    }

    .tech-card-text {
        font-size: 15px;
    }

    /* 卡片在平板上保持两列，最后一个居中 */
    .row.g-4 > .col-md-6:last-child {
        margin: 0 auto;
    }
}

/* 移动端 (≤767px) */
@media (max-width: 767px) {
    .tech-card-advanced {
        padding: 40px 28px;
        margin-bottom: 24px;
    }

    .tech-card-icon {
        width: 64px;
        height: 64px;
        margin-bottom: 20px;
    }

    .tech-card-icon i {
        width: 32px;
        height: 32px;
    }

    .tech-card-title {
        font-size: 22px;
        margin-bottom: 16px;
    }

    .tech-card-title::after {
        bottom: -6px;
    }

    .tech-card-advanced:hover .tech-card-title::after {
        width: 60px;
    }

    .tech-card-text {
        font-size: 14px;
        line-height: 1.7;
    }

    .tech-card-advanced:hover {
        transform: translateY(-8px);
    }
}

/* 超小屏幕 (≤575px) */
@media (max-width: 575px) {
    .tech-card-advanced {
        padding: 36px 24px;
    }

    .tech-card-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 18px;
    }

    .tech-card-icon i {
        width: 30px;
        height: 30px;
    }

    .tech-card-title {
        font-size: 20px;
    }

    .tech-card-text {
        font-size: 14px;
    }
}

/* ====================== 动画性能优化 ====================== */
@media (prefers-reduced-motion: reduce) {
    .tech-card-advanced,
    .tech-card-icon,
    .tech-card-title,
    .tech-card-text {
        transition: none;
    }

    .tech-card-advanced::before,
    .tech-card-advanced::after,
    .tech-card-icon::before,
    .tech-card-title::after {
        transition: none;
    }
}

/* ====================== 3D 透视效果（可选）====================== */
.row.g-4 {
    perspective: 1200px;
}

.tech-card-advanced {
    transform-style: preserve-3d;
}

.tech-card-advanced:hover {
    transform: translateY(-12px) rotateX(2deg);
}

/* ====================== 高对比度模式支持 ====================== */
@media (prefers-contrast: high) {
    .tech-card-advanced {
        border-width: 2px;
    }

    .tech-card-title {
        font-weight: 800;
    }

    .tech-card-text {
        color: rgba(255, 255, 255, 0.9);
    }
}

/* ====================== 核心价值对比卡片样式 ====================== */
.core-value-comparison-card {
    position: relative;
    padding: 56px 48px;
    background: linear-gradient(135deg, rgba(23, 23, 23, 0.8) 0%, rgba(15, 15, 15, 0.95) 100%);
    border: 1px solid rgba(54, 201, 88, 0.2);
    border-radius: 4px;
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 顶部装饰线 - 全宽渐变 */
.core-value-comparison-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(54, 201, 88, 0.4) 20%,
        rgba(54, 201, 88, 0.8) 50%,
        rgba(54, 201, 88, 0.4) 80%,
        transparent 100%
    );
}

/* 背景光晕效果 */
.core-value-comparison-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(54, 201, 88, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.core-value-comparison-card:hover {
    border-color: rgba(54, 201, 88, 0.35);
    box-shadow:
        0 24px 64px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(54, 201, 88, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* 左侧内容区域 */
.comparison-left {
    padding-right: 48px;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.value-content {
    position: relative;
    z-index: 1;
}

/* 标题样式 - 带图标 */
.value-highlight-title {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 24px;
    line-height: 1.3;
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: -0.01em;
}

.value-highlight-title .title-icon {
    width: 32px;
    height: 32px;
    color: #fbbf24;
    stroke-width: 2;
    flex-shrink: 0;
    animation: pulse-icon 2s ease-in-out infinite;
}

@keyframes pulse-icon {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

/* 描述文字 */
.value-description {
    font-size: 16px;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 36px;
    letter-spacing: 0.02em;
}

/* 删除线样式 */
.text-strikethrough {
    text-decoration: line-through;
    text-decoration-color: rgba(255, 107, 107, 0.6);
    text-decoration-thickness: 2px;
    color: rgba(255, 255, 255, 0.4);
}

/* 高亮绿色文字 */
.text-highlight-green {
    color: #36c958;
    font-weight: 600;
    position: relative;
    padding: 0 4px;
}

/* 核心指标容器 */
.core-metrics {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

.metric-item {
    flex: 1;
    text-align: center;
}

.metric-value {
    font-size: 48px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.7) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.metric-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* 右侧对比区域 */
.comparison-right {
    padding-left: 48px;
}

.detection-comparison {
    position: relative;
    z-index: 1;
}

/* 对比区标题 */
.comparison-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.comparison-title {
    font-size: 22px;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
    letter-spacing: -0.01em;
}

.lock-icon {
    width: 20px;
    height: 20px;
    color: #36c958;
    stroke-width: 2;
    opacity: 0.7;
}

/* 检测项容器 */
.detection-item {
    margin-bottom: 32px;
}

.detection-item:last-child {
    margin-bottom: 0;
}

/* 标签区域 */
.detection-label {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 12px;
}

.label-text {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
}

.label-desc {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

/* 进度条容器 */
.progress-bar-wrapper {
    position: relative;
    height: 32px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* 进度条 */
.progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    border-radius: 16px;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    width: 0;
}

/* 传统 WAF/IAM 进度条 - 灰色 */
.progress-bar.traditional {
    background: linear-gradient(90deg,
        rgba(120, 120, 120, 0.6) 0%,
        rgba(100, 100, 100, 0.4) 100%
    );
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* ITDR 进度条 - 蓝绿渐变 */
.progress-bar.itdr {
    background: linear-gradient(90deg,
        #3b82f6 0%,
        #06b6d4 30%,
        #14b8a6 60%,
        #36c958 100%
    );
    box-shadow:
        inset 0 2px 4px rgba(255, 255, 255, 0.2),
        0 0 20px rgba(54, 201, 88, 0.3),
        0 4px 12px rgba(54, 201, 88, 0.2);
    position: relative;
    overflow: hidden;
}

/* ITDR 进度条动画光泽效果 */
.progress-bar.itdr::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 100%
    );
    animation: shine 3s ease-in-out infinite;
}

@keyframes shine {
    0% {
        left: -100%;
    }
    50%, 100% {
        left: 200%;
    }
}

/* 页面加载后触发进度条动画 */
.core-value-comparison-card.animate-bars .progress-bar {
    width: var(--bar-width, 0);
}

/* ====================== 响应式设计 ====================== */

/* 平板 (≤1199px) */
@media (max-width: 1199px) {
    .core-value-comparison-card {
        padding: 48px 40px;
    }

    .comparison-left {
        padding-right: 36px;
    }

    .comparison-right {
        padding-left: 36px;
    }

    .value-highlight-title {
        font-size: 26px;
    }

    .value-description {
        font-size: 15px;
    }

    .metric-value {
        font-size: 42px;
    }

    .metric-label {
        font-size: 12px;
    }

    .core-metrics {
        gap: 32px;
    }
}

/* 平板竖屏 (≤991px) */
@media (max-width: 991px) {
    .core-value-comparison-card {
        padding: 44px 36px;
    }

    .comparison-left {
        padding-right: 0;
        padding-bottom: 40px;
        margin-bottom: 40px;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .comparison-right {
        padding-left: 0;
    }

    .value-highlight-title {
        font-size: 24px;
    }

    .metric-value {
        font-size: 38px;
    }

    .core-metrics {
        gap: 24px;
        margin-top: 32px;
    }
}

/* 移动端 (≤767px) */
@media (max-width: 767px) {
    .core-value-comparison-card {
        padding: 36px 28px;
    }

    .value-highlight-title {
        font-size: 22px;
        gap: 10px;
    }

    .value-highlight-title .title-icon {
        width: 28px;
        height: 28px;
    }

    .value-description {
        font-size: 14px;
        line-height: 1.8;
        margin-bottom: 28px;
    }

    .core-metrics {
        gap: 20px;
        margin-top: 28px;
    }

    .metric-value {
        font-size: 32px;
    }

    .metric-label {
        font-size: 11px;
    }

    .comparison-left {
        padding-bottom: 32px;
        margin-bottom: 32px;
    }

    .comparison-header {
        margin-bottom: 24px;
        padding-bottom: 16px;
    }

    .comparison-title {
        font-size: 19px;
    }

    .detection-item {
        margin-bottom: 24px;
    }

    .label-text {
        font-size: 15px;
    }

    .label-desc {
        font-size: 12px;
    }

    .progress-bar-wrapper {
        height: 28px;
    }
}

/* 超小屏幕 (≤575px) */
@media (max-width: 575px) {
    .core-value-comparison-card {
        padding: 32px 24px;
    }

    .value-highlight-title {
        font-size: 20px;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .value-description {
        font-size: 13px;
    }

    .core-metrics {
        flex-direction: column;
        gap: 24px;
        text-align: left;
    }

    .metric-item {
        display: flex;
        align-items: center;
        gap: 16px;
    }

    .metric-value {
        font-size: 36px;
        margin-bottom: 0;
    }

    .metric-label {
        font-size: 12px;
        text-align: left;
    }

    .comparison-title {
        font-size: 17px;
    }

    .progress-bar-wrapper {
        height: 24px;
    }
}
