/* ========== Create Page – 天眼查风格 ========== */

.wrap { max-width: 600px; margin: 14px auto; padding: 0 16px; }

.steps-indicator { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 0; margin-bottom: 10px; }
.step-item { text-align: center; }
.step-dot { width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; background: #f5f5f5; color: #999; border: 1px solid #e8e8e8; }
.step-item.active .step-dot { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.step-label { font-size: 12px; color: #999; margin-top: 3px; }
.step-item.active .step-label { color: var(--color-primary); font-weight: 500; }
.step-line { width: 28px; height: 1px; background: #e8e8e8; }

.card { background: #fff; border: 1px solid #e8e8e8; padding: 24px; }

h1 { margin: 0 0 6px; font-size: 20px; color: #333; }
p { margin: 0 0 14px; color: #666; font-size: 14px; }


.grid { display: grid; gap: 12px; }
label { display: block; font-size: 14px; margin-bottom: 6px; color: #333; font-weight: 500; }
label.field-label-error { color: #f53f3f; }
.req { color: #f53f3f; margin-left: 2px; }
.recommend-badge { display: inline-block; font-size: 10px; font-weight: 500; padding: 1px 4px; background: #fff7e8; color: #ff8800; margin-left: 4px; vertical-align: middle; border: 1px solid #ffe4b8; }

input, select { width: 100%; box-sizing: border-box; border: 1px solid #d9d9d9; padding: 7px 10px; font-size: 14px; background: #fff; outline: none; transition: border-color .12s, box-shadow .12s; }
input:focus, select:focus { border-color: var(--color-primary); }
input.field-error, select.field-error { border-color: #f53f3f; box-shadow: 0 0 0 2px rgba(245,63,63,.08); }
.field-error-text { display: none; margin-top: 4px; font-size: 12px; line-height: 1.4; color: #f53f3f; }
.field-error-text.visible { display: block; }

.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.actions { margin-top: 14px; text-align: right; }
button { border: 0; background: var(--color-primary); color: #fff; padding: 8px 18px; font-size: 14px; font-weight: 500; cursor: pointer; transition: background .12s; }
button:hover { background: var(--color-primary-hover); }
button:disabled { background: #a3d0ff; cursor: not-allowed; }
.tips { min-height: 18px; font-size: 13px; }
.tips.error { color: #f53f3f; }
.tips.success { color: #00b578; }
.tips.warn { color: #ff8800; }
.inline-tip { margin-top: 3px; font-size: 12px; color: #999; }

/* Autocomplete */
.autocomplete-wrap { position: relative; }
.autocomplete-list { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border: 1px solid #d9d9d9; border-top: 0; z-index: 100; max-height: 260px; overflow-y: auto; box-shadow: 0 4px 12px rgba(0,0,0,.08); }
.autocomplete-list.open { display: block; }
.autocomplete-item { padding: 8px 10px; cursor: pointer; font-size: 13px; border-bottom: 1px solid #f5f5f5; }
.autocomplete-item:hover, .autocomplete-item.active { background: #f0f7ff; }
.autocomplete-item .ac-name { font-weight: 500; color: #333; }
.autocomplete-item .ac-meta { font-size: 12px; color: #999; margin-top: 2px; }
.autocomplete-item .ac-highlight { color: var(--color-primary); font-weight: 600; }
.autocomplete-empty { padding: 10px; font-size: 13px; color: #999; text-align: center; }

/* AI badge */
.ai-badge { display: inline-block; font-size: 10px; font-weight: 500; padding: 1px 5px; background: #e8f4ff; color: var(--color-primary); border: 1px solid #bae0ff; vertical-align: middle; }

/* URL shortcut */
.url-shortcut { margin-bottom: 16px; padding: 14px; background: #f0f7ff; border: 1px solid #bae0ff; }
.url-shortcut-title { font-size: 14px; font-weight: 500; color: #333; margin-bottom: 8px; }
.url-shortcut-row { display: flex; gap: 8px; }
.url-shortcut-row input { flex: 1; }
.url-shortcut-row button { white-space: nowrap; padding: 7px 16px; }
.url-shortcut .inline-tip { margin-top: 6px; }
.url-divider { text-align: center; font-size: 13px; color: #999; margin-bottom: 14px; position: relative; }
.url-divider::before, .url-divider::after { content: ''; position: absolute; top: 50%; width: 38%; height: 1px; background: #e8e8e8; }
.url-divider::before { left: 0; }
.url-divider::after { right: 0; }

/* AI progress */
.ai-progress { margin-bottom: 10px; display: none; }
.ai-progress.visible { display: block; }
.ai-progress-bar { height: 4px; background: #f0f0f0; overflow: hidden; margin-bottom: 8px; }
.ai-progress-fill { height: 100%; background: var(--color-primary); transition: width .3s ease; width: 0; }
.ai-progress-tasks { display: flex; gap: 12px; flex-wrap: wrap; }
.ai-progress-task { font-size: 12px; color: #999; }
.ai-progress-task.done { color: #00b578; }
.ai-progress-task.doing { color: var(--color-primary); }
.ai-progress-task i { margin-right: 3px; }

@media (max-width: 640px) { .row { grid-template-columns: 1fr; } .url-shortcut-row { flex-direction: column; } .url-divider::before, .url-divider::after { width: 30%; } }
