/**
 * 华中农业大学信息学院生物信息学2601班团支部11月团生会互动合集
 * 样式系统：红色主题 · 浅色现代风格 (Red Theme & Light Clean Style)
 */

:root {
  --primary-red: #C8161D;
  --primary-hover: #AA0E14;
  --secondary-red: #E53935;
  --light-red-bg: #FFF5F5;
  --border-red: #FFCDD2;
  --gold-accent: #E6A23C;
  --gold-light: #FFF8E7;
  --bg-page: #F7F8FA;
  --bg-card: #FFFFFF;
  --text-main: #262626;
  --text-regular: #595959;
  --text-secondary: #8C8C8C;
  --border-light: #EBEFF5;
  --success-color: #52C41A;
  --warning-color: #FAAD14;
  --shadow-card: 0 4px 18px rgba(200, 22, 29, 0.07);
  --shadow-hover: 0 8px 26px rgba(200, 22, 29, 0.12);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* 顶部专属横幅（浅色高雅，微红饰边） */
.app-header {
  background: linear-gradient(135deg, #FFFFFF 0%, #FFF5F5 100%);
  border-bottom: 2px solid var(--border-red);
  box-shadow: 0 2px 12px rgba(200, 22, 29, 0.05);
  padding: 12px 24px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-emblem {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #C8161D 0%, #E53935 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFF;
  font-weight: 900;
  font-size: 20px;
  box-shadow: 0 3px 8px rgba(200, 22, 29, 0.35);
  border: 2px solid #FFE082;
}

.brand-text h1 {
  font-size: 19px;
  font-weight: 800;
  color: var(--primary-red);
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 12px;
  background-color: var(--light-red-bg);
  color: var(--primary-red);
  border: 1px solid var(--border-red);
}

.brand-subtitle {
  font-size: 12px;
  color: var(--text-secondary);
}

.header-user-status {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}

.user-tag {
  background: #FFF;
  border: 1px solid var(--border-red);
  padding: 5px 12px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--primary-red);
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

.user-tag .dot {
  width: 8px;
  height: 8px;
  background-color: var(--success-color);
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(82, 196, 26, 0.6);
}

/* 按钮通用 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 18px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-red) 0%, #D8232A 100%);
  color: #FFF;
  box-shadow: 0 3px 10px rgba(200, 22, 29, 0.25);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #AA0E14 0%, var(--primary-red) 100%);
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(200, 22, 29, 0.35);
}

.btn-outline {
  background: #FFF;
  border-color: var(--border-red);
  color: var(--primary-red);
}

.btn-outline:hover {
  background: var(--light-red-bg);
  border-color: var(--primary-red);
}

.btn-gold {
  background: linear-gradient(135deg, #F5A623 0%, #E67E22 100%);
  color: #FFF;
  box-shadow: 0 3px 10px rgba(245, 166, 35, 0.3);
}

.btn-sm {
  padding: 5px 12px;
  font-size: 12px;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 12px 28px;
  font-size: 16px;
  border-radius: var(--radius-lg);
}

/* 导航控制条 / 中控切换条 */
.activity-nav-bar {
  background: #FFF;
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
  padding: 8px 16px;
}

.nav-tabs-wrapper {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 4px 0;
}

.nav-tabs-wrapper::-webkit-scrollbar {
  display: none;
}

.nav-tab-item {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  background: #F8F9FA;
  border-radius: var(--radius-md);
  border: 1px solid #EBEFF5;
  color: var(--text-regular);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.nav-tab-item .badge-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #E0E0E0;
  color: #616161;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.nav-tab-item:hover {
  background: var(--light-red-bg);
  color: var(--primary-red);
  border-color: var(--border-red);
}

.nav-tab-item.active {
  background: linear-gradient(135deg, #FFF5F5 0%, #FFEBEB 100%);
  color: var(--primary-red);
  border-color: var(--primary-red);
  box-shadow: 0 3px 10px rgba(200, 22, 29, 0.08);
}

.nav-tab-item.active .badge-num {
  background: var(--primary-red);
  color: #FFF;
}

/* 状态同步通知条 (User端查看中控指令) */
.sync-banner {
  background: linear-gradient(90deg, #FFF8E7 0%, #FFF5F5 100%);
  border-bottom: 1px solid #FFE082;
  padding: 8px 16px;
  font-size: 13px;
  color: #8C5300;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sync-banner-text {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sync-live-dot {
  width: 10px;
  height: 10px;
  background-color: var(--primary-red);
  border-radius: 50%;
  position: relative;
}

.sync-live-dot::after {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  border-radius: 50%;
  border: 2px solid var(--primary-red);
  animation: livePulse 1.6s infinite;
}

@keyframes livePulse {
  0% { transform: scale(0.8); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* 主内容容器 */
.main-wrapper {
  max-width: 1320px;
  margin: 20px auto;
  padding: 0 16px 40px;
}

/* 通用白色高质感卡片 */
.white-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.white-card:hover {
  box-shadow: var(--shadow-hover);
}

.card-title-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid #F0F0F0;
}

.card-title-bar h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-red);
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-title-bar h2::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 18px;
  background: var(--primary-red);
  border-radius: 2px;
}

/* ============================================================
   1. 会前签到模块
   ============================================================ */
.signin-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 24px;
}

@media (max-width: 860px) {
  .signin-grid {
    grid-template-columns: 1fr;
  }
}

.signin-form-box {
  background: #FFF;
  border-radius: var(--radius-md);
  padding: 20px;
  border: 1px solid var(--border-red);
}

.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-main);
}

.form-input, .form-select {
  width: 100%;
  padding: 10px 14px;
  font-size: 14px;
  border: 1px solid #D9D9D9;
  border-radius: var(--radius-sm);
  outline: none;
  transition: var(--transition);
  background: #FAFAFA;
}

.form-input:focus, .form-select:focus {
  border-color: var(--primary-red);
  background: #FFF;
  box-shadow: 0 0 0 3px rgba(200, 22, 29, 0.1);
}

.quick-pick-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-height: 140px;
  overflow-y: auto;
  padding: 8px;
  background: #F9FAFB;
  border-radius: var(--radius-sm);
  border: 1px dashed #D9D9D9;
}

