/* ============================================
   广西缘聚会公益婚恋牵手服务中心 - 全局样式
   ============================================ */

/* ---- CSS Variables ---- */
:root {
  --primary: #e63976;
  --primary-light: #f06292;
  --primary-dark: #c2185b;
  --primary-bg: #fce4ec;
  --secondary: #5c6bc0;
  --accent: #ff8a65;
  --success: #66bb6a;
  --warning: #ffa726;
  --danger: #ef5350;
  --info: #42a5f5;

  --text-main: #2d3436;
  --text-secondary: #636e72;
  --text-light: #b2bec3;
  --text-white: #ffffff;

  --bg-page: #f5f5f7;
  --bg-card: #ffffff;
  --bg-hover: #f8f9fa;

  --border-color: #e8e8e8;
  --border-radius: 12px;
  --border-radius-sm: 8px;
  --border-radius-lg: 16px;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 28px rgba(0, 0, 0, 0.12);
  --shadow-primary: 0 4px 16px rgba(230, 57, 118, 0.25);

  --header-height: 70px;
  --container-max: 1200px;
  --transition: all 0.3s ease;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--text-main);
  background: var(--bg-page);
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }

img { max-width: 100%; display: block; }

ul, ol { list-style: none; }

/* ---- Container ---- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---- Header ---- */
/* 后台代管水印条 */
.delegate-bar {
  position: sticky;
  top: 0;
  z-index: 1100;
  background: #fff3cd;
  color: #8a5a00;
  border-bottom: 1px solid #ffe08a;
  font-size: 13px;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.delegate-bar span { line-height: 1.4; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  height: var(--header-height);
  display: flex;
  align-items: center;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.logo-text {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
}

.logo-text .sub {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-secondary);
  display: block;
  line-height: 1.2;
}

.nav-menu {
  display: flex;
  gap: 8px;
  align-items: center;
}

.nav-menu a {
  padding: 8px 16px;
  border-radius: var(--border-radius-sm);
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 500;
  transition: var(--transition);
}

.nav-menu a:hover, .nav-menu a.active {
  color: var(--primary);
  background: var(--primary-bg);
}

.header-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 24px;
  border: none;
  border-radius: var(--border-radius-sm);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  font-family: inherit;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  box-shadow: var(--shadow-primary);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(230, 57, 118, 0.35); }

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}
.btn-outline:hover { background: var(--primary-bg); }

.btn-secondary { background: var(--secondary); color: white; }
.btn-success { background: var(--success); color: white; }
.btn-warning { background: var(--warning); color: white; }
.btn-danger { background: var(--danger); color: white; }
.btn-info { background: var(--info); color: white; }

.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-lg { padding: 14px 32px; font-size: 17px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ---- Footer ---- */
.site-footer {
  background: #2d3436;
  color: var(--text-light);
  padding: 40px 0 20px;
  margin-top: 60px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 30px;
}

.footer-section h4 {
  color: white;
  font-size: 16px;
  margin-bottom: 12px;
}

.footer-section p, .footer-section a {
  color: var(--text-light);
  font-size: 14px;
  line-height: 2;
}

.footer-section a:hover { color: var(--primary-light); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  text-align: center;
  font-size: 13px;
  color: var(--text-light);
}

.footer-bottom a { color: var(--text-light); }
.footer-bottom a:hover { color: var(--primary-light); }

.icp-link { display: inline-flex; align-items: center; gap: 4px; }

/* ---- Cards ---- */
.card {
  background: var(--bg-card);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: var(--transition);
}

.card:hover { box-shadow: var(--shadow-md); }

/* ---- Guest Card ---- */
.guest-card {
  background: var(--bg-card);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
}

.guest-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.guest-card .photo-wrap {
  position: relative;
  width: 100%;
  padding-top: 120%;
  overflow: hidden;
  background: var(--bg-hover);
}

.guest-card .photo-wrap img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}

.guest-card .photo-wrap .watermark {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 2;
}

.guest-card .photo-wrap .watermark span {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.25);
  transform: rotate(-25deg);
  font-weight: bold;
  letter-spacing: 4px;
}

