
/* ============================================
   图片滑动展示区样式
   ============================================ */
.image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 60%; 
    overflow: hidden;
    background: transparent; 
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- 滑动轨道 --- */
.image-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    cursor: zoom-in;
    align-items: center; 
}
.image-slider::-webkit-scrollbar { display: none; }

/* --- 单个图片项 --- */
.image-item {
    flex: 0 0 100%; 
    height: 100%;
    scroll-snap-align: start;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px; 
    box-sizing: border-box;
}

.image-item img {
    transform: scale(0.8);
    transform-origin: center center;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
    transition: transform 0.3s ease, filter 0.3s ease;
}

.image-wrapper:hover .image-item img {
    transform: scale(1.0); 
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.15));
}

/* --- 左右切换箭头 --- */
.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    font-size: 20px;
    background: rgba(0, 0, 0, 0.5); 
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    cursor: pointer;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1; 
    transition: all 0.2s ease;
    outline: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.nav-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.05);
}

.prev-btn { left: 15px; }
.next-btn { right: 15px; }

/* 移动端适配 */
@media (max-width: 600px) {
    .nav-btn {
        width: 36px;
        height: 36px;
        font-size: 16px;
        background: rgba(0, 0, 0, 0.4);
    }
    .prev-btn { left: 10px; }
    .next-btn { right: 10px; }
    .image-item img { transform: scale(0.85); }
    .image-item { padding: 5px; }
}

/* --- 灯箱样式 --- */
.lightbox-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.lightbox-overlay.active { display: flex; opacity: 1; }

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#lightbox-img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
    transform: none !important;
}

#lightbox-caption {
    color: #ccc;
    margin-top: 15px;
    font-size: 16px;
    text-align: center;
    max-width: 800px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 50px;
    cursor: pointer;
    z-index: 10000;
    line-height: 0.8;
    transition: color 0.3s;
}
.lightbox-close:hover { color: #ff4d4f; }

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    color: #fff;
    border: none;
    font-size: 50px;
    cursor: pointer;
    padding: 0 30px;
    z-index: 10000;
    transition: color 0.3s;
}
.lightbox-nav:hover { color: #ddd; }
.lightbox-nav.prev { left: 30px; }
.lightbox-nav.next { right: 30px; }

.product-card { cursor: default; }

/* ============================================
   猜你喜欢区域样式 (maylike2)
   ============================================ */
.maylike2-wrapper {
  padding: 40px 0;
}

.maylike2 {
  margin: 0 auto;
  max-width: 1000px;
  padding: 0 24px;
}

.maylike2 h3 {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 32px;
  color: #1a1a2e;
  position: relative;
  display: inline-block;
}

.maylike2 h3::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 50px;
  height: 3px;
  background: #0e4081;
  border-radius: 2px;
}

.maylike2 ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  list-style: none;
  padding-top: 10px;
  margin: 0;
}

.maylike2 li {
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid #eee;
}

.maylike2 li:hover {
  transform: translateY(-8px);
  border-color: #0e4081;
}

.maylike2 a {
  text-decoration: none;
  display: block;
}

