/* ============ Cursor 助手官网样式 ============ */

:root {
  --bg: #0d1117;
  --bg-soft: #11161f;
  --panel: #151b26;
  --panel-2: #1a2230;
  --line: #232c3b;
  --text: #e6edf3;
  --text-dim: #9aa7b8;
  --text-faint: #6b7686;
  --accent: #57e6c8;
  --accent-2: #5b8cff;
  --grad: linear-gradient(100deg, #57e6c8 0%, #5b8cff 60%, #a06bff 100%);
  --radius: 14px;
  --mono: "Cascadia Code", "JetBrains Mono", Consolas, "Courier New", monospace;
  --sans: "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 780px; }

code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.1em 0.4em;
  color: var(--accent);
}

/* ============ 导航 ============ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 14px 0;
  transition: background 0.25s, box-shadow 0.25s, padding 0.25s;
}
.nav.scrolled {
  background: rgba(13, 17, 23, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
  padding: 10px 0;
}
.nav-inner { display: flex; align-items: center; gap: 28px; }

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--panel-2); border: 1px solid var(--line);
  font-family: var(--mono); font-weight: 700; font-size: 14px; color: var(--accent);
}
.brand-name { font-weight: 700; letter-spacing: 0.2px; font-size: 16px; }
.brand-name em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a {
  color: var(--text-dim); text-decoration: none; font-size: 14.5px;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

.nav-actions { display: flex; gap: 12px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span {
  display: block; width: 22px; height: 2px; background: var(--text);
  margin: 5px 0; border-radius: 2px; transition: transform 0.25s, opacity 0.25s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ 按钮 ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 9px 20px; border-radius: 10px;
  font-size: 14.5px; font-weight: 600; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
}
.btn:active { transform: translateY(1px); }
.btn-lg { padding: 13px 28px; font-size: 16px; border-radius: 12px; }
.btn-primary {
  background: var(--grad); color: #08131a;
  box-shadow: 0 4px 24px rgba(87, 230, 200, 0.25);
}
.btn-primary:hover { box-shadow: 0 6px 32px rgba(87, 230, 200, 0.4); transform: translateY(-1px); }
.btn-ghost { color: var(--text); border-color: var(--line); background: rgba(255,255,255,0.02); }
.btn-ghost:hover { border-color: var(--text-faint); background: var(--panel-2); }
.btn-outline { color: var(--accent); border-color: rgba(87, 230, 200, 0.4); background: transparent; }
.btn-outline:hover { background: rgba(87, 230, 200, 0.08); }

/* ============ Hero ============ */
.hero { position: relative; padding: 170px 0 90px; overflow: hidden; }
.hero-glow {
  position: absolute; top: -320px; left: 50%; transform: translateX(-50%);
  width: 1100px; height: 640px; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(91, 140, 255, 0.16) 0%, rgba(87, 230, 200, 0.07) 40%, transparent 70%);
}
.hero-inner {
  position: relative; display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 56px; align-items: center;
}

.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--accent);
  border: 1px solid rgba(87, 230, 200, 0.35); border-radius: 999px;
  padding: 3px 14px; margin-bottom: 20px;
  background: rgba(87, 230, 200, 0.06);
}
.hero h1 {
  font-size: clamp(34px, 4.6vw, 54px); line-height: 1.22;
  font-weight: 800; letter-spacing: -0.5px; margin-bottom: 22px;
}
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { font-size: 17.5px; color: var(--text-dim); max-width: 560px; margin-bottom: 32px; }
.lede strong { color: var(--text); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 22px; }

/* 真实产品截图 */
.shot {
  display: block; width: 100%; height: auto;
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(87, 230, 200, 0.05);
  transform: perspective(1200px) rotateY(-4deg) rotateX(2deg);
}

/* ============ 通用 Section ============ */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; letter-spacing: -0.4px; margin-bottom: 14px; }
.section-sub { color: var(--text-dim); font-size: 16px; }

/* ============ 特性卡片 ============ */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  opacity: 0; transform: translateY(18px);
}
.card.in { opacity: 1; transform: none; transition: opacity 0.5s ease, transform 0.5s ease, border-color 0.2s, box-shadow 0.2s; }
.card:hover { transform: translateY(-4px); border-color: rgba(87, 230, 200, 0.35); box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35); }
.card-icon {
  width: 44px; height: 44px; border-radius: 11px; margin-bottom: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 21px; color: var(--accent);
  background: rgba(87, 230, 200, 0.08); border: 1px solid rgba(87, 230, 200, 0.22);
}
.card h3 { font-size: 16.5px; margin-bottom: 8px; font-weight: 700; }
.card p { font-size: 13.8px; color: var(--text-dim); }

