* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #f4f6fb; color: #1f2329; padding-bottom: 90px; }
.hero { background: #3370ff; color: #fff; padding: 28px 20px 34px; }
.hi { font-size: 24px; font-weight: 700; }
.sub { margin-top: 6px; opacity: .9; font-size: 14px; }
.tabs { display: flex; gap: 24px; padding: 0 20px; background: #3370ff; }
.tab { color: rgba(255,255,255,.75); text-decoration: none; font-size: 15px; padding: 10px 2px;
  border-bottom: 2px solid transparent; }
.tab.active { color: #fff; border-bottom-color: #fff; font-weight: 600; }
.content { max-width: 720px; margin: 0 auto; padding: 18px 16px; }
.section-title, .form-section { font-size: 17px; margin: 6px 0 14px;
  border-left: 3px solid #3370ff; padding-left: 8px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill,minmax(260px,1fr)); gap: 12px; }
.card { background: #fff; border-radius: 10px; padding: 14px 16px;
  box-shadow: 0 1px 4px rgba(31,35,41,.08); }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.names { font-weight: 600; font-size: 15px; }
.badge { font-size: 12px; padding: 2px 8px; border-radius: 10px; white-space: nowrap; }
.badge.ended { background: #eef0f3; color: #8a8f99; }
.badge.ongoing { background: #e1f0ff; color: #1664d9; }
.meta { color: #646a73; font-size: 13px; margin-top: 6px; }
.meta.ok { color: #2ea121; }
.again { display: inline-block; margin-top: 10px; color: #3370ff; font-size: 13px; text-decoration: none; }
.empty { color: #8a8f99; text-align: center; margin-top: 60px; font-size: 14px; }
.fab { position: fixed; right: 28px; bottom: 32px; width: 56px; height: 56px; border-radius: 50%;
  background: #3370ff; color: #fff; font-size: 30px; text-align: center; line-height: 52px;
  text-decoration: none; box-shadow: 0 4px 12px rgba(51,112,255,.4); }
form#visit-form, .wifi-form { background: transparent; }
.field { display: block; margin-bottom: 12px; }
.field > span { display: block; font-size: 13px; color: #646a73; margin-bottom: 5px; }
input, select { width: 100%; padding: 11px 12px; border: 1px solid #dee0e3; border-radius: 8px;
  font-size: 15px; background: #fff; }
input:focus, select:focus { outline: none; border-color: #3370ff; }
.row { display: flex; gap: 10px; }
.row .field { flex: 1; }
.row .small { min-width: 110px; }
.row.tight { gap: 8px; }
.row.tight .cc { width: 84px; flex: none; }
.hint { color: #8a8f99; font-size: 13px; margin: -6px 0 12px; }
.visitor-block { background: #fff; border: 1px solid #dee0e3; border-radius: 10px;
  padding: 12px; margin-bottom: 10px; position: relative; }
.visitor-block input { margin-bottom: 8px; }
.del { background: none; border: none; color: #f54a45; font-size: 13px; cursor: pointer; }
.add-visitor { width: 100%; padding: 12px; border: 1px dashed #3370ff; background: #fff;
  color: #3370ff; border-radius: 10px; font-size: 15px; cursor: pointer; }
.actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 22px; }
.btn { padding: 10px 28px; border-radius: 8px; font-size: 15px; text-decoration: none;
  display: inline-block; cursor: pointer; border: 1px solid transparent; }
.btn.ghost { background: #fff; border-color: #dee0e3; color: #646a73; }
.btn.primary { background: #3370ff; color: #fff; }
.btn.wide { width: 100%; margin-top: 12px; }
.wifi-result { margin-top: 12px; font-size: 14px; color: #1664d9; }
.login-body { display: flex; align-items: center; justify-content: center; min-height: 100vh; }
.login-card { text-align: center; color: #646a73; }
.login-card h2 { color: #1f2329; margin-bottom: 12px; }
