/* =========================================================
   3D 防靜電 TPU 工作墊互動展示（明亮白系版）— 獨立樣式表
   作用域鎖定在 .mat3d-showcase，避免干擾 3_style_3.css
   ========================================================= */

.mat3d-showcase {
  --bg-deep: #b8c4d2;
  --bg-glow: #cdd7e3;
  --panel-bg: rgba(226, 232, 240, 0.96);
  --panel-border: rgba(71, 85, 105, 0.48);
  --text-main: #09111e;
  --text-muted: #1e293b;
  --accent: #0369a1;
  --accent-green: #047857;

  /* 3D 工作墊尺寸與雙層顏色變數（自適應視窗高度與寬度） */
  --mat-w: clamp(320px, min(42vw, 54vh * 1.61), 480px);
  --mat-h: calc(var(--mat-w) * 0.62);
  --mat-d: 14px; /* 視覺呈現 2mm 雙層複合厚度 */
  --mat-top-color: #1f7a5c;
  --mat-top-edge: #155942;
  --mat-bottom-color: #14171c;
  --mat-bottom-edge: #0c0e12;

  position: relative;
  width: 100%;
  min-height: min(92vh, 820px);
  scroll-margin-top: 84px;
  background-color: var(--bg-deep);
  background-image:
    radial-gradient(circle at 50% 30%, var(--bg-glow) 0%, #c1cddb 58%, #aebbc9 100%),
    linear-gradient(rgba(15, 23, 42, 0.075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.075) 1px, transparent 1px);
  background-size: 100% 100%, 40px 40px, 40px 40px;
  color: var(--text-main);
  font-family: "Segoe UI", "Noto Sans TC", "Microsoft JhengHei", system-ui, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: clamp(14px, 2vh, 26px) 16px clamp(16px, 2.4vh, 30px);
  gap: clamp(8px, 1.2vh, 14px);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.mat3d-showcase * {
  box-sizing: border-box;
}

/* 頂部標題與規格卡區塊 */
.mat3d-showcase .mat3d-header {
  width: 100%;
  max-width: 1040px;
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 1.2vh, 14px);
  z-index: 10;
  flex-shrink: 0;
}

.mat3d-showcase .mat3d-title-block h2 {
  font-size: clamp(18px, 2.3vw, 26px);
  font-weight: 800;
  letter-spacing: 0.05em;
  line-height: 1.3;
  background: linear-gradient(90deg, #0f172a 0%, #0284c7 62%, #059669 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.mat3d-showcase .mat3d-title-block p {
  font-size: clamp(12px, 1.4vw, 13px);
  color: var(--text-muted);
  margin-top: 2px;
}

/* 雙層結構與 GND 規格卡片 */
.mat3d-showcase .spec-cards {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.mat3d-showcase .spec-card {
  background: var(--panel-bg);
  border: 1.5px solid var(--panel-border);
  border-radius: 12px;
  padding: clamp(9px, 1.1vh, 13px) 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  backdrop-filter: blur(10px);
  font-size: clamp(12.5px, 1.45vw, 14.5px);
  color: #334155;
  box-shadow:
    0 6px 16px rgba(15, 23, 42, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}

.mat3d-showcase .spec-icon-box {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(15, 23, 42, 0.14);
}

.mat3d-showcase .spec-icon-box.top-layer {
  background: var(--mat-top-color);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.35);
  transition: background-color 0.25s ease;
}

.mat3d-showcase .spec-icon-box.bottom-layer {
  background: #14171c;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.18);
}

.mat3d-showcase .spec-card strong {
  color: #0f172a;
  font-weight: 800;
  font-size: clamp(13px, 1.5vw, 15px);
}

.mat3d-showcase .spec-card .ohm {
  color: var(--accent);
  font-family: "Consolas", "SFMono-Regular", monospace;
  font-weight: 800;
  font-size: clamp(13px, 1.5vw, 15px);
  margin-left: 5px;
}

.mat3d-showcase .spec-card.gnd-badge {
  border-color: rgba(16, 185, 129, 0.5);
  background: linear-gradient(180deg, rgba(209, 250, 229, 0.96) 0%, rgba(167, 243, 208, 0.92) 100%);
  color: #065f46;
}

.mat3d-showcase .spec-card.gnd-badge .spec-icon-box {
  background: #ecfdf5;
  border-color: rgba(4, 120, 87, 0.4);
  color: var(--accent-green);
}

.mat3d-showcase .spec-card.gnd-badge strong {
  color: var(--accent-green);
  font-size: clamp(13.5px, 1.55vw, 15.5px);
}

/* 3D 展示舞台 */
.mat3d-showcase .stage-wrap {
  position: relative;
  width: 100%;
  max-width: 1040px;
  flex: 1 1 auto;
  min-height: clamp(200px, 28vh, 340px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  perspective: 1300px;
  cursor: grab;
  touch-action: none;
  padding: 8px 0;
}

.mat3d-showcase .stage-wrap:active {
  cursor: grabbing;
}

.mat3d-showcase .scene {
  position: relative;
  width: var(--mat-w);
  height: var(--mat-h);
  transform-style: preserve-3d;
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.mat3d-showcase .scene.dragging {
  transition: none;
}

.mat3d-showcase .mat-shadow {
  position: absolute;
  inset: 12px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.38);
  filter: blur(24px);
  transform: translateZ(-48px);
  pointer-events: none;
}

.mat3d-showcase .face {
  position: absolute;
  backface-visibility: hidden;
}

/* 正面：上層消散層（無格線） */
.mat3d-showcase .face-front {
  width: var(--mat-w);
  height: var(--mat-h);
  border-radius: 14px;
  transform: translateZ(calc(var(--mat-d) / 2));
  background-color: var(--mat-top-color);
  background-image:
    linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 48%, rgba(0, 0, 0, 0.22) 100%);
  box-shadow:
    inset 0 1.5px 2px rgba(255, 255, 255, 0.34),
    inset 0 -1.5px 3px rgba(0, 0, 0, 0.35);
  transition: background-color 0.25s ease;
}

/* 正面右上角 10mm GND 金屬接地扣 */
.mat3d-showcase .gnd-snap {
  position: absolute;
  top: 18px;
  right: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.mat3d-showcase .snap-button {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffffff 0%, #cbd5e1 42%, #64748b 80%, #1e293b 100%);
  box-shadow:
    0 2px 5px rgba(0, 0, 0, 0.45),
    inset 0 0 0 3px rgba(51, 65, 85, 0.78),
    inset 0 1px 2px rgba(255, 255, 255, 0.95);
  position: relative;
}

.mat3d-showcase .snap-button::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ffffff, #64748b);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.mat3d-showcase .gnd-label {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(0, 0, 0, 0.36);
  border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 2px 6px;
  border-radius: 4px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* 正面印刷標示 */
.mat3d-showcase .front-print {
  position: absolute;
  bottom: 16px;
  left: 20px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: rgba(255, 255, 255, 0.65);
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.4);
  pointer-events: none;
}

.mat3d-showcase .front-print .brand-tag {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.mat3d-showcase .front-print .spec-tag {
  font-size: 10.5px;
  font-family: "Consolas", monospace;
  opacity: 0.92;
}

/* 背面：下層黑色導電層 (固定為消光黑) */
.mat3d-showcase .face-back {
  width: var(--mat-w);
  height: var(--mat-h);
  border-radius: 14px;
  transform: rotateY(180deg) translateZ(calc(var(--mat-d) / 2));
  background-color: var(--mat-bottom-color);
  background-image:
    linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, transparent 50%, rgba(0, 0, 0, 0.35) 100%),
    radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 100% 100%, 8px 8px;
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.14),
    inset 0 -2px 4px rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.mat3d-showcase .back-print {
  text-align: center;
  border: 1px dashed rgba(148, 163, 184, 0.3);
  padding: 12px 22px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.32);
}

.mat3d-showcase .back-print .back-title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #e2e8f0;
}

.mat3d-showcase .back-print .back-ohm {
  margin-top: 5px;
  font-size: 12.5px;
  color: #38bdf8;
  font-family: "Consolas", monospace;
  font-weight: 700;
}

.mat3d-showcase .back-print .back-sub {
  margin-top: 3px;
  font-size: 10.5px;
  color: #94a3b8;
  letter-spacing: 0.08em;
}

/* 四個側面：雙層複合切面 */
.mat3d-showcase .face-bottom-edge {
  width: calc(var(--mat-w) - 18px);
  height: var(--mat-d);
  left: 9px;
  top: calc(var(--mat-h) - var(--mat-d) / 2);
  transform: rotateX(-90deg);
  background: linear-gradient(
    to bottom,
    var(--mat-top-edge) 0%,
    var(--mat-top-edge) 48%,
    #0a0c10 50%,
    var(--mat-bottom-edge) 52%,
    var(--mat-bottom-edge) 100%
  );
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.mat3d-showcase .face-top-edge {
  width: calc(var(--mat-w) - 18px);
  height: var(--mat-d);
  left: 9px;
  top: calc(var(--mat-d) / -2);
  transform: rotateX(90deg);
  background: linear-gradient(
    to top,
    var(--mat-top-edge) 0%,
    var(--mat-top-edge) 48%,
    #0a0c10 50%,
    var(--mat-bottom-edge) 52%,
    var(--mat-bottom-edge) 100%
  );
}

.mat3d-showcase .face-right-edge {
  width: var(--mat-d);
  height: calc(var(--mat-h) - 18px);
  top: 9px;
  left: calc(var(--mat-w) - var(--mat-d) / 2);
  transform: rotateY(90deg);
  background: linear-gradient(
    to left,
    var(--mat-top-edge) 0%,
    var(--mat-top-edge) 48%,
    #0a0c10 50%,
    var(--mat-bottom-edge) 52%,
    var(--mat-bottom-edge) 100%
  );
}

.mat3d-showcase .face-left-edge {
  width: var(--mat-d);
  height: calc(var(--mat-h) - 18px);
  top: 9px;
  left: calc(var(--mat-d) / -2);
  transform: rotateY(-90deg);
  background: linear-gradient(
    to right,
    var(--mat-top-edge) 0%,
    var(--mat-top-edge) 48%,
    #0a0c10 50%,
    var(--mat-bottom-edge) 52%,
    var(--mat-bottom-edge) 100%
  );
}

/* 獨立置於 3D 模型外側的厚度標註 */
.mat3d-showcase .thickness-callout {
  position: absolute;
  left: calc(100% + 14px);
  bottom: 4px;
  transform: translateZ(0);
  display: flex;
  align-items: center;
  gap: 0;
  pointer-events: none;
  z-index: 20;
}

.mat3d-showcase .dim-leader {
  display: flex;
  align-items: center;
}

.mat3d-showcase .dim-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.18);
}

