:root {
  color-scheme: light;
  --ink: #111817;
  --muted: #5c6862;
  --line: #dfe5e4;
  --paper: #f7f8f8;
  --white: #ffffff;
  --tool-media-surface: #eeeeee;
  --green: #168f78;
  --green-dark: #0f725f;
  --blue: #356aa0;
  --gold: #b27a21;
  --purple: #73558f;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: 'HarmonyOS Sans SC', 'Microsoft YaHei', 'PingFang SC', system-ui, sans-serif;
  letter-spacing: 0;
}

body,
button,
a {
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 20;
  padding: 10px 14px;
  color: var(--ink);
  background: var(--white);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.hero {
  position: relative;
  height: min(820px, calc(100svh - 44px));
  min-height: 560px;
  overflow: hidden;
  color: var(--white);
  background: var(--ink);
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  transition: opacity 180ms ease;
}

.hero-shade {
  background: rgba(7, 17, 13, 0.58);
}

.site-header,
.hero-content,
.hero-place,
.section-inner {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.site-header {
  position: relative;
  z-index: 2;
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
}

.header-brand {
  display: inline-flex;
  align-items: center;
}

.header-brand img {
  display: block;
  width: min(282px, 42vw);
  height: auto;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  font-weight: 650;
}

.header-nav a {
  color: rgba(255, 255, 255, 0.84);
  text-decoration: none;
}

.header-nav a:hover,
.header-nav a:focus-visible {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 6px;
}

.hero-content {
  position: relative;
  z-index: 1;
  height: calc(100% - 82px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 28px 0 112px;
}

.hero-kicker,
.section-kicker {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 750;
}

.hero-kicker {
  color: rgba(255, 255, 255, 0.8);
}

h1,
h2,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 780px;
  margin: 0;
  font-size: 58px;
  line-height: 1.12;
  font-weight: 760;
}

.hero-slogan {
  margin: 15px 0 0;
  font-size: 25px;
  line-height: 1.35;
  font-weight: 700;
}

.hero-summary {
  max-width: 680px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 17px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 5px;
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.button-primary {
  border-color: var(--white);
  color: var(--ink);
  background: var(--white);
}

.button:hover,
.button:focus-visible {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.14);
  outline: none;
}

.button-primary:hover,
.button-primary:focus-visible {
  color: var(--ink);
  background: #edf2ef;
}

.hero-place {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 28px;
  left: 0;
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
}

.hero-place > a {
  min-width: min(410px, calc(100% - 52px));
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3px 18px;
  align-items: center;
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-right: 0;
  color: var(--white);
  background: rgba(12, 24, 18, 0.74);
  backdrop-filter: blur(10px);
  text-decoration: none;
}

.hero-place-label {
  grid-column: 1 / -1;
  color: rgba(255, 255, 255, 0.68);
  font-size: 11px;
  font-weight: 700;
}

.hero-place strong {
  font-size: 15px;
}

.hero-place > a:hover,
.hero-place > a:focus-visible {
  background: rgba(12, 24, 18, 0.9);
  outline: none;
}

.hero-next {
  width: 52px;
  flex: 0 0 52px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 0;
  color: var(--white);
  background: rgba(12, 24, 18, 0.74);
  backdrop-filter: blur(10px);
  font: inherit;
  font-size: 20px;
  cursor: pointer;
}

.hero-next:hover,
.hero-next:focus-visible {
  background: rgba(12, 24, 18, 0.94);
  outline: 2px solid var(--white);
  outline-offset: -4px;
}

.section-band {
  padding: 84px 0;
}

.section-heading h2,
.service-intro h2,
.community-copy h2 {
  max-width: 720px;
  margin: 0;
  font-size: 38px;
  line-height: 1.24;
}

.section-kicker {
  color: var(--green-dark);
}

.story {
  background: var(--white);
}

.story-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
  gap: 88px;
  align-items: start;
}

.story-copy {
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.story-copy p {
  margin: 0;
  color: #36423c;
  font-size: 17px;
  line-height: 1.9;
}

.story-copy p + p {
  margin-top: 20px;
}

.tools {
  background: var(--paper);
}

.section-heading-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 72px;
  align-items: end;
  margin-bottom: 34px;
}

.section-heading-row > p,
.service-intro > p,
.community-copy > p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.tool-card {
  min-height: 420px;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto auto 1fr auto;
  gap: 10px 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--blue);
  border-radius: 6px;
  background: var(--white);
  text-decoration: none;
  overflow: hidden;
}

.tool-card:nth-child(3n) {
  border-top-color: var(--gold);
}

.tool-card-road {
  border-top-color: var(--green);
}

