:root {
  --bg: #f6fbff;
  --panel: rgba(255, 255, 255, 0.94);
  --panel-strong: #ffffff;
  --line: rgba(24, 126, 214, 0.14);
  --ink: #14263a;
  --ink-soft: #53667a;
  --ink-faint: #7d8ea3;
  --sky: #1491f2;
  --sky-deep: #0d5fae;
  --sky-soft: #dff0ff;
  --danger: #a0522d;
  --shadow: 0 16px 34px rgba(14, 52, 88, 0.09);
  --shadow-strong: 0 22px 42px rgba(14, 52, 88, 0.14);
  --radius-lg: 22px;
  --radius-md: 16px;
  --shell: min(1120px, calc(100vw - 1.25rem));
  --header-offset: 72px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: light;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", "Noto Sans SC", "Microsoft YaHei UI", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(20, 145, 242, 0.1), transparent 32%),
    linear-gradient(180deg, #fbfdff 0%, #f6fbff 38%, #edf5ff 100%);
  overflow-x: hidden;
}

html[lang="zh-CN"] body {
  font-family: "Noto Sans SC", "Space Grotesk", "Microsoft YaHei UI", "Segoe UI", sans-serif;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

:focus-visible {
  outline: 3px solid rgba(20, 145, 242, 0.3);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  z-index: 100;
  padding: 0.7rem 0.95rem;
  border-radius: 999px;
  background: var(--ink);
  color: #ffffff;
  transition: top 160ms ease;
}

.skip-link:focus-visible {
  top: 0.75rem;
}

.shell {
  width: var(--shell);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(246, 251, 255, 0.92);
  border-bottom: 1px solid rgba(20, 145, 242, 0.06);
}

.header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.8rem 0;
}

.brand,
.header-actions,
.hero-copy,
.hero-panel,
.panel,
.story-copy,
.dialog-copy,
.support-card,
.member-card {
  min-width: 0;
}

.brand {
  display: flex;
  flex: 1 1 220px;
  align-items: center;
  gap: 0.75rem;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--sky-soft);
  padding: 0.35rem;
  box-shadow: inset 0 0 0 1px rgba(20, 145, 242, 0.12);
}

.brand-copy strong,
.brand-copy span,
.hero-copy h1,
.section-heading h2,
.panel h2,
.snapshot-card h3,
.theme-card h3,
.support-card h3,
.member-card h3,
.story-copy h3,
.dialog-copy h2 {
  overflow-wrap: anywhere;
}

.brand-copy strong {
  display: block;
  font-size: 0.95rem;
}

.brand-copy span {
  display: block;
  font-size: 0.78rem;
  color: var(--ink-soft);
}

.desktop-nav {
  display: none;
}

.site-nav,
.mobile-nav {
  gap: 0.35rem;
}

.site-nav a,
.mobile-nav a,
.footer-link,
.return-link {
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.site-nav a,
.mobile-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 0.88rem;
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 700;
}

.site-nav a:hover,
.site-nav a[aria-current="location"],
.mobile-nav a:hover,
.mobile-nav a[aria-current="location"] {
  color: var(--sky-deep);
  background: rgba(20, 145, 242, 0.1);
}

.header-actions {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
}

.lang-switch {
  display: inline-flex;
  gap: 0.3rem;
  padding: 0.24rem;
  border-radius: 999px;
  border: 1px solid rgba(20, 145, 242, 0.1);
  background: rgba(255, 255, 255, 0.88);
}