.mat3d-showcase .dim-line {
  width: 18px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), rgba(2, 132, 199, 0.5));
}

.mat3d-showcase .dim-bracket {
  width: 8px;
  height: 28px;
  border-left: 2px solid var(--accent);
  border-top: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  border-radius: 3px 0 0 3px;
  margin-right: 8px;
}

.mat3d-showcase .dim-badge {
  background: rgba(226, 232, 240, 0.96);
  border: 1.5px solid rgba(3, 105, 161, 0.55);
  border-radius: 10px;
  padding: 7px 12px;
  box-shadow:
    0 8px 20px rgba(15, 23, 42, 0.1),
    0 2px 6px rgba(2, 132, 199, 0.12);
  white-space: nowrap;
}

.mat3d-showcase .dim-badge .dim-main {
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: 0.03em;
}

.mat3d-showcase .dim-badge .dim-main span {
  color: var(--accent);
}

.mat3d-showcase .dim-badge .dim-sub {
  font-size: 11px;
  color: var(--accent-green);
  margin-top: 2px;
  font-weight: 600;
}

/* 手機／窄螢幕專屬厚度標示 */
.mat3d-showcase .mobile-thickness-bar {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(226, 232, 240, 0.96);
  border: 1.5px solid rgba(3, 105, 161, 0.48);
  border-radius: 10px;
  padding: 5px 12px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
  z-index: 10;
  flex-shrink: 0;
}

