:root {
  --bg: #0c0d12;
  --bg-soft: #14161e;
  --bg-card: #1a1d28;
  --line: #2a2e3c;
  --text: #e8eaf0;
  --muted: #9aa0b4;
  --accent: #ff4d7a;
  --accent-2: #ff8a5c;
  --link: #ff7a9a;
  --ok: #3dd68c;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --max: 1100px;
  --font: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.8;
  font-size: 16px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  color: #ffb0c4;
  text-decoration: underline;
}

.container {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(12, 13, 18, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.ads-bar {
  position: sticky;
  top: 64px;
  z-index: 99;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: 8px 8px 6px;
}

.ads-bar #ads .caption,
.ads-bar #ads figcaption {
  color: var(--muted);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.15rem;
}

.brand:hover {
  text-decoration: none;
  color: var(--accent);
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px 18px;
  flex-wrap: wrap;
}

.nav a {
  color: var(--muted);
  font-size: 0.95rem;
}

.nav a:hover,
.nav a.active {
  color: var(--text);
  text-decoration: none;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 8px;
  cursor: pointer;
}

.menu-toggle-icon {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 18px;
  height: 14px;
}

.menu-toggle-icon span {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.hero {
  position: relative;
  padding: 48px 0 36px;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(255, 77, 122, 0.18), transparent 50%),
    radial-gradient(ellipse at 90% 20%, rgba(255, 138, 92, 0.12), transparent 45%),
    linear-gradient(180deg, #12141c 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.35;
  margin-bottom: 14px;
}

.hero .lead {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 22px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 600;
  border: 1px solid transparent;
  text-decoration: none;
  transition: 0.2s ease;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
}

.btn-primary:hover {
  filter: brightness(1.08);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-tags span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.03);
}

.hero-media {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--bg-card);
}

.hero-media img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  max-height: 520px;
}

.section {
  padding: 48px 0;
}

.section + .section {
  border-top: 1px solid var(--line);
}

.section-head {
  margin-bottom: 24px;
}

.section-head h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  margin-bottom: 10px;
}

.section-head p {
  color: var(--muted);
  max-width: 720px;
}

.prose h2,
.prose h3 {
  margin: 28px 0 12px;
  line-height: 1.4;
}

.prose h2 {
  font-size: 1.45rem;
}

.prose h3 {
  font-size: 1.15rem;
  color: #f2f4fa;
}

.prose p {
  margin-bottom: 14px;
  color: #d5d8e4;
}

.prose ul,
.prose ol {
  margin: 0 0 16px 1.2em;
  color: #d5d8e4;
}

.prose li {
  margin-bottom: 8px;
}

.prose strong {
  color: #fff;
  font-weight: 650;
}

.grid-3,
.grid-4,
.grid-2 {
  display: grid;
  gap: 18px;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: #111;
}

.card-body {
  padding: 14px 14px 16px;
}

.card-body h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.card-body p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.feature-item {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}

.feature-item h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.feature-item p {
  color: var(--muted);
  font-size: 0.95rem;
}

.toc {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 20px 0 28px;
}

.toc h2 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.toc ol {
  margin-left: 1.2em;
  color: var(--muted);
}

.toc a {
  color: var(--link);
}

.shot-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 18px 0 8px;
}

.shot-row img,
.phone-shot {
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg-card);
}

.phone-shot {
  aspect-ratio: 9 / 16;
  object-fit: cover;
  width: 100%;
}

.table-wrap {
  overflow-x: auto;
  margin: 16px 0 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}

th,
td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--bg-soft);
  color: #fff;
  font-weight: 600;
}

td {
  color: var(--muted);
}

tr:last-child td {
  border-bottom: none;
}

.faq details {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 10px;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: #fff;
}

.faq details p {
  margin-top: 10px;
  color: var(--muted);
}

.breadcrumb {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 18px;
}

.breadcrumb a {
  color: var(--muted);
}

.page-hero {
  padding: 36px 0 10px;
}

.page-hero h1 {
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  margin-bottom: 10px;
}

.page-hero p {
  color: var(--muted);
}

.legal {
  max-width: 860px;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #0a0b10;
  padding: 36px 0 28px;
  margin-top: 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.site-footer h3 {
  font-size: 1rem;
  margin-bottom: 12px;
}

.site-footer p,
.site-footer a {
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer ul {
  list-style: none;
}

.site-footer li {
  margin-bottom: 8px;
}

.copyright {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  color: #6f758a;
  font-size: 0.85rem;
}

.error-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 60px 16px;
}

.error-page h1 {
  font-size: 4rem;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 12px;
}

.error-page p {
  color: var(--muted);
  margin-bottom: 22px;
}

.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 12px;
}

.badge {
  display: inline-block;
  background: rgba(255, 77, 122, 0.12);
  color: #ff9bb4;
  border: 1px solid rgba(255, 77, 122, 0.35);
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 0.8rem;
  margin-bottom: 10px;
}

@media (max-width: 960px) {
  .hero-grid,
  .grid-4,
  .footer-grid,
  .feature-list {
    grid-template-columns: 1fr 1fr;
  }

  .grid-3,
  .shot-row {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .menu-toggle {
    display: inline-flex;
  }

  .header-inner {
    position: relative;
    flex-wrap: nowrap;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 16px 14px;
    background: rgba(12, 13, 18, 0.98);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
  }

  .nav a:last-child {
    border-bottom: none;
  }

  .hero-grid,
  .grid-2,
  .grid-3,
  .grid-4,
  .shot-row,
  .feature-list,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 28px 0 24px;
  }

  .hero-media img {
    max-height: 420px;
  }

  .section {
    padding: 36px 0;
  }

  .cta-row .btn {
    width: 100%;
  }
}
