/* Product catalog (Machine) — sidebar + grid, white base */
.page-catalog,
.page-product-detail,
.page-news,
.page-contact {
  --cat-header-h: 90px;
}

.page-catalog {
  --cat-sidebar-w: 280px;
}

.page-catalog .site-header--catalog,
.page-product-detail .site-header--catalog,
.page-news .site-header--catalog,
.page-contact .site-header--catalog {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 300;
  background: #ffffff;
  box-shadow: 0 1px 0 var(--line), 0 6px 24px rgba(15, 20, 30, 0.07);
  backdrop-filter: none;
  min-height: var(--cat-header-h);
}

.page-catalog .site-header--catalog .logo-title,
.page-product-detail .site-header--catalog .logo-title,
.page-news .site-header--catalog .logo-title {
  color: var(--ink);
}

.page-catalog .site-header--catalog .logo-tag,
.page-product-detail .site-header--catalog .logo-tag,
.page-news .site-header--catalog .logo-tag {
  color: var(--muted);
}

.page-catalog .site-header--catalog .nav a,
.page-product-detail .site-header--catalog .nav a,
.page-news .site-header--catalog .nav a {
  color: var(--ink-soft);
}

.page-catalog .site-header--catalog .nav a:hover,
.page-product-detail .site-header--catalog .nav a:hover,
.page-news .site-header--catalog .nav a:hover {
  color: var(--orange);
  text-decoration: none;
}

.page-catalog .site-header--catalog .nav a.is-active,
.page-product-detail .site-header--catalog .nav a.is-active,
.page-news .site-header--catalog .nav a.is-active {
  color: var(--orange);
  font-weight: 700;
}

.page-catalog .site-header--catalog .nav-dot,
.page-product-detail .site-header--catalog .nav-dot,
.page-news .site-header--catalog .nav-dot {
  color: var(--muted);
}

.page-catalog .site-header--catalog .lang,
.page-product-detail .site-header--catalog .lang,
.page-news .site-header--catalog .lang {
  border-color: var(--line);
  color: var(--ink-soft);
  background: #fff;
}

.page-catalog .site-header--catalog .nav-toggle,
.page-product-detail .site-header--catalog .nav-toggle,
.page-news .site-header--catalog .nav-toggle {
  border-color: var(--line);
  background: #fff;
}

.page-catalog .site-header--catalog .nav-toggle::before,
.page-catalog .site-header--catalog .nav-toggle::after,
.page-product-detail .site-header--catalog .nav-toggle::before,
.page-product-detail .site-header--catalog .nav-toggle::after,
.page-news .site-header--catalog .nav-toggle::before,
.page-news .site-header--catalog .nav-toggle::after {
  background: var(--ink);
}

@media (max-width: 820px) {
  .page-catalog .site-header--catalog .header-actions,
  .page-product-detail .site-header--catalog .header-actions,
  .page-news .site-header--catalog .header-actions {
    background: #fff;
    border-bottom-color: var(--line);
  }

  .page-catalog .site-header--catalog .header-actions .nav a,
  .page-product-detail .site-header--catalog .header-actions .nav a,
  .page-news .site-header--catalog .header-actions .nav a {
    color: var(--ink-soft);
  }
}

.catalog-main {
  min-height: 100vh;
  background: #fff;
}

.catalog-toolbar {
  margin-top: var(--cat-header-h);
  position: sticky;
  top: var(--cat-header-h);
  z-index: 250;
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
}

.catalog-toolbar-inner {
  width: min(100% - 1.5rem, 1280px);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 0;
}

.catalog-search {
  display: flex;
  flex: 1;
  min-width: 200px;
  max-width: 480px;
  gap: 0.5rem;
}

.catalog-search input {
  flex: 1;
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.9rem;
}

.catalog-search button {
  padding: 0.55rem 1.1rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.85rem;
}

.catalog-search button:hover {
  border-color: var(--muted);
}

.catalog-shell {
  width: min(100% - 1.5rem, 1280px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: var(--cat-sidebar-w) 1fr;
  gap: 0;
  align-items: start;
}

@media (max-width: 960px) {
  .catalog-shell {
    grid-template-columns: 1fr;
  }

  .cat-sidebar {
    display: none;
  }

  .cat-sidebar.is-open {
    display: block;
    position: fixed;
    top: var(--cat-header-h);
    left: 0;
    bottom: 0;
    width: min(100%, 320px);
    z-index: 250;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.12);
    overflow-y: auto;
  }

  .cat-sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
    z-index: 240;
  }

  .cat-sidebar-overlay.is-open {
    display: block;
  }
}

