/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #f5f7fa;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    color: #333;
}

/* 隐藏类 */
.hidden {
    display: none !important;
}

/* 页面容器 */
.survey-container, .page {
    max-width: 400px;
    margin: 0 auto;
    background-color: #fff;
    min-height: 100vh;
    position: relative;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

/* 顶部状态栏 */
.status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background-color: #000;
    color: #fff;
    font-size: 12px;
}

/* 系统标题 */
.system-title {
    text-align: center;
    padding: 20px 0;
    background-color: #4285f4;
    color: #fff;
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 30px;
}

/* 系统描述 */
.system-description {
    text-align: center;
    margin-bottom: 40px;
    padding: 0 20px;
}

.system-description p {
    font-size: 16px;
    color: #666;
    line-height: 1.5;
}

/* 功能入口 */
.function-entrances {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 0 20px;
}

.entrance-item {
    text-align: center;
}

.entrance-btn {
    background-color: #4285f4;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 15px 30px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    width: 100%;
    min-height: 50px;
}

.entrance-btn:hover {
    background-color: #3367d6;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.entrance-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.entrance-desc {
    margin-top: 10px;
    font-size: 14px;
    color: #666;
}

/* 暂存记录页面样式 */
.drafts-content {
    padding: 20px;
}

.drafts-summary {
    background-color: #f5f7fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #4285f4;
}

.drafts-summary h3 {
    margin: 0 0 5px 0;
    font-size: 18px;
    color: #333;
}

.drafts-summary p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

.drafts-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.draft-item {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

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

.draft-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.draft-info h4 {
    margin: 0 0 5px 0;
    font-size: 16px;
    color: #333;
}

.draft-info p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

.draft-time {
    font-size: 12px;
    color: #999;
    background-color: #f5f7fa;
    padding: 4px 8px;
    border-radius: 4px;
}

.draft-progress {
    margin-bottom: 15px;
}

.draft-progress .progress-bar {
    height: 8px;
    margin-bottom: 5px;
}

.draft-actions {
    display: flex;
    gap: 10px;
    justify-content: space-between;
}

.continue-btn {
    flex: 2;
    background-color: #4285f4;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 10px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 44px;
}

.continue-btn:hover {
    background-color: #3367d6;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.delete-btn {
    flex: 1;
    background-color: #d32f2f;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 10px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 44px;
}

.delete-btn:hover {
    background-color: #c62828;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.empty-drafts {
    text-align: center;
    padding: 40px 20px;
    background-color: #f5f7fa;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.empty-drafts p {
    margin: 0;
    font-size: 16px;
    color: #666;
}

.start-survey-btn {
    background-color: #4285f4;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 44px;
}

/* 页面头部 */
.page-header {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background-color: #4285f4;
    color: #fff;
    border-bottom: 1px solid #e0e0e0;
}

.back-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    margin-right: 15px;
    padding: 5px;
}

.page-title {
    font-size: 18px;
    font-weight: bold;
    margin: 0;
}

/* 问卷进度 */
.survey-progress {
    padding: 15px 20px;
    background-color: #f5f7fa;
    border-bottom: 1px solid #e0e0e0;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background-color: #4285f4;
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 4px;
}

.progress-text {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 14px;
    color: #666;
}

.progress-detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.current-question-progress {
    font-weight: bold;
    color: #4285f4;
}

.remaining-surveys {
    color: #34a853;
    font-weight: bold;
}

#auto-save-status {
    font-size: 12px;
    color: #34a853;
}

/* 问卷介绍 */
.survey-intro {
    padding: 20px;
    background-color: #f5f7fa;
    margin-bottom: 20px;
    border-radius: 8px;
    border-bottom: 2px solid #4285f4;
}

.survey-title {
    font-size: 22px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.4;
    text-align: center;
}

.survey-description {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    text-align: justify;
}

.survey-description p {
    margin-bottom: 10px;
    text-align: left;
}

