/* 万重云小程序制作系统 - 官网样式 */
:root {
  --primary: #1890ff;
  --primary-dark: #096dd9;
  --primary-light: #40a9ff;
  --navy: #001529;
  --navy-mid: #002140;
  --navy-light: #003a70;
  --text: #262626;
  --text-secondary: #595959;
  --text-muted: #8c8c8c;
  --border: #f0f0f0;
  --bg: #ffffff;
  --bg-gray: #fafafa;
  --green: #52c41a;
  --orange: #fa8c16;
  --purple: #722ed1;
  --red: #f5222d;
  --blue-card: #1890ff;
  --btn-radius: 6px;
  --btn-primary: #0066ff;
  --btn-primary-hover: #0052d9;
  --header-h: 76px;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 4px 24px rgba(0, 21, 41, 0.08);
  --shadow-lg: 0 12px 48px rgba(0, 21, 41, 0.12);
  --max-w: 1200px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* ========== Header ========== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--header-h); background: rgba(255,255,255,0.98);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  transition: box-shadow 0.3s;
}
.site-header.is-scrolled { box-shadow: var(--shadow); }
.header-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 24px;
  height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px;
}

/* Logo */
.brand {
  display: flex; align-items: center; gap: 10px; flex-shrink: 0;
}
.brand__logo { width: 130px; height: auto; display: block; }
.brand__suffix {
  font-size: 24px; font-weight: 600; color: var(--text);
  line-height: 1; white-space: nowrap; letter-spacing: 0.02em;
}

/* Nav */
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  padding: 10px 22px; font-size: 17px; font-weight: 500; color: var(--text-secondary);
  border-radius: var(--radius); transition: color 0.2s, background 0.2s;
}
.main-nav a:hover, .main-nav a.is-active { color: var(--primary); }
.main-nav a.is-active { font-weight: 600; }

.nav-demo {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 20px !important; font-size: 15px; color: var(--primary) !important;
  border: 1px solid var(--primary); border-radius: 20px;
  transition: all 0.2s;
}
.nav-demo:hover { background: var(--primary); color: #fff !important; }
.nav-demo svg { width: 14px; height: 14px; }

.header-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 32px; font-size: 16px; font-weight: 500;
  border-radius: var(--btn-radius); min-height: 48px; line-height: 1.2;
  transition: all 0.25s; white-space: nowrap;
}
.btn-primary {
  background: var(--btn-primary); color: #fff;
  border: 1px solid var(--btn-primary); box-shadow: none;
}
.btn-primary:hover {
  background: var(--btn-primary-hover); border-color: var(--btn-primary-hover);
  box-shadow: 0 4px 16px rgba(0, 102, 255, 0.35); transform: translateY(-1px);
}
.btn-outline {
  background: transparent; color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.72);
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.9);
}
.btn-white {
  background: #fff; color: var(--btn-primary);
  border: 1px solid #fff;
}
.btn-white:hover { background: rgba(255, 255, 255, 0.92); }
.btn-ghost {
  background: transparent; color: var(--btn-primary);
  border: 1px solid var(--btn-primary);
}
.btn-ghost:hover { background: rgba(0, 102, 255, 0.06); }
.btn-lg {
  padding: 16px 44px; font-size: 17px; min-height: 52px;
  border-radius: var(--btn-radius);
}

/* Mobile menu */
.menu-toggle {
  display: none; width: 40px; height: 40px; align-items: center; justify-content: center;
  border-radius: var(--radius);
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  display: block; width: 20px; height: 2px; background: var(--text); border-radius: 1px;
  position: relative; transition: all 0.3s;
}
.menu-toggle span::before, .menu-toggle span::after {
  content: ""; position: absolute; left: 0;
}
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }
.menu-toggle.is-open span { background: transparent; }
.menu-toggle.is-open span::before { top: 0; transform: rotate(45deg); }
.menu-toggle.is-open span::after { top: 0; transform: rotate(-45deg); }

