/* The 开通 showcase (pages.landing): the welcome, what she does (each with a small chat the way it looks in QQ), two
   videos, 三步开通 with the 注册 card, questions, the QQ group, and on phones a 「立即开通」 bar. Same tokens as gate.css.
   Once start.js leaves 注册 the showcase folds away (.l-only) and the page is the plain 开通 card again. */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.g-show { max-width: 1120px; }
.g-show img:not([src]) { visibility: hidden; }   /* until landing.js gives a picture its src */
.g-show > .g-card, .g-show > .g-help, .g-show > .g-entry { max-width: 472px; margin-left: auto; margin-right: auto; }
body[data-step]:not([data-step="s-register"]):not([data-step="s-loading"]) .l-only,
body[data-step]:not([data-step="s-register"]):not([data-step="s-loading"]) .l-peek,
body[data-step]:not([data-step="s-register"]):not([data-step="s-loading"]) .l-login { display: none !important; }
body[data-step]:not([data-step="s-register"]):not([data-step="s-loading"]) .l-join { margin-top: 0; }
body:not([data-step]) .g-show, body[data-step="s-register"] .g-show, body[data-step="s-loading"] .g-show {
  padding-bottom: 104px;   /* room for the 「立即开通」 bar */
}

/* The mark, and 登录 beside it */
.g-show .g-brand { position: relative; align-items: center; }
.l-login {
  position: absolute; right: 0; top: 50%; transform: translateY(-50%); display: inline-flex; align-items: center;
  min-height: 36px; padding: 0 14px; border-radius: 999px; background: rgba(255, 255, 255, .86);
  border: 1px solid rgba(67, 104, 251, .18); color: var(--g-brand-deep); font-size: 14px; font-weight: 650;
  text-decoration: none; box-shadow: 0 2px 6px -3px rgba(39, 66, 170, .25);
}
.l-login:hover { background: #fff; }
.l-login:focus-visible, .l-play:focus-visible, .l-qa summary:focus-visible {
  outline: 2px solid var(--g-brand); outline-offset: 3px;
}

/* The welcome */
.l-hero {
  position: relative; display: flex; flex-direction: column; padding: 22px 20px 22px; border-radius: 28px;
  border: 1px solid rgba(67, 104, 251, .10); box-shadow: var(--g-shadow); overflow: hidden;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 60' preserveAspectRatio='none'%3E%3Cpath d='M0 26C60 8 110 8 170 22s120 22 180 4c20-6 34-10 50-10V60H0z' fill='%2399bcfb' fill-opacity='.30'/%3E%3C/svg%3E") no-repeat left bottom / 100% 64px,
    radial-gradient(260px 200px at 85% 62%, rgba(255, 255, 255, .95), rgba(255, 255, 255, 0) 70%),
    linear-gradient(160deg, #ffffff 0%, #f2f6ff 46%, #dfe8ff 100%);
}
.l-hero-text { display: contents; }
.l-chip {
  order: 1; align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 5px 11px 5px 8px;
  border-radius: 999px; background: rgba(255, 255, 255, .92); border: 1px solid rgba(67, 104, 251, .18);
  color: var(--g-brand-deep); font-size: 12.5px; font-weight: 650; line-height: 1.4; box-shadow: 0 2px 6px -3px rgba(39, 66, 170, .25);
}
.l-chip svg { flex: none; width: 16px; height: 16px; }
.l-title { order: 2; margin: 14px 0 8px; font-size: 32px; line-height: 1.22; font-weight: 800; letter-spacing: .01em; color: var(--g-ink); }
.l-pitch { order: 3; margin: 0; color: var(--g-ink-2); font-size: 15px; line-height: 1.7; }
.l-pitch-more { display: block; margin-top: 2px; color: var(--g-brand-deep); font-weight: 650; }
.l-hero-art { order: 4; position: relative; height: 236px; margin: 8px 0 0; }
.l-hero-main { position: absolute; left: 50%; bottom: 0; width: 180px; height: auto; transform: translateX(-46%); }
.l-cta { order: 5; margin-top: 8px; }
.l-cta .g-button { margin-top: 0; }
.l-cta .g-button + .g-button { margin-top: 12px; }
/* 参观鱼缸小镇 (owner 11-13): a small link under the two buttons to the public tour, no account needed */
.l-tour {
  order: 6; display: flex; flex-direction: column; align-items: center; gap: 2px; margin: 14px auto 0; padding: 6px 10px;
  border-radius: 12px; color: var(--g-brand-deep); text-align: center; text-decoration: none;
}
.l-tour:hover .l-tour-title { text-decoration: underline; text-underline-offset: 3px; }
.l-tour:focus-visible { outline: 2px solid var(--g-brand); outline-offset: 2px; }
.l-tour-title { font-size: 14.5px; font-weight: 700; line-height: 1.45; }
.l-tour-go { margin-left: 4px; }
.l-tour-line { color: var(--g-ink-2); font-size: 12.5px; line-height: 1.5; }
.l-float {
  position: absolute; z-index: 1; margin: 0; padding: 7px 12px; border-radius: 16px; font-size: 13px; line-height: 1.45;
  white-space: nowrap; box-shadow: 0 8px 18px -10px rgba(39, 66, 170, .45);
}
.l-float-me { right: 2px; top: 30px; background: linear-gradient(135deg, #5a77ff 0%, #3550e0 100%); color: #fff; border-bottom-right-radius: 6px; }
.l-float-her { left: 2px; top: 128px; background: #fff; color: var(--g-ink); border: 1px solid var(--g-line); border-bottom-left-radius: 6px; }

/* Sections */
.l-section { margin-top: 46px; }
.l-head { display: flex; align-items: flex-end; gap: 10px; margin: 0 0 16px; }
.l-head-art { flex: none; width: 76px; height: auto; margin: 0 0 -4px -4px; }
.l-head-text { min-width: 0; padding-bottom: 6px; }
.l-h2 { margin: 0; font-size: 22px; line-height: 1.35; font-weight: 800; letter-spacing: .01em; }
.l-sub { margin: 3px 0 0; color: var(--g-muted); font-size: 14px; line-height: 1.6; }

/* What she does: a card each, her pose over the corner, a small chat */
.l-grid { display: grid; gap: 36px; padding-top: 18px; }
.l-feat {
  position: relative; padding: 20px 18px 18px; border-radius: 24px; background: #fff;
  border: 1px solid rgba(67, 104, 251, .09); box-shadow: var(--g-shadow);
}
.l-feat-art { position: absolute; right: 6px; top: -30px; width: 100px; height: auto; pointer-events: none; }
.l-feat-title { margin: 0 100px 4px 0; font-size: 17.5px; line-height: 1.4; font-weight: 800; }
.l-feat-line { margin: 0 100px 16px 0; min-height: 46px; color: var(--g-ink-2); font-size: 14px; line-height: 1.65; }

.m-chat {
  display: flex; flex-direction: column; gap: 8px; padding: 14px 12px; border-radius: 18px;
  background: linear-gradient(180deg, #f4f7ff 0%, #edf2fd 100%); border: 1px solid var(--g-line);
  font-size: 13.5px; line-height: 1.55;
}
.m-row { display: flex; align-items: flex-start; gap: 8px; }
.m-me { justify-content: flex-end; }
.m-ava { flex: none; width: 30px; height: 30px; border-radius: 50%; }
img.m-ava { background: var(--g-sky-2); box-shadow: 0 0 0 2px #fff; }
.m-bubble { margin: 0; max-width: 80%; padding: 8px 12px; border-radius: 16px; overflow-wrap: anywhere; }
.m-her .m-bubble { background: #fff; color: var(--g-ink); border-top-left-radius: 6px; box-shadow: 0 1px 2px rgba(27, 35, 64, .07); }
.m-me .m-bubble {
  background: linear-gradient(135deg, #5a77ff 0%, #3a56e6 100%); color: #fff; border-top-right-radius: 6px;
  box-shadow: 0 6px 14px -10px rgba(47, 82, 227, .9);
}
.m-when { align-self: center; margin: 2px 0; padding: 0 10px; border-radius: 999px; background: rgba(154, 163, 187, .16); color: var(--g-muted); font-size: 11.5px; line-height: 1.8; }
.m-status {
  align-self: center; display: inline-flex; align-items: center; gap: 6px; margin: 0 0 2px; padding: 1px 11px;
  border-radius: 999px; background: #fff; border: 1px solid var(--g-line); color: var(--g-muted); font-size: 11.5px; line-height: 1.9;
}
.m-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--g-ok); box-shadow: 0 0 0 3px rgba(19, 133, 90, .14); }
.m-voice { display: flex; align-items: center; gap: 8px; min-width: 150px; color: var(--g-brand); }
.m-voice-long { min-width: 196px; }
.m-play { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--g-sky-2); color: var(--g-brand); }
.m-play svg { width: 14px; height: 14px; margin-left: 1px; }
.m-wave { flex: 1; min-width: 0; height: 16px; fill: currentColor; opacity: .75; }
.m-dur { flex: none; color: var(--g-ink-2); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.m-photo { display: block; width: 120px; height: 120px; border-radius: 14px; box-shadow: 0 6px 16px -10px rgba(27, 35, 64, .5); }
.m-pic { padding: 0; }
.m-her .m-pic, .m-me .m-pic { background: none; box-shadow: none; }
.m-sticker { display: block; width: 62px; height: 62px; }
.m-me .m-song {
  display: flex; align-items: center; gap: 10px; min-width: 186px; padding: 8px 12px 8px 8px; border-radius: 14px;
  background: #fff; color: var(--g-ink); border: 1px solid var(--g-line); box-shadow: 0 1px 2px rgba(27, 35, 64, .07);
}
.m-song-cover {
  flex: none; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(140deg, #8fb3ff 0%, #4368fb 100%);
}
.m-song-cover svg { width: 20px; height: 20px; }
.m-song-text { display: flex; flex-direction: column; line-height: 1.35; }
.m-song-text b { font-size: 13.5px; letter-spacing: .02em; }
.m-song-text small { color: var(--g-muted); font-size: 11.5px; }
.m-her .m-heart { background: rgba(255, 255, 255, .55); color: var(--g-muted); border: 1px dashed #c3cfef; box-shadow: none; font-size: 13px; }
.m-chip {
  display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 999px; background: var(--g-sky);
  color: var(--g-brand-deep); font-size: 12px; font-weight: 600; line-height: 1.7; white-space: nowrap;
}
.m-chip svg { width: 13px; height: 13px; }
.m-drawer {
  display: flex; align-items: center; gap: 10px; margin-top: 2px; padding: 8px 10px 8px 8px; border-radius: 14px;
  background: #fff; border: 1px solid var(--g-line);
}
.m-drawer-pic { flex: none; width: 46px; height: 32px; border-radius: 8px; object-fit: cover; filter: blur(2.5px) saturate(.9); }
.m-drawer-text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.m-drawer-text b { font-size: 13px; }
.m-drawer-text small { color: var(--g-muted); font-size: 11.5px; }
.m-diary {
  padding: 14px 16px 14px; border-radius: 18px; border: 1px solid #f1e3cf; color: #5d4630; font-size: 13.5px; line-height: 1.75;
  background: #fffaf2; box-shadow: inset 4px 0 0 #f6dcc0;
}
.m-diary p { margin: 0; }
.m-diary-head {
  display: flex; justify-content: space-between; padding-bottom: 6px; border-bottom: 1px dashed #efdcc4;
  color: #9a7652; font-size: 12.5px; font-weight: 650;
}
.m-diary-text { margin-top: 8px; }
.m-diary-foot { display: flex; gap: 8px; margin-top: 10px; line-height: 1.5; }
.m-diary .m-chip { background: #fff; border: 1px solid #f1e3cf; color: #8a5f3e; }

/* Two videos: a poster each, the video only when tapped */
.l-video-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.l-video { margin: 0; }
.l-play {
  position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: 20px; overflow: hidden;
  background: #0e1430; cursor: pointer; box-shadow: var(--g-shadow);
}
.l-poster { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; }
.l-play-icon {
  position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(255, 255, 255, .94); color: var(--g-brand);
  box-shadow: 0 10px 26px -8px rgba(10, 18, 60, .65); transition: transform .15s;
}
.l-play:hover .l-play-icon { transform: scale(1.06); }
.l-play-icon svg { width: 26px; height: 26px; margin-left: 3px; }
.l-len {
  position: absolute; right: 9px; bottom: 9px; padding: 0 8px; border-radius: 999px; background: rgba(10, 16, 40, .62);
  color: #fff; font-size: 12px; line-height: 1.7; font-variant-numeric: tabular-nums;
}
.l-video-el { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; border-radius: 20px; background: #000; }
.l-video figcaption { display: flex; flex-direction: column; margin-top: 10px; line-height: 1.45; }
.l-video figcaption strong { font-size: 15px; }
.l-video figcaption span { color: var(--g-muted); font-size: 13px; }

/* 三步开通 */
.l-steps { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.l-steps > li {
  display: flex; gap: 14px; padding: 16px; border-radius: 20px; background: #fff; border: 1px solid rgba(67, 104, 251, .09);
  box-shadow: 0 1px 2px rgba(27, 35, 64, .04);
}
.l-num {
  flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: linear-gradient(180deg, #4065f6 0%, #2f52e3 100%); font-weight: 800; font-size: 15px;
  box-shadow: 0 0 0 4px rgba(67, 104, 251, .14);
}
.l-step-title { margin: 3px 0 2px; font-size: 16px; font-weight: 800; }
.l-steps p { margin: 0; color: var(--g-ink-2); font-size: 14px; line-height: 1.65; }
.l-plans { display: grid; gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; }
.l-plans li { display: flex; flex-direction: column; padding: 9px 12px; border-radius: 14px; background: var(--g-sky); line-height: 1.5; }
.l-plans b { color: var(--g-brand-deep); font-size: 14px; }
.l-plans span { color: var(--g-ink-2); font-size: 13px; }

/* The 注册 card, with her peeking over it */
.l-join { margin-top: 84px; scroll-margin-top: 100px; }
.g-show .l-peek { top: -88px; right: 12px; width: 100px; }

/* Questions */
.l-qas { display: grid; gap: 10px; }
.l-qa { border-radius: 18px; background: #fff; border: 1px solid rgba(67, 104, 251, .10); }
.l-qa summary {
  position: relative; padding: 15px 46px 15px 18px; border-radius: 18px; cursor: pointer; list-style: none;
  font-size: 15px; font-weight: 700; line-height: 1.5;
}
.l-qa summary::-webkit-details-marker { display: none; }
.l-qa summary::after {
  content: ""; position: absolute; right: 20px; top: 50%; width: 9px; height: 9px; border-right: 2px solid var(--g-muted);
  border-bottom: 2px solid var(--g-muted); transform: translateY(-70%) rotate(45deg); transition: transform .2s;
}
.l-qa[open] summary::after { transform: translateY(-25%) rotate(-135deg); }
.l-qa p { margin: 0; padding: 0 18px 16px; color: var(--g-ink-2); font-size: 14px; line-height: 1.7; }
.g-show > .g-help { margin-top: 22px; }

/* Goodbye */
.l-foot { margin-top: 30px; text-align: center; }
.l-foot-art { display: block; width: 104px; height: auto; margin: 0 auto 6px; }
.l-foot-text { margin: 0; color: var(--g-muted); font-size: 14px; }
.l-foot-go { display: none; }

/* Phones: 「立即开通」 at hand while neither the welcome's buttons nor the card are on screen (landing.js) */
.l-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; align-items: center; gap: 10px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px)); background: rgba(255, 255, 255, .95);
  border-top: 1px solid rgba(67, 104, 251, .12); box-shadow: 0 -12px 30px -20px rgba(39, 66, 170, .5);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); animation: l-rise .22s ease-out;
}
@keyframes l-rise { from { transform: translateY(100%); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .l-bar { animation: none; } }
.l-bar-face { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--g-sky-2); }
.l-bar-text { flex: 1; min-width: 0; display: flex; flex-direction: column; margin: 0; line-height: 1.35; }
.l-bar-text strong { font-size: 15px; }
.l-bar-text span { overflow: hidden; color: var(--g-muted); font-size: 12.5px; text-overflow: ellipsis; white-space: nowrap; }
.l-bar-go { flex: none; width: auto; min-height: 46px; margin: 0; padding: 0 20px; }

@media (max-width: 370px) {
  .l-title { font-size: 28px; }
  .l-feat-line { margin-right: 86px; }
  .l-feat-title { margin-right: 86px; }
  .l-feat-art { width: 88px; }
  .l-bar-text span { display: none; }
}

/* Tablets and up */
@media (min-width: 720px) {
  .l-bar { display: none !important; }
  .g-show { padding-bottom: 44px !important; }
  .l-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 46px 24px; }
  .l-video-row { grid-template-columns: repeat(2, minmax(0, 260px)); justify-content: center; gap: 36px; }
  .l-foot-go { display: inline-flex; width: auto; padding: 0 34px; margin-top: 16px; }
  .l-h2 { font-size: 26px; }
  .l-head-art { width: 92px; }
}

/* Wide screens while the showcase is on: two columns where it helps (三步开通 beside the card, questions beside the group) */
@media (min-width: 960px) {
  body:not([data-step]) .g-show, body[data-step="s-register"] .g-show, body[data-step="s-loading"] .g-show {
    display: grid; grid-template-columns: minmax(0, 1fr) 440px; column-gap: 56px; align-items: start; padding-top: 28px;
    grid-template-areas: "brand brand" "hero hero" "feats feats" "videos videos" "how join" "faq entry" "faq help" "foot foot";
    grid-template-rows: auto auto auto auto auto auto 1fr auto;   /* the questions' height goes under the group card */
  }
  .g-show > .g-brand { grid-area: brand; justify-content: flex-start; }
  .l-hero { grid-area: hero; }
  .l-feats { grid-area: feats; }
  .l-videos { grid-area: videos; }
  .l-how { grid-area: how; }
  .g-show > .g-entry { grid-area: entry; width: 100%; }
  .g-show > .l-join { grid-area: join; width: 100%; }
  .l-faq { grid-area: faq; }
  .g-show > .g-help { grid-area: help; width: 100%; margin-top: 108px; }
  .l-foot { grid-area: foot; margin-top: 56px; }
  .l-section { margin-top: 72px; }
  .l-join { margin-top: 160px; }

  .l-hero {
    display: grid; grid-template-columns: minmax(0, 1fr) 440px; align-items: center; min-height: 450px; padding: 40px 0 0 64px;
    background:
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 60' preserveAspectRatio='none'%3E%3Cpath d='M0 26C60 8 110 8 170 22s120 22 180 4c20-6 34-10 50-10V60H0z' fill='%2399bcfb' fill-opacity='.30'/%3E%3C/svg%3E") no-repeat left bottom / 100% 90px,
      radial-gradient(420px 320px at 78% 60%, rgba(255, 255, 255, .95), rgba(255, 255, 255, 0) 70%),
      linear-gradient(160deg, #ffffff 0%, #f2f6ff 46%, #dfe8ff 100%);
  }
  .l-hero-text { display: block; padding-bottom: 40px; }
  .l-title { margin: 18px 0 14px; font-size: 52px; line-height: 1.18; }
  .l-pitch { max-width: 30em; font-size: 17px; }
  .l-cta { display: flex; gap: 14px; margin-top: 30px; }
  .l-cta .g-button { width: auto; padding: 0 32px; }
  .l-cta .g-button + .g-button { margin-top: 0; }
  .l-tour { align-items: flex-start; margin: 16px 0 0; padding: 6px 0; text-align: left; }
  .l-hero-art { align-self: end; height: 430px; margin: 0; }
  .l-hero-main { width: 300px; transform: translateX(-50%); }
  .l-float { padding: 9px 15px; font-size: 14.5px; }
  .l-float-me { right: 30px; top: 70px; }
  .l-float-her { left: -24px; top: 214px; }

  .l-grid { gap: 52px 32px; }
  .l-feat { padding: 24px 24px 22px; }
  .l-feat-art { width: 116px; top: -40px; right: 10px; }
  .l-feat-title, .l-feat-line { margin-right: 120px; }
  .l-feat-title { font-size: 19px; }
  .l-feat-line { min-height: 50px; }
  .l-steps > li { padding: 18px 20px; }
}
