/* ═══════════════════════════════════════════════════════════════
 * 未知之致 Unfound Depth —— 产品详情页样式
 * 产品页独有：面包屑、产品Hero、卖点数字、功能Bento、案例滚动、时间线
 * ═══════════════════════════════════════════════════════════════ */

/* 产品色覆盖 - Neko 紫色主题 */
body[data-product="neko"] {
  --product-accent: #a78bfa;
  --product-accent-soft: rgba(167, 139, 250, 0.15);
  --product-gradient: linear-gradient(135deg, #a78bfa 0%, #818cf8 100%);
}

/* 产品色覆盖 - OpenTool 粉色主题 */
body[data-product="opentool"] {
  --product-accent: #ec4899;
  --product-accent-soft: rgba(244, 114, 182, 0.15);
  --product-gradient: linear-gradient(135deg, #f472b6 0%, #ec4899 100%);
}

/* ───────────────────── 面包屑 ───────────────────── */
.breadcrumb {
  padding-top: 100px;
  padding-bottom: 24px;
  font-size: 13px;
  color: var(--text-3);
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
  gap: 8px;
}
.breadcrumb-item a {
  color: var(--text-3);
  transition: color .2s ease;
}
.breadcrumb-item a:hover {
  color: var(--product-accent);
}
.breadcrumb-item.active {
  color: var(--text);
  font-weight: 500;
}

.breadcrumb-sep {
  color: var(--text-4);
}

/* ───────────────────── 产品 Hero ───────────────────── */
.product-hero {
  position: relative;
  padding: 40px 0 100px;
  overflow: hidden;
}

.product-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.product-hero-glow {
  position: absolute;
  top: 0;
  right: -100px;
  width: 500px;
  height: 500px;
  background: var(--product-accent);
  border-radius: 50%;
  filter: blur(150px);
  opacity: .2;
}

.product-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at 80% 20%, black 0%, transparent 60%);
  -webkit-mask-image: radial-gradient(ellipse at 80% 20%, black 0%, transparent 60%);
}

.product-hero-wrap {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.product-hero-badges {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.product-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 100px;
  background: var(--product-accent-soft);
  color: var(--product-accent);
  border: 1px solid rgba(167, 139, 250, .2);
}
.product-badge.secondary {
  background: var(--bg-card);
  color: var(--text-2);
  border-color: var(--border);
}

.product-hero-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.5px;
  margin-bottom: 20px;
}
.product-hero-title .gradient-text {
  background: var(--product-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.product-hero-desc {
  font-size: 17px;
  color: var(--text-2);
  line-height: 1.8;
  margin-bottom: 36px;
  max-width: 520px;
}

.product-hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-product {
  background: var(--product-gradient);
  color: #fff;
  box-shadow: 0 4px 20px rgba(167, 139, 250, .35);
}
.btn-product:hover {
  box-shadow: 0 8px 30px rgba(167, 139, 250, .5);
}

/* 产品 Hero 视觉区 */
.product-hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 400px;
}

.product-hero-icon-wrap {
  position: relative;
  width: 280px;
  height: 280px;
}

.product-hero-icon-glow {
  position: absolute;
  inset: -40px;
  background: radial-gradient(circle, var(--product-accent) 0%, transparent 70%);
  filter: blur(60px);
  opacity: .4;
  animation: iconGlow 5s ease-in-out infinite;
}

@keyframes iconGlow {
  0%, 100% { opacity: .3; transform: scale(1); }
  50% { opacity: .5; transform: scale(1.1); }
}

.product-hero-icon {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 32px;
  background: linear-gradient(135deg, #1e1b4b 0%, #4c1d95 50%, #7c3aed 100%);
  display: grid;
  place-items: center;
  box-shadow:
    0 30px 80px rgba(124, 58, 237, .3),
    inset 0 1px 0 rgba(255, 255, 255, .1);
  overflow: hidden;
}
.product-hero-icon::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,.15) 0%, transparent 40%),
    radial-gradient(circle at 70% 70%, rgba(167, 139, 250, .3) 0%, transparent 50%);
}

.product-hero-icon-letter {
  position: relative;
  font-family: var(--font-display);
  font-size: 140px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 4px 30px rgba(0, 0, 0, .3);
}