.cat-sidebar {
  position: sticky;
  top: calc(var(--cat-header-h) + 52px);
  align-self: start;
  max-height: calc(100vh - var(--cat-header-h) - 52px - 2rem);
  overflow-y: auto;
  border-right: 1px solid var(--line);
  padding: 1rem 0 2rem;
  background: #fafafa;
}

.cat-group {
  margin-bottom: 0.25rem;
}

.cat-group-title {
  margin: 0;
  padding: 0.65rem 1rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #fff;
  background: #64748b;
  text-transform: uppercase;
}

.cat-group:nth-child(1) .cat-group-title {
  background: #475569;
}

.cat-link {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.55rem 1rem 0.55rem 1.15rem;
  border: none;
  background: #fff;
  font-family: inherit;
  font-size: 0.88rem;
  color: var(--ink-soft);
  cursor: pointer;
  border-inline-start: 3px solid transparent;
  border-bottom: 1px solid #eee;
}

.cat-link:hover {
  background: #f1f5f9;
  color: var(--ink);
}

.cat-link.is-active {
  background: #fff7ed;
  color: var(--orange);
  border-inline-start-color: var(--orange);
  font-weight: 600;
}

.cat-mobile-toggle {
  display: none;
}

@media (max-width: 960px) {
  .cat-mobile-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 0.9rem;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: #fff;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
  }
}

.catalog-content {
  padding: 1.25rem 0 3rem 1.75rem;
}

@media (max-width: 960px) {
  .catalog-content {
    padding-left: 0;
  }
}

.catalog-bc {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.catalog-bc a {
  color: var(--muted);
  text-decoration: none;
}

.catalog-bc a:hover {
  color: var(--orange);
}

.catalog-banner {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1.5rem;
  position: relative;
  min-height: 0;
  background: #1e293b;
}

.catalog-banner--carousel {
  padding: 0;
}

.catalog-banner:not(.catalog-banner--carousel) img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  opacity: 0.85;
}

.catalog-hero-viewport {
  overflow: hidden;
  width: 100%;
  position: relative;
  aspect-ratio: 80 / 21;
  min-height: 200px;
  max-height: min(42vw, 420px);
  height: auto;
}

.catalog-hero-track {
  display: flex;
  height: 100%;
  transition: transform 0.5s ease;
  will-change: transform;
}

.catalog-hero-slide {
  flex-shrink: 0;
  height: 100%;
  margin: 0;
}

.catalog-hero-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
}

.catalog-hero-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(2.5rem, 8vw, 3.35rem);
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  z-index: 2;
  pointer-events: auto;
}

.catalog-hero-dot {
  width: 0.55rem;
  height: 0.55rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: transform 0.15s, background 0.15s;
}

.catalog-hero-dot:hover {
  background: rgba(255, 255, 255, 0.75);
}

.catalog-hero-dot.is-active {
  background: #fff;
  transform: scale(1.15);
}

/* Sub-category carousels: no caption bar (All Machines hero keeps #catalog-hero-caption). */
.catalog-category-exclusive .catalog-banner-cap {
  display: none;
}

.catalog-banner-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 1.1rem 1.35rem 1.2rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.78));
  color: #fff;
  font-weight: 700;
  font-size: clamp(1.05rem, 2.1vw, 1.35rem);
  line-height: 1.25;
  letter-spacing: 0.02em;
  z-index: 1;
}

.catalog-intro {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 1.75rem;
  max-width: 900px;
}

.catalog-intro--jiabo {
  max-width: none;
  color: var(--ink);
}

.catalog-intro-lead {
  margin: 0 0 1.25rem;
  font-size: 0.98rem;
  line-height: 1.7;
  color: #334155;
}

.catalog-intro-h {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
}

.page-catalog .logo--image,
.page-product-detail .logo--image,
.page-news .logo--image {
  display: flex;
  align-items: center;
  text-decoration: none;
  margin-left: clamp(-0.45rem, -1.2vw, -0.1rem);
}

