/* ============ AutoCode 官网样式 ============ */
:root {
  --primary: #6366f1;
  --primary-dark: #4749c2;
  --primary-soft: #eef0ff;
  --hero-bg: #0e0f23;
  --hero-bg2: #171a3a;
  --bg: #ffffff;
  --bg-alt: #f6f7fb;
  --ink: #1b1d2e;
  --ink-soft: #5b5f78;
  --border: #e6e8f2;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(27, 29, 46, 0.07);
  --shadow-lg: 0 16px 48px rgba(27, 29, 46, 0.14);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

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

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; font-weight: 600; border-radius: 12px; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  border: 1px solid transparent;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); box-shadow: 0 10px 26px rgba(99, 102, 241, .4); }
.btn-ghost {
  background: transparent; color: #dfe2ff; border-color: rgba(223, 226, 255, .35);
}
.btn-ghost:hover { border-color: rgba(223, 226, 255, .7); background: rgba(255, 255, 255, .06); }
.btn-lg { padding: 14px 34px; font-size: 17px; }
.btn-xl { padding: 18px 56px; font-size: 19px; }
.btn-sm { padding: 8px 20px; font-size: 14px; border-radius: 10px; }
.btn-note { font-size: 12px; font-weight: 400; opacity: .85; }

/* ---------- 顶部导航 ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255, 255, 255, .86); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .2s ease;
}
.nav.scrolled { box-shadow: 0 4px 20px rgba(27, 29, 46, .08); }
.nav-inner {
  max-width: 1160px; margin: 0 auto; padding: 12px 24px;
  display: flex; align-items: center; gap: 32px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; }
.brand-logo { width: 32px; height: 32px; border-radius: 8px; }
.nav-links { display: flex; gap: 26px; margin-left: auto; font-size: 15px; color: var(--ink-soft); }
.nav-links a:hover { color: var(--primary); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 150px 0 110px; background: linear-gradient(160deg, var(--hero-bg) 0%, var(--hero-bg2) 100%); color: #fff; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(600px 340px at 78% 18%, rgba(99, 102, 241, .35), transparent 65%),
    radial-gradient(480px 300px at 12% 82%, rgba(139, 143, 245, .16), transparent 65%);
}
.hero-inner {
  position: relative; max-width: 1160px; margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center;
}
.hero-badge {
  display: inline-block; padding: 6px 14px; border-radius: 999px; font-size: 13px;
  background: rgba(99, 102, 241, .18); border: 1px solid rgba(139, 143, 245, .4); color: #c7caff;
  margin-bottom: 22px;
}
.hero h1 { font-size: 44px; line-height: 1.3; font-weight: 800; letter-spacing: .5px; }
.hero h1 .grad {
  background: linear-gradient(92deg, #8b8ff5 0%, #a5b4fc 45%, #c4b5fd 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { margin: 22px 0 30px; font-size: 16px; color: #b9bce0; }
.hero-cta { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.hero-points { margin-top: 34px; list-style: none; display: grid; gap: 10px; }
.hero-points li { position: relative; padding-left: 26px; color: #cdd0ee; font-size: 14.5px; }
.hero-points li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 18px; height: 18px; border-radius: 50%; font-size: 11px; line-height: 18px; text-align: center;
  background: rgba(99, 102, 241, .35); color: #dfe2ff;
}
.hero-visual { position: relative; }
.hero-visual::before {
  content: ""; position: absolute; inset: -8% -6%; z-index: 0;
  background: radial-gradient(60% 55% at 50% 45%, rgba(99, 102, 241, .4), transparent 70%);
  filter: blur(10px);
}
.window {
  position: relative; z-index: 1; border-radius: 14px; overflow: hidden;
  background: #14162e; border: 1px solid rgba(165, 180, 252, .25);
  box-shadow: 0 30px 80px rgba(5, 6, 20, .55);
}
.window-bar {
  display: flex; align-items: center; gap: 7px; padding: 10px 14px;
  background: #1b1e3c; border-bottom: 1px solid rgba(165, 180, 252, .15);
}
.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot-r { background: #ff5f57; } .dot-y { background: #febc2e; } .dot-g { background: #28c840; }
.window-title { margin-left: 10px; font-size: 12.5px; color: #9aa0cf; }
.window img { width: 100%; }

/* ---------- 信任条 ---------- */
.trustbar { border-bottom: 1px solid var(--border); background: var(--bg); }
.trustbar-inner {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 26px 24px;
}
.trust-item { display: flex; align-items: center; gap: 12px; color: var(--ink-soft); font-size: 14.5px; font-weight: 500; }
.t-icon { width: 24px; height: 24px; color: var(--primary); flex: none; }

