/* 首页 banner 按 1920×720 比例铺满宽度；切同尺寸图即可完整显示、不裁切、不露底 */
.home-hero {
  min-height: 0;
  max-height: none;
  aspect-ratio: 1920 / 720;
  background: transparent;
}

.home-hero::before {
  display: none;
}

.home-hero .hero-media,
.home-hero .hero-slide,
.home-hero .hero-slide img {
  width: 100%;
  height: 100%;
}

.home-hero .hero-slide img {
  object-fit: cover;
  object-position: center;
}

.home-hero .hero-title {
  max-width: 880px;
  margin-inline: auto;
}

.split-section {
  display: grid;
  gap: 34px;
  align-items: center;
}

.split-media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--color-surface-strong);
}

.split-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  object-position: center;
}

.split-media iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
}

.media-video-trigger {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
}

.media-video-trigger:hover .media-video-play {
  transform: translate(-50%, -50%) scale(1.08);
}

.media-video-trigger:focus-visible {
  outline: 2px solid var(--color-accent, #46544a);
  outline-offset: 2px;
}

.media-video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 8px 24px rgba(24, 32, 27, 0.24);
  transform: translate(-50%, -50%);
  transition: transform 240ms ease;
}

.media-video-play::after {
  position: absolute;
  top: 50%;
  left: 54%;
  content: "";
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  border-left: 19px solid #24302a;
  transform: translate(-50%, -50%);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.stat-card {
  padding: 18px;
  background: var(--color-surface);
  border-radius: var(--radius-md);
}

.stat-value {
  display: block;
  color: var(--color-text);
  font-family: var(--font-serif);
  font-size: 34px;
  line-height: 1;
}

.about-intro {
  white-space: pre-line;
}

.stat-label {
  display: block;
  margin-top: 8px;
  color: var(--color-muted);
  font-size: 13px;
}

.page-main {
  padding: 56px 0 82px;
}

.page-head {
  margin-bottom: 34px;
}

.how-buy-title {
  margin: 0 0 24px;
  color: var(--color-text);
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 400;
  line-height: 1.1;
}

.how-buy-tabs {
  display: grid;
  gap: 12px;
  padding: 18px 0 26px;
}

.how-buy-tab {
  display: flex;
  width: 100%;
  min-height: 68px;
  align-items: center;
  justify-content: center;
  padding: 14px 18px;
  color: var(--color-text);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 17px;
  font-weight: 300;
  text-align: center;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.how-buy-tab:hover {
  background: #eef1ef;
}

.how-buy-tab.is-active {
  color: #fff;
  background: #6b7280;
  border-color: #6b7280;
}

.how-buy-panel {
  min-height: 400px;
  margin-top: 16px;
  color: var(--color-muted);
  font-weight: 300;
}

.how-buy-panel h2,
.how-buy-panel h3 {
  color: var(--color-text);
  font-family: var(--font-main);
  font-weight: 400;
}

.how-buy-panel h2 {
  margin: 0 0 16px;
  font-size: 26px;
}

.how-buy-panel h3 {
  margin: 28px 0 10px;
  font-size: 22px;
}

.how-buy-guide-image {
  width: 100%;
  max-height: 600px;
  margin: 0 0 26px;
  object-fit: contain;
  object-position: center;
  border-radius: var(--radius-sm);
  background: var(--color-surface-strong);
}

.how-buy-content p {
  margin: 0 0 18px;
}

.how-buy-content ol {
  margin: 0 0 18px;
  padding-left: 22px;
}

.how-buy-content li + li {
  margin-top: 8px;
}

.how-buy-section {
  padding-bottom: 22px;
  border-bottom: 1px solid var(--color-border);
}

.how-buy-section:last-child {
  border-bottom: 0;
}

.category-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

.detail-layout {
  display: grid;
  gap: 34px;
}

/* 20260909发现空吧留太多，所以删除object-fit: contain; */
.detail-cover {
  width: 100%;
  aspect-ratio: 4 / 3;
  /* object-fit: contain; */
  object-position: center;
  border-radius: var(--radius-md);
  background: var(--color-surface-strong);
}

.detail-content {
  color: var(--color-muted);
}

.detail-content h2,
.detail-content h3 {
  color: var(--color-text);
  font-family: var(--font-serif);
  font-weight: 400;
}

/* 富文本正文里的图片按原始比例缩放, 只受内容宽度约束, 不裁切也不变形 */
.detail-content img,
.rich-text img {
  max-width: 100%;
  height: auto;
  margin: 18px 0;
  border-radius: var(--radius-sm);
}

.spec-list {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.spec-list li {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-muted);
}

.product-spec-accordion {
  display: grid;
  margin: 28px 0 0;
  border-top: 1px solid var(--color-border);
}

.product-spec-item {
  border-bottom: 1px solid var(--color-border);
}

.product-spec-heading {
  margin: 0;
}

.product-spec-trigger {
  display: flex;
  width: 100%;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  color: var(--color-text);
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  text-align: left;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.product-spec-trigger:focus-visible {
  outline: 2px solid var(--color-accent-dark);
  outline-offset: 4px;
}

.product-spec-indicator {
  position: relative;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
}

.product-spec-indicator::before,
.product-spec-indicator::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 1.5px;
  background: currentColor;
  transform: translate(-50%, -50%);
}

.product-spec-indicator::after {
  transform: translate(-50%, -50%) rotate(90deg);
  transition: transform 180ms ease, opacity 180ms ease;
}

.product-spec-item.is-open .product-spec-indicator::after {
  transform: translate(-50%, -50%) rotate(0deg);
  opacity: 0;
}

.product-spec-panel {
  padding: 0 0 18px;
}

.product-spec-panel[hidden] {
  display: none;
}

.product-spec-rows {
  display: grid;
  gap: 12px;
  margin: 0;
}

.product-spec-row {
  display: grid;
  grid-template-columns: minmax(72px, 28%) 1fr;
  gap: 12px 20px;
  color: var(--color-muted);
  font-size: 14px;
  line-height: 1.5;
}

.product-spec-row dt {
  margin: 0;
  color: var(--color-text);
  font-weight: 500;
}

.product-spec-row dd {
  margin: 0;
  overflow-wrap: anywhere;
}

@media (max-width: 767px) {
  .product-spec-accordion {
    margin-top: 22px;
  }

  .product-spec-trigger {
    min-height: 48px;
    font-size: 15px;
  }

  .product-spec-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-spec-indicator::after {
    transition: none;
  }
}

.process-list {
  counter-reset: process;
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-list li {
  counter-increment: process;
  position: relative;
  padding: 22px 22px 22px 66px;
  background: var(--color-surface);
  border-radius: var(--radius-md);
}

.process-list li::before {
  content: counter(process, decimal-leading-zero);
  position: absolute;
  left: 22px;
  top: 24px;
  color: var(--color-accent);
  font-size: 13px;
  letter-spacing: 0.1em;
}

.contact-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--color-muted);
}

.about-contact-section {
  padding-top: 8px;
}

.about-contact-layout {
  align-items: stretch;
}

/* 左栏内容比地图矮很多, 做成卡片并把条目铺满整行高度, 避免大片空白 */
.about-contact-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 24px;
  background: var(--color-surface-strong);
  border-radius: var(--radius-md);
}