.lang-chip {
  min-width: 40px;
  padding: 0.45rem 0.68rem;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.lang-chip[aria-pressed="true"] {
  color: #ffffff;
  background: linear-gradient(135deg, var(--sky), #35a3ff);
}

.menu-toggle,
.menu-close,
.dialog-close {
  border: 1px solid rgba(20, 145, 242, 0.14);
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
}

.menu-toggle {
  min-height: 44px;
  padding: 0.65rem 0.9rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 45;
  background: rgba(9, 23, 37, 0.26);
}

.mobile-nav-drawer {
  position: fixed;
  top: calc(var(--header-offset) + 0.3rem);
  right: 0.625rem;
  z-index: 46;
  width: min(320px, calc(100vw - 1.25rem));
  padding: 0.95rem;
  border: 1px solid rgba(20, 145, 242, 0.12);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-strong);
}

.mobile-nav-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.mobile-nav {
  display: grid;
}

.mobile-nav a {
  justify-content: flex-start;
  border-radius: 14px;
}

.menu-close {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  cursor: pointer;
}

.section {
  padding: 1.35rem 0 1.6rem;
  scroll-margin-top: calc(var(--header-offset) + 0.6rem);
}

.section-soft {
  background:
    linear-gradient(180deg, rgba(235, 245, 255, 0.78), rgba(245, 251, 255, 0.35)),
    linear-gradient(90deg, rgba(20, 145, 242, 0.03), transparent 38%, transparent 62%, rgba(20, 145, 242, 0.03));
  border-top: 1px solid rgba(20, 145, 242, 0.08);
  border-bottom: 1px solid rgba(20, 145, 242, 0.08);
}

.hero {
  padding-top: 1.1rem;
}

.hero-grid,
.section-grid,
.snapshot-grid,
.theme-grid,
.story-grid,
.support-grid,
.member-grid,
.hero-panel-list {
  display: grid;
  gap: 0.9rem;
}

.hero-copy h1,
.section-heading h2,
.panel h2,
.dialog-copy h2 {
  margin: 0;
  line-height: 1.04;
  text-wrap: balance;
}

.hero-copy h1 {
  font-size: clamp(2.2rem, 11vw, 4.6rem);
  letter-spacing: -0.05em;
}

html[lang="zh-CN"] .hero-copy h1,
html[lang="zh-CN"] .section-heading h2,
html[lang="zh-CN"] .panel h2,
html[lang="zh-CN"] .dialog-copy h2 {
  letter-spacing: -0.03em;
}

.eyebrow,
.panel-label,
.story-meta,
.role-badge {
  margin: 0;
  color: var(--sky-deep);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.hero-lead,
.section-lead,
.panel p,
.snapshot-card p,
.theme-card p,
.support-card p,
.member-card p,
.story-preview,
.dialog-caption p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.68;
}

.hero-lead {
  margin-top: 0.95rem;
  max-width: 54ch;
  font-size: clamp(1rem, 4.2vw, 1.12rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.15rem;
}

.hero-subtle-link {
  display: inline-flex;
  margin-top: 0.85rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.78rem 1.05rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
}

.hero-actions .btn {
  flex: 1 1 220px;
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--sky), #37a6ff);
  box-shadow: 0 14px 24px rgba(20, 145, 242, 0.18);
}

.btn-secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(20, 145, 242, 0.14);
}

.hero-facts {
  display: grid;
  gap: 0.75rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.panel,
.micro-card,
.snapshot-card,
.theme-card,
.support-card,
.story-card,
.story-empty,
.notice-card,
.member-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.panel,
.snapshot-card,
.theme-card,
.support-card,
.member-card,
.dialog-copy,
.story-empty,
.notice-card {
  padding: 1rem;
}

.micro-card {
  padding: 0.9rem 1rem;
}

.micro-card span,
.panel-label {
  display: block;
  margin-bottom: 0.45rem;
}

.micro-card strong,
.snapshot-card h3,
.theme-card h3,
.support-card h3,
.member-card h3,
.story-copy h3 {
  display: block;
  margin: 0;
  line-height: 1.28;
}

.section-heading {
  margin-bottom: 0.9rem;
}

.section-heading h2,
.panel h2 {
  font-size: clamp(1.45rem, 6vw, 2.35rem);
}

.compact-panel h2 {
  font-size: clamp(1.1rem, 4.5vw, 1.5rem);
  margin-bottom: 0.45rem;
}

.panel p + p {
  margin-top: 0.75rem;
}

.panel-accent {
  background:
    linear-gradient(180deg, rgba(223, 240, 255, 0.72), rgba(255, 255, 255, 0.95)),
    var(--panel);
}

.step-list,
.bullet-list {
  margin: 0;
  padding: 0;
}

.step-list {
  display: grid;
  gap: 0.75rem;
  counter-reset: steps;
  list-style: none;
}

.step-list li {
  display: grid;
  gap: 0.25rem;
  padding: 0.95rem 1rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(20, 145, 242, 0.08);
}

.step-list li::before {
  counter-increment: steps;
  content: "0" counter(steps);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  background: rgba(20, 145, 242, 0.1);
  color: var(--sky-deep);
  font-size: 0.8rem;
  font-weight: 700;
}

.step-list strong {
  font-size: 1rem;
}

.step-list p {
  margin: 0;
  color: var(--ink-soft);
}

.bullet-list {
  display: grid;
  gap: 0.7rem;
  list-style: none;
}

.bullet-list li {
  position: relative;
  padding-left: 1.2rem;
  color: var(--ink-soft);
  line-height: 1.68;
}

.bullet-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--sky);
}

