/* ==========================================================================
   1. 核心变量与基础重置
   ========================================================================== */
:root {
    --jx-red: #C8161D;          /* 广电主红 */
    --jx-red-dark: #A51218;    /* 深红 */
    --jx-gold: #D4AF37;         /* 广电金 */
    --text-main: #333333;       /* 主文字 */
    --text-gray: #6B7280;       /* 灰文字 */
    --bg-light: #F9FAFB;        /* 全局浅灰背景 */
    --transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.bg-jx-red { background-color: var(--jx-red); }
        .text-jx-red { color: var(--jx-red) !important; }
        .border-jx-red { border-color: var(--jx-red); }
        
        /* 导航栏渐变效果 */
        .nav-scrolled { background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px); box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
        
        /* Banner 渐变层 */
        .banner-overlay { background: linear-gradient(90deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.2) 100%); }
        
        /* 业务卡片悬浮 */
        .service-card { transition: all 0.3s ease; }
        .service-card:hover { transform: translateY(-10px); box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1); }
        
        /* 优势图标渐变 */
        .icon-box { background: linear-gradient(135deg, #fff 0%, #fff5f5 100%); }

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--text-main);
    background-color: var(--bg-light);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   2. 导航栏与移动端适配
   ========================================================================== */
/* 导航栏背景补丁 */
nav {
    transition: var(--transition);
}

/* style.css */

/* 彻底修复 1px 或显示不全的问题 */
#mobile-menu {
    /* 初始状态：不可见且向上微移 */
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    /* 允许内容撑开高度，且在内容过多时可滚动 */
    height: auto;
    max-height: calc(100vh - 80px); 
    overflow-y: auto;
    background-color: #ffffff;
}

/* 当显示时的状态 */
#mobile-menu.show {
    opacity: 1;
    transform: translateY(0);
}

/* 强制导航栏容器不剪裁溢出内容 */
nav {
    overflow: visible !important;
}

/* 电脑端导航悬浮效果 */
.nav-link-hover {
    position: relative;
}
.nav-link-hover::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--jx-red);
    transition: var(--transition);
}
.nav-link-hover:hover::after {
    width: 100%;
}

/* ==========================================================================
   3. Banner 与 页面头部
   ========================================================================== */
/* 首页大 Banner 遮罩 */
.banner-overlay {
    background: linear-gradient(90deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 60%, rgba(0,0,0,0.2) 100%);
}

/* 二级页面公共 Banner */
.sub-banner {
    height: 400px;
    display: flex;
    align-items: center;
    position: relative;
    color: white;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.sub-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.85), rgba(0,0,0,0.2));
    z-index: 1;
}

.sub-banner .container {
    position: relative;
    z-index: 2;
}

/* ==========================================================================
   4. 卡片、图标与布局组件
   ========================================================================== */
/* 业务卡片 - 首页与二级页面通用 */
.service-card {
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.05);
    background: #ffffff;
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(200, 22, 29, 0.15);
    border-color: rgba(200, 22, 29, 0.1);
}

/* 图标盒子设计 */
.icon-box {
    background: linear-gradient(135deg, #ffffff 0%, #fff5f5 100%);
    transition: var(--transition);
}

.icon-box i {
    transition: var(--transition);
}

.service-card:hover .icon-box {
    background: var(--jx-red);
}

.service-card:hover .icon-box i {
    color: #ffffff !important;
}

/* ==========================================================================
   5. 动画系统 (丝滑合适)
   ========================================================================== */
/* 淡入向上动效 */
.fade-up {
    animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 图片缩放动效 */
.img-hover-zoom {
    overflow: hidden;
}
.img-hover-zoom img {
    transition: transform 0.8s ease;
}
.img-hover-zoom:hover img {
    transform: scale(1.1);
}

/* ==========================================================================
   6. 移动端微调
   ========================================================================== */
@media (max-width: 768px) {
    .sub-banner {
        height: 300px;
    }
    
    .text-5xl {
        font-size: 2rem !important;
    }
    
    .text-4xl {
        font-size: 1.75rem !important;
    }

    .py-20 {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
    
    .service-card {
        margin-bottom: 10px;
    }
}

/* ==========================================================================
   7. 按钮增强
   ========================================================================== */
.btn-jx {
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.btn-jx::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300%;
    height: 300%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%) scale(0);
    border-radius: 50%;
    transition: transform 0.6s ease;
}

.btn-jx:active::after {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0;
}

/* 全局动画：丝滑淡入向上 */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* 二级页面专用 Banner 样式 */
.sub-hero {
    position: relative;
    height: 550px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    color: white;
}

.sub-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 100%);
}

