:root{--green:#5eaa60;--green-deep:#254c32;--green-soft:#eaf4e8;--red:#d94f47;--ink:#28322b;--muted:#8d9790;--line:#e7eae5;--canvas:#f7f8f5;--white:#fff;--cream:#fff8ed;--shadow:0 7px 24px rgba(36,70,40,.045)}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;font-family:"PingFang SC","Microsoft YaHei",Arial,sans-serif;color:var(--ink);background:var(--canvas)}button,input,select,textarea{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,a:focus-visible{outline:2px solid var(--green);outline-offset:2px}a{color:inherit;text-decoration:none}img{display:block;max-width:100%}
.app-shell{min-height:100vh;display:flex}.sidebar{width:228px;flex:none;background:#fff;border-right:1px solid var(--line);display:flex;flex-direction:column;position:sticky;top:0;height:100vh;padding:25px 16px 18px}.brand{display:flex;align-items:center;gap:10px;padding:0 8px 26px}.brand-mark{display:grid;place-items:center;width:38px;height:38px;background:var(--green-deep);color:#fff;border-radius:11px;font-size:17px;font-weight:700}.brand strong{display:block;font-size:15px;letter-spacing:.02em}.brand small{display:block;color:var(--muted);font-size:10px;margin-top:2px}.nav-group-label{font-size:11px;color:#a7aea6;padding:6px 13px 10px}.sidebar nav{display:flex;flex-direction:column;gap:3px}.sidebar nav button{display:flex;align-items:center;gap:13px;width:100%;height:44px;border:0;background:transparent;border-radius:10px;padding:0 13px;text-align:left;color:#5f6b61;font-size:13px}.sidebar nav button:hover{background:#f6faf5}.sidebar nav button.active{background:var(--green-soft);color:#397e42;font-weight:700}.nav-icon{display:inline-grid;place-items:center;width:18px;font-size:19px;font-weight:400}.sidebar-bottom{margin-top:auto;border-top:1px solid var(--line);padding:16px 8px 0}.demo-badge{display:inline-block;background:#edf3eb;color:#6b8c6c;border-radius:5px;padding:4px 6px;font-size:10px;font-weight:700;letter-spacing:.08em}.sidebar-bottom p{font-size:11px;line-height:1.6;color:#9aa49a;margin:9px 0}.sidebar-bottom a{font-size:11px;color:#4d9454}
.workspace{flex:1;min-width:0}.topbar{height:98px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 clamp(20px,4vw,54px)}.breadcrumb{font-size:11px;color:#a0aaa0;margin-bottom:7px}.topbar h1{font-size:21px;line-height:1.2;margin:0;font-weight:700}.top-actions{display:flex;align-items:center;gap:20px;font-size:12px}.top-actions a{color:#458a4c}.save-status{color:#a1aaa0}.admin-avatar{display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:#e6efe5;color:#4b8653;font-size:12px;font-weight:700}main{max-width:1420px;margin:0 auto;padding:27px clamp(20px,4vw,54px) 60px}
.page-intro{display:flex;align-items:end;justify-content:space-between;gap:16px;margin-bottom:19px}.page-intro h2{margin:0;font-size:19px}.page-intro p{margin:7px 0 0;color:var(--muted);font-size:12px;line-height:1.6}.page-actions{display:flex;gap:9px;flex-wrap:wrap}.button{height:34px;padding:0 15px;border-radius:8px;border:1px solid #dfe5dc;background:#fff;color:#4e5f50;font-size:12px;display:inline-flex;align-items:center;justify-content:center;gap:5px}.button:hover{border-color:#a6c9a7}.button.primary{background:var(--green);color:#fff;border-color:var(--green)}.button.primary:hover{background:#4d9e51}.button.danger{color:var(--red);border-color:#f3d3d0}.button.tiny{height:27px;padding:0 9px;font-size:11px}.button:disabled{opacity:.45;cursor:not-allowed}
.card{background:#fff;border:1px solid var(--line);border-radius:13px;box-shadow:var(--shadow)}.card-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:17px 19px;border-bottom:1px solid var(--line)}.card-head h3{font-size:15px;margin:0}.card-head span,.card-head a{font-size:11px;color:var(--muted)}.card-body{padding:18px 19px}.grid-4{display:grid;grid-template-columns:repeat(4,1fr);gap:13px}.grid-2{display:grid;grid-template-columns:repeat(2,1fr);gap:15px}.stack{display:grid;gap:15px}.metric{padding:18px 18px 16px}.metric .label{font-size:12px;color:#879287}.metric .value{display:block;font-size:25px;font-weight:700;margin:12px 0 5px;letter-spacing:-.03em}.metric .note{font-size:11px;color:#a2aba2}.metric .accent{color:var(--red)}
.overview-hero{position:relative;overflow:hidden;background:linear-gradient(115deg,#eef6e8 0,#fff9ed 55%,#fff 100%);border-radius:15px;min-height:172px;display:flex;align-items:center;padding:27px 30px;margin-bottom:17px;border:1px solid #e7eee2}.overview-hero::after{content:"";position:absolute;right:0;top:0;bottom:0;width:41%;background:url('../assets/hero.jpg') center/cover;mask-image:linear-gradient(to right,transparent,#000 35%)}.overview-hero .copy{position:relative;z-index:1;max-width:65%}.overview-hero .eyebrow{font-size:10px;letter-spacing:.16em;color:#83a082;font-weight:700}.overview-hero h2{font-size:25px;margin:10px 0 8px;color:#284a31}.overview-hero p{font-size:12px;color:#779078;margin:0;line-height:1.6}.overview-hero .button{margin-top:15px;background:#fff}
.table-wrap{width:100%;overflow-x:auto}.table{width:100%;border-collapse:collapse;min-width:690px}.table th{text-align:left;color:#95a095;font-size:11px;font-weight:500;background:#fbfcfa;padding:11px 15px;white-space:nowrap}.table td{padding:13px 15px;border-top:1px solid #f0f2ef;font-size:12px;vertical-align:middle}.table td strong{font-weight:600}.table tr:hover td{background:#fcfdfb}.product-cell{display:flex;align-items:center;gap:10px;min-width:190px}.product-cell img{width:42px;height:42px;object-fit:cover;border-radius:6px;background:#f6f2e8}.product-cell span{display:block}.product-cell small{display:block;color:var(--muted);font-size:10px;margin-top:3px}.table-actions{display:flex;gap:6px;white-space:nowrap}.status{display:inline-flex;align-items:center;gap:5px;padding:4px 8px;border-radius:20px;background:#f0f3ef;color:#6f7d70;font-size:10px;white-space:nowrap}.status::before{content:"";width:5px;height:5px;border-radius:50%;background:currentColor}.status.green{background:#e9f6e9;color:#4a9e50}.status.orange{background:#fff1df;color:#c88832}.status.red{background:#fff0ee;color:#d77167}.status.gray{background:#f3f4f3;color:#999}.money{color:var(--red);font-weight:700}.muted{color:var(--muted)}.empty{padding:50px 15px;text-align:center;color:var(--muted);font-size:12px}
.toolbar{display:flex;align-items:center;gap:9px;margin-bottom:13px;flex-wrap:wrap}.toolbar input,.toolbar select{height:34px;border:1px solid var(--line);border-radius:8px;background:#fff;padding:0 11px;color:#435047;font-size:12px;min-width:170px}.toolbar select{min-width:112px}.toolbar .spacer{flex:1}.count-note{font-size:11px;color:var(--muted)}
.tabs{display:flex;gap:20px;border-bottom:1px solid var(--line);padding:0 19px}.tabs button{height:44px;border:0;background:none;color:#8c978d;font-size:12px;border-bottom:2px solid transparent}.tabs button.active{color:#3f8e48;border-bottom-color:var(--green);font-weight:700}.notice{padding:12px 15px;border-radius:9px;background:#fff9ed;color:#9a7e44;font-size:11px;line-height:1.6;margin-bottom:15px;border:1px solid #f4e9cf}.notice.green{background:#eff8ed;color:#5c895d;border-color:#e0efe0}.section-title{font-size:14px;font-weight:700;margin:0 0 12px}.subtle{color:var(--muted);font-size:11px;line-height:1.6}
.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px 20px}.field{display:flex;flex-direction:column;gap:7px}.field label{font-size:12px;font-weight:600}.field small{font-size:10px;color:#a3ada3;line-height:1.4}.field input,.field select,.field textarea{width:100%;border:1px solid #dfe6dc;border-radius:8px;min-height:39px;padding:9px 11px;background:#fff;font-size:12px;color:#354136}.field textarea{resize:vertical;min-height:84px}.field.full{grid-column:1/-1}.field .suffix{display:flex;align-items:center;position:relative}.field .suffix input{padding-right:48px}.field .suffix span{position:absolute;right:12px;color:#9ba69b;font-size:12px}.form-footer{display:flex;align-items:center;justify-content:space-between;margin-top:21px;padding-top:17px;border-top:1px solid var(--line);gap:14px}.form-footer .subtle{max-width:530px}.toggle-line{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:13px 0;border-bottom:1px solid #f0f2ef}.toggle-line:last-child{border-bottom:0}.toggle-line strong{display:block;font-size:12px}.toggle-line small{display:block;font-size:10px;color:var(--muted);margin-top:4px}.toggle{width:39px;height:23px;border:0;border-radius:20px;background:#d8ded8;position:relative;flex:none}.toggle::after{content:"";position:absolute;width:17px;height:17px;border-radius:50%;background:#fff;top:3px;left:3px;transition:left .18s}.toggle.on{background:var(--green)}.toggle.on::after{left:19px}
.chart{height:181px;display:flex;align-items:flex-end;gap:13px;padding:12px 7px 20px;border-bottom:1px solid var(--line)}.chart-col{flex:1;height:100%;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:7px}.chart-col .bar{width:min(30px,100%);background:linear-gradient(#92c991,#5eaa60);border-radius:5px 5px 0 0}.chart-col span{font-size:10px;color:#9ba79b;white-space:nowrap}.summary-list{display:grid;gap:13px}.summary-row{display:flex;justify-content:space-between;font-size:12px}.summary-row span:first-child{color:#8c988d}.summary-row strong{font-weight:600}
.modal-backdrop{position:fixed;inset:0;background:#1b2b1da6;z-index:30;display:flex;align-items:center;justify-content:center;padding:20px}.modal{width:min(540px,100%);max-height:calc(100vh - 40px);overflow:auto;background:#fff;border-radius:14px;box-shadow:0 25px 80px #0002}.modal-head{padding:19px 22px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center}.modal-head h3{margin:0;font-size:16px}.modal-head button{border:0;background:none;color:#8e998e;font-size:24px}.modal-body{padding:20px 22px}.modal-footer{padding:16px 22px;border-top:1px solid var(--line);display:flex;justify-content:flex-end;gap:8px}#toast{position:fixed;right:25px;bottom:22px;background:#254c32;color:#fff;border-radius:9px;padding:11px 16px;font-size:12px;box-shadow:0 8px 30px #203e2c3b;z-index:40;opacity:0;pointer-events:none;transform:translateY(8px);transition:opacity .2s,transform .2s}#toast.show{opacity:1;transform:translateY(0)}
@media(max-width:1100px){.grid-4{grid-template-columns:repeat(2,1fr)}}@media(max-width:800px){.app-shell{display:block}.sidebar{position:static;width:100%;height:auto;padding:12px 12px 8px;border-right:0;border-bottom:1px solid var(--line)}.brand{padding:0 4px 10px}.nav-group-label,.sidebar-bottom{display:none}.sidebar nav{flex-direction:row;overflow:auto;gap:5px;padding-bottom:3px}.sidebar nav button{width:auto;flex:none;padding:0 10px;height:36px;font-size:11px;gap:5px}.nav-icon{font-size:15px}.topbar{height:70px;padding:0 16px}.topbar h1{font-size:18px}.top-actions{gap:9px}.top-actions .save-status{display:none}main{padding:17px 12px 40px}.overview-hero{min-height:145px;padding:20px}.overview-hero .copy{max-width:75%}.overview-hero h2{font-size:20px}.grid-2{grid-template-columns:1fr}}@media(max-width:520px){.grid-4{grid-template-columns:repeat(2,1fr);gap:8px}.metric{padding:13px}.metric .value{font-size:20px}.page-intro{align-items:start;flex-direction:column}.form-grid{grid-template-columns:1fr}.field.full{grid-column:auto}.top-actions a{display:none}.overview-hero::after{width:35%;opacity:.6}.overview-hero .copy{max-width:85%}.tabs{overflow:auto;white-space:nowrap}.modal-backdrop{align-items:flex-end;padding:0}.modal{border-radius:14px 14px 0 0;max-height:85vh}}@media(prefers-reduced-motion:reduce){*{transition:none!important}}
