/* ========== Features 一体化（标题强化版） ========== */
.pd-features-section {
  background: #f8f9fa;
}

.feature-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,0.06);
}

.feature-text {
  padding: 48px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ✅ 标题：核心优化 */
.feature-title {
  font-size: 1.85rem;          /* ✅ 更大 */
  font-weight: 700;            /* ✅ 更粗 */
  color: #1a1a1a;              /* ✅ 更深，不靠红色撑场面 */
  line-height: 1.3;            /* ✅ 更透气 */
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;

  /* ✅ 左侧品牌装饰线 */
  border-left: 4px solid #e63946;
  padding-left: 1rem;

  /* ✅ 多语言安全 */
  word-break: keep-all;
  hyphens: auto;
}

/* ✅ 小屏优化 */
@media (max-width: 991.98px) {
  .feature-title {
    font-size: 1.5rem;
    padding-left: 0.75rem;
    border-left-width: 3px;
  }
}

/* ✅ 正文 */
.feature-desc {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.8;
  margin-bottom: 1.75rem;
}

/* ✅ 按钮 */
.btn-talk {
  align-self: flex-start;
  padding: 10px 22px;
  border: 1.5px solid #e63946;
  color: #e63946;
  background: transparent;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all .25s ease;
}
.btn-talk:hover {
  background: #e63946;
  color: #fff;
  box-shadow: 0 4px 12px rgba(230,57,70,.25);
}

/* ✅ 图片 */
.feature-image {
  height: 100%;
}
.feature-image img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  display: block;
}

.feature-index {
  color: #e63946;
  font-weight: 700;
  margin-right: 0.5rem;
  opacity: 0.8;
}

.feature-title {
  transition: border-color .3s, padding-left .3s;
}
.feature-card:hover .feature-title {
  border-left-color: #b71c1c;
  padding-left: 1.25rem;
}

/* ✅ 移动端 */
@media (max-width: 768px) {
  .feature-text {
    padding: 28px 24px;
  }

  .feature-image img {
    min-height: 260px;
  }
}


/*第三行产品优势*/
/* =========================
   产品优势：与 Features 宽度一致
   ========================= */
.advantage-img-wrapper {
  background: #f8f9fa;
  padding: 20px; /* 四周留白，防止贴边 */
}
.advantage-img-wrapper img {
  width: 100%;       /* 撑满卡片宽度 */
  height: auto;      /* 保持原始比例，不拉伸 */
  display: block;
  max-height: none !important; /* 强制解除高度限制 */
  object-fit: unset !important; /* 强制关闭裁剪/适应算法 */
}

.advantages-section {
  background: #f8f9fa; /* 和 .pd-features-section 一致 */
}

/* 优势卡片：去掉 padding，模仿 feature-card */
.advantage-card {
  background: #fff;
  border-radius: 12px; /* 和 feature-card 一致 */
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(0,0,0,0.06); /* 和 feature-card 一致 */
  border: none;
}

/* 文字区：padding 与 feature-text 对齐 */
.advantage-card .advantage-caption {
  padding: 24px 40px; /* ✅ 与 .feature-text 接近 */
  text-align: center;
}

/* 编号 */
.advantage-card .advantage-number {
  font-size: 3.5rem;
  font-weight: 700;
  color: #e63946;
  opacity: 0.25;
  margin-bottom: 8px;
}

/* 标题 */
.advantage-card .advantage-title {
  font-size: 1.35rem;
  font-weight: 600;
  color: #222;
  line-height: 1.6;
}

/* 编号 */
.advantage-number {
  font-size: 2rem;
  font-weight: 700;
  color: #e63946;
  opacity: 0.8;
  line-height: 1;
  margin-bottom:  0.75rem;
}

/* 文字 */
.advantage-text {
  font-size: 0.85rem;
  font-weight: 500;
  color: #111;
  line-height: 1.5;
    /* ✅ 核心：允许单词内换行，防止长英文/俄语撑破卡片 */
    word-break: break-word;
    hyphens: auto;
}

/* 栅格间距（Bootstrap 5 原生支持） */
/*.g-4 { --bs-gutter-x: 1.5rem; --bs-gutter-y: 1.5rem; }*/
/*.row-cols-lg-6 > .col { flex: 0 0 auto; width: 16.666%; }*/

/* 独立文字框 */
.advantage-item-box {
background: #fff;
border: 1px solid #e0e0e0;
border-radius: 12px;
padding: 1.5rem 1rem;
text-align: center;
transition: transform 0.2s ease, box-shadow 0.2s ease;
display: flex;
flex-direction: column;
    align-items: center;

}
.advantage-item-box:hover {
  transform: translateY(-4px);
  /*box-shadow: 0 12px 24px rgba(230, 57, 70, 0.15);*/
    box-shadow: 0 8px 16px rgba(0,0,0,0.08);
    border-color: #d32f2f; /* 配合品牌红 */
}

/* 防止手机端卡片太窄 */
@media (max-width: 575.98px) {
  .advantage-item-box {
    padding: 2rem 1.5rem; /* 手机端稍微宽一点 */
  }

  .advantage-number {
    font-size: 2.5rem; /* 手机上别太小 */
  }

  .advantage-text {
    font-size: 0.95rem; /* 手机上别太细 */
  }
}



/* ===============================
   消除左右分离感（核心）
   =============================== */
/* 1. 左侧整体“沉”进背景 */
.specs-sidebar {
  background-color: #f8f9fa;   /* 和页面背景一致 */
  padding: 1.5rem 1rem;
  border-radius: 0.75rem;
}

