/* ===== page products-productdetail (compiled from Vue SCSS) ===== */
@charset "UTF-8";
.mt-auto {
  margin-top: auto;
}

.d-block {
  display: block;
}

.bg-dark {
  background-color: #121816;
}

.bg-primary-dark {
  background-color: #0b2f2a;
}

.bg-white {
  background-color: #ffffff;
}

.font-weight-500 {
  font-weight: 500;
}

.text-white-pure {
  color: #ffffff;
}

.btn-outline-primary {
  background-color: transparent;
  color: #0b6b5a;
  border: 1px solid #0b6b5a;
  transition: all 0.3s ease;
}
.btn-outline-primary:hover {
  background-color: #0b6b5a;
  color: #ffffff;
}

.submit-btn-no-hover:hover {
  background-color: #0b6b5a !important;
  color: #ffffff !important;
}

.border-top {
  border-top: 1px solid #d9e5e0;
}

.overflow-hidden {
  overflow: hidden;
}

.w-100 {
  width: 100%;
}

.w-30 {
  width: 30%;
}

.flex-shrink-0 {
  flex-shrink: 0;
}

.tag-primary-light {
  background-color: #eaf6f2;
  color: #0b6b5a;
  padding: 2px 10px;
  border-radius: 4px;
}

.tag-warning {
  background-color: rgba(245, 158, 11, 0.1);
  color: #d97706;
  padding: 2px 10px;
  border-radius: 4px;
  border: 1px solid rgba(245, 158, 11, 0.2);
}

/* Hero Image*/
.product-image {
  min-height: 350px;
}

/* Hero Actions*/
.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}
.hero-actions .action-btn {
  min-width: 120px;
  font-weight: 500;
  transition: all 160ms ease;
}
.hero-actions .action-btn:active {
  transform: scale(0.96) translateY(2px);
}
.hero-actions .btn-list {
  background-color: #0b6b5a;
  color: #ffffff;
  border: 1px solid #0b6b5a;
}
.hero-actions .btn-list:hover, .hero-actions .btn-list:focus, .hero-actions .btn-list:active {
  background-color: #ffffff !important;
  color: #0b6b5a !important;
  border-color: #0b6b5a !important;
}
.hero-actions .btn-category {
  background-color: #ffffff;
  color: #0b6b5a;
  border: 1px solid #0b6b5a;
}
.hero-actions .btn-category:hover, .hero-actions .btn-category:focus, .hero-actions .btn-category:active {
  background-color: #0b6b5a !important;
  color: #ffffff !important;
  border-color: #0b6b5a !important;
}

/* Info Grid*/
.info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.info-grid .info-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 12px;
  align-items: start;
}

/* Layout Main*/
.layout-main {
  display: flex;
  flex-direction: column; /* 默认纵向布局（适应移动端）*/
  gap: 24px; /* 移动端减小模块间的垂直间距*/
}
.layout-main .detail-nav {
  width: 200px;
  flex-shrink: 0;
}
.layout-main .detail-nav .sticky-top {
  position: sticky;
  top: 100px;
}
.layout-main .detail-nav .nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-left: 2px solid #d9e5e0;
}
.layout-main .detail-nav .nav-list .nav-item {
  margin-bottom: 12px;
}
.layout-main .detail-nav .nav-list .nav-item a {
  display: block;
  padding: 8px 16px;
  color: #66736e;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  left: -2px;
  border-left: 2px solid transparent;
}
.layout-main .detail-nav .nav-list .nav-item a:hover {
  color: #0b6b5a;
}
.layout-main .detail-nav .nav-list .nav-item.active a {
  color: #0b6b5a;
  font-weight: 600;
  border-left-color: #0b6b5a;
}
.layout-main .content-area {
  flex: 1;
  min-width: 0;
}

/* Mobile Tabs*/
.mobile-tabs {
  display: flex;
  overflow-x: auto;
  gap: 16px;
  padding: 12px 24px;
  border-bottom: 1px solid #d9e5e0;
  background-color: #ffffff; /* 悬浮时需要背景色防遮挡*/
  position: sticky; /* 改为悬浮状态*/
  top: 64px; /* 根据实际 header 高度调整，这里假设 Header 是 64px*/
  z-index: 90; /* 保证悬浮在正文之上*/
  margin: 0 -24px 24px -24px; /* 缩小与下方正文的间距*/
  /* 隐藏滚动条但保留滚动功能*/
}
.mobile-tabs::-webkit-scrollbar {
  display: none;
}
.mobile-tabs {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.mobile-tabs .tab-btn {
  background: transparent;
  border: none;
  padding: 8px 12px;
  color: #66736e;
  white-space: nowrap;
  cursor: pointer;
}
.mobile-tabs .tab-btn.active {
  color: #0b6b5a;
  font-weight: 600;
  border-bottom: 2px solid #0b6b5a;
}

/* Rich Text Sections*/
.rich-text p {
  margin-bottom: 16px;
}
.rich-text strong {
  color: #1e2b27;
}

/* Params Table*/
.params-table {
  border-collapse: collapse;
}
.params-table td {
  vertical-align: top;
}
.params-table td:last-child {
  border-left: 1px solid #d9e5e0;
}
.params-table tr:last-child td {
  border-bottom: none;
}

/* Resource Item*/
.resource-item:last-child {
  border-bottom: none;
}

/* Consult Form*/
.consult-form .form-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #d9e5e0;
  border-radius: 4px;
  font-size: 14px;
  font-family: inherit;
}
.consult-form .form-input:focus {
  outline: none;
  border-color: #0b6b5a;
  box-shadow: 0 0 0 2px rgba(11, 107, 90, 0.1);
}
.consult-form .btn-block {
  width: 100%;
  display: block;
}

