/* ==============================================
   沃普农业 — B2B产品详情页专用样式
   product-b2b.css
   ============================================== */

/* =============================================
   面包屑导航栏
   ============================================= */
.b2b-breadcrumb-bar {
  background: var(--bg-light);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}
.b2b-breadcrumb-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.breadcrumb-list {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  font-size: 0.82rem;
  color: var(--text-light);
  flex-wrap: wrap;
}
.breadcrumb-list a { color: var(--text-mid); transition: var(--transition); }
.breadcrumb-list a:hover { color: var(--green-main); }
.breadcrumb-list [aria-current="page"] { color: var(--text-dark); font-weight: 600; }
.breadcrumb-list i { font-size: 0.6rem; color: var(--text-light); }
.breadcrumb-actions { display: flex; gap: 10px; }
.bc-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 5px 12px;
  font-size: 0.8rem;
  color: var(--text-mid);
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--white);
  cursor: pointer;
  transition: var(--transition);
}
.bc-btn:hover { border-color: var(--green-main); color: var(--green-main); }

/* =============================================
   产品Hero区域
   ============================================= */
.b2b-product-hero {
  background: var(--white);
  padding: 36px 0 32px;
  border-bottom: 1px solid var(--border);
}
.b2b-hero-layout {
  display: grid;
  grid-template-columns: 520px 1fr;
  gap: 48px;
  align-items: start;
}

/* 图片画廊 */
.b2b-product-gallery { display: flex; flex-direction: column; gap: 12px; }
.gallery-main-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-light);
}
.gallery-main-img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  display: block;
  transition: opacity 0.3s ease;
}
.gallery-badges {
  position: absolute;
  top: 14px; left: 14px;
  display: flex; flex-direction: column; gap: 6px;
}
.badge-cert, .badge-stock {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
}
.badge-cert { background: rgba(255,255,255,0.92); color: var(--green-dark); }
.badge-stock.in-stock { background: rgba(56,142,60,0.9); color: #fff; }
.badge-stock.in-stock i { font-size: 0.5rem; }
.gallery-thumbs { display: flex; gap: 10px; }
.thumb-btn {
  width: 80px; height: 60px;
  border-radius: 6px;
  overflow: hidden;
  border: 2px solid var(--border);
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
  padding: 0;
  background: none;
}
.thumb-btn img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb-btn:hover, .thumb-btn.active { border-color: var(--green-main); }

/* 产品信息区 */
.b2b-product-meta-top {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.b2b-brand-tag {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 12px;
  background: var(--green-dark);
  color: #fff;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 700;
}
.b2b-category-tag {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 12px;
  background: var(--bg-section);
  color: var(--text-mid);
  border-radius: 4px;
  font-size: 0.78rem;
  border: 1px solid var(--border);
}

.b2b-product-name {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 6px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.b2b-product-subtitle {
  font-size: 0.92rem;
  color: var(--text-light);
  margin-bottom: 14px;
  line-height: 1.5;
}

.b2b-sku-row {
  display: flex; align-items: center; gap: 20px;
  padding: 10px 14px;
  background: var(--bg-light);
  border-radius: 6px;
  font-size: 0.82rem;
  color: var(--text-mid);
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.b2b-sku-row strong { color: var(--text-dark); }
.b2b-update-time { margin-left: auto; display: flex; align-items: center; gap: 5px; }

/* 参数速览网格 */
.b2b-params-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 20px;
}
.b2b-param-item {
  background: var(--white);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.b2b-param-item:hover { background: var(--green-pale); }
.param-label { font-size: 0.75rem; color: var(--text-light); }
.param-value { font-size: 0.95rem; font-weight: 700; color: var(--green-dark); }

/* 包装规格 */
.b2b-packaging-row { margin-bottom: 22px; }
.b2b-section-label-sm {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-mid);
  margin-bottom: 10px;
}
.b2b-pkg-options { display: flex; gap: 8px; flex-wrap: wrap; }
.pkg-btn {
  padding: 7px 14px;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-mid);
  background: var(--white);
  cursor: pointer;
  transition: var(--transition);
}
.pkg-btn:hover { border-color: var(--green-main); color: var(--green-main); }
.pkg-btn.active { border-color: var(--green-main); background: var(--green-pale); color: var(--green-dark); }

/* CTA按钮组 */
.b2b-cta-group {
  display: flex; gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.b2b-cta-main { flex: 1; min-width: 160px; justify-content: center; }
.btn-ghost {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text-mid);
}
.btn-ghost:hover { border-color: var(--green-main); color: var(--green-main); background: var(--green-pale); }

/* 信任标识 */
.b2b-trust-row {
  display: flex; gap: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.trust-item {
  display: flex; align-items: center; gap: 7px;
  font-size: 0.82rem;
  color: var(--text-mid);
}
.trust-item i { color: var(--green-main); font-size: 0.9rem; }

/* =============================================
   粘性Tab导航
   ============================================= */
.b2b-tab-nav {
  background: var(--white);
  border-bottom: 2px solid var(--border);
  position: sticky;
  top: 72px;
  z-index: 500;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.b2b-tabs-list {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.b2b-tabs-list::-webkit-scrollbar { display: none; }
.b2b-tab {
  padding: 16px 22px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-light);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
  transition: var(--transition);
  flex-shrink: 0;
  cursor: pointer;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
}
.b2b-tab:hover { color: var(--green-main); }
.b2b-tab.active { color: var(--green-dark); border-bottom-color: var(--green-main); }

/* =============================================
   主内容区布局
   ============================================= */
.b2b-main-content { padding: 40px 0 60px; background: var(--bg-light); }
.b2b-content-layout {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 28px;
  align-items: start;
}
.b2b-content-main { display: flex; flex-direction: column; gap: 0; }

/* 板块通用 */
.b2b-section {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 20px;
  border: 1px solid var(--border);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.b2b-section.hidden,
.b2b-section[hidden] {
  display: none;
}
.b2b-section.active {
  animation: fadeIn 0.3s ease forwards;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.b2b-section-header {
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--bg-section);
}
.b2b-section-header h2 {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-dark);
  display: flex; align-items: center; gap: 10px;
}
.b2b-section-header h2 i { color: var(--green-main); font-size: 1rem; }
.b2b-section-desc { font-size: 0.9rem; color: var(--text-light); margin-top: 8px; line-height: 1.65; }
.b2b-sub-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 24px 0 14px;
  display: flex; align-items: center; gap: 8px;
}
.b2b-sub-title::before {
  content: '';
  display: inline-block;
  width: 4px; height: 16px;
  background: var(--green-main);
  border-radius: 2px;
  flex-shrink: 0;
}

/* 产品简介 */
.b2b-intro-block {
  background: var(--bg-light);
  border-left: 4px solid var(--green-main);
  padding: 16px 20px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-bottom: 24px;
}
.b2b-intro-block p { font-size: 0.92rem; color: var(--text-mid); line-height: 1.8; margin: 0; }

/* =============================================
   规格表
   ============================================= */
.b2b-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-bottom: 8px;
}
.b2b-spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.b2b-spec-table thead tr {
  background: var(--green-dark);
  color: #fff;
}
.b2b-spec-table th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.b2b-spec-table td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-mid);
  vertical-align: middle;
}
.b2b-spec-table tbody tr:last-child td { border-bottom: none; }
.b2b-spec-table tbody tr:nth-child(even) { background: var(--bg-light); }
.b2b-spec-table tbody tr:hover { background: var(--green-pale); }
.b2b-spec-table td strong { color: var(--text-dark); }