.name-chip {
  padding: 4px 10px;
  font-size: 12px;
  background: #FFF;
  border: 1px solid #E0E0E0;
  border-radius: 14px;
  cursor: pointer;
  transition: var(--transition);
}

.name-chip:hover {
  border-color: var(--primary-red);
  color: var(--primary-red);
  background: var(--light-red-bg);
}

.name-chip.selected {
  background: var(--primary-red);
  color: #FFF;
  border-color: var(--primary-red);
}

/* 签到大屏展板 */
.signin-dashboard {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.stat-pills-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.stat-pill {
  background: linear-gradient(135deg, #FFF9F9 0%, #FFF 100%);
  border: 1px solid var(--border-red);
  border-radius: var(--radius-md);
  padding: 14px;
  text-align: center;
}

.stat-pill .num {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary-red);
  font-family: Arial, sans-serif;
}

.stat-pill .label {
  font-size: 12px;
  color: var(--text-secondary);
}

.signed-roster-box {
  background: #FAFAFA;
  border-radius: var(--radius-md);
  padding: 16px;
  border: 1px solid var(--border-light);
  min-height: 220px;
}

.roster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
  max-height: 280px;
  overflow-y: auto;
}

.roster-card {
  background: #FFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.02);
  transition: var(--transition);
}

.roster-card.signed {
  border-color: #A3D9A5;
  background: #F6FFED;
}

.roster-card .avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #E0E0E0;
  color: #757575;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
}

.roster-card.signed .avatar {
  background: #52C41A;
  color: #FFF;
}

.roster-info {
  flex: 1;
  overflow: hidden;
}