.about-contact-card .contact-list {
  flex: 1;
  align-content: space-between;
}

.about-map {
  min-height: 360px;
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.about-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: 0;
}

.map-placeholder {
  display: grid;
  place-items: center;
  min-height: 360px;
  height: 100%;
  padding: 28px;
  color: var(--color-muted);
  text-align: center;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.72), rgba(247, 248, 246, 0.92)),
    repeating-linear-gradient(
      -18deg,
      transparent,
      transparent 12px,
      rgba(70, 84, 74, 0.04) 12px,
      rgba(70, 84, 74, 0.04) 13px
    );
}

.map-placeholder strong {
  display: block;
  margin-bottom: 8px;
  color: var(--color-text);
  font-size: 16px;
}

.map-placeholder p {
  margin: 0;
  max-width: 36ch;
  line-height: 1.55;
}

.map-placeholder p + p {
  margin-top: 10px;
  font-size: 13px;
}

.map-placeholder code {
  font-size: 12px;
}

@media (max-width: 767px) {
  .about-map,
  .about-map iframe,
  .map-placeholder {
    min-height: 280px;
  }
}

.video-search {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
  padding: 18px;
  background: var(--color-surface);
  border-radius: var(--radius-md);
}

.video-search input,
.video-search select {
  width: 100%;
  min-height: 46px;
  padding: 0 16px;
  color: var(--color-text);
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 999px;
}

.video-result-summary {
  min-height: 24px;
  margin: 0 0 24px;
  color: var(--color-muted);
  font-size: 14px;
}

.video-card .card-body {
  padding-top: 14px;
  text-align: center;
}

.video-card-tags {
  margin-top: 0;
  margin-bottom: 4px;
}