/* 对比表高亮行 */
.b2b-compare-table .highlight-row { background: rgba(56,142,60,0.08) !important; }
.b2b-compare-table .highlight-row td { color: var(--green-dark) !important; }
.b2b-compare-table .highlight-row td strong { color: var(--green-dark); }

/* =============================================
   施用指南
   ============================================= */
.b2b-app-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.b2b-app-card {
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid var(--border);
  transition: var(--transition);
}
.b2b-app-card:hover { border-color: var(--green-main); box-shadow: var(--shadow); }
.b2b-app-icon {
  width: 44px; height: 44px;
  background: var(--green-dark);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 12px;
}
.b2b-app-card h3 { font-size: 0.95rem; font-weight: 700; color: var(--text-dark); margin-bottom: 8px; }
.b2b-app-card p { font-size: 0.85rem; color: var(--text-light); margin-bottom: 12px; line-height: 1.6; }
.b2b-app-list {
  list-style: none;
  display: flex; flex-direction: column; gap: 6px;
}
.b2b-app-list li {
  font-size: 0.83rem;
  color: var(--text-mid);
  padding-left: 14px;
  position: relative;
  line-height: 1.5;
}
.b2b-app-list li::before {
  content: '▸';
  position: absolute; left: 0;
  color: var(--green-main);
  font-size: 0.7rem;
  top: 2px;
}

