/* ============ WeRide Portal - Shared Styles ============ */
:root {
  --bg-0: #050b1a;
  --bg-1: #0a1428;
  --bg-2: #111c33;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(34, 211, 238, 0.35);
  --text: #e6edf7;
  --text-dim: #97a4bd;
  --text-mute: #6b7891;
  --accent: #22d3ee;
  --accent-2: #3b82f6;
  --accent-soft: rgba(34, 211, 238, 0.12);
  --shadow-glow: 0 0 40px rgba(34, 211, 238, 0.15);
  --radius: 12px;
  --max-w: 1180px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-0);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei",
               "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(ellipse 800px 500px at 15% -10%, rgba(59, 130, 246, 0.18), transparent 60%),
    radial-gradient(ellipse 700px 400px at 90% 10%, rgba(34, 211, 238, 0.12), transparent 60%),
    var(--bg-0);
}

a { color: var(--accent); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: #67e8f9; }

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

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

/* ============ Header / Nav ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 11, 26, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-weight: 600;
  letter-spacing: 0.3px;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  display: grid;
  place-items: center;
  color: #051020;
  font-weight: 800;
  font-size: 15px;
  box-shadow: 0 4px 18px rgba(34, 211, 238, 0.35);
}

.brand-text { line-height: 1.15; }
.brand-text .zh { font-size: 15px; }
.brand-text .en { font-size: 11px; color: var(--text-mute); letter-spacing: 1.5px; }

.nav-links {
  display: flex;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: inline-block;
  padding: 8px 14px;
  color: var(--text-dim);
  font-size: 14.5px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.nav-links a.active { color: var(--accent); background: var(--accent-soft); }

/* ============ Hero ============ */
.hero {
  position: relative;
  padding: 96px 0 80px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black, transparent 75%);
  pointer-events: none;
}

.hero-inner { position: relative; text-align: center; }

.hero .eyebrow {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid var(--border-strong);
  color: var(--accent);
  font-size: 12.5px;
  letter-spacing: 1.5px;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.2;
  margin: 0 0 20px;
  font-weight: 700;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #ffffff 0%, #a5c8e8 60%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero .lead {
  max-width: 760px;
  margin: 0 auto 32px;
  color: var(--text-dim);
  font-size: 17px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #051020;
  font-weight: 600;
}
.btn-primary:hover {
  color: #051020;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(34, 211, 238, 0.35);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { background: rgba(255,255,255,0.07); color: var(--accent); }

/* ============ Sections ============ */
.section {
  padding: 72px 0;
  border-top: 1px solid var(--border);
}

.section-head {
  margin-bottom: 40px;
  text-align: center;
}

.section-head .tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.08);
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 2px;
  margin-bottom: 14px;
}

.section-head h2 {
  font-size: clamp(24px, 3.4vw, 34px);
  margin: 0 0 12px;
  font-weight: 600;
  letter-spacing: -0.3px;
}

.section-head p {
  color: var(--text-dim);
  margin: 0 auto;
  max-width: 700px;
  font-size: 15.5px;
}

/* ============ Card Grid ============ */
.grid {
  display: grid;
  gap: 20px;
}
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.card {
  background: linear-gradient(180deg, rgba(17, 28, 51, 0.7) 0%, rgba(10, 20, 40, 0.5) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.card .icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--accent-soft);
  border: 1px solid var(--border-strong);
  display: grid;
  place-items: center;
  color: var(--accent);
  font-size: 20px;
  margin-bottom: 16px;
  font-weight: 700;
}

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

.card .subtitle {
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 1.2px;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.card p {
  color: var(--text-dim);
  font-size: 14.5px;
  margin: 0;
  line-height: 1.75;
}

/* ============ Stats ============ */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  padding: 28px;
  background: linear-gradient(180deg, rgba(34, 211, 238, 0.05), rgba(34, 211, 238, 0.01));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
}

.stat { text-align: center; }
.stat .num {
  font-size: 30px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent), #60a5fa);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
}
.stat .label { font-size: 13px; color: var(--text-mute); margin-top: 4px; }

/* ============ Timeline ============ */
.timeline {
  position: relative;
  padding-left: 32px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), transparent);
}

.timeline-item {
  position: relative;
  padding-bottom: 28px;
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: -28px;
  top: 8px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg-0);
  border: 2px solid var(--accent);
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.6);
}

.timeline-item .year {
  color: var(--accent);
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 4px;
}
.timeline-item .event { color: var(--text-dim); font-size: 14.5px; }

/* ============ Contact Info ============ */
.contact-list {
  display: grid;
  gap: 14px;
}
.contact-item {
  display: flex;
  gap: 14px;
  padding: 18px 20px;
  background: rgba(17, 28, 51, 0.5);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.contact-item .k {
  min-width: 88px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 500;
}
.contact-item .v { color: var(--text); font-size: 14.5px; }

/* ============ Footer ============ */
.site-footer {
  margin-top: 40px;
  padding: 40px 0 24px;
  border-top: 1px solid var(--border);
  background: rgba(3, 8, 18, 0.6);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 28px;
}

.footer-grid h4 {
  font-size: 14px;
  margin: 0 0 12px;
  color: var(--text);
  font-weight: 600;
}

.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 13.5px;
}
.footer-grid ul li { margin-bottom: 6px; }
.footer-grid ul a { color: var(--text-mute); }
.footer-grid ul a:hover { color: var(--accent); }

.footer-about p {
  color: var(--text-mute);
  font-size: 13.5px;
  margin: 10px 0 0;
  line-height: 1.75;
}

.footer-bottom {
  padding-top: 22px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 13px;
  color: var(--text-mute);
  line-height: 2;
}

.footer-bottom a { color: var(--text-mute); }
.footer-bottom a:hover { color: var(--accent); }
.footer-bottom .sep { margin: 0 10px; opacity: 0.4; }

/* ============ Page Header (inner pages) ============ */
.page-hero {
  padding: 72px 0 40px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.page-hero h1 {
  font-size: clamp(28px, 4vw, 40px);
  margin: 0 0 12px;
  font-weight: 600;
}
.page-hero .crumb {
  color: var(--text-mute);
  font-size: 13px;
  letter-spacing: 1px;
}

/* ============ Utility ============ */
.prose {
  color: var(--text-dim);
  font-size: 15.5px;
  line-height: 1.9;
}
.prose p { margin: 0 0 16px; }
.prose strong { color: var(--text); }

.divider {
  height: 1px;
  background: var(--border);
  margin: 40px 0;
}

/* ============ Responsive ============ */
@media (max-width: 720px) {
  .nav-wrap { padding: 14px 16px; flex-wrap: wrap; }
  .nav-links { gap: 2px; width: 100%; justify-content: center; }
  .nav-links a { padding: 6px 10px; font-size: 13.5px; }
  .hero { padding: 56px 0 48px; }
  .section { padding: 48px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .brand-text .zh { font-size: 14px; }
  .brand-text .en { font-size: 10px; }
}
