/* ========================================================================
   ITDR 网关 - 专属身份安全策略咨询模块（调整版）
   ======================================================================== */

/* ====================== 咨询模块容器 ====================== */
.consultation-section {
    padding-top: 100px;
    padding-bottom: 100px;
}

/* ====================== 左侧内容区域 ====================== */
.consultation-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.consultation-title {
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.consultation-desc {
    font-size: 16px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
}

.consultation-desc .text-highlight {
    color: #36c958;
    font-weight: 600;
}

/* ====================== 服务特性卡片容器 ====================== */
.consultation-services {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 8px;
}

/* 单个服务卡片 */
.consultation-services .service-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.consultation-services .service-item:hover {
    background: rgba(54, 201, 88, 0.05);
    border-color: rgba(54, 201, 88, 0.2);
    transform: translateX(8px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

/* 服务图标 */
.consultation-services .service-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(54, 201, 88, 0.15) 0%, rgba(54, 201, 88, 0.05) 100%);
    border: 1px solid rgba(54, 201, 88, 0.25);
    border-radius: 50%;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.consultation-services .service-item:hover .service-icon {
    transform: scale(1.1);
    border-color: rgba(54, 201, 88, 0.4);
    box-shadow: 0 0 20px rgba(54, 201, 88, 0.3);
}

.consultation-services .service-icon i,
.consultation-services .service-icon svg {
    width: 20px !important;
    height: 20px !important;
    color: #36c958;
    stroke: #36c958;
    stroke-width: 2;
}

/* 服务文本内容 */
.consultation-services .service-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.consultation-services .service-text h5 {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
    line-height: 1.4;
}

.consultation-services .service-text p {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

/* ====================== 右侧联系信息容器 ====================== */
.consultation-contact-right {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 24px;
    background: linear-gradient(135deg, rgba(54, 201, 88, 0.03) 0%, rgba(6, 11, 20, 0.6) 100%);
    border: 1px solid rgba(54, 201, 88, 0.15);
    border-radius: 4px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
}

/* ====================== 上部分：并排容器 ====================== */
.contact-top-row {
    display: flex;
    gap: 14px;
    align-items: stretch;  /* 确保子元素等高 */
}

/* ====================== 右侧二维码区域 ====================== */
.qrcode-section-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    flex-shrink: 0;
}

.qrcode-section-right .qrcode-group {
    display: flex;
    flex-direction: row;
    gap: 14px;
    align-items: center;
}

.qrcode-section-right .qrcode-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.qrcode-section-right .qrcode-img-wrapper {
    width: 100px;
    height: 100px;
    padding: 5px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 2px;
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(54, 201, 88, 0.15);
    transition: all 0.3s ease;
}

.qrcode-section-right .qrcode-card:hover .qrcode-img-wrapper {
    transform: translateY(-4px);
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(54, 201, 88, 0.3);
}

.qrcode-section-right .qrcode-img-wrapper img {
    width: 100%;
    height: 100%;
    border-radius: 2px;
    object-fit: cover;
}

.qrcode-section-right .expert-label {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.5px;
}

.qrcode-section-right .qrcode-hint {
    font-size: 14px;
    color: #36c958;
    margin: 0;
    font-weight: 500;
    letter-spacing: 0.3px;
    opacity: 0.9;
}

/* ====================== 右侧联系方式区域 ====================== */
.contact-info-section-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    flex: 1;
}

.contact-info-section-right .contact-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.contact-info-section-right .contact-card:hover {
    background: rgba(54, 201, 88, 0.05);
    border-color: rgba(54, 201, 88, 0.2);
    transform: translateX(4px);
}

.contact-info-section-right .contact-icon-wrapper {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(54, 201, 88, 0.15) 0%, rgba(54, 201, 88, 0.05) 100%);
    border: 1px solid rgba(54, 201, 88, 0.25);
    border-radius: 50%;
    flex-shrink: 0;
}

.contact-info-section-right .contact-icon-wrapper i,
.contact-info-section-right .contact-icon-wrapper svg {
    width: 16px !important;
    height: 16px !important;
    color: #36c958;
    stroke: #36c958;
    stroke-width: 2;
    flex-shrink: 0;
}

.contact-info-section-right .contact-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.contact-info-section-right .contact-label {
    font-size: 11px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.contact-info-section-right .contact-value {
    font-size: 15px;
    font-weight: 600;
    color: #FFFFFF;
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    letter-spacing: 0.3px;
}

.contact-info-section-right .contact-value:hover {
    color: #36c958;
}

/* ====================== 预约按钮区域 ====================== */
.appointment-btn-wrapper {
    flex-shrink: 0;
}

.consultation-appointment-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;

    /* 字体优化 */
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.08em;

    /* 尺寸优化 */
    padding: 14px 32px;

    /* 颜色 - 品牌渐变 */
    color: #ffffff;
    background: linear-gradient(135deg, #36c958 0%, #2ba849 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 2px;

    /* 阴影 - 悬浮效果 */
    box-shadow:
        0 8px 24px rgba(54, 201, 88, 0.25),
        0 4px 12px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);

    /* 过渡 */
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

/* 按钮光泽效果层 */
.consultation-appointment-btn::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%);
    transition: left 0.6s ease;
    z-index: 1;
}

/* 按钮背景装饰粒子 */
.consultation-appointment-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%,
        rgba(255, 255, 255, 0.1) 0%,
        transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

/* 文字和图标层级 */
.consultation-appointment-btn span,
.consultation-appointment-btn i {
    position: relative;
    z-index: 2;
}