/* 我的信息卡主图水印：平铺斜向，覆盖整图，防截图裁掉盗用 */
.mycard-photo .watermark {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  background-repeat: repeat;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='130'><text x='8' y='72' transform='rotate(-24 110 65)' font-family='sans-serif' font-size='22' font-weight='bold' fill='white' fill-opacity='0.22'>广西缘聚会</text></svg>");
}
.mycard-photo .watermark span { display: none; }

.guest-card .recommend-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  box-shadow: var(--shadow-primary);
}

.guest-card .photo-count {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
}

.guest-card .info {
  padding: 14px 16px;
}

.guest-card .info .top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.guest-card .info .nickname {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-main);
}

.guest-card .info .gender-tag {
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: 500;
}

.gender-male { background: #e3f2fd; color: #1976d2; }
.gender-female { background: #fce4ec; color: #c2185b; }

.guest-card .info .meta {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.8;
}

.guest-card .info .meta .tag {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 4px;
  background: #f0f0f0;
  margin: 2px 4px 2px 0;
  font-size: 12px;
}

.guest-card .info .stats {
  display: flex;
  gap: 12px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border-color);
  font-size: 12px;
  color: var(--text-light);
}

.guest-card .info .stats span {
  display: flex;
  align-items: center;
  gap: 3px;
}

.guest-card .actions {
  display: flex;
  gap: 8px;
  padding: 0 16px 14px;
}

.guest-card .actions .btn { flex: 1; }

/* ---- Grid ---- */
.guest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

/* ---- Forms ---- */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-main);
}

.form-group label .required { color: var(--danger); }

.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  font-size: 15px;
  font-family: inherit;
  transition: var(--transition);
  background: white;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(230, 57, 118, 0.1);
}

.form-control:disabled { background: #f5f5f5; cursor: not-allowed; }

select.form-control { cursor: pointer; }

.input-group {
  display: flex;
  gap: 10px;
}

.input-group .form-control { flex: 1; }

/* ---- Auth Pages ---- */
.auth-page {
  min-height: calc(100vh - var(--header-height) - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background: linear-gradient(135deg, #fce4ec 0%, #f3e5f5 50%, #e8eaf6 100%);
}

.auth-card {
  background: white;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 40px;
  width: 100%;
  max-width: 440px;
}

.auth-card .auth-title {
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-main);
}

.auth-card .auth-subtitle {
  text-align: center;
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 30px;
}

.auth-card .auth-footer {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
  color: var(--text-secondary);
}

/* ---- Badges & Tags ---- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

.badge-success { background: #e8f5e9; color: #2e7d32; }
.badge-warning { background: #fff3e0; color: #e65100; }
.badge-danger { background: #ffebee; color: #c62828; }
.badge-info { background: #e3f2fd; color: #1565c0; }
.badge-default { background: #f5f5f5; color: #616161; }
.badge-primary { background: var(--primary-bg); color: var(--primary-dark); }

/* ---- Filter Panel ---- */
.filter-panel {
  background: var(--bg-card);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  padding: 20px;
  margin-bottom: 24px;
}

.filter-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-color);
  flex-wrap: wrap;
}

.filter-row:last-child { border-bottom: none; }

.filter-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  min-width: 70px;
  flex-shrink: 0;
}

.filter-options {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.filter-chip {
  padding: 5px 14px;
  border-radius: 16px;
  font-size: 13px;
  color: var(--text-secondary);
  background: #f5f5f5;
  cursor: pointer;
  transition: var(--transition);
  border: 1.5px solid transparent;
}

.filter-chip:hover { background: #e8e8e8; }

.filter-chip.active {
  background: var(--primary-bg);
  color: var(--primary);
  border-color: var(--primary);
  font-weight: 500;
}

/* 省/市/区（县）三级联动筛选下拉 */
.region-selects {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.region-select {
  padding: 6px 10px;
  border: 1.5px solid var(--border-color);
  border-radius: 8px;
  font-size: 13px;
  color: var(--text-primary);
  background: #fff;
  min-width: 110px;
  cursor: pointer;
  transition: var(--transition);
}

.region-select:focus {
  outline: none;
  border-color: var(--primary);
}

.region-select:disabled {
  background: #f5f5f5;
  color: #aaa;
  cursor: not-allowed;
}

/* ---- Sort Bar ---- */
.sort-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.sort-tabs {
  display: flex;
  gap: 4px;
  background: white;
  border-radius: var(--border-radius-sm);
  padding: 4px;
  box-shadow: var(--shadow-sm);
}

.sort-tab {
  padding: 8px 18px;
  border-radius: 6px;
  font-size: 14px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  font-weight: 500;
}

.sort-tab:hover { color: var(--primary); }
.sort-tab.active {
  background: var(--primary);
  color: white;
}

.result-count {
  font-size: 14px;
  color: var(--text-secondary);
}

/* ---- Back to Top ---- */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-primary);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
  border: none;
  font-size: 20px;
}

.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover { transform: translateY(-3px); }

/* ---- Modal ---- */
.modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal-overlay.show { opacity: 1; visibility: visible; }

.modal-box {
  background: white;
  border-radius: var(--border-radius-lg);
  padding: 30px;
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  transform: translateY(20px);
  transition: var(--transition);
}

.modal-overlay.show .modal-box { transform: translateY(0); }

.modal-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 16px;
}

