/* e红娘 复刻原型 · 公共样式 */
:root {
  --pink: #ee5a8a;
  --pink-deep: #e04379;
  --pink-soft: #ff7ba9;
  --pink-bg: #fdf3f7;
  --pink-line: #fbe0ea;
  --blue-bg: #e9f5fe;
  --blue: #3fa9f5;
  --gray-bg: #f3f4f6;
  --gray-tag: #8a8f99;
  --t1: #1a1a1a;
  --t2: #5c6169;
  --t3: #9aa0a8;
  --line: #f0f1f3;
  --card-r: 14px;
  --shadow: 0 2px 14px rgba(238, 90, 138, 0.07);
  --gold: #f6b73c;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: #eef0f3;
  color: var(--t1);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; border: none; background: none; cursor: pointer; }
ul { list-style: none; }

/* 手机外框 */
.phone {
  width: 100%;
  max-width: 430px;
  min-height: 100vh;
  margin: 0 auto;
  background: #fff;
  position: relative;
  padding-bottom: 66px;
  overflow-x: hidden;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.08);
}

/* ========== 底部导航 ========== */
.tabbar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 56px;
  background: #fff;
  border-top: 1px solid #f2f3f5;
  display: flex;
  z-index: 90;
  padding-bottom: env(safe-area-inset-bottom);
}
.tabbar a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 10px;
  color: #a8adb5;
}
.tabbar a svg { width: 22px; height: 22px; stroke: #a8adb5; fill: none; stroke-width: 1.6; }
.tabbar a.on { color: var(--pink); font-weight: 600; }
.tabbar a.on svg { stroke: var(--pink); fill: rgba(238, 90, 138, 0.08); }

/* ========== 通用组件 ========== */
.sec { padding: 0 12px; }
.sec-title {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0 10px;
}
.sec-title h2 { font-size: 16px; font-weight: 700; letter-spacing: -0.2px; }
.sec-title h2 i {
  display: inline-block; width: 3px; height: 14px; background: var(--pink);
  border-radius: 2px; margin-right: 6px; vertical-align: -1px;
}
.sec-title .more { font-size: 12px; color: var(--t3); }

/* 标签 */
.tag {
  display: inline-flex; align-items: center;
  height: 21px; padding: 0 7px; border-radius: 4px;
  font-size: 11.5px; line-height: 1; white-space: nowrap;
}
.tag.blue { background: var(--blue-bg); color: var(--blue); }
.tag.gray { background: var(--gray-bg); color: var(--gray-tag); }
.tag.realname {
  background: linear-gradient(135deg, #5cb3f8, #3d9df0);
  color: #fff; gap: 3px; font-size: 10.5px; height: 18px; padding: 0 6px;
  border-radius: 9px;
}
.tag.realname svg { width: 9px; height: 9px; fill: #fff; }
.tag.gold { background: #fff6e5; color: #d99a1f; }

/* 头像（渐变占位） */
.ava {
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(135deg, #f7c5d8, #e8a7c1);
  position: relative;
  flex-shrink: 0;
}
.ava span {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 600; font-size: 20px; letter-spacing: 1px;
  opacity: .9;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}
.ava.v2 { background: linear-gradient(135deg, #bcd9f5, #93bde6); }
.ava.v3 { background: linear-gradient(135deg, #d6e5c6, #b3cfa0); }
.ava.v4 { background: linear-gradient(135deg, #f5ddc0, #e6c294); }
.ava.v5 { background: linear-gradient(135deg, #d8cdf0, #b6a3dd); }
.ava.blur span { filter: blur(7px); }

/* 按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 40px; padding: 0 18px; border-radius: 20px;
  font-size: 14px; font-weight: 600; color: #fff;
  background: linear-gradient(135deg, var(--pink-soft), var(--pink-deep));
  box-shadow: 0 4px 12px rgba(238, 90, 138, 0.28);
}
.btn.ghost {
  background: #fff; color: var(--pink);
  border: 1px solid var(--pink-line); box-shadow: none;
}
.btn.block { width: 100%; }

/* 卡 */
.card {
  background: #fff; border-radius: var(--card-r);
  box-shadow: var(--shadow);
}

/* 顶部返回栏 */
.navbar {
  height: 50px; display: flex; align-items: center; gap: 10px;
  padding: 0 12px; background: #fff;
  position: sticky; top: 0; z-index: 60;
  border-bottom: 1px solid #f6f7f8;
}
.navbar .back { width: 26px; height: 26px; display: flex; align-items: center; }
.navbar .back svg { width: 20px; height: 20px; stroke: #333; fill: none; stroke-width: 2.2; }
.navbar h1 { font-size: 16px; font-weight: 600; }
.navbar .right { margin-left: auto; font-size: 13px; color: var(--t2); }

/* 会员卡（列表用） */
.mcard {
  display: flex; gap: 11px; padding: 12px;
  background: #fff; border-radius: var(--card-r);
  box-shadow: var(--shadow); margin-bottom: 10px;
  position: relative;
}
.mcard .ava { width: 104px; height: 104px; }
.mcard .info { flex: 1; min-width: 0; padding-top: 1px; }
.mcard .name-row { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.mcard .name-row b { font-size: 16px; font-weight: 700; letter-spacing: -0.2px; }
.mcard .tags { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 7px; }
.mcard .meta {
  font-size: 12.5px; color: var(--t3); white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; padding-right: 42px;
}
.mcard .thumb {
  position: absolute; right: 12px; bottom: 12px;
  width: 34px; height: 34px; border-radius: 6px;
  background: linear-gradient(135deg, #f3d3e0, #e9b8cb);
  display: flex; align-items: center; justify-content: center;
}
.mcard .thumb svg { width: 22px; height: 22px; opacity: 0.85; }
.mcard .stamp {
  position: absolute; right: 8px; bottom: 8px;
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px dashed rgba(238, 90, 138, 0.45);
  background: rgba(253, 235, 242, 0.9);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--pink); font-size: 9px; line-height: 1.1; text-align: center;
  transform: rotate(-12deg);
}
.mcard .stamp b { font-size: 11px; font-weight: 700; }
