﻿/* ================= 首屏轮播 Hero ================= */
.hero-carousel {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 480px;
  overflow: hidden;
  background: #0a0b0d;
}
.hero-track {
  position: absolute;
  inset: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.9s ease;
}
.hero-slide.active {
  opacity: 1;
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-caption {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 0 24px;
  transform: translateY(-10px);
  opacity: 0;
  transition: all 0.9s ease 0.25s;
}
.hero-slide.active .hero-caption {
  transform: none;
  opacity: 1;
}
.hero-title {
  font-size: 44px;
  font-weight: 600;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.4);
}
.hero-sub {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.88);
  letter-spacing: 0.1em;
  margin-bottom: 30px;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
}
.hero-cta {
  display: inline-block;
  padding: 12px 38px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 999px;
  color: #fff;
  font-size: 14px;
  letter-spacing: 0.12em;
  background: rgba(0, 0, 0, 0.15);
  transition: all 0.25s;
}
.hero-cta:hover {
  background: #fff;
  color: #111;
}
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition: all 0.25s;
}
.hero-prev { left: 30px; }
.hero-next { right: 30px; }
.hero-arrow:hover { background: rgba(255, 255, 255, 0.16); }
.hero-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 10px;
}
.hero-dot {
  width: 26px;
  height: 4px;
  border-radius: 2px;
  border: none;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  padding: 0;
  transition: all 0.3s;
}
.hero-dot.active {
  background: #fff;
  width: 44px;
}
@media (max-width: 860px) {
  .hero-carousel { height: 74vh; min-height: 380px; }
  .hero-title { font-size: 28px; }
  .hero-sub { font-size: 13px; }
  .hero-arrow { width: 40px; height: 40px; font-size: 22px; }
  .hero-prev { left: 14px; }
  .hero-next { right: 14px; }
}

/* =========================================================
   product-detail.css — 迪蒙数控 605 Pro 产品展示页
   参考 Porsche Car Configurator 布局：
   左侧深色 360° 画布 + 右侧浅色配置面板
   ========================================================= */

/* ---------- 布局骨架 ---------- */
.configurator {
  display: block;                    /* 整体宽度 90%，居中 */
  margin: 0 auto;
  padding: 80px;               /* 移出头部遮罩层，内容从 header 下方开始 */
  background: #f4f4f2;
}
.config-layout {
  display: flex;
  align-items: flex-start;
}

/* 更换设备箭头条（距头部 50px，居左） */
.device-switcher {
  position: relative;
  margin: 50px 0 22px;            /* 居左：左侧对齐 */
  padding: 0;
}
.device-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  font-size: 14px;
  letter-spacing: 0.06em;
  color: #16161a;
  background: #fff;
  border: 1px solid #d8d7d3;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}
.device-btn:hover {
  border-color: #16161a;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}
.device-arrow {
  font-size: 15px;
  color: #666;
  transition: transform 0.25s;
}
.device-btn:hover .device-arrow {
  transform: translateX(-3px);
}
.device-caret {
  font-size: 11px;
  color: #999;
  transition: transform 0.25s;
}
.device-btn.open .device-caret {
  transform: rotate(180deg);
}
.device-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 300px;
  background: #fff;
  border: 1px solid #e2e1dd;
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.16);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.25s;
  z-index: 20;
}
.device-menu.open {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.device-opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  font-size: 14px;
  color: #3a3a38;
  text-decoration: none;
  border-radius: 9px;
  transition: background 0.15s;
}
.device-opt:hover {
  background: #f4f4f2;
}
.device-opt.current {
  color: #16161a;
  font-weight: 600;
}
.opt-tag {
  font-size: 11px;
  color: #fff;
  background: #16161a;
  border-radius: 999px;
  padding: 2px 10px;
  margin-left: 14px;
}

/* 左侧：深色画布（sticky 跟随滚动，不铺满屏） */
.config-stage {
  position: sticky;
  top: 96px;
  align-self: flex-start;
  width: 60%;
  min-height: 74vh;               /* 加高画布 */
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse at 50% 42%, #23262c 0%, #14161a 55%, #0a0b0d 100%);
  color: #fff;
  overflow: hidden;
  border-radius: 18px;
}

.stage-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 28px 0;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.55);
  z-index: 2;
}
.stage-series {
  color: rgba(255, 255, 255, 0.4);
}

/* 画布视口 */
.stage-view {
  flex: 1;
  min-height: 0;
  position: relative;
}
.view-pane {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
}
.view-pane.active {
  display: flex;
}

