/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Microsoft YaHei', Arial, sans-serif;
}

body {
    background-color: #f0f8ff ;/* 更柔和的背景色 */
    color: #333;
    line-height: 1.6;
    min-height: 100vh; /* 确保页面至少占满整个视口高度 */
}

/* 容器样式 */
.container {
    max-width: 800px;
    margin: 40px auto; /* 增加上下边距 */
    padding: 0 15px;
}

.survey-container {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* 页眉样式 */
.header {
    background-color: #4a90e2;
    color: white;
    padding: 20px;
    text-align: left;
    position: relative;
}

.title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 5px;
}

.sub-title {
    font-size: 16px;
    opacity: 0.9;
}

.page-indicator {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    font-weight: bold;
}

/* 进度条样式 */
.progress-bar {
    padding: 15px 20px;
    background-color: #4a90e2;
}

.progress-track {
    height: 8px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    position: relative;
}

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

.progress-step {
    width: 16px;
    height: 16px;
    background-color: white;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
}

.progress-step.active {
    background-color: #FFD700;
}

/* 内容区域样式 */
.content {
    padding: 35px; /* 增加内部间距 */
    min-height: 450px; /* 设置最小高度 */
}

.question-group {
    margin-bottom: 45px; /* 增加问题组之间的间距 */
}

.question-type {
    display: inline-block;
    background-color: #4a90e2;
    color: white;
    font-size: 12px;
    padding: 5px 15px;
    border-radius: 20px;
    margin-bottom: 15px;
}

.question {
    margin-bottom: 30px; /* 增加问题之间的间距 */
}

.question label {
    display: block;
    font-weight: 500;
    margin-bottom: 15px; /* 增加标签和输入框之间的间距 */
    font-size: 16px;
    line-height: 1.5; /* 增加行高 */
}

.required {
    color: #e74c3c;
}

.question input[type="text"],
.question input[type="email"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

.question input[type="text"]:focus,
.question input[type="email"]:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
}

.hint {
    font-size: 12px;
    color: #888;
    text-align: right;
    margin-top: 5px;
}

/* 选项网格 */
.options {
    display: grid;
    gap: 20px; /* 增加选项之间的间距 */
    margin-bottom: 15px; /* 增加底部间距 */
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

/* 选项卡片样式 */
.option {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px; /* 增加内部间距 */
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 120px; /* 设置最小高度 */
    display: flex;
    flex-direction: column;
    justify-content: center; /* 垂直居中内容 */
}

.option:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.option.selected {
    border-color: #4a90e2;
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2), 0 2px 8px rgba(0, 0, 0, 0.1);
}

.option-image {
    text-align: center;
    margin-bottom: 10px;
}

.option-image img {
    max-width: 60px;
    max-height: 60px;
}

.option-text {
    text-align: center;
}

.option-text h4 {
    font-size: 14px;
    margin-bottom: 5px;
}

.option-text p {
    font-size: 12px;
    color: #666;
}

/* 额外输入框 */
.additional-input {
    margin-top: 15px;
}

/* 导航按钮 */
.navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 50px; /* 增加与上方内容的间距 */
    padding-top: 20px; /* 添加顶部内边距 */
    border-top: 1px solid #eee; /* 添加顶部边框线 */
}

.navigation.centered-button {
    justify-content: center;
}

.btn {
    padding: 12px 24px; /* 增加按钮内部间距 */
    border-radius: 6px;
    border: 1px solid #ddd;
    background-color: white;
    cursor: pointer;
    font-size: 15px; /* 增加字体大小 */
    transition: all 0.2s ease;
    margin: 0 5px; /* 添加按钮之间的间距 */
}

.btn:hover {
    background-color: #f5f5f5;
}

.btn.primary {
    background-color: #4a90e2;
    color: white;
    border: none;
}

.btn.primary:hover {
    background-color: #3a80d2;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* 感谢页面样式 */
.thank-you-content {
    text-align: center;
    padding: 30px 20px;
}

.thank-you-content h1 {
    font-size: 32px;
    margin-bottom: 10px;
}

.thank-you-content p {
    font-size: 16px;
    margin-bottom: 30px;
    color: #666;
}

.summary-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    text-align: left;
    padding: 0 20px;
}

.summary-icon {
    width: 4px;
    height: 100%;
    background-color: #4a90e2;
    margin-right: 15px;
    border-radius: 2px;
}

.summary-text {
    font-size: 14px;
    flex-grow: 1;
}

.highlight {
    color: #4a90e2;
}

.return-note {
    font-size: 12px;
    color: #888;
    margin-top: 10px;
} 