/* ==========================================================
   心叙 · 全球华人婚恋匹配站  样式表
   配色：柔和玫瑰 + 香槟金 + 奶油底（婚恋氛围、风控友好、干净高级）
   ========================================================== */

:root {
  --rose: #c4898f;
  --rose-deep: #a86a72;
  --rose-soft: #f6e6e6;
  --rose-mist: #fbf1f0;
  --gold: #c6a57a;
  --cream: #fdf9f6;
  --paper: #ffffff;
  --ink: #3b3336;
  --muted: #8b7e82;
  --faint: #b3a6a9;
  --line: #ece0dd;
  --green: #7ba58a;
  --green-soft: #eaf3ed;
  --amber: #b98a4a;
  --amber-soft: #fbf3e6;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 12px 34px rgba(176, 138, 138, 0.13);
  --shadow-lg: 0 22px 56px rgba(150, 110, 112, 0.18);
  --serif: "Noto Serif TC", "Songti TC", "Source Han Serif", "PingFang TC",
    "Microsoft YaHei", Georgia, serif;
  --sans: "PingFang SC", "PingFang TC", "Hiragino Sans", "Microsoft YaHei",
    "Noto Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
  overflow-wrap: break-word;
}

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; margin: 0; line-height: 1.35; letter-spacing: 0.2px; }
p { margin: 0 0 12px; }
a { color: var(--rose-deep); text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; font-size: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 15px; color: var(--ink); }