/* 照片视图 */
.photo-view {
  flex-direction: column;
}
.stage-glow {
  position: absolute;
  width: 68%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 108, 173, 0.28) 0%, rgba(56, 108, 173, 0) 68%);
  filter: blur(6px);
  pointer-events: none;
}
.stage-img,
.stage-video {
  position: relative;
  flex: 1;
  width: 100%;
  min-height: 0;
  object-fit: contain;
  filter: drop-shadow(0 28px 50px rgba(0, 0, 0, 0.55));
  animation: stageIn 0.7s ease-out both;
}
@keyframes stageIn {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to   { opacity: 1; transform: none; }
}
.stage-tag {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 14px;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  backdrop-filter: blur(4px);
  z-index: 2;
  white-space: nowrap;
}

/* 产品照片图集缩略图（位于 stage-toolbar 内） */
.photo-thumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 auto;                 /* 缩略图居中 */
}
.thumb {
  width: 64px;
  height: 48px;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  opacity: 0.6;
  transition: all 0.2s;
}
.thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.thumb:hover {
  opacity: 0.9;
  border-color: rgba(255, 255, 255, 0.5);
}
.thumb.active {
  opacity: 1;
  border-color: #fff;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35);
}

/* 360° 视图 */
.spin-view {
  flex-direction: column;
}
.spin-scene {
  position: relative;
  flex: 1;                        /* 占满画布 */
  width: 100%;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  user-select: none;
  touch-action: none;
}
.spin-scene.dragging {
  cursor: grabbing;
}
.spin-hint {
  position: absolute;
  top: 34px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.45);
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 6px 14px;
  border-radius: 999px;
  pointer-events: none;
  white-space: nowrap;
  z-index: 3;
}
.spin-stage {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1400px;
}
.spin-img {
  width: 100%;
  height: 100%;
  object-fit: contain;            /* 满铺画布，保持比例不裁切 */
  transform: rotateY(0deg);
  transition: transform 0.08s linear;
  filter: drop-shadow(0 30px 55px rgba(0, 0, 0, 0.6));
  will-change: transform;
}
.spin-axis {
  position: absolute;
  bottom: 58px;
  left: 50%;
  transform: translateX(-50%);
  width: 220px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35) 15%, rgba(255, 255, 255, 0.35) 85%, transparent);
  pointer-events: none;
}
.spin-axis::after {
  content: "";
  position: absolute;
  top: -3px;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
  transform: translateX(-50%);
}

/* 360 控制条 */
.spin-controls {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;        /* 角度隐藏后提示居中 */
  gap: 12px;
  padding: 0 28px 26px;
  margin-top: auto;
}
.spin-tip {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.5);
}
.spin-angle {
  display: none;                  /* 隐藏角度显示 */
  margin-left: auto;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.55);
  min-width: 56px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* ---------- 产品热点 ---------- */
.hotspot {
  position: absolute;
  width: 30px;
  height: 30px;
  transform: translate(-50%, -50%);
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 5;
}
.hotspot::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.55);
  transition: transform 0.25s, border-color 0.25s;
}
.hotspot:hover::after {
  transform: scale(1.35);
  border-color: #fff;
}
.hotspot-dot {
  display: block;
  width: 13px;
  height: 13px;
  margin: 8.5px auto;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #3a84d6;
  box-shadow: 0 0 0 rgba(58, 132, 214, 0.6);
  animation: hotspotPulse 2s infinite;
}
@keyframes hotspotPulse {
  0%   { box-shadow: 0 0 0 0 rgba(58, 132, 214, 0.65); }
  70%  { box-shadow: 0 0 0 13px rgba(58, 132, 214, 0); }
  100% { box-shadow: 0 0 0 0 rgba(58, 132, 214, 0); }
}
.hotspot-tip {
  position: absolute;
  bottom: 92px;
  left: 50%;
  transform: translateX(-50%);
  width: min(72%, 460px);
  background: rgba(10, 12, 16, 0.93);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  padding: 14px 18px;
  color: #fff;
  font-size: 13px;
  line-height: 1.75;
  text-align: left;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, transform 0.25s;
  z-index: 6;
  pointer-events: none;
}
.hotspot-tip.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-4px);
}
.hotspot-tip b {
  display: block;
  font-size: 14px;
  letter-spacing: 0.04em;
  margin-bottom: 5px;
  color: #fff;
}

/* 视图切换工具条（含产品照片缩略图） */
.stage-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.18);
}
.view-btn {
  padding: 8px 20px;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.7);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s;
}
.view-btn:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}
.view-btn.active {
  color: #0a0b0d;
  background: #fff;
  border-color: #fff;
}

/* ---------- 右侧：配置面板 ---------- */
.config-panel {
  width: 40%;
  background: #f4f4f2;
  padding: 0 34px 64px;           /* 去掉顶部 40px 内边距，面板顶部对齐画布 */
  box-sizing: border-box;
}

