/* === AMT 产品介绍页专属样式 === */

/* === 滚动入场动画 === */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-on-scroll.delay-1 { transition-delay: 0.1s; }
.animate-on-scroll.delay-2 { transition-delay: 0.2s; }
.animate-on-scroll.delay-3 { transition-delay: 0.3s; }

/* === 区块标题 === */
.section-header {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.section-header h2 {
  color: var(--color-primary-dark);
}

.section-header .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

/* === 次背景区块 === */
.section-alt {
  background: var(--color-bg-alt);
}

/* === Hero === */
.hero {
  padding: var(--space-xl) 0 var(--space-lg);
  background: linear-gradient(180deg, var(--color-bg) 0%, #EEF5DC 60%, var(--color-surface) 100%);
  text-align: center;
  border-bottom: 1px solid var(--color-border);
}

.hero-inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
}

.hero-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-md);
  flex: 1;
}

.hero-logo {
  width: 720px;
  height: 720px;
  max-width: 45%;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 8px 24px rgba(93, 185, 150, 0.2));
  animation: hero-logo-float 4s ease-in-out infinite;
}

@keyframes hero-logo-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--color-primary);
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--color-primary-dark);
  font-weight: 500;
  backdrop-filter: blur(4px);
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-primary);
  animation: badge-pulse 2s ease-in-out infinite;
}

@keyframes badge-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.3); }
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--color-primary-dark);
  line-height: 1.15;
  width: 100%;
}

.hero-subtitle {
  font-size: 1.2rem;
  width: 100%;
  color: var(--color-text);
  line-height: 1.6;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  margin: var(--space-sm) 0;
}

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

.stat-number {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--color-primary-dark);
  line-height: 1;
  letter-spacing: -0.02em;
}

.stat-suffix {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-primary);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  white-space: nowrap;
}

.stat-divider {
  width: 1px;
  height: 44px;
  background: var(--color-border);
}

.hero-actions {
  margin-top: var(--space-sm);
}

.btn-hero {
  padding: 14px 36px;
  font-size: 1.05rem;
  box-shadow: 0 4px 14px rgba(93, 185, 150, 0.35);
}

.btn-hero:hover {
  box-shadow: 0 6px 20px rgba(93, 185, 150, 0.45);
}

/* === 卡片网格列数 === */
.card-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.card-grid-5 {
  grid-template-columns: repeat(5, 1fr);
}

.card-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

/* === 卡片图标 === */
.card-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-sm);
  color: var(--color-primary-dark);
  transition: all var(--transition-base);
}

.card-icon-wrap svg {
  width: 24px;
  height: 24px;
}

.card:hover .card-icon-wrap {
  background: var(--color-primary);
  color: var(--color-white);
  transform: scale(1.05);
}

.card-icon-error {
  background: rgba(212, 119, 106, 0.12);
  color: var(--color-error);
}

.card:hover .card-icon-error {
  background: var(--color-error);
  color: var(--color-white);
}

/* === 特性卡片 === */
.feature-card h3,
.audience-card h3 {
  font-size: 1.15rem;
  color: var(--color-text);
}

.feature-card p,
.audience-card p,
.pain-card p {
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 0;
}

.pain-card h3 {
  font-size: 1.1rem;
  color: var(--color-text);
}

/* === 模块卡片（带编号） === */
.module-card {
  position: relative;
  overflow: hidden;
  padding: var(--space-md);
}

.module-card::before {
  content: attr(data-num);
  position: absolute;
  top: -8px;
  right: 12px;
  font-family: var(--font-display);
  font-size: 4.5rem;
  font-weight: 800;
  color: var(--color-surface);
  opacity: 0.6;
  line-height: 1;
  z-index: 0;
  transition: all var(--transition-base);
}

.module-card:hover::before {
  color: var(--color-primary);
  opacity: 0.15;
}

.module-body {
  position: relative;
  z-index: 1;
}

.module-card h3 {
  font-size: 1.15rem;
  color: var(--color-text);
}

.module-card p {
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 0;
}

/* === 工作流程 === */
.workflow {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  margin: var(--space-md) 0;
}