/* ==========================================*/
/* Mobile Layout Refactoring*/
/* ==========================================*/
/* Reverted from utilities.scss */
.py-8 {
  padding-top: 48px;
  padding-bottom: 80px;
}

.mb-8 {
  margin-bottom: 80px;
}

.mb-6 {
  margin-bottom: 48px;
}

.mb-4 {
  margin-bottom: 24px;
}

.text-center {
  text-align: center;
}

.text-secondary {
  color: #66736e;
}

.text-main {
  color: #1e2b27;
}

.text-sm {
  font-size: 14px;
}

.line-height-lg {
  line-height: 1.8;
}

.border-bottom {
  border-bottom: 1px solid #d9e5e0;
}

.cursor-pointer {
  cursor: pointer;
}

.hover-primary {
  transition: color 0.3s;
}
.hover-primary:hover {
  color: #0b6b5a;
}

.p-6 {
  padding: 48px;
}

.mb-10 {
  margin-bottom: 40px;
}

.mb-2 {
  margin-bottom: 12px;
}

.mr-2 {
  margin-right: 12px;
}

.text-primary {
  color: #0b6b5a;
}

.d-flex {
  display: flex;
}

.align-items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.py-10 {
  padding-top: 80px;
  padding-bottom: 80px;
}

.p-4 {
  padding: 24px;
}

.mb-3 {
  margin-bottom: 16px;
}

.mt-3 {
  margin-top: 16px;
}

.text-white {
  color: #ffffff;
}

.text-xs {
  font-size: 12px;
}

.bg-light {
  background-color: #f7faf9;
}

.bg-primary {
  background-color: #0b6b5a;
}

.border {
  border: 1px solid #d9e5e0;
}

.rounded {
  border-radius: 8px;
}

.flex-column {
  flex-direction: column;
}

.justify-between {
  justify-content: space-between;
}

.flex-wrap {
  flex-wrap: wrap;
}

.gap-8 {
  gap: 80px;
}

.gap-3 {
  gap: 16px;
}

.opacity-80 {
  opacity: 0.8;
}

.gap-4 {
  gap: 24px;
}

.mt-1 {
  margin-top: 8px;
}

.gap-6 {
  gap: 48px;
}

.mb-1 {
  margin-bottom: 8px;
}

.mt-8 {
  margin-top: 80px;
}

.p-3 {
  padding: 16px;
}

.mr-4 {
  margin-right: 24px;
}

.mb-0 {
  margin-bottom: 0;
}

.px-6 {
  padding-left: 48px;
  padding-right: 48px;
}

.py-4 {
  padding-top: 24px;
  padding-bottom: 24px;
}

.pb-2 {
  padding-bottom: 12px;
}

.gap-2 {
  gap: 12px;
}

/* Reverted responsive */
@media (min-width: 768px) {
  .layout-main {
    flex-direction: row; /* 平板及以上恢复横向布局*/
    gap: 80px; /* 恢复横向大间距*/
  }
}
@media (min-width: 768px) and (max-width: 1199px) {
  .layout-main {
    gap: 32px; /* 平板端减小右侧正文与导航的间距*/
  }
}
@media (min-width: 768px) and (max-width: 1199px) {
  .layout-main .detail-nav {
    width: 160px; /* 平板端适当减小导航栏宽度*/
  }
}
@media (max-width: 767px) {
  .d-none-mobile {
    display: none;
  }
}
@media (min-width: 768px) {
  .d-none-desktop {
    display: none;
  }
}
@media (max-width: 767px) {
  /* 1. 间距缩放优化 (缩小大间距，防止移动端留白过多)*/
  .py-8 {
    padding-top: 32px !important;
    padding-bottom: 32px !important;
  }
  .py-10 {
    padding-top: 48px !important;
    padding-bottom: 48px !important;
  }
  .p-6 {
    padding: 24px !important;
  }
  .p-4 {
    padding: 16px !important;
  }
  .px-6 {
    padding-left: 24px !important;
    padding-right: 24px !important;
  }
  .gap-8 {
    gap: 32px !important;
  }
  .gap-6 {
    gap: 24px !important;
  }
  .mb-10 {
    margin-bottom: 48px !important;
  }
  .mb-8 {
    margin-bottom: 32px !important;
  }
  /* 2. 网格强制单列显示 (适用于双列/三列模块)*/
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr !important;
  }
  /* 3. 字体与核心元素大小适配*/
  .text-h1 {
    font-size: 24px !important;
    line-height: 1.4 !important;
  }
  .consult-text .text-h2 {
    font-size: 22px !important;
  }
  .product-image {
    min-height: 220px;
  }
  /* 4. 首屏按钮全宽堆叠*/
  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 16px;
  }
  .hero-actions .action-btn {
    width: 100%;
    margin-right: 0 !important;
  }
  /* 5. 资料下载列表堆叠*/
  .resource-item {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 16px;
  }
  .resource-item .btn {
    width: 100%;
  }
  /* 6. 表格防溢出支持横向滑动*/
  .params-table-wrapper {
    overflow-x: auto !important;
  }
  .params-table-wrapper .params-table {
    min-width: 400px;
  }
}