.mat3d-showcase .mobile-thickness-bar .m-icon {
  width: 7px;
  height: 15px;
  border-top: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  border-left: 2px solid var(--accent);
  border-radius: 2px 0 0 2px;
}

.mat3d-showcase .mobile-thickness-bar .m-text {
  font-size: 12px;
  font-weight: 700;
  color: #0f172a;
}

.mat3d-showcase .mobile-thickness-bar .m-text span {
  color: var(--accent);
}

.mat3d-showcase .mobile-thickness-bar .m-sub {
  font-size: 11px;
  color: var(--accent-green);
  font-weight: 600;
  padding-left: 8px;
  border-left: 1px solid rgba(148, 163, 184, 0.4);
}

/* 提示文字與業務洽談補充說明 */
.mat3d-showcase .mat3d-footer-notes {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-align: center;
  flex-shrink: 0;
}

.mat3d-showcase .hint-bar {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.mat3d-showcase .business-disclaimer {
  font-size: 12px;
  font-weight: 600;
  color: #334155;
  letter-spacing: 0.03em;
}

/* =========================================================
   明亮白系立體按鈕感控制面板 (Control Panel)
   ========================================================= */
.mat3d-showcase .control-panel {
  width: 100%;
  max-width: 1040px;
  background: linear-gradient(180deg, rgba(226, 232, 240, 0.97) 0%, rgba(203, 213, 225, 0.97) 100%);
  border: 1px solid rgba(100, 116, 139, 0.45);
  border-radius: 14px;
  padding: clamp(10px, 1.4vh, 14px) clamp(14px, 1.8vw, 20px);
  backdrop-filter: blur(12px);
  box-shadow:
    0 10px 28px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 1);
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  z-index: 10;
  flex-shrink: 0;
}

