/* ==========================================================================
   Fate Hub · Dark Neumorphic Product Detail Styles
   科技详情页深色拟态视觉系统 · 2026 全面重构版
   ========================================================================== */

.detail-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 20px 80px;
  position: relative;
  z-index: 1;
}

/* 顶部面包屑 */
.detail-nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}
.detail-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
}
.detail-breadcrumb a {
  color: var(--text-muted);
}
.detail-breadcrumb a:hover {
  color: var(--text-pure);
}
.detail-breadcrumb span {
  color: var(--text-dim);
}

.detail-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: 8px;
  background: var(--bg-surface);
  box-shadow: var(--neu-shadow-button);
  border: var(--neu-border);
}
.detail-back-btn:hover {
  color: var(--text-pure);
  border-color: rgba(255, 255, 255, 0.15);
}

/* 详情主栅格布局 (左侧展台 + 右侧内容流) */
.detail-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 28px;
  align-items: start;
}

/* --------------------------------------------------------------------------
   左侧：全景展台卡片
   -------------------------------------------------------------------------- */
.detail-sidebar-card {
  padding: 30px 24px;
  border-radius: 20px;
  position: sticky;
  top: 86px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* 拟态 Logo 悬浮展座 */
.detail-logo-stage {
  width: 130px;
  height: 130px;
  border-radius: 22px;
  background: var(--bg-inset);
  box-shadow: var(--neu-shadow-sunken);
  border: 1px solid rgba(0, 0, 0, 0.6);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  position: relative;
}
.detail-logo-stage img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.6));
}
.detail-logo-fallback {
  width: 100%;
  height: 100%;
  display: none;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 900;
  color: var(--text-dim);
}

.detail-sidebar-hero {
  text-align: center;
}
.detail-game-badge {
  display: inline-block;
  margin-bottom: 8px;
}
.detail-title-main {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-pure);
  line-height: 1.3;
  margin-bottom: 8px;
  word-break: break-word;
  overflow-wrap: break-word;
}
.detail-type-tag {
  font-size: 13px;
  color: var(--text-muted);
}

/* 价格档位矩阵面板 */
.price-plans-box {
  background: var(--bg-inset);
  box-shadow: var(--neu-shadow-sunken);
  border-radius: 14px;
  padding: 18px;
  border: 1px solid rgba(0, 0, 0, 0.4);
}
.price-plans-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.price-plans-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.price-plan-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.03);
}
.price-plan-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
}
.price-plan-price {
  font-size: 15px;
  font-weight: 800;
  font-family: var(--font-mono);
  color: #ff6b7a;
}
.is-rdr .price-plan-price {
  color: #f7ba53;
}
.price-note-text {
  font-size: 11px;
  line-height: 1.5;
  color: var(--text-dim);
  margin-top: 10px;
}

/* 卡网购买大按钮 */
.buy-button-action {
  width: 100%;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 14px;
  text-align: center;
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   右侧：核心评测与技术档案主面板
   -------------------------------------------------------------------------- */
.detail-main-flow {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.detail-section-card {
  padding: 32px 36px;
  border-radius: 20px;
}

.detail-sec-header {
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.detail-sec-header .neu-badge {
  margin-left: auto;
}
.detail-sec-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-pure);
  display: flex;
  align-items: center;
  gap: 10px;
}
.detail-sec-title i {
  color: var(--gta-primary);
}
.is-rdr .detail-sec-title i {
  color: var(--rdr-primary);
}

/* 核心参数指标网格 */
.spec-matrix-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}
.spec-matrix-item {
  background: var(--bg-inset);
  box-shadow: var(--neu-shadow-sunken-sm);
  border-radius: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.03);
}
.spec-matrix-kicker {
  font-size: 11px;
  color: var(--text-dim);
  font-weight: 600;
  margin-bottom: 4px;
}
.spec-matrix-val {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-pure);
}

