/* =====================================================
   琛光无人机官网 | product.css
   产品详情页 + 产品列表页样式
   ===================================================== */

/* =====================================================
   产品 Hero
   ===================================================== */
.product-hero {
  padding: var(--s-16) 0;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border-card);
  position: relative;
  overflow: hidden;
}

.product-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(240, 165, 0, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(240, 165, 0, 0.02) 1px, transparent 1px);
  background-size: 32px 32px;
}

.product-hero-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-12);
  align-items: center;
  position: relative;
}

@media (max-width: 900px) {
  .product-hero-layout {
    grid-template-columns: 1fr;
    gap: var(--s-8);
  }
}

/* ── 产品图集 ── */
.product-gallery {
  position: relative;
}

.gallery-main {
  aspect-ratio: 4/3;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg), var(--accent-glow);
  background: var(--bg);
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-thumbs {
  display: flex;
  gap: var(--s-3);
  margin-top: var(--s-4);
}

.gallery-thumb {
  flex: 1;
  aspect-ratio: 4/3;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 2px solid var(--border-card);
  cursor: pointer;
  transition: border-color var(--ease), box-shadow var(--ease);
  background: var(--bg);
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--ease);
}

.gallery-thumb:hover,
.gallery-thumb.active {
  border-color: var(--accent);
  box-shadow: 0 0 12px rgba(240, 165, 0, 0.2);
}

.gallery-thumb:hover img {
  transform: scale(1.05);
}

/* ── 产品信息 ── */
.product-hero-info {
  display: flex;
  flex-direction: column;
  gap: var(--s-5);
}

.product-series-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.product-series-tag::before {
  content: '';
  width: 16px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  box-shadow: 0 0 6px rgba(240, 165, 0, 0.5);
}

.product-hero-name {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  color: var(--text);
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
  line-height: 1;
}

.product-hero-slogan {
  font-size: var(--text-xl);
  color: var(--text-2);
  font-weight: 400;
}

.product-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
}

.product-status-label {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-size: var(--text-sm);
  font-weight: 500;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-available .status-dot {
  background: var(--success);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
  animation: statusPulse 2s ease-in-out infinite;
}

.status-available {
  color: var(--success);
}

@keyframes statusPulse {
  0%, 100% { box-shadow: 0 0 4px rgba(16, 185, 129, 0.4); }
  50%       { box-shadow: 0 0 12px rgba(16, 185, 129, 0.7); }
}

.product-hero-actions {
  display: flex;
  gap: var(--s-3);
  flex-wrap: wrap;
  padding-top: var(--s-2);
}

/* =====================================================
   产品特点卡片
   ===================================================== */
.product-features {
  padding-block: var(--s-16);
}

.product-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
}

@media (max-width: 768px) {
  .product-features-grid {
    grid-template-columns: 1fr;
  }
}

.product-feature-card {
  padding: var(--s-6);
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--r-xl);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  transition: all var(--ease);
}

.product-feature-card:hover {
  border-color: var(--border);
  box-shadow: var(--shadow-md), var(--accent-glow);
  transform: translateY(-3px);
}

.pfcard-icon {
  width: 48px;
  height: 48px;
  background: var(--accent-dim);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.pfcard-title {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text);
}

.pfcard-desc {
  font-size: var(--text-sm);
  color: var(--text-2);
  line-height: var(--leading-loose);
}

/* =====================================================
   规格参数表
   ===================================================== */
.product-specs {
  padding-block: var(--s-16);
  background: var(--bg-2);
}

.specs-table-wrap {
  overflow-x: auto;
  border-radius: var(--r-xl);
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-card);
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
  background: var(--bg-card);
}

.specs-table thead th {
  padding: var(--s-4) var(--s-5);
  background: var(--bg-2);
  color: var(--text-3);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: left;
  border-bottom: 1px solid var(--border-card);
}

.specs-table tbody tr {
  border-bottom: 1px solid var(--border-card);
  transition: background var(--ease);
}