.workflow-step {
  flex: 1;
  max-width: 280px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  text-align: center;
  position: relative;
  transition: all var(--transition-base);
}

.workflow-step:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.workflow-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-sm);
  border-radius: 50%;
  background: var(--color-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary-dark);
}

.workflow-icon svg {
  width: 28px;
  height: 28px;
}

.workflow-num {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-white);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.workflow-step h3 {
  font-size: 1.15rem;
  margin-bottom: var(--space-xs);
}

.workflow-step p {
  font-size: 0.92rem;
  margin-bottom: 0;
}

.workflow-arrow {
  display: flex;
  align-items: center;
  padding: 0 var(--space-sm);
  color: var(--color-primary);
  opacity: 0.5;
}

.workflow-arrow svg {
  width: 32px;
  height: 32px;
}

/* === 效率对比 === */
.compare-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: start;
}

.compare-table-wrap {
  overflow-x: auto;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.compare-table thead {
  background: var(--color-primary-dark);
}

.compare-table th {
  padding: 14px 16px;
  text-align: left;
  color: var(--color-white);
  font-weight: 600;
  font-size: 0.9rem;
}

.compare-table th:nth-child(2) {
  text-align: center;
}

.compare-table th:nth-child(3) {
  text-align: center;
}

.compare-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
}

.compare-table td:nth-child(2),
.compare-table td:nth-child(3) {
  text-align: center;
  font-family: var(--font-mono);
  font-weight: 600;
}

.cell-trad {
  color: var(--color-error);
}

.cell-amt {
  color: var(--color-primary-dark);
}

.compare-table tbody tr:hover {
  background: var(--color-bg-alt);
}

.compare-total {
  background: var(--color-surface);
  font-weight: 700;
}

.compare-total td {
  border-bottom: none;
  padding-top: 14px;
  padding-bottom: 14px;
}

.compare-chart-wrap {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  box-shadow: var(--shadow-sm);
}

.chart-container {
  width: 100%;
  height: 360px;
}

/* === 技术亮点 === */
.tech-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  margin: 0 auto;
}

.tech-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  transition: all var(--transition-base);
}

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

.tech-check {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tech-check svg {
  width: 18px;
  height: 18px;
}

.tech-content h4 {
  font-size: 1.05rem;
  color: var(--color-text);
  margin-bottom: 4px;
}

.tech-content p {
  font-size: 0.9rem;
  margin-bottom: 0;
  line-height: 1.5;
}

/* === 底部 CTA === */
.cta-section {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
  text-align: center;
  padding: var(--space-xl) 0;
}

.cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}

.cta-title {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--color-white);
  letter-spacing: -0.02em;
}

.cta-subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
  width: 100%;
  margin-bottom: var(--space-sm);
}

.cta-section .btn-hero {
  background: var(--color-white);
  color: var(--color-primary-dark);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.cta-section .btn-hero:hover {
  background: var(--color-surface);
  color: var(--color-primary-dark);
}

/* === 响应式 === */
@media (max-width: 1024px) {
  .card-grid-5 {
    grid-template-columns: repeat(3, 1fr);
  }

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

@media (max-width: 768px) {
  .hero {
    padding: 48px 0 32px;
  }

  .hero-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .hero-text {
    align-items: center;
  }

  .hero-logo {
    width: 140px;
    height: 140px;
    order: -1;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-stats {
    flex-direction: column;
    gap: var(--space-md);
  }

  .stat-divider {
    width: 60px;
    height: 1px;
  }

  .stat-number {
    font-size: 2rem;
  }

  .card-grid-3,
  .card-grid-4,
  .card-grid-5 {
    grid-template-columns: 1fr;
  }

  .workflow {
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
  }

  .workflow-step {
    width: 100%;
    max-width: 320px;
  }

  .workflow-arrow {
    transform: rotate(90deg);
    padding: 0;
  }

  .compare-layout {
    grid-template-columns: 1fr;
  }

  .chart-container {
    height: 280px;
  }

  .tech-list {
    grid-template-columns: 1fr;
  }

  .cta-title {
    font-size: 1.6rem;
  }

  .cta-subtitle {
    font-size: 0.95rem;
  }
}
