/* ========== 通用子页（会员展示 / 入会申请） ========== */
.page-hero {
  position: relative; padding: 140px 0 70px; overflow: hidden; color: #fff;
  background: radial-gradient(900px 500px at 80% -20%, rgba(43,140,255,.35), transparent 60%),
              linear-gradient(160deg, #061a3a, #0d3b8c);
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { font-size: clamp(30px, 4.5vw, 50px); font-weight: 900; }
.page-hero p { color: #cfe0ff; margin-top: 12px; max-width: 640px; }

/* 会员展示页 */
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 36px; }
.filter-bar button { padding: 9px 20px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font-weight: 700; color: var(--ink-2); cursor: pointer; transition: all .2s; }
.filter-bar button.active { background: var(--blue-600); color: #fff; border-color: var(--blue-600); }
.member-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 22px; }
.member-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: all .3s; }
.member-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.member-card .top { height: 90px; background: linear-gradient(135deg, var(--blue-700), var(--cyan-400)); position: relative; }
.member-card .ava { width: 72px; height: 72px; border-radius: 18px; background: #fff; color: var(--blue-600); display: grid; place-items: center; font-weight: 900; font-size: 24px; position: absolute; left: 22px; bottom: -28px; box-shadow: var(--shadow-md); }
.member-card .body { padding: 40px 22px 24px; }
.member-card .body h3 { font-size: 17px; font-weight: 800; }
.member-card .body .ind { display: inline-block; margin: 8px 0 12px; background: rgba(19,102,224,.08); color: var(--blue-600); font-size: 12.5px; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.member-card .body p { color: var(--muted); font-size: 13.5px; }

/* 入会申请表单 */
.apply-wrap { display: grid; grid-template-columns: 1fr 360px; gap: 40px; align-items: start; }
.apply-form { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 34px; box-shadow: var(--shadow-sm); }
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 700; margin-bottom: 8px; font-size: 14.5px; }
.field label .req { color: var(--red-600); margin-left: 3px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 12px; font-size: 15px;
  font-family: inherit; transition: border-color .2s, box-shadow .2s; background: #fbfdff;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(43,140,255,.12); }
.field textarea { min-height: 110px; resize: vertical; }
.field .err { color: var(--red-600); font-size: 12.5px; margin-top: 6px; display: none; }
.field.invalid .err { display: block; }
.field.invalid input, .field.invalid textarea { border-color: var(--red-500); }
.apply-side .box { background: linear-gradient(160deg, var(--blue-800), var(--blue-600)); color: #fff; border-radius: 20px; padding: 28px; box-shadow: var(--shadow-md); }
.apply-side .box h3 { font-size: 19px; font-weight: 800; margin-bottom: 14px; }
.apply-side .box ul { list-style: none; }
.apply-side .box li { padding: 9px 0; font-size: 14px; border-bottom: 1px dashed rgba(255,255,255,.2); display: flex; gap: 10px; }
.apply-side .box li:last-child { border-bottom: none; }
.apply-success { text-align: center; padding: 30px 10px; }
.apply-success .check { width: 86px; height: 86px; border-radius: 50%; background: rgba(22,163,74,.12); color: #16a34a; display: grid; place-items: center; font-size: 46px; margin: 0 auto 18px; animation: pop .5s; }
@keyframes pop { from{transform:scale(.4);opacity:0} to{transform:scale(1);opacity:1} }

@media (max-width: 960px){
  .member-grid { grid-template-columns: 1fr 1fr; }
  .apply-wrap { grid-template-columns: 1fr; gap: 26px; }
}
@media (max-width: 640px){
  .page-hero { padding: 96px 0 46px; }
  .page-hero h1 { font-size: 28px; }
  .page-hero p { font-size: 14px; }
  .member-grid { grid-template-columns: 1fr; gap: 16px; }
  /* 分类筛选改为横向滚动，避免多行换行占高 */
  .filter-bar { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; gap: 8px;
    padding: 2px 2px 10px; margin-bottom: 24px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .filter-bar::-webkit-scrollbar { display: none; }
  .filter-bar button { flex: 0 0 auto; white-space: nowrap; padding: 8px 18px; }
  .apply-form { padding: 22px 18px; border-radius: 16px; }
  .field { margin-bottom: 16px; }
  .field label { font-size: 14px; }
  .apply-side .box { padding: 22px 18px; border-radius: 16px; }
}

/* 会员子页 LOGO：与主页保持同一视觉尺寸 */
.member-card .ava.has-logo { padding: 0; overflow: hidden; box-sizing: border-box; }
.member-card .ava .ava-img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: inherit; }

/* 会员子页卡片跳转 */
a.member-card { text-decoration: none; color: inherit; display: block; }
.member-card.is-link { cursor: pointer; }
.member-card .mc-go { position: absolute; right: 14px; top: 12px; color: #fff; font-size: 17px; font-weight: 800; opacity: .9; text-shadow: 0 1px 4px rgba(0,0,0,.25); }
