:root {
  color-scheme: light;
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: #11253a;
  background: #f5f8f8;
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; }
figure, h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
:focus-visible { outline: 3px solid #1475b4; outline-offset: 4px; }

.shell { width: min(1240px, calc(100% - 96px)); margin-inline: auto; }
.site-header {
  min-height: 78px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 750; letter-spacing: .025em; }
.brand img { border-radius: 11px; box-shadow: 0 3px 8px #142d381c; }
.guide-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 42px;
  padding: 8px 15px;
  border: 1px solid #d8e4e6;
  border-radius: 999px;
  background: #fff;
  color: #264555;
  font-size: .9375rem;
  white-space: nowrap;
}
.guide-link:hover { background: #eaf4f3; }
.catalog-brand-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  color: #a4f4df;
  background: #102d41;
}
.catalog-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: 285px;
  padding: clamp(28px, 6vw, 76px);
  overflow: hidden;
  border-radius: 28px;
  color: #fff;
  background: radial-gradient(ellipse at 90% 75%, #1a625f, transparent 62%), #0c2338;
}
.catalog-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: .38;
  background: repeating-radial-gradient(ellipse at 86% 120%, transparent 0 31px, #9df2dd55 32px, transparent 33px 50px);
  mask-image: linear-gradient(95deg, transparent 30%, #000);
}
.catalog-hero h1 { margin: 0 0 15px; font-size: clamp(2rem, 6vw, 4.3rem); }
.catalog-hero p { max-width: 30em; color: #dbeeea; line-height: 1.7; }
.catalog { margin-top: 42px; scroll-margin-top: 24px; }
.catalog h2 { margin-bottom: 17px; font-size: clamp(1.375rem, 3vw, 1.875rem); }
.app-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.app-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid #dae6e9;
  border-radius: 20px;
  background: #fff;
}
.app-card-cover { display: block; width: 100%; height: clamp(125px, 18vw, 188px); object-fit: cover; }
.app-card-body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; gap: 13px; padding: 21px; }
.app-card-identity { display: flex; align-items: center; gap: 12px; }
.app-card-identity img { border: 1px solid #e0e8ef; border-radius: 13px; }
.app-card-identity h3 { font-size: 1.125rem; }
.app-card-identity span { color: #42606d; font-size: .875rem; }
.app-card-body p { flex: 1; color: #365563; line-height: 1.6; }
.app-card-link {
  display: inline-grid;
  min-height: 44px;
  place-items: center;
  padding: 8px 16px;
  border-radius: 10px;
  color: #123f39;
  background: #d5f5ec;
  font-weight: 700;
}
.app-card-link:hover { background: #bdeadc; }
.download-icon { position: relative; width: 17px; height: 17px; border-bottom: 2px solid; }
.download-icon::before {
  content: ""; position: absolute; width: 2px; height: 11px; background: currentColor; left: 7.5px;
}
.download-icon::after {
  content: ""; position: absolute; width: 7px; height: 7px; top: 2px; left: 4px;
  border-right: 2px solid; border-bottom: 2px solid; transform: rotate(45deg);
}

.download-page {
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 100vh;
  min-height: 100svh;
  background: radial-gradient(ellipse at 50% 24%, #e6f3ff, transparent 59%), #f8fbfd;
  text-align: center;
}
.download-content {
  align-self: center;
  width: min(100% - 40px, 360px);
  margin-inline: auto;
  padding-block: 44px;
}
.download-app-icon {
  display: block;
  width: 108px;
  height: 108px;
  margin: 0 auto 22px;
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 9px 28px #1354871a;
}
.download-content h1 {
  color: #15304a;
  font-size: clamp(1.75rem, 6vw, 2.25rem);
  line-height: 1.25;
}
.download {
  display: inline-flex;
  width: min(100%, 268px);
  min-height: 53px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 29px;
  padding: 12px 20px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: #1166a8;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}
.download:hover:enabled { background: #0e558e; }
.download:disabled { background: #51799a; cursor: wait; }
.release { margin-top: 15px; color: #506575; font-size: .875rem; }
.feedback, .wechat-tip { margin-top: 12px; color: #294f6c; font-size: .9375rem; line-height: 1.6; }
.feedback:empty { margin: 0; }
.download-help { margin-top: 16px; color: #426477; font-size: .875rem; }
.download-help summary { width: fit-content; margin-inline: auto; padding: 6px; cursor: pointer; }
.download-help p { margin-top: 8px; line-height: 1.65; }
.download-footer {
  display: block;
  margin: 0;
  padding: 6px 16px max(16px, env(safe-area-inset-bottom));
  border: 0;
}
.download-footer a { display: inline-block; padding: 12px 8px; }

.wechat-dialog {
  position: fixed;
  inset: 0 0 auto auto;
  width: min(460px, 100%);
  max-width: 100%;
  max-height: 100%;
  margin: 0;
  padding: 12px max(20px, env(safe-area-inset-right)) 24px max(20px, env(safe-area-inset-left));
  overflow: auto;
  border: 0;
  color: #fff;
  background: transparent;
  text-align: left;
}
.wechat-dialog:not([open]) { display: none; }
.wechat-dialog::backdrop { background: #071523e6; }
body:has(.wechat-dialog[open]) { overflow: hidden; }
.wechat-pointer {
  position: relative;
  width: clamp(58px, 19vw, 88px);
  height: clamp(58px, 17vw, 79px);
  margin: 2px 9px 15px auto;
  border-right: 5px solid #a4f4df;
  border-bottom-right-radius: 100% 100%;
}
.wechat-pointer::after {
  content: "";
  position: absolute;
  right: -14px;
  top: 1px;
  width: 18px;
  height: 18px;
  border-top: 5px solid #a4f4df;
  border-left: 5px solid #a4f4df;
  border-radius: 3px;
  transform: rotate(45deg);
}
.wechat-dialog h2 {
  margin-bottom: 16px;
  color: #f5fffd;
  font-size: clamp(1.5rem, 6vw, 1.875rem);
  letter-spacing: -.025em;
}
.wechat-steps {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.wechat-steps li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border: 1px solid #cce9e63d;
  border-radius: 14px;
  background: #a4f4df12;
  font-size: 1rem;
  line-height: 1.6;
}
.wechat-step-number {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: #0c302e;
  background: #a4f4df;
  font-weight: 800;
}
.wechat-menu-symbol {
  display: inline-block;
  padding: 0 5px;
  border: 1px solid #cce9e65c;
  border-radius: 5px;
  color: #a4f4df;
  font-size: .8125rem;
  letter-spacing: .12em;
  white-space: nowrap;
}
.wechat-steps strong { color: #a4f4df; }
.wechat-next { margin-top: 14px; color: #d2e1e7; font-size: .9375rem; line-height: 1.6; }
.wechat-dialog button {
  min-height: 44px;
  margin-top: 18px;
  padding: 8px 18px;
  border: 1px solid #cce9e678;
  border-radius: 999px;
  color: #f5fffd;
  background: #ffffff12;
  font-weight: 700;
  cursor: pointer;
}
.wechat-dialog button:hover { background: #ffffff24; }
.wechat-dialog button:focus-visible { outline-color: #a4f4df; }

footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 36px 0 0;
  padding: 16px 0 22px;
  border-top: 1px solid #dbe6e9;
  color: #48616e;
  font-size: .875rem;
}
footer a { padding-block: 8px; }
footer a:hover { text-decoration: underline; }

@media (max-width: 900px) {
  .shell { width: calc(100% - 48px); }
}

@media (max-width: 700px) {
  .shell { width: calc(100% - 32px); }
  .site-header { min-height: 68px; }
  .brand { gap: 8px; }
  .guide-link { padding-inline: 12px; }
  .catalog-hero { min-height: 200px; border-radius: 22px; }
  .catalog { margin-top: 28px; }
  .app-grid { grid-template-columns: 1fr; }
  .app-card-link { width: 100%; }
}
