.hero-gradient {
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.9) 0%, rgba(102, 45, 145, 0.85) 100%);
}
.hero-banner .swiper-pagination-bullet { background: #fff; opacity: 0.5; width: 10px; height: 10px; }
.hero-banner .swiper-pagination-bullet-active { opacity: 1; background: #fff; }
.hero-banner .swiper-button-prev,
.hero-banner .swiper-button-next { color: #fff; }
.hero-banner .swiper-button-prev::after,
.hero-banner .swiper-button-next::after { font-size: 1.5rem; }
.product-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}
.product-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.product-card:hover img {
  transform: scale(1.08);
}
.product-card .line-clamp-2 {
  min-height: 2.5em;
}

/* Product detail — 阿里国际站风格 */
.detail-layout {
  display: block;
}

.ali-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  color: #6b7280;
}

.ali-breadcrumb a {
  color: #6b7280;
  text-decoration: none;
}

.ali-breadcrumb a:hover {
  color: #1e3a8a;
}

.ali-breadcrumb-sep {
  color: #d1d5db;
}

.pd-top,
.ali-pd-top {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 28px;
  align-items: start;
}

.ali-left-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ali-gallery-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ali-thumbs-h {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.ali-thumb-h {
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  padding: 0;
  background: #fff;
  cursor: pointer;
  aspect-ratio: 1 / 1;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ali-thumb-h img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.ali-thumb-h.active,
.ali-thumb-h:hover {
  border-color: #111827;
  box-shadow: 0 0 0 1px #111827;
}

.ali-stage {
  position: relative;
  width: 100%;
  min-width: 0;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  max-height: 520px;
}

.ali-main-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  padding: 16px;
  box-sizing: border-box;
  background: #fff;
}

.ali-stage-tools {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  gap: 8px;
}

.ali-stage-tool {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #e5e7eb;
  background: rgba(255, 255, 255, 0.95);
  color: #374151;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  transition: background 0.15s ease;
}

.ali-stage-tool:hover {
  background: #fff;
  color: #1e3a8a;
}

.ali-stage-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #e5e7eb;
  background: rgba(255, 255, 255, 0.95);
  color: #374151;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.ali-stage-nav--prev { left: 12px; }
.ali-stage-nav--next { right: 12px; }
.ali-stage-nav:hover { color: #1e3a8a; }

.ali-zoom-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.ali-zoom-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
}

.ali-zoom-content {
  position: relative;
  max-width: min(90vw, 900px);
  max-height: 90vh;
  z-index: 1;
}

.ali-zoom-content img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
}

.ali-zoom-close {
  position: absolute;
  top: -40px;
  right: 0;
  width: 36px;
  height: 36px;
  border: none;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  border-radius: 50%;
  cursor: pointer;
}

.ali-buy-box {
  padding: 4px 0 0;
}

.ali-title {
  margin: 0;
  font-size: clamp(1.25rem, 2.5vw, 1.625rem);
  font-weight: 700;
  color: #111827;
  line-height: 1.35;
}

.ali-meta-row {
  margin-top: 10px;
  font-size: 0.8125rem;
  color: #6b7280;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.ali-meta-dot {
  color: #d1d5db;
}

.ali-cat-link {
  color: #1e3a8a;
  text-decoration: none;
}

.ali-cat-link:hover {
  text-decoration: underline;
}

.ali-price-tiers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 20px 0;
  padding-bottom: 20px;
  border-bottom: 1px solid #f3f4f6;
}

.ali-price-tier {
  min-width: 0;
}

.ali-tier-price {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  font-weight: 700;
  color: #111827;
  line-height: 1.1;
}

.ali-tier-range {
  margin: 4px 0 0;
  font-size: 0.8125rem;
  color: #6b7280;
}

.ali-qty-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.ali-qty-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
  min-width: 60px;
}

.ali-qty-stepper {
  display: flex;
  align-items: center;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}

.ali-qty-btn {
  width: 36px;
  height: 36px;
  border: none;
  background: #f9fafb;
  color: #374151;
  font-size: 1.125rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ali-qty-btn:hover {
  background: #f3f4f6;
}

.ali-qty-input {
  width: 56px;
  height: 36px;
  border: none;
  border-left: 1px solid #e5e7eb;
  border-right: 1px solid #e5e7eb;
  text-align: center;
  font-size: 0.9375rem;
  font-weight: 600;
  -moz-appearance: textfield;
}

.ali-qty-input::-webkit-outer-spin-button,
.ali-qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.ali-qty-hint {
  font-size: 0.8125rem;
  color: #9ca3af;
}

.ali-attrs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.ali-attr-box {
  background: #f9fafb;
  border-radius: 8px;
  padding: 12px 14px;
}

.ali-attr-key {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: #6b7280;
  margin-bottom: 4px;
}

.ali-attr-val {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #111827;
}

.ali-glance {
  margin-bottom: 20px;
}

.ali-glance-title {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 10px;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #111827;
}

.ali-glance-list {
  margin: 0;
  padding-left: 1.125rem;
  color: #374151;
  font-size: 0.875rem;
  line-height: 1.7;
}

.ali-glance-list li + li {
  margin-top: 4px;
}

.ali-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.ali-order-btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 14px 24px !important;
  font-size: 1rem !important;
  border-radius: 999px !important;
}