/* ---------- 通用 section ---------- */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); }
.section-title { font-size: 34px; font-weight: 800; text-align: center; letter-spacing: .5px; }
.section-sub { text-align: center; color: var(--ink-soft); margin: 14px auto 52px; max-width: 640px; font-size: 16px; }

/* ---------- 功能卡片 ---------- */
.features-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 22px; box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #cdd2ff; }
.card-icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--primary-soft); color: var(--primary); margin-bottom: 16px;
}
.card-icon svg { width: 24px; height: 24px; }
.card h3 { font-size: 17px; margin-bottom: 8px; }
.card p { font-size: 14px; color: var(--ink-soft); }

/* ---------- 产品界面画廊 ---------- */
.gallery {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(300px, 46%);
  gap: 22px; overflow-x: auto; padding: 8px 4px 26px;
  scroll-snap-type: x mandatory; scrollbar-width: thin;
}
.shot {
  scroll-snap-align: center; background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.shot img { width: 100%; aspect-ratio: 16/10; object-fit: cover; object-position: top; }
.shot figcaption { padding: 12px 16px; font-size: 13.5px; color: var(--ink-soft); text-align: center; }

/* ---------- 工作流程 ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step {
  position: relative; padding: 28px 22px 24px; background: var(--bg);
  border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
}
.step-num {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #8b5cf6); color: #fff;
  font-weight: 700; font-size: 17px; margin-bottom: 14px;
}
.step h3 { font-size: 16.5px; margin-bottom: 8px; }
.step p { font-size: 13.5px; color: var(--ink-soft); }

/* ---------- 系统要求 ---------- */
.req-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.req-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow); }
.req-card h3 { font-size: 17px; margin-bottom: 14px; color: var(--primary); }
.req-card ul { list-style: none; display: grid; gap: 10px; }
.req-card li { position: relative; padding-left: 22px; font-size: 14px; color: var(--ink-soft); }
.req-card li::before { content: ""; position: absolute; left: 0; top: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--primary); opacity: .55; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 14px; }
.faq-item {
  background: var(--bg); border: 1px solid var(--border); border-radius: 12px;
  padding: 4px 22px; transition: border-color .15s ease;
}
.faq-item[open] { border-color: #c3c8ff; box-shadow: var(--shadow); }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 16px 0; font-weight: 600; font-size: 15.5px;
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; flex: none; font-size: 20px; color: var(--primary); font-weight: 500;
  transition: transform .15s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 0 18px; font-size: 14.5px; color: var(--ink-soft); }

/* ---------- 下载区 ---------- */
.download-section { background: var(--bg-alt); }
.download-card {
  text-align: center; padding: 60px 40px; border-radius: 22px; color: #fff;
  background: linear-gradient(155deg, #131531 0%, #1d2050 60%, #262a6b 100%);
  box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.download-card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(420px 260px at 82% 8%, rgba(139, 143, 245, .4), transparent 65%);
}
.download-icon { width: 76px; height: 76px; border-radius: 18px; margin: 0 auto 20px; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.download-card h2 { font-size: 26px; margin-bottom: 10px; position: relative; }
.download-meta { color: #b9bce0; font-size: 14.5px; margin-bottom: 28px; position: relative; }
.download-card .btn { position: relative; }
.download-hash { margin-top: 24px; font-size: 12.5px; color: #9aa0cf; position: relative; }
.download-hash code { font-family: Consolas, "Courier New", monospace; word-break: break-all; color: #c7caff; }
.download-note { margin-top: 8px; font-size: 12px; color: #8388b8; position: relative; }

/* ---------- 页脚 ---------- */
.footer { background: #0b0c1c; color: #a4a8c8; padding: 54px 0 40px; }
.footer-inner { display: flex; align-items: flex-start; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-brand .brand-logo { display: inline-block; vertical-align: middle; margin-right: 8px; }
.footer-brand span { font-weight: 700; font-size: 17px; color: #e8e9ff; }
.footer-brand p { margin-top: 8px; font-size: 13px; }
.footer-links { display: grid; gap: 10px; font-size: 14px; }
.footer-links a:hover { color: #fff; }
.footer-copy { font-size: 13px; text-align: right; }
.footer-icp { margin-top: 6px; opacity: .65; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 44px; }
  .hero { padding: 130px 0 90px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .trustbar-inner { grid-template-columns: repeat(2, 1fr); }
  .req-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .hero h1 { font-size: 32px; }
  .features-grid, .steps { grid-template-columns: 1fr; }
  .trustbar-inner { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .section-title { font-size: 27px; }
  .gallery { grid-auto-columns: 84%; }
  .footer-inner { flex-direction: column; gap: 26px; }
  .footer-copy { text-align: left; }
  .download-card { padding: 44px 22px; }
}
