/* ============================================================
   路图科技 官网样式
   设计令牌 Design Tokens
   ============================================================ */

:root {
  /* 色彩 Color */
  --bg-deep: #060b18;
  --bg-grad-1: #0a1428;
  --bg-grad-2: #101f3f;
  --bg-grad-3: #0c1930;
  --accent-blue: #4f7fff;
  --accent-blue-soft: #8fb8ff;
  --accent-cyan: #5eead4;
  --text-primary: #eaf0ff;
  --text-muted: #8593b4;
  --text-faint: #56628a;
  --line-soft: rgba(143, 184, 255, 0.14);
  --line-strong: rgba(79, 127, 255, 0.4);
  --card-bg: rgba(16, 27, 51, 0.55);
  --card-bg-hover: rgba(20, 34, 64, 0.75);
  --border-subtle: rgba(143, 184, 255, 0.16);
  --danger: #ff6b6b;
  --success: #5eead4;

  /* 字体 Typography */
  --font-display: "Chakra Petch", "Noto Sans SC", sans-serif;
  --font-body: "Noto Sans SC", "Inter", sans-serif;
  --font-mono: "JetBrains Mono", "Noto Sans SC", monospace;

  /* 布局 Layout */
  --max-width: 1180px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --header-h: 76px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--text-primary);
  background:
    radial-gradient(ellipse 80% 60% at 15% 0%, rgba(79, 127, 255, 0.16), transparent 60%),
    radial-gradient(ellipse 60% 50% at 100% 20%, rgba(94, 234, 212, 0.08), transparent 55%),
    linear-gradient(180deg, var(--bg-grad-1) 0%, var(--bg-deep) 45%, var(--bg-grad-3) 100%);
  background-attachment: fixed;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.01em;
  margin: 0;
}

p { margin: 0; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: "";
  width: 16px;
  height: 1px;
  background: var(--accent-cyan);
  display: inline-block;
}

/* ---------------- Header ---------------- */

#site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(6, 11, 24, 0.72);
  border-bottom: 1px solid var(--border-subtle);
}

.nav {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-mark {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}

/* Logo chip: light rounded backdrop so the logo reads cleanly on the dark theme */
.logo-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: #f6f4ee;
  border-radius: 10px;
  overflow: hidden;
}
.logo-chip img { width: 100%; height: 100%; object-fit: contain; display: block; }

.nav-logo-chip { width: 42px; height: 42px; padding: 4px; }
.footer-logo-chip { width: 44px; height: 44px; padding: 4px; margin-bottom: 10px; }
.hero-logo-chip { width: 92px; height: 92px; padding: 10px; border-radius: 18px; margin: 0 auto 24px; }

.nav-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.nav-brand-cn {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
}

.nav-brand-en {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  position: relative;
  padding: 8px 16px;
  font-size: 14px;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-links a:hover {
  color: var(--text-primary);
  background: rgba(143, 184, 255, 0.08);
}

.nav-links a.active {
  color: var(--accent-blue-soft);
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 3px;
  height: 2px;
  background: var(--accent-cyan);
  border-radius: 2px;
}

.nav-cta {
  margin-left: 8px;
  padding: 9px 20px !important;
  border: 1px solid var(--line-strong);
  border-radius: 999px !important;
  color: var(--text-primary) !important;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.03em;
}

.nav-cta:hover {
  background: var(--accent-blue) !important;
  border-color: var(--accent-blue);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
}

/* ---------------- Buttons ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: linear-gradient(135deg, var(--accent-blue), #3960d6);
  color: #fff;
  box-shadow: 0 8px 24px -8px rgba(79, 127, 255, 0.55);
}
.btn-primary:hover { box-shadow: 0 12px 28px -8px rgba(79, 127, 255, 0.7); }

.btn-ghost {
  border-color: var(--border-subtle);
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.02);
}
.btn-ghost:hover { border-color: var(--line-strong); background: rgba(143, 184, 255, 0.06); }

/* ---------------- Hero (signature element) ---------------- */

.hero {
  padding: 72px 0 96px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
}

.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: radial-gradient(ellipse 70% 70% at 50% 100%, rgba(79, 127, 255, 0.22), transparent 70%),
    linear-gradient(180deg, #0a1226 0%, #050a17 100%);
}

.hero-visual svg { width: 100%; height: 100%; }

.node {
  animation: float 6s ease-in-out infinite;
}
.node:nth-child(2n) { animation-duration: 7.5s; animation-delay: -1.5s; }
.node:nth-child(3n) { animation-duration: 5.2s; animation-delay: -2.8s; }
.node:nth-child(4n) { animation-duration: 8.4s; animation-delay: -0.6s; }

@keyframes float {
  0%, 100% { transform: translateY(0px); opacity: 0.85; }
  50% { transform: translateY(-9px); opacity: 1; }
}

.road-line {
  stroke-dasharray: 4 6;
  animation: dash 22s linear infinite;
}
@keyframes dash {
  to { stroke-dashoffset: -400; }
}

.hero-copy .eyebrow { margin-bottom: 18px; }

.hero-copy h1 {
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.25;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.hero-copy .name-en {
  display: block;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--text-faint);
  margin-bottom: 22px;
}

.hero-lead {
  font-size: 17px;
  color: var(--text-primary);
  opacity: 0.92;
  margin-bottom: 14px;
  max-width: 46ch;
}

.hero-sub {
  font-size: 14.5px;
  color: var(--text-muted);
  max-width: 52ch;
  margin-bottom: 34px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
}

.hero-stat-num {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--accent-cyan);
}
.hero-stat-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-faint);
  letter-spacing: 0.06em;
  margin-top: 2px;
}