/* ========== Hero ========== */
.hero {
  position: relative; min-height: 680px; padding: calc(var(--header-h) + 72px) 0 88px;
  background: linear-gradient(160deg, #000a14 0%, #001529 28%, #002766 55%, #003580 100%);
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 55% 65% at 78% 55%, rgba(0, 180, 255, 0.22) 0%, transparent 58%),
    radial-gradient(ellipse 40% 45% at 65% 70%, rgba(24, 144, 255, 0.15) 0%, transparent 55%),
    radial-gradient(ellipse 35% 40% at 15% 25%, rgba(24, 144, 255, 0.06) 0%, transparent 50%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(105deg, transparent 42%, rgba(0, 180, 255, 0.04) 50%, transparent 58%),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.015) 0 1px, transparent 1px 120px),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.01) 0 1px, transparent 1px 120px);
  pointer-events: none; opacity: 0.6;
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1.05fr; gap: 40px; align-items: center;
}
.hero-content { color: #fff; max-width: 560px; }
.hero-badge {
  display: inline-block; padding: 6px 16px; margin-bottom: 24px;
  background: rgba(24,144,255,0.2); border: 1px solid rgba(24,144,255,0.4);
  border-radius: 20px; font-size: 13px; color: var(--primary-light);
}
.hero-title {
  font-size: 48px; font-weight: 700; line-height: 1.25; margin-bottom: 20px;
  letter-spacing: 0.02em; color: #fff;
}
.hero-title em { font-style: normal; color: #fff; }
.hero-desc {
  font-size: 17px; color: rgba(255,255,255,0.75); line-height: 1.8; margin-bottom: 32px; max-width: 520px;
}
.hero-features {
  display: flex; flex-wrap: wrap; gap: 12px 24px; margin-bottom: 40px;
}
.hero-features li {
  display: flex; align-items: center; gap: 8px; font-size: 14px; color: rgba(255,255,255,0.85);
}
.hero-features li svg { flex-shrink: 0; color: var(--primary-light); }
.hero-actions { display: flex; gap: 20px; flex-wrap: wrap; }

/* Hero Visual — 透明底插图，直接叠在 Hero 背景上 */
.hero-visual {
  position: relative;
  height: 520px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  overflow: visible;
}
.hero-visual__wrap {
  position: relative;
  width: 100%;
  max-width: 600px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}
.hero-visual__glow {
  position: absolute;
  width: 85%;
  height: 55%;
  bottom: 8%;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(0, 200, 255, 0.35) 0%, rgba(24, 144, 255, 0.12) 45%, transparent 72%);
  filter: blur(28px);
  pointer-events: none;
  z-index: 0;
}
.hero-visual__platform {
  position: absolute;
  width: 72%;
  height: 18%;
  bottom: 6%;
  left: 50%;
  transform: translateX(-50%) perspective(400px) rotateX(72deg);
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0, 220, 255, 0.4) 0%, rgba(24, 144, 255, 0.15) 45%, transparent 75%);
  box-shadow: 0 0 60px rgba(0, 200, 255, 0.3);
  pointer-events: none;
  z-index: 0;
}
.hero-visual__img {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 580px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 16px 36px rgba(0, 0, 0, 0.28));
  animation: heroVisualFloat 4s ease-in-out infinite;
}
@keyframes heroVisualFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ========== Stats Bar ========== */
.stats-bar {
  background: #fff; border-bottom: 1px solid var(--border);
  padding: 32px 0; margin-top: -1px;
}
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.stat-item {
  display: flex; align-items: center; gap: 16px; padding: 8px 16px;
}
.stat-item__icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: linear-gradient(135deg, #e6f7ff 0%, #bae7ff 100%);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  color: var(--primary);
}
.stat-item__icon svg { width: 24px; height: 24px; }
.stat-item__num { font-size: 28px; font-weight: 700; color: var(--text); line-height: 1.2; }
.stat-item__label { font-size: 13px; color: var(--text-muted); margin-top: 2px; }

/* ========== Section Common ========== */
.section { padding: 88px 0; }
.section--gray { background: var(--bg-gray); }
.section-header { text-align: center; margin-bottom: 56px; }
.section-header h2 {
  font-size: 36px; font-weight: 700; color: var(--text); margin-bottom: 12px;
  letter-spacing: 0.02em;
}
.section-header p { font-size: 16px; color: var(--text-muted); max-width: 560px; margin: 0 auto; }