.page-catalog .logo--image .site-logo-img,
.page-product-detail .logo--image .site-logo-img,
.page-news .logo--image .site-logo-img {
  display: block;
  height: clamp(54px, 6.8vw, 78px);
  width: auto;
  max-width: min(500px, 78vw);
  object-fit: contain;
}

.catalog-all-exclusive {
  margin-bottom: 1.75rem;
}

.catalog-all-exclusive[hidden] {
  display: none !important;
}

.catalog-category-exclusive {
  margin-bottom: 1.75rem;
}

.catalog-category-exclusive[hidden] {
  display: none !important;
}

.catalog-intro--category .catalog-intro-h {
  margin: 0 0 0.85rem;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
}

.catalog-cat-highlights {
  margin-top: 0.75rem;
}

.catalog-intro-subh--primary {
  margin: 0.35rem 0 0.65rem;
}

.catalog-primary-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.35rem 1.75rem;
  margin: 0 0 0.25rem;
  align-items: start;
}

@media (max-width: 900px) {
  .catalog-primary-3col {
    grid-template-columns: 1fr;
  }
}

.catalog-intro-secondary {
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid #e2e8f0;
}

.catalog-intro-list--row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 2.25rem;
}

.catalog-intro-list--row li {
  margin-bottom: 0.15rem;
}

.catalog-intro-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem 2.5rem;
  align-items: start;
}

@media (max-width: 720px) {
  .catalog-intro-columns {
    grid-template-columns: 1fr;
  }
}

.catalog-intro-subh {
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
}

.catalog-intro-list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.92rem;
  line-height: 1.55;
  color: #475569;
}

.catalog-intro-list li {
  position: relative;
  padding-left: 1rem;
  margin-bottom: 0.35rem;
}

.catalog-intro-list li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--orange, #d96b31);
  font-weight: 600;
}

.catalog-section-title {
  margin: 0 0 1rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  background: #fff;
  border: none;
  border-radius: 0;
  overflow: visible;
}

@media (max-width: 900px) {
  .catalog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .catalog-grid {
    grid-template-columns: 1fr;
  }
}

.cat-card {
  background: #fff;
  display: flex;
  flex-direction: column;
  text-decoration: none !important;
  color: inherit;
  transition: background 0.15s;
  border: none;
  outline: none;
  box-shadow: none;
}

.cat-card:hover {
  background: #fff;
}

.cat-card:focus {
  outline: none;
}

.cat-card:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

.cat-card-img {
  aspect-ratio: 4 / 3;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.25rem;
  overflow: hidden;
}

.cat-card-img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  object-position: center top;
}

.cat-card-body {
  padding: 0.85rem 1rem 1.1rem;
  border-top: none;
  flex: 1;
}

.cat-card-title {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
}

.cat-card-meta {
  margin: 0.35rem 0 0;
  font-size: 0.72rem;
  color: var(--muted);
}

.catalog-meta-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.catalog-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.catalog-pagination button {
  min-width: 2.25rem;
  padding: 0.45rem 0.65rem;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 0.85rem;
  cursor: pointer;
  font-family: inherit;
}

.catalog-pagination button:hover:not(:disabled) {
  border-color: var(--orange);
  color: var(--orange);
}

.catalog-pagination button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.catalog-pagination button.is-current {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
  font-weight: 700;
}

/* Detail page */
.detail-layout {
  width: min(100% - 1.5rem, 1100px);
  margin: 0 auto;
  padding: calc(var(--header-h) + 1.5rem) 0 3rem;
}

.detail-bc {
  margin-bottom: 0.85rem;
}

/* Detail page: less vertical padding than generic .block-white (4rem) so hero → tabs feels connected */
.page-product-detail #product-detail-root .block-white.inner-section {
  padding: 1.35rem 0 2rem;
}

/* —— Catalog cards: reference layout (params + intro; hover overlay; no CTA on card) —— */
.cat-card--pro {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid transparent;
  transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.cat-card--pro:hover {
  border-color: var(--orange);
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.08);
  transform: translateY(-2px);
}

.cat-card-img-wrap {
  position: relative;
}

.cat-card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 4;
  background: #fff7ed;
  color: #c2410c;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
}

.cat-card-hover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.22s ease;
  background: rgba(15, 23, 42, 0.42);
  z-index: 3;
}

