:root{--primary:#2979ff;--orange:#ff5b22;--yellow:#f7d934;--bg:#f5f6f8;--card:#fff;--text:#222;--muted:#9299a6;--line:#edf0f4;--safe-bottom:env(safe-area-inset-bottom,0px)}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{margin:0;min-height:100%;background:#f2f3f5;color:var(--text);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif}
button,input,select,textarea{font:inherit}
button{cursor:pointer}
.app-shell{position:relative;width:100%;max-width:750px;min-height:100vh;margin:0 auto;background:var(--bg);box-shadow:0 0 18px rgba(33,39,55,.12);padding-bottom:calc(58px + var(--safe-bottom))}
@media(min-width:751px){.app-shell{max-width:1180px}.view{min-height:calc(100vh - 102px);padding-left:clamp(18px,4vw,60px);padding-right:clamp(18px,4vw,60px)}}
.topbar{height:45px;display:grid;grid-template-columns:45px 1fr 45px;align-items:center;background:#fff;border-bottom:1px solid #eee;position:sticky;top:0;z-index:20}
.topbar h1{font-size:17px;line-height:1;margin:0;text-align:center;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.icon-button{width:44px;height:44px;border:0;background:transparent;color:#333;font-size:31px;line-height:1}.is-hidden{visibility:hidden}
.view{min-height:calc(100vh - 103px);overflow:hidden}.page{animation:page-in .18s ease both}@keyframes page-in{from{opacity:.25;transform:translateY(4px)}to{opacity:1;transform:none}}
.hero{height:200px;overflow:hidden;position:relative;background:var(--yellow)}.hero-preview{position:absolute;width:1918px;height:auto;max-width:none;left:50%;top:-78px;transform:translateX(-50%)}
.notice{margin:13px 8px 9px;padding:12px 14px;background:#fffbea;color:#ff5b22;display:flex;align-items:center;gap:9px;border:0;width:calc(100% - 16px);text-align:left}.notice-icon{font-size:18px}.notice-text{flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:13px}.notice-close{font-size:20px;font-weight:300}
.search-wrap{padding:10px 8px 4px;background:#fff}.search-box{height:35px;display:flex;align-items:center;gap:7px;padding:0 12px;background:#f5f6f8;color:#b6bcc6}.search-box input{min-width:0;flex:1;border:0;outline:0;background:transparent;font-size:13px;color:#333}.search-box input::placeholder{color:#c3c8d0}
.category-strip{display:flex;gap:8px;overflow-x:auto;padding:10px 8px 6px;background:#fff;scrollbar-width:none}.category-strip::-webkit-scrollbar{display:none}.category-chip{flex:none;border:0;border-radius:15px;background:#f3f4f6;color:#666;padding:6px 12px;font-size:12px}.category-chip.is-active{color:#fff;background:#2979ff}
.goods-count{text-align:center;color:#87909d;font-size:14px;padding:4px 0 6px}.goods-list{padding:0 8px 14px}.goods-card{width:100%;border:0;background:#fff;border-radius:6px;margin-bottom:8px;padding:7px;display:grid;grid-template-columns:80px 1fr;gap:9px;text-align:left;box-shadow:0 1px 3px rgba(31,36,48,.03)}.goods-image{width:80px;height:80px;border-radius:8px;object-fit:cover;background:#f0f1f4}.goods-image-fallback{display:flex;align-items:center;justify-content:center;color:#fff;font-size:27px;font-weight:700;background:linear-gradient(135deg,#9c3cff,#ff405f)}.goods-main{min-width:0;display:flex;flex-direction:column}.goods-name{font-weight:600;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.goods-docs{color:#9097a1;font-size:11px;line-height:1.45;height:31px;overflow:hidden;margin-top:4px}.goods-meta{display:flex;align-items:flex-end;justify-content:space-between;margin-top:auto}.goods-price{color:red;font-weight:600;font-size:14px}.goods-sales{border:1px solid #ff6b6b;color:#ff3b45;font-size:10px;padding:1px 3px}.list-end{text-align:center;color:#a4aab4;font-size:12px;padding:3px 0 14px}
.load-more-btn{min-width:128px;height:38px;padding:0 22px;border:1px solid #d9e3ff;border-radius:20px;background:#fff;color:#4e7cff;font-size:14px;font-weight:600;box-shadow:0 3px 10px rgba(78,124,255,.1)}.load-more-btn:active{transform:translateY(1px)}.feed-loading{display:inline-flex;align-items:center;min-height:38px}.goods-loading{display:flex;align-items:center;justify-content:center;gap:8px;min-height:130px;color:#8b93a1;font-size:13px}.goods-loading span{width:18px;height:18px;border:2px solid #dbe4ff;border-top-color:#4e7cff;border-radius:50%;animation:spin .8s linear infinite}
.tabbar{position:fixed;left:50%;bottom:0;transform:translateX(-50%);width:100%;max-width:750px;height:calc(55px + var(--safe-bottom));padding-bottom:var(--safe-bottom);background:#fff;border-top:1px solid #edf0f3;display:flex;z-index:30}@media(min-width:751px){.tabbar{max-width:560px}}.tab-item{flex:1;border:0;background:transparent;color:#4d5663;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;font-size:12px}.tab-icon{font-size:23px;line-height:25px}.tab-item.is-active{color:#2979ff}
.detail{padding-bottom:22px}.detail-cover{height:210px;background:#fff;display:flex;align-items:center;justify-content:center}.detail-cover img{width:100%;height:100%;object-fit:cover}.detail-body{margin:9px 8px;background:#fff;border-radius:8px;padding:14px}.detail-title{font-size:19px;font-weight:650;margin:0 0 7px}.detail-price{color:#f5222d;font-size:21px;font-weight:700}.detail-docs{margin-top:10px;color:#6f7782;font-size:13px;line-height:1.7;word-break:break-word}.form-card{margin:9px 8px;background:#fff;border-radius:8px;padding:14px}.section-title{font-size:16px;font-weight:650;margin:0 0 13px}.field{margin-bottom:12px}.field label{display:block;font-size:13px;color:#525964;margin-bottom:6px}.field input,.field select,.field textarea{display:block;width:100%;border:1px solid #e3e6eb;border-radius:7px;padding:11px 12px;outline:0;background:#fff}.field input:focus,.field select:focus{border-color:#2979ff;box-shadow:0 0 0 2px rgba(41,121,255,.1)}.primary-btn,.ghost-btn,.pay-btn{border:0;border-radius:7px;padding:11px 14px}.primary-btn{width:100%;background:#2979ff;color:#fff}.primary-btn[disabled]{opacity:.55}.ghost-btn{background:#eef4ff;color:#2979ff}.course-list{margin-top:12px}.course-row{display:flex;align-items:center;gap:9px;padding:10px 5px;border-top:1px solid #f0f1f3;font-size:13px}.course-row input{width:18px;height:18px}.order-bar{position:sticky;bottom:55px;background:#fff;border-top:1px solid #eee;padding:9px 12px;display:flex;align-items:center;justify-content:space-between;gap:8px}.total-price{color:#f5222d;font-weight:700}.order-bar .primary-btn{width:auto;min-width:110px}
.user-hero{background:linear-gradient(135deg,#ffb43b,#ff6a33);color:#fff;padding:28px 20px 24px}.avatar{width:58px;height:58px;border-radius:50%;background:rgba(255,255,255,.9);color:#ff7136;display:flex;align-items:center;justify-content:center;font-size:29px}.user-name{font-size:18px;font-weight:650;margin-top:9px}.user-money{font-size:13px;margin-top:4px;opacity:.9}.user-grid{margin:10px 8px;background:#fff;border-radius:9px;display:grid;grid-template-columns:repeat(3,1fr);padding:12px 0}.user-action{border:0;background:#fff;padding:12px 4px;color:#4b535e;font-size:12px}.user-action strong{display:block;font-size:22px;margin-bottom:5px}.login-card{margin:18px 10px;background:#fff;padding:20px;border-radius:10px}.login-card h2{margin:0 0 18px}.switch-link{border:0;background:transparent;color:#2979ff;padding:12px 0}
.modal-root{position:fixed;inset:0;background:rgba(0,0,0,.42);z-index:100;display:flex;align-items:center;justify-content:center;padding:24px}.modal-root[hidden]{display:none}.modal-card{width:100%;max-width:360px;max-height:80vh;overflow:auto;background:#fff;border-radius:12px;padding:20px}.modal-card h3{margin:0 0 13px}.modal-content{white-space:pre-wrap;line-height:1.65;color:#555;font-size:14px}.modal-actions{display:flex;gap:9px;margin-top:18px}.modal-actions button{flex:1}.pay-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:9px}.pay-btn{color:#fff}.pay-qq{background:#f5a623}.pay-wx{background:#23b26d}.pay-ali{background:#1677ff}.pay-card{background:#64748b}.pay-balance{background:#ef4444}
.toast{position:fixed;left:50%;top:45%;transform:translate(-50%,-50%);z-index:200;max-width:80%;padding:10px 15px;border-radius:7px;background:rgba(27,31,38,.88);color:#fff;font-size:13px;text-align:center}.toast[hidden]{display:none}
.empty{text-align:center;color:#a1a7b1;padding:55px 20px}.initial-loading{padding:42vh 0;text-align:center;color:#9097a1}.initial-loading span{display:inline-block;width:26px;height:26px;border:3px solid #e7eaf0;border-top-color:#2979ff;border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}

/* 分类页：按橘子模板移动端分类页面复刻 */
.app-shell.category-mode{max-width:750px;padding-bottom:calc(78px + env(safe-area-inset-bottom));background:#eef4ff;box-shadow:none}
@media(min-width:751px){.app-shell.category-mode{max-width:1120px}}
.category-mode .topbar{height:63px;border-bottom:0;position:relative;background:#fff}
.category-mode .topbar h1{font-size:20px;font-weight:700;color:#111}
.category-mode .view{min-height:calc(100vh - 63px);background:#eef4ff}
.category-page{min-height:calc(100vh - 63px);background:#eef4ff;color:#334155}
.category-hero{height:127px;padding:27px 19px 20px;background:#5682fb;border-radius:0 0 18px 18px;color:#fff;box-shadow:0 8px 18px rgba(73,111,235,.16);position:relative;overflow:hidden}
.category-hero h2{margin:0;font-size:21px;line-height:1.4;font-weight:700;letter-spacing:.2px}
.category-hero p{margin:10px 0 0;font-size:15px;line-height:1.4;color:rgba(255,255,255,.88)}
.category-body{display:grid;grid-template-columns:126px minmax(0,1fr);gap:13px;align-items:start;padding-top:18px}
.category-sidebar{background:#fff;border-radius:2px 0 0 0;overflow:hidden;min-height:calc(100vh - 208px)}
.category-side-item{width:100%;height:69px;padding:0 7px;border:0;border-bottom:1px dashed #e4e9f3;background:#fff;color:#556477;font-size:15px;line-height:1.2;text-align:center;white-space:normal}
.category-side-item.is-active{color:#3679f8;background:#eff2ff;font-weight:700}
.category-content{min-width:0;padding-right:13px}
.category-search-card{height:91px;padding:18px 24px 0;background:#fff;border-radius:11px;box-shadow:0 6px 16px rgba(75,111,208,.05)}
.category-search{height:46px;display:flex;align-items:center;gap:11px;padding:0 17px;border-radius:24px;background:#f6f7f9;color:#9da6b2}
.category-search .van-icon{font-size:24px;color:#9aa4af}
.category-search input{width:100%;min-width:0;border:0;outline:0;background:transparent;color:#475569;font-size:17px}
.category-search input::placeholder{color:#c5c9d0}
.category-search-dots{height:25px;display:flex;align-items:center;justify-content:center;gap:5px;color:#8fb2ff}
.category-search-dots span{display:block;width:4px;height:4px;border-radius:50%;background:#8fb2ff}
.category-search-dots b{display:block;width:35px;height:1px;background:#8fb2ff}
.category-count{height:63px;display:flex;align-items:center;justify-content:center;color:#7f8fa6;font-size:20px}
.category-goods{display:flex;flex-direction:column;gap:12px;padding-bottom:18px}
.category-goods-card{width:100%;height:135px;padding:13px 13px;border:0;border-left:1px solid #377cff;background:#fff;display:grid;grid-template-columns:103px minmax(0,1fr);gap:13px;text-align:left;clip-path:polygon(0 0,100% 0,100% calc(100% - 17px),calc(100% - 17px) 100%,0 100%);box-shadow:0 7px 18px rgba(67,107,201,.08)}
.category-goods-card img{width:103px;height:103px;border-radius:7px;object-fit:cover;background:#f2f4f7}
.category-goods-info{min-width:0;display:flex;flex-direction:column;padding-top:1px}
.category-goods-info strong{display:block;color:#20242b;font-size:16px;line-height:1.3;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.category-goods-docs{display:-webkit-box;margin-top:3px;color:#6f7886;font-size:13px;line-height:1.35;overflow:hidden;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.category-goods-bottom{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-top:auto;white-space:nowrap}
.category-goods-bottom b{color:#ff4051;font-size:18px;line-height:1.15;font-style:normal}
.category-goods-bottom em{padding:2px 5px;border:1px solid #1687ff;border-radius:2px;color:#1687ff;font-size:13px;line-height:1.2;font-style:normal}
.category-empty{padding:60px 10px;text-align:center;color:#94a3b8}
@media(max-width:420px){
  .category-body{grid-template-columns:94px minmax(0,1fr);gap:10px}.category-content{padding-right:9px}
  .category-side-item{height:62px;font-size:14px}.category-search-card{height:82px;padding:15px 16px 0}
  .category-search{height:42px;padding:0 13px}.category-search input{font-size:15px}.category-count{height:54px;font-size:18px}
  .category-goods-card{height:122px;padding:11px;grid-template-columns:88px minmax(0,1fr);gap:10px}.category-goods-card img{width:88px;height:88px}
  .category-goods-info strong{font-size:15px}.category-goods-docs{font-size:12px}.category-goods-bottom b{font-size:16px}.category-goods-bottom em{font-size:10px;padding:2px 3px}
}

/* 独立用户中心：与新模板共用轻量蓝白视觉，不依赖旧用户模板组件。 */
.user-center-page{padding:0 0 24px;background:#eef4ff;min-height:calc(100vh - 56px)}
.user-profile-band{padding:22px 18px 18px;background:linear-gradient(135deg,#4e7cff,#6b94ff);color:#fff;box-shadow:0 8px 22px rgba(78,124,255,.2)}
.user-profile-top{display:flex;align-items:center;gap:12px}.user-avatar{width:52px;height:52px;flex:none;display:flex;align-items:center;justify-content:center;border-radius:17px;background:rgba(255,255,255,.95);color:#4e7cff;font-size:25px;font-weight:750}.user-profile-copy{min-width:0;display:flex;flex:1;flex-direction:column;gap:5px}.user-profile-copy strong{font-size:19px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.user-profile-copy span{font-size:12px;opacity:.86;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.user-icon-btn,.user-balance-btn{border:1px solid rgba(255,255,255,.42);background:rgba(255,255,255,.14);color:#fff}.user-icon-btn{width:38px;height:38px;border-radius:50%;font-size:22px}.user-balance-line{display:flex;align-items:flex-end;gap:10px;margin-top:22px}.user-balance-line span{font-size:12px;opacity:.82}.user-balance-line strong{font-size:28px;line-height:1;font-weight:750}.user-balance-btn{margin-left:auto;padding:7px 14px;border-radius:18px;font-size:12px}
.user-panel-tabs{display:flex;gap:24px;padding:0 18px;background:#fff;border-bottom:1px solid #e6ebf5}.user-panel-tabs button{position:relative;border:0;background:transparent;color:#8a93a4;padding:15px 2px 13px;font-size:14px}.user-panel-tabs button.is-active{color:#2979ff;font-weight:700}.user-panel-tabs button.is-active:after{content:"";position:absolute;left:50%;bottom:-1px;width:24px;height:3px;border-radius:3px;background:#2979ff;transform:translateX(-50%)}
.user-action-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:14px 10px}.user-action-grid button{min-height:88px;padding:13px 12px;border:1px solid #e8edf7;border-radius:12px;background:#fff;text-align:left;box-shadow:0 5px 16px rgba(72,94,140,.06)}.user-action-grid strong,.user-action-grid small{display:block}.user-action-grid strong{margin-top:8px;color:#27334d;font-size:14px}.user-action-grid small{margin-top:5px;color:#9aa3b2;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.user-action-icon{display:flex!important;width:30px;height:30px;align-items:center;justify-content:center;border-radius:9px;color:#fff!important;font-size:17px!important;font-weight:700}.user-action-icon.blue{background:#4e7cff}.user-action-icon.violet{background:#8574e8}.user-action-icon.amber{background:#f4ad3f}.user-action-icon.green{background:#4ebc88}
.user-section{margin:0 10px 12px;padding:16px 14px;border:1px solid #e8edf7;border-radius:12px;background:#fff;box-shadow:0 5px 18px rgba(72,94,140,.055)}.user-section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.user-section-heading h2{margin:3px 0 0;color:#1d2a43;font-size:17px;line-height:1.2}.user-eyebrow{color:#9ba6b7;font-size:10px;font-weight:750;letter-spacing:1px}.user-level-pill,.user-count{flex:none;padding:5px 9px;border-radius:14px;background:#eef4ff;color:#4e7cff;font-size:11px}.user-stat-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.user-stat-grid div{min-width:0;padding:12px 9px;background:#f7f9fd;border-radius:9px}.user-stat-grid span,.user-stat-grid strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.user-stat-grid span{color:#9aa3b2;font-size:11px}.user-stat-grid strong{margin-top:6px;color:#34425e;font-size:13px}.user-text-btn{border:0;background:transparent;color:#2979ff;padding:5px 0;font-size:12px}.user-order-list{display:flex;flex-direction:column}.user-order-row{width:100%;display:flex;align-items:center;gap:12px;padding:13px 0;border:0;border-top:1px solid #f0f2f6;background:transparent;text-align:left}.user-order-row:first-child{border-top:0}.user-order-main{min-width:0;display:flex;flex:1;flex-direction:column;gap:6px}.user-order-main strong{color:#34425e;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.user-order-main small{color:#a0a8b5;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.user-order-side{display:flex;flex:none;align-items:flex-end;flex-direction:column;gap:6px}.user-order-side>strong{color:#f05252;font-size:13px}.user-status{display:inline-flex;padding:3px 7px;border-radius:10px;font-size:10px;font-weight:600;white-space:nowrap}.user-status.success{background:#eaf8f0;color:#2eaa69}.user-status.pending{background:#fff5df;color:#c38a28}.user-status.danger{background:#fff0f0;color:#e25c5c}.user-loading,.user-empty{padding:26px 10px;text-align:center;color:#9aa3b2;font-size:12px}.user-empty strong,.user-empty span{display:block}.user-empty strong{color:#59657a;font-size:13px}.user-empty span{margin-top:6px}.user-empty .user-text-btn{margin-top:6px}
.user-order-tools{display:flex;gap:8px;margin-bottom:8px}.user-order-tools label{height:36px;display:flex;align-items:center;gap:7px;flex:1;padding:0 11px;border:1px solid #e5eaf3;border-radius:8px;background:#f8faff;color:#a2aabd}.user-order-tools input{width:100%;min-width:0;border:0;outline:0;background:transparent;color:#33405a;font-size:12px}.user-refresh-btn{width:34px;height:34px;border:1px solid #e1e8f7;border-radius:50%;background:#f4f7ff;color:#4e7cff;font-size:18px}.user-pager{display:flex;align-items:center;justify-content:center;gap:10px;padding-top:13px;color:#98a1b0;font-size:11px}.user-pager button{border:0;background:transparent;color:#4e7cff;font-size:11px}.user-pager button:disabled{color:#c7cdd8;cursor:not-allowed}
.funds-amount{display:flex;align-items:center;justify-content:space-between;padding:13px 14px;margin-bottom:12px;border-radius:10px;background:#f4f7ff}.funds-amount span{color:#7d8799;font-size:12px}.funds-amount strong{color:#2d477f;font-size:22px}.funds-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.user-form-block{padding:14px;border:1px solid #edf0f5;border-radius:10px;background:#fbfcff}.user-form-title{display:flex;flex-direction:column;gap:4px;margin-bottom:12px}.user-form-title strong{color:#30405e;font-size:14px}.user-form-title span,.user-form-note{color:#9aa3b2;font-size:11px}.user-input-label{display:block;margin-bottom:10px;color:#778196;font-size:12px}.user-input-label input,.user-input-label select,.user-input-label textarea{display:block;width:100%;min-height:38px;margin-top:6px;padding:9px 10px;border:1px solid #e1e7f0;border-radius:7px;outline:0;background:#fff;color:#34425e;font-size:13px}.user-input-label textarea{min-height:88px;resize:vertical}.user-input-label input:focus,.user-input-label select:focus,.user-input-label textarea:focus{border-color:#4e7cff;box-shadow:0 0 0 2px rgba(78,124,255,.1)}.quick-amounts{display:flex;flex-wrap:wrap;gap:5px;margin:-2px 0 10px}.quick-amounts button{padding:5px 8px;border:1px solid #dfe7fa;border-radius:6px;background:#fff;color:#4e7cff;font-size:11px}.user-primary-btn,.user-secondary-btn{width:100%;min-height:37px;padding:8px 12px;border-radius:7px;font-size:12px;font-weight:650}.user-primary-btn{border:0;background:#4e7cff;color:#fff;box-shadow:0 4px 10px rgba(78,124,255,.2)}.user-secondary-btn{border:1px solid #dce6fb;background:#f4f7ff;color:#4e7cff}.user-secondary-btn.compact{width:auto;min-height:30px;padding:5px 10px}.user-primary-btn:disabled,.user-secondary-btn:disabled{opacity:.55}.history-heading{margin:18px 0 10px;padding:0;border:0;box-shadow:none}.recharge-history{display:flex;flex-direction:column}.recharge-row{display:flex;align-items:center;gap:9px;padding:12px 0;border-top:1px solid #f0f2f6}.recharge-row>span{min-width:0;display:flex;flex:1;flex-direction:column;gap:4px}.recharge-row strong{color:#34425e;font-size:12px}.recharge-row small{color:#a0a8b5;font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.recharge-row>strong{color:#f05252;white-space:nowrap}.recharge-tip{margin:0 0 10px;padding:9px 10px;border-radius:7px;background:#fff7e7;color:#c38a28;font-size:11px}.settings-list{border-top:1px solid #f0f2f6}.settings-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 0;border-bottom:1px solid #f0f2f6}.settings-row>span{min-width:0;display:flex;flex-direction:column;gap:5px}.settings-row strong{color:#34425e;font-size:13px}.settings-row small{color:#a0a8b5;font-size:11px}.settings-row>b{max-width:52%;overflow:hidden;color:#69758a;font-size:12px;text-align:right;text-overflow:ellipsis;white-space:nowrap}.settings-key-row>div{display:flex;align-items:center;gap:7px}.user-danger-text{border:0;background:transparent;color:#e25c5c;font-size:11px}.settings-block{display:block}.settings-block textarea{margin:10px 0 8px}.settings-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:14px}.settings-action{min-height:70px;padding:11px;text-align:left;border:1px solid #edf0f5;border-radius:9px;background:#fbfcff}.settings-action span{color:#4e7cff;font-size:18px}.settings-action strong,.settings-action small{display:block}.settings-action strong{margin-top:5px;color:#34425e;font-size:12px}.settings-action small{margin-top:3px;color:#a0a8b5;font-size:10px}.subsite-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 10px}.subsite-form .user-input-label:nth-child(3),.subsite-form .user-primary-btn,.subsite-form .user-form-note{grid-column:1/-1}.subsite-locked{padding:8px 0}.subsite-locked strong,.subsite-locked span{display:block}.subsite-locked strong{color:#34425e;font-size:14px}.subsite-locked span{margin:7px 0 13px;color:#9aa3b2;font-size:12px}.subsite-locked .user-primary-btn{max-width:160px}.user-modal-card{max-width:430px}.user-modal-hint{margin:-3px 0 14px;color:#98a1b0;font-size:12px;line-height:1.6}.upgrade-options{display:flex;flex-direction:column;gap:8px}.upgrade-option{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px;border:1px solid #e4eaf5;border-radius:9px;background:#fbfcff;text-align:left}.upgrade-option:not(:disabled):hover{border-color:#4e7cff;background:#f4f7ff}.upgrade-option.is-disabled{opacity:.5;cursor:not-allowed}.upgrade-option span{display:flex;flex-direction:column;gap:4px}.upgrade-option strong{color:#34425e;font-size:13px}.upgrade-option small{color:#9aa3b2;font-size:11px}.upgrade-option>b{color:#f05252;font-size:13px;white-space:nowrap}
@media(min-width:751px){.user-center-page{max-width:920px;margin:0 auto;padding-bottom:48px}.user-profile-band{margin:0 -8px;border-radius:0 0 18px 18px;padding:28px 30px 24px}.user-panel-tabs{margin:0 -8px;padding-left:30px;gap:34px}.user-action-grid{grid-template-columns:repeat(4,minmax(0,1fr));padding:18px 0}.user-section{margin-left:0;margin-right:0;padding:20px}.user-profile-copy strong{font-size:21px}.funds-grid{gap:16px}}
@media(max-width:540px){.funds-grid{grid-template-columns:1fr}.subsite-form{grid-template-columns:1fr}.subsite-form .user-input-label:nth-child(3),.subsite-form .user-primary-btn,.subsite-form .user-form-note{grid-column:auto}}
.funds-grid.has-withdrawal{grid-template-columns:repeat(3,minmax(0,1fr))}.withdraw-account-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.withdraw-qr-field{margin-bottom:10px}.withdraw-upload{width:100%;min-height:38px;border:1px dashed #9eb7ef;border-radius:8px;background:#f5f8ff;color:#4672dd;font-size:12px;font-weight:650}.withdraw-upload:disabled{opacity:.55}.withdraw-qr-preview{display:flex;align-items:center;justify-content:center;min-height:64px;margin-top:8px;padding:9px;border:1px solid #edf0f5;border-radius:8px;background:#fff;color:#a0a8b5;font-size:11px;text-align:center}.withdraw-qr-preview.has-image{justify-content:flex-start;gap:10px;text-align:left}.withdraw-qr-preview img{width:58px;height:58px;flex:none;border-radius:7px;object-fit:cover}.withdraw-qr-field>small{display:block;margin-top:6px;color:#a0a8b5;font-size:10px}.withdraw-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:-2px 0 9px;padding:9px 10px;border-radius:7px;background:#f4f7ff;color:#748099;font-size:11px}.withdraw-summary b{color:#53627c}.withdraw-summary strong{color:#2d477f;font-size:13px}.withdrawal-heading{margin-top:18px}.withdrawal-row-meta{display:flex!important;flex:0 0 auto!important;align-items:flex-end!important;gap:4px!important}.withdrawal-row-meta>b{color:#e25c5c;font-size:12px}.withdraw-status{padding:2px 6px;border-radius:999px;font-size:10px;font-style:normal}.withdraw-status.pending{background:#fff4dc;color:#bd8120}.withdraw-status.approved{background:#e8f8ef;color:#248a52}.withdraw-status.rejected{background:#ffeded;color:#ca4545}
@media(max-width:900px){.funds-grid.has-withdrawal{grid-template-columns:repeat(2,minmax(0,1fr))}.funds-grid.has-withdrawal .withdrawal-form{grid-column:1/-1}}
@media(max-width:620px){.funds-grid.has-withdrawal{grid-template-columns:1fr}.funds-grid.has-withdrawal .withdrawal-form{grid-column:auto}.withdraw-account-grid{grid-template-columns:1fr}}

@media(min-width:751px){
  .category-body{grid-template-columns:190px minmax(0,1fr);gap:22px;padding:24px 28px 0}
  .category-sidebar{min-height:calc(100vh - 250px)}
  .category-side-item{height:64px;font-size:15px}
  .category-content{padding-right:0}
  .category-goods{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
  .category-goods-card{height:150px;grid-template-columns:118px minmax(0,1fr);padding:16px;gap:15px}
  .category-goods-card img{width:118px;height:118px}
  .category-goods-info strong{font-size:17px}
  .category-goods-docs{font-size:14px}
}

.message-page{padding:18px 10px 24px}.message-heading{padding:20px 18px;background:linear-gradient(135deg,#edf3ff,#fff);border-radius:16px;margin-bottom:14px}.message-heading h2{margin:0;color:#253858;font-size:21px}.message-heading p{margin:7px 0 0;color:#7b8aa3;font-size:13px}.message-list{display:grid;gap:10px}.message-item{display:flex;align-items:flex-start;gap:11px;width:100%;padding:14px;border:1px solid #edf0f6;border-radius:14px;background:#fff;text-align:left;box-shadow:0 5px 18px rgba(75,111,208,.06)}.message-icon{flex:0 0 30px;color:#4e7cff;font-size:22px;line-height:1}.message-content{display:flex;flex:1;min-width:0;flex-direction:column;gap:4px}.message-content strong{font-size:15px;color:#26364f}.message-content small{font-size:11px;color:#9aa5b6}.message-content span{display:-webkit-box;overflow:hidden;color:#66758c;font-size:13px;line-height:1.45;-webkit-line-clamp:2;-webkit-box-orient:vertical}.message-item.is-unread{border-color:#cbd9ff;background:#fbfcff}.message-item.is-unread .message-icon{color:#ff7b3d}.message-empty{text-align:center;padding:56px 20px;color:#9aa5b6}.message-empty strong,.message-empty span{display:block}.message-empty strong{margin-bottom:7px;color:#6f7f99;font-size:16px}.message-empty-icon{margin-bottom:9px;color:#aebddd;font-size:32px}

/* Cloud template dimensions: the independent shell follows the same fluid viewport
   rules on phones and desktop instead of constraining content to a centered card. */
html,body{min-height:100%;background:#f5f5f5;color:#303133;font-size:14px;line-height:22px;overflow-x:hidden}
body{font-family:-apple-system,BlinkMacSystemFont,"Helvetica Neue",Helvetica,"Segoe UI",Arial,Roboto,"PingFang SC",miui,"Hiragino Sans GB","Microsoft Yahei",sans-serif;overflow-y:auto}
.app-shell{width:100%;max-width:none;min-height:100vh;margin:0;padding:0;background:linear-gradient(135deg,#f0f5ff,#e8f0ff);box-shadow:none}
.topbar{position:fixed;top:0;left:0;right:0;z-index:50;height:44px;background:#f8f8f8;border-bottom:0;padding:7px 3px;box-sizing:border-box}
.topbar h1{font-size:16px;line-height:30px;font-weight:500;color:#303133}
.icon-button{width:38px;height:30px;font-size:26px;line-height:30px;color:#333}
.view{min-height:100vh;padding:44px 0 80px;overflow:visible}
.page{min-height:calc(100vh - 44px);animation:page-in .18s ease both}
.home-page{padding:10px 10px 80px;background:linear-gradient(135deg,#f0f5ff,#e8f0ff)}
.home-page .notice{margin:0 0 10px;width:100%;min-height:44px;padding:10px 12px;border-radius:10px;background:#fff9eb;font-size:13px;line-height:22px}
.home-page .search-wrap{height:54px;margin:0 0 10px;padding:0;background:transparent}
.home-page .search-box{height:54px;padding:10px 12px;border-radius:15px;background:#fff;box-shadow:0 2px 6px rgba(78,124,255,.1);gap:8px}
.home-page .search-box>span{font-size:20px;color:#9aa4af;line-height:24px}
.home-page .search-box input{font-size:13.33px;line-height:24px}
.home-page .category-strip{display:none}
.home-page .goods-count{height:22px;margin:15px 0;font-size:15px;line-height:22px;color:#82848a;padding:0}
.home-page .goods-list{padding:5px 0}
.home-page .goods-card{display:grid;width:100%;min-height:104px;margin:0 0 10px;padding:10px;grid-template-columns:83px minmax(0,1fr);gap:10px;border:0;border-left:3px solid #4e7cff;border-radius:10px;background:#fff;box-shadow:0 2px 6px rgba(78,124,255,.08)}
.home-page .goods-card:nth-child(even){border-left-color:#6b94ff}
.goods-image-container{display:block;width:83px;height:83px;overflow:hidden;border-radius:7px;background:#f5f5f5;box-shadow:0 2px 4px rgba(0,0,0,.1)}
.home-page .goods-image{width:83px;height:83px;border-radius:7px;object-fit:cover;background:#f5f5f5}
.home-page .goods-main{padding-left:0;overflow:hidden}
.home-page .goods-name{display:-webkit-box;margin:0 0 5px;color:#303133;font-size:15px;line-height:21px;font-weight:700;white-space:normal;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.home-page .goods-docs{height:35px;margin:0 0 5px;color:#82848a;font-size:12px;line-height:15px}
.home-page .goods-meta{margin-top:auto;align-items:center}
.home-page .goods-price{color:#ff4757;font-size:15px;line-height:22px;font-weight:700}
.home-page .goods-sales{padding:0 4px;border:1px solid #1989fa;border-radius:2px;color:#1989fa;background:#fff;font-size:11px;line-height:16px}
.home-page .list-end{padding:3px 0 14px;color:#9299a6;font-size:12px}

/* Category page: fixed 44px header, 100px blue heading and full-width split pane. */
.app-shell.category-mode{width:100%;max-width:none;padding:0;background:linear-gradient(135deg,#f0f5ff,#e8f0ff);box-shadow:none}
.category-mode .view{min-height:100vh;padding:44px 0 80px;background:linear-gradient(135deg,#f0f5ff,#e8f0ff)}
.category-mode .page{min-height:calc(100vh - 44px)}
.category-hero{height:100px;padding:20px 15px 30px;border-radius:0 0 15px 15px;background:linear-gradient(135deg,#4e7cff,#6b94ff);box-shadow:0 2px 6px rgba(78,124,255,.2);box-sizing:border-box}
.category-mode .topbar{height:44px;background:#f8f8f8;border-bottom:0;position:fixed;padding:7px 3px}.category-mode .topbar h1{font-size:16px;line-height:30px;font-weight:500;color:#303133}
.category-hero h2{margin:0;color:#fff;font-size:18px;line-height:22px;font-weight:700}
.category-hero p{margin:5px 0 0;color:rgba(255,255,255,.9);font-size:12px;line-height:22px}
.category-body{display:flex;align-items:stretch;gap:0;height:calc(100vh - 156px);min-height:500px;margin-top:12px;padding:0}
.category-sidebar{flex:0 0 105px;width:105px;min-height:100%;overflow:hidden;border:1px solid rgba(78,124,255,.15);border-radius:8px 0 0 8px;background:#fff;box-shadow:0 2px 12px rgba(100,120,255,.08)}
.category-side-item{width:100%;min-height:52.7px;height:auto;padding:15px 10px;border:0;border-bottom:1px dashed rgba(78,124,255,.1);background:transparent;color:#5a6c7d;font-size:14px;line-height:22px;text-align:center;white-space:normal}
.category-side-item.is-active{color:#4e7cff;background:linear-gradient(135deg,rgba(78,124,255,.1),rgba(107,148,255,.08));font-weight:700;position:relative}
.category-side-item.is-active:after{content:"";position:absolute;right:0;top:50%;width:3px;height:20px;border-radius:2px;background:#4e7cff;transform:translateY(-50%)}
.category-content{flex:1;min-width:0;overflow:visible;padding:10px;background:transparent}
.category-search-card{height:73.33px;margin:0 0 15px;padding:5.67px 7.67px;border:1px solid rgba(78,124,255,.15);border-radius:8px;background:#fff;box-shadow:0 2px 12px rgba(100,120,255,.08);box-sizing:border-box}
.category-search{height:54px;padding:10px 12px;border-radius:15px;background:#fff;box-shadow:0 2px 6px rgba(78,124,255,.1);gap:8px;box-sizing:border-box}
.category-search .van-icon{font-size:20px;color:#9aa4af}
.category-search input{font-size:13.33px;line-height:24px;color:#323233}
.category-search-dots{display:none}
.category-content .category-count{height:22px;margin:0 0 10px;padding:0;color:#82848a;font-size:15px;line-height:22px;text-align:center}
.category-goods{display:flex;flex-direction:column;gap:0;padding:5px 0}
.category-goods-card{display:grid;width:100%;min-height:126.2px;height:126.2px;margin:0 0 10px;padding:12px;grid-template-columns:83px minmax(0,1fr);gap:10px;border:0;border-left:2px solid #4e7cff;border-radius:8px;background:#fff;box-shadow:0 2px 12px rgba(100,120,255,.08);clip-path:none;box-sizing:border-box}
.category-goods-card:nth-child(even){border-left-color:#6b94ff}
.category-goods-card img{width:83px;height:83px;border-radius:7px;object-fit:cover;background:#f5f5f5;box-shadow:0 2px 4px rgba(0,0,0,.1)}
.category-goods-info{padding-left:0;overflow:hidden}
.category-goods-info strong{display:-webkit-box;margin:0 0 5px;color:#303133;font-size:15px;line-height:21px;font-weight:700;white-space:normal;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.category-goods-docs{height:35px;margin:0 0 5px;color:#82848a;font-size:12px;line-height:15px;-webkit-line-clamp:2}
.category-goods-bottom{margin-top:auto}
.category-goods-bottom b{color:#ff4757;font-size:15px;line-height:22px;font-weight:700}
.category-goods-bottom em{padding:0 4px;border:1px solid #1989fa;border-radius:2px;color:#1989fa;font-size:11px;line-height:16px;background:#fff}
.category-empty{padding:55px 10px;color:#9299a6;font-size:14px}

/* Product detail follows the cloud card/form/submit-bar proportions. */
.app-shell.detail-mode .view{padding-bottom:60px}
.detail{min-height:calc(100vh - 44px);padding:15px;background:linear-gradient(135deg,#f0f5ff,#e8f0ff)}
.detail-card{margin:0 0 15px;padding:10px;border-radius:8px;background:#fff;box-shadow:0 2px 12px rgba(78,124,255,.08);box-sizing:border-box}
.detail-header{display:flex;min-height:93px}.detail-image{flex:0 0 93px;width:93px;height:93px;border-radius:8px;object-fit:cover;background:#f5f5f5;box-shadow:0 2px 4px rgba(0,0,0,.1)}.detail-info{display:flex;flex:1;min-width:0;flex-direction:column;padding-left:10px}.detail-info .detail-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.detail-info .detail-price{margin-top:auto}.detail-sales{align-self:flex-end;margin-top:auto;padding:0 4px;border:1px solid #1989fa;border-radius:2px;color:#1989fa;background:#fff;font-size:11px;line-height:16px}
.detail-card .detail-docs{margin:10px 0 0;padding:10px 0 0;border-top:1px dashed rgba(78,124,255,.2);color:#505050;font-size:13px;line-height:22px}
.detail-cover{height:93px;margin:0 0 15px;padding:10px;border-radius:8px;background:#fff;box-shadow:0 2px 12px rgba(78,124,255,.08);display:flex;align-items:center;justify-content:flex-start}
.detail-cover img{width:93px;height:93px;border-radius:8px;object-fit:cover}
.detail-body{position:absolute;margin:0;padding:10px 10px 10px 118px;left:25px;right:25px;top:69px;height:93px;box-sizing:border-box;background:transparent}
.detail-title{margin:0 0 5px;color:#333;font-size:16px;line-height:22px;font-weight:700}
.detail-price{margin-top:43px;color:#ff4757;font-size:18px;line-height:22px;font-weight:700}
.detail-docs{margin:10px 0 15px;padding:10px;border-top:1px dashed rgba(78,124,255,.2);color:#505050;font-size:13px;line-height:22px}
.form-card{margin:0 0 62px;padding:10px;border-radius:8px;background:#fff;box-shadow:0 2px 12px rgba(78,124,255,.08)}
.section-title{margin:0 0 10px;color:#4e7cff;font-size:14px;line-height:22px;font-weight:700}
.field{margin-bottom:0}.field label{font-size:14px;line-height:24px}.field input,.field select,.field textarea{padding:7px 10px;border:0;border-bottom:1px solid #ebedf0;border-radius:0;font-size:13.33px;line-height:24px}
.form-card .primary-btn{height:41px;padding:5px 12px;border-radius:41px;font-size:14px;font-weight:700;background:linear-gradient(135deg,#4e7cff,#6b94ff);box-shadow:0 3px 9px rgba(78,124,255,.3)}
.course-list{margin-top:10px}.course-row{padding:8px 5px;font-size:13px}
.order-bar{position:fixed;left:0;right:0;bottom:0;z-index:45;height:50px;margin:0;padding:0 16px;border:0;border-radius:15px 15px 0 0;background:#fff;box-shadow:0 -2px 8px rgba(78,124,255,.15)}
.order-bar .primary-btn{height:40px;min-width:110px;border-radius:41px;background:linear-gradient(135deg,#4e7cff,#6b94ff)}
.total-price{font-size:20px;color:#ee0a24}

/* Cloud login page. It is intentionally separate from the five-item navigation. */
.app-shell.login-mode{background:linear-gradient(135deg,#f0f5ff,#e8f0ff)}
.login-mode .view{padding:44px 0 0;background:linear-gradient(135deg,#f0f5ff,#e8f0ff)}
.login-mode .page{min-height:100vh}
.login-container{position:relative;display:flex;flex-direction:column;min-height:calc(100vh - 44px);overflow:hidden;background:linear-gradient(135deg,#f0f5ff,#e8f0ff);font-size:14px;line-height:22px}
.login-container .top-decoration{position:absolute;inset:0 0 auto;height:400%;overflow:hidden;z-index:0;pointer-events:none}
.deco-circle{position:absolute;border-radius:50%;background:radial-gradient(circle,rgba(78,124,255,.15),transparent 70%);animation:login-float 6s ease-in-out infinite}
.deco-circle-1{width:300px;height:300px;top:-150px;left:-100px;background:radial-gradient(circle,rgba(78,124,255,.2),transparent 70%)}.deco-circle-2{width:200px;height:200px;top:-50px;right:-100px;background:radial-gradient(circle,rgba(107,148,255,.15),transparent 70%);animation-delay:1s}.deco-circle-3{width:150px;height:150px;top:150px;right:-50px;background:radial-gradient(circle,rgba(78,124,255,.1),transparent 70%);animation-delay:2s}.deco-circle-4{width:180px;height:180px;top:50px;left:30%;background:radial-gradient(circle,rgba(107,148,255,.12),transparent 70%);animation-delay:1.5s}
@keyframes login-float{0%,100%{transform:translateY(0) scale(1);opacity:.8}50%{transform:translateY(-30px) scale(1.1);opacity:1}}
.login-header{position:relative;z-index:1;display:flex;flex:0 0 246px;flex-direction:column;align-items:center;height:246px;padding:52px 0 31px;box-sizing:border-box}
.logo-wrapper{position:relative;width:93px;height:93px;margin-bottom:20px;display:flex;align-items:center;justify-content:center}.logo-circle{position:relative;z-index:2;width:93px;height:93px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#4e7cff,#6b94ff);box-shadow:0 8px 24px rgba(78,124,255,.4);animation:logo-pulse 3s ease-in-out infinite}.logo-icon{font-size:37px;line-height:1}.logo-glow{position:absolute;z-index:1;width:114px;height:114px;border-radius:50%;background:radial-gradient(circle,rgba(78,124,255,.3),transparent 70%);animation:logo-glow 3s ease-in-out infinite}
@keyframes logo-pulse{0%,100%{transform:scale(1)}50%{transform:scale(1.05)}}@keyframes logo-glow{0%,100%{transform:scale(1);opacity:.5}50%{transform:scale(1.15);opacity:.8}}
.title-wrapper{display:flex;flex-direction:column;align-items:center;gap:0}.login-header .title{color:#2c3e50;font-size:27px;line-height:22px;font-weight:700;letter-spacing:1px;text-shadow:0 2px 8px rgba(0,0,0,.08)}.login-header .subtitle{color:#8492a6;font-size:13px;line-height:22px;letter-spacing:2px}
.login-form-card{position:relative;z-index:1;margin:0 24px 52px;padding:24px 20px;border:1px solid rgba(255,255,255,.6);border-radius:16px;background:rgba(255,255,255,.75);backdrop-filter:blur(20px) saturate(180%);-webkit-backdrop-filter:blur(20px) saturate(180%);box-shadow:0 8px 24px rgba(78,124,255,.15),0 2px 8px rgba(0,0,0,.08),inset 0 1px 0 rgba(255,255,255,.8);box-sizing:border-box;animation:card-slide-up .6s cubic-bezier(.34,1.56,.64,1)}
@keyframes card-slide-up{from{transform:translateY(100px);opacity:0}to{transform:none;opacity:1}}
.form-header{position:relative;display:flex;flex-direction:column;align-items:center;margin-bottom:20px}.form-title{margin:0 0 4px;color:#2c3e50;font-size:20px;line-height:22px;font-weight:700}.form-subtitle{color:#8492a6;font-size:11px;line-height:22px;letter-spacing:1px;text-transform:uppercase}.form-header:after{content:"";position:absolute;bottom:-10px;left:50%;width:41px;height:3px;border-radius:3px;background:linear-gradient(90deg,#4e7cff,#6b94ff);box-shadow:0 2px 8px rgba(78,124,255,.3);transform:translateX(-50%)}
.form-body{position:relative}.form-group{margin:0 16px 16px;overflow:hidden;border-radius:10px;background:#fff;box-shadow:0 2px 6px rgba(100,120,255,.08)}.login-field{display:flex;align-items:center;min-height:44px;padding:10px 16px;background:#fff;box-sizing:border-box;border-bottom:1px solid #f1f2f4}.login-field:last-child{border-bottom:0}.login-field-icon{flex:0 0 22px;color:#555;font-size:13px;text-align:left}.login-field label{flex:0 0 50px;margin-right:12px;color:#646566;font-size:14px;line-height:24px}.login-field input{min-width:0;flex:1;height:24px;padding:0;border:0;outline:0;background:transparent;color:#323233;font-size:13.33px;line-height:24px}.login-field input::placeholder{color:#c8c9cc}.captcha-field{min-height:44px}.captcha-container{display:flex;flex:0 0 94px;align-items:center;justify-content:center;width:94px;height:36px;margin-left:6px;padding:0;overflow:hidden;border:1px solid #e8ecf4;border-radius:6px;background:#f8f9fa;cursor:pointer}.captcha-img{display:block;width:93px;height:35px;object-fit:cover}.login-error{margin:0 0 12px;padding:8px 12px;border:1px solid rgba(244,67,54,.2);border-radius:8px;color:#f44336;background:rgba(244,67,54,.08);font-size:12px;line-height:18px}.login-error[hidden]{display:none}.btn-container{margin:16px 0}.login-btn{display:flex;align-items:center;justify-content:center;width:100%;height:49px;padding:0 12px;border:0;border-radius:12px;color:#fff;background:linear-gradient(135deg,#4e7cff,#6b94ff);box-shadow:0 4px 12px rgba(78,124,255,.35);font-size:14px;line-height:22px}.btn-content{display:flex;align-items:center;justify-content:center;gap:4px;font-size:16px;line-height:22px;font-weight:700}.btn-icon{font-size:16px}.btn-text{font-size:16px;font-weight:700}.login-options{display:flex;align-items:center;justify-content:space-around;margin-top:16px;padding:12px 0 0;border-top:1px solid rgba(228,236,244,.5)}.option-item{display:flex;flex-direction:column;align-items:center;gap:4px;padding:6px 10px;border:0;border-radius:8px;background:transparent;color:#4e7cff;cursor:pointer}.option-icon{font-size:14px;line-height:18px}.option-text{color:#4e7cff;font-size:11px;line-height:22px;font-weight:500}.option-divider{width:1px;height:20px;background:rgba(132,146,166,.2)}
.bottom-decoration{position:fixed;right:0;bottom:0;left:0;z-index:0;height:93px;overflow:hidden;pointer-events:none}.wave{position:absolute;bottom:0;left:0;width:200%;height:100%;background-repeat:repeat-x;background-position:0 bottom;background-size:50% 100%}.wave1{opacity:1;background-image:linear-gradient(180deg,transparent 30%,rgba(78,124,255,.15));clip-path:polygon(0 58%,12% 53%,25% 55%,37% 64%,50% 58%,63% 42%,75% 47%,88% 36%,100% 31%,100% 100%,0 100%);animation:login-wave 25s linear infinite}.wave2{opacity:.6;background-image:linear-gradient(180deg,transparent 20%,rgba(107,148,255,.1));clip-path:polygon(0 48%,14% 63%,28% 55%,42% 35%,56% 28%,70% 48%,84% 48%,100% 30%,100% 100%,0 100%);animation:login-wave 20s linear infinite reverse}.wave3{opacity:.4;background-image:linear-gradient(180deg,transparent 10%,rgba(78,124,255,.08));clip-path:polygon(0 30%,16% 45%,31% 50%,46% 35%,61% 40%,77% 32%,91% 40%,100% 35%,100% 100%,0 100%);animation:login-wave 30s linear infinite}@keyframes login-wave{from{transform:translateX(0)}to{transform:translateX(-50%)}}
.floating-elements{position:fixed;inset:0;z-index:0;pointer-events:none;overflow:hidden}.float-dot{position:absolute;color:#4e7cff;font-size:20px;opacity:.3;animation:float-dot 8s ease-in-out infinite}.float-dot-1{top:20%;left:10%}.float-dot-2{top:40%;right:15%;animation-delay:2s}.float-dot-3{top:60%;left:20%;animation-delay:4s}.float-dot-4{top:75%;right:25%;animation-delay:6s}@keyframes float-dot{0%,100%{transform:translateY(0) rotate(0);opacity:.3}50%{transform:translateY(-30px) rotate(180deg);opacity:.7}}
.login-mode #tabbar,.detail-mode #tabbar{display:none!important}.tabbar[hidden]{display:none!important}

@media(min-width:751px){
  .category-sidebar{flex-basis:101px;width:101px}.category-goods-card{height:126.2px}.category-content{padding:10px}.category-body{height:calc(100vh - 155px);margin-top:11px}
  .home-page .goods-card{width:100%}.login-header{flex-basis:240px;height:240px;padding:50px 0 30px}.login-container{min-height:calc(100vh - 44px)}
}
@media(max-width:420px){.category-sidebar{flex-basis:105px;width:105px}.category-body{height:calc(100vh - 156px);min-height:500px}.category-content{padding:10px}.category-side-item{min-height:52.7px}.detail{padding:15px}}

/* The tabbar stylesheet is shared with the standalone progress takeover. */
html body .tabbar:not(.cq-nav){width:312px;height:52px;bottom:calc(15px + var(--safe-bottom));max-width:calc(100vw - 30px);padding:0;border:1px solid rgba(255,255,255,.6);border-radius:26px;background:rgba(255,255,255,.75);box-shadow:0 8px 33px rgba(0,0,0,.1),0 2px 8px rgba(0,0,0,.05),inset 0 1px 0 rgba(255,255,255,.8);backdrop-filter:blur(20px) saturate(180%);-webkit-backdrop-filter:blur(20px) saturate(180%)}
html body .tabbar:not(.cq-nav) .tab-item{font-size:12px;line-height:12px}.tab-item .tab-icon{font-size:22px;line-height:22px;margin-bottom:4px}
@media(min-width:751px){html body .tabbar:not(.cq-nav){width:300px;height:50px;border-radius:25px}}

/* Final responsive contract: one viewport-wide shell and isolated category panes. */
html,body{width:100%;max-width:none;margin:0}
.app-shell{width:100vw;max-width:none}
html.category-route,body.category-route{height:100%;overflow:hidden}
body.category-route #app{width:100vw;height:100vh;overflow:hidden}
.category-route #view{width:100vw;height:100vh;min-height:0;overflow:hidden;padding:44px 0 0}
.category-route .category-page{height:100%;min-height:0;overflow:hidden}
.category-route .category-body{height:calc(100vh - 156px);min-height:0;margin-top:12px;overflow:hidden}
.category-route .category-sidebar,.category-route .category-content{height:100%;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
.category-route .category-sidebar{-webkit-overflow-scrolling:touch}
.category-route .category-content{-webkit-overflow-scrolling:touch;padding-bottom:80px}
.category-route .category-goods-card{font-size:14px}
.category-route .category-goods-info strong{font-size:15px;line-height:21px}
.category-route .category-goods-docs{font-size:12px;line-height:15px}
.category-route .category-goods-bottom b{font-size:15px;line-height:22px}
.category-route .category-goods-bottom em{font-size:11px;line-height:16px}
.category-route .category-side-item{font-size:14px;line-height:22px}
.category-route .category-search input{font-size:13.33px;line-height:24px}
.category-route .category-count{font-size:15px;line-height:22px}

/* All navigation implementations share the same icon box and capsule motion. */
.tabbar:not(.cq-nav),.cq-nav{display:flex;align-items:stretch;justify-content:space-around;width:312px;height:52px;bottom:calc(15px + var(--safe-bottom));padding:0 4px;border:1px solid rgba(255,255,255,.65);border-radius:26px;background:rgba(255,255,255,.75);box-shadow:0 8px 33px rgba(0,0,0,.1),0 2px 8px rgba(0,0,0,.05),inset 0 1px 0 rgba(255,255,255,.8);backdrop-filter:blur(20px) saturate(180%);-webkit-backdrop-filter:blur(20px) saturate(180%)}
.tabbar:not(.cq-nav) .tab-item,.cq-nav .cq-nav-button{display:flex;flex:1;align-items:center;justify-content:center;gap:3px;padding:0;border:0;background:transparent;color:#68707c;font-size:12px;line-height:12px}
.tabbar:not(.cq-nav) .tab-item.is-active,.cq-nav .cq-nav-button[aria-current="page"]{color:#4e7cff}
.tab-item .tab-icon,.cq-nav .cq-nav-icon{display:block;width:22px;height:22px;flex:0 0 22px;margin:0;font-size:22px;line-height:22px;text-align:center}
.tab-item .tab-icon path{fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.cq-nav .cq-nav-icon{stroke-width:1.8}
.cq-nav .cq-nav-label{font-size:12px;line-height:12px;white-space:nowrap}
@media(min-width:751px){.tabbar:not(.cq-nav),.cq-nav{width:300px;height:50px;border-radius:25px}}

/* Course selection is a modal result, matching the cloud interaction. */
.course-picker{max-width:360px}
.course-picker-hint{margin:-5px 0 12px;color:#8492a6;font-size:12px;line-height:18px;text-align:center}
.course-picker-list{max-height:45vh;overflow:auto;border:1px solid #edf0f6;border-radius:8px;background:#fff}
.course-picker-row{display:flex;align-items:center;gap:8px;padding:10px 12px;border-bottom:1px solid #f1f2f4;color:#303133;font-size:13px;line-height:20px}
.course-picker-row:last-child{border-bottom:0}
.course-picker-row input{width:16px;height:16px;flex:0 0 16px}
.course-picker .modal-actions .primary-btn{width:auto}

/* Keep details compact while the fixed order bar occupies the bottom edge. */
.detail-mode .view{height:100vh;min-height:0;overflow-y:auto;padding-bottom:60px}
.detail-mode .detail{min-height:0;padding-bottom:8px}
.detail-mode .form-card{margin-bottom:12px}
.detail-mode .course-list{display:none}

/* Messages use the same quiet 14px rhythm as the cloud template. */
.message-page{min-height:0;padding:14px 10px 90px;background:linear-gradient(135deg,#f0f5ff,#e8f0ff)}
.message-heading{margin:0 0 10px;padding:12px 14px;border-radius:10px;background:#fff;box-shadow:0 2px 8px rgba(78,124,255,.08)}
.message-heading h2{font-size:18px;line-height:22px}.message-heading p{margin:3px 0 0;font-size:12px;line-height:18px}
.message-list{gap:8px}.message-item{gap:9px;padding:11px;border-radius:8px;box-shadow:0 2px 8px rgba(78,124,255,.06)}
.message-icon{flex-basis:22px;font-size:20px}.message-content{gap:2px}.message-content strong{font-size:14px;line-height:20px}.message-content span{font-size:12px;line-height:15px}

/* Remove the browser-level scrollbar from the layout; page panes own scrolling. */
html,body{overflow:hidden}
#app{width:100vw;height:100vh;overflow:hidden}
#app .view{height:100vh;min-height:0;overflow-y:auto;overflow-x:hidden;scrollbar-width:none}
#app .view::-webkit-scrollbar{width:0;height:0;display:none}
.app-shell.category-mode{width:100vw;height:100vh;overflow:hidden}
.app-shell.category-mode .view{width:100vw;height:100vh;min-height:0;overflow:hidden;padding:44px 0 0}
.app-shell.category-mode .category-page{height:100%;min-height:0;overflow:hidden}
.app-shell.category-mode .category-body{height:calc(100vh - 156px);min-height:0;overflow:hidden}
.app-shell.category-mode .category-sidebar,.app-shell.category-mode .category-content{height:100%;min-height:0;overflow-y:auto;overscroll-behavior:contain}
.app-shell.category-mode .category-content{margin-right:0}
.app-shell.category-mode .category-sidebar,.app-shell.category-mode .category-content{scrollbar-width:none}
.app-shell.category-mode .category-sidebar::-webkit-scrollbar,.app-shell.category-mode .category-content::-webkit-scrollbar{width:0;height:0}
.app-shell.category-mode .category-body{margin-top:12px}
@media(min-width:751px){.app-shell.category-mode .category-goods-card{height:106px;min-height:106px;padding:10px;grid-template-columns:83px minmax(0,1fr);gap:10px}.app-shell.category-mode .category-goods-card img{width:83px;height:83px}}

/* Detail form rows match the cloud template: compact horizontal fields and a small query action. */
.detail-mode .section-title{text-align:center;margin:0 0 6px;font-size:14px;line-height:22px}
.detail-mode .field{display:flex;align-items:center;min-height:48px;margin:0;border-bottom:1px solid #f0f1f3}
.detail-mode .field label{display:block;flex:0 0 88px;margin:0;color:#646566;font-size:14px;line-height:24px}
.detail-mode .field input,.detail-mode .field select,.detail-mode .field textarea{flex:1;min-width:0;height:40px;padding:7px 10px;border:0;border-radius:0;background:transparent;font-size:13.33px;line-height:24px}
.detail-mode #queryCourse{display:block;width:auto;min-width:106px;height:42px;margin:8px 0 0 auto;padding:8px 14px;border-radius:10px;font-size:14px}
.detail-mode .detail-docs{margin-top:10px;padding:11px 12px;border:0;border-left:2px solid #4e7cff;border-radius:8px;background:#f4f7ff;color:#5e6878;font-size:13px;line-height:20px}
.detail-mode .detail-docs strong{display:block;margin-bottom:4px;color:#4e7cff;font-size:14px;line-height:22px}
.detail-mode .detail-docs p{margin:0}

/* Cloud message summary and centered empty state. */
.message-summary{display:flex;align-items:center;min-height:53px;margin:0 0 14px;padding:0 16px;border-radius:10px;background:#fff;box-shadow:0 2px 10px rgba(78,124,255,.08)}
.message-summary-icon{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;margin-right:8px;border:1px solid #4e7cff;border-radius:50%;color:#4e7cff;font-size:14px;line-height:20px}
.message-summary strong{color:#303133;font-size:16px;line-height:22px}
.message-summary-count{margin-left:auto;color:#9299a6;font-size:12px;line-height:20px}
.message-page .message-heading{display:none}
.message-page .message-empty{min-height:calc(100vh - 230px);display:flex;flex-direction:column;align-items:center;justify-content:center;padding:20px;color:#b5bfd0}
.message-page .message-empty-icon{margin:0 0 14px;color:#d8deea;font-size:64px;line-height:64px}
.message-page .message-empty strong{margin-bottom:6px;color:#aeb8c8;font-size:16px;line-height:22px}
.message-page .message-empty span{font-size:12px;line-height:20px}
.kawaii-tabbar:not(.cq-nav) .van-tabbar-item--active .van-tabbar-item__icon{transform:none!important}

/* Payment selection is an explicit, touch-friendly action sheet. */
.home-page .goods-card{height:auto;min-height:104px}
.home-page .goods-name{margin-bottom:0}
.home-page .goods-docs{margin-bottom:5px}

.payment-sheet{width:min(420px,100%);max-width:420px;padding:20px 16px 14px}
.payment-sheet h3{margin:0;text-align:center;font-size:18px;line-height:24px}
.payment-hint{margin:4px 0 12px;color:#9299a6;font-size:12px;line-height:18px;text-align:center}
.pay-options{display:grid;gap:7px}
.pay-option{display:flex;align-items:center;width:100%;min-height:52px;padding:8px 10px;border:1px solid #edf0f6;border-radius:10px;background:#fff;color:#303133;text-align:left;transition:border-color .2s,background .2s}
.pay-option.is-selected{border-color:#4e7cff;background:#f2f6ff}
.pay-option-icon{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;margin-right:10px;border-radius:9px;color:#fff;font-size:14px;font-weight:700;line-height:32px;text-align:center}
.pay-option-icon.pay-qq{background:#f5a623}.pay-option-icon.pay-wx{background:#23b26d}.pay-option-icon.pay-ali{background:#1677ff}.pay-option-icon.pay-balance{background:#ef4444}.pay-option-icon.pay-card{background:#64748b}
.pay-option strong,.pay-option small{display:block}.pay-option strong{font-size:14px;line-height:20px}.pay-option small{color:#9299a6;font-size:11px;line-height:16px}
.pay-option i{margin-left:auto;color:#b5bfd0;font-size:20px;font-style:normal}.pay-option.is-selected i{color:#4e7cff}
.payment-sheet .modal-actions{margin-top:14px}.payment-sheet .modal-actions button{height:42px}.payment-sheet .modal-actions .primary-btn{width:auto}.payment-sheet .modal-actions .ghost-btn{background:#f5f6f8;color:#646566}
.modal-root:has(.payment-sheet){align-items:flex-end;padding:0 16px calc(15px + var(--safe-bottom))}
@media (max-height:800px){.detail-mode .field{min-height:42px}.detail-mode .field input,.detail-mode .field select,.detail-mode .field textarea{height:36px;padding-top:5px;padding-bottom:5px}.detail-mode .form-card{padding-bottom:8px}}

/* Match the cloud capsule's fluid mobile sizing while keeping its desktop cap. */
.tabbar:not(.cq-nav),.cq-nav{width:80.342vw;height:13.676vw;max-width:313.333px;max-height:53.333px;min-width:250px;min-height:48px}
@media(min-width:751px){.tabbar:not(.cq-nav),.cq-nav{width:300px;height:50px;min-width:0;min-height:0}}

/* Keep the category price row inside the narrow information column. */
.category-goods-bottom{gap:0;min-width:0}
.category-goods-bottom b{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.category-goods-bottom em{flex:0 0 auto}

/* Inputs expose only the native caret; the row itself never gets a focus box. */
.detail-mode .field:focus-within{outline:0;box-shadow:none;background:transparent}
.detail-mode .field input:focus,.detail-mode .field select:focus,.detail-mode .field textarea:focus{outline:0;box-shadow:none;border-color:transparent}

/* Final compact category layout and query feedback. */
.app-shell.category-mode .category-body{gap:0}
.app-shell.category-mode .category-sidebar{flex-basis:96px;width:96px}
.app-shell.category-mode .category-goods-info{height:83px;min-height:83px;align-self:start}
.app-shell.category-mode .category-goods-bottom{margin-top:auto;align-items:flex-end}
.query-spinner{display:inline-block;width:15px;height:15px;margin-right:6px;vertical-align:-2px;border:2px solid rgba(255,255,255,.45);border-top-color:#fff;border-radius:50%;animation:query-spin .7s linear infinite}
@keyframes query-spin{to{transform:rotate(360deg)}}
@media(max-width:420px){
  .app-shell.category-mode .category-sidebar{flex-basis:92px;width:92px}
  .app-shell.category-mode .category-content{padding-left:8px;padding-right:8px}
  .app-shell.category-mode .category-goods-card{padding:11px;grid-template-columns:83px minmax(0,1fr);gap:9px}
  .app-shell.category-mode .category-goods-info{height:83px;min-height:83px}
  .app-shell.category-mode .category-goods-bottom b{font-size:14px;line-height:20px}
  .app-shell.category-mode .category-goods-bottom em{font-size:10px;line-height:15px;padding:0 3px}
}
@media(min-width:751px){
  .app-shell.category-mode .category-sidebar{flex-basis:176px;width:176px}
  .app-shell.category-mode .category-body{gap:12px}
  .app-shell.category-mode .category-goods-info{height:83px;min-height:83px}
}

/* Compact card rhythm: no unused band below the image. */
.app-shell.category-mode .category-goods-card{height:105px;min-height:105px}
.app-shell.category-mode .category-goods-info{display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:0}
.app-shell.category-mode .category-goods-info strong{display:-webkit-box;max-height:36px;margin:0;color:#303133;font-size:14px;line-height:18px;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.app-shell.category-mode .category-goods-docs{display:-webkit-box;height:26px;max-height:26px;margin:0;color:#82848a;font-size:11px;line-height:13px;line-clamp:2;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.app-shell.category-mode .category-goods-bottom b{font-size:14px;line-height:18px}
.app-shell.category-mode .category-goods-bottom em{font-size:10px;line-height:15px}

/* The home and category screens use the cloud template's smaller text scale. */
.home-page .goods-name{font-size:14px;line-height:19px}
.home-page .goods-docs{height:28px;font-size:11px;line-height:14px;line-clamp:2;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.home-page .goods-price{font-size:14px;line-height:20px}
.category-mode .category-hero h2{font-size:17px;line-height:21px}
.category-mode .category-hero p{font-size:11px;line-height:20px}
.category-mode .category-side-item{font-size:13px;line-height:20px}
.category-mode .category-search input{font-size:12.5px}
.category-mode .category-count{font-size:14px;line-height:20px}

/* Message titles stay visible while bodies remain collapsed until opened. */
.message-body[hidden]{display:none}
.message-item .message-content strong{color:#4e7cff;font-weight:500}
.message-item.is-read .message-content strong{color:#303133}
.message-item.is-expanded .message-body{display:block;color:#66758c;font-size:12px;line-height:18px;white-space:pre-wrap}
.message-content small{font-size:11px;line-height:17px}

/* Unread count reminder shared by the shell and progress takeover navs. */
.tab-item[data-tab="message"],.cq-nav-button:has(.message-badge){position:relative}
.message-badge{position:absolute;top:3px;right:calc(50% - 20px);display:inline-flex;align-items:center;justify-content:center;min-width:16px;height:16px;padding:0 4px;border:2px solid rgba(255,255,255,.9);border-radius:9px;background:#ee0a24;color:#fff;font-size:9px;line-height:12px;font-weight:600;font-style:normal;z-index:2}
.message-badge[hidden]{display:none}
@media(max-width:420px){
  .app-shell.category-mode .category-goods-card{height:105px;min-height:105px}
}

/* The cloud layout does not show item-count labels or the extra category search card. */
.goods-count,.category-count,.app-shell.category-mode .category-search-card{display:none!important}
.app-shell.category-mode .category-body{margin-top:0!important}
.app-shell.category-mode .category-sidebar{padding-bottom:72px}
.app-shell.category-mode .category-content{padding-bottom:72px}

/* Detail fields use the smaller cloud typography scale. */
.detail-mode .detail-title{font-size:14px;line-height:20px}
.detail-mode .detail-price{font-size:16px;line-height:20px}
.detail-mode .detail-sales{font-size:10px;line-height:15px}
.detail-mode .detail-card .detail-docs{font-size:11px;line-height:18px}
.detail-mode .section-title{font-size:12px;line-height:20px}
.detail-mode .field label{font-size:12px;line-height:20px}
.detail-mode .field input,.detail-mode .field select,.detail-mode .field textarea{font-size:11.33px;line-height:20px}
.detail-mode #queryCourse,.detail-mode #buy{font-size:12px}
.detail-mode .total-price{font-size:18px}

/* Final polish: keep field labels close to their controls and expose the
   native caret without boxing the whole row. The clamp scales with the
   viewport while remaining compact on desktop. */
.detail-mode .field{min-height:42px;column-gap:4px}
.detail-mode .field label{flex:0 0 clamp(56px,15vw,68px);width:clamp(56px,15vw,68px);font-size:clamp(11px,2.9vw,12px)}
.detail-mode .field input,.detail-mode .field select,.detail-mode .field textarea{height:34px;padding:4px 3px;font-size:clamp(11px,2.8vw,12.5px)}
.detail-mode .field input::placeholder{color:#bfc4cd}

/* The login page is still part of the shell, so it keeps the same global
   navigation as every other route. */
html body .login-mode #tabbar{display:flex!important;visibility:visible!important}
html body .login-mode .view{padding-bottom:88px}

/* Keep the full catalog in memory while painting cards in inexpensive batches. */
.goods-card,.category-goods-card{content-visibility:auto;contain:layout paint style;contain-intrinsic-size:auto 112px;animation:catalog-card-in .18s ease both}
.goods-image,.category-goods-card>img{background:#f3f6fb}
@keyframes catalog-card-in{from{opacity:.35;transform:translateY(3px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.goods-card,.category-goods-card{animation:none}}

/* Payment confirmation includes the information customers need to verify. */
.payment-summary{display:grid;gap:8px;margin:14px 0 10px;padding:12px 14px;border:1px solid #e8edf7;border-radius:12px;background:#f7f9ff}
.payment-summary>div{display:grid;grid-template-columns:72px minmax(0,1fr);gap:10px;align-items:start;color:#7b8495;font-size:12px;line-height:20px}
.payment-summary strong{overflow-wrap:anywhere;color:#2f3748;font-size:13px;text-align:right}
.payment-summary .payment-summary-total{padding-top:8px;border-top:1px dashed #d9e1f0;align-items:center}
.payment-summary-total strong{color:#f04455;font-size:20px;line-height:24px}

/* Real desktop information architecture instead of a stretched phone canvas. */
@media (min-width:900px){
  html,body{min-height:100%;overflow:auto;background:#edf2fb}
  body.category-route{overflow:auto}
  #app.app-shell,#app.app-shell.category-mode{width:min(1180px,calc(100vw - 48px));max-width:1180px;height:auto;min-height:100vh;margin:0 auto;padding-bottom:104px;overflow:visible;background:linear-gradient(135deg,#f7f9ff,#eef4ff);box-shadow:0 0 28px rgba(42,58,94,.09)}
  #app.app-shell .topbar,#app.app-shell.category-mode .topbar{position:sticky;top:0;width:100%;height:56px;padding:0 12px;background:rgba(255,255,255,.94);border-bottom:1px solid #e9edf5;backdrop-filter:blur(14px);z-index:30}
  #app.app-shell .topbar h1,#app.app-shell.category-mode .topbar h1{font-size:18px;line-height:56px;font-weight:650}
  #app.app-shell .view,#app.app-shell.category-mode .view{width:100%;height:auto;min-height:calc(100vh - 56px);padding:24px 32px 96px;overflow:visible;background:transparent}
  #app.app-shell .page,#app.app-shell.category-mode .category-page{height:auto;min-height:calc(100vh - 176px);overflow:visible}
  .home-page{padding:0;background:transparent}
  .home-page .notice{margin-bottom:16px}
  .home-page .search-wrap{max-width:720px;margin:0 auto 18px}
  .home-page .goods-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;padding:0}
  .home-page .goods-card{height:118px;min-height:118px;margin:0;padding:14px;grid-template-columns:88px minmax(0,1fr);gap:13px;border-left-width:4px;border-radius:14px;box-shadow:0 7px 24px rgba(65,86,130,.07)}
  .home-page .goods-image-container,.home-page .goods-image{width:88px;height:88px}
  .home-page .goods-name{font-size:16px;line-height:22px}
  .home-page .goods-docs{height:36px;font-size:13px;line-height:18px}
  .home-page .goods-price{font-size:16px}
  #app.app-shell.category-mode .category-hero{height:112px;padding:27px 30px;border-radius:18px}
  #app.app-shell.category-mode .category-body{display:grid;grid-template-columns:210px minmax(0,1fr);gap:20px;width:100%;height:auto;min-height:calc(100vh - 240px);margin-top:18px!important;overflow:visible}
  #app.app-shell.category-mode .category-sidebar{position:sticky;top:80px;width:210px;height:calc(100vh - 112px);min-height:0;padding:8px 0 96px;overflow-y:auto;border:1px solid rgba(78,124,255,.12);border-radius:14px;background:#fff;scrollbar-width:thin}
  #app.app-shell.category-mode .category-side-item{min-height:52px;padding:12px 18px;text-align:left}
  #app.app-shell.category-mode .category-content{height:auto;min-height:0;padding:0 0 96px;overflow:visible}
  #app.app-shell.category-mode .category-goods{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;padding:0}
  #app.app-shell.category-mode .category-goods-card{height:118px;min-height:118px;margin:0;padding:14px;grid-template-columns:90px minmax(0,1fr);gap:13px;border-radius:14px}
  #app.app-shell.category-mode .category-goods-card img{width:90px;height:90px}
  #app.app-shell.category-mode .category-goods-info{height:90px;min-height:90px}
  .detail,.message-page,.login-page,.user-grid,.user-hero{max-width:820px;margin-right:auto;margin-left:auto}
  .detail{display:grid;grid-template-columns:minmax(0,.92fr) minmax(0,1.08fr);gap:18px;align-items:start;padding:0 0 94px}
  .detail .detail-card,.detail .form-card{margin:0;padding:20px;border-radius:16px}
  .detail .order-bar{position:fixed;right:50%;bottom:24px;width:min(760px,calc(100vw - 96px));transform:translateX(50%);padding:12px 18px;border:1px solid #e6ebf4;border-radius:16px;box-shadow:0 12px 34px rgba(46,62,96,.14);z-index:31}
  html body .tabbar:not(.cq-nav){bottom:24px;width:420px;height:56px;border-radius:28px}
  .modal-root:has(.payment-sheet){align-items:center;padding:24px}
  .payment-sheet{max-width:460px;border-radius:18px}
}

/* User order details and subsite controls share the compact cloud rhythm. */
.order-detail-modal{width:min(460px,100%);max-height:min(88vh,720px);overflow:auto;padding:18px 16px 14px}
.order-detail-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:14px}
.order-detail-heading h3{margin:4px 0 0;color:#1d2a43;font-size:18px;line-height:24px;overflow-wrap:anywhere}
.order-progress{display:flex;flex-direction:column;gap:3px;margin-bottom:12px;padding:11px 12px;border-radius:9px;background:#f7f9fd;border-left:3px solid #f4ad3f}
.order-progress strong{color:#9b721b;font-size:13px;line-height:20px;overflow-wrap:anywhere}.order-progress span{color:#9aa3b2;font-size:11px;line-height:17px}
.order-progress.success{border-left-color:#42b883;background:#effaf4}.order-progress.success strong{color:#2eaa69}.order-progress.danger{border-left-color:#e25c5c;background:#fff3f3}.order-progress.danger strong{color:#d24e4e}
.order-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1px;background:#edf0f5;border:1px solid #edf0f5;border-radius:9px;overflow:hidden}
.order-detail-grid>div{min-width:0;padding:10px;background:#fff}.order-detail-grid span,.order-detail-grid strong{display:block}.order-detail-grid span{color:#9aa3b2;font-size:11px;line-height:16px}.order-detail-grid strong{margin-top:4px;color:#34425e;font-size:12px;line-height:18px;overflow-wrap:anywhere}.order-detail-grid .order-detail-price{color:#f05252;font-size:14px}
.order-detail-message{margin-top:12px;padding:10px 11px;border-radius:9px;background:#fbfcff}.order-detail-message span{display:block;color:#778196;font-size:11px;line-height:16px}.order-detail-message p{margin:4px 0 0;color:#59657a;font-size:12px;line-height:19px;white-space:pre-wrap;overflow-wrap:anywhere}
.order-detail-modal .modal-actions{margin-top:14px}.order-detail-modal .modal-actions .primary-btn{width:auto}.order-detail-modal .modal-actions .ghost-btn{background:#f5f6f8}
.subsite-domain-grid{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:10px}.subsite-domain-grid .user-input-label{min-width:0}
.subsite-promotion{display:flex;align-items:flex-end;justify-content:space-between;gap:10px;margin:1px 0 12px;padding:10px 11px;border:1px solid #e8edf7;border-radius:9px;background:#f7f9ff}.subsite-promotion .user-input-label{margin:0}.subsite-promotion strong{display:block;max-width:100%;color:#4e7cff;font-size:12px;line-height:20px;overflow-wrap:anywhere}.subsite-promotion .compact{flex:none;margin-bottom:0}
.subsite-panel{min-width:0;margin-top:10px;padding:12px;border:1px solid #edf0f5;border-radius:9px;background:#fbfcff}.subsite-panel .user-form-title{margin-bottom:10px}.subsite-panel .user-input-label:last-child{margin-bottom:0}.subsite-panel textarea{min-height:64px}
.subsite-settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.subsite-switch{display:flex;align-items:center;gap:8px;margin:0 0 10px;color:#59657a;font-size:12px}.subsite-switch input,.subsite-pay-list input{width:16px;height:16px;margin:0;accent-color:#4e7cff}.subsite-pay-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.subsite-pay-list label{display:flex;align-items:center;gap:6px;color:#778196;font-size:11px;line-height:18px}.subsite-section .user-primary-btn{margin-top:12px}.subsite-section .user-form-note{display:block;margin-top:8px;line-height:18px}
@media(max-width:540px){.subsite-domain-grid,.subsite-settings-grid{grid-template-columns:1fr}.order-detail-grid{grid-template-columns:1fr 1fr}.subsite-promotion{align-items:flex-start}}

/* Structured order notes for products that expose upstream custom parameters. */
.order-bar>span{min-width:0;flex:1;white-space:nowrap}.order-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex:none}.order-note-btn{min-width:96px;height:40px;padding:4px 12px;border:1px solid #ffc45b;border-radius:41px;background:linear-gradient(135deg,#fff0bd,#ffd77d);color:#8d4d00;display:flex;flex-direction:column;align-items:center;justify-content:center;font-size:12px;font-weight:750;line-height:15px;box-shadow:0 4px 12px rgba(226,143,30,.24);transition:transform .16s ease,box-shadow .16s ease,filter .16s ease}.order-note-btn small{color:#b66b0c;font-size:9px;font-weight:600}.order-note-btn:hover{transform:translateY(-1px);box-shadow:0 6px 15px rgba(226,143,30,.3);filter:saturate(1.06)}.order-note-btn:active{transform:translateY(0)}.order-note-btn.is-set{border-color:#f7a93a;background:linear-gradient(135deg,#ffd36d,#ffad58);color:#6f3400;box-shadow:0 4px 13px rgba(232,119,31,.3)}.order-note-btn.is-set small{color:#8b4300}.order-note-sheet{max-width:420px;padding:19px}.order-note-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.order-note-heading span{display:block;margin-bottom:3px;color:#9aa7bd;font-size:9px;font-weight:750;letter-spacing:1.4px}.order-note-heading h3{margin:0;color:#26354f;font-size:19px}.order-note-heading>button{width:30px;height:30px;padding:0;border:0;border-radius:50%;background:#f4f6fa;color:#8c97aa;font-size:22px;line-height:28px}.order-note-hint{margin:10px 0 14px;color:#7c8799;font-size:12px;line-height:19px}.order-note-fields{display:flex;flex-direction:column;gap:12px}.order-note-field{display:block;margin:0;padding:0;border:0}.order-note-field>span,.order-note-options legend{display:flex;align-items:center;gap:7px;margin-bottom:6px;color:#445169;font-size:12px;font-weight:650}.order-note-field>span em{padding:1px 5px;border-radius:8px;background:#f2f4f7;color:#a0a8b5;font-size:9px;font-style:normal;font-weight:500}.order-note-field>span b{color:#e25c5c;font-size:9px}.order-note-input{height:41px;display:flex;align-items:center;border:1px solid #e1e7f0;border-radius:9px;background:#fbfcff;overflow:hidden}.order-note-input:focus-within{border-color:#7fa2ff;box-shadow:0 0 0 2px rgba(78,124,255,.1)}.order-note-input input{min-width:0;flex:1;height:100%;padding:0 11px;border:0;outline:0;background:transparent;color:#34425e;font-size:13px}.order-note-input i{padding:0 11px;color:#8d98aa;font-size:11px;font-style:normal}.order-note-chips{display:flex;flex-wrap:wrap;gap:7px}.order-note-chip input{position:absolute;opacity:0;pointer-events:none}.order-note-chip span{display:inline-flex;align-items:center;min-height:34px;padding:6px 11px;border:1px solid #e1e7f0;border-radius:9px;background:#fbfcff;color:#68758a;font-size:11px}.order-note-chip input:checked+span{border-color:#759bff;background:#edf3ff;color:#3f70e8;box-shadow:0 2px 8px rgba(78,124,255,.12)}.order-note-tip{margin:13px 0 0;padding:9px 10px;border-radius:8px;background:#fff8e8;color:#a67a28;font-size:10px;line-height:17px}.order-note-error{margin-top:10px;padding:8px 10px;border-radius:7px;background:#fff0f0;color:#d85050;font-size:11px}.order-note-sheet .modal-actions .primary-btn{width:auto}.order-note-sheet .modal-actions button{height:41px}.modal-root:has(.order-note-sheet){align-items:flex-end;padding:0 13px calc(14px + var(--safe-bottom))}
@media(min-width:751px){.modal-root:has(.order-note-sheet){align-items:center;padding:24px}}
@media(max-width:370px){.order-bar{padding-right:9px;padding-left:9px}.order-actions{gap:5px}.order-note-btn{min-width:82px;padding-right:8px;padding-left:8px}.order-bar .primary-btn{min-width:98px}.total-price{font-size:16px}}

/* Settings workspace: account controls stay on the left; subsite and pricing
   tools share the wider right-hand column on desktop. */
.user-settings-layout{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;margin:0 10px 12px}
.user-settings-left,.user-settings-right{min-width:0}
.user-settings-layout .user-section{margin-right:0;margin-left:0}
.user-settings-right .user-section:last-child,.user-settings-left .user-section:last-child{margin-bottom:0}
.price-adjust-section{min-width:0}
.price-floor-note{display:flex;align-items:flex-start;gap:9px;margin:-2px 0 13px;padding:10px 11px;border:1px solid #dfe9ff;border-radius:9px;background:#f4f7ff;color:#66758c;font-size:11px;line-height:18px}
.price-floor-note strong{flex:none;color:#3f70e8;font-size:12px}.price-floor-note span{min-width:0}
.price-adjust-toolbar{display:flex;align-items:center;justify-content:space-between;gap:9px;margin-bottom:12px}
.price-search{display:flex;min-width:0;flex:1;gap:7px}.price-search input{width:100%;min-width:0;height:34px;padding:0 10px;border:1px solid #dfe4ee;border-radius:8px;background:#fff;color:#34425e;font-size:12px;outline:0}.price-search input:focus{border-color:#8daaff;box-shadow:0 0 0 3px rgba(78,124,255,.09)}
.price-toolbar-actions{display:flex;flex:none;justify-content:flex-end;gap:7px}.price-adjust-section .compact{min-height:32px;padding:0 10px;white-space:nowrap}.price-toolbar-actions .compact{width:auto}.price-reset-all-btn{border-color:#f2c9ce;background:#fff8f8;color:#d94b5b}.price-reset-all-btn:hover:not(:disabled){border-color:#e66c79;background:#fff0f1;color:#c93647}
.price-adjust-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin-bottom:10px}.price-adjust-stats>div{min-width:0;padding:9px 10px;border-radius:8px;background:#f7f9fd}.price-adjust-stats span,.price-adjust-stats strong{display:block}.price-adjust-stats span{color:#9aa3b2;font-size:10px}.price-adjust-stats strong{margin-top:3px;color:#34425e;font-size:14px}
.price-select-all{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 2px;color:#778196;font-size:11px}.price-select-all label,.price-select{display:flex;align-items:center;gap:7px}.price-select-all input,.price-select input{width:15px;height:15px;margin:0;accent-color:#4e7cff}.price-select-all small{color:#a0a8b5;font-size:10px;text-align:right}
.price-adjust-list{border:1px solid #edf0f5;border-radius:10px;overflow:hidden;background:#fff}
.price-adjust-row{display:grid;grid-template-columns:20px minmax(130px,1.35fr) minmax(125px,.9fr) minmax(110px,.75fr) auto;gap:9px;align-items:center;min-width:0;padding:11px 10px;border-top:1px solid #f0f2f6}.price-adjust-row:first-child{border-top:0}.price-adjust-row:hover{background:#fbfcff}
.price-product,.price-numbers{min-width:0}.price-product strong,.price-product small{display:block}.price-product strong{overflow:hidden;color:#34425e;font-size:12px;line-height:18px;text-overflow:ellipsis;white-space:nowrap}.price-product small{margin-top:2px;color:#a0a8b5;font-size:10px}
.price-numbers{display:flex;flex-direction:column;gap:3px}.price-numbers span{display:flex;align-items:center;justify-content:space-between;gap:6px;color:#9aa3b2;font-size:10px;white-space:nowrap}.price-numbers b{color:#59657a;font-size:11px}.price-numbers b.sale{color:#ef5666}
.price-rule{min-width:0;color:#778196;font-size:10px;line-height:16px}.price-rule strong,.price-rule span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.price-rule strong{color:#4e7cff;font-size:11px}.price-rule.is-default strong{color:#8b96a8}.price-rule.is-legacy strong{color:#cf8b2f}
.price-row-actions{display:flex;align-items:center;justify-content:flex-end;gap:6px}.price-row-actions .user-danger-text{padding:5px 0;font-size:10px;white-space:nowrap}
.price-pagination{display:flex;align-items:center;justify-content:center;gap:8px;margin-top:12px;color:#778196;font-size:10px}.price-pagination span{text-align:center}.price-pagination select{height:32px;padding:0 7px;border:1px solid #dfe4ee;border-radius:7px;background:#fff;color:#59657a;font-size:10px}
.price-adjust-loading,.price-adjust-empty{display:flex;min-height:124px;align-items:center;justify-content:center;flex-direction:column;gap:8px;padding:18px;color:#9aa3b2;font-size:11px;text-align:center}.price-adjust-loading span{width:22px;height:22px;border:2px solid #dce5f7;border-top-color:#4e7cff;border-radius:50%;animation:price-spin .75s linear infinite}.price-adjust-empty strong{color:#59657a;font-size:12px}.price-adjust-empty span{overflow-wrap:anywhere}@keyframes price-spin{to{transform:rotate(360deg)}}
.price-editor-modal{width:min(430px,100%)}.price-editor-product{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:12px;padding:10px 11px;border-radius:9px;background:#f7f9fd}.price-editor-product strong{min-width:0;color:#34425e;font-size:12px;line-height:18px;overflow-wrap:anywhere}.price-editor-product span{flex:none;color:#ef5666;font-size:11px;line-height:18px}.price-editor-fields{display:grid;grid-template-columns:1fr 1fr;gap:9px}.price-editor-preview{display:grid;grid-template-columns:1fr auto;gap:3px 10px;align-items:center;margin-top:10px;padding:10px 11px;border:1px solid #e7ecf5;border-radius:9px;background:#fbfcff}.price-editor-preview span{color:#778196;font-size:11px}.price-editor-preview strong{color:#ef5666;font-size:18px}.price-editor-preview small{grid-column:1/-1;color:#9aa3b2;font-size:10px}.price-floor-inline{margin:5px 0 0;padding:9px 10px;border-radius:8px;background:#f4f7ff;color:#66758c;font-size:11px;line-height:18px}
@media(min-width:751px){.user-center-page:has(.user-settings-layout){max-width:1120px}.user-settings-layout{grid-template-columns:minmax(280px,.78fr) minmax(0,1.35fr);gap:14px;margin-right:0;margin-left:0}.user-settings-layout .user-section{padding:18px}.user-settings-left{position:sticky;top:72px;align-self:start}}
@media(max-width:700px){.price-adjust-toolbar{align-items:stretch;flex-direction:column}.price-toolbar-actions{justify-content:flex-end}.price-adjust-row{grid-template-columns:20px minmax(0,1fr) auto}.price-numbers{grid-column:2}.price-rule{grid-column:2}.price-row-actions{grid-column:3;grid-row:1/4;align-items:flex-end;flex-direction:column}.price-pagination{flex-wrap:wrap}.price-editor-fields{grid-template-columns:1fr}}
@media(max-width:420px){.price-adjust-stats{grid-template-columns:repeat(3,1fr)}.price-search{display:grid;grid-template-columns:minmax(0,1fr) auto}.price-toolbar-actions{display:grid;grid-template-columns:1fr 1fr}.price-toolbar-actions>*{width:100%}.price-reset-all-btn{grid-column:1/-1}.price-adjust-row{padding:10px 8px}.price-pagination span{order:-1;width:100%}}

/* Dedicated subsite tab. Only the global popup notice remains; payments are
   inherited from the main site and therefore need no editable panel. */
.user-panel-tabs{overflow-x:auto;scrollbar-width:none;white-space:nowrap}.user-panel-tabs::-webkit-scrollbar{display:none}.user-panel-tabs button{flex:none}
.subsite-workspace{margin:0 10px 12px}.subsite-workspace .user-section{margin-right:0;margin-left:0}.subsite-workspace .subsite-form{display:block}.subsite-workspace .subsite-domain-grid,.subsite-workspace .subsite-promotion,.subsite-workspace .subsite-compact-grid,.subsite-workspace .subsite-alert-panel,.subsite-workspace .subsite-payment-note{margin-bottom:12px}
.subsite-compact-grid{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(230px,.8fr);gap:12px;align-items:start}.subsite-compact-grid>.user-input-label{margin:0}.subsite-grade-panel{margin:0}.subsite-grade-panel .user-secondary-btn{width:auto}.subsite-alert-panel{margin-top:0}.subsite-alert-panel .user-input-label{margin-bottom:0}.subsite-alert-panel textarea{min-height:130px}
.subsite-payment-note{display:flex;align-items:flex-start;gap:10px;padding:10px 11px;border:1px solid #dfe9ff;border-radius:9px;background:#f4f7ff;color:#66758c;font-size:11px;line-height:18px}.subsite-payment-note strong{flex:none;color:#3f70e8}.subsite-payment-note span{min-width:0}
@media(min-width:751px){.user-center-page:has(.subsite-workspace){max-width:920px}.subsite-workspace{margin-right:0;margin-left:0}.subsite-workspace .user-section{padding:20px}}
@media(max-width:620px){.subsite-compact-grid{grid-template-columns:1fr}.subsite-workspace{margin-right:10px;margin-left:10px}.user-panel-tabs{gap:19px;padding-right:14px;padding-left:14px}.user-panel-tabs button{font-size:13px}}

.subsite-settings-column,.subsite-pricing-column{min-width:0}.subsite-workspace.has-pricing .user-section{margin:0}.subsite-pricing-column .price-adjust-section{height:100%}
@media(min-width:960px){.user-center-page:has(.subsite-workspace.has-pricing){max-width:1180px}.subsite-workspace.has-pricing{display:grid;grid-template-columns:minmax(300px,.75fr) minmax(0,1.45fr);gap:16px;align-items:start}.subsite-workspace.has-pricing .subsite-domain-grid,.subsite-workspace.has-pricing .subsite-compact-grid{grid-template-columns:1fr}.subsite-workspace.has-pricing .subsite-grade-panel{margin-top:10px}}
@media(max-width:959px){.subsite-workspace.has-pricing{display:flex;flex-direction:column;gap:14px}.subsite-pricing-column .price-adjust-section{margin:0}}