/* 2. 左侧卡片弱化阴影，靠近背景 */
.specs-box {
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  border: none;
}

/* 3. 右侧轮播“浮”出来 */
#productCarousel {
  border-radius: 1rem;
  overflow: hidden;
}

/* 4. 缩小左右间距（关键） */
.hero-section .row {
  --bs-gutter-x: 1.5rem; /* 原来是 g-5，太大 */
}

/* 5. 小图去“鲜艳”，接近同行工业风 */
.specs-box img {
  opacity: 0.85;
  transition: opacity 0.3s ease;
}

.specs-box:hover img {
  opacity: 1;
}

/* 6. 标题更“重”，压得住右侧大图 */
.specs-sidebar h3 {
  font-size: 1.5rem;
  line-height: 1.3;
  color: #212529;
}

/* 7. 右侧图片更“稳” */
.carousel-img-wrapper {
  height: 420px;
  background-color: #f5f5f5;
}

.carousel-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 8. 控制按钮更精致 */
.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 2.5rem;
  height: 2.5rem;
}


/* ===============================
   第四行参数表 解决表格溢出导致整页滑动
   =============================== */
.table-wrapper {
  overflow-x: auto; /* 核心：允许内部横向滚动 */
  -webkit-overflow-scrolling: touch; /* iOS 平滑滚动 */
  margin: 0 -15px; /* 抵消 container 的 padding，让表格贴边 */
  padding: 0 15px; /* 补偿 margin 的负边距，保持内容不贴边 */
}

/* 针对移动端优化 */
@media (max-width: 768px) {
  .table-wrapper {
    margin: 0 -1rem; /* Bootstrap 的 gutter */
    padding: 0 1rem;
  }
}

/*第一行*/
@media (max-width: 991.98px) {
  .specs-sidebar {
    margin-top: 1.5rem;
  }
}

@media (max-width: 991.98px) {
  .sticky-top {
    position: relative;
    top: 0 !important;
  }
}


/* =========================
   产品详情页：更宽的容器
    ✅ 大屏极宽
    ✅ 小屏自动收窄
    ✅ 苹果 / 特斯拉官网常用
   ========================= */
.product-detail-container {
  max-width: 1600px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

@media (max-width: 768px) {
  .product-detail-container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* 第 1 行 Hero：缩小间距，让内容更饱满 */
.hero-section .row {
  --bs-gutter-x: 1.5rem; /* 原来是 g-5 = 3rem */
}

/*1左侧参数区再宽一点*/
@media (min-width: 992px) {
  .hero-section .col-lg-3 {
    flex: 0 0 28%;   /* 原来是 25% */
    max-width: 28%;
  }

  .hero-section .col-lg-9 {
    flex: 0 0 72%;
    max-width: 72%;
  }
}

/*2参数卡片更“透气”*/
.specs-box {
  padding: 2rem; /* 原来是 1.5rem */
}

/*3大图高度再高一点（视觉冲击）*/
.carousel-img-wrapper {
  height: 480px; /* 原来是 420px */
}



/* ===============================

产品详情页 · 高度与布局终局修复

=============================== */

.product-detail-row {

flex-wrap: wrap;           /* ✅ 关键：允许缩放时换行，防止列挤压 */

align-items: flex-start;   /* ✅ 关键：打破 Flex 默认等高(stretch)，让左右各自按内容高度渲染 */

}

/* ✅ 左侧信息卡片 */

.product-info-card {

position: sticky;

top: 5rem;                 /* 距离顶部距离，配合 sticky 使用 */

max-height: calc(100vh - 6rem); /* ✅ 关键：限制最大高度，防止内容过多撑爆布局 */

overflow-y: auto;          /* 内容过多时在左侧内部滚动，不撑高父容器 */

padding-right: 1.5rem;

}

/* 隐藏左侧内部的滚动条（美观处理） */

.product-info-card::-webkit-scrollbar {

width: 4px;

}

.product-info-card::-webkit-scrollbar-thumb {

background: #ccc;

border-radius: 2px;

}

/* ✅ 主标题 */

.product-main-title {

font-size: 1.85rem;

font-weight: 700;

line-height: 1.25;

letter-spacing: -0.02em;

color: #111;

text-align: left;

margin-bottom: 1.5rem;

word-break: keep-all;

hyphens: auto;

}

/* ✅ 行业图标 */

.industry-icons {

display: flex;

flex-wrap: wrap;

gap: 1rem;

margin-bottom: 1.5rem;

}

.industry-item {

display: flex;

align-items: center;

gap: 0.4rem;

font-size: 0.75rem;

color: #666;

}

.industry-icon {

width: 28px;

height: 28px;

opacity: 0.85;

}

/* ✅ 简介卡片 */

.short-desc-box {

background-color: #f8f9fa;

border-radius: 12px;

padding: 1.5rem;

box-shadow: 0 2px 10px rgba(0,0,0,.05);

border: 1px solid #eee;

}

.short-desc-text {

font-size: 0.95rem;

line-height: 1.8;

color: #333;

text-align: left;

margin-bottom: 0;

letter-spacing: 0.01em;

}

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

@media (max-width: 991.98px) {
    .product-info-card {
        position: static;        /* 移动端取消 sticky，恢复自然文档流 */
        max-height: none;
        overflow-y: visible;
        padding-right: 0;
        margin-bottom: 2rem;
    }

.product-main-title {
    font-size: 1.5rem;
    line-height: 1.35;
}

.short-desc-box {
    padding: 1.25rem;
}

}