* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  background: linear-gradient(135deg, #fff5f5 0%, #fef6e7 100%);
  color: #333;
  min-height: 100vh;
  padding: 24px 14px;
}
.app { max-width: 720px; margin: 0 auto; }
.hero { text-align: center; padding: 18px 0 10px; }
.hero-badge {
  display: inline-block; background: #e74c3c; color: #fff;
  padding: 4px 14px; border-radius: 999px; font-size: 13px; margin-bottom: 10px;
}
.hero h1 { font-size: 26px; color: #c0392b; }
.hero .sub { color: #777; margin-top: 8px; font-size: 14px; line-height: 1.6; }

.card {
  background: #fff; border-radius: 16px; padding: 24px;
  box-shadow: 0 8px 30px rgba(231, 76, 60, 0.12);
  margin-top: 18px;
}
.card h2 { font-size: 20px; color: #c0392b; margin-bottom: 8px; }
.tip { color: #888; font-size: 13px; margin-bottom: 16px; line-height: 1.6; }

.field { display: block; margin-bottom: 16px; }
.field > span { display: block; font-size: 14px; color: #555; margin-bottom: 6px; }
.field input {
  width: 100%; padding: 12px 14px; border: 1px solid #e2c9c5; border-radius: 10px;
  font-size: 15px; outline: none; transition: border .2s;
}
.field input:focus { border-color: #e74c3c; }

.btn-primary {
  width: 100%; padding: 13px; border: none; border-radius: 10px;
  background: linear-gradient(135deg, #e74c3c, #c0392b); color: #fff;
  font-size: 16px; cursor: pointer; transition: opacity .2s;
}
.btn-primary:hover { opacity: .92; }
.btn-primary:disabled { opacity: .6; cursor: default; }
.btn-secondary {
  margin-top: 14px; padding: 11px 22px; border: 1px solid #e74c3c; border-radius: 10px;
  background: #fff; color: #c0392b; font-size: 15px; cursor: pointer;
}
.btn-secondary:hover { background: #fff5f5; }

.quiz-bar {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px dashed #eee;
}
.timer { font-weight: 600; color: #c0392b; }
.hint { color: #999; font-size: 13px; }

.q-card { padding: 14px 0; border-bottom: 1px solid #f3f3f3; }
.q-title { font-size: 16px; font-weight: 600; margin-bottom: 12px; line-height: 1.5; }
.badge {
  display: inline-block; font-size: 12px; padding: 2px 8px; border-radius: 6px;
  margin-right: 8px; vertical-align: middle; color: #fff;
}
.badge.single { background: #3498db; }
.badge.multiple { background: #8e44ad; }
.options { display: flex; flex-direction: column; gap: 8px; }
.opt {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  border: 1px solid #eee; border-radius: 10px; cursor: pointer; transition: background .15s;
}
.opt:hover { background: #fff8f8; }
.opt input { width: 18px; height: 18px; accent-color: #e74c3c; }

.score-line { font-size: 17px; font-weight: 600; color: #c0392b; margin: 6px 0 14px; }
.d-card { padding: 12px 14px; border-radius: 10px; margin-bottom: 10px; font-size: 14px; line-height: 1.6; }
.d-card.ok { background: #f0fdf4; border: 1px solid #c8e6c9; }
.d-card.wrong { background: #fef2f2; border: 1px solid #f5c6c6; }
.d-title { font-weight: 600; margin-bottom: 4px; }
.d-selected { color: #b06a00; margin: 4px 0; }
.d-correct { color: #1e7e34; margin: 4px 0; }
.d-exp { color: #555; }

.foot { text-align: center; color: #aaa; font-size: 12px; margin-top: 22px; }

.hidden { display: none !important; }

/* 后台样式 */
.admin-wrap { max-width: 1080px; margin: 0 auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid #eee; }
th { background: #fff5f5; color: #c0392b; position: sticky; top: 0; }
tr:hover td { background: #fffbfb; }
.rank-1 { color: #e67e22; font-weight: 700; }
.detail-box {
  background: #fafafa; border-radius: 10px; padding: 14px; margin: 8px 0 16px;
  font-size: 13px; line-height: 1.7;
}
.detail-box .dq { margin-bottom: 8px; }
.detail-box .ans-user { color: #c0392b; }
.detail-box .ans-right { color: #1e7e34; }
.login-box { max-width: 360px; margin: 80px auto; text-align: center; }

.share-row { text-align: center; margin-top: 14px; }
.btn-text {
  background: none; border: none; color: #c0392b;
  font-size: 14px; cursor: pointer; text-decoration: underline; padding: 6px 10px;
}
.btn-text:hover { color: #e74c3c; }
.share-box {
  margin-top: 18px; padding-top: 16px; border-top: 1px dashed #eee;
  text-align: center;
}
.share-tip { color: #777; font-size: 14px; margin-bottom: 12px; line-height: 1.5; }
.share-hint { color: #1e7e34; font-size: 13px; margin-top: 10px; min-height: 18px; }
