/* CSV转换工具 */
.cvc-grid { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 20px; align-items: start; max-width: 1100px; margin: 0 auto; }
.cvc-side { background: var(--bg); border: 1px solid var(--rule); border-radius: var(--radius-md); padding: 22px; display: flex; flex-direction: column; gap: 18px; }
.cvc-section h3 { display: flex; align-items: center; gap: 6px; font-size: .95rem; margin: 0 0 12px; }
.cvc-section h3 i { color: var(--accent); }

.cvc-upload { border: 2px dashed var(--rule); border-radius: var(--radius-sm); padding: 26px 16px; text-align: center; cursor: pointer; transition: all .15s ease; }
.cvc-upload i { font-size: 30px; color: var(--accent); display: block; margin-bottom: 8px; }
.cvc-upload p { margin: 0 0 4px; font-size: .88rem; color: var(--ink); }
.cvc-upload .cvc-hint { font-size: .76rem; color: var(--muted); }
.cvc-upload:hover, .cvc-upload.dragover { border-color: var(--accent); background: var(--accent-soft); }

.cvc-form-row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.cvc-form-row > label { font-size: .82rem; color: var(--muted); }
.cvc-select { padding: 9px 12px; border: 1px solid var(--rule); border-radius: var(--radius-sm); background: var(--bg); color: var(--ink); font-size: .88rem; }
.cvc-select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.cvc-checkbox { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; cursor: pointer; }
.cvc-checkbox input { accent-color: var(--accent); width: 16px; height: 16px; }

.cvc-actions { display: flex; flex-direction: column; gap: 8px; }
.cvc-actions .btn { width: 100%; justify-content: center; }

.cvc-main { display: flex; flex-direction: column; gap: 20px; }
.cvc-preview-area { background: var(--bg); border: 1px solid var(--rule); border-radius: var(--radius-md); padding: 22px; min-height: 280px; }
.cvc-placeholder { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 60px 20px; color: var(--muted); }
.cvc-placeholder i { font-size: 40px; }
.cvc-placeholder p { margin: 0; font-size: .9rem; }

.cvc-file-card { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--bg2); border: 1px solid var(--rule); border-radius: var(--radius-sm); margin-bottom: 14px; }
.cvc-file-icon i { font-size: 26px; color: var(--accent); }
.cvc-file-info { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cvc-file-name { font-size: .88rem; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cvc-file-meta { font-size: .76rem; color: var(--muted); }
.cvc-file-status { font-size: .78rem; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.cvc-status-pending { background: var(--accent-soft); color: var(--accent); }
.cvc-status-processing { background: rgba(245, 158, 11, .15); color: #d97706; }
.cvc-status-done { background: rgba(16, 185, 129, .15); color: #059669; }
.cvc-status-error { background: rgba(239, 68, 68, .15); color: #dc2626; }

.cvc-preview-caption { font-size: .82rem; color: var(--muted); margin: 4px 0 10px; }
.cvc-table-wrap { overflow: auto; border: 1px solid var(--rule); border-radius: var(--radius-sm); }
.cvc-preview-table { width: 100%; border-collapse: collapse; font-size: .82rem; }
.cvc-preview-table th, .cvc-preview-table td { border: 1px solid var(--rule); padding: 6px 10px; text-align: left; white-space: nowrap; }
.cvc-preview-table th { background: var(--bg2); font-weight: 600; color: var(--muted); }

.cvc-tips { background: var(--bg); border: 1px solid var(--rule); border-radius: var(--radius-md); padding: 20px 24px; }
.cvc-tips h4 { display: flex; align-items: center; gap: 6px; font-size: 1rem; margin: 0 0 12px; }
.cvc-tips h4 i { color: var(--accent); }
.cvc-tip-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.cvc-tip-item strong { display: block; font-size: .88rem; color: var(--ink); margin-bottom: 4px; }
.cvc-tip-item p { margin: 0; color: var(--muted); font-size: .82rem; line-height: 1.6; }

.cvc-toast { position: fixed; top: 20px; left: 50%; transform: translateX(-50%) translateY(-20px); opacity: 0; transition: all .3s ease; padding: 10px 20px; border-radius: var(--radius-sm); color: #fff; font-size: .85rem; z-index: 2000; pointer-events: none; box-shadow: 0 6px 20px rgba(0,0,0,.2); }
.cvc-toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
.cvc-toast.info { background: #0ea5e9; }
.cvc-toast.error { background: #dc2626; }
.cvc-toast.success { background: #059669; }

@media (max-width: 900px) {
  .cvc-grid { grid-template-columns: 1fr; }
  .cvc-tip-grid { grid-template-columns: 1fr; }
}