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

:root {
  --ink: #1c2434;
  --muted: #5b6474;
  --paper: #fff8f1;
  --card: #ffffff;
  --line: #ffd3c2;
  --coral: #ff4d6d;
  --teal: #00b4d8;
  --green: #12b76a;
}

html, body { min-height: 100%; }

html {
  background: #1a0a2e center / cover fixed no-repeat;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  min-height: 100vh;
  background: #1a0a2e center / cover fixed no-repeat;
}

body.has-bg,
html.has-bg {
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-attachment: fixed !important;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 20px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 3px solid transparent;
  border-image: linear-gradient(90deg, #ff6b35, #ff3d7f, #7b61ff, #00b4d8) 1;
  position: sticky;
  top: 0;
  z-index: 20;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 700;
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #ff6b35, #ff3d7f);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(255, 61, 127, 0.28);
}

.live-tag {
  background: var(--green);
  color: #fff;
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
}

.live-dot {
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .45; }
}

.tip-bar {
  padding: 10px 20px;
  font-size: 15px;
  font-weight: 600;
  color: #fff8f1;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}

.tip-bar strong { color: #ff8fab; }

.category-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  padding: 0 20px 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.tab {
  padding: 15px;
  border-radius: 8px;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  color: #fff;
  border: 3px solid transparent;
  box-shadow: 0 10px 22px rgba(28, 36, 52, 0.12);
  transition: transform .18s ease, box-shadow .18s ease;
}

.tab:hover { transform: translateY(-2px); }

.tab.active {
  border-color: #fff6;
  box-shadow: 0 0 0 3px rgba(255, 77, 109, 0.28), 0 12px 26px rgba(28, 36, 52, 0.16);
  transform: translateY(-2px);
}

.tab .count {
  display: block;
  font-size: 22px;
  margin-top: 5px;
}

.filter-bar {
  max-width: 1400px;
  margin: 0 auto 20px;
  padding: 0 20px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-select {
  padding: 8px 12px;
  border-radius: 6px;
  background: #fff;
  border: 1px solid #ffb4a2;
  color: var(--ink);
  outline: none;
  font-size: 14px;
  font-weight: 600;
  min-width: 140px;
}

.main-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px 40px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 15px;
}

.profile-card {
  background: transparent;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(90, 45, 130, 0.55);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.card-avatar {
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: #ffe8dc;
}

.card-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
  transition: transform .2s;
}

.card-avatar img:hover { transform: scale(1.05); }

.card-info {
  padding: 12px;
  background: rgba(61, 31, 102, 0.08);
  backdrop-filter: blur(2px);
}

.id-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
}

.id-row span { cursor: pointer; }

.age-row {
  font-size: 16px;
  font-weight: 600;
  color: #e0d4ff;
  margin-bottom: 8px;
}

.copy-btn {
  background: rgba(106, 27, 154, 0.9);
  border: none;
  color: #fff;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 13px;
  cursor: pointer;
  font-weight: 600;
}

.copy-btn:hover { filter: brightness(1.05); }

.social-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.social-tag {
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
  white-space: nowrap;
}

.social-account {
  flex: 1;
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 15px;
  font-weight: 600;
}

.social-account:hover { color: #ff4081; }

.area-row {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  display: flex;
  align-items: flex-start;
  gap: 4px;
  line-height: 1.4;
}

.copy-tip {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--green);
  color: #fff;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 14px;
  z-index: 999;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(18, 183, 106, 0.28);
}

.empty-tip {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 0;
  color: #fff;
  font-weight: 600;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}

.img-modal {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 20px;
}

.modal-img {
  max-width: 90%;
  max-height: 85vh;
  border-radius: 10px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.modal-close {
  background: #fff;
  color: #000;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  font-weight: bold;
}

@media (max-width: 768px) {
  .category-tabs { grid-template-columns: repeat(2, 1fr); }
  .card-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .card-avatar { height: 180px; }
  .tip-bar { font-size: 13px; }
}
