:root {
  --ink: #19262b;
  --muted: #718187;
  --faint: #aab6b8;
  --line: #dce5e4;
  --surface: #ffffff;
  --canvas: #f3f7f6;
  --sidebar: #14272b;
  --sidebar-muted: #8ba3a4;
  --accent: #18a989;
  --accent-dark: #087c67;
  --accent-soft: #e5f6f0;
  --warning: #d58b47;
  --danger: #c96767;
  --shadow: 0 16px 40px rgba(21, 52, 54, .08);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 1060px; background: var(--canvas); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }
.app-shell { min-height: 100vh; display: flex; }
.sidebar { width: 238px; flex: 0 0 238px; min-height: 100vh; display: flex; flex-direction: column; padding: 28px 16px 18px; color: white; background: var(--sidebar); }
.brand { display: flex; align-items: center; gap: 11px; padding: 0 11px 34px; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; color: #dffff6; background: #179c82; font-size: 12px; font-weight: 800; letter-spacing: .5px; }
.brand strong, .brand span { display: block; }
.brand strong { font-size: 15px; letter-spacing: .2px; }
.brand span { margin-top: 3px; color: var(--sidebar-muted); font-size: 11px; }
.sidebar-caption, .section-kicker, .eyebrow { color: #96aaa9; font-size: 10px; letter-spacing: 1.5px; font-weight: 800; }
.sidebar-caption { margin: 0 12px 11px; }
.side-nav { display: grid; gap: 5px; }
.nav-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 13px; border: 0; border-radius: 7px; color: #adc0bf; background: transparent; text-align: left; font-size: 13px; transition: .18s; }
.nav-item:hover { color: white; background: rgba(255,255,255,.06); }
.nav-item.active { color: #e2fff7; background: rgba(24,169,137,.18); box-shadow: inset 3px 0 #25c5a3; }
.nav-icon { width: 17px; color: #70a8a0; font-size: 16px; text-align: center; }
.nav-item.active .nav-icon { color: #5ae0bd; }
.sidebar-foot { margin-top: auto; padding: 17px 8px 0; border-top: 1px solid rgba(255,255,255,.09); }
.format-chip { display: flex; gap: 9px; align-items: center; padding: 11px 10px; border-radius: 7px; background: rgba(255,255,255,.05); }
.format-chip b, .format-chip small { display: block; }
.format-chip b { font-size: 11px; color: #d6e4e1; }
.format-chip small { margin-top: 3px; color: #76918f; font-size: 10px; }
.dot, .language-dot, .device-led { width: 7px; height: 7px; border-radius: 50%; background: #2cc39d; box-shadow: 0 0 0 4px rgba(44,195,157,.12); }
.help-link { margin-top: 18px; padding: 5px 10px; border: 0; color: #76918f; background: transparent; font-size: 11px; }
.help-link:hover { color: #b9d0cd; }
.main-area { flex: 1; min-width: 0; }
.topbar { height: 67px; display: flex; align-items: center; justify-content: space-between; padding: 0 35px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.82); }
.crumbs { display: flex; align-items: center; gap: 11px; font-size: 12px; color: var(--muted); }
.crumbs b { color: #c2cccb; font-weight: 400; }.crumbs strong { color: var(--ink); }
.top-actions, .canvas-actions, .view-toggle { display: flex; align-items: center; gap: 10px; }.toolbar-divider { width: 1px; height: 18px; margin: 0 2px; background: var(--line); }
.save-state { display: flex; align-items: center; gap: 7px; margin-right: 9px; color: var(--muted); font-size: 11px; }.save-state i { width: 6px; height: 6px; border-radius: 50%; background: #3db896; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 33px; padding: 0 13px; border: 1px solid transparent; border-radius: 5px; font-size: 12px; font-weight: 700; transition: .16s; }.button span { font-weight: 500; font-size: 14px; }
.button.primary { color: white; background: var(--accent); box-shadow: 0 5px 12px rgba(24,169,137,.18); }.button.primary:hover { background: var(--accent-dark); }.button.secondary { color: #536466; border-color: var(--line); background: white; }.button.secondary:hover { border-color: #bdcdcb; background: #f9fbfb; }.button.small { min-height: 30px; font-size: 11px; }
.workspace, .preview-view { padding: 29px 35px 42px; }.workspace-head, .preview-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 26px; }.eyebrow { margin: 0 0 8px; color: var(--accent-dark); }.workspace h1, .preview-view h1 { margin: 0; font-size: 26px; letter-spacing: -.4px; }.muted { margin: 7px 0 0; color: var(--muted); font-size: 12px; }.view-toggle { padding: 3px; border: 1px solid var(--line); border-radius: 6px; background: #eaf1f0; }.toggle { min-width: 59px; padding: 7px 13px; border: 0; border-radius: 4px; color: #7a8989; background: transparent; font-size: 11px; }.toggle.active { color: var(--ink); background: white; box-shadow: 0 2px 6px rgba(31,62,65,.1); }
.editor-grid { display: grid; grid-template-columns: 184px minmax(460px, 1fr) 280px; gap: 16px; align-items: start; }.panel { border: 1px solid var(--line); border-radius: 8px; background: var(--surface); box-shadow: var(--shadow); }.panel-title { display: flex; justify-content: space-between; align-items: center; padding: 17px 17px 14px; border-bottom: 1px solid #edf1f0; }.panel-title h2 { margin: 6px 0 0; font-size: 13px; }.section-kicker { color: #9ba9a8; font-size: 9px; }.icon-button, .close-button { display: grid; place-items: center; width: 25px; height: 25px; border: 1px solid var(--line); border-radius: 5px; color: var(--accent-dark); background: white; font-size: 17px; line-height: 1; }.icon-button:hover { border-color: var(--accent); background: var(--accent-soft); }.page-list { padding: 9px 8px; }.page-item { display: flex; align-items: center; gap: 9px; width: 100%; margin: 2px 0; padding: 10px 9px; border: 0; border-radius: 5px; color: #748386; background: transparent; text-align: left; font-size: 12px; }.page-item:hover { background: #f1f7f5; }.page-item.active { color: var(--accent-dark); background: var(--accent-soft); font-weight: 700; }.page-item-index { display: grid; place-items: center; width: 19px; height: 19px; border-radius: 4px; color: #758b89; background: #edf2f1; font-size: 9px; }.page-item.active .page-item-index { color: var(--accent-dark); background: #c8eee3; }.page-panel-foot { display: flex; justify-content: space-between; align-items: center; padding: 12px 13px; border-top: 1px solid #edf1f0; color: #9aa7a8; font-size: 10px; }.text-button { padding: 2px; border: 0; color: var(--accent-dark); background: transparent; font-size: 11px; font-weight: 700; }.text-button:hover { color: var(--accent); }
.canvas-column { min-width: 0; }.canvas-toolbar { display: flex; justify-content: space-between; align-items: center; height: 47px; padding: 0 14px; border: 1px solid var(--line); border-radius: 8px 8px 0 0; background: white; }.canvas-location { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; }.canvas-location strong { color: var(--ink); font-size: 12px; }.slash { color: #c4cecc; }.tiny-square { width: 7px; height: 7px; border-radius: 2px; background: var(--accent); }.tool-button { padding: 5px 7px; border: 0; color: var(--accent-dark); background: transparent; font-size: 11px; }.tool-button:hover { border-radius: 4px; background: var(--accent-soft); }.tool-button.danger { color: #b27a7a; }.tool-button.danger:hover { background: #fff1f1; }.canvas-wrap { min-height: 620px; padding: 18px; overflow: auto; border: 1px solid var(--line); border-top: 0; background: #eaf1ef; }.design-canvas { width: min(100%, 680px); min-height: 585px; margin: 0 auto; padding: 20px 22px 28px; border: 1px solid #d7e1df; background: white; box-shadow: 0 8px 25px rgba(32,70,69,.09); }.canvas-hint { display: flex; justify-content: space-between; padding: 10px 4px 0; color: #94a2a1; font-size: 10px; }.hint-key { color: #b3bfbd; }
.row-block { position: relative; display: flex; align-items: center; gap: 9px; min-height: 48px; margin: 4px 0; padding: 5px 6px; border: 1px dashed transparent; border-radius: 5px; transition: border-color .16s, background .16s, transform .16s; }.row-block:hover { border-color: #c6e6df; background: #fbfefd; }.row-block.selected-row { border-color: #8cd9c5; background: #f5fcfa; }.row-block.dragging { opacity: .4; transform: scale(.99); }.row-block.drag-over { border-color: #18a989; background: #e5f6f0; }.row-controls { flex: 1; display: flex; align-items: center; gap: 8px; min-width: 0; }.row-handle { width: 17px; opacity: .35; color: #6f9992; font-size: 13px; cursor: grab; user-select: none; }.row-handle:active { cursor: grabbing; }.row-block:hover .row-handle, .selected-row .row-handle { opacity: 1; }.design-control { min-width: 0; display: flex; align-items: center; gap: 8px; padding: 7px 8px; border: 1px solid transparent; border-radius: 4px; color: #415254; background: transparent; cursor: grab; transition: .15s; }.design-control:active { cursor: grabbing; }.design-control:hover { border-color: #bbded5; background: #f5fcfa; }.design-control.selected { border-color: var(--accent); background: #ecfaf6; box-shadow: 0 0 0 2px rgba(24,169,137,.09); }.design-control.dragging { opacity: .35; }.design-control.drag-over { border-color: #18a989; background: #dff7ef; }.design-control label { overflow: hidden; color: #59706f; font-size: 11px; white-space: nowrap; text-overflow: ellipsis; }.canvas-title { display: block; width: 100%; padding: 9px 8px; color: #243739; font-weight: 700; }.canvas-title.title-large { font-size: 16px; }.canvas-title.title-main { font-size: 20px; }.canvas-title.empty-space { padding: 0; }.mini-input, .mini-select { width: 112px; height: 27px; padding: 0 7px; border: 1px solid #d2dddb; border-radius: 4px; color: #899795; background: #f9fbfb; font-size: 10px; }.mini-checkbox { width: 14px; height: 14px; accent-color: var(--accent); }.mini-select { width: 103px; }.mini-button { min-width: 72px; height: 28px; padding: 0 12px; border: 0; border-radius: 4px; color: white; background: #1aab8d; font-size: 10px; }.mini-tabs, .preview-tabs { display: flex; align-items: flex-end; gap: 2px; }.mini-tabs span { padding: 7px 10px; border-bottom: 2px solid transparent; color: #81908f; font-size: 10px; }.mini-tabs span.active { border-color: var(--accent); color: var(--accent-dark); font-weight: 700; }.row-placeholder { flex: 1; min-height: 34px; border: 1px dashed #e2eae8; border-radius: 4px; }.row-add-control { flex: 0 0 auto; color: #aab9b7; font-size: 12px; }
.inspector-panel { min-height: 620px; }.inspector-heading { align-items: flex-start; }.selection-badge { max-width: 90px; overflow: hidden; padding: 4px 7px; border-radius: 4px; color: #7a8b8a; background: #f1f5f4; font-size: 9px; white-space: nowrap; text-overflow: ellipsis; }.inspector-content { padding: 16px; }.empty-inspector { padding: 50px 10px; color: #99a7a6; text-align: center; font-size: 11px; line-height: 1.8; }.empty-inspector b { display: block; margin-bottom: 7px; color: #536766; font-size: 22px; font-weight: 400; }.inspector-group { margin-bottom: 17px; }.inspector-group-title { margin-bottom: 9px; color: #82918f; font-size: 10px; font-weight: 800; }.field { margin-bottom: 10px; }.field label { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 5px; color: #667877; font-size: 10px; }.field label span { color: #abb6b4; }.field input, .field textarea, .field select { width: 100%; padding: 8px 9px; border: 1px solid #dce5e3; border-radius: 4px; outline: 0; color: #405251; background: #fbfcfc; font-size: 11px; }.field textarea { min-height: 54px; resize: vertical; }.field input:focus, .field textarea:focus, .field select:focus { border-color: #73cdb7; box-shadow: 0 0 0 3px rgba(24,169,137,.08); }.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }.check-field { display: flex; align-items: center; gap: 8px; color: #617270; font-size: 11px; }.check-field input { width: 14px; height: 14px; accent-color: var(--accent); }.options-input { min-height: 66px !important; font-family: inherit; }.inspector-note { margin-top: 14px; padding-top: 13px; border-top: 1px solid #edf1f0; color: #a0acab; font-size: 10px; line-height: 1.6; }.inspector-note b { color: #788b88; }
.add-control-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin-top: 9px; }.add-control-buttons button { padding: 7px 4px; border: 1px solid var(--line); border-radius: 4px; color: #617270; background: #fbfcfc; font-size: 10px; }.add-control-buttons button:hover { color: var(--accent-dark); border-color: #9bdcca; background: var(--accent-soft); }
.preview-layout { display: grid; grid-template-columns: 160px minmax(420px, 650px); gap: 23px; align-items: start; }.preview-page-tabs { display: grid; gap: 5px; }.preview-tab { padding: 12px; border: 1px solid var(--line); border-radius: 5px; color: var(--muted); background: white; text-align: left; font-size: 11px; }.preview-tab.active { border-color: #9bdcca; color: var(--accent-dark); background: var(--accent-soft); font-weight: 700; }.device-frame { overflow: hidden; border: 9px solid #21383b; border-radius: 14px; background: #21383b; box-shadow: 0 18px 35px rgba(21,52,54,.14); }.device-top { display: flex; align-items: center; gap: 7px; height: 29px; padding: 0 12px; color: #a5c0bc; background: #21383b; font-size: 9px; }.device-time { margin-left: auto; }.device-screen { min-height: 550px; max-height: 650px; overflow: auto; padding: 20px 24px 25px; color: #263a3b; background: white; }.preview-row { display: flex; align-items: center; gap: 12px; min-height: 48px; }.preview-row > * { min-width: 0; }.preview-title { width: 100%; padding: 10px 0; font-weight: 700; }.preview-title.large { font-size: 17px; }.preview-title.main { font-size: 23px; }.preview-spacer { min-height: 10px; }.preview-field-label { flex: 0 0 115px; color: #5c6c6c; font-size: 12px; }.preview-control { min-width: 0; flex: 1; }.preview-control input, .preview-control select { width: 100%; height: 34px; padding: 0 9px; border: 1px solid #d4dfdd; border-radius: 4px; color: #3e5554; background: white; font-size: 12px; }.preview-control select { appearance: auto; }.preview-control .preview-button { width: auto; min-width: 100px; height: 34px; padding: 0 16px; border: 0; border-radius: 4px; color: white; background: var(--accent); font-size: 12px; }.preview-checks { display: flex; flex-wrap: wrap; gap: 18px; width: 100%; }.preview-check { display: flex; align-items: center; gap: 7px; color: #506260; font-size: 12px; }.preview-check input { width: 15px; height: 15px; accent-color: var(--accent); }.preview-tabs { width: 100%; border-bottom: 1px solid #dce5e4; }.preview-tab-item { padding: 9px 13px; border: 0; border-bottom: 2px solid transparent; color: #7d8b8a; background: transparent; font-size: 11px; }.preview-tab-item.active { border-color: var(--accent); color: var(--accent-dark); font-weight: 700; }
.modal-backdrop { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 24px; background: rgba(17,34,36,.46); backdrop-filter: blur(3px); }.code-modal { width: min(860px, 100%); padding: 24px; border-radius: 9px; background: #fff; box-shadow: 0 24px 65px rgba(12,37,39,.24); }.modal-head { display: flex; align-items: flex-start; justify-content: space-between; }.modal-head h2 { margin: 0; font-size: 19px; }.close-button { color: #7f8d8d; border: 0; background: #f3f6f5; font-size: 20px; }.close-button:hover { color: var(--danger); background: #fff1f1; }.code-meta { display: flex; align-items: center; gap: 8px; margin-top: 20px; padding: 9px 11px; border: 1px solid var(--line); border-bottom: 0; border-radius: 5px 5px 0 0; color: #728381; font-size: 10px; }.meta-spacer { flex: 1; }.code-output { display: block; width: 100%; height: 480px; padding: 16px; border: 1px solid #27494a; border-radius: 0 0 5px 5px; outline: 0; color: #d7eee8; background: #152f32; font: 12px/1.72 Consolas, "Microsoft YaHei", monospace; resize: vertical; }.code-output:focus { border-color: var(--accent); }.modal-foot { display: flex; justify-content: space-between; align-items: center; padding-top: 13px; color: #9aa8a6; font-size: 10px; }.help-modal { width: min(570px,100%); padding: 24px; border-radius: 9px; background: white; }.guide-steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 13px; margin-top: 25px; }.guide-steps > div { padding: 16px 13px; border: 1px solid var(--line); border-radius: 5px; }.guide-steps b { display: block; color: var(--accent); font-size: 10px; }.guide-steps strong { display: block; margin: 10px 0 7px; font-size: 13px; }.guide-steps span { color: var(--muted); font-size: 10px; line-height: 1.6; }.toast { position: fixed; right: 28px; bottom: 25px; z-index: 30; transform: translateY(12px); padding: 10px 14px; border: 1px solid #bce5d9; border-radius: 5px; color: #217c69; background: #f1fcf8; box-shadow: var(--shadow); opacity: 0; pointer-events: none; font-size: 11px; transition: .22s; }.toast.show { transform: translateY(0); opacity: 1; }
@media (max-width: 1180px) { body { min-width: 960px; }.sidebar { width: 205px; flex-basis: 205px; }.editor-grid { grid-template-columns: 160px minmax(400px,1fr) 250px; gap: 11px; }.workspace, .preview-view { padding-left: 22px; padding-right: 22px; }.topbar { padding: 0 22px; }.save-state { display: none; } }
@media (max-width: 800px) { body { min-width: 0; }.sidebar { width: 64px; flex-basis: 64px; padding: 18px 9px; }.brand { padding: 0 6px 30px; }.brand > div:last-child, .sidebar-caption, .nav-item:not(.active)::after, .nav-item { font-size: 0; }.nav-item { justify-content: center; padding: 12px 0; }.nav-icon { font-size: 16px; }.sidebar-foot { display: none; }.topbar { padding: 0 15px; }.top-actions .secondary { display: none; }.workspace, .preview-view { padding: 20px 15px; }.workspace-head { align-items: flex-start; }.editor-grid { grid-template-columns: 1fr; }.page-panel { order: 2; }.inspector-panel { order: 3; }.canvas-column { order: 1; }.canvas-wrap { min-height: 560px; }.preview-layout { grid-template-columns: 1fr; }.preview-page-tabs { display: flex; }.preview-tab { flex: 1; }.device-screen { min-height: 500px; }.guide-steps { grid-template-columns: 1fr; } }
