/* 司机社官网 - 共享样式系统 */
:root {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --surface-2: #f0f3f9;
  --ink: #141a2a;
  --muted: #667085;
  --brand: #ff5a1f;
  --brand-dark: #e84b12;
  --brand-soft: #fff1ea;
  --blue: #2d6cdf;
  --blue-soft: #eaf1ff;
  --green: #12a06a;
  --line: #e7e9f0;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 12px 34px rgba(20, 26, 42, 0.08);
  --shadow-lg: 0 24px 60px rgba(20, 26, 42, 0.16);
  --header-h: 68px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

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

button, input, textarea, select { font: inherit; }

button { cursor: pointer; }

:focus-visible {
  outline: 3px solid rgba(255, 90, 31, 0.45);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  z-index: 999;
}
.skip-link:focus { left: 12px; }

.container {
  width: min(1180px, calc(100% - 36px));
  margin-inline: auto;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.3px;
  flex-shrink: 0;
}
.brand img { width: 34px; height: 34px; display: block; }
.brand span em { font-style: normal; color: var(--brand); }

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: #4a5265;
  transition: 0.2s ease;
}
.nav a:hover { background: var(--surface-2); color: var(--ink); }
.nav a.active { background: var(--brand-soft); color: var(--brand-dark); }

.header-actions { display: flex; align-items: center; gap: 10px; }

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 12px;
  align-items: center;
  justify-content: center;
}
.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: 0.25s ease;
}
.menu-toggle span::before { transform: translateY(-6px); }
.menu-toggle span::after { transform: translateY(4px); }
.menu-toggle[aria-expanded="true"] span { background: transparent; }
.menu-toggle[aria-expanded="true"] span::before { transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span::after { transform: rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 700;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 8px 20px rgba(255, 90, 31, 0.28);
}
.btn-primary:hover { background: var(--brand-dark); box-shadow: 0 12px 26px rgba(255, 90, 31, 0.35); }
.btn-ghost { background: var(--surface); border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: #cfd4e0; }
.btn-blue { background: var(--blue); color: #fff; box-shadow: 0 8px 20px rgba(45, 108, 223, 0.24); }
.btn-blue:hover { background: #1f59c4; }
.btn-sm { min-height: 36px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.btn-block { width: 100%; }

/* ---------- Sections ---------- */
.section { padding: 68px 0; }
.section-sm { padding: 44px 0; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}
.section-head h2 { margin: 6px 0 0; font-size: clamp(25px, 4vw, 36px); letter-spacing: -0.8px; line-height: 1.25; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--brand);
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: var(--brand); border-radius: 2px; }
.lead { color: var(--muted); max-width: 620px; margin: 12px 0 0; font-size: 15px; }

/* ---------- Hero ---------- */
.hero { padding: 56px 0 30px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: 46px;
  align-items: center;
}
.hero h1 {
  margin: 16px 0 18px;
  font-size: clamp(36px, 6vw, 62px);
  line-height: 1.12;
  letter-spacing: -2px;
}
.hero h1 em { font-style: normal; color: var(--brand); }
.hero p { color: var(--muted); font-size: 16px; max-width: 520px; margin: 0 0 26px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-proof { display: flex; gap: 24px; margin-top: 30px; flex-wrap: wrap; }
.hero-proof div { display: flex; flex-direction: column; }
.hero-proof strong { font-size: 22px; letter-spacing: -0.5px; }
.hero-proof span { font-size: 12px; color: var(--muted); }
.hero-visual { position: relative; }
.hero-visual > img { width: 100%; border-radius: 26px; box-shadow: var(--shadow-lg); display: block; }
.float-card {
  position: absolute;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: 14px;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.float-card.top { top: 8%; right: -14px; }
.float-card.bottom { bottom: 8%; left: -18px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); display: inline-block; box-shadow: 0 0 0 4px rgba(18,160,106,.14); }

/* ---------- Masonry ---------- */
.masonry {
  column-count: 4;
  column-gap: 18px;
}
.card {
  display: inline-block;
  width: 100%;
  margin: 0 0 18px;
  break-inside: avoid;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(20,26,42,.045);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  cursor: pointer;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.card-media {
  position: relative;
  overflow: hidden;
  background: var(--surface-2);
}
.ratio-16x9 { aspect-ratio: 16 / 9; }
.ratio-4x3 { aspect-ratio: 4 / 3; }
.ratio-1x1 { aspect-ratio: 1 / 1; }
.ratio-4x5 { aspect-ratio: 4 / 5; }
.ratio-3x4 { aspect-ratio: 3 / 4; }
.ratio-21x9 { aspect-ratio: 21 / 9; }
.card-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.card:hover .card-media img { transform: scale(1.045); }
.play-badge {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}
.play-badge span {
  width: 50px; height: 50px; border-radius: 50%;
  background: rgba(255,255,255,.92);
  display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
  color: var(--brand);
  font-size: 18px;
  padding-left: 3px;
}
.card-badge {
  position: absolute; top: 10px; left: 10px;
  background: rgba(20,26,42,.78); color: #fff;
  font-size: 11px; font-weight: 800;
  padding: 5px 9px; border-radius: 8px;
  backdrop-filter: blur(6px);
}
.card-badge.live { background: #e8324f; display: flex; align-items: center; gap: 6px; }
.card-badge.live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.card-duration {
  position: absolute; right: 10px; bottom: 10px;
  background: rgba(20,26,42,.76); color: #fff;
  font-size: 11px; font-weight: 700;
  padding: 3px 7px; border-radius: 6px;
}
.card-body { padding: 14px 15px 16px; }
.card-body h3 { margin: 0 0 8px; font-size: 15px; line-height: 1.45; letter-spacing: -0.2px; }
.card-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--muted); }
.card-meta .author { display: flex; align-items: center; gap: 7px; min-width: 0; }
.card-meta .author img { width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0; }
.card-meta .author b { color: #3c4456; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 11px; }
.tag { font-size: 11px; color: var(--brand-dark); background: var(--brand-soft); padding: 4px 8px; border-radius: 6px; font-weight: 700; }
.tag.blue { color: var(--blue); background: var(--blue-soft); }

/* ---------- Filter ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 24px; }
.filter {
  border: 1px solid var(--line);
  background: var(--surface);
  color: #4a5265;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  transition: .2s ease;
}
.filter:hover { border-color: #cfd4e0; }
.filter.active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Feature / info blocks ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 4px 16px rgba(20,26,42,.04);
}
.feature .icon {
  width: 46px; height: 46px; border-radius: 14px;
  display: grid; place-items: center;
  font-size: 22px; margin-bottom: 16px;
  background: var(--brand-soft);
}
.feature h3 { margin: 0 0 8px; font-size: 18px; }
.feature p { margin: 0; color: var(--muted); font-size: 14px; }

.banner {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: linear-gradient(135deg, #1c2233 0%, #2b3450 100%);
  color: #fff;
  padding: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.banner::after {
  content: "";
  position: absolute; width: 280px; height: 280px; border-radius: 50%;
  right: -80px; top: -120px;
  background: radial-gradient(circle, rgba(255,90,31,.45), transparent 70%);
}
.banner h2 { margin: 8px 0 10px; font-size: clamp(24px,4vw,36px); letter-spacing: -.8px; }
.banner p { margin: 0; max-width: 520px; color: rgba(255,255,255,.72); }
.banner .btn { position: relative; z-index: 1; }

/* ---------- Publish form ---------- */
.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.form-row input,
.form-row textarea,
.form-row select {
  width: 100%;
  border: 1px solid var(--line);
  background: #fbfcfe;
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--ink);
  transition: .2s ease;
}
.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus { border-color: var(--brand); background: #fff; outline: none; box-shadow: 0 0 0 4px rgba(255,90,31,.10); }
.form-row textarea { min-height: 112px; resize: vertical; }
.upload-zone {
  border: 2px dashed #d8dce7;
  border-radius: 16px;
  padding: 34px 20px;
  text-align: center;
  background: #fbfcfe;
  transition: .2s ease;
  cursor: pointer;
}
.upload-zone:hover, .upload-zone.dragover { border-color: var(--brand); background: var(--brand-soft); }
.upload-zone .up-icon { font-size: 34px; margin-bottom: 8px; }
.upload-zone strong { display: block; font-size: 15px; }
.upload-zone span { font-size: 12px; color: var(--muted); }
.upload-zone input { display: none; }

/* ---------- Download ---------- */
.download-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 34px; align-items: center; }
.phone-mock {
  width: 240px;
  max-width: 100%;
  margin-inline: auto;
  background: #fff;
  border: 10px solid #1c2233;
  border-radius: 36px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.phone-mock img { display: block; width: 100%; }
.qr-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  text-align: center;
  box-shadow: var(--shadow);
}
.qr-card img { width: 148px; height: 148px; border-radius: 12px; }
.qr-card p { margin: 10px 0 0; font-size: 12px; color: var(--muted); }
.steps { counter-reset: step; display: grid; gap: 14px; margin-top: 20px; }
.step { display: flex; gap: 14px; align-items: flex-start; }
.step::before {
  counter-increment: step;
  content: counter(step);
  flex: 0 0 28px; height: 28px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--brand-soft); color: var(--brand-dark);
  font-weight: 800; font-size: 13px;
}
.step b { display: block; font-size: 14px; }
.step span { font-size: 12px; color: var(--muted); }

/* ---------- Modal & toast ---------- */
.modal {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  padding: 18px;
  background: rgba(12,16,28,.62);
  backdrop-filter: blur(4px);
}
.modal[hidden] { display: none; }
.modal-dialog {
  width: min(640px, 100%);
  max-height: min(88vh, 760px);
  overflow: auto;
  background: var(--surface);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.modal-close {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 36px; height: 36px; border-radius: 50%;
  border: none; background: rgba(255,255,255,.9);
  font-size: 20px; line-height: 1; color: var(--ink);
  box-shadow: 0 4px 14px rgba(0,0,0,.14);
}
.modal-dialog.sm { width: min(430px, 100%); }
.modal-media { aspect-ratio: 16/9; background: #141a2a; }
.modal-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.modal-body { padding: 22px; }
.modal-body h3 { margin: 0 0 8px; font-size: 20px; }
.modal-body p { color: var(--muted); font-size: 14px; margin: 0 0 18px; }
.modal-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.fake-player {
  position: relative;
}
.fake-player::after {
  content: "▶";
  position: absolute; inset: 0;
  display: grid; place-items: center;
  color: #fff; font-size: 42px;
  background: rgba(0,0,0,.2);
}
.fake-player.playing::after { content: "❚❚"; font-size: 30px; background: rgba(0,0,0,.06); }

.toast {
  position: fixed; left: 50%; bottom: 28px;
  transform: translate(-50%, 20px);
  background: var(--ink); color: #fff;
  padding: 12px 20px; border-radius: 12px;
  font-size: 14px; font-weight: 600;
  z-index: 300;
  opacity: 0; pointer-events: none;
  transition: .25s ease;
  box-shadow: var(--shadow-lg);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Footer ---------- */
.site-footer {
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 48px 0 26px;
  margin-top: 30px;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
.footer-grid h4 { margin: 0 0 14px; font-size: 14px; }
.footer-grid a { display: block; color: var(--muted); font-size: 13px; margin-bottom: 9px; }
.footer-grid a:hover { color: var(--brand); }
.footer-brand p { color: var(--muted); font-size: 13px; max-width: 280px; margin: 14px 0 0; }
.footer-bottom {
  border-top: 1px solid var(--line);
  margin-top: 34px; padding-top: 20px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  color: #98a0b0; font-size: 12px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .masonry { column-count: 3; }
  .hero-grid { gap: 30px; }
  .float-card.top { right: 0; }
  .float-card.bottom { left: 0; }
}

@media (max-width: 900px) {
  .nav {
    position: absolute;
    top: var(--header-h); left: 0; right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 18px 18px;
    gap: 4px;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 11px 14px; border-radius: 10px; }
  .menu-toggle { display: flex; }
  .header-actions .btn-ghost { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; margin-bottom: 10px; }
  .hero-visual > img { max-height: 340px; object-fit: cover; }
  .grid-3, .grid-2 { grid-template-columns: 1fr 1fr; }
  .download-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .container { width: min(100% - 26px, 1180px); }
  .section { padding: 48px 0; }
  .masonry { column-count: 2; column-gap: 12px; }
  .card { margin-bottom: 12px; border-radius: 14px; }
  .card-body { padding: 11px 12px 13px; }
  .card-body h3 { font-size: 13px; }
  .card-meta { font-size: 11px; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .section-head { align-items: flex-start; flex-direction: column; }
  .banner { padding: 28px 22px; flex-direction: column; align-items: flex-start; }
  .hero { padding-top: 34px; }
  .hero h1 { letter-spacing: -1.2px; }
  .hero-actions .btn { flex: 1 1 140px; }
  .float-card { font-size: 11px; padding: 8px 10px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 22px; }
}

@media (max-width: 420px) {
  .masonry { column-count: 1; }
  .brand { font-size: 17px; }
  .hero-proof { gap: 16px; }
  .hero-proof strong { font-size: 19px; }
  .footer-grid { grid-template-columns: 1fr; }
}
