/* 心动有约 · 演示样式（浅色暖调主题） */
:root {
  --rose: #d9536f;
  --rose-dark: #b93d59;
  --rose-soft: #fbe9ed;
  --rose-lighter: #fff4f6;
  --ink: #352a30;
  --ink-2: #6b5b62;
  --ink-3: #9b8b91;
  --line: #efe4e7;
  --paper: #ffffff;
  --cream: #fdf8f6;
  --green: #3f9a72;
  --green-soft: #e8f6ef;
  --amber: #c98634;
  --amber-soft: #fff4e3;
  --danger: #cf4b5c;
  --shadow-sm: 0 4px 18px rgba(91, 54, 68, .06);
  --shadow-md: 0 14px 40px rgba(91, 54, 68, .10);
  --shadow-lg: 0 24px 70px rgba(64, 34, 45, .20);
  --radius: 18px;
  --font: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Source Han Sans SC", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }

/* ---------- 通用按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: 999px; padding: 11px 22px;
  font-size: 14px; font-weight: 600; line-height: 1.2; transition: .2s ease;
  background: transparent; color: var(--ink); white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; flex: none; }
.btn-primary { background: var(--rose); color: #fff; box-shadow: 0 6px 18px rgba(217, 83, 111, .24); }
.btn-primary:hover { background: var(--rose-dark); transform: translateY(-1px); }
.btn-ghost { background: #fff; color: var(--rose); border-color: #f3cdd6; }
.btn-ghost:hover { background: var(--rose-lighter); }
.btn-light { background: rgba(255,255,255,.94); color: var(--rose-dark); }
.btn-light:hover { background: #fff; transform: translateY(-1px); }
.btn-outline { background: #fff; border-color: var(--line); color: var(--ink-2); }
.btn-outline:hover { border-color: #e5b9c5; color: var(--rose); }
.btn-danger { background: #fff; border-color: #f3d2d7; color: var(--danger); }
.btn-danger:hover { background: #fff2f4; }
.btn-sm { padding: 7px 13px; font-size: 12.5px; }
.btn-block { width: 100%; }
.link-btn { border: 0; background: none; color: var(--rose); font-size: 13px; font-weight: 600; padding: 4px 6px; }
.link-btn:hover { text-decoration: underline; }
.link-btn.danger { color: var(--danger); }
.link-btn.muted { color: var(--ink-3); }

/* ---------- 前台：页头 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,.92); backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(239,228,231,.9);
}
.header-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  height: 72px; display: flex; align-items: center; gap: 36px;
}
.brand { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 800; letter-spacing: .5px; color: var(--rose-dark); }
.brand-mark {
  width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, #e36a84, #c94061); color: #fff; box-shadow: 0 5px 14px rgba(201,64,97,.25);
}
.brand-mark svg { width: 21px; height: 21px; }
.main-nav { display: flex; align-items: center; gap: 30px; flex: 1; }
.main-nav a { font-size: 14px; color: var(--ink-2); font-weight: 500; padding: 24px 0; position: relative; }
.main-nav a:hover, .main-nav a.active { color: var(--rose); }
.main-nav a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 14px; height: 2px;
  background: var(--rose); border-radius: 2px;
}
.header-actions { display: flex; align-items: center; gap: 12px; }
.fav-chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px;
  border-radius: 999px; background: var(--rose-lighter); color: var(--rose-dark); font-size: 13px; font-weight: 600;
  border: 1px solid #f7dce2;
}
.fav-chip svg { width: 15px; height: 15px; }

/* ---------- 前台：Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(125deg, #fff5f6 0%, #fde9ee 48%, #f9e3e6 100%);
  border-bottom: 1px solid #f6dfe4;
}
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; pointer-events: none;
}
.hero::before { width: 480px; height: 480px; right: -120px; top: -190px; background: rgba(255,255,255,.42); }
.hero::after { width: 300px; height: 300px; left: -110px; bottom: -190px; background: rgba(230,140,165,.13); }
.hero-inner {
  max-width: 1200px; margin: 0 auto; padding: 70px 24px 62px;
  display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 40px; position: relative; z-index: 1;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px;
  border: 1px solid #efc4cf; background: rgba(255,255,255,.7); border-radius: 999px;
  color: var(--rose-dark); font-size: 12.5px; font-weight: 700; letter-spacing: 1px;
}
.hero-eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--rose); }
.hero h1 {
  font-size: clamp(36px, 4.6vw, 56px); line-height: 1.25; margin: 20px 0 16px;
  letter-spacing: -1px; font-weight: 800; color: #3b2a31;
}
.hero h1 em { font-style: normal; color: var(--rose); }
.hero-sub { font-size: 16px; line-height: 1.9; color: var(--ink-2); max-width: 540px; margin: 0 0 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 36px; margin-top: 44px; }
.hero-stats .num { font-size: 27px; font-weight: 800; color: var(--rose-dark); line-height: 1; }
.hero-stats .label { font-size: 12.5px; color: var(--ink-3); margin-top: 8px; }
.hero-art { display: flex; justify-content: center; position: relative; }
.hero-art-card {
  width: 100%; max-width: 390px; background: rgba(255,255,255,.78); border: 1px solid rgba(255,255,255,.9);
  border-radius: 28px; padding: 20px; box-shadow: 0 24px 60px rgba(176,90,116,.16); backdrop-filter: blur(8px);
  transform: rotate(2deg);
}
.hero-art-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hero-art-cell { border-radius: 18px; overflow: hidden; background: #fff; position: relative; }
.hero-art-cell img { width: 100%; aspect-ratio: 1/1.08; object-fit: cover; }
.hero-art-cell span {
  position: absolute; left: 8px; bottom: 8px; background: rgba(255,255,255,.92); color: var(--ink);
  font-size: 11px; padding: 4px 9px; border-radius: 999px; font-weight: 600;
}
.hero-art-note {
  margin-top: 14px; display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-2);
  padding: 10px 12px; background: #fff; border-radius: 12px;
}
.hero-art-note svg { width: 15px; height: 15px; color: var(--rose); flex: none; }
.float-heart {
  position: absolute; width: 46px; height: 46px; border-radius: 14px; background: #fff;
  display: grid; place-items: center; box-shadow: var(--shadow-md); color: var(--rose);
}
.float-heart svg { width: 24px; height: 24px; }
.float-heart.one { top: -18px; right: 12px; transform: rotate(12deg); }
.float-heart.two { bottom: 14px; left: -22px; transform: rotate(-14deg); }

/* ---------- 前台：内容区 ---------- */
.section { max-width: 1200px; margin: 0 auto; padding: 58px 24px 76px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.eyebrow { color: var(--rose); font-size: 12px; font-weight: 800; letter-spacing: 2px; margin-bottom: 8px; }
.section-title { margin: 0; font-size: 28px; font-weight: 800; letter-spacing: -.5px; }
.section-desc { margin: 9px 0 0; font-size: 13.5px; color: var(--ink-3); }

/* 筛选栏 */
.filter-bar {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; box-shadow: var(--shadow-sm); margin-bottom: 20px;
}
.filter-row { display: flex; flex-wrap: wrap; gap: 12px 14px; align-items: flex-end; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 130px; flex: 1 1 140px; }
.field.narrow { flex: 0 1 118px; min-width: 104px; }
.field.grow { flex: 2 1 220px; }
.field > label { font-size: 12px; color: var(--ink-3); font-weight: 600; }
.input, .select, .textarea {
  width: 100%; border: 1px solid #e9dde1; background: #fff; color: var(--ink);
  border-radius: 10px; padding: 10px 12px; font-size: 13.5px; outline: none; transition: .18s;
}
.input:focus, .select:focus, .textarea:focus { border-color: var(--rose); box-shadow: 0 0 0 3px rgba(217,83,111,.10); }
.input::placeholder, .textarea::placeholder { color: #bcafb4; }
.select { appearance: none; background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239b8b91' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; background-size: 15px; padding-right: 30px; }
.textarea { min-height: 78px; resize: vertical; line-height: 1.6; }
.filter-actions { display: flex; gap: 8px; align-items: center; }
.results-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; gap: 12px; flex-wrap: wrap; }
.result-count { font-size: 13px; color: var(--ink-2); }
.result-count b { color: var(--rose-dark); font-size: 16px; }
.segmented { display: inline-flex; background: #f5edef; border-radius: 999px; padding: 3px; gap: 2px; }
.segmented button {
  border: 0; background: transparent; border-radius: 999px; padding: 7px 16px;
  font-size: 12.5px; color: var(--ink-2); font-weight: 600;
}
.segmented button.active { background: #fff; color: var(--rose-dark); box-shadow: var(--shadow-sm); }

/* 会员卡片 */
.member-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.member-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: .24s ease; display: flex; flex-direction: column;
}
.member-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: #f0cbd4; }
.card-photo { position: relative; background: #f8eef0; }
.card-photo img { width: 100%; aspect-ratio: 1 / 1.06; object-fit: cover; }
.card-badge {
  position: absolute; top: 12px; left: 12px; background: rgba(255,255,255,.94); color: var(--rose-dark);
  font-size: 11px; font-weight: 700; padding: 5px 10px; border-radius: 999px; box-shadow: var(--shadow-sm);
}
.fav-btn {
  position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border-radius: 50%;
  border: 0; background: rgba(255,255,255,.9); display: grid; place-items: center; color: #b7a4ab;
  box-shadow: var(--shadow-sm); transition: .2s;
}
.fav-btn svg { width: 17px; height: 17px; }
.fav-btn:hover { color: var(--rose); transform: scale(1.08); }
.fav-btn.on { color: var(--rose); background: #fff; }
.fav-btn.on svg { fill: currentColor; }
.card-body { padding: 16px 17px 17px; flex: 1; display: flex; flex-direction: column; }
.card-name { display: flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 800; }
.card-name .age { font-size: 13px; color: var(--ink-3); font-weight: 500; }
.card-meta { margin-top: 7px; font-size: 12.5px; color: var(--ink-2); line-height: 1.65; }
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.tag { font-size: 11px; color: var(--rose-dark); background: var(--rose-lighter); border-radius: 999px; padding: 4px 9px; }
.card-footer { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line); display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.card-footer .btn { flex: 1; }
.card-footer .mini-note { font-size: 11px; color: var(--ink-3); }
.empty-state {
  grid-column: 1/-1; background: #fff; border: 1px dashed #e6d4da; border-radius: var(--radius);
  padding: 60px 20px; text-align: center; color: var(--ink-3);
}
.empty-state svg { width: 42px; height: 42px; color: #e4b9c4; margin: 0 auto 14px; }
.empty-state h3 { margin: 0 0 8px; color: var(--ink); font-size: 17px; }
.empty-state p { margin: 0; font-size: 13px; }

/* 服务说明 */
.info-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 46px; }
.info-tile { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
.info-tile .ico { width: 38px; height: 38px; border-radius: 12px; background: var(--rose-lighter); color: var(--rose); display: grid; place-items: center; margin-bottom: 14px; }
.info-tile .ico svg { width: 20px; height: 20px; }
.info-tile h4 { margin: 0 0 7px; font-size: 15px; }
.info-tile p { margin: 0; font-size: 12.5px; line-height: 1.8; color: var(--ink-2); }

.site-footer { background: #fff; border-top: 1px solid var(--line); padding: 30px 24px; text-align: center; color: var(--ink-3); font-size: 12.5px; }
.site-footer .footer-brand { color: var(--rose-dark); font-weight: 800; font-size: 15px; margin-bottom: 8px; }
.site-footer p { margin: 4px 0; }

/* ---------- 弹窗 ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 100; background: rgba(46, 28, 35, .48);
  backdrop-filter: blur(3px); display: flex; align-items: center; justify-content: center;
  padding: 24px; animation: fadeIn .18s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: #fff; border-radius: 22px; box-shadow: var(--shadow-lg); width: 100%; max-width: 620px;
  max-height: min(90vh, 900px); display: flex; flex-direction: column; overflow: hidden; animation: popIn .2s ease;
}
@keyframes popIn { from { transform: translateY(12px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
.modal.wide { max-width: 820px; }
.modal.narrow { max-width: 460px; }
.modal-header { padding: 20px 24px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.modal-header h3 { margin: 0; font-size: 18px; }
.modal-header p { margin: 4px 0 0; font-size: 12px; color: var(--ink-3); }
.close-btn { border: 0; background: #f7f1f3; color: var(--ink-2); width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.close-btn:hover { background: var(--rose-lighter); color: var(--rose); }
.close-btn svg { width: 16px; height: 16px; }
.modal-body { padding: 22px 24px; overflow-y: auto; }
.modal-footer { padding: 16px 24px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 10px; background: #fffdfd; }

/* 资料详情 */
.detail-top { display: flex; gap: 20px; align-items: center; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.detail-avatar { width: 112px; height: 112px; border-radius: 18px; object-fit: cover; flex: none; background: #f8eef0; }
.detail-top h2 { margin: 0 0 6px; font-size: 25px; }
.detail-top .detail-sub { color: var(--ink-2); font-size: 13.5px; line-height: 1.8; }
.detail-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.detail-chips span { background: var(--rose-lighter); color: var(--rose-dark); border-radius: 999px; font-size: 11.5px; padding: 5px 10px; }
.detail-section { margin-top: 22px; }
.detail-section h4 { font-size: 14px; margin: 0 0 12px; display: flex; align-items: center; gap: 8px; }
.detail-section h4::before { content: ""; width: 3px; height: 14px; border-radius: 3px; background: var(--rose); }
.info-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px 10px; }
.info-grid .info-item { background: var(--cream); border-radius: 10px; padding: 10px 12px; }
.info-grid .info-label { font-size: 11px; color: var(--ink-3); }
.info-grid .info-value { font-size: 13px; font-weight: 600; margin-top: 4px; }
.detail-text { font-size: 13.5px; line-height: 1.9; color: var(--ink-2); margin: 0; background: var(--cream); padding: 14px 16px; border-radius: 12px; }
.privacy-note {
  margin-top: 20px; display: flex; gap: 11px; align-items: flex-start;
  background: var(--green-soft); border: 1px solid #d5ecdf; color: #356b53;
  border-radius: 12px; padding: 13px 15px; font-size: 12.5px; line-height: 1.75;
}
.privacy-note svg { width: 17px; height: 17px; flex: none; margin-top: 2px; }
.privacy-note b { display: block; margin-bottom: 2px; }

/* 表单 */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.form-grid .full { grid-column: 1 / -1; }
.form-group label { display: block; font-size: 12.5px; color: var(--ink-2); font-weight: 600; margin-bottom: 7px; }
.form-group label .req { color: var(--danger); margin-left: 3px; }
.form-group .hint { font-size: 11px; color: var(--ink-3); margin-top: 6px; line-height: 1.5; }
.form-divider { grid-column: 1/-1; display: flex; align-items: center; gap: 10px; margin: 4px 0 0; font-size: 12px; font-weight: 700; color: var(--rose-dark); }
.form-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.secret-box { grid-column: 1/-1; background: #fbf7f8; border: 1px dashed #e6cfd6; border-radius: 12px; padding: 14px 16px 16px; }
.secret-box .secret-title { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--rose-dark); font-weight: 700; margin-bottom: 12px; }
.secret-box .secret-title svg { width: 15px; height: 15px; }
.form-error { color: var(--danger); font-size: 12px; margin-top: 12px; min-height: 16px; }

/* ---------- Toast ---------- */
.toast-wrap { position: fixed; right: 24px; top: 88px; z-index: 200; display: flex; flex-direction: column; gap: 10px; }
.toast {
  background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--green);
  box-shadow: var(--shadow-md); border-radius: 12px; padding: 12px 18px; font-size: 13px;
  min-width: 230px; animation: slideIn .22s ease;
}
.toast.error { border-left-color: var(--danger); }
@keyframes slideIn { from { transform: translateX(20px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- 后台 ---------- */
.login-page {
  min-height: 100vh; display: grid; place-items: center; padding: 24px;
  background: radial-gradient(circle at 15% 15%, #fde4ea 0, transparent 42%), radial-gradient(circle at 85% 85%, #e8e2f7 0, transparent 45%), var(--cream);
}
.login-card {
  width: 100%; max-width: 860px; background: #fff; border-radius: 24px; overflow: hidden;
  display: grid; grid-template-columns: .9fr 1.1fr; box-shadow: var(--shadow-lg);
}
.login-side {
  background: linear-gradient(150deg, #d9536f, #b13a58); color: #fff; padding: 46px 38px; position: relative; overflow: hidden;
}
.login-side::after { content: ""; position: absolute; width: 280px; height: 280px; border-radius: 50%; border: 40px solid rgba(255,255,255,.10); right: -130px; bottom: -120px; }
.login-side .brand { color: #fff; margin-bottom: 44px; }
.login-side .brand-mark { background: rgba(255,255,255,.18); box-shadow: none; }
.login-side h2 { font-size: 28px; line-height: 1.5; margin: 0 0 14px; }
.login-side p { font-size: 13.5px; line-height: 1.9; opacity: .88; }
.login-feature { margin-top: 30px; display: flex; flex-direction: column; gap: 13px; font-size: 13px; position: relative; z-index: 1; }
.login-feature span { display: flex; align-items: center; gap: 9px; }
.login-feature svg { width: 16px; height: 16px; flex: none; }
.login-form { padding: 50px 46px; }
.login-form h3 { margin: 0 0 6px; font-size: 22px; }
.login-form > p { margin: 0 0 28px; color: var(--ink-3); font-size: 13px; }
.login-form .form-group { margin-bottom: 16px; }
.demo-tip { margin-top: 22px; border-radius: 12px; background: var(--amber-soft); color: #8a6126; padding: 12px 14px; font-size: 12px; line-height: 1.7; }
.demo-tip b { color: #6f4a12; }

.admin-app { min-height: 100vh; display: flex; background: #f7f3f4; }
.admin-sidebar { width: 232px; flex: none; background: #fff; border-right: 1px solid var(--line); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.admin-sidebar .brand { padding: 22px 22px; border-bottom: 1px solid var(--line); }
.admin-nav { padding: 18px 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.admin-nav button {
  display: flex; align-items: center; gap: 11px; width: 100%; text-align: left;
  border: 0; background: transparent; padding: 11px 13px; border-radius: 11px;
  font-size: 13.5px; color: var(--ink-2); font-weight: 600;
}
.admin-nav button svg { width: 18px; height: 18px; flex: none; }
.admin-nav button:hover { background: var(--rose-lighter); color: var(--rose-dark); }
.admin-nav button.active { background: var(--rose-lighter); color: var(--rose-dark); }
.admin-nav .nav-count { margin-left: auto; font-size: 11px; background: var(--rose); color: #fff; border-radius: 999px; padding: 2px 7px; }
.sidebar-foot { padding: 16px; border-top: 1px solid var(--line); }
.sidebar-foot .demo-label { font-size: 11px; color: var(--ink-3); line-height: 1.6; }
.admin-main { flex: 1; min-width: 0; }
.admin-topbar {
  height: 70px; background: #fff; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; padding: 0 30px; gap: 16px;
}
.topbar-title { font-size: 16px; font-weight: 800; }
.topbar-sub { font-size: 12px; color: var(--ink-3); margin-top: 3px; }
.admin-user { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--ink-2); }
.avatar-circle { width: 34px; height: 34px; border-radius: 50%; background: var(--rose-lighter); color: var(--rose-dark); display: grid; place-items: center; font-weight: 800; }
.admin-content { padding: 28px 30px 60px; max-width: 1360px; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head h2 { margin: 0; font-size: 22px; }
.page-head p { margin: 6px 0 0; font-size: 12.5px; color: var(--ink-3); }
.head-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 22px; }
.stat-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 19px 20px; box-shadow: var(--shadow-sm); }
.stat-card .top { display: flex; justify-content: space-between; align-items: center; }
.stat-card .label { font-size: 12.5px; color: var(--ink-3); }
.stat-card .ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--rose-lighter); color: var(--rose); }
.stat-card .ico svg { width: 17px; height: 17px; }
.stat-card .value { font-size: 30px; font-weight: 800; margin-top: 12px; line-height: 1; }
.stat-card .foot { font-size: 11.5px; color: var(--ink-3); margin-top: 9px; }
.stat-card.green .ico { background: var(--green-soft); color: var(--green); }
.stat-card.amber .ico { background: var(--amber-soft); color: var(--amber); }
.stat-card.blue .ico { background: #e9f1fb; color: #4d80b8; }

.panel { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-sm); margin-bottom: 20px; overflow: hidden; }
.panel-head { padding: 17px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.panel-head h3 { margin: 0; font-size: 15px; }
.panel-head p { margin: 5px 0 0; font-size: 12px; color: var(--ink-3); }
.panel-body { padding: 20px; }
.panel-tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.panel-tools .input, .panel-tools .select { width: auto; min-width: 130px; }
.table-wrap { overflow-x: auto; }
table.data-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 900px; }
.data-table th { text-align: left; font-size: 11.5px; color: var(--ink-3); font-weight: 700; padding: 12px 14px; background: #fbf7f8; white-space: nowrap; }
.data-table td { padding: 13px 14px; border-top: 1px solid #f3ecee; vertical-align: middle; white-space: nowrap; }
.data-table tbody tr:hover { background: #fffafb; }
.person-cell { display: flex; align-items: center; gap: 10px; }
.person-cell img { width: 38px; height: 38px; border-radius: 10px; object-fit: cover; background: #f8eef0; }
.pname { font-weight: 700; }
.pid { font-size: 11px; color: var(--ink-3); }
.person-cell .pid { margin-top: 2px; }
.badge { display: inline-block; border-radius: 999px; padding: 4px 9px; font-size: 11px; font-weight: 700; }
.badge.green { background: var(--green-soft); color: var(--green); }
.badge.gray { background: #f0edee; color: var(--ink-3); }
.badge.rose { background: var(--rose-lighter); color: var(--rose-dark); }
.badge.amber { background: var(--amber-soft); color: var(--amber); }
.secret-cell { display: flex; flex-direction: column; gap: 3px; }
.secret-cell .line { font-size: 12px; color: var(--ink-2); }
.secret-cell .line.masked { letter-spacing: 1px; color: var(--ink-3); }
.secret-tag { font-size: 10px; color: var(--rose); }
.actions { display: flex; gap: 4px; align-items: center; }
.table-foot { padding: 13px 20px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-3); display: flex; justify-content: space-between; }
.contact-toggle { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--ink-2); cursor: pointer; }
.contact-toggle input { accent-color: var(--rose); }

.photo-upload { display: flex; align-items: center; gap: 14px; }
.photo-preview { width: 76px; height: 76px; border-radius: 14px; object-fit: cover; border: 1px solid var(--line); background: #f8eef0; flex: none; }
.photo-upload .upload-info { font-size: 11.5px; color: var(--ink-3); line-height: 1.6; }
.photo-upload .upload-info b { display: block; font-size: 12.5px; color: var(--ink); margin-bottom: 3px; }
.no-image-note { font-size: 11px; color: var(--amber); margin-top: 6px; }
.notice-box { background: var(--rose-lighter); border-radius: 12px; padding: 14px 16px; font-size: 12.5px; color: var(--ink-2); line-height: 1.8; margin-bottom: 18px; }
.notice-box b { color: var(--rose-dark); }

@media (max-width: 1050px) {
  .member-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-inner { grid-template-columns: 1fr; padding-top: 50px; }
  .hero-art { display: none; }
  .stat-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .main-nav { display: none; }
  .header-inner { padding: 0 16px; }
  .member-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .info-strip { grid-template-columns: 1fr; }
  .section { padding: 42px 16px 60px; }
  .filter-bar { padding: 14px; }
  .admin-sidebar { width: 68px; }
  .admin-sidebar .brand span, .admin-nav button span, .sidebar-foot { display: none; }
  .admin-sidebar .brand { justify-content: center; padding: 18px 0; }
  .admin-nav button { justify-content: center; padding: 12px 0; }
  .admin-nav .nav-count { display: none; }
  .admin-content { padding: 20px 16px 50px; }
  .admin-topbar { padding: 0 16px; }
  .form-grid { grid-template-columns: 1fr; }
  .login-card { grid-template-columns: 1fr; }
  .login-side { display: none; }
  .login-form { padding: 36px 26px; }
}
@media (max-width: 480px) {
  .member-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 20px; }
  .info-grid { grid-template-columns: repeat(2, 1fr); }
}