.video-cover-link {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--color-surface-strong);
  border-radius: var(--radius-sm);
}

.video-cover-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.video-cover-link:hover .video-play-mark {
  transform: translate(-50%, -50%) scale(1.06);
  background: #fff;
}

.video-play-mark {
  position: absolute;
  top: 50%;
  left: 50%;
  display: inline-flex;
  width: 56px;
  height: 56px;
  align-items: center;
  justify-content: center;
  color: var(--color-accent-dark);
  background: rgba(255, 255, 255, 0.84);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: var(--shadow-soft);
  transition: transform 180ms ease, background 180ms ease;
}

.video-duration {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 4px 8px;
  color: #fff;
  background: rgba(0, 0, 0, 0.58);
  border-radius: var(--radius-sm);
  font-size: 12px;
}

.video-detail {
  max-width: 980px;
  margin-inline: auto;
}

.video-player {
  position: relative;
  overflow: hidden;
  margin-top: 34px;
  background: #111;
  border-radius: var(--radius-md);
  aspect-ratio: 16 / 9;
  box-shadow: var(--shadow-soft);
}

.video-player iframe,
.video-fallback,
.video-fallback img {
  width: 100%;
  height: 100%;
}

.video-player iframe {
  display: block;
  border: 0;
}

.video-fallback {
  position: relative;
  display: block;
  color: #fff;
}

.video-fallback img {
  object-fit: cover;
  opacity: 0.78;
}

.video-fallback span {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  padding: 12px 18px;
  background: rgba(0, 0, 0, 0.58);
  border-radius: 999px;
}

.video-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  margin-top: 18px;
  color: var(--color-muted);
}

.home-photo-wall-section {
  overflow: hidden;
}

.home-photo-wall-heading {
  text-align: center;
}

.home-photo-wall-heading .section-header,
.home-photo-wall-heading.section-header {
  margin-inline: auto;
}

.photo-wall-viewport {
  width: 100%;
  overflow: hidden;
}

.photo-wall-track {
  display: flex;
  width: max-content;
  animation: photo-wall-scroll 80s linear infinite;
  will-change: transform;
}

.photo-wall-viewport:hover .photo-wall-track,
.photo-wall-viewport:focus-within .photo-wall-track {
  animation-play-state: paused;
}

.photo-wall-group {
  display: flex;
  flex: 0 0 auto;
  gap: 14px;
  padding-right: 14px;
}

.photo-wall-item {
  position: relative;
  flex: 0 0 clamp(240px, 28vw, 390px);
  height: clamp(190px, 23vw, 280px);
  margin: 0;
  overflow: hidden;
  background: var(--color-surface-strong);
  border-radius: var(--radius-sm);
}

.photo-wall-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 480ms ease;
}

.photo-wall-item:hover img {
  transform: scale(1.025);
}

.photo-wall-item figcaption {
  position: absolute;
  inset: auto 0 0;
  display: grid;
  gap: 2px;
  padding: 30px 16px 14px;
  color: #fff;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.62));
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.photo-wall-item:hover figcaption,
.photo-wall-item:focus-within figcaption {
  opacity: 1;
  transform: translateY(0);
}

.photo-wall-item figcaption strong {
  font-size: 14px;
  font-weight: 500;
}

.photo-wall-item figcaption span {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@keyframes photo-wall-scroll {
  to {
    transform: translateX(-50%);
  }
}

@media (min-width: 900px) {
  .split-section,
  .detail-layout {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  }

  .how-buy-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 34px;
    padding: 28px 0 34px;
  }

  .how-buy-tab {
    min-height: 80px;
    font-size: 20px;
  }

  .video-search {
    grid-template-columns: minmax(0, 1fr) minmax(180px, 0.35fr) auto;
    align-items: center;
  }

}

@media (prefers-reduced-motion: reduce) {
  .photo-wall-track {
    animation-play-state: paused;
  }
}

/* Product spec value list (no labels) */
.product-spec-value-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.product-spec-value-list li {
  position: relative;
  padding-left: 18px;
  color: var(--color-muted);
  font-size: 14px;
  line-height: 1.6;
}

.product-spec-value-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 10px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-accent);
}

