:root {
  --bg: #0b1220;
  --bg-soft: #121a2b;
  --bg-card: #162033;
  --line: #243149;
  --text: #e8eef8;
  --muted: #9aabc4;
  --brand: #1db954;
  --brand-dark: #149443;
  --accent: #f5c518;
  --white: #ffffff;
  --danger: #e74c3c;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
  --container: 1180px;
  --font: "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: linear-gradient(180deg, #0b1220 0%, #0f1726 40%, #0b1220 100%);
  color: var(--text);
  line-height: 1.8;
  min-height: 100vh;
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  color: var(--accent);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  padding-left: 1.2rem;
}

.container {
  width: min(100% - 2rem, var(--container));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(11, 18, 32, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--white);
  font-weight: 700;
  font-size: 1.15rem;
}

.logo img {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  object-fit: cover;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.nav-desktop a {
  color: var(--text);
  padding: 0.45rem 0.7rem;
  border-radius: 6px;
  font-size: 0.95rem;
}

.nav-desktop a:hover,
.nav-desktop a.active {
  background: rgba(29, 185, 84, 0.15);
  color: var(--brand);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.15rem;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s ease;
  text-align: center;
}

.btn-primary {
  background: var(--brand);
  color: #04150b;
}

.btn-primary:hover {
  background: var(--brand-dark);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  border-color: var(--brand);
  color: var(--brand);
}

.btn-outline:hover {
  background: var(--brand);
  color: #04150b;
}

.btn-lg {
  padding: 0.85rem 1.4rem;
  font-size: 1.05rem;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-soft);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--white);
  transition: 0.25s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  background: #0d1524;
}

.mobile-nav.open {
  display: block;
}

.mobile-nav a {
  display: block;
  padding: 0.9rem 1rem;
  color: var(--text);
  border-bottom: 1px solid var(--line);
}

.mobile-nav a:hover,
.mobile-nav a.active {
  color: var(--brand);
  background: rgba(29, 185, 84, 0.08);
}

.hero {
  position: relative;
  padding: 3.5rem 0 2.5rem;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(29, 185, 84, 0.18), transparent 40%),
    radial-gradient(circle at 80% 10%, rgba(245, 197, 24, 0.12), transparent 35%),
    linear-gradient(180deg, rgba(11, 18, 32, 0.2), rgba(11, 18, 32, 0.85));
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  padding: 0.3rem 0.7rem;
  border: 1px solid rgba(29, 185, 84, 0.4);
  border-radius: 999px;
  color: var(--brand);
  font-size: 0.85rem;
  margin-bottom: 1rem;
  background: rgba(29, 185, 84, 0.08);
}

.hero h1 {
  font-size: clamp(1.7rem, 3.5vw, 2.5rem);
  line-height: 1.35;
  margin-bottom: 1rem;
  color: var(--white);
}

.hero-lead {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.hero-note {
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-visual {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  background: var(--bg-card);
}

.hero-visual img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.section {
  padding: 3rem 0;
}

.section-title {
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  margin-bottom: 0.75rem;
  color: var(--white);
}

.section-desc {
  color: var(--muted);
  margin-bottom: 1.75rem;
  max-width: 780px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.feature-card,
.content-card,
.partner-card,
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.feature-card img,
.content-card img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 0.9rem;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.feature-card h3,
.content-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.55rem;
  color: var(--white);
}

.feature-card p,
.content-card p,
.prose p {
  color: var(--muted);
  margin-bottom: 0.85rem;
}

.prose h2,
.prose h3 {
  color: var(--white);
  margin: 1.6rem 0 0.8rem;
}

.prose h2 {
  font-size: 1.45rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid var(--line);
}

.prose h3 {
  font-size: 1.2rem;
}

.prose ul,
.prose ol {
  margin: 0.6rem 0 1rem;
  color: var(--muted);
}

.prose li {
  margin-bottom: 0.4rem;
}

.prose strong {
  color: var(--text);
}

.toc {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  margin: 1.5rem 0 2rem;
}

.toc h2 {
  font-size: 1.1rem;
  margin-bottom: 0.7rem;
  color: var(--white);
  border: none;
  padding: 0;
}

.toc ol {
  columns: 2;
  gap: 1.5rem;
}

.toc a {
  color: var(--muted);
}

.toc a:hover {
  color: var(--brand);
}

.cta-band {
  background: linear-gradient(135deg, rgba(29, 185, 84, 0.18), rgba(245, 197, 24, 0.08));
  border: 1px solid rgba(29, 185, 84, 0.35);
  border-radius: 14px;
  padding: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.cta-band h2 {
  font-size: 1.35rem;
  color: var(--white);
  margin-bottom: 0.35rem;
}

.cta-band p {
  color: var(--muted);
}

.partners {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.partner-card {
  text-align: center;
  padding: 1rem;
}

.partner-card img {
  height: 56px;
  width: auto;
  margin: 0 auto 0.7rem;
  object-fit: contain;
}

.partner-card span {
  color: var(--muted);
  font-size: 0.9rem;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.category-item {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.category-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.category-item .body {
  padding: 0.9rem 1rem 1.1rem;
}

.category-item h3 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
  color: var(--white);
}

.category-item p {
  color: var(--muted);
  font-size: 0.92rem;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  counter-reset: step;
}

.step {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem;
  position: relative;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--brand);
  color: #04150b;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.step h3 {
  color: var(--white);
  margin-bottom: 0.45rem;
  font-size: 1.05rem;
}

.step p {
  color: var(--muted);
  font-size: 0.95rem;
}

.faq-list {
  display: grid;
  gap: 0.9rem;
}

.faq-item h3 {
  color: var(--white);
  margin-bottom: 0.45rem;
  font-size: 1.05rem;
}

.faq-item p {
  color: var(--muted);
}

.auth-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
  padding: 2.5rem 0 3rem;
}

.auth-panel,
.auth-seo {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.5rem;
}

.auth-panel h1,
.page-hero h1 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--white);
  margin-bottom: 0.75rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--text);
  font-size: 0.95rem;
}