/* 注意事项 */
.b2b-notice-block {
  background: rgba(245,166,35,0.08);
  border: 1px solid rgba(245,166,35,0.3);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-top: 20px;
}
.b2b-notice-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #8a6000;
  margin-bottom: 10px;
  display: flex; align-items: center; gap: 7px;
}
.b2b-notice-list {
  list-style: none;
  display: flex; flex-direction: column; gap: 7px;
}
.b2b-notice-list li {
  font-size: 0.85rem;
  color: var(--text-mid);
  padding-left: 16px;
  position: relative;
  line-height: 1.6;
}
.b2b-notice-list li::before {
  content: '!';
  position: absolute; left: 0;
  color: #e65100;
  font-weight: 700;
  font-size: 0.75rem;
}

/* =============================================
   认证资质
   ============================================= */
.b2b-cert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}
.b2b-cert-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-light);
  transition: var(--transition);
}
.b2b-cert-card:hover { border-color: var(--green-main); box-shadow: var(--shadow); }
.cert-icon-wrap {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  color: #fff;
  flex-shrink: 0;
}
.cert-iso { background: var(--green-dark); }
.cert-cn { background: #c62828; }
.cert-eu { background: #1565c0; }
.cert-organic { background: #2e7d32; }
.cert-haccp { background: #6a1b9a; }
.cert-info h3 { font-size: 0.88rem; font-weight: 700; color: var(--text-dark); margin-bottom: 4px; }
.cert-info p { font-size: 0.78rem; color: var(--text-light); margin-bottom: 8px; line-height: 1.4; }
.cert-status {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}
.cert-status.valid { color: #2e7d32; }
.cert-status.valid i { font-size: 0.65rem; }

/* 检测报告链接 */
.b2b-doc-link {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.82rem;
  color: var(--green-main);
  font-weight: 600;
  transition: var(--transition);
}
.b2b-doc-link:hover { color: var(--green-dark); }

/* =============================================
   文件下载
   ============================================= */
.b2b-docs-grid {
  display: flex; flex-direction: column; gap: 12px;
  margin-bottom: 20px;
}
.b2b-doc-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-light);
  transition: var(--transition);
}
.b2b-doc-card:hover { border-color: var(--green-main); background: var(--white); box-shadow: var(--shadow); }
.doc-icon-wrap {
  width: 48px; height: 48px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  color: #fff;
  flex-shrink: 0;
}
.doc-tds { background: var(--green-dark); }
.doc-sds { background: #c62828; }
.doc-coa { background: #1565c0; }
.doc-brochure { background: var(--accent); }
.doc-label { background: #6a1b9a; }
.doc-compliance { background: #00695c; }

.doc-info { flex: 1; }
.doc-type-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  background: var(--green-dark);
  color: #fff;
  margin-bottom: 6px;
}
.doc-tag-sds { background: #c62828; }
.doc-tag-coa { background: #1565c0; }
.doc-tag-brochure { background: var(--accent); }
.doc-tag-label { background: #6a1b9a; }
.doc-tag-compliance { background: #00695c; }

.doc-info h3 { font-size: 0.92rem; font-weight: 700; color: var(--text-dark); margin-bottom: 4px; }
.doc-info p { font-size: 0.82rem; color: var(--text-light); margin-bottom: 8px; line-height: 1.5; }
.doc-meta {
  display: flex; align-items: center; gap: 14px;
  font-size: 0.75rem;
  color: var(--text-light);
  flex-wrap: wrap;
}
.doc-meta i { color: var(--green-main); margin-right: 2px; }

.doc-download-btn {
  display: flex; align-items: center; gap: 7px;
  padding: 9px 18px;
  background: var(--green-main);
  color: #fff;
  border-radius: 7px;
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
  transition: var(--transition);
  flex-shrink: 0;
}
.doc-download-btn:hover { background: var(--green-dark); color: #fff; }
.doc-download-locked { background: var(--text-light); }
.doc-download-locked:hover { background: var(--green-main); }

/* 批量下载 */
.b2b-bulk-download {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 20px;
  background: var(--bg-section);
  border-radius: var(--radius);
  font-size: 0.88rem;
  color: var(--text-mid);
  flex-wrap: wrap;
}
.b2b-bulk-download i { color: var(--green-main); font-size: 1rem; }

/* =============================================
   FAQ
   ============================================= */
.b2b-faq-list { display: flex; flex-direction: column; gap: 0; }
.b2b-faq-item {
  border-bottom: 1px solid var(--border);
}
.b2b-faq-item:first-child { border-top: 1px solid var(--border); }
.b2b-faq-q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
  text-align: left;
  cursor: pointer;
  background: none;
  border: none;
  transition: var(--transition);
}
.b2b-faq-q:hover { color: var(--green-main); }
.b2b-faq-q i { font-size: 0.8rem; color: var(--green-main); flex-shrink: 0; transition: transform 0.3s ease; }
.b2b-faq-q[aria-expanded="true"] i { transform: rotate(45deg); }
.b2b-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}
.b2b-faq-a.open {
  max-height: 600px;
  padding-bottom: 18px;
}
.b2b-faq-a p, .b2b-faq-a ul {
  font-size: 0.88rem;
  color: var(--text-mid);
  line-height: 1.8;
  margin-bottom: 10px;
}
.b2b-faq-a ul { padding-left: 18px; }
.b2b-faq-a ul li { margin-bottom: 6px; }

/* FAQ 表格 */
.faq-table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  font-size: 0.85rem;
  border: 2px solid var(--green-dark);
  border-radius: 8px;
  overflow: hidden;
}
.faq-table thead { background: var(--green-dark); }
.faq-table th {
  color: #fff;
  font-weight: 700;
  padding: 10px 14px;
  text-align: left;
}
.faq-table td {
  padding: 9px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text-mid);
}
.faq-table tbody tr:last-child td { border-bottom: none; }
.faq-table tbody tr:hover { background: var(--green-pale); }

/* =============================================
   询盘表单
   ============================================= */
.b2b-inquiry-section { background: var(--white); }
.b2b-inquiry-form { display: flex; flex-direction: column; gap: 18px; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: 7px;
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--text-dark);
  background: var(--white);
  transition: var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--green-main);
  box-shadow: 0 0 0 3px rgba(76,175,80,0.12);
}
.form-group input.input-readonly {
  background: var(--bg-light);
  color: var(--text-mid);
  cursor: default;
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-hint { font-size: 0.78rem; color: var(--text-light); margin-top: 4px; }
.form-error { font-size: 0.78rem; color: #e53935; min-height: 16px; }
.required { color: #e53935; }

/* 数量+单位 */
.input-with-unit { display: flex; gap: 0; }
.input-with-unit input {
  flex: 1;
  border-radius: 7px 0 0 7px;
  border-right: none;
}
.input-with-unit select {
  width: 110px;
  border-radius: 0 7px 7px 0;
  border-left: none;
  background: var(--bg-section);
  flex-shrink: 0;
}

/* 文件上传 */
.file-upload-area {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  background: var(--bg-light);
}
.file-upload-area:hover, .file-upload-area.drag-over {
  border-color: var(--green-main);
  background: var(--green-pale);
}
.file-upload-area i { font-size: 1.8rem; color: var(--text-light); margin-bottom: 8px; display: block; }
.file-upload-area p { font-size: 0.88rem; color: var(--text-mid); margin-bottom: 4px; }
.file-hint { font-size: 0.78rem; color: var(--text-light) !important; }
.file-upload-link { color: var(--green-main); font-weight: 600; cursor: pointer; text-decoration: underline; }
.file-preview {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  background: var(--green-pale);
  border-radius: 6px;
  font-size: 0.85rem;
  color: var(--text-dark);
  margin-top: 8px;
}

/* 复选框 */
.form-checkbox { flex-direction: row; align-items: flex-start; gap: 0; }
.checkbox-label {
  display: flex; align-items: flex-start; gap: 10px;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--text-mid);
  line-height: 1.6;
}
.checkbox-label input[type="checkbox"] {
  width: 18px; height: 18px;
  border-radius: 4px;
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--green-main);
  padding: 0;
  border: none;
  box-shadow: none;
}
.checkbox-label input:focus { box-shadow: none; }
.checkbox-label a { color: var(--green-main); }

/* 提交按钮 */
.form-submit-row {
  display: flex; align-items: center; gap: 20px;
  flex-wrap: wrap;
}
.btn-submit-inquiry { min-width: 180px; }
.form-submit-note {
  font-size: 0.8rem;
  color: var(--text-light);
  display: flex; align-items: center; gap: 6px;
}
.form-submit-note i { color: var(--green-main); }

/* =============================================
   侧边栏
   ============================================= */
.b2b-sidebar {
  position: sticky;
  top: 130px;
  display: flex; flex-direction: column; gap: 16px;
}
.b2b-sidebar-widget {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 20px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.b2b-sidebar-widget h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--bg-section);
  display: flex; align-items: center; gap: 8px;
}
.b2b-sidebar-widget h3 i { color: var(--green-main); }

/* 联系人卡片 */
.b2b-contact-widget { border-top: 4px solid var(--green-main); }
.b2b-contact-person {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 16px;
}
.contact-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--green-dark);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-info { flex: 1; }
.contact-info strong { display: block; font-size: 0.92rem; color: var(--text-dark); }
.contact-info span { font-size: 0.78rem; color: var(--text-light); }
.contact-online {
  display: flex; align-items: center; gap: 4px;
  font-size: 0.75rem;
  color: #2e7d32;
  font-weight: 600;
}
.contact-online i { font-size: 0.5rem; }
.b2b-contact-methods { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.contact-method-btn {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 14px;
  border: 1.5px solid var(--border);
  border-radius: 7px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-mid);
  transition: var(--transition);
  background: var(--bg-light);
}
.contact-method-btn:hover { border-color: var(--green-main); color: var(--green-main); background: var(--green-pale); }
.contact-method-btn i { width: 16px; text-align: center; color: var(--green-main); }
.contact-wechat i { color: #07c160; }
.contact-whatsapp i { color: #25d366; }
.b2b-service-hours {
  font-size: 0.78rem;
  color: var(--text-light);
  display: flex; align-items: center; gap: 6px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

/* 样品申请 */
.b2b-sample-widget { text-align: center; background: var(--green-pale); border-color: var(--green-main); }
.sample-icon {
  width: 52px; height: 52px;
  background: var(--green-dark);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 1.3rem;
  margin: 0 auto 12px;
}
.b2b-sample-widget h3 { border-bottom: none; padding-bottom: 0; justify-content: center; margin-bottom: 8px; }
.b2b-sample-widget p { font-size: 0.85rem; color: var(--text-mid); margin-bottom: 14px; line-height: 1.6; }
.btn-block { width: 100%; justify-content: center; }

/* 参数DL */
.b2b-param-dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 16px;
  font-size: 0.85rem;
}
.b2b-param-dl dt { color: var(--text-light); font-weight: 500; white-space: nowrap; }
.b2b-param-dl dd { color: var(--text-dark); font-weight: 600; margin: 0; }

/* 相关产品 */
.b2b-related-list { display: flex; flex-direction: column; gap: 12px; list-style: none; }
.b2b-related-list a {
  display: flex; align-items: center; gap: 12px;
  padding: 8px;
  border-radius: var(--radius);
  transition: var(--transition);
}
.b2b-related-list a:hover { background: var(--green-pale); }
.b2b-related-list img {
  width: 52px; height: 40px;
  object-fit: cover;
  border-radius: 5px;
  flex-shrink: 0;
}
.b2b-related-list strong { display: block; font-size: 0.85rem; color: var(--text-dark); margin-bottom: 2px; }
.b2b-related-list span { font-size: 0.75rem; color: var(--text-light); }

/* 主页面同系列产品 - 页面正下方大图布局 */
.b2b-related-products-main {
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}
.b2b-related-products-main .b2b-section-header {
  text-align: center;
  margin-bottom: 32px;
}
.b2b-related-products-main .b2b-section-desc {
  color: var(--text-light);
  font-size: 1rem;
  margin-top: 8px;
}
.b2b-related-products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.b2b-related-product-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: var(--transition);
  text-decoration: none;
}
.b2b-related-product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  border-color: var(--green-main);
}
.b2b-related-product-image {
  width: 100%;
  height: 140px;
  overflow: hidden;
}
.b2b-related-product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}
.b2b-related-product-card:hover .b2b-related-product-image img {
  transform: scale(1.05);
}
.b2b-related-product-info {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.b2b-related-product-info h4 {
  font-size: 1.1rem;
  color: var(--text-dark);
  margin: 0 0 10px 0;
  font-weight: 600;
}
.b2b-related-product-desc {
  font-size: 0.875rem;
  color: var(--text-light);
  margin: 0 0 16px 0;
  flex: 1;
  line-height: 1.5;
}
.b2b-related-product-link {
  font-size: 0.875rem;
  color: var(--green-main);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}
.b2b-related-product-link i {
  font-size: 0.75rem;
  transition: var(--transition);
}
.b2b-related-product-card:hover .b2b-related-product-link i {
  transform: translateX(4px);
}

/* 响应式 - 同系列产品 */
@media (max-width: 1200px) {
  .b2b-related-products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .b2b-related-products-grid {
    grid-template-columns: 1fr;
  }
  .b2b-related-product-image {
    height: 180px;
  }
}

/* 认证标识 */
.cert-badge-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
}
.cert-badge-item {
  height: 56px;
  border: 2px solid var(--border);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--green-dark);
  line-height: 1.2;
  background: var(--bg-light);
  transition: var(--transition);
  cursor: default;
}
.cert-badge-item:hover { border-color: var(--green-main); background: var(--green-pale); }
.cert-badge-eu { color: #1565c0; }
.cert-badge-omri { color: #2e7d32; }

/* =============================================
   底部CTA
   ============================================= */
.b2b-bottom-cta {
  background: #1f5828;
  padding: 52px 0;
}
.b2b-cta-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.b2b-cta-text h2 {
  font-family: var(--font-head);
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 8px;
}
.b2b-cta-text p { font-size: 0.95rem; color: rgba(255,255,255,0.72); max-width: 520px; line-height: 1.7; }
.b2b-cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-white { background: var(--white); color: var(--green-dark); }
.btn-white:hover { background: var(--bg-light); }
.btn-outline-white {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.5);
  color: var(--white);
}
.btn-outline-white:hover { background: rgba(255,255,255,0.1); border-color: var(--white); }

/* =============================================
   弹窗 Modal
   ============================================= */
.b2b-modal {
  position: fixed; inset: 0;
  z-index: 3000;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.b2b-modal[hidden] { display: none; }
.b2b-modal-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
}
.b2b-modal-box {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 60px rgba(0,0,0,0.3);
  animation: modalIn 0.3s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.b2b-modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--bg-section);
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-mid);
  font-size: 0.9rem;
  transition: var(--transition);
}
.b2b-modal-close:hover { background: var(--border); color: var(--text-dark); }
.b2b-modal-header { text-align: center; margin-bottom: 24px; }
.b2b-modal-icon {
  font-size: 2.2rem;
  color: var(--green-main);
  margin-bottom: 12px;
  display: block;
}
.b2b-modal-header h3 { font-size: 1.2rem; font-weight: 800; color: var(--text-dark); margin-bottom: 6px; }
.b2b-modal-header p { font-size: 0.88rem; color: var(--text-light); line-height: 1.6; }
.b2b-modal-form { display: flex; flex-direction: column; gap: 14px; }

/* Toast */
.b2b-toast {
  position: fixed;
  bottom: 30px; right: 30px;
  background: var(--green-dark);
  color: #fff;
  padding: 14px 22px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  z-index: 4000;
  display: flex; align-items: center; gap: 10px;
  animation: toastIn 0.3s ease;
  max-width: 340px;
}
.b2b-toast[hidden] { display: none; }
@keyframes toastIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.b2b-toast.toast-success { background: #2e7d32; }
.b2b-toast.toast-error { background: #c62828; }

/* =============================================
   产品介绍 - b2b-intro-content
   ============================================= */
.b2b-intro-content {
  padding: 0;
}

.b2b-intro-text h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 32px 0 16px 0;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--green-pale);
  position: relative;
}

.b2b-intro-text h3::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 60px;
  height: 2px;
  background: var(--green-main);
}

