/* ===== 图片适配：服务项与案例图更稳 ===== */
.service-image img,
.case-image,
.case-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

/* ===== 案例区高度别写死，防止裁切 ===== */
.case-item {
    min-height: 300px;
    height: auto;
    /* 取消固定 300px */
}


.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏样式 */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
    cursor: pointer;
}


.logo img {
    width: 260px;
    font-size: 24px;
    font-weight: 700;
}

.logo span {
    color: var(--primary);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    font-weight: 500;
    padding: 8px 0;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width 0.3s;
}

nav ul li a:hover::after {
    width: 100%;
}

.nav-btns {
    display: flex;
    align-items: center;
}

.btn {
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    display: inline-block;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    border: 2px solid var(--primary);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    /* margin-right: 10px; */
}

.btn-outline:hover {
    background-color: var(--primary);
    color: white;
}

.mobile-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* 英雄区域样式 */
.hero {
    height: 100vh;
    background: linear-gradient(135deg, rgba(26, 115, 232, 0.1) 0%, rgba(13, 92, 182, 0.1) 100%);
    background-image: url('../assets/index/bg.jpg');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 600px;
    z-index: 2;
    color: #fff;
}

.hero h2 {
    font-size: 48px;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero p {
    font-size: 18px;
    /* color: var(--gray); */
    color: #f3f3f3;
    margin-bottom: 30px;
}

.hero-btns {
    display: flex;
    gap: 15px;
}

.hero-image {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    max-width: 50%;
    z-index: 1;
    opacity: 0.9;
}

/* 大屏区域 */
.data-card {
    width: 100%;
    /* height: 650px; */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}


.card-top,
.card-bottom {
    display: flex;
    justify-content: space-between;
}

.card-top {
    margin-bottom: 20px;
}

.card-bottom-left {
    gap: 20px;
    width: 70%;
}

.data-card-zhexiantu {
    width: 100%;
    height: 360px;
    /* background-color: pink; */
}

.data-card-zhuzhuangtu {
    position: relative;
    width: 100%;
    /* height: 360px; */
    /* background-color: orange; */
}

.data-card-zhuzhuangtu .seg {
    position: absolute;
    right: 10px;
    top: 0;
    display: flex;
    gap: 8px;
    z-index: 9;
}

.data-card-zhuzhuangtu .btn {
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #fff;
    cursor: pointer;
    font-size: 12px
}

.data-card-zhuzhuangtu .btn.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.data-card-zhuzhuangtu .legend {
    font-size: 12px;
    color: #374151;
    margin-top: 6px
}

.data-card-zhuzhuangtu .footer {
    margin-top: 8px;
    font-size: 12px;
    color: #6b7280
}

/* 切换组件样式 */
.chart-toggle-container {
    max-width: 400px;
    min-width: 360px;
    background-color: white;
    overflow: hidden;
    transition: height .35s ease;
    /* 容器高度平滑跟随 */
    border-radius: 10px;
    box-shadow: 0 1px 10px rgba(51, 65, 101, .05), 0 3px 18px rgba(51, 65, 101, .15);
    position: relative;
    padding: 0 20px 10px;

}

.chart-toggle-top {
    display: flex;
    justify-content: center;
}

.toggle-tabs {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    cursor: grab;
    gap: 2px;
    height: 45px;
    padding-top: 5px;
    position: relative;
    margin-bottom: 10px;

}

.toggle-tabs::-webkit-scrollbar {
    height: 0px;
}

.toggle-tabs::-webkit-scrollbar-thumb {
    border-radius: 8px;
    background-color: #66666633;
}

.toggle-tabs::-webkit-scrollbar-track {
    border-radius: 8px;
    background-color: #88888833;
}

.toggle-tabs span {
    user-select: none;
    color: #6b7280;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 20px;
    border-radius: 6px;
    transition: all 0.3s ease;
    white-space: nowrap;
}



.toggle-tabs .active {
    color: var(--primary) !important;
}


.toggle-tabs .deco {
    background: linear-gradient(90deg, #f2f2f2, rgb(242, 242, 242) 96.75%);
    height: 1px;
    position: absolute;
    top: 36px;
    width: 100%;

}

.toggle-tabs .line {
    background: var(--primary);
    border-radius: 3px;
    height: 3px;
    position: absolute;
    bottom: 0;
    transition: transform 0.3s cubic-bezier(0.22, 0.61, 0.36, 1),
        width 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* 内容区域样式优化 */
.toggle-contents {
    width: 100%;
    overflow: hidden;
}

.toggle-content {
    box-sizing: border-box;
    display: none;
    border-radius: 8px;
    min-height: 280px;
    animation: fadeIn 0.4s ease;
}


.toggle-content.active {
    display: block;
}

.toggle-contents-btns {
    position: absolute;
    bottom: 10px;
    display: flex;
    justify-content: space-between;
}

.toggle-contents-btns>div {
    flex: 1;
    padding-right: 10px;
}

.toggle-contents-btns .btn {
    height: 40px;
    float: right;
    line-height: 40px;
    padding: 0px 15px;
    margin-top: 10px;
    float: right;
}

/* 服务区域样式 */
.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 30px;
}

.section-title {
    font-size: 36px;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 4px;
    background-color: var(--primary);
    border-radius: 2px;
}

.section-subtitle {
    color: var(--gray);
    font-size: 18px;
}

.services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: white;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: flex;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-image {
    /* background-color: pink; */
    width: 58%;
}

.service-content {
    width: 42%;
    padding-left: 10px;
}

.service-content h3 {
    font-size: 18px;
    color: var(--primary);
    margin-bottom: 15px;
}

.service-content p {
    color: var(--gray);
    line-height: 1.6;
    font-size: 14px;
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.service-icon i {
    font-size: 28px;
    color: white;
}

.service-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
}


/* 合作案例 */

.relative {
    position: relative;
}

.team-card {
    background-color: white;
    overflow: hidden;
    transition: height .35s ease;
    /* 容器高度平滑跟随 */
    border-radius: 12px;
    box-shadow: 0 1px 10px rgba(51, 65, 101, .05), 0 3px 18px rgba(51, 65, 101, .15);
    height: 400px;
    position: relative;
}

.team-item {
    height: 100%;
    width: 100%;
    position: absolute;
    left: 0;
    top: 0;
    inset: 0;
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    transition: opacity .35s ease, transform .35s ease;
}

/* 当前激活面板可见 */
.team-item.active {
    opacity: 1;
    transform: none;
    pointer-events: auto;
}

.left_part {
    width: 500px;
    padding: 123px 0 0 100px;
}

.left_part img {
    height: 48px;
}

.left_part .context {
    color: #4e5969;
    font-family: PingFang SC;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    letter-spacing: .002em;
    line-height: 22px;
    margin-top: 12px;
    width: 500px;
}

.left_part .button {
    background: var(--primary);
    border: none;
    border-radius: 4px;
    box-shadow: 0 6px 8px rgba(46, 70, 146, .1);
    color: #fff;
    cursor: pointer;
    font-family: PingFang SC;
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    letter-spacing: .01em;
    line-height: 26px;
    margin: 30px 0 0;
    outline: none;
    padding: 12px 31.5px;
}

.right_img {
    border-bottom-right-radius: 12px;
    border-top-right-radius: 12px;
    height: 100%;
    position: absolute;
    right: 0;
    top: 0;
    width: 580px;
    transition: transform .45s cubic-bezier(.22, .61, .36, 1);
}

.team-card .team-item.active:hover .right_img {
    transform: scale(1.02);
}


.case_names {
    position: absolute;
    top: 52px;
    left: 90px;
}

.case_names .active {
    color: var(--primary) !important;
    font-weight: 500;
}

.case_names span {
    color: #86909c;
    cursor: pointer;
    font-family: PingFang SC;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 20px;
    padding: 0 15px;
    white-space: nowrap;
}

.case_names .deco {
    background: linear-gradient(90deg, #f2f2f2, hsla(0, 0%, 95%, 0) 96.75%);
    height: 1px;
    position: absolute;
    top: 36px;
    width: 601px;
}

.case_names .line {
    background: var(--primary);
    border-radius: 12px 12px 0 0;
    height: 2px;
    position: absolute;
    top: 35px;
    transition: transform .35s cubic-bezier(.22, .61, .36, 1), width .35s cubic-bezier(.22, .61, .36, 1);
}

.more {
    margin-top: 49px;
}

.more .title {
    align-items: center;
    color: rgba(78, 89, 105, .6);
    display: flex;
    font-family: PingFang SC;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    justify-content: center;
    letter-spacing: .002em;
    line-height: 22px;
}

.deco_left {
    background: linear-gradient(90deg, hsla(0, 0%, 95%, 0), #d5dce8 96.75%);
    height: 1px;
    width: 528px;
}

.more .title span {
    margin: 0 37px;
    white-space: nowrap;
}

.deco_right {
    background: linear-gradient(90deg, #d5dce8, hsla(0, 0%, 95%, 0) 96.75%);
    height: 1px;
    width: 528px;
}

.more .content {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    height: auto;
    justify-content: space-around;
    margin-top: 7px;
}

.img-wrap {
    display: flex;
    height: 100px;
    justify-content: center;
    margin: 25px 0;
    width: 24%;
}


/* 客户评价 */
.testimonials {
    background-color: var(--light);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background-color: white;
    border-radius: 10px;
    padding: 30px 30px 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -18px;
    left: 20px;
    font-size: 80px;
    color: var(--primary);
    opacity: 0.1;
    font-family: Georgia, serif;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.testimonial-content {
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #334155;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #e9f0fd;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.author-img i {
    color: var(--primary);
}

.author-info h4 {
    margin-bottom: 5px;
}

.author-info p {
    color: var(--gray);
    font-size: 14px;
}

/* 联系区域 */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
}

.contact-info h3 {
    font-size: 24px;
    margin-bottom: 20px;
}

.contact-item {
    display: flex;
    margin-bottom: 25px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    /* background-color: #e9f0fd; */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.contact-icon span {
    font-size: 20px;
    color: var(--primary);
}

.contact-form {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    /* box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05); */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.contact-form img {
    /* width: 120px; */
    height: 120px;
}

.contact-form div {
    padding-top: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 16px;
    transition: all 0.3s;
}

.form-control:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.2);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* 页脚样式 */
footer {
    background-color: var(--dark);
    color: white;
    padding: 70px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col h3 {
    font-size: 20px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--primary);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #bdc1c6;
    transition: all 0.3s;
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.footer-contact p {
    margin-bottom: 10px;
    color: #bdc1c6;
    display: flex;
    align-items: flex-start;
}

.footer-contact i {
    margin-right: 10px;
    color: var(--primary);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #bdc1c6;
    font-size: 14px;
}


/* ====== 基础入场动画（与 AOS 类似的轻量实现） ====== */
.aos-init {
    opacity: 0;
    transform: translate3d(0, 10px, 0);
    transition: opacity .6s ease, transform .6s cubic-bezier(.22, .61, .36, 1);
    will-change: opacity, transform;
}

.aos-animate {
    opacity: 1;
    transform: none;
}

/* 方向/效果 */
.anim-fade-up {
    transform: translate3d(0, 0px, 0);
}

.anim-fade-right {
    transform: translate3d(-24px, 0, 0);
}

.anim-scale-in {
    transform: scale(1);
}

/* 微交互：卡片悬停轻浮起 */
.case-item .w-1/2:last-child img,
.right_img,
.index-module__right_img {
    transition: transform .6s cubic-bezier(.22, .61, .36, 1), box-shadow .3s ease;
}

.case-item:hover .w-1/2:last-child img,
.team-item:hover .right_img,
.team-item:hover .index-module__right_img {
    transform: scale(1.04);
}

/* PC 端标签条指示器更顺滑 */
.case-tab-indicator {
    transition: left .35s cubic-bezier(.22, .61, .36, 1), width .35s cubic-bezier(.22, .61, .36, 1);
}

/* LOGO 瀑布式进入（更多合作客户） */
.client-logo {
    opacity: 0;
    transform: translate3d(0, 14px, 0);
    transition: opacity .5s ease, transform .5s ease;
}

.client-logo.is-in {
    opacity: 1;
    transform: none;
}

/* 可选：移动端切换时内容轻微淡入 */
.mobile-case {
    transition: opacity .45s ease, transform .45s ease;
}

.mobile-case.active {
    opacity: 1;
    transform: none;
}


/* ========== 通用：移动端锁滚动 ========== */
body.nav-open { overflow: hidden; }

/* ========== 断点：平板及以下 ========== */
@media (max-width: 1024px) {
  .header-container { padding: 12px 8px 0 0; }
  .logo img { width: 200px; }
  .mobile-toggle { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 8px; border: 1px solid var(--border); background:#fff; }

  /* 抽屉式导航 */
  header { --nav-top: calc(var(--header-h,64px)); }
  nav#site-nav {
    position: fixed; inset: var(--nav-top) 0 0 0;
    transform: translateY(-100%);
    transition: transform .3s ease;
    display:block; /* 覆盖原 flex 语义，仅控制内部布局 */
    z-index: 1001;
  }
  nav#site-nav.active { transform: translateY(0); }
  nav#site-nav ul { display: flex; flex-direction: column; padding: 14px 18px; }
  nav#site-nav li { margin: 6px 0; }
  nav#site-nav a { display:block; padding: 12px 8px; font-size:16px; }

  /* 首屏：高度改自适应、图右侧装饰图隐藏，按钮触控增大 */
  .hero { height: auto; padding: 96px 20px 40px; }
  .hero h2 { font-size: 30px; }
  .hero p { font-size: 16px; }
  .hero-image { display:none; }
  .btn { min-height:44px; padding: 10px 16px; }

  /* 数据简报区：竖向栈式，右侧“切换卡片”撑满宽度 */
  .card-top, .card-bottom { flex-direction: column; }
  .card-bottom-left { width: 100%; gap: 12px; }
  .chart-toggle-container {
    width: 100%;
    min-width: auto; /* 覆盖原 360px，防止小屏水平滚动 */
    margin-top: 12px;
    padding: 12px;
  }
  .toggle-tabs { height: 42px; }
  .toggle-contents { overflow: visible; }
  .toggle-content { min-height: 0; } /* 防止小屏内边距撑高 */

  /* 服务卡片：改为上下布局 */
  .services { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
  .service-card { flex-direction: column; padding: 12px; }
  .service-image, .service-content { width: 100%; }
  .service-content { padding-left: 0; margin-top: 10px; }
  .service-content h3 { font-size: 16px; margin-bottom: 8px; }
  .service-content p { font-size: 13px; }

  /* 合作伙伴案例：改为单列，右图改为文内图片 */
  .team-card { height: auto; }
  .team-item { position: relative; opacity: 1; transform:none; pointer-events:auto; }
  .left_part { width: 100%; padding: 18px 16px; }
  .left_part .context { width: 100%; line-height: 1.7; }
  .right_img { position: static; width: 100%; height: auto; border-radius: 12px; margin-top: 10px; }
  .case_names { position: static; margin: 8px 0 12px; padding: 0 8px; }
  .case_names .deco { width: 100%; }
  .case_names .line { top: 35px; }

  /* 更多客户 LOGO 轻收紧 */
  .img-wrap { width: 32%; height: 72px; }

  /* 定制应用 */
  .toggle-contents-btns { position: static; margin-top: 12px; }

  /* 合作伙伴 */
  .team-card{
    height: 100% !important;
  }
   .anim-fade-right{
    transform: translate3d(0, 0, 0);
  }
  .case_names{
    display: none;
  }
 

  /* 客户评价：避免 350px 导致溢出 */
  .testimonial-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
  .testimonial-card { padding: 20px; }

  /* 联系我们：栅格压缩，二维码更大一些 */
  .contact-grid { grid-template-columns: 1fr; gap: 18px; }
  .contact-form { padding: 20px; }
  .contact-form img { height: 140px; }

  /* 页脚：单列堆叠 */
  .footer-grid { grid-template-columns: 1fr; gap: 18px; }
  footer { padding: 40px 0 16px; }
}

/* ========== 断点：小屏手机（≤ 480px） ========== */
@media (max-width: 480px) {
  .logo img { width: 168px; }
  .section { padding: 60px 0; }
  .section-title { font-size: 26px; }
  .section-subtitle { font-size: 14px; }
  .img-wrap { width: 48%; height: 64px; }
}
