/* 商拍板块整体布局 */
.photography-section {
  width: 100%;
  background: #18191b;
  padding: 64px 0 64px 0;
  box-sizing: border-box;
}

.photography-feature {
  max-width: 1200px;
  margin: 0 auto 64px auto;
  display: flex;
  align-items: center;
  gap: 48px;
  background: #282c36;
  border-radius: 24px;
  box-shadow: none;
  padding: 48px 40px;
}

.feature-text {
  flex: 0 0 320px;
}
.feature-text h2 {
  font-size: 32px;
  font-weight: 800;
  color: #23262b;
  margin-bottom: 16px;
}
.feature-text p {
  font-size: 18px;
  color: #555a60;
  margin: 0;
}

/* 8K大图区放大镜布局 */
.feature-8k .feature-image-zoom {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 32px;
  background: #23262b;
}
.zoomable-img {
  max-width: 420px;
  max-height: 700px;
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
  cursor: crosshair;
  background: #eee;
  position: relative;
}
.magnifier-lens {
  position: absolute;
  pointer-events: none;
  border: 1px solid #000000;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
  width: 120px;
  height: 120px;
  box-shadow: 0 2px 8px #ffffff22;
  display: none;
  z-index: 2;
}
.magnifier-preview {
  width: 320px;
  height: 320px;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
  position: relative;
  display: none;
}
.magnifier-preview img {
  position: absolute;
  top: 0; left: 0;
  width: auto;
  height: auto;
  min-width: 100%;
  min-height: 100%;
  object-fit: contain;
}
.magnifier-preview.active, .magnifier-lens.active {
  display: block;
}

/* 产品一致性对比区 */
.feature-consistency .feature-compare {
  display: flex;
  align-items: center;
  gap: 32px;
}
.compare-product {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  box-shadow: none;
}
.compare-product img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.compare-slider {
  position: relative;
  width: 630px;
  height: 420px;
  border-radius: 16px;
  overflow: hidden;
  background: #eee;
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
}
.compare-img {
  position: absolute;
  top: 0; left: 0; height: 100%; width: 100%;
  transition: none;
}
.compare-img-left img, .compare-img-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.compare-img-right {
  clip-path: inset(0 0 0 50%);
  z-index: 2;
}
.compare-handle {
  position: absolute;
  top: 0; left: 50%;
  width: 1.5px; height: 100%;
  background: #23262b;
  border-radius: 1px;
  cursor: pointer;
  z-index: 3;
  box-shadow: none;
  transition: background 0.2s;
}
.compare-label {
  position: absolute;
  font-size: 16px;
  font-weight: 300;
  color: #fff;
  background: rgba(0,0,0,0.18);
  padding: 2px 10px;
  border-radius: 8px;
  pointer-events: none;
  z-index: 10;
  letter-spacing: 1px;
}
.compare-label.left {
  left: 12px;
  bottom: 12px;
}
.compare-label.right {
  right: 12px;
  bottom: 12px;
}

/* 场景一致性轮播区 */
.feature-models-content {
  display: flex;
  align-items: center;
  gap: 32px;
}
.models-product {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  box-shadow: none;
}
.models-product img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  border-radius: 16px;
  background: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.models-product-img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  display: block;
}
.models-carousel {
  position: relative;
  width: 630px;
  height: 420px;
  border-radius: 16px;
  overflow: hidden;
  background: #eee;
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
}
.carousel-img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s;
  z-index: 1;
  border-radius: 16px;
}
.carousel-img.active {
  opacity: 1;
  z-index: 2;
}
/* 轮播点样式 */
.carousel-dots {
  position: absolute;
  left: 0; right: 0;
  bottom: 18px;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 10;
}
.carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #bbb;
  opacity: 0.7;
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s;
  border: none;
}
.carousel-dot.active {
  background: #fff;
  opacity: 1;
}