.tool-card-media {
  grid-column: 1 / -1;
  aspect-ratio: 8 / 5;
  margin: -24px -24px 10px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--tool-media-surface);
}

.tool-card-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.card-index {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.card-title {
  grid-column: 1 / -1;
  font-size: 21px;
  font-weight: 750;
}

.card-description {
  grid-column: 1 / -1;
  color: var(--muted);
  line-height: 1.65;
}

.card-description abbr {
  text-decoration: underline dotted;
  text-underline-offset: 3px;
  cursor: help;
}

.card-open {
  grid-column: 2;
  justify-self: end;
  align-self: end;
  color: var(--green-dark);
  font-size: 20px;
}

.tool-card:hover,
.tool-card:focus-visible {
  border-color: var(--green);
  box-shadow: 0 10px 26px rgba(20, 34, 27, 0.09);
  outline: none;
}

.card-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  align-self: end;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.card-actions a {
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.card-actions a:first-child {
  color: var(--green-dark);
}

.card-actions a:hover,
.card-actions a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 5px;
  outline: none;
}

.map-directory-copy > span {
  display: block;
  margin-bottom: 8px;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 750;
}

.generator-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.generator-links > span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.generator-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.generator-links a:hover,
.generator-links a:focus-visible {
  color: var(--green-dark);
  text-decoration: underline;
  text-underline-offset: 5px;
}

.services {
  background: var(--white);
}

.service-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  gap: 84px;
  align-items: start;
}

.service-intro {
  position: sticky;
  top: 34px;
}

.service-intro > p {
  max-width: 430px;
  margin-top: 22px;
}

.service-list {
  border-top: 1px solid var(--ink);
}

