 
:root {
    --primary: #2A2F3B;
    --accent: #5B7CFD;
    --text: #4A4A4A;
}



body {

    place-items: center;

}

.feedback-card {
    background: white;
    width: 100%;
    max-width: 600px;
    padding: 2.5rem;
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(18, 25, 50, 0.1);
    transform: translateY(20px);
    opacity: 0;
    animation: cardEntrance 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes cardEntrance {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card-header {
    text-align: center;
    margin-bottom: 2rem;
}

.card-header h1 {
    color: var(--primary);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.card-header p {
    color: #888;
    font-size: 0.9rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.input-field {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e0e3eb;
    border-radius: 0.75rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.input-field:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(91, 124, 253, 0.2);
}

.rating-container {
    display: flex;
    gap: 0.5rem;
    margin: 1rem 0;
}

.rating-star {
    cursor: pointer;
    width: 2.5rem;
    height: 2.5rem;
    background: #f5f6fa;
    border-radius: 0.5rem;
    display: grid;
    place-items: center;
    transition: all 0.2s ease;
}

.rating-star:hover {
    background: #eef1ff;
    transform: scale(1.1);
}

.rating-star.active {
    background: var(--accent);
    color: white;
}

textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

@media (max-width: 640px) {
    .feedback-card {
        padding: 1.5rem;
    }

    .card-header h1 {
        font-size: 1.75rem;
    }
}

/* 新增样式 */
#messageContainer {
min-height: 50px;
}

.alert {
padding: 0.75rem 1.25rem;
border-radius: 0.5rem;
margin-bottom: 1rem;
}

.alert-success {
background: #d4edda;
color: #155724;
border: 1px solid #c3e6cb;
}

.alert-danger {
background: #f8d7da;
color: #721c24;
border: 1px solid #f5c6cb;
}

#submitBtn:disabled {
opacity: 0.7;
cursor: not-allowed;
}

.spinner-border {
vertical-align: text-top;
} 