@import"https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;600;700&display=swap";:root{--bg: #f3f5f7;--surface: #ffffff;--surface-soft: #f8faf9;--ink: #182027;--muted: #68737d;--line: #dfe4e7;--line-strong: #cbd2d7;--primary: #078653;--primary-dark: #05643f;--primary-soft: #e8f6ef;--nav: #182128;--nav-muted: #9ba7ae;--blue: #1677ff;--blue-soft: #eaf2ff;--amber: #b76a08;--amber-soft: #fff4df;--red: #c0392b;--red-soft: #fff0ed;--shadow: 0 12px 32px rgba(25, 36, 43, .08)}*{box-sizing:border-box;letter-spacing:0}[hidden]{display:none!important}html{color:var(--ink);font-family:Noto Sans SC,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-size:14px;background:var(--bg)}body{margin:0;min-width:320px;min-height:100vh}button,input,select,textarea{color:inherit;font:inherit}button,select{cursor:pointer}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,a:focus-visible{outline:3px solid rgba(22,119,255,.23);outline-offset:2px}svg{width:18px;height:18px;stroke-width:1.8}a{color:var(--primary);text-decoration:none}.eyebrow{display:block;color:var(--primary);font-size:11px;font-weight:700;letter-spacing:.12em;line-height:1.4}.muted{color:var(--muted);font-size:12px}.auth-page{background:var(--surface)}.auth-shell{display:grid;min-height:100vh;grid-template-columns:minmax(420px,1.05fr) minmax(440px,.95fr)}.auth-brand{position:relative;display:flex;flex-direction:column;justify-content:center;overflow:hidden;padding:clamp(48px,8vw,112px);color:#fff;background:linear-gradient(145deg,#078653eb,#0c5341f0),repeating-linear-gradient(30deg,transparent 0 34px,rgba(255,255,255,.04) 35px 36px)}.auth-brand:after{position:absolute;right:-90px;bottom:-90px;width:300px;height:300px;border:1px solid rgba(255,255,255,.18);border-radius:50%;box-shadow:0 0 0 46px #ffffff09,0 0 0 92px #ffffff06;content:""}.brand-mark{display:grid;width:54px;height:54px;place-items:center;border-radius:8px;color:var(--primary);background:#fff;box-shadow:0 10px 28px #00000026}.brand-mark svg{width:27px;height:27px;fill:currentColor}.brand-mark.small{width:38px;height:38px;border-radius:6px;color:#fff;background:var(--primary);box-shadow:none}.brand-mark.small svg{width:20px;height:20px}.auth-brand-copy{position:relative;z-index:1;max-width:560px;margin-top:48px}.auth-brand-copy .eyebrow{color:#b8f2d7}.auth-brand-copy h1{margin:10px 0 18px;font-size:clamp(42px,6vw,72px);line-height:1.08}.auth-brand-copy p{max-width:500px;margin:0;color:#fffc;font-size:17px;line-height:1.8}.auth-metrics{position:relative;z-index:1;display:flex;gap:44px;margin-top:72px}.auth-metrics div{display:grid;gap:5px}.auth-metrics strong{font-size:24px}.auth-metrics span{color:#ffffffa6;font-size:12px}.auth-panel{display:grid;padding:48px;place-items:center;background:#fbfcfc}.auth-card{width:min(100%,420px)}.mobile-brand{display:none;align-items:center;gap:12px;margin-bottom:44px;color:var(--ink);font-size:18px}.auth-heading h2{margin:8px 0;font-size:30px;line-height:1.25}.auth-heading p{margin:0;color:var(--muted)}.auth-form,.stack-form{display:grid;gap:18px}.auth-form{margin-top:34px}.field{display:grid;gap:8px}.field>span:first-child,.field>label{color:#39454d;font-size:13px;font-weight:600}.sms-code-row{display:grid;grid-template-columns:minmax(0,1fr) 128px;gap:10px}.sms-send-button{min-height:44px;padding:0 12px}.sms-send-button svg{width:17px;height:17px}.sms-feedback{margin:0;font-size:12px}.sms-feedback.success{color:var(--primary-dark)}.sms-feedback.error{color:var(--red)}.input-wrap,.search-field{display:flex;align-items:center;border:1px solid var(--line);border-radius:6px;background:var(--surface);transition:border-color .18s,box-shadow .18s}.input-wrap:focus-within,.search-field:focus-within{border-color:var(--primary);box-shadow:0 0 0 3px #0786531a}.input-wrap svg,.search-field svg{flex:0 0 auto;margin-left:13px;color:#8b969e}input,select,textarea{width:100%;min-height:42px;padding:10px 12px;border:1px solid var(--line);border-radius:6px;background:var(--surface)}textarea{min-height:92px;resize:vertical}.input-wrap input,.search-field input{border:0;outline:0;box-shadow:none}.check-row{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:13px}.check-row input{width:16px;min-height:16px;accent-color:var(--primary)}.button,.icon-button,.text-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:0;font-weight:600}.button{min-height:40px;padding:0 16px;border-radius:6px;white-space:nowrap}.button.primary{color:#fff;background:var(--primary)}.button.primary:hover{background:var(--primary-dark)}.button.secondary{border:1px solid var(--line-strong);color:#344149;background:var(--surface)}.button.danger{color:var(--red);background:var(--red-soft)}.button.wide{width:100%;min-height:48px}.button:disabled{cursor:not-allowed;opacity:.55}.button.is-loading{cursor:wait}.button.small-action{min-height:32px;padding:0 10px;font-size:12px}.button.small-action svg{width:15px;height:15px}.icon-button{position:relative;width:38px;height:38px;padding:0;border:1px solid var(--line);border-radius:6px;color:#49565f;background:var(--surface)}.icon-button.small{width:32px;height:32px}.icon-button.small svg{width:16px;height:16px}.icon-button.danger{color:var(--red)}.text-button{padding:4px;color:var(--primary);background:transparent}.form-alert{display:flex;align-items:flex-start;gap:9px;margin-top:20px;padding:12px 14px;border-left:3px solid var(--red);border-radius:4px;color:#8d2d23;background:var(--red-soft)}.form-alert svg{flex:0 0 auto}.demo-accounts{display:flex;align-items:center;gap:8px;margin-top:22px;color:var(--muted);font-size:12px}.demo-fill{padding:5px 10px;border:1px solid var(--line);border-radius:4px;color:#42515a;background:var(--surface)}.auth-switch{margin:26px 0 0;color:var(--muted);text-align:center}.app-shell{display:grid;min-height:100vh;grid-template-columns:236px minmax(0,1fr)}.sidebar{position:sticky;top:0;z-index:30;display:flex;height:100vh;flex-direction:column;padding:20px 14px;color:#fff;background:var(--nav)}.sidebar-brand{display:flex;align-items:center;gap:11px;padding:0 6px 24px}.sidebar-brand>span:nth-child(2){display:grid;gap:2px;min-width:0}.sidebar-brand strong{font-size:16px}.sidebar-brand small{color:var(--nav-muted);font-size:11px}.sidebar-close{display:none;margin-left:auto;border-color:#ffffff24;color:#fff;background:transparent}.side-nav{display:grid;gap:5px}.nav-item{position:relative;display:flex;align-items:center;gap:12px;width:100%;min-height:44px;padding:0 13px;border:0;border-radius:6px;color:var(--nav-muted);background:transparent;text-align:left}.nav-item:hover{color:#fff;background:#ffffff0e}.nav-item.active{color:#fff;background:var(--primary)}.nav-badge{min-width:20px;margin-left:auto;padding:2px 6px;border-radius:10px;color:#fff;background:var(--red);font-size:10px;text-align:center}.sidebar-footer{display:flex;align-items:center;gap:8px;margin-top:auto;padding:16px 6px 0;border-top:1px solid rgba(255,255,255,.1)}.sidebar-footer .icon-button{border-color:#ffffff1f;color:var(--nav-muted);background:transparent}.user-chip{display:flex;align-items:center;gap:9px;min-width:0;flex:1}.avatar{display:grid;width:34px;height:34px;flex:0 0 auto;place-items:center;border-radius:50%;color:#0b6242;background:#b9ecd4;font-weight:700}.user-chip>span:last-child{display:grid;min-width:0}.user-chip strong,.user-chip small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.user-chip small{color:var(--nav-muted);font-size:10px}.sidebar-scrim{display:none}.main-shell{min-width:0}.topbar{position:sticky;top:0;z-index:20;display:flex;height:76px;align-items:center;justify-content:space-between;padding:0 clamp(20px,4vw,48px);border-bottom:1px solid var(--line);background:#ffffffeb;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}.topbar-title,.topbar-actions{display:flex;align-items:center;gap:12px}.topbar-title h1{margin:0;font-size:19px;line-height:1.3}.topbar-title p{margin:3px 0 0;color:var(--muted);font-size:11px}.menu-button{display:none}.mode-badge{display:inline-flex;align-items:center;gap:6px;padding:6px 10px;border-radius:4px;color:var(--amber);background:var(--amber-soft);font-size:11px;font-weight:600}.mode-badge.live{color:var(--primary-dark);background:var(--primary-soft)}.mode-badge svg{width:14px;height:14px}.notification-dot{position:absolute;top:7px;right:7px;width:7px;height:7px;border:1px solid #fff;border-radius:50%;background:var(--red)}.workspace{width:min(100%,1500px);margin:0 auto;padding:34px clamp(20px,4vw,48px) 60px}.view{display:none}.view.active{display:block}.section-heading,.welcome-row{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:24px}.section-heading h2,.welcome-row h2{margin:5px 0 0;font-size:26px;line-height:1.35}.welcome-row p{margin:6px 0 0;color:var(--muted)}.stats-grid{display:grid;gap:14px;margin-bottom:20px;grid-template-columns:repeat(4,minmax(0,1fr))}.stat-card{position:relative;min-height:128px;overflow:hidden;padding:20px;border:1px solid var(--line);border-radius:6px;background:var(--surface)}.stat-top{display:flex;align-items:center;justify-content:space-between;color:var(--muted);font-size:12px}.stat-icon{display:grid;width:34px;height:34px;place-items:center;border-radius:6px;color:var(--accent, var(--primary));background:var(--accent-soft, var(--primary-soft))}.stat-icon svg{width:17px;height:17px}.stat-value{position:relative;z-index:1;display:block;margin-top:17px;font-size:26px;line-height:1.2}.panel{border:1px solid var(--line);border-radius:6px;background:var(--surface)}.panel-title{display:flex;min-height:56px;align-items:center;justify-content:space-between;gap:12px;padding:0 18px;border-bottom:1px solid var(--line)}.panel-title h3{margin:0;font-size:15px}.split-grid{display:grid;gap:20px;grid-template-columns:minmax(0,1.35fr) minmax(300px,.65fr)}.table-panel{overflow:hidden}.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse;white-space:nowrap}th,td{height:56px;padding:0 16px;border-bottom:1px solid #edf0f1;text-align:left}th{height:44px;color:var(--muted);background:#fafbfb;font-size:11px;font-weight:600}tbody tr:last-child td{border-bottom:0}tbody tr:hover{background:#fbfcfc}.cell-main{display:grid;gap:2px}.cell-main strong{max-width:260px;overflow:hidden;font-size:13px;text-overflow:ellipsis}.cell-main small{color:var(--muted);font-size:10px}.align-right{text-align:right}.actions{display:flex;justify-content:flex-end;gap:6px}.status{display:inline-flex;align-items:center;gap:6px;padding:4px 8px;border-radius:4px;font-size:11px;font-weight:600}.status:before{width:6px;height:6px;border-radius:50%;background:currentColor;content:""}.status.pending{color:var(--amber);background:var(--amber-soft)}.status.partial{color:#766012;background:#fff9d9}.status.paid,.status.active{color:var(--primary-dark);background:var(--primary-soft)}.status.cancelled,.status.disabled,.status.failed,.status.overdue{color:var(--red);background:var(--red-soft)}.status.reversed{color:#5e6970;background:#edf0f1}.method{display:inline-flex;align-items:center;gap:6px;font-size:12px}.method-dot{width:9px;height:9px;border-radius:3px;background:var(--primary)}.method.alipay .method-dot{background:var(--blue)}.progress{width:110px;height:5px;overflow:hidden;border-radius:3px;background:#e8ecee}.progress span{display:block;height:100%;background:var(--primary)}.filter-bar{display:grid;gap:10px;margin-bottom:14px;grid-template-columns:minmax(220px,360px) 150px auto}.search-field input,.filter-bar select{min-height:40px}.pagination{display:flex;min-height:58px;align-items:center;justify-content:flex-end;gap:8px;padding:10px 16px;border-top:1px solid var(--line)}.pagination span{margin-right:8px;color:var(--muted);font-size:12px}.activity-list,.message-list{display:grid}.activity-item,.message-item{display:flex;gap:12px;padding:15px 18px;border-bottom:1px solid #edf0f1}.activity-item:last-child,.message-item:last-child{border-bottom:0}.activity-icon,.message-icon{display:grid;width:34px;height:34px;flex:0 0 auto;place-items:center;border-radius:50%;color:var(--primary);background:var(--primary-soft)}.activity-copy,.message-copy{min-width:0;flex:1}.activity-copy strong,.message-copy strong{display:block;margin-bottom:3px;font-size:13px}.activity-copy p,.message-copy p{margin:0;overflow-wrap:anywhere;color:var(--muted);font-size:12px;line-height:1.65}.activity-copy time,.message-copy time{display:block;margin-top:5px;color:#9aa3a9;font-size:10px}.message-item.unread{background:#f3faf6}.message-item.unread .message-copy strong:after{display:inline-block;width:6px;height:6px;margin-left:7px;border-radius:50%;background:var(--primary);vertical-align:middle;content:""}.message-list.full .message-item{padding-top:18px;padding-bottom:18px}.message-button{width:100%;border:0;color:inherit;background:transparent;text-align:left}.message-button:hover{background:var(--surface-soft)}.push-layout{grid-template-columns:minmax(360px,.7fr) minmax(0,1.3fr)}.form-panel{align-self:start}.form-panel .stack-form{padding:20px}.form-grid{display:grid;gap:14px;grid-template-columns:repeat(2,minmax(0,1fr))}.empty-state{display:grid;min-height:180px;place-items:center;padding:28px;color:var(--muted);text-align:center}.empty-state div{display:grid;justify-items:center;gap:10px}.empty-state svg{width:30px;height:30px;color:#aeb7bc}.modal{width:min(92vw,620px);max-height:90vh;padding:0;overflow:hidden;border:0;border-radius:8px;background:transparent;box-shadow:var(--shadow)}.modal::backdrop{background:#0b12168f;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}.modal-shell{display:flex;max-height:90vh;flex-direction:column;background:var(--surface)}.modal-shell.wide{width:min(92vw,780px)}.modal-shell.compact{width:min(92vw,460px)}.modal header,.modal footer{display:flex;flex:0 0 auto;align-items:center;justify-content:space-between;gap:12px;padding:16px 20px}.modal header{border-bottom:1px solid var(--line)}.modal footer{justify-content:flex-end;border-top:1px solid var(--line)}.modal header h2{margin:4px 0 0;font-size:19px}.modal-body{overflow-y:auto;padding:22px 20px}.payment-body{display:grid;justify-items:center;gap:14px;text-align:center}.payment-summary{display:grid;justify-items:center;gap:4px}.payment-summary>span:last-child{color:var(--muted);font-size:12px}.checkout-section{display:grid;width:100%;gap:9px;text-align:left}.checkout-label{color:#39454d;font-size:12px;font-weight:600}.payment-method-control{display:grid;gap:8px;grid-template-columns:repeat(2,minmax(0,1fr))}.payment-method-option{position:relative;cursor:pointer}.payment-method-option input,.checkout-installment input{position:absolute;width:1px;min-height:1px;opacity:0;pointer-events:none}.payment-method-option>span{display:flex;min-height:54px;align-items:center;justify-content:center;gap:8px;border:1px solid var(--line);border-radius:6px;background:var(--surface)}.payment-method-option.wechat svg{color:var(--primary)}.payment-method-option.alipay svg{color:var(--blue)}.payment-method-option input:checked+span{border-color:var(--primary);background:var(--primary-soft);box-shadow:0 0 0 2px #07865314}.payment-method-option.alipay input:checked+span{border-color:var(--blue);background:var(--blue-soft);box-shadow:0 0 0 2px #1677ff14}.payment-method-option input:focus-visible+span{outline:3px solid rgba(22,119,255,.23);outline-offset:2px}.checkout-installments{display:grid;max-height:250px;overflow-y:auto;border:1px solid var(--line);border-radius:6px}.checkout-installment{position:relative;display:grid;min-height:48px;align-items:center;gap:8px;padding:8px 10px;border-bottom:1px solid #edf0f1;color:var(--muted);cursor:default;font-size:11px;grid-template-columns:46px minmax(72px,1fr) 78px 66px}.checkout-installment:last-child{border-bottom:0}.checkout-installment.selected{color:var(--ink);background:var(--primary-soft)}.checkout-installment strong{font-size:12px}.checkout-installment b{color:var(--muted);font-size:10px;font-weight:500;text-align:right}.checkout-installment.selected b{color:var(--primary-dark);font-weight:700}.checkout-installment .status{justify-self:end}.payment-brand{display:grid;width:54px;height:54px;place-items:center;border-radius:8px;color:#fff;background:var(--primary)}.payment-brand.alipay{background:var(--blue)}.payment-brand svg{width:28px;height:28px}.payment-amount{font-size:32px;font-weight:700}.payment-meta{display:grid;gap:5px;color:var(--muted);font-size:12px}.qr-box{display:grid;width:220px;min-height:220px;place-items:center;padding:10px;border:1px solid var(--line);border-radius:6px;background:#fff}.qr-box canvas{max-width:100%}.demo-payment{display:grid;width:100%;min-height:148px;place-items:center;align-content:center;gap:7px;border:1px dashed var(--line-strong);border-radius:6px;color:var(--muted);background:var(--surface-soft)}.demo-payment svg{width:30px;height:30px;color:var(--amber)}.demo-payment strong{color:var(--ink)}.demo-payment span{font-size:12px}.detail-grid{display:grid;gap:0 24px;grid-template-columns:repeat(2,minmax(0,1fr))}.detail-field{padding:12px 0;border-bottom:1px solid #edf0f1}.detail-field span{display:block;margin-bottom:5px;color:var(--muted);font-size:11px}.detail-field strong{overflow-wrap:anywhere;font-size:13px}.detail-section{margin-top:24px}.detail-section h3{margin:0 0 12px;font-size:14px}.payment-status-section{display:flex;align-items:center;justify-content:space-between;gap:16px}.payment-status-section h3{margin:0}.payment-status-toggle{display:inline-grid;overflow:hidden;border:1px solid var(--line-strong);border-radius:6px;grid-template-columns:repeat(2,minmax(78px,1fr))}.status-option{display:inline-flex;min-height:32px;align-items:center;justify-content:center;gap:6px;padding:0 10px;border:0;color:var(--muted);background:var(--surface);font-size:11px;font-weight:600;white-space:nowrap}.status-option+.status-option{border-left:1px solid var(--line-strong)}.status-option:not(:disabled):hover{background:var(--surface-soft)}.status-option:disabled:not(.active){cursor:not-allowed;opacity:.45}.status-option.active{opacity:1}.status-option.active.pending{color:var(--amber);background:var(--amber-soft)}.status-option.active.paid{color:var(--primary-dark);background:var(--primary-soft)}.status-option svg{width:14px;height:14px}.installment-list{display:grid;gap:8px;margin-top:20px}.installment-row{display:grid;align-items:center;gap:10px;padding:11px 12px;border:1px solid var(--line);border-radius:5px;grid-template-columns:50px minmax(100px,1fr) 100px 70px}.installment-row.admin{grid-template-columns:50px minmax(90px,1fr) 92px 66px 176px}.installment-row .payment-status-toggle{justify-self:end}.toast-region{position:fixed;right:22px;bottom:22px;z-index:100;display:grid;width:min(360px,calc(100vw - 32px));gap:9px}.toast{display:flex;align-items:flex-start;gap:10px;padding:13px 15px;border-left:4px solid var(--primary);border-radius:6px;color:#fff;background:#263138;box-shadow:var(--shadow);animation:toast-in .2s ease-out}.toast.error{border-left-color:#f36b5b}.toast svg{flex:0 0 auto}@keyframes toast-in{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}@media (max-width: 1100px){.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.split-grid{grid-template-columns:1fr}.push-layout{grid-template-columns:minmax(0,1fr)}}@media (max-width: 820px){.auth-shell{grid-template-columns:1fr}.auth-brand{display:none}.auth-panel{padding:32px 20px}.mobile-brand{display:flex}.app-shell{grid-template-columns:1fr}.sidebar{position:fixed;left:0;transform:translate(-100%);width:min(82vw,280px);transition:transform .2s ease}.sidebar.open{transform:translate(0)}.sidebar-close,.menu-button{display:inline-flex}.sidebar-scrim.open{position:fixed;top:0;right:0;bottom:0;left:0;z-index:25;display:block;background:#0a10146b}.topbar{height:68px;padding:0 16px}.workspace{padding:24px 16px 48px}.section-heading,.welcome-row{align-items:flex-start}}@media (max-width: 560px){.auth-panel{place-items:start center}.auth-heading h2{font-size:25px}.mode-badge{max-width:38px;overflow:hidden;padding:8px 10px;white-space:nowrap}.stats-grid,.form-grid{grid-template-columns:1fr}.stat-card{min-height:110px}.filter-bar{grid-template-columns:minmax(0,1fr) 112px}.filter-bar .button{grid-column:1 / -1}.section-heading,.welcome-row{flex-wrap:wrap}.section-heading h2,.welcome-row h2{font-size:22px}.detail-grid{grid-template-columns:1fr}.installment-row,.installment-row.admin{grid-template-columns:44px minmax(80px,1fr) 70px}.installment-row.admin .payment-status-toggle{width:100%;grid-column:1 / -1}.installment-row time{display:none}.checkout-installment{grid-template-columns:42px minmax(70px,1fr) 64px}.checkout-installment time{display:none}}