.b2b-intro-text h3:first-child {
  margin-top: 0;
}

.b2b-intro-text > p {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--text-mid);
  margin: 16px 0;
  padding: 20px;
  background: linear-gradient(135deg, var(--bg-light) 0%, #fff 100%);
  border-left: 4px solid var(--green-main);
  border-radius: 0 8px 8px 0;
}

/* =============================================
   施用参考 - b2b-guide-content
   ============================================= */
.b2b-guide-content {
  padding: 0;
}

.b2b-guide-content > h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 28px 0 18px 0;
  padding: 12px 18px;
  background: linear-gradient(135deg, var(--green-pale) 0%, rgba(76,175,80,0.08) 100%);
  border-left: 4px solid var(--green-main);
  border-radius: 0 10px 10px 0;
  position: relative;
  transition: var(--transition);
}

.b2b-guide-content > h3:first-of-type {
  margin-top: 0;
}

.b2b-guide-content > h3:hover {
  background: linear-gradient(135deg, rgba(76,175,80,0.2) 0%, rgba(76,175,80,0.08) 100%);
  border-left-width: 6px;
  padding-left: 16px;
}

/* 指南网格布局 */
.b2b-guide-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 24px 0;
}

/* 指南卡片 */
.b2b-guide-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px 20px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.b2b-guide-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green-main), var(--green-dark));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.b2b-guide-card:hover {
  border-color: var(--green-main);
  box-shadow: 0 8px 24px rgba(76, 175, 80, 0.15);
  transform: translateY(-4px);
}

