/* ===== Product Center Page ===== */

/* Hero */
.product-hero {
  position: relative;
  background: var(--color-black);
  margin-bottom: 120px;
  overflow: hidden;
}

.product-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(201, 169, 110, 0.1) 0%, transparent 45%),
    radial-gradient(ellipse at 80% 100%, rgba(230, 0, 18, 0.04) 0%, transparent 35%);
  pointer-events: none;
}

/* Product Showcase (reference: ps2.png) */
.product-showcase {
  position: relative;
  width: 100%;
}

.product-showcase-card { 
  width: 100%;
  padding: 80px 24px;
  text-align: center;
}

.product-showcase-card--dark {
  background: var(--color-black);
  color: var(--color-white);
}

.product-showcase-card--light {
  background: #ffffff;
  color: var(--color-black);
}

.product-showcase-content {
  max-width: 720px;
  margin: 0 auto 48px;
}

.product-showcase-title {
  font-family: var(--font-sans);
  font-size: inherit;
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: 16px;
}

.product-showcase-brand {
  margin-top: 120px;
  display: block;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.product-showcase-series {
  display: block;
  font-size: clamp(1.25rem, 3vw, 2rem);
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--color-gold);
  margin-top: 4px;
}

.product-showcase-card--light .product-showcase-series {
  color: #a0854a;
}

.product-showcase-desc {
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.7;
  opacity: 0.85;
  margin-bottom: 12px;
}

.product-showcase-meta {
  font-size: 0.9375rem;
  color: var(--color-gray-400);
  margin-bottom: 28px;
}

.product-showcase-card--light .product-showcase-meta {
  color: var(--color-gray-500);
}

.product-showcase-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.product-showcase-btn {
  padding: 12px 28px;
  font-size: 0.875rem;
}

.btn-outline-dark {
  border: 1px solid rgba(0, 0, 0, 0.3);
  color: var(--color-black);
}

.btn-outline-dark:hover {
  border-color: var(--color-gold-dark);
  color: var(--color-gold-dark);
  background: rgba(160, 133, 74, 0.05);
}

.product-showcase-image {
  max-width: 1000px;
  margin: 0 auto;
}

.product-showcase-image img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* ===== REFERENCE SHOWCASE (rr.jpg) ===== */
.product-rr-showcase {
  background: var(--color-black);
  padding: 40px 0 120px;
}

/* Hero gradient card */
.rr-hero-card {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  margin-bottom: 80px;
  background: #0a0a0a;
}

.rr-hero-glow {
  position: absolute;
  inset: 0;
  border-radius: 28px;
  padding: 2px;
  background: linear-gradient(
    135deg,
    rgba(168, 85, 247, 0.9),
    rgba(236, 72, 153, 0.9),
    rgba(59, 130, 246, 0.9),
    rgba(34, 211, 238, 0.9),
    rgba(251, 191, 36, 0.9),
    rgba(168, 85, 247, 0.9)
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.rr-hero-glow::before {
  content: '';
  position: absolute;
  inset: -40px;
  background: inherit;
  filter: blur(50px);
  opacity: 0.35;
  z-index: -1;
}

.rr-hero-inner {
  position: relative;
  padding: 80px 24px;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}

.rr-ai-logo {
  width: 80px;
  height: 80px;
  margin: 0 auto 28px;
}

.rr-ai-logo svg {
  width: 100%;
  height: 100%;
}

.rr-hero-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 18px;
  color: var(--color-white);
}

.rr-hero-desc {
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 1.7;
  color: var(--color-gray-300);
  margin-bottom: 16px;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

.rr-hero-note {
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--color-gray-500);
  max-width: 560px;
  margin: 0 auto;
}

.rr-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 1rem;
  color: #2997ff;
  transition: opacity 0.2s ease;
}

.rr-link:hover {
  opacity: 0.8;
  text-decoration: underline;
}

/* Accessories */
.rr-accessories-section {
  margin-bottom: 40px;
}