/* ---------------- Sections ---------------- */

.section {
  padding: 88px 0;
  border-top: 1px solid var(--line-soft);
}

.section-head {
  margin-bottom: 48px;
  max-width: 640px;
}

.section-head h2 {
  font-size: clamp(24px, 2.6vw, 32px);
  color: var(--text-primary);
  margin-top: 14px;
}

.section-head p {
  color: var(--text-muted);
  margin-top: 14px;
  font-size: 15px;
}

/* Page hero (non-home pages) */
.page-hero {
  padding: 64px 0 48px;
}
.page-hero h1 {
  font-size: clamp(28px, 3.2vw, 40px);
  margin-top: 14px;
}
.page-hero p {
  color: var(--text-muted);
  margin-top: 16px;
  max-width: 62ch;
  font-size: 15.5px;
}

/* ---------------- Cards / Grid ---------------- */

.grid {
  display: grid;
  gap: 20px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 26px 24px;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.card:hover {
  background: var(--card-bg-hover);
  border-color: var(--line-strong);
  transform: translateY(-3px);
}

.card-index {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-cyan);
  letter-spacing: 0.08em;
}

.card h3 {
  font-size: 17px;
  margin: 12px 0 8px;
  color: var(--text-primary);
}

.card p {
  font-size: 14px;
  color: var(--text-muted);
}

/* ---------------- Team ---------------- */

.person-card {
  text-align: left;
}
.person-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: #06101f;
  margin-bottom: 16px;
}
.person-name { font-size: 16px; color: var(--text-primary); font-weight: 600; }
.person-role {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-blue-soft);
  margin: 4px 0 12px;
}
.person-bio { font-size: 13.5px; color: var(--text-muted); }
.person-dept {
  display: inline-block;
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-faint);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  padding: 3px 10px;
}

/* ---------------- Roadmap timeline ---------------- */

.timeline {
  position: relative;
  padding-left: 32px;
  border-left: 1px solid var(--line-soft);
}

.timeline-item {
  position: relative;
  padding-bottom: 44px;
}
.timeline-item:last-child { padding-bottom: 0; }

.timeline-dot {
  position: absolute;
  left: -37px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg-deep);
  border: 2px solid var(--text-faint);
}
.timeline-item.current .timeline-dot {
  border-color: var(--accent-cyan);
  background: var(--accent-cyan);
  box-shadow: 0 0 0 4px rgba(94, 234, 212, 0.18);
}
.timeline-item.done .timeline-dot {
  border-color: var(--accent-blue-soft);
  background: var(--accent-blue-soft);
}

.timeline-time {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-cyan);
  letter-spacing: 0.06em;
}
.timeline-item h3 { font-size: 18px; margin: 6px 0 8px; color: var(--text-primary); }
.timeline-item p { font-size: 14.5px; color: var(--text-muted); max-width: 60ch; }

.status-tag {
  display: inline-block;
  margin-left: 10px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  padding: 2px 9px;
  border-radius: 999px;
  vertical-align: middle;
}
.status-tag.current { background: rgba(94, 234, 212, 0.14); color: var(--accent-cyan); }
.status-tag.done { background: rgba(143, 184, 255, 0.14); color: var(--accent-blue-soft); }
.status-tag.future { background: rgba(133, 147, 180, 0.14); color: var(--text-muted); }

/* ---------------- Values ---------------- */

.value-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* ---------------- Welcome / system-gateway page ---------------- */

.welcome-wrap {
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  text-align: center;
}

.welcome-card {
  width: 100%;
  max-width: 460px;
}

