.field { position: relative; margin-bottom: var(--sp-4); }
.field input,
.field textarea,
.field select {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    color: var(--ui-text-1);
    background: var(--ui-surface);
    border: 1px solid var(--ui-border);
    border-radius: var(--ui-radius-sm);
    outline: none;
    font-size: 14.5px;
    transition: border-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease, background var(--dur-fast) ease;
}
.field textarea { height: auto; min-height: 132px; padding: 12px 14px; resize: vertical; line-height: 1.75; }
.field select {
    appearance: none;
    padding-right: 34px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%237b8496' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
}
.field label {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    padding: 0 4px;
    background: var(--ui-surface);
    color: var(--ui-text-3);
    font-size: 14px;
    line-height: 1;
    pointer-events: none;
    transition: top var(--dur-fast) ease, transform var(--dur-fast) ease, font-size var(--dur-fast) ease, color var(--dur-fast) ease;
}
.field input:hover,
.field textarea:hover,
.field select:hover { border-color: #cbd4e3; }
.field input:focus,
.field textarea:focus,
.field select:focus {
    border-color: var(--ui-accent);
    box-shadow: var(--ui-focus);
}
.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label,
.field select + label,
.field.is-filled label {
    top: -1px;
    transform: translateY(-50%) ;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .02em;
    color: var(--ui-accent);
}
.field textarea + label { top: 14px; transform: none; }
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label { top: -1px; transform: translateY(-50%); }
.field.has-error input,
.field.has-error textarea,
.field.has-error select { border-color: var(--ui-danger); }
.field.has-error label { color: var(--ui-danger); }
.field__help { margin: var(--sp-1) 0 0; color: var(--ui-text-3); font-size: 12px; }
.field__error { margin: var(--sp-1) 0 0; color: var(--ui-danger); font-size: 12px; }
.field__required { color: var(--ui-danger); }

/* 编辑器字段 */
.field--editor { position: relative; }
.field--editor .editor-box {
    min-height: 260px;
    border: 1px solid var(--ui-border);
    border-radius: var(--ui-radius-sm);
    background: var(--ui-surface);
    overflow: hidden;
    transition: border-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
}
.field--editor:focus-within .editor-box { border-color: var(--ui-accent); box-shadow: var(--ui-focus); }
.field--editor .editor-box textarea {
    min-height: 260px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    font-family: var(--ui-font-mono);
    font-size: 14px;
    line-height: 1.8;
    padding: var(--sp-4);
}
.field--editor label {
    top: 14px;
    transform: none;
}
.field--editor:focus-within label,
.field--editor.is-filled label {
    top: -1px;
    transform: translateY(-50%);
    font-size: 11px;
    color: var(--ui-accent);
}

/* 文件字段与上传区 */
.field--file { position: relative; display: flex; align-items: center; gap: var(--sp-2); padding-top: var(--sp-3); }
.field--file input[type=file] { display: none; }
.field--file .file-label { position: absolute; left: 12px; top: -1px; padding: 0 4px; background: var(--ui-surface); color: var(--ui-accent); font-size: 11px; font-weight: 600; }
.field--file .file-name { color: var(--ui-text-3); font-size: 12px; }
.checkbox { display: flex; align-items: center; gap: var(--sp-2); font-size: 13.5px; color: var(--ui-text-2); cursor: pointer; }
.checkbox input { width: 16px; height: 16px; accent-color: var(--ui-accent); }

/* 表单网格 */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--sp-4); }
.form-grid .field.full { grid-column: 1 / -1; }

@media (max-width: 767px) {
    .field input, .field textarea, .field select { font-size: 16px; }
    .form-grid { grid-template-columns: 1fr; }
    .form-grid .field { grid-column: 1 / -1; }
}
