/* Shared presentation for the C-end website; also exported to Razor. */
.back-to-top{position:fixed;right:22px;bottom:26px;z-index:45;display:flex;flex-direction:column;align-items:center;justify-content:center;width:54px;height:62px;border:1px solid #ced9c9;border-radius:15px;background:#fff;color:var(--green);box-shadow:0 5px 24px #263e2820;font-size:11px;line-height:1.2}.back-to-top>span:first-child{font-size:27px}.back-to-top[hidden]{display:none}body[data-page=vip] .back-to-top{bottom:120px}
.hero-carousel{min-width:0;background:#edf1df;padding:26px;border-radius:52px 22px 22px}.hero-carousel>.micro{margin:16px 0 0}.hero-carousel .eyebrow{font-size:10px}.media-gallery{min-width:0}.gallery-stage{background:#fff;border:1px solid var(--line);border-radius:15px;overflow:hidden}.gallery-stage figure{margin:0}.gallery-stage figure[hidden]{display:none}.gallery-stage a{display:block}.gallery-stage img{display:block;width:100%;aspect-ratio:5/3;object-fit:contain}.gallery-stage figcaption{padding:12px 16px;font-size:13px;color:var(--green);border-top:1px solid var(--line)}.gallery-toolbar{display:flex;align-items:center;justify-content:space-between;margin:16px 0 8px;gap:8px}.gallery-toolbar>span{font-size:12px;letter-spacing:2px;color:var(--green)}.gallery-toolbar>div{display:flex;gap:6px}.gallery-toolbar button{min-width:40px;min-height:40px;border:1px solid #cbd5bc;background:#ffffffcf;border-radius:8px;color:var(--green);font-size:13px;padding:6px 12px}.gallery-dots{display:flex;gap:2px;justify-content:center;flex-wrap:wrap}.gallery-dots button{width:28px;height:28px;position:relative;background:transparent;border:0;padding:0}.gallery-dots button:after{content:'';position:absolute;width:7px;height:7px;border-radius:50%;background:#b7c4ad;top:10px;left:10px}.gallery-dots button[aria-pressed=true]:after{background:var(--green);width:18px;left:5px;border-radius:4px}.gallery-credit{margin:10px 0}.context-roadmap .gallery-stage img{aspect-ratio:4/3}
.platform-band{margin:44px 0 30px;padding:30px;background:#fff;border:1px solid var(--line);border-radius:22px}.platform-heading{display:flex;justify-content:space-between;gap:25px;align-items:center}.platform-heading .eyebrow{font-size:10px;margin-bottom:10px}.platform-heading h2{font-size:25px;margin-bottom:10px}.platform-heading p{max-width:850px;font-size:14px;margin-bottom:22px}.platform-heading>.link{white-space:nowrap;color:var(--green);font-size:13px;font-weight:700}.platform-items{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.platform-items>a{display:flex;align-items:center;gap:12px;padding:16px 12px;border:1px solid var(--line);border-radius:12px;background:#f7f9f1}.platform-items>a:hover{border-color:#718968}.platform-items strong{display:block;font-size:14px}.platform-items small{display:block;font-size:11px;color:var(--muted)}.platform-items>a>span:last-child{margin-left:auto}.device-mark{width:38px;height:38px;border-radius:11px;background:#e8edda;color:var(--green);font-weight:800;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;font-size:18px}.platform-band>.micro{margin:12px 0 0}
.purchase-options{display:grid;grid-template-columns:1fr 1fr;gap:24px}.purchase-card{padding:36px;border-radius:24px;border:1px solid var(--line);background:#fff;display:flex;flex-direction:column;align-items:flex-start}.purchase-card.membership{background:#edf2df}.purchase-card h2{margin:25px 0 12px;font-size:30px;min-height:84px}.purchase-card>p:not(.micro){font-size:15px}.purchase-price,.membership-count{min-height:78px;display:flex;align-items:baseline;gap:12px;margin-bottom:18px;color:var(--green)}.purchase-price strong,.membership-count strong{font-size:54px;line-height:1.2;letter-spacing:-2px}.purchase-price span,.membership-count span{font-size:15px}.purchase-card ul{padding-left:20px;font-size:15px;line-height:2;margin-top:0}.choice-note{border-top:1px solid #d9dfcf;padding-top:18px;margin:10px 0 20px;width:100%}.choice-note p{font-size:14px;margin:6px 0}.purchase-card>.btn{margin-top:auto}.purchase-card>.micro{margin:15px 0 0}.purchase-comparison{border:1px solid var(--line);border-radius:18px;overflow:hidden;background:#fff}.compare-row{display:grid;grid-template-columns:.7fr 1fr 1fr;border-bottom:1px solid var(--line)}.compare-row:last-child{border:0}.compare-row>*{padding:20px;font-size:14px;border-right:1px solid var(--line)}.compare-row>*:last-child{border:0}.compare-head{background:#e9efdd;color:var(--green)}.mobile-label{display:none}.free-start{display:flex;align-items:center;justify-content:space-between;gap:30px;padding:32px;border:1px solid var(--line);border-radius:22px;background:#f1f4e8}.free-start h2{font-size:25px;margin:12px 0}.free-start p{font-size:14px;margin:0}.free-start .actions{flex-shrink:0;max-width:340px}
.download-showcase{display:grid;grid-template-columns:1.25fr .75fr;align-items:center;gap:70px;padding:10px 0 35px}.download-showcase h2{font-size:29px}.download-showcase p{font-size:15px}.download-devices{display:flex;gap:10px;margin:20px 0}.download-devices span{padding:6px 16px;background:#eef2e2;border-radius:25px;color:var(--green);font-size:13px}.market-copy{border-left:3px solid #d4dfbd;padding-left:18px;margin-top:30px}.real-phone{margin:0;text-align:center;padding:25px;background:#edf1dd;border-radius:55px 20px;justify-self:center;width:310px;max-width:100%}.real-phone img{width:232px;display:block;margin:auto;border:6px solid #29382c;border-radius:25px;box-shadow:0 15px 35px #2e3a291a}.real-phone figcaption{font-size:11px;color:var(--muted);padding-top:16px}.real-phone figcaption a{color:var(--green);text-decoration:underline}.download-options{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}.download-option{background:white;border:1px solid var(--line);border-radius:20px;padding:24px;display:flex;flex-direction:column;align-items:flex-start;scroll-margin-top:110px}.download-option h3{margin:20px 0 10px}.download-option p{font-size:13px}.download-option .btn{font-size:13px;padding:12px 14px;width:100%;margin-top:auto}.download-option .text-link,.download-option>.micro{font-size:11px;margin-top:14px;display:block}.text-link{color:var(--green);background:transparent;border:0;padding:0;text-decoration:underline;text-underline-offset:4px}
.method-nav{display:flex;gap:12px;flex-wrap:wrap;margin:0 0 40px}.method-nav a{padding:10px 18px;border:1px solid var(--line);background:#fff;border-radius:99px;font-size:13px}.method-section{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:50px;padding:50px 0 70px;scroll-margin-top:90px}.method-section.reverse .method-copy{order:2}.method-section h2{margin:20px 0;font-size:29px}.method-copy>p{font-size:14px}.method-copy ol{padding-left:25px}.method-copy li{padding:10px 0 10px 5px;color:var(--green)}.method-copy li strong,.method-copy li span{display:block}.method-copy li span{font-size:13px;color:var(--muted);margin-top:4px}.method-screenshot{background:#eee8d4;border-radius:23px;padding:20px;margin:0;min-width:0}.method-screenshot img{display:block;border-radius:10px}.method-screenshot figcaption{font-size:11px;color:var(--muted);text-align:center;margin-top:12px}.method-compare{padding:35px 0}.context-roadmap{padding:45px 30px;background:#f0f3e8;border:1px solid var(--line);border-radius:24px;margin:35px 0;scroll-margin-top:105px}.context-roadmap h2{margin:20px 0}.context-roadmap .section-head p{max-width:850px;font-size:14px}.context-roadmap-grid{display:grid;grid-template-columns:1.2fr 1fr;gap:45px;align-items:center}.context-roadmap-steps{padding-left:28px;counter-reset:roadmap}.context-roadmap-steps li{padding:8px 0 8px 8px;color:var(--green)}.context-roadmap-steps li p{font-size:13px;margin:5px 0}.evidence-note{font-size:12px;color:var(--muted);margin-top:20px}
.sidebar .actions{display:flex;flex-direction:column;align-items:stretch;gap:12px}.sidebar .actions a.btn{display:flex;width:100%;padding:13px 16px;min-height:48px;color:#fff;font-size:14px;white-space:normal;text-align:center}.sidebar .actions a.btn.light{color:var(--ink);background:#fff}
.auth-security{border:1px solid var(--line);background:#f7f9f2;border-radius:12px;padding:16px;margin:18px 0}.security-title{display:flex;justify-content:space-between;gap:12px;font-size:13px;margin-bottom:12px}.security-title span{color:var(--muted);font-size:11px}.captcha-placeholder{min-height:46px;display:flex;align-items:center;gap:10px;background:#eef0e9;color:#64735f;font-size:12px;border:1px solid #d9dfd1;border-radius:7px;padding:8px 12px}.captcha-placeholder>span{background:white;padding:1px 10px;font-size:20px}.auth-security .micro{margin:10px 0 0}.auth-security [hidden]{display:none}.auth-security .text-link{font-size:12px;margin-top:10px}#auth-captcha-widget{min-height:46px;max-width:100%}.demo-auth-preview{margin-top:22px;padding:16px;border:1px dashed #c5cebd;border-radius:10px}.demo-auth-preview summary{font-size:12px;color:var(--muted)}.demo-auth-preview p{font-size:12px;margin:12px 0}.demo-auth-preview .btn{font-size:13px}.auth-form .form-status{font-size:13px}
@media(max-width:1000px){.platform-items,.download-options{grid-template-columns:repeat(2,1fr)}.hero-carousel{padding:20px}.platform-heading{align-items:flex-start;flex-direction:column;gap:0}.method-section{gap:28px}.context-roadmap-grid{gap:25px}.free-start{align-items:flex-start;flex-direction:column;gap:10px}.free-start .actions{max-width:none}.download-showcase{gap:30px}}
@media(max-width:700px){.back-to-top{width:46px;height:54px;right:12px;bottom:18px}.hero-carousel{border-radius:32px 18px 18px;padding:18px}.platform-band{padding:20px;margin:30px 0 20px}.platform-heading h2{font-size:21px}.platform-items{gap:8px}.platform-items>a{padding:12px 8px;gap:8px;flex-wrap:wrap}.platform-items strong{font-size:12px}.platform-items small{font-size:10px}.platform-items>a>span:last-child{display:none}.platform-items .device-mark{width:30px;height:30px;font-size:14px}.purchase-options{grid-template-columns:1fr}.purchase-card{padding:25px}.purchase-card h2{min-height:0;font-size:27px}.compare-head{display:none}.compare-row{grid-template-columns:1fr}.compare-row>*{border:0;padding:10px 18px}.compare-row>strong{background:#eef2e4}.compare-row>div:last-child{padding-bottom:18px}.mobile-label{display:block;font-size:11px;color:var(--green);font-weight:700;margin-bottom:3px}.free-start{padding:25px}.download-showcase{grid-template-columns:1fr;gap:30px}.download-showcase h2{font-size:26px}.download-options{grid-template-columns:1fr}.download-option{padding:24px}.download-option .btn{width:auto;min-width:220px}.method-section,.context-roadmap-grid{grid-template-columns:1fr;gap:25px}.method-section{padding:25px 0 40px}.method-section.reverse .method-copy{order:0}.method-section h2{font-size:26px}.context-roadmap{padding:25px 18px}.context-roadmap h2{font-size:26px}.context-roadmap-steps{margin:0}.method-nav{gap:8px}.method-nav a{font-size:12px;padding:8px 12px}.gallery-toolbar button{padding:6px 10px}.auth-security{padding:12px}}
@media(prefers-reduced-motion:reduce){.btn{transition:none}}

/* Larger, unframed hero; workflow cards follow the Danciying home interaction. */
.hero-carousel{padding:0;background:transparent;border-radius:0}.hero-carousel .gallery-stage{border:0;border-radius:18px;box-shadow:0 14px 40px #2735200a}.hero-carousel .gallery-dots{margin-top:8px;gap:3px}.hero-carousel .gallery-dots button{width:28px;height:28px}
.context-switcher{display:grid;grid-template-columns:minmax(0,1.85fr) minmax(290px,1fr);gap:28px;align-items:start}.context-switcher .gallery-stage{touch-action:pan-y;background:#10131b}.context-switcher .gallery-stage img{aspect-ratio:4/3}.context-switcher figure{scroll-margin-top:110px}.context-switcher figcaption{background:#fff}.context-choice-list{display:grid;gap:12px}.context-choice{display:flex;align-items:flex-start;gap:13px;padding:20px 18px;border:1px solid #ccd7c3;border-radius:12px;background:#ffffff80;transition:background .2s,border-color .2s}.context-choice h3{font-size:18px;margin:0;line-height:1.5}.context-choice p{font-size:13px;line-height:1.8;margin:10px 0 0}.context-choice-number{font-size:12px;color:var(--green);font-weight:700;line-height:27px}.context-choice-arrow{margin-left:auto;color:var(--green)}.context-choice:hover{background:#fff;border-color:#93aa88}.context-choice[aria-current=true]{background:#fff;border-color:var(--green);box-shadow:0 4px 16px #244a7008}.context-choice[aria-current=true] h3{color:var(--green)}.context-choice[aria-current=true] .context-choice-arrow{transform:rotate(45deg)}.context-choice p[hidden]{display:none}.context-switcher .gallery-stage a{cursor:zoom-in}
@media(min-width:1001px){.hero-grid{grid-template-columns:minmax(0,.88fr) minmax(0,1.12fr);gap:36px}}
@media(max-width:900px){.context-switcher{grid-template-columns:1fr;gap:20px}.context-choice{padding:16px}.hero-carousel .gallery-stage{border-radius:12px}}
@media(prefers-reduced-motion:reduce){.context-choice{transition:none}}

@media(max-width:700px){.hero-carousel .gallery-dots{flex-wrap:nowrap;gap:0}.hero-carousel .gallery-dots button{flex:0 1 28px}.hero-carousel .gallery-dots button:after{left:calc(50% - 3.5px)}.hero-carousel .gallery-dots button[aria-pressed=true]:after{left:calc(50% - 9px)}}

/* Verification is presented only in a modal opened by the SMS action. */
.auth-inline-status{margin:-6px 0 20px;line-height:1.8}.captcha-modal{width:min(420px,calc(100% - 32px));padding:28px;max-height:calc(100dvh - 32px);overflow:auto}.captcha-modal .dialog-head h2{font-size:23px}.captcha-modal #auth-captcha-description{font-size:14px;margin:12px 0 24px}.captcha-modal-provider{font-size:12px;color:var(--green);margin-bottom:10px}.captcha-modal-provider span{font-size:18px;margin-right:5px}.captcha-modal #auth-captcha-widget{min-height:48px;margin:0 0 14px}.captcha-modal .captcha-placeholder{min-height:48px;justify-content:center}.captcha-modal #auth-captcha-modal-status{min-height:40px;margin:0;line-height:1.8}.captcha-modal-actions{display:flex;gap:12px;margin-top:24px}.captcha-modal-actions .btn{flex:1;font-size:14px;padding:12px}.auth-security-error{color:#995b26}.captcha-modal::backdrop{background:#1c2c235c;backdrop-filter:blur(3px)}html:has(.captcha-modal[open]){overflow:hidden}@media(max-width:480px){.captcha-modal{padding:22px}.captcha-modal .dialog-head h2{font-size:21px}}

.device-mark img{display:block;width:30px;height:30px;object-fit:contain}.device-mark{flex-shrink:0}

/* Payment and shared dialogs: preserve readable close control on narrow screens. */
.dialog-head>button{flex-shrink:0;min-width:60px;white-space:nowrap}.dialog-head h2{min-width:0}

/* Wider book spines and complete phone screenshots. */
.book-entry{grid-template-columns:112px minmax(0,1fr) auto}
.book-entry .book-cover{width:112px;min-height:145px;padding:16px 14px;font-size:14px;line-height:1.5;overflow-wrap:anywhere}
.book-entry .book-cover small{font-size:10px;letter-spacing:0}
.phone-gallery{width:380px;max-width:100%;justify-self:center;padding:24px 18px 16px;background:#edf1dd;border-radius:52px 22px;text-align:center}
/* Fade the download carousel's backdrop into the surrounding page on every edge. */
body[data-page="download"] .phone-gallery{background:radial-gradient(ellipse closest-side at 50% 50%,#dfe9c6 58%,#edf1dc 78%,rgb(237 241 220 / 0) 100%);border-radius:0}
.phone-stage-wrap{position:relative}
.phone-gallery .gallery-stage{border:0;background:transparent;overflow:visible;border-radius:0;touch-action:pan-y}
.phone-gallery .gallery-stage a{width:246px;max-width:calc(100% - 72px);margin:auto;border:6px solid #29382c;border-radius:28px;overflow:hidden;box-shadow:0 16px 30px #29382c20;cursor:zoom-in;background:#fff}
.phone-gallery .gallery-stage img{width:100%;height:auto;aspect-ratio:1284/2778;object-fit:contain;border:0;border-radius:0}
.phone-gallery .gallery-stage figcaption{border:0;padding:18px 15px 8px;min-height:68px;font-size:14px;line-height:1.6}
.phone-prev,.phone-next{position:absolute;top:42%;width:32px;height:40px;padding:0;border:1px solid #cdd8c2;border-radius:10px;background:#ffffffd9;color:var(--green);font-size:28px;line-height:1}
.phone-prev{left:0}.phone-next{right:0}.phone-prev:hover,.phone-next:hover{background:white}
.phone-gallery .gallery-dots{gap:0;flex-wrap:nowrap}
.phone-gallery .gallery-dots button{flex:1;min-width:0;width:18px;height:30px}
.phone-gallery .gallery-dots button:after{left:calc(50% - 3px);width:6px;height:6px;top:12px}
.phone-gallery .gallery-dots button[aria-pressed=true]:after{left:calc(50% - 6px);width:12px}
.phone-gallery .phone-gallery-hint{font-size:11px;margin:8px 0 0;color:var(--muted)}
.phone-preview-large{display:block;margin:auto;max-width:100%;width:auto;height:auto;max-height:70vh;object-fit:contain}
.hero-carousel .gallery-stage{border:7px solid #29382c;border-radius:25px;background:#29382c;box-shadow:0 18px 40px #29382c18}
.hero-carousel .gallery-stage img{border-radius:16px}
@media(max-width:600px){.book-entry{grid-template-columns:88px minmax(0,1fr);gap:16px}.book-entry .book-cover{width:88px;min-height:125px;padding:13px 10px;font-size:13px;grid-row:span 2}.book-entry .btn{grid-column:2}.hero-carousel .gallery-stage{border-width:5px;border-radius:18px}.hero-carousel .gallery-stage img{border-radius:12px}}
.download-showcase>div{min-width:0}.phone-gallery{width:100%;max-width:380px}

body[data-page="download"] .download-showcase{margin-top:28px}
.download-showcase h1{font-size:29px;line-height:1.4;letter-spacing:-1px;margin-bottom:24px}
@media(max-width:900px){.download-showcase h1{font-size:26px}}
.phone-gallery .phone-prev,.phone-gallery .phone-next{top:50%;transform:translateY(-50%)}

/* Product learning galleries share the homepage device frame; keep all screenshots visible. */
.method-gallery .gallery-stage img{aspect-ratio:8/5;object-fit:contain}

/* The unit screenshot is 5:3; forcing 8:5 adds dark letterboxing above and below it. */
#unit-learning-gallery .gallery-stage img{aspect-ratio:auto;height:auto}
