/* ============ 升级样式：会员登录/注册/中心 + 右侧联系方式模块 ============ */

/* 导航中的登录/注册/会员入口 */
.nav-menu .nav-link,
.menu .nav-link {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  margin-left: 6px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  transition: all .2s ease;
}
.menu .nav-link:hover { color: var(--brand); background: rgba(45,91,255,.08); }
.menu .nav-register {
  background: var(--brand-grad);
  color: #fff !important;
  box-shadow: 0 6px 18px rgba(45,91,255,.30);
}
.menu .nav-register:hover { filter: brightness(1.06); }
.menu .nav-member { color: var(--gold); }

/* 登录 / 注册 页面 */
.auth-section { padding: 70px 0 90px; background: radial-gradient(1200px 500px at 50% -10%, rgba(45,91,255,.10), transparent), var(--cream); min-height: 60vh; }
.auth-card {
  max-width: 440px; margin: 0 auto; background: #fff; border-radius: var(--radius);
  padding: 38px 36px 30px; box-shadow: var(--shadow-lg); border: 1px solid var(--line);
}
.auth-logo { text-align: center; margin-bottom: 14px; }
.auth-logo img { height: 56px; object-fit: contain; }
.auth-card h2 { text-align: center; font-size: 24px; margin-bottom: 6px; }
.auth-sub { text-align: center; color: var(--muted); font-size: 14px; margin-bottom: 22px; }
.auth-form label { display: block; font-size: 13px; color: var(--ink); margin: 14px 0 6px; font-weight: 600; }
.auth-form input {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-size: 15px; outline: none; transition: border-color .2s; background: #FBFCFF;
}
.auth-form input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(45,91,255,.12); }
.auth-err { color: #d8453b; font-size: 13px; min-height: 18px; margin-top: 10px; }
.auth-btn { width: 100%; margin-top: 18px; padding: 13px; font-size: 16px; }
.auth-foot { text-align: center; font-size: 13px; color: var(--muted); margin-top: 18px; }
.auth-foot a, .auth-note a, .member-card a { color: var(--brand); text-decoration: none; }
.auth-note { text-align: center; font-size: 12px; color: var(--muted); margin-top: 10px; }

/* 会员中心 */
.member-wrap { max-width: 920px; margin: 0 auto; padding: 40px 0 70px; }
.member-head {
  display: flex; align-items: center; gap: 16px; padding: 22px 24px; background: #fff;
  border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); margin-bottom: 22px;
}
.member-avatar {
  width: 58px; height: 58px; border-radius: 50%; flex: 0 0 auto;
  background: var(--brand-grad); color: #fff; font-size: 26px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.member-id { flex: 1; }
.member-id h2 { font-size: 20px; margin-bottom: 4px; }
.member-id p { color: var(--muted); font-size: 13px; }
.member-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; }
.member-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow); }
.member-card h3 { font-size: 17px; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.lead-item { padding: 12px 0; border-bottom: 1px dashed var(--line); }
.lead-item:last-child { border-bottom: none; }
.lead-title { font-weight: 600; color: var(--ink); }
.lead-meta { font-size: 13px; color: var(--muted); margin-top: 4px; }
.member-list { list-style: none; padding: 0; margin: 0 0 16px; }
.member-list li { padding: 9px 0; font-size: 14px; border-bottom: 1px dashed var(--line); }
.muted { color: var(--muted); font-size: 14px; }

/* 右侧联系方式小模块 */
.contact-rail {
  position: fixed; right: 0; top: 50%; transform: translateY(-50%);
  z-index: 80; display: flex; align-items: center;
}
.cr-tab {
  writing-mode: vertical-rl; text-orientation: upright; letter-spacing: 3px;
  background: var(--brand-grad); color: #fff; border: none; cursor: pointer;
  padding: 16px 8px; border-radius: 14px 0 0 14px; font-size: 14px; font-weight: 700;
  box-shadow: -6px 6px 20px rgba(45,91,255,.30);
}
.cr-panel {
  position: absolute; right: 100%; top: 50%; width: 250px;
  transform: translateY(-50%) translateX(24px); opacity: 0; pointer-events: none;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 16px; transition: all .28s ease;
}
.contact-rail .cr-panel.open { opacity: 1; pointer-events: auto; transform: translateY(-50%) translateX(0); }
.cr-head { font-size: 15px; font-weight: 700; margin-bottom: 12px; color: var(--ink); padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.cr-item { display: flex; align-items: center; gap: 12px; padding: 9px 6px; border-radius: 10px; text-decoration: none; color: var(--ink); transition: background .2s; }
.cr-item:hover { background: rgba(45,91,255,.07); }
.cr-item img { width: 34px; height: 34px; object-fit: contain; border-radius: 8px; background: var(--cream); }
.cr-item span { display: flex; flex-direction: column; font-size: 14px; font-weight: 600; }
.cr-item small { font-weight: 400; font-size: 11px; color: var(--muted); }
.cr-qr { margin-top: 10px; text-align: center; border-top: 1px dashed var(--line); padding-top: 10px; }
.cr-qr img { width: 96px; height: 96px; object-fit: contain; }
.cr-qr span { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; }

@media (max-width: 768px) {
  .member-grid { grid-template-columns: 1fr; }
  .contact-rail { top: auto; bottom: 90px; transform: none; }
  .cr-panel { top: auto; bottom: 0; transform: translateY(24px); }
  .contact-rail .cr-panel.open { transform: translateY(0); }
}

/* 律师头像图片 */
.lawyer-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

/* 业务图标 / 专业领域图标（使用原站图片） */
.area-icon img, .area-row-icon img { width: 44px; height: 44px; object-fit: contain; border-radius: 10px; }
.area-row-icon img { width: 40px; height: 40px; }

/* 专业委员会详情页 */
.detail-head { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.detail-icon img { width: 76px; height: 76px; object-fit: contain; }
.kicker { color: var(--brand); font-size: 13px; letter-spacing: 2px; font-weight: 700; margin: 0 0 6px; }
.detail-head h1 { font-size: 30px; margin: 0; }
.detail-sub { color: var(--muted); margin-top: 4px; font-size: 15px; }
.detail-desc { font-size: 16px; line-height: 1.9; color: var(--ink); max-width: 900px; }
.detail-data { display: flex; gap: 34px; margin: 22px 0 10px; }
.detail-data div { text-align: center; }
.detail-data strong { display: block; font-size: 26px; color: var(--brand); }
.detail-data span { font-size: 13px; color: var(--muted); }
.detail-h2 { font-size: 22px; margin: 32px 0 16px; position: relative; padding-left: 14px; }
.detail-h2::before { content: ''; position: absolute; left: 0; top: 4px; bottom: 4px; width: 5px; border-radius: 3px; background: var(--brand-grad); }
.group-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.group-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); scroll-margin-top: 90px; transition: transform .2s, box-shadow .2s; }
.group-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.group-card h3 { font-size: 16px; color: var(--brand); margin: 0 0 8px; }
.group-card p { font-size: 14px; line-height: 1.8; color: var(--muted); margin: 0; }

@media (max-width: 768px) {
  .group-grid { grid-template-columns: 1fr; }
  .detail-data { gap: 20px; }
}