/* ============ 架构 ============ */
.arch-flow {
  display: grid; grid-template-columns: 1fr auto 1.25fr auto 1fr;
  gap: 8px; align-items: stretch; margin-bottom: 44px;
}
.arch-node {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 22px; text-align: center; position: relative;
  display: flex; flex-direction: column; justify-content: center; gap: 8px;
}
.arch-node-hl { border-color: rgba(87, 230, 200, 0.45); box-shadow: 0 0 44px rgba(87, 230, 200, 0.09); }
.arch-tag {
  font-size: 11.5px; color: var(--text-faint); font-family: var(--mono);
  letter-spacing: 0.4px;
}
.arch-node h3 { font-size: 19px; font-weight: 800; }
.arch-node p { font-size: 13.5px; color: var(--text-dim); }
.arch-arrow {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; color: var(--text-faint); font-size: 12px; text-align: center;
  font-family: var(--mono); min-width: 130px;
}
.arch-arrow svg { color: var(--accent); }

.arch-notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.note { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.note h4 { font-size: 15px; margin-bottom: 8px; color: var(--accent); }
.note p { font-size: 13.8px; color: var(--text-dim); }

/* ============ 快速开始 ============ */
.steps { list-style: none; display: flex; flex-direction: column; gap: 14px; max-width: 860px; margin: 0 auto; }
.step {
  display: flex; gap: 22px; align-items: center;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 28px; min-width: 0;
}
.step-body { min-width: 0; }
.step-no {
  flex: none; width: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 17px; color: #08131a;
  background: var(--grad);
}
.step-body h3 { font-size: 17.5px; margin-bottom: 8px; }
.step-body p { font-size: 14.5px; color: var(--text-dim); margin-bottom: 12px; }
.step-body pre { margin: 0; }

pre {
  background: #0a0e14; border: 1px solid var(--line); border-radius: 10px;
  padding: 16px 18px; overflow-x: auto;
}
pre code { background: none; border: 0; padding: 0; color: #c9d6e5; font-size: 13px; line-height: 1.75; }

.callout {
  max-width: 860px; margin: 30px auto 0;
  border: 1px solid rgba(91, 140, 255, 0.35); border-left: 3px solid var(--accent-2);
  background: rgba(91, 140, 255, 0.06); border-radius: 10px; padding: 18px 24px;
}
.callout strong { color: var(--accent-2); font-size: 14.5px; }
.callout p { font-size: 14px; color: var(--text-dim); margin-top: 4px; }

/* ============ FAQ ============ */
details {
  border: 1px solid var(--line); border-radius: 12px;
  background: var(--panel); margin-bottom: 14px; overflow: hidden;
}
summary {
  cursor: pointer; list-style: none; padding: 18px 24px;
  font-weight: 600; font-size: 15.5px; position: relative; padding-right: 52px;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  font-size: 20px; color: var(--accent); font-weight: 400;
  transition: transform 0.25s;
}
details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
details p { padding: 0 24px 20px; color: var(--text-dim); font-size: 14.5px; }

/* ============ 页脚 ============ */
.footer { border-top: 1px solid var(--line); padding: 40px 0 46px; background: var(--bg); }
.footer-inner { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.footer-note { color: var(--text-faint); font-size: 13px; }
.footer-links { margin-left: auto; display: flex; gap: 20px; }
.footer-links a { color: var(--text-dim); text-decoration: none; font-size: 13.5px; }
.footer-links a:hover { color: var(--text); }

/* ============ 入场动画 ============ */
.reveal { opacity: 0; transform: translateY(22px); }
.reveal.in { opacity: 1; transform: none; transition: opacity 0.6s ease, transform 0.6s ease; }

/* ============ 响应式 ============ */
@media (max-width: 1024px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .hero-copy, .hero-visual { min-width: 0; }
  .shot { transform: none; }
  .arch-flow { grid-template-columns: minmax(0, 1fr); }
  .arch-arrow { min-height: 76px; }
  .arch-arrow svg { transform: rotate(90deg); }
}

@media (max-width: 760px) {
  .nav-links, .nav-actions { display: none; }
  .nav-toggle { display: block; margin-left: auto; }
  .nav.open .nav-links {
    display: flex; flex-direction: column; gap: 4px;
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(13, 17, 23, 0.97); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line); padding: 12px 24px 18px;
  }
  .nav.open .nav-links a { padding: 10px 0; font-size: 16px; }
  .nav.open .nav-actions {
    display: none;
  }
  .hero { padding-top: 130px; }
  .feature-grid { grid-template-columns: 1fr; }
  .arch-notes { grid-template-columns: 1fr; }
  .step { flex-direction: column; gap: 14px; padding: 24px; align-items: stretch; }
  .section { padding: 68px 0; }
  .footer-links { margin-left: 0; }
}
