:root{font-family:"Microsoft YaHei",system-ui,sans-serif;color:#202c29;background:#f5f7f6;font-size:14px;letter-spacing:0;color-scheme:light;--green:#176c50;--border:#dce5df;--muted:#6b7b73}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button,a,input,select,textarea{outline-offset:3px}button{border:1px solid var(--border);background:white;border-radius:5px;padding:9px 13px;color:inherit;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:38px}button:hover{background:#f0f5f2}button:disabled{cursor:wait;opacity:.55}button.primary{background:var(--green);color:white;border-color:var(--green)}button.danger{color:#ad332e}.icon{width:36px;height:36px;min-height:36px;padding:8px;flex-shrink:0}.lucide{width:17px;height:17px;flex-shrink:0}input,textarea,select{width:100%;background:white;border:1px solid #cad7ce;border-radius:5px;padding:10px;color:#202c29}textarea{resize:vertical;min-height:88px;line-height:1.65}input[type=checkbox]{width:17px;height:17px;accent-color:var(--green)}label{display:block;margin-bottom:7px;font-weight:500}.field{margin-bottom:20px}.row{display:flex;align-items:center;gap:10px}.between{justify-content:space-between}.wrap{flex-wrap:wrap}.grow{flex:1;min-width:0}.muted,small{color:var(--muted);font-size:12px;line-height:1.7}.error{background:#fff1f0;color:#a72f29;padding:12px;border-radius:4px;line-height:1.65}.error:empty{display:none}.notice{background:#edf5f0;color:#426653;padding:12px 15px;border-left:3px solid #76a98e;font-size:12px;line-height:1.7}.shell{display:grid;grid-template-columns:220px minmax(0,1fr);min-height:100vh}.sidebar{background:#fff;border-right:1px solid var(--border);padding:25px 15px;display:flex;flex-direction:column;position:sticky;top:0;height:100vh}.brand{font-weight:700;font-size:20px;display:flex;gap:10px;align-items:center;padding:0 13px 28px}.brand-mark{background:var(--green);color:white;width:33px;height:33px;display:grid;place-items:center;border-radius:5px;font-size:17px}.nav{display:grid;gap:6px}.nav button{border:0;justify-content:flex-start;padding:12px 14px;color:#52645a;background:transparent}.nav button.active{background:#e8f2ec;color:var(--green);font-weight:700}.sidebar-footer{margin-top:auto;border-top:1px solid var(--border);padding:15px 12px 0;overflow-wrap:anywhere}.topbar{height:69px;padding:0 32px;display:flex;align-items:center;justify-content:space-between;background:white;border-bottom:1px solid var(--border)}main{padding:30px 32px 60px;max-width:1600px;margin:auto}.page-head{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;margin-bottom:25px}.page-head h1{font-size:24px;margin:0 0 8px}.page-head p{color:var(--muted);margin:0;font-size:13px;line-height:1.6}.stats{display:flex;gap:30px;padding:0 0 24px;border-bottom:1px solid var(--border);margin-bottom:24px}.stats b{font-size:24px;margin-right:7px}.toolbar{display:flex;justify-content:space-between;gap:15px;align-items:center;margin:20px 0}.search{max-width:340px;display:flex;gap:8px}.table-wrap{overflow:auto;background:white;border:1px solid var(--border);border-radius:6px}table{border-collapse:collapse;width:100%;text-align:left;min-width:680px}th{font-size:12px;font-weight:500;color:var(--muted);background:#fafcfb;padding:13px 16px;border-bottom:1px solid var(--border);white-space:nowrap}td{padding:15px 16px;border-bottom:1px solid #edf0ee;vertical-align:middle}tr:last-child td{border:0}.product-cell{display:flex;gap:12px;align-items:center;min-width:230px}.thumb,.placeholder{width:56px;height:56px;border-radius:4px;background:#eaf0eb;object-fit:cover;display:grid;place-items:center;color:#698879;flex-shrink:0}.badge{font-size:12px;background:#e8f4ec;color:#226e49;padding:4px 8px;border-radius:4px;white-space:nowrap}.badge.gray{background:#f0f1f2;color:#68716b}.badge.red{background:#fceeed;color:#a84036}.empty{padding:65px 22px;text-align:center;background:#fff;border-block:1px solid var(--border)}.empty .lucide{width:32px;height:32px;color:#90a69a;margin-bottom:10px}.empty h2{font-size:17px;margin:7px}.editor{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:26px;align-items:start}.section{padding:0 0 25px;margin-bottom:25px;border-bottom:1px solid var(--border)}.section h2{font-size:16px;margin:0 0 20px}.two{display:grid;grid-template-columns:1fr 1fr;gap:18px}.side-panel{border:1px solid var(--border);background:white;border-radius:6px;padding:20px}.cover{display:block;width:100%;max-height:200px;object-fit:contain;background:#edf2ee;margin-bottom:12px;border-radius:4px}.resource{display:flex;gap:12px;align-items:center;background:white;border-bottom:1px solid var(--border);padding:15px 0}.resource-title{border:0;padding:4px 0;background:transparent;font-weight:500}.resource-actions{display:flex;gap:5px}.check{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--muted)}.savebar{display:flex;gap:10px;padding-top:10px;align-items:center}.preview-phone{width:min(100%,365px);margin:0 auto;background:#f6f8f6;border:1px solid var(--border);border-radius:8px;overflow:hidden}.preview-cover{width:100%;max-height:210px;object-fit:cover}.preview-body{padding:23px}.preview-body h2{font-size:22px;margin-top:0}.preview-body h3{font-size:16px}.preview-resource{background:white;padding:14px;margin-bottom:8px;border:1px solid var(--border);border-radius:4px}.preview-contact{background:var(--green);color:white;text-align:center;padding:13px;border-radius:5px;margin-top:22px}.auth{min-height:100vh;display:grid;place-items:center;padding:20px}.auth form{width:min(100%,400px)}.auth h1{font-size:27px;margin:25px 0 8px}.auth .brand{padding:0}.auth p{color:var(--muted);margin-bottom:28px}.auth button.primary{width:100%}.inline-help{margin-top:14px;font-size:12px;color:var(--muted);line-height:1.8}.tabs{display:flex;gap:8px;margin-bottom:22px}.tabs .active{color:var(--green);border-color:var(--green);background:#edf5f0}.pagination{display:flex;justify-content:flex-end;gap:12px;align-items:center;margin-top:20px}.file-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:15px}.file-item{border:1px solid var(--border);background:white;border-radius:6px;padding:17px}.file-name{overflow-wrap:anywhere;font-weight:500;line-height:1.6;margin:12px 0 7px}.file-item img{width:100%;height:130px;object-fit:contain;background:#f2f5f3;border-radius:4px}.qr-preview{width:180px;height:180px;object-fit:contain;background:white;border:1px solid var(--border);margin-bottom:12px}dialog{border:1px solid var(--border);border-radius:8px;padding:25px;width:min(92vw,590px);max-height:90vh;overflow:auto;box-shadow:0 20px 70px #203f2e30}dialog::backdrop{background:#132a2266}dialog h2{font-size:19px;margin:0 0 18px}.dialog-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:17px}.dialog-top h2{margin:0}.dialog-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:22px}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:#21382e;color:white;padding:12px 20px;border-radius:5px;z-index:10;max-width:90vw;display:none}#toast.visible{display:block}.initial{padding:50px;color:var(--muted)}progress{width:100%;height:9px;accent-color:var(--green)}.upload-progress{margin-bottom:20px}.upload-progress:empty{display:none}a{color:var(--green)}.link-box{word-break:break-all;background:#f2f6f3;padding:12px;line-height:1.7;border-radius:4px}.form-narrow{max-width:800px}.security-meta{font-size:12px;line-height:1.8;color:var(--muted);margin-bottom:20px}
@media(max-width:900px){.shell{grid-template-columns:175px minmax(0,1fr)}main{padding:25px 20px}.topbar{padding:0 20px}.editor{grid-template-columns:1fr}.side-panel{max-width:100%}.brand{font-size:17px;padding-inline:4px}.sidebar{padding-inline:10px}.two{gap:12px}.page-head{flex-wrap:wrap}}
@media(max-width:600px){.shell{display:block}.sidebar{height:auto;position:static;padding:13px;border-right:0;border-bottom:1px solid var(--border)}.brand{padding:0 0 13px}.nav{display:flex;overflow:auto;gap:4px}.nav button{white-space:nowrap;font-size:12px;padding:8px 10px}.nav .lucide{display:none}.sidebar-footer{display:none}.topbar{height:49px;padding:0 15px;font-size:12px}main{padding:22px 15px}.two{grid-template-columns:1fr;gap:0}.stats{gap:18px}.stats b{font-size:21px}.page-head h1{font-size:22px}.resource{flex-wrap:wrap}.resource-actions{margin-left:auto}.toolbar{align-items:flex-start;flex-wrap:wrap}.search{width:100%;max-width:none}.savebar{flex-wrap:wrap}.auth .brand{padding:0}.topbar .muted{display:none}dialog{padding:20px}.file-grid{grid-template-columns:1fr 1fr;gap:10px}.file-item{padding:12px}.file-item img{height:100px}}