.b2b-guide-card:hover::before {
  transform: scaleX(1);
}

/* 卡片图标 */
.guide-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--green-main), var(--green-dark));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 16px;
  transition: var(--transition);
}

.b2b-guide-card:hover .guide-icon {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

/* 卡片标题 */
.b2b-guide-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 14px;
  line-height: 1.4;
}

/* 卡片列表 */
.b2b-guide-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.b2b-guide-card ul li {
  font-size: 0.88rem;
  color: var(--text-mid);
  line-height: 1.6;
  padding-left: 18px;
  position: relative;
}

.b2b-guide-card ul li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--green-main);
  font-size: 0.75rem;
  top: 3px;
}

.b2b-guide-card ul li strong {
  color: var(--green-dark);
}

/* 注意事项提示框 */
.b2b-guide-note {
  background: linear-gradient(135deg, rgba(245,166,35,0.08) 0%, rgba(245,166,35,0.04) 100%);
  border: 1px solid rgba(245,166,35,0.25);
  border-left: 4px solid #f5a623;
  border-radius: 0 10px 10px 0;
  padding: 18px 20px;
  margin-top: 28px;
  position: relative;
}

.b2b-guide-note p {
  font-size: 0.92rem;
  color: var(--text-mid);
  line-height: 1.75;
  margin: 0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.b2b-guide-note p i {
  color: #f5a623;
  font-size: 1rem;
  margin-top: 3px;
  flex-shrink: 0;
}

.b2b-guide-note p strong {
  color: var(--text-dark);
}

/* 响应式 - 施用参考 */
@media (max-width: 900px) {
  .b2b-guide-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .b2b-guide-grid {
    grid-template-columns: 1fr;
  }
  .b2b-guide-card {
    padding: 20px 16px;
  }
}

/* =============================================
   使用指南 - b2b-app-guide-content
   ============================================= */
.b2b-app-guide-content {
  padding: 0;
}

/* 指南子标题样式 */
.b2b-app-guide-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 28px 0 14px 0;
  padding: 10px 16px;
  background: linear-gradient(135deg, var(--green-pale) 0%, var(--bg-light) 100%);
  border-left: 4px solid var(--green-main);
  border-radius: 0 8px 8px 0;
  position: relative;
  transition: var(--transition);
}

