/* ==========================================================================
   清启科技 · 营销落地页
   纯静态样式表 / 零外部依赖 / 科技蓝单一强调色
   ========================================================================== */

:root {
  --bg: #ffffff;
  --bg-soft: #f7f9fc;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e4ebf3;
  --accent: #2563eb;
  --accent-dark: #1d4ed8;
  --accent-soft: #eff6ff;
  --accent-line: #bfdbfe;
  --radius: 18px;
  --radius-lg: 28px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow: 0 18px 50px -20px rgba(15, 23, 42, 0.18);
  --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { margin: 0; letter-spacing: -0.03em; line-height: 1.25; color: var(--ink); }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
svg { display: block; }

.icon { width: 20px; height: 20px; flex: none; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 28px; }

.skip-link {
  position: fixed; top: -60px; left: 20px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px;
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ---------- 导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 11px; flex: none; }
.brand-mark { width: 34px; height: 34px; color: var(--accent); }
.brand-mark svg { width: 100%; height: 100%; }
.brand-text { display: flex; flex-direction: column; font-weight: 700; font-size: 17px; line-height: 1.15; letter-spacing: -0.02em; }
.brand-en { font-size: 9px; font-weight: 600; letter-spacing: 0.16em; color: var(--muted); margin-top: 3px; }

.nav { display: flex; align-items: center; gap: 34px; }
.nav > a:not(.nav-cta) { font-size: 14px; font-weight: 500; color: var(--ink-2); transition: color 0.2s; }
.nav > a:not(.nav-cta):hover { color: var(--accent); }
.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 10px;
  font-size: 14px; font-weight: 600; transition: transform 0.2s var(--ease), background 0.2s;
}
.nav-cta .icon { width: 17px; height: 17px; }
.nav-cta:hover { background: var(--accent); transform: translateY(-2px); }

.menu-toggle {
  display: none; width: 42px; height: 42px; align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; color: var(--ink);
}
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-menu { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 76px 0 0; overflow: hidden; }
.hero-glow {
  position: absolute; top: -220px; right: -160px; width: 720px; height: 720px; border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.10) 0%, rgba(37, 99, 235, 0) 68%);
  pointer-events: none;
}
.hero-inner {
  position: relative; display: grid; grid-template-columns: 1.02fr 0.98fr;
  align-items: center; gap: 56px; min-height: min(610px, calc(100dvh - 76px));
}
.hero-copy { padding-bottom: 24px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 13px; font-weight: 600; color: var(--accent); letter-spacing: 0.02em;
  background: var(--accent-soft); border: 1px solid var(--accent-line);
  padding: 7px 14px; border-radius: 999px; margin-bottom: 26px;
}
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12); }