.rr-accessories-header {
  text-align: center;
  margin-bottom: 48px;
}

.rr-section-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-gold);
  margin-bottom: 12px;
}

.rr-accessories-title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 600;
  line-height: 1.1;
  color: var(--color-white);
  margin-bottom: 16px;
}

.rr-accessories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.rr-accessory-card {
  background: #0f0f0f;
  border-radius: 24px;
  overflow: hidden;
  padding: 32px 24px;
  text-align: center;
}

.rr-accessory-card-image {
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.rr-accessory-card-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.rr-accessory-card-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-white);
}

/* Responsive */
@media (max-width: 1023px) {
  .rr-accessories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .product-rr-showcase {
    padding: 24px 0 80px;
  }

  .rr-hero-inner {
    padding: 56px 20px;
  }

  .rr-hero-card {
    margin-bottom: 56px;
  }

  .rr-accessories-grid {
    grid-template-columns: 1fr;
  }

  .rr-accessory-card-image {
    height: 200px;
  }
}

/* ===== PRODUCT CATEGORIES TABS ===== */
.product-categories-bar {
  position: sticky;
  top: 78px;
  z-index: 90;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.product-categories-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 16px 0;
}

.product-categories-list::-webkit-scrollbar {
  display: none;
}

.product-category-tab {
  flex-shrink: 0;
  padding: 10px 24px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 100px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  cursor: pointer;
}

.product-category-tab:hover {
  color: var(--color-white);
  border-color: rgba(201, 169, 110, 0.4);
}

.product-category-tab.active {
  color: var(--color-black);
  background: var(--color-gold);
  border-color: var(--color-gold);
}

.product-categories {
  background: var(--color-black);
  padding: 60px 0 120px;
}

.product-categories .rr-accessories-section {
  margin-bottom: 156px;
}

.product-categories .rr-accessories-section:last-child {
  margin-bottom: 0;
}

.product-category-panel {
  display: none;
}

.product-category-panel.is-active {
  display: block;
}

@media (max-width: 1023px) {
  .product-categories-bar {
    top: 68px;
  }

  .product-category-tab {
    padding: 8px 18px;
  }
}

@media (max-width: 767px) {
  .product-categories-list {
    gap: 8px;
  }

  .product-category-tab {
    padding: 8px 16px;
    font-size: 0.875rem;
  }

  .product-categories {
    padding: 40px 0 80px;
  }
}

/* ============================================================
   产品浏览页样式
   左侧统一分类卡片 / 右产品列表
   ============================================================ */

/* product.html — 左侧统一分类卡片 / 右产品列表 */

.product-browse {
  --browse-card-scale: 1.3;
  background: #f5f5f7;
  padding: 48px 0 100px;
  scroll-margin-top: 120px;
}

.product-browse-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 44px;
  align-items: start;
}

/* ===== 左侧：统一分类卡片 ===== */
.product-browse-sidebar {
  position: sticky;
  top: 96px;
}

.product-browse .product-categories-list {
  display: block;
  padding: 0;
}