/* 问卷导航 */
.survey-navigation {
    padding: 15px 20px;
    background-color: #f5f7fa;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* 问卷结尾 */
.survey-footer {
    padding: 20px;
    background-color: #f5f7fa;
    margin-top: 20px;
    border-radius: 8px;
    border-top: 2px solid #4285f4;
    text-align: center;
}

.survey-footer p {
    margin-bottom: 8px;
    color: #666;
    font-size: 16px;
    line-height: 1.5;
}

.survey-organization {
    font-weight: bold;
    color: #333;
}

.survey-date {
    font-style: italic;
    color: #999;
}

.navigation-label {
    font-size: 14px;
    font-weight: bold;
    color: #666;
    margin-bottom: 4px;
}

.jump-select {
    min-height: 44px;
    padding: 8px 12px;
    font-size: 14px;
}

/* 问卷内容 */
.survey-content {
    padding: 20px;
}

.survey-header {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
}

.participant-selection {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

.selection-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 100%;
}

.selection-item label {
    font-weight: bold;
    font-size: 14px;
    color: #333;
}

.survey-header h3 {
    font-size: 16px;
    font-weight: bold;
    margin: 0;
    color: #4285f4;
    flex: 1;
}

.survey-header p {
    font-size: 13px;
    color: #666;
    margin: 0;
    flex: 1;
    text-align: right;
}

.survey-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.question-item {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    margin-bottom: 16px;
    border: 1px solid #f0f0f0;
}

/* 高亮问题样式 */
/* 高亮文本样式 */
.highlighted-text {
    background-color: #fff3cd;
    color: #856404;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 1.05em;
}

.question-label {
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.question-label::after {
    content: " *";
    color: #d32f2f;
}

.question-label:not(:required)::after {
    content: "";
}

/* 表单控件 */
.form-control {
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: #fff;
    min-height: 50px;
    min-width: 100%;
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: #4285f4;
    box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.2);
    background-color: rgba(66, 133, 244, 0.05);
    transform: translateY(-1px);
}

/* 增强select元素的选中状态 */
.form-control:is(select):not(:placeholder-shown) {
    border-color: #4285f4;
    background-color: rgba(66, 133, 244, 0.05);
}

/* 增强textarea元素的选中状态 */
.form-control:is(textarea):not(:placeholder-shown) {
    border-color: #4285f4;
    background-color: rgba(66, 133, 244, 0.05);
}

/* 增强input元素的选中状态 */
.form-control:is(input[type="text"], input[type="number"]):not(:placeholder-shown) {
    border-color: #4285f4;
    background-color: rgba(66, 133, 244, 0.05);
}

/* 增强单选按钮的选中状态 */
input[type="radio"] {
    accent-color: #4285f4;
}

/* 增强复选框的选中状态 */
input[type="checkbox"] {
    accent-color: #4285f4;
}

/* 评分题样式 */
.rating-container {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.rating-label {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    width: 40px;
    height: 40px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.2s ease;
    background-color: #fff;
    min-width: 40px;
    min-height: 40px;
    position: relative;
}

.rating-label:hover {
    border-color: #4285f4;
    background-color: rgba(66, 133, 244, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.rating-label:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.rating-label input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
    margin: 0;
    top: 0;
    left: 0;
}

.rating-label input[type="radio"]:checked + .rating-number {
    color: #4285f4;
    font-weight: bold;
}

.rating-label input[type="radio"]:checked {
    background-color: rgba(66, 133, 244, 0.1);
    border-color: #4285f4;
}

.rating-label:has(input[type="radio"]:checked) {
    background-color: rgba(66, 133, 244, 0.1);
    border-color: #4285f4;
}

.rating-number {
    font-weight: bold;
    color: #666;
    transition: all 0.2s ease;
}

/* 表单操作区 */
.form-actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-direction: column;
}

.submit-btn {
    background-color: #34a853;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 15px 30px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 50px;
    width: 100%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.save-btn {
    background-color: #4285f4;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 15px 30px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 50px;
    width: 100%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.save-btn:hover {
    background-color: #3367d6;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.save-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 评分+文本类型样式 */
.rating-text-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.rating-section, .text-section {
    background-color: #f5f7fa;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #4285f4;
}

.rating-section h5, .text-section h5 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: bold;
    color: #4285f4;
}

/* 多选选项样式 */
.multiple-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.multiple-option {
    display: flex;
    align-items: center;
    padding: 15px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    background-color: #fff;
    min-height: 50px;
    min-width: 100%;
    position: relative;
}

.multiple-option:hover {
    border-color: #4285f4;
    background-color: rgba(66, 133, 244, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.multiple-option:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.multiple-option input[type="checkbox"] {
    margin-right: 12px;
    width: 24px;
    height: 24px;
    cursor: pointer;
    accent-color: #4285f4;
    min-width: 24px;
    min-height: 24px;
}

.multiple-option:has(input[type="checkbox"]:checked) {
    background-color: rgba(66, 133, 244, 0.1);
    border-color: #4285f4;
}

/* 必填项样式优化 */
/* 问题标签上的必填标识 */
.question-label:has(+ [required])::after,
.question-label:has(+ .form-control[required])::after,
.question-label:has(+ .rating-container > .rating-label > input[required])::after,
.question-label:has(+ .multiple-options > .multiple-option > input[required])::after {
    content: " *";
    color: #d32f2f;
    font-weight: bold;
    font-size: 18px;
    vertical-align: middle;
    margin-left: 4px;
}

/* 表单控件上的必填标识 */
.form-control[required] {
    border-left: 4px solid #d32f2f;
}

/* 评分题必填标识 */
.rating-container:has(input[required]) {
    border-left: 4px solid #d32f2f;
    padding-left: 8px;
    margin-left: -12px;
    border-radius: 0 8px 8px 0;
}

/* 多选题必填标识 */
.multiple-options:has(input[required]) {
    border-left: 4px solid #d32f2f;
    padding-left: 8px;
    margin-left: -12px;
    border-radius: 0 8px 8px 0;
}

/* 进度条样式增强 */
.progress-bar {
    width: 100%;
    height: 12px;
    background-color: #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 8px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4285f4 0%, #34a853 100%);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 6px;
    box-shadow: 0 0 10px rgba(66, 133, 244, 0.3);
}

/* 未完成问卷数量样式 */
.incomplete-count {
    font-size: 12px;
    color: #4285f4;
    font-weight: bold;
    background-color: rgba(66, 133, 244, 0.1);
    padding: 4px 8px;
    border-radius: 12px;
    margin-left: 8px;
}

/* 页面标题样式增强 */
.page-title {
    font-size: 20px;
    font-weight: bold;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* 返回按钮样式增强 */
.back-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    margin-right: 15px;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.back-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* 暂存状态样式 */
#auto-save-status {
    font-size: 14px;
    color: #34a853;
    font-weight: bold;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% { opacity: 0.7; }
    50% { opacity: 1; }
    100% { opacity: 0.7; }
}

/* 问题标题样式增强 */
.question-label {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    line-height: 1.6;
    margin-bottom: 12px;
    text-align: justify;
    padding: 0 2px;
}

/* 后台管理页面 */
.admin-tabs {
    display: flex;
    overflow-x: auto;
    border-bottom: 1px solid #e0e0e0;
    background-color: #f5f7fa;
}

.tab-btn {
    flex: 1;
    min-width: 80px;
    padding: 12px 15px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    font-size: 14px;
    font-weight: bold;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.tab-btn.active {
    color: #4285f4;
    border-bottom-color: #4285f4;
}

.tab-btn:hover {
    color: #4285f4;
    background-color: rgba(66, 133, 244, 0.1);
}

.admin-content {
    padding: 20px;
}

.tab-content {
    display: block;
}

.tab-content.hidden {
    display: none;
}

/* 问卷配置样式 */
#question-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.question-config-item {
    background-color: #f5f7fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
}

.question-config-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.question-config-header h4 {
    margin: 0;
    font-size: 16px;
    color: #333;
}

.edit-question-btn, .delete-question-btn {
    padding: 5px 10px;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: 5px;
}

.edit-question-btn {
    background-color: #4285f4;
    color: #fff;
}

.delete-question-btn {
    background-color: #d32f2f;
    color: #fff;
}

.edit-question-btn:hover {
    background-color: #3367d6;
}

.delete-question-btn:hover {
    background-color: #c62828;
}

.question-config-content {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

.question-config-content p {
    margin: 5px 0;
}

/* 被评分人管理样式 */
.participant-actions-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 10px;
}

.import-section {
    display: flex;
    align-items: center;
    gap: 10px;
}

.import-label {
    padding: 8px 12px;
    background-color: #4285f4;
    color: #fff;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

.import-label:hover {
    background-color: #3367d6;
    transform: translateY(-1px);
}

#participants-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.participant-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f5f7fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
}

.participant-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
}

.participant-name {
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.participant-department {
    font-size: 14px;
    color: #666;
    background-color: #e9ecef;
    padding: 4px 8px;
    border-radius: 12px;
    display: inline-block;
    align-self: flex-start;
}

.participant-position {
    font-size: 14px;
    color: #666;
    background-color: #e3f2fd;
    padding: 4px 8px;
    border-radius: 12px;
    display: inline-block;
    align-self: flex-start;
}

.participant-actions {
    display: flex;
    gap: 5px;
}

.edit-participant-btn, .delete-participant-btn {
    padding: 5px 10px;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.edit-participant-btn {
    background-color: #4285f4;
    color: #fff;
}

.delete-participant-btn {
    background-color: #d32f2f;
    color: #fff;
}

/* 按钮样式 */
.add-btn, .export-btn {
    background-color: #34a853;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 10px;
}

.add-btn:hover, .export-btn:hover {
    background-color: #2e7d32;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* 图表样式 */
.statistics-charts {
    margin: 20px 0;
}

.chart-container {
    margin-bottom: 25px;
    padding: 15px;
    background-color: #f5f7fa;
    border-radius: 8px;
    position: relative;
    height: 300px;
}

.chart-container h4 {
    margin-bottom: 15px;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
}

/* 统计数据样式 */
.statistics-summary {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f5f7fa;
    border-radius: 8px;
}

.statistics-details {
    margin-top: 20px;
    overflow-x: auto;
}

.statistics-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.statistics-table th,
.statistics-table td {
    padding: 12px 15px;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
}

.statistics-table th {
    background-color: #f5f7fa;
    font-weight: bold;
    color: #333;
    font-size: 14px;
    white-space: nowrap;
    cursor: pointer;
    user-select: none;
}

/* 可排序表头样式 */
.sortable-header:hover {
    background-color: #e8ecf1;
}

.sort-icon {
    margin-left: 5px;
    font-size: 12px;
    color: #666;
}

/* 题型标识徽章样式 */
.question-type-badge {
    display: inline-block;
    padding: 2px 6px;
    margin-left: 5px;
    font-size: 10px;
    font-weight: normal;
    color: #fff;
    background-color: #4285f4;
    border-radius: 10px;
    vertical-align: middle;
}

.statistics-table td {
    color: #666;
    font-size: 14px;
}

.statistics-table tbody tr:hover {
    background-color: rgba(66, 133, 244, 0.05);
}

.statistics-table tbody tr:last-child td {
    border-bottom: none;
}

.statistics-table th:first-child,
.statistics-table td:first-child {
    text-align: left;
    font-weight: bold;
}

.statistics-table th:nth-child(2),
.statistics-table td:nth-child(2) {
    text-align: left;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 0;
    border: 1px solid #888;
    width: 90%;
    max-width: 500px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    animation: modalSlideIn 0.3s ease;
}

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

.modal-header {
    padding: 15px 20px;
    background-color: #4285f4;
    color: white;
    border-radius: 8px 8px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: bold;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    margin: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.close-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 15px 20px;
    background-color: #f5f7fa;
    border-radius: 0 0 8px 8px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    border-top: 1px solid #e0e0e0;
}

/* 添加问题表单样式 */
.add-question-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-group label {
    font-weight: bold;
    font-size: 14px;
    color: #333;
}

.radio-group {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-top: 5px;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: normal;
    cursor: pointer;
}

.option-item {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
}

.option-item input {
    flex: 1;
}

.remove-option-btn, .add-option-btn {
    padding: 8px 12px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 80px;
}

.remove-option-btn {
    background-color: #d32f2f;
    color: white;
}

.remove-option-btn:hover:not(:disabled) {
    background-color: #c62828;
    transform: translateY(-1px);
}

.remove-option-btn:disabled {
    background-color: #e0e0e0;
    color: #9e9e9e;
    cursor: not-allowed;
}

.add-option-btn {
    background-color: #4285f4;
    color: white;
    margin-top: 5px;
    align-self: flex-start;
}

.add-option-btn:hover {
    background-color: #3367d6;
    transform: translateY(-1px);
}

.cancel-btn {
    padding: 8px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background-color: white;
    color: #333;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
}

.cancel-btn:hover {
    background-color: #f5f7fa;
    border-color: #bdbdbd;
}

.save-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    background-color: #4285f4;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: bold;
}

.save-btn:hover {
    background-color: #3367d6;
    transform: translateY(-1px);
}

/* 响应式设计 */
@media (max-width: 400px) {
    .survey-container, .page {
        max-width: 100%;
    }
    
    .rating-container {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .participant-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .participant-actions {
        align-self: flex-end;
    }
    
    .chart-container {
        height: 250px;
    }
}