/* 软件工厂 展示站 —— 深色工程风，蓝→青强调色，呼应 admin 控制台 */
:root {
  --bg: #0b1020;
  --bg-alt: #0e1430;
  --panel: #141b35;
  --panel-2: #1a2244;
  --border: rgba(148, 163, 184, 0.16);
  --text: #e6ebf5;
  --muted: #9aa6c2;
  --accent: #38bdf8;
  --accent-2: #34d399;
  --accent-grad: linear-gradient(120deg, #38bdf8 0%, #34d399 100%);
  --radius: 12px;
  --maxw: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 12px;
}

/* ── Nav ───────────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
  background: rgba(11, 16, 32, 0.72);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.site-nav.scrolled { border-bottom-color: var(--border); }

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; }
.brand-mark {
  display: block;
  width: 30px;
  height: 30px;
  border-radius: 8px;
}
.brand-name { font-size: 16px; letter-spacing: 0.01em; }

.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { color: var(--muted); font-size: 14px; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.nav-cta {
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--accent-grad);
  color: #04121b !important;
  font-weight: 700;
}

/* ── Hero ──────────────────────────────────────── */
.hero {
  position: relative;
  padding: 96px 24px 88px;
  background:
    radial-gradient(1200px 520px at 70% -10%, rgba(56, 189, 248, 0.14), transparent 60%),
    radial-gradient(900px 480px at 10% 10%, rgba(52, 211, 153, 0.10), transparent 55%),
    var(--bg);
  overflow: hidden;
}
.hero-inner { max-width: var(--maxw); margin: 0 auto; }
.hero h1 {
  font-size: clamp(34px, 5.4vw, 60px);
  line-height: 1.08;
  margin: 0 0 20px;
  font-weight: 800;
}
.hero-sub {
  max-width: 720px;
  font-size: clamp(15px, 1.6vw, 18px);
  color: var(--muted);
  margin: 0 0 32px;
}
.hero-sub strong { color: var(--text); }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 52px; }
.btn {
  display: inline-flex;
  align-items: center;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  font-family: inherit;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s, border-color 0.2s;
}
.btn-primary {
  background: var(--accent-grad);
  color: #04121b;
  box-shadow: 0 8px 28px rgba(56, 189, 248, 0.25);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(56, 189, 248, 0.32); }
.btn-ghost { border-color: var(--border); background: transparent; color: var(--text); }
.btn-ghost:hover { background: var(--panel); border-color: rgba(148, 163, 184, 0.3); }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  max-width: 720px;
}
.hero-stats div {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(20, 27, 53, 0.6);
  padding: 18px 16px;
}
.hero-stats dt { font-size: 26px; font-weight: 800; color: var(--text); }
.hero-stats dd { margin: 4px 0 0; font-size: 13px; color: var(--muted); }

/* ── Bands ─────────────────────────────────────── */
.band { padding: 84px 24px; }
.band-alt { background: var(--bg-alt); }
.band-head { max-width: var(--maxw); margin: 0 auto 40px; }
.band-head h2 { font-size: clamp(24px, 3.2vw, 36px); margin: 0 0 12px; font-weight: 800; line-height: 1.2; }
.band-sub { color: var(--muted); max-width: 680px; margin: 0; font-size: 16px; }

/* ── Feature grid ──────────────────────────────── */
.feature-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.feature-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  transition: transform 0.18s ease, border-color 0.2s ease, background 0.2s;
}
.feature-card:hover { transform: translateY(-4px); border-color: rgba(56, 189, 248, 0.4); background: var(--panel-2); }
.feature-card h3 { margin: 0 0 8px; font-size: 17px; }
.feature-card p { margin: 0; color: var(--muted); font-size: 14px; }

