:root {
  --bg: #ffffff;
  --ink: #111827;
  --muted: #4b5563;
  --line: #e5e7eb;
  --accent: #f43f5e;
  --accent-ink: #ffffff;
  --soft: #fff1f2;
  --radius: 16px;
  --radius-sm: 12px;
  --radius-lg: 28px;
  --shadow: 0 8px 24px rgba(17, 24, 39, .08);
  --font-sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  --font-serif: ui-serif, Georgia, "Times New Roman", STSong, "Songti SC", serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body.site {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font: 16px/1.7 var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

body.site[data-font="serif"] {
  font-family: var(--font-serif);
}

body.site[data-corner="square"] {
  --radius: 4px;
  --radius-sm: 4px;
  --radius-lg: 8px;
}

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

a:hover {
  text-decoration: underline;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
}

.container {
  width: min(1100px, 100%);
  margin: 0 auto;
  padding-inline: 20px;
}

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

.lead {
  margin: 4px 0 0;
  color: #374151;
  font-size: 1.125rem;
  overflow-wrap: anywhere;
}

.crumbs {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: .92rem;
  overflow-wrap: anywhere;
}

.btn-primary {
  display: inline-block;
  max-width: 100%;
  padding: 10px 18px;
  overflow-wrap: anywhere;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  color: var(--accent-ink);
  text-decoration: none;
}

.btn-lg {
  padding: 14px 22px;
  font-size: 1.05rem;
}

.btn-link {
  color: var(--ink);
  border-bottom: 2px solid var(--line);
  padding-bottom: 2px;
  overflow-wrap: anywhere;
}

.btn-link:hover {
  color: var(--ink);
  border-color: var(--ink);
  text-decoration: none;
}

.header-bar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(140%) blur(8px);
}

.header-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "brand tools"
    "nav nav";
  align-items: center;
  gap: 8px 16px;
  min-height: 64px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.brand {
  grid-area: brand;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 20px;
  font-weight: 900;
  line-height: 1.25;
}

.header-tools {
  grid-area: tools;
  display: flex;
  min-width: 0;
  max-width: 100%;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.header-action {
  flex: 0 1 auto;
  max-width: min(42vw, 210px);
  white-space: normal;
}

.nav-links {
  grid-area: nav;
  display: flex;
  min-width: 0;
  max-width: 100%;
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px 0 4px;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.nav-links a {
  flex: 0 0 auto;
  padding: 5px 0;
  color: var(--muted);
  white-space: nowrap;
}

.nav-links a[aria-current="true"],
.nav-links a:hover {
  color: var(--ink);
  border-bottom: 2px solid var(--accent);
  text-decoration: none;
}

.lang-switch {
  display: flex;
  flex: 0 1 auto;
  gap: 8px;
  max-width: min(32vw, 190px);
  overflow-x: auto;
  font-size: .9rem;
  scrollbar-width: thin;
}

.lang-switch a {
  flex: 0 0 auto;
  white-space: nowrap;
  color: var(--muted);
}

.lang-switch a[aria-current="true"] {
  color: var(--ink);
  font-weight: 700;
}

.section {
  padding: 56px 0;
}

.section + .section {
  border-top: 1px solid var(--line);
}

.section-title {
  margin: 0 0 18px;
  font-size: 28px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.sub-title {
  margin: 22px 0 10px;
  color: var(--muted);
  font-size: 18px;
  overflow-wrap: anywhere;
}

.hero {
  background: linear-gradient(135deg, rgba(244, 63, 94, .14), #fff);
}

.hero-cover,
.hero-split {
  padding: 80px 0;
}

.hero-center {
  text-align: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 28px;
  align-items: center;
}

.hero-media img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.hero-title {
  margin: 0 0 12px;
  font-size: 40px;
  line-height: 1.15;
  letter-spacing: -.02em;
  overflow-wrap: anywhere;
}

.hero-sub {
  margin: 0 0 18px;
  color: #374151;
  font-size: 18px;
  overflow-wrap: anywhere;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: inherit;
  gap: 12px;
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}

.stat-grid,
.card-grid,
.feature-grid,
.quote-grid,
.team-grid,
.logo-grid,
.post-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 18px;
}

.stat-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat-card {
  padding: 16px;
  border: 1px solid rgba(244, 63, 94, .25);
  border-radius: var(--radius);
  background: var(--soft);
  text-align: center;
}

.stat-num {
  color: var(--ink);
  font-size: 28px;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.stat-label,
.card-kicker,
.person-role,
.quote-meta,
.post-meta {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.card-grid,
.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card,
.feature-card,
.quote-card,
.post-card,
details,
.logo-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.card {
  overflow: hidden;
}

.card-body {
  padding: 14px 14px 16px;
}

.card-title,
.post-title {
  margin: 0 0 6px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.card-title {
  font-size: 18px;
}

.card-text,
.post-excerpt {
  margin: 6px 0 10px;
  color: #374151;
  overflow-wrap: anywhere;
}

.card-actions {
  margin-top: 10px;
}

.feature-card {
  padding: 16px;
}

.icon {
  display: grid;
  width: 44px;
  height: 44px;
  margin-bottom: 10px;
  place-items: center;
  border-radius: 12px;
  background: var(--soft);
}

.i {
  width: 22px;
  height: 22px;
  fill: var(--accent);
}

.quote-grid,
.post-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.quote-card {
  padding: 18px;
}

.quote-card blockquote {
  margin: 0 0 8px;
  overflow-wrap: anywhere;
}

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

.person-card {
  min-width: 0;
  text-align: center;
}

.avatar img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 999px;
}

.person-name {
  margin-top: 10px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.logo-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: center;
}

.logo-card {
  padding: 10px;
  text-align: center;
}

.logo-card img {
  width: auto;
  max-height: 56px;
  margin: 0 auto;
}

.logo-caption {
  margin-top: 6px;
  overflow-wrap: anywhere;
}

.faq-list {
  display: grid;
  gap: 12px;
}

details {
  padding: 10px 14px;
}

summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
  overflow-wrap: anywhere;
}

summary::-webkit-details-marker {
  display: none;
}

details[open] {
  border-color: rgba(244, 63, 94, .45);
  box-shadow: var(--shadow);
}

.faq-body {
  margin-top: 8px;
  color: #374151;
  overflow-wrap: anywhere;
}

.content {
  color: #1f2937;
  overflow-wrap: anywhere;
}

.content h2 {
  margin-top: 22px;
  font-size: 22px;
  overflow-wrap: anywhere;
}

.content h3 {
  margin-top: 18px;
  color: var(--ink);
  font-size: 18px;
  overflow-wrap: anywhere;
}

.content img {
  max-width: 100%;
}

.content details {
  margin: 10px 0;
}

.content ul,
.content ol {
  margin: 10px 0;
  padding-inline-start: 22px;
}

.page-title {
  margin: 0 0 10px;
  font-size: 32px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.post-head {
  margin-bottom: 8px;
}

.post-source {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  color: var(--muted);
  overflow-wrap: anywhere;
}

.related {
  margin-top: 26px;
}

.dot-list {
  margin: 8px 0 0;
  padding-inline-start: 20px;
}

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

.gallery figure {
  margin: 0;
}

.contact-blocks img {
  max-width: min(280px, 100%);
  margin-top: 20px;
}

.section-head,
.foot-row,
.pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pager {
  margin-top: 24px;
  color: var(--muted);
}

.pager a {
  color: var(--ink);
  overflow-wrap: anywhere;
}

.site-footer {
  padding: 20px 0 28px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .95rem;
}

.foot-row {
  align-items: flex-start;
  margin-bottom: 10px;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 8px;
}

.foot-links a {
  color: var(--muted);
}

.foot-line {
  margin-top: 6px;
  overflow-wrap: anywhere;
}

.float-cta,
.float-note {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  max-width: min(280px, calc(100vw - 36px));
}

.float-cta {
  padding: 12px 16px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 800;
  box-shadow: var(--shadow);
  text-align: center;
  overflow-wrap: anywhere;
}

.float-cta:hover {
  color: var(--accent-ink);
  text-decoration: none;
}

.float-note {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  overflow-wrap: anywhere;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0f14;
    --ink: #e5e7eb;
    --muted: #b6beca;
    --line: #1f2937;
    --soft: #24151b;
  }

  body {
    color-scheme: dark;
  }

  .header-bar {
    background: rgba(11, 15, 20, .96);
  }

  .brand,
  .btn-link,
  .post-title a,
  .page-title {
    color: var(--ink);
  }

  .card,
  .feature-card,
  .quote-card,
  .post-card,
  details,
  .logo-card,
  .float-note {
    background: #0f141a;
    border-color: #263241;
  }

  .hero {
    background: linear-gradient(135deg, #3b1823, #0b0f14);
  }

  .lead,
  .hero-sub,
  .card-text,
  .post-excerpt,
  .faq-body,
  .content {
    color: #d1d5db;
  }
}

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .card-grid,
  .feature-grid,
  .quote-grid,
  .post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .team-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .logo-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .hero-title {
    font-size: 34px;
  }
}

@media (max-width: 640px) {
  .container {
    padding-inline: 16px;
  }

  .section {
    padding: 44px 0;
  }

  .hero-cover,
  .hero-split {
    padding: 64px 0;
  }

  .hero-title {
    font-size: 28px;
  }

  .two-col,
  .stat-grid,
  .card-grid,
  .feature-grid,
  .quote-grid,
  .post-grid,
  .team-grid,
  .logo-grid,
  .gallery {
    grid-template-columns: 1fr;
  }

  .header-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, auto);
    gap: 8px 10px;
  }

  .brand {
    font-size: 18px;
  }

  .header-tools {
    gap: 7px;
  }

  .header-action {
    max-width: 38vw;
    padding: 8px 11px;
    font-size: .9rem;
  }

  .lang-switch {
    max-width: 28vw;
    gap: 6px;
  }

  .nav-links {
    gap: 13px;
  }

  .section-head,
  .foot-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .float-cta,
  .float-note {
    right: 16px;
    bottom: 16px;
    max-width: calc(100vw - 32px);
  }
}

@media (max-width: 390px) {
  .container {
    padding-inline: 16px;
  }

  .header-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 40%);
    gap: 8px;
  }

  .header-tools {
    align-items: flex-end;
    flex-direction: column;
  }

  .header-action,
  .lang-switch {
    max-width: 100%;
  }

  .header-action {
    width: 100%;
  }

  .lang-switch {
    width: 100%;
    justify-content: flex-end;
  }
}
