*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f5f6fa;
  color: #222;
  min-height: 100vh;
}

a { color: #4f6ef7; text-decoration: none; }
a:hover { text-decoration: underline; }

.navbar {
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
  padding: 0 32px;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.navbar .logo { font-size: 18px; font-weight: 700; color: #4f6ef7; flex: 1; }

.container { max-width: 960px; margin: 32px auto; padding: 0 24px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: opacity .15s;
}
.btn:hover { opacity: .85; }
.btn-primary { background: #4f6ef7; color: #fff; }
.btn-danger  { background: #ff4d4f; color: #fff; }
.btn-ghost   { background: #fff; color: #555; border: 1px solid #ddd; }
.btn-sm { padding: 5px 12px; font-size: 13px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,.07);
  padding: 24px;
  margin-bottom: 16px;
}

.tag-active   { display:inline-block; padding:2px 10px; border-radius:20px; font-size:12px; background:#e6f4ff; color:#1677ff; }
.tag-inactive { display:inline-block; padding:2px 10px; border-radius:20px; font-size:12px; background:#f5f5f5; color:#999; }
.tag-drawn    { display:inline-block; padding:2px 10px; border-radius:20px; font-size:12px; background:#f6ffed; color:#52c41a; }

.form-group { margin-bottom:16px; }
.form-group label { display:block; font-size:13px; color:#666; margin-bottom:6px; }
.form-group input, .form-group select, .form-group textarea {
  width:100%; padding:10px 12px; border:1px solid #ddd; border-radius:8px;
  font-size:14px; outline:none; transition:border .15s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color:#4f6ef7; }
.form-hint { font-size:12px; color:#aaa; margin-top:4px; }

.empty { text-align:center; padding:60px 0; color:#aaa; font-size:15px; }

/* 抽奖公开页 */
.lottery-wrap { max-width:520px; margin:0 auto; }
.gift-hero {
  background: linear-gradient(135deg,#ff7a45,#ff4d6d);
  color:#fff; border-radius:16px; padding:36px 28px; text-align:center;
  box-shadow:0 6px 24px rgba(255,77,109,.28); margin-bottom:20px;
}
.gift-hero .ico { font-size:52px; margin-bottom:12px; }
.gift-hero h2 { font-size:24px; margin-bottom:10px; }
.gift-hero .prize { font-size:16px; opacity:.95; }
.gift-hero .desc { font-size:13px; opacity:.85; margin-top:10px; line-height:1.6; }

.countdown { display:flex; gap:10px; justify-content:center; margin:18px 0 6px; }
.cd-box { background:rgba(255,255,255,.2); border-radius:10px; padding:8px 12px; min-width:56px; }
.cd-box .n { font-size:26px; font-weight:700; line-height:1.1; }
.cd-box .u { font-size:11px; opacity:.85; }

.meta-strip { display:flex; gap:12px; margin-bottom:16px; }
.meta-strip .kpi { flex:1; background:#fff; border-radius:10px; box-shadow:0 1px 4px rgba(0,0,0,.07); padding:14px; text-align:center; }
.meta-strip .kpi .num { font-size:22px; font-weight:700; color:#ff4d6d; }
.meta-strip .kpi .lbl { font-size:12px; color:#999; margin-top:2px; }

.winner-list { display:flex; flex-direction:column; gap:8px; }
.winner-item {
  display:flex; align-items:center; gap:12px; padding:12px 16px;
  background:linear-gradient(90deg,#fff7e6,#fff); border:1px solid #ffe7ba;
  border-radius:10px; font-size:15px; font-weight:500;
}
.winner-item .rank { width:26px; height:26px; border-radius:50%; background:#faad14; color:#fff; font-size:13px; display:flex; align-items:center; justify-content:center; flex-shrink:0; }

/* 后台管理列表 */
.entry-tag { display:inline-block; background:#f0f0f0; color:#555; padding:4px 10px; border-radius:6px; font-size:13px; margin:3px; }
.entry-tag.win { background:#fff7e6; color:#d48806; border:1px solid #ffe7ba; }
