/* Products section (1:1 from theme_012 dbg-products) */
.theme-015 {
  --t3-bg: var(--t15-bg, #f7f9fb);
  --t3-bg-elev: var(--t15-bg-2, #ffffff);
  --t3-line: var(--t15-line, rgba(114, 8, 145, 0.12));
  --t3-line-soft: rgba(114, 8, 145, 0.08);
  --t3-text: var(--t15-text, #424a66);
  --t3-text-mid: var(--t15-muted, #6a7391);
  --t3-gold: var(--t15-brand, #720891);
  --t3-crimson: var(--t15-brand-soft, #d79ee5);
  --t3-radius: 16px;
  --t3-radius-sm: 10px;
  --t3-shadow: 0 10px 40px rgba(114, 8, 145, 0.1);
  --t3-serif: 'Segoe UI', 'Microsoft YaHei', sans-serif;
  --t12-gold-grad: var(--t15-btn-grad, linear-gradient(99deg, #b45fd0, #720891));
  --t12-btn-grad: var(--t15-btn-grad, linear-gradient(99deg, #b45fd0, #720891));
}

.t3-wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

.t12-cta {
  --_bg: var(--t12-gold-grad);
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: 999px;
  background: var(--_bg);
  color: #fff !important;
  font-weight: 700; font-size: 14px; letter-spacing: .02em;
  border: 1px solid transparent;
  box-shadow: 0 8px 24px rgba(114, 8, 145, 0.28);
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
  white-space: nowrap;
}
.t12-cta:hover { transform: translateY(-2px); filter: brightness(1.06);
  box-shadow: 0 12px 32px rgba(114, 8, 145, 0.38); color: #fff !important; }
.t12-cta span { transition: transform .16s ease; }
.t12-cta:hover span { transform: translateX(3px); }
.t12-cta--header { margin-left: auto; padding: 9px 18px; }
.t12-cta--lg { padding: 15px 30px; font-size: 15.5px; }
.t12-cta--ghost {
  background: transparent; color: var(--t3-text) !important;
  border: 1px solid rgba(255,255,255,.22);
  box-shadow: none;
}
.t12-cta--ghost:hover {
  border-color: var(--t3-gold); color: var(--t3-gold) !important;
  box-shadow: none; filter: none;
}

/* ---------- DB Gaming 游戏产品 (Home — static bg + overlay, no video) ---------- */
.dbg-products {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: min(82vh, 780px);
  padding: clamp(48px, 6vh, 72px) 0 clamp(36px, 5vh, 56px);
  border-bottom: 0;
  background: transparent;
}
.dbg-products__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.dbg-products__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: opacity .45s ease;
}
.dbg-products__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-color: rgba(247, 249, 251, 0.78);
  pointer-events: none;
}
.dbg-products__shell {
  position: relative;
  z-index: 2;
}

.dbg-products__card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--t3-line);
  border-radius: var(--t3-radius);
  padding: clamp(22px, 3vw, 32px) clamp(16px, 2.5vw, 28px) clamp(24px, 3vw, 32px);
  backdrop-filter: blur(8px);
  box-shadow: var(--t3-shadow);
}

.dbg-products__card > .titleCell {
  margin-bottom: clamp(14px, 2vh, 22px);
}

/* Accent line — BOB gold/copper (replaces dbgaming orange) */
.dbg-line-orange {
  display: flex;
  justify-content: center;
  gap: 0;
  margin: 0 auto 28px;
}
.dbg-line-orange span {
  display: block;
  height: 7.5px;
  width: 26px;
  margin-right: 8px;
  transform: skewX(-45deg);
}
.dbg-line-orange span:last-child { margin-right: 0; }
.dbg-line-orange__one,
.dbg-line-orange__two { background: var(--t3-crimson); }
.dbg-line-orange__three { background: var(--t3-gold); }

/* Category tabs — inset tray inside the card */
.dbg-products__tabs-tray {
  margin-bottom: 0;
  padding: clamp(14px, 2vw, 20px) clamp(10px, 1.5vw, 16px);
  border-radius: var(--t3-radius-sm);
  border: 1px solid rgba(114, 8, 145, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(248, 240, 252, 0.88));
}
.dbg-products__tabs-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 6px;
}
.dbg-products__tab-col { flex: 0 0 auto; }
.dbg-products__tab-btn {
  --dbg-ped-w: 92px;
  --dbg-ped-h: 50px;
  --dbg-ped-bottom: 8px;
  position: relative;
  display: block;
  width: 118px;
  height: 96px;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  outline: none;
  transition: transform .2s ease;
}
.dbg-products__tab-btn:hover {
  background: transparent;
}
.dbg-products__tab-btn.is-active {
  background: transparent;
  box-shadow: none;
}
.dbg-products__tab-btn:focus-visible {
  outline: 2px solid rgba(215, 158, 229, 0.65);
  outline-offset: 3px;
  border-radius: 4px;
}
.dbg-products__tab-btn .tab-title {
  position: absolute;
  left: 50%;
  top: auto;
  bottom: calc(var(--dbg-ped-bottom) + var(--dbg-ped-h) * 0.48);
  z-index: 4;
  transform: translate(-50%, 50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: calc(var(--dbg-ped-w) - 8px);
  opacity: 1;
  pointer-events: none;
  transition: transform .22s ease, color .2s ease;
}
.dbg-products__tab-btn .title-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter:
    brightness(0) saturate(100%)
    invert(38%) sepia(12%) saturate(780%) hue-rotate(201deg) brightness(95%) contrast(88%);
  opacity: 0.88;
  transition: opacity .2s ease, filter .2s ease;
}
.dbg-products__tab-btn .title-text {
  font-size: 12px;
  font-weight: 600;
  color: #6a5f78;
  white-space: nowrap;
  text-shadow: none;
  transition: color .2s ease;
}
.dbg-products__tab-btn:hover .title-icon {
  opacity: 1;
  filter:
    brightness(0) saturate(100%)
    invert(18%) sepia(68%) saturate(2800%) hue-rotate(277deg) brightness(85%) contrast(98%);
}
.dbg-products__tab-btn:hover .title-text {
  color: var(--t15-brand, #720891);
}
.dbg-products__tab-btn.is-active .title-text {
  color: #fff;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(70, 4, 90, 0.35);
}
.dbg-products__tab-btn.is-active .title-icon {
  opacity: 1;
  filter:
    brightness(0) invert(1)
    drop-shadow(0 1px 2px rgba(70, 4, 90, 0.35));
}
.dbg-products__tab-btn .img,
.dbg-products__tab-btn .img_move,
.dbg-products__tab-btn .img_hover {
  position: absolute;
  left: 50%;
  bottom: var(--dbg-ped-bottom);
  transform: translateX(-50%);
  width: var(--dbg-ped-w);
  height: auto;
  object-fit: contain;
  transition: opacity .22s ease, transform .28s ease, filter .22s ease;
}
.dbg-products__tab-btn .img {
  opacity: 1;
  z-index: 1;
  /* dark pedestal → soft lavender for light purple page */
  filter:
    brightness(0) saturate(100%)
    invert(92%) sepia(8%) saturate(420%) hue-rotate(260deg) brightness(98%) contrast(96%)
    drop-shadow(0 4px 10px rgba(114, 8, 145, 0.12));
}
.dbg-products__tab-btn .img_move {
  opacity: 0;
  z-index: 2;
  animation: dbg-tab-bounce 2.4s ease-in-out infinite;
  /* gold border asset → brand purple tint */
  filter:
    brightness(0) saturate(100%)
    invert(22%) sepia(55%) saturate(2200%) hue-rotate(275deg) brightness(95%) contrast(95%)
    drop-shadow(0 6px 14px rgba(114, 8, 145, 0.22));
}
.dbg-products__tab-btn .img_hover { opacity: 0; z-index: 2; }
.dbg-products__tab-btn:hover .img_move { opacity: 1; }
.dbg-products__tab-btn:hover .img { opacity: .28; }
.dbg-products__tab-btn:hover:not(.is-active) .tab-title {
  transform: translate(-50%, calc(50% - 2px));
}
/* Active: brand purple pedestal + white icon/label */
.dbg-products__tab-btn.is-active .img { opacity: 0; }
.dbg-products__tab-btn.is-active .img_move,
.dbg-products__tab-btn.is-active .img_hover { opacity: 0; }
.dbg-products__tab-btn.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: var(--dbg-ped-bottom);
  z-index: 2;
  width: calc(var(--dbg-ped-w) - 4px);
  height: var(--dbg-ped-h);
  transform: translateX(-50%) skewX(-14deg);
  border-radius: 3px;
  background: linear-gradient(99deg, #c07ad8 0%, #8a1eab 48%, #720891 100%);
  box-shadow:
    0 8px 22px rgba(114, 8, 145, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

@keyframes dbg-tab-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(-8px); }
}

/* Detail panel — compact content + character */
.dbg-products__panels {
  position: relative;
  height: 420px;
  margin-top: 14px;
  padding-top: 16px;
  border-top: 1px solid var(--t3-line-soft);
  overflow: hidden;
}
.dbg-products__panel {
  position: absolute;
  inset: 16px 0 0;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity .22s ease, visibility .22s ease;
}
.dbg-products__panel.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.dbg-products__panel-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: center;
  gap: 8px 18px;
  height: 100%;
  position: relative;
}
.dbg-products__panel .left-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0;
  text-align: left;
  min-height: 0;
  gap: 0;
}
.dbg-products__panel .img-title {
  margin: 0 0 8px;
  min-height: 0;
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 700;
  color: var(--t3-text);
  letter-spacing: .02em;
}
.dbg-products__panel .h-span {
  margin: 0 0 12px;
  min-height: 0;
  max-height: none;
  font-size: 14px;
  line-height: 1.7;
  color: var(--t3-text-mid);
  max-width: 560px;
  display: block;
  overflow: visible;
}
.dbg-products__bullets {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 12px;
  min-height: 0;
  margin-bottom: 14px;
}
.dbg-products__panel .list-text {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--t3-text-mid);
}
.dbg-products__panel .circle-text { flex: 1; }

.dbg-products__cta.t12-cta {
  min-width: 168px;
  justify-content: center;
  letter-spacing: .06em;
  padding: 12px 22px;
  font-size: 14.5px;
}

.dbg-products__person-slot {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 340px;
  height: 360px;
  flex-shrink: 0;
  margin-left: auto;
}
.dbg-products__panel .person_img {
  display: block;
  width: 340px;
  height: 360px;
  margin: 0;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.4));
}
.dbg-products__panel .game_btn_group {
  flex-shrink: 0;
  min-height: 0;
}

@media (max-width: 960px) {
  .dbg-products { min-height: auto; padding-top: 56px; }
  .dbg-products__tabs-tray { padding: 12px 8px; }
  .dbg-products__tab-btn {
    --dbg-ped-w: 72px;
    --dbg-ped-h: 40px;
    --dbg-ped-bottom: 6px;
    width: 88px;
    height: 84px;
  }
  .dbg-products__tab-btn .title-icon { width: 22px; height: 22px; }
  .dbg-products__tab-btn .title-text { font-size: 11px; }
  .dbg-products__panels {
    height: auto;
    min-height: 0;
    overflow: visible;
  }
  .dbg-products__panel {
    position: relative;
    inset: auto;
    display: block;
    opacity: 1;
    visibility: visible;
  }
  .dbg-products__panel.is-hidden {
    position: absolute;
    inset: 14px 0 0;
    height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
  .dbg-products__panel-row {
    grid-template-columns: 1fr;
    height: auto;
    align-content: start;
    gap: 6px 0;
  }
  .dbg-products__person-slot {
    order: -1;
    width: min(260px, 70vw);
    height: auto;
    min-height: 0;
    margin: 0 auto;
    align-items: center;
  }
  .dbg-products__panel .person_img {
    width: 100%;
    height: auto;
    max-height: 240px;
    object-position: center bottom;
  }
  .dbg-products__panel .left-panel {
    justify-content: flex-start;
    padding: 0;
  }
  .dbg-products__panel .img-title {
    font-size: clamp(18px, 5vw, 22px);
    margin-bottom: 6px;
  }
  .dbg-products__panel .h-span {
    min-height: 0;
    max-height: none;
    display: block;
    -webkit-line-clamp: unset;
    overflow: visible;
    font-size: 13.5px;
    line-height: 1.65;
    margin-bottom: 10px;
  }
  .dbg-products__bullets {
    min-height: 0;
    margin-bottom: 12px;
    gap: 5px 10px;
    grid-template-columns: 1fr;
  }
  .dbg-products__cta.t12-cta {
    min-width: 0;
    width: 100%;
    padding: 11px 18px;
  }
}

@media (max-width: 560px) {
  .dbg-products__tabs-row { gap: 4px; }
  .dbg-products__tab-btn {
    --dbg-ped-w: 58px;
    --dbg-ped-h: 32px;
    --dbg-ped-bottom: 4px;
    width: 72px;
    height: 72px;
  }
  .dbg-products__tab-btn .title-icon { width: 20px; height: 20px; }
  .dbg-products__tab-btn .title-text { font-size: 10px; }
  .dbg-products__person-slot {
    width: min(220px, 68vw);
  }
  .dbg-products__panel .person_img {
    max-height: 200px;
  }
  .dbg-products__panels {
    margin-top: 10px;
    padding-top: 12px;
  }
}

/* Value-split hero: h1 mirrors the h2 sizing used by the base layout. */
.t12-hero-split { padding: clamp(64px, 9vh, 92px) 0; }
.t12-hero-split .t3-value-main .t3-prose h1 {
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.22;
  margin: 8px 0 16px;
  color: var(--t3-text);
}
.t12-hero-split .t3-value-main .t3-prose { max-width: none; }
.t12-hero-split .t12-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 20px; }

/* Mirror the split (desktop only): photo on the RIGHT, prose on the LEFT.
   Scoped to >=921px so the mobile stacked layout (base rules) is untouched. */
@media (min-width: 921px) {
  .t12-hero-split .t3-value-bg { left: auto; right: 0; }
  .t12-hero-split .t3-value-bg::after {
    background: linear-gradient(
      270deg,
      rgba(253, 251, 254, 0.15) 0%,
      rgba(253, 251, 254, 0.05) 40%,
      rgba(239, 223, 244, 0.55) 72%,
      var(--t3-bg-elev) 100%
    );
  }
  .t12-hero-split .t3-value-body { grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); }
  .t12-hero-split .t3-value-main { grid-column: 1; }
}

