/* ==========================================================================
   产品详情页（html/product.html）
   仅在 style.css 之后加载，不改动站点头部与尾部
   ========================================================================== */

:root {
  --prod-ink: #1f1f1f;
  --prod-body: #4a4a4a;
  --prod-muted: #9a9a9a;
  --prod-orange: #fbb03f;
}

/* --------------------------------------------------------------------------
   1. 首屏：左侧设备图 + 右侧产品介绍
   -------------------------------------------------------------------------- */

.prod-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: clamp(520px, 38vw, 660px);
  background: #f2f3f4;
  padding-top: clamp(48px, 4.4vw, 78px);
  padding-bottom: clamp(48px, 5vw, 90px);
}

/* 辐射状纹理：圆心在左侧设备中部，向四周扩散
   （用渲染成本更低的多层圆环实现，避免大面积径向渐变） */
.prod-hero__rings {
  position: absolute;
  top: 50%;
  left: 14%;
  z-index: 0;
  width: min(150vw, 2100px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  pointer-events: none;
  background: repeating-radial-gradient(
    circle at center,
    rgba(255, 255, 255, 0.9) 0 2px,
    rgba(224, 226, 228, 0.5) 2px 5px,
    rgba(255, 255, 255, 0) 5px 20px
  );
  opacity: 0.85;
}

/* 右侧压白，让文字区更干净 */
.prod-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    96deg,
    rgba(255, 255, 255, 0) 38%,
    rgba(255, 255, 255, 0.66) 56%,
    rgba(255, 255, 255, 0.92) 78%,
    rgba(255, 255, 255, 0.96) 100%
  );
  pointer-events: none;
}

.prod-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 3vw, 56px);
  width: min(100% - var(--gutter) * 2, var(--maxw));
  margin-inline: auto;
}

.prod-hero__figure {
  display: flex;
  align-items: center;
  justify-content: center;
}

.prod-hero__figure img {
  display: block;
  width: 100%;
  max-width: 560px;
  height: auto;
}

/* 图片占位：真实图未提供时用图标占位，不加边框避免干扰纹理 */
.prod-hero__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 520px;
  aspect-ratio: 520 / 380;
  color: #c6c9cc;
}

.prod-hero__placeholder svg {
  width: 46%;
  height: auto;
}

.prod-hero__body {
  padding-left: clamp(0px, 1vw, 18px);
}

.prod-hero__rule {
  width: 100%;
  height: 1px;
  margin-bottom: clamp(24px, 2.4vw, 40px);
  background: #dcdddf;
}

.prod-hero__title {
  margin: 0;
  font-size: clamp(28px, 2.5vw, 44px);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: 0.01em;
  color: var(--prod-ink);
}

.prod-hero__desc {
  margin: clamp(20px, 2vw, 34px) 0 0;
  max-width: 42em;
  font-size: clamp(14px, 0.95vw, 17px);
  line-height: 2.05;
  color: var(--prod-body);
  text-align: justify;
}

/* --------------------------------------------------------------------------
   2. 应用场景
   -------------------------------------------------------------------------- */

.prod-section {
  position: relative;
  background: #fff;
}

.prod-section__head {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 6px;
  padding-top: clamp(48px, 4.6vw, 80px);
  padding-bottom: clamp(32px, 3.2vw, 56px);
}

.prod-section__title {
  margin: 0;
  font-size: clamp(24px, 2.1vw, 38px);
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--prod-ink);
}

/* 标题右上角的小折角装饰 */
.prod-section__mark {
  position: relative;
  display: block;
  width: 12px;
  height: 12px;
  margin-top: -0.35em;
  color: var(--prod-orange);
}

.prod-section__mark::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
}

.prod-section__mark::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 2px;
  height: 100%;
  background: currentColor;
}

/* 六宫格：三列两行，缝隙极窄 */
.prod-apps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2px;
  padding-bottom: clamp(48px, 5vw, 90px);
}

