:root {
    --primary-color: #ff6b00; /* 平安橙 */
    --text-color: #333;
    --bg-color: #f5f7fa;
    --card-bg: #fff;
    --border-radius: 12px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    padding: 20px;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    background-color: transparent;
}

header {
    background: linear-gradient(135deg, #ff9a44 0%, #ff6b00 100%);
    color: white;
    padding: 30px 20px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(255, 107, 0, 0.2);
}

header h1 {
    font-size: 24px;
    margin-bottom: 10px;
}

.intro {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 10px;
    text-align: left;
}

.note {
    font-size: 12px;
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 10px;
    border-radius: 4px;
    display: inline-block;
}

.star-icon {
    color: #ffd700;
}

.form-section, .question-card {
    background: var(--card-bg);
    padding: 20px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

h3 {
    margin-bottom: 15px;
    font-size: 18px;
    border-left: 4px solid var(--primary-color);
    padding-left: 10px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
}

.form-group textarea {
    resize: vertical;
}

.question-title {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 8px;
}

.question-desc {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

/* Number Rating System */
.rating-group {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 5px;
    margin: 15px 0;
}

.rating-group input {
    display: none;
}

.rating-group label {
    font-size: 18px;
    color: #666;
    background: #f0f0f0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
}

/* Checked states */
.rating-group input:checked ~ label {
    /* removed to avoid ~ issue */
}

.rating-group input:checked + label {
    background: var(--primary-color);
    color: white;
    font-weight: bold;
    transform: scale(1.1);
}

.rating-group label:hover {
    background: #ffe0cc;
    color: var(--primary-color);
}

.rating-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #999;
    padding: 0 10px;
}

.submit-btn {
    display: block;
    width: 100%;
    padding: 15px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.3);
    transition: transform 0.1s;
}

.submit-btn:active {
    transform: scale(0.98);
}

footer {
    text-align: center;
    padding: 20px;
    color: #999;
    font-size: 12px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    width: 80%;
    max-width: 400px;
}

.success-icon {
    width: 60px;
    height: 60px;
    background: #52c41a;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin: 0 auto 20px;
}

.modal-content button {
    margin-top: 20px;
    padding: 10px 30px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
}