.modal-body { margin-bottom: 20px; color: var(--text-secondary); line-height: 1.8; }

.modal-footer {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-light);
  background: none;
  border: none;
  line-height: 1;
}

/* ---- Toast ---- */
.toast {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: var(--text-main);
  color: white;
  padding: 12px 24px;
  border-radius: var(--border-radius-sm);
  font-size: 14px;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 3000;
}

.toast.show { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }
.toast.warning { background: var(--warning); }

/* ---- Pagination ---- */
.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 30px;
  flex-wrap: wrap; /* 手机端页码较多时自动折行，避免横向溢出 */
}

.pagination button {
  min-width: 36px;
  height: 36px;
  border-radius: var(--border-radius-sm);
  border: 1.5px solid var(--border-color);
  background: white;
  color: var(--text-secondary);
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
  padding: 0 10px;
}

.pagination button:hover { border-color: var(--primary); color: var(--primary); }
.pagination button.active { background: var(--primary); color: white; border-color: var(--primary); }
.pagination button:disabled { opacity: 0.4; cursor: not-allowed; }

/* ---- Section Title ---- */
.section-title {
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 8px;
  color: var(--text-main);
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: 30px;
}

/* ---- Hero Section ---- */
.hero {
  background: linear-gradient(135deg, #e63976 0%, #f06292 40%, #ff8a65 100%);
  color: white;
  padding: 60px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%; right: -10%;
  width: 400px; height: 400px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%; left: -5%;
  width: 300px; height: 300px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 50%;
}

.hero-content { position: relative; z-index: 1; }

.hero h1 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 12px;
}

.hero p {
  font-size: 17px;
  opacity: 0.9;
  margin-bottom: 24px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 30px;
}

.hero-stat { text-align: center; }
.hero-stat .num { font-size: 28px; font-weight: 700; }
.hero-stat .label { font-size: 14px; opacity: 0.8; }

/* ---- Profile / Dashboard ---- */
.profile-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  margin-top: 30px;
}

.profile-sidebar {
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  padding: 20px;
  height: fit-content;
  position: sticky;
  top: 90px;
}

.profile-user {
  text-align: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 16px;
}

.profile-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin: 0 auto 12px;
}

.profile-user .name { font-size: 17px; font-weight: 600; }
.profile-user .uid { font-size: 13px; color: var(--text-light); }

.profile-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--border-radius-sm);
  color: var(--text-secondary);
  font-size: 15px;
  transition: var(--transition);
  margin-bottom: 4px;
  white-space: nowrap;
}

.profile-menu a:hover { background: var(--bg-hover); color: var(--text-main); }
.profile-menu a.active { background: var(--primary-bg); color: var(--primary); font-weight: 500; }

.profile-content {
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  padding: 30px;
}

/* ---- Admin Layout ---- */
.admin-layout {
  min-height: 100vh;
}

.admin-sidebar {
  background: #1e1e2d;
  color: #a2a5b9;
  padding: 0;
  position: fixed;
  width: 220px;
  height: 100vh;
  overflow-y: auto;
  z-index: 100;
}

.admin-sidebar .admin-logo {
  padding: 20px;
  color: white;
  font-size: 18px;
  font-weight: 700;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-nav { padding: 12px 0; }

.admin-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  color: #a2a5b9;
  font-size: 14px;
  transition: var(--transition);
}