.b2b-app-guide-content h3:first-child {
  margin-top: 0;
}

.b2b-app-guide-content h3:hover {
  background: linear-gradient(135deg, rgba(76,175,80,0.15) 0%, rgba(76,175,80,0.05) 100%);
  border-left-width: 6px;
}

/* 指南段落文本 */
.b2b-app-guide-content > p {
  font-size: 0.95rem;
  line-height: 1.85;
  color: var(--text-mid);
  margin: 16px 0;
  padding: 18px 20px;
  background: linear-gradient(135deg, var(--bg-light) 0%, #fff 100%);
  border-left: 4px solid var(--green-main);
  border-radius: 0 10px 10px 0;
  position: relative;
}

.b2b-app-guide-content > p::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4));
  pointer-events: none;
}

/* 使用建议列表样式 */
.b2b-app-guide-content .b2b-intro-features {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.b2b-app-guide-content .b2b-intro-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.92rem;
  color: var(--text-mid);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.b2b-app-guide-content .b2b-intro-features li::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--green-main);
  transition: var(--transition);
}

.b2b-app-guide-content .b2b-intro-features li:hover {
  border-color: var(--green-main);
  box-shadow: 0 4px 16px rgba(76, 175, 80, 0.12);
  transform: translateY(-2px);
}

