:root {
  --bg: #f7f8fc;
  --card: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --brand: #e11d48;
  --brand-dark: #be123c;
  --line: #e5e7eb;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  color: var(--brand-dark);
}

.container {
  width: min(1120px, 94%);
  margin: 0 auto;
}

.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 0;
  position: relative;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
}

.brand img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.nav-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.nav-toggle-btn {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-direction: column;
  background: #fff;
  cursor: pointer;
}

.nav-toggle-btn span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--text);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 14px;
}

@media (max-width: 720px) {
  .site-header .container {
    align-items: flex-start;
  }

  .header-inner {
    flex-wrap: wrap;
  }

  .nav-toggle-btn {
    display: inline-flex;
    margin-left: auto;
  }

  .nav {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 0;
    padding: 10px 0 2px;
    border-top: 1px solid var(--line);
    background: #fff;
  }

  .nav a {
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
  }

  .nav-toggle:checked ~ .nav {
    display: flex;
  }
}

.hero {
  padding: 34px 0 20px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
}

h1, h2, h3 {
  line-height: 1.4;
  margin: 0 0 12px;
}

h1 {
  font-size: 30px;
}

h2 {
  font-size: 24px;
}

h3 {
  font-size: 18px;
}

p {
  margin: 0 0 12px;
}

.muted {
  color: var(--muted);
}

.btn {
  display: inline-block;
  margin-top: 6px;
  background: var(--brand);
  color: #fff;
  border-radius: 10px;
  padding: 10px 16px;
  font-weight: 600;
}

.btn:hover {
  color: #fff;
  background: var(--brand-dark);
}

.section {
  padding: 12px 0 16px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.thumb {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--line);
  display: block;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.media-caption {
  font-size: 14px;
  color: var(--muted);
  margin-top: 8px;
}

ul {
  margin: 6px 0 0;
  padding-left: 18px;
}

.site-footer {
  margin-top: 30px;
  background: #fff;
  border-top: 1px solid var(--line);
}

.site-footer .container {
  padding: 18px 0 30px;
  font-size: 14px;
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 10px;
}

.badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badge {
  background: #fff1f2;
  color: var(--brand-dark);
  border: 1px solid #fecdd3;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 13px;
}

.faq-item + .faq-item {
  margin-top: 8px;
}

.center-box {
  min-height: 70vh;
  display: grid;
  place-items: center;
}

.center-content {
  text-align: center;
  width: min(620px, 92%);
}

@media (max-width: 980px) {
  .hero-grid,
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }
}
