/* bkol.autos — 哔咔官网 */
:root {
  --pink: #ff4d8d;
  --pink-deep: #e91e6b;
  --pink-soft: #fff0f5;
  --ink: #1a1a1f;
  --muted: #5c5c66;
  --line: #f0d4de;
  --bg: #fffafb;
  --card: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 28px rgba(233, 30, 107, 0.08);
  --max: 1120px;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, #ffe3ee 0%, transparent 55%),
    radial-gradient(900px 420px at 100% 0%, #ffeef5 0%, transparent 50%),
    var(--bg);
  line-height: 1.75;
  font-size: 16px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--pink-deep);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(255, 250, 251, 0.92);
  border-bottom: 1px solid var(--line);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: block;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--pink-deep);
  background: var(--pink-soft);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  padding: 8px 12px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
}

/* Hero */
.hero {
  padding: 48px 0 28px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  align-items: center;
}

.hero-copy h1 {
  margin: 0 0 14px;
  font-size: clamp(1.8rem, 3.2vw, 2.55rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.hero-copy .lead {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--pink), var(--pink-deep));
  color: #fff;
  box-shadow: 0 10px 24px rgba(233, 30, 107, 0.28);
}

.btn-secondary {
  background: #fff;
  color: var(--pink-deep);
  border-color: #ffc2d6;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-tags li {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--muted);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.85rem;
}

.hero-visual {
  position: relative;
}

.hero-visual img {
  width: 100%;
  border-radius: 18px;
  box-shadow: var(--shadow);
  border: 1px solid #ffd6e4;
}

.hero-badge {
  position: absolute;
  left: 14px;
  bottom: 14px;
  background: rgba(26, 26, 31, 0.78);
  color: #fff;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 0.85rem;
}

/* Sections */
section {
  padding: 36px 0;
}

.section-head {
  margin-bottom: 22px;
}

.section-head h2 {
  margin: 0 0 8px;
  font-size: clamp(1.35rem, 2.2vw, 1.8rem);
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.feature-grid,
.shot-grid,
.guide-grid,
.link-grid {
  display: grid;
  gap: 16px;
}

.feature-grid {
  grid-template-columns: repeat(3, 1fr);
}

.shot-grid {
  grid-template-columns: repeat(4, 1fr);
}

.guide-grid {
  grid-template-columns: repeat(2, 1fr);
}

.link-grid {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}

.card h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.shot-card {
  overflow: hidden;
  padding: 0;
}

.shot-card img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
  background: #f7f7f8;
}

.shot-card .caption {
  padding: 12px 14px 14px;
}

.shot-card .caption strong {
  display: block;
  margin-bottom: 4px;
}

.shot-card .caption span {
  color: var(--muted);
  font-size: 0.88rem;
}

.prose {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow);
}

.prose h2,
.prose h3 {
  scroll-margin-top: 88px;
}

.prose h2 {
  margin: 1.6em 0 0.7em;
  font-size: 1.35rem;
  padding-bottom: 8px;
  border-bottom: 2px solid #ffe0ea;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  margin: 1.25em 0 0.55em;
  font-size: 1.1rem;
}

.prose p {
  margin: 0 0 1em;
  color: #2b2b33;
}

.prose ul,
.prose ol {
  margin: 0 0 1em;
  padding-left: 1.3em;
  color: #2b2b33;
}

.prose li {
  margin-bottom: 0.45em;
}

.toc {
  background: var(--pink-soft);
  border: 1px solid #ffd0e0;
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 22px;
}

.toc strong {
  display: block;
  margin-bottom: 8px;
}

.toc ol {
  margin: 0;
  padding-left: 1.2em;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 12px 14px;
  margin-bottom: 10px;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
}

.faq details p {
  margin: 10px 0 0;
  color: var(--muted);
}

/* Page hero (inner) */
.page-hero {
  padding: 36px 0 10px;
}

.page-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
}

.page-hero p {
  margin: 0;
  color: var(--muted);
  max-width: 720px;
}

.breadcrumb {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.9rem;
}

.breadcrumb a {
  color: var(--muted);
}

/* Error pages */
.error-wrap {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 48px 0;
}

.error-wrap .code {
  font-size: clamp(3.5rem, 10vw, 6rem);
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, var(--pink), var(--pink-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 0 0 8px;
}

/* Footer */
.site-footer {
  margin-top: 40px;
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 28px 0 36px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 24px;
}

.site-footer h3 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.site-footer p,
.site-footer li {
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin-bottom: 6px;
}

.copyright {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}

/* Mobile */
@media (max-width: 960px) {
  .hero-grid,
  .feature-grid,
  .guide-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .shot-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .link-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    left: 16px;
    right: 16px;
    top: 68px;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 8px;
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-bar {
    position: relative;
  }

  .hero {
    padding-top: 28px;
  }

  .prose {
    padding: 20px 16px;
  }
}

@media (max-width: 560px) {
  .shot-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}