.photography-cards {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 40px;
  padding: 64px 0 64px 0;
  background: #282c36;
}
.photography-card {
  flex: 1 1 0;
  min-width: 340px;
  max-width: 420px;
  background: #282c36;
  border-radius: 32px;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 36px 24px 32px 24px;
  transition: box-shadow 0.2s, transform 0.2s;
  position: relative;
}
.photography-card:hover {
  box-shadow: 0 8px 40px #007aff22, 0 2px 12px #23262b11;
  transform: translateY(-4px) scale(1.02);
}
.card-title {
  font-size: 22px;
  font-weight: 400;
  color: #23262b;
  text-align: center;
  margin-bottom: 22px;
  letter-spacing: 1.5px;
}
.card-content {
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 48px;
  height: 100%;
}
.photography-tabs-layout {
  display: flex;
  justify-content: center;
  align-items: stretch;
  background: #18191b;
  border-radius: 36px;
  box-shadow: 0 4px 32px #0001;
  margin: 48px auto 48px auto;
  max-width: 1200px;
  padding: 0;
}
.photography-tabs-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 0 0 360px;
  min-width: 360px;
  max-width: 360px;
  background: #23262b;
  border-radius: 36px 0 0 36px;
  box-shadow: none;
  position: relative;
}
.photography-tabs-title {
  color: #fff;
  letter-spacing: 2px;
  text-align: right;
  line-height: 1.1;
  width: 100%;
}
.photography-tabs {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  width: 100%;
}
.tab-btn {
  background: none;
  border: none;
  outline: none;
  font-size: 22px;
  font-weight: 400;
  color: #fff;
  opacity: 0.7;
  padding: 18px 28px 18px 18px;
  border-radius: 18px 0 0 18px;
  cursor: pointer;
  text-align: right;
  transition: background 0.2s, color 0.2s, opacity 0.2s;
  line-height: 1.3;
  letter-spacing: 1px;
  min-width: 160px;
  box-shadow: none;
  position: relative;
  z-index: 2;
  width: 90%;
}
.tab-btn.active {
  background: #55585c;
  color: #fff;
  opacity: 1;
  box-shadow: 0 2px 12px #0001;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  padding: 0.5vw 0vw 0.5vw 0vw;
}
.tab-btn:hover {
  opacity: 1;
}
.photography-tab-content {
  flex: 1 1 0;
  min-width: 0;
  padding: 0;
  display: flex;
  align-items: stretch;
  justify-content: center;
  position: relative;
}
.tab-pane {
  display: none;
  width: 100%;
  background: #23262b;
  border-radius: 0 36px 36px 0;
  box-shadow: 0 4px 32px #0001, 0 1.5px 8px #23262b08;
  padding: 36px 32px 32px 32px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: fadeInTab 0.4s;
  position: relative;
  z-index: 1;
  margin-left: 0;
  min-width: 0;
}
.tab-pane.active {
  display: flex;
  background: #23262b;
}
.photography-tabs-side {
  z-index: 3;
}
.tab-pane.active {
  z-index: 2;
  background: #23262b;
}
@keyframes fadeInTab {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}
/* 8K区、对比区、轮播区适配内容区宽度 */

.tab-pane {
  background: #23262b !important;
}

.card-8k-content .feature-image-zoom,
.card-consistency-content .feature-compare,
.card-models-content {
  width: 100%;
  justify-content: center;
}
.card-8k-content .feature-image-zoom {
  display: flex;
  flex-direction: row !important;
  gap: 48px;
  align-items: center;
  justify-content: center;
  width: 100%;
}
.card-8k-content .zoomable-img {
  max-width: 100%;
  max-height: 500px;
  width: 100%;
  height: 500px;
  object-fit: contain;
}
.card-8k-content .magnifier-preview {
  height: 500px;
  aspect-ratio: 1/1;
  margin-left: 0;
  background: #f5f6f7;
  border-radius: 16px;
  box-shadow: 0 2px 8px #23262b11;
  display: block !important;
}
.card-8k-content .magnifier-lens {
  width: 48px;
  height: 48px;
  border-radius: 8px;
}
.card-consistency-content .feature-compare {
  display: flex;
  flex-direction: row !important;
  gap: 48px;
  align-items: center;
  justify-content: center;
  width: 100%;
}
.card-consistency-content .compare-product img {
  width: 120px;
  height: 120px;
  object-fit: contain;
}
.card-consistency-content .compare-slider {
  width: 630px;
  height: 420px;
}
.card-consistency-content .compare-label {
  font-size: 13px;
  padding: 1px 8px;
}
.card-models-content {
  flex-direction: row;
  gap: 48px;
  align-items: center;
  justify-content: center;
  width: 100%;
}
.card-models-content .models-product img {
  width: 120px;
  height: 420px;
  object-fit: contain;
}
.card-models-content .models-carousel {
  height: 100% !important;
  max-width: 1000px;
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
  background: #eee;
  overflow: hidden;
  position: relative;
}
.card-models-content .carousel-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 16px;
  position: absolute;
  top: 0; left: 0;
  opacity: 0;
  transition: opacity 1s;
  z-index: 1;
}
.card-models-content .carousel-img.active {
  opacity: 1;
  z-index: 2;
}

