/* 参考草料二维码 cli.im 风格：浅色主题、绿色强调、卡片式布局 */
* { box-sizing: border-box; }
:root {
  --bg: #f5f7fa;
  --surface: #ffffff;
  --surface-alt: #fafbfc;
  --border: #e8eaed;
  --border-light: #ebeef2;
  --text: #1f2329;
  --text-secondary: #4e5969;
  --muted: #8f959e;
  --accent: #00c853;
  --accent-hover: #00e676;
  --accent-light: rgba(0, 200, 83, 0.08);
  --paper: #fff;
  --shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.08);
  --radius: 8px;
  --radius-sm: 6px;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  font-size: 14px;
  line-height: 1.5;
}
.app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* 屏幕阅读器专用：视觉隐藏但可读 */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* 顶部导航 - 草料风格：白底、绿色点缀 */
.header {
  padding: 0 24px;
  min-height: 56px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.header-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.header-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}
.header-nav a:hover {
  color: var(--accent);
}
.header-logo {
  height: 32px;
  width: auto;
  object-fit: contain;
  display: block;
}
.header h1 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}
.toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.toolbar label {
  font-size: 13px;
  color: var(--text-secondary);
}
.toolbar select,
.toolbar button {
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}
.toolbar select:hover,
.toolbar button:not(.primary):hover {
  background: var(--surface-alt);
  border-color: var(--muted);
}
.toolbar button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.toolbar button.primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

/* 主布局 */
main {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}
.section-tool {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}
.main {
  display: flex;
  flex: 1;
  min-height: 0;
  max-height: calc(100vh - 20px);
  padding: 16px;
  gap: 16px;
}

/* 功能介绍 / 用户反馈 / 价格 / 联系方式 */
.section-landing {
  padding: 48px 24px;
  max-width: 960px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}
.section-landing h2 {
  margin: 0 0 8px 0;
  font-size: 24px;
  font-weight: 600;
  color: var(--text);
  text-align: center;
}
.section-subtitle {
  margin: 0 0 36px 0;
  font-size: 15px;
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.6;
}
.section-landing:not(:has(.section-subtitle)) h2 {
  margin-bottom: 32px;
}
.landing-inner {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}
.feature-card h3 {
  margin: 0 0 12px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}
.feature-card p {
  margin: 0;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}
