/* =============================================
   课堂签到H5 - 公共样式（简洁文字版）
   ============================================= */

:root {
  --primary: #07c160;      /* 微信绿，仅用于按钮与关键数字 */
  --primary-dark: #06ad56;
  --bg: #f7f8fa;
  --card: #ffffff;
  --text: #1f2329;
  --text-sub: #646a73;
  --text-light: #a3a9b3;
  --border: #ececec;
  --radius: 12px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue",
    "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  font-size: 15px;
  line-height: 1.5;
}

.page {
  max-width: 480px;
  margin: 0 auto;
  padding: 16px 16px 40px;
  min-height: 100vh;
}

/* ---------- Toast ---------- */
#toast {
  position: fixed;
  left: 50%;
  bottom: 80px;
  transform: translateX(-50%);
  background: rgba(31, 35, 41, 0.85);
  color: #fff;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 8px;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
  max-width: 80vw;
  text-align: center;
}

#toast.show {
  opacity: 1;
}

/* ---------- 通用卡片 ---------- */
.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 16px;
}

/* ---------- 空状态 ---------- */
.empty {
  text-align: center;
  padding: 36px 16px;
  color: var(--text-light);
  font-size: 14px;
}

/* ---------- 演示提示条 ---------- */
.demo-banner {
  background: #fffbe6;
  border: 1px solid #ffe58f;
  color: #ad6800;
  font-size: 12px;
  padding: 8px 12px;
  border-radius: 8px;
  margin-bottom: 12px;
  text-align: center;
}

.demo-banner a {
  color: #ad6800;
  font-weight: 600;
}