.b2b-app-guide-content .b2b-intro-features li:hover::before {
  width: 5px;
  background: var(--green-dark);
}

.b2b-app-guide-content .b2b-intro-features li i {
  color: var(--green-main);
  font-size: 1.1rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.b2b-app-guide-content .b2b-intro-features li strong {
  color: var(--text-dark);
}

/* 响应式 - 使用指南 */
@media (max-width: 768px) {
  .b2b-app-guide-content .b2b-intro-features {
    grid-template-columns: 1fr;
  }
  .b2b-app-guide-content h3 {
    font-size: 1rem;
    padding: 8px 12px;
  }
}

/* 核心优势列表 */
.b2b-intro-features {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.b2b-intro-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.95rem;
  color: var(--text-mid);
  transition: var(--transition);
}

.b2b-intro-features li:hover {
  border-color: var(--green-main);
  box-shadow: 0 4px 16px rgba(76, 175, 80, 0.12);
  transform: translateY(-2px);
}

.b2b-intro-features li i {
  color: var(--green-main);
  font-size: 1.1rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.b2b-intro-features li strong {
  color: var(--text-dark);
}

/* 对比表格 */
.b2b-compare-table-wrap {
  margin: 24px 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.b2b-compare-table {
  width: 100%;
  border-collapse: collapse;
}

.b2b-compare-table thead th {
  background: var(--green-dark);
  color: var(--white);
  padding: 14px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: left;
}

.b2b-compare-table tbody td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text-mid);
  transition: var(--transition);
}

.b2b-compare-table tbody tr:last-child td {
  border-bottom: none;
}

.b2b-compare-table tbody tr:hover td {
  background: var(--bg-light);
}

.b2b-compare-table .highlight-row td {
  background: var(--green-pale) !important;
  font-weight: 500;
}

.b2b-compare-table .highlight-row td strong {
  color: var(--green-dark);
  font-weight: 700;
}

/* 适用场景网格 */
.b2b-scenario-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 24px 0;
}