.form-group input {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #0d1524;
  color: var(--white);
  outline: none;
}

.form-group input:focus {
  border-color: var(--brand);
}

.form-tip {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 0.85rem;
}

.page-hero {
  padding: 2.2rem 0 1rem;
}

.page-hero p {
  color: var(--muted);
  max-width: 820px;
}

.breadcrumb {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 0.8rem;
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb a:hover {
  color: var(--brand);
}

.error-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 3rem 1rem;
}

.error-page h1 {
  font-size: 4rem;
  color: var(--brand);
  line-height: 1;
  margin-bottom: 0.6rem;
}

.error-page h2 {
  color: var(--white);
  margin-bottom: 0.7rem;
}

.error-page p {
  color: var(--muted);
  margin-bottom: 1.4rem;
  max-width: 560px;
}

.site-footer {
  margin-top: 2rem;
  border-top: 1px solid var(--line);
  background: #080e18;
  padding: 2.5rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.8rem;
}

.site-footer h3 {
  color: var(--white);
  margin-bottom: 0.8rem;
  font-size: 1.05rem;
}

.site-footer p,
.site-footer a {
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer a {
  display: block;
  margin-bottom: 0.45rem;
}

.site-footer a:hover {
  color: var(--brand);
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  color: var(--muted);
  font-size: 0.88rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem;
}

.inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
  margin: 1rem 0;
}

.inline-links a {
  color: var(--muted);
  border-bottom: 1px dashed var(--line);
}

.inline-links a:hover {
  color: var(--brand);
}

.table-wrap {
  overflow-x: auto;
  margin: 1rem 0 1.5rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}

th, td {
  border: 1px solid var(--line);
  padding: 0.75rem 0.85rem;
  text-align: left;
  color: var(--muted);
}

th {
  background: var(--bg-soft);
  color: var(--white);
}

@media (max-width: 980px) {
  .nav-desktop,
  .header-actions .btn-outline {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .hero-grid,
  .auth-wrap,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .card-grid,
  .category-grid,
  .steps,
  .partners {
    grid-template-columns: 1fr 1fr;
  }

  .toc ol {
    columns: 1;
  }
}

@media (max-width: 640px) {
  .card-grid,
  .category-grid,
  .steps,
  .partners {
    grid-template-columns: 1fr;
  }

  .header-actions .btn {
    padding: 0.55rem 0.8rem;
    font-size: 0.9rem;
  }

  .hero {
    padding-top: 2rem;
  }
}

/* 顶部广告位 */
.ads-top {
  padding: 0.75rem 0 0.25rem;
  background: rgba(22, 32, 51, 0.65);
  border-bottom: 1px solid var(--line);
}

#ads {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  background: transparent;
  margin: 8px 0;
}

#ads > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 76px;
  box-sizing: border-box;
}

#ads figure {
  margin: 0;
  text-align: center;
}

#ads img {
  width: 65px;
  height: 65px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
  transition: transform 180ms ease, box-shadow 180ms ease;
  display: block;
  border: none;
  background: linear-gradient(135deg, #fff, #fff);
}

#ads a {
  display: inline-block;
  text-decoration: none;
  border-radius: 15px;
}

#ads img:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

#ads figcaption,
#ads .caption {
  height: 15px;
  font-size: 11px;
  color: #9aabc4;
  text-align: center;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 4px;
}
