/* 小蓝男同平台 xiao-lan.mom */
:root {
  --blue-900: #0a2a4a;
  --blue-800: #0d3d6b;
  --blue-700: #1565a8;
  --blue-600: #1e88d4;
  --blue-500: #2b9ef0;
  --blue-400: #4db0f5;
  --blue-100: #e8f4fc;
  --blue-50: #f3f9fd;
  --ink: #1a2332;
  --muted: #5a6a7a;
  --line: #d5e4f0;
  --white: #ffffff;
  --max: 1120px;
  --radius: 12px;
  --shadow: 0 8px 28px rgba(13, 61, 107, 0.1);
  --font: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", 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%, rgba(43, 158, 240, 0.18), transparent 60%),
    radial-gradient(900px 400px at 90% 0%, rgba(21, 101, 168, 0.12), transparent 55%),
    linear-gradient(180deg, #f7fbff 0%, #eef5fb 40%, #f8fafc 100%);
  line-height: 1.75;
  font-size: 16px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

#ads img {
  max-width: none;
  width: 65px;
  height: 65px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
}

a {
  color: var(--blue-700);
  text-decoration: none;
}

a:hover {
  color: var(--blue-500);
  text-decoration: underline;
}

.container {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--blue-900);
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
  color: var(--blue-700);
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  object-fit: cover;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 10px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 102;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--blue-800);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease, top 0.2s ease;
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before {
  top: -6px;
}

.nav-toggle span::after {
  top: 6px;
}

.nav-toggle[aria-expanded="true"] span {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] span::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span::after {
  top: 0;
  transform: rotate(-45deg);
}

.nav-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  color: var(--ink);
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--blue-600);
  text-decoration: none;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 56px 0 40px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  background: var(--blue-100);
  color: var(--blue-700);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(1.7rem, 3.2vw, 2.45rem);
  line-height: 1.3;
  color: var(--blue-900);
}

.hero-lead {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 20px;
  border-radius: 10px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: 0.2s ease;
  text-decoration: none;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue-600), var(--blue-700));
  color: var(--white);
  box-shadow: 0 6px 18px rgba(30, 136, 212, 0.35);
}

.btn-primary:hover {
  color: var(--white);
  filter: brightness(1.05);
}

.btn-ghost {
  background: var(--white);
  color: var(--blue-700);
  border-color: var(--line);
}

.btn-ghost:hover {
  color: var(--blue-600);
  border-color: var(--blue-400);
}

.hero-visual {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: var(--white);
}

.hero-visual img {
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: 520px;
  object-fit: cover;
  object-position: top;
}

/* Sections */
section {
  padding: 48px 0;
}

.section-head {
  margin-bottom: 28px;
  max-width: 760px;
}

.section-head h2 {
  margin: 0 0 10px;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  color: var(--blue-900);
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.section-alt {
  background: rgba(255, 255, 255, 0.55);
  border-block: 1px solid var(--line);
}

.prose {
  max-width: 820px;
}

.prose h2,
.prose h3 {
  color: var(--blue-900);
  margin-top: 1.6em;
}

.prose p {
  margin: 0.9em 0;
  color: #2a3645;
}

.prose ul,
.prose ol {
  padding-left: 1.25em;
  color: #2a3645;
}

.prose li {
  margin: 0.4em 0;
}

/* Feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(13, 61, 107, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.feature-card img {
  width: 100%;
  aspect-ratio: 9 / 14;
  object-fit: cover;
  object-position: top;
  background: var(--blue-50);
}

.feature-card .body {
  padding: 16px 16px 18px;
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
  color: var(--blue-900);
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Split blocks */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
  margin: 28px 0;
}

.split.reverse .text {
  order: 2;
}

.split .shot {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--white);
}

.split .shot img {
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: 560px;
  object-fit: cover;
  object-position: top;
  margin-inline: auto;
}