.roster-name {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.roster-detail {
  font-size: 10px;
  color: var(--text-secondary);
}

/* ============================================================
   2. 洗扑克牌抽签模块 (Card Shuffling System)
   ============================================================ */
.shuffle-stage {
  min-height: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, #FFF9F9 0%, #FFF0F0 100%);
  border-radius: var(--radius-lg);
  padding: 30px 20px;
  border: 1px solid var(--border-red);
  position: relative;
  overflow: hidden;
}

.poker-arena {
  width: 320px;
  height: 220px;
  position: relative;
  perspective: 1200px;
  margin: 20px 0;
}

/* 扑克牌样式 */
.poker-card {
  width: 120px;
  height: 175px;
  position: absolute;
  top: 50%;
  left: 50%;
  margin-top: -87px;
  margin-left: -60px;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
  cursor: pointer;
}

/* 牌背：红色国风古典花纹 + 团徽金印 */
.card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  background: linear-gradient(135deg, #B71C1C 0%, #D32F2F 50%, #C62828 100%);
  border: 3px solid #FFF;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #FFD54F;
  box-shadow: inset 0 0 0 3px #FFE082;
}

.card-back .emblem-star {
  font-size: 32px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.card-back .card-text {
  font-size: 11px;
  font-weight: 700;
  margin-top: 6px;
  letter-spacing: 1px;
}

/* 牌面：中签人员结果 */
.card-face {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  transform: rotateY(180deg);
  background: #FFF;
  border: 3px solid #E53935;
  border-radius: 10px;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
}

.card-face .corner {
  font-size: 12px;
  font-weight: bold;
  color: var(--primary-red);
  align-self: flex-start;
}

.card-face .member-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FFCDD2 0%, #EF9A9A 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: bold;
  color: var(--primary-red);
  border: 2px solid #C8161D;
}

.card-face .member-name {
  font-size: 15px;
  font-weight: 800;
  color: #212121;
}

.card-face .member-group {
  font-size: 11px;
  color: var(--text-secondary);
  background: var(--light-red-bg);
  padding: 2px 6px;
  border-radius: 10px;
}

/* 洗牌进行中动态动画 (交错堆叠飞舞) */
.shuffling .poker-card:nth-child(1) {
  animation: shuffleLeft 0.5s infinite alternate ease-in-out;
}
.shuffling .poker-card:nth-child(2) {
  animation: shuffleCenter 0.45s infinite alternate ease-in-out;
}
.shuffling .poker-card:nth-child(3) {
  animation: shuffleRight 0.52s infinite alternate ease-in-out;
}
.shuffling .poker-card:nth-child(4) {
  animation: shuffleRotate 0.48s infinite alternate ease-in-out;
}
.shuffling .poker-card:nth-child(5) {
  animation: shuffleBack 0.55s infinite alternate ease-in-out;
}

@keyframes shuffleLeft {
  0% { transform: translate(-10px, 0) rotate(-6deg) scale(0.98); }
  100% { transform: translate(-110px, -20px) rotate(-22deg) scale(1.05); }
}

@keyframes shuffleCenter {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(10px, -45px) rotate(10deg) scale(1.1); }
}

@keyframes shuffleRight {
  0% { transform: translate(10px, 0) rotate(6deg) scale(0.98); }
  100% { transform: translate(110px, -20px) rotate(22deg) scale(1.05); }
}

@keyframes shuffleRotate {
  0% { transform: translate(-50px, 10px) rotate(-14deg); }
  100% { transform: translate(70px, -30px) rotate(16deg); }
}

@keyframes shuffleBack {
  0% { transform: translate(40px, -10px) rotate(12deg); }
  100% { transform: translate(-70px, 20px) rotate(-15deg); }
}

/* 抽签结果展示阵列 */
.shuffle-results-deck {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 15px;
}

.revealed-card {
  width: 140px;
  height: 200px;
  background: #FFF;
  border: 2px solid var(--border-red);
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(200, 22, 29, 0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
  text-align: center;
  gap: 10px;
  animation: cardFlipIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

@keyframes cardFlipIn {
  from {
    opacity: 0;
    transform: rotateY(90deg) scale(0.7);
  }
  to {
    opacity: 1;
    transform: rotateY(0) scale(1);
  }
}

.revealed-card .gold-crown {
  font-size: 22px;
  color: var(--gold-accent);
}

.revealed-card .res-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FFEBEB 0%, #FFCDD2 100%);
  color: var(--primary-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  border: 2px solid var(--primary-red);
}

.revealed-card .res-name {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-main);
}

.revealed-card .res-group {
  font-size: 11px;
  color: var(--primary-red);
  background: var(--light-red-bg);
  padding: 2px 8px;
  border-radius: 10px;
}

/* ============================================================
   3. 理论互动答题模块 (Quiz Arena)
   ============================================================ */
.quiz-layout-grid {
  display: grid;
  grid-template-columns: 1.8fr 1.2fr;
  gap: 24px;
}

@media (max-width: 900px) {
  .quiz-layout-grid {
    grid-template-columns: 1fr;
  }
}

.quiz-question-box {
  background: #FFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px;
}

.quiz-badge-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.q-type-tag {
  background: var(--light-red-bg);
  color: var(--primary-red);
  border: 1px solid var(--border-red);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: bold;
}

.q-index-tag {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 600;
}

.quiz-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.6;
  margin-bottom: 20px;
}