.specs-table tbody tr:last-child {
  border-bottom: none;
}

.specs-table tbody tr:hover {
  background: var(--bg-2);
}

.specs-table td {
  padding: var(--s-4) var(--s-5);
  vertical-align: middle;
}

.spec-name {
  color: var(--text-2);
  font-weight: 500;
  white-space: nowrap;
}

.spec-value {
  color: var(--text);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
}

.spec-note {
  color: var(--text-3);
  font-size: var(--text-xs);
}

/* 规格表占位提示 */
.specs-placeholder {
  text-align: center;
  padding: var(--s-12);
  color: var(--text-3);
  font-size: var(--text-sm);
}

/* =====================================================
   演示视频区
   ===================================================== */
.product-video {
  padding-block: var(--s-16);
}

.video-section-inner {
  max-width: 860px;
  margin-inline: auto;
}

.video-section-inner .video-embed-wrap {
  aspect-ratio: 16/9;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  background: var(--bg-2);
  position: relative;
}

.video-section-inner .video-embed-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* =====================================================
   开源资源区
   ===================================================== */
.product-opensource {
  padding-block: var(--s-16);
  background: var(--bg-2);
}

.os-resources-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
}

@media (max-width: 768px) {
  .os-resources-grid {
    grid-template-columns: 1fr;
  }
}

.os-resource-card {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  padding: var(--s-6);
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--r-xl);
  transition: all var(--ease);
  text-decoration: none;
}

.os-resource-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md), var(--accent-glow);
}

.os-resource-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-lg);
  font-size: 1.4rem;
}

.os-resource-card h4 {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text);
}

.os-resource-card p {
  font-size: var(--text-sm);
  color: var(--text-2);
  line-height: var(--leading-normal);
  flex: 1;
}

.os-resource-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--accent);
  transition: gap var(--ease);
}

.os-resource-card:hover .os-resource-btn {
  gap: var(--s-3);
}

/* =====================================================
   产品文档 / QQ群 引导区
   ===================================================== */
.product-cta-bar {
  padding-block: var(--s-12);
}

.cta-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-8);
  padding: var(--s-8);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  box-shadow: var(--shadow-card), var(--accent-glow);
  flex-wrap: wrap;
}

.cta-bar-text h3 {
  font-size: var(--text-xl);
  color: var(--text);
  margin-bottom: var(--s-2);
}

.cta-bar-text p {
  font-size: var(--text-sm);
  color: var(--text-2);
}

.cta-bar-actions {
  display: flex;
  gap: var(--s-3);
  flex-shrink: 0;
  flex-wrap: wrap;
}

/* =====================================================
   即将推出 - Coming Soon 页
   ===================================================== */
.coming-soon-hero {
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.coming-soon-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(240, 165, 0, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(240, 165, 0, 0.025) 1px, transparent 1px);
  background-size: 40px 40px;
}

.coming-soon-content {
  position: relative;
  max-width: 560px;
  padding: var(--s-8);
}

.coming-soon-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--warning);
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.25);
  padding: var(--s-1) var(--s-4);
  border-radius: var(--r-full);
  margin-bottom: var(--s-6);
}

.coming-soon-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  color: var(--text);
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
  margin-bottom: var(--s-4);
}

.coming-soon-desc {
  font-size: var(--text-lg);
  color: var(--text-2);
  line-height: var(--leading-loose);
  margin-bottom: var(--s-8);
}

.coming-soon-specs {
  display: flex;
  justify-content: center;
  gap: var(--s-6);
  margin-bottom: var(--s-8);
  flex-wrap: wrap;
}

.cs-spec {
  text-align: center;
}

.cs-spec-value {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--accent);
  font-family: var(--font-mono);
  display: block;
  text-shadow: var(--accent-glow);
}

.cs-spec-label {
  font-size: var(--text-xs);
  color: var(--text-3);
  display: block;
  margin-top: var(--s-1);
}
