/* 企业浅色客户端：沿用原有布局、业务状态和响应式断点。 */
:root{color-scheme:light;--bg:#f5f7fa;--panel:#fff;--line:#e1e7ef;--muted:#64748b;--red:#2563eb;--green:#07845b}
body,.auth-page{background:#f5f7fa;color:#172b4d;font-family:system-ui,"Microsoft Yahei",sans-serif}
.homepage .shell-sidebar,.shell-header,.mobile-nav,.homepage .panel,.auth-card,.client-dialog,#account-dialog,.account-dialog-heading{background:#fff;color:#172b4d;border-color:#e1e7ef;background-image:none}
.homepage .shell-sidebar{border-right:1px solid #e1e7ef}.shell-brand small,.homepage .shell-sidebar-foot,.shell-nav a{color:#64748b}
.homepage .shell-nav a.active,.shell-nav a:hover{background:#edf4ff;color:#2563eb}.shell-nav a.active:before{display:none}
.shell-header{border-bottom:1px solid #e1e7ef}.mobile-nav{border-top:1px solid #e1e7ef}.shell-breadcrumb,.shell-breadcrumb b,.header-balance{color:#475569}
.homepage .solid-button,.account-primary{background:#2563eb;color:white;border-color:#2563eb}.homepage .solid-button:hover,.account-primary:hover{background:#1d4ed8}
.outline-button,.ghost-button,.account-secondary,.client-wallet-deposit{background:white;color:#2563eb;border:1px solid #ccd9eb}.outline-button:hover,.ghost-button:hover,.account-secondary:hover{background:#eff6ff}
.account-link,.homepage #account-dialog a,.account-history-row a{color:#2563eb}.avatar-button,.mobile-menu,.drawer-close{color:#475569;background:#f1f5f9}
.page-intro h1{font-size:28px;letter-spacing:0}.page-intro p,.compact-note,.account-muted,.settings-row small,.strategy-card>p,.strategy-data small,.empty-state,.empty-state small,.auth-card small,.client-dialog p,.client-dialog li{color:#64748b}
.pill{background:#eff6ff;color:#2563eb;border-color:#dbeafe}.info-banner{background:#eff6ff;color:#315b8e;border-color:#dbeafe}.compact-fold>summary,.account-fold>summary,.account-password summary,.auth-card .password-login>summary{color:#334155}
.home-balance,.asset-balance,.account-balance{color:#172b4d;font-family:inherit;font-variant-numeric:tabular-nums}.account-balance{font-size:38px;margin:8px 0 14px;letter-spacing:-1px}
.home-overview{min-height:200px}.home-overview img{width:125px;height:125px}.home-adoption{min-height:110px}.home-shortcuts button{background:#fff}.home-shortcuts{gap:12px}
.data-table-wrap{border-color:#e1e7ef}table th{background:#f8fafc;color:#64748b}table td{color:#334155;border-color:#e1e7ef}.table-empty{color:#64748b}.settings-row{border-color:#e1e7ef}.panel-top button{color:#2563eb}.red,.error,.account-error{color:#b42318}.green,.account-status{color:#07845b}
.shell-toast{background:#172b4d;color:#fff;border:0}.client-dialog::backdrop,#account-dialog::backdrop{background:#172b4d66;backdrop-filter:blur(3px)}
.client-dialog input,.auth-card input,.auth-card select,#account-dialog input,#account-dialog select{background:#fff;color:#172b4d;border:1px solid #d4deeb;border-radius:8px;min-height:46px}
.auth-card label,#account-dialog label{color:#334155;font-size:14px}.auth-card input:focus,#account-dialog input:focus,#account-dialog select:focus{outline:2px solid #93b4fa;outline-offset:1px;border-color:#2563eb}
.auth-card{border-radius:16px;box-shadow:0 12px 40px #243b5310}.account-eyebrow{color:#2563eb}.account-section,.auth-note,.account-history-row{border-color:#e1e7ef}.auth-card .account-section{margin-top:24px}
.account-pay-detail{background:#f8fbff;border-color:#cfddf3}.account-pay-detail code{color:#334155}.account-amount{color:#2563eb}.account-history-row small{color:#64748b}
#account-dialog{width:min(560px,calc(100% - 32px));border-radius:16px;padding:0}#account-dialog .account-dialog-heading{background:white;border-color:#e1e7ef;padding:16px 22px;gap:12px}.account-dialog-heading h2{font-size:20px;flex:1}#account-close{font-size:14px;padding:8px 12px;min-height:40px;background:#f8fafc;color:#475569}.account-dialog-body{padding:22px;background:#f5f7fa}
[data-account-view]{min-width:0}[data-account-view].account-section{margin:0;border:0;padding:0}[data-account-view]>summary{display:none}
.enterprise-profile{display:flex;align-items:center;gap:14px;padding:18px;background:white;border:1px solid #e1e7ef;border-radius:12px;margin-bottom:16px}.enterprise-profile p{margin:3px 0 0;overflow-wrap:anywhere;font-size:13px}.enterprise-profile-icon{font-size:28px;color:#2563eb;flex:0 0 32px}
.enterprise-balance{background:#fff;padding:20px;border:1px solid #e1e7ef;border-radius:12px}.enterprise-balance .account-actions>*{flex:1}.enterprise-balance>p{font-size:13px}
.enterprise-menu{border:1px solid #e1e7ef;border-radius:12px;background:#fff;margin-top:16px;padding:4px 16px}.enterprise-menu h3{font-size:15px;margin:14px 0 4px}.enterprise-menu button{display:flex;align-items:center;justify-content:space-between;width:100%;padding:16px 0;min-height:52px;background:none;color:#334155;border:0;border-bottom:1px solid #edf0f5;text-align:left;font-size:14px}.enterprise-menu button:last-child{border:0}.enterprise-menu button span{color:#64748b;font-size:13px}
.enterprise-steps{display:flex;gap:16px;background:#fff;border:1px solid #e1e7ef;border-radius:10px;padding:16px;margin-bottom:18px;color:#2563eb;font-size:14px}.enterprise-steps span{flex:1}.enterprise-steps b{display:inline-grid;place-items:center;width:25px;height:25px;border-radius:50%;background:#2563eb;color:white;margin-right:5px}
.enterprise-tip{padding:14px;background:#eff6ff;color:#315b8e;border-radius:8px;font-size:13px;line-height:1.7;margin:16px 0}.enterprise-tip:empty{display:none}
#account-dialog input[type=checkbox]{accent-color:#2563eb;min-height:20px}
#account-error{margin:12px 0}.client-wallet-card{background:#fff;color:#172b4d;border-color:#e1e7ef}.client-wallet-label,.client-wallet-amount span{color:#64748b}.client-wallet-icon{background:transparent;border:0;color:#2563eb}
#account-back{white-space:nowrap;min-height:40px;font-size:14px}#real-account-bar{box-shadow:none}.dialog-price{color:#2563eb}.dialog-detail{border-color:#e1e7ef;color:#334155}
@media(max-width:760px){
 .homepage #account-dialog[open]{width:100%;max-width:none;height:100dvh;max-height:100dvh;margin:0;border:0;border-radius:0}.account-dialog-body{padding:18px}.homepage #account-dialog .account-dialog-heading{padding:12px 18px;padding-top:max(12px,env(safe-area-inset-top))}.account-dialog-heading h2{font-size:19px}
 .homepage .shell-main{padding:24px 18px 100px}.homepage .page-intro h1{font-size:25px}.homepage .page-intro p{font-size:14px}.home-overview{min-height:180px}.home-overview img{width:95px;height:95px}.home-shortcuts button{font-size:14px}.mobile-nav a{font-size:12px}.shell-header-right .outline-button{font-size:13px}.compact-fold>summary{font-size:15px}
 .enterprise-steps{gap:6px;padding:12px;font-size:13px}.auth-card{padding:26px 22px}.account-balance{font-size:36px}.client-dialog{width:calc(100% - 32px)}
}

.enterprise-presets{display:flex;gap:10px;margin:12px 0}.enterprise-presets button{flex:1;min-height:44px;border:1px solid #d4deeb;border-radius:8px;color:#2563eb;background:#fff}.enterprise-presets button:hover{background:#eff6ff}.homepage .strategy-card .pill{background:#eff6ff;color:#2563eb;border-color:#dbeafe}.enterprise-authorization-detail{margin:20px 0}#deposit-form .account-actions>button{width:100%;min-height:46px}

/* 独立登录页使用确认稿样式，避免影响客户端其他页面。 */
.login-page{min-height:100dvh;padding:28px 20px;background:#f3f5f8;color:#172235;font-size:15px;line-height:1.5}
.login-page .auth-card{width:min(100%,480px);margin:0;padding:32px 38px;border-color:#e2e7ef;border-radius:24px;box-shadow:none;color:inherit}
.login-header{text-align:center;margin-bottom:28px}
.login-header .auth-logo{margin:0 auto 10px}
.login-header #auth-title{margin:0 0 6px;font-size:34px;line-height:1.25;letter-spacing:-.04em}
.login-header p,.login-help{margin:0;color:#556477}
.login-tabs{display:flex;gap:4px;margin-bottom:22px;padding:4px;border-radius:12px;background:#eff2f6}
.login-tabs button{flex:1;min-height:42px;padding:0 4px;border:0;border-radius:9px;background:transparent;color:#516072;font:inherit;cursor:pointer}
.login-tabs button[aria-selected="true"]{background:#fff;color:#172235;font-weight:650}
.login-page label{margin:0 0 7px;color:#344358;font-size:13px;font-weight:650}
.login-page input,.login-page select{height:50px;padding:0 14px;border-color:#cbd4df;border-radius:10px;color:#172235}
.login-page select{appearance:none;padding-right:44px;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18'%3E%3Cpath d='m5 7 4 4 4-4' fill='none' stroke='%2351647a' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 13px center}
.login-page .account-primary{display:flex;align-items:center;justify-content:center;gap:9px;min-height:50px;margin:12px 0 0;border-radius:10px;background:#2359d7;font-weight:650}
.login-page .account-primary:hover{background:#194bbb}
.login-page :focus-visible{outline:2px solid #2359d7;outline-offset:2px}
.login-help{margin-top:16px;text-align:center;font-size:13px;line-height:1.65}
.login-help:empty{display:none}
.login-page #auth-form{margin:0}
.login-page #password-login input + label,.login-page #confirm-wrap{margin-top:12px}
.login-page #auth-toggle{display:block;margin:12px auto 0;padding:0}
@media(max-width:520px){
  .login-page .auth-card{padding:27px 23px;border-radius:20px}
  .login-header{margin-bottom:24px}
  .login-header #auth-title{font-size:30px}
  .login-tabs{margin-bottom:20px}
}

/* 全站确认稿：会员工作台与账户子页共享白色卡片和蓝色操作层级。 */
.homepage{background:#f3f5f8;color:#172235}
.homepage .shell-main{max-width:1200px;padding-top:34px}
.homepage .page-intro h1,.learning-view .page-intro h1{font-size:34px;line-height:1.2;letter-spacing:-.035em;color:#172235}
.homepage .panel{border-color:#e2e7ef;border-radius:16px}
.homepage .home-overview{background:#edf2ff;border-color:#dce6ff}
.homepage .home-overview img{width:146px;height:146px}
.homepage .home-quick{margin-top:14px}
.homepage .home-shortcuts{margin:12px 0 0}
.homepage .solid-button,.homepage .account-primary{background:#2359d7;border-color:#2359d7}
.homepage .solid-button:hover,.homepage .account-primary:hover{background:#194bbb}
.homepage .strategy-card>.panel-top{justify-content:flex-end}
.homepage #account-dialog{width:min(680px,calc(100% - 32px))}
.homepage .account-dialog-body{background:#f3f5f8}
.homepage [data-account-view]:not([data-account-view="overview"]){background:white;border:1px solid #e2e7ef;border-radius:14px;padding:20px}
.homepage .enterprise-steps{flex-wrap:wrap}
.homepage .enterprise-steps span{min-width:max-content}
.learning-view{color:#172235}
.learning-view [code-path^="src/components/LearnView.tsx:"]{background-image:none}
.learning-view .learning-metrics>div,.learning-view [code-path^="src/components/LearnView.tsx:38:"]{background:#fff;border-color:#e2e7ef;text-align:left}
.learning-view .learning-metrics>div{display:flex;align-items:center;justify-content:space-between;flex-direction:row-reverse;gap:8px}
.learning-view .learning-metrics>div>span,.learning-view h3{color:#172235}
@media(max-width:760px){
 .homepage .shell-main{padding:24px 16px 100px}
 .homepage .page-intro h1,.learning-view .page-intro h1{font-size:29px}
 .homepage .panel{border-radius:13px}
 .homepage .home-overview img{width:92px;height:92px}
 .homepage .home-adoption{flex-direction:column;gap:12px}
 .homepage #account-dialog[open]{width:100%}
 .homepage [data-account-view]:not([data-account-view="overview"]){padding:16px}
 .learning-view .learning-metrics{grid-template-columns:1fr}
}

.learning-view .learning-empty{padding:24px 12px;text-align:center;color:#556477}

/* 学习中心沿用原课程组件和导航，切换到与工作台一致的浅色外观。 */
#root:has(.learning-view)>.min-h-screen{background:#f3f5f8;color:#172235}
#root:has(.learning-view) :is(header,aside,.bottom-nav){background:#fff;border-color:#e2e7ef;color:#526175}
#root:has(.learning-view) header [code-path="src/components/Header.tsx:98:15"]{background:none}
#root:has(.learning-view) header [code-path="src/components/Header.tsx:101:15"]{color:#172235}
#root:has(.learning-view) header button{background:#f3f5f8;border-color:#e2e7ef;color:#42536a}
#root:has(.learning-view) header nav button,#root:has(.learning-view) aside nav button{background-image:none;color:#526175}
#root:has(.learning-view) :is(header nav,aside nav) button:is(:hover,[class*="text-[#FF4D4D]"]),#root:has(.learning-view) .bottom-nav-item.active{background:#eaf0ff;border-color:#dce6ff;color:#204fbf}
#root:has(.learning-view) .bottom-nav-item.active svg{color:#204fbf}
.learning-view .page-intro h1{font-weight:700}
.learning-view :is([code-path="src/components/LearnView.tsx:70:7"],[code-path="src/components/LearnView.tsx:133:9"]){background:#fff;border-color:#e2e7ef}
.learning-view [class*="text-white"]{color:#172235}

/* 学习中心使用工作台的导航、卡片与按钮。 */
.course-view{max-width:800px}
.course-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.course-home{display:inline-flex;align-items:center;justify-content:center;min-height:44px;white-space:nowrap}
.homepage .course-overview{background:#edf2ff;border-color:#dce6ff}
.course-overview p{margin:4px 0 0}
.course-filters{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0 10px}
.course-filters button,.course-view>[data-action="flow"]{min-height:44px}
.course-filters [aria-pressed="true"]{background:#edf2ff;color:#1f50c1;border-color:#c9d8fc;font-weight:700}
.course-list{list-style:none;margin:0;padding:0}
.course-row{display:flex;align-items:flex-start;gap:12px;padding:11px 0}
.course-row+.course-row{border-top:1px solid #e2e7ef}
.course-icon{display:grid;place-items:center;flex:none;width:34px;height:34px;border-radius:9px;background:#edf2ff;color:#2359d7}
.course-icon svg{width:19px;height:19px}
.course-details{flex:1;min-width:0}
.course-details h3{margin:0;font-size:15px;overflow-wrap:anywhere}
.course-details p{margin:3px 0 0;font-size:12px}
.course-progress{display:flex;align-items:center;gap:9px;margin-top:4px;color:#435575;font-size:12px;font-variant-numeric:tabular-nums}
.course-progress progress{flex:1;min-width:0;height:6px;accent-color:#3769d8}
.course-progress span{min-width:3.5ch;text-align:right}
.homepage .home-shortcuts a{display:inline-flex;align-items:center;justify-content:center;text-align:center}
@media(max-width:760px){
 .course-heading{gap:8px}
 .course-home{padding-inline:10px;font-size:13px}
}
