/* ============ 社群人脉 H5 ============ */
:root {
  --blue: #2f7bff;
  --blue-deep: #1f63e8;
  --bg: #f5f6fa;
  --card: #ffffff;
  --text: #1b1f2a;
  --sub: #8b91a5;
  --line: #eef0f5;
  --gold: #f5c46b;
  --gold-deep: #ef9f2e;
  --red: #f2595b;
  --radius: 14px;
  --shadow: 0 2px 10px rgba(31, 45, 92, 0.05);
}
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: #e9ebf2;
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; border: none; background: none; cursor: pointer; }
input, textarea, select { font-family: inherit; font-size: 14px; outline: none; }

.phone {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--bg);
  position: relative;
  box-shadow: 0 0 30px rgba(20, 30, 70, 0.12);
}
.page { padding-bottom: 78px; min-height: 100vh; }
.page.no-tab { padding-bottom: 20px; }

/* ---------- 首页头部 ---------- */
.home-header {
  background: #fff;
  padding: 14px 16px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand { display: flex; align-items: center; gap: 9px; flex-shrink: 0; }
.brand-logo {
  width: 44px; height: 44px;
  border-radius: 13px;
  background: linear-gradient(135deg, #5aa2ff, #2f7bff 55%, #1f63e8);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 10px rgba(47, 123, 255, 0.35);
}
.brand-logo svg { width: 28px; height: 28px; }
.brand-name { font-size: 19px; font-weight: 800; letter-spacing: 0.5px; line-height: 1.2; }
.brand-slogan { font-size: 10.5px; color: var(--sub); margin-top: 1px; }
.search-pill {
  flex: 1;
  height: 40px;
  background: #f2f4f8;
  border-radius: 999px;
  display: flex; align-items: center;
  padding: 0 14px;
  gap: 7px;
  color: #a6acbd;
  font-size: 13px;
  min-width: 0;
}
.search-pill svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ---------- 蓝色 Banner ---------- */
.banner {
  margin: 12px 14px 0;
  border-radius: 16px;
  background: linear-gradient(120deg, #4d9bff 0%, #2f7bff 45%, #1f5fe0 100%);
  color: #fff;
  padding: 20px 18px 22px;
  position: relative;
  overflow: hidden;
  min-height: 132px;
}
.banner::before, .banner::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.10);
}
.banner::before { width: 150px; height: 150px; right: -50px; top: -60px; }
.banner::after { width: 90px; height: 90px; left: -30px; bottom: -45px; background: rgba(255,255,255,0.07); }
.banner-title { font-size: 21px; font-weight: 800; line-height: 1.4; position: relative; z-index: 2; text-shadow: 0 2px 8px rgba(15,60,140,.25); }
.banner-sub { font-size: 12px; opacity: 0.88; margin-top: 8px; position: relative; z-index: 2; letter-spacing: 1px; }
.banner-art { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); width: 150px; height: 118px; z-index: 1; }
.banner-dots { position: absolute; bottom: 9px; left: 0; right: 0; display: flex; justify-content: center; gap: 5px; z-index: 2; }
.banner-dots i { width: 5px; height: 5px; border-radius: 50%; background: rgba(255,255,255,0.45); }
.banner-dots i.on { width: 14px; border-radius: 3px; background: #fff; }

/* ---------- 首页走马灯通知 ---------- */
.marquee {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 14px 0;
  height: 36px;
  padding: 0 12px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.marquee-icon {
  flex: none;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
}
.marquee-icon svg { width: 16px; height: 16px; }
.marquee-track {
  display: flex;
  white-space: nowrap;
  animation: marquee-scroll 20s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  font-size: 12px;
  color: #4a5064;
  letter-spacing: 0.5px;
  padding-right: 28px;
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* ---------- 五大分类 ---------- */
.cats {
  background: #fff;
  margin: 12px 14px 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 16px 6px 14px;
}
.cat { display: flex; flex-direction: column; align-items: center; gap: 7px; min-width: 0; }
.cat-icon {
  width: 46px; height: 46px;
  border-radius: 15px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 9px rgba(31, 45, 92, 0.12);
}
.cat-icon svg { width: 24px; height: 24px; }
.cat-icon.blue   { background: linear-gradient(135deg, #6aa8ff, #2f7bff); }
.cat-icon.purple { background: linear-gradient(135deg, #9d8bff, #6a4ff0); }
.cat-icon.green  { background: linear-gradient(135deg, #57d693, #1fb56f); }
.cat-icon.orange { background: linear-gradient(135deg, #ffb85c, #ff8a2a); }
.cat-icon.gold   { background: linear-gradient(135deg, #ffdd93, #f0a93c); }
.cat-label { font-size: 12.5px; font-weight: 700; }

/* ---------- 区块标题 ---------- */
.section { margin: 14px 14px 0; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.section-title { font-size: 16px; font-weight: 800; display: flex; align-items: center; gap: 6px; }
.section-title .fire { font-size: 17px; }
.section-title .sec-ico { width: 19px; height: 19px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.section-title .sec-ico svg { width: 19px; height: 19px; display: block; }
.sec-empty {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 20px 14px; text-align: center; font-size: 12px; color: var(--sub); line-height: 1.7;
}
.section-more { font-size: 12px; color: var(--sub); display: flex; flex-direction: row; align-items: center; gap: 2px; white-space: nowrap; }
.section-more svg { width: 13px; height: 13px; flex-shrink: 0; }

/* ---------- 热门推荐卡片 ---------- */
.hot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hot-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 10px;
  display: block;
  position: relative;
}
.hot-illus {
  height: 86px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 9px;
  position: relative;
  overflow: hidden;
}
.hot-illus svg { width: 58px; height: 58px; }
.hot-illus.blue   { background: linear-gradient(135deg, #e3edff, #cfe0ff); }
.hot-illus.purple { background: linear-gradient(135deg, #eceaff, #ddd8ff); }
.hot-illus.green  { background: linear-gradient(135deg, #e0f7ec, #c9f0dd); }
.hot-illus.orange { background: linear-gradient(135deg, #fff1de, #ffe4c2); }
.hot-name { font-size: 13.5px; font-weight: 700; }
.hot-desc { font-size: 11px; color: var(--sub); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hot-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.tag {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 600;
}
.tag.hot { color: #f2595b; background: #ffecec; }
.tag.pick { color: #ef9f2e; background: #fff5e3; }
.tag.blue { color: var(--blue); background: #e8f1ff; }
.tag.vip { color: #b8781a; background: linear-gradient(135deg,#ffe9c2,#ffd98a); }
.arrow-circle {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #f2f4f8;
  display: flex; align-items: center; justify-content: center;
  color: #b6bcca;
}
.arrow-circle svg { width: 11px; height: 11px; }

/* ---------- 精选社群（付费置顶） ---------- */
.section-tag { font-size: 11px; color: #d9861f; background: #fff5e3; padding: 3px 9px; border-radius: 8px; font-weight: 600; }
.section-tag.gold { color: #b8781a; background: linear-gradient(135deg, #ffe9c2, #ffd98a); }
.section-tag.red { color: #e0484a; background: #ffecec; }
.top-grid .hot-card { border: 1px solid #ffe1b8; box-shadow: 0 6px 18px rgba(239, 159, 46, 0.14); }
.top-badge {
  position: absolute; top: 0; left: 0; z-index: 2;
  font-size: 10px; font-weight: 700; color: #fff; letter-spacing: 0.3px;
  background: linear-gradient(135deg, #ff9e3d, #f2595b);
  padding: 3px 9px; border-radius: var(--radius) 0 10px 0;
  display: inline-flex; align-items: center; gap: 3px;
}
.top-badge svg { width: 11px; height: 11px; display: block; }
.tag.top { color: #fff; background: linear-gradient(135deg, #ff9e3d, #f2595b); }
.top-plan-list { display: flex; flex-direction: column; gap: 9px; margin-top: 14px; }
.top-plan {
  border: 1.5px solid var(--line); border-radius: 12px; padding: 11px 13px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  cursor: pointer; background: #fff;
}
.top-plan.on { border-color: #f0a93c; background: linear-gradient(135deg, #fffdf7, #fff8ea); }
.top-plan .n { font-size: 13.5px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.top-plan .n .tag { font-size: 9.5px; padding: 1px 6px; color: #b8781a; background: linear-gradient(135deg, #ffe9c2, #ffd98a); }
.top-plan .d { font-size: 11px; color: var(--sub); margin-top: 3px; }
.top-plan .p { font-size: 16px; font-weight: 800; color: #f2595b; white-space: nowrap; }
.top-plan .p small { font-size: 11px; }
.top-warn { margin-top: 12px; font-size: 11.5px; color: #b8781a; background: #fff8ea; border: 1px solid #ffe1b8; border-radius: 10px; padding: 9px 11px; line-height: 1.6; }
.top-mine-tip { margin-top: 10px; font-size: 11.5px; color: #5a6076; line-height: 1.7; }

/* ---------- VIP 横幅 ---------- */
.vip-banner {
  margin: 14px 14px 0;
  border-radius: 16px;
  background: linear-gradient(120deg, #2a2f4a 0%, #1c2036 60%, #141728 100%);
  padding: 15px 16px;
  display: flex;
  align-items: center;
  gap: 13px;
  position: relative;
  overflow: hidden;
}
.vip-banner::after {
  content: "";
  position: absolute;
  width: 130px; height: 130px;
  border-radius: 50%;
  background: rgba(245, 196, 107, 0.10);
  right: -40px; top: -50px;
}
.vip-crown {
  width: 46px; height: 46px;
  border-radius: 13px;
  background: linear-gradient(135deg, #3a3f5e, #262a44);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(245, 196, 107, 0.35);
}
.vip-crown svg { width: 26px; height: 26px; }
.vip-banner-title { font-size: 15px; font-weight: 800; color: var(--gold); letter-spacing: 0.5px; }
.vip-banner-sub { font-size: 11px; color: #9aa1bd; margin-top: 2px; }
.vip-btn {
  margin-left: auto;
  background: linear-gradient(135deg, #ffdd93, #f0a93c);
  color: #5c3a05;
  font-size: 12.5px;
  font-weight: 800;
  padding: 8px 15px;
  border-radius: 999px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(240, 169, 60, 0.4);
  position: relative; z-index: 1;
}

/* ---------- 底部 Tab ---------- */
.tabbar {
  position: fixed;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 100%; max-width: 480px;
  background: #fff;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 7px 0 calc(7px + env(safe-area-inset-bottom));
  box-shadow: 0 -2px 14px rgba(20, 30, 70, 0.07);
  z-index: 100;
}
.tab { display: flex; flex-direction: column; align-items: center; gap: 3px; color: #9aa0b4; font-size: 10.5px; }
.tab svg { width: 23px; height: 23px; }
.tab.on { color: var(--blue); font-weight: 700; }

/* ---------- 通用页面头 ---------- */
.nav {
  background: #fff;
  padding: 13px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  position: sticky;
  top: 0;
  z-index: 90;
  border-bottom: 1px solid var(--line);
}
.nav-back {
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 9px;
  background: #f2f4f8;
  color: #4a5064;
}
.nav-back svg { width: 15px; height: 15px; }
.nav-title { font-size: 16px; font-weight: 800; }

/* ---------- 列表页 ---------- */
.filter-bar {
  background: #fff;
  padding: 10px 14px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  position: sticky;
  top: 47px;
  z-index: 80;
  border-bottom: 1px solid var(--line);
}
.filter-bar::-webkit-scrollbar { display: none; }
.chip {
  flex-shrink: 0;
  padding: 6px 14px;
  border-radius: 999px;
  background: #f2f4f8;
  font-size: 12.5px;
  color: #5a6076;
  font-weight: 600;
}
.chip.on { background: var(--blue); color: #fff; }
/* 社群广场附加筛选行(类型 / 发布时间), 不吸顶 */
.list-ft { background: #fff; padding: 9px 14px; display: flex; gap: 8px; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.filter-selects { display: flex; gap: 8px; padding: 10px 14px 0; }
.filter-selects select {
  flex: 1;
  height: 36px;
  border: none;
  background: #fff;
  border-radius: 10px;
  padding: 0 10px;
  font-size: 12.5px;
  color: #4a5064;
  box-shadow: var(--shadow);
}

.group-list { padding: 12px 14px 0; display: flex; flex-direction: column; gap: 10px; }
.home-latest { padding: 0; }
.group-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 11px;
  display: flex;
  gap: 11px;
  align-items: center;
}
.group-thumb {
  width: 74px; height: 74px;
  border-radius: 11px;
  background: #f2f4f8;
  flex-shrink: 0;
  object-fit: cover;
  display: flex; align-items: center; justify-content: center;
  color: #c3c9d8;
}
.group-info { flex: 1; min-width: 0; }
.group-name { font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.group-name span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.group-meta { font-size: 11px; color: var(--sub); margin-top: 4px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.group-intro {
  font-size: 11.5px; color: #7c8296; margin-top: 4px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.group-side { display: flex; flex-direction: column; align-items: center; gap: 6px; flex-shrink: 0; }

/* ---------- 详情页 ---------- */
.detail-hero {
  background: linear-gradient(135deg, #4d9bff, #1f5fe0);
  padding: 16px 14px 46px;
  color: #fff;
}
.detail-hero .g-name { font-size: 19px; font-weight: 800; }
.detail-hero .g-meta { font-size: 12px; opacity: 0.85; margin-top: 7px; display: flex; gap: 12px; flex-wrap: wrap; }
.detail-body { padding: 0 14px; margin-top: -34px; }
.qr-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 20px 16px 16px;
  text-align: center;
}
.qr-card .qr-img {
  width: 200px; height: 200px;
  margin: 0 auto;
  border-radius: 12px;
  border: 1px solid var(--line);
  padding: 8px;
  background: #fff;
}
.qr-card .qr-img img { width: 100%; height: 100%; object-fit: contain; }
.qr-tip { font-size: 11.5px; color: var(--sub); margin-top: 10px; }
.qr-lock {
  position: absolute; inset: 0;
  background: rgba(255,255,255,0.94);
  border-radius: 12px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  color: #b8781a; font-size: 13px; font-weight: 700;
}
.qr-wrap { position: relative; width: 200px; margin: 0 auto; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.detail-actions .btn { flex: 1 1 0; min-width: 0; }
.detail-actions #top-btn { flex: 1 1 100%; }
.btn {
  flex: 1;
  height: 44px;
  border-radius: 12px;
  font-size: 14.5px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.btn-primary { background: linear-gradient(135deg, #4d9bff, #2f7bff); color: #fff; box-shadow: 0 5px 14px rgba(47,123,255,.32); }
.btn-ghost { background: #fff; color: #4a5064; box-shadow: var(--shadow); }
.btn-home { background: #fff; color: #22b573; font-size: 15.5px; box-shadow: var(--shadow); }
.btn-gold { background: linear-gradient(135deg, #ffdd93, #f0a93c); color: #5c3a05; box-shadow: 0 5px 14px rgba(240,169,60,.35); }
.btn-warn { background: linear-gradient(135deg, #ff8a8a, #f2595b); color: #fff; box-shadow: 0 5px 14px rgba(242,89,91,.32); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.55; }
.info-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px;
  margin-top: 12px;
}
.info-card h4 { font-size: 14px; font-weight: 800; margin-bottom: 8px; }
.info-card .intro-text { font-size: 13px; color: #4a5064; line-height: 1.7; white-space: pre-wrap; }
.kv-row { display: flex; justify-content: space-between; font-size: 12.5px; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.kv-row:last-child { border-bottom: none; }
.kv-row .k { color: var(--sub); }
.kv-row .v { font-weight: 600; }

/* ---------- 发布页 ---------- */
.form-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 15px; margin: 12px 14px 0; }
.form-item { margin-bottom: 15px; }
.form-item:last-child { margin-bottom: 0; }
.form-label { font-size: 13px; font-weight: 700; margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.form-label .req { color: var(--red); }
.form-input, .form-textarea {
  width: 100%;
  background: #f6f7fa;
  border: 1.5px solid transparent;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  transition: border-color 0.15s;
}
.form-input:focus, .form-textarea:focus { border-color: var(--blue); background: #fff; }
.form-textarea { min-height: 84px; resize: none; }
.option-row { display: flex; gap: 8px; flex-wrap: wrap; }
.option {
  padding: 7px 14px;
  border-radius: 10px;
  background: #f2f4f8;
  font-size: 12.5px;
  color: #5a6076;
  font-weight: 600;
}
.option.on { background: #e8f1ff; color: var(--blue); border: 1.5px solid var(--blue); }
.option.locked { opacity: 0.5; }
.uploader {
  width: 108px; height: 108px;
  border: 1.5px dashed #cdd3e0;
  border-radius: 12px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  color: #a6acbd; font-size: 11px;
  background: #fafbfd;
  position: relative;
  overflow: hidden;
}
.uploader svg { width: 26px; height: 26px; }
.uploader img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* 封面快捷选择: emoji 图标 + 底色 */
.emoji-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; }
.emoji-item {
  height: 38px; border: none; border-radius: 9px; background: #f2f4f8;
  font-size: 20px; line-height: 1; display: flex; align-items: center; justify-content: center;
  cursor: pointer; padding: 0;
}
.emoji-item.on { background: #e8f1ff; box-shadow: inset 0 0 0 2px var(--blue); }
.emoji-item svg { width: 26px; height: 26px; display: block; }
.emoji-grid-label { grid-column: 1 / -1; font-size: 11px; color: #8b91a5; margin: 4px 0 0; }
.color-row { display: flex; gap: 10px; margin-top: 10px; align-items: center; }
.color-dot {
  width: 26px; height: 26px; border-radius: 50%; border: none; cursor: pointer; padding: 0;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.08);
}
.color-dot.on { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--blue); }
.cover-emoji {
  width: 100%; height: 100%; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  font-size: 34px; line-height: 1; padding: 5px; box-sizing: border-box;
}
.cover-emoji svg { width: 100%; height: 100%; display: block; }
.switch-row { display: flex; align-items: center; justify-content: space-between; padding: 4px 0; }
.switch-row .t { font-size: 13px; font-weight: 600; }
.switch-row .d { font-size: 11px; color: var(--sub); margin-top: 2px; }
.switch {
  width: 46px; height: 26px;
  border-radius: 999px;
  background: #dfe3ec;
  position: relative;
  transition: background 0.2s;
  flex-shrink: 0;
}
.switch::after {
  content: "";
  position: absolute;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #fff;
  top: 3px; left: 3px;
  transition: left 0.2s;
  box-shadow: 0 1px 4px rgba(0,0,0,2);
}
.switch.on { background: var(--blue); }
.switch.on::after { left: 23px; }
.switch.gold { background: linear-gradient(135deg, #ffdd93, #f0a93c); }
.limit-tip { font-size: 11.5px; color: #ef9f2e; background: #fff7e8; border-radius: 9px; padding: 8px 11px; margin-top: 10px; }

/* ---------- VIP 页 ---------- */
.vip-hero {
  background: linear-gradient(160deg, #2a2f4a, #141728);
  padding: 26px 18px 22px;
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.vip-hero::before {
  content: "";
  position: absolute;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: rgba(245, 196, 107, 0.10);
  top: -110px; left: 50%; transform: translateX(-50%);
}
.vip-hero .crown { width: 62px; height: 62px; margin: 0 auto 10px; position: relative; }
.vip-hero h2 { font-size: 20px; font-weight: 800; color: var(--gold); position: relative; }
.vip-hero p { font-size: 12px; color: #9aa1bd; margin-top: 6px; position: relative; }
.plan-list { padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.plan-card {
  background: #fff;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 15px;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  transition: border-color 0.15s;
}
.plan-card.on { border-color: #f0a93c; background: linear-gradient(135deg, #fffdf7, #fff8ea); }
.plan-card .best {
  position: absolute;
  top: -9px; right: 12px;
  background: linear-gradient(135deg, #ffdd93, #f0a93c);
  color: #5c3a05;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 999px;
}
.plan-name { font-size: 15px; font-weight: 800; }
.plan-days { font-size: 11px; color: var(--sub); margin-top: 2px; }
.plan-price { margin-left: auto; text-align: right; }
.plan-price .p { font-size: 20px; font-weight: 800; color: #ef9f2e; }
.plan-price .p small { font-size: 12px; font-weight: 600; }
.plan-price .o { font-size: 10.5px; color: #b6bcca; text-decoration: line-through; }
.privilege-list { padding: 0 14px; }
.privilege-list .item {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 13px 15px;
  display: flex; align-items: center; gap: 10px;
  font-size: 13px;
  margin-bottom: 9px;
}
.privilege-list .check {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffdd93, #f0a93c);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: #5c3a05;
  font-size: 11px;
  font-weight: 800;
}

/* ---------- 我的 / 个人中心 ---------- */
.mine-tabs { display: flex; background: #fff; border-radius: 999px; padding: 4px; margin: 12px 14px 0; box-shadow: var(--shadow); }
.mine-tabs .t {
  flex: 1; text-align: center;
  padding: 8px 0;
  font-size: 13px; font-weight: 700;
  color: #7c8296;
  border-radius: 999px;
}
.mine-tabs .t.on { background: var(--blue); color: #fff; }
.profile-hero {
  background: linear-gradient(135deg, #4d9bff, #1f5fe0);
  margin: 12px 14px 0;
  border-radius: 16px;
  padding: 18px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 13px;
  position: relative;
  overflow: hidden;
}
.profile-hero::after {
  content: "";
  position: absolute;
  width: 160px; height: 160px;
  border-radius: 50%;
  background: rgba(255,255,255,0.10);
  right: -60px; bottom: -70px;
}
.avatar {
  width: 58px; height: 58px;
  border-radius: 50%;
  background: rgba(255,255,255,0.22);
  border: 2px solid rgba(255,255,255,0.5);
  display: flex; align-items: center; justify-content: center;
  font-size: 21px; font-weight: 800;
  flex-shrink: 0;
  overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-hero .n { font-size: 17px; font-weight: 800; display: flex; align-items: center; gap: 7px; }
.profile-hero .p { font-size: 11.5px; opacity: 0.85; margin-top: 4px; }
.vip-badge {
  font-size: 10px;
  background: linear-gradient(135deg, #ffdd93, #f0a93c);
  color: #5c3a05;
  font-weight: 800;
  padding: 2.5px 8px;
  border-radius: 999px;
}
.menu-list { margin: 12px 14px 0; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.menu-item {
  display: flex; align-items: center; gap: 11px;
  padding: 14px 15px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.menu-item:last-child { border-bottom: none; }
.menu-item .ic {
  width: 32px; height: 32px;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.menu-item .ic svg { width: 17px; height: 17px; }
.menu-item .arrow { margin-left: auto; color: #c3c9d8; }
.menu-item .arrow svg { width: 13px; height: 13px; }
.menu-item .val { margin-left: auto; font-size: 12px; color: var(--sub); }
.menu-item.danger { color: var(--red); }

/* ---------- 搜索页 ---------- */
.search-page-head { background: #fff; padding: 11px 14px; display: flex; gap: 10px; position: sticky; top: 0; z-index: 90; }
.search-input-wrap { flex: 1; height: 38px; background: #f2f4f8; border-radius: 999px; display: flex; align-items: center; padding: 0 14px; gap: 7px; }
.search-input-wrap svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--sub); }
.search-input-wrap input { flex: 1; border: none; background: none; font-size: 13.5px; min-width: 0; }
.search-btn { color: var(--blue); font-weight: 700; font-size: 14px; }
/* 搜索页筛选: 类型 / 发布时间 */
.search-filters { background: #fff; padding: 11px 14px; display: flex; flex-direction: column; gap: 9px; border-bottom: 1px solid var(--line); }
.sf-row { display: flex; align-items: center; gap: 10px; }
.sf-label { font-size: 12px; color: var(--sub); font-weight: 700; flex-shrink: 0; width: 50px; }
.sf-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.sf-chip { padding: 5px 13px; border-radius: 999px; background: #f2f4f8; font-size: 12px; color: #5a6076; font-weight: 600; flex-shrink: 0; }
.sf-chip.on { background: var(--blue); color: #fff; }
.search-block { margin: 14px; }
.search-block h4 { font-size: 14px; font-weight: 800; margin-bottom: 11px; display: flex; justify-content: space-between; align-items: center; }
.search-block h4 .clear { font-size: 11.5px; color: var(--sub); font-weight: 400; }
.hot-words { display: flex; flex-wrap: wrap; gap: 9px; }
.hot-word {
  background: #fff;
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 12.5px;
  color: #4a5064;
  box-shadow: var(--shadow);
}
.hot-word .rank { color: #b6bcca; font-size: 11px; margin-right: 4px; }
.hot-word.top .rank { color: #f2595b; font-weight: 800; }

/* ---------- 订单页 ---------- */
.order-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px; margin: 12px 14px 0; }
.order-card .head { display: flex; justify-content: space-between; align-items: center; }
.order-card .no { font-size: 11.5px; color: var(--sub); }
.order-card .st { font-size: 12px; font-weight: 700; }
.order-card .st.paid { color: #22b573; }
.order-card .st.unpaid { color: #ef9f2e; }
.order-card .st.refund { color: var(--sub); }
.order-card .body { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.order-card .amt { font-size: 18px; font-weight: 800; }
.order-card .time { font-size: 11px; color: var(--sub); margin-top: 3px; }

/* ---------- 空状态 ---------- */
.empty { text-align: center; padding: 48px 20px; color: var(--sub); }
.empty svg { width: 74px; height: 74px; opacity: 0.6; margin-bottom: 10px; }
.empty .t { font-size: 13.5px; font-weight: 600; }
.empty .d { font-size: 11.5px; margin-top: 5px; }
.empty .btn { margin-top: 14px; display: inline-flex; width: auto; padding: 0 22px; }

/* ---------- 登录页 ---------- */
.login-page { min-height: 100vh; background: linear-gradient(160deg, #4d9bff, #1f5fe0); padding: 0 26px; display: flex; flex-direction: column; }
.login-logo { margin: 68px auto 0; text-align: center; color: #fff; }
.login-logo .l { width: 72px; height: 72px; border-radius: 21px; background: rgba(255,255,255,0.18); border: 1.5px solid rgba(255,255,255,0.4); display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; }
.login-logo .l svg { width: 42px; height: 42px; }
.login-logo h2 { font-size: 22px; font-weight: 800; }
.login-logo p { font-size: 12px; opacity: 0.85; margin-top: 5px; }
.login-card { background: #fff; border-radius: 18px; padding: 22px 18px; margin-top: 36px; box-shadow: 0 12px 34px rgba(15, 50, 130, 0.25); }
.login-card h3 { font-size: 17px; font-weight: 800; margin-bottom: 16px; }
.code-row { display: flex; gap: 10px; }
.code-row .form-input { flex: 1; }
.code-btn {
  flex-shrink: 0;
  padding: 0 13px;
  border-radius: 10px;
  background: #e8f1ff;
  color: var(--blue);
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
}
.code-btn[disabled] { background: #f2f4f8; color: #a6acbd; }
.login-tip { font-size: 11px; color: var(--sub); text-align: center; margin-top: 14px; line-height: 1.7; }

/* ---------- 微信一键登录 ---------- */
.wx-login-btn {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  width: 100%; height: 46px; margin-bottom: 16px;
  background: #22b573; color: #fff; border: none; border-radius: 12px;
  font-size: 15px; font-weight: 700; letter-spacing: 0.5px;
  box-shadow: 0 8px 18px rgba(34, 181, 115, 0.28);
}
.wx-login-btn:active { opacity: 0.86; transform: translateY(1px); }
.wx-login-btn svg { width: 21px; height: 21px; fill: #fff; flex: none; }
.login-or { display: flex; align-items: center; gap: 10px; color: #a8aec0; font-size: 11.5px; margin: 0 0 16px; }
.login-or::before, .login-or::after { content: ''; flex: 1; height: 1px; background: #e6e9f0; }
.wx-loading { text-align: center; font-size: 13px; color: #5a6076; padding: 12px 0; margin-bottom: 12px; }

/* ---------- 弹层 / Toast ---------- */
.modal-mask {
  position: fixed; inset: 0;
  background: rgba(15, 20, 40, 0.55);
  z-index: 200;
  display: flex; align-items: flex-end; justify-content: center;
  animation: fadeIn 0.18s ease;
}
.modal-sheet {
  background: #fff;
  border-radius: 20px 20px 0 0;
  width: 100%; max-width: 480px;
  padding: 20px 18px calc(20px + env(safe-area-inset-bottom));
  animation: slideUp 0.22s ease;
}
.modal-sheet .title { font-size: 16px; font-weight: 800; text-align: center; }
.modal-sheet .content { margin-top: 16px; }
.modal-btns { display: flex; gap: 10px; margin-top: 18px; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(40px); opacity: 0.5; } to { transform: translateY(0); opacity: 1; } }

.pay-amount { text-align: center; padding: 8px 0 4px; }
.pay-amount .a { font-size: 34px; font-weight: 800; }
.pay-amount .a small { font-size: 15px; }
.pay-amount .d { font-size: 12px; color: var(--sub); margin-top: 4px; }
.pay-mock-radio { display: flex; align-items: center; gap: 9px; background: #f6f7fa; border-radius: 11px; padding: 12px; font-size: 13px; font-weight: 600; }
.pay-mock-radio .dot { width: 17px; height: 17px; border-radius: 50%; border: 5px solid var(--blue); }
.paying { text-align: center; padding: 26px 0 10px; }
.paying .spinner {
  width: 42px; height: 42px;
  border: 3.5px solid #e3e8f4;
  border-top-color: var(--blue);
  border-radius: 50%;
  margin: 0 auto 12px;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.pay-ok { text-align: center; padding: 20px 0 8px; }
.pay-ok .ic {
  width: 58px; height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, #57d693, #1fb56f);
  color: #fff; font-size: 27px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px;
  animation: pop 0.3s ease;
}
@keyframes pop { from { transform: scale(0.4); } to { transform: scale(1); } }

#toast-root { position: fixed; top: 0; left: 0; right: 0; display: flex; justify-content: center; z-index: 999; pointer-events: none; }
.toast {
  margin-top: 64px;
  background: rgba(20, 26, 46, 0.86);
  color: #fff;
  font-size: 13px;
  padding: 9px 18px;
  border-radius: 999px;
  animation: toastIn 0.2s ease;
  max-width: 80%;
}
@keyframes toastIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- 加载 ---------- */
.loading { text-align: center; padding: 30px 0; color: var(--sub); font-size: 12px; }
.load-more-tip { text-align: center; font-size: 11.5px; color: #b6bcca; padding: 14px 0 4px; }

/* 桌面预览时给手机壳一点呼吸感 */
@media (min-width: 520px) {
  body { padding: 18px 0; }
  .phone { min-height: calc(100vh - 36px); border-radius: 22px; overflow: hidden; }
  .tabbar { border-radius: 0; }
}

/* ---------- 分享 ---------- */
.nav-act {
  width: 30px; height: 30px; flex-shrink: 0; padding: 0;
  display: flex; align-items: center; justify-content: center;
  border: 0; border-radius: 9px; background: #f2f4f8; color: #4a5064;
}
.nav-act svg { width: 17px; height: 17px; }
.nav-act:active { background: #e6eaf2; }

.share-preview {
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  background: #f6f7fa; border-radius: 14px; padding: 15px 14px; margin-top: 16px;
}
.share-preview img {
  width: 84px; height: 84px; border-radius: 14px; object-fit: cover;
  background: #fff; border: 1px solid var(--line);
}
.share-preview .sp-t { font-size: 14.5px; font-weight: 700; text-align: center; color: var(--text); }
.share-preview .sp-d { font-size: 12.5px; color: var(--sub); text-align: center; line-height: 1.65; }
.share-note { font-size: 11.8px; color: var(--sub); line-height: 1.7; margin-top: 12px; text-align: center; }
.share-acts { display: flex; gap: 10px; margin-top: 15px; }
.share-act {
  flex: 1; padding: 12px 4px; gap: 7px;
  display: flex; flex-direction: column; align-items: center;
  border: 1px solid var(--line); border-radius: 12px; background: #fff;
  font-size: 12.5px; font-weight: 600; color: #4a5064;
}
.share-act svg { width: 21px; height: 21px; color: var(--blue); }
.share-act:active { background: #f4f6fa; }

/* 微信内分享引导层（微信不允许代码唤起分享面板，只能引导点右上角） */
.share-guide {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(15, 20, 40, 0.82);
  color: #fff; animation: fadeIn 0.18s ease;
}
.share-guide .sg-arrow {
  position: absolute; top: 4px; right: 14px;
  width: 96px; height: 96px; color: #ffd166;
}
.share-guide .sg-text {
  position: absolute; top: 116px; right: 22px;
  text-align: right; font-size: 15.5px; font-weight: 600; line-height: 1.9;
}
.share-guide .sg-text svg { width: 19px; height: 19px; vertical-align: -4px; color: #ffd166; }
.share-guide .sg-hint {
  position: absolute; top: 194px; right: 22px;
  font-size: 12.5px; color: rgba(255, 255, 255, 0.75);
}
.share-guide .sg-status {
  position: absolute; left: 22px; right: 22px; top: 238px;
  padding: 9px 12px; border-radius: 10px;
  font-size: 12.5px; line-height: 1.6;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.88);
}
.share-guide .sg-status.ok { color: #9ff0b6; border-color: rgba(122, 235, 160, 0.4); }
.share-guide .sg-status.fail { color: #ffd0c9; border-color: rgba(255, 138, 120, 0.45); }
.share-guide .sg-status.loading { color: #ffe6a8; }
.share-guide .sg-close {
  position: absolute; left: 50%; transform: translateX(-50%);
  bottom: calc(30px + env(safe-area-inset-bottom));
  width: 140px; height: 42px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.55); background: transparent;
  color: #fff; font-size: 14px; font-weight: 600;
}
