﻿    .btn-group {
    width: 100%;
    position: fixed;
    bottom: 0px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    justify-content: center;
    background: white;
    padding: 1rem 0rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    z-index: 9999;
}

.btn-submit {
    padding: 0.6rem 2rem;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
}

.btn-submit:hover {
    background: #218838;
}

/* 编辑页面特有样式调整 */
.readonly-field {
    background-color: #f5f5f5;
    color: #6c757d;
}

.form-group input.readonly-field,
.form-group textarea.readonly-field,
.form-group select.readonly-field {
    background-color: #e9ecef;
    cursor: not-allowed;
}

.btn-cancel {
    background: #6c757d;
    color: white;
    text-decoration: none;
    padding: 0.6rem 2rem;
    border-radius: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-cancel:hover {
    background: #5a6268;
    transform: translateY(-1px);
    text-decoration: none;
    color: white;
}

.btn-delete {
    background: #dc3545;
    color: white;
    text-decoration: none;
    padding: 0.6rem 2rem;
    border-radius: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn-delete:hover {
    background: #c82333;
    transform: translateY(-1px);
    text-decoration: none;
    color: white;
}

.add-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    margin-bottom: 2rem;
    padding: 0.5rem;
}

.add-header {
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e9ecef;
}

.add-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 0.5rem;
}

.form-section {
    background: #fefefe;
    border-radius: 16px;
    border: 1px solid #e9ecef;
    overflow: hidden;
    transition: box-shadow 0.2s;
        padding: 1.2rem;
}

.form-section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    padding: 0.8rem 1.2rem;
    background: #f8f9fa;
    border-left: 4px solid #28a745;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-group {
    padding: 0.1rem 0.2rem;
    border-bottom: 1px solid #f1f3f5;
}

.form-group:last-child {
    border-bottom: none;
}

.form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.1rem;
    font-size: 0.95rem;
    display: block;
}

.form-label.required:after {
    content: "*";
    color: #e74c3c;
    margin-left: 4px;    }    .form-control select{
        width: 100%;
        padding: 0.5rem;
        border: 1px solid #ddd;
        border-radius: 4px;
        font-size: 0.95rem;
    }
    .form-control {
width: 100%;
    padding: 0.1rem 0.1rem;
    font-size: 0.95rem;
    border: 1px solid #ced4da;
    border-radius: 8px;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: #28a745;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

select.form-control {
    background-color: white;
    cursor: pointer;
}

textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .add-container {
        padding: 1rem;
    }
    
    .btn-group {
        flex-direction: column;
        width: calc(100% - 40px);
        left: 20px;
        transform: none;
    }
    
    .btn-submit, 
    .btn-cancel,
    .btn-delete {
        width: 100%;
        justify-content: center;
    }
}