/* ===== 产品介绍页样式 ===== */

/* 页面头部 */
.page-header {
  padding: 64px 0 32px;
  background: linear-gradient(135deg, #f5f8ff 0%, #eaf0ff 100%);
  text-align: center;
}

.page-title {
  font-size: 36px;
  font-weight: 800;
  color: var(--text-1);
  margin-bottom: 12px;
}

.page-subtitle {
  font-size: 16px;
  color: var(--text-2);
}

/* Tab 切换 */
.tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0;
}

.tab {
  padding: 12px 24px;
  font-size: 15px;
  color: var(--text-2);
  background: transparent;
  border: none;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
  font-weight: 500;
  font-family: inherit;
}

.tab:hover {
  color: var(--primary);
}

.tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
  animation: fadeIn 0.3s;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* 产品 Hero */
.product-hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 32px 0 64px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 64px;
}

.product-hero-content h2 {
  font-size: 36px;
  font-weight: 800;
  color: var(--text-1);
  margin: 16px 0 16px;
}

.product-hero-desc {
  font-size: 16px;
  color: var(--text-2);
  line-height: 1.8;
  margin-bottom: 24px;
}

.product-hero-visual {
  display: flex;
  justify-content: center;
}

.phone-mockup.large {
  width: 260px;
  height: 520px;
  border-radius: 32px;
  border-width: 8px;
}

/* 区块 */
.block {
  margin-bottom: 64px;
}

.block-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 8px;
  text-align: center;
}

.block-subtitle {
  font-size: 14px;
  color: var(--text-3);
  text-align: center;
  margin-bottom: 32px;
}

/* 功能区块卡片 */
.feature-block {
  padding: 24px;
  text-align: left;
}

.feature-block-icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.feature-block h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-1);
}

.feature-block p {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.7;
}

/* 使用场景 */
.scenario-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.scenario-item {
  padding: 24px;
  background: var(--bg-soft);
  border-radius: var(--radius-md);
}

.scenario-num {
  font-size: 32px;
  font-weight: 800;
  color: var(--primary);
  opacity: 0.3;
  line-height: 1;
  margin-bottom: 12px;
}

.scenario-item h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-1);
}

.scenario-item p {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.7;
}

/* 模板网格 */
.template-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 16px;
}

.template-item {
  padding: 20px 12px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-align: center;
  font-size: 14px;
  color: var(--text-2);
  transition: all 0.2s;
}

.template-item:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.template-icon {
  display: block;
  font-size: 28px;
  margin-bottom: 8px;
}

/* 截图轮播 */
.screenshot-slider {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--bg-soft);
  padding: 24px 0;
}

.screenshot-track {
  display: flex;
  transition: transform 0.4s ease;
  gap: 16px;
  padding: 0 48px;
}

.screenshot-item {
  flex: 0 0 calc(25% - 12px);
  text-align: center;
}

.screenshot-item img {
  width: 100%;
  max-width: 200px;
  margin: 0 auto;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow-md);
  font-size: 24px;
  color: var(--text-2);
  cursor: pointer;
  border: none;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.slider-btn:hover {
  background: var(--primary);
  color: #fff;
}

.slider-prev {
  left: 12px;
}

.slider-next {
  right: 12px;
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-4);
  cursor: pointer;
  transition: all 0.2s;
}

.slider-dot.active {
  background: var(--primary);
  width: 24px;
  border-radius: 4px;
}

/* 响应式 */
@media (max-width: 1024px) {
  .product-hero {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 32px;
  }
  .scenario-list {
    grid-template-columns: 1fr;
  }
  .template-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .screenshot-item {
    flex: 0 0 calc(33.33% - 12px);
  }
}

@media (max-width: 768px) {
  .page-title {
    font-size: 28px;
  }
  .product-hero-content h2 {
    font-size: 28px;
  }
  .tabs {
    flex-direction: column;
    align-items: stretch;
  }
  .tab {
    border-bottom: none;
    border-left: 2px solid transparent;
  }
  .tab.active {
    border-bottom: none;
    border-left-color: var(--primary);
  }
  .template-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .screenshot-item {
    flex: 0 0 calc(50% - 8px);
  }
  .phone-mockup.large {
    width: 200px;
    height: 400px;
  }
}