.may-like-product-img {
  background: #fafafa;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.may-like-product-img img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  transition: transform 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

.maylike2 li:hover .may-like-product-img img {
  transform: scale(1.06);
}

.may-like-product-title {
  padding: 18px 16px 22px;
  font-size: 15px;
  font-weight: 500;
  color: #333;
  text-align: center;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
  background: #fff;
  transition: color 0.2s;
  border-top: 1px solid #f0f0f0;
}

.maylike2 li:hover .may-like-product-title {
  color: #0e4081;
}

/* 平板端 */
@media (max-width: 768px) {
  .maylike2-wrapper {
    padding: 30px 0;
  }
  .maylike2 {
    margin: 0 auto;
    padding: 0 20px;
  }
  .maylike2 ul {
    padding-top: 10px;
    gap: 20px;
  }
  .maylike2 h3 {
    font-size: 24px;
    margin-bottom: 26px;
  }
  .may-like-product-title {
    font-size: 14px;
    padding: 14px 12px 18px;
  }
}

/* 手机端 */
@media (max-width: 576px) {
  .maylike2-wrapper {
    padding: 20px 0;
  }
  .maylike2 {
    margin: 0 auto;
    padding: 0 16px;
  }
  .maylike2 ul {
    grid-template-columns: 1fr;
    padding-top: 10px;
    gap: 18px;
  }
  .maylike2 h3 {
    font-size: 22px;
    margin-bottom: 20px;
  }
  .maylike2 h3::after {
    width: 40px;
    bottom: -8px;
  }
  .may-like-product-title {
    font-size: 14px;
    padding: 14px 12px 18px;
  }
}

/* 大屏优化 */
@media (min-width: 1200px) {
  .maylike2 {
    max-width: 1200px;
  }
  .maylike2 ul {
    padding-top: 10px;
    gap: 35px;
  }
  .may-like-product-title {
    font-size: 16px;
    padding: 20px 18px 24px;
  }
}

/* ============================================
   产品详情区域样式
   ============================================ */
.product-detail-wrapper {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

.product-content-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 40px 45px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid #f0f0f0;
  transition: box-shadow 0.3s ease;
}

.product-content-card:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.product-content-card .content-title {
  font-size: 24px;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 25px;
  padding-bottom: 12px;
  border-bottom: 3px solid #0e4081;
  display: inline-block;
}

.product-content-card .table-responsive {
  overflow-x: auto;
  font-size: 15px;
  line-height: 1.8;
  color: #333;
}

.product-content-card table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
}

.product-content-card th,
.product-content-card td {
  border: 1px solid #e8e8e8;
  padding: 12px 16px;
  text-align: left;
  vertical-align: top;
}

.product-content-card th {
  background: #f8f9fa;
  font-weight: 600;
  color: #1a1a2e;
}

.product-content-card tr:hover {
  background: #fafbfc;
}

.product-content-card img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
  margin: 20px auto;
}

.product-content-card h1,
.product-content-card h2,
.product-content-card h3,
.product-content-card h4 {
  margin: 1.5em 0 0.8em 0;
  color: #1a1a2e;
  font-weight: 600;
}

.product-content-card h1:first-child,
.product-content-card h2:first-child,
.product-content-card h3:first-child,
.product-content-card h4:first-child {
  margin-top: 0;
}