.admin-nav a:hover { background: rgba(255, 255, 255, 0.05); color: white; }
.admin-nav a.active { background: var(--primary); color: white; }

.admin-main {
  margin-left: 220px;
  padding: 24px;
  background: var(--bg-page);
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.admin-header h1 { font-size: 22px; font-weight: 600; }

/* ---- Stats Cards ---- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.stat-card {
  background: white;
  border-radius: var(--border-radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 16px;
}

.stat-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: white;
}

.stat-info .num { font-size: 28px; font-weight: 700; color: var(--text-main); }
.stat-info .label { font-size: 14px; color: var(--text-secondary); }

/* ---- Table ---- */
.data-table {
  width: 100%;
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.data-table table { width: 100%; border-collapse: collapse; }

.data-table th {
  background: #f8f9fa;
  padding: 14px 16px;
  text-align: left;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  border-bottom: 2px solid var(--border-color);
  white-space: nowrap;
}

.data-table td {
  padding: 14px 16px;
  font-size: 14px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-main);
}

.data-table tr:hover td { background: var(--bg-hover); }

.table-actions { display: flex; gap: 6px; }

/* ---- About Page ---- */
.about-content {
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  padding: 40px;
  line-height: 2;
  font-size: 16px;
  color: var(--text-main);
}

.about-content h2 { font-size: 22px; margin: 24px 0 12px; color: var(--primary); }
.about-content h3 { font-size: 18px; margin: 20px 0 8px; color: var(--text-main); }
.about-content p { margin-bottom: 16px; }
.about-content ul { padding-left: 20px; margin-bottom: 16px; }
.about-content ol { padding-left: 20px; margin-bottom: 16px; }
.about-content li { margin-bottom: 8px; list-style: disc; }
.about-content ol li { list-style: decimal; }
.about-content strong { color: var(--primary); }

/* ---- Contact ---- */
.contact-card {
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  padding: 30px;
  text-align: center;
}

.contact-qr {
  width: 200px;
  height: 200px;
  margin: 20px auto;
  border-radius: var(--border-radius);
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed var(--border-color);
  overflow: hidden;
}

/* ---- Lightbox ---- */
.lightbox {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.lightbox.show { opacity: 1; visibility: visible; }

.lightbox img { max-width: 85%; max-height: 85vh; border-radius: 8px; }

.lightbox-close {
  position: absolute;
  top: 20px; right: 30px;
  font-size: 36px;
  color: white;
  cursor: pointer;
  background: none;
  border: none;
}

.lightbox-prev, .lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 40px;
  color: white;
  cursor: pointer;
  background: none;
  border: none;
  padding: 20px;
}

.lightbox-prev { left: 10px; }
.lightbox-next { right: 10px; }

/* ---- Empty State ---- */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-light);
}

.empty-state .icon { font-size: 60px; margin-bottom: 16px; }
.empty-state .text { font-size: 16px; }

/* ---- Guide Banner ---- */
.guide-banner {
  background: linear-gradient(135deg, #fff3e0, #fce4ec);
  border: 1.5px solid #ffcc80;
  border-radius: var(--border-radius);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.guide-banner .icon { font-size: 24px; }
.guide-banner .text { flex: 1; font-size: 15px; color: var(--text-main); }

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .nav-menu { display: none; }
  .guest-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .hero h1 { font-size: 26px; }
  .hero p { font-size: 15px; }
  .hero-stats { gap: 20px; }
  .profile-layout { grid-template-columns: 1fr; }
  .profile-sidebar { position: static; }
  .admin-sidebar { position: fixed; left: -220px; transition: left 0.3s; }
  .admin-sidebar.open { left: 0; }
  .admin-main { margin-left: 0; padding: 16px; }
  .auth-card { padding: 28px 20px; }
  .filter-row { flex-direction: column; align-items: flex-start; }
  .footer-content { flex-direction: column; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .container { padding: 0 12px; }
  .sort-bar { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .guest-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 22px; }
}

/* ---- Utility ---- */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-primary { color: var(--primary); }
.text-secondary { color: var(--text-secondary); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-10 { gap: 10px; }
.gap-20 { gap: 20px; }
.hidden { display: none !important; }