.feature-card-wide {
  grid-column: 1 / -1;
}
.feature-card-intro {
  border-left: 4px solid var(--accent);
}
.feature-card code {
  background: var(--surface-alt);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
}
.feedback-grid {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.feedback-card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 20px;
  margin: 0;
  box-shadow: var(--shadow);
}
.feedback-card p {
  margin: 0 0 12px 0;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  font-style: italic;
}
.feedback-card footer {
  font-size: 13px;
  color: var(--muted);
}
.pricing-grid {
  max-width: 480px;
  margin: 0 auto;
  grid-template-columns: 1fr;
}
.pricing-card {
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.pricing-card-free {
  border-color: var(--accent);
}
.pricing-card h3 {
  margin: 0 0 12px 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}
.pricing-price {
  margin: 0 0 20px 0;
  font-size: 28px;
  font-weight: 600;
  color: var(--accent);
}
.pricing-features {
  margin: 0 0 16px 0;
  padding-left: 20px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.8;
}
.pricing-note {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}
.section-contact .landing-inner {
  display: block;
  max-width: 480px;
  margin: 0 auto;
}
.section-contact .section-subtitle {
  margin-bottom: 24px;
}
.contact-list {
  margin: 0 0 20px 0;
  padding-left: 24px;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 2;
}
.contact-footer {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}
.contact-list a {
  color: var(--accent);
  text-decoration: none;
}
.contact-list a:hover {
  text-decoration: underline;
}
.footer {
  padding: 32px 24px;
  background: var(--surface);
  border-top: 1px solid var(--border);
}
.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-logo {
  flex-shrink: 0;
  height: 36px;
  width: auto;
  object-fit: contain;
}
.footer-content {
  flex: 1;
  text-align: center;
}
.footer-slogan {
  margin: 0 0 16px 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 16px;
}
.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
}
.footer-links a:hover {
  color: var(--accent);
}
.footer-copy {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

/* 侧边面板 - 卡片式 */
.panel {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow);
  overflow: auto;
}
/* 统一面板标题：同高度、下方分割线 */
.panel-title {
  margin: 0 0 12px 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  line-height: 1.4;
}
.panel-blocks {
  width: 280px;
  padding: 16px;
  flex-shrink: 0;
  max-height: calc(100vh - 50px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.panel-props {
  width: 280px;
  padding: 16px;
  flex-shrink: 0;
  max-height: calc(100vh - 50px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.panel-center {
  flex: 1;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  min-width: 0;
  min-height: 0;
  gap: 16px;
  max-height: calc(100vh - 50px);
  overflow: hidden;
}

/* 添加块下拉 */
.add-block {
  margin-bottom: 14px;
}
.add-block select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  cursor: pointer;
  transition: border-color 0.2s;
}
.add-block select:hover,
.add-block select:focus {
  border-color: var(--accent);
  outline: none;
}

/* 块列表 */
.block-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.block-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  margin-bottom: 6px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  background: var(--surface-alt);
  transition: all 0.2s;
}
.block-item:hover {
  background: var(--accent-light);
  border-color: rgba(0, 200, 83, 0.2);
}
.block-item.selected {
  background: var(--accent-light);
  border-color: var(--accent);
}
.block-item .drag {
  cursor: grab;
  color: var(--muted);
  font-size: 12px;
}
.block-item .label {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  color: var(--text);
}
.block-item .block-actions {
  display: flex;
  align-items: center;
  gap: 2px;
}
.block-item .btn-move {
  padding: 3px 5px;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 10px;
  line-height: 1;
  transition: all 0.2s;
}
.block-item .btn-move:hover {
  color: var(--accent);
  background: rgba(0, 200, 83, 0.15);
}
.block-item .del {
  padding: 3px 6px;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  transition: all 0.2s;
}
.block-item .del:hover {
  color: #f44336;
  background: rgba(244, 67, 54, 0.1);
}
.block-item.dragging {
  opacity: 0.6;
  background: var(--surface-alt);
}
.block-item.drag-over {
  border-color: var(--accent);
  background: var(--accent-light);
}

/* 预览区 - 卡片 */
.preview-wrap-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 12px 0;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.preview-wrap-header .panel-title {
  margin: 0;
  padding-bottom: 0;
  border-bottom: none;
}
.preview-wrap-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.preview-wrap-header #clearBlocks,
.preview-wrap-header #previewImage,
.preview-wrap-header #downloadPreview {
  margin: 0;
  padding: 1px 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font-size: 12px;
  line-height: 1.4;
  cursor: pointer;
  transition: all 0.2s;
}
.preview-wrap-header #clearBlocks:hover,
.preview-wrap-header #previewImage:hover,
.preview-wrap-header #downloadPreview:hover {
  background: var(--surface-alt);
  border-color: var(--muted);
}
.preview-wrap-header #previewImage:disabled,
.preview-wrap-header #downloadPreview:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.preview-wrap-header #previewImage:disabled:hover,
.preview-wrap-header #downloadPreview:disabled:hover {
  background: var(--surface);
  border-color: var(--border);
}
/* 预览图片弹窗 */
.preview-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
}
.preview-modal[aria-hidden="false"] {
  display: flex;
}
.preview-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  cursor: pointer;
}
.preview-modal-content {
  position: relative;
  max-width: 100%;
  max-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.preview-modal-img {
  max-width: 100%;
  max-height: calc(100vh - 48px);
  object-fit: contain;
  background: #fff;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
}
.preview-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 16px;
  overflow: hidden;
}
.preview-paper {
  flex: 1;
  min-height: 280px;
  width: 320px;
  align-self: center;
  background: var(--paper);
  color: #111;
  border-radius: var(--radius-sm);
  box-shadow: inset 0 0 0 1px var(--border);
  padding: 20px;
  overflow-y: auto;
  font-size: 12px;
  line-height: 1.5;
}
.preview-paper[data-paper-width="57"] {
  width: 228px;
}
.preview-paper[data-paper-width="80"] {
  width: 320px;
}
.preview-line { margin: 3px 0; }
.preview-line.center { text-align: center; }
.preview-line.right { text-align: right; }
.preview-line.bold { font-weight: 600; }
.preview-line.double-height { font-size: 1.2em; }
.preview-line.double-both { font-size: 1.2em; letter-spacing: 0.1em; }
.preview-line.font-b { font-size: 0.9em; }
.preview-line-sep {
  font-size: 12px;
  color: #333;
  margin: 4px 0;
  white-space: nowrap;
  font-family: ui-monospace, "Cascadia Code", "Consolas", monospace;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}
