/* 心归代驾系统 官网样式 —— 移动优先，深色主题 */
:root {
  --bg: #0d1220;
  --bg-alt: #131a2c;
  --card: #1a2338;
  --card-hover: #212d4a;
  --line: rgba(255, 255, 255, 0.08);
  --text: #e8ecf4;
  --text-dim: #9aa5bd;
  --accent: #f5b942;
  --accent-strong: #ffcf6b;
  --accent-dim: rgba(245, 185, 66, 0.14);
  --radius: 14px;
  --max-w: 1120px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ---------- 导航 ---------- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(13, 18, 32, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.navbar.scrolled { border-bottom-color: var(--line); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
}
.brand-logo { width: 30px; height: 30px; }
.brand-name { font-size: 1.15rem; font-weight: 700; color: var(--text); letter-spacing: 1px; }

.nav-links { display: flex; gap: 26px; font-size: 0.95rem; }
.nav-links a { color: var(--text-dim); transition: color 0.2s; padding: 6px 0; }
.nav-links a:hover { color: var(--accent); }

.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);
  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); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 150px 0 90px;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(180deg, #0a0f1c 0%, var(--bg) 100%);
}
.hero-glow {
  position: absolute;
  top: -180px; left: 50%;
  transform: translateX(-50%);
  width: 720px; height: 460px;
  background: radial-gradient(ellipse, rgba(245, 185, 66, 0.16) 0%, transparent 65%);
  pointer-events: none;
}
.hero-inner { position: relative; }

.hero-kicker {
  color: var(--accent);
  font-size: 0.9rem;
  letter-spacing: 3px;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(1.9rem, 5vw, 3.2rem);
  line-height: 1.35;
  font-weight: 800;
}
.hero h1 .accent {
  display: inline-block;
  margin-top: 8px;
  font-size: clamp(1.15rem, 3vw, 1.7rem);
  font-weight: 600;
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  margin: 22px auto 0;
  max-width: 560px;
  color: var(--text-dim);
  font-size: 1.02rem;
}

.hero-actions {
  margin-top: 34px;
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 13px 34px;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #e09a20);
  color: #1a1206;
  box-shadow: 0 6px 24px rgba(245, 185, 66, 0.28);
}
.btn-primary:hover { box-shadow: 0 8px 30px rgba(245, 185, 66, 0.42); }
.btn-ghost {
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.hero-stats {
  margin: 56px auto 0;
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}
.stat {
  min-width: 150px;
  padding: 18px 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.stat b { font-size: 1.3rem; color: var(--accent); }
.stat span { font-size: 0.85rem; color: var(--text-dim); }

/* ---------- 通用区块 ---------- */
.section { padding: 84px 0; }
.section-alt { background: var(--bg-alt); }

.section-title {
  text-align: center;
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  font-weight: 700;
}
.section-title.left { text-align: left; }
.section-title::after {
  content: "";
  display: block;
  width: 44px; height: 3px;
  margin: 14px auto 0;
  border-radius: 2px;
  background: var(--accent);
}
.section-title.left::after { margin-left: 0; }

.section-desc {
  text-align: center;
  color: var(--text-dim);
  margin-top: 12px;
}
.section-desc.left { text-align: left; }

/* ---------- 卡片 ---------- */
.card-grid {
  margin-top: 46px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform 0.2s, background 0.2s, border-color 0.2s;
}
.card:hover {
  transform: translateY(-4px);
  background: var(--card-hover);
  border-color: rgba(245, 185, 66, 0.35);
}
.card h3 { font-size: 1.12rem; margin: 16px 0 8px; }
.card p { color: var(--text-dim); font-size: 0.93rem; }

.card-icon {
  width: 50px; height: 50px;
  border-radius: 12px;
  background: var(--accent-dim);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-icon svg { width: 27px; height: 27px; }

/* ---------- 流程 ---------- */
.flow-steps {
  margin-top: 46px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  list-style: none;
  counter-reset: none;
}
.step {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--accent-dim);
  color: var(--accent);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 14px;
}
.step h3 { font-size: 1.05rem; margin-bottom: 6px; }
.step p { color: var(--text-dim); font-size: 0.9rem; }

/* ---------- 价格 ---------- */
.pricing-wrap { margin-top: 40px; }
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  font-size: 0.95rem;
}
.pricing-table th, .pricing-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.pricing-table th {
  background: rgba(245, 185, 66, 0.1);
  color: var(--accent);
  font-weight: 600;
}
.pricing-table tr:last-child td { border-bottom: none; }
.pricing-table td:first-child { color: var(--text); font-weight: 600; }

.pricing-notes {
  margin-top: 20px;
  color: var(--text-dim);
  font-size: 0.88rem;
  padding-left: 20px;
}
.pricing-notes li { margin-top: 6px; }

/* ---------- 司机招募 ---------- */
.join { background: linear-gradient(135deg, #161f36, #101728); }
.join-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 40px;
  align-items: start;
}
.join-list {
  margin-top: 24px;
  list-style: none;
}
.join-list li {
  position: relative;
  padding-left: 26px;
  margin-top: 12px;
  color: var(--text-dim);
}
.join-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}
.join .hero-actions { justify-content: flex-start; margin-top: 30px; }
.join-contact { color: var(--text-dim); font-size: 0.92rem; align-self: center; }
.join-contact b { color: var(--accent); }
.join-note { margin-top: 16px; font-size: 0.85rem; color: var(--text-dim); }

.join-card {
  background: var(--card);
  border: 1px solid rgba(245, 185, 66, 0.3);
  border-radius: var(--radius);
  padding: 28px 26px;
}
.join-card h3 { color: var(--accent); margin-bottom: 16px; }
.join-card ol { padding-left: 22px; color: var(--text-dim); }
.join-card li { margin-top: 10px; }

/* ---------- 关于 ---------- */
.about-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
}
.about-text p { color: var(--text-dim); margin-bottom: 14px; }

