/* T三员工工作台 统一样式 */
:root {
  --primary: #2d5a3d;
  --primary-light: #3d7a52;
  --bg: #f5f5f0;
  --card: #ffffff;
  --text: #1a1a1a;
  --text-secondary: #666;
  --border: #e0e0d8;
  --danger: #c0392b;
  --success: #27ae60;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}
.header {
  background: var(--primary);
  color: #fff;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header h1 { font-size: 17px; font-weight: 600; }
.header .user { font-size: 13px; opacity: .9; }
.nav {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  display: flex;
}
.nav a {
  flex: 1;
  text-align: center;
  padding: 12px 4px;
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.nav a.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }
.container { max-width: 640px; margin: 0 auto; padding: 16px; }
.card {
  background: var(--card);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,.05);
}
.btn {
  display: inline-block;
  width: 100%;
  padding: 13px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}
.btn:active { background: var(--primary-light); }
.btn:disabled { background: #aaa; cursor: not-allowed; }
.btn.secondary { background: #fff; color: var(--primary); border: 1px solid var(--primary); margin-top: 8px; }
.input {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 15px;
  margin-bottom: 10px;
  background: #fff;
}
label { font-size: 13px; color: var(--text-secondary); display: block; margin-bottom: 4px; }
.result {
  padding: 14px;
  border-radius: 8px;
  font-size: 15px;
  margin-top: 12px;
  display: none;
}
.result.show { display: block; }
.result.success { background: #eafaf1; color: var(--success); border: 1px solid #a9dfbf; }
.result.error { background: #fdedec; color: var(--danger); border: 1px solid #f5b7b1; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 8px 6px; border-bottom: 1px solid var(--border); text-align: left; }
th { color: var(--text-secondary); font-weight: 500; }
.tag { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 12px; }
.tag.paid, .tag.used, .tag.success { background: #eafaf1; color: var(--success); }
.tag.pending { background: #fef9e7; color: #b7950b; }
.tag.cancelled, .tag.refunded { background: #f2f3f4; color: var(--text-secondary); }
.muted { color: var(--text-secondary); font-size: 13px; }
.pager { display: flex; justify-content: space-between; margin-top: 12px; }
.pager button { padding: 8px 16px; border: 1px solid var(--border); background: #fff; border-radius: 6px; }
.video-wrap { position: relative; width: 100%; aspect-ratio: 1; background: #000; border-radius: 10px; overflow: hidden; margin-bottom: 10px; }
.video-wrap video { width: 100%; height: 100%; object-fit: cover; }
.scan-line {
  position: absolute; left: 10%; width: 80%; height: 2px;
  background: var(--success); box-shadow: 0 0 8px var(--success);
  animation: scan 2s linear infinite;
}
@keyframes scan { 0% { top: 10%; } 50% { top: 88%; } 100% { top: 10%; } }
.scan-frame {
  position: absolute; inset: 15%; border: 2px solid rgba(255,255,255,.7); border-radius: 12px; pointer-events: none;
}
