:root { color-scheme:light; --red:#e1251b; --ink:#191817; --muted:#77716c; --line:#e9e5e1; --paper:#fff; --bg:#f5f3f0; --soft:#faf8f6; --green:#18794e; }
* { box-sizing:border-box; }
body { margin:0; background:var(--bg); color:var(--ink); font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif; }
button,input,textarea,select { font:inherit; }
button { cursor:pointer; }
.topbar { position:sticky; top:0; z-index:20; display:flex; align-items:center; justify-content:space-between; min-height:76px; padding:12px max(24px,calc((100vw - 1180px)/2)); background:rgba(255,255,255,.94); border-bottom:1px solid var(--line); backdrop-filter:blur(16px); }
.brand-lockup,.top-actions { display:flex; align-items:center; gap:13px; }
.brand-lockup strong { display:block; font-size:18px; }
.brand-lockup small { display:block; margin-top:3px; color:var(--muted); font-size:12px; }
.brand-mark { display:flex; width:45px; height:45px; align-items:center; justify-content:center; border-radius:13px; background:var(--red); color:#fff; font-weight:800; }
.save-state { color:#8c857f; font-size:12px; }
.save-state.saving { color:var(--red); }
.dashboard { width:min(1180px,calc(100% - 40px)); margin:28px auto 70px; }
.intro { display:flex; min-height:210px; align-items:center; justify-content:space-between; gap:30px; padding:40px; border-radius:28px; background:#fff; box-shadow:0 16px 46px rgba(53,43,35,.06); }
.intro span,.eyebrow { color:var(--red); font-size:12px; font-weight:750; letter-spacing:2px; }
.intro h1 { max-width:680px; margin:14px 0 12px; font-size:34px; line-height:1.2; }
.intro p { max-width:720px; margin:0; color:var(--muted); line-height:1.8; }
.intro-badge { flex:0 0 auto; padding:25px 30px; border-radius:22px; background:#fff3f2; color:#a43a34; font-size:14px; line-height:1.7; text-align:center; }
.intro-badge strong { color:var(--red); font-size:20px; }
.tabs { display:flex; gap:8px; margin:20px 0; padding:7px; overflow:auto; border-radius:16px; background:#eae6e2; }
.tabs button { min-width:128px; padding:12px 18px; border:0; border-radius:11px; background:transparent; color:#6f6963; white-space:nowrap; }
.tabs button.active { background:#fff; color:var(--ink); font-weight:700; box-shadow:0 4px 14px rgba(30,25,22,.06); }
.panel { min-height:420px; padding:30px; border-radius:24px; background:var(--paper); }
.panel-head { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-bottom:26px; }
.panel-head h2 { margin:6px 0; font-size:26px; }
.panel-head p,.section-title p { margin:0; color:var(--muted); font-size:14px; line-height:1.6; }
.primary,.secondary,.link-button,.add-button,.upload-button { border:0; border-radius:22px; }
.primary { padding:12px 22px; background:var(--red); color:#fff; font-weight:700; }
.secondary { padding:11px 18px; background:#f0ece8; color:#4e4945; }
.link-button { padding:9px 15px; background:#f1efec; color:#4e4945; }
.section-card { margin-top:18px; padding:24px; border:1px solid var(--line); border-radius:20px; background:var(--soft); }
.section-title { display:flex; align-items:flex-end; justify-content:space-between; gap:20px; margin-bottom:20px; }
.section-title h3 { margin:0; font-size:19px; }
.form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:17px; }
.field { display:flex; min-width:0; flex-direction:column; gap:8px; color:#59534e; font-size:13px; font-weight:650; }
.field small,.switch-field small { color:#96908a; font-size:12px; font-weight:400; line-height:1.5; }
input,textarea,select { width:100%; padding:13px 14px; border:1px solid var(--line); border-radius:11px; outline:0; background:#fff; color:var(--ink); }
input:focus,textarea:focus,select:focus { border-color:#eaa49f; box-shadow:0 0 0 3px #fff1f0; }
textarea { min-height:92px; resize:vertical; line-height:1.6; }
.full { grid-column:1 / -1; }
.switch-field { display:flex; flex-direction:row; align-items:flex-start; gap:12px; padding:15px; border-radius:13px; background:#fff; }
.switch-field input { width:19px; height:19px; margin:2px 0 0; accent-color:var(--red); }
.switch-field span { display:flex; flex-direction:column; gap:5px; }
.card-list { display:grid; gap:15px; margin-top:16px; }
.editor-card { padding:21px; border:1px solid var(--line); border-radius:18px; background:#fff; }
.editor-card summary { display:flex; align-items:center; gap:12px; cursor:pointer; font-size:17px; font-weight:700; list-style:none; }
.editor-card summary::after { content:"展开"; margin-left:auto; color:#aaa39d; font-size:12px; font-weight:500; }
.editor-card[open] summary::after { content:"收起"; }
.editor-card summary small { color:#928b85; font-size:13px; font-weight:400; }
.editor-card > .form-grid { margin-top:20px; }
.image-row { display:flex; align-items:center; gap:16px; margin-top:20px; }
.image-preview { display:flex; width:150px; height:92px; flex:0 0 auto; align-items:center; justify-content:center; overflow:hidden; border-radius:13px; background:#eeeae6; color:#a39c96; font-size:13px; }
.image-preview img { width:100%; height:100%; object-fit:cover; }
.product-preview { width:112px; height:112px; color:#3c3835; font-size:18px; font-weight:750; }
.upload-button { display:inline-flex; padding:10px 16px; background:#191817; color:#fff; font-size:13px; font-weight:650; cursor:pointer; }
.upload-button input { display:none; }
.text-danger { display:block; margin-top:10px; padding:0; border:0; background:transparent; color:#bf554e; font-size:12px; }
.add-button { width:100%; margin-top:14px; padding:13px; border:1px dashed #d5cec8; background:#fff; color:#685f59; }
.toolbar { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:18px; }
.toolbar input { max-width:420px; }
.toolbar span { color:var(--muted); font-size:13px; }
.status-pill { display:inline-flex; padding:5px 10px; border-radius:14px; background:#fff1f0; color:var(--red); font-size:12px; font-weight:650; }
.status-pill.muted { background:#efedeb; color:#7b746e; }
.spec-head { display:flex; align-items:center; justify-content:space-between; margin-top:22px; padding-top:20px; border-top:1px solid var(--line); }
.spec-head div { display:flex; flex-direction:column; gap:4px; }
.spec-head small { color:var(--muted); font-size:12px; }
.spec-head button { border:0; background:transparent; color:var(--red); font-weight:650; }
.spec-row { position:relative; display:grid; grid-template-columns:1.4fr 1fr .8fr 32px; gap:10px; align-items:end; margin-top:11px; padding:13px; border-radius:13px; background:#f8f6f4; }
.spec-row label { display:flex; flex-direction:column; gap:6px; color:#766f69; font-size:11px; }
.remove-spec { width:32px; height:42px; border:0; background:transparent; color:#b7514a; font-size:22px; }
.card-actions { display:flex; justify-content:flex-end; gap:10px; margin-top:20px; }
.stat-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:14px; }
.stat-grid article { display:flex; min-height:150px; flex-direction:column; padding:22px; border-radius:18px; background:var(--soft); }
.stat-grid strong { font-size:30px; }
.stat-grid span { margin-top:10px; font-weight:700; }
.stat-grid small { margin-top:auto; color:var(--muted); }
.quick-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:14px; margin-top:20px; }
.quick-grid button { display:flex; min-height:110px; flex-direction:column; align-items:flex-start; gap:9px; padding:22px; border:1px solid var(--line); border-radius:18px; background:#fff; text-align:left; }
.quick-grid button:hover { border-color:#e8aaa5; box-shadow:0 12px 30px rgba(80,55,45,.07); }
.quick-grid span { color:var(--muted); font-size:13px; }
.warning-bar { margin-top:14px; padding:13px 16px; border-radius:12px; background:#fff5df; color:#835b14; font-size:13px; }
.filter-row { display:flex; gap:8px; overflow:auto; margin-bottom:18px; }
.filter-row button { display:flex; gap:7px; padding:9px 14px; border:1px solid var(--line); border-radius:18px; background:#fff; white-space:nowrap; }
.filter-row button.active { border-color:var(--red); color:var(--red); }
.filter-row small { display:flex; min-width:18px; height:18px; align-items:center; justify-content:center; border-radius:9px; background:#f1eeeb; font-size:10px; }
.order-card summary strong { margin-left:auto; color:var(--red); font-size:17px; }
.order-card summary::after { margin-left:0; }
.order-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:12px; margin-top:18px; padding:16px; border-radius:14px; background:#faf8f6; }
.order-grid div { display:flex; flex-direction:column; gap:6px; }
.order-grid .wide { grid-column:1 / -1; }
.order-grid small { color:var(--muted); }
.order-grid strong { font-size:13px; line-height:1.65; }
.order-editor { margin-top:18px; }
.readiness { margin-bottom:18px; padding:20px; border-radius:16px; }
.readiness strong { font-size:17px; }
.readiness p { margin:7px 0 0; line-height:1.7; }
.readiness.ready { background:#eaf7f0; color:var(--green); }
.readiness.waiting { background:#fff5df; color:#795717; }
.safe-note { margin-top:16px; padding:19px; border-radius:15px; background:#f2f0ed; color:#5d5752; }
.safe-note p { margin:7px 0 0; font-size:13px; line-height:1.7; }
.empty,.loading { padding:70px 20px; color:#99928c; text-align:center; }
.toast { position:fixed; z-index:50; right:26px; bottom:26px; max-width:360px; padding:14px 20px; border-radius:13px; background:#1f1d1b; color:#fff; opacity:0; transform:translateY(20px); pointer-events:none; transition:.2s; box-shadow:0 16px 50px rgba(0,0,0,.18); }
.toast.show { opacity:1; transform:none; }
.toast.error { background:#a8322b; }
.login-body { display:grid; min-height:100vh; place-items:center; padding:24px; background:#f1efec; }
.login-card { width:min(440px,100%); padding:36px; border-radius:28px; background:#fff; box-shadow:0 24px 70px rgba(44,35,29,.12); }
.login-card form { display:grid; gap:17px; margin-top:30px; }
.login-card form button { height:48px; border:0; border-radius:24px; background:var(--red); color:#fff; font-weight:700; }
.form-message { min-height:20px; margin:0; color:var(--red); font-size:13px; text-align:center; }
@media(max-width:820px){ .stat-grid{grid-template-columns:repeat(2,1fr)}.spec-row{grid-template-columns:1fr 1fr}.remove-spec{position:absolute;right:8px;top:4px}.intro-badge{display:none} }
@media(max-width:720px){ .dashboard{width:calc(100% - 24px);margin-top:12px}.intro{min-height:0;padding:28px 22px}.intro h1{font-size:27px}.panel{padding:20px}.form-grid,.quick-grid,.order-grid{grid-template-columns:1fr}.full,.order-grid .wide{grid-column:auto}.tabs button{min-width:108px}.panel-head,.section-title{align-items:flex-start;flex-direction:column}.panel-head>.primary{width:100%}.topbar{padding:12px 16px}.save-state{display:none}.brand-lockup small{max-width:190px}.spec-row{grid-template-columns:1fr}.card-actions{flex-direction:column}.card-actions button{width:100%}.editor-card summary{flex-wrap:wrap}.order-card summary strong{margin-left:0}.image-row{align-items:flex-start}.login-card{padding:28px 24px}.toast{right:14px;bottom:14px;left:14px;max-width:none}.stat-grid article{min-height:130px} }
