:root {
  --bg: #f7f9fc;
  --card: #ffffff;
  --muted: #5b6370;
  --text: #0b0d12;
  --primary: #3b82f6;
  --primary-600: #2563eb;
  --accent: #22c55e;
  --border: #e5eaf1;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Microsoft YaHei UI", "PingFang SC", "Hiragino Sans GB", sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 600px at 80% -10%, rgba(59, 130, 246, .10), transparent 60%),
    radial-gradient(900px 500px at 0% 0%, rgba(34, 197, 94, .06), transparent 60%),
    var(--bg);
  line-height: 1.6;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.3);
  border-bottom: 1px solid rgba(229, 234, 241, 0.5);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 18px;
  padding: 8px 12px;
  border-radius: 8px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-menu a {
  color: var(--text);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 8px;
}

.nav-menu a:hover {
  background: rgba(0, 0, 0, 0.06);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 10px;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
  color: var(--text);
}

.btn-primary {
  background: linear-gradient(180deg, var(--primary), var(--primary-600));
  border: none;
  color: #fff;
}

.btn-ghost {
  background: transparent;
}

.hint {
  color: var(--muted);
  font-size: 14px;
}

/* Hero */
.hero {
  padding: 120px 0 40px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero h1 {
  font-size: 40px;
  line-height: 1.2;
  margin: 0 0 12px;
}

.hero p {
  color: var(--muted);
  margin: 0 0 18px;
}

.hero-cta {
  display: flex;
  gap: 12px;
  align-items: center;
}

.phone-mock {
  width: 320px;
  margin: 0 auto;
  border: none;
  border-radius: 36px;
  box-shadow: none;
  background: transparent;
  overflow: visible;
}

.phone-mock .screen {
  background: transparent;
  border-radius: 24px;
  padding: 0;
  min-height: 520px;
  position: relative;
}

.phone-mock .screen img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
  animation: floatY 2.5s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes floatY {
  0% {
    transform: translateY(-12px);
  }

  100% {
    transform: translateY(12px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .phone-mock .screen img {
    animation: none;
  }
}

.phone-mock .card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}

.phone-mock .card-title {
  font-weight: 700;
  margin-bottom: 6px;
}

.phone-mock .badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  background: rgba(59, 130, 246, .08);
  color: #2563eb;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(59, 130, 246, .25);
  font-size: 12px;
}

/* Sections */
.section {
  padding: 64px 0;
}

.section.alt {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(255, 255, 255, 0));
}

.section-title {
  font-size: 28px;
  margin: 0 0 18px;
}

.lead {
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 20px;
}

.grid.two {
  grid-template-columns: repeat(2, 1fr);
}

.grid.three {
  grid-template-columns: repeat(3, 1fr);
}

.feature,
.case {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.feature-icon {
  font-size: 24px;
}

.checklist {
  padding-left: 18px;
}

.checklist li {
  margin: 6px 0;
}

.cta-inline {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 12px;
}

/* 3D 叠放式轮播（前图压住左右两图） */
.carousel-wrap {
  position: relative;
  min-height: 260px;
}

.carousel-viewport {
  --panel-width: 70%;
  --front-z: 140px;
  /* 前景深度，越大越靠前 */
  --side-z: 70px;
  /* 左右深度，决定被压住的程度 */
  --side-x: 24%;
  /* 左右水平位移，控制重叠宽度 */
  width: 100%;
  height: 340px;
  margin: 0 auto;
  perspective: 1200px;
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

.carousel3d {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
}

.panel {
  position: absolute;
  top: 0;
  left: 50%;
  width: var(--panel-width);
  height: 100%;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  translate: -50% 0;
  /* 水平中心定位 */
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  /* box-shadow: var(--shadow); */
  /* background: var(--card); */
  /* border: 1px solid var(--border); */
}

.panel img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* 不裁剪，保持原图比例 */
  display: block;
}

/* 四个面板围绕圆柱分布 */
.panel {
  animation: cycle 12s ease-in-out infinite;
}

@keyframes cycle {
  0% {
    transform: translateX(0) translateZ(var(--front-z)) scale(1);
  }

  24% {
    transform: translateX(0) translateZ(var(--front-z)) scale(1);
  }

  25% {
    transform: translateX(var(--side-x)) translateZ(var(--side-z)) scale(0.92);
  }

  49% {
    transform: translateX(var(--side-x)) translateZ(var(--side-z)) scale(0.92);
  }

  50% {
    transform: translateX(0) translateZ(0px) scale(0.85);
  }

  74% {
    transform: translateX(0) translateZ(0px) scale(0.85);
  }

  75% {
    transform: translateX(calc(-1 * var(--side-x))) translateZ(var(--side-z)) scale(0.92);
  }

  99% {
    transform: translateX(calc(-1 * var(--side-x))) translateZ(var(--side-z)) scale(0.92);
  }

  100% {
    transform: translateX(0) translateZ(var(--front-z)) scale(1);
  }
}

.panel.p1 {
  animation-delay: 0s;
}

.panel.p2 {
  animation-delay: -3s;
}

.panel.p3 {
  animation-delay: -6s;
}

.panel.p4 {
  animation-delay: -9s;
}

.panel.p5 {
  animation-delay: -12s;
}

/* Flip cards */
.flip-card {
  position: relative;
  width: 100%;
  perspective: 1000px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--card);
  border: 1px solid var(--border);
}

.flip-inner {
  position: relative;
  width: 100%;
  height: auto;
  transform-style: preserve-3d;
  animation: autoFlip 6s ease-in-out infinite;
}

.flip-front,
.flip-back {
  backface-visibility: hidden;
}

.flip-front {
  position: relative;
}

.flip-back {
  position: absolute;
  inset: 0;
}

.flip-back {
  transform: rotateY(180deg);
}

.flip-front img,
.flip-back img {
  width: 100%;
  height: auto;
  display: block;
}

@keyframes autoFlip {
  0% {
    transform: rotateY(0);
  }

  25% {
    transform: rotateY(0);
  }

  50% {
    transform: rotateY(180deg);
  }

  75% {
    transform: rotateY(180deg);
  }

  100% {
    transform: rotateY(360deg);
  }
}

.logos {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  color: var(--muted);
}

/* Contact */
.contact-form label {
  display: block;
}

.contact-form label span {
  display: inline-block;
  margin: 8px 0;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  background: #ffffff;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
}

.form-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 12px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 18px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-links {
  display: flex;
  gap: 12px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

/* Responsive */
@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .grid.two {
    grid-template-columns: 1fr;
  }

  .grid.three {
    grid-template-columns: 1fr;
  }

  .carousel-wrap {
    min-height: 220px;
  }

  .carousel-viewport {
    height: 280px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-menu {
    position: fixed;
    right: 16px;
    top: 62px;
    flex-direction: column;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px;
    display: none;
    box-shadow: var(--shadow);
  }

  .nav-menu.open {
    display: flex;
  }
}