/* ===== 基础 ===== */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0 16px 32px;
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #f5f6f8;
  color: #1a1a1a;
}

/* ===== 顶部 ===== */
.app-header {
  padding: 24px 0 12px;
}

.app-title {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
}

.app-subtitle {
  margin: 4px 0 0;
  font-size: 13px;
  color: #64748b;
}

/* ===== 区块 ===== */
.app-main {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.section-title {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 600;
  color: #475569;
}

/* ===== 专业列表 ===== */
.subject-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.subject-btn {
  padding: 10px 16px;
  font-size: 14px;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #fff;
  color: #334155;
  cursor: pointer;
}

.subject-btn.active {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
  font-weight: 600;
}

/* ===== 操作按钮 ===== */
.action-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.action-btn {
  width: 100%;
  padding: 16px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 12px;
  background: #fff;
  color: #1e293b;
  border: 1px solid #e2e8f0;
  cursor: pointer;
}

.action-btn.primary {
  background: #2563eb;
  color: #fff;
  border-color: #2563eb;
}

.action-btn:active {
  opacity: 0.8;
}

/* ===== 状态卡片 ===== */
.status-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 8px 16px;
}

.status-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
}

.status-row + .status-row {
  border-top: 1px solid #f1f5f9;
}

.status-label {
  font-size: 14px;
  color: #64748b;
}

.status-value {
  font-size: 15px;
  font-weight: 600;
}

.upload-box {
  background: #fff;
  border: 2px dashed #94a3b8;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
}

.upload-box input[type="file"] {
  display: none;
}
.upload-btn {
  display: inline-block;
  padding: 12px 24px;
  background: #2563eb;
  color: #fff;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.upload-status {
  font-size: 13px;
  margin-top: 10px;
}

/* ===== 做题页 ===== */
.question-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  border: 1px solid #e2e8f0;
  margin-bottom: 20px;
}

.question-stem {
  font-size: 16px;
  line-height: 1.6;
  font-weight: 600;
  margin-bottom: 20px;
}

.option-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.option-btn {
  width: 100%;
  padding: 16px;
  font-size: 15px;
  text-align: left;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #f8fafc;
  color: #334155;
  transition: all 0.2s;
}

.option-btn:active {
  background: #e2e8f0;
}

/* 答对样式 */
.option-btn.correct {
  background: #dcfce7;
  border-color: #22c55e;
  color: #166534;
}

/* 答错样式 */
.option-btn.wrong {
  background: #fee2e2;
  border-color: #ef4444;
  color: #991b1b;
}

/* 底部操作栏 */
.app-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #fff;
  border-top: 1px solid #e2e8f0;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
}

.footer-info {
  font-size: 15px;
  color: #64748b;
  font-weight: 600;
}

.app-footer .action-btn {
  width: auto;
  padding: 10px 24px;
  margin: 0;
  font-size: 15px;
}

/* 给页面底部留出空间，防止被遮挡 */
.app-main {
  padding-bottom: 80px;
}