/* 自动生成的「作用域隔离版」（由 tools/scope_css.py 生成，请勿手改）
 * 所有选择器已加 .gzh-inline-root 前缀，供页面直出模式（无 iframe）使用，
 * 避免 .btn / .nav / .logo 等通用类影响站点主题样式。 */
.gzh-inline-root {
  --accent: #07c160;
  --accent-light: #e8f8ef;
  --bg: #f0f2f5;
  --panel: #ffffff;
  --border: #e5e6eb;
  --text: #333;
  --text-sub: #86909c;
}
.gzh-inline-root * { margin: 0; padding: 0; box-sizing: border-box; }
.gzh-inline-root {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg); color: var(--text); height: 100vh;
  display: flex; flex-direction: column; overflow: hidden;
}
.gzh-inline-root button { cursor: pointer; font-family: inherit; }
.gzh-inline-root .topbar { background: #fff; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.gzh-inline-root .topbar-inner { display: flex; align-items: center; gap: 28px; padding: 0 20px; height: 52px; max-width: 1200px; margin: 0 auto; width: 100%; }
.gzh-inline-root .logo { display: flex; align-items: center; gap: 8px; font-size: 17px; font-weight: bold; color: var(--accent); text-decoration: none; }
.gzh-inline-root .logo-mark { width: 28px; height: 28px; background: var(--accent); color: #fff; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 15px; }
.gzh-inline-root .nav { display: flex; gap: 4px; flex: 1; }
.gzh-inline-root .nav a { color: var(--text-sub); text-decoration: none; padding: 6px 14px; border-radius: 6px; font-size: 14px; }
.gzh-inline-root .nav a.active, .gzh-inline-root .nav a:hover { color: var(--accent); background: var(--accent-light); }
.gzh-inline-root .topbar-actions { display: flex; gap: 10px; }
.gzh-inline-root .nav-toggle { display: none; align-items: center; justify-content: center; width: 36px; height: 36px; border: none; background: none; font-size: 20px; color: var(--text); border-radius: 8px; }
.gzh-inline-root .nav-toggle:hover { background: #f2f3f5; }
.gzh-inline-root .side-head { display: none; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.gzh-inline-root .side-close { display: none; align-items: center; justify-content: center; width: 30px; height: 30px; border: none; background: #f2f3f5; color: #555; border-radius: 8px; font-size: 16px; }
.gzh-inline-root .side-close:hover { background: #e6e7eb; }
.gzh-inline-root .side-nav { display: flex; gap: 4px; flex: 1; }
.gzh-inline-root .side-nav a { color: var(--text-sub); text-decoration: none; padding: 6px 12px; border-radius: 6px; font-size: 14px; white-space: nowrap; }
.gzh-inline-root .side-nav a:hover, .gzh-inline-root .side-nav a.active { color: var(--accent); background: var(--accent-light); }
.gzh-inline-root .drawer-backdrop { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.42); z-index: 125; }
.gzh-inline-root .btn { border: 1px solid var(--border); background: #fff; color: var(--text); padding: 7px 16px; border-radius: 6px; font-size: 13px; }
.gzh-inline-root .btn:hover { border-color: var(--accent); color: var(--accent); }
.gzh-inline-root .btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.gzh-inline-root .btn-primary:hover { opacity: .88; color: #fff; }
.gzh-inline-root .btn-ghost { background: transparent; }
.gzh-inline-root .btn-block { width: 100%; padding: 10px; font-size: 14px; }
.gzh-inline-root .workspace { flex: 1; display: flex; overflow: hidden; max-width: 1200px; margin: 0 auto; width: 100%; }
.gzh-inline-root .side-panel { width: 400px; background: #fff; border-right: 1px solid var(--border); display: flex; flex-direction: column; flex-shrink: 0; }
.gzh-inline-root .side-tabs { display: flex; border-bottom: 1px solid var(--border); }
.gzh-inline-root .side-tab { flex: 1; padding: 12px 0; background: none; border: none; font-size: 14px; color: var(--text-sub); border-bottom: 2px solid transparent; }
.gzh-inline-root .side-tab.active { color: var(--accent); border-bottom-color: var(--accent); font-weight: bold; }
.gzh-inline-root .tab-page { display: none; flex: 1; overflow-y: auto; padding: 14px; flex-direction: column; }
.gzh-inline-root .tab-page.active { display: block; }
.gzh-inline-root .tab-tip { font-size: 13px; color: var(--text-sub); margin-bottom: 12px; }
.gzh-inline-root .side-subtabs { display: flex; gap: 14px; margin-bottom: 10px; }
.gzh-inline-root .subtab { background: none; border: none; font-size: 13px; color: var(--text-sub); padding: 4px 0; }
.gzh-inline-root .subtab.active { color: var(--accent); font-weight: bold; }
.gzh-inline-root .cat-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.gzh-inline-root .chip { border: 1px solid var(--border); background: #f7f8fa; color: var(--text); padding: 5px 14px; border-radius: 16px; font-size: 13px; }
.gzh-inline-root .chip.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.gzh-inline-root .search-row { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.gzh-inline-root .search-row input { flex: 1; border: 1px solid var(--border); border-radius: 6px; padding: 7px 10px; font-size: 13px; outline: none; }
.gzh-inline-root .search-row input:focus { border-color: var(--accent); }
.gzh-inline-root .sort { font-size: 12px; color: var(--text-sub); white-space: nowrap; cursor: pointer; }
.gzh-inline-root .style-list { display: flex; flex-direction: column; gap: 12px; padding-bottom: 20px; }
.gzh-inline-root .style-card { position: relative; border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px 14px; cursor: pointer; transition: box-shadow .15s, transform .15s; background: #fff; }
.gzh-inline-root .style-card:hover { box-shadow: 0 4px 14px rgba(0,0,0,.08); transform: translateY(-1px); border-color: var(--accent); }
.gzh-inline-root .style-card .preview { pointer-events: none; overflow: hidden; }
.gzh-inline-root .style-card .meta { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.gzh-inline-root .style-card .meta .name { font-size: 13px; color: var(--text); font-weight: 500; }
.gzh-inline-root .style-card .meta .uses { font-size: 12px; color: var(--text-sub); }
.gzh-inline-root .style-card .fav { position: absolute; top: 8px; right: 8px; background: none; border: none; font-size: 15px; color: #ccc; }
.gzh-inline-root .style-card .fav.on { color: #f7ba2a; }
.gzh-inline-root .ai-box { border: 1px solid var(--border); border-radius: 10px; padding: 16px; margin-bottom: 14px; }
.gzh-inline-root .ai-box h3 { font-size: 15px; margin-bottom: 8px; }
.gzh-inline-root .ai-box p { font-size: 13px; color: var(--text-sub); line-height: 1.7; margin-bottom: 12px; }
.gzh-inline-root .ai-opt { display: block; font-size: 13px; color: var(--text); margin-bottom: 8px; cursor: pointer; }
.gzh-inline-root .ai-opt input { accent-color: var(--accent); margin-right: 6px; }
.gzh-inline-root .theme-dot-preview { height: 10px; border-radius: 5px; }
.gzh-inline-root .editor-panel { flex: 1; display: flex; flex-direction: column; overflow: hidden; position: relative; }
.gzh-inline-root .toolbar { background: #fff; border-bottom: 1px solid var(--border); padding: 8px 14px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; flex-shrink: 0; }
.gzh-inline-root .tb-group { display: flex; align-items: center; gap: 4px; }
.gzh-inline-root .tb { min-width: 32px; height: 32px; border: none; background: none; border-radius: 6px; font-size: 14px; color: var(--text); padding: 0 8px; }
.gzh-inline-root .tb:hover { background: #f2f3f5; }
.gzh-inline-root .tb-accent { color: var(--accent); font-weight: bold; border: 1px solid var(--accent-light); background: var(--accent-light); }
.gzh-inline-root .tb-select { border: 1px solid var(--border); border-radius: 6px; padding: 5px 6px; font-size: 13px; background: #fff; outline: none; }
.gzh-inline-root #fontColor { width: 30px; height: 30px; border: none; background: none; cursor: pointer; padding: 0; }
.gzh-inline-root .dark-toggle { font-size: 12px; color: var(--text-sub); display: flex; align-items: center; gap: 4px; margin-left: auto; }
.gzh-inline-root .theme-panel { position: absolute; top: 56px; right: 16px; z-index: 30; background: #fff; border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.12); padding: 14px; width: 260px; }
.gzh-inline-root .theme-panel-title { font-size: 13px; color: var(--text-sub); margin-bottom: 10px; }
.gzh-inline-root .theme-list { display: flex; flex-wrap: wrap; gap: 10px; }
.gzh-inline-root .theme-item { display: flex; flex-direction: column; align-items: center; gap: 4px; background: none; border: none; font-size: 12px; color: var(--text-sub); }
.gzh-inline-root .theme-dot { width: 30px; height: 30px; border-radius: 50%; border: 3px solid transparent; }
.gzh-inline-root .theme-item.active .theme-dot { border-color: #333; }
.gzh-inline-root .paper { flex: 1; overflow-y: auto; padding: 30px 0; }
.gzh-inline-root .paper > * { max-width: 640px; margin-left: auto; margin-right: auto; }
.gzh-inline-root .paper img { max-width: 100%; }
.gzh-inline-root .title-row { display: flex; align-items: flex-start; gap: 12px; padding: 0 20px 16px; }
.gzh-inline-root .title-input { flex: 1; font-size: 24px; font-weight: bold; color: #1f1f1f; outline: none; min-height: 36px; }
.gzh-inline-root .title-input:empty::before { content: attr(data-ph); color: #c9cdd4; }
.gzh-inline-root .title-count { font-size: 13px; color: var(--text-sub); white-space: nowrap; padding-top: 8px; }
.gzh-inline-root .title-count b { color: var(--accent); }
.gzh-inline-root .editor { background: #fff; border-top: 1px solid var(--border); min-height: 62vh; padding: 24px 20px 80px; outline: none; font-size: 15px; line-height: 1.9; color: #3f3f3f; }
.gzh-inline-root .editor:empty::before { content: attr(data-ph); color: #c9cdd4; }
.gzh-inline-root .editor img { max-width: 100%; }
.gzh-inline-root .editor:focus { outline: none; }
.gzh-inline-root .statusbar { background: #fff; border-top: 1px solid var(--border); padding: 8px 20px; display: flex; justify-content: space-between; font-size: 12px; color: var(--text-sub); flex-shrink: 0; }
.gzh-inline-root .statusbar b { color: var(--accent); }
.gzh-inline-root .toast { position: fixed; left: 50%; bottom: 60px; transform: translateX(-50%) translateY(20px); background: rgba(0,0,0,.78); color: #fff; padding: 10px 22px; border-radius: 8px; font-size: 14px; opacity: 0; pointer-events: none; transition: all .25s; z-index: 99; }
.gzh-inline-root .toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.gzh-inline-root .stats-page { overflow: auto !important; height: auto !important; min-height: 100vh; }
.gzh-inline-root .stats-wrap { max-width: 1080px; margin: 24px auto 60px; padding: 0 20px; }
.gzh-inline-root .stats-title { font-size: 22px; font-weight: bold; margin-bottom: 4px; }
.gzh-inline-root .stats-sub { font-size: 13px; color: var(--text-sub); margin-bottom: 24px; }
.gzh-inline-root .kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.gzh-inline-root .kpi-card { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 20px; }
.gzh-inline-root .kpi-num { font-size: 28px; font-weight: bold; color: var(--accent); margin: 6px 0; }
.gzh-inline-root .kpi-label { font-size: 13px; color: var(--text-sub); }
.gzh-inline-root .kpi-trend { font-size: 12px; }
.gzh-inline-root .kpi-trend.up { color: #f53f3f; }
.gzh-inline-root .kpi-trend.down { color: #00b42a; }
.gzh-inline-root .panel-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; margin-bottom: 24px; }
.gzh-inline-root .chart-card { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 20px; }
.gzh-inline-root .chart-card h3 { font-size: 15px; margin-bottom: 16px; }
.gzh-inline-root .rank-row { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.gzh-inline-root .rank-idx { width: 22px; height: 22px; border-radius: 6px; background: #f2f3f5; color: var(--text-sub); font-size: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.gzh-inline-root .rank-row:nth-child(1) .rank-idx, .gzh-inline-root .rank-row:nth-child(2) .rank-idx, .gzh-inline-root .rank-row:nth-child(3) .rank-idx { background: var(--accent); color: #fff; }
.gzh-inline-root .rank-name { width: 110px; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gzh-inline-root .rank-track { flex: 1; height: 10px; background: #f2f3f5; border-radius: 5px; overflow: hidden; }
.gzh-inline-root .rank-bar { height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-light)); border-radius: 5px; transition: width .6s; }
.gzh-inline-root .rank-val { width: 52px; text-align: right; font-size: 12px; color: var(--text-sub); }
.gzh-inline-root .stat-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.gzh-inline-root .stat-table th, .gzh-inline-root .stat-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid #f2f3f5; }
.gzh-inline-root .stat-table th { color: var(--text-sub); font-weight: 500; background: #fafbfc; }
.gzh-inline-root .stat-table tr:hover td { background: var(--accent-light); }
.gzh-inline-root.dark { --bg: #1e1f22; --panel: #2a2b2f; --border: #3a3b40; --text: #e8e8e8; --text-sub: #9aa0a8; }
.gzh-inline-root.dark .topbar, .gzh-inline-root.dark .side-panel, .gzh-inline-root.dark .toolbar, .gzh-inline-root.dark .statusbar, .gzh-inline-root.dark .theme-panel, .gzh-inline-root.dark .kpi-card, .gzh-inline-root.dark .chart-card { background: var(--panel); }
.gzh-inline-root.dark .chip, .gzh-inline-root.dark .tb:hover { background: #33353a; }
.gzh-inline-root.dark .search-row input, .gzh-inline-root.dark .tb-select { background: var(--panel); color: var(--text); }
.gzh-inline-root.dark .stat-table th { background: #33353a; }
@media (max-width: 1279px) {.gzh-inline-root .side-panel { width: 340px; }
.gzh-inline-root .quick-actions { width: 104px; }}
@media (max-width: 1024px) {.gzh-inline-root .side-panel { width: 300px; }
.gzh-inline-root .quick-actions { display: none; }
.gzh-inline-root .kpi-grid { grid-template-columns: repeat(2, 1fr); }
.gzh-inline-root .panel-grid { grid-template-columns: 1fr; }}
.gzh-inline-root #imgToolbar { position: fixed; z-index: 90; background: #fff; border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.16); padding: 8px 10px; user-select: none; }
.gzh-inline-root .it-row { display: flex; align-items: center; gap: 4px; }
.gzh-inline-root .it-row + .it-row { margin-top: 4px; }
.gzh-inline-root .it-row i, .gzh-inline-root .it-sub i { width: 1px; height: 14px; background: var(--border); }
.gzh-inline-root .it-row button, .gzh-inline-root .it-sub button { border: none; background: transparent; font-size: 12px; color: #444; padding: 5px 8px; border-radius: 6px; cursor: pointer; white-space: nowrap; }
.gzh-inline-root .it-row button:hover, .gzh-inline-root .it-sub button:hover { background: var(--accent-light); color: var(--accent); }
.gzh-inline-root .it-sub { margin-top: 6px; padding-top: 6px; border-top: 1px dashed var(--border); display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.gzh-inline-root .it-sub .it-label { font-size: 12px; color: #999; margin-right: 2px; }
.gzh-inline-root.dark #imgToolbar { background: #2b2b2b; border-color: #3d3d3d; }
.gzh-inline-root.dark .it-row button, .gzh-inline-root.dark .it-sub button { color: #ccc; }
.gzh-inline-root.dark .it-row i, .gzh-inline-root.dark .it-sub i { background: #444; }
.gzh-inline-root .it-sub input[type="text"] { flex: 1; min-width: 170px; border: 1px solid var(--border); border-radius: 6px; padding: 5px 8px; font-size: 12px; outline: none; }
.gzh-inline-root .it-sub input[type="text"]:focus { border-color: var(--accent); }
.gzh-inline-root .it-hint { font-size: 11px; color: #aaa; margin-left: 4px; }
.gzh-inline-root #wmModalOv { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 200; display: flex; align-items: center; justify-content: center; }
.gzh-inline-root #wmModalOv[hidden] { display: none; }
.gzh-inline-root .wm-modal { background: #fff; border-radius: 12px; padding: 22px 26px; width: 320px; max-width: 86vw; box-shadow: 0 12px 40px rgba(0,0,0,.2); }
.gzh-inline-root .wm-modal p { margin: 0 0 18px; font-size: 14px; color: #333; line-height: 1.7; }
.gzh-inline-root .wm-modal-btns { display: flex; justify-content: flex-end; gap: 10px; }
.gzh-inline-root .wm-modal-btns button { border: 1px solid var(--border); background: #fff; color: #555; font-size: 13px; padding: 7px 20px; border-radius: 8px; cursor: pointer; }
.gzh-inline-root .wm-modal-btns #wmModalOk { background: var(--accent); border-color: var(--accent); color: #fff; }
.gzh-inline-root.dark .wm-modal { background: #2b2b2b; }
.gzh-inline-root.dark .wm-modal p { color: #ddd; }
.gzh-inline-root.dark .wm-modal-btns button { background: #333; border-color: #444; color: #ccc; }
.gzh-inline-root.dark .it-sub input[type="text"] { background: #1f1f1f; border-color: #444; color: #ddd; }
.gzh-inline-root #editor.drag-over { outline: 2px dashed var(--accent); outline-offset: 4px; }
.gzh-inline-root #dropMark { position: fixed; height: 0; border-top: 3px dashed var(--accent); background: var(--accent-light); z-index: 80; pointer-events: none; border-radius: 2px; box-shadow: 0 0 0 2px rgba(255,255,255,.4); display: none; }
.gzh-inline-root #editor img { cursor: grab; }
.gzh-inline-root #editor img:active { cursor: grabbing; }
.gzh-inline-root #resizeOv { position: fixed; z-index: 85; pointer-events: none; border: 1px solid var(--accent); box-sizing: border-box; }
.gzh-inline-root #resizeOv .rh { position: absolute; width: 13px; height: 13px; background: #fff; border: 2px solid var(--accent); border-radius: 50%; pointer-events: auto; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.gzh-inline-root #resizeOv .rh[data-h="nw"] { left: -7px; top: -7px; cursor: nwse-resize; }
.gzh-inline-root #resizeOv .rh[data-h="ne"] { right: -7px; top: -7px; cursor: nesw-resize; }
.gzh-inline-root #resizeOv .rh[data-h="sw"] { left: -7px; bottom: -7px; cursor: nesw-resize; }
.gzh-inline-root #resizeOv .rh[data-h="se"] { right: -7px; bottom: -7px; cursor: nwse-resize; }
.gzh-inline-root.dark #resizeOv .rh { background: #2b2b2b; }
.gzh-inline-root #tplList { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: start; }
.gzh-inline-root #tplList .style-card { padding: 10px 10px 10px; }
.gzh-inline-root #tplList .style-card .preview { zoom: .72; max-height: 300px; overflow: hidden; }
.gzh-inline-root #tplList .style-card .meta { margin-top: 6px; }
.gzh-inline-root #tplList .style-card .meta .name { font-size: 12px; }
@media (max-width: 1100px) {.gzh-inline-root #tplList { grid-template-columns: 1fr; }
.gzh-inline-root #tplList .style-card .preview { zoom: 1; }}
.gzh-inline-root .quick-actions { width: 118px; flex-shrink: 0; background: #fff; border-left: 1px solid var(--border); padding: 16px 12px; display: flex; flex-direction: column; justify-content: center; gap: 10px; overflow-y: auto; }
.gzh-inline-root .qa-title { font-size: 13px; font-weight: bold; color: #333; text-align: center; margin-bottom: 4px; }
.gzh-inline-root .qa-btn { border: 1px solid var(--border); background: #fafafa; color: #444; font-size: 13px; padding: 9px 0; border-radius: 8px; cursor: pointer; transition: all .15s; }
.gzh-inline-root .qa-btn:hover { background: var(--accent-light); border-color: var(--accent); color: var(--accent); }
.gzh-inline-root .qa-btn:active { transform: scale(.96); }
.gzh-inline-root .qa-danger:hover { background: #fdecec; border-color: #e74c3c; color: #e74c3c; }
.gzh-inline-root .qa-save-info { margin-top: 10px; font-size: 11px; color: #aaa; text-align: center; line-height: 1.6; }
.gzh-inline-root.dark .quick-actions { background: #252525; border-color: #3d3d3d; }
.gzh-inline-root.dark .qa-title { color: #ddd; }
.gzh-inline-root.dark .qa-btn { background: #2f2f2f; border-color: #444; color: #ccc; }
.gzh-inline-root.dark .qa-btn:hover { background: var(--accent-light); color: var(--accent); }
.gzh-inline-root.dark .qa-save-info { color: #777; }
.gzh-inline-root #previewOv { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 210; display: flex; align-items: center; justify-content: center; }
.gzh-inline-root #previewOv[hidden] { display: none; }
.gzh-inline-root .preview-modal { background: #fff; border-radius: 14px; width: 480px; max-width: 92vw; max-height: 88vh; display: flex; flex-direction: column; box-shadow: 0 16px 48px rgba(0,0,0,.25); }
.gzh-inline-root .preview-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--border); font-size: 14px; }
.gzh-inline-root .preview-head button { border: none; background: transparent; color: #888; font-size: 13px; cursor: pointer; padding: 4px 8px; border-radius: 6px; }
.gzh-inline-root .preview-head button:hover { background: #f2f2f2; color: #333; }
.gzh-inline-root .preview-phone { flex: 1; overflow-y: auto; background: #f7f7f7; margin: 14px 18px; border-radius: 10px; padding: 18px 16px; }
.gzh-inline-root .preview-title { font-size: 19px; font-weight: bold; color: #222; line-height: 1.5; margin-bottom: 12px; }
.gzh-inline-root .preview-body { font-size: 15px; }
.gzh-inline-root .preview-body img { max-width: 100%; }
.gzh-inline-root .preview-foot { display: flex; align-items: center; gap: 10px; padding: 0 18px 16px; }
.gzh-inline-root .preview-foot button { border: none; background: var(--accent); color: #fff; font-size: 13px; padding: 8px 18px; border-radius: 8px; cursor: pointer; }
.gzh-inline-root .preview-foot span { font-size: 12px; color: #999; }
.gzh-inline-root.dark .preview-modal { background: #2b2b2b; }
.gzh-inline-root.dark .preview-head { border-color: #3d3d3d; }
.gzh-inline-root.dark .preview-phone { background: #1f1f1f; }
.gzh-inline-root.dark .preview-title { color: #eee; }
@media (max-width: 768px) {.gzh-inline-root .topbar-inner { height: 48px; padding: 0 12px; gap: 10px; }
.gzh-inline-root .logo { font-size: 15px; }
.gzh-inline-root .logo-mark { width: 24px; height: 24px; font-size: 13px; }
.gzh-inline-root .nav { display: none; }
.gzh-inline-root .page-stats .nav { display: flex; font-size: 12px; }
.gzh-inline-root .page-stats .nav a { padding: 4px 8px; font-size: 12px; }
.gzh-inline-root .nav-toggle { display: inline-flex; }
.gzh-inline-root .topbar-actions { gap: 6px; }
.gzh-inline-root .topbar-actions .btn { padding: 6px 10px; font-size: 12px; }
.gzh-inline-root .btn-ghost#btnDark { display: none; }
.gzh-inline-root .workspace { max-width: 100%; }
.gzh-inline-root .drawer-backdrop.show { display: block; }
.gzh-inline-root .side-panel {
    position: fixed; top: 0; left: 0; bottom: 0;
    width: 84vw; max-width: 340px; z-index: 130;
    transform: translateX(-100%); transition: transform .25s ease;
    box-shadow: 4px 0 24px rgba(0,0,0,.18);
  }
.gzh-inline-root .side-panel.open { transform: translateX(0); }
.gzh-inline-root .side-head { display: flex; }
.gzh-inline-root .side-close { display: inline-flex; }
.gzh-inline-root .editor-panel { width: 100%; flex: 1 1 auto; padding-bottom: 54px; }
.gzh-inline-root .toolbar { flex-wrap: nowrap; overflow-x: auto; gap: 8px; padding: 6px 10px; -webkit-overflow-scrolling: touch; }
.gzh-inline-root .toolbar::-webkit-scrollbar { height: 0; }
.gzh-inline-root .tb-group { flex-shrink: 0; gap: 2px; }
.gzh-inline-root .tb { height: 30px; font-size: 13px; padding: 0 7px; }
.gzh-inline-root .tb-select { padding: 4px 5px; font-size: 12px; }
.gzh-inline-root #fontColor { width: 28px; height: 28px; }
.gzh-inline-root .title-row { padding: 0 14px 12px; gap: 8px; }
.gzh-inline-root .title-input { font-size: 20px; min-height: 30px; }
.gzh-inline-root .paper { padding: 16px 0; }
.gzh-inline-root .paper > * { max-width: 100%; padding-left: 14px; padding-right: 14px; }
.gzh-inline-root .editor { padding: 18px 14px 90px; font-size: 15px; line-height: 1.85; }
.gzh-inline-root .statusbar { font-size: 11px; padding: 7px 14px; flex-wrap: wrap; gap: 4px; }
.gzh-inline-root .theme-panel { right: 8px; top: 50px; width: min(260px, 92vw); }
.gzh-inline-root #imgToolbar { max-width: 94vw; overflow-x: auto; }
.gzh-inline-root #tplList { grid-template-columns: 1fr; }
.gzh-inline-root #tplList .style-card .preview { zoom: 1; }
.gzh-inline-root .quick-actions {
    display: flex; flex-direction: row; justify-content: space-around; align-items: stretch;
    position: fixed; left: 0; right: 0; bottom: 0; width: 100%;
    padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
    border-left: none; border-top: 1px solid var(--border);
    background: var(--panel); z-index: 120; gap: 4px;
    box-shadow: 0 -4px 16px rgba(0,0,0,.08);
  }
.gzh-inline-root .qa-title, .gzh-inline-root .qa-save-info { display: none; }
.gzh-inline-root .qa-btn { flex: 1; font-size: 12px; padding: 10px 2px; }}
@media (max-width: 380px) {.gzh-inline-root .logo { font-size: 14px; }
.gzh-inline-root .topbar-actions .btn { padding: 6px 7px; font-size: 11px; }
.gzh-inline-root .qa-btn { font-size: 11px; }}
