.wxcy-open {
  background: #fff;
}

.home-screen.wxcy-open > .home-scroll,
.home-screen.wxcy-open > .tab-panel,
.home-screen.wxcy-open > .tabbar {
  display: none;
}

.wxcy-page {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  color: #111;
  font-family: "Avenir Next", "PingFang SC", "Hiragino Sans GB", sans-serif;
}

.wxcy-page[hidden] {
  display: none;
}

.wxcy-page svg {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wxcy-header {
  position: relative;
  display: grid;
  grid-template-columns: 82px 1fr 110px;
  align-items: center;
  min-height: 48px;
  padding: 4px 18px 0;
}

.wxcy-header h1 {
  margin: 0;
  text-align: center;
  font-family: inherit;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0;
}

.wxcy-back {
  display: grid;
  place-items: center;
  width: 30px;
  height: 34px;
  color: #111;
}

.wxcy-back svg {
  width: 28px;
  height: 28px;
  stroke-width: 2.5;
}

.wxcy-record {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  justify-content: flex-end;
  color: #191919;
  font-size: 18px;
  font-weight: 600;
  white-space: nowrap;
}

.wxcy-record svg {
  width: 19px;
  height: 19px;
  stroke-width: 2.1;
}

.wxcy-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 36px;
  padding: 0 23px;
  border-bottom: 1px solid rgba(20, 20, 20, 0.06);
}

.wxcy-tabs button {
  position: relative;
  color: #505050;
  font-size: 17px;
  font-weight: 500;
}

.wxcy-tabs button.is-active {
  color: #0c8b44;
  font-weight: 800;
}

.wxcy-tabs button.is-active::after {
  position: absolute;
  right: 21px;
  bottom: 0;
  left: 21px;
  height: 3px;
  border-radius: 999px;
  background: #0c8b44;
  content: "";
}

.wxcy-scroll {
  display: flex;
  flex-direction: column;
  gap: 6px;
  justify-content: flex-start;
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 6px 12px calc(14px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, #fff 0%, #fbfcfb 100%);
  scrollbar-width: none;
}

.wxcy-scroll::-webkit-scrollbar {
  display: none;
}

.wxcy-scroll > * {
  flex: 0 0 auto;
}

.wxcy-card {
  border: 1px solid rgba(24, 40, 31, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 8px 24px rgba(29, 42, 35, 0.06);
}

@media (max-width: 390px) {
  .wxcy-header { grid-template-columns: 66px 1fr 96px; padding-inline: 14px; }
  .wxcy-tabs { padding-inline: 12px; }
  .wxcy-scroll { padding-inline: 9px; }
}

@media (max-height: 720px) {
  .wxcy-header { min-height: 42px; }
  .wxcy-tabs { height: 32px; }
  .wxcy-scroll { padding-top: 4px; padding-bottom: 6px; }
}