.photography-section, .photography-feature, .photography-cards, .photography-card, .tab-pane {
  background: #23262b !important;
  color: #fff !important;
}
.card-title, .feature-text h2 {
  color: #fff !important;
}
/* 反色用法举例：.main-reverse { color: #D7D3C9 !important; background: #282C36 !important; } */

body, .photography-section, .photography-feature, .photography-cards, .photography-card, .tab-pane {
  font-family: 'Source Han Sans SC VF', 'PingFang SC', 'Microsoft YaHei', Arial, sans-serif !important;
  font-weight: 400;
}
.card-title, .feature-text h2 {
  font-family: 'Source Han Sans SC VF', 'PingFang SC', 'Microsoft YaHei', Arial, sans-serif !important;
  font-weight: 400 !important;
}

body.photography-dark-bg {
  background: #18191b !important;
  transition: background 0.6s cubic-bezier(0.4,0,0.2,1);
}
body {
  transition: background 0.6s cubic-bezier(0.4,0,0.2,1);
}

/* --- 外层整体布局 --- */
.photography-tabs-layout {
  max-width: 95vw;
  width: 95vw;
  margin: 48px auto 48px auto;
  border-radius: 3vw;
  box-shadow: 0 4px 32px #0001;
  padding: 0;
}
.photography-tabs-side {
  flex: 0 0 25vw;
  min-width: 25vw;
  max-width: 25vw;
  border-radius: 3vw 0 0 3vw;
}
.tab-pane {
  padding: 2.5vw 2vw 2vw 2vw;
  border-radius: 0 3vw 3vw 0;
}

/* --- 卡片内容区 --- */
.photography-card {
  min-width: 22vw;
  max-width: 28vw;
  padding: 2.5vw 1.5vw 2vw 1.5vw;
  border-radius: 2vw;
}
.card-content {
  gap: 0vw;
}

/* --- 8K大图区 --- */
.feature-8k .feature-image-zoom {
  gap: 2vw;
}
.zoomable-img {
  max-width: 28vw;
  max-height: 46vw;
  border-radius: 1.2vw;
}
.magnifier-lens {
  width: 8vw;
  height: 8vw;
  border-radius: 0.6vw;
}
.magnifier-preview {
  width: 14vw;
  height: 14vw;
  border-radius: 1.2vw;
}

/* --- 产品一致性对比区 --- */
.compare-slider {
  width: 42vw;
  height: 28vw;
  border-radius: 1.2vw;
}
.compare-product img {
  width: 8vw;
  height: 8vw;
  border-radius: 1.2vw;
}

/* --- 场景一致性轮播区 --- */
/* 旧样式已移除，以下为唯一生效样式 */
.models-carousel {
  max-width: 42vw !important;
  width: 100% !important;
  max-height: 100% !important;
  border-radius: 1.2vw;
  background: #eee;
  overflow: hidden;
  position: relative;
}
.models-product img {
  height: 28vw;
  border-radius: 1.2vw;
}

/* --- 其他细节 --- */
.photography-tabs-title {
  font-size: 5vw;
  margin-bottom: 0vw;
  margin-top: 4vw;
  font-weight: 700;
  border-radius: 0;
  margin-bottom: 2vw;
  padding-right: 32px;
  text-align: right;
}

.tab-btn {
  font-size: 1.5vw;
  padding: 1.2vw 2vw 1.2vw 1.2vw;
  border-radius: 1.2vw 0 0 1.2vw;
  min-width: 10vw;
}
/* 卡片标题样式优化 */
.card-title {
  font-family: 'Source Han Sans SC VF', 'PingFang SC', 'Microsoft YaHei', Arial, sans-serif;
  font-size: 1vw;
  font-weight: 400;
  color: #23262b;
  text-align: center;
  margin-bottom: 0.5vw !important;
  margin-top: 0.5vw !important;
  letter-spacing: 0.5px;
}
@media (max-width: 900px) {
  .card-title {
    font-size: 2.8vw;
    margin-top: 2vw;
  }
}

