/* 官网配色：青绿渐变 + 客户演示布局 */
:root {
  --gradient-deep: #0F766E;
  --gradient-mid: #0D9488;
  --gradient-pale: #F0FDFA;
  --teal: #14b8a6;
  --accent-blue: #38bdf8;
  --accent-pink: #f472b6;
  --text-main: #1f2937;
  --text-muted: #4b5563;
  --white: #fff;
  --card-bg: rgba(255,255,255,0.95);
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-hover: 0 12px 40px rgba(0,0,0,0.12);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

html, body {
  min-height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: linear-gradient(135deg, var(--gradient-deep) 0%, var(--gradient-mid) 30%, var(--gradient-pale) 100%);
  background-attachment: fixed;
  color: var(--text-main);
  line-height: 1.6;
}

.page {
  min-height: 100vh;
  padding: 0 20px 40px;
}

/* ========== 首屏 ========== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px 80px;
  position: relative;
}

.hero-logo {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: 0.08em;
  margin-bottom: 24px;
  opacity: 0;
  transform: translateY(24px);
  animation: heroFadeIn 0.8s ease forwards;
}

.hero-title {
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  font-weight: 700;
  color: var(--white);
  text-shadow: 0 2px 20px rgba(0,0,0,0.2);
  margin-bottom: 16px;
  opacity: 0;
  transform: translateY(24px);
  animation: heroFadeIn 0.8s ease 0.1s forwards;
}

.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: rgba(255,255,255,0.95);
  margin-bottom: 40px;
  opacity: 0;
  transform: translateY(24px);
  animation: heroFadeIn 0.8s ease 0.2s forwards;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  opacity: 0;
  transform: translateY(24px);
  animation: heroFadeIn 0.8s ease 0.3s forwards;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  border: none;
  cursor: pointer;
}

.btn-ios {
  background: var(--white);
  color: var(--gradient-deep);
  box-shadow: var(--shadow);
}

.btn-android {
  background: var(--teal);
  color: var(--white);
  box-shadow: var(--shadow);
}

.btn-recruit {
  background: #ff6700;
  color: var(--white);
  box-shadow: var(--shadow);
}

.btn-ios:hover,
.btn-android:hover,
.btn-recruit:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 24px;
  border: 2px solid rgba(255,255,255,0.6);
  border-radius: 50%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.8)' stroke-width='2'%3E%3Cpath d='M12 5v14M5 12l7 7 7-7'/%3E%3C/svg%3E") center 6px no-repeat;
  opacity: 0;
  animation: heroFadeIn 0.8s ease 0.5s forwards;
}

@keyframes heroFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-scroll-hint {
  transform: translateX(-50%) translateY(0);
}

/* ========== 通用 section ========== */
.section {
  max-width: 1100px;
  margin: 0 auto 64px;
  padding-top: 20px;
}

.section-title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  color: var(--white);
  text-align: center;
  margin-bottom: 8px;
  text-shadow: 0 1px 8px rgba(0,0,0,0.15);
}

.section-sub {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.9);
  text-align: center;
  margin-bottom: 40px;
}

.section .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.section .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== 四大理由：左右分栏 + 亮点 0X ========== */
.reason-section {
  margin-bottom: 80px;
}

.highlight-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 72px;
  min-height: 320px;
}

.highlight-row:last-child {
  margin-bottom: 0;
}

.highlight-row-reverse .highlight-visual {
  order: 2;
}

.highlight-row-reverse .highlight-text {
  order: 1;
}

.highlight-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.highlight-frame {
  width: 100%;
  max-width: 380px;
  aspect-ratio: 3/4;
  border-radius: 20px;
  overflow: hidden;
  border: 3px solid transparent;
  background: linear-gradient(white, white) padding-box,
    linear-gradient(135deg, var(--accent-blue), var(--accent-pink)) border-box;
  box-shadow: var(--shadow);
  transform: rotate(-2deg);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.highlight-row-reverse .highlight-frame {
  transform: rotate(2deg);
}

.highlight-frame:hover {
  transform: rotate(-2deg) scale(1.02);
  box-shadow: var(--shadow-hover);
}

.highlight-row-reverse .highlight-frame:hover {
  transform: rotate(2deg) scale(1.02);
}

.highlight-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.highlight-frame-phone {
  aspect-ratio: 9/16;
  max-width: 260px;
}

.highlight-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #e0f2fe 0%, #fce7f3 100%);
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 24px;
  text-align: center;
}