.theme-card span,
.role-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  padding: 0.32rem 0.56rem;
  border-radius: 999px;
  background: rgba(20, 145, 242, 0.1);
}

.theme-card span {
  margin-bottom: 0.85rem;
}

.story-status {
  min-height: 3rem;
  display: flex;
  align-items: center;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-md);
  border: 1px dashed rgba(20, 145, 242, 0.18);
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink-soft);
}

.story-status[data-state="error"] {
  color: var(--danger);
  border-style: solid;
  border-color: rgba(160, 82, 45, 0.2);
  background: rgba(253, 240, 234, 0.92);
}

.story-status[data-state="empty"] {
  color: var(--sky-deep);
}

.story-grid {
  margin-top: 0.9rem;
  grid-template-columns: 1fr;
}

.story-card {
  display: flex;
  overflow: hidden;
}

.story-card button {
  display: grid;
  grid-template-rows: auto 1fr;
  width: 100%;
  height: 100%;
  padding: 0;
  border: none;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.story-media,
.skeleton-media {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #dcebfb, #eff6ff);
  overflow: hidden;
}

.story-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-copy {
  display: grid;
  gap: 0.48rem;
  align-content: start;
  padding: 1.02rem 1.05rem 1.1rem;
}

.story-meta {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

.story-copy h3 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-size: 0.98rem;
}

.story-preview {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-size: 0.88rem;
  line-height: 1.55;
}

.story-link {
  color: var(--sky-deep);
  font-size: 0.78rem;
  font-weight: 700;
}

.story-skeleton {
  pointer-events: none;
}

.skeleton-media,
.skeleton-line {
  background: linear-gradient(90deg, rgba(215, 233, 247, 0.84), rgba(243, 249, 255, 1), rgba(215, 233, 247, 0.84));
  background-size: 220% 100%;
  animation: skeletonPulse 1.6s linear infinite;
}

.skeleton-line {
  height: 14px;
  margin: 0;
  border-radius: 999px;
}

.skeleton-line-long {
  width: 82%;
}

.skeleton-line-mid {
  width: 64%;
}

.skeleton-line-short {
  width: 48%;
}

.support-card {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 0.9rem;
  align-items: start;
}

.support-card img {
  width: 64px;
  height: 64px;
  padding: 0.7rem;
  border-radius: 18px;
  background: var(--sky-soft);
  object-fit: contain;
  box-shadow: inset 0 0 0 1px rgba(20, 145, 242, 0.12);
}

.site-footer {
  padding: 0.4rem 0 1.2rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(20, 145, 242, 0.08);
}

.footer-note {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.84rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.footer-link,
.return-link {
  color: var(--ink-faint);
  font-size: 0.82rem;
  font-weight: 700;
}

.footer-link:hover,
.return-link:hover {
  color: var(--sky-deep);
}

.story-dialog {
  width: min(980px, calc(100vw - 1rem));
  max-width: 100%;
  padding: 0;
  border: none;
  border-radius: 28px;
  background: transparent;
}

.story-dialog::backdrop {
  background: rgba(8, 18, 30, 0.42);
  backdrop-filter: blur(6px);
}

.story-dialog-shell {
  position: relative;
  display: grid;
  overflow: hidden;
  border-radius: 26px;
  background: var(--panel-strong);
  border: 1px solid rgba(20, 145, 242, 0.14);
  box-shadow: 0 34px 80px rgba(8, 18, 30, 0.2);
}

.dialog-media {
  background: linear-gradient(135deg, #dcebfb, #eff6ff);
}

.story-dialog-shell img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
}

.dialog-copy {
  display: grid;
  gap: 0.8rem;
  max-height: min(52vh, 460px);
  overflow: auto;
}

.dialog-id {
  margin: 0;
  color: var(--sky-deep);
  font-weight: 700;
}

.dialog-caption {
  display: grid;
  gap: 0.75rem;
}

.dialog-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  cursor: pointer;
}

body.page-team {
  font-family: "Inter", system-ui, sans-serif;
}

.page-team .brand-copy strong,
.page-team h1,
.page-team h2,
.page-team h3,
.page-team .eyebrow,
.page-team .panel-label,
.page-team .role-badge,
.page-team .story-meta,
.page-team .step-list strong {
  font-family: "Manrope", "Inter", sans-serif;
}

.page-team .hero {
  padding-top: 1.3rem;
}

.notice-card p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.68;
}

