/* ===== 益普生中国员工大会 · 互动提问系统 · 基础样式 ===== */
:root {
  --brand: #4fa833;
  --brand-600: #3f8c28;
  --brand-700: #2e6b1f;
  --brand-900: #12365c;
  --blue2: #1e9bd7;
  --blue2-600: #167db0;
  --accent: #ff7a2f;
  --accent-600: #ef6415;
  --cyan: #7ed957;
  --ink: #14243c;
  --ink-2: #4a5a72;
  --ink-3: #8593a8;
  --line: #e4e9f1;
  --bg: #f2f5fa;
  --card: #ffffff;
  --ok: #14a05a;
  --warn: #e8971c;
  --danger: #e0463c;
  --radius: 14px;
  --shadow-sm: 0 1px 3px rgba(16, 38, 71, .06), 0 1px 2px rgba(16, 38, 71, .04);
  --shadow: 0 6px 24px rgba(11, 47, 99, .10);
  --shadow-lg: 0 18px 48px rgba(11, 47, 99, .18);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  font-size: 15px;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
button, input, textarea, select { font-family: inherit; font-size: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: .2px; }
p { margin: 0; }

/* ---------- 布局 ---------- */
.wrap { width: 100%; max-width: 860px; margin: 0 auto; padding: 0 18px; }
.row { display: flex; align-items: center; gap: 10px; }
.row.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.muted { color: var(--ink-2); }
.dim { color: var(--ink-3); }
.tc { text-align: center; }
.mt8 { margin-top: 8px; } .mt16 { margin-top: 16px; } .mt24 { margin-top: 24px; }
.mb8 { margin-bottom: 8px; } .mb16 { margin-bottom: 16px; }
.hide { display: none !important; }

/* ---------- 卡片 ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 42px; padding: 0 18px;
  border: 1px solid var(--line); border-radius: 10px;
  background: #fff; color: var(--ink);
  font-weight: 600; cursor: pointer;
  transition: .16s ease;
  white-space: nowrap;
}
.btn:hover { border-color: #cdd7e6; background: #fafbfe; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary {
  background: linear-gradient(135deg, #56b23a 0%, var(--brand-700) 100%);
  border-color: transparent; color: #fff;
  box-shadow: 0 6px 16px rgba(79, 168, 51, .28);
}
.btn-primary:hover { background: linear-gradient(135deg, #60bd44 0%, var(--brand-600) 100%); border-color: transparent; }
.btn-accent { background: var(--blue2); border-color: transparent; color: #fff; }
.btn-accent:hover { background: var(--blue2-600); border-color: transparent; }
.btn-danger { background: #fff; border-color: #f3c9c6; color: var(--danger); }
.btn-danger:hover { background: #fdf3f2; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; border-radius: 8px; font-weight: 600; }
.btn-block { width: 100%; }
.btn-lg { height: 50px; font-size: 16px; border-radius: 12px; }

/* ---------- 表单 ---------- */
.field { margin-bottom: 16px; }
.field > label { display: block; font-size: 13px; font-weight: 700; color: var(--ink-2); margin-bottom: 7px; }
.input, .textarea, .select {
  width: 100%; padding: 11px 14px;
  border: 1px solid var(--line); border-radius: 10px;
  background: #fff; outline: none; transition: .15s;
}
.input:focus, .textarea:focus, .select:focus {
  border-color: var(--brand); box-shadow: 0 0 0 3px rgba(11, 77, 162, .12);
}
.textarea { resize: vertical; min-height: 96px; line-height: 1.65; }
.hint { font-size: 12px; color: var(--ink-3); margin-top: 6px; }
.err {
  font-size: 13px; color: var(--danger); background: #fdf1f0;
  border: 1px solid #f7d9d6; border-radius: 9px; padding: 8px 12px;
}

/* ---------- 标签 ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 9px; border-radius: 999px;
  font-size: 12px; font-weight: 700; line-height: 1.7;
  background: #eef2f8; color: var(--ink-2);
}
.badge-ok { background: #e6f6ee; color: #0f8a4d; }
.badge-warn { background: #fdf3e2; color: #b4740c; }
.badge-danger { background: #fdecea; color: #c9372d; }
.badge-brand { background: #e9f5e2; color: var(--brand-600); }

/* ---------- 提示条 ---------- */
#toast {
  position: fixed; left: 50%; top: 22px; transform: translateX(-50%);
  z-index: 9999; display: flex; flex-direction: column; gap: 8px; align-items: center;
  pointer-events: none;
}
.toast-item {
  background: rgba(20, 36, 60, .94); color: #fff;
  padding: 10px 18px; border-radius: 10px; font-size: 14px; font-weight: 600;
  box-shadow: var(--shadow-lg);
  animation: toastIn .22s ease;
}
.toast-item.ok { background: rgba(16, 122, 68, .95); }
.toast-item.err { background: rgba(196, 55, 45, .95); }
@keyframes toastIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }

/* ---------- 空状态 ---------- */
.empty { padding: 46px 20px; text-align: center; color: var(--ink-3); }
.empty-ico { font-size: 40px; line-height: 1; margin-bottom: 10px; opacity: .5; }

/* ---------- 滚动条 ---------- */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #cfd8e6; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #b9c5d8; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- 动画 ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.fade-up { animation: fadeUp .3s ease both; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .45; } }
.live-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--ok);
  display: inline-block; animation: pulse 1.4s infinite;
}

/* ---------- 移动端 ---------- */
@media (max-width: 640px) {
  body { font-size: 14px; }
  .wrap { padding: 0 14px; }
}

img.brand-mark { object-fit: contain; }