.about-info {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.about-info dl div {
  display: flex;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 0.93rem;
}
.about-info dl div:last-child { border-bottom: none; }
.about-info dt { color: var(--text-dim); flex-shrink: 0; }
.about-info dd { color: var(--text); }
.about-info a:hover { color: var(--accent); }

/* ---------- CTA ---------- */
.cta {
  padding: 70px 0;
  background: linear-gradient(135deg, rgba(245, 185, 66, 0.14), rgba(245, 185, 66, 0.04));
  border-top: 1px solid var(--line);
  text-align: center;
}
.cta h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
.cta p { color: var(--text-dim); margin-top: 10px; }

/* ---------- 页脚 ---------- */
.footer {
  border-top: 1px solid var(--line);
  background: #0a0f1c;
  padding: 40px 0 30px;
  font-size: 0.88rem;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}
.footer-brand { display: flex; flex-direction: column; gap: 2px; }
.footer-brand .brand-name { color: var(--accent); font-size: 1.1rem; font-weight: 700; }
.footer-co { color: var(--text-dim); }

.footer-links { display: flex; gap: 22px; flex-wrap: wrap; justify-content: center; }
.footer-links a { color: var(--text-dim); }
.footer-links a:hover { color: var(--accent); }

.footer-icp a { color: var(--text-dim); }
.footer-icp a:hover { color: var(--accent); }
.footer-copy { color: #6b7690; }

/* ---------- 入场动效 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 860px) {
  .nav-links {
    position: absolute;
    top: 62px; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(13, 18, 32, 0.97);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav-links.show { display: flex; }
  .nav-links a {
    padding: 14px 24px;
    border-top: 1px solid var(--line);
  }
  .nav-toggle { display: flex; }

  .join-inner, .about-grid { grid-template-columns: 1fr; gap: 28px; }

  .pricing-table { font-size: 0.85rem; }
  .pricing-table th, .pricing-table td { padding: 10px 12px; }

  .hero { padding: 120px 0 70px; }
  .hero-stats { gap: 10px; }
  .stat { min-width: 105px; padding: 14px; }
}
