/* ============================================================
   YCloud - 产品详情页通用样式
   ============================================================ */

/* 产品 Hero */
.product-hero {
  position: relative;
  min-height: 55vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  background: linear-gradient(180deg, #f0f6ff 0%, #ffffff 100%);
  overflow: hidden;
}

.product-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 102, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 102, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 40%, black 30%, transparent 70%);
}

.product-hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.product-hero-content {
  max-width: 560px;
}

.product-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  background: rgba(0, 102, 255, 0.06);
  border: 1px solid rgba(0, 102, 255, 0.12);
  border-radius: 100px;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-hero-title {
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -1.2px;
  margin-bottom: 16px;
  color: var(--text-primary);
}

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

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

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

.product-icon-large {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 180px;
  height: 180px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 32px;
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition);
}

.product-icon-large svg {
  width: 80px;
  height: 80px;
}

/* 产品详情内容区 */
.product-section {
  padding: 80px 0;
}

.product-section.alt {
  background: var(--bg-secondary);
}

.product-section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 50px;
}

.product-section-title {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.product-section-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* 特性网格 */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  padding: 32px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.feature-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 16px;
  background: rgba(0, 102, 255, 0.05);
  border-radius: var(--radius);
  color: var(--accent);
}

.feature-card h4 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

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

/* 优势列表 */
.advantages-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.advantage-item {
  display: flex;
  gap: 16px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  transition: all var(--transition);
}

.advantage-item:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow);
}

.advantage-item-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  color: #16a34a;
}

.advantage-item-icon svg {
  width: 24px;
  height: 24px;
}

.advantage-item-content h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.advantage-item-content p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* 场景卡片 */
.scenarios-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.scenario-card {
  padding: 28px 20px;
  text-align: center;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  transition: all var(--transition);
}

.scenario-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--border-hover);
}

.scenario-card .scenario-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 14px;
  color: var(--accent);
}

.scenario-card h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
}

.scenario-card p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* spec 表格 */
.spec-table-wrap {
  max-width: 900px;
  margin: 0 auto;
  overflow-x: auto;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  overflow: hidden;
}

.spec-table th,
.spec-table td {
  padding: 14px 20px;
  text-align: left;
  font-size: 14px;
}

.spec-table th {
  background: var(--bg-secondary);
  font-weight: 700;
  color: var(--text-primary);
  border-bottom: 2px solid var(--border-color);
}

.spec-table td {
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-color);
}

.spec-table tr:last-child td {
  border-bottom: none;
}

.spec-table tr:hover td {
  background: rgba(0, 102, 255, 0.02);
}

/* FAQ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  color: var(--text-primary);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background var(--transition);
}

.faq-question:hover {
  background: var(--bg-secondary);
}

.faq-answer {
  display: none;
  padding: 0 24px 20px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.faq-item.open .faq-answer {
  display: block;
}

.faq-item.open .faq-question {
  color: var(--accent);
}

/* CTA 条 */
.product-cta {
  background: var(--accent-gradient);
  padding: 60px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.product-cta::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.product-cta .container {
  position: relative;
  z-index: 1;
}

.product-cta h2 {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
}

.product-cta p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 15px;
  margin-bottom: 24px;
}

.product-cta .btn-primary {
  background: #fff;
  color: var(--accent);
}

/* 响应式 */
@media (max-width: 1024px) {
  .product-hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .product-hero-content {
    max-width: 100%;
    margin: 0 auto;
  }
  .product-hero-actions {
    justify-content: center;
  }
  .product-hero-visual {
    order: -1;
  }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .scenarios-grid { grid-template-columns: repeat(2, 1fr); }
  .advantages-list { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .product-hero { min-height: auto; padding: calc(var(--header-height) + 30px) 0 50px; }
  .product-icon-large { width: 130px; height: 130px; border-radius: 24px; }
  .product-icon-large svg { width: 60px; height: 60px; }
  .features-grid { grid-template-columns: 1fr; }
  .scenarios-grid { grid-template-columns: 1fr; }
  .product-section { padding: 50px 0; }
}

@media (max-width: 480px) {
  .product-hero-actions { flex-direction: column; }
  .product-hero-actions .btn { width: 100%; }
}