.preview-cut {
  margin: 10px 0;
  border-top: 1px dashed #999;
  font-size: 11px;
  color: #666;
  text-align: center;
  padding-top: 8px;
}
.preview-spacing { min-height: 0.5em; }
.preview-barcode-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 8px 0;
}
.preview-barcode-wrap svg.preview-barcode { max-width: 100%; height: auto; }
.preview-qrcode-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 8px 0;
}
.preview-qrcode-wrap.qrcode-align-left { justify-content: flex-start; }
.preview-qrcode-wrap.qrcode-align-right { justify-content: flex-end; }
.preview-qrcode-wrap.qrcode-align-center { justify-content: center; }
.preview-qrcode-wrap .preview-qrcode img { max-width: 100%; height: auto; }
.preview-image-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 8px 0;
}
.preview-image-wrap.image-align-left { justify-content: flex-start; }
.preview-image-wrap.image-align-right { justify-content: flex-end; }
.preview-image-wrap.image-align-center { justify-content: center; }
.preview-image-wrap img.preview-image { max-width: 100%; max-height: 160px; height: auto; object-fit: contain; }
.preview-image-wrap img.preview-image-thermal { image-rendering: pixelated; image-rendering: crisp-edges; }
.preview-image-loading { font-size: 12px; color: var(--muted); padding: 16px 0; }
.preview-group {
  margin: 10px 0;
  padding: 10px 12px;
  border-left: 3px solid var(--accent);
  background: var(--surface-alt);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.preview-group-header {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
}

/* 预览可点击、选中、内联编辑 */
.preview-clickable {
  position: relative;
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s;
}
.preview-delete-btn {
  position: absolute;
  top: 2px;
  right: 2px;
  z-index: 2;
  padding: 2px 5px;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: var(--accent);
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s;
}
.preview-delete-btn:hover {
  color: var(--accent-hover);
  background: var(--accent-light);
}
.preview-clickable:hover {
  background: var(--accent-light);
}
.preview-selected {
  margin-left: -6px;
  margin-right: -6px;
  padding-left: 6px;
  padding-right: 6px;
  box-sizing: border-box;
  background: var(--accent-light) !important;
  box-shadow: inset 0 0 0 1px var(--accent);
}
.preview-inline-edit {
  position: fixed !important;
  border: 2px solid var(--accent);
  border-radius: var(--radius-sm);
  outline: none;
  font-family: inherit;
  font-size: inherit;
}
.preview-drag-indicator {
  background: var(--accent) !important;
  box-shadow: 0 0 6px var(--accent);
  transition: opacity 0.1s;
}

/* 脚本输出区 */
.output-wrap {
  flex: 0 0 360px;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  padding: 16px;
  overflow: hidden;
}
.output-wrap-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 12px 0;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.output-wrap-header .panel-title {
  margin: 0;
  padding-bottom: 0;
  border-bottom: none;
}
.output-wrap-actions {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}
.output-wrap-header #copyScript {
  margin: 0;
  padding: 1px 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font-size: 12px;
  line-height: 1.4;
  cursor: pointer;
  transition: all 0.2s;
}
.output-wrap-header #copyScript:hover {
  background: var(--surface-alt);
  border-color: var(--muted);
}
.output-tabs {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
  margin: 0 8px;
}
.output-tab {
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text-secondary);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}
.output-tab:hover {
  background: var(--surface-alt);
  color: var(--text);
}
.output-tab.active {
  background: var(--accent-light);
  border-color: var(--accent);
  color: var(--accent);
}
.output-script {
  flex: 1;
  min-height: 100px;
  padding: 14px;
  background: #f8f9fb;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: "SF Mono", "Consolas", "Monaco", "Menlo", monospace;
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-secondary);
  white-space: pre-wrap;
  overflow: auto;
}
.output-script.output-script-lines .script-line {
  display: block;
  cursor: pointer;
  padding: 1px 4px;
  margin: 0 -4px;
  border-radius: 3px;
}
.output-script.output-script-lines .script-line:hover {
  background: rgba(0, 0, 0, 0.05);
}
.output-script.output-script-lines .script-line.script-line-highlight {
  background: rgba(0, 200, 83, 0.22);
  color: var(--text);
}
/* 属性面板 */
.prop-group {
  margin-bottom: 16px;
}
.prop-group label {
  display: block;
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.prop-group input,
.prop-group select,
.prop-group textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  transition: border-color 0.2s;
}
.prop-group input:focus,
.prop-group select:focus,
.prop-group textarea:focus {
  border-color: var(--accent);
  outline: none;
}
.prop-group input[type="checkbox"] {
  width: auto;
  margin-right: 8px;
}
.prop-image-value {
  display: flex;
  gap: 8px;
  align-items: center;
}
.prop-image-value input[type="text"] {
  flex: 1;
  min-width: 0;
}
.prop-group label:has(input[type="checkbox"]) {
  display: flex;
  align-items: center;
  cursor: pointer;
  margin-bottom: 0;
}
.prop-group textarea {
  min-height: 64px;
  resize: vertical;
}
.prop-group .hint {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}
.prop-group-spacing {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

/* 图标按钮组 */
.prop-group-icons label {
  margin-bottom: 8px;
}
.icon-btn-group {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
}
.icon-btn:hover {
  background: var(--surface-alt);
  border-color: var(--muted);
  color: var(--text);
}
.icon-btn.active {
  background: var(--accent-light);
  border-color: var(--accent);
  color: var(--accent);
}
.icon-btn svg {
  display: block;
}
.size-icon {
  font-weight: 600;
  font-family: inherit;
}
.size-icon.size-normal { font-size: 14px; }
.size-icon.size-tall { font-size: 18px; line-height: 1.2; letter-spacing: -0.5px; }
.size-icon.size-wide { font-size: 14px; letter-spacing: 2px; }
.size-icon.size-double { font-size: 18px; letter-spacing: 2px; line-height: 1.2; }

/* 多列配置 */
.columns-list .column-row {
  margin-bottom: 14px;
  padding: 10px 12px;
  background: var(--surface-alt);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.columns-list .column-row-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}
.columns-list .btn-remove-col {
  padding: 2px 6px;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
}
.columns-list .btn-remove-col:hover {
  color: #f44336;
  background: rgba(244, 67, 54, 0.1);
}
.columns-list .column-row input[type="text"] {
  width: 100%;
  margin-bottom: 8px;
}
.columns-list .column-row-opts {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.columns-list .column-row-opts select {
  flex: 1;
  min-width: 80px;
}
.columns-list .weight-label {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
  white-space: nowrap;
}
.columns-list .weight-input {
  width: 56px !important;
  margin: 0 !important;
}
.columns-list .btn-add-col {
  width: 100%;
  padding: 8px 12px;
  margin-top: 4px;
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}
.columns-list .btn-add-col:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
}

/* 表格行配置 */
.table-row-item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.table-row-item input {
  flex: 1;
}
.table-rows-wrap .btn-remove-row {
  padding: 4px 8px;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 14px;
  flex-shrink: 0;
}
.table-rows-wrap .btn-remove-row:hover {
  color: #f44336;
  background: rgba(244, 67, 54, 0.1);
}
.table-rows-wrap .btn-add-row {
  width: 100%;
  padding: 8px 12px;
  margin-top: 4px;
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
}
.table-rows-wrap .btn-add-row:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
}

.preview-table-wrap { margin: 8px 0; }
.preview-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 12px;
}
.preview-table th,
.preview-table td {
  border: 1px solid var(--border);
  padding: 4px 8px;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
}
.preview-table th {
  font-weight: 600;
  background: var(--surface-alt);
}
.preview-table tbody tr:nth-child(even) { background: rgba(0,0,0,0.02); }

.props-placeholder {
  color: var(--muted);
  font-size: 13px;
  padding: 16px 0;
}
.nested-blocks {
  margin: 10px 0 0 0;
  padding: 0 0 0 12px;
  border-left: 2px solid var(--accent);
  list-style: none;
}
