/* ===========================
   青松画图 官网样式
   =========================== */

/* ---------- 基础变量 ---------- */
:root {
  --primary: #5b8def;
  --primary-dark: #3b6fd8;
  --accent: #22c55e;
  --text: #1f2937;
  --text-muted: #6b7280;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --border: #e5e7eb;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, .06);
  --shadow: 0 8px 24px rgba(15, 23, 42, .08);
  --shadow-lg: 0 20px 50px rgba(15, 23, 42, .12);
  --gradient-hero: linear-gradient(135deg, #dbeafe 0%, #e0e7ff 35%, #ede9fe 70%, #fce7f3 100%);
  --max-w: 1180px;
}

/* ---------- 重置 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
               "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary-dark); }
button { font-family: inherit; cursor: pointer; }

/* ---------- 容器 ---------- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: none;
  transition: transform .15s, box-shadow .15s, background .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, #5b8def, #7c3aed);
  color: #fff;
  box-shadow: 0 6px 18px rgba(91, 141, 239, .35);
}
.btn-primary:hover { color: #fff; box-shadow: 0 10px 24px rgba(91, 141, 239, .45); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover { background: var(--bg-alt); color: var(--text); }
.btn-outline {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, .5);
}
.btn-outline:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-block { width: 100%; }

/* ---------- 导航 ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.navbar.scrolled { border-color: var(--border); box-shadow: var(--shadow-sm); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 17px;
}
.brand:hover { color: var(--text); }
.brand-logo { border-radius: 8px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  position: relative;
}
.nav-links a:hover { color: var(--primary); }
.nav-links a.lang-link {
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12px;
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 通用 section ---------- */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); }
.section-cta {
  background: linear-gradient(135deg, #5b8def 0%, #7c3aed 100%);
  color: #fff;
}
.section-cta .eyebrow { color: rgba(255, 255, 255, .8); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 10px;
}
.section-head h2 {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.2;
  margin: 0 0 12px;
  font-weight: 700;
  letter-spacing: -0.5px;
}
.section-head p { color: var(--text-muted); font-size: 16px; margin: 0; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--gradient-hero);
  padding: 80px 0 100px;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .55;
}
.blob-1 { width: 480px; height: 480px; background: #c4b5fd; top: -120px; left: -120px; }
.blob-2 { width: 380px; height: 380px; background: #93c5fd; bottom: -100px; right: -80px; }
.blob-3 { width: 320px; height: 320px; background: #fbcfe8; top: 30%; right: 20%; opacity: .35; }
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
}
.badge {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(255, 255, 255, .7);
  border: 1px solid rgba(91, 141, 239, .25);
  border-radius: 999px;
  font-size: 13px;
  color: var(--primary-dark);
  font-weight: 600;
  margin-bottom: 20px;
  backdrop-filter: blur(8px);
}
.hero-title {
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.15;
  font-weight: 800;
  margin: 0 0 20px;
  letter-spacing: -1px;
}
.hl {
  background: linear-gradient(120deg, #5b8def, #7c3aed);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-subtitle {
  font-size: 17px;
  color: var(--text-muted);
  margin: 0 0 32px;
  max-width: 520px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 44px; }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding-top: 28px;
  border-top: 1px solid rgba(15, 23, 42, .08);
  max-width: 520px;
}
.hero-stats > div { display: flex; flex-direction: column; }
.hero-stats strong {
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}
.hero-stats span {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ---------- 手机模型 ---------- */
.hero-visual { display: flex; justify-content: center; align-items: center; }
.phone-mockup {
  width: 280px;
  height: 560px;
  background: #1f2937;
  border-radius: 38px;
  padding: 12px;
  box-shadow: var(--shadow-lg);
  position: relative;
  transform: rotate(-3deg);
  transition: transform .4s;
}
.phone-mockup:hover { transform: rotate(0); }
.phone-mockup::before {
  content: '';
  position: absolute;
  top: 18px; left: 50%;
  transform: translateX(-50%);
  width: 80px; height: 22px;
  background: #111827;
  border-radius: 999px;
  z-index: 2;
}
.phone-screen {
  width: 100%;
  height: 100%;
  background: #fff;
  border-radius: 28px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.canvas {
  flex: 1;
  background: linear-gradient(180deg, #f0f9ff, #fef3c7 80%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 18px 12px;
}
.canvas svg { width: 100%; height: 100%; }
.toolbar {
  padding: 12px 18px 22px;
  display: flex;
  gap: 14px;
  justify-content: center;
  background: #fff;
  border-top: 1px solid #f1f5f9;
}
.dot {
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px #e5e7eb;
}
.dot.active {
  transform: scale(1.2);
  box-shadow: 0 0 0 2px var(--primary);
}

/* ---------- 功能卡片 ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.feature-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(91, 141, 239, .35);
}
.feature-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  display: flex; align-items: center; justify-content: center;
  color: #1f2937;
  margin-bottom: 20px;
}
.feature-icon svg { width: 28px; height: 28px; }
.feature-card h3 {
  font-size: 18px;
  margin: 0 0 10px;
  font-weight: 700;
}
.feature-card p {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.7;
}

/* ---------- 截图轮播 ---------- */
.shot-track {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  padding: 16px 4px 32px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.shot-track::-webkit-scrollbar { height: 8px; }
.shot-track::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
.shot {
  flex: 0 0 240px;
  scroll-snap-align: center;
  margin: 0;
}
.shot-frame {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 10px;
  box-shadow: var(--shadow);
  position: relative;
  aspect-ratio: 200 / 320;
  overflow: hidden;
}
.shot-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: calc(var(--radius-lg) - 6px);
}
.shot-fallback {
  position: absolute; inset: 10px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: #fafafa;
  border-radius: calc(var(--radius-lg) - 6px);
  color: var(--text-muted);
  font-size: 13px;
  gap: 8px;
}
.shot-fallback svg { width: 60%; opacity: .55; }
.shot figcaption {
  text-align: center;
  margin-top: 16px;
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
}
.shot-hint {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 24px;
}
.shot-hint code {
  background: var(--bg-alt);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  color: var(--primary-dark);
}

/* ---------- 特色功能 ---------- */
.highlight-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 880px;
  margin: 0 auto;
}
.highlight {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.hl-icon {
  flex-shrink: 0;
  width: 48px; height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #dbeafe, #e0e7ff);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
}
.hl-icon svg { width: 24px; height: 24px; }
.highlight h3 { font-size: 17px; margin: 0 0 6px; }
.highlight p { font-size: 14px; color: var(--text-muted); margin: 0; }

/* ---------- CTA 下载 ---------- */
.section-cta { padding: 72px 0; }
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.cta-text h2 {
  font-size: clamp(26px, 3.5vw, 36px);
  margin: 0 0 8px;
  font-weight: 700;
}
.cta-text p { margin: 0; opacity: .85; font-size: 15px; }
.cta-buttons { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- 关于 ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 60px;
  align-items: start;
}
.about-text p { font-size: 16px; color: #374151; margin: 0 0 18px; }
.about-text em { color: var(--primary); font-style: normal; font-weight: 600; }
.quote {
  margin: 32px 0 0;
  padding: 20px 24px;
  background: var(--bg-alt);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 17px;
  color: var(--text);
}
.quote cite {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-muted);
  font-style: normal;
}
.contact-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.contact-card h3 { font-size: 18px; margin: 0 0 18px; }
.contact-list { list-style: none; padding: 0; margin: 0 0 22px; }
.contact-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  font-size: 14px;
  color: var(--text);
  border-bottom: 1px solid var(--bg-alt);
}
.contact-list li:last-child { border-bottom: none; }
.ci {
  display: inline-flex;
  width: 28px; height: 28px;
  background: linear-gradient(135deg, #dbeafe, #e0e7ff);
  color: var(--primary);
  border-radius: 50%;
  align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
  flex-shrink: 0;
}

/* ---------- Footer ---------- */
.footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 36px 0;
  font-size: 13px;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-left p { margin: 0; }
.footer-links {
  display: flex;
  gap: 24px;
}
.footer-links a { color: #cbd5e1; }
.footer-links a:hover { color: #fff; }
.footer-icp a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #94a3b8;
}
.footer-icp a:hover { color: #cbd5e1; }
.footer-icp img { display: inline-block; vertical-align: middle; }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; text-align: left; }
  .hero-visual { order: -1; }
  .phone-mockup { width: 240px; height: 480px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .cta-inner { flex-direction: column; text-align: center; }
  .cta-buttons { justify-content: center; }
  .highlight-list { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 64px; left: 0; right: 0;
    background: #fff;
    border-top: 1px solid var(--border);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    transform: translateY(-110%);
    transition: transform .3s;
    box-shadow: var(--shadow);
  }
  .nav-links.open { transform: translateY(0); }
  .section { padding: 64px 0; }
  .grid-3 { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}

/* ---------- 动画 ---------- */
@media (prefers-reduced-motion: no-preference) {
  .feature-card, .highlight, .phone-mockup {
    animation: fadeUp .6s ease-out backwards;
  }
  .feature-card:nth-child(2) { animation-delay: .05s; }
  .feature-card:nth-child(3) { animation-delay: .1s; }
  .feature-card:nth-child(4) { animation-delay: .15s; }
  .feature-card:nth-child(5) { animation-delay: .2s; }
  .feature-card:nth-child(6) { animation-delay: .25s; }
}

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

/* ---------- 导航 active 状态 ---------- */
.nav-links a.active { color: var(--primary); font-weight: 600; }
.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 50%; bottom: -18px;
  transform: translateX(-50%);
  width: 20px; height: 2px;
  background: var(--primary);
  border-radius: 2px;
}