.wrap { width: min(1120px, 92vw); margin: 0 auto; }
.section { padding: 78px 0; }
.section--tint { background: linear-gradient(180deg, var(--rose-mist), #fffaf8); }
.section--paper { background: var(--paper); }

.eyebrow {
  font-size: 13px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--rose); font-weight: 600; margin-bottom: 10px;
}
.section-title { font-size: clamp(24px, 3.4vw, 34px); margin-bottom: 12px; }
.section-sub { color: var(--muted); max-width: 640px; margin: 0 auto; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.hidden { display: none !important; }

/* ---------------- 顶部导航 ---------------- */
.topbar {
  position: sticky; top: 0; z-index: 60;
  background: rgba(253, 249, 246, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand__mark {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--rose), var(--gold));
  display: grid; place-items: center; color: #fff; font-family: var(--serif); font-size: 17px;
  box-shadow: 0 6px 16px rgba(196, 137, 143, 0.35);
}
.brand__name { font-family: var(--serif); font-size: 19px; font-weight: 600; letter-spacing: 1px; }
.brand__sub { font-size: 11px; color: var(--faint); letter-spacing: 2px; }
.nav { display: flex; align-items: center; gap: 24px; }
.nav a { color: var(--muted); font-size: 15px; }
.nav a:hover { color: var(--rose-deep); }

.lang { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: #fff; }
.lang button {
  border: 0; background: transparent; padding: 7px 13px; font-size: 13px; color: var(--muted);
  transition: 0.2s;
}
.lang button.is-active { background: var(--rose); color: #fff; }
.lang button:hover:not(.is-active) { background: var(--rose-soft); color: var(--rose-deep); }

.nav__toggle { display: none; border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 6px 10px; }

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 999px; padding: 14px 30px; font-size: 16px; font-weight: 600;
  transition: transform 0.18s, box-shadow 0.18s, background 0.18s; white-space: nowrap;
}
.btn--primary { background: linear-gradient(135deg, var(--rose), var(--rose-deep)); color: #fff; box-shadow: 0 10px 24px rgba(168, 106, 114, 0.32); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(168, 106, 114, 0.4); }
.btn--ghost { background: #fff; color: var(--rose-deep); border: 1px solid #e6cfd1; }
.btn--ghost:hover { background: var(--rose-mist); transform: translateY(-2px); }
.btn--line { background: #06c755; color: #fff; box-shadow: 0 10px 24px rgba(6, 199, 85, 0.3); }
.btn--line:hover { transform: translateY(-2px); }
.btn--sm { padding: 9px 18px; font-size: 14px; }
.btn--block { width: 100%; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; box-shadow: none; }
.btn .spinner {
  width: 15px; height: 15px; border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: #fff; border-radius: 50%; animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------- 首屏 ---------------- */
.hero {
  position: relative; overflow: hidden; padding: 92px 0 84px;
  background:
    radial-gradient(1100px 480px at 12% -10%, #fbe7e6 0%, rgba(251, 231, 230, 0) 62%),
    radial-gradient(900px 460px at 92% 6%, #f7ead9 0%, rgba(247, 234, 217, 0) 60%),
    linear-gradient(180deg, #fffaf8, var(--cream));
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(196, 137, 143, 0.09) 1px, transparent 1px);
  background-size: 26px 26px; opacity: 0.7;
}
.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(30px, 4.6vw, 50px); margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--rose-deep); }
.hero__lead { font-size: 17px; color: #6d6165; max-width: 520px; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; margin: 26px 0 22px; }
.hero__points { display: flex; flex-wrap: wrap; gap: 10px 22px; padding: 0; margin: 0; list-style: none; color: var(--muted); font-size: 14px; }
.hero__points li::before { content: "✓"; color: var(--green); font-weight: 700; margin-right: 7px; }

.hero__card {
  background: #fff; border-radius: 26px; padding: 26px; box-shadow: var(--shadow-lg);
  border: 1px solid #f4e8e6;
}
.hero__card h3 { font-size: 17px; margin-bottom: 6px; }
.hero__card .small { display: block; margin-bottom: 18px; }
.mini-field { margin-bottom: 13px; }
.mini-field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.mini-field input, .mini-field select {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 12px; background: #fffdfc;
}
.mini-field input:focus, .mini-field select:focus { outline: none; border-color: var(--rose); box-shadow: 0 0 0 3px rgba(196, 137, 143, 0.14); }
.mini-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ---------------- 流程 ---------------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 44px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; position: relative; }
.step__num {
  font-family: var(--serif); font-size: 15px; color: var(--rose-deep); font-weight: 700;
  width: 38px; height: 38px; border-radius: 50%; background: var(--rose-soft);
  display: grid; place-items: center; margin-bottom: 16px;
}
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15px; margin: 0; }

/* ---------------- 匹配区 ---------------- */
.match-panel { display: grid; grid-template-columns: 340px 1fr; gap: 30px; margin-top: 40px; align-items: start; }
.panel-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.panel-card h3 { font-size: 17px; margin-bottom: 18px; }

.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.field .req { color: var(--rose-deep); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px;
  background: #fffdfc; transition: 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--rose); box-shadow: 0 0 0 3px rgba(196, 137, 143, 0.14); background: #fff;
}
.field textarea { resize: vertical; min-height: 92px; }
/* 原生文件选择框在手机浏览器里会按内部宽度裁切文字，单独收窄内边距并限制字号 */
.field input[type="file"] { padding: 8px 10px; font-size: 13px; background: #fffdfc; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field-row--3 { grid-template-columns: repeat(3, 1fr); }

.results__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.results__head h3 { font-size: 18px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); animation: rise 0.45s ease both; display: flex; flex-direction: column;
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.card__photo { position: relative; aspect-ratio: 4 / 3.4; background: var(--rose-mist); overflow: hidden; }
.card__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 15%; }
.card__thumbs { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 18px 0; }
.card__thumbs img {
  width: 46px; height: 46px; object-fit: cover; object-position: center 15%; border-radius: 8px;
  cursor: pointer; border: 2px solid transparent; opacity: .75;
  transition: opacity .15s ease, border-color .15s ease;
}
.card__thumbs img:hover { opacity: 1; }
.card__thumbs img.is-active { border-color: var(--rose); opacity: 1; }
.card__badge {
  position: absolute; left: 12px; top: 12px; background: rgba(255, 255, 255, 0.94);
  color: var(--rose-deep); font-size: 12px; font-weight: 600; padding: 5px 11px; border-radius: 999px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.card__badge--gold { color: var(--amber); }
.card__body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card__title { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.card__title h4 { font-size: 17px; }
.card__meta { color: var(--muted); font-size: 13.5px; display: flex; flex-wrap: wrap; gap: 6px 12px; }
.card__tags { display: flex; flex-wrap: wrap; gap: 7px; }
.tag { background: var(--rose-mist); color: #9c6b72; font-size: 12.5px; padding: 4px 11px; border-radius: 999px; }
.tag--plain { background: #f5f2f0; color: var(--muted); }
.card__intro { font-size: 14px; color: #6d6165; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card__foot { margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--line); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.score { font-size: 12.5px; color: var(--green); font-weight: 600; }

.skeleton { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.skeleton__box { height: 190px; background: linear-gradient(90deg, #f6eeec 25%, #fbf5f3 37%, #f6eeec 63%); background-size: 400% 100%; animation: shimmer 1.3s ease infinite; }
.skeleton__line { height: 13px; margin: 14px 18px; border-radius: 6px; background: linear-gradient(90deg, #f6eeec 25%, #fbf5f3 37%, #f6eeec 63%); background-size: 400% 100%; animation: shimmer 1.3s ease infinite; }
.skeleton__line--short { width: 55%; }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }

.empty { text-align: center; padding: 58px 24px; border: 1px dashed var(--line); border-radius: var(--radius); background: #fffdfc; }
.empty__icon { font-size: 30px; margin-bottom: 10px; }
.empty h4 { margin-bottom: 6px; }
.empty p { color: var(--muted); max-width: 420px; margin: 0 auto 16px; }

.notice {
  display: flex; gap: 10px; align-items: flex-start; padding: 13px 16px; border-radius: var(--radius-sm);
  font-size: 13.5px; margin-top: 16px;
}
.notice--info { background: #f5f1f7; color: #6c5f79; }
.notice--warn { background: var(--amber-soft); color: var(--amber); }
.notice--ok { background: var(--green-soft); color: #4d7a60; }

/* ---------------- 表单 ---------------- */
.form-shell { background: #fff; border: 1px solid var(--line); border-radius: 26px; padding: 38px; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.form-grid .field--full { grid-column: 1 / -1; }
.form-grid .field--half { grid-column: span 2; }
.consent { display: flex; gap: 10px; align-items: flex-start; margin: 22px 0 6px; font-size: 14px; color: var(--muted); }
.consent input { margin-top: 5px; width: 17px; height: 17px; accent-color: var(--rose); flex: none; }
.form-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 24px; }
.form-msg { font-size: 14px; }
.form-msg--err { color: #c0563f; }
.form-msg--ok { color: #4d7a60; }
.field.is-invalid input, .field.is-invalid select,
.mini-field.is-invalid input, .mini-field.is-invalid select { border-color: #d98573; background: #fff7f5; }

/* ---------------- 提交成功 ---------------- */
.success { text-align: center; padding: 46px 30px; }
.success__icon {
  width: 66px; height: 66px; border-radius: 50%; background: var(--green-soft); color: var(--green);
  display: grid; place-items: center; font-size: 30px; margin: 0 auto 18px;
}
.success__icon--warn { background: #fdeaea; color: #c0563f; }
.success h3 { font-size: 22px; margin-bottom: 8px; }
.success__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }

/* ---------------- 隐私 / FAQ ---------------- */
.privacy-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 34px; }
.privacy-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.privacy-item h4 { font-size: 16px; margin-bottom: 8px; }
.privacy-item p { font-size: 14px; color: var(--muted); margin: 0; }

.faq { max-width: 780px; margin: 34px auto 0; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%; text-align: left; background: none; border: 0; padding: 20px 34px 20px 0;
  font-family: var(--serif); font-size: 17px; color: var(--ink); position: relative;
}
.faq__q::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); color: var(--rose); font-size: 20px; transition: 0.2s; }
.faq__item.is-open .faq__q::after { content: "–"; }
.faq__a { max-height: 0; overflow: hidden; transition: max-height 0.28s ease; }
.faq__a p { padding: 0 30px 20px 0; color: var(--muted); font-size: 15px; }
.faq__item.is-open .faq__a { max-height: 320px; }

/* ---------------- 页脚 / 悬浮 ---------------- */
.footer { background: #fff; border-top: 1px solid var(--line); padding: 46px 0 34px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; }
.footer h4 { font-size: 15px; margin-bottom: 12px; }
.footer p, .footer a { color: var(--muted); font-size: 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 8px; }
.footer__bottom { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--faint); display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }

/* 右下角免费咨询：容器 + 渠道菜单（LINE / WhatsApp 皆可） */
.float-consult { position: fixed; right: 20px; bottom: 20px; z-index: 70; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.float-line {
  background: var(--rose); color: #fff; border: 0; border-radius: 999px; padding: 13px 22px; font-weight: 600;
  box-shadow: 0 12px 28px rgba(196, 137, 143, 0.4); display: inline-flex; align-items: center; gap: 9px;
  cursor: pointer; font-size: 15px;
}
.float-line:hover { transform: translateY(-2px); }
.consult-menu { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.consult-item {
  background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 999px;
  padding: 10px 20px; font-size: 14px; font-weight: 600; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  text-decoration: none;
}
.consult-item:hover { border-color: var(--rose); color: var(--rose-deep); }

/* ==========================================================
   后台 admin
   ========================================================== */
.admin-body { background: #f7f4f2; }
.admin-shell { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }
.side { background: #fff; border-right: 1px solid var(--line); padding: 24px 16px; position: sticky; top: 0; height: 100vh; }
.side__brand { display: flex; align-items: center; gap: 10px; padding: 0 8px 20px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.side__nav { display: flex; flex-direction: column; gap: 4px; }
.side__nav button {
  text-align: left; border: 0; background: transparent; padding: 11px 14px; border-radius: 11px;
  color: var(--muted); font-size: 15px;
}
.side__nav button:hover { background: var(--rose-mist); color: var(--rose-deep); }
.side__nav button.is-active { background: var(--rose); color: #fff; }
.side__foot { margin-top: 20px; padding: 14px; background: var(--rose-mist); border-radius: 12px; font-size: 12.5px; color: #8a6d72; }
.side__foot .side__note { display: block; }

.admin-main { padding: 28px 34px 60px; min-width: 0; }
.admin-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.admin-head h1 { font-size: 24px; }
.admin-head .small { display: block; margin-top: 4px; }

.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 26px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px 20px; }
.stat b { font-family: var(--serif); font-size: 26px; display: block; }
.stat span { font-size: 13px; color: var(--muted); }

.admin-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; margin-bottom: 24px; }
.admin-card > h3 { font-size: 17px; margin-bottom: 6px; }
.admin-card > .small { display: block; margin-bottom: 20px; }
.toolbar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }

.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th { color: var(--muted); font-weight: 600; font-size: 13px; white-space: nowrap; }
.table tbody tr:hover { background: #fffaf9; }
.table .thumb { width: 46px; height: 46px; border-radius: 10px; object-fit: cover; background: var(--rose-mist); }
.table__actions { display: flex; gap: 6px; }
.icon-btn { border: 1px solid var(--line); background: #fff; border-radius: 9px; padding: 5px 11px; font-size: 13px; color: var(--muted); }
.icon-btn:hover { border-color: var(--rose); color: var(--rose-deep); }
.icon-btn--danger:hover { border-color: #d98573; color: #c0563f; }
.icon-btn--ok:hover { border-color: #8fbfa4; color: #4d7a60; }
.icon-btn--warn:hover { border-color: #d9b06a; color: var(--amber); }

.pill { font-size: 12px; padding: 3px 10px; border-radius: 999px; display: inline-block; }
.pill--high { background: var(--green-soft); color: #4d7a60; }
.pill--normal { background: #f2f0ee; color: var(--muted); }
.pill--paused { background: var(--amber-soft); color: var(--amber); }
.pill--danger { background: #fdeaea; color: #c0563f; }

.photo-picker { display: grid; grid-template-columns: 132px 1fr; gap: 16px; align-items: start; }
.photo-picker__preview {
  width: 132px; height: 158px; border-radius: 14px; border: 1px dashed var(--line);
  background: var(--rose-mist); object-fit: cover; display: block;
}
.photo-picker__preview--empty { display: grid; place-items: center; color: var(--faint); font-size: 12px; text-align: center; }

/* 后台：会员生活照多图选择器（最多 6 张，第 1 张为封面） */
.photo-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.photo-tile {
  position: relative; width: 104px; height: 132px; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--line); background: var(--rose-mist);
}
.photo-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-tile[draggable="true"] { cursor: grab; }
.photo-tile[draggable="true"]:active { cursor: grabbing; }
.photo-tile.is-dragging { opacity: .45; }
.photo-tile.is-drop { border-color: var(--rose); box-shadow: 0 0 0 2px rgba(200, 120, 130, .38); }
.photo-tile--cover { border-color: var(--rose); box-shadow: 0 0 0 2px rgba(200, 120, 130, 0.16); }
.photo-tile__badge {
  position: absolute; left: 0; top: 0; background: rgba(255, 255, 255, 0.94); color: var(--rose-deep);
  font-size: 11px; font-weight: 600; padding: 2px 8px; border-bottom-right-radius: 8px;
}
.photo-tile__del {
  position: absolute; right: 4px; top: 4px; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(0, 0, 0, 0.45); color: #fff; font-size: 14px; line-height: 1; cursor: pointer;
  display: grid; place-items: center;
}
.photo-tile__del:hover { background: #c0563f; }
.photo-tile--add {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  border: 1px dashed var(--line); background: #fffdfc; color: var(--muted); cursor: pointer;
  font-size: 20px; line-height: 1;
}
.photo-tile--add span { font-size: 12px; }
.photo-tile--add:hover { border-color: var(--rose); color: var(--rose-deep); }
.photo-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 12px; }
.photo-actions input[type="text"] { flex: 1; min-width: 200px; }
.thumb-wrap { position: relative; display: inline-block; }
.thumb-count {
  position: absolute; right: -6px; bottom: -6px; background: var(--rose-deep); color: #fff;
  font-size: 11px; line-height: 1; padding: 3px 6px; border-radius: 999px;
}
.tag-input { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: #fffdfc; }
.tag-input input { border: 0; outline: none; flex: 1; min-width: 120px; background: transparent; padding: 4px; }
.tag-chip { background: var(--rose-mist); color: #9c6b72; border-radius: 999px; padding: 4px 8px 4px 12px; font-size: 12.5px; display: inline-flex; gap: 6px; align-items: center; }
.tag-chip button { border: 0; background: transparent; color: #b98a92; cursor: pointer; font-size: 13px; line-height: 1; }

.admin-form-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.admin-form-grid .field--full { grid-column: 1 / -1; }
.editor { border-top: 1px dashed var(--line); margin-top: 22px; padding-top: 24px; }

.toast {
  position: fixed; left: 50%; bottom: 32px; transform: translateX(-50%) translateY(20px);
  background: #3b3336; color: #fff; padding: 12px 22px; border-radius: 999px; font-size: 14px;
  opacity: 0; pointer-events: none; transition: 0.25s; z-index: 200;
}
.toast.is-show { opacity: 1; transform: translateX(-50%); }
.toast--err { background: #b8533c; }

.meter { height: 8px; border-radius: 999px; background: #efe9e7; overflow: hidden; margin-top: 8px; }
.meter i { display: block; height: 100%; background: linear-gradient(90deg, var(--rose), var(--gold)); }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .match-panel { grid-template-columns: 1fr; }
  .privacy-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .admin-form-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-shell { grid-template-columns: 1fr; }
  .side { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .side__nav { flex-direction: row; flex-wrap: wrap; }
}

@media (max-width: 780px) {
  body { font-size: 15px; }
  .wrap { width: min(1120px, 94vw); }
  .nav { position: absolute; top: 68px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 0; display: none; }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 22px; border-bottom: 1px solid var(--line); }
  .nav__toggle { display: inline-block; }
  .topbar__inner { position: relative; }
  .section { padding: 48px 0; }
  .hero { padding: 48px 0 52px; }
  .hero__cta { gap: 10px; }
  .hero__cta .btn { width: 100%; }
  .hero__card { padding: 22px 18px; }
  .section-title { font-size: clamp(22px, 5.4vw, 28px); }
  .section-sub { font-size: 14.5px; }
  .steps { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .panel-card { padding: 20px 16px; }
  .card__body { padding: 15px 16px 17px; }
  .results__head h3 { font-size: 17px; }
  .faq__q { font-size: 16px; padding: 16px 30px 16px 0; }
  .faq__item.is-open .faq__a { max-height: 760px; }
  .form-shell { padding: 24px 18px; }
  .form-grid, .admin-form-grid { grid-template-columns: 1fr; }
  .form-grid .field--half { grid-column: 1 / -1; }
  .field-row, .field-row--3 { grid-template-columns: 1fr; }
  .form-actions { gap: 10px; }
  .form-actions .btn { width: 100%; }
  .privacy-grid { grid-template-columns: 1fr; }
  .success { padding: 36px 18px; }
  .success__actions { gap: 10px; }
  .success__actions .btn { width: 100%; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer { padding: 36px 0 84px; }
  .toast { max-width: calc(100vw - 28px); padding: 11px 18px; font-size: 13.5px; text-align: center; }
  .admin-main { padding: 20px 16px 50px; }
  .photo-picker { grid-template-columns: 1fr; }
  .photo-picker__preview { width: 100%; max-width: 168px; }
  .card__thumbs { padding: 10px 16px 0; }
  .card__thumbs img { width: 42px; height: 42px; }
  .photo-tile { width: 92px; height: 118px; }
  .photo-actions { gap: 8px; }
  .photo-actions .btn { flex: 1; }
  .photo-actions input[type="text"] { min-width: 0; flex: 1 0 100%; order: 2; }
  .float-consult { right: 14px; bottom: 14px; }
  .float-line { padding: 12px 18px; font-size: 14px; }
  .table { font-size: 13px; min-width: 620px; }
  .table th:nth-child(4), .table td:nth-child(4),
  .table th:nth-child(6), .table td:nth-child(6) { display: none; }

  /* 后台：顶栏改为紧凑横向导航，避免挤成一团 */
  .side { padding: 16px 12px; min-width: 0; }
  .side__brand { padding: 0 4px 12px; margin-bottom: 10px; }
  .side__nav { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 4px; }
  .side__nav button { flex: none; white-space: nowrap; padding: 9px 14px; font-size: 14px; }
  .side__foot { margin-top: 12px; padding: 10px 12px; }
  .side__foot .side__note { display: none; }
  .side__foot .side__logout { width: auto; margin-top: 0; padding: 7px 16px; }
  .admin-head { gap: 12px; margin-bottom: 18px; }
  .admin-head h1 { font-size: 20px; }
  .admin-card { padding: 18px 16px; }
  .stat-row { gap: 12px; }
  .stat { padding: 15px 16px; }
  .stat b { font-size: 22px; }
  .login-box { padding: 28px 22px 24px; }
}

/* 手机窄屏：进一步收紧，避免文字挤压换行 */
@media (max-width: 520px) {
  .brand__sub { display: none; }
  .lang button { padding: 6px 10px; font-size: 12.5px; }
  .nav__toggle { padding: 6px 9px; }
  .hero h1 { font-size: 26px; }
  .mini-row { grid-template-columns: 1fr; }
  .side__nav button { padding: 8px 12px; font-size: 13.5px; }
  .icon-btn { padding: 5px 9px; }
  .photo-tile { width: 82px; height: 104px; }
  .photo-grid { gap: 9px; }
}

/* ==========================================================
   H5 App 壳（前台）：固定顶栏 + 视图区 + 底部 Tab
   一屏一人竖向滑动 / 免费额度 / 资料解锁
   ========================================================== */
html { height: 100%; }

body.h5 {
  height: 100%;
  overflow: hidden;
  background: #efe7e4;
  font-size: 15px;
  line-height: 1.6;
}

.app {
  position: relative;
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--cream);
  overflow: hidden;
}

@media (min-width: 520px) {
  .app { box-shadow: 0 0 70px rgba(150, 110, 112, 0.18); }
}

/* ---------------- 顶栏 ---------------- */
.appbar {
  flex: none;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 14px;
  background: rgba(253, 249, 246, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  z-index: 20;
}
.appbar__brand { display: flex; align-items: center; gap: 8px; min-width: 0; }
.appbar__mark {
  width: 30px; height: 30px; border-radius: 50%; flex: none;
  display: grid; place-items: center; color: #fff;
  font-family: var(--serif); font-size: 15px;
  background: linear-gradient(135deg, var(--rose), var(--gold));
  box-shadow: 0 5px 14px rgba(196, 137, 143, 0.34);
}
.appbar__name {
  font-family: var(--serif); font-size: 17px; font-weight: 600; letter-spacing: 1px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.lang--sm button { padding: 5px 9px; font-size: 12px; }

/* ---------------- 视图区 ---------------- */
.app-main { flex: 1; min-height: 0; position: relative; }

.view {
  display: none;
  height: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding-bottom: 26px;
}
.view.is-active { display: block; }
.view--feed { padding-bottom: 0; overflow: hidden; }

/* ---------------- 推荐卡流（一屏一人） ---------------- */
.deck {
  height: 100%;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  scrollbar-width: none;
}
.deck::-webkit-scrollbar { display: none; }
.deck__loading {
  height: 100%; display: grid; place-items: center; text-align: center;
  color: var(--muted); font-size: 14px; padding: 0 34px;
}

.pcard {
  height: 100%;
  padding: 10px 12px 62px;   /* 底部留白：给额度提示胶囊让位，避免压住简介文字 */
  display: flex;
  flex-direction: column;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  overflow: hidden;
}
.pcard__media {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(160deg, var(--rose-mist), #efe3e1);
  box-shadow: var(--shadow);
}
.pcard__slider {
  display: flex;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.pcard__slider::-webkit-scrollbar { display: none; }
.pcard__slider--empty { background: linear-gradient(160deg, var(--rose-soft), #f0e2e0); }
.pcard__img {
  flex: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
  scroll-snap-align: center;
}
.pcard__dots {
  position: absolute; left: 0; right: 0; bottom: 10px;
  display: flex; gap: 5px; justify-content: center;
  pointer-events: none;
}
.pcard__dots i {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.28);
  transition: 0.2s;
}
.pcard__dots i.is-active { width: 16px; border-radius: 999px; background: #fff; }
.pcard__like {
  position: absolute; right: 12px; bottom: 12px;
  width: 46px; height: 46px; padding: 0; border: 0; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 22px; line-height: 1;
  background: rgba(255, 255, 255, 0.94);
  color: var(--rose);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
}
.pcard__like.is-on { background: linear-gradient(135deg, #ff90a2, #e4566f); color: #fff; }

.pcard__body { flex: none; padding: 12px 4px 0; }
.pcard__name { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pcard__name h3 { font-size: 20px; }
.pcard__intro {
  margin: 9px 0 0; font-size: 13.5px; color: var(--muted);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* 互相喜欢：卡片内展示的对方联系方式 */
.pcard__mutual {
  margin-top: 12px; padding: 12px 14px; border-radius: 16px;
  background: linear-gradient(135deg, var(--rose-soft), #ffe9ec);
  border: 1px solid #f3cfd5;
}
.mutual__head { font-size: 13px; font-weight: 700; color: var(--rose-deep); margin-bottom: 8px; }
.mutual__row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mutual__label {
  font-size: 11.5px; font-weight: 600; padding: 2px 9px; border-radius: 999px;
  background: #fff; color: var(--rose-deep); border: 1px solid #f0cdd3;
}
.mutual__value { font-size: 14px; font-weight: 600; color: var(--ink); word-break: break-all; }
.mutual__copy {
  margin-left: auto; border: 0; border-radius: 999px; padding: 5px 14px;
  font-size: 12.5px; font-weight: 600; color: #fff; cursor: pointer;
  background: linear-gradient(135deg, var(--rose), var(--rose-deep));
}
.mutual__copy:hover { transform: translateY(-1px); }

.vbadge {
  font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px;
  background: #e8f0fb; color: #3f6ea8; border: 1px solid #d5e3f7; white-space: nowrap;
}

.chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 9px; }
.chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 5px 11px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line);
  font-size: 12.5px; color: #6d6165; white-space: nowrap;
}
.chip i { font-style: normal; font-size: 12px; }
.chip--rose {
  background: linear-gradient(135deg, #ffdbe2, #ffc3cc);
  border-color: #ffc3cc; color: #a8434f; font-weight: 600;
}

.pcard--locked { padding-bottom: 62px; }
.lock-card {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 34px 24px;
  border-radius: 22px; border: 1px dashed #e8cfd2;
  background: linear-gradient(180deg, #fff, var(--rose-mist));
}
.lock-overlay__ico { font-size: 40px; margin-bottom: 14px; }
.lock-card h3 { font-size: 20px; margin-bottom: 10px; }
.lock-card p { color: var(--muted); font-size: 14px; margin-bottom: 22px; max-width: 300px; }

.deck-hint {
  position: absolute; left: 50%; transform: translateX(-50%);
  bottom: 78px; z-index: 15; pointer-events: none; white-space: nowrap;
  background: rgba(59, 51, 54, 0.84); color: #fff;
  font-size: 12.5px; padding: 7px 16px; border-radius: 999px;
}
.deck-hint.hint--ok { background: rgba(77, 122, 96, 0.9); }

/* ---------------- 底部 Tab ---------------- */
.tabbar {
  flex: none;
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: #fff; border-top: 1px solid var(--line);
  padding: 6px 0 max(6px, env(safe-area-inset-bottom));
}
.tab {
  border: 0; background: transparent; padding: 4px 0;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  color: var(--faint);
}
.tab__ico { font-size: 19px; line-height: 1.1; }
.tab__label { font-size: 11px; }
.tab.is-active { color: var(--rose-deep); }
.tab.is-active .tab__label { font-weight: 600; }

/* ---------------- 通用内边距 / 标题 ---------------- */
.pad { padding: 18px 16px; }
.pad--top0 { padding-top: 0; }
.pad-x { padding: 0 16px; }
.view-title { font-size: 22px; margin-bottom: 6px; }
.view-sub { margin: 0 0 4px; color: var(--muted); font-size: 13.5px; }

.panel {
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  padding: 18px 16px; margin: 0 16px 16px; box-shadow: var(--shadow);
}
.panel__title { font-size: 15px; margin-bottom: 12px; }
.panel .form-grid { grid-template-columns: 1fr; gap: 13px; }
.panel .form-grid .field--half { grid-column: 1 / -1; }

/* ---------------- 额度 ---------------- */
.quota {
  margin: 0 16px 14px; padding: 12px 16px; border-radius: 14px;
  background: var(--amber-soft); color: var(--amber);
  font-size: 13.5px; font-weight: 600; text-align: center;
}
.quota--ok { background: var(--green-soft); color: #4d7a60; }
.quota:empty { display: none; }

/* ---------------- 解锁门槛 ---------------- */
.gate-box {
  margin: 6px 16px 20px; padding: 34px 22px; text-align: center;
  background: #fff; border: 1px dashed #e8cfd2; border-radius: 22px;
  box-shadow: var(--shadow);
}
.gate-box__ico { font-size: 38px; margin-bottom: 12px; }
.gate-box h3 { font-size: 18px; margin-bottom: 10px; }
.gate-box p { color: var(--muted); font-size: 14px; margin-bottom: 20px; }

/* ---------------- 发现：筛选 + 网格 ---------------- */
.filterbar { display: flex; gap: 8px; padding: 0 16px 12px; }
.filterbar select, .filterbar input {
  flex: 1; min-width: 0; width: auto;
  padding: 9px 10px; border: 1px solid var(--line); border-radius: 11px;
  background: #fff; font-size: 13.5px;
}
#discover-count { margin: 0 0 10px; }
.mgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 0 16px 20px; }
.gcard {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  overflow: hidden; box-shadow: var(--shadow);
}
.gcard__photo { aspect-ratio: 3 / 4; background: var(--rose-mist); }
.gcard__photo img { width: 100%; height: 100%; object-fit: cover; }
.gcard__body { padding: 10px 12px 12px; }
.gcard__name { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.gcard__name h4 { font-size: 15px; }
.gcard .vbadge { font-size: 10px; padding: 1px 6px; }
.gcard .chips { gap: 5px; margin-top: 7px; }
.gcard .chip { font-size: 11px; padding: 3px 8px; }

/* ---------------- 咨询渠道 ---------------- */
.chan {
  display: flex; align-items: center; gap: 12px;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 14px 16px; margin-bottom: 10px; box-shadow: var(--shadow);
  color: var(--ink);
}
.chan__ico {
  flex: none; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; font-size: 17px; background: var(--rose-mist);
}
.chan--line .chan__ico { background: #e6f9ed; color: #06c755; }
.chan--wa .chan__ico { background: #e6f6ec; color: #128c7e; }
.chan__txt { display: flex; flex-direction: column; min-width: 0; }
.chan__txt b { font-size: 15px; }
.chan__sub { font-size: 12px; color: var(--faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.view .steps { grid-template-columns: 1fr; margin-top: 0; gap: 12px; }
.view .step { padding: 20px 18px; }
.view .faq { max-width: none; margin: 0; }

/* ---------------- 我的：收藏 ---------------- */
.fav-row { display: flex; flex-wrap: wrap; gap: 8px; }
.fav-item {
  position: relative;
  width: 54px; height: 54px; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--line); background: var(--rose-mist);
  padding: 0; cursor: pointer; font: inherit; -webkit-tap-highlight-color: transparent;
  transition: transform .15s ease, box-shadow .15s ease;
}
.fav-item:hover, .fav-item:active { transform: translateY(-2px); }
.fav-tip { margin: 2px 0 10px; }
/* 定位到会员卡片时的短暂高亮 */
.pcard.is-flash { animation: pcard-flash 1.6s ease; }
@keyframes pcard-flash {
  0%, 100% { box-shadow: 0 0 0 0 rgba(196, 137, 143, 0); }
  25%, 60% { box-shadow: 0 0 0 3px rgba(196, 137, 143, .55); }
}
.fav-item img { width: 100%; height: 100%; object-fit: cover; }
.fav-item.is-mutual { border-color: var(--rose); box-shadow: 0 0 0 2px rgba(196, 137, 143, 0.28); }
.fav-item__tag {
  position: absolute; left: 0; right: 0; bottom: 0; font-style: normal;
  font-size: 9px; line-height: 1.5; text-align: center; color: #fff;
  background: rgba(168, 106, 114, 0.86);
}

/* ---------------- 折叠面板 ---------------- */
.collapse-head {
  display: flex; width: 100%; align-items: center; justify-content: space-between;
  border: 0; background: transparent; padding: 0;
  font-family: var(--serif); font-size: 15px; font-weight: 600; color: var(--ink); text-align: left;
}
.collapse-head::after { content: "＋"; color: var(--rose); font-size: 16px; font-family: var(--sans); }
.collapse.is-open .collapse-head::after { content: "－"; }
.collapse__body { display: none; margin-top: 14px; }
.collapse.is-open .collapse__body { display: block; }

.range { display: flex; align-items: center; gap: 8px; }
.range input { flex: 1; min-width: 0; }

/* ---------------- 表单（窄栏内） ---------------- */
.panel .consent { margin: 18px 0 4px; }
.panel .form-actions { margin-top: 18px; }
.panel .form-actions .btn { width: 100%; }
.panel .field textarea { min-height: 78px; }

@media (max-width: 380px) {
  .chip { font-size: 12px; padding: 4px 9px; }
  .mgrid { gap: 10px; }
  .pcard__name h3 { font-size: 18px; }
}

/* ---------------- 后台登录遮罩 ---------------- */
.login-gate {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center; padding: 20px;
  background: linear-gradient(160deg, #fbf1f0 0%, #f7f4f2 60%, #f3ece8 100%);
}
.login-box {
  width: 100%; max-width: 380px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 30px 30px; box-shadow: 0 24px 60px rgba(120, 90, 95, 0.16);
}
.login-box__mark {
  width: 46px; height: 46px; border-radius: 50%; margin: 0 auto 16px;
  display: grid; place-items: center; color: #fff; font-size: 20px;
  background: linear-gradient(135deg, var(--rose), var(--gold));
}
.login-box h1 { font-size: 20px; text-align: center; margin-bottom: 6px; }
.login-box .login-box__sub { display: block; text-align: center; font-size: 13px; color: var(--muted); margin-bottom: 22px; }
.login-box .btn { width: 100%; margin-top: 6px; }
.login-box .form-msg { display: block; text-align: center; margin-top: 12px; min-height: 18px; }

.side__foot .side__logout {
  width: 100%; margin-top: 12px; border: 1px solid rgba(138, 109, 114, 0.3);
  background: #fff; border-radius: 9px; padding: 8px; font-size: 13px;
  color: #8a6d72; cursor: pointer;
}
.side__foot .side__logout:hover { border-color: #d98573; color: #c0563f; }

/* ==========================================================
   开屏全屏轮播（前台一打开铺满全屏；文案、图片与频率在后台「开屏弹窗」配置）
   播完自动进入人物展示页；「跳过」立即进入；「不再显示」永久关闭
   ========================================================== */
.splash {
  position: fixed; inset: 0; z-index: 200;
  background: #2b2224; overflow: hidden;
  animation: welcomeFade .45s ease both;
}
@keyframes welcomeFade { from { opacity: 0; } to { opacity: 1; } }
.splash__stage { position: absolute; inset: 0; }
.wslide {
  position: absolute; inset: 0; margin: 0; opacity: 0;
  transition: opacity .8s ease;
}
.wslide.is-active { opacity: 1; }
.wslide img { width: 100%; height: 100%; object-fit: cover; }
.wslide figcaption {
  position: absolute; left: 0; right: 0; top: 0;
  padding: 74px 24px 30px; text-align: center;
  background: linear-gradient(180deg, rgba(28, 20, 22, .62), rgba(28, 20, 22, 0));
  color: #fff; font-family: var(--serif); font-size: 17px; letter-spacing: 2px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .55);
}
.splash__veil {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(28, 20, 22, .18) 0%, rgba(28, 20, 22, 0) 28%, rgba(28, 20, 22, .34) 60%, rgba(28, 20, 22, .9) 100%);
}
.splash__skip {
  position: absolute; top: max(16px, env(safe-area-inset-top)); right: 16px; z-index: 3;
  padding: 8px 16px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .5); background: rgba(0, 0, 0, .28);
  color: #fff; font-size: 13px; cursor: pointer;
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.splash__skip:hover { background: rgba(0, 0, 0, .48); }
.splash__panel {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 22px 22px calc(18px + env(safe-area-inset-bottom));
  text-align: center; color: #fff;
}
.splash__brand {
  display: block; font-size: 12px; letter-spacing: 4px; text-transform: uppercase;
  color: var(--gold); font-weight: 600;
}
.splash__tagline {
  font-size: 22px; margin: 8px 0 14px; letter-spacing: 2px; color: #fff;
  font-family: var(--serif); text-shadow: 0 2px 12px rgba(0, 0, 0, .45);
}
.splash__dots { display: flex; justify-content: center; gap: 8px; margin: 0 0 14px; }
.splash__dots i {
  width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .42);
  cursor: pointer; transition: all .25s ease;
}
.splash__dots i.is-active { width: 20px; border-radius: 4px; background: #fff; }
.splash__actions { display: grid; gap: 9px; max-width: 360px; margin: 0 auto; }
.splash__actions .btn--ghost {
  background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .6);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.splash__actions .btn--ghost:hover { background: rgba(255, 255, 255, .26); }
.splash__never {
  margin-top: 12px; border: none; background: none; cursor: pointer;
  font-size: 12px; color: rgba(255, 255, 255, .62); text-decoration: underline;
}
.splash__never:hover { color: #fff; }

/* 矮屏（笔记本 / 横屏手机）：收紧留白，保证按钮与「不再显示」都在一屏内 */
@media (max-height: 720px) {
  .wslide figcaption { padding: 56px 20px 22px; font-size: 15px; }
  .splash__panel { padding: 14px 18px calc(12px + env(safe-area-inset-bottom)); }
  .splash__tagline { font-size: 18px; margin: 6px 0 10px; }
  .splash__dots { margin-bottom: 10px; }
  .splash__actions { gap: 7px; }
  .splash__never { margin-top: 8px; }
}

/* ---------------- 后台：开屏弹窗配置 ---------------- */
.tri { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.welcome-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; margin-bottom: 16px; }
.wcard {
  border: 1px solid var(--line); border-radius: 14px; padding: 12px; background: #fffdfc;
}
.wcard__img { width: 100%; aspect-ratio: 5 / 6; border-radius: 10px; overflow: hidden; background: var(--rose-soft); margin-bottom: 10px; }
.wcard__img img { width: 100%; height: 100%; object-fit: cover; }
.wcard .tri { grid-template-columns: 1fr; gap: 6px; }
.wcard input[type="text"] { width: 100%; padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; }
.wcard__ops { display: flex; align-items: center; gap: 6px; margin-top: 10px; }
.wcard__ops button {
  border: 1px solid var(--line); background: #fff; border-radius: 8px;
  padding: 4px 9px; font-size: 12px; cursor: pointer; color: var(--muted);
}
.wcard__ops button:hover { border-color: var(--rose); color: var(--rose-deep); }
.wcard__ops .wcard__del { margin-left: auto; }
.wcard__ops .wcard__del:hover { border-color: #d98573; color: #c0563f; }
.wcard__on { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); margin-top: 8px; }

/* ---------------- 后台：常见问题配置 ---------------- */
.faq-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; margin: 14px 0 16px; }
.fcard { border: 1px solid var(--line); border-radius: 14px; padding: 12px; background: #fffdfc; }
.fcard__head { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--rose-deep); margin-bottom: 8px; }
.fcard__head .wcard__on { margin-top: 0; margin-left: auto; }
.fcard__head .wcard__ops { margin-top: 0; }
.fcard .tri { grid-template-columns: 1fr; gap: 6px; }
.fcard input[type="text"], .fcard textarea {
  width: 100%; padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px;
  font-size: 13px; font-family: inherit; resize: vertical;
}