.consultation-appointment-btn i {
    font-size: 16px;
    transition: transform 0.3s ease;
}

/* Hover状态 - 悬浮升起 */
.consultation-appointment-btn:hover {
    color: #ffffff;
    background: linear-gradient(135deg, #3ed55f 0%, #32c050 100%);
    border-color: rgba(255, 255, 255, 0.3);

    /* 悬浮升起 */
    transform: translateY(-4px);

    /* 增强阴影 */
    box-shadow:
        0 16px 40px rgba(54, 201, 88, 0.35),
        0 8px 20px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Hover时光泽扫过 */
.consultation-appointment-btn:hover::before {
    left: 100%;
}

/* Hover时背景粒子显现 */
.consultation-appointment-btn:hover::after {
    opacity: 1;
}

/* Hover时箭头向右移动 */
.consultation-appointment-btn:hover i {
    transform: translateX(4px);
}

/* Active状态 - 按下效果 */
.consultation-appointment-btn:active {
    transform: translateY(-2px);
    box-shadow:
        0 8px 20px rgba(54, 201, 88, 0.3),
        0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ====================== 英文标签自适应宽度 ====================== */
.consultation-section .section-caption-fancy {
    display: inline-block !important;
    width: auto !important;
    max-width: fit-content;
}

/* ====================== 左右底部对齐（所有页面）====================== */
/* 覆盖 solutions-tabs.css 中的 align-items: stretch */
.consultation-section .row {
    display: flex !important;
    align-items: flex-end !important;  /* 让左右两列底部对齐 */
}

.consultation-section .col-lg-6 {
    margin-bottom: 0 !important;  /* 移除 Bootstrap 的 mb-md-50 等类的影响 */
}

/* 桌面端确保对齐生效 */
@media (min-width: 992px) {
    .consultation-section .row {
        align-items: flex-end !important;
    }
}

/* ====================== 响应式设计 ====================== */

/* 平板 (768px - 1199px) */
@media (max-width: 1199px) {
    .contact-top-row {
        gap: 14px;
    }

    .consultation-contact-right {
        padding: 24px;
        gap: 18px;
    }

    .qrcode-section-right {
        padding: 10px 14px;
    }

    .qrcode-section-right .qrcode-img-wrapper {
        width: 75px;
        height: 75px;
    }

    .contact-info-section-right {
        gap: 8px;
    }

    .contact-info-section-right .contact-card {
        padding: 10px 14px;
    }

    .contact-info-section-right .contact-icon-wrapper {
        width: 36px;
        height: 36px;
    }

    .consultation-appointment-btn {
        font-size: 14px;
        padding: 14px 32px;
    }
}

/* 移动端 (≤991px) */
@media (max-width: 991px) {
    .consultation-section .row {
        flex-direction: column;
    }

    .consultation-contact-right {
        margin-top: 40px;
    }

    .contact-top-row {
        flex-direction: column;
        gap: 20px;
    }

    .qrcode-section-right {
        width: 100%;
    }

    .qrcode-section-right .qrcode-group {
        flex-direction: row;
        gap: 20px;
    }
}

/* 移动端 (≤767px) */
@media (max-width: 767px) {
    .consultation-contact-right {
        padding: 20px;
        gap: 16px;
    }

    .contact-top-row {
        gap: 12px;
    }

    .qrcode-section-right {
        padding: 12px 16px;
    }

    .qrcode-section-right .qrcode-group {
        gap: 14px;
    }

    .qrcode-section-right .qrcode-img-wrapper {
        width: 70px;
        height: 70px;
    }

    .contact-info-section-right {
        gap: 8px;
    }

    .contact-info-section-right .contact-card {
        padding: 10px 12px;
    }

    .contact-info-section-right .contact-icon-wrapper {
        width: 32px;
        height: 32px;
    }

    .contact-info-section-right .contact-icon-wrapper i,
    .contact-info-section-right .contact-icon-wrapper svg {
        width: 14px !important;
        height: 14px !important;
    }

    .contact-info-section-right .contact-value {
        font-size: 14px;
    }

    .consultation-appointment-btn {
        font-size: 13px;
        padding: 13px 28px;
    }
}

/* ====================== 响应式：移动端 ====================== */
@media (max-width: 991px) {
    .consultation-title {
        font-size: 28px;
    }

    .consultation-desc {
        font-size: 15px;
    }

    .consultation-services .service-item {
        padding: 16px 18px;
    }

    .consultation-services .service-icon {
        width: 36px;
        height: 36px;
    }

    .consultation-services .service-icon i,
    .consultation-services .service-icon svg {
        width: 18px !important;
        height: 18px !important;
    }

    .consultation-services .service-text h5 {
        font-size: 15px;
    }

    .consultation-services .service-text p {
        font-size: 13px;
    }
}

@media (max-width: 767px) {
    .consultation-title {
        font-size: 24px;
    }

    .consultation-desc {
        font-size: 14px;
        line-height: 1.7;
    }

    .consultation-services {
        gap: 12px;
    }

    .consultation-services .service-item {
        padding: 14px 16px;
    }
}

/* ====================== 可访问性支持 ====================== */
@media (prefers-reduced-motion: reduce) {
    .consultation-contact-right,
    .qrcode-img-wrapper,
    .contact-card,
    .consultation-appointment-btn,
    .consultation-services .service-item,
    .consultation-services .service-icon {
        transition: none;
    }
}

/* Focus 状态（键盘导航） */
.consultation-appointment-btn:focus-visible {
    outline: 2px solid rgba(54, 201, 88, 0.6);
    outline-offset: 4px;
}