.hero h1 { font-size: clamp(2.8rem, 5.4vw, 5rem); font-weight: 800; letter-spacing: -0.045em; }
.hero h1 .hl { color: var(--accent); }
.hero-lead { margin-top: 26px; font-size: 17px; line-height: 1.9; color: var(--muted); max-width: 40em; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 24px; border-radius: 11px; font-size: 15px; font-weight: 600;
  transition: transform 0.2s var(--ease), box-shadow 0.2s, background 0.2s, border-color 0.2s;
  cursor: pointer; border: 1px solid transparent;
}
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: scale(0.98); }
.btn .icon { width: 18px; height: 18px; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 10px 24px -10px rgba(37, 99, 235, 0.65); }
.btn-primary:hover { background: var(--accent-dark); box-shadow: 0 16px 30px -12px rgba(37, 99, 235, 0.75); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent-line); background: var(--accent-soft); }
.btn-sm { padding: 11px 18px; font-size: 14px; }
.btn-light { background: #fff; color: var(--accent); padding: 16px 26px; }
.btn-light:hover { box-shadow: 0 12px 28px -10px rgba(0, 0, 0, 0.25); }

.hero-note { display: flex; align-items: center; gap: 7px; margin-top: 22px; font-size: 13px; color: var(--muted); }
.hero-note .icon { width: 15px; height: 15px; color: #16a34a; }

.hero-visual { display: flex; justify-content: center; align-items: center; }
.hero-art { width: 100%; max-width: 560px; height: auto; }
.float-a { animation: float 6s ease-in-out infinite; }
.float-b { animation: float 5s ease-in-out infinite 0.8s; }
.float-c { animation: float 7s ease-in-out infinite 1.4s; }
.float-d { animation: float 5.5s ease-in-out infinite 0.4s; }
.code-line { animation: pulse 2.4s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

/* ---------- 数据条 ---------- */
.stats {
  position: relative; display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  margin-top: 26px;
}
.stat { padding: 28px 20px; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: none; }
.stat strong { display: block; font-size: 32px; font-weight: 800; letter-spacing: -0.04em; color: var(--ink); }
.stat strong span { font-size: 16px; font-weight: 600; color: var(--accent); margin-left: 2px; }
.stat > span { font-size: 13px; color: var(--muted); }

/* ---------- 通用区块 ---------- */
.section { padding: 112px 0; }
.section-head { max-width: 720px; margin-bottom: 52px; }
.section-tag {
  font-size: 12px; font-weight: 700; letter-spacing: 0.16em; color: var(--accent);
  text-transform: uppercase; margin-bottom: 16px;
}
.section-head h2 { font-size: clamp(2rem, 3.6vw, 3rem); font-weight: 800; }
.section-lead { margin-top: 18px; font-size: 16px; line-height: 1.9; color: var(--muted); max-width: 54ch; }
.section-head--split {
  max-width: none; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: end;
}
.section-head--split .section-lead { margin-top: 0; }

/* ---------- 开源项目（Bento 布局） ---------- */
.projects { background: var(--bg-soft); }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.project-card {
  display: flex; flex-direction: column; align-items: flex-start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; min-height: 280px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s;
}
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--accent-line); }
.project-card--wide { grid-column: span 2; }
.project-top { display: flex; align-items: center; justify-content: space-between; width: 100%; margin-bottom: 22px; }
.project-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--accent-soft); color: var(--accent);
}
.project-icon .icon { width: 23px; height: 23px; }
.project-tag { font-size: 12px; font-weight: 600; color: var(--muted); background: #f4f7fb; padding: 5px 11px; border-radius: 999px; }
.project-card h3 { font-size: 21px; font-weight: 700; margin-bottom: 10px; }
.project-card p { font-size: 14px; line-height: 1.8; color: var(--muted); }
.project-features { margin: 14px 0 0; display: grid; gap: 6px; }
.project-features li { position: relative; padding-left: 18px; font-size: 13px; color: var(--ink-2); }
.project-features li::before {
  content: ""; position: absolute; left: 0; top: 9px; width: 6px; height: 6px;
  border-radius: 50%; background: var(--accent);
}
.project-link {
  display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 22px;
  font-size: 14px; font-weight: 600; color: var(--accent);
}
.project-link .icon { width: 16px; height: 16px; transition: transform 0.2s var(--ease); }
.project-link:hover .icon { transform: translate(2px, -2px); }

.project-card--banner {
  grid-column: 1 / -1; min-height: auto; flex-direction: row; align-items: center;
  justify-content: space-between; gap: 32px; padding: 34px 38px;
  background: linear-gradient(110deg, #eff6ff 0%, #ffffff 70%);
}
.project-card--banner h3 { font-size: 22px; }
.project-card--banner p { margin-top: 6px; max-width: 60ch; }

/* ---------- 核心优势 ---------- */
.advantage-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 64px; }
.advantage { padding: 30px 0 34px; border-top: 1px solid var(--line); }
.advantage-num { display: block; font-size: 13px; font-weight: 700; color: var(--accent); margin-bottom: 14px; letter-spacing: 0.08em; }
.advantage h3 { font-size: 19px; font-weight: 700; margin-bottom: 10px; }
.advantage p { font-size: 14px; line-height: 1.85; color: var(--muted); max-width: 46ch; }

/* ---------- 关于我们 ---------- */
.about { padding-top: 40px; }
.about-inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 72px; align-items: center; }
.about-copy h2 { font-size: clamp(2rem, 3.6vw, 3rem); font-weight: 800; margin-bottom: 24px; }
.about-copy p { font-size: 16px; line-height: 1.95; color: var(--muted); margin-bottom: 16px; max-width: 52ch; }
.text-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 15px; font-weight: 600; color: var(--accent); }
.text-link .icon { width: 17px; height: 17px; transition: transform 0.2s var(--ease); }
.text-link:hover .icon { transform: translateX(4px); }
.about-visual { display: flex; justify-content: center; }
.about-visual svg { width: 100%; max-width: 420px; height: auto; }

