:root {
    --primary-color: #0066CC; /* 逸青品牌蓝/医疗蓝 */
    --secondary-color: #F0F7FF;
    --text-color: #333;
    --border-color: #ddd;
    --error-color: #ff4d4f;
    --success-color: #52c41a;
    --warning-color: #faad14;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f5f5f7;
    color: var(--text-color);
    line-height: 1.6;
}

/* 登录页样式 */
.entry-body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #e6f7ff 0%, #ffffff 100%);
}

.login-container {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    width: 90%;
    max-width: 400px;
}

.logo-area { text-align: center; margin-bottom: 2rem; }
.logo-area h1 { color: var(--primary-color); font-size: 1.5rem; }
.logo-area p { color: #666; font-size: 0.9rem; }

.form-group { margin-bottom: 1rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 500; }
.form-group input, .form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
}

.exam-info {
    background: var(--secondary-color);
    padding: 1rem;
    border-radius: 6px;
    margin: 1.5rem 0;
    font-size: 0.85rem;
    color: #555;
}

.btn-primary {
    width: 100%;
    padding: 12px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    font-weight: bold;
}

/* 考试页样式 */
.exam-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    z-index: 100;
}

.timer-box { font-weight: bold; color: var(--primary-color); display: flex; align-items: center; gap: 5px;}
.timer-box.warning { color: var(--error-color); animation: pulse 1s infinite; }

.progress-box { flex: 1; margin: 0 1rem; text-align: center; font-size: 0.8rem; }
.progress-bar { height: 6px; background: #eee; border-radius: 3px; margin-top: 4px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--primary-color); transition: width 0.3s ease; }

.btn-submit {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 5px 15px;
    border-radius: 4px;
    cursor: pointer;
}

.exam-container {
    margin-top: 70px;
    padding: 1rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding-bottom: 80px; /* 留出底部空间 */
}

.question-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    min-height: 300px;
}

.tag-row { display: flex; justify-content: space-between; margin-bottom: 1rem; font-size: 0.85rem; }
.tag-type { background: #e6f7ff; color: var(--primary-color); padding: 2px 8px; border-radius: 4px; }
.tag-score { color: #888; }

.question-text { font-size: 1.1rem; margin-bottom: 1.5rem; font-weight: 600; }

.option-item {
    display: flex;
    align-items: flex-start;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.option-item:hover { background-color: #fafafa; }
.option-item.selected {
    background-color: var(--secondary-color);
    border-color: var(--primary-color);
}

.opt-label {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #eee;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 12px;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.option-item.selected .opt-label {
    background: var(--primary-color);
    color: white;
}

.nav-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 1.5rem;
}

.btn-nav {
    padding: 10px 24px;
    border: none;
    border-radius: 6px;
    background: #eee;
    cursor: pointer;
    font-size: 1rem;
}
.btn-nav:not(:disabled) { background: var(--primary-color); color: white; }
.btn-nav:disabled { opacity: 0.5; cursor: not-allowed; }

/* 答题卡网格 */
.answer-sheet { margin-top: 2rem; border-top: 1px solid #eee; padding-top: 1rem; }
.sheet-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(35px, 1fr)); gap: 8px; margin-top: 10px; }
.sheet-circle {
    width: 35px; height: 35px;
    border-radius: 50%;
    border: 1px solid #ddd;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.8rem;
    cursor: pointer;
}
.sheet-circle.active { background: var(--secondary-color); border-color: var(--primary-color); color: var(--primary-color); }
.sheet-circle.filled { background: var(--primary-color); color: white; border-color: var(--primary-color); }

@keyframes pulse { 0% { opacity: 1; } 50% { opacity: 0.5; } 100% { opacity: 1; } }