/* 客观评测文案区 */
.review-copy-block {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-muted);
}
.product-recommendation {
  color: #ff9aa4;
  font-weight: 700;
  padding: 12px 14px;
  border-left: 3px solid var(--gta-primary);
  border-radius: 0 10px 10px 0;
  background: rgba(255, 51, 68, 0.07);
}
.is-rdr .product-recommendation {
  color: #f7c66a;
  border-left-color: var(--rdr-primary);
  background: rgba(245, 166, 35, 0.08);
}
.product-audience {
  margin-top: 12px;
  font-weight: 700;
  color: var(--text-pure);
}
.review-copy-block p {
  margin-bottom: 14px;
}

/* 亮点特性标签列表 */
.highlights-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}
.highlight-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--text-main);
  background: var(--bg-inset);
  padding: 10px 14px;
  border-radius: 10px;
  box-shadow: var(--neu-shadow-sunken-sm);
}
.highlight-row i {
  color: #34d399;
  flex-shrink: 0;
  margin-top: 2px;
}

.rating-panel {
  margin-top: 22px;
  padding: 16px;
  border-radius: 14px;
  background: var(--bg-inset);
  box-shadow: var(--neu-shadow-sunken-sm);
  border: 1px solid rgba(255, 255, 255, 0.04);
}
.rating-panel-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  color: var(--text-main);
  font-size: 13px;
  font-weight: 800;
}
.rating-panel-heading span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.rating-panel-heading svg {
  width: 15px;
  height: 15px;
  color: var(--gta-primary);
}
.rating-panel-heading small {
  color: var(--text-dim);
  font-size: 11px;
  font-weight: 500;
}
.rating-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 18px;
}
.rating-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 8px 10px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.025);
}
.rating-label {
  min-width: 0;
  color: var(--text-muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}
.rating-stars {
  display: inline-flex;
  gap: 2px;
  color: var(--text-dim);
}
.rating-stars svg {
  width: 13px;
  height: 13px;
  stroke-width: 2;
}
.rating-stars .is-filled {
  color: #f5b942;
  fill: currentColor;
  filter: drop-shadow(0 0 4px rgba(245, 185, 66, 0.25));
}
.rating-stars .is-empty {
  color: rgba(148, 163, 184, 0.38);
}
.rating-row b {
  min-width: 26px;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 10px;
  text-align: right;
}

/* --------------------------------------------------------------------------
   实机功能图库画廊
   -------------------------------------------------------------------------- */
.feature-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  background: var(--bg-inset);
  color: var(--text-main);
  cursor: pointer;
  text-align: left;
  box-shadow: var(--neu-shadow-sunken);
}
.feature-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #111722;
}
.feature-card.is-pending-image {
  background: #dce4ef;
}
.feature-card.is-pending-image::before {
  content: "图片加载中";
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  pointer-events: none;
}
.feature-card.is-broken {
  border-color: rgba(248, 113, 113, 0.42);
}
.feature-card.is-broken img {
  opacity: 0.35;
}
.feature-card-error {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  padding: 16px;
  color: #fca5a5;
  background: rgba(15, 23, 42, 0.72);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  pointer-events: none;
}
.feature-card.is-loading-priority::after {
  content: "正在加载图片…";
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  color: #e9edf5;
  background: #10141de8;
  font-size: 12px;
  font-weight: 700;
}
.video-load-button {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  color: #e9edf5;
  background: radial-gradient(ellipse at center, #293448 0, #151b27 70%);
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}
.video-load-button:hover { background: radial-gradient(ellipse at center, #34425a 0, #151b27 72%); }
.video-load-play {
  display: grid;
  width: 48px;
  aspect-ratio: 1;
  place-items: center;
  padding-left: 3px;
  border: 1px solid #ffffff44;
  border-radius: 50%;
  color: #fff;
  background: #ffffff17;
  font-size: 18px;
}
.video-load-error {
  position: absolute;
  inset: auto 10px 10px;
  padding: 8px;
  color: #ffd3d8;
  background: #1a1014e8;
  text-align: center;
  font-size: 12px;
}
.feature-card > span:not(.feature-card-zoom) {
  display: block;
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 700;
}
.feature-card:hover {
  border-color: rgba(255, 255, 255, 0.18);
}
.feature-card:hover img {
  transform: scale(1.025);
}
.feature-card img {
  transition: transform var(--trans-normal), filter var(--trans-normal);
}
.feature-card-zoom {
  position: absolute;
  right: 10px;
  bottom: 42px;
  color: #fff;
  opacity: 0.8;
}

.feature-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.gallery-thumbnail-card {
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-inset);
  box-shadow: var(--neu-shadow-sunken);
  border: 1px solid rgba(0, 0, 0, 0.5);
  cursor: pointer;
  position: relative;
  aspect-ratio: 16 / 10;
}
.gallery-thumbnail-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--trans-normal);
}
.gallery-thumbnail-card:hover img {
  transform: scale(1.06);
}
.gallery-hover-overlay {
  position: absolute;
  inset: 0;
  background: rgba(16, 21, 31, 0.6);
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  gap: 6px;
  transition: opacity var(--trans-fast);
}
.gallery-thumbnail-card:hover .gallery-hover-overlay {
  opacity: 1;
}

