/* ════════════════════════════════════════════════════════════════
   产品展示增强样式 - AdsBom 前台优化
   ════════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────────────── */
/* 产品卡片增强 */
/* ─────────────────────────────────────────────────────────────── */

.product-showcase-card {
  position: relative;
  overflow: hidden;
  background: var(--fp-surface-strong);
  border: 1px solid var(--fp-line);
  border-radius: 20px;
  transition: all 280ms cubic-bezier(0.16, 1, 0.3, 1);
}

.product-showcase-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 32px 64px rgba(23, 101, 58, 0.16);
}

.product-showcase-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(228, 242, 232, 0.4));
  pointer-events: none;
  opacity: 0;
  transition: opacity 280ms ease;
}

.product-showcase-card:hover::before {
  opacity: 1;
}

.product-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 24px 24px 0;
  gap: 16px;
}

.product-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--fp-brand-soft);
  color: var(--fp-brand);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  flex-shrink: 0;
}

.product-logo-container {
  position: relative;
  width: 96px;
  height: 96px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--fp-brand-soft) 0%, rgba(228, 242, 232, 0.6) 100%);
  border: 2px solid var(--fp-line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 12px 24px rgba(23, 101, 58, 0.12);
}

.product-logo-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
}

.product-info {
  flex: 1;
  padding: 24px;
}

.product-title {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.3;
  color: var(--fp-text);
}

.product-meta {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.product-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--fp-muted);
}

.product-desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--fp-muted);
}

.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  background: var(--fp-brand-soft);
  color: var(--fp-brand);
  border-radius: 14px;
  font-size: 12px;
  font-weight: 600;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px 24px;
  gap: 12px;
}

.product-stats {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.stat-value {
  font-size: 16px;
  font-weight: 900;
  color: var(--fp-brand);
}

.stat-label {
  font-size: 11px;
  color: var(--fp-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ─────────────────────────────────────────────────────────────── */
/* 详情页增强 */
/* ─────────────────────────────────────────────────────────────── */

.app-detail-hero {
  background: linear-gradient(135deg, var(--fp-brand-soft) 0%, var(--fp-soft) 100%);
  border-radius: 24px;
  overflow: hidden;
}

.app-detail-header {
  padding: 32px;
  display: flex;
  gap: 28px;
  align-items: flex-start;
}

.app-detail-logo-large {
  width: 128px;
  height: 128px;
  flex-shrink: 0;
  border-radius: 24px;
  background: var(--fp-surface-strong);
  border: 2px solid var(--fp-line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 16px 32px rgba(23, 101, 58, 0.18);
}

.app-detail-logo-large img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 16px;
}

.app-detail-content {
  flex: 1;
}

.app-detail-title {
  margin: 0 0 12px;
  font-size: 32px;
  font-weight: 900;
  line-height: 1.2;
  color: var(--fp-text);
}

.app-detail-category,
.app-detail-rating {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-right: 16px;
  font-size: 14px;
  color: var(--fp-muted);
}

.app-detail-rating .stars {
  color: #f59e0b;
  font-size: 13px;
}

.app-detail-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.btn-action {
  padding: 14px 24px;
  border-radius: 999px;
  border: none;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all 200ms ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-action.primary {
  background: linear-gradient(135deg, var(--fp-brand) 0%, var(--fp-brand-strong) 100%);
  color: white;
  box-shadow: 0 12px 24px rgba(23, 101, 58, 0.24);
}

.btn-action.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(23, 101, 58, 0.32);
}

.btn-action.secondary {
  background: var(--fp-surface);
  color: var(--fp-text);
  border: 2px solid var(--fp-line);
}

.btn-action.secondary:hover {
  background: var(--fp-soft);
  border-color: var(--fp-line-strong);
}

/* ─────────────────────────────────────────────────────────────── */
/* 功能卡片组合 */
/* ─────────────────────────────────────────────────────────────── */

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.feature-card {
  padding: 20px;
  background: var(--fp-soft);
  border: 1px solid var(--fp-line);
  border-radius: 16px;
  transition: all 200ms ease;
}

.feature-card:hover {
  background: color-mix(in srgb, var(--fp-soft) 70%, white);
  transform: translateY(-2px);
}

.feature-card-icon {
  font-size: 28px;
  margin-bottom: 12px;
}

.feature-card-title {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--fp-text);
}

.feature-card-desc {
  margin: 0;
  font-size: 13px;
  color: var(--fp-muted);
  line-height: 1.6;
}

/* ─────────────────────────────────────────────────────────────── */
/* 评价和反馈样式 */
/* ─────────────────────────────────────────────────────────────── */

.review-summary {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 24px;
  padding: 24px;
  background: var(--fp-soft);
  border-radius: 16px;
  margin-bottom: 20px;
}

.review-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.review-score-number {
  font-size: 48px;
  font-weight: 900;
  color: #f59e0b;
  line-height: 1;
}

.review-score-stars {
  font-size: 18px;
  color: #f59e0b;
  margin: 8px 0;
  letter-spacing: 2px;
}

.review-score-text {
  font-size: 13px;
  color: var(--fp-muted);
  text-align: center;
}

.review-distrib {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.rating-bar {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rating-bar-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--fp-text);
  min-width: 64px;
  text-align: right;
}

.rating-bar-fill {
  flex: 1;
  height: 8px;
  background: var(--fp-line);
  border-radius: 999px;
  overflow: hidden;
}

.rating-bar-progress {
  height: 100%;
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
  border-radius: 999px;
  transition: width 400ms ease;
}

/* ─────────────────────────────────────────────────────────────── */
/* 响应式设计 */
/* ─────────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
  .product-card-header {
    flex-direction: column;
    padding: 16px 16px 0;
  }

  .product-info {
    padding: 16px;
  }

  .app-detail-header {
    flex-direction: column;
    padding: 20px;
    gap: 16px;
  }

  .app-detail-logo-large {
    width: 100px;
    height: 100px;
  }

  .app-detail-actions {
    flex-direction: column;
  }

  .btn-action {
    width: 100%;
    justify-content: center;
  }

  .review-summary {
    grid-template-columns: 1fr;
  }

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

/* ─────────────────────────────────────────────────────────────── */
/* 暗色主题适配 */
/* ─────────────────────────────────────────────────────────────── */

body.front-polish.theme-hello .product-showcase-card {
  background: var(--fp-surface-strong);
  border-color: var(--fp-line);
}

body.front-polish.theme-hello .product-logo-container {
  background: linear-gradient(135deg, var(--fp-brand-soft) 0%, rgba(120, 169, 255, 0.12) 100%);
  border-color: var(--fp-line-strong);
}

body.front-polish.theme-hello .app-detail-hero {
  background: linear-gradient(135deg, color-mix(in srgb, var(--fp-brand-soft) 40%, transparent), var(--fp-soft));
}