.prod-app {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 479 / 240;
  background: #d8dadd;
  isolation: isolate;
}

.prod-app img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

/* 底部压暗，保证白色标题可读 */
.prod-app::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 48%,
    rgba(0, 0, 0, 0.34) 78%,
    rgba(0, 0, 0, 0.52) 100%
  );
  pointer-events: none;
}

.prod-app__label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(10px, 1vw, 18px);
  z-index: 1;
  text-align: center;
  font-size: clamp(13px, 0.9vw, 16px);
  letter-spacing: 0.06em;
  color: #fff;
}

.prod-app:hover img {
  transform: scale(1.05);
}

/* --------------------------------------------------------------------------
   3. 技术参数
   -------------------------------------------------------------------------- */

.prod-specs {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #dfe0e1 0%, #ececec 34%, #f6f6f6 62%, #fafafa 100%);
  padding-top: clamp(40px, 3.6vw, 62px);
  padding-bottom: clamp(60px, 6vw, 110px);
}

/* 顶部横向拉丝纹理 */
.prod-specs::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.5) 0 2px,
    rgba(210, 211, 213, 0.28) 2px 5px,
    rgba(255, 255, 255, 0) 5px 14px
  );
  opacity: 0.55;
  pointer-events: none;
  mask-image: linear-gradient(180deg, #000 0%, transparent 55%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 55%);
}

.prod-specs__head {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  margin-bottom: clamp(28px, 3vw, 52px);
}

.prod-specs__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.82fr);
  align-items: center;
  gap: clamp(32px, 4vw, 72px);
}

.prod-specs__list {
  display: flex;
  flex-direction: column;
}

.prod-spec {
  padding: clamp(18px, 1.8vw, 30px) 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

.prod-spec:first-child {
  padding-top: 0;
}

.prod-spec:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.prod-spec__title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  font-size: clamp(20px, 1.7vw, 30px);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--prod-ink);
}

/* 空心橙色圆点 */
.prod-spec__dot {
  flex: none;
  width: 11px;
  height: 11px;
  border: 2px solid var(--prod-orange);
  border-radius: 50%;
}

.prod-spec__desc {
  margin: clamp(10px, 0.9vw, 16px) 0 0 clamp(25px, 2.1vw, 37px);
  font-size: clamp(14px, 0.93vw, 17px);
  line-height: 1.95;
  color: var(--prod-body);
}

.prod-specs__figure {
  display: flex;
  align-items: center;
  justify-content: center;
}

.prod-specs__figure img {
  display: block;
  width: 100%;
  max-width: 520px;
  height: auto;
}

.prod-specs__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 480px;
  aspect-ratio: 480 / 320;
  color: #c9cbcd;
  background: rgba(255, 255, 255, 0.55);
  border: 1px dashed #cfd1d3;
  border-radius: 6px;
}

.prod-specs__placeholder svg {
  width: 44%;
  height: auto;
}

/* --------------------------------------------------------------------------
   4. 相关产品
   -------------------------------------------------------------------------- */

.prod-related {
  padding-bottom: clamp(48px, 4.6vw, 84px);
}

.prod-related__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 1.6vw, 28px);
}

.prod-related__item a {
  display: block;
  padding: clamp(16px, 1.5vw, 24px);
  border: 1px solid #ececec;
  border-radius: 4px;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease),
    transform 0.25s var(--ease);
}