/* --------------------------------------------------------------------------
   教程视频演示
   -------------------------------------------------------------------------- */
.video-showcase-intro {
  margin: -8px 0 18px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.7;
}
.video-showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.video-showcase-card {
  min-width: 0;
  overflow: hidden;
  border-radius: 14px;
  background: var(--bg-inset);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: var(--neu-shadow-sunken);
  contain: layout paint;
  transition: border-color var(--trans-fast), box-shadow var(--trans-fast);
}
.video-showcase-card:hover {
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: var(--neu-shadow-raised-sm);
}
.video-showcase-card:focus-within {
  border-color: rgba(255, 51, 68, 0.42);
  box-shadow: var(--neu-shadow-raised-sm), 0 0 0 2px rgba(255, 51, 68, 0.08);
}
.video-showcase-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #080b12;
  isolation: isolate;
}
.video-showcase-media.bilibili-video {
  height: auto;
  padding-bottom: 0;
}
.video-showcase-media.bilibili-video iframe {
  position: absolute;
  inset: 0;
}
.video-showcase-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.28);
}
.video-showcase-media iframe,
.video-showcase-media video {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  object-fit: contain;
  background: #080b12;
}
.video-showcase-caption {
  min-height: 44px;
  padding: 11px 14px;
  color: var(--text-main);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

/* --------------------------------------------------------------------------
   交互式菜单预览体验舱 (Alpha & Sovereign)
   -------------------------------------------------------------------------- */
.interactive-demo-wrapper {
  margin-top: 20px;
  border-radius: 16px;
  background: var(--bg-inset);
  box-shadow: var(--neu-shadow-sunken);
  border: 1px solid rgba(0, 0, 0, 0.6);
  overflow: hidden;
  position: relative;
}
.interactive-toolbar {
  padding: 12px 18px;
  background: rgba(22, 28, 40, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.interactive-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-pure);
  display: flex;
  align-items: center;
  gap: 8px;
}
.interactive-actions {
  display: flex;
  gap: 8px;
}
.interactive-tool-btn {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--bg-surface);
  box-shadow: var(--neu-shadow-button);
  color: var(--text-muted);
  cursor: pointer;
}
.interactive-tool-btn:hover {
  color: var(--text-pure);
}
.interactive-iframe-container {
  width: 100%;
  height: 580px;
  position: relative;
  background: var(--bg-inset);
  overflow: hidden;
}
.interactive-iframe-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}
#interactivePreviewLoading {
  position: absolute;
  inset: 0;
  background: var(--bg-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--text-dim);
  font-size: 14px;
  z-index: 10;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
#interactivePreviewLoading.is-ready,
#interactivePreviewLoading[hidden] {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
#interactivePreviewError {
  position: absolute;
  inset: 0;
  background: var(--bg-deep);
  display: none;
  align-items: center;
  justify-content: center;
  color: #ff6b7a;
  z-index: 11;
  font-size: 14px;
}
#interactivePreviewError:not([hidden]) {
  display: flex;
}
.interactive-spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-top-color: var(--text-pure);
  border-radius: 50%;
  animation: neu-spin 0.8s linear infinite;
}
@keyframes neu-spin {
  to { transform: rotate(360deg); }
}

#interactivePreview.is-expanded .interactive-iframe-container {
  height: 840px;
}
@media (max-width: 900px) {
  .interactive-iframe-container {
    height: 520px;
  }
  #interactivePreview.is-expanded .interactive-iframe-container {
    height: 620px;
  }
}