/* ---------- 底部 CTA ---------- */
.cta { padding-bottom: 112px; }
.cta-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 40px;
  background: var(--accent); color: #fff;
  border-radius: var(--radius-lg); padding: 60px 64px;
  background-image: radial-gradient(circle at 85% 20%, rgba(255,255,255,.14) 0%, rgba(255,255,255,0) 45%);
}
.cta-inner h2 { color: #fff; font-size: clamp(1.8rem, 3.2vw, 2.6rem); font-weight: 800; }
.cta-inner p { margin-top: 14px; color: rgba(255, 255, 255, 0.82); font-size: 15px; }
.cta-inner .btn { white-space: nowrap; }

/* ---------- 页脚 ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 46px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 32px; }
.footer-brand .brand-mark { width: 28px; height: 28px; }
.footer-brand .brand-text { font-size: 15px; }
.footer-note { font-size: 13px; color: var(--muted); }
.footer-copy { margin-left: auto; font-size: 12px; color: var(--muted); }

/* ---------- 滚动进入动画 ---------- */
[data-reveal] {
  opacity: 0; transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}
[data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay: 0.09s; }
[data-reveal-delay="2"] { transition-delay: 0.18s; }
[data-reveal-delay="3"] { transition-delay: 0.27s; }

/* 无 JS 时直接显示内容 */
.no-js [data-reveal] { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .hero-inner { gap: 32px; }
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-card--wide { grid-column: span 2; }
  .about-inner { gap: 44px; }
  .cta-inner { padding: 48px; }
}

@media (max-width: 800px) {
  .container { padding-inline: 20px; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 12px 20px 20px; box-shadow: 0 20px 40px -24px rgba(15,23,42,.35);
  }
  .nav.is-open { display: flex; }
  .nav > a:not(.nav-cta) { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .nav-cta { margin-top: 14px; justify-content: center; }
  .menu-toggle { display: inline-flex; }

  .hero { padding-top: 52px; }
  .hero-inner { grid-template-columns: 1fr; min-height: 0; gap: 24px; padding-bottom: 20px; }
  .hero-copy { padding-bottom: 0; order: 1; }
  .hero-visual { order: 2; }
  .hero-art { max-width: 420px; }
  .hero h1 { font-size: clamp(2.6rem, 9vw, 4rem); }
  .hero-lead { font-size: 16px; }
  .desktop-only { display: none; }

  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }

  .section { padding: 80px 0; }
  .section-head--split { grid-template-columns: 1fr; gap: 20px; }
  .section-head { margin-bottom: 36px; }

  .advantage-list { grid-template-columns: 1fr; }
  .about { padding-top: 10px; }
  .about-inner { grid-template-columns: 1fr; gap: 32px; }
  .about-visual { order: -1; }
  .about-visual svg { max-width: 300px; }

  .cta { padding-bottom: 80px; }
  .cta-inner { flex-direction: column; align-items: flex-start; padding: 40px 28px; gap: 28px; }
  .footer-copy { margin-left: 0; width: 100%; }
}

@media (max-width: 560px) {
  .project-grid { grid-template-columns: 1fr; }
  .project-card--wide, .project-card--banner { grid-column: auto; }
  .project-card { min-height: 0; padding: 26px; }
  .project-card--banner { flex-direction: column; align-items: flex-start; gap: 20px; padding: 28px; }
  .hero-actions .btn { width: 100%; }
  .stat strong { font-size: 27px; }
}

/* ---------- 减少动效偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