.ali-order-note {
  margin: 10px 0 0;
  text-align: center;
  font-size: 0.8125rem;
  color: #9ca3af;
}

/* legacy pd-* bottom sections */
.pd-gallery-card,
.pd-summary-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  box-shadow: 0 4px 18px rgba(30, 58, 138, 0.06);
  padding: 16px;
}

.pd-subline {
  margin: 8px 0 0;
  color: #6b7280;
  font-size: 0.9rem;
  line-height: 1.6;
}

.pd-bottom {
  margin-top: 18px;
  display: grid;
  gap: 14px;
}

.pd-anchor-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  padding: 10px 14px;
  margin: 20px 0 0;
  position: sticky;
  top: 64px;
  z-index: 19;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 4px 18px rgba(30, 58, 138, 0.08);
}

.pd-anchor-nav a {
  font-size: 0.84rem;
  font-weight: 600;
  color: #6b7280;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.pd-anchor-nav a:hover {
  color: #1e3a8a;
}

.pd-anchor-nav a.active {
  color: #1e3a8a;
  background: #eff6ff;
  border-color: #1e3a8a;
}

.pd-module {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  box-shadow: 0 4px 18px rgba(30, 58, 138, 0.06);
  padding: 16px;
}

.pd-module[id] {
  scroll-margin-top: 120px;
}

.pd-module h3 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 1.125rem;
  font-weight: 700;
  color: #111827;
}

.pd-spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.pd-spec-table th,
.pd-spec-table td {
  border-top: 1px solid #e5e7eb;
  padding: 9px 8px;
  text-align: left;
}

.pd-spec-table th {
  width: 230px;
  color: #6b7280;
  font-weight: 700;
}

.pd-pack-list {
  margin: 0;
  padding-left: 1.25rem;
  color: #374151;
  line-height: 1.8;
}

.pd-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.pd-detail-grid img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.pd-calculator {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
}

.pd-calculator-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-bottom: 1px solid #e5e7eb;
}

.pd-calculator-fields > div {
  padding: 16px;
  border-right: 1px solid #e5e7eb;
}

.pd-calculator-fields > div:last-child {
  border-right: none;
}

.pd-calculator-fields label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 8px;
}

.pd-input {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.9375rem;
}

.pd-input:focus {
  outline: none;
  border-color: #1e3a8a;
  box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.12);
}