.mat3d-showcase .control-group {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.mat3d-showcase .divider {
  width: 1px;
  height: 26px;
  background: rgba(148, 163, 184, 0.35);
  margin: 0 2px;
  flex-shrink: 0;
}

/* 淺色實體立體按鍵 */
.mat3d-showcase .btn,
.mat3d-showcase .color-picker-btn {
  position: relative;
  background: linear-gradient(180deg, #e2e8f0 0%, #cbd5e1 100%);
  border: 1px solid #94a3b8;
  border-top-color: #f1f5f9;
  color: #1e293b;
  padding: 8px 14px;
  min-height: 38px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  white-space: nowrap;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow:
    0 4px 0 #94a3b8,
    0 6px 12px rgba(15, 23, 42, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.2s ease, background 0.2s ease;
  user-select: none;
}

.mat3d-showcase .btn:hover,
.mat3d-showcase .color-picker-btn:hover {
  background: linear-gradient(180deg, #eef2f6 0%, #dbe3ec 100%);
  border-color: #64748b;
  transform: translateY(-1px);
  box-shadow:
    0 5px 0 #94a3b8,
    0 8px 16px rgba(15, 23, 42, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}

.mat3d-showcase .btn:active,
.mat3d-showcase .color-picker-btn:active {
  transform: translateY(3px);
  box-shadow:
    0 1px 0 #94a3b8,
    0 2px 4px rgba(15, 23, 42, 0.12),
    inset 0 2px 4px rgba(15, 23, 42, 0.08);
}

/* 選中狀態：沈穩石墨深灰 */
.mat3d-showcase .btn.active,
.mat3d-showcase .color-picker-btn.active {
  background: linear-gradient(180deg, #334155 0%, #1e293b 100%);
  border-color: #1e293b;
  border-top-color: #64748b;
  color: #ffffff;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.25);
  box-shadow:
    0 4px 0 #0f172a,
    0 6px 14px rgba(15, 23, 42, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.mat3d-showcase .btn.active:active,
.mat3d-showcase .color-picker-btn.active:active {
  transform: translateY(3px);
  box-shadow:
    0 1px 0 #0f172a,
    0 2px 6px rgba(15, 23, 42, 0.2),
    inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* 翻轉按鈕：柔和石板深灰 */
.mat3d-showcase .btn-primary {
  background: linear-gradient(180deg, #475569 0%, #334155 100%);
  border-color: #334155;
  border-top-color: #94a3b8;
  color: #ffffff;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.25);
  box-shadow:
    0 4px 0 #0f172a,
    0 6px 14px rgba(30, 41, 59, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.mat3d-showcase .btn-primary:hover {
  background: linear-gradient(180deg, #526278 0%, #3b4b61 100%);
  border-color: #475569;
  box-shadow:
    0 5px 0 #0f172a,
    0 8px 16px rgba(30, 41, 59, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.mat3d-showcase .btn-primary:active {
  box-shadow:
    0 1px 0 #0f172a,
    0 2px 6px rgba(30, 41, 59, 0.22),
    inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* 圓圈實色按鈕（細緻外框） */
.mat3d-showcase .circle-color-btn {
  width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 0;
  border-radius: 50%;
  background: #e2e8f0;
  border: 1.5px solid #94a3b8;
  box-shadow:
    0 2px 6px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.14s ease, box-shadow 0.14s ease, border-color 0.14s ease;
  flex-shrink: 0;
}

.mat3d-showcase .circle-color-btn:hover {
  transform: translateY(-1px);
  border-color: #64748b;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.12);
}

.mat3d-showcase .circle-color-btn:active {
  transform: scale(0.95);
}

.mat3d-showcase .circle-color-btn.active {
  border-color: #1e293b;
  box-shadow:
    0 0 0 2px rgba(30, 41, 59, 0.18),
    0 3px 8px rgba(15, 23, 42, 0.15);
}

.mat3d-showcase .solid-circle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: block;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.25);
}

.mat3d-showcase .color-picker-btn {
  overflow: hidden;
}

.mat3d-showcase .picker-wheel {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  background: conic-gradient(#ef4444, #f59e0b, #10b981, #3b82f6, #8b5cf6, #ef4444);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.3);
  flex-shrink: 0;
}

.mat3d-showcase .color-picker-btn input[type="color"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  border: none;
}

/* =========================================================
   筆電與小高度螢幕一屏完整容納
   ========================================================= */
@media (max-width: 1120px) and (min-width: 861px) {
  .mat3d-showcase {
    --mat-w: clamp(300px, min(38vw, 44vh * 1.61), 430px);
  }

  .mat3d-showcase .control-panel {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 10px 14px;
  }

  .mat3d-showcase .btn,
  .mat3d-showcase .color-picker-btn {
    padding: 7px 12px;
    min-height: 36px;
    font-size: 12.5px;
  }
}

@media (max-height: 760px) and (min-width: 861px) {
  .mat3d-showcase {
    --mat-w: clamp(290px, min(36vw, 40vh * 1.61), 410px);
    min-height: auto;
    padding: 14px 16px 18px;
    gap: 6px;
  }

  .mat3d-showcase .mat3d-header {
    gap: 8px;
  }

  .mat3d-showcase .spec-card {
    padding: 8px 12px;
  }

  .mat3d-showcase .spec-icon-box {
    width: 28px;
    height: 28px;
  }

  .mat3d-showcase .stage-wrap {
    min-height: 185px;
    padding: 4px 0;
  }

  .mat3d-showcase .control-panel {
    padding: 9px 14px;
  }

  .mat3d-showcase .btn,
  .mat3d-showcase .color-picker-btn {
    min-height: 34px;
    padding: 6px 12px;
  }
}

/* =========================================================
   平板與手機版響應式設計 (RWD) — 精簡小巧的注意畫面與規格卡
   ========================================================= */
@media (max-width: 860px) {
  .mat3d-showcase {
    --mat-w: min(72vw, 370px);
    min-height: auto;
  }

  .mat3d-showcase .spec-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }

  .mat3d-showcase .spec-card {
    padding: 6px 9px;
    border-radius: 9px;
    font-size: 11.5px;
    gap: 6px;
    box-shadow: 0 3px 8px rgba(15, 23, 42, 0.05);
  }

  .mat3d-showcase .spec-card.gnd-badge {
    grid-column: 1 / -1;
    justify-content: center;
  }

  .mat3d-showcase .spec-icon-box {
    width: 20px;
    height: 20px;
    border-radius: 6px;
  }

  .mat3d-showcase .spec-icon-box svg {
    width: 11px;
    height: 11px;
  }

  .mat3d-showcase .spec-card strong,
  .mat3d-showcase .spec-card .ohm,
  .mat3d-showcase .spec-card.gnd-badge strong {
    font-size: 11.5px;
  }

  .mat3d-showcase .thickness-callout {
    display: none;
  }

  .mat3d-showcase .mobile-thickness-bar {
    display: inline-flex;
  }

  .mat3d-showcase .stage-wrap {
    min-height: 215px;
    padding: 6px 0;
  }

  .mat3d-showcase .control-panel {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 540px) {
  .mat3d-showcase {
    --mat-w: min(78vw, 290px);
    --mat-d: 11px;
    padding: 12px 10px 16px;
    gap: 6px;
  }

  .mat3d-showcase .mat3d-header {
    gap: 6px;
  }

  .mat3d-showcase .mat3d-title-block h2 {
    font-size: 16.5px;
  }

  .mat3d-showcase .mat3d-title-block p {
    font-size: 11px;
    margin-top: 1px;
  }

  .mat3d-showcase .spec-cards {
    grid-template-columns: 1fr 1fr;
    gap: 4px;
  }

  .mat3d-showcase .spec-card {
    padding: 4px 7px;
    border-radius: 7px;
    font-size: 10.5px;
    gap: 4px;
  }

  .mat3d-showcase .spec-card.gnd-badge {
    padding: 4px 8px;
    font-size: 10.5px;
  }

  .mat3d-showcase .spec-icon-box {
    width: 16px;
    height: 16px;
    border-radius: 4px;
  }

  .mat3d-showcase .spec-icon-box svg {
    width: 9px;
    height: 9px;
  }

  .mat3d-showcase .spec-card strong,
  .mat3d-showcase .spec-card .ohm,
  .mat3d-showcase .spec-card.gnd-badge strong {
    font-size: 10.5px;
    margin-left: 2px;
  }

  .mat3d-showcase .stage-wrap {
    min-height: 190px;
    padding: 4px 0;
  }

  .mat3d-showcase .gnd-snap {
    top: 10px;
    right: 12px;
    gap: 2px;
  }

  .mat3d-showcase .snap-button {
    width: 18px;
    height: 18px;
  }

  .mat3d-showcase .gnd-label {
    font-size: 9.5px;
    padding: 1px 4px;
  }

  .mat3d-showcase .front-print {
    bottom: 10px;
    left: 12px;
  }

  .mat3d-showcase .front-print .brand-tag {
    font-size: 9.5px;
  }

  .mat3d-showcase .front-print .spec-tag {
    font-size: 8.5px;
  }

  .mat3d-showcase .back-print {
    padding: 8px 12px;
  }

  .mat3d-showcase .back-print .back-title {
    font-size: 12px;
  }

  .mat3d-showcase .back-print .back-ohm {
    font-size: 10.5px;
  }

  .mat3d-showcase .mobile-thickness-bar {
    padding: 4px 10px;
    gap: 7px;
    border-radius: 8px;
  }

  .mat3d-showcase .mobile-thickness-bar .m-icon {
    width: 6px;
    height: 13px;
  }

  .mat3d-showcase .mobile-thickness-bar .m-text {
    font-size: 11px;
  }

  .mat3d-showcase .mobile-thickness-bar .m-sub {
    font-size: 10.5px;
    padding-left: 6px;
  }

  .mat3d-showcase .mat3d-footer-notes {
    gap: 2px;
  }

  .mat3d-showcase .hint-bar {
    font-size: 10px;
  }

  .mat3d-showcase .business-disclaimer {
    font-size: 10px;
    line-height: 1.3;
  }

  .mat3d-showcase .control-panel {
    padding: 8px 10px;
    gap: 7px;
    border-radius: 12px;
  }

  .mat3d-showcase .control-group {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
  }

  .mat3d-showcase .control-group.action-group .btn {
    flex: 1 1 110px;
    min-height: 36px;
    padding: 6px 8px;
    font-size: 12px;
  }

  .mat3d-showcase .circle-color-btn {
    width: 32px;
    height: 32px;
    min-height: 32px;
  }

  .mat3d-showcase .solid-circle {
    width: 21px;
    height: 21px;
  }

  .mat3d-showcase .control-group.color-group .color-picker-btn {
    flex: 1 1 130px;
    min-height: 36px;
    padding: 6px 10px;
    font-size: 12px;
  }

  .mat3d-showcase .divider {
    display: none;
  }
}

/* =========================================================
   按壓／點選 3D 物件時：聚焦 3D 舞台，讓周邊介面半透明（仍可辨識）
   放開或取消聚焦後平順恢復原本不透明度
   ========================================================= */
.mat3d-showcase .spec-cards,
.mat3d-showcase .control-panel,
.mat3d-showcase .mat3d-footer-notes,
.mat3d-showcase .mobile-thickness-bar {
  transition: opacity 0.22s ease, filter 0.22s ease;
}

.mat3d-showcase.is-3d-interacting .spec-cards,
.mat3d-showcase.is-3d-interacting .control-panel,
.mat3d-showcase.is-3d-interacting .mat3d-footer-notes,
.mat3d-showcase.is-3d-interacting .mobile-thickness-bar {
  opacity: 0.24;
  filter: saturate(0.75);
}

/* 讓整頁捲動進度條在 3D 互動期間也同步半透明（非完全消失） */
body.mat3d-focus-active .scroll-progress,
body.mat3d-focus-active .scroll-progress.active-glow {
  opacity: 0.28;
  transition: opacity 0.22s ease;
}

/* =========================================================
   手機版精簡優化：縮小 3D 展示區頂部 .spec-cards，保留完整舞台空間
   ========================================================= */
@media (max-width: 680px) {
  .mat3d-showcase .spec-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
  }

  .mat3d-showcase .spec-card {
    padding: 4px 8px;
    border-radius: 7px;
    font-size: 10.5px;
    gap: 5px;
    flex: 0 1 auto;
  }

  .mat3d-showcase .spec-card.gnd-badge {
    padding: 4px 9px;
  }

  .mat3d-showcase .spec-icon-box {
    width: 15px;
    height: 15px;
    border-radius: 4px;
  }

  .mat3d-showcase .spec-icon-box svg {
    width: 9px;
    height: 9px;
  }

  .mat3d-showcase .spec-card strong,
  .mat3d-showcase .mat3d-header .spec-card .ohm,
  .mat3d-showcase .spec-card.gnd-badge strong {
    font-size: 10.5px;
    margin-left: 2px;
  }
}