.options-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.option-item {
  display: flex;
  align-items: center;
  padding: 14px 18px;
  background: #FAFAFA;
  border: 1px solid #E8E8E8;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  font-size: 15px;
  font-weight: 500;
}

.option-item:hover {
  background: var(--light-red-bg);
  border-color: var(--border-red);
  color: var(--primary-red);
}

.option-item.selected {
  background: #FFF5F5;
  border-color: var(--primary-red);
  color: var(--primary-red);
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(200, 22, 29, 0.1);
}

.option-item.correct {
  background: #F6FFED;
  border-color: #B7EB8F;
  color: #389E0D;
}

.option-item.wrong {
  background: #FFF1F0;
  border-color: #FFA39E;
  color: #CF1322;
}

.option-indicator {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #D9D9D9;
  margin-right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}

.option-item.selected .option-indicator {
  border-color: var(--primary-red);
  background: var(--primary-red);
  color: #FFF;
}

/* 答题排行榜 (Leaderboard) */
.leaderboard-panel {
  background: linear-gradient(180deg, #FFFFFF 0%, #FCF8F8 100%);
  border: 1px solid var(--border-red);
  border-radius: var(--radius-md);
  padding: 20px;
}

.rank-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: #FFF;
  border: 1px solid #F0F0F0;
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
  transition: var(--transition);
}

.rank-item:hover {
  transform: translateX(4px);
  border-color: var(--border-red);
}

.rank-pos {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #F0F0F0;
  color: #595959;
  font-size: 13px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
}

.rank-pos.pos-1 {
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  color: #FFF;
  box-shadow: 0 2px 6px rgba(255, 165, 0, 0.4);
}