/* 统一卡片 */
.product-category-card {
  width: 100%;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.product-category-card-header {
  padding: 16px 18px 14px;
  background: linear-gradient(180deg, #fafafa 0%, #fff 100%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.product-category-card-title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.3;
  color: #1d1d1f;
  letter-spacing: -0.01em;
}

/* 分类区块 */
.product-category-section {
  padding: 14px 16px 12px;
}

.product-category-section + .product-category-section {
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.product-category-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #1d1d1f;
}

.product-category-section-title::before {
  content: '';
  width: 3px;
  height: 14px;
  border-radius: 2px;
  background: var(--color-gold, #c9a96e);
  flex-shrink: 0;
}

/* 二级：系列列表 */
.product-series-list {
  list-style: none;
  margin: 0;
  padding: 0 0 0 11px;
  border-left: 1px solid rgba(0, 0, 0, 0.06);
}

.product-series-list-item {
  margin: 0;
}

.product-series-item {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 10px 12px 10px 28px;
  font-size: 0.925rem;
  font-weight: 400;
  line-height: 1.4;
  color: #2d2d2f;
  text-align: left;
  background: transparent;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  position: relative;
  transition:
    color 0.2s ease,
    background 0.2s ease,
    font-weight 0.2s ease;
}

/* 二级项前导圆点 */
.product-series-item::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 50%;
  width: 5px;
  height: 5px;
  margin-top: -2.5px;
  border-radius: 50%;
  background: #d2d2d7;
  transition: background 0.2s ease, transform 0.2s ease;
}

.product-series-item:hover {
  color: #1d1d1f;
  background: rgba(0, 0, 0, 0.04);
}

.product-series-item:hover::before {
  background: var(--color-gold, #c9a96e);
  transform: scale(1.2);
}

.product-series-item.is-active {
  color: #1d1d1f;
  font-weight: 600;
  background: rgba(201, 169, 110, 0.12);
}

.product-series-item.is-active::before {
  background: var(--color-gold, #c9a96e);
  transform: scale(1.35);
}

/* ===== 右侧产品区（整体放大 30%） ===== */
.product-browse-main {
  min-height: calc(360px * var(--browse-card-scale));
}

.product-browse-series-title {
  font-size: clamp(
    calc(1.5rem * var(--browse-card-scale) * 0.92 * 0.95),
    calc(3vw * 0.92 * 0.95),
    calc(2rem * var(--browse-card-scale) * 0.92 * 0.95)
  );
  font-weight: 600;
  color: #1d1d1f;
  margin: 0 0 calc(28px * var(--browse-card-scale));
  line-height: 1.2;
}

.product-browse-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: calc(16px * var(--browse-card-scale));
}

.product-browse-empty {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 320px;
  padding: 48px 24px;
  text-align: center;
  color: #424245;
}

.product-browse-empty h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #1d1d1f;
}

.product-browse-empty p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: #424245;
}

.product-browse-card {
  background: #fff;
  border-radius: calc(12px * var(--browse-card-scale));
  overflow: hidden;
  text-align: center;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.product-browse-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.product-browse-card:hover {
  box-shadow: 0 calc(8px * var(--browse-card-scale)) calc(24px * var(--browse-card-scale)) rgba(0, 0, 0, 0.08);
  transform: translateY(calc(-2px * var(--browse-card-scale)));
}

.product-browse-card-image {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding:
    calc(20px * var(--browse-card-scale))
    calc(16px * var(--browse-card-scale))
    calc(12px * var(--browse-card-scale));
}

.product-browse-card-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.product-browse-card-title {
  font-size: calc(0.75rem * var(--browse-card-scale));
  font-weight: 400;
  color: #424245;
  padding:
    0
    calc(12px * var(--browse-card-scale))
    calc(20px * var(--browse-card-scale));
  margin: 0;
  line-height: 1.4;
}

@media (max-width: 1279px) {
  .product-browse-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1023px) {
  .product-browse-layout {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 28px;
  }

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

  .product-browse-sidebar {
    top: 80px;
  }

  .product-category-card-header {
    padding: 14px 14px 12px;
  }

  .product-category-card-title {
    font-size: 1rem;
  }
}

@media (max-width: 767px) {
  .product-browse {
    padding: 32px 0 72px;
  }

  .product-browse-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .product-browse-sidebar {
    position: static;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 calc(-1 * var(--container-padding, 24px));
    padding: 0 var(--container-padding, 24px) 4px;
  }

  .product-category-card {
    flex-shrink: 0;
    width: 280px;
  }

  .product-category-section {
    padding: 12px;
  }

  .product-browse-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: calc(12px * var(--browse-card-scale));
  }

  .product-series-item {
    white-space: nowrap;
  }
}

/* showcase 下方衔接浅色分类区 */
.product-hero {
  margin-bottom: 0;
}
.product-rr-showcase {
  padding-top: 120px;
}
