* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
html, body {
  width: 100%;
  height: 100%;
  background: #f5f7fa;
  color: #333;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}
/* 移动端核心适配 */
@media (max-width: 768px) {
  .container {
    padding: 0 12px;
    margin: 10px auto;
  }
  .card {
    padding: 16px;
    border-radius: 10px;
    margin-bottom: 12px;
  }
  .header {
    padding: 12px 16px;
    flex-wrap: wrap;
    gap: 8px;
  }
  .header h3 {
    font-size: 18px;
  }
  .header a {
    font-size: 14px;
    padding: 4px 10px;
    margin-left: 6px;
  }
  .btn {
    height: 50px;
    font-size: 16px;
  }
  .btn-sm {
    padding: 10px 14px;
    font-size: 14px;
  }
  .table th, .table td {
    padding: 8px 4px;
    font-size: 13px;
  }
}
/* 基础布局 */
.container {
  max-width: 768px;
  margin: 20px auto;
  padding: 0 15px;
}
.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  padding: 20px;
  margin-bottom: 15px;
}
.card h2 {
  margin-bottom: 16px;
  color: #2d3748;
  border-left: 4px solid #4158d0;
  padding-left: 10px;
  font-size: 20px;
}
/* 表单样式 */
.form-item {
  margin-bottom: 16px;
}
.form-item label {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
  color: #4a5568;
}
.form-item input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 16px;
}
.form-item input:focus {
  outline: none;
  border-color: #4158d0;
}
/* 按钮样式 */
.btn {
  width: 100%;
  height: 48px;
  background: #4158d0;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
}
.btn:hover {
  background: #3144b3;
}
.btn-sm {
  padding: 8px 14px;
  background: #4158d0;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}
.btn-danger { background: #dc2626; }
.bg-blue { background: #4158d0; }
.bg-red { background: #dc2626; }
.bg-green { background: #16a34a; }
/* 提示文字 */
.msg {
  text-align: center;
  color: #dc2626;
  margin: 10px 0;
  font-size: 14px;
}
.success {
  color: #16a34a;
  text-align: center;
  margin: 10px 0;
}
/* 顶部导航 */
.header {
  background: #4158d0;
  color: #fff;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.header a {
  color: #fff;
  text-decoration: none;
}
/* 表格 */
.table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}
.table th, .table td {
  padding: 10px;
  text-align: center;
  border-bottom: 1px solid #e2e8f0;
}
.table th {
  background: #f8fafc;
  font-weight: 600;
}
/* 录音页面专用样式（核心） */
.task-text-box {
  width: 100%;
  min-height: 180px;
  background: #f8fafc;
  border-radius: 10px;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  line-height: 1.8;
  text-align: center;
  margin-bottom: 20px;
  border: 1px solid #e2e8f0;
}
.record-btn-group {
  display: flex;
  gap: 10px;
  width: 100%;
}
.record-btn-group button {
  flex: 1;
  height: 55px;
  border: none;
  border-radius: 10px;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
}
audio {
  width: 100%;
  margin-top: 15px;
  border-radius: 8px;
}

/* 用户端：登录/注册页略缩小字号，与任务区协调 */
body.user-auth {
  font-size: 15px;
  line-height: 1.55;
}
body.user-auth .card h2 {
  font-size: 18px;
  margin-bottom: 14px;
}
body.user-auth .form-item label {
  font-size: 14px;
  margin-bottom: 5px;
}
body.user-auth .form-item input {
  height: 44px;
  font-size: 15px;
}
body.user-auth .btn {
  height: 46px;
  font-size: 15px;
}
body.user-auth .card > p {
  font-size: 14px;
}
@media (max-width: 768px) {
  body.user-auth .btn {
    height: 46px;
    font-size: 15px;
  }
}

.form-select {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 15px;
  background: #fff;
  color: #333;
}
.form-select:focus {
  outline: none;
  border-color: #4158d0;
}
.form-select--spaced {
  margin-bottom: 8px;
}

/* 顶栏标题与用户任务列表页协调 */
.header h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 0;
}

/* 任务列表分页（缩小字号） */
.user-pagination {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 13px;
  line-height: 1.4;
  color: #4a5568;
}
.user-pagination a {
  color: #4158d0;
  text-decoration: none;
  font-size: 13px;
  padding: 2px 0;
}
.user-pagination a:hover {
  text-decoration: underline;
}
.user-pagination__info {
  font-size: 13px;
  color: #64748b;
}

/* 已登录用户端：与登录注册页统一基准字号与卡片标题 */
body.user-app {
  font-size: 15px;
  line-height: 1.55;
}
body.user-app .card h2 {
  font-size: 18px;
  margin-bottom: 14px;
}
body.user-auth .captcha-input {
  height: 44px;
  font-size: 15px;
}
body.user-auth a:not(.btn) {
  font-size: 14px;
}