/* --------------------------------------------------------------------------
   功能图放大灯箱 (全屏滚轮缩放与拖拽)
   -------------------------------------------------------------------------- */
.feature-lightbox {
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  background: rgba(10, 14, 22, 0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.04);
  width: min(92vw, 1200px);
  height: min(88vh, 860px);
  max-height: 90vh;
  margin: auto;
  color: #fff;
  outline: none;
  overflow: hidden;
}
.feature-lightbox::before {
  content: "功能图预览";
  position: absolute;
  top: 18px;
  left: 24px;
  z-index: 5;
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  pointer-events: none;
}
.feature-lightbox::backdrop {
  background: rgba(8, 11, 16, 0.88);
  backdrop-filter: blur(10px);
}
.feature-lightbox-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.78);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  transition: background var(--trans-fast), color var(--trans-fast), border-color var(--trans-fast), transform var(--trans-fast);
}
.feature-lightbox-close svg {
  width: 18px;
  height: 18px;
}
.feature-lightbox-close:focus-visible {
  outline: 2px solid var(--gta-primary);
  outline-offset: 3px;
}
.feature-lightbox-close:active {
  transform: scale(0.94);
}
.feature-lightbox-close:hover {
  background: rgba(255, 51, 68, 0.18);
  border-color: rgba(255, 107, 122, 0.5);
  color: #fff;
}
.feature-lightbox-stage {
  width: 100%;
  height: calc(100% - 62px);
  padding: 46px 28px 78px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: grab;
}
.feature-lightbox-stage:active {
  cursor: grabbing;
}
.feature-lightbox-stage img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.42);
  transition: transform 0.15s ease-out;
  transform-origin: center center;
}
.feature-lightbox-toolbar {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 16px;
  background: rgba(24, 30, 43, 0.96);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.14);
  z-index: 20;
}
.feature-lightbox-toolbar::before {
  content: "缩放";
  margin: 0 4px 0 6px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 11px;
  font-weight: 700;
}
.lightbox-btn {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.86);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.lightbox-btn:hover {
  color: #fff;
  background: rgba(255, 51, 68, 0.18);
  border-color: rgba(255, 107, 122, 0.45);
}
.lightbox-btn:focus-visible {
  outline: 2px solid var(--gta-primary);
  outline-offset: 2px;
}
.lightbox-btn svg {
  width: 16px;
  height: 16px;
}
.lightbox-zoom-val {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  min-width: 50px;
  text-align: center;
}