.service-list > a {
  min-height: 92px;
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 18px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.service-number {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.service-list strong,
.service-list small {
  display: block;
}

.service-list strong {
  font-size: 18px;
}

.service-list small {
  margin-top: 7px;
  color: var(--muted);
  font-size: 14px;
}

.service-arrow {
  font-size: 20px;
}

.service-list > a:hover,
.service-list > a:focus-visible {
  padding-right: 12px;
  padding-left: 12px;
  color: var(--green-dark);
  background: #f1f7f4;
  outline: none;
}

.map-directory {
  margin-top: 48px;
}

.map-directory-copy h3 {
  margin: 0;
  font-size: 26px;
  line-height: 1.3;
}

.map-directory-copy p {
  max-width: 590px;
  margin: 12px 0 22px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.map-primary {
  min-height: 102px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 20px;
  color: var(--white);
  background: #176851;
  text-decoration: none;
}

.map-recommendation {
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  font-size: 11px;
  font-weight: 750;
}

.map-primary strong,
.map-primary small,
.map-source-list strong,
.map-source-list small {
  display: block;
}

.map-primary strong {
  font-size: 19px;
}

.map-primary small {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
}

.map-primary:hover,
.map-primary:focus-visible {
  background: #10523f;
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.map-source-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}

.map-source-list a {
  min-height: 88px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
  border-right: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}

.map-source-list a:last-child {
  border-right: 0;
}

.map-source-list small {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.map-source-list a:hover,
.map-source-list a:focus-visible {
  color: var(--green-dark);
  background: #f1f7f4;
  outline: none;
}

.community {
  color: var(--white);
  background: #1c2521;
}

.community .section-kicker {
  color: #87cfbd;
}

.community-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.85fr) minmax(0, 1.15fr);
  gap: 84px;
  align-items: start;
}

.community-copy > p {
  max-width: 470px;
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.72);
}

.social-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.social-links a {
  min-height: 76px;
  display: grid;
  grid-template-columns: 30px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 0 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
}

.social-links a:nth-child(2n) {
  border-right: 0;
}

.social-links img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.social-links a:hover,
.social-links a:focus-visible {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

.social-links .social-support {
  grid-column: 1 / -1;
  border-right: 0;
}

body.dialog-open {
  overflow: hidden;
}

.wechat-dialog {
  width: min(1060px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100vh - 32px);
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: 6px;
  color: var(--ink);
  background: var(--white);
  box-shadow: 0 24px 70px rgba(3, 12, 8, 0.35);
}

.wechat-dialog::backdrop {
  background: rgba(8, 18, 14, 0.72);
  backdrop-filter: blur(5px);
}

.wechat-dialog-header,
.wechat-dialog-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 22px;
}

.wechat-dialog-header > div > span {
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 750;
}

.wechat-dialog-header h2 {
  margin: 4px 0 0;
  font-size: 24px;
}

.wechat-dialog-close {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border: 1px solid var(--line);
  border-radius: 0;
  color: var(--ink);
  background: transparent;
  font: inherit;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.wechat-dialog-close:hover,
.wechat-dialog-close:focus-visible {
  color: var(--white);
  background: var(--green-dark);
  outline: none;
}

.wechat-poster {
  width: 100%;
  height: auto;
  display: block;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.wechat-dialog-footer {
  color: var(--muted);
  font-size: 13px;
}

.wechat-dialog-footer a {
  color: var(--green-dark);
  font-weight: 700;
  text-decoration: none;
}

.wechat-dialog-footer a:hover,
.wechat-dialog-footer a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.site-footer {
  color: rgba(255, 255, 255, 0.7);
  background: #111714;
}

.footer-layout {
  min-height: 178px;
  display: grid;
  align-content: center;
  align-items: center;
  justify-items: center;
  gap: 24px;
  padding: 28px 0;
  text-align: center;
}

.footer-layout strong {
  color: var(--white);
}

.footer-layout p {
  max-width: 560px;
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.7;
}

.filings {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 20px;
  font-size: 13px;
}

.filings a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: inherit;
  text-decoration: none;
}

.filings a:hover,
.filings a:focus-visible {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.filings img {
  width: 18px;
  height: 18px;
}

@media (max-width: 880px) {
  .site-header,
  .hero-content,
  .hero-place,
  .section-inner {
    width: min(1180px, calc(100% - 32px));
  }

  .header-nav {
    gap: 18px;
  }

  .story-layout,
  .service-layout,
  .community-layout {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .story-copy {
    padding-top: 24px;
  }

  .section-heading-row {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .tool-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tool-card-with-actions {
    grid-column: 1 / -1;
    min-height: 390px;
  }

  .tool-card-with-actions .tool-card-media {
    aspect-ratio: 5 / 2;
  }

  .service-intro {
    position: static;
  }
}

@media (max-width: 620px) {
  .hero {
    height: calc(100svh - 32px);
    min-height: 590px;
  }

  .site-header {
    height: 68px;
    gap: 12px;
  }

  .header-brand img {
    width: min(220px, 60vw);
  }

  .header-nav a:not(:last-child) {
    display: none;
  }

  .hero-content {
    height: calc(100% - 68px);
    padding: 20px 0 126px;
  }

  h1 {
    font-size: 42px;
  }

  .hero-slogan {
    font-size: 21px;
  }

  .hero-summary {
    max-width: 520px;
    margin-top: 16px;
    font-size: 15px;
    line-height: 1.7;
  }

  .hero-actions {
    margin-top: 22px;
  }

  .hero-place {
    bottom: 18px;
  }

  .hero-place > a {
    min-width: 0;
    flex: 1;
  }

  .section-band {
    padding: 62px 0;
  }

  .section-heading h2,
  .service-intro h2,
  .community-copy h2 {
    font-size: 31px;
  }

  .story-copy p {
    font-size: 16px;
  }

  .tool-grid,
  .social-links {
    grid-template-columns: 1fr;
  }

  .tool-card,
  .tool-card-with-actions {
    grid-column: auto;
    min-height: 390px;
  }

  .tool-card-with-actions .tool-card-media {
    aspect-ratio: 8 / 5;
  }

  .map-source-list {
    grid-template-columns: 1fr;
  }

  .map-source-list a,
  .map-source-list a:last-child {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .map-source-list {
    border-bottom: 0;
  }

  .map-primary {
    grid-template-columns: 1fr auto;
  }

  .map-recommendation {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .social-links a,
  .social-links a:nth-child(2n),
  .social-links .social-support {
    grid-column: auto;
    border-right: 0;
  }

  .wechat-dialog {
    width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);
  }

  .wechat-dialog-header,
  .wechat-dialog-footer {
    padding: 14px;
  }

  .service-list > a {
    grid-template-columns: 34px 1fr auto;
    gap: 12px;
  }

  .footer-layout {
    min-height: 214px;
    gap: 24px;
  }

  .filings {
    justify-content: center;
  }
}

@media (max-height: 650px) {
  .hero {
    height: calc(100svh - 24px);
    min-height: 0;
  }

  .site-header {
    height: 62px;
  }

  .hero-content {
    height: calc(100% - 62px);
    padding-top: 14px;
    padding-bottom: 86px;
  }

  .hero-kicker {
    margin-bottom: 8px;
  }

  h1 {
    font-size: 38px;
  }

  .hero-slogan {
    margin-top: 9px;
    font-size: 19px;
  }

  .hero-summary {
    max-width: 620px;
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.55;
  }

  .hero-actions {
    margin-top: 15px;
  }

  .button {
    min-height: 40px;
  }

  .hero-place {
    bottom: 12px;
  }

  .hero-place > a {
    padding-top: 9px;
    padding-bottom: 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-image {
    transition: none;
  }
}
