* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #fdf3f3;
  color: #2b1a1a;
  min-height: 100vh;
}
#app { max-width: 560px; margin: 0 auto; padding: 24px 16px; }
.card {
  background: #fff;
  border: 1px solid #f3d2d2;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 6px 20px rgba(150, 30, 30, .10);
  margin-bottom: 16px;
}
.hidden { display: none; }
h1 {
  font-size: 22px; line-height: 1.4; margin-bottom: 12px; color: #a4161a;
  border-left: 4px solid #c1121f; padding-left: 10px;
}
h2 { font-size: 19px; margin-bottom: 14px; color: #a4161a; }
.rules { color: #5a4444; line-height: 1.7; margin-bottom: 16px; }
.tip { color: #9a7a7a; font-size: 13px; margin: 8px 0 16px; }
.field { display: block; margin-bottom: 16px; }
.field span { display: block; font-size: 14px; margin-bottom: 6px; color: #5a3030; }
.field input {
  width: 100%; padding: 12px; border: 1px solid #ecc6c6; border-radius: 10px; font-size: 16px;
  background: #fffafa;
}
.field input:focus { outline: none; border-color: #c1121f; }
button { font-size: 16px; border: 0; border-radius: 10px; padding: 12px 18px; cursor: pointer; }
.primary {
  background: linear-gradient(180deg, #c1121f, #a4161a);
  color: #fff; width: 100%; margin-top: 8px;
  box-shadow: 0 4px 12px rgba(193, 18, 31, .25);
}
.ghost { background: #f7e7e7; color: #7a1f1f; border: 1px solid #f0cfcf; }
.nav-row { display: flex; gap: 12px; margin-top: 20px; }
.nav-row button { flex: 1; }
.progress-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; color: #8a5555; font-size: 14px; }
.options { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.option {
  display: flex; gap: 10px; align-items: flex-start; padding: 14px; border: 1px solid #ecd3d3;
  border-radius: 12px; background: #fff7f7; cursor: pointer;
}
.option.selected { border-color: #c1121f; background: #fdecec; }
.option input { margin-top: 4px; accent-color: #c1121f; }
.option .label { flex: 1; line-height: 1.6; }
.admin-row { display: flex; gap: 10px; margin: 12px 0; }
.admin-link { text-align: center; margin-top: 8px; }
.admin-link a { color: #a4161a; text-decoration: none; }

.banner {
  display: flex; align-items: center; gap: 12px;
  background: linear-gradient(135deg, #a4161a 0%, #c1121f 55%, #8a1216 100%);
  border-radius: 16px; padding: 18px 16px; margin-bottom: 16px;
  box-shadow: 0 6px 18px rgba(164, 22, 26, .25);
  border: 1px solid rgba(255, 220, 180, .35);
}
.banner-emblem {
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255, 215, 130, .18); color: #ffd98a;
  display: flex; align-items: center; justify-content: center; font-size: 18px; flex: none;
}
.banner-emblem.right { background: rgba(255, 215, 130, .18); }
.banner-text { flex: 1; min-width: 0; }
.banner-title { color: #fff; font-size: 18px; font-weight: 700; letter-spacing: .5px; }
.banner-sub { color: #ffe3c2; font-size: 13px; margin-top: 4px; }
#quiz { margin-top: 0; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 10px 8px; border-bottom: 1px solid #f3e0e0; text-align: left; }
th { color: #8a3030; font-weight: 600; }