/* 产品名称头部 */
.panel-hero {
  padding-bottom: 28px;
  border-bottom: 1px solid #dddcd8;
  margin-bottom: 8px;
}
.panel-en {
  font-size: 12px;
  letter-spacing: 0.24em;
  color: #8a8a86;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.panel-title {
  font-size: 34px;
  line-height: 1.15;
  font-weight: 700;
  color: #16161a;
  margin: 0 0 16px;
  letter-spacing: 0.01em;
}
.panel-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.chip {
  padding: 5px 12px;
  font-size: 12px;
  color: #333;
  background: #fff;
  border: 1px solid #d8d7d3;
  border-radius: 999px;
}
.panel-desc {
  font-size: 14px;
  line-height: 1.9;
  color: #4a4a48;
  margin: 0;
}

/* 配置分组（保时捷配置卡片风格） */
.cfg-group {
  background: #fff;
  border: 1px solid #e2e1dd;
  border-radius: 12px;
  padding: 24px 24px 26px;
  margin-top: 18px;
  transition: box-shadow 0.25s, border-color 0.25s;
}
.cfg-group:hover {
  border-color: #c9c8c4;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.05);
}
.cfg-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid #efeeeb;
}
.cfg-en {
  font-size: 11px;
  letter-spacing: 0.22em;
  color: #a0a09b;
  text-transform: uppercase;
}
.cfg-title {
  font-size: 19px;
  font-weight: 600;
  color: #16161a;
  margin: 0;
}

/* 特点列表 */
.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.feature-list li {
  position: relative;
  padding: 9px 0 9px 22px;
  font-size: 14px;
  line-height: 1.85;
  color: #4a4a48;
  border-bottom: 1px dashed #efeeeb;
}
.feature-list li:last-child {
  border-bottom: none;
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 17px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #1d1d21;
}
.feature-list b {
  color: #16161a;
  font-weight: 600;
}

/* 参数表格 */
.spec-table {
  margin: 0;
  display: block;
}
.spec-table > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid #f0efec;
}
.spec-table > div:last-child {
  border-bottom: none;
}
.spec-table dt {
  font-size: 13.5px;
  color: #70706c;
}
.spec-table dd {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  color: #16161a;
  text-align: right;
  white-space: nowrap;
}





/* 底部 CTA */
.panel-cta {
  margin-top: 24px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.cta-btn {
  padding: 13px 34px;
  font-size: 14px;
  letter-spacing: 0.06em;
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.2s;
}
.cta-btn.primary {
  background: #16161a;
  color: #fff;
  border: 1px solid #16161a;
}
.cta-btn.primary:hover {
  background: #000;
  transform: translateY(-2px);
}
.cta-btn.ghost {
  background: transparent;
  color: #16161a;
  border: 1px solid #b9b8b3;
}
.cta-btn.ghost:hover {
  border-color: #16161a;
}
.cta-note {
  width: 100%;
  font-size: 11.5px;
  color: #99998f;
  margin: 6px 0 0;
}



/* ---------- 响应式 ---------- */
@media (max-width: 1100px) {
  .config-stage { width: 58%; }
  .config-panel { width: 42%; padding: 32px 24px 56px; }
  .panel-title { font-size: 28px; }
}
@media (max-width: 860px) {
  .config-layout { flex-direction: column; }
  .config-stage {
    position: relative;
    width: 96%;
    min-height: 56vh;
    margin: 0 auto;
  }
  .config-panel { width: 100%; padding: 28px 20px 52px; }
}
@media (max-width: 480px) {
  .spin-controls { flex-wrap: wrap; }
  .device-menu { left: 16px; right: 16px; min-width: 0; }
}

/* ---------- 本页：抽屉遮罩宽度 90%（右侧留 10% 露出页面） ---------- */
.drawer-mask {
  width: 90%;
  right: auto;
}

/*---------- 详情页分类筛选栏 ----------*/
.detail-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 20px 40px;
  border-bottom: 1px solid var(--border, #e5e5e5);
  background: #fafafa;
}
.detail-filter-bar .filter-btn {
  border: 1px solid var(--border, #e5e5e5);
  background: #fff;
  color: #666;
  font-size: 13px;
  padding: 7px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: all .2s ease;
  text-decoration: none;
}
.detail-filter-bar .filter-btn:hover {
  border-color: #b9b9b9;
  color: #111;
}
.detail-filter-bar .filter-btn.active {
  background: #111;
  border-color: #111;
  color: #fff;
}
@media (max-width:767px) {
  .detail-filter-bar { padding: 16px; }
}