.cat-card--pro:hover .cat-card-hover {
  opacity: 1;
}

.cat-card-hover-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #fff;
  border: none;
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.84rem;
  color: var(--ink);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.cat-card-hover-ico {
  flex-shrink: 0;
  opacity: 0.85;
}

.cat-card-img-wrap .cat-card-img img {
  transition: transform 0.22s ease, filter 0.22s ease;
}

.cat-card--pro:hover .cat-card-img-wrap .cat-card-img img {
  filter: brightness(0.92);
  transform: scale(1.02);
}

.cat-card-kpi-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  padding: 0.75rem 1rem 0.25rem;
  background: #fff;
}

.cat-card-kpi {
  background: #f8fafc;
  border-radius: 8px;
  padding: 0.5rem 0.35rem;
  text-align: center;
}

.cat-card-kpi-val {
  display: block;
  font-weight: 700;
  font-size: 0.86rem;
  color: var(--ink);
}

.cat-card-kpi-lbl {
  display: block;
  font-size: 0.68rem;
  color: var(--muted);
  margin-top: 0.15rem;
}

.cat-card-intro {
  margin: 0.4rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.5;
}

/* —— Product detail: hero (text + photo); align tops, avoid stretch white gap —— */
.page-product-detail .detail-hero-pro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem 2rem;
  align-items: start;
  margin-bottom: 0.5rem;
}

@media (max-width: 900px) {
  .page-product-detail .detail-hero-pro {
    grid-template-columns: 1fr;
  }
}

.detail-hero-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.detail-badge {
  display: inline-block;
  background: #fff7ed;
  color: #c2410c;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

.detail-hero-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.15rem, 2.2vw, 1.6rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--ink);
  line-height: 1.2;
}

.detail-hero-sub {
  margin: 0 0 1rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--orange);
}

.detail-hero-intro {
  margin: 0 0 0.75rem;
  color: var(--muted);
  line-height: 1.7;
  font-size: 0.95rem;
  max-width: 40rem;
}

.detail-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.25rem;
  padding-top: 0;
}

/* Shrink-wrap to photo: avoids tall empty card when only one hero image */
.page-product-detail .detail-hero-photo.detail-hero-photo--framed {
  align-self: start;
  justify-self: stretch;
  width: 100%;
  max-width: 100%;
  height: fit-content;
  min-height: 0;
}

.detail-hero-photo--framed {
  border-radius: var(--radius);
  overflow: visible;
  background: #fff;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 0.95rem 1.05rem 0.9rem;
  width: 100%;
  box-sizing: border-box;
}

.detail-hero-visual-slot {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: fit-content;
  min-height: 0;
}

/* Single-image hero: no flex stretch / no extra band under the image */
.detail-hero-single {
  width: 100%;
  display: block;
  min-width: 0;
  line-height: 0;
}

.detail-hero-carousel {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

/* [hidden] must win over author display:flex — otherwise carousel still reserves fixed viewport height under single image */
#detail-hero-carousel[hidden],
#detail-hero-single[hidden] {
  display: none !important;
}

/* Fixed height box so contain + max-height:100% never clips tall machines */
/* Taller viewport + min-height:0 chain so object-fit:contain never clips tall photos */
.detail-carousel-viewport {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 0;
  height: clamp(260px, 46vh, 560px);
  max-height: min(560px, 72vh);
}

.detail-carousel-track {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
}

.detail-carousel-slide {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 0.85rem 0.55rem 0.95rem;
  min-height: 0;
}

.detail-carousel-slide.is-active {
  display: flex;
  z-index: 1;
}

.detail-carousel-slide img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 100%;
  height: auto;
  min-height: 0;
  object-fit: contain;
  object-position: center center;
  margin: 0 auto;
}

.detail-carousel-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.15rem;
  padding: 0.4rem 0.75rem 0.45rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 1px 10px rgba(15, 23, 42, 0.06);
}

.detail-carousel-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  padding: 0;
  border: 1px solid rgba(15, 23, 42, 0.22);
  background: #e2e8f0;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}

.detail-carousel-dot:hover {
  background: #cbd5e1;
}

.detail-carousel-dot.is-active {
  background: #2563eb;
  border-color: #1d4ed8;
  transform: scale(1.12);
}