.rank-pos.pos-2 {
  background: linear-gradient(135deg, #B0BEC5 0%, #78909C 100%);
  color: #FFF;
}

.rank-pos.pos-3 {
  background: linear-gradient(135deg, #D7CCC8 0%, #8D6E63 100%);
  color: #FFF;
}

.rank-name-box {
  flex: 1;
}

.rank-user-name {
  font-weight: 700;
  font-size: 14px;
}

.rank-sub {
  font-size: 11px;
  color: var(--text-secondary);
}

.rank-score {
  font-size: 16px;
  font-weight: 800;
  color: var(--primary-red);
  font-family: Arial, sans-serif;
}

/* 小组积分进度条 */
.group-bars-stack {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.group-bar-line {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}

.group-label {
  width: 50px;
  font-weight: 600;
}

.group-track {
  flex: 1;
  height: 10px;
  background: #EAEAEA;
  border-radius: 5px;
  overflow: hidden;
}

.group-fill {
  height: 100%;
  background: linear-gradient(90deg, #FF7043 0%, var(--primary-red) 100%);
  border-radius: 5px;
  transition: width 0.6s ease;
}

.group-val {
  width: 45px;
  text-align: right;
  font-weight: bold;
  color: var(--primary-red);
}

/* ============================================================
   4. “隐患找茬”场景互动模块 (Hazard Hunt)
   ============================================================ */
.hazard-workbench {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hazard-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  background: #FFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 12px 18px;
}

.timer-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #FFF0F0;
  border: 1px solid var(--border-red);
  padding: 6px 14px;
  border-radius: 20px;
  color: var(--primary-red);
  font-weight: 800;
  font-size: 15px;
}

.timer-pill.urgent {
  animation: urgentPulse 0.8s infinite;
  background: var(--primary-red);
  color: #FFF;
}

@keyframes urgentPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* 场景画板容器（支持触屏圈画与点击） */
.scene-canvas-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 5 / 3;
  background: #000;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  user-select: none;
  touch-action: none;
}

.scene-canvas-wrapper img, .scene-canvas-wrapper svg {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  pointer-events: none;
}

/* 圈画涂鸦交互层 */
.drawing-overlay-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: crosshair;
}

/* 命中成功的隐患光圈标记 */
.hazard-hit-marker {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 3px solid #00E676;
  background: rgba(0, 230, 118, 0.25);
  box-shadow: 0 0 16px rgba(0, 230, 118, 0.8);
  pointer-events: none;
  animation: markerPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hazard-hit-marker::after {
  content: '✓';
  color: #FFF;
  font-weight: 900;
  font-size: 24px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

@keyframes markerPop {
  0% { transform: translate(-50%, -50%) scale(0.2); opacity: 0; }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

/* 未找到揭晓时的警示圈 */
.hazard-reveal-marker {
  position: absolute;
  transform: translate(-50%, -50%);
  border: 3px dashed #FF1744;
  border-radius: 50%;
  background: rgba(255, 23, 68, 0.2);
  pointer-events: none;
  animation: pulseGlow 1.5s infinite;
}

@keyframes pulseGlow {
  0% { box-shadow: 0 0 0 0 rgba(255, 23, 68, 0.6); }
  70% { box-shadow: 0 0 0 16px rgba(255, 23, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 23, 68, 0); }
}

/* 隐患剖析清单 */
.hazard-inventory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.hazard-info-card {
  background: #FFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  transition: var(--transition);
}

.hazard-info-card.found {
  border-color: #B7EB8F;
  background: #F6FFED;
}

.hazard-info-card .status-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #E0E0E0;
  color: #FFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
}

.hazard-info-card.found .status-icon {
  background: var(--success-color);
}

.hazard-info-body {
  flex: 1;
}

.hazard-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 2px;
}

.hazard-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* ============================================================
   5. “拾光阅语”读书沙龙与感悟接龙 (Quote Sharing)
   ============================================================ */
.quote-layout {
  display: grid;
  grid-template-columns: 1.4fr 1.6fr;
  gap: 24px;
}

@media (max-width: 860px) {
  .quote-layout {
    grid-template-columns: 1fr;
  }
}

/* 治国理政金句卡（红色国风浅雅立体卡） */
.golden-quote-card {
  background: linear-gradient(135deg, #FFFFFF 0%, #FFFDF9 100%);
  border: 2px solid #FFE082;
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  position: relative;
  box-shadow: 0 6px 20px rgba(245, 166, 35, 0.12);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.golden-quote-card::before {
  content: '“';
  font-family: Georgia, serif;
  font-size: 64px;
  color: #FFE082;
  position: absolute;
  top: 10px;
  left: 18px;
  line-height: 1;
  opacity: 0.6;
}

.quote-content {
  position: relative;
  z-index: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.8;
  color: #37474F;
  margin: 16px 0;
  text-indent: 1.5em;
}

.quote-source {
  align-self: flex-end;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-red);
}

.quote-guide-box {
  background: var(--light-red-bg);
  border-left: 3px solid var(--primary-red);
  padding: 10px 14px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-top: 16px;
  font-size: 13px;
  color: #791A1E;
}

/* 30 秒即兴发言计时器 */
.speech-timer-box {
  background: #FFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
  margin-top: 18px;
}

.circle-timer-wrapper {
  position: relative;
  width: 90px;
  height: 90px;
  margin: 0 auto 10px;
}

.circle-timer-svg {
  transform: rotate(-90deg);
}

.timer-text-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 800;
  color: var(--primary-red);
  font-family: Arial, sans-serif;
}

/* 弹幕墙与感悟接龙大屏滚屏 */
.danmaku-wall-box {
  background: linear-gradient(180deg, #FAFAFA 0%, #FFF 100%);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 18px;
  height: 420px;
  display: flex;
  flex-direction: column;
}

.danmaku-stream {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-right: 6px;
}

.danmaku-item {
  background: #FFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
  animation: slideFadeIn 0.4s ease;
  border-left: 3px solid var(--primary-red);
}

@keyframes slideFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.danmaku-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.danmaku-author {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-red);
}

.danmaku-time {
  font-size: 11px;
  color: var(--text-secondary);
}

.danmaku-text {
  font-size: 14px;
  color: var(--text-main);
  line-height: 1.5;
}

/* 页脚 */
.app-footer {
  text-align: center;
  padding: 24px 16px;
  font-size: 12px;
  color: var(--text-secondary);
  border-top: 1px solid var(--border-light);
  background: #FFF;
  margin-top: 40px;
}

