/* 自托管 Zhi Mang Xing（行书），本地化、不再依赖 Google Fonts，字体样式与昨天一致 */
@font-face {
  font-family: 'Zhi Mang Xing';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/ZhiMangXing.woff2') format('woff2');
}
.nav-logo-text, .footer-logo {
  font-family: 'Zhi Mang Xing', 'STXingkai', '华文行楷', 'Xingkai SC', cursive !important;
}

/* 2026-08-18：footer 统一简洁版（logo + 标语 + 6 个水平链接 + 底部 3 行），移动端/桌面端同款 */
.footer { background: #0F2440; color: rgba(255,255,255,.6); padding: 36px 24px 24px; line-height: 1.5; text-align: center; }
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-logo {
  font-family: 'Zhi Mang Xing', 'STXingkai', '华文行楷', 'Xingkai SC', cursive;
  font-size: 1.6rem;
  color: #fff;
  margin-bottom: 4px;
  line-height: 1.4;
}
.footer-tagline { font-size: .85rem; color: rgba(255,255,255,.5); margin: 0 0 18px; }
.footer-nav {
  list-style: none; margin: 0 0 24px; padding: 0;
  display: flex; gap: 22px; justify-content: center; flex-wrap: wrap;
}
.footer-nav a {
  color: rgba(255,255,255,.7); font-size: .9rem;
  text-decoration: none; transition: color .2s;
}
.footer-nav a:hover { color: #fff; }
.footer-bottom { padding-top: 18px; border-top: 1px solid rgba(255,255,255,.1); }
.footer-bottom p { text-align: center; margin: 4px 0; }
.footer-bottom a { color: rgba(255,255,255,.5); text-decoration: none; }
.footer-bottom a:hover { color: #fff; }
/* 兼容旧版 footer-grid（4列）写法：内容自动堆叠居中，避免老页面渲染异常 */
.footer-grid { display: none; }

.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(59,130,246,0.12);
  box-shadow: 0 2px 20px rgba(0,0,0,0.04);
  transition: background 0.3s, box-shadow 0.3s;
}
.navbar.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.10); }
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: flex-end;   /* logo + 右组靠右排列 */
  gap: 24px;
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 14px;                  /* 胶囊导航与右侧按钮之间保持舒适间距 */
  flex-shrink: 0;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.4rem;
  font-weight: 700;
  color: #1E3A8A;
  z-index: 2;
  flex-shrink: 0;
  margin-right: auto;          /* logo 在最左 */
}
.nav-pill { margin-left: 0; }
.nav-logo-icon {
  width: 42px; height: 42px;
  border-radius: 50%;
  overflow: hidden;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  flex-shrink: 0;
}
/* 2026-08-14：logo 已是居中圆形，去掉 top/height 偏移，避免视觉错位 */
.nav-logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
}
.nav-logo-text {
  font-family: 'Zhi Mang Xing', 'STXingkai', '华文行楷', 'Xingkai SC', cursive !important;
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1;
  color: #1E3A8A;
  letter-spacing: 2px;
  display: inline-block;
}
.nav-pill {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 999px;
  padding: 6px 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  border: 1px solid rgba(255,255,255,0.6);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  color: #1E3A8A;
  transition: all 0.2s;
  white-space: nowrap;
}
.nav-links a:hover {
  color: #0B3DC2;
  background: rgba(59,130,246,0.10);
}
/* 2026-08-18：去掉导航栏链接浏览器默认下划线（避免 hover 时出现蓝色下划线，胶囊风格） */
.nav-logo, .nav-logo:hover,
.nav-pill a, .nav-pill a:hover, .nav-pill a:focus, .nav-pill a:active,
.nav-dropdown-menu a, .nav-dropdown-menu a:hover,
.nav-quick a, .nav-quick a:hover,
.nav-actions a, .nav-actions a:hover,
.mobile-menu a, .mobile-menu a:hover{ text-decoration: none; }
.nav-dropdown { position: relative; }
.nav-dropdown > a { display: inline-flex; align-items: center; gap: 4px; }
.nav-dropdown > a::after {
  content: '▾';
  font-size: 0.75em;
  margin-top: -2px;
  transition: transform 0.2s;
}
.nav-dropdown:hover > a::after { transform: translateY(2px); }
/* 悬停桥接：覆盖父级与菜单之间的间隙，防止鼠标移动时菜单消失 */
.nav-dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 180px;
  height: 16px;
  background: transparent;
  pointer-events: auto;
  z-index: 1000;
}
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 240px;
  background: #fff;
  border-radius: 18px;
  padding: 12px;
  box-shadow: 0 12px 36px rgba(0,0,0,0.12);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.18s, transform 0.18s, visibility 0s linear 0.18s;
  z-index: 1001;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  transition: opacity 0.18s, transform 0.18s, visibility 0s;
}
.nav-dropdown-menu a {
  display: block !important;
  padding: 10px 14px !important;
  border-radius: 12px !important;
  font-size: 0.92rem !important;
  color: #1E3A8A !important;
  white-space: normal;
}
.nav-dropdown-menu a:hover { background: #EFF6FF !important; }

/* ===== MEGA MENU（仿 papa.com 来少长集） ===== */
.nav-dropdown-menu.mega {
  min-width: 340px;
  padding: 16px;
}
.mega-item {
  position: relative;
  padding: 12px 14px;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.15s;
}
.mega-item:hover { background: #EFF6FF; }
/* 机构合作：直接链接版（无二级子菜单） */
.mega-item.mega-link {
  display: block;
  text-decoration: none;
  padding: 12px 14px !important;
}
.mega-item.mega-link .mega-item-title::after { content: ''; }
.mega-item-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: #1E3A8A;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mega-item-title::after {
  content: '›';
  font-size: 1.1rem;
  color: #1E3A8A;
  font-weight: 400;
}
.mega-item-desc {
  font-size: 0.82rem;
  color: #6B7280;
  line-height: 1.4;
}
.mega-sub {
  position: absolute;
  top: -8px;
  left: 100%;
  min-width: 220px;
  background: #fff;
  border-radius: 14px;
  padding: 8px;
  box-shadow: 0 12px 36px rgba(0,0,0,0.14);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-6px);
  transition: opacity 0.18s, transform 0.18s;
  z-index: 1002;
}
.mega-item.has-sub:hover .mega-sub,
.mega-item.has-sub:focus-within .mega-sub {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}
.mega-sub a {
  display: flex !important;
  align-items: center !important;
  padding: 9px 14px !important;
  border-radius: 10px !important;
  font-size: 0.9rem !important;
  color: #1E3A8A !important;
  font-weight: 500 !important;
  white-space: nowrap;
}
.mega-sub a::before {
  content: '·';
  margin-right: 8px;
  color: #3B82F6;
  font-weight: 700;
}
.mega-sub a:hover { background: #EFF6FF !important; }

@media (max-width: 1024px) {
  .mega-sub { display: none; }
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 2;
}
.nav-login-btn {
  display: inline-flex;
  align-items: center;
  padding: 12px 26px;
  background: #1E3A8A;
  color: #fff !important;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  transition: all 0.2s;
  box-shadow: 0 4px 14px rgba(30,58,138,0.25);
}
.nav-login-btn:hover { background: #0B3DC2; transform: translateY(-1px); box-shadow: 0 6px 18px rgba(30,58,138,0.35); }

/* 注册：胶囊内高亮 */
.nav-register-btn {
  background: linear-gradient(135deg, #3B82F6 0%, #1E3A8A 100%) !important;
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(30,58,138,0.25);
}
.nav-register-btn:hover { background: linear-gradient(135deg, #2563EB 0%, #0B3DC2 100%) !important; }
.nav-dropdown-menu .register-group-title {
  display: block;
  padding: 6px 14px 4px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #9CA3AF;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.nav-burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  background: #1E3A8A;   /* 2026-08-18 方案 B：深蓝按钮，与导航主题色一致 */
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 14px rgba(30,58,138,0.35);
  flex-shrink: 0;
  position: relative;  /* 承载 nav-burger-badge */
}
.nav-burger:hover { background: #0B3DC2; transform: translateY(-1px); }
/* 2026-08-18 方案 B：汉堡按钮右上角新消息未读数角标（鲜红高对比） */
.nav-burger-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 21px;
  height: 21px;
  padding: 0 6px;
  border-radius: 999px;
  background: #EF4444;
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  line-height: 21px;
  text-align: center;
  box-shadow: 0 0 0 2px #fff;
  pointer-events: none;
  z-index: 1;
}
.nav-burger > span:not(.nav-burger-badge) {
  display: block;
  width: 22px; height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s;
}
/* badge 为第 1 个子元素，三根线依次为 2/3/4（用 :not(.nav-burger-badge) 排除角标参与间距计算） */
.nav-burger > span:not(.nav-burger-badge) + span { margin-top: 5px; }
.nav-burger.active span:nth-child(2) { transform: translateY(7px) rotate(45deg); }
.nav-burger.active span:nth-child(3) { opacity: 0; }
.nav-burger.active span:nth-child(4) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu {
  display: none;
  position: fixed;
  top: 86px; left: 16px; right: 16px;
  background: #fff;
  border-radius: 22px;
  padding: 14px;
  box-shadow: 0 12px 36px rgba(0,0,0,0.12);
  z-index: 999;
}
.mobile-menu.active { display: block; }
.mobile-menu a {
  display: block;
  padding: 14px 18px;
  font-size: 1rem;
  color: #1E3A8A;
  border-radius: 14px;
  font-weight: 500;
}
.mobile-menu a:hover { background: #EFF6FF; }
.mobile-menu-divider { height: 1px; background: #f0f0f0; margin: 6px 12px; }
.mobile-menu .mobile-login { background: #1E3A8A; color: #fff !important; text-align: center; margin-top: 6px; }
.mobile-menu .mobile-login:hover { background: #0B3DC2 !important; }

@media (max-width: 768px) {
  .nav-pill { display: none; }
  .nav-burger { display: inline-flex; }
}

/* 2026-08-18：768–1024px（平板/小窗 PC）胶囊导航紧凑化，避免溢出 */
@media (min-width: 768px) and (max-width: 1024px) {
  .nav-inner { padding: 12px 20px; gap: 14px; }
  .nav-links a { padding: 8px 13px; font-size: .88rem; }
  .nav-logo-text { font-size: 1.6rem; }
  .nav-login-btn { padding: 10px 18px; font-size: .9rem; }
}

/* 2026-08-18：手机端导航条快捷入口（<768px 显示，≥768px 隐藏） */
.nav-quick {
  display: none;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}
.nav-quick a {
  font-size: .86rem;
  font-weight: 600;
  color: #1E3A8A;
  padding: 8px 11px;
  border-radius: 999px;
  white-space: nowrap;
  transition: background .2s;
}
.nav-quick a:hover { background: rgba(59,130,246,.10); }
@media (max-width: 768px) {
  .nav-inner { gap: 10px; padding: 12px 14px; }
  .nav-logo-text { font-size: 1.5rem; }
  .nav-logo-icon { width: 36px; height: 36px; }
  .nav-actions { gap: 6px; }
  .nav-burger { width: 46px; height: 46px; }
  /* 2026-08-18：手机端"联系我们"收进汉堡二级菜单，不在导航条上直接显示（排除 szyouNavQuickLogin 游客登录按钮） */
  .nav-actions > a.nav-login-btn:not(#szyouNavQuickLogin) { display: none !important; }
  /* 2026-08-18：手机端顶部快捷入口（首页/广场/研学/预约），次要项收进汉堡菜单。
     必须写在 .nav-quick 基线(display:none)之后，确保覆盖生效 */
  .nav-quick { display: flex; }
}
@media (max-width: 420px) {
  .nav-quick { gap: 0; }
  .nav-quick a { font-size: .78rem; padding: 7px 7px; }
  .nav-logo-text { font-size: 1.35rem; letter-spacing: 1px; }
}

/* ===== 会话态（注册=登录）===== */
.nav-session { display: inline-flex; align-items: center; gap: 14px; }
.nav-user { color: var(--primary, #1E3A8A); font-weight: 600; font-size: 15px; white-space: nowrap; max-width: 260px; overflow: hidden; text-overflow: ellipsis; padding-right: 2px; }
.nav-login-btn[data-auth="logout"] { background: #fff; color: var(--primary, #1E3A8A) !important; border: 1px solid var(--primary, #1E3A8A); box-shadow: none; }
.nav-login-btn[data-auth="logout"]:hover { background: var(--primary, #1E3A8A); color: #fff !important; }
.mobile-menu-user { padding: 10px 4px 12px; color: var(--primary, #1E3A8A); font-weight: 700; font-size: 0.95rem; border-bottom: 1px solid #eee; margin-bottom: 8px; }

@media (max-width: 1024px) {
  .nav-session { gap: 8px; }
  .nav-user { font-size: 14px; max-width: 200px; }
}

/* 2026-08-18：手机端导航条游客「登录」由 nav-quick 第 1 项（applySession 动态切换文本/onclick）承担；「联系我们」≤768 隐藏收进汉堡 */
@media (max-width: 768px) {
  .nav-actions > a[href="/contact.html"] { display: none !important; }
}

/* ===== 预约 / 资料 全局弹窗 ===== */
.bk-mask { position: fixed; inset: 0; background: rgba(15,30,60,.45); backdrop-filter: blur(4px); z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 20px; opacity: 0; pointer-events: none; transition: opacity .2s; }
.bk-mask.show { opacity: 1; pointer-events: auto; }
.bk-modal { background: #fff; border-radius: 24px; max-width: 640px; width: 100%; max-height: calc(100vh - 40px); /* 桌面端兜底（排除 padding 20px 上下） */ max-height: calc(100dvh - 40px); /* 移动端现代浏览器（排除地址栏） */ overflow-y: auto; padding: 32px 32px 28px; position: relative; box-shadow: 0 24px 70px rgba(15,30,60,.25); transform: translateY(12px); transition: transform .2s; }
.bk-mask.show .bk-modal { transform: translateY(0); }
.bk-close { position: absolute; top: 14px; right: 16px; width: 36px; height: 36px; border: none; border-radius: 50%; background: #F1F5F9; color: #475569; font-size: 20px; cursor: pointer; }
.bk-close:hover { background: #E2E8F0; }
.bk-head h3 { font-size: 1.4rem; color: var(--primary, #1E3A8A); margin-bottom: 4px; }
.bk-head p { color: #64748B; font-size: .92rem; margin-bottom: 18px; }
.bk-identity { display: flex; align-items: center; gap: 10px; background: #EFF6FF; border-radius: 14px; padding: 10px 16px; margin-bottom: 16px; color: var(--primary, #1E3A8A); font-weight: 600; font-size: .95rem; }
.bk-cats { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.bk-cat { border: 1px solid #E2E8F0; border-radius: 999px; padding: 8px 16px; font-size: .9rem; color: var(--primary, #1E3A8A); cursor: pointer; background: #fff; font-weight: 600; font-family: inherit; }
.bk-cat.active { background: var(--primary, #1E3A8A); color: #fff; border-color: var(--primary, #1E3A8A); }
.bk-items { display: flex; gap: 8px; flex-wrap: wrap; }
.bk-chip { border: 1px solid #E2E8F0; border-radius: 999px; padding: 7px 14px; font-size: .86rem; color: #334155; cursor: pointer; background: #F8FAFC; }
.bk-chip.selected { background: #EFF6FF; border-color: #3B82F6; color: var(--primary, #1E3A8A); font-weight: 600; }
.bk-row { display: flex; gap: 12px; }
.bk-row .bk-group { flex: 1; }
.bk-group { margin-bottom: 14px; }
.bk-label { display: block; font-size: .86rem; font-weight: 600; color: #334155; margin-bottom: 6px; }
.bk-label .req { color: #DC2626; }
.bk-input { width: 100%; border: 1px solid #E2E8F0; border-radius: 12px; padding: 11px 14px; font-size: .95rem; font-family: inherit; outline: none; box-sizing: border-box; }
.bk-input:focus { border-color: #3B82F6; }
textarea.bk-input { min-height: 74px; resize: vertical; }
.bk-submit { width: 100%; border: none; border-radius: 999px; padding: 14px; background: var(--primary, #1E3A8A); color: #fff; font-size: 1rem; font-weight: 700; cursor: pointer; margin-top: 4px; font-family: inherit; }
.bk-submit:hover { background: #0B3DC2; }
.bk-submit:disabled { opacity: .6; cursor: not-allowed; }
.bk-msg { margin-top: 12px; font-size: .9rem; display: none; text-align: center; }
.bk-msg.show { display: block; }
.bk-msg.success { color: #16A34A; }
.bk-msg.error { color: #DC2626; }
.bk-note { text-align: center; color: #64748B; font-size: .95rem; line-height: 1.9; padding: 10px 0 20px; }

/* 服务总价（指定陪伴师时实时计算） */
.bk-total { display: flex; flex-direction: column; gap: 4px; margin-top: 10px; padding: 12px 16px; background: linear-gradient(135deg, #EFF6FF, #E0F2FE); border: 1px solid #BFDBFE; border-radius: 12px; font-size: .88rem; }
.bk-total-label { color: #1E40AF; font-weight: 600; line-height: 1.5; }
.bk-total-rule { color: #64748b; font-size: .78rem; font-weight: 500; line-height: 1.5; }
.bk-total-val { font-weight: 800; color: #0b5fa5; font-size: 1.4rem; white-space: nowrap; text-align: right; line-height: 1.2; }

/* 资料弹窗 */
.pf-row { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid #F1F5F9; font-size: .92rem; }
.pf-row .k { color: #64748B; flex-shrink: 0; }
.pf-row .v { color: #1f2937; text-align: right; word-break: break-all; }
.pf-sec { font-size: .8rem; font-weight: 700; color: #9CA3AF; margin: 16px 0 4px; letter-spacing: 1px; }
.pf-book { border: 1px solid #E2E8F0; border-radius: 12px; padding: 10px 14px; margin-bottom: 8px; font-size: .88rem; }
.pf-book.pf-trade { transition: background .15s, border-color .15s, box-shadow .15s; }
.pf-book.pf-trade:hover { background: #F8FAFC; border-color: #93C5FD; box-shadow: 0 4px 12px rgba(30,58,138,.08); }
.pf-book .t { font-weight: 700; color: var(--primary, #1E3A8A); }
.pf-book .m { color: #64748B; font-size: .82rem; margin: 2px 0 6px; }
.pf-tag { display: inline-block; border-radius: 999px; padding: 1px 10px; font-size: .78rem; font-weight: 600; }
.pf-tag.pending { background: #FEF3C7; color: #B45309; }
.pf-tag.confirmed { background: #DCFCE7; color: #15803D; }
.pf-tag.completed { background: #DBEAFE; color: #1D4ED8; }
.pf-banner { background: #FEF3C7; color: #92400E; border-radius: 12px; padding: 10px 14px; font-size: .88rem; margin-bottom: 12px; }

/* 会员等级与升级 */
.pf-level-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 6px 0 14px; }
.pf-level { display: inline-flex; align-items: center; gap: 6px; background: #F3F4F6; color: #4B5563; border-radius: 999px; padding: 4px 12px; font-size: .82rem; font-weight: 700; }
.pf-level.super { background: #FEF3C7; color: #B45309; }
.pf-upgrade-btn { border: none; border-radius: 999px; padding: 6px 14px; background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%); color: #fff; font-size: .82rem; font-weight: 700; cursor: pointer; }
.pf-upgrade-btn:hover { background: linear-gradient(135deg, #D97706 0%, #B45309 100%); }
.pf-edit-btn { border: 1px solid #E2E8F0; border-radius: 999px; padding: 5px 12px; background: #fff; color: #1E3A8A; font-size: .8rem; font-weight: 600; cursor: pointer; }
.pf-edit-btn:hover { background: #EFF6FF; }

/* 超级会员权益弹窗 */
.super-benefits { text-align: center; }
.super-benefits h4 { margin: 0 0 10px; color: #1E3A8A; font-size: 1.1rem; }
.super-benefits .sub { color: #64748B; font-size: .88rem; margin-bottom: 16px; }
.super-watch { background: #F8FAFC; border-radius: 16px; padding: 16px; margin-bottom: 16px; }
.super-watch img { width: 100%; max-width: 260px; border-radius: 12px; margin-bottom: 12px; }
.super-watch .name { font-weight: 800; color: #1E3A8A; margin-bottom: 8px; }
.super-params { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; text-align: left; font-size: .82rem; }
.super-params .p { background: #fff; border-radius: 8px; padding: 8px 10px; color: #334155; }
.super-params .p b { color: #1E3A8A; }
.super-gift { background: #ECFDF5; border-radius: 12px; padding: 12px 14px; color: #15803D; font-size: .9rem; font-weight: 700; margin-bottom: 16px; text-align: left; }
.super-price { font-size: 1.6rem; font-weight: 900; color: #DC2626; margin-bottom: 4px; }
.super-price small { font-size: .8rem; color: #6B7280; font-weight: 500; }

/* 已完成/可认领预约的操作按钮 */
.pf-book-actions { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; align-items: center; }
.pf-book-actions button,
.pf-book-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: .8rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  min-width: 76px;
  transition: all .18s ease;
  line-height: 1.2;
}
.pf-book-actions .btn-again {
  background: linear-gradient(180deg, #2563EB 0%, #1E3A8A 100%);
  color: #fff;
  box-shadow: 0 2px 6px rgba(30, 58, 138, .22);
}
.pf-book-actions .btn-again:hover {
  background: linear-gradient(180deg, #1D4ED8 0%, #172554 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(30, 58, 138, .28);
}
.pf-book-actions .btn-others {
  background: #fff;
  color: #1E3A8A;
  border: 1px solid #1E3A8A;
}
.pf-book-actions .btn-others:hover {
  background: #1E3A8A;
  color: #fff;
  transform: translateY(-1px);
}
.pf-book-actions .btn-ignore {
  background: #fff;
  color: #B91C1C;
  border: 1px solid #FCA5A5;
}
.pf-book-actions .btn-ignore:hover {
  background: #FEF2F2;
  border-color: #DC2626;
  transform: translateY(-1px);
}
.pf-book-actions button:active,
.pf-book-actions a:active { transform: translateY(0); }

/* 资料编辑表单 */
.pf-edit-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.pf-edit-grid.full { grid-template-columns: 1fr; }
.pf-edit-grid .pf-field { display: flex; flex-direction: column; gap: 4px; }
.pf-edit-grid label { font-size: .78rem; color: #64748B; font-weight: 600; }
.pf-edit-grid input, .pf-edit-grid select, .pf-edit-grid textarea { border: 1px solid #E2E8F0; border-radius: 10px; padding: 9px 11px; font-size: .88rem; font-family: inherit; outline: none; }
.pf-edit-grid input:focus, .pf-edit-grid select:focus, .pf-edit-grid textarea:focus { border-color: #3B82F6; }
.pf-edit-grid textarea { resize: vertical; min-height: 60px; }
.pf-edit-btns { display: flex; gap: 10px; margin-top: 14px; }
.pf-edit-btns button { flex: 1; border: none; border-radius: 999px; padding: 11px; font-size: .9rem; font-weight: 700; cursor: pointer; font-family: inherit; }
.pf-edit-btns .save { background: #1E3A8A; color: #fff; }
.pf-edit-btns .cancel { background: #F1F5F9; color: #475569; }

/* 姓名可点击 + 通知角标 */
.nav-user-link { cursor: pointer; }
.nav-user-link:hover { text-decoration: underline; }
.nav-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: #EF4444; color: #fff; font-size: .7rem; font-weight: 700; margin-left: 6px; vertical-align: 2px; }
/* 2026-08-20：聊天按钮角标（navChatBadge / mobileChatBadge）—— 复用汉堡角标的红圈+数字样式，之前漏定义导致无色 */
.nav-chat-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 6px;
  margin-left: 4px;
  border-radius: 999px;
  background: #EF4444;
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 0 0 2px #fff;
}

/* 预约提交成功完成页 */
.bk-success-panel { text-align: center; padding: 18px 8px 8px; }
.bk-success-icon { font-size: 3rem; line-height: 1; margin-bottom: 12px; }
.bk-success-title { font-size: 1.15rem; font-weight: 700; color: #16A34A; margin-bottom: 8px; }
.bk-success-desc { color: #64748B; font-size: .92rem; line-height: 1.6; margin-bottom: 18px; }
.bk-success-match { background: #EFF6FF; color: var(--primary, #1E3A8A); border-radius: 12px; padding: 12px 16px; font-size: .9rem; margin-bottom: 22px; }

@media (max-width: 640px) {
  .bk-modal { padding: 24px 18px; }
  .bk-row { flex-direction: column; gap: 0; }
}

/* 2026-08-20：全局轻量 toast（顶部居中飘出 + 自动消失） */
.szyou-toast {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(-12px);
  z-index: 99999;
  background: #1f2937;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  padding: 12px 22px;
  border-radius: 10px;
  box-shadow: 0 8px 28px rgba(0,0,0,.22);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  max-width: 86vw;
  text-align: center;
  letter-spacing: .2px;
}
.szyou-toast.szyou-toast-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.szyou-toast.szyou-toast-ok { background: #10B981; }
.szyou-toast.szyou-toast-err { background: #EF4444; }
.szyou-toast.szyou-toast-info { background: #1f2937; }

/* ===== 2026-08-20：移动端弹窗全屏化修复（兼容 iOS Safari / 国产浏览器内核 100vh 含地址栏问题）===== */
@media (max-width: 768px) {
  /* 弹窗遮罩：从顶部对齐 + 安全区 padding */
  .bk-mask {
    align-items: flex-start;
    padding: 12px;
    padding-top: max(12px, env(safe-area-inset-top));
    padding-bottom: max(12px, env(safe-area-inset-bottom));
  }
  /* 弹窗本体：拉满移动端高度 + 滚动回归 */
  .bk-modal, .sq-modal, .pp-modal, .rm-modal {
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);  /* dvh 在 iOS 15+ / Android Chrome 108+ 排除地址栏 */
    width: 100%;
    margin: 0 auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: 24px 18px 20px;
    box-sizing: border-box;
  }
  /* 内部内容容器：不能撑高超出父级 */
  .sq-detail, .pp-detail {
    max-height: 100%;
    overflow: visible;
  }
  /* 列表区可滚动（详情行多时） */
  .sq-d-rows, .pp-rows {
    overflow: visible;
  }
  /* 关闭按钮：放大触摸区（移动端 44px 标准） */
  .bk-close {
    top: 10px; right: 10px;
    width: 40px; height: 40px;
  }
  /* 整页滚动锁定：防止弹窗打开时背景滚穿（移动端） */
  html, body { height: 100%; overscroll-behavior: contain; }
}