.page-product-detail #detail-img,
.detail-hero-photo--framed img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: min(560px, 72vh);
  height: auto;
  min-height: 0;
  object-fit: contain;
  object-position: center center;
  margin: 0 auto;
}

.detail-tabs-wrap {
  margin-top: 0;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
}

.detail-jiabo-tabbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1.1rem;
}

.detail-jiabo-tab {
  appearance: none;
  border: 1px solid #d4d4d4;
  background: #fff;
  color: #222;
  font: inherit;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.5rem 1.05rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.detail-jiabo-tab:hover {
  border-color: #b0b0b0;
}

.detail-jiabo-tab.is-active {
  background: #3a3a3a;
  border-color: #3a3a3a;
  color: #fff;
}

.detail-jiabo-panels {
  min-height: 6rem;
}

.detail-jiabo-panel[hidden] {
  display: none !important;
}

.detail-jiabo-panel:not([hidden]) {
  display: block;
  padding-top: 0.15rem;
}

.detail-facts-intro {
  margin: 0 0 0.85rem;
  padding: 0;
  max-width: 52rem;
  color: #333;
  line-height: 1.75;
  font-size: 0.95rem;
}

.detail-facts-intro[hidden] {
  display: none !important;
}

.detail-jiabo-facts {
  margin: 0;
  padding: 0.35rem 0 0;
  list-style: none;
  color: #333;
  line-height: 1.8;
  font-size: 0.95rem;
  max-width: 52rem;
}

.detail-jiabo-facts li {
  margin-bottom: 0.5rem;
  padding-left: 1.15rem;
  position: relative;
}

.detail-jiabo-facts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.35rem;
  height: 0.35rem;
  background: #777;
  border-radius: 1px;
}

.detail-tab-image-wrap {
  margin: 0;
}

.detail-tab-image-wrap img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  border: 1px solid #e8e8e8;
  border-radius: 4px;
}

.detail-jiabo-tech-host {
  overflow-x: auto;
}

.detail-jiabo-table-simple,
.detail-jiabo-table-compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  color: #222;
  border: 1px solid #d8d8d8;
}

.detail-jiabo-table-simple th,
.detail-jiabo-table-simple td,
.detail-jiabo-table-compare th,
.detail-jiabo-table-compare td {
  border: 1px solid #d8d8d8;
  padding: 0.65rem 0.75rem;
  vertical-align: middle;
}

.detail-jiabo-table-simple thead th,
.detail-jiabo-table-compare thead th {
  font-weight: 700;
  text-align: center;
  background: #ececec;
  color: #111;
}

.detail-jiabo-table-simple tbody th,
.detail-jiabo-table-compare tbody th {
  font-weight: 600;
  text-align: left;
  background: #f7f7f7;
  color: #222;
}

.detail-jiabo-table-simple tbody tr:nth-child(even) th,
.detail-jiabo-table-simple tbody tr:nth-child(even) td,
.detail-jiabo-table-compare tbody tr:nth-child(even) th,
.detail-jiabo-table-compare tbody tr:nth-child(even) td {
  background: #fafafa;
}

.detail-jiabo-table-simple tbody tr:nth-child(odd) th,
.detail-jiabo-table-simple tbody tr:nth-child(odd) td,
.detail-jiabo-table-compare tbody tr:nth-child(odd) th,
.detail-jiabo-table-compare tbody tr:nth-child(odd) td {
  background: #fff;
}

.detail-jiabo-table-simple td {
  text-align: left;
}

.detail-jiabo-table-compare td {
  text-align: center;
}

.detail-jiabo-table-compare tbody th {
  width: 8.5rem;
}

.detail-jiabo-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: flex-start;
}

.detail-jiabo-gallery figure {
  margin: 0;
  flex: 0 1 auto;
  max-width: 100%;
}

.detail-jiabo-gallery img {
  display: block;
  width: auto;
  max-width: min(100%, 32rem);
  max-height: min(400px, 52vh);
  height: auto;
  object-fit: contain;
  object-position: center center;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
}

.detail-jiabo-details-fallback {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 0.95rem;
  max-width: 48rem;
}

.detail-jiabo-footnote {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
  color: var(--muted);
}

.detail-jiabo-footnote a {
  color: var(--orange);
  font-weight: 600;
  text-decoration: none;
}

.detail-jiabo-footnote a:hover {
  text-decoration: underline;
}
