/* 用户留言页面专用样式 */
.feedback-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 20px;
    width: 80%;
    margin: auto;
}

.feedback-form-panel {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.form-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
    min-width: 250px;
}

.form-group label {
    font-weight: 500;
    color: #2c3e50;
    font-size: 0.9rem;
}

.form-group input, .form-group select, .form-group textarea {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
    resize: vertical;
}

.form-group textarea {
    min-height: 120px;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.required::after {
    content: " *";
    color: #e74c3c;
}

.form-hint {
    font-size: 0.8rem;
    color: #7f8c8d;
    margin-top: 3px;
}

.feedback-list-panel {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.feedback-list {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-height: 600px;
    overflow-y: auto;
}

.feedback-item {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    border-left: 4px solid #3498db;
    transition: transform 0.2s;
}

.feedback-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.feedback-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e9ecef;
}

.feedback-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 600;
    color: #2c3e50;
}

.user-contact {
    font-size: 0.8rem;
    color: #7f8c8d;
}

.feedback-time {
    font-size: 0.8rem;
    color: #7f8c8d;
}

.feedback-content {
    margin-bottom: 10px;
    line-height: 1.6;
    color: #2c3e50;
}

.feedback-category {
    display: inline-block;
    padding: 4px 8px;
    background: #e8f4fc;
    color: #3498db;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.feedback-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #e9ecef;
    font-size: 0.8rem;
    color: #7f8c8d;
}

.feedback-actions {
    display: flex;
    gap: 10px;
}

.feedback-action {
    background: none;
    border: none;
    color: #3498db;
    cursor: pointer;
    font-size: 0.8rem;
    padding: 0;
}

.feedback-action:hover {
    text-decoration: underline;
}

.empty-feedback {
    text-align: center;
    padding: 40px 20px;
    color: #7f8c8d;
    font-style: italic;
}

.feedback-stats {
    background: #f5f5f5;
    padding: 10px 15px;
    border-top: 1px solid #eee;
    font-size: 0.85rem;
    color: #7f8c8d;
    display: flex;
    justify-content: space-between;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .form-group {
        min-width: 100%;
    }
    
    .feedback-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .feedback-time {
        align-self: flex-end;
    }
    
    .feedback-status {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .feedback-actions {
        align-self: flex-end;
    }
    
    .feedback-stats {
        flex-direction: column;
        gap: 5px;
    }
}


/* 密码模态框样式 */
.password-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.password-modal.active {
    display: flex;
}

.modal-content {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 400px;
    position: relative;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.modal-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #7f8c8d;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-modal:hover {
    color: #e74c3c;
}

.modal-body {
    margin-bottom: 20px;
}

.modal-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
}

.modal-form-group label {
    font-weight: 500;
    color: #2c3e50;
    font-size: 0.9rem;
}

.modal-form-group input {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
}

.modal-form-group input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.modal-error {
    color: #e74c3c;
    font-size: 0.85rem;
    margin-top: 5px;
    display: none;
}

.modal-error.active {
    display: block;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.modal-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.modal-btn-confirm {
    background: #e74c3c;
    color: white;
}

.modal-btn-confirm:hover {
    background: #c0392b;
}

.modal-btn-cancel {
    background: #95a5a6;
    color: white;
}

.modal-btn-cancel:hover {
    background: #7f8c8d;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        padding: 20px;
    }
    
    .modal-footer {
        flex-direction: column;
    }
    
    .modal-btn {
        width: 100%;
    }
}