/* =========================================
   ITDR Gateway Banner Enhancement Styles
   高端、国际化的产品页面Banner样式
   ========================================= */

/* 注意：蓝绿渐变遮罩样式 bg-bluegreen-alpha-xx 已添加到 style.css 中 */

/* =========================================
   CTA Buttons 区域优化
   ========================================= */

/* 按钮通用样式 - 确保高度一致 */
.btn-green,
.btn-border-w {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 32px !important;
    height: 48px !important;
    min-height: 48px !important;
    max-height: 48px !important;
    line-height: 48px !important;
    vertical-align: middle !important;
    box-sizing: border-box !important;
    font-size: 13px !important;
}

/* 主按钮 - 预约演示（绿色渐变） */
.btn-green {
    position: relative;
    background: linear-gradient(135deg, #36c958 0%, #2fb84e 100%) !important;
    border: 2px solid transparent !important;
    box-shadow: 0 4px 16px rgba(54, 201, 88, 0.25), 0 0 24px rgba(54, 201, 88, 0.1) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    overflow: hidden;
}

.btn-green::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.btn-green:hover::before {
    left: 100%;
}

.btn-green:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 24px rgba(54, 201, 88, 0.35), 0 0 40px rgba(54, 201, 88, 0.15) !important;
    background: linear-gradient(135deg, #2fb84e 0%, #36c958 100%) !important;
}

.btn-green:active {
    transform: translateY(0) !important;
}

/* 次要按钮 - 产品白皮书（白色边框） */
.btn-border-w {
    position: relative;
    background: transparent !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    color: #ffffff !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.btn-border-w::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: inherit;
    z-index: -1;
}

.btn-border-w:hover {
    border-color: rgba(255, 255, 255, 0.6) !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 16px rgba(255, 255, 255, 0.1) !important;
}

.btn-border-w:hover::before {
    opacity: 1;
}

.btn-border-w:active {
    transform: translateY(0) !important;
}

/* 按钮图标优化 */
.btn-green [data-lucide],
.btn-border-w [data-lucide] {
    width: 18px !important;
    height: 18px !important;
    flex-shrink: 0;
    margin-right: 8px;
    margin-left: 0;
}


/* =========================================
   产品数据概览区域 - 紧密表格卡片样式
   ========================================= */

/* 卡片容器 - 无边框紧密相连 */
.stats-card {
    position: relative;
    padding: 45px 12px 40px;
    background: rgba(0, 0, 0, 0.2);
    border: none;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    text-align: center;
    overflow: hidden;
}

/* 最后一个卡片也保留右边框 */
.stats-card:last-child {
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

/* 悬停效果 - 背景变绿色 */
.stats-card:hover {
    background: linear-gradient(135deg, #36c958 0%, #2fb84e 100%) !important;
    transform: scale(1.02);
    z-index: 10;
    box-shadow: 0 10px 30px rgba(54, 201, 88, 0.25);
}

/* 数字区域 - 进一步缩小字体 */
.stats-card .stats-number {
    font-size: 36px;
    font-weight: 700;
    line-height: 1;
    color: #ffffff;
    letter-spacing: -0.02em;
    white-space: nowrap;
    margin-bottom: 0;
}

/* 数字本身 */
.stats-card .count-number {
    font-variant-numeric: tabular-nums;
    color: #ffffff;
}

/* 数字内联的符号和单位（%、s、改造、W+等） */
.stats-card .stats-symbol,
.stats-card .stats-unit {
    font-size: 16px;
    font-weight: 500;
    margin: 0 3px;
    color: rgba(255, 255, 255, 0.8);
    vertical-align: baseline;
}

/* 标签文字 - 描述性文字 */
.stats-card .stats-label {
    font-size: 14px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.65);
    letter-spacing: 0.02em;
    line-height: 1.4;
    margin-top: 15px;
    white-space: nowrap;
}

/* Hover 状态的文字颜色增强 */
.stats-card:hover .stats-label {
    color: rgba(255, 255, 255, 0.95);
}

.stats-card:hover .stats-symbol,
.stats-card:hover .stats-unit {
    color: rgba(255, 255, 255, 0.95);
}


/* =========================================
   响应式优化
   ========================================= */

/* 平板设备 */
@media (max-width: 991px) {
    .stats-card {
        padding: 40px 10px 35px;
        min-height: 180px;
    }

    .stats-card .stats-number {
        font-size: 36px;
    }

    .stats-card .stats-symbol,
    .stats-card .stats-unit {
        font-size: 16px;
    }

    .stats-card .stats-label {
        font-size: 10px;
        margin-top: 12px;
    }
}

/* 手机设备 */
@media (max-width: 767px) {
    /* 按钮堆叠优化 */
    .btn-large {
        width: 100%;
        max-width: 280px;
        margin: 8px auto !important;
    }

    /* 卡片优化 */
    .stats-card {
        padding: 35px 10px 30px;
        min-height: 170px;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    }

    .stats-card:last-child {
        border-bottom: none;
    }

    .stats-card .stats-number {
        font-size: 32px;
    }

    .stats-card .stats-symbol,
    .stats-card .stats-unit {
        font-size: 14px;
    }

    .stats-card .stats-label {
        font-size: 10px;
        margin-top: 12px;
    }
}

/* 小屏手机 */
@media (max-width: 480px) {
    .stats-card {
        padding: 30px 8px 25px;
        min-height: 150px;
    }

    .stats-card .stats-number {
        font-size: 28px;
    }

    .stats-card .stats-symbol,
    .stats-card .stats-unit {
        font-size: 12px;
    }

    .stats-card .stats-label {
        font-size: 9px;
    }
}


/* =========================================
   卡片高级视觉效果
   ========================================= */

/* 卡片光晕效果（可选） */
.stats-card::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.12) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: -1;
}

.stats-card:hover::after {
    width: 150px;
    height: 150px;
    opacity: 1;
}


/* =========================================
   加载动画优化
   ========================================= */

/* 数字计数动画准备 */
.count-number {
    display: inline-block;
    transition: all 0.3s ease;
}

/* WOW.js 动画增强 */
.stats-card.wow {
    visibility: hidden;
}

.stats-card.wow.animated {
    visibility: visible;
}


/* =========================================
   可访问性优化
   ========================================= */

/* 聚焦状态 */
.btn:focus-visible {
    outline: 2px solid #36c958;
    outline-offset: 4px;
}

/* 卡片聚焦状态 */
.stats-card:focus-visible {
    outline: 2px solid #36c958;
    outline-offset: 2px;
}

/* 减少动画（用户偏好设置） */
@media (prefers-reduced-motion: reduce) {
    .stats-card,
    .btn-green,
    .btn-border-w {
        transition: none !important;
        animation: none !important;
    }

    .stats-card::after,
    .btn-green::before {
        display: none !important;
    }
}


/* =========================================
   暗色模式专属优化
   ========================================= */

.dark-mode .stats-card .stats-number {
    text-shadow: 0 0 20px rgba(54, 201, 88, 0.08);
}

.dark-mode .stats-card:hover .stats-number,
.dark-mode .stats-card-active .stats-number {
    text-shadow: 0 0 30px rgba(54, 201, 88, 0.15);
}
