/* CSS Document */

* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, "PingFang SC", sans-serif; background: #f5f6f8; color: #333; }
a { color: #e94f6a; text-decoration: none; }

.topbar { height: 56px; background: #e94f6a; color: #fff; display: flex; align-items: center; padding: 0 20px; }
.topbar h1 { font-size: 16px; margin: 0; flex: 1; }
.topbar a { color: #fff; margin-left: 16px; font-size: 13px; }

.wrap { max-width: 1100px; margin: 20px auto; padding: 0 16px; }
.card { background: #fff; border-radius: 8px; padding: 20px; margin-bottom: 16px; }
.card h2 { font-size: 15px; margin: 0 0 16px; }

.row { display: flex; gap: 12px; margin-bottom: 12px; align-items: center; }
.row label { width: 80px; font-size: 14px; color: #666; flex-shrink: 0; }

input, select, textarea {
  border: 1px solid #ddd; border-radius: 6px; padding: 8px 10px;
  font-size: 14px; flex: 1; outline: none;
}
input:focus, select:focus, textarea:focus { border-color: #e94f6a; }
textarea { min-height: 70px; resize: vertical; }

button { border: none; border-radius: 6px; padding: 8px 16px; font-size: 14px; cursor: pointer; background: #e94f6a; color: #fff; }
button.ghost { background: #eee; color: #333; }
button.danger { background: #f5222d; }
button.ok { background: #52c41a; }
button:disabled { opacity: .5; cursor: not-allowed; }

table { width: 100%; border-collapse: collapse; }
th, td { padding: 10px 8px; text-align: left; font-size: 13px; border-bottom: 1px solid #f0f0f0; }
th { background: #fafafa; color: #666; font-weight: 500; }

.tag { display: inline-block; padding: 2px 6px; border-radius: 4px; font-size: 11px; color: #fff; margin-right: 4px; }
.tag-top { background: #fa8c16; }
.tag-vip { background: #722ed1; }
.tag-wait { background: #faad14; }
.tag-ok { background: #52c41a; }
.tag-no { background: #bfbfbf; }

.thumb { width: 44px; height: 44px; border-radius: 6px; object-fit: cover; background: #eee; }

.photos { display: flex; gap: 10px; flex-wrap: wrap; }
.photos .ph {
  width: 90px; height: 110px; border: 1px dashed #ccc; border-radius: 6px;
  position: relative; overflow: hidden; display: flex; align-items: center;
  justify-content: center; cursor: pointer; color: #999; font-size: 12px;
}
.photos .ph img { width: 100%; height: 100%; object-fit: cover; }

.login-body { display: flex; align-items: center; justify-content: center; height: 100vh; }
.login-card { width: 320px; background: #fff; padding: 32px 24px; border-radius: 10px; box-shadow: 0 6px 24px rgba(0,0,0,.06); }
.login-card h2 { text-align: center; font-size: 18px; margin: 0 0 24px; }
.login-card input { width: 100%; margin-bottom: 12px; }
.login-card button { width: 100%; }
.tip { color: #999; font-size: 12px; text-align: center; margin-top: 12px; }