/* ── Preview / 产品截图轮播 ────────────────────── */
.carousel {
  max-width: var(--maxw);
  margin: 0 auto;
  position: relative;
}
.carousel-viewport { overflow: hidden; border-radius: 16px; }
.carousel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform;
}
.slide {
  margin: 0;
  flex: 0 0 100%;
  min-width: 100%;
}
.slide img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
}
.slide figcaption {
  margin-top: 14px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
.carousel-btn {
  position: absolute;
  top: calc(50% - 24px);
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(11, 16, 32, 0.72);
  backdrop-filter: blur(8px);
  color: var(--text);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}
.carousel-btn:hover { background: var(--panel-2); border-color: rgba(56, 189, 248, 0.5); }
.carousel-btn:active { transform: translateY(-50%) scale(0.94); }
.carousel-btn.prev { left: -10px; }
.carousel-btn.next { right: -10px; }
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}
.carousel-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.32);
  cursor: pointer;
  transition: width 0.25s, background 0.25s;
}
.carousel-dots button.active {
  width: 26px;
  border-radius: 5px;
  background: var(--accent-grad);
}
.preview-cta {
  max-width: var(--maxw);
  margin: 28px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.preview-cta-note { color: var(--muted); font-size: 13px; }

/* ── Workflow ──────────────────────────────────── */
.workflow {
  max-width: var(--maxw);
  margin: 0 auto;
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  counter-reset: step;
}
.workflow li {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 22px;
}
.step-no {
  font-size: 13px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.08em;
}
.workflow h3 { margin: 8px 0 6px; font-size: 17px; }
.workflow p { margin: 0; color: var(--muted); font-size: 14px; }

/* ── Roles ─────────────────────────────────────── */
.role-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.role-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  border-top: 3px solid var(--accent);
}
/* 顶边配色循环：角色数量任意增减都自动着色 */
.role-card:nth-child(6n+1) { border-top-color: #38bdf8; }
.role-card:nth-child(6n+2) { border-top-color: #34d399; }
.role-card:nth-child(6n+3) { border-top-color: #a78bfa; }
.role-card:nth-child(6n+4) { border-top-color: #f59e0b; }
.role-card:nth-child(6n+5) { border-top-color: #f472b6; }
.role-card:nth-child(6n+6) { border-top-color: #22d3ee; }
.role-card header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.role-card h3 { margin: 0; font-size: 18px; }
.role-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.16);
  color: var(--muted);
}
.role-card p { margin: 0; color: var(--muted); font-size: 14px; }

/* ── IPO ───────────────────────────────────────── */
.ws-layout {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.ws-text h2 { font-size: clamp(22px, 2.8vw, 32px); margin: 0 0 14px; font-weight: 800; line-height: 1.22; }
.ws-rules { margin: 20px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.ws-rules li {
  padding-left: 22px;
  position: relative;
  color: var(--muted);
  font-size: 14.5px;
}
.ws-rules li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 9px; height: 9px;
  border-radius: 3px;
  background: var(--accent-grad);
}
.ws-rules strong { color: var(--text); }

/* 质量验收卡片：用"通过/返工"行展现验收过程，不暴露任何实现细节 */
.quality-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  display: grid;
  gap: 10px;
}
.quality-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(148, 163, 184, 0.06);
  border: 1px solid var(--border);
}
.q-state {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
}
.quality-row.pass .q-state { background: rgba(52, 211, 153, 0.16); color: #34d399; }
.quality-row.warn .q-state { background: rgba(245, 158, 11, 0.16); color: #f59e0b; }
.q-text { font-size: 14px; color: var(--text); }
.quality-foot {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 4px 2px;
  font-size: 13px;
  color: var(--muted);
}
.q-progress {
  flex: 1;
  height: 8px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.18);
  overflow: hidden;
}
.q-progress i { display: block; height: 100%; background: var(--accent-grad); }

/* ── Value ─────────────────────────────────────── */
.value-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.value-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 28px 24px;
}
.value-card h3 {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 800;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.value-card p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* ── Contact ───────────────────────────────────── */
.band-contact {
  background:
    radial-gradient(900px 420px at 80% 0%, rgba(52, 211, 153, 0.12), transparent 60%),
    var(--bg-alt);
}
.contact-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.contact-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 26px 24px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.18s ease, border-color 0.2s;
}
a.contact-card:hover { transform: translateY(-4px); border-color: rgba(52, 211, 153, 0.45); }
.contact-label { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-2); font-weight: 700; }
.contact-value { font-size: 22px; font-weight: 800; color: var(--text); font-family: ui-monospace, "SF Mono", Menlo, monospace; }

/* ── Footer ────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--border); padding: 28px 24px; background: var(--bg); }
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
}
.footer-tag { flex: 1; min-width: 200px; }

/* ── Reveal animation ──────────────────────────── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ── Responsive ────────────────────────────────── */
@media (max-width: 980px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .workflow { grid-template-columns: repeat(2, 1fr); }
  .role-grid { grid-template-columns: repeat(2, 1fr); }
  .value-grid { grid-template-columns: repeat(3, 1fr); }
  .ws-layout { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .nav-links a:not(.nav-cta) { display: none; }
  .feature-grid, .workflow, .role-grid, .value-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero { padding: 64px 20px 56px; }
  .band { padding: 56px 20px; }
  /* 轮播箭头移进视口内，避免溢出屏幕 */
  .carousel-btn.prev { left: 8px; }
  .carousel-btn.next { right: 8px; }
  .carousel-btn { width: 38px; height: 38px; font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