.b2b-scenario-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 28px 20px;
  background: linear-gradient(145deg, var(--green-pale) 0%, var(--bg-light) 100%);
  border: 2px solid transparent;
  border-radius: 16px;
  text-align: center;
  transition: var(--transition);
  cursor: default;
}

.b2b-scenario-item:hover {
  border-color: var(--green-main);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(76, 175, 80, 0.18);
}

.b2b-scenario-item i {
  font-size: 2.2rem;
  color: var(--green-main);
  transition: var(--transition);
}

.b2b-scenario-item:hover i {
  transform: scale(1.15);
  color: var(--green-dark);
}

.b2b-scenario-item span {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
}

/* 适用场景 - 响应式 */
@media (max-width: 900px) {
  .b2b-intro-features {
    grid-template-columns: 1fr;
  }
  .b2b-scenario-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 540px) {
  .b2b-scenario-grid {
    grid-template-columns: 1fr;
  }
  .b2b-intro-features li {
    padding: 14px 16px;
  }
}

/* =============================================
   响应式
   ============================================= */
@media (max-width: 1100px) {
  .b2b-hero-layout { grid-template-columns: 1fr; }
  .gallery-main-img { height: 300px; }
  .b2b-content-layout { grid-template-columns: 1fr; }
  .b2b-sidebar { position: static; display: grid; grid-template-columns: repeat(2, 1fr); }
  .b2b-cert-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .b2b-section { padding: 22px 16px; }
  .b2b-params-grid { grid-template-columns: repeat(2, 1fr); }
  .b2b-app-grid { grid-template-columns: 1fr; }
  .b2b-cert-grid { grid-template-columns: 1fr; }
  .form-row-2 { grid-template-columns: 1fr; }
  .b2b-sidebar { grid-template-columns: 1fr; }
  .b2b-doc-card { flex-direction: column; align-items: flex-start; }
  .b2b-cta-inner { flex-direction: column; text-align: center; }
  .b2b-cta-actions { justify-content: center; }
  .b2b-hero-layout { gap: 24px; }
  .b2b-cta-group { flex-direction: column; }
  .b2b-cta-main { min-width: 100%; }
}
@media (max-width: 540px) {
  .b2b-params-grid { grid-template-columns: repeat(2, 1fr); }
  .b2b-tab { padding: 12px 14px; font-size: 0.82rem; }
  .gallery-thumbs { overflow-x: auto; }
}

/* =============================================
   图片放大 Lightbox (Lightbox / Image Viewer)
   ============================================= */
.gallery-main-wrap .gallery-zoom-hint {
  position: absolute;
  bottom: 14px; right: 14px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.gallery-main-wrap:hover .gallery-zoom-hint { opacity: 1; }

/* Lightbox 容器 */
.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.image-lightbox[hidden] { display: none; }

/* Lightbox 内容区 */
.lightbox-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}
.lightbox-content img {
    width: auto;
    height: auto;
    max-width: 100vw;
    max-height: 100vh;
    object-fit: contain;
    box-shadow: none;
    animation: lightboxIn 0.25s ease;
    transform-origin: center center;
    transition: transform 0.08s ease;
    user-select: none;
  }
@keyframes lightboxIn {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}
.lightbox-caption {
  margin-top: 14px;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
  text-align: center;
  max-width: 600px;
}
/* 缩放提示 */
.lightbox-zoom-hint {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.65);
  color: rgba(255,255,255,0.85);
  padding: 10px 20px;
  border-radius: 24px;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 16px;
  pointer-events: none;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.1);
}
.lightbox-zoom-hint span { display: flex; align-items: center; gap: 5px; }
.lightbox-zoom-hint i { font-size: 0.85rem; color: rgba(255,255,255,0.7); }

/* 导航按钮 */
.lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: none;
  color: #fff;
  font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.lightbox-nav:hover {
  background: rgba(255,255,255,0.25);
  transform: translateY(-50%) scale(1.1);
}
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

/* 关闭按钮 */
.lightbox-close {
  position: fixed;
  top: 20px; right: 20px;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: none;
  color: #fff;
  font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
  z-index: 1;
}
.lightbox-close:hover { background: rgba(255,255,255,0.25); }

@media (max-width: 600px) {
  .lightbox-nav { width: 38px; height: 38px; font-size: 0.9rem; }
  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }
  .lightbox-close { top: 14px; right: 14px; }
  .lightbox-content img { max-width: 96vw; max-height: 72vh; }
}