/* 响应式适配 */
@media (max-width: 960px) {
  .detail-layout {
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    min-width: 0;
  }
  .detail-layout > * {
    min-width: 0;
    max-width: 100%;
  }
  .detail-sidebar-card {
    position: static;
  }
  .spec-matrix-grid {
    grid-template-columns: 1fr 1fr;
  }
  .feature-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .feature-lightbox {
    width: calc(100vw - 20px);
    height: min(82vh, 680px);
    border-radius: 16px;
  }
  .feature-lightbox::before {
    top: 15px;
    left: 16px;
    font-size: 10px;
  }
  .feature-lightbox-close {
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
  }
  .feature-lightbox-stage {
    padding: 44px 10px 74px;
  }
  .feature-lightbox-toolbar {
    bottom: 12px;
    gap: 5px;
    padding: 6px 7px;
  }
  .feature-lightbox-toolbar::before {
    margin-left: 3px;
    font-size: 10px;
  }
  .lightbox-btn {
    width: 32px;
    height: 32px;
  }
  .detail-container {
    padding: 14px 10px 40px;
  }
  .detail-nav-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 14px;
  }
  .detail-breadcrumb {
    font-size: 12px;
    flex-wrap: wrap;
  }
  .detail-back-btn {
    font-size: 12px;
    padding: 5px 12px;
  }
  .detail-sidebar-card {
    padding: 18px 14px;
    border-radius: 16px;
  }
  .detail-logo-stage {
    width: 72px;
    height: 72px;
    margin-bottom: 12px;
  }
  .detail-title-main {
    font-size: 20px;
  }
  .detail-content-card {
    padding: 18px 14px;
    border-radius: 16px;
  }
  .detail-section-card {
    padding: 20px 14px;
    border-radius: 16px;
  }
  .detail-sec-header {
    align-items: flex-start;
    margin-bottom: 16px;
  }
  .detail-sec-title {
    min-width: 0;
    font-size: 16px;
    line-height: 1.4;
  }
  .detail-sec-header .neu-badge {
    margin-left: 0;
  }
  .rating-panel {
    padding: 13px 10px;
  }
  .rating-panel-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
  .rating-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }
  .spec-matrix-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .spec-matrix-item {
    padding: 10px 8px;
    border-radius: 12px;
  }
  .spec-matrix-item .spec-label {
    font-size: 11px;
  }
  .spec-matrix-item .spec-value {
    font-size: 13px;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  .feature-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .gallery-item {
    height: 110px;
    border-radius: 10px;
  }
  .video-showcase-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  .video-showcase-intro {
    font-size: 12px;
    line-height: 1.6;
  }
  .video-showcase-caption {
    min-height: 40px;
    padding: 9px 12px;
    font-size: 12px;
  }
  .interactive-iframe-container {
    height: 340px;
    border-radius: 14px;
  }
  .package-item {
    padding: 12px 10px;
    border-radius: 12px;
  }
  .feature-lightbox {
    width: 96vw;
    max-height: 94vh;
    border-radius: 14px;
  }
  .feature-lightbox-close {
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
  }
  .feature-lightbox-toolbar {
    bottom: 14px;
    padding: 6px 14px;
    gap: 8px;
  }
}

/* --------------------------------------------------------------------------
   同类推荐商品卡片 (深色拟态)
   -------------------------------------------------------------------------- */
