/* ============================================
   红娘相亲系统 · 全局样式
   ============================================ */
:root {
  --primary: #d63a6b;
  --primary-dark: #b8325c;
  --primary-light: #fdeef3;
  --bg: #fff7f9;
  --card: #ffffff;
  --text: #333;
  --muted: #888;
  --line: #eee;
  --ok: #2e9e5b;
  --warn: #e6a23c;
  --danger: #d64545;
  --gold: #b8860b;
  --blue: #3a7bd5;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
a { color: var(--primary); text-decoration: none; }
a:hover { opacity: .85; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px; }

/* ---------- 顶部导航 ---------- */
.topbar { background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.06); position: sticky; top: 0; z-index: 99; }
.topbar-in { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { font-size: 20px; font-weight: 700; color: var(--primary); display: flex; align-items: center; gap: 6px; }
.brand-mark { display: inline-block; }
.brand-text { white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 18px; font-size: 15px; }
.nav-admin { color: var(--gold); font-weight: 600; }
.nav-user { color: var(--muted); font-size: 14px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-block; padding: 8px 18px; border: 1px solid #ddd; border-radius: 8px;
  background: #fff; color: var(--text); cursor: pointer; font-size: 14px; line-height: 1.4;
  transition: all .2s; text-align: center;
}
.btn:hover { border-color: var(--primary); color: var(--primary); }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }
.btn-outline { background: transparent; border-color: #fff; color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,.15); color: #fff; }
.btn-lg { padding: 12px 34px; font-size: 16px; border-radius: 30px; }
.btn-sm { padding: 4px 12px; font-size: 13px; border-radius: 6px; }
.btn-block { width: 100%; padding: 12px; font-size: 16px; }
.btn-ok { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn-ok:hover { background: #278a50; color: #fff; }
.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-danger:hover { background: #c03a3a; color: #fff; }

/* ---------- 宣传页 ---------- */
.hero {
  background: linear-gradient(135deg, #e8577f 0%, #d63a6b 55%, #b8325c 100%);
  color: #fff; text-align: center; padding: 90px 16px 100px;
}
.hero h1 { font-size: 40px; letter-spacing: 2px; margin-bottom: 18px; }
.hero-sub { font-size: 17px; opacity: .92; line-height: 1.8; }
.hero-actions { margin-top: 34px; display: flex; gap: 16px; justify-content: center; }
.section { padding: 56px 0; }
.section-alt { background: #fff; }
.section-title { text-align: center; font-size: 26px; margin-bottom: 36px; color: var(--primary-dark); }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card {
  background: var(--card); border-radius: 14px; padding: 26px 22px; text-align: center;
  box-shadow: 0 4px 16px rgba(214,58,107,.08); border: 1px solid var(--line);
}
.card-icon { font-size: 34px; margin-bottom: 10px; }
.card h3 { margin-bottom: 8px; color: var(--primary-dark); }
.card p { color: var(--muted); font-size: 14px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.step-num {
  display: inline-flex; width: 40px; height: 40px; border-radius: 50%;
  background: var(--primary); color: #fff; font-weight: 700; font-size: 18px;
  align-items: center; justify-content: center; margin-bottom: 10px;
}
.step h4 { margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 14px; }
.notice { background: var(--primary-light); border: 1px solid #f5c6d6; border-radius: 12px; padding: 22px 26px; }
.notice h3 { color: var(--primary-dark); margin-bottom: 8px; }
.notice p { font-size: 14px; color: #666; margin-bottom: 6px; }
.notice-sm { padding: 12px 16px; font-size: 13px; margin: 10px 0; }
.contact { text-align: center; font-size: 16px; line-height: 2.2; }
.contact-cta { margin-top: 18px; }
.footer { background: #3b2530; color: #d8c4cd; padding: 34px 0; text-align: center; font-size: 14px; line-height: 2; }
.footer .muted { color: #9b7f8c; font-size: 13px; }

/* ---------- 通用面板/表单 ---------- */
.panel {
  background: var(--card); border-radius: 14px; padding: 26px 28px; margin: 24px 0;
  box-shadow: 0 4px 16px rgba(214,58,107,.06); border: 1px solid var(--line);
}
.panel h2 { margin-bottom: 10px; color: var(--primary-dark); }
.panel h3 { margin-bottom: 10px; }
.panel-center { text-align: center; max-width: 560px; margin: 60px auto; }
.forbidden-icon { font-size: 44px; margin-bottom: 8px; }
.muted { color: var(--muted); font-size: 14px; }
.empty { text-align: center; color: var(--muted); padding: 40px 0; }

/* ---------- 线下活动 ---------- */
.activity-list { display: flex; flex-direction: column; gap: 14px; }
.activity-card {
  display: flex; justify-content: space-between; align-items: center;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px 18px; gap: 14px;
}
.activity-main { display: flex; gap: 16px; align-items: center; min-width: 0; }
.activity-date {
  flex: 0 0 auto; width: 66px; text-align: center;
  background: var(--primary-soft); border-radius: 10px; padding: 8px 0;
  color: var(--primary);
}
.activity-date strong { display: block; font-size: 22px; line-height: 1.1; }
.activity-date span { font-size: 12px; }
.activity-info { min-width: 0; }
.activity-info h3 { margin: 0 0 4px; font-size: 17px; }
.activity-info h3 a { color: var(--text); }
.activity-info h3 a:hover { color: var(--primary); }
.activity-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.activity-side { flex: 0 0 auto; }
.page-banner { margin-bottom: 18px; }
.page-banner h1 { margin: 0 0 6px; color: #fff; }
.page-banner p { margin: 0; color: rgba(255,255,255,.92); }

.act-detail .act-meta {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px; margin-bottom: 18px;
}
.act-meta-item {
  background: var(--primary-soft); border-radius: 10px; padding: 10px 14px;
}
.act-meta-item strong { display: block; font-size: 12px; color: var(--muted); margin-bottom: 2px; }
.act-meta-item span { font-size: 15px; color: var(--text); }
.act-intro { margin-bottom: 18px; }
.act-intro h3 { margin: 0 0 8px; font-size: 16px; color: var(--primary); }
.act-intro-text {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px 16px; line-height: 1.8; color: var(--text);
}
.act-actions { margin-bottom: 16px; }
.act-actions .btn-lg { width: 100%; padding: 12px; font-size: 16px; }
.inline-form { display: inline-flex; gap: 6px; margin: 0; }
.btn-ok { background: #e8f7ee; color: var(--success); border-color: #bfe5cd; }
.btn-danger { background: #fdeeee; color: var(--danger); border-color: #f0c4c4; }
.form-sec-title { margin: 20px 0 10px; color: var(--primary); }
.form-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px; margin-bottom: 18px;
}
.notice-sm { font-size: 13px; }

/* ---------- 富文本内容（前台活动介绍） ---------- */
.rich-content { line-height: 1.9; word-break: break-word; }
.rich-content img { max-width: 100%; height: auto; border-radius: 8px; margin: 8px 0; display: block; }
.rich-content a { color: var(--primary); text-decoration: underline; }
.rich-content ul, .rich-content ol { padding-left: 24px; margin: 8px 0; }
.rich-content blockquote {
  border-left: 3px solid var(--primary); background: var(--primary-soft);
  margin: 10px 0; padding: 8px 14px; color: var(--muted); border-radius: 0 6px 6px 0;
}
.rich-content h2, .rich-content h3, .rich-content h4 { color: var(--primary); margin: 14px 0 8px; }
.rich-content table { border-collapse: collapse; width: 100%; margin: 8px 0; }
.rich-content td, .rich-content th { border: 1px solid var(--border); padding: 6px 10px; }
.rich-content th { background: var(--primary-soft); }

/* ---------- 富文本编辑器与活动介绍 ---------- */
.hidden-input { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.rich-editor { background: #fff; border: 1px solid var(--border); border-radius: 8px; }
.rich-editor .w-e-toolbar { border-radius: 8px 8px 0 0; }
.rich-editor .w-e-text { min-height: 200px; padding: 8px 12px; }
.rich-editor .w-e-text img { max-width: 100%; height: auto; }
.act-intro-text img { max-width: 100%; height: auto; border-radius: 8px; margin: 6px 0; }
.act-intro-text h2, .act-intro-text h3, .act-intro-text h4 { margin: 10px 0 6px; color: var(--primary); }
.act-intro-text ul, .act-intro-text ol { margin: 6px 0 6px 22px; }
.act-intro-text blockquote {
  margin: 8px 0; padding: 6px 14px; border-left: 4px solid var(--primary);
  background: var(--primary-soft); color: var(--muted); border-radius: 0 8px 8px 0;
}
.act-intro-text a { color: var(--primary); }

@media (max-width: 640px) {
  .activity-card { flex-direction: column; align-items: stretch; text-align: center; }
  .activity-main { flex-direction: column; }
  .activity-side .btn { display: block; width: 100%; }
}
.flash { padding: 12px 16px; border-radius: 8px; margin: 12px 0; font-size: 14px; }
.flash-success { background: #e9f7ef; color: var(--ok); border: 1px solid #bfe6d0; }
.flash-error { background: #fdecec; color: var(--danger); border: 1px solid #f3c4c4; }

.auth-box { max-width: 420px; margin: 50px auto; background: #fff; border-radius: 14px; padding: 34px 34px 28px; box-shadow: 0 6px 24px rgba(214,58,107,.10); border: 1px solid var(--line); }
.auth-box h1 { text-align: center; color: var(--primary-dark); margin-bottom: 6px; }
.auth-tip { text-align: center; margin-top: 16px; font-size: 14px; }

label { display: block; margin: 12px 0 6px; font-size: 14px; color: #555; }
label i { color: var(--danger); font-style: normal; }
input[type="text"], input[type="password"], input[type="number"], input[type="tel"],
select, textarea {
  width: 100%; padding: 10px 12px; border: 1px solid #ddd; border-radius: 8px;
  font-size: 14px; background: #fff; color: var(--text); outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(214,58,107,.12); }
textarea { resize: vertical; }
.form-grid h3.form-sec-title { border-left: 4px solid var(--primary); padding-left: 10px; margin: 26px 0 14px; color: var(--primary-dark); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-item { margin-bottom: 4px; }
.form-actions { margin-top: 24px; text-align: center; }
.inline-inputs { display: flex; align-items: center; gap: 8px; }
.inline-inputs input { flex: 1; }
.inline-inputs span { color: var(--muted); }
.region-inputs select { flex: 1; }
.region-inputs input { flex: 1; }

/* ---------- 徽章 / 标签 ---------- */
.badge { display: inline-block; padding: 2px 10px; border-radius: 20px; font-size: 12px; margin-right: 4px; }
.badge-level { background: #fdf3d7; color: var(--gold); border: 1px solid #ecd9a0; }
.badge-ok { background: #e9f7ef; color: var(--ok); border: 1px solid #bfe6d0; }
.badge-warn { background: #fdf6ec; color: var(--warn); border: 1px solid #f0d9b0; }
.badge-danger { background: #fdecec; color: var(--danger); border: 1px solid #f3c4c4; }
.tag { display: inline-block; padding: 1px 8px; border-radius: 6px; background: #f2f2f7; color: #666; font-size: 12px; margin: 2px 3px 2px 0; }

/* ---------- 搜索栏 ---------- */
.search-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 16px 0; }
.search-bar select, .search-bar input[type="text"], .search-bar input[type="number"] { width: auto; min-width: 110px; }

/* ---------- 会员卡片 ---------- */
.member-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.member-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px; transition: all .2s; }
.member-card:hover { box-shadow: 0 6px 20px rgba(214,58,107,.12); transform: translateY(-2px); }
.member-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.avatar {
  width: 46px; height: 46px; border-radius: 50%; background: var(--primary-light);
  display: inline-flex; align-items: center; justify-content: center; font-size: 24px; flex-shrink: 0;
}
.avatar-lg { width: 64px; height: 64px; font-size: 34px; }
.avatar-img {
  width: 46px; height: 46px; border-radius: 50%; object-fit: cover;
  border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.12); flex-shrink: 0;
}
.avatar-img-lg {
  width: 64px; height: 64px; border-radius: 50%; object-fit: cover;
  border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.15); flex-shrink: 0;
}
.member-info p { font-size: 14px; color: #555; margin-bottom: 4px; }
.member-meta { margin: 8px 0; }
.member-actions { margin-top: 8px; }
.detail-head { display: flex; align-items: center; gap: 16px; margin-bottom: 8px; }
.detail-head h2 { margin: 0; }
.pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 22px; }
.pager-info { color: var(--muted); font-size: 14px; }

/* ---------- 信息表 ---------- */
.info-table { width: 100%; border-collapse: collapse; margin: 8px 0 16px; }
.info-table th { text-align: left; width: 110px; padding: 9px 10px; background: var(--primary-light); color: var(--primary-dark); font-size: 14px; font-weight: 600; border: 1px solid #f5c6d6; }
.info-table td { padding: 9px 10px; border: 1px solid var(--line); font-size: 14px; }

/* ---------- 后台 ---------- */
.tabs { display: flex; gap: 8px; margin-top: 12px; }
.tab { padding: 8px 20px; border-radius: 8px; border: 1px solid var(--line); font-size: 14px; color: var(--text); }
.tab-active { background: var(--primary); color: #fff; border-color: var(--primary); }
.table-wrap { overflow-x: auto; margin-top: 12px; }
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table th { background: var(--primary-light); color: var(--primary-dark); padding: 9px 8px; text-align: left; border: 1px solid #f5c6d6; white-space: nowrap; }
.data-table td { padding: 8px; border: 1px solid var(--line); vertical-align: middle; }
.data-table .actions { white-space: nowrap; }
.inline-form { display: inline-flex; gap: 4px; align-items: center; margin-right: 6px; }
.inline-form select, .inline-form input[type="text"] { width: auto; padding: 4px 6px; font-size: 12px; }
.tag-cell { max-width: 200px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.member-name { color: var(--primary); font-weight: 600; text-decoration: none; }
.member-name:hover { text-decoration: underline; }
.actions .btn { margin: 1px 0; }

/* ---------- 配对 ---------- */
.match-list { margin-top: 16px; }
.match-item { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-bottom: 12px; background: #fff; }
.match-main { display: flex; align-items: center; gap: 14px; }
.match-info { flex: 1; }
.match-info strong { font-size: 16px; }
.match-reasons { margin-top: 6px; }
.match-score { text-align: center; min-width: 90px; }
.match-score strong { font-size: 26px; color: var(--primary); }
.match-score span { color: var(--muted); font-size: 13px; }
.score-bar { height: 8px; background: var(--primary-light); border-radius: 4px; margin-top: 6px; overflow: hidden; }
.score-bar-fill { height: 100%; background: linear-gradient(90deg, #e8577f, var(--primary)); border-radius: 4px; }
.match-actions { margin-top: 10px; }
.panel-title-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.score-src { font-size: 11px; color: #a06; margin-top: 2px; }
td input[type="number"] { width: 64px; }
/* ---- 会员表格瘦身：次要列默认隐藏，红娘评分放大 ---- */
.col-extra { display: none; }
.show-extra .col-extra { display: table-cell; }
.table-ops { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 10px 0 8px; flex-wrap: wrap; }
input.score-input { width: 84px !important; font-size: 17px !important; font-weight: 700; text-align: center; padding: 5px 4px !important; border: 1.5px solid #f0c4d6 !important; border-radius: 6px; background: #fffafc; }
input.score-input:focus { border-color: var(--primary) !important; outline: none; }
/* ---- 极致化：头像、图标操作、固定操作列、密度 ---- */
.mini-avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; display: inline-block; vertical-align: middle; margin-right: 6px; border: 2px solid #f6d9e5; }
.mini-avatar-txt { background: linear-gradient(135deg, #ff8ab3, #ff5f9e); color: #fff; font-weight: 700; font-size: 15px; text-align: center; line-height: 30px; }
.act-inline { display: inline-flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.act-icons { display: inline-flex; gap: 2px; align-items: center; margin-left: 6px; }
.btn-icon, .btn-icon-danger { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 8px; border: 1px solid #f0c4d6; background: #fff; font-size: 15px; cursor: pointer; text-decoration: none; transition: all .15s; }
.btn-icon:hover { background: #ffe3ee; transform: translateY(-1px); }
.btn-icon-danger { border-color: #f5b8c9; color: #d0457a; }
.btn-icon-danger:hover { background: #ffe3ee; }
th.actions, td.actions { position: sticky; right: 0; background: #fff; z-index: 2; box-shadow: -8px 0 10px -8px rgba(208,69,122,.18); }
th.actions { background: #fff7fa; }
.data-table td { padding: 8px 7px; }
.tag-more { background: #f6d9e5; color: #a06; font-weight: 700; }
/* ---- 手机端：后台菜单横向滚动、配对搜索列表、富文本 v5 ---- */
.admin-tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; white-space: nowrap; flex-wrap: nowrap !important; scrollbar-width: none; }
.admin-tabs::-webkit-scrollbar { display: none; }
.admin-tabs .tab { flex: 0 0 auto; white-space: nowrap; }
.member-pick-list { max-height: 280px; overflow-y: auto; border: 1px solid #f0c4d6; border-radius: 10px; background: #fff; box-shadow: 0 4px 14px rgba(208,69,122,.08); }
.member-pick-item { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 11px 13px; border-bottom: 1px solid #fbeef4; cursor: pointer; font-size: 14px; }
.member-pick-item:last-child { border-bottom: 0; }
.member-pick-item:active, .member-pick-item:hover { background: #ffe3ee; }
.member-pick-item span { color: #a06; font-size: 12px; }
.member-pick-empty { padding: 14px; color: #a06; text-align: center; font-size: 13px; }
.rich-toolbar { border: 1px solid #f0c4d6; border-bottom: 0; border-radius: 10px 10px 0 0; overflow: hidden; background: #fff; }
.rich-editor { border: 1px solid #f0c4d6; border-radius: 0 0 10px 10px; min-height: 220px; background: #fff; z-index: 1; }
/* ---- 表格手机端横滑 ---- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
@media (max-width: 640px) {
  .table-scroll .sticky-act { position: static !important; right: auto !important; }
  .table-scroll th, .table-scroll td { white-space: nowrap; }
  /* 手机默认只显示：姓名 / 性别 / 地区 / 审核 / 会员级别；其余点"更多列"展开 */
  .table-scroll .col-id, .table-scroll .col-extra, .table-scroll .col-phone,
  .table-scroll .col-matchable, .table-scroll .col-score, .table-scroll .col-tags,
  .table-scroll .col-actions, .table-scroll .mini-avatar { display: none; }
  .table-scroll .col-region { max-width: 110px; overflow: hidden; text-overflow: ellipsis; }
  .table-scroll .data-table { min-width: 0; }
  body.show-extra .table-scroll .col-id, body.show-extra .table-scroll .col-extra,
  body.show-extra .table-scroll .col-phone, body.show-extra .table-scroll .col-matchable,
  body.show-extra .table-scroll .col-score, body.show-extra .table-scroll .col-tags,
  body.show-extra .table-scroll .col-actions { display: table-cell; }
  body.show-extra .table-scroll .mini-avatar { display: inline-block; }
  body.show-extra .table-scroll .data-table { min-width: 720px; }
}
.member-picker { display: grid; gap: 8px; flex: 1; min-width: 220px; }
.member-picker input[type="text"] { width: 100%; }
#memberFilter { border: 1px solid #f0c4d6; background: #fff; }
#memberFilter:focus { border-color: var(--primary); }
.match-save-form { display: flex; gap: 8px; align-items: center; margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line); }
.match-save-form input[type="text"] { flex: 1; min-width: 0; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .cards, .steps { grid-template-columns: repeat(2, 1fr); }
  .member-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .cards, .steps, .member-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero h1 { font-size: 28px; }
  .nav { gap: 10px; font-size: 14px; }
  .brand { font-size: 17px; }
}

/* ---------- 登记页 ---------- */
.page-banner {
  background: linear-gradient(135deg, #e8577f 0%, #d63a6b 55%, #b8325c 100%);
  color: #fff; border-radius: 14px; padding: 32px 24px 30px; margin: 24px 0 18px; text-align: center;
  box-shadow: 0 6px 20px rgba(214,58,107,.18);
}
.page-banner h1 { font-size: 26px; letter-spacing: 2px; }
.page-banner p { opacity: .92; margin-top: 6px; font-size: 14px; }
.page-steps { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 20px; font-size: 13px; flex-wrap: wrap; }
.page-steps .step { padding: 5px 16px; border-radius: 20px; background: rgba(255,255,255,.16); }
.page-steps .step.done { background: rgba(255,255,255,.34); }
.page-steps .step.active { background: #fff; color: var(--primary-dark); font-weight: 700; box-shadow: 0 2px 8px rgba(0,0,0,.14); }
.page-steps i { font-style: normal; opacity: .55; }

.status-bar { display: flex; flex-wrap: wrap; gap: 26px; padding: 14px 22px; margin-top: 0; align-items: center; }
.status-item { font-size: 14px; color: #555; display: flex; align-items: center; gap: 8px; }
.status-item strong { color: var(--text); font-weight: 600; }

.form-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 24px 26px; margin: 18px 0;
  box-shadow: 0 4px 16px rgba(214,58,107,.06);
}
.form-card-head { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; margin-bottom: 18px; border-bottom: 1px dashed #f0d3dc; }
.form-sec-num {
  width: 32px; height: 32px; border-radius: 50%; background: var(--primary); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 700; flex-shrink: 0;
}
.form-card-head h3 { margin: 0; color: var(--primary-dark); font-size: 18px; }
.form-card-tip { margin-left: auto; color: var(--muted); font-size: 12px; }
.form-card-tip i { color: var(--danger); font-style: normal; }

.form-submit-card { background: linear-gradient(180deg, #fff, #fff7f9); border-color: #f5c6d6; text-align: center; }
.form-note { color: var(--muted); font-size: 12px; margin-top: 12px; }

@media (max-width: 600px) {
  .page-banner { padding: 26px 16px 24px; }
  .page-banner h1 { font-size: 22px; }
  .page-steps { gap: 6px; }
  .page-steps .step { padding: 4px 10px; font-size: 12px; }
  .status-bar { gap: 14px; }
  .form-card { padding: 18px 16px; }
}

/* ---------- 站点设置 / 标签管理 / 兴趣标签 ---------- */
.brand-logo { height: 30px; max-width: 180px; vertical-align: middle; }
.logo-preview { height: 34px; vertical-align: middle; background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 2px 6px; }
.icon-preview { height: 24px; vertical-align: middle; }

.tag-checkbox-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.tag-checkbox {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border: 1px solid #f0d3dc; border-radius: 20px;
  background: #fff; font-size: 13px; color: #555; cursor: pointer; transition: all .15s;
}
.tag-checkbox:hover { border-color: var(--primary); color: var(--primary-dark); }
.tag-checkbox input { accent-color: var(--primary); }
.tag-checkbox:has(input:checked) { background: var(--primary-light); border-color: var(--primary); color: var(--primary-dark); font-weight: 600; }

.tag-add-form { display: flex; gap: 10px; margin: 14px 0; flex-wrap: wrap; }
.tag-add-form input { flex: 0 1 280px; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 10px; }
.tag-manage { display: inline-flex; align-items: center; gap: 4px; padding: 6px 12px; font-size: 13px; }
.tag-del-form { display: inline-flex; margin: 0; }
.tag-del-btn {
  border: none; background: transparent; color: #bbb; font-size: 15px; line-height: 1;
  cursor: pointer; padding: 0 2px; transition: color .15s;
}
.tag-del-btn:hover { color: var(--danger); }

@media (max-width: 600px) {
  .tag-checkbox-grid { gap: 8px; }
  .tag-checkbox { padding: 5px 11px; font-size: 12px; }
}

/* ===== 会员库搜索增强 / VIP 智能匹配 ===== */
.vip-toolbar { display: flex; align-items: center; gap: 12px; margin: 10px 0 16px; flex-wrap: wrap; }
.vip-toolbar .btn-primary { text-decoration: none; }

.vip-lock {
  max-width: 480px; margin: 26px auto; padding: 34px 30px; text-align: center;
  background: linear-gradient(135deg, #fff5f8, #ffeef4); border: 1px dashed var(--primary);
  border-radius: 16px;
}
.vip-lock-icon { font-size: 46px; margin-bottom: 10px; }
.vip-lock h3 { color: var(--primary-dark); margin: 0 0 10px; }
.vip-lock p { color: #555; margin: 8px 0; }

.badge-vip {
  background: linear-gradient(135deg, #f7c948, #f5a623); color: #fff;
  font-weight: 700; border-radius: 999px; padding: 3px 10px; font-size: 12px; vertical-align: middle;
}

.req-summary {
  background: var(--primary-light); border: 1px solid var(--primary); color: var(--primary-dark);
  padding: 10px 14px; border-radius: 10px; margin: 12px 0 18px; font-size: 14px; line-height: 1.6;
}

.score-badge {
  margin-left: auto; flex-shrink: 0;
  background: linear-gradient(135deg, #ff5a8a, var(--primary)); color: #fff;
  font-weight: 700; font-size: 13px; border-radius: 999px; padding: 3px 11px; box-shadow: 0 2px 6px rgba(214,58,107,.25);
}

.match-reasons { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.tag-reason {
  background: #fff; border: 1px solid #f3c1d3; color: var(--primary-dark);
  font-size: 12px; border-radius: 999px; padding: 2px 9px;
}

/* ===== 为他人匹配：会员选择列表 ===== */
.pick-list { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.pick-row {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px;
  background: #fff; border: 1px solid #f0e2e8; border-radius: 12px; transition: box-shadow .15s;
}
.pick-row:hover { box-shadow: 0 3px 10px rgba(214, 58, 107, .10); }
.pick-info { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.pick-row .btn { text-decoration: none; flex-shrink: 0; }

/* ===== 相亲广场 / 消息中心 / 照片上传 ===== */

/* ===== 登录验证码 / 免登录 ===== */
.captcha-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.captcha-q {
  background: #fff0f6;
  border: 1px dashed #f2a6c0;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 16px;
  font-weight: 700;
  color: #b0375f;
  letter-spacing: 1px;
  white-space: nowrap;
}
.captcha-row input {
  flex: 1;
  min-width: 0;
}
.remember-line {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 4px 0 16px;
  font-size: 13px;
  color: #8a5a6a;
  cursor: pointer;
}
.remember-line input {
  width: auto;
}

/* ===== 后台批量审核 / 会员导入 ===== */
.batch-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  background: #fff5f8;
  border: 1px dashed #f2a6c0;
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 12px;
}
.batch-check {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
  color: #b0375f;
  cursor: pointer;
}
.import-actions {
  margin: 14px 0 6px;
}
.import-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.import-form textarea {
  width: 100%;
  border: 1px solid #e8c4d0;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.6;
  background: #fffdfe;
}
.import-errors .flash {
  margin-bottom: 6px;
}
.pair-list { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.pair-row {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px;
  background: #fff; border: 1px solid #f0e2e8; border-radius: 12px;
}
.pair-info { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.pair-actions { display: flex; gap: 8px; flex-shrink: 0; flex-wrap: wrap; }
.pair-row .btn { text-decoration: none; }

.notice-list { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.notice-row {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px;
  background: #fff; border: 1px solid #f0e2e8; border-radius: 12px;
}
.notice-content { flex: 1; display: flex; align-items: center; gap: 8px; font-size: 14px; }
.notice-unread { background: #fff5f8; border-color: #f3c1d3; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); flex-shrink: 0; }

.btn-paired {
  background: #eef7ef; border-color: #b7ddbf; color: #2e7d43; font-weight: 600;
}
.btn-paired:hover { background: #e2f1e5; }

.nav-badge {
  display: inline-block; min-width: 17px; height: 17px; line-height: 17px; padding: 0 4px;
  border-radius: 999px; background: var(--danger); color: #fff; font-size: 11px; text-align: center; font-weight: 700;
}

.photo-upload { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.photo-upload-preview { flex-shrink: 0; }
.photo-preview {
  width: 96px; height: 96px; border-radius: 50%; object-fit: cover;
  border: 3px solid var(--primary-light); box-shadow: 0 2px 8px rgba(214,58,107,.18);
}
.photo-upload-input { flex: 1; min-width: 200px; }
.photo-upload-input input[type="file"] { padding: 8px; border: 1px dashed #f3c1d3; border-radius: 10px; background: #fff; width: 100%; }
.photo-upload-input .muted { margin-top: 8px; font-size: 12px; }

/* ===== 多张形象照片 ===== */
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 12px; }
.photo-grid-item { position: relative; }
.photo-thumb {
  width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: 12px;
  border: 1px solid #f0e2e8; box-shadow: 0 2px 6px rgba(0,0,0,.08); display: block;
}
.photo-main-badge {
  position: absolute; top: 8px; left: 8px; background: var(--primary); color: #fff;
  font-size: 11px; padding: 2px 8px; border-radius: 999px; z-index: 1;
}
.photo-del { position: absolute; right: 8px; bottom: 8px; z-index: 1; background: rgba(255,255,255,.92); }
.photo-view { cursor: zoom-in; }

/* 大图查看遮罩 */
.photo-lightbox {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,.78); z-index: 999;
  align-items: center; justify-content: center; padding: 24px; cursor: zoom-out;
}
.photo-lightbox.open { display: flex; }
.photo-lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 10px; box-shadow: 0 8px 40px rgba(0,0,0,.5); }

/* ===== 移动端导航折叠（汉堡菜单） ===== */
.nav-toggle {
  display: none; background: none; border: 1px solid #f3c1d3; border-radius: 8px;
  width: 40px; height: 36px; font-size: 20px; line-height: 1; color: var(--primary);
  cursor: pointer; align-items: center; justify-content: center; flex-shrink: 0;
}
.nav-toggle:hover { background: var(--primary-light); }

/* ===== 适屏优化 ===== */
@media (max-width: 768px) {
  .nav-toggle { display: inline-flex; }
  .topbar { position: relative; }
  .nav {
    display: none; position: absolute; top: 60px; left: 0; right: 0; z-index: 98;
    background: #fff; flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 16px 12px; box-shadow: 0 8px 20px rgba(0,0,0,.12);
    border-top: 1px solid #f7e6ec;
  }
  .nav.open { display: flex; }
  .nav a { display: block; padding: 11px 6px; border-bottom: 1px solid #faf0f4; }
  .nav a.btn { text-align: center; margin-top: 8px; }
  .nav-user { padding: 10px 6px; border-bottom: 1px solid #faf0f4; }

  /* 搜索条纵向 */
  .search-bar { flex-direction: column; align-items: stretch; }
  .search-bar .inline-inputs { width: 100%; }

  /* 列表/详情卡片 */
  .pair-row, .notice-row { flex-wrap: wrap; }
  .pair-actions { width: 100%; justify-content: flex-end; }
  .detail-head { flex-wrap: wrap; }

  /* 表格横滚 */
  .table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .table-scroll table { min-width: 640px; }
  .info-table th, .info-table td { padding: 8px 8px; font-size: 13px; }

  /* 分页与操作 */
  .pager { flex-wrap: wrap; }
  .page-banner { padding: 22px 14px; }
  .page-banner h1 { font-size: 21px; }
  .status-bar { flex-wrap: wrap; gap: 8px; }
  .inline-inputs { flex-wrap: wrap; }
  .form-actions { flex-direction: column; align-items: stretch; }
  .vip-toolbar { flex-direction: column; align-items: flex-start; gap: 6px; }
}
@media (max-width: 480px) {
  .photo-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .member-actions { flex-wrap: wrap; }
  .brand-text { font-size: 15px; }
}