.member-card {
  display: grid;
  gap: 0.55rem;
}

.member-card h3 {
  font-size: 1.18rem;
}

.reveal,
.reveal-card {
  opacity: 1;
  transform: none;
}

.reveal.is-visible,
.reveal-card.is-visible {
  animation: settleIn 320ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.reveal-card.is-visible {
  animation-duration: 360ms;
}

@keyframes settleIn {
  from {
    opacity: 0.72;
    transform: translate3d(0, 8px, 0);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes skeletonPulse {
  0% {
    background-position: 0% 50%;
  }

  100% {
    background-position: 220% 50%;
  }
}

@media (min-width: 560px) {
  :root {
    --shell: min(1120px, calc(100vw - 1.5rem));
  }

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

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

@media (min-width: 820px) {
  .hero-grid,
  .section-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
    align-items: start;
  }

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

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

  .story-dialog-shell {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  }

  .story-dialog-shell img {
    min-height: 420px;
  }

  .dialog-copy {
    max-height: none;
  }

  .story-copy {
    min-height: 8.8rem;
  }
}

@media (min-width: 980px) {
  .header-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1rem;
    padding: 0.85rem 0;
  }

  .desktop-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
  }

  .menu-toggle {
    display: none;
  }

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

@media (max-width: 419px) {
  :root {
    --shell: min(1120px, calc(100vw - 1rem));
  }

  .hero-actions .btn {
    flex-basis: 100%;
  }

  .support-card {
    grid-template-columns: 1fr;
  }

  .support-card img {
    width: 56px;
    height: 56px;
  }
}

@media (max-width: 640px) {
  :root {
    --header-offset: 54px;
  }

  .header-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 0.42rem 0.5rem;
    padding: 0.45rem 0 0.5rem;
  }

  .brand {
    flex: initial;
    gap: 0.45rem;
    align-items: flex-start;
  }

  .brand img {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    padding: 0.22rem;
  }

  .brand-copy strong {
    font-size: 0.81rem;
    line-height: 1.08;
  }

  .brand-copy span {
    display: none;
  }

  .header-actions {
    flex: initial;
    gap: 0.28rem;
    align-items: center;
    width: auto;
  }

  .lang-switch {
    gap: 0.14rem;
    padding: 0.15rem;
  }

  .lang-chip {
    min-width: 28px;
    padding: 0.34rem 0.34rem;
    font-size: 0.68rem;
  }

  .menu-toggle {
    min-height: 34px;
    width: 34px;
    min-width: 34px;
    padding: 0;
    font-size: 0.72rem;
    justify-content: center;
  }

  .menu-toggle span {
    display: none;
  }

  .menu-toggle::before {
    content: "\2261";
    font-size: 1rem;
    font-weight: 700;
    line-height: 1;
  }

  .hero {
    padding-top: 0.72rem;
  }

  .hero-copy h1 {
    max-inline-size: 8.2ch;
    font-size: clamp(1.72rem, 8.9vw, 2.48rem);
    line-height: 0.98;
    text-wrap: pretty;
  }

  .hero-lead {
    margin-top: 0.62rem;
    font-size: 0.98rem;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }

  .hero-actions .btn {
    width: 100%;
    min-width: 0;
    flex: none;
  }

  .panel,
  .snapshot-card,
  .theme-card,
  .support-card,
  .member-card,
  .dialog-copy,
  .story-empty,
  .notice-card {
    padding: 0.92rem;
  }
}

@media (max-width: 380px) {
  .hero-copy h1 {
    max-inline-size: 7.4ch;
    font-size: clamp(1.6rem, 9.6vw, 2.18rem);
  }

  .story-copy {
    padding: 0.95rem 0.95rem 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .reveal-card,
  .skip-link,
  .site-nav a,
  .mobile-nav a,
  .footer-link,
  .return-link {
    transition: none !important;
    animation: none !important;
  }

  .reveal,
  .reveal-card {
    opacity: 1 !important;
    transform: none !important;
  }
}