.product-spec-single {
  margin: 0;
  color: var(--color-muted);
  font-size: 14px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.product-spec-empty {
  margin: 0;
  color: var(--color-muted);
  font-size: 14px;
  font-style: italic;
}

.product-detail-title {
  margin-bottom: 12px;
  font-family: var(--font-main);
  font-size: clamp(20px, 2.6vw, 36px);
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.product-meta-number {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-bottom: 8px;
  padding: 4px 10px;
  color: #4b5563;
  background: #eceff1;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
}

.product-meta-category {
  margin: 0 0 16px;
  color: var(--color-muted);
  font-size: 14px;
}

.product-detail-info .section-copy {
  white-space: pre-wrap;
}

.product-spec-panel .product-spec-single {
  white-space: pre-wrap;
}

/* 产品详情图集：主图保持产品比例, 缩略图全部换行列出并可点击切换 */
.product-detail-media .gallery-main img {
  aspect-ratio: 4 / 4;
}

.product-detail-media .gallery-thumbs {
  flex-wrap: wrap;
  overflow: visible;
}

.product-detail-media .gallery-thumb {
  flex: 0 0 calc((100% - 30px) / 4);
  width: auto;
  height: auto;
  aspect-ratio: 1 / 1;
}

.product-detail-media .gallery-thumb img {
  object-fit: contain;
}

.product-label-block {
  margin-top: 28px;
}

.product-label-title {
  margin: 0 0 10px;
  color: var(--color-text);
  font-size: 14px;
  font-weight: 600;
}

.product-label-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.product-label-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 12px;
  color: #4b5563;
  background: #f1f3f4;
  border-radius: 999px;
  font-size: 13px;
  text-decoration: none;
}

a.product-label-chip:hover {
  color: var(--color-accent-dark);
  background: #e8ece9;
}

.product-related {
  margin-top: 56px;
  padding-top: 8px;
}

.product-related[hidden] {
  display: none;
}

.product-related-title {
  margin: 0 0 24px;
  color: var(--color-text);
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

@media (max-width: 767px) {
  .product-detail-title {
    font-size: clamp(16px, 4.6vw, 24px);
  }

  .product-related {
    margin-top: 40px;
  }
}

.case-detail {
  padding-bottom: 8px;
}

.case-hero {
  padding: 8px 0 28px;
  background: #fff;
}

.case-hero-title {
  margin: 0;
  max-width: 920px;
  color: var(--color-text);
  font-family: var(--font-main);
  font-size: clamp(28px, 4.4vw, 44px);
  font-weight: 700;
  line-height: 1.18;
}

.case-hero-subtitle {
  margin: 12px 0 0;
  /* max-width: 820px; */
  color: var(--color-muted);
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 500;
  line-height: 1.45;
}

.case-hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-top: 22px;
}

.case-hero-tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 12px;
  color: #4b5563;
  background: #eceff1;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
}

.case-hero-date {
  color: var(--color-soft);
  font-size: 13px;
}

.case-hero-lead {
  /* max-width: 760px; */
  margin: 28px 0 0;
  padding-left: 18px;
  color: var(--color-muted);
  border-left: 2px solid var(--color-border);
  font-size: 15px;
  line-height: 1.75;
}

.case-highlight {
  padding: 8px 0 20px;
}

.case-highlight .section-title {
  font-size: clamp(20px, 3vw, 26px);
}

.case-highlight-list {
  display: grid;
  gap: 12px;
  max-width: 760px;
  margin: 18px 0 0;
  padding: 0;
  color: var(--color-muted);
  font-size: 15px;
  line-height: 1.75;
  list-style: none;
}

.case-highlight-list li {
  position: relative;
  padding-left: 18px;
}

.case-highlight-list li::before {
  position: absolute;
  top: 0;
  left: 0;
  color: var(--color-accent);
  content: "—";
}

.case-gallery {
  padding: 12px 0 36px;
}

.case-gallery-empty {
  margin: 0;
  padding: 40px 0;
  color: var(--color-muted);
  text-align: center;
}

.case-richtext {
  padding: 0 0 24px;
}

.case-richtext .rich-text,
.case-richtext .detail-content {
  /* max-width: 900px; */
  color: var(--color-muted);
}

.case-richtext .rich-text h2,
.case-richtext .rich-text h3 {
  color: var(--color-text);
  font-family: var(--font-serif);
  font-weight: 400;
}

@media (max-width: 767px) {
  .case-hero {
    padding: 0 0 20px;
  }

  .case-hero-title {
    font-size: clamp(24px, 7vw, 32px);
  }

  .case-hero-lead {
    margin-top: 22px;
  }

  .case-gallery {
    padding: 8px 0 28px;
  }

  .gallery-thumb {
    flex-basis: 64px;
    width: 64px;
    height: 64px;
  }
}