.photography-tabs {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 2.5vw;
  width: 100%;
  padding-top: 2vw;
  padding-bottom: 3vw;
}

/* 1. 优化标签切换动画为渐变淡入淡出 */
.tab-pane {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s cubic-bezier(0.4,0,0.2,1), transform 0.5s cubic-bezier(0.4,0,0.2,1);
  pointer-events: none;
}
.tab-pane.active {
  display: flex;
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

/* 2. 优化选中标签的灰色标记，右上右下加圆角，尺寸更紧凑 */
.tab-btn.active {
  margin: 0 0 0 3vw;
  max-width: 100%;
  background: #55585c;
  color: #fff;
  opacity: 1;
  box-shadow: 0 2px 12px #0001;
  border-radius: 1vw 1vw 1vw 1vw;
  padding: 0.5vw 32px 0.5vw 0vw;
  font-size: 24px;
}

/* 3. 左侧 tabs panel 变窄，右侧内容区更宽 */
.photography-tabs-side {
  flex: 0 0 15vw;
  min-width: 23vw;
  max-width: 23vw;
  border-radius: 3vw 0 0 3vw;
}
.tab-btn {
  font-size: 24px;
  padding: 0.5vw 32px 0.5vw 0vw;
  border-radius: 1vw;
  min-width: 7vw;
}

/* 兼容移动端 */
@media (max-width: 900px) {
  .photography-tabs-layout,
  .photography-tabs-side,
  .tab-pane,
  .photography-card,
  .card-content,
  .feature-8k .feature-image-zoom,
  .zoomable-img,
  .magnifier-preview,
  .compare-slider,
  .models-carousel,
  .models-product img {
    max-width: 100vw !important;
    width: 100vw !important;
    height: auto !important;
    border-radius: 0.8vw !important;
    padding: 0 !important;
  }
  .photography-tabs-title, .card-title, .tab-btn {
    font-size: 4vw !important;
  }
  .photography-tabs-side {
    min-width: 30vw !important;
    max-width: 30vw !important;
    flex: 0 0 30vw !important;
  }
  .tab-btn, .tab-btn.active {
    font-size: 24px;
    padding: 2vw 2vw;
    border-radius: 2vw !important;
    min-width: 0 !important;
    padding: 0.5vw 0vw 0.5vw 0vw;
  }
  .card-title {
    font-size: 2.8vw !important;
    margin-top: 2vw !important;
  }
  .photography-tabs {
    gap: 5vw !important;
    padding-top: 4vw !important;
    padding-bottom: 6vw !important;
  }
}

/* 统一所有tab右侧内容区为16:9比例，高度一致 */
.card-content,
.card-8k-content,
.card-consistency-content,
.card-models-content {
  aspect-ratio: 16/9;
  width: 100%;
  max-width: 900px;
  min-height: 0;
  align-items: center;
  justify-content: center;
  display: flex;
  flex-direction: column;
  background: none;
  box-shadow: none;
  margin: 0 auto;
  padding: 0;
}
/* 图片、对比区、轮播区自适应填充 */
.feature-image-zoom,
.feature-compare,
.models-carousel {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.zoomable-img,
.magnifier-preview,
.compare-slider,
.models-carousel img.carousel-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.compare-slider {
  width: 100% !important;
  aspect-ratio: 16/9 !important;
  height: auto !important;
  max-width: 1000px;
  max-height: unset !important;
  border-radius: 1.2vw;
  background: #eee;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.models-carousel img.carousel-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 1.2vw;
  position: absolute;
  top: 0; left: 0;
  opacity: 0;
  transition: opacity 1s;
  z-index: 1;
}
.models-carousel img.carousel-img.active {
  opacity: 1;
  z-index: 2;
}

/* 轮播区样式修复，确保严格16:9比例 */
.models-carousel {
  width: 100% !important;
  aspect-ratio: 16/9 !important;
  height: auto !important;
  max-width: 1000px !important;
  max-height: unset !important;
  min-height: unset !important;
  border-radius: 1.2vw;
  background: #eee;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
