:root{font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;color:#17283a;background:#f4f7f8;font-size:14px}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer}a{color:inherit;text-decoration:none}.shell{display:flex;min-height:100vh}.sidebar{width:228px;background:#11273a;color:#e7f1f5;display:flex;flex-direction:column;flex:none}.brand{display:flex;align-items:center;gap:11px;padding:26px 21px 30px}.brand-mark{display:grid;place-items:center;width:37px;height:37px;border-radius:11px;background:#28b890;color:#fff;font-weight:900;font-size:23px}.brand strong{display:block;font-size:17px;letter-spacing:.04em}.brand small{display:block;font-size:9px;color:#83a2b4;letter-spacing:.2em;margin-top:3px}.sidebar nav{display:grid;gap:5px;padding:0 12px}.sidebar nav button{width:100%;background:none;border:0;color:#afc2cf;text-align:left;padding:12px 16px;border-radius:10px;display:flex;align-items:center;gap:11px}.sidebar nav button span{font-size:14px}.sidebar nav button:hover,.sidebar nav button.active{color:white;background:#254356}.sidebar nav button.active{border-left:3px solid #36c99d}.sidebar-foot{margin-top:auto;color:#88a1af;font-size:11px;line-height:1.8;padding:20px 24px}.main{flex:1;min-width:0}.topbar{display:flex;align-items:center;justify-content:space-between;gap:20px;background:#fff;border-bottom:1px solid #e5ebef;padding:22px 32px}.eyebrow{font-size:10px;font-weight:700;letter-spacing:.15em;color:#28a682}h1{font-size:23px;margin:5px 0 0}.top-actions{display:flex;align-items:center;gap:22px}.text-link{color:#189b77;font-weight:600;font-size:13px}.notice{background:#eaf8f2;color:#277f65;padding:10px 32px;font-size:12px;border-bottom:1px solid #d2eae0}.content{padding:27px 32px 60px;max-width:1500px}.page-head{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:20px}.page-head h2{font-size:18px;margin:0 0 5px}.page-head p{color:#7a8995;margin:0;font-size:12px}.btn{border:1px solid #d7e2e7;background:#fff;color:#294252;border-radius:8px;padding:9px 13px;font-weight:600;white-space:nowrap}.btn:hover{border-color:#2ca987;color:#178969}.btn.primary{background:#16a078;color:#fff;border-color:#16a078}.btn.primary:hover{background:#108968}.btn.danger{color:#c84c4c}.btn.small{padding:5px 9px;font-size:12px}.btn:disabled{opacity:.45;cursor:not-allowed}.card{background:#fff;border:1px solid #e1e8eb;border-radius:14px;box-shadow:0 3px 16px rgba(20,51,61,.03)}.stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin-bottom:22px}.stat{padding:21px}.stat .label{font-size:12px;color:#7c8b97}.stat strong{display:block;font-size:30px;margin:10px 0 4px}.stat small{font-size:11px;color:#91a1aa}.two-col{display:grid;grid-template-columns:1.3fr 1fr;gap:18px}.card-title{font-size:15px;font-weight:700;padding:18px 20px;border-bottom:1px solid #edf1f3}.audit-list,.task-list{padding:4px 20px 15px}.audit-row,.task-row{border-bottom:1px solid #edf1f3;padding:13px 0;display:flex;align-items:center;gap:12px}.audit-row:last-child,.task-row:last-child{border-bottom:0}.audit-row strong{font-size:12px}.audit-row small{display:block;color:#94a1ab;font-size:11px;margin-top:3px}.muted{color:#8998a3}.toolbar{padding:16px;margin-bottom:16px;display:flex;gap:10px;flex-wrap:wrap}.field,.toolbar input,.toolbar select{border:1px solid #d9e2e7;background:#fff;border-radius:8px;padding:10px 11px;outline:none;color:#263d4d}.field:focus,.toolbar input:focus,.toolbar select:focus{border-color:#20aa83;box-shadow:0 0 0 3px #20aa8320}.toolbar input{min-width:250px;flex:1}.toolbar select{min-width:155px}.table-wrap{overflow:auto}.table{border-collapse:collapse;width:100%;min-width:850px}.table th{background:#f8fafb;color:#7b8b98;font-size:11px;text-align:left;font-weight:700;padding:13px 16px;border-bottom:1px solid #e7eef1}.table td{padding:13px 16px;border-bottom:1px solid #edf1f3;vertical-align:middle;font-size:12px}.table tr:last-child td{border-bottom:0}.product-name{font-weight:700;color:#203445;font-size:13px}.product-sub{font-size:11px;color:#95a3ad;margin-top:3px}.price{color:#119873;font-weight:800}.badge{display:inline-block;border-radius:20px;font-weight:700;font-size:11px;padding:4px 9px;background:#edf2f5;color:#6f8490}.badge.green{background:#e3f8ef;color:#168767}.badge.amber{background:#fff2d9;color:#a46d0b}.badge.red{background:#fce9e7;color:#bd4c47}.actions{display:flex;gap:5px;justify-content:flex-end;flex-wrap:wrap}.empty{padding:40px;text-align:center;color:#83939e}.grid-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.form-field{display:flex;flex-direction:column;gap:6px;color:#536675;font-size:12px}.form-field.wide{grid-column:1/-1}.form-field textarea{min-height:84px;resize:vertical}.form-field .hint{font-size:11px;color:#9ba9b2}.modal-backdrop{position:fixed;inset:0;background:#0b2436aa;display:grid;place-items:center;padding:24px;z-index:20}.modal{width:min(900px,100%);max-height:92vh;display:flex;flex-direction:column;background:#fff;border-radius:16px;box-shadow:0 18px 60px #0003;overflow:hidden}.modal-header{display:flex;justify-content:space-between;align-items:center;padding:20px 24px;border-bottom:1px solid #e8edf0}.modal-header h2{font-size:18px;margin:0}.modal-header button{border:0;background:none;font-size:24px;color:#789}.modal-tabs{display:flex;gap:4px;padding:12px 20px;border-bottom:1px solid #ecf0f2;overflow:auto}.modal-tabs button{background:none;border:0;padding:8px 12px;color:#7b8b96;white-space:nowrap;border-radius:7px}.modal-tabs button.active{color:#138e6a;background:#e6f6ef;font-weight:700}.modal-body{padding:23px 25px;overflow:auto}.modal-footer{padding:15px 24px;border-top:1px solid #e8edf0;display:flex;justify-content:space-between;gap:8px}.check-row{display:flex;gap:15px;flex-wrap:wrap}.check-row label{display:flex;align-items:center;gap:5px;color:#405566}.mini-list{display:grid;gap:10px}.mini-list .card{padding:16px}.list-top{display:flex;justify-content:space-between;gap:12px;align-items:center}.list-top strong{font-size:14px}.list-top p{font-size:12px;color:#8796a0;margin:5px 0 0}.pill-list{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}.pill{background:#edf5f2;color:#248666;border-radius:20px;padding:4px 9px;font-size:11px}.info-line{color:#677986;font-size:12px;margin:6px 0}.task-row{justify-content:space-between}.task-row .task-meta{font-size:11px;color:#91a1ab;margin-top:5px}#toast{position:fixed;left:50%;bottom:30px;transform:translateX(-50%);background:#17364a;color:white;padding:10px 18px;border-radius:10px;opacity:0;pointer-events:none;transition:opacity .2s;z-index:30}#toast.show{opacity:1}@media(max-width:900px){.sidebar{width:70px}.brand{padding:20px 15px}.brand>div,.sidebar nav button span,.sidebar-foot{display:none}.sidebar nav{padding:0 8px}.sidebar nav button{justify-content:center;padding:12px}.topbar{padding:18px}.content{padding:18px}.notice{padding:10px 18px}.stat-grid{grid-template-columns:repeat(2,1fr)}.two-col{grid-template-columns:1fr}}@media(max-width:600px){.topbar{align-items:flex-start;flex-direction:column}.top-actions{flex-wrap:wrap;gap:10px}.stat-grid{grid-template-columns:1fr 1fr}.grid-fields{grid-template-columns:1fr}}
/* 云端种子测试后台的登录遮罩；本地演示模式不显示。 */
.login-gate:not([hidden]) { position: fixed; z-index: 1000; inset: 0; display: grid; place-items: center; background: #edf3f0; padding: 20px; }
.login-card { width: min(100%, 390px); padding: 30px; background: #fff; border-radius: 16px; box-shadow: 0 16px 60px #173a2926; display: grid; gap: 13px; }
.login-card h2 { margin: 0; }
.login-card p { color: #63746c; margin: 0 0 8px; line-height: 1.6; }
.login-card label { font-size: 13px; }
.login-card input { padding: 12px; border: 1px solid #cbd8d1; border-radius: 8px; font-size: 16px; }
.login-card button { justify-content: center; }
#loginError { color: #b5332c; min-height: 20px; font-size: 13px; }
.cover-editor{display:flex;align-items:center;gap:18px;flex-wrap:wrap;padding:12px;border:1px solid #e1e8eb;border-radius:10px;background:#fafcfb}.cover-preview{width:128px;height:128px;display:grid;place-items:center;background:#eaf2ee;border-radius:9px;color:#8ba19b;overflow:hidden}.cover-preview img{width:100%;height:100%;object-fit:cover}.cover-controls{display:flex;align-items:center;gap:8px;flex-wrap:wrap;flex:1}.cover-controls .hint{width:100%;line-height:1.5}
.head-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.head-actions a{display:inline-block}.filter-field{display:flex;flex-direction:column;gap:6px;font-size:11px;color:#718692}.filter-search{flex:1;min-width:220px}.product-filters{align-items:flex-end}.product-filters input{width:100%;min-width:0}.product-filters select{min-width:125px;max-width:200px}.filter-count{align-self:center;white-space:nowrap}.pagination{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:16px;padding:16px 0;color:#738591;font-size:12px}.pagination select{border:1px solid #d9e2e7;border-radius:6px;padding:7px;color:#294252;background:#fff}.image-gallery{display:flex;gap:12px;flex-wrap:wrap;padding:12px;border:1px solid #e1e8eb;border-radius:10px;background:#fafcfb;margin-bottom:10px}.gallery-item{position:relative;width:146px;display:flex;flex-direction:column;gap:8px;align-items:center}.gallery-item .cover-preview{width:146px;height:130px}.gallery-label{font-size:11px;color:#188969}.gallery-actions{display:flex;gap:4px}.gallery-actions .btn{padding:4px 7px}.gallery-empty{padding:24px;color:#8ba19b}.import-message{font-size:13px;color:#168767;line-height:1.6}.import-errors{padding:14px 18px;border:1px solid #f1cfca;border-radius:9px;background:#fff6f4;color:#a33e35;font-size:12px;line-height:1.8}.import-errors ul{padding-left:18px}.import-preview{min-width:650px}.head-actions .disabled{opacity:.45;cursor:not-allowed}@media(max-width:650px){.page-head{flex-wrap:wrap}.head-actions{gap:6px}.product-filters .filter-field{flex:1;min-width:130px}.product-filters select{max-width:none}.pagination{justify-content:flex-start}.gallery-item{width:125px}.gallery-item .cover-preview{width:125px;height:115px}}
.banner-management-note{padding:22px;margin-bottom:20px}.banner-management-note strong{color:#173745}.banner-management-note p{color:#789087;line-height:1.8;margin:10px 0 0}.banner-slot-preview{width:180px;aspect-ratio:2.25;background:#173745;border-radius:9px;display:flex;align-items:center;padding:18px;color:#9ce2c2;letter-spacing:.12em;font-size:11px;font-family:"DIN Alternate","PingFang SC",sans-serif}
.readonly-field{background:#f1f6f3;color:#248666;min-height:40px;display:flex;align-items:center}.editor-section-title{font-size:14px;color:#173745;margin:24px 0 14px}.grid-fields .wide{grid-column:1/-1}.modal-tabs button{font-size:12px}

.weight-inputs{display:flex;gap:16px}.weight-inputs>label{display:flex;flex:1;flex-direction:column;gap:8px}.weight-inputs>label>span{font-size:12px;color:#738591}.equipment-preview-backdrop{position:fixed;inset:0;background:rgba(13,32,41,.42);z-index:1000;display:flex;justify-content:flex-end}.equipment-preview-drawer{width:min(100vw,480px);height:100%;background:#f4f8f6;box-shadow:-12px 0 48px #102c3829;display:flex;flex-direction:column}.equipment-preview-drawer>header{display:flex;align-items:center;justify-content:space-between;background:#fff;padding:18px 22px;border-bottom:1px solid #dce8e4;gap:16px}.equipment-preview-drawer h2{font-size:17px;margin:0 0 7px}.equipment-preview-drawer p{font-size:12px;color:#748a86;margin:0}.equipment-preview-drawer iframe{border:0;width:100%;flex:1;min-height:0;background:#f4f8f6}

/* Full-width outsole and terrain selectors at the bottom of basic information. */
.outsole-terrain-field{border-top:1px solid #e5ebef;padding-top:18px;margin-top:8px}.outsole-terrain-field .check-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 20px}.outsole-terrain-field .check-row label{display:flex;align-items:flex-start;gap:8px;line-height:1.6;padding:6px 0;overflow-wrap:anywhere}.outsole-terrain-field input[type=checkbox]{flex:none;margin-top:4px}@media(max-width:640px){.outsole-terrain-field .check-row{grid-template-columns:1fr}}

.equipment-preview-panel{display:block;width:100%;flex:1;min-height:0;overflow:auto}

.gallery-item .cover-preview{height:auto;aspect-ratio:1/1}.gallery-item{width:176px}.gallery-item .cover-preview{width:176px}.gallery-actions{flex-wrap:wrap;justify-content:center}.image-crop-dialog{width:min(760px,94vw);max-height:92vh;overflow:auto;border:0;border-radius:14px;padding:24px;color:#173745}.image-crop-dialog::backdrop{background:#102c38bb}.image-crop-dialog h2{margin:0 0 12px}.image-crop-dialog p{line-height:1.6;color:#6d817e}.image-crop-dialog canvas{width:100%;height:auto;aspect-ratio:1/1;display:block;background:white;cursor:move;touch-action:none;border:1px solid #b9cdc5}.image-crop-dialog label{display:flex;align-items:center;gap:16px;margin:14px 0}.image-crop-dialog input{flex:1;min-width:0}.crop-actions{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap}

.image-crop-dialog canvas{width:min(100%,440px);margin:0 auto;aspect-ratio:1/1}

/* Keep modal chrome outside the sole form scroll container. */
.modal{isolation:isolate;min-height:0;max-height:92vh;max-height:92dvh}
.modal>.modal-header,.modal>.modal-tabs,.modal>.modal-footer{flex:0 0 auto;position:relative;z-index:2;background:#fff}
.modal>.modal-tabs{overflow-x:auto;overflow-y:hidden;min-height:58px;align-items:center}
.modal>.modal-body{flex:1 1 auto;min-height:0;overflow:auto;overscroll-behavior:contain;position:relative;z-index:0;isolation:isolate}
#editorForm{min-width:0}#editorForm fieldset{min-inline-size:0;max-width:100%;margin:8px 0 16px;padding:16px;border:1px solid #dce6e1;border-radius:10px}#editorForm legend{padding:0 8px;font-weight:600;color:#294d40}