.related-product-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: 14px;
  background: var(--bg-surface);
  box-shadow: var(--neu-shadow-raised-sm);
  border: var(--neu-border);
  text-decoration: none;
  color: inherit;
  transition: all var(--trans-fast);
}
.related-product-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--neu-shadow-raised);
  border-color: rgba(255, 255, 255, 0.15);
}
.related-product-cover {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: var(--bg-inset);
  box-shadow: var(--neu-shadow-sunken-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 4px;
  position: relative;
}
.related-product-cover img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.related-cover-fallback {
  display: none;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 800;
  color: var(--text-dim);
}
.related-product-copy {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.related-product-copy small {
  font-size: 11px;
  color: var(--text-dim);
}
.related-product-copy strong {
  font-size: 14px;
  color: var(--text-pure);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.related-product-copy em {
  font-size: 12px;
  font-style: normal;
  color: #ff6b7a;
  font-family: var(--font-mono);
}
.is-rdr .related-product-copy em {
  color: #f7ba53;
}

/* ==========================================================================
   浅色拟态详情页适配
   ========================================================================== */
.rating-panel {
  border-color: rgba(255, 255, 255, 0.08);
  background: linear-gradient(145deg, rgba(14, 18, 26, 0.96), rgba(20, 27, 39, 0.82));
}
.rating-panel-heading span {
  color: var(--text-pure);
}
.rating-row {
  border: 1px solid rgba(255, 255, 255, 0.04);
  background: rgba(255, 255, 255, 0.035);
}
.rating-row:first-child {
  border-color: rgba(245, 185, 66, 0.2);
  background: rgba(245, 185, 66, 0.07);
}
.buy-button-action {
  min-height: 52px;
  letter-spacing: 0.01em;
}
.detail-back-btn {
  box-shadow: none;
  background: transparent;
}
.detail-back-btn:hover {
  background: rgba(255, 255, 255, 0.04);
}

html[data-theme="light"] .rating-panel {
  border-color: rgba(203, 213, 225, 0.75);
  background: linear-gradient(145deg, rgba(248, 250, 253, 0.98), rgba(235, 240, 247, 0.92));
}
html[data-theme="light"] .rating-row {
  border-color: rgba(203, 213, 225, 0.55);
  background: rgba(255, 255, 255, 0.58);
}
html[data-theme="light"] .rating-row:first-child {
  border-color: rgba(217, 119, 6, 0.25);
  background: rgba(245, 166, 35, 0.1);
}

@media (max-width: 600px) {
  .rating-panel-heading small {
    display: block;
    line-height: 1.5;
  }
  .buy-button-action {
    min-height: 50px;
  }
}

html[data-theme="light"] .detail-hero-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(240, 244, 250, 0.95));
  border-color: rgba(255, 255, 255, 0.95);
}
html[data-theme="light"] .detail-title-main {
  color: var(--text-pure);
}
html[data-theme="light"] .interactive-toolbar {
  background: rgba(240, 244, 248, 0.96);
  border-bottom: 1px solid rgba(203, 213, 225, 0.7);
}
html[data-theme="light"] .interactive-title {
  color: var(--text-pure);
}
html[data-theme="light"] .feature-lightbox-toolbar {
  background: rgba(240, 244, 248, 0.94);
  border-color: rgba(255, 255, 255, 0.9);
}
html[data-theme="light"] .lightbox-btn {
  color: var(--text-main);
}
html[data-theme="light"] .related-product-copy strong {
  color: var(--text-pure);
}
html[data-theme="light"] .detail-type-tag {
  color: var(--text-muted);
}
html[data-theme="light"] .spec-matrix-item {
  border-color: rgba(203, 213, 225, 0.6);
}
html[data-theme="light"] .spec-matrix-kicker {
  color: var(--text-dim);
}
html[data-theme="light"] .review-copy-block {
  color: var(--text-main);
}
html[data-theme="light"] .product-recommendation {
  color: #a8202c;
  background: rgba(220, 38, 38, 0.07);
  border-left-color: var(--gta-primary);
}
html[data-theme="light"] .is-rdr .product-recommendation {
  color: #8a5100;
  background: rgba(217, 119, 6, 0.08);
  border-left-color: var(--rdr-primary);
}
html[data-theme="light"] .price-plan-pill {
  border-color: rgba(203, 213, 225, 0.6);
}
html[data-theme="light"] .price-plan-name {
  color: var(--text-pure);
}
html[data-theme="light"] .price-plan-desc {
  color: var(--text-muted);
}
html[data-theme="light"] .detail-back-btn {
  color: var(--text-main);
  border-color: rgba(203, 213, 225, 0.6);
}

/* 浅色拟态详情页卡片与图库细节增强 */
html[data-theme="light"] .detail-page {
  color: var(--text-main);
}
html[data-theme="light"] .feature-card.is-pending-image {
  background: #dce4ef;
}
html[data-theme="light"] .detail-cover-slot {
  background: var(--bg-inset);
  border: 1px solid rgba(203, 213, 225, 0.7);
  box-shadow: var(--neu-shadow-sunken-sm);
}
html[data-theme="light"] .gallery-item {
  border-color: rgba(203, 213, 225, 0.6);
  background: var(--bg-surface);
}
html[data-theme="light"] .gallery-item:hover {
  border-color: #ffffff;
}
html[data-theme="light"] .package-item {
  border-color: rgba(203, 213, 225, 0.6);
  background: var(--bg-surface);
}
html[data-theme="light"] .package-item.active {
  border-color: rgba(220, 38, 38, 0.5);
  background: var(--bg-surface-elevated);
}
html[data-theme="light"] .is-rdr .package-item.active {
  border-color: rgba(217, 119, 6, 0.5);
}
html[data-theme="light"] .related-product-card {
  border-color: rgba(255, 255, 255, 0.85);
  box-shadow: var(--neu-shadow-raised-sm);
}
html[data-theme="light"] .related-product-card:hover {
  border-color: #ffffff;
}
html[data-theme="light"] .related-product-cover {
  border: 1px solid rgba(203, 213, 225, 0.6);
}
html[data-theme="light"] .detail-hero-stats {
  border-top: 1px solid rgba(203, 213, 225, 0.6);
}

/* 详情页排版增强：让信息更适合扫描与比较 */
.detail-layout {
  grid-template-columns: minmax(300px, 320px) minmax(0, 1fr);
  gap: 32px;
}
.detail-main-flow { gap: 22px; }
.detail-section-card { padding: 30px 34px; }
.detail-sec-header { position: relative; padding-bottom: 16px; }
.detail-sec-header::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 54px;
  height: 2px;
  border-radius: 2px;
  background: var(--gta-primary);
  box-shadow: 0 0 10px var(--gta-glow);
}
.is-rdr .detail-sec-header::after {
  background: var(--rdr-primary);
  box-shadow: 0 0 10px var(--rdr-glow);
}
.spec-matrix-item {
  min-height: 76px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: border-color var(--trans-fast), background var(--trans-fast);
}
.spec-matrix-item:hover {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.045);
}
.spec-matrix-val { line-height: 1.45; overflow-wrap: anywhere; }
.review-copy-block {
  max-width: 760px;
  font-size: 14px;
  line-height: 1.9;
}
.review-copy-block p:first-child {
  color: var(--text-main);
  font-size: 15px;
  line-height: 1.85;
}
.review-copy-block p:last-child {
  padding-left: 12px;
  border-left: 2px solid rgba(148, 163, 184, 0.25);
}
.highlights-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
  margin-top: 20px;
}
.highlight-row {
  min-height: 42px;
  align-items: center;
  padding: 9px 12px;
  line-height: 1.45;
}
.rating-panel { max-width: 860px; margin-top: 18px; }
.rating-row { min-height: 36px; }
.price-plans-box { padding: 16px; }
.price-plan-row { min-height: 42px; padding: 9px 12px; }
.buy-button-action {
  min-height: 50px;
  box-shadow: 0 10px 24px var(--gta-glow);
}

