* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    padding: 30px;
    backdrop-filter: blur(10px);
}

.header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #1e3a5f;
}

.logo {
    max-height: 60px;
    margin-bottom: 15px;
}

h1 {
    color: #1e3a5f;
    font-size: 28px;
    margin-bottom: 10px;
}

.subtitle {
    color: #666;
    font-size: 12px;
    word-break: break-all;
}

h2 {
    color: #1e3a5f;
    font-size: 22px;
    margin-bottom: 20px;
    padding-left: 10px;
    border-left: 4px solid #c6a43f;
}

.section {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
}

.form-group input[type="text"],
.form-group input[type="date"],
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #1e3a5f;
}

.question-item {
    margin-bottom: 25px;
}

.question-item h3 {
    color: #333;
    font-size: 18px;
    margin-bottom: 15px;
    line-height: 1.6;
}

.options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option {
    display: flex;
    align-items: flex-start;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
}

.option:hover {
    background: #e9ecef;
}

.option input[type="radio"] {
    margin-right: 12px;
    margin-top: 3px;
}

.actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.btn-primary, .btn-secondary {
    padding: 14px 40px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: #1e3a5f;
    color: white;
}

.btn-secondary {
    background: #c6a43f;
    color: white;
}

.btn-primary:hover, .btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.success-page {
    text-align: center;
}

code {
    background: #f0f0f0;
    padding: 5px 10px;
    border-radius: 5px;
    font-family: monospace;
}

.result-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.result-table th,
.result-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.result-table th {
    background: #1e3a5f;
    color: white;
}

.result-table tr:hover {
    background: #f5f5f5;
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .actions {
        flex-direction: column;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        text-align: center;
    }
}
/* ===== 专业问答题样式 ===== */
.open-ended {
    margin-top: 20px;
    position: relative;
}

/* 输入框容器 */
.open-ended .input-container {
    position: relative;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
}

/* 输入框焦点效果 */
.open-ended .input-container:focus-within {
    box-shadow: 0 8px 30px rgba(30, 58, 95, 0.12);
}

/* 文本输入框 */
.open-ended textarea {
    width: 100%;
    padding: 18px 20px;
    border: 2px solid #e9ecef;
    border-radius: 16px;
    font-size: 16px;
    line-height: 1.7;
    font-family: 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, sans-serif;
    resize: vertical;
    min-height: 140px;
    max-height: 300px;
    background: #fff;
    transition: all 0.3s ease;
    box-sizing: border-box;
    color: #2c3e50;
}

/* 输入框悬停效果 */
.open-ended textarea:hover {
    border-color: #c6a43f;
    background: #fcfaf5;
}

/* 输入框焦点效果 */
.open-ended textarea:focus {
    outline: none;
    border-color: #1e3a5f;
    background: #fff;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

/* 输入框占位符样式 */
.open-ended textarea::placeholder {
    color: #a0b3c6;
    font-style: normal;
    font-size: 15px;
    opacity: 0.8;
}

/* 输入提示 - 更精致的设计 */
.input-hint {
    margin-top: 12px;
    font-size: 13px;
    color: #6c7a8d;
    display: flex;
    align-items: center;
    gap: 6px;
    padding-left: 8px;
}

/* 提示图标 */
.input-hint::before {
    content: "?";
    font-size: 14px;
    color: #c6a43f;
    opacity: 0.8;
}

/* 字数统计（可选，如果后续想加） */
.input-hint .word-count {
    margin-left: auto;
    background: #f0f3f7;
    padding: 3px 10px;
    border-radius: 30px;
    font-size: 12px;
    color: #4a5a6e;
}

/* 问题标题与输入框的间距优化 */
.question-item h3 {
    margin-bottom: 20px;
    color: #1e3a5f;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.6;
    padding-right: 20px;
}

/* 为问答题添加微妙的背景区分 */
.question-item:has(.open-ended) {
    background: linear-gradient(to bottom, #ffffff, #fafcff);
}

/* 输入框底部装饰线 */
.open-ended .input-container::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 20px;
    right: 20px;
    height: 2px;
    background: linear-gradient(90deg, #1e3a5f 0%, #c6a43f 50%, #1e3a5f 100%);
    border-radius: 2px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.open-ended .input-container:focus-within::after {
    opacity: 1;
}

/* 针对选择题和问答题的统一卡片样式 */
.question-item {
    background: white;
    border-radius: 24px;
    padding: 28px 30px;
    margin-bottom: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(198, 164, 63, 0.1);
    transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.question-item:hover {
    box-shadow: 0 15px 40px rgba(30, 58, 95, 0.08);
    border-color: rgba(198, 164, 63, 0.3);
}

/* 选择题选项样式优化 */
.options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
}

.option {
    display: flex;
    align-items: flex-start;
    padding: 16px 20px;
    background: #f8fafd;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.option:hover {
    background: #edf2f9;
    border-color: #c6a43f;
    transform: translateX(5px);
}

.option input[type="radio"] {
    margin-right: 15px;
    margin-top: 3px;
    width: 18px;
    height: 18px;
    accent-color: #1e3a5f;
}

.option span {
    font-size: 16px;
    line-height: 1.5;
    color: #2c3e50;
}

/* 选中状态的选项 */
.option:has(input[type="radio"]:checked) {
    background: #e8eef7;
    border-color: #1e3a5f;
    box-shadow: 0 5px 15px rgba(30, 58, 95, 0.1);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .question-item {
        padding: 20px;
    }
    
    .open-ended textarea {
        padding: 15px;
        font-size: 15px;
        min-height: 120px;
    }
    
    .option {
        padding: 14px 16px;
    }
}