:root {
  color-scheme: light;
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: #15233a;
  background: #eef4fb;
  font-synthesis: none;
}
* { box-sizing: border-box; }
html { min-width: 320px; background: #eef4fb; }
body { min-width: 320px; min-height: 100vh; min-height: 100dvh; margin: 0; background: #eef4fb; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
.initial-loading { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 14px; color: #66809e; }
.h5-page { width: 100%; min-height: 100vh; min-height: 100dvh; padding-bottom: max(22px, env(safe-area-inset-bottom)); overflow-x: hidden; }
.hero { min-height: 324px; padding: max(24px, env(safe-area-inset-top)) 24px 78px; position: relative; background: radial-gradient(circle at 86% 11%, rgba(79,210,221,.28), transparent 27%), radial-gradient(circle at 10% 72%, rgba(50,99,199,.42), transparent 37%), linear-gradient(150deg,#07182e 0%,#0a2945 54%,#0c4d5b 100%); color: #fff; overflow: hidden; }
.hero::after { content: ""; width: 210px; height: 210px; position: absolute; right: -76px; bottom: -86px; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; box-shadow: 0 0 0 34px rgba(255,255,255,.035), 0 0 0 68px rgba(255,255,255,.025); }
.brand { display: flex; align-items: center; gap: 10px; position: relative; z-index: 1; }
.brand strong { font-size: 17px; letter-spacing: .08em; }
.brand-symbol { width: 34px; height: 34px; border: 7px solid #34d5c7; border-left-color: #6b86ff; border-radius: 50%; display: inline-block; transform: rotate(-22deg); box-shadow: 0 0 22px rgba(52,213,199,.28); }
.brand-symbol.small { width: 22px; height: 22px; border-width: 5px; }
.eyebrow { margin-top: 42px; display: block; color: #65e1d3; font-size: 12px; font-weight: 800; letter-spacing: .2em; }
.hero h1 { max-width: 540px; margin: 12px 0 10px; position: relative; z-index: 1; font-size: clamp(29px, 7.4vw, 42px); line-height: 1.2; letter-spacing: -.03em; }
.hero-lead { max-width: 540px; margin: 0; position: relative; z-index: 1; color: rgba(232,244,255,.78); font-size: 14px; line-height: 1.75; }
.content-card { width: min(calc(100% - 28px), 620px); min-height: 300px; margin: -52px auto 0; padding: 24px; position: relative; z-index: 2; border: 1px solid rgba(219,229,241,.92); border-radius: 22px; background: rgba(255,255,255,.98); box-shadow: 0 22px 55px rgba(20,47,78,.13); }
.h5-footer { min-height: 76px; padding: 24px 18px 0; display: flex; align-items: center; justify-content: center; gap: 9px; color: #70839c; font-size: 11px; text-align: center; }
.loading-block { min-height: 260px; display: grid; place-items: center; color: #6e819a; }
.state-block { min-height: 290px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.state-orb, .result-icon { width: 66px; height: 66px; border-radius: 50%; background: linear-gradient(145deg,#e4fbf7,#dce7ff); position: relative; }
.state-orb::after, .result-icon::after { content: ""; width: 21px; height: 11px; border-left: 3px solid #1c9d91; border-bottom: 3px solid #1c9d91; position: absolute; left: 22px; top: 23px; transform: rotate(-45deg); }
.state-block h2 { margin: 20px 0 7px; font-size: 21px; }
.state-block p { max-width: 330px; margin: 0 0 20px; color: #6f8197; font-size: 13px; line-height: 1.7; }
.invite-form { display: grid; gap: 15px; }
.invite-badge { min-height: 64px; padding: 10px 14px; border-radius: 14px; background: #f2f8fb; display: flex; align-items: center; gap: 12px; color: #304a67; font-size: 13px; font-weight: 700; }
.avatar-orb { width: 40px; height: 40px; border-radius: 50%; background: radial-gradient(circle at 37% 33%,#8ff1dc 0 19%,transparent 20%),linear-gradient(145deg,#31579d,#103654); box-shadow: inset 0 0 0 4px #fff; }
.field, .p11-full-label { display: grid; gap: 7px; color: #42546a; font-size: 12px; font-weight: 700; }
.text-input { width: 100%; height: 50px; padding: 0 14px; border: 1px solid #d6e0eb; border-radius: 11px; background: #fbfcfe; color: #15233a; outline: none; }
.text-input:focus { border-color: #249b9b; box-shadow: 0 0 0 3px rgba(36,155,155,.1); }
.code-row { display: grid; grid-template-columns: minmax(0,1fr) 112px; gap: 9px; }
.primary-button, .secondary-button { min-height: 50px; padding: 0 17px; border: 0; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 800; text-decoration: none; cursor: pointer; }
.primary-button { background: linear-gradient(135deg,#146c84,#1aa590); color: #fff; box-shadow: 0 10px 24px rgba(22,124,133,.22); }
.secondary-button { border: 1px solid #d5e0ec; background: #edf3f8; color: #35506c; }
.primary-button:disabled, .secondary-button:disabled { opacity: .56; cursor: not-allowed; }
.agreement { display: flex; align-items: center; gap: 7px; color: #708198; font-size: 11px; font-weight: 400; }
.agreement input { width: 16px; height: 16px; accent-color: #158f8c; }
.agreement a { color: #157b87; text-decoration: none; }
.form-message { min-height: 18px; margin: -2px 0; color: #bd4855; font-size: 12px; }
.safe-note { margin: 18px 0 0; color: #788ba2; font-size: 11px; line-height: 1.65; text-align: center; }
.dialog-backdrop { padding: 20px; position: fixed; inset: 0; z-index: 20; background: rgba(4,16,31,.66); display: grid; place-items: center; }
.captcha-dialog { width: min(100%, 390px); padding: 24px; border-radius: 18px; background: #fff; box-shadow: 0 22px 60px rgba(0,0,0,.28); }
.captcha-dialog h2 { margin: 0; font-size: 21px; }
.captcha-dialog > p { margin: 7px 0 16px; color: #718299; font-size: 13px; }
.captcha-image { width: 100%; height: 96px; margin-bottom: 12px; border: 1px solid #dbe4ed; border-radius: 10px; background: #f5f7fa; object-fit: contain; }
.dialog-actions { margin-top: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.result-card { min-height: 390px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.result-card h2 { margin: 20px 0 8px; font-size: 22px; }
.result-card > p { margin: 0; color: #6b7e95; font-size: 13px; line-height: 1.75; }
.order-line { width: 100%; margin: 24px 0; padding: 15px; border-radius: 11px; background: #f3f7fa; display: flex; justify-content: space-between; color: #71839a; font-size: 12px; }
.order-line b { color: #263e59; }
.result-card .primary-button { width: 100%; }
.download-heading { display: flex; align-items: center; gap: 16px; }
.app-icon { width: 78px; height: 78px; border-radius: 19px; background: radial-gradient(circle at 63% 30%,#6ef2dc 0 8%,transparent 9%),linear-gradient(145deg,#183b72,#0b765f); box-shadow: inset 0 0 0 1px rgba(255,255,255,.22), 0 14px 30px rgba(18,63,91,.18); position: relative; }
.app-icon::after { content: ""; width: 30px; height: 30px; border: 8px solid rgba(255,255,255,.9); border-left-color: #62ddc8; border-radius: 50%; position: absolute; left: 16px; top: 16px; transform: rotate(-25deg); }
.download-info h2 { margin: 0 0 7px; font-size: 23px; }
.download-info p { margin: 0 0 6px; color: #6b7d93; font-size: 13px; }
.verified-line { color: #168c80; font-size: 11px; font-weight: 800; }
.download-button { width: 100%; margin-top: 25px; }
.release-notes { margin-top: 24px; padding: 18px; border-radius: 13px; background: #f3f7fa; }
.release-notes h3 { margin: 0 0 8px; font-size: 14px; }
.release-notes p { margin: 0; color: #63778f; font-size: 13px; line-height: 1.75; white-space: pre-wrap; }
.legal-article h2 { margin: 0 0 7px; font-size: 24px; }
.legal-meta { margin: 0 0 22px; padding-bottom: 16px; border-bottom: 1px solid #e5ebf2; color: #77899f; font-size: 11px; }
.legal-body { color: #364b64; font-size: 14px; line-height: 1.9; white-space: pre-wrap; overflow-wrap: anywhere; }
.project-category { padding: 6px 10px; border-radius: 999px; background: #e7f8f3; color: #188273; display: inline-flex; font-size: 11px; font-weight: 800; }
.project-card h2 { margin: 18px 0 9px; font-size: 25px; line-height: 1.35; }
.project-summary { min-height: 78px; margin: 0; color: #657991; font-size: 13px; line-height: 1.8; }
.project-stats { margin: 23px 0; padding: 17px; border-radius: 13px; background: linear-gradient(135deg,#edf6f9,#f3f5fc); display: grid; grid-template-columns: 1fr 1fr; }
.project-stats div { display: grid; justify-items: center; gap: 4px; }
.project-stats div + div { border-left: 1px solid #dbe3ec; }
.project-stats b { color: #163c58; font-size: 22px; }
.project-stats span { color: #70839a; font-size: 11px; }
.project-card .primary-button { width: 100%; }
.text-link { margin-top: 17px; display: block; color: #187d87; font-size: 12px; text-align: center; text-decoration: none; }
@media (min-width: 700px) { .hero { min-height: 350px; padding-left: max(24px, calc((100% - 620px)/2)); padding-right: max(24px, calc((100% - 620px)/2)); }.content-card { padding: 30px; } }
@media (max-width: 370px) { .hero { padding-left: 18px; padding-right: 18px; }.content-card { width: calc(100% - 20px); padding: 19px; }.code-row { grid-template-columns: 1fr; }.code-row .secondary-button { min-height: 44px; }.hero h1 { font-size: 28px; } }
@media (prefers-reduced-motion: no-preference) { .content-card { animation: rise .42s ease-out both; } @keyframes rise { from { opacity: 0; transform: translateY(12px); } } }

/* P11 corrected dark H5 baseline: keeps the supplied geometry while removing fake data and broken controls. */
:root { color-scheme: dark; background: #040817; color: #f8fbff; }
html, body { min-height: 100%; background: #040817; }
.h5-page { width: min(100%, 390px); min-height: 844px; margin: 0 auto; padding: 28px 18px 32px; overflow-x: hidden; background: radial-gradient(circle at 50% 0, rgba(43,137,255,.25), transparent 38%), linear-gradient(180deg,#081329 0%,#040817 55%,#050a19 100%); color: #f8fbff; }
.hero { min-height: 0; padding: 18px 8px 22px; background: none; color: #f8fbff; text-align: center; overflow: visible; }
.hero::after { display: none; }
.brand { justify-content: center; }
.brand strong, .eyebrow { display: none; }
.h5-logo { width: 84px; height: 84px; border-radius: 22px; object-fit: cover; box-shadow: 0 14px 36px rgba(31,131,255,.34); }
.hero h1 { max-width: 100%; margin: 16px 0 8px; font-size: 26px; line-height: 1.25; letter-spacing: 0; }
.hero-lead { max-width: 320px; margin: 0 auto; color: #a7b5cf; font-size: 14px; line-height: 1.65; }
.content-card { width: 100%; min-height: 0; margin: 0; padding: 20px; border: 1px solid rgba(125,174,255,.22); border-radius: 18px; background: rgba(11,24,50,.92); color: #f8fbff; box-shadow: 0 18px 52px rgba(0,0,0,.28); }
.h5-footer { display: none; }
.invite-form { gap: 13px; }
.invite-badge { display: none; }
.field { gap: 7px; color: #dce7fb; font-size: 13px; font-weight: 400; }
.text-input { height: 46px; padding: 0 13px; border: 1px solid #28436c; border-radius: 12px; background: #071126; color: #f4f8ff; }
.text-input::placeholder { color: #8fa2bf; }
.text-input:focus { border-color: #5b9ef6; box-shadow: 0 0 0 3px rgba(91,158,246,.13); }
.code-row { grid-template-columns: minmax(0,1fr) 104px; }
.primary-button, .secondary-button { min-height: 46px; border-radius: 13px; font-size: 14px; }
.primary-button { color: #041022; background: linear-gradient(135deg,#79d9ff,#4a8dff); box-shadow: 0 10px 28px rgba(73,142,255,.32); }
.secondary-button { border: 1px solid #28436c; background: #122449; color: #cfe2ff; }
.agreement { color: #8fa2bf; font-size: 11px; }
.agreement a, .text-link { color: #78cfff; }
.form-message { color: #ff9da7; }
.safe-note { margin-top: 14px; padding: 12px; border-radius: 12px; color: #b8c7df; background: rgba(84,112,157,.14); font-size: 12px; line-height: 1.65; }
.dialog-backdrop { background: rgba(1,4,13,.78); }
.captcha-dialog { border: 1px solid #3c6495; background: linear-gradient(180deg,#122550,#071128); color: #fff; }
.captcha-dialog > p { color: #a7b5cf; }
.captcha-image { border-color: #28436c; background: #071126; }
.loading-block { min-height: 260px; color: #a7b5cf; }
.state-block { min-height: 280px; }
.state-block h2 { color: #fff; }
.state-block p { color: #a7b5cf; }
.state-orb { background: rgba(78,145,255,.18); }
.result-card { min-height: auto; color: #fff; }
.result-card > p { color: #8fa2bf; }
.result-icon { width: 42px; height: 42px; border: 4px solid rgba(116,162,233,.22); border-top-color: #68c9ff; background: transparent; }
.result-icon::after { display: none; }
.order-line { background: rgba(84,112,157,.14); color: #a7b5cf; }
.order-line b { color: #dce7fb; }
.download-heading { display: block; text-align: center; }
.download-icon { width: 58px; height: 58px; margin: 0 auto 12px; padding: 15px; border-radius: 18px; display: block; background: rgba(78,145,255,.18); }
.download-info h2 { margin: 0 0 18px; color: #fff; font-size: 24px; }
.download-info p { color: #a7b5cf; }
.download-button { margin-top: 18px; }
.legal .hero { padding-top: 14px; padding-bottom: 12px; }
.legal .brand, .legal .hero-lead { display: none; }
.legal .hero h1 { margin: 0; font-size: 19px; }
.legal .content-card { padding: 18px; border-radius: 16px; }
.legal-article h2 { color: #fff; font-size: 18px; }
.legal-meta { border-color: rgba(125,174,255,.16); color: #a7b5cf; }
.legal-body { color: #aebdd4; font-size: 13px; line-height: 1.8; }
.project-category { color: #cfe5ff; background: rgba(59,129,255,.18); }
.project-card h2 { color: #fff; font-size: 24px; }
.project-summary { color: #8fa2bf; }
.project-card .primary-button { margin-top: 22px; }
@media (min-width: 700px) { .hero { min-height: 0; padding: 18px 8px 22px; }.content-card { padding: 20px; } }
@media (max-width: 360px) { .h5-page { padding-inline: 14px; }.hero { padding-top: 10px; }.code-row { grid-template-columns: minmax(0,1fr) 96px; }.content-card { width: 100%; padding: 18px; } }