.welcome-card .eyebrow {
  justify-content: center;
  margin-bottom: 22px;
}

.welcome-card h1 {
  font-size: clamp(26px, 3.6vw, 36px);
  color: var(--text-primary);
  margin-bottom: 12px;
}

.welcome-card .sub {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 40ch;
  margin: 0 auto 36px;
}

.system-entry-btn {
  padding: 15px 34px;
  font-size: 15px;
}

.welcome-note {
  margin-top: 28px;
  font-size: 12.5px;
  color: var(--text-faint);
  line-height: 1.8;
}

/* ---------------- Login page ---------------- */

.login-wrap {
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
}

.login-card {
  width: 100%;
  max-width: 380px;
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 40px 34px;
  backdrop-filter: blur(8px);
}

.login-mark { width: 40px; height: 40px; margin-bottom: 20px; }

.login-card h1 {
  font-size: 22px;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.login-card .sub {
  font-size: 13.5px;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.field {
  margin-bottom: 18px;
}
.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.05em;
  color: var(--text-faint);
  margin-bottom: 8px;
}
.field input {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  font-size: 14px;
  font-family: var(--font-body);
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.field input:focus {
  border-color: var(--accent-blue);
  background: rgba(79, 127, 255, 0.06);
}

.field-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  font-size: 13px;
  color: var(--text-muted);
}
.checkbox-row { display: flex; align-items: center; gap: 8px; }
.checkbox-row input { accent-color: var(--accent-blue); }

.login-submit { width: 100%; }

.form-msg {
  margin-top: 16px;
  font-size: 13px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  display: none;
}
.form-msg.show { display: block; }
.form-msg.error { background: rgba(255, 107, 107, 0.1); color: var(--danger); border: 1px solid rgba(255, 107, 107, 0.25); }
.form-msg.success { background: rgba(94, 234, 212, 0.1); color: var(--accent-cyan); border: 1px solid rgba(94, 234, 212, 0.25); }

.login-hint {
  margin-top: 22px;
  font-size: 12px;
  color: var(--text-faint);
  line-height: 1.7;
  border-top: 1px dashed var(--border-subtle);
  padding-top: 16px;
}

.dashboard-card {
  text-align: center;
}
.dashboard-card .person-avatar { margin: 0 auto 18px; width: 64px; height: 64px; font-size: 22px; }

/* ---------------- Internal system topbar (system/index.html) ---------------- */

.system-topbar {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}
.system-topbar .brand-group { display: flex; align-items: center; gap: 12px; }
.system-topbar .brand-text-cn { font-family: var(--font-display); font-size: 14px; color: var(--text-primary); }
.system-topbar .brand-text-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--accent-cyan);
  letter-spacing: 0.08em;
  margin-top: 2px;
}
.system-topbar .back-link {
  font-size: 13px;
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  padding: 8px 18px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.system-topbar .back-link:hover { color: var(--text-primary); border-color: var(--line-strong); }

/* ---------------- Footer ---------------- */

#site-footer {
  border-top: 1px solid var(--line-soft);
  padding: 48px 0 32px;
  margin-top: 40px;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-brand-cn { font-family: var(--font-display); font-size: 15px; color: var(--text-primary); }
.footer-brand-en { font-family: var(--font-mono); font-size: 11px; color: var(--text-faint); margin-top: 4px; }

.footer-links { display: flex; gap: 40px; flex-wrap: wrap; }
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  margin-bottom: 12px;
}
.footer-col a, .footer-col span {
  display: block;
  font-size: 13.5px;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.footer-col a:hover { color: var(--accent-blue-soft); }

.footer-bottom {
  border-top: 1px solid var(--line-soft);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: var(--text-faint);
  font-family: var(--font-mono);
}

/* ---------------- Utility / reveal ---------------- */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------------- Responsive ---------------- */

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 380px; margin: 0 auto; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .value-list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .nav-links { position: fixed; top: var(--header-h); left: 0; right: 0; flex-direction: column; align-items: stretch; background: rgba(6, 11, 24, 0.98); border-bottom: 1px solid var(--border-subtle); padding: 12px; gap: 2px; transform: translateY(-8px); opacity: 0; pointer-events: none; transition: all 0.25s ease; }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 12px 14px; }
  .nav-toggle { display: flex; }
  .nav-cta { margin-left: 0; margin-top: 6px; text-align: center; }
  .grid-4, .grid-3, .value-list { grid-template-columns: 1fr; }
  .footer-grid { flex-direction: column; }
  .container { padding: 0 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .node, .road-line, html { animation: none !important; scroll-behavior: auto !important; }
  .reveal { transition: none; opacity: 1; transform: none; }
}