/* 业务卡片悬浮 */
.info-card {
    transition: all 0.4s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.info-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(200, 22, 29, 0.1);
    border-color: rgba(200, 22, 29, 0.2);
}



/* 装饰性背景 */
.bg-dots {
    background-image: radial-gradient(#e5e7eb 1px, transparent 1px);
    background-size: 20px 20px;
}

/* 二级页面公共板块间距 */
section {
    position: relative;
    z-index: 10;
}


/* 简单的进场动效 */
.fade-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

#qr-modal.active #qr-content {
        transform: scale(1);
        opacity: 1;
    }


/* 行业需求卡片微动效 */
.need-card {
    transition: all 0.3s ease;
    border: 1px solid #f3f4f6;
}
.need-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
}

/* 方案优势：大数字背景效果 */
.adv-num {
    font-family: 'Arial Black', sans-serif;
    font-size: 3rem;
    line-height: 1;
    font-weight: 900;
    background: linear-gradient(to bottom, #dbeafe 0%, transparent 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.8;
}

/* 激活项的蓝色渐变背景 */
.adv-item-active {
    background: linear-gradient(90deg, #60a5fa 0%, #93c5fd 100%);
    color: white !important;
}
.adv-item-active p, .adv-item-active h4 {
    color: white !important;
}    


/* 统一样式变量 */
:root {
    --jx-red: #C8161D;
    --jx-red-light: #fff5f5;
}

/* 模块标题统一样式 */
.section-title-center {
    text-align: center;
    margin-bottom: 3.5rem;
}
.section-title-center h3 {
    font-size: 1.875rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
}
.section-title-center .underline {
    width: 3rem;
    height: 4px;
    background-color: var(--jx-red);
    margin: 0 auto;
}

/* 行业需求卡片：改蓝色为红色系 */
.need-card-red {
    transition: all 0.3s ease;
    border: 1px solid #f3f4f6;
    background: #fff;
}
.need-card-red:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(200, 22, 29, 0.1);
    border-color: rgba(200, 22, 29, 0.1);
}
.need-card-red .icon-circle {
    background-color: var(--jx-red-light);
    color: var(--jx-red);
}

/* 方案优势：左侧交互项 */
.adv-tab-item {
    padding: 1.5rem;
    border-radius: 1rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
}
/* 悬停/激活状态：改为红色渐变 */
.adv-tab-item.active {
    background: linear-gradient(90deg, var(--jx-red) 0%, #e31b23 100%);
    box-shadow: 0 10px 20px rgba(200, 22, 29, 0.2);
}
.adv-tab-item.active h4, 
.adv-tab-item.active p {
    color: #fff !important;
}
.adv-tab-item .tab-num {
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1;
    color: #e2dede; /* 默认浅灰色数字 */
    transition: color 0.3s;
}
.adv-tab-item.active .tab-num {
    color: rgba(255, 255, 255, 0.3); /* 激活时半透明白 */
}

/* 右侧图片切换动画 */
.adv-img-container img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-cover: cover;
    opacity: 0;
    transition: opacity 0.5s ease-in-out, transform 0.5s ease;
}
.adv-img-container img.active {
    opacity: 1;
    position: relative;
    transform: scale(1);
}

/* 流程模块核心变量 */
:root {
    --jx-red: #C8161D;
    --jx-red-bg: #fff5f5;
    --jx-red-light: rgba(200, 22, 29, 0.1);
}

/* style.css */
.step-line { height: 1px; background: #e5e7eb; flex-grow: 1; margin: 0 15px; margin-top: -24px; transition: 0.3s; }
.step-line.active { background: #C8161D; }

.section-title-box { display: flex; align-items: center; gap: 8px; font-weight: bold; color: #111; margin-bottom: 24px; font-size: 16px; border-bottom: 1px solid #f3f4f6; padding-bottom: 12px; }

.custom-input { width: 100%; border: 1px solid #e5e7eb; border-radius: 8px; padding: 14px 16px; outline: none; transition: 0.3s; }
.custom-input:focus { border-color: #C8161D; box-shadow: 0 0 0 4px rgba(200, 22, 29, 0.05); }

.form-label { display: block; font-size: 13px; color: #6b7280; margin-bottom: 6px; font-weight: 600; }
.form-label span { color: #ef4444; margin-right: 4px; }

.upload-box { border: 2px dashed #e5e7eb; border-radius: 12px; background: #f9fafb; padding: 30px; text-align: center; cursor: pointer; transition: 0.3s; }
.upload-box:hover { border-color: #C8161D; background: #fff5f5; }

.fade-up { animation: fadeInUp 0.6s ease-out forwards; }
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}