/* 彩色二维码生成器 */
.cfqr-grid { display: grid; grid-template-columns: 400px minmax(0, 1fr); gap: 20px; align-items: start; }
.cfqr-panel { background: var(--bg); border: 1px solid var(--rule); border-radius: var(--radius-md); padding: 20px; }
.cfqr-section { margin-bottom: 18px; }
.cfqr-section:last-child { margin-bottom: 0; }
.cfqr-section h3 { display: flex; align-items: center; gap: 6px; font-size: .95rem; margin: 0 0 12px; }
.cfqr-section h3 i { color: var(--accent); }
.cfqr-section textarea { width: 100%; padding: 9px 12px; border: 1px solid var(--rule); border-radius: var(--radius-sm); background: var(--bg); color: var(--ink); font-size: .9rem; box-sizing: border-box; resize: vertical; }
.cfqr-section textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.cfqr-upload-row { margin-top: 10px; }
.cfqr-info { font-size: .8rem; color: var(--muted); margin: 8px 0 0; }
.cfqr-mode-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.cfqr-mode-card { display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; }
.cfqr-mode-card input { position: absolute; opacity: 0; pointer-events: none; }
.cfqr-mode-demo { width: 100%; aspect-ratio: 1; border-radius: var(--radius-sm); border: 2px solid var(--rule); transition: all .15s ease; }
.cfqr-mode-name { font-size: .74rem; color: var(--muted); }
.cfqr-mode-card input:checked ~ .cfqr-mode-demo { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.cfqr-mode-card input:checked ~ .cfqr-mode-name { color: var(--accent); font-weight: 600; }
.cfqr-demo-block { background: conic-gradient(#ef4444 0 25%, #10b981 0 50%, #3b82f6 0 75%, #f59e0b 0); }
.cfqr-demo-row { background: repeating-linear-gradient(180deg, #ef4444 0 25%, #f59e0b 0 50%, #10b981 0 75%, #3b82f6 0); }
.cfqr-demo-column { background: repeating-linear-gradient(90deg, #ef4444 0 25%, #f59e0b 0 50%, #10b981 0 75%, #3b82f6 0); }
.cfqr-demo-diagonal { background: repeating-linear-gradient(45deg, #ef4444 0 25%, #f59e0b 0 50%, #10b981 0 75%, #3b82f6 0); }
.cfqr-demo-gradient { background: linear-gradient(135deg, #ff6b6b, #4ecdc4); }
.cfqr-color-field { margin-bottom: 10px; }
.cfqr-color-field > label { display: block; font-size: .85rem; color: var(--muted); margin-bottom: 6px; }
.cfqr-color-wrap { display: flex; align-items: center; gap: 8px; }
.cfqr-color-wrap input[type="color"] { width: 42px; height: 38px; padding: 2px; border: 1px solid var(--rule); border-radius: var(--radius-sm); background: var(--bg); cursor: pointer; flex-shrink: 0; }
.cfqr-color-wrap span { font-size: .8rem; color: var(--muted); font-family: monospace; }
.cfqr-form-group { margin-bottom: 14px; }
.cfqr-form-group > label { display: block; font-size: .85rem; color: var(--muted); margin-bottom: 6px; }
.cfqr-form-group input[type="range"] { width: 100%; accent-color: var(--accent); }
.cfqr-form-group select { width: 100%; padding: 9px 12px; border: 1px solid var(--rule); border-radius: var(--radius-sm); background: var(--bg); color: var(--ink); font-size: .9rem; }
.cfqr-actions { display: flex; gap: 10px; margin-top: 16px; }
.cfqr-actions .btn { flex: 1; justify-content: center; }
.cfqr-preview-box { min-height: 480px; display: flex; align-items: center; justify-content: center; background: var(--bg2); border: 1px dashed var(--rule); border-radius: var(--radius-sm); padding: 20px; }
.cfqr-placeholder { text-align: center; color: var(--muted); }
.cfqr-placeholder i { font-size: 3rem; color: var(--accent); display: block; margin-bottom: 12px; opacity: .7; }

@media (max-width: 900px) {
  .cfqr-grid { grid-template-columns: 1fr; }
  .cfqr-mode-grid { grid-template-columns: repeat(3, 1fr); }
}