/* ========== Feature Cards ========== */
.feature-cards {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px;
}
.feature-card {
  background: #fff; border-radius: var(--radius-lg); padding: 28px 20px;
  text-align: center; border: 1px solid var(--border);
  transition: transform 0.3s, box-shadow 0.3s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feature-card__icon {
  width: 56px; height: 56px; border-radius: 14px; margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center; font-size: 24px;
}
.feature-card__icon--green { background: rgba(82,196,26,0.12); color: var(--green); }
.feature-card__icon--orange { background: rgba(250,140,22,0.12); color: var(--orange); }
.feature-card__icon--purple { background: rgba(114,46,209,0.12); color: var(--purple); }
.feature-card__icon--blue { background: rgba(24,144,255,0.12); color: var(--blue-card); }
.feature-card__icon--red { background: rgba(245,34,45,0.12); color: var(--red); }
.feature-card h3 { font-size: 16px; font-weight: 600; margin-bottom: 8px; color: var(--text); }
.feature-card p { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

/* ========== Why Choose ========== */
.why-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 32px;
}
.why-item { text-align: center; padding: 24px 12px; }
.why-item__icon {
  width: 64px; height: 64px; margin: 0 auto 20px;
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
}
.why-item__icon svg { width: 40px; height: 40px; stroke-width: 1.5; }
.why-item h3 { font-size: 16px; font-weight: 600; margin-bottom: 10px; }
.why-item p { font-size: 13px; color: var(--text-muted); line-height: 1.7; }

/* ========== CTA Footer ========== */
.cta-section {
  background: linear-gradient(135deg, #001529 0%, #002766 50%, #003a8c 100%);
  padding: 80px 0; text-align: center; color: #fff; position: relative; overflow: hidden;
}
.cta-section::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 100%, rgba(24,144,255,0.2) 0%, transparent 60%);
}
.cta-section .container { position: relative; z-index: 1; }
.cta-section h2 { font-size: 36px; font-weight: 700; margin-bottom: 16px; }
.cta-section p { font-size: 16px; color: rgba(255,255,255,0.7); margin-bottom: 36px; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ========== Trust Bar ========== */
.trust-bar {
  background: #000c17; padding: 24px 0; color: rgba(255,255,255,0.65);
}
.trust-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.trust-item {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font-size: 13px;
}
.trust-item svg { width: 20px; height: 20px; color: var(--primary-light); flex-shrink: 0; }

/* ========== Page Hero (sub pages) ========== */
.page-hero {
  padding: calc(var(--header-h) + 60px) 0 60px;
  background: linear-gradient(135deg, #001529 0%, #002766 60%, #003a8c 100%);
  color: #fff; text-align: center;
}
.page-hero h1 { font-size: 40px; font-weight: 700; margin-bottom: 12px; }
.page-hero p { font-size: 16px; color: rgba(255,255,255,0.7); max-width: 600px; margin: 0 auto; }
.page-hero--split { text-align: left; }
.page-hero--split .page-hero__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 40px;
}
.page-hero--split .page-hero__content { flex: 1; min-width: 0; }
.page-hero--split p { margin: 0; max-width: none; }
.page-hero--split .page-hero__action { flex-shrink: 0; }

/* ========== Feature Detail (left-right) ========== */
.feature-block {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
  padding: 64px 0; border-bottom: 1px solid var(--border);
}
.feature-block:last-child { border-bottom: none; }
.feature-block--reverse .feature-block__text { order: 2; }
.feature-block--reverse .feature-block__visual { order: 1; }
.feature-block__tag {
  display: inline-block; padding: 4px 12px; margin-bottom: 16px;
  background: rgba(24,144,255,0.08); color: var(--primary);
  border-radius: 4px; font-size: 13px; font-weight: 500;
}
.feature-block__text h2 { font-size: 32px; font-weight: 700; margin-bottom: 12px; line-height: 1.3; }
.feature-block__text h3 { font-size: 18px; font-weight: 600; color: var(--text-secondary); margin-bottom: 16px; }
.feature-block__text p { font-size: 15px; color: var(--text-secondary); line-height: 1.8; margin-bottom: 16px; }
.feature-block__list { margin-top: 20px; }
.feature-block__list li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14px; color: var(--text-secondary); margin-bottom: 10px; line-height: 1.6;
}
.feature-block__list li::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--primary); margin-top: 8px; flex-shrink: 0;
}
.feature-block__visual {
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg); background: var(--bg-gray);
  min-height: 320px; display: flex; align-items: center; justify-content: center;
}
.feature-block__visual img { width: 100%; object-fit: cover; }
.feature-mock {
  width: 100%; padding: 24px; background: linear-gradient(135deg, #f0f5ff 0%, #e6f7ff 100%);
  min-height: 320px; display: flex; flex-direction: column; gap: 12px;
}
.feature-mock__bar { height: 8px; background: var(--primary); border-radius: 4px; width: 40%; opacity: 0.6; }
.feature-mock__title { height: 20px; background: rgba(0,21,41,0.1); border-radius: 4px; width: 70%; }
.feature-mock__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; flex: 1; }
.feature-mock__cell { background: rgba(255,255,255,0.8); border-radius: 8px; min-height: 80px; }

