/* NineCloud: horizontal navigation, cloud-white workspace, centered entrance. */
:root{--background:#f5f3fc;--surface:#fff;--surface-hover:#f0f7fd;--heading:#253047;--text:#354259;--secondary:#667287;--tertiary:#69748a;--primary:#2468ce;--primary-hover:#1954ab;--outline:#e3e6f0;--input:#f6f9fd;--error:#ba3e63;--dialog:var(--surface);--radius:18px;--art-bg:#eef8fc;--brand-cyan:#08b8cf;--brand-pink:#db4298;--brand-orange:#ff9e3f;--brand-violet:#8950d1;--brand-orange-text:#925000;--brand-gradient:linear-gradient(115deg,#ff9e3f,#ee4e9b 28%,#8950d1 55%,#2681f3 78%,#08b8cf);--ss-ink:var(--heading);--ss-leaf:var(--primary);--ss-soft:#edf5ff;--ss-violet:#8249bd;--ss-blue:var(--primary);--ss-space:24px;--m-bg:var(--background);--m-panel:var(--surface);--m-border:var(--outline);--m-text:var(--text);--m-muted:var(--secondary);--m-faint:var(--tertiary);--m-active:var(--ss-soft);--m-primary:var(--primary);--m-hover:var(--surface-hover);--m-radius:18px}
:root[data-theme="dark"]{--background:#111a29;--surface:#1b273b;--surface-hover:#23384d;--heading:#f3f7ff;--text:#e0e9f5;--secondary:#b0bfd3;--tertiary:#9eafc5;--primary:#8bbdff;--primary-hover:#aed1ff;--outline:#34465d;--input:#172437;--error:#ff98b8;--art-bg:#19354a;--ss-soft:#233d5e;--ss-violet:#d5a4ff;--brand-cyan:#4bd6e2;--brand-pink:#ef8fc9;--brand-orange:#ffc175;--brand-violet:#bb93ee;--brand-orange-text:#ffc175}

body{min-width:0;background:var(--background);color:var(--text);font-family:Rubik,"Microsoft YaHei","PingFang SC",sans-serif}button:active:not(:disabled),.button:active{transform:scale(.98)}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:2px solid var(--primary);outline-offset:3px}
.member-app{min-height:100svh;background:var(--background);color:var(--text);font-size:14px}.member-app :is(h1,h2,h3,strong,p,small,dd,code){overflow-wrap:anywhere}.member-app h2{font-size:16px;font-weight:600;letter-spacing:0}.member-app h3{font-size:14px}
.nine-shell{display:block;background-image:radial-gradient(ellipse at 0 0,color-mix(in srgb,var(--brand-orange) 15%,transparent),transparent 45%),radial-gradient(ellipse at 100% 15%,color-mix(in srgb,var(--brand-pink) 12%,transparent),transparent 42%),radial-gradient(ellipse at 50% 100%,color-mix(in srgb,var(--brand-cyan) 12%,transparent),transparent 65%)}.nine-shell .m-main{margin-left:0;width:100%;min-height:100svh}.nine-shell .m-app-header{position:relative;z-index:auto;background:transparent;border:0}.nine-shell .m-topbar{position:relative;width:calc(100% - 56px);max-width:1224px;height:74px;margin:24px auto 0;padding:0 24px;gap:20px;background:var(--surface);border:1px solid var(--outline);border-bottom:0;border-radius:20px 20px 0 0}.nine-shell .m-topbar-title{display:flex;align-items:center;gap:12px;min-width:0}.nine-shell .m-brand{display:flex;align-items:center;gap:10px;min-width:0;padding:0;white-space:normal}.nine-shell .m-brand-symbol{flex:0 0 auto;width:38px;height:38px;background:none;border:0}.nine-shell .m-brand-symbol img{width:38px;height:38px}.nine-shell .m-brand-name{display:flex;flex-direction:column;gap:5px;color:var(--heading);font-size:22px;font-weight:600;line-height:1.2;letter-spacing:2px}.nine-shell .m-topbar-tools{display:flex;align-items:center;gap:8px;flex:0 0 auto}.nine-shell .m-icon-button{min-width:44px;height:44px;border:0;border-radius:10px;color:var(--secondary);background:transparent;transition:background .18s,color .18s}.nine-shell .m-icon-button:hover{color:var(--primary);background:var(--ss-soft)}.nine-shell .m-account-button{min-height:44px;max-width:210px;gap:8px;padding:6px 12px 6px 6px;border:1px solid var(--outline);border-radius:24px;color:var(--text);background:var(--surface)}.nine-shell .m-account-label{max-width:140px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.nine-shell .m-avatar{width:30px;height:30px;border:0;border-radius:50%;color:var(--primary);background:var(--ss-soft)}.m-local-mark{flex-shrink:0;padding:3px 6px;border:1px solid var(--outline);border-radius:4px;color:var(--secondary);font-size:10px}
.nine-shell .m-sidebar{position:static;width:calc(100% - 56px);max-width:1224px;height:auto;margin:0 auto;padding:8px 16px 12px;border:1px solid var(--outline);border-top:0;border-radius:0 0 20px 20px;background:var(--surface);box-shadow:0 12px 36px #4b2c7610;transform:none;overflow:visible}.nine-shell .m-drawer-heading{display:none}.nine-shell .m-nav{display:flex;justify-content:space-between;gap:8px;margin:0;padding:0}.nine-shell .m-nav-link{display:flex;align-items:center;justify-content:center;gap:8px;min-width:0;min-height:48px;padding:10px 12px;margin:0;border:0;border-radius:10px;color:var(--secondary);font-size:13px;transition:background .18s,color .18s,transform .18s}.nine-shell .m-nav-link .m-icon{width:18px;height:18px}.nine-shell .m-nav-link:hover{color:var(--heading);background:var(--surface-hover)}.nine-shell .m-nav-link.is-active{color:var(--primary);background:var(--ss-soft);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--primary) 15%,var(--outline))}.nine-shell .m-nav-name{white-space:normal}.nine-shell #member-nav-shop,.nine-shell .m-bottom-link[href="#/shop"]{color:var(--ss-blue)!important}.nine-shell #member-nav-invite,.nine-shell .m-bottom-link[href="#/invite"]{color:var(--ss-violet)!important}.nine-shell #member-nav-invite.is-active{background:color-mix(in srgb,var(--brand-pink) 9%,var(--surface));box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--ss-violet) 18%,var(--outline))}
.nine-shell .m-content{max-width:1280px;margin:0 auto;padding:24px 28px 32px}.nine-shell .m-footer{max-width:1280px;margin:auto;padding:0 28px 24px;border:0;color:var(--secondary);font-size:11px}.nine-shell .m-mobile-nav-toggle,.nine-shell .m-bottom-nav{display:none}.nine-shell .m-panel{padding:24px;border:1px solid var(--outline);border-radius:12px;background:var(--surface);box-shadow:none}.member-app .m-button{min-height:44px;padding:10px 16px;border:1px solid var(--outline);border-radius:8px;color:var(--text);background:var(--surface);font-size:13px;justify-content:center;transition:background .18s,transform .18s}.member-app .m-button:hover{background:var(--surface-hover)}.member-app .m-button-primary,.member-app .m-plan-purchase{color:var(--surface)!important;background:var(--primary);border-color:var(--primary)}.member-app .m-button-primary:hover,.member-app .m-plan-purchase:hover{background:var(--primary-hover)}.member-app .m-text-button{min-height:44px;color:var(--primary);font-size:13px}.m-form-field :is(input,select,textarea),.member-app select{border-color:var(--outline);border-radius:8px;color:var(--text);background:var(--input)}.m-dropdown{color:var(--text);background:var(--surface);border-color:var(--outline)}
.m-dialog{max-width:calc(100vw - 24px);border:1px solid var(--outline);border-radius:16px;color:var(--text);background:var(--surface);box-shadow:0 30px 100px #101a3040}.m-dialog::backdrop{background:#101a3055;backdrop-filter:blur(4px)}.m-dialog-heading{border-color:var(--outline)}.m-dialog-heading h2{color:var(--heading)}.m-dialog-content,.m-dialog-footer{min-width:0;overflow-wrap:anywhere}.m-dialog-footer{flex-wrap:wrap}.m-pagination button{min-height:44px}.m-rich-html :is(pre,code,table){max-width:100%}.m-rich-html pre{overflow-x:auto;white-space:pre}.toast{border-radius:10px;box-shadow:0 10px 40px #18264222}
/* Centered authentication replaces the reference template's split screen. */
.n-access-page{display:flex;flex-direction:column;min-height:100svh;padding:0;background:radial-gradient(ellipse at 18% 20%,color-mix(in srgb,var(--brand-orange) 7%,transparent),transparent 45%),radial-gradient(ellipse at 88% 80%,color-mix(in srgb,var(--brand-cyan) 8%,transparent),transparent 50%),var(--background)}.n-access-page::before{display:none}.n-access-page .page-navigation{width:100%;max-width:1280px;height:88px;margin:0 auto;padding:0 28px}.brand-wordmark strong{color:var(--heading);font-size:23px;letter-spacing:2px}.n-access{position:relative;display:grid;grid-template-columns:minmax(320px,.85fr) minmax(0,1.15fr);grid-template-areas:"form visual";align-items:stretch;gap:0;width:calc(100% - 56px);max-width:1224px;min-height:620px;padding:0;margin:16px auto 32px;border:1px solid var(--outline);border-radius:28px;overflow:hidden;background:var(--surface);box-shadow:0 24px 70px #6d4bcc14}.n-auth-intro{grid-area:visual;position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:32px;min-height:620px;width:100%;max-width:none;padding:40px;border-radius:0;background:linear-gradient(0deg,#28125640,transparent 65%),var(--brand-gradient);box-shadow:none;overflow:hidden;text-align:center}.n-auth-logo-art{position:relative;z-index:1;width:min(70%,212px);line-height:0;filter:drop-shadow(0 10px 24px #2812541f)}.n-auth-logo-art img{display:block;width:100%;height:auto;max-width:100%;max-height:260px;object-fit:contain}.n-brand-motto{position:relative;z-index:1;margin:0;color:#fff;display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px 24px;font-size:clamp(18px,1.7vw,22px);line-height:1.6;font-weight:500;letter-spacing:.18em;text-shadow:none}
/* The form and brand panel share the single outer card. */
.n-auth-area { grid-area:form; position:relative; display:flex; align-items:center; min-width:0; width:100%; padding:44px 52px; border:0; border-radius:0; background:var(--surface); box-shadow:none; }
.n-auth-area::before { content:""; position:absolute; inset:0 20px auto; height:2px; background:var(--brand-gradient); pointer-events:none; }
.n-auth-area .auth-container { width:100%; max-width:none; }
.n-auth-area .form-shell { width:100%; max-width:none; margin:0; padding:0; border:0; border-radius:0; background:none; box-shadow:none; animation-duration:.35s; }
.n-auth-area .form-shell h2 { margin:0 0 24px; color:var(--heading); font-size:24px; font-weight:550; letter-spacing:0; }
.n-auth-area .field-label { color:var(--secondary); font-size:12px; }
.n-auth-area .field-wrapper input { height:48px; border-color:var(--outline); border-radius:8px; color:var(--text); background:var(--input); }
.n-auth-area .button-primary { height:48px; border-radius:10px; color:#fff; background:linear-gradient(110deg,#3154cd,#087f99); box-shadow:0 8px 20px #2468ce18; }
.n-auth-area .button-primary:hover { background:var(--primary-hover); }
.n-auth-area .auth-switch { margin-top:16px; text-align:center; color:var(--secondary); font-size:12px; }
.n-auth-area .auth-preview { min-height:44px; margin-top:20px; border:1px solid var(--outline); border-radius:8px; color:var(--primary); font-size:12px; }
.n-access-page .auth-footer { width:100%; max-width:1280px; margin:0 auto; padding:20px 28px; color:var(--secondary); font-size:11px; }
.page-tools .icon-button { min-width:44px; min-height:44px; color:var(--secondary); border-color:var(--outline); }
.page-tools .icon-button:hover { background:var(--ss-soft); }
@media(max-width:1100px) and (min-width:1024px){.nine-shell .m-nav{gap:0}.nine-shell .m-nav-link{gap:6px;padding-inline:8px;font-size:12px}}
@media(max-width:1023px){.nine-shell .m-mobile-nav-toggle{display:grid;place-items:center}.nine-shell .m-topbar{height:72px;width:calc(100% - 32px);margin-top:16px;border-bottom:1px solid var(--outline);border-radius:16px}.nine-shell .m-sidebar{position:fixed;inset:0 0 0 auto;z-index:110;width:min(370px,calc(100vw - 32px));height:100dvh;margin:0;padding:24px;overflow-y:auto;border-left:1px solid var(--outline);background:var(--surface);border-radius:0;transform:translateX(105%);transition:transform .22s}.nine-shell.m-mobile-open .m-sidebar{transform:translateX(0)}.nine-shell .m-drawer-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px}.nine-shell .m-navigation-title{margin:0;color:var(--heading);font-size:17px}.nine-shell #member-nav-close{display:grid;place-items:center}.nine-shell .m-nav{display:grid;grid-template-columns:1fr;gap:6px}.nine-shell .m-nav-link{justify-content:flex-start;min-height:50px;gap:12px;padding:12px 16px;border:0;border-radius:10px;font-size:14px}.nine-shell .m-nav-link.is-active{background:var(--ss-soft)}.nine-shell .m-mobile-scrim{position:fixed;inset:0;z-index:100;border:0;background:#101a3055}}
@media(max-width:767px){.nine-shell .m-mobile-nav-toggle{display:none}.nine-shell .m-topbar{width:100%;max-width:none;height:64px;margin:0;gap:8px;padding:0 14px;border:0;border-radius:0}.nine-shell .m-topbar-title{gap:4px;max-width:calc(100% - 138px)}.nine-shell .m-brand{gap:7px}.nine-shell .m-brand-symbol,.nine-shell .m-brand-symbol img{width:30px;height:30px}.nine-shell .m-brand-name{gap:3px;font-size:18px;letter-spacing:1px}.nine-shell .m-topbar-tools{gap:0}.nine-shell .m-account-button{max-width:44px;padding:6px;border:0}.nine-shell .m-account-label,.nine-shell .m-local-mark{display:none}.nine-shell .m-content{padding:16px 14px 20px}.nine-shell .m-footer{padding:4px 14px 96px}.nine-shell .m-panel{padding:16px}.nine-shell .m-bottom-nav{position:fixed;inset:auto 0 0;z-index:40;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));padding:4px 6px max(8px,env(safe-area-inset-bottom));border-top:1px solid var(--outline);background:var(--surface);box-shadow:0 -6px 30px #18264206}.nine-shell .m-bottom-link{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-height:54px;padding:6px 2px;border:0;border-radius:8px;color:var(--secondary);background:none;font-size:10px;line-height:1.2}.nine-shell .m-bottom-link .m-icon{width:20px;height:20px}.nine-shell .m-bottom-link.is-active{color:var(--primary);background:var(--ss-soft)}.n-access-page .page-navigation{height:76px;padding:0 20px}.n-access-page .brand img{width:34px;height:34px}.brand-wordmark strong{font-size:20px}.n-access{display:flex;flex-direction:column;width:calc(100% - 32px);min-height:0;margin:8px auto 28px;gap:0;padding:0;border-radius:18px}.n-auth-intro{min-height:180px;padding:20px;border-radius:0;gap:18px}.n-auth-logo-art{width:84px;max-width:40vw}.n-brand-motto{gap:6px 14px;font-size:14px;letter-spacing:.14em}.n-auth-area{padding:26px 24px;border-radius:0}.n-auth-area .form-shell h2{font-size:22px}.n-auth-area .field-group{margin-bottom:14px}.n-auth-area .form-options{gap:10px;font-size:12px}.n-auth-area .auth-preview{margin-top:16px}.n-access-page .auth-footer{padding:16px 24px}}
@media(max-width:380px){.nine-shell .m-topbar{padding-inline:10px}.nine-shell .m-topbar-title{gap:0;max-width:calc(100% - 138px)}.nine-shell .m-brand{gap:7px}.nine-shell .m-brand-symbol,.nine-shell .m-brand-symbol img{width:30px;height:30px}.nine-shell .m-brand-name{font-size:18px;letter-spacing:0;white-space:nowrap}.n-access-page .page-navigation{padding-inline:14px}.n-access-page .brand{gap:7px;min-width:0}.n-access-page .brand img{width:30px;height:30px}.n-access-page .brand-wordmark strong{font-size:18px;letter-spacing:0;white-space:nowrap}}
@media(max-width:767px){
  .nine-shell .m-sidebar{inset:50% auto auto 50%;width:min(370px,calc(100vw - 32px));height:auto;max-height:calc(100dvh - 80px);padding:18px;border:1px solid var(--outline);border-radius:20px;background:var(--surface);box-shadow:0 28px 90px #101a3040;transform:translate(-50%,-50%) scale(.96);opacity:0;visibility:hidden;transition:opacity .18s,transform .18s,visibility .18s}
  .nine-shell.m-mobile-open .m-sidebar{transform:translate(-50%,-50%) scale(1);opacity:1;visibility:visible}
  .nine-shell .m-drawer-heading{margin-bottom:14px}
  .nine-shell .m-navigation-title{font-size:16px}
  .nine-shell .m-nav{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .nine-shell .m-nav-link{min-height:56px;gap:9px;padding:10px 11px;border:1px solid var(--outline);border-radius:10px;background:var(--input);font-size:12px}
  .nine-shell .m-nav-link.is-active{border-color:color-mix(in srgb,var(--primary) 24%,var(--outline))}
  .nine-shell .m-nav-link:last-child:nth-child(odd){grid-column:1/-1;justify-content:center}
  .nine-shell .m-mobile-scrim{background:#101a3066;backdrop-filter:blur(5px)}
}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}}