.split h3 {
  margin: 0 0 12px;
  color: var(--blue-900);
  font-size: 1.25rem;
}

.split p {
  margin: 0 0 12px;
  color: #2a3645;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.tag-list li {
  background: var(--blue-50);
  color: var(--blue-800);
  border: 1px solid var(--line);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.85rem;
}

/* TOC / quick links */
.quick-nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 8px;
}

.quick-nav a {
  display: block;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 12px;
  text-align: center;
  color: var(--blue-800);
  font-weight: 600;
  text-decoration: none;
  transition: 0.2s ease;
}

.quick-nav a:hover {
  border-color: var(--blue-400);
  background: var(--blue-50);
  color: var(--blue-600);
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  counter-reset: step;
}

.step {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 16px;
  position: relative;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--blue-600);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 10px;
}

.step h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  color: var(--blue-900);
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* FAQ */
.faq details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 10px;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--blue-900);
}

.faq details p {
  margin: 10px 0 0;
  color: var(--muted);
}

/* Legal pages */
.page-hero {
  padding: 40px 0 20px;
}

.page-hero h1 {
  margin: 0 0 10px;
  color: var(--blue-900);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
}

.page-hero p {
  margin: 0;
  color: var(--muted);
}

.legal-content {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: 0 4px 16px rgba(13, 61, 107, 0.05);
  margin-bottom: 48px;
}

.legal-content h2 {
  color: var(--blue-900);
  font-size: 1.2rem;
  margin: 1.5em 0 0.6em;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p,
.legal-content li {
  color: #2a3645;
}

/* Error pages */
.error-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 48px 16px;
}

.error-page .code {
  font-size: clamp(3.5rem, 10vw, 5.5rem);
  font-weight: 800;
  color: var(--blue-600);
  line-height: 1;
  margin: 0;
}

.error-page h1 {
  margin: 12px 0;
  color: var(--blue-900);
}

.error-page p {
  color: var(--muted);
  max-width: 420px;
  margin: 0 auto 20px;
}

/* Footer */
.site-footer {
  background: linear-gradient(180deg, #0d3d6b, #0a2a4a);
  color: #d7e8f7;
  padding: 40px 0 24px;
  margin-top: 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 24px;
}

.site-footer h3 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 1rem;
}

.site-footer p {
  margin: 0;
  color: #b9d0e6;
  font-size: 0.92rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin: 6px 0;
}

.site-footer a {
  color: #cfe3f5;
}

.site-footer a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 16px;
  font-size: 0.85rem;
  color: #9bb6ce;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  justify-content: space-between;
}

.crumb {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 12px;
}

.crumb a {
  color: var(--blue-700);
}

.related-links {
  margin-top: 28px;
  padding: 18px;
  background: var(--blue-50);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.related-links h3 {
  margin: 0 0 10px;
  font-size: 1rem;
  color: var(--blue-900);
}

.related-links ul {
  margin: 0;
  padding-left: 1.1em;
}

.related-links li {
  margin: 4px 0;
}

/* Responsive */
@media (max-width: 960px) {
  .hero-inner,
  .split,
  .split.reverse .text,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .split.reverse .text {
    order: 0;
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .quick-nav,
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-visual img,
  .split .shot img {
    max-height: 480px;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: calc(100% - 4px);
    left: 0;
    right: 0;
    z-index: 101;
    width: auto;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(13, 61, 107, 0.12);
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-menu li {
    border-top: 1px solid var(--line);
  }

  .nav-menu li:first-child {
    border-top: none;
  }

  .nav-menu a {
    display: block;
    padding: 12px 4px;
  }

  .nav-wrap {
    flex-wrap: nowrap;
  }

  .feature-grid,
  .quick-nav,
  .steps {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 28px;
  }

  section {
    padding: 36px 0;
  }

  .legal-content {
    padding: 20px 16px;
  }

  .footer-bottom {
    flex-direction: column;
  }
}
