/* ============================================================
   SensePraxis 自定义样式（基于 Artelligence 主题）
   - 调整品牌主色（沿用青色科技感 + 橙黄点缀呼应 logo）
   - 新增首页 Hero 表单（参考长亮科技）
   - 新增 Sub Banner / 自定义页面区块
   ============================================================ */

:root {
    /* 在模板主色基础上微调：让 secondary 更柔和、primary 更稳重 */
    --sp-primary: #1a1f3a;        /* 深蓝紫 - 主色 */
    --sp-secondary: #2be0f7;      /* 青色 - 科技感点缀 */
    --sp-accent: #f5a623;         /* 橙色 - 呼应 logo 橙黄 */
    --sp-text-dark: #1a1f3a;
    --sp-text-gray: #5a6478;
    --sp-bg-light: #f6f8fb;
    --sp-bg-gradient: linear-gradient(135deg, #02162d 0%, #0a3d6b 50%, #36e0f7 100%);
}

/* ======= Header / Nav ======= */
.header .navbar-brand img {
    max-height: 84px;
    width: auto;
    /* logo 是横版（"感物知行 SensePraxis"），左侧深色 + 右侧灰色 */
}

.lang-switch a {
    color: var(--e-global-color-secondary);
    border: 1px solid rgba(43, 214, 247, 0.4);
    border-radius: 4px;
    padding: 4px 10px !important;
    margin-left: 8px;
    font-size: 13px;
    transition: all 0.2s ease;
}
.lang-switch a:hover {
    background: var(--e-global-color-secondary);
    color: #02162d !important;
}

/* ======= 首页产品矩阵卡片紧凑布局（col-lg-6 内 6 张卡片） ======= */
.service-section .service_contentbox .service-box {
    padding: 18px 10px;
    border-radius: 16px;
    margin-bottom: 6px;
}
.service-section .service_contentbox .service-box figure {
    height: 56px;
    width: 56px;
    line-height: 56px;
    margin-bottom: 10px;
}
.service-section .service_contentbox .service-box figure img {
    height: 28px;
    width: auto;
}
.service-section .service_contentbox .service-box h4 {
    font-size: 16px;
    line-height: 22px;
    margin-bottom: 6px;
}
.service-section .service_contentbox .service-box p {
    font-size: 13px;
    line-height: 18px;
    margin-bottom: 6px;
    text-align: left;
    padding: 0 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 36px;
}
.service-section .service_contentbox .box-top {
    padding-top: 0;
}

/* ======= 首页"客户说"区块（AI 生成配图 + 文字与图间距） ======= */
.testimonial-section .testimonial_wrapper {
    border-radius: 16px;
    overflow: hidden;
    min-height: 360px;
}
.testimonial-section .testimonial_wrapper figure {
    display: block;
    margin: 0;
}
.testimonial-section .testimonial_wrapper figure img {
    border-radius: 16px;
}
.testimonial-section .testimonial_content {
    padding-left: 24px;
}

/* ======= 页脚备案号 icon 样式 ======= */
.footer-license {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.footer-license a,
.footer-license span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.footer-beian-icon {
    font-size: 14px;
    color: var(--sp-secondary);
    opacity: 0.85;
}
.footer-beian-divider {
    color: rgba(255, 255, 255, 0.4);
    margin: 0 2px;
}
.footer-beian-pending {
    color: rgba(255, 255, 255, 0.65);
    font-size: 14px;
}

/* ======= 页脚微信图标 + 二维码弹窗 ======= */
.footer-wechat-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    padding: 8px 14px;
    background: rgba(43, 224, 247, 0.12);
    border: 1px solid rgba(43, 224, 247, 0.4);
    border-radius: 6px;
    color: #ffffff !important;
    cursor: pointer;
    transition: all 0.2s ease;
}
.footer-wechat-trigger:hover {
    background: rgba(43, 224, 247, 0.25);
    border-color: var(--sp-secondary);
}
.footer-wechat-icon {
    color: #07c160;
    font-size: 18px;
}
.footer-wechat-modal {
    background: #ffffff;
    border-radius: 12px;
    border: none;
    max-width: 360px;
    margin: auto;
}
.footer-wechat-close {
    position: absolute;
    top: 12px;
    right: 12px;
    color: #1a1f3a;
    opacity: 0.6;
}
.footer-wechat-body {
    padding: 32px 24px 24px;
    text-align: center;
}
.footer-wechat-title {
    color: #1a1f3a;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
}
.footer-wechat-title i {
    color: #07c160;
    margin-right: 6px;
}
.footer-wechat-qr {
    width: 220px;
    height: 220px;
    margin: 0 auto 16px;
    display: block;
    border: 1px solid #eee;
    padding: 8px;
    border-radius: 8px;
}
.footer-wechat-hint {
    color: #5a6478;
    font-size: 14px;
    line-height: 1.7;
    margin: 0;
}
.modal-backdrop {
    background: rgba(0, 0, 0, 0.65);
}

/* ======= sub-banner 整体放大：标题 + 正文都更大 ======= */
.sub-banner_content h1 {
    font-size: 56px !important;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 28px !important;
}
.sub-banner_content .sub-banner-body {
    max-width: 820px;
    margin: 0 auto 18px;
    line-height: 1.95;
    font-size: 20px;
    color: rgba(255, 255, 255, 0.95);
    text-align: left;
    display: inline-block;
}
.sub-banner_content .sub-banner-body:last-child {
    margin-bottom: 0;
}
.sub-banner_content .sub-banner-body strong {
    color: #ffffff;
    font-weight: 600;
}

/* ======= 创始人介绍（about.html） ======= */
.founder-row {
    background: #ffffff;
    border-radius: 16px;
    padding: 40px 32px;
    box-shadow: 0 6px 30px rgba(2, 22, 45, 0.08);
}
.founder-portrait-frame {
    display: inline-block;
    max-width: 280px;
    margin: 0 auto;
}
.founder-portrait-img {
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(2, 22, 45, 0.12);
}
.founder-bio {
    text-align: left;
}
.founder-bio-text {
    line-height: 1.85;
    color: #2a3f5;
    margin-bottom: 18px;
    text-align: justify;
}
.founder-bio-text:last-child {
    margin-bottom: 0;
}
@media (max-width: 991.98px) {
    .founder-bio {
        text-align: left;
        margin-top: 24px;
    }
}

/* ======= 页脚整体底部 padding 兜底 ======= */
.footer-section {
    padding-bottom: 80px !important;
}

/* ======= 页脚内嵌微信二维码块 ======= */
.footer-wechat-embed {
    margin: 0 0 20px;
    padding: 0;
    max-width: 200px;
    margin-left: auto;
    text-align: right;
}
.footer-wechat-title-inline {
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    margin: 0 0 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: flex-end;
}
.footer-wechat-qr-embed {
    width: 140px;
    height: 140px;
    display: block;
    background: #ffffff;
    padding: 6px;
    border-radius: 6px;
    margin: 0 0 10px auto;
}
.footer-wechat-hint-inline {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    line-height: 1.5;
    margin: 0;
    text-align: right;
}
.footer-section .row > [class*="col-"] {
    display: flex;
    align-items: center;
}
.footer-section .footer_logo_content,
.footer-section .footer_license_block {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
}
.footer-company-info {
    margin-top: 0;
}
.footer-company-info p {
    margin-bottom: 8px;
    line-height: 1.8;
}
.footer-company-name {
    font-weight: 500;
    margin-bottom: 16px !important;
}
.footer-company-address,
.footer-company-zip,
.footer-company-email {
    opacity: 0.85;
}
.footer-company-email {
    margin-bottom: 0;
}
.footer_license_block {
    padding-top: 0;
    padding-bottom: 20px;
}
.footer-license-item {
    margin-bottom: 14px;
    opacity: 0.95;
}

/* ======= 版权 + ICP 移到左列（在英文名下面） ======= */
.footer-copyright-moved {
    margin: 0 0 6px !important;
    opacity: 0.95;
    font-size: 13px;
}
.footer-beian-moved {
    margin: 0 0 0 !important;
    opacity: 0.85;
    font-size: 13px;
}
.footer-beian-moved a {
    color: #ffffff !important;
}
.footer-beian-moved .footer-beian-icon {
    color: #2be0f7;
}
/* 地址块：上方留 18px（约一行高度）形成"空一行"效果 */
.footer-address-moved {
    margin-top: 18px !important;
}

/* ======= 右列只保留二维码块：对齐到右列顶部 ======= */
.footer-wechat-only {
    justify-content: flex-start !important;
    padding-top: 0 !important;
}
.footer-wechat-only .footer-wechat-embed {
    margin-bottom: 0 !important;
}

/* ======= 首页"核心数字"区块大字号数字（5+） ======= */
.counter-section .counter-image1 {
    border-radius: 16px;
    overflow: hidden;
}
.counter-section .counter-image1 img {
    border-radius: 16px;
}
.counter-section .counter_value_big,
.counter-section .counter-value-big {
    font-size: 96px;
    line-height: 100px;
    font-weight: 800;
    color: var(--sp-primary);
    margin-bottom: 8px;
}
.counter-section .counter-item p {
    font-size: 16px;
    color: var(--sp-text-gray);
    margin-top: 0;
}
.choose-section .choose_content {
    position: relative;
    z-index: 2;
}
.choose-section .choose_wrapper .choose-image {
    z-index: 1;
    position: absolute;
    top: -40px;
    left: 160px;
}
.choose-section .choose_wrapper .choose-image img {
    width: 440px;
    max-width: none;
}
.choose-section .choose_content h5,
.choose-section .choose_content h2,
.choose-section .choose_content h4,
.choose-section .choose_content p,
.choose-section .choose_content .text {
    color: #ffffff;
}
.choose-section .choose_content h5 {
    color: var(--sp-secondary);
}

/* ======= 首页"为什么选择感物知行"区块 H2 单行显示 ======= */
.about-section .about_content h2 {
    font-size: 34px;
    line-height: 42px;
    white-space: nowrap;
    margin: 0 0 18px 0;
}

/* ======= Banner 主标题强调字 ======= */
.banner_content h1 .highlight {
    color: var(--e-global-color-secondary);
    background: linear-gradient(90deg, #2be0f7, #36e0f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ======= Banner 主标题字号（中等屏缩小避免溢出） ======= */
@media (min-width: 1200px) and (max-width: 1700px) {
    .banner-section .banner_content h1 {
        font-size: 52px;
        line-height: 64px;
        max-width: 560px;
    }
    .banner-section .banner_content p {
        font-size: 16px;
        line-height: 24px;
        max-width: 580px;
        padding-right: 30px;
    }
    .banner-section .banner_content h5 {
        max-width: 560px;
    }
}
@media (min-width: 1700px) {
    .banner-section .banner_content h1 {
        font-size: 58px;
        line-height: 68px;
        max-width: 640px;
    }
    .banner-section .banner_content p {
        max-width: 660px;
    }
}

/* ======= 首页 Hero 表单（参考长亮科技） ======= */
.hero-contact-section {
    background: linear-gradient(135deg, #02162d 0%, #0a3d6b 100%);
    padding: 50px 0 60px;
    position: relative;
    z-index: 2;
}
.hero-contact-wrapper h3 {
    color: #fff;
    font-size: 26px;
    font-weight: 600;
}
.hero-contact-form .form-control {
    height: 48px;
    border-radius: 6px;
    border: none;
    padding: 10px 16px;
    font-size: 14px;
    background: #ffffff;
    color: #1a1f3a;
}
.hero-contact-form .form-control:focus {
    box-shadow: 0 0 0 3px rgba(43, 224, 247, 0.3);
    outline: none;
}
.hero-contact-form .btn-primary {
    background: linear-gradient(90deg, #f5a623, #ffb84d);
    border: none;
    color: #02162d;
    font-weight: 600;
    height: 48px;
    width: 100%;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-size: 15px;
}
.hero-contact-form .btn-primary:hover {
    background: linear-gradient(90deg, #e89818, #f5a623);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(245, 166, 35, 0.35);
}

/* ======= Sub Banner（内页通用 banner） ======= */
.sub-banner-outer {
    background: var(--sp-bg-gradient);
    position: relative;
}
/* 修复：内页 header 与首页统一左右 padding（避免 logo 贴最左） */
.sub-banner-outer .header {
    padding: 0 280px 0 265px;
}
.sub-banner-section {
    padding: 50px 0 50px;
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: auto;
}
.sub-banner-section > .container {
    width: 100%;
}
.sub-banner_content h1 {
    color: #fff;
    font-size: 48px;
    margin-bottom: 12px;
}
.sub-banner_content p {
    color: rgba(255,255,255,0.85);
    font-size: 18px;
    margin-bottom: 18px;
}
.breadcrumb-list {
    display: inline-flex;
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 0;
    color: rgba(255,255,255,0.7);
    font-size: 14px;
}
.breadcrumb-list li::after {
    content: "›";
    margin-left: 12px;
    color: var(--sp-accent);
}
.breadcrumb-list li:last-child::after { content: ""; }
.breadcrumb-list a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
}
.breadcrumb-list a:hover { color: var(--sp-secondary); }

/* ======= 时间线（关于我们） ======= */
.timeline {
    border-left: 3px solid var(--sp-secondary);
    padding-left: 24px;
    max-width: 720px;
    margin: 0 auto;
}

/* ======= about.html 发展历程 section：白底深字（覆盖模板 choose-section 深蓝背景） ======= */
.about-timeline-section {
    background: #ffffff !important;
    background-color: #ffffff !important;
    color: #1a1f3a;
}
.about-timeline-section .choose_content h5 {
    color: var(--sp-secondary);
}
.about-timeline-section .choose_content h2 {
    color: #1a1f3a;
}
.about-timeline-section .timeline-item::before {
    border-color: #ffffff !important;
}
.timeline-item {
    position: relative;
    padding: 16px 0 24px;
}
.timeline-item::before {
    content: "";
    position: absolute;
    left: -32px;
    top: 22px;
    width: 14px;
    height: 14px;
    background: var(--sp-secondary);
    border: 3px solid #02162d;
    border-radius: 50%;
}
.timeline-year {
    color: var(--sp-secondary);
    font-weight: 700;
    font-size: 22px;
    margin-bottom: 6px;
}
.timeline-content h4 {
    color: var(--sp-text-dark);
    font-size: 20px;
    margin-bottom: 6px;
}
.timeline-content p {
    color: var(--sp-text-gray);
    font-size: 16px;
    line-height: 26px;
}
.timeline-content .timeline-list {
    margin: 8px 0 0 0;
    padding-left: 20px;
    color: var(--sp-text-gray);
    font-size: 16px;
    line-height: 1.7;
}
.timeline-content .timeline-list li {
    margin-bottom: 4px;
}

/* ======= 定价助手 3 张截图细节 ======= */
.pricing-assistant-details .choose-image img {
    border-radius: 8px;
    box-shadow: 0 6px 24px rgba(2, 22, 45, 0.1);
}
.pricing-assistant-caption {
    text-align: center;
    color: var(--sp-text-gray);
    font-size: 14px;
    margin-top: 12px;
}

/* ======= 私域获客助手：两张竖屏图等比缩小 20% + 居中 ======= */
.private-domain-mobile-img {
    width: 80%;
    height: auto;
    margin-left: auto;
    margin-right: auto;
    display: block;
}

/* ======= Culture Banner ======= */
.culture-banner {
    padding: 80px 0;
    background: #fff;
}
.culture-text h5 {
    color: var(--sp-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 16px;
    margin-bottom: 14px;
}
.culture-text h2 {
    color: var(--sp-text-dark);
    margin-bottom: 20px;
}
.culture-text p {
    color: var(--sp-text-gray);
    line-height: 32px;
}
.culture-image img {
    border-radius: 8px;
}

/* ======= News 卡片 ======= */
.news-section { padding: 80px 0; background: var(--sp-bg-light); }
.news-card {
    background: #fff;
    border-radius: 8px;
    padding: 18px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: all 0.2s ease;
    height: 100%;
}
.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.1);
}
.news-card .news-image {
    overflow: hidden;
    border-radius: 6px;
    margin-bottom: 16px;
}
.news-card .news-date {
    display: inline-block;
    font-size: 12px;
    color: var(--sp-secondary);
    background: rgba(43, 224, 247, 0.08);
    padding: 4px 10px;
    border-radius: 12px;
    margin-bottom: 10px;
}
.news-card h4 {
    color: var(--sp-text-dark);
    font-size: 18px;
    line-height: 26px;
    margin-bottom: 10px;
}
.news-card p {
    color: var(--sp-text-gray);
    font-size: 15px;
    line-height: 24px;
}

/* ======= Careers 职位列表 ======= */
.careers-section { padding: 80px 0; background: #fff; }
.job-list { display: grid; gap: 20px; }
.job-item {
    background: var(--sp-bg-light);
    border-left: 4px solid var(--sp-secondary);
    padding: 22px 26px;
    border-radius: 0 8px 8px 0;
    transition: all 0.2s ease;
}
.job-item:hover {
    border-left-color: var(--sp-accent);
    background: #fff;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}
.job-item h4 {
    color: var(--sp-text-dark);
    font-size: 20px;
    margin-bottom: 4px;
}
.job-meta {
    color: var(--sp-accent);
    font-size: 13px;
    margin-bottom: 10px;
}

/* ======= Contact 页面 ======= */
.contact-section { padding: 80px 0; background: #fff; }
.contact_content h5 {
    color: var(--sp-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 16px;
    margin-bottom: 14px;
}
.contact_content h2 {
    color: var(--sp-text-dark);
    margin-bottom: 16px;
}
.contact_content > p {
    color: var(--sp-text-gray);
    margin-bottom: 30px;
}
.contact-info-list { list-style: none; padding: 0; margin: 0; }
.contact-info-list li {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 24px;
}
.contact-info-list .icon img {
    max-width: 36px;
}
.contact-info-list h4 {
    color: var(--sp-text-dark);
    font-size: 18px;
    margin-bottom: 6px;
}
.contact-info-list p {
    color: var(--sp-text-gray);
    font-size: 15px;
}
.contact-info-list a {
    color: var(--sp-text-gray);
    text-decoration: none;
}
.contact-info-list a:hover { color: var(--sp-secondary); }

.contact_form_wrapper {
    background: var(--sp-bg-light);
    padding: 32px;
    border-radius: 8px;
}
.contact_form_wrapper .form-control {
    height: 46px;
    border-radius: 6px;
    border: 1px solid #e0e6ed;
    padding: 8px 14px;
    font-size: 14px;
    background: #fff;
}
.contact_form_wrapper textarea.form-control { height: auto; }
.contact_form_wrapper .form-control:focus {
    border-color: var(--sp-secondary);
    box-shadow: 0 0 0 3px rgba(43, 224, 247, 0.15);
    outline: none;
}
.contact_form_wrapper .btn-primary {
    background: linear-gradient(90deg, #1a1f3a, #2a3060);
    border: none;
    color: #fff;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 6px;
    transition: all 0.2s ease;
}
.contact_form_wrapper .btn-primary:hover {
    background: linear-gradient(90deg, #2a3060, #1a1f3a);
    transform: translateY(-1px);
}

/* ======= Footer logo ======= */
.footer-logo img {
    max-height: 60px;
    width: auto;
    background: #fff;
    padding: 6px 10px;
    border-radius: 6px;
}

/* ======= 统一页面 section 间距 ======= */
.about-section,
.service-section,
.choose-section,
.counter-section,
.testimonial-section,
.partner-section,
.faq-section,
.case-study-section {
    padding-top: 90px;
    padding-bottom: 90px;
}

/* ======= 移除模板 footer 背景对中文 logo 的干扰 ======= */
.footer-section {
    background-color: #02162d;
}

/* ======= 强制统一 首页/非首页 navbar 与 logo 的相对位置 ======= */
.banner_outer .navbar,
.sub-banner-outer .navbar {
    padding: 42px 0 !important;
    align-items: center;
}
.banner_outer .navbar-brand,
.sub-banner-outer .navbar-brand {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-right: 0 !important;
}
.banner_outer .header,
.sub-banner-outer .header {
    padding-left: 265px !important;
    padding-right: 280px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* ======= Partners / Cases 标题小标 ======= */
.service-section h5,
.choose-section h5,
.case-study-section h5,
.testimonial-section h5,
.partner-section h5,
.about-section h5,
.culture-text h5,
.contact_content h5 {
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 16px;
}

/* ======= Responsive ======= */
@media (max-width: 991px) {
    .hero-contact-form .col-lg-2 { flex: 0 0 50%; max-width: 50%; }
    .hero-contact-form .col-lg-2:last-child { flex: 0 0 100%; max-width: 100%; }
    .hero-contact-form .btn-primary { margin-top: 8px; }
    .sub-banner_content h1 { font-size: 36px; }
}
@media (max-width: 575px) {
    .hero-contact-form .col-lg-2 { flex: 0 0 100%; max-width: 100%; }
    .sub-banner_content h1 { font-size: 28px; }
}