.product-hero-floats {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-float {
  position: absolute;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .15);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 10px 16px;
  font-size: 12px;
  color: rgba(255, 255, 255, .8);
  font-family: var(--font-mono);
  animation: floatY 6s ease-in-out infinite;
}
.hero-float-1 {
  top: 10%;
  left: -10%;
  animation-delay: 0s;
}
.hero-float-2 {
  bottom: 20%;
  left: -5%;
  animation-delay: -2s;
}
.hero-float-3 {
  top: 30%;
  right: -5%;
  animation-delay: -4s;
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

/* ───────────────────── 核心卖点数字 ───────────────────── */
.product-highlights {
  padding: 80px 0;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.highlight-item {
  text-align: center;
}

.highlight-num {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 12px;
  background: var(--product-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.highlight-label {
  font-size: 14px;
  color: var(--text-2);
  font-weight: 500;
}

.highlight-sublabel {
  font-size: 12px;
  color: var(--text-3);
  margin-top: 4px;
}

/* ───────────────────── 功能模块 Bento Grid ───────────────────── */
.product-modules {
  padding: 120px 0;
}

.modules-bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto auto;
  gap: 20px;
}

.module-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: all .3s cubic-bezier(.22,.8,.36,1);
  position: relative;
  overflow: hidden;
}
.module-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-strong);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.module-card.featured {
  background: linear-gradient(135deg, rgba(167, 139, 250, .08) 0%, rgba(129, 140, 248, .04) 100%);
  border-color: rgba(167, 139, 250, .2);
}
.module-card.featured:hover {
  border-color: rgba(167, 139, 250, .4);
}

/* Bento 网格布局 */
.module-card.col-2 { grid-column: span 2; }
.module-card.row-2 { grid-row: span 2; }

.module-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--product-accent-soft);
  color: var(--product-accent);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  font-size: 22px;
}

.module-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
}

.module-desc {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 16px;
}

.module-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.module-tag {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--bg-3);
  color: var(--text-3);
  border: 1px solid var(--border);
}

.module-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}
.module-list li {
  font-size: 13px;
  color: var(--text-2);
  padding-left: 20px;
  position: relative;
}
.module-list li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--product-accent);
  font-size: 10px;
  top: 2px;
}

/* ───────────────────── 实战案例横向滚动 ───────────────────── */
.product-cases {
  padding: 120px 0;
  background: var(--bg-2);
}

.cases-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 48px;
}

.cases-header .section-header {
  text-align: left;
  margin: 0;
}

.cases-controls {
  display: flex;
  gap: 10px;
}

.cases-btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-2);
  display: grid;
  place-items: center;
  transition: all .2s ease;
}
.cases-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--product-accent);
  color: var(--product-accent);
}
.cases-btn svg { width: 18px; height: 18px; }
.cases-btn:disabled {
  opacity: .3;
  cursor: not-allowed;
}

.cases-scroll {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 8px;
}
.cases-scroll::-webkit-scrollbar { display: none; }

.case-card {
  flex: 0 0 360px;
  scroll-snap-align: start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all .3s ease;
}
.case-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-strong);
}

.case-image {
  aspect-ratio: 16 / 10;
  position: relative;
  overflow: hidden;
}

.case-image-1 {
  background: linear-gradient(135deg, #1e1b4b 0%, #4c1d95 50%, #7c3aed 100%);
}
.case-image-2 {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #3b82f6 100%);
}
.case-image-3 {
  background: linear-gradient(135deg, #134e4a 0%, #0d9488 50%, #2dd4bf 100%);
}
.case-image-4 {
  background: linear-gradient(135deg, #3b0764 0%, #7c3aed 50%, #a78bfa 100%);
}

.case-image::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 80px; height: 80px;
  background: rgba(255,255,255,.12);
  border-radius: 50%;
  box-shadow:
    40px 20px 0 -15px rgba(255,255,255,.08),
    -40px -20px 0 -20px rgba(255,255,255,.06);
}

.case-info {
  padding: 20px 24px 24px;
}

.case-tag {
  font-size: 11px;
  color: var(--product-accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.case-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  margin: 6px 0 8px;
}

.case-desc {
  font-size: 13px;
  color: var(--text-3);
  line-height: 1.6;
}

/* ───────────────────── 版本时间线 ───────────────────── */
.product-versions {
  padding: 120px 0;
}

.versions-wrap {
  max-width: 800px;
  margin: 0 auto;
}

.timeline {
  position: relative;
  padding-left: 32px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--product-accent), var(--border));
}

.timeline-item {
  position: relative;
  padding-bottom: 40px;
}
.timeline-item:last-child { padding-bottom: 0; }

.timeline-dot {
  position: absolute;
  left: -32px;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--product-accent);
  box-shadow: 0 0 0 4px var(--product-accent-soft);
}
.timeline-item.current .timeline-dot {
  background: var(--product-accent);
  box-shadow: 0 0 0 4px var(--product-accent-soft), 0 0 20px var(--product-accent);
}

.timeline-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.timeline-version {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}

.timeline-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--product-accent-soft);
  color: var(--product-accent);
  text-transform: uppercase;
  letter-spacing: .5px;
}

.timeline-date {
  font-size: 13px;
  color: var(--text-3);
  margin-left: auto;
}

.timeline-content {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.8;
}

.timeline-content ul {
  list-style: none;
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.timeline-content li {
  padding-left: 18px;
  position: relative;
  color: var(--text-2);
  font-size: 13px;
}
.timeline-content li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--product-accent);
}

/* ───────────────────── 获取方式 CTA ───────────────────── */
.product-cta {
  padding: 120px 0;
  background: var(--bg-2);
}

.product-cta-wrap {
  position: relative;
  background: linear-gradient(135deg, rgba(167, 139, 250, .08) 0%, rgba(129, 140, 248, .04) 100%);
  border: 1px solid rgba(167, 139, 250, .15);
  border-radius: var(--radius-lg);
  padding: 64px;
  text-align: center;
  overflow: hidden;
}

.product-cta-bg {
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: var(--product-accent);
  border-radius: 50%;
  filter: blur(150px);
  opacity: .1;
  pointer-events: none;
}

.product-cta-content { position: relative; }

.product-cta-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
}

.product-cta-desc {
  font-size: 16px;
  color: var(--text-2);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.8;
}

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

/* ───────────────────── 相关产品 ───────────────────── */
.product-related {
  padding: 120px 0;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.related-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: all .3s ease;
}
.related-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

.related-card-tag {
  font-size: 12px;
  color: var(--text-3);
  margin-bottom: 8px;
}

.related-card-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.related-card-desc {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.6;
  margin-bottom: 16px;
}

.related-card-cta {
  font-size: 13px;
  color: var(--product-accent);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.related-card-placeholder {
  opacity: .5;
}
.related-card-placeholder:hover {
  transform: none;
  box-shadow: none;
}

/* ───────────────────── 响应式 ───────────────────── */
@media (max-width: 1024px) {
  .product-hero-wrap {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .product-hero-visual {
    order: -1;
    height: 320px;
  }
  .product-hero-icon-wrap {
    width: 220px;
    height: 220px;
  }
  .product-hero-icon-letter { font-size: 110px; }

  .highlights-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 32px;
  }

  .modules-bento {
    grid-template-columns: repeat(2, 1fr);
  }
  .module-card.col-2 { grid-column: span 2; }

  .related-grid { grid-template-columns: repeat(2, 1fr); }

  .product-cta-wrap { padding: 48px 32px; }
}

@media (max-width: 768px) {
  .breadcrumb { padding-top: 80px; }
  .product-hero { padding: 20px 0 80px; }
  .product-hero-visual { height: 280px; }
  .product-hero-icon-wrap { width: 180px; height: 180px; }
  .product-hero-icon-letter { font-size: 90px; }
  .hero-float { display: none; }

  .product-highlights, .product-modules, .product-cases,
  .product-versions, .product-cta, .product-related {
    padding: 80px 0;
  }

  .cases-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
  .case-card { flex: 0 0 300px; }

  .modules-bento { grid-template-columns: 1fr; }
  .module-card.col-2 { grid-column: span 1; }
  .module-card.row-2 { grid-row: span 1; }

  .related-grid { grid-template-columns: 1fr; }

  .timeline-date {
    width: 100%;
    margin-left: 0;
  }

  .product-cta-wrap { padding: 40px 24px; }
}

@media (max-width: 480px) {
  .highlights-grid { grid-template-columns: repeat(2, 1fr); gap: 24px 16px; }
  .highlight-num { font-size: 32px; }

  .product-hero-actions { flex-direction: column; }
  .product-hero-actions .btn { width: 100%; }

  .product-cta-actions { flex-direction: column; }
  .product-cta-actions .btn { width: 100%; }
}