.prod-related__item a:hover {
  border-color: #e0e0e0;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

/* 缩略图占位 */
.prod-related__thumb {
  display: block;
  aspect-ratio: 4 / 3;
  margin-bottom: 16px;
  background: linear-gradient(180deg, #fafafa 0%, #f1f2f3 100%);
  border: 1px dashed #e0e1e2;
  border-radius: 3px;
}

.prod-related__name {
  display: block;
  font-size: clamp(15px, 0.98vw, 17px);
  color: var(--prod-ink);
  transition: color 0.2s var(--ease);
}

.prod-related__item a:hover .prod-related__name {
  color: var(--prod-orange);
}

.prod-related__spec {
  display: block;
  margin-top: 6px;
  font-size: clamp(12px, 0.8vw, 14px);
  color: var(--prod-muted);
}

/* --------------------------------------------------------------------------
   5. 免费打样
   -------------------------------------------------------------------------- */

.prod-sample {
  padding-bottom: clamp(56px, 5.4vw, 96px);
  background: #fff;
}

.prod-sample__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(24px, 3vw, 56px);
  padding: clamp(28px, 2.8vw, 46px) clamp(24px, 3vw, 52px);
  border: 1px solid #eee;
  border-radius: 6px;
  background: #fbfbfb;
}

.prod-sample__title {
  margin: 0;
  font-size: clamp(20px, 1.6vw, 28px);
  font-weight: 500;
  color: var(--prod-ink);
}

.prod-sample__desc {
  margin: 10px 0 0;
  font-size: clamp(13px, 0.88vw, 15px);
  line-height: 1.8;
  color: var(--prod-body);
}

.prod-sample__actions {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.4vw, 24px);
  flex: none;
}

.prod-sample__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 30px;
  border-radius: 3px;
  background: var(--prod-orange);
  font-size: clamp(14px, 0.92vw, 16px);
  color: #fff;
  white-space: nowrap;
  transition: background-color 0.22s var(--ease);
}

.prod-sample__btn:hover {
  background: #f5a423;
}

.prod-sample__link {
  font-size: clamp(14px, 0.92vw, 16px);
  color: var(--prod-body);
  white-space: nowrap;
  border-bottom: 1px solid #cfcfcf;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.prod-sample__link:hover {
  color: var(--prod-orange);
  border-color: var(--prod-orange);
}

/* --------------------------------------------------------------------------
   6. 左侧锚点导航（悬浮，跟随滚动）
   -------------------------------------------------------------------------- */

.prod-anchor {
  position: fixed;
  top: 50%;
  left: clamp(8px, 1.2vw, 26px);
  z-index: 50;
  transform: translateY(-50%);
}

.prod-anchor__list {
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 1.3vw, 20px);
}

.prod-anchor__link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(12px, 0.82vw, 14px);
  line-height: 1.5;
  color: var(--prod-muted);
  white-space: nowrap;
  transition: color 0.2s var(--ease);
}

/* 小圆点：未激活是浅灰空心，激活是橙色实心 */
.prod-anchor__dot {
  flex: none;
  width: 7px;
  height: 7px;
  border: 1.5px solid #cfcfcf;
  border-radius: 50%;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease),
    transform 0.2s var(--ease);
}

.prod-anchor__link.is-active {
  color: #3a3a3a;
  font-weight: 500;
}

.prod-anchor__link.is-active .prod-anchor__dot {
  background: var(--prod-orange);
  border-color: var(--prod-orange);
  transform: scale(1.15);
}

.prod-anchor__link:hover {
  color: #3a3a3a;
}

/* --------------------------------------------------------------------------
   响应式
   -------------------------------------------------------------------------- */

@media (max-width: 1200px) {
  .prod-anchor {
    display: none;
  }
}

@media (max-width: 1100px) {
  .prod-related__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .prod-hero__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(28px, 4vw, 40px);
  }

  .prod-hero__figure {
    order: 1;
  }

  .prod-hero__body {
    order: 2;
    padding-left: 0;
  }

  .prod-hero__desc {
    text-align: left;
  }

  .prod-apps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .prod-specs__inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .prod-specs__figure {
    order: -1;
  }
}

@media (max-width: 560px) {
  .prod-apps {
    grid-template-columns: minmax(0, 1fr);
  }

  .prod-app {
    aspect-ratio: 16 / 9;
  }

  .prod-related__list {
    grid-template-columns: minmax(0, 1fr);
  }

  .prod-sample__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .prod-sample__actions {
    width: 100%;
  }

  .prod-sample__btn {
    flex: 1;
  }
}
