/* 首页增强样式 — 洋铲工作室 */

/* —— Hero —— */
.home-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
  background: var(--surface-alt);
}

.home-hero .hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.home-hero .hero-bg::before {
  content: "";
  position: absolute;
  width: 680px;
  height: 680px;
  top: -180px;
  right: -120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(254, 232, 86, 0.45) 0%, transparent 70%);
}

.home-hero .hero-bg::after {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  bottom: -100px;
  left: -80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(221, 53, 110, 0.12) 0%, transparent 70%);
}

.home-hero .hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(221, 53, 110, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(221, 53, 110, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 20%, transparent 75%);
}

.hero-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  margin-bottom: 24px;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand);
  background: rgba(221, 53, 110, 0.08);
  border: 1px solid var(--border);
  border-radius: 100px;
}

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

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.home-hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.2;
  margin-bottom: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink) !important;
}

.home-hero .text-gradient {
  background: linear-gradient(135deg, var(--brand) 0%, #ff6b9d 50%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-lead {
  font-size: 18px;
  line-height: 1.75;
  color: var(--muted);
  max-width: 480px;
  margin-bottom: 32px;
}

.hero-lead strong {
  color: var(--brand);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 40px;
}

.hero-actions .btn {
  padding: 14px 28px !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  border-radius: 100px !important;
  margin-bottom: 0 !important;
  transition: transform 0.2s, box-shadow 0.2s !important;
}

.hero-actions .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -8px rgba(221, 53, 110, 0.45) !important;
}

.hero-actions .btn-demo {
  background: var(--brand) !important;
}

.hero-actions .btn-learn {
  background: var(--accent) !important;
  color: var(--ink) !important;
}

.hero-hint {
  font-size: 14px;
  color: var(--muted);
  margin: -8px 0 28px;
}

.hero-hint a {
  color: var(--brand);
  font-weight: 600;
}

.hero-hint a:hover {
  color: var(--brand-dark);
}

/* —— 个人免费 / 接入低代码 —— */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.audience-card {
  position: relative;
  padding: 36px 32px 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: transform 0.25s, box-shadow 0.25s;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.audience-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.audience-personal {
  border-top: 4px solid var(--brand);
}

.audience-enterprise {
  border-top: 4px solid #6366f1;
}

.audience-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 16px;
  background: rgba(221, 53, 110, 0.1);
  color: var(--brand);
}

.audience-enterprise .audience-tag {
  background: rgba(99, 102, 241, 0.1);
  color: #6366f1;
}

.audience-icon {
  font-size: 40px;
  margin-bottom: 12px;
}

.audience-card h3 {
  font-size: 24px;
  margin-bottom: 12px;
}

.audience-card > p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 18px;
}

.audience-list {
  padding: 0;
  margin: 0 0 24px;
  list-style: none;
  flex: 1;
}

.audience-list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  font-size: 14px;
  color: var(--ink);
}

.audience-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--brand);
  font-weight: 700;
}

.audience-enterprise .audience-list li::before {
  color: #6366f1;
}

.audience-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn-audience {
  display: inline-block;
  padding: 12px 22px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 100px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  text-align: center;
}

.btn-audience-primary {
  background: var(--brand);
  color: #fff !important;
}

.audience-enterprise .btn-audience-primary {
  background: #6366f1;
}

.btn-audience-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(221, 53, 110, 0.35);
  color: #fff !important;
}

.audience-enterprise .btn-audience-primary:hover {
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.35);
}

.btn-audience-ghost {
  background: transparent;
  color: #6366f1 !important;
  border: 2px solid rgba(99, 102, 241, 0.35);
}

.btn-audience-ghost:hover {
  background: rgba(99, 102, 241, 0.08);
  color: #6366f1 !important;
}

.cta-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.btn-cta-outline-light {
  display: inline-block;
  padding: 14px 28px;
  background: transparent;
  color: #fff !important;
  font-weight: 700;
  font-size: 16px;
  border-radius: 100px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: transform 0.2s, background 0.2s;
}

.btn-cta-outline-light:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
  color: #fff !important;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(140px, 1fr));
  gap: 20px 28px;
  align-items: start;
  justify-items: start;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  min-width: 0;
  width: 100%;
}

.hero-stat .num {
  display: block;
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.3;
  white-space: nowrap;
  text-align: left;
}