@media (max-width: 960px) {
  .detail-layout { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .detail-sidebar-card { position: relative; top: auto; }
}

@media (max-width: 600px) {
  .detail-section-card { padding: 20px 14px; }
  .detail-sec-header::after { width: 38px; }
  .review-copy-block { font-size: 13px; line-height: 1.8; }
  .review-copy-block p:first-child { font-size: 14px; }
  .highlights-list { grid-template-columns: minmax(0, 1fr); gap: 7px; }
  .highlight-row { min-height: 38px; }
}

/* Detail polish: align rules with the current generated DOM. */
.detail-empty-state {
  display: grid;
  justify-items: center;
  gap: 7px;
  min-height: 126px;
  padding: 24px 18px;
  border: 1px dashed rgba(148, 163, 184, 0.28);
  border-radius: 12px;
  color: var(--text-dim);
  text-align: center;
}
.detail-empty-state[hidden] { display: none; }
.detail-empty-state svg {
  width: 24px;
  height: 24px;
  margin-bottom: 2px;
  color: var(--text-muted);
}
.detail-empty-state strong {
  color: var(--text-main);
  font-size: 13px;
}
.detail-empty-state span {
  max-width: 420px;
  font-size: 12px;
  line-height: 1.6;
}
.feature-card {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.feature-card img {
  aspect-ratio: 16 / 10;
  object-fit: contain;
  padding: 6px;
  background: #0a0e16;
}
.feature-card > span:not(.feature-card-zoom) {
  min-height: 42px;
  padding: 10px 42px 10px 12px;
  line-height: 1.45;
}
.feature-card-zoom {
  right: 10px;
  bottom: 11px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 7px;
  background: rgba(10, 14, 22, 0.72);
  opacity: 0.9;
}
.feature-card:focus-visible {
  outline: 2px solid var(--gta-primary);
  outline-offset: 3px;
}

html[data-theme="light"] .detail-empty-state {
  border-color: rgba(100, 116, 139, 0.3);
  background: rgba(226, 231, 239, 0.38);
}
html[data-theme="light"] .feature-card img {
  background: #e8edf4;
}

@media (max-width: 600px) {
  .detail-sec-header {
    gap: 10px;
  }
  .detail-sec-title {
    flex: 1 1 100%;
  }
  .detail-sec-header .neu-badge {
    margin-left: 0;
  }
  .feature-gallery-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  .feature-card img {
    aspect-ratio: 16 / 9;
    padding: 8px;
  }
  .feature-card > span:not(.feature-card-zoom) {
    min-height: 44px;
  }
  .detail-empty-state {
    min-height: 116px;
    padding: 20px 14px;
  }
}