.highlight-dot {
  position: absolute;
  border-radius: 50%;
  opacity: 0.5;
  pointer-events: none;
}

.highlight-dot-pink {
  width: 120px;
  height: 120px;
  background: var(--accent-pink);
  top: -20px;
  right: -10px;
}

.highlight-dot-blue {
  width: 100px;
  height: 100px;
  background: var(--accent-blue);
  bottom: -15px;
  left: -10px;
}

.highlight-row-reverse .highlight-dot-pink {
  right: auto;
  left: -10px;
}

.highlight-row-reverse .highlight-dot-blue {
  left: auto;
  right: -10px;
}

.highlight-text {
  padding: 0 16px;
}

.highlight-pill {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.25);
  color: var(--gradient-deep);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.highlight-title {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 16px;
  line-height: 1.3;
}

.highlight-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 16px;
}

.highlight-line {
  display: block;
  width: 48px;
  height: 4px;
  background: var(--accent-blue);
  border-radius: 2px;
  opacity: 0.8;
}

/* ========== 剧本轮播 + 左右箭头 ========== */
.script-section {
  margin-bottom: 80px;
}

.carousel-container {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.carousel-btn {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: var(--white);
  color: var(--gradient-deep);
  box-shadow: var(--shadow);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.carousel-btn:hover {
  transform: scale(1.08);
  box-shadow: var(--shadow-hover);
}

.carousel-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.carousel-wrap {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: var(--shadow);
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y pinch-zoom;
}

.carousel-wrap:active {
  cursor: grabbing;
}

.carousel-track {
  display: flex;
  gap: 20px;
  padding: 12px;
  transition: transform 0.3s ease-out;
  will-change: transform;
}

.carousel-item {
  flex: 0 0 auto;
  width: 260px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--card-bg);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.carousel-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.carousel-item img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.carousel-caption {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.carousel-caption .name {
  font-weight: 600;
  color: var(--text-main);
  font-size: 1rem;
}

.carousel-caption .tag {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ========== 联系：每卡带图标 ========== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.contact-card {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 28px 20px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  opacity: 0;
  transform: translateY(24px);
}

.contact-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.contact-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  color: var(--accent-blue);
}

.contact-icon svg {
  width: 100%;
  height: 100%;
}

.contact-icon-shark {
  color: var(--teal);
}

.contact-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gradient-deep);
  margin-bottom: 8px;
}

.contact-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.contact-email {
  margin-top: 8px;
  font-size: 0.9rem;
  color: var(--gradient-mid);
  font-weight: 500;
}

/* ========== 页脚 ========== */
.footer {
  max-width: 600px;
  margin: 0 auto;
  padding: 48px 20px 24px;
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.9);
}

.footer-slogan {
  font-weight: 600;
  margin-bottom: 6px;
}

.footer-tags {
  font-size: 12px;
  opacity: 0.9;
  margin-bottom: 20px;
}

.footer-icp a {
  color: rgba(255,255,255,0.98);
  text-decoration: none;
}

.footer-icp a:hover {
  text-decoration: underline;
}

.footer-sep {
  margin: 0 8px;
}

/* ========== 响应式 ========== */
@media (max-width: 900px) {
  .highlight-row {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 56px;
  }

  .highlight-row-reverse .highlight-visual,
  .highlight-row-reverse .highlight-text {
    order: unset;
  }

  .highlight-visual {
    order: 1;
  }

  .highlight-text {
    order: 2;
  }

  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .hero {
    min-height: 90vh;
    padding: 48px 16px 64px;
  }

  .hero-scroll-hint {
    bottom: 24px;
  }

  .carousel-container {
    gap: 8px;
  }

  .carousel-btn {
    width: 40px;
    height: 40px;
  }

  .carousel-item {
    width: 220px;
  }

  .carousel-item img {
    height: 300px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .section {
    margin-bottom: 48px;
  }

  .highlight-frame {
    max-width: 280px;
  }
}
