.login-section {
    max-width: 400px;
    margin: 4rem auto;
    text-align: center;
}

.login-section h1 {
    margin-bottom: 0.5rem;
}

.hint {
    color: #6c757d;
    margin-bottom: 1.5rem;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
}

.login-form input {
    padding: 0.75rem 1rem;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    font-size: 1rem;
}

.error-msg {
    color: #ef4444;
    margin-top: 1rem;
}

.success-msg {
    color: #10b981;
    margin-top: 1rem;
    font-weight: 500;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Header 样式 */
header.resume-header {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

header.resume-header .back-link {
    color: #6c757d;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

header.resume-header .back-link:hover {
    color: #4db6ac;
}

#logoutBtn {
    background: transparent;
    border: 1px solid #dc2626;
    color: #dc2626;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

#logoutBtn:hover {
    background: #dc2626;
    color: #fff;
}

#logoutBtn.hidden {
    display: none;
}

.editor-block {
    background: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.editor-block h2 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.block-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.block-header h2 {
    margin-bottom: 0;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-grid label {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    font-size: 0.85rem;
    color: #495057;
}

.form-grid label.full-width {
    grid-column: 1 / -1;
}

.form-grid input,
.form-grid textarea {
    padding: 0.6rem 0.75rem;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: inherit;
}

.btn-primary,
.btn-secondary,
.btn-danger {
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    font-family: inherit;
}

.btn-primary {
    background: #6366f1;
    color: #fff;
}

.btn-primary:hover {
    background: #4f46e5;
}

.btn-secondary {
    background: #e9ecef;
    color: #495057;
}

.btn-secondary:hover {
    background: #dee2e6;
}

.btn-danger {
    background: #fee2e2;
    color: #ef4444;
}

.btn-danger:hover {
    background: #fecaca;
}

.edit-card {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.edit-card label.full-width {
    grid-column: 1 / -1;
}

.edit-card label {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.8rem;
    color: #6c757d;
}

.edit-card input,
.edit-card textarea {
    padding: 0.5rem;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 0.9rem;
    font-family: inherit;
}

.card-actions {
    grid-column: 1 / -1;
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.item-list:empty::after {
    content: "暂无记录，点击「新增」添加";
    color: #adb5bd;
    font-size: 0.9rem;
}

@media (max-width: 600px) {
    .form-grid,
    .edit-card {
        grid-template-columns: 1fr;
    }
}