/* ========== Pricing ========== */
.pricing-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; align-items: stretch;
}
.pricing-card {
  background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--border);
  padding: 40px 32px; display: flex; flex-direction: column;
  transition: transform 0.3s, box-shadow 0.3s; position: relative;
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pricing-card--featured {
  border-color: var(--primary); box-shadow: 0 8px 32px rgba(24,144,255,0.15);
}
.pricing-card--featured::before {
  content: "推荐"; position: absolute; top: -1px; right: 24px;
  background: var(--primary); color: #fff; font-size: 12px; font-weight: 600;
  padding: 4px 14px; border-radius: 0 0 8px 8px;
}
.pricing-card__name { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.pricing-card__desc { font-size: 14px; color: var(--text-muted); margin-bottom: 24px; min-height: 42px; }
.pricing-card__price { margin-bottom: 8px; }
.pricing-card__price .currency { font-size: 20px; font-weight: 600; color: var(--primary); vertical-align: top; }
.pricing-card__price .amount { font-size: 48px; font-weight: 700; color: var(--primary); line-height: 1; }
.pricing-card__breakdown {
  font-size: 13px; color: var(--text-muted); margin-bottom: 28px;
  padding-bottom: 28px; border-bottom: 1px solid var(--border);
}
.pricing-card__features { flex: 1; margin-bottom: 32px; }
.pricing-card__features li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14px; color: var(--text-secondary); margin-bottom: 12px; line-height: 1.5;
}
.pricing-card__features li svg { flex-shrink: 0; color: var(--green); margin-top: 3px; }
.pricing-card .btn { width: 100%; }

/* ========== Footer ========== */
.site-footer {
  background: #000c17; color: rgba(255,255,255,0.55); padding: 40px 0;
  font-size: 13px; text-align: center;
}
.site-footer a { color: rgba(255,255,255,0.7); }
.site-footer a:hover { color: var(--primary-light); }

/* ========== Responsive ========== */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-content { max-width: none; text-align: center; margin: 0 auto; }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-features { justify-content: center; }
  .hero-actions { justify-content: center; }
  .hero-visual { height: 400px; justify-content: center; }
  .hero-visual__wrap { max-width: 480px; }
  .feature-cards, .why-grid { grid-template-columns: repeat(3, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-block { grid-template-columns: 1fr; gap: 32px; }
  .feature-block--reverse .feature-block__text { order: 1; }
  .feature-block--reverse .feature-block__visual { order: 2; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }
}

@media (max-width: 768px) {
  :root { --header-h: 64px; }
  .menu-toggle { display: flex; }
  .main-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    background: #fff; flex-direction: column; padding: 16px;
    border-bottom: 1px solid var(--border); box-shadow: var(--shadow);
    transform: translateY(-110%); opacity: 0; transition: all 0.3s;
    pointer-events: none;
  }
  .main-nav.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .main-nav a { width: 100%; text-align: center; padding: 14px; font-size: 16px; }
  .header-actions .btn-primary { display: none; }
  .brand__suffix { font-size: 18px; }
  .brand__logo { width: 110px; }
  .hero { min-height: auto; padding-bottom: 60px; }
  .hero-title { font-size: 32px; }
  .hero-visual { height: 320px; }
  .hero-visual__img { max-width: 420px; }
  .feature-cards, .why-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid, .trust-grid { grid-template-columns: 1fr 1fr; }
  .section-header h2 { font-size: 28px; }
  .page-hero h1 { font-size: 28px; }
  .page-hero--split .page-hero__inner {
    flex-direction: column; align-items: flex-start; gap: 24px;
  }
  .page-hero--split .page-hero__action { width: 100%; }
  .feature-block__text h2 { font-size: 24px; }
  .cta-section h2 { font-size: 26px; }
}

@media (max-width: 480px) {
  .feature-cards, .why-grid, .stats-grid, .trust-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
}