.pd-calculator-result {
  background: linear-gradient(135deg, #1e3a8a 0%, #662d91 100%);
  color: #fff;
  text-align: center;
  padding: 24px 16px;
}

.pd-calculator-label {
  margin: 0 0 4px;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
}

.pd-calculator-value {
  margin: 0;
  font-size: 2rem;
  font-weight: 700;
}

.btn-outline {
  background: #fff;
  color: #1e3a8a;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.25;
  border: 1px solid #1e3a8a;
  transition: background 0.15s ease, color 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
}

.btn-outline:hover {
  background: #eff6ff;
  color: #1e3a8a;
}

@media (max-width: 1020px) {
  .pd-top,
  .ali-pd-top {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .ali-stage {
    max-height: 400px;
  }
  .ali-attrs {
    grid-template-columns: 1fr;
  }
  .pd-anchor-nav {
    top: 64px;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }
  .pd-anchor-nav a {
    flex: 0 0 auto;
  }
  .pd-detail-grid {
    grid-template-columns: 1fr 1fr;
  }
  .pd-calculator-fields {
    grid-template-columns: 1fr;
  }
  .pd-calculator-fields > div {
    border-right: none;
    border-bottom: 1px solid #e5e7eb;
  }
  .pd-calculator-fields > div:last-child {
    border-bottom: none;
  }
}

@media (max-width: 720px) {
  .ali-price-tiers {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .pd-detail-grid {
    grid-template-columns: 1fr;
  }
}

/* 缩略图 legacy 类保留兼容 */
.product-gallery-thumb {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 10px;
  border: 2px solid transparent;
  transition: all 0.2s ease;
}

.product-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background: #f8fafc;
}

.product-gallery-thumb:hover {
  border-color: #1e3a8a;
  opacity: 0.95;
}

.product-gallery-thumb.ring-2 {
  border-color: #1e3a8a;
}

.product-price-card {
  background: linear-gradient(135deg, #1e3a8a 0%, #662d91 100%);
  color: #fff;
  border-radius: 1rem;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 10px 25px rgba(30, 58, 138, 0.22);
  overflow: visible;
}

.product-price-card__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem 1.5rem;
  align-items: end;
}

.product-price-card__block {
  min-width: 0;
}

.product-price-card__block--moq {
  text-align: right;
  padding-left: 1rem;
  border-left: 1px solid rgba(255, 255, 255, 0.22);
}

.product-price-card__label {
  margin: 0 0 0.35rem;
  font-size: 0.875rem;
  line-height: 1.25;
  color: rgba(255, 255, 255, 0.78);
}

.product-price-card__price {
  margin: 0;
  font-size: clamp(1.75rem, 5vw, 2.25rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #fff;
  word-break: break-word;
}

.product-price-card__moq {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.2;
  color: #fff;
  white-space: nowrap;
}

.product-price-card__moq-unit {
  margin-left: 0.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
}

@media (max-width: 420px) {
  .product-price-card__grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .product-price-card__block--moq {
    padding-left: 0;
    padding-top: 0.75rem;
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
    text-align: left;
  }
}

.product-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}
.product-badge--green { background: #dcfce7; color: #15803d; }
.product-badge--blue { background: #dbeafe; color: #1d4ed8; }
.product-badge--emerald { background: #d1fae5; color: #047857; }

.product-specs-table tr:last-child td { border-bottom: none; }

.product-detail-content .article-content img {
  max-width: min(100%, 560px);
  max-height: 360px;
}
.swiper-pagination-bullet-active { background: #1E3A8A !important; }

.btn-primary {
  background: linear-gradient(135deg, #1e3a8a 0%, #0077b3 100%);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.25;
  border: none;
  box-shadow: 0 4px 14px rgba(30, 58, 138, 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
  display: inline-block;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.btn-primary:hover {
  filter: brightness(1.06);
  box-shadow: 0 6px 20px rgba(30, 58, 138, 0.36);
  transform: translateY(-1px);
  color: #fff;
}

/* 全局可访问性 - Focus 样式 */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #1e3a8a;
  outline-offset: 2px;
  border-radius: 4px;
}

.btn-primary:focus-visible,
.btn-cta:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
  box-shadow: 0 0 0 6px rgba(30, 58, 138, 0.4);
}

/* High-emphasis call-to-action (inquiry submit, get quote, etc.) */
.btn-cta {
  background: linear-gradient(135deg, #1e3a8a 0%, #662d91 55%, #0077b3 100%);
  color: #fff !important;
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 1rem 1.75rem;
  min-height: 3.25rem;
  box-shadow: 0 10px 28px rgba(30, 58, 138, 0.38);
}
.btn-cta:hover {
  filter: brightness(1.08);
  box-shadow: 0 12px 32px rgba(30, 58, 138, 0.45);
  transform: translateY(-2px);
}
.btn-cta:active {
  transform: translateY(0);
  box-shadow: 0 6px 18px rgba(30, 58, 138, 0.32);
}
.btn-cta.btn-cta--block,
a.btn-cta.btn-cta--block,
button.btn-cta.btn-cta--block {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.btn-secondary {
  border: 2px solid #1E3A8A;
  color: #1E3A8A;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-weight: 500;
  transition: all 0.2s;
  display: inline-block;
}
.btn-secondary:hover { background-color: #1E3A8A; color: white; }

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: #111827;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}
@media (min-width: 768px) { .section-title { font-size: 2.75rem; } }

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-content table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 0.9rem; }
.article-content th, .article-content td { border: 1px solid #e5e7eb; padding: 0.75rem 1rem; text-align: left; }
.article-content th { background: #f3f4f6; font-weight: 600; }
.article-content img { border-radius: 0.75rem; margin: 1.25rem auto; max-width: min(100%, 520px); max-height: 360px; width: auto; height: auto; object-fit: contain; display: block; }
.article-content figure { margin: 1.25rem 0; text-align: center; }
.article-content figure img { margin-left: auto; margin-right: auto; }
.article-content h1 { font-size: 2rem; font-weight: 700; margin-bottom: 1rem; }
.article-content h2 { font-size: 1.5rem; font-weight: 600; margin-top: 2rem; margin-bottom: 0.75rem; }
.article-content h3 { font-size: 1.15rem; font-weight: 600; margin-top: 1.25rem; margin-bottom: 0.5rem; }