.hero-stat .label {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
  text-align: left;
  word-break: keep-all;
  max-width: 100%;
}

/* —— Hero 视觉 mockup —— */
.hero-visual {
  position: relative;
  z-index: 2;
  margin-top: 40px;
}

@media (min-width: 992px) {
  .hero-visual {
    margin-top: 0;
  }
}

.mockup-window {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  overflow: hidden;
  transform: perspective(1200px) rotateY(-4deg) rotateX(2deg);
  transition: transform 0.4s ease;
}

.mockup-window:hover {
  transform: perspective(1200px) rotateY(0deg) rotateX(0deg);
}

.mockup-titlebar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #f5f3f8;
  border-bottom: 1px solid var(--border);
}

.mockup-traffic {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

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

.mockup-dot.red { background: #ff5f57; }
.mockup-dot.yellow { background: #febc2e; }
.mockup-dot.green { background: #28c840; }

.mockup-title {
  margin-left: auto;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

.mockup-body {
  display: flex;
  min-height: 280px;
}

.mockup-sidebar {
  width: 72px;
  padding: 16px 12px;
  background: #faf8fc;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mockup-sidebar .block {
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(90deg, #eee 25%, #f5f5f5 50%, #eee 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

.mockup-sidebar .block.active {
  background: var(--brand);
  animation: none;
}

.mockup-canvas {
  flex: 1;
  padding: 20px;
}

.mockup-canvas .toolbar {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.mockup-canvas .chip {
  padding: 4px 12px;
  font-size: 11px;
  border-radius: 100px;
  background: rgba(221, 53, 110, 0.1);
  color: var(--brand);
  font-weight: 600;
}

.mockup-canvas .chip.alt {
  background: rgba(254, 232, 86, 0.5);
  color: #8a7200;
}

.mockup-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.mockup-card {
  padding: 14px;
  border-radius: 12px;
  border: 1px dashed var(--border);
  background: var(--surface-alt);
}

.mockup-card.wide {
  grid-column: 1 / -1;
}

.mockup-card .line {
  height: 8px;
  border-radius: 4px;
  background: #e8e6ef;
  margin-bottom: 8px;
}

.mockup-card .line.short { width: 60%; }
.mockup-card .line.brand { background: linear-gradient(90deg, var(--brand), #ff8ab0); width: 80%; }

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* —— 通用区块 —— */
.home-section {
  padding: 88px 0;
}

.home-section.alt {
  background: var(--surface-alt);
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.section-head .eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 12px;
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-head p {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}

/* —— 特性卡片 —— */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.feature-card {
  padding: 32px 28px;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: rgba(221, 53, 110, 0.25);
}

.feature-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  border-radius: 14px;
  margin-bottom: 20px;
  background: rgba(221, 53, 110, 0.08);
}

.feature-card:nth-child(2) .feature-icon { background: rgba(254, 232, 86, 0.45); }
.feature-card:nth-child(3) .feature-icon { background: rgba(99, 102, 241, 0.1); }
.feature-card:nth-child(4) .feature-icon { background: rgba(16, 185, 129, 0.1); }

/* —— 平台能力大卡 —— */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.platform-card {
  padding: 32px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  border-top: 3px solid var(--brand);
  transition: transform 0.25s, box-shadow 0.25s;
  height: 100%;
}

.platform-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.platform-icon {
  font-size: 36px;
  margin-bottom: 16px;
}

.platform-card h3 {
  font-size: 22px;
  margin-bottom: 12px;
  color: var(--ink);
}

.platform-card > p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 18px;
}

.platform-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.platform-tags li {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px;
  background: rgba(221, 53, 110, 0.08);
  color: var(--brand);
}

.platform-card:nth-child(2) { border-top-color: #6366f1; }
.platform-card:nth-child(2) .platform-tags li { background: rgba(99, 102, 241, 0.1); color: #6366f1; }
.platform-card:nth-child(3) { border-top-color: #10b981; }
.platform-card:nth-child(3) .platform-tags li { background: rgba(16, 185, 129, 0.1); color: #059669; }
.platform-card:nth-child(4) { border-top-color: #f59e0b; }
.platform-card:nth-child(4) .platform-tags li { background: rgba(245, 158, 11, 0.12); color: #d97706; }

.steps-row-5 .step-item {
  min-width: 160px;
  max-width: 200px;
}

@media (min-width: 992px) {
  .steps-row-5 .step-item:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 24px;
    right: -12px;
    width: 24px;
    height: 2px;
    background: linear-gradient(90deg, var(--brand), transparent);
  }
}

.feature-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}

/* —— 步骤 —— */
.steps-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
  position: relative;
}

.step-item {
  flex: 1;
  min-width: 220px;
  max-width: 320px;
  text-align: center;
  padding: 0 24px 24px;
  position: relative;
}

.step-num {
  width: 48px;
  height: 48px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), #ff6b9d);
  border-radius: 50%;
  box-shadow: 0 8px 20px -6px rgba(221, 53, 110, 0.5);
}

.step-item h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.step-item p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

@media (min-width: 768px) {
  .step-item:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 24px;
    right: -20px;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--brand), transparent);
  }
}

/* —— CTA —— */
.home-cta {
  padding: 72px 0;
  background: linear-gradient(135deg, var(--brand) 0%, #e84d82 50%, #ff6b9d 100%);
  position: relative;
  overflow: hidden;
}

.home-cta::before {
  content: "";
  position: absolute;
  width: 400px;
  height: 400px;
  top: -200px;
  right: -100px;
  border-radius: 50%;
  background: rgba(254, 232, 86, 0.2);
}

.home-cta .cta-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
}

.home-cta h2 {
  color: #fff !important;
  font-size: clamp(26px, 4vw, 36px);
  margin-bottom: 12px;
}

.home-cta p {
  font-size: 17px;
  opacity: 0.92;
  margin-bottom: 28px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.home-cta .cta-doc-link {
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.home-cta .cta-doc-link:hover {
  color: var(--accent);
}

.home-cta .btn-cta-light {
  display: inline-block;
  padding: 14px 32px;
  background: #fff;
  color: var(--brand) !important;
  font-weight: 700;
  font-size: 16px;
  border-radius: 100px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.home-cta .btn-cta-light:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
  color: var(--brand-dark) !important;
}

/* —— 天幕文档 —— */
.docs-section {
  background: linear-gradient(135deg, #1a1a2e 0%, #2d1f3d 50%, #1a1a2e 100%);
  color: #fff;
}

.docs-banner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
}

@media (min-width: 992px) {
  .docs-banner {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
  }
}

.docs-banner .eyebrow {
  color: var(--accent);
}

.docs-banner h2 {
  color: #fff !important;
  font-size: clamp(26px, 4vw, 36px);
  margin-bottom: 14px;
}

.docs-banner-text > p {
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.7;
  margin-bottom: 24px;
  font-size: 16px;
}

.btn-docs-primary {
  display: inline-block;
  padding: 12px 28px;
  background: var(--brand);
  color: #fff !important;
  font-weight: 700;
  border-radius: 100px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-docs-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(221, 53, 110, 0.45);
  color: #fff !important;
}

.docs-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.docs-link-card {
  display: flex;
  gap: 16px;
  padding: 20px 22px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.docs-link-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(254, 232, 86, 0.4);
  transform: translateX(4px);
}

.docs-link-icon {
  font-size: 28px;
  flex-shrink: 0;
}

.docs-link-card h3 {
  color: #fff !important;
  font-size: 17px;
  margin: 0 0 6px;
}

.docs-link-card p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
}

.faq-answer a {
  color: var(--brand);
  font-weight: 600;
}

/* —— FAQ（SEO + 转化） —— */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
}

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

.faq-item summary {
  padding: 18px 22px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(221, 53, 110, 0.08);
  color: var(--brand);
  font-size: 18px;
  font-weight: 700;
  transition: transform 0.2s;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item .faq-answer {
  padding: 0 22px 18px;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}

/* —— 响应式 —— */
@media (max-width: 991px) {
  .home-hero {
    text-align: center;
    padding-top: 100px;
  }

  .hero-lead {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-stats {
    justify-items: start;
    width: 100%;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }

  .home-hero .hero-stats {
    text-align: left;
  }

  .hero-stat,
  .hero-stat .num,
  .hero-stat .label {
    text-align: left;
    align-items: flex-start;
  }

  .mockup-window {
    transform: none;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 768px) {
  .home-section {
    padding: 64px 0;
  }

  .hero-actions .btn {
    width: 100%;
    max-width: 280px;
  }
}
