/* ========================================
   DataV 数据大屏平台 - 全局样式
   ======================================== */

/* ---- Reset ---- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html, body { width: 100%; height: 100%; overflow: hidden; font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif; }
:root {
    --primary: #00d4ff;
    --primary-dim: #007eff;
    --bg-dark: #0a1a2e;
    --bg-panel: #0e2340;
    --bg-card: rgba(14, 35, 64, 0.85);
    --border: rgba(0, 212, 255, 0.25);
    --text: #c0d8f0;
    --text-bright: #ffffff;
    --text-dim: #5a7a9e;
    --danger: #ff5e5e;
    --success: #00e676;
    --warning: #ffb300;
}
body { background: var(--bg-dark); color: var(--text); user-select: none; }
a { color: var(--primary); text-decoration: none; }
button { cursor: pointer; border: none; outline: none; font-family: inherit; }
input, textarea, select { font-family: inherit; outline: none; }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: rgba(0,0,0,0.2); }
::-webkit-scrollbar-thumb { background: rgba(0,212,255,0.3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0,212,255,0.5); }

/* ---- 通用按钮 ---- */
.btn { padding: 8px 18px; border-radius: 4px; font-size: 13px; transition: all .2s; display: inline-flex; align-items: center; gap: 6px; }
.btn-primary { background: linear-gradient(135deg, var(--primary-dim), var(--primary)); color: #fff; }
.btn-primary:hover { box-shadow: 0 0 12px rgba(0,212,255,0.5); }
.btn-ghost { background: transparent; border: 1px solid var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-danger { background: rgba(255,94,94,0.15); border: 1px solid rgba(255,94,94,0.4); color: var(--danger); }
.btn-danger:hover { background: rgba(255,94,94,0.3); }
.btn-sm { padding: 4px 10px; font-size: 12px; }

/* ---- 通用面板 ---- */
.panel { background: var(--bg-panel); border: 1px solid var(--border); border-radius: 6px; }

/* ========================================
   首页 - 大屏管理列表
   ======================================== */
.home-page { width: 100%; height: 100%; display: flex; flex-direction: column; background: linear-gradient(135deg, #0a1a2e 0%, #0d2747 100%); }
.home-header { display: flex; align-items: center; justify-content: space-between; padding: 0 30px; height: 64px; background: rgba(10,26,46,0.9); border-bottom: 1px solid var(--border); flex-shrink: 0; }
.home-header h1 { font-size: 22px; color: var(--text-bright); display: flex; align-items: center; gap: 10px; }
.home-header h1 .logo { font-size: 28px; }
.home-header-right { display: flex; align-items: center; gap: 12px; }
.home-body { flex: 1; overflow-y: auto; padding: 24px; }
.home-toolbar { display: flex; gap: 12px; margin-bottom: 20px; align-items: center; }
.home-toolbar input[type="text"] { background: var(--bg-panel); border: 1px solid var(--border); border-radius: 4px; padding: 8px 14px; color: var(--text); font-size: 13px; width: 260px; }
.home-toolbar input[type="text"]:focus { border-color: var(--primary); }
.dash-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.dash-card { background: var(--bg-panel); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; transition: all .3s; cursor: pointer; position: relative; }
.dash-card:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(0,212,255,0.2); border-color: var(--primary); }
.dash-card-thumb { width: 100%; height: 170px; background: linear-gradient(135deg, #0a1a2e, #0e2340); display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.dash-card-thumb canvas { width: 100%; height: 100%; }
.dash-card-thumb .thumb-placeholder { font-size: 48px; color: var(--text-dim); opacity: 0.3; }
.dash-card-thumb .thumb-title { position: absolute; bottom: 0; left: 0; right: 0; padding: 8px 12px; background: rgba(0,0,0,0.65); color: #fff; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; z-index: 2; }
.dash-card-info { padding: 14px 16px; }
.dash-card-info h3 { font-size: 15px; color: var(--text-bright); margin-bottom: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-card-info .meta { font-size: 12px; color: var(--text-dim); }
.dash-card-actions { display: flex; gap: 8px; padding: 0 16px 14px; }
.dash-card-actions .btn { flex: 1; justify-content: center; }
.dash-card-new { display: flex; flex-direction: column; align-items: center; justify-content: center; border: 2px dashed var(--border); border-radius: 8px; min-height: 280px; cursor: pointer; transition: all .3s; }
.dash-card-new:hover { border-color: var(--primary); background: rgba(0,212,255,0.05); }
.dash-card-new .plus { font-size: 48px; color: var(--primary); margin-bottom: 10px; }
.dash-card-new span { color: var(--text); font-size: 14px; }

/* ========================================
   设计器
   ======================================== */
.designer-page { width: 100%; height: 100%; display: flex; flex-direction: column; background: #0a1424; }
.designer-toolbar { height: 50px; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; background: var(--bg-panel); border-bottom: 1px solid var(--border); flex-shrink: 0; z-index: 100; }
.designer-toolbar-left, .designer-toolbar-right { display: flex; align-items: center; gap: 8px; }
.designer-toolbar-center { display: flex; align-items: center; gap: 12px; }
.designer-toolbar .dash-name-input { background: transparent; border: 1px solid transparent; color: var(--text-bright); font-size: 15px; padding: 4px 10px; border-radius: 4px; min-width: 180px; text-align: center; }
.designer-toolbar .dash-name-input:hover { border-color: var(--border); }
.designer-toolbar .dash-name-input:focus { border-color: var(--primary); background: var(--bg-dark); }

.designer-main { flex: 1; display: flex; overflow: hidden; }

/* 左侧组件面板 */
.component-palette { width: 240px; background: var(--bg-panel); border-right: 1px solid var(--border); display: flex; flex-direction: column; flex-shrink: 0; }
.palette-header { padding: 12px 14px; font-size: 13px; color: var(--text-bright); border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.palette-body { flex: 1; overflow-y: auto; padding: 10px; }
.palette-category { margin-bottom: 16px; }
.palette-category-title { font-size: 12px; color: var(--text-dim); margin-bottom: 8px; padding-left: 4px; }
.palette-items { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.palette-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: 6px; padding: 12px 8px; display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: grab; transition: all .2s; }
.palette-item:hover { border-color: var(--primary); background: rgba(0,212,255,0.08); }
.palette-item:active { cursor: grabbing; }
.palette-item .icon { font-size: 22px; }
.palette-item .label { font-size: 11px; color: var(--text); text-align: center; line-height: 1.3; }

/* 中间画布区 */
.canvas-area { flex: 1; display: flex; flex-direction: column; overflow: hidden; background: #0a1424; }
.canvas-toolbar { height: 38px; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; background: rgba(14,35,64,0.6); border-bottom: 1px solid var(--border); flex-shrink: 0; }
.canvas-toolbar-left, .canvas-toolbar-right { display: flex; align-items: center; gap: 8px; }
.canvas-toolbar .tool-label { font-size: 12px; color: var(--text-dim); }
.canvas-toolbar input[type="range"] { width: 100px; }
.canvas-wrapper { flex: 1; overflow: auto; display: flex; align-items: center; justify-content: center; padding: 30px; }
.canvas-stage { position: relative; background: var(--bg-dark); border: 1px solid var(--border); box-shadow: 0 0 40px rgba(0,212,255,0.1); transform-origin: center center; }
.canvas-grid { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-image: linear-gradient(rgba(0,212,255,0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(0,212,255,0.06) 1px, transparent 1px); background-size: 20px 20px; pointer-events: none; }
.canvas-component { position: absolute; border: 1px dashed transparent; cursor: move; }
.canvas-component:hover { border-color: rgba(0,212,255,0.3); }
.canvas-component.selected { border: 1px solid var(--primary); box-shadow: 0 0 10px rgba(0,212,255,0.3); }
.canvas-component .resize-handle { position: absolute; width: 8px; height: 8px; background: var(--primary); border: 1px solid #fff; border-radius: 2px; display: none; z-index: 10; }
.canvas-component.selected .resize-handle { display: block; }
.resize-handle.nw { top: -4px; left: -4px; cursor: nw-resize; }
.resize-handle.ne { top: -4px; right: -4px; cursor: ne-resize; }
.resize-handle.sw { bottom: -4px; left: -4px; cursor: sw-resize; }
.resize-handle.se { bottom: -4px; right: -4px; cursor: se-resize; }
.canvas-component .component-toolbar { position: absolute; top: -28px; right: 0; background: var(--bg-panel); border: 1px solid var(--border); border-radius: 4px; display: none; z-index: 20; }
.canvas-component.selected .component-toolbar { display: flex; }
.component-toolbar button { background: transparent; border: none; color: var(--text); padding: 4px 8px; font-size: 12px; cursor: pointer; }
.component-toolbar button:hover { color: var(--primary); }
.component-toolbar button.del:hover { color: var(--danger); }

/* 右侧属性面板 */
.property-panel { width: 300px; background: var(--bg-panel); border-left: 1px solid var(--border); display: flex; flex-direction: column; flex-shrink: 0; }
.property-header { padding: 12px 14px; font-size: 13px; color: var(--text-bright); border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.property-body { flex: 1; overflow-y: auto; padding: 14px; }
.property-group { margin-bottom: 18px; }
.property-group-title { font-size: 12px; color: var(--primary); margin-bottom: 10px; padding-bottom: 6px; border-bottom: 1px solid var(--border); }
.property-row { display: flex; align-items: center; margin-bottom: 10px; gap: 8px; }
.property-row label { font-size: 12px; color: var(--text-dim); width: 70px; flex-shrink: 0; }
.property-row input[type="text"], .property-row input[type="number"], .property-row textarea, .property-row select { flex: 1; background: var(--bg-dark); border: 1px solid var(--border); border-radius: 4px; padding: 5px 8px; color: var(--text); font-size: 12px; }
.property-row input:focus, .property-row textarea:focus, .property-row select:focus { border-color: var(--primary); }
.property-row textarea { resize: vertical; min-height: 60px; font-family: 'Consolas', monospace; }
.property-row input[type="color"] { width: 36px; height: 26px; border: 1px solid var(--border); border-radius: 4px; background: transparent; cursor: pointer; padding: 0; }
.property-row input[type="range"] { flex: 1; }
.property-row .range-value { font-size: 12px; color: var(--primary); width: 40px; text-align: right; }
.property-empty { text-align: center; color: var(--text-dim); padding: 40px 20px; font-size: 13px; }

/* ========================================
   大屏展示模式
   ======================================== */
.display-page { width: 100%; height: 100%; position: relative; overflow: hidden; background: #000; display: flex; align-items: center; justify-content: center; }
.display-stage-wrapper { position: relative; flex-shrink: 0; }
.display-stage { position: absolute; top: 0; left: 0; transform-origin: top left; }
.display-component { position: absolute; overflow: hidden; }
.display-overlay { position: fixed; top: 15px; right: 15px; z-index: 9999; display: flex; gap: 8px; opacity: 0; transition: opacity .3s; }
.display-page:hover .display-overlay { opacity: 1; }
.display-overlay button { background: rgba(0,0,0,0.6); border: 1px solid var(--border); border-radius: 4px; color: var(--text); width: 36px; height: 36px; font-size: 16px; display: flex; align-items: center; justify-content: center; }

/* ========================================
   组件内部样式
   ======================================== */

/* 标题 */
.comp-title { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-weight: bold; text-shadow: 0 0 10px currentColor; }
.comp-title .title-text { font-size: inherit; }
.comp-title .title-deco { width: 40px; height: 2px; background: currentColor; margin: 0 12px; opacity: 0.5; }

/* 数字翻牌器 */
.comp-counter { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.comp-counter .counter-label { font-size: 14px; color: var(--text); margin-bottom: 8px; opacity: 0.8; }
.comp-counter .counter-value { display: flex; align-items: baseline; gap: 4px; }
.comp-counter .counter-number { font-family: 'DIN', 'Impact', sans-serif; font-weight: bold; }
.comp-counter .counter-digit { display: inline-block; min-width: 0.6em; text-align: center; }
.comp-counter .counter-prefix { font-size: 0.5em; opacity: 0.7; }
.comp-counter .counter-suffix { font-size: 0.4em; opacity: 0.7; }
.comp-counter .counter-sub { font-size: 12px; color: var(--text-dim); margin-top: 6px; }

/* 排行榜 */
.comp-ranking { width: 100%; height: 100%; display: flex; flex-direction: column; overflow: hidden; }
.comp-ranking .ranking-header { display: flex; padding: 8px 12px; font-size: 13px; color: var(--text-dim); border-bottom: 1px solid var(--border); flex-shrink: 0; }
.comp-ranking .ranking-body { flex: 1; overflow: hidden; position: relative; }
.comp-ranking .ranking-list { transition: transform 0.5s ease; }
.comp-ranking .ranking-item { display: flex; align-items: center; padding: 8px 12px; font-size: 13px; border-bottom: 1px solid rgba(255,255,255,0.05); gap: 10px; }
.comp-ranking .ranking-index { width: 24px; height: 24px; border-radius: 4px; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: bold; flex-shrink: 0; }
.comp-ranking .ranking-index.top1 { background: linear-gradient(135deg, #ffd700, #ff8c00); color: #fff; }
.comp-ranking .ranking-index.top2 { background: linear-gradient(135deg, #c0c0c0, #808080); color: #fff; }
.comp-ranking .ranking-index.top3 { background: linear-gradient(135deg, #cd7f32, #8b4513); color: #fff; }
.comp-ranking .ranking-index.normal { background: rgba(0,212,255,0.15); color: var(--primary); }
.comp-ranking .ranking-name { flex: 1; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.comp-ranking .ranking-value { font-weight: bold; }
.comp-ranking .ranking-bar { width: 100%; height: 3px; background: rgba(255,255,255,0.08); border-radius: 2px; margin-top: 4px; overflow: hidden; }
.comp-ranking .ranking-bar-fill { height: 100%; border-radius: 2px; transition: width 0.6s ease; }

/* 数据表格 */
.comp-table { width: 100%; height: 100%; display: flex; flex-direction: column; overflow: hidden; }
.comp-table .table-header { display: flex; background: rgba(0,212,255,0.1); border-bottom: 1px solid var(--border); flex-shrink: 0; }
.comp-table .table-header .th { padding: 8px 10px; font-size: 13px; color: var(--primary); font-weight: bold; }
.comp-table .table-body { flex: 1; overflow: hidden; position: relative; }
.comp-table .table-list { transition: transform 0.5s ease; }
.comp-table .table-row { display: flex; border-bottom: 1px solid rgba(255,255,255,0.04); transition: background .2s; }
.comp-table .table-row:hover { background: rgba(0,212,255,0.05); }
.comp-table .table-row .td { padding: 7px 10px; font-size: 13px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 文字滚动 (跑马灯) */
.comp-marquee { width: 100%; height: 100%; display: flex; align-items: center; overflow: hidden; position: relative; }
.comp-marquee .marquee-content { white-space: nowrap; animation: marquee-scroll linear infinite; }
@keyframes marquee-scroll { from { transform: translateX(100%); } to { transform: translateX(-100%); } }

/* 图片 */
.comp-image { width: 100%; height: 100%; }
.comp-image img { width: 100%; height: 100%; object-fit: fill; }

/* 时钟 */
.comp-clock { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.comp-clock .clock-time { font-family: 'DIN', 'Impact', sans-serif; font-weight: bold; }
.comp-clock .clock-date { font-size: 0.4em; margin-top: 8px; opacity: 0.7; }
.comp-clock .clock-week { font-size: 0.35em; margin-top: 4px; opacity: 0.5; }

/* 装饰边框 */
.comp-border { width: 100%; height: 100%; position: relative; padding: 6px; }
.comp-border .border-content { width: 100%; height: 100%; position: relative; z-index: 1; }
.comp-border svg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; }

/* 进度条 */
.comp-progress { width: 100%; height: 100%; display: flex; flex-direction: column; justify-content: center; padding: 0 16px; gap: 6px; }
.comp-progress .progress-label { display: flex; justify-content: space-between; font-size: 13px; }
.comp-progress .progress-track { height: 100%; background: rgba(255,255,255,0.06); border-radius: 4px; overflow: hidden; position: relative; flex: 1; }
.comp-progress .progress-fill { height: 100%; border-radius: 4px; transition: width 0.8s ease; position: relative; }
.comp-progress .progress-fill::after { content: ''; position: absolute; top: 0; right: 0; bottom: 0; width: 20px; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3)); }

/* 水球图容器 */
.comp-liquid { width: 100%; height: 100%; }

/* ========================================
   主题色系
   ======================================== */
.theme-techblue { --primary: #00d4ff; --primary-dim: #007eff; --bg-dark: #0a1a2e; --bg-panel: #0e2340; }
.theme-businessgold { --primary: #ffb300; --primary-dim: #ff8f00; --bg-dark: #1a1408; --bg-panel: #2a2010; }
.theme-coolpurple { --primary: #b066ff; --primary-dim: #7c3aed; --bg-dark: #140a1e; --bg-panel: #1e1030; }
.theme-freshgreen { --primary: #00e676; --primary-dim: #00c853; --bg-dark: #0a1e14; --bg-panel: #0e3020; }
.theme-chinared { --primary: #ff4757; --primary-dim: #c0392b; --bg-dark: #1e0a0a; --bg-panel: #301010; }

/* ========================================
   模态框
   ======================================== */
.modal-mask { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); display: flex; align-items: center; justify-content: center; z-index: 9999; }
.modal-box { background: var(--bg-panel); border: 1px solid var(--border); border-radius: 8px; min-width: 400px; max-width: 80%; max-height: 80%; display: flex; flex-direction: column; }
.modal-header { padding: 16px 20px; font-size: 15px; color: var(--text-bright); border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.modal-header .close { cursor: pointer; font-size: 18px; color: var(--text-dim); }
.modal-body { padding: 20px; overflow-y: auto; flex: 1; }
.modal-footer { padding: 12px 20px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 10px; }

/* 模板选择器 */
.template-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.template-card { background: var(--bg-dark); border: 2px solid var(--border); border-radius: 8px; overflow: hidden; cursor: pointer; transition: all .3s; }
.template-card:hover { border-color: var(--primary); transform: scale(1.02); }
.template-card-preview { width: 100%; height: 140px; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.template-card-info { padding: 10px 14px; }
.template-card-info h4 { font-size: 14px; color: var(--text-bright); }
.template-card-info p { font-size: 12px; color: var(--text-dim); margin-top: 4px; }

/* ========================================
   响应式适配：PC / 平板 / 手机 / 各类显示屏
   ======================================== */

/* 小屏笔记本/大平板（1024px 以下）：压缩间距与面板 */
@media (max-width: 1024px) {
    .home-body { padding: 16px; }
    .dash-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
    .component-palette { width: 200px; }
    .property-panel { width: 260px; }
    .canvas-wrapper { padding: 16px; }
    .client-form-box { min-width: 420px; }
}

/* 平板/大屏手机横屏（768px 以下）：重构布局 */
@media (max-width: 768px) {
    html, body { overflow: auto; }

    /* 头部：允许换行、按钮紧凑 */
    .home-header {
        height: auto; min-height: 56px;
        padding: 10px 14px; flex-wrap: wrap; gap: 10px;
    }
    .home-header h1 { font-size: 16px; }
    .home-header h1 .logo { font-size: 22px; }
    .home-header > div { flex-wrap: wrap; gap: 8px; justify-content: flex-end; }

    /* 首页工具栏 */
    .home-toolbar { flex-wrap: wrap; gap: 10px; }
    .home-toolbar input[type="text"] { width: 100%; max-width: 100%; }

    /* 卡片网格单列 */
    .dash-grid { grid-template-columns: 1fr; gap: 14px; }
    .dash-card-new { min-height: 180px; }

    /* 超管表格：外层横向滚动 */
    .admin-table-wrap { border-radius: 6px; }
    .admin-table th, .admin-table td { padding: 10px 12px; font-size: 12px; }
    .action-btns .btn { padding: 3px 8px; font-size: 11px; }
    .admin-footer { padding: 12px 0; text-align: center; }

    /* 设计器：三列变纵向堆叠，方便小屏操作 */
    .designer-page { height: auto; min-height: 100%; }
    .designer-main { flex-direction: column; overflow: visible; }
    .component-palette { width: 100%; border-right: none; border-bottom: 1px solid var(--border); max-height: 180px; }
    .palette-body { padding: 8px; display: flex; gap: 12px; overflow-x: auto; }
    .palette-category { display: inline-block; vertical-align: top; min-width: 140px; margin-bottom: 0; }
    .palette-items { grid-template-columns: repeat(3, 1fr); gap: 6px; }
    .palette-item { padding: 8px 4px; }
    .palette-item .icon { font-size: 18px; }
    .palette-item .label { font-size: 10px; }
    .canvas-area { min-height: 500px; overflow: auto; }
    .property-panel { width: 100%; border-left: none; border-top: 1px solid var(--border); max-height: 320px; }
    .property-body { padding: 12px; }
    .designer-toolbar { height: auto; min-height: 48px; padding: 8px 12px; flex-wrap: wrap; gap: 8px; }
    .designer-toolbar-left, .designer-toolbar-center, .designer-toolbar-right { flex-wrap: wrap; }

    /* 模板选择弹窗 - 移动端 */
    .modal-box { min-width: auto; width: 96%; max-width: 96%; max-height: 90%; }
    .modal-body { padding: 12px; }
    .template-grid { grid-template-columns: 1fr; gap: 12px; }
    .template-card-preview { height: 110px; }

    /* 数据管理弹窗 */
    .upload-area { padding: 24px 16px; }
    .data-file-row { flex-wrap: wrap; gap: 6px 12px; padding: 10px; }
    .file-name { width: 100%; }
    .file-size, .file-time { min-width: auto; font-size: 11px; }

    /* 大屏展示 - 移动端 */
    .display-page { height: auto; min-height: 100%; overflow-x: hidden; overflow-y: auto; align-items: flex-start; justify-content: center; }
    .display-overlay { top: 8px; right: 8px; gap: 6px; opacity: 1; }
    .display-overlay button { width: 32px; height: 32px; font-size: 14px; }

    /* 表单弹窗 */
    .client-form-box { min-width: auto; width: 92%; max-width: 92%; }
    .client-form-body { padding: 16px; }
    .client-form-box .modal-footer { padding: 12px 16px 16px; }
    .client-form-box .modal-footer .btn { padding: 8px 18px; }
}

/* 小屏手机（480px 以下）：进一步紧凑 */
@media (max-width: 480px) {
    body { font-size: 13px; }
    .btn { padding: 6px 12px; font-size: 12px; }
    .btn-sm { padding: 3px 8px; font-size: 11px; }

    .login-box { padding: 28px 22px; border-radius: 10px; }
    .login-logo { font-size: 18px; }
    .login-subtitle { font-size: 12px; margin-bottom: 22px; }

    .home-header { padding: 8px 12px; }
    .home-header h1 { font-size: 14px; }
    .home-header h1 .logo { font-size: 20px; }

    .home-body { padding: 12px; }
    .home-toolbar { gap: 8px; margin-bottom: 14px; }
    .dash-card-thumb { height: 140px; }
    .dash-card-info { padding: 12px 14px; }
    .dash-card-info h3 { font-size: 14px; }
    .dash-card-actions { padding: 0 14px 12px; }
    .dash-card-actions .btn { padding: 5px 8px; font-size: 11px; }

    .admin-table th, .admin-table td { padding: 8px 10px; font-size: 11px; }
    .status-tag { padding: 2px 8px; font-size: 11px; }

    .palette-items { grid-template-columns: repeat(2, 1fr); }
    .canvas-wrapper { padding: 10px; }
    .canvas-toolbar { padding: 0 10px; }

    .modal-header { padding: 12px 14px; font-size: 14px; }
    .modal-body { padding: 10px; }
    .modal-footer { padding: 10px 14px; }
    .modal-footer .btn { padding: 6px 12px; font-size: 12px; }

    .form-field { margin-bottom: 12px; }
    .form-label { font-size: 11px; margin-bottom: 4px; }
    .form-input { padding: 8px 12px; font-size: 13px; }
    .client-form-box .modal-footer .btn { padding: 7px 14px; font-size: 13px; }

    .display-overlay { gap: 4px; }
    .display-overlay button { width: 28px; height: 28px; font-size: 12px; }
}

/* 超大屏/电视：放大关键文字与按钮，确保远距离可读 */
@media (min-width: 1920px) {
    .home-header h1 { font-size: 26px; }
    .home-body { padding: 32px; }
    .dash-grid { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 24px; }
    .dash-card-info h3 { font-size: 17px; }
    .admin-table { font-size: 14px; }
    .admin-table th, .admin-table td { padding: 14px 18px; }
}


/* ========================================
   V2 新增：登录页面
   ======================================== */
#app { width: 100%; height: 100%; }
.login-page {
    width: 100%; min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #0a1a2e 0%, #0d2747 40%, #061220 100%);
    position: relative; overflow: hidden;
    padding: 40px 20px;
    box-sizing: border-box;
}
.login-page::before {
    content: '';
    position: absolute; top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(0,212,255,0.06) 0%, transparent 50%),
                radial-gradient(circle at 70% 30%, rgba(0,126,255,0.05) 0%, transparent 40%),
                radial-gradient(circle at 50% 80%, rgba(0,212,255,0.04) 0%, transparent 45%);
    animation: login-bg-pulse 8s ease-in-out infinite;
}
@keyframes login-bg-pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}
.login-box {
    position: relative; z-index: 1;
    width: 400px; max-width: 90%;
    background: rgba(14,35,64,0.7);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0,212,255,0.2);
    border-radius: 12px;
    padding: 40px 36px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 80px rgba(0,212,255,0.08);
}
.login-logo {
    text-align: center; font-size: 22px; font-weight: bold;
    color: var(--text-bright); margin-bottom: 6px;
}
.login-subtitle {
    text-align: center; font-size: 13px; color: var(--text-dim);
    margin-bottom: 30px; letter-spacing: 4px;
}
.login-form {
    display: flex; flex-direction: column; gap: 14px;
}
.login-form input[type="text"],
.login-form input[type="password"] {
    width: 100%; padding: 12px 16px;
    background: rgba(10,26,46,0.6);
    border: 1px solid var(--border); border-radius: 6px;
    color: var(--text-bright); font-size: 14px;
    transition: border-color .3s, box-shadow .3s;
}
.login-form input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0,212,255,0.12);
}
.login-error {
    display: none; text-align: center;
    color: var(--danger); font-size: 13px;
    background: rgba(255,94,94,0.1); border: 1px solid rgba(255,94,94,0.3);
    border-radius: 6px; padding: 10px;
}
.login-btn {
    width: 100%; padding: 12px; font-size: 15px; letter-spacing: 4px;
    border-radius: 6px; margin-top: 4px;
}

/* ========================================
   V2 新增：超管管理面板
   ======================================== */
.admin-page {
    width: 100%; height: 100%;
    display: flex; flex-direction: column;
    background: linear-gradient(135deg, #0a1a2e 0%, #0d2747 100%);
}
.admin-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-panel);
}
.admin-table {
    width: 100%; border-collapse: collapse;
    font-size: 13px;
}
.admin-table thead {
    background: rgba(0,212,255,0.08);
}
.admin-table th {
    padding: 12px 16px; text-align: left;
    color: var(--primary); font-weight: 600;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}
.admin-table td {
    padding: 10px 16px;
    color: var(--text);
    border-bottom: 1px solid rgba(255,255,255,0.04);
    white-space: nowrap;
}
.admin-table tbody tr:hover {
    background: rgba(0,212,255,0.04);
}
.admin-table tbody tr:last-child td {
    border-bottom: none;
}
.admin-footer {
    padding: 8px 0;
}
/* 状态标签 */
.status-tag {
    display: inline-block; padding: 3px 10px;
    border-radius: 10px; font-size: 12px; font-weight: 500;
}
.status-tag.active {
    background: rgba(0,230,118,0.15); color: var(--success);
}
.status-tag.disabled {
    background: rgba(255,94,94,0.15); color: var(--danger);
}
/* 操作按钮组 */
.action-btns {
    display: flex; gap: 6px;
}
.action-btns .btn { padding: 3px 10px; font-size: 11px; }

/* ========================================
   V2 新增：数据文件管理
   ======================================== */
.upload-area {
    border: 2px dashed var(--border);
    border-radius: 10px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all .3s;
    position: relative;
    color: var(--text-dim);
    background: rgba(10,26,46,0.5);
}
.upload-area:hover, .upload-area.dragover {
    border-color: var(--primary);
    background: rgba(0,212,255,0.06);
    color: var(--primary);
}
.upload-area input[type="file"] {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    opacity: 0; cursor: pointer;
}
.upload-icon {
    font-size: 42px; margin-bottom: 10px;
}
.data-file-list {
    margin-top: 10px;
}
.data-file-row {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: background .2s;
    border-radius: 6px;
}
.data-file-row:hover {
    background: rgba(0,212,255,0.05);
}
.file-icon {
    font-size: 18px; width: 28px; text-align: center;
}
.file-name {
    flex: 1; color: var(--text-bright);
    font-size: 13px; overflow: hidden;
    text-overflow: ellipsis; white-space: nowrap;
}
.file-size {
    color: var(--text-dim); font-size: 12px; min-width: 50px;
}
.file-time {
    color: var(--text-dim); font-size: 12px; min-width: 80px; text-align: right;
}
.file-actions {
    display: flex; gap: 6px;
}

/* ========================================
   V2 新增：图片占位符
   ======================================== */
.img-placeholder {
    width: 100%; height: 100%;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    background: rgba(10,26,46,0.6);
    border: 1px dashed var(--border);
    border-radius: 6px;
    color: var(--text-dim); font-size: 12px;
    gap: 8px;
}
.img-placeholder .placeholder-icon {
    font-size: 28px; opacity: 0.5;
}

/* ========================================
   V2 新增：主题色 - 教育橙
   ======================================== */
.theme-education {
    --primary: #ff6d00;
    --primary-dim: #e65100;
    --bg-dark: #1a0f03;
    --bg-panel: #2a1808;
}
.theme-education .home-header { background: rgba(26,15,3,0.9); }
.theme-education .home-page { background: linear-gradient(135deg, #1a0f03 0%, #2a1808 100%); }
.theme-education .admin-page { background: linear-gradient(135deg, #1a0f03 0%, #2a1808 100%); }
.theme-education .login-page { background: linear-gradient(135deg, #1a0f03 0%, #2a1808 40%, #0f0800 100%); }
.theme-education .login-box { background: rgba(42,24,8,0.7); }
.theme-education .login-page::before {
    background: radial-gradient(circle at 30% 50%, rgba(255,109,0,0.06) 0%, transparent 50%),
                radial-gradient(circle at 70% 30%, rgba(255,145,0,0.05) 0%, transparent 40%);
}
.theme-education .dash-card-new { border-color: rgba(255,109,0,0.25); }
.theme-education .dash-card-new:hover { border-color: #ff6d00; }
.theme-education .dash-card-new .plus { color: #ff6d00; }
.theme-education button.btn-primary { background: linear-gradient(135deg, #e65100, #ff6d00); }
.theme-education button.btn-primary:hover { box-shadow: 0 0 12px rgba(255,109,0,0.5); }
.theme-education ::-webkit-scrollbar-thumb { background: rgba(255,109,0,0.3); }
.theme-education ::-webkit-scrollbar-thumb:hover { background: rgba(255,109,0,0.5); }

/* ========================================
   V2 新增：主题色 - 文旅绿
   ======================================== */
.theme-tourism {
    --primary: #4caf50;
    --primary-dim: #2e7d32;
    --bg-dark: #0a1a0a;
    --bg-panel: #152a15;
}
.theme-tourism .home-header { background: rgba(10,26,10,0.9); }
.theme-tourism .home-page { background: linear-gradient(135deg, #0a1a0a 0%, #152a15 100%); }
.theme-tourism .admin-page { background: linear-gradient(135deg, #0a1a0a 0%, #152a15 100%); }
.theme-tourism .login-page { background: linear-gradient(135deg, #0a1a0a 0%, #152a15 40%, #050a05 100%); }
.theme-tourism .login-box { background: rgba(21,42,21,0.7); }
.theme-tourism .login-page::before {
    background: radial-gradient(circle at 30% 50%, rgba(76,175,80,0.06) 0%, transparent 50%),
                radial-gradient(circle at 70% 30%, rgba(46,125,50,0.05) 0%, transparent 40%);
}
.theme-tourism .dash-card-new { border-color: rgba(76,175,80,0.25); }
.theme-tourism .dash-card-new:hover { border-color: #4caf50; }
.theme-tourism .dash-card-new .plus { color: #4caf50; }
.theme-tourism button.btn-primary { background: linear-gradient(135deg, #2e7d32, #4caf50); }
.theme-tourism button.btn-primary:hover { box-shadow: 0 0 12px rgba(76,175,80,0.5); }
.theme-tourism ::-webkit-scrollbar-thumb { background: rgba(76,175,80,0.3); }
.theme-tourism ::-webkit-scrollbar-thumb:hover { background: rgba(76,175,80,0.5); }

/* ========================================
   Toast 提示动画（修复空白跳动） ========================================
#dv-toast {
    position: fixed; top: 24px; left: 50%; transform: translateX(-50%);
    z-index: 99999; padding: 10px 24px;
    border-radius: 6px; font-size: 13px; color: #fff;
    pointer-events: none; transition: opacity .3s, transform .3s;
    white-space: nowrap;
}
.toast-success { background: rgba(0,200,83,0.85); }
.toast-error { background: rgba(244,67,54,0.85); }
.toast-info { background: rgba(33,150,243,0.85); }

/* ========================================
   客户端 home-header 补充样式
   ======================================== */
.home-header .btn + .btn { margin-left: 0; }

/* Toast fade-in 关键帧（utils.js 内联引用） */
@keyframes dv-fade-in {
    from { opacity: 0; transform: translate(-50%, -50%) scale(0.9); }
    to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

/* ========================================
   V2.1 新增：客户端表单模态框美化
   ======================================== */
.client-form-box {
    min-width: 480px; max-width: 92%;
    background: linear-gradient(180deg, #102a4e 0%, #0a1f3d 100%);
    border: 1px solid rgba(0,212,255,0.25);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 60px rgba(0,212,255,0.08);
    border-radius: 10px;
    overflow: hidden;
}
.client-form-box .modal-header {
    background: linear-gradient(90deg, rgba(0,212,255,0.1) 0%, rgba(0,212,255,0.02) 100%);
    padding: 18px 22px; border-bottom: 1px solid rgba(0,212,255,0.15);
}
.client-form-box .modal-title {
    display: flex; align-items: center; gap: 10px;
    font-size: 16px; font-weight: 600; color: var(--text-bright);
}
.client-form-box .modal-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; border-radius: 8px;
    background: linear-gradient(135deg, rgba(0,212,255,0.2), rgba(0,126,255,0.2));
    font-size: 18px;
}
.client-form-box .close {
    width: 28px; height: 28px; border-radius: 6px;
    display: inline-flex; align-items: center; justify-content: center;
    transition: all .2s;
}
.client-form-box .close:hover {
    background: rgba(255,94,94,0.15); color: var(--danger);
}
.client-form-body { padding: 22px 24px 6px; }
.form-tip {
    background: rgba(0,212,255,0.06);
    border-left: 3px solid var(--primary);
    padding: 10px 14px; border-radius: 4px;
    color: var(--text-dim); font-size: 12px;
    margin-bottom: 18px; line-height: 1.6;
}
.form-field {
    margin-bottom: 16px;
}
.form-label {
    display: block; font-size: 12px;
    color: var(--text-dim); margin-bottom: 6px;
    font-weight: 500;
}
.form-input {
    width: 100%; padding: 10px 14px;
    background: rgba(10,26,46,0.7);
    border: 1px solid var(--border); border-radius: 6px;
    color: var(--text-bright); font-size: 14px;
    transition: all .25s;
    box-sizing: border-box;
}
.form-input:focus {
    border-color: var(--primary);
    background: rgba(10,26,46,0.9);
    box-shadow: 0 0 0 3px rgba(0,212,255,0.12);
    outline: none;
}
.form-input:disabled {
    background: rgba(0,0,0,0.3);
    color: var(--text-dim); cursor: not-allowed;
    opacity: 0.6;
}
.form-input::placeholder { color: rgba(150,170,200,0.4); }
.form-error {
    display: none; align-items: center; gap: 8px;
    margin: 4px 22px 0;
    padding: 10px 14px; border-radius: 6px;
    background: rgba(255,94,94,0.1);
    border: 1px solid rgba(255,94,94,0.3);
    color: var(--danger); font-size: 13px;
    animation: form-error-shake 0.4s ease;
}
.form-error.show { display: flex; }
.form-error .err-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 18px; height: 18px; border-radius: 50%;
    background: var(--danger); color: #fff;
    font-size: 12px; font-weight: bold; flex-shrink: 0;
}
@keyframes form-error-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-6px); }
    75% { transform: translateX(6px); }
}
.client-form-box .modal-footer {
    padding: 14px 22px 20px; gap: 12px;
    border-top: 1px solid var(--border);
    background: rgba(0,0,0,0.15);
}
.client-form-box .modal-footer .btn { padding: 9px 24px; font-size: 14px; }
.client-form-box .modal-footer .btn-primary {
    background: linear-gradient(135deg, #007eff, #00d4ff);
    box-shadow: 0 4px 12px rgba(0,126,255,0.3);
}
.client-form-box .modal-footer .btn-primary:hover {
    box-shadow: 0 6px 20px rgba(0,126,255,0.5);
    transform: translateY(-1px);
}

/* ========================================
   V2.1 新增：头部快捷入口链接
   ======================================== */
.header-shortcuts {
    display: flex; gap: 8px; align-items: center;
    padding-right: 8px;
    border-right: 1px solid var(--border);
    margin-right: 4px;
}
.header-link {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 5px 12px; border-radius: 14px;
    background: rgba(0,212,255,0.08);
    border: 1px solid rgba(0,212,255,0.25);
    color: var(--primary); text-decoration: none;
    font-size: 12px; font-weight: 500;
    transition: all .25s;
    white-space: nowrap;
}
.header-link:hover {
    background: rgba(0,212,255,0.18);
    border-color: var(--primary);
    box-shadow: 0 0 12px rgba(0,212,255,0.25);
    transform: translateY(-1px);
    color: #fff;
}
.header-link:active { transform: translateY(0); }
@media (max-width: 768px) {
    .header-link { padding: 4px 8px; font-size: 11px; }
    .header-link::before { content: ''; }
    .header-link > *:not(:first-child) { display: none; }
    .header-shortcuts { display: none; }
}

/* 主题适配：教育橙 */
.theme-education .client-form-box {
    background: linear-gradient(180deg, #2a1808 0%, #1a0f03 100%);
    border-color: rgba(255,109,0,0.3);
}
.theme-education .client-form-box .modal-header {
    background: linear-gradient(90deg, rgba(255,109,0,0.1) 0%, rgba(255,109,0,0.02) 100%);
    border-bottom-color: rgba(255,109,0,0.15);
}
.theme-education .client-form-box .modal-icon {
    background: linear-gradient(135deg, rgba(255,109,0,0.2), rgba(255,145,0,0.2));
}
.theme-education .form-tip { border-left-color: #ff6d00; }
.theme-education .form-input:focus {
    border-color: #ff6d00;
    box-shadow: 0 0 0 3px rgba(255,109,0,0.12);
}
.theme-education .client-form-box .modal-footer .btn-primary {
    background: linear-gradient(135deg, #e65100, #ff6d00);
    box-shadow: 0 4px 12px rgba(255,109,0,0.3);
}
.theme-education .header-link {
    background: rgba(255,109,0,0.08);
    border-color: rgba(255,109,0,0.3); color: #ff9100;
}
.theme-education .header-link:hover {
    background: rgba(255,109,0,0.18);
    border-color: #ff6d00;
    box-shadow: 0 0 12px rgba(255,109,0,0.3);
}

/* 主题适配：文旅绿 */
.theme-tourism .client-form-box {
    background: linear-gradient(180deg, #152a15 0%, #0a1a0a 100%);
    border-color: rgba(76,175,80,0.3);
}
.theme-tourism .client-form-box .modal-header {
    background: linear-gradient(90deg, rgba(76,175,80,0.1) 0%, rgba(76,175,80,0.02) 100%);
    border-bottom-color: rgba(76,175,80,0.15);
}
.theme-tourism .client-form-box .modal-icon {
    background: linear-gradient(135deg, rgba(76,175,80,0.2), rgba(46,125,50,0.2));
}
.theme-tourism .form-tip { border-left-color: #4caf50; }
.theme-tourism .form-input:focus {
    border-color: #4caf50;
    box-shadow: 0 0 0 3px rgba(76,175,80,0.12);
}
.theme-tourism .client-form-box .modal-footer .btn-primary {
    background: linear-gradient(135deg, #2e7d32, #4caf50);
    box-shadow: 0 4px 12px rgba(76,175,80,0.3);
}
.theme-tourism .header-link {
    background: rgba(76,175,80,0.08);
    border-color: rgba(76,175,80,0.3); color: #66bb6a;
}
.theme-tourism .header-link:hover {
    background: rgba(76,175,80,0.18);
    border-color: #4caf50;
    box-shadow: 0 0 12px rgba(76,175,80,0.3);
}

/* ========================================
   V2.2 新增：站点 Logo 图片 + 版权栏
   ======================================== */
.site-logo-img {
    max-height: 32px; vertical-align: middle;
    border-radius: 4px;
    object-fit: contain;
}
.site-copyright {
    text-align: center; padding: 12px 16px;
    color: var(--text-dim); font-size: 11px;
    background: rgba(0,0,0,0.2);
    border-top: 1px solid rgba(255,255,255,0.05);
    position: relative; z-index: 1;
    flex-shrink: 0; width: 100%;
    box-sizing: border-box;
}
/* 确保 copyright 在 flex 容器中始终在底部 */
.login-page, .admin-page, .home-page {
    /* 已经是 flex column 但需要确保 copyright 推到底部 */
}
.admin-page, .home-page { position: relative; }
/* copyright 通过 appendCopyright 直接加到 container，依赖 flex 布局 */
.login-page { flex-direction: column; }
.login-page .site-copyright {
    margin-top: auto; background: rgba(0,0,0,0.3);
}

/* ========================================
   静态数据可视化编辑器
   ======================================== */
.btn-xs { padding: 2px 6px; font-size: 11px; }
.static-data-editor { width: 100%; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; background: rgba(10,26,46,0.4); }
.static-data-editor-header { display: flex; align-items: center; justify-content: space-between; padding: 8px 10px; background: rgba(0,212,255,0.06); border-bottom: 1px solid var(--border); }
.static-data-editor-title { font-size: 12px; color: var(--text-bright); }
.static-data-visual { padding: 10px; }
.static-data-json { padding: 10px; }
.static-data-json textarea { width: 100%; min-height: 120px; background: var(--bg-dark); border: 1px solid var(--border); border-radius: 4px; color: var(--text); font-size: 12px; padding: 8px; resize: vertical; }

/* 表格数据编辑器 */
.table-data-editor { width: 100%; overflow-x: auto; }
.table-data-toolbar { display: flex; gap: 8px; margin-bottom: 10px; }
.table-data-header, .table-data-row { display: flex; gap: 4px; min-width: max-content; }
.table-data-header { margin-bottom: 4px; padding-bottom: 4px; border-bottom: 1px solid rgba(0,212,255,0.15); }
.table-data-rows { display: flex; flex-direction: column; gap: 4px; max-height: 240px; overflow-y: auto; }
.table-data-cell { flex: 1; min-width: 60px; }
.table-data-cell.table-data-action { flex: 0 0 28px; display: flex; align-items: center; justify-content: center; }
.table-data-cell input { width: 100%; padding: 5px 6px; background: rgba(10,26,46,0.7); border: 1px solid rgba(0,212,255,0.15); border-radius: 3px; color: var(--text); font-size: 12px; }
.table-data-cell input:focus { border-color: var(--primary); }
.table-data-header .table-data-cell input { color: var(--text-bright); font-weight: 500; background: rgba(0,212,255,0.08); }

/* 数组数据编辑器 */
.array-data-editor { width: 100%; }
.array-data-toolbar { margin-bottom: 10px; }
.array-data-items { display: flex; flex-direction: column; gap: 8px; max-height: 280px; overflow-y: auto; }
.array-data-item { background: rgba(10,26,46,0.5); border: 1px solid rgba(0,212,255,0.12); border-radius: 4px; padding: 8px; }
.array-data-item-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; font-size: 12px; color: var(--text-dim); }
.array-data-field { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.array-data-field label { width: 50px; flex-shrink: 0; font-size: 11px; color: var(--text-dim); }
.array-data-field input { flex: 1; padding: 5px 6px; background: rgba(10,26,46,0.7); border: 1px solid rgba(0,212,255,0.15); border-radius: 3px; color: var(--text); font-size: 12px; }
.array-data-field input:focus { border-color: var(--primary); }

/* 单值数据编辑器 */
.single-data-editor { width: 100%; padding-top: 4px; }
.single-data-editor .property-row { margin-bottom: 8px; }
