/* ===== 首页专属样式 ===== */

/* Hero 区域 */
.hero {
  padding: 130px 0 70px;
  position: relative;
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content {
  max-width: 560px;
  opacity: 0;
  animation: heroContentIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
}

@keyframes heroContentIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 7px 16px;
  background-color: var(--accent-light);
  border: 1px solid var(--accent-border);
  border-radius: 100px;
  font-size: 13px;
  color: var(--accent-primary);
  margin-bottom: 22px;
  font-weight: 500;
}

.hero-title {
  font-size: 52px;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 22px;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.gradient-text {
  background-image: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  font-size: 17px;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.hero-cta {
  display: flex;
  gap: 14px;
  margin-bottom: 44px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 36px;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.stat-number {
  font-size: 28px;
  font-weight: 700;
  background-image: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  line-height: 1.1;
}

.stat-label {
  font-size: 13px;
  color: var(--text-tertiary);
}

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

/* Hero 视觉区 - 简洁屏幕示意 */
.hero-visual {
  position: relative;
  opacity: 0;
  animation: heroVisualIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.25s forwards;
}

@keyframes heroVisualIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.hero-illustration {
  position: relative;
  width: 100%;
  height: 420px;
}

.screen-mockup {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 380px;
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(59, 130, 246, 0.15);
  overflow: hidden;
}

.screen-header {
  display: flex;
  gap: 6px;
  padding: 10px 14px;
  background-color: #f8fafc;
  border-bottom: 1px solid var(--border-light);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dot.red {
  background-color: #f87171;
}

.dot.yellow {
  background-color: #fbbf24;
}

.dot.green {
  background-color: #4ade80;
}

.screen-body {
  padding: 18px;
}

.screen-nav {
  height: 14px;
  background-image: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  border-radius: 6px;
  margin-bottom: 16px;
  opacity: 0.85;
  width: 60%;
}

.screen-hero {
  height: 80px;
  background-image: linear-gradient(135deg, #dbeafe, #e0e7ff);
  border-radius: 10px;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}

.screen-hero::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 12px;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 6px;
}

.screen-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.screen-card {
  height: 60px;
  background-color: var(--bg-soft);
  border-radius: 8px;
  border: 1px solid var(--border-light);
  transition: border-color 0.2s ease;
}

.float-badge {
  position: absolute;
  padding: 8px 14px;
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  box-shadow: var(--shadow-md);
  animation: floatBadge 5s ease-in-out infinite;
  white-space: nowrap;
}

.badge-1 {
  top: 10%;
  left: 0;
  animation-delay: 0s;
}

.badge-2 {
  bottom: 20%;
  left: 5%;
  animation-delay: 1s;
}

.badge-3 {
  top: 25%;
  right: 5%;
  animation-delay: 2s;
}

@keyframes floatBadge {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* 核心卖点 */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  padding: 30px;
  position: relative;
}

.feature-icon {
  font-size: 40px;
  margin-bottom: 16px;
  display: block;
  line-height: 1;
}

.feature-card h3 {
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 10px;
}

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

.feature-tag {
  display: inline-block;
  padding: 4px 12px;
  background-color: var(--accent-light);
  border: 1px solid var(--accent-border);
  border-radius: 100px;
  font-size: 12px;
  color: var(--accent-primary);
  font-weight: 500;
}

/* 价格预览 */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}

.pricing-card {
  padding: 34px 28px;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
}

.pricing-card-popular {
  border-color: var(--accent-border);
  box-shadow: 0 0 0 2px var(--accent-primary), var(--shadow-md);
  transform: scale(1.03);
}

.pricing-badge {
  display: inline-block;
  padding: 5px 12px;
  background-color: var(--bg-soft);
  border: 1px solid var(--border-light);
  border-radius: 100px;
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 14px;
  font-weight: 500;
}

.pricing-badge.popular {
  background-image: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
  color: #ffffff;
  border: none;
}

.pricing-emoji {
  font-size: 44px;
  margin-bottom: 8px;
  line-height: 1;
}

.pricing-name {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
}

.pricing-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  margin-bottom: 24px;
  gap: 2px;
}

.price-symbol {
  font-size: 18px;
  color: var(--text-secondary);
}

.price-number {
  font-size: 48px;
  font-weight: 700;
  background-image: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  line-height: 1;
}

.price-unit {
  font-size: 14px;
  color: var(--text-tertiary);
}

.pricing-features {
  list-style: none;
  margin-bottom: 24px;
  text-align: left;
  flex: 1;
}

.pricing-features li {
  padding: 9px 0;
  font-size: 14px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 10px;
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-features .check {
  color: var(--accent-primary);
  font-size: 16px;
  font-weight: 600;
  flex-shrink: 0;
}

.pricing-features .disabled {
  color: var(--text-tertiary);
}

.pricing-features .cross {
  color: var(--text-tertiary);
  font-size: 14px;
  flex-shrink: 0;
}

.pricing-btn {
  width: 100%;
}

.pricing-footer {
  text-align: center;
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.pricing-footer p {
  color: var(--text-tertiary);
  font-size: 14px;
  margin: 0;
}

/* 流程预览 */
.process-steps-mini {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.process-step-mini {
  padding: 22px 18px;
  text-align: center;
  width: 140px;
  flex-shrink: 0;
}

.step-num {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-primary);
  margin-bottom: 8px;
}

.step-icon {
  font-size: 28px;
  margin-bottom: 8px;
  display: block;
  line-height: 1;
}

.process-step-mini h4 {
  font-size: 14px;
  font-weight: 600;
}

.step-arrow {
  color: var(--text-tertiary);
  font-size: 18px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

/* 客户评价 */
.testimonial-carousel {
  max-width: 680px;
  margin: 0 auto;
  position: relative;
}

.testimonial-track {
  position: relative;
  min-height: 260px;
}

.testimonial-card {
  padding: 36px 40px;
  text-align: center;
  background-color: #ffffff;
}

.testimonial-avatar {
  font-size: 48px;
  margin-bottom: 12px;
  line-height: 1;
}

.testimonial-stars {
  font-size: 16px;
  margin-bottom: 18px;
  color: #fbbf24;
  letter-spacing: 3px;
}

.testimonial-text {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.testimonial-author {
  font-size: 14px;
  color: var(--text-primary);
  font-weight: 500;
}

.testimonial-author span {
  color: var(--text-tertiary);
  font-weight: 400;
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 20px;
}

.carousel-prev,
.carousel-next {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background-color 0.2s var(--ease-standard),
              color 0.2s var(--ease-standard),
              border-color 0.2s var(--ease-standard),
              transform 0.2s var(--ease-out);
}

.carousel-prev:hover,
.carousel-next:hover {
  background-color: var(--accent-primary);
  color: #ffffff;
  border-color: var(--accent-primary);
  transform: translateY(-1px);
}

.carousel-prev:active,
.carousel-next:active {
  transform: translateY(0);
}

.carousel-dots {
  display: flex;
  gap: 6px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--border-medium);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background-color 0.25s ease,
              width 0.25s var(--ease-out),
              border-radius 0.25s ease;
}

.carousel-dot.active {
  background-color: var(--accent-primary);
  width: 20px;
  border-radius: 100px;
}

.cta-card {
  padding: 50px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background-image: linear-gradient(135deg, #eff6ff 0%, #eef2ff 100%);
  border-color: #dbeafe;
}

.cta-emoji {
  font-size: 52px;
  margin-bottom: 16px;
  line-height: 1;
}

.cta-card h2 {
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.cta-card > p {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.cta-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.cta-note {
  font-size: 13px;
  color: var(--text-tertiary);
}

/* 响应式 */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-visual {
    order: -1;
  }

  .hero-illustration {
    height: 320px;
  }

  .screen-mockup {
    width: 320px;
  }

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

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .pricing-card-popular {
    transform: none;
  }

  .process-steps-mini {
    gap: 10px;
  }

  .process-step-mini {
    width: 120px;
    padding: 18px 14px;
  }
}

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

  .hero-title {
    font-size: 36px;
  }

  .hero-subtitle {
    font-size: 15px;
  }

  .hero-stats {
    gap: 24px;
  }

  .stat-number {
    font-size: 22px;
  }

  .hero-illustration {
    height: 260px;
  }

  .screen-mockup {
    width: 280px;
  }

  .float-badge {
    font-size: 12px;
    padding: 6px 10px;
  }

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

  .feature-card {
    padding: 24px;
  }

  .process-steps-mini {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .process-step-mini {
    width: 100%;
    max-width: 280px;
  }

  .step-arrow {
    transform: rotate(90deg);
  }

  .testimonial-card {
    padding: 24px 20px;
  }

  .testimonial-text {
    font-size: 14px;
  }

  .cta-card {
    padding: 36px 24px;
  }

  .cta-card h2 {
    font-size: 22px;
  }

  .cta-emoji {
    font-size: 40px;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .cta-buttons .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-content,
  .hero-visual,
  .float-badge,
  body::before,
  body::after,
  .bg-orb-3 {
    animation: none !important;
    opacity: 1 !important;
  }
}
