/*
Design Reminder: 小马拉大车 视频社区。
本文件必须始终服务于“修车工位 + 影像片场 + 视频社区”的统一视觉语言。
避免通用圆角模板感，优先采用金属描边、切角分层、低照度质感、强对比视频氛围。
*/
:root {
  --bg: #0b0f14;
  --bg-soft: #111821;
  --panel: #121a23;
  --panel-strong: #182330;
  --line: rgba(218, 232, 247, 0.11);
  --line-strong: rgba(218, 232, 247, 0.24);
  --text: #edf2f7;
  --muted: #a8b3c1;
  --accent: #d9782d;
  --accent-soft: #ffb06d;
  --steel: #8ea4b7;
  --glow: rgba(217, 120, 45, 0.36);
  --teal: #7cc1cd;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  --radius: 0;
  --container: min(1240px, calc(100% - 32px));
  --heading: "Oswald", "Arial Narrow", "Microsoft YaHei", sans-serif;
  --body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: "JetBrains Mono", "Consolas", monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  background:
    radial-gradient(circle at top left, rgba(124, 193, 205, 0.08), transparent 26%),
    radial-gradient(circle at bottom right, rgba(217, 120, 45, 0.09), transparent 28%),
    linear-gradient(180deg, #0a0f14 0%, #0b0f14 30%, #0e1319 100%);
  color: var(--text);
  line-height: 1.7;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input { font: inherit; }
.container { width: var(--container); margin: 0 auto; }
.site-frame {
  position: relative;
  overflow: hidden;
}
.site-frame::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 120px 120px;
  opacity: 0.2;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(8, 13, 18, 0.86);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}
.brand img {
  width: 74px;
  height: 74px;
  object-fit: contain;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.26));
}
.brand-mark {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.brand-mark strong {
  font: 700 2rem/1 var(--heading);
  letter-spacing: 0.06em;
}
.brand-mark span {
  color: var(--muted);
  font-size: 0.95rem;
}
.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
}
.nav-links a {
  padding: 10px 14px;
  border: 1px solid transparent;
  color: #f6f9fc;
  font-weight: 600;
  letter-spacing: 0.02em;
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 7px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .28s ease;
}
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }
.search-strip {
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(17,24,33,0.96), rgba(11,15,20,0.96));
}
.search-shell {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px 0 18px;
}
.search-box {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line-strong);
  padding: 10px 12px;
}
.search-box input {
  width: 100%;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--text);
}
.search-box button,
.action-btn,
.share-btn,
.cta-btn {
  border: 0;
  background: linear-gradient(135deg, var(--accent), #bc6526);
  color: #fff;
  padding: 12px 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(217,120,45,0.22);
  transition: transform .24s ease, box-shadow .24s ease, opacity .24s ease;
}
.search-box button:hover,
.action-btn:hover,
.share-btn:hover,
.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(217,120,45,0.28);
}
.hero {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: flex-end;
  isolation: isolate;
  border-bottom: 1px solid var(--line);
}
.hero-media,
.hero-overlay,
.hero-noise {
  position: absolute;
  inset: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  background:
    linear-gradient(90deg, rgba(8,11,15,0.92) 0%, rgba(8,11,15,0.74) 45%, rgba(8,11,15,0.34) 100%),
    linear-gradient(180deg, rgba(8,11,15,0.1), rgba(8,11,15,0.78));
}
.hero-noise {
  background-image: radial-gradient(rgba(255,255,255,0.06) 0.6px, transparent 0.6px);
  background-size: 8px 8px;
  opacity: 0.08;
}
.hero-content {
  position: relative;
  z-index: 2;
  width: var(--container);
  margin: 0 auto;
  padding: 86px 0 72px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 420px);
  gap: 24px;
}
.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.kicker,
.panel-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,0.18);
  color: #e9edf2;
  background: rgba(255,255,255,0.04);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.84rem;
}
.hero h1,
.page-hero h1 {
  margin: 0;
  font: 700 clamp(2.8rem, 6vw, 5.5rem)/0.96 var(--heading);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.hero h1 span,
.page-hero h1 span { color: var(--accent-soft); display: block; }
.hero p {
  margin: 0;
  max-width: 780px;
  color: #d7dee8;
  font-size: 1.08rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.secondary-btn {
  border: 1px solid var(--line-strong);
  color: #fff;
  padding: 12px 16px;
  font-weight: 700;
  background: rgba(255,255,255,0.03);
}
.hero-side {
  align-self: end;
  background: linear-gradient(180deg, rgba(11,15,20,0.82), rgba(12,18,24,0.9));
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
  padding: 22px;
}
.hero-side h2,
.section-heading h2,
.page-section h2 { margin: 0; font: 700 clamp(1.8rem, 3vw, 2.6rem)/1 var(--heading); letter-spacing: 0.03em; }
.hero-metrics {
  margin: 18px 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.metric {
  background: rgba(255,255,255,0.03);
  border-left: 3px solid var(--accent);
  padding: 12px;
}
.metric strong {
  display: block;
  font: 700 1.6rem/1 var(--heading);
  margin-bottom: 6px;
}
.breadcrumb {
  padding: 18px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
}
.breadcrumb a { color: #e4ecf5; }
.section {
  padding: 80px 0;
  border-bottom: 1px solid var(--line);
}
.section-heading {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 28px;
}
.section-heading p { margin: 0; max-width: 720px; color: var(--muted); }
.grid-2,
.grid-3,
.grid-4,
.stats-grid,
.video-grid,
.team-grid,
.review-grid,
.contact-grid,
.share-grid,
.brand-wall,
.topic-grid,
.faq-grid,
.story-grid,
.community-grid {
  display: grid;
  gap: 18px;
}
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3, .story-grid, .community-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4, .stats-grid, .share-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.video-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.team-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.review-grid, .faq-grid, .contact-grid, .brand-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.panel,
.video-card,
.review-card,
.faq-card,
.team-card,
.contact-card,
.topic-card,
.brand-card,
.story-card,
.stat-card {
  position: relative;
  background: linear-gradient(180deg, rgba(19,26,34,0.98), rgba(12,18,24,0.95));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.panel::before,
.video-card::before,
.review-card::before,
.faq-card::before,
.team-card::before,
.contact-card::before,
.topic-card::before,
.brand-card::before,
.story-card::before,
.stat-card::before {
  content: "";
  position: absolute;
  inset: 0;
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
  border: 1px solid rgba(255,255,255,0.04);
  pointer-events: none;
}
.panel-body,
.review-card,
.faq-card,
.team-card,
.contact-card,
.topic-card,
.brand-card,
.story-card,
.stat-card { padding: 22px; }
.panel-media img,
.video-thumb img,
.page-hero-media img,
.contact-photo img { width: 100%; height: 100%; object-fit: cover; }
.panel-media {
  min-height: 320px;
  overflow: hidden;
}
.panel-stack { display: grid; gap: 18px; }
.stat-card strong,
.data-badge strong {
  display: block;
  font: 700 2rem/1 var(--heading);
  margin-bottom: 10px;
}
.badge-row,
.tags,
.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tag,
.meta-tag,
.brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: #eef2f7;
  font-size: 0.92rem;
}
.tag.hot { background: rgba(217,120,45,0.15); border-color: rgba(217,120,45,0.38); }
.video-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.video-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.video-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8,10,14,0.06), rgba(8,10,14,0.5));
}
.video-thumb img {
  transition: transform .36s ease;
}
.video-card:hover .video-thumb img { transform: scale(1.05); }
.play-button {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%) scale(.88);
  width: 78px;
  height: 78px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(8, 12, 16, 0.72);
  border: 1px solid rgba(255,255,255,0.22);
  z-index: 2;
  opacity: 0;
  transition: opacity .24s ease, transform .24s ease;
  box-shadow: 0 0 0 10px rgba(217,120,45,0.08);
}
.play-button::before {
  content: "";
  border-style: solid;
  border-width: 12px 0 12px 20px;
  border-color: transparent transparent transparent #fff;
  margin-left: 5px;
}
.video-card:hover .play-button {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.video-content { padding: 20px; display: grid; gap: 14px; }
.video-content h3,
.panel-body h3,
.team-card h3,
.review-card h3,
.faq-card h3,
.topic-card h3,
.story-card h3,
.contact-card h3 {
  margin: 0;
  font: 700 1.45rem/1.12 var(--heading);
  letter-spacing: 0.02em;
}
.video-content p,
.panel-body p,
.team-card p,
.review-card p,
.faq-card p,
.topic-card p,
.story-card p,
.contact-card p,
.stat-card p { margin: 0; color: var(--muted); }
.video-stats,
.small-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.video-stats span,
.small-metrics span {
  display: grid;
  gap: 4px;
  padding: 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  font-size: 0.9rem;
}
.video-stats strong,
.small-metrics strong {
  font: 700 1rem/1.1 var(--heading);
}
.dual-layout {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 20px;
}
.highlight-card {
  background: linear-gradient(135deg, rgba(217,120,45,0.14), rgba(124,193,205,0.12));
  border: 1px solid rgba(217,120,45,0.24);
  padding: 24px;
}
.code-panel {
  background: #091017;
  border: 1px solid rgba(255,255,255,0.1);
  padding: 18px;
  overflow-x: auto;
}
.code-panel pre {
  margin: 0;
  color: #b7c8d8;
  font: 500 0.88rem/1.65 var(--mono);
  white-space: pre-wrap;
}
details.json-wrap {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
}
details.json-wrap summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 16px;
  font-weight: 700;
}
details.json-wrap summary::-webkit-details-marker { display: none; }
details.json-wrap[open] summary { border-bottom: 1px solid rgba(255,255,255,0.08); }
.keyword-wall {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.keyword-wall span {
  padding: 8px 10px;
  border-left: 3px solid var(--accent);
  background: rgba(255,255,255,0.04);
  color: #ecf2f8;
  font-size: 0.94rem;
}
.brand-wall { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.brand-card {
  min-height: 120px;
  display: grid;
  place-items: center;
  text-align: center;
  font: 700 1.3rem/1.1 var(--heading);
  letter-spacing: 0.04em;
}
.steps {
  display: grid;
  gap: 14px;
}
.step {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 16px;
  align-items: start;
  padding: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
}
.step strong {
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  background: rgba(217,120,45,0.14);
  border: 1px solid rgba(217,120,45,0.24);
  font: 700 1.3rem/1 var(--heading);
}
.team-card ul,
.contact-card ul,
.topic-card ul,
.story-card ul,
.panel-body ul { margin: 12px 0 0; padding-left: 18px; color: var(--muted); }
.team-card .role,
.review-meta,
.story-meta { color: var(--accent-soft); font-weight: 700; font-size: 0.94rem; }
.review-card {
  display: grid;
  gap: 12px;
}
.review-stars { color: #ffcf6d; letter-spacing: 0.18em; }
.contact-photo { min-height: 100%; }
.footer {
  padding: 70px 0 40px;
  background: #090d12;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 20px;
}
.footer-info,
.footer-side {
  background: linear-gradient(180deg, rgba(17,24,33,0.94), rgba(9,13,18,0.96));
  border: 1px solid var(--line);
  padding: 26px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}
.footer-brand img { width: 70px; height: 70px; object-fit: contain; }
.qr-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.qr-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 18px;
}
.qr-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #fff;
  padding: 10px;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
  color: var(--muted);
}
.notice-bar {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 90;
  padding: 14px 16px;
  max-width: 340px;
  background: rgba(8, 12, 16, 0.92);
  border-left: 3px solid var(--accent);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
  transition: opacity .3s ease, transform .3s ease;
}
.notice-bar.show {
  opacity: 1;
  transform: translateY(0);
}
.page-hero {
  padding: 44px 0 28px;
}
.page-hero-shell {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 18px;
  align-items: stretch;
}
.page-hero-copy,
.page-hero-media {
  min-height: 100%;
  position: relative;
}
.page-hero-copy {
  padding: 34px;
  background: linear-gradient(180deg, rgba(17,24,33,0.96), rgba(9,13,18,0.98));
  border: 1px solid var(--line);
}
.page-hero-copy p { color: var(--muted); max-width: 60ch; }
.page-hero-media {
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: 340px;
}
.page-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8,11,15,0.15), rgba(8,11,15,0.46));
}
.page-section { padding: 36px 0 72px; }
.list-block { display: grid; gap: 14px; }
.list-item {
  padding: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
}
.list-item strong { display: block; margin-bottom: 8px; color: #fff; }
.embed-panel {
  min-height: 230px;
  border: 1px dashed rgba(255,255,255,0.18);
  padding: 20px;
  background: linear-gradient(135deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
}
@media (max-width: 1120px) {
  .video-grid, .grid-4, .stats-grid, .share-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3, .team-grid, .story-grid, .community-grid, .brand-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dual-layout, .footer-grid, .hero-content, .page-hero-shell { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .topbar-inner { flex-direction: column; align-items: flex-start; }
  .nav-links { justify-content: flex-start; }
  .search-shell { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .hero-content { padding: 68px 0 48px; }
  .hero h1, .page-hero h1 { font-size: 2.35rem; }
  .grid-2, .grid-3, .grid-4, .video-grid, .team-grid, .review-grid, .faq-grid, .contact-grid, .share-grid, .brand-wall, .story-grid, .community-grid { grid-template-columns: 1fr; }
  .hero-metrics, .video-stats, .small-metrics { grid-template-columns: 1fr; }
  .brand img { width: 60px; height: 60px; }
}