.product-content-card h1 { font-size: 26px; border-left: 4px solid #0e4081; padding-left: 16px; }
.product-content-card h2 { font-size: 22px; border-bottom: 2px solid #f0f0f0; padding-bottom: 8px; }
.product-content-card h3 { font-size: 18px; }
.product-content-card h4 { font-size: 16px; }

.product-content-card p {
  margin: 0 0 1em 0;
  line-height: 1.8;
}

.product-content-card p:last-child {
  margin-bottom: 0;
}

.product-content-card ul,
.product-content-card ol {
  margin: 0 0 1em 0;
  padding-left: 28px;
}

.product-content-card li {
  margin: 6px 0;
  line-height: 1.7;
}

.product-content-card blockquote {
  margin: 20px 0;
  padding: 16px 22px;
  background: #f8f9fa;
  border-left: 4px solid #0e4081;
  border-radius: 12px;
  color: #555;
}

.product-content-card pre {
  background: #2d2d2d;
  color: #f8f8f2;
  padding: 18px 22px;
  border-radius: 12px;
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.6;
  margin: 20px 0;
}

.product-content-card code {
  background: #f0f0f0;
  padding: 2px 6px;
  border-radius: 5px;
  font-size: 13px;
  color: #e83e8c;
}

.product-content-card hr {
  margin: 30px 0;
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #ddd, transparent);
}

/* 产品详情响应式 */
@media (max-width: 768px) {
  .product-detail-wrapper {
    padding: 0 16px;
    margin: 25px auto;
  }
  .product-content-card {
    padding: 25px 20px;
  }
  .product-content-card .content-title {
    font-size: 20px;
  }
  .product-content-card th,
  .product-content-card td {
    padding: 8px 12px;
    font-size: 13px;
  }
  .product-content-card p,
  .product-content-card li {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .product-detail-wrapper {
    padding: 0 12px;
    margin: 20px auto;
  }
  .product-content-card {
    padding: 18px 14px;
  }
  .product-content-card .content-title {
    font-size: 18px;
    margin-bottom: 18px;
  }
  .product-content-card th,
  .product-content-card td {
    padding: 6px 10px;
    font-size: 12px;
  }
  .product-content-card p,
  .product-content-card li {
    font-size: 13px;
  }
  .product-content-card h1 { font-size: 22px; }
  .product-content-card h2 { font-size: 18px; }
  .product-content-card h3 { font-size: 16px; }
  .product-content-card h4 { font-size: 14px; }
}

/* ============================================
   信任增强模块样式 (trust-module)
   ============================================ */
.trust-module {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

.trust-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 40px 45px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid #f0f0f0;
  transition: box-shadow 0.3s ease;
}

.trust-card:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.trust-title {
  font-size: 24px;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 15px;
  padding-bottom: 12px;
  border-bottom: 3px solid #0e4081;
  display: inline-block;
}

.manufacturer-badge {
  display: inline-block;
  background: #1a1a2e;
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  margin-left: 12px;
  vertical-align: middle;
}

.trust-subtitle {
  font-size: 16px;
  color: #666;
  margin-bottom: 35px;
  line-height: 1.5;
}

.trust-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.applications h4,
.quality-commitment h4 {
  font-size: 20px;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.applications h4::before,
.quality-commitment h4::before {
  content: '';
  width: 4px;
  height: 20px;
  background: #0e4081;
  border-radius: 2px;
}

.app-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.app-tag {
  background: #f8f9fa;
  border: 1px solid #e8e8e8;
  border-radius: 30px;
  padding: 8px 18px;
  font-size: 14px;
  color: #333;
  transition: all 0.2s ease;
  cursor: default;
}

.app-tag:hover {
  background: #0e4081;
  border-color: #0e4081;
  color: #fff;
  transform: translateY(-2px);
}

.quality-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.quality-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
  padding: 12px 0;
  border-bottom: 1px dashed #f0f0f0;
}

.quality-list li:last-child {
  border-bottom: none;
}

.quality-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: #fff0eb;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.quality-text {
  flex: 1;
}

.quality-text strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 5px;
}

.quality-text span {
  font-size: 13px;
  color: #666;
  line-height: 1.5;
}

.trust-footer {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid #f0f0f0;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 25px;
}

.trust-item {
  text-align: center;
  flex: 1;
  min-width: 100px;
}

.trust-item .emoji {
  font-size: 28px;
  display: block;
  margin-bottom: 10px;
}

.trust-item .label {
  font-size: 12px;
  color: #888;
  font-weight: 500;
}

/* 信任模块响应式 */
@media (max-width: 768px) {
  .trust-module {
    padding: 0 16px;
    margin: 30px auto;
  }
  .trust-card {
    padding: 25px 20px;
  }
  .trust-title {
    font-size: 20px;
  }
  .manufacturer-badge {
    font-size: 10px;
    margin-left: 8px;
  }
  .trust-subtitle {
    font-size: 14px;
    margin-bottom: 25px;
  }
  .trust-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .applications h4,
  .quality-commitment h4 {
    font-size: 18px;
  }
  .app-tag {
    padding: 6px 14px;
    font-size: 12px;
  }
  .quality-text strong {
    font-size: 14px;
  }
  .quality-text span {
    font-size: 12px;
  }
  .trust-footer {
    margin-top: 30px;
    padding-top: 20px;
    gap: 15px;
  }
  .trust-item .emoji {
    font-size: 22px;
  }
  .trust-item .label {
    font-size: 10px;
  }
}

@media (max-width: 480px) {
  .trust-module {
    padding: 0 12px;
    margin: 20px auto;
  }
  .trust-card {
    padding: 18px 14px;
  }
  .trust-title {
    font-size: 18px;
  }
  .trust-footer {
    flex-wrap: wrap;
    gap: 12px;
  }
  .trust-item {
    min-width: 70px;
  }
}
