/* ===== 站内统一顶栏账号胶囊 + 导航弹层（v2.53） =====
   首页 / 工作台 / 用户中心 右上角同一套：
   - 白色胶囊（渐变圆头像 + 昵称），整颗呼吸缩放，提示可点
   - 用户中心 PC 端只显示「胶囊 + 红色退出」，不弹层（左侧本来就有导航）
   - 弹层里每个栏目右侧带一行小字（积分 / 题数 / 工单数 / 退出） */

.ptwn { display: inline-flex; align-items: center; gap: 8px; }

/* 胶囊本体 */
.ptwn-pill {
  display: inline-flex; align-items: center; gap: 7px;
  height: 36px; padding: 2px 12px 2px 2px;
  border: 0; border-radius: 999px; background: #fff; cursor: pointer;
  font: inherit; color: #1f2430;
  box-shadow: 0 2px 8px rgba(17, 24, 39, .10), inset 0 0 0 1px rgba(17, 24, 39, .06);
  animation: ptwnBreath 2.6s ease-in-out infinite;
  transition: filter .16s ease;
  will-change: transform;
}
.ptwn-pill:hover { filter: brightness(1.03); }
.ptwn-pill:active { filter: brightness(.97); }
.ptwn-av {
  flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, #7443f5, #2f6bff);
  color: #fff; font-size: 13px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}
.ptwn-name { font-size: 12.5px; font-weight: 500; max-width: 116px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 呼吸：整颗一起缩放 + 光圈扩散 */
@keyframes ptwnBreath {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 2px 8px rgba(17, 24, 39, .10), inset 0 0 0 1px rgba(17, 24, 39, .06), 0 0 0 0 rgba(47, 107, 255, 0);
  }
  50% {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(47, 107, 255, .24), inset 0 0 0 1px rgba(47, 107, 255, .18), 0 0 0 4px rgba(47, 107, 255, .09);
  }
}
@media (prefers-reduced-motion: reduce) { .ptwn-pill { animation: none; } }

/* 红色「退出」胶囊：无阴影、常规字重、比胶囊再小一号 */
.ptwn-quit {
  height: 30px; padding: 0 13px; border: 0; border-radius: 999px; cursor: pointer;
  font: inherit; font-size: 11.5px; font-weight: 400; color: #fff; letter-spacing: .2px;
  background: linear-gradient(135deg, #ff6a55, #e33329);
  box-shadow: none;
  transition: filter .16s ease;
}
.ptwn-quit:hover { filter: brightness(1.08); }
.ptwn-quit:active { filter: brightness(.96); }

/* 遮罩：毛玻璃 */
.ptwn-mask {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(17, 24, 39, .26);
  backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px);
  animation: ptwnMaskIn .22s ease both;
}
.ptwn-mask.is-closing { animation: ptwnMaskOut .18s ease both; }

/* 菜单层：贴屏幕右上角的圆角卡片 */
.ptwn-menu {
  position: fixed; z-index: 81; right: 12px; top: 12px;
  width: min(76vw, 268px); padding: 6px 8px 10px;
  background: #fff; border-radius: 14px;
  box-shadow: 0 18px 44px rgba(17, 24, 39, .18), 0 0 0 1px rgba(17, 24, 39, .04);
  transform-origin: 92% 0; opacity: 0;
  font: 14px/1.5 -apple-system, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: #1f2430;
}
.ptwn-menu.is-open { animation: ptwnPopIn .24s cubic-bezier(.18, .9, .3, 1) both; }
.ptwn-menu.is-closing { animation: ptwnPopOut .18s cubic-bezier(.4, 0, .9, .4) both; }

.ptwn-close {
  position: absolute; top: -8px; right: -8px; width: 26px; height: 26px;
  border: 0; padding: 0; border-radius: 50%; cursor: pointer;
  background: #fff; color: #6b7280; font-size: 16px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(17, 24, 39, .18), 0 0 0 1px rgba(17, 24, 39, .06);
}
.ptwn-close:hover { color: #1f2430; background: #f7f9fc; }

.ptwn-head { display: flex; align-items: center; gap: 8px; padding: 5px 4px 9px; border-bottom: 1px solid #edf0f6; margin-bottom: 6px; }
.ptwn-head .ptwn-av { width: 24px; height: 24px; font-size: 11.5px; }
.ptwn-head-name { flex: 1 1 auto; min-width: 0; font-size: 12.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 栏目行：左图标 + 名称（可伸缩），右侧小字信息固定靠右 */
.ptwn-item {
  display: flex; align-items: center; gap: 9px; width: 100%;
  padding: 9px 11px; border: 0; border-radius: 10px; background: transparent;
  font: inherit; font-size: 13.5px; color: #39404f; text-align: left; cursor: pointer;
}
.ptwn-item:hover { background: #f4f6fb; }
.ptwn-item.is-on { background: rgba(47, 107, 255, .09); color: #2f6bff; font-weight: 600; }
.ptwn-item > svg { flex: 0 0 16px; width: 16px; height: 16px; opacity: .66; }
.ptwn-item.is-on > svg { opacity: 1; }
.ptwn-label { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; }

/* 右侧信息：一律小字号、右对齐 */
.ptwn-side {
  flex: 0 0 auto; margin-left: auto;
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 11px; font-weight: 400; color: #8a93a5; white-space: nowrap;
}
.ptwn-coin { color: #2f6bff; }
.ptwn-coin b { font-size: 11.5px; font-weight: 600; }
.ptwn-coin .ptwn-coin-ico { width: 12px; height: 12px; }
.ptwn-badge { background: #eef2ff; color: #3b6ef5; border-radius: 999px; padding: 2px 8px; font-size: 11px; font-weight: 500; }
.ptwn-dim { color: #9aa3b2; }
.ptwn-side-quit {
  flex: 0 0 auto; margin-left: auto; border: 0; cursor: pointer; font: inherit;
  padding: 4px 9px; border-radius: 8px; font-size: 11px; font-weight: 400; line-height: 1;
  color: #fff; background: linear-gradient(135deg, #ff7452, #e8452f); box-shadow: none;
}
.ptwn-side-quit:hover { filter: brightness(1.06); }
.ptwn-side-quit:active { filter: brightness(.95); }

@keyframes ptwnPopIn { from { opacity: 0; transform: translateY(-10px) scale(.9); } to { opacity: 1; transform: none; } }
@keyframes ptwnPopOut { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(-8px) scale(.93); } }
@keyframes ptwnMaskIn { from { opacity: 0 } to { opacity: 1 } }
@keyframes ptwnMaskOut { from { opacity: 1 } to { opacity: 0 } }

/* 蓝底顶栏（工作台）上胶囊投影更明显一点 */
.topbar .ptwn-pill { box-shadow: 0 3px 14px rgba(9, 24, 64, .20), inset 0 0 0 1px rgba(17, 24, 39, .06); }

@media (max-width: 768px) {
  .ptwn { gap: 6px; }
  .ptwn-pill { height: 30px; padding: 2px 10px 2px 2px; gap: 6px; }
  .ptwn-av { width: 25px; height: 25px; font-size: 12px; }
  .ptwn-name { font-size: 12px; max-width: 86px; }
  .ptwn-quit { height: 28px; padding: 0 12px; font-size: 11px; }
  .ptwn-menu { right: 12px; top: 12px; width: min(78vw, 268px); }
  .ptwn-item { padding: 9px 10px; font-size: 13px; }
}

/* 首页顶栏配合：胶囊插在「进入工作台」按钮左侧，窄屏下让标题收缩而不是被压住 */
/* style.css 里的 .logo 是给工作台顶栏用的 28×28 白方块，首页的 .logo 是「方块 + 文字」容器，需要还原 */
.landing-page .nav > .ptw-logo { min-width: 0; }
.landing-page .nav .ptwn { flex: 0 0 auto; }
@media (max-width: 768px) {
  .landing-page .nav { display: flex; align-items: center; gap: 8px; padding: 12px 14px; }
  .landing-page .nav > .ptw-logo { flex: 1 1 auto; min-width: 0; overflow: hidden; }
  .landing-page .ptw-logo-text { overflow: hidden; text-overflow: ellipsis; }
  .landing-page .nav .btn-primary { flex: 0 0 auto; padding: 7px 11px; font-size: 12px; }
}
@media (min-width: 769px) {
  .landing-page .nav .ptwn { margin-left: auto; margin-right: 10px; }
}

/* 手机端用户中心顶栏收边：品牌只留「试卷转换助手」，版本徽章与「· 用户中心」让位给胶囊 */
@media (max-width: 768px) {
  .user-page .user-top-build { display: none !important; }
  .user-page .user-top-brand em { display: none !important; }
}


/* ===== 三页统一的 logo（占位方块 + 文字，可点回首页） ===== */
.ptw-logo {
  display: flex; align-items: center; gap: 9px;
  text-decoration: none; color: inherit; cursor: pointer;
  flex: 0 0 auto; min-width: 0; -webkit-tap-highlight-color: transparent;
}
.ptw-logo-mark {
  flex: 0 0 auto; width: 28px; height: 28px; border-radius: 8px; background: #fff;
  display: block; box-shadow: inset 0 0 0 1px rgba(17, 24, 39, .06), 0 2px 8px rgba(17, 24, 39, .08);
}
.ptw-logo-text {
  font-size: 17px; font-weight: 700; letter-spacing: .3px; color: #111827;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ptw-logo-em { font-style: normal; font-size: 12px; font-weight: 400; color: #8a93a5; white-space: nowrap; margin-left: 2px; }
/* 蓝底顶栏（工作台）：文字反白，方块去掉投影 */
.topbar .ptw-logo-text { color: #fff; }
.topbar .ptw-logo-mark { box-shadow: none; }
/* 用户中心顶栏左内边距对齐（和原来的 .user-top-brand 一致） */
.user-page .user-top-inner .ptw-logo { margin-right: auto; }

@media (max-width: 768px) {
  .ptw-logo { gap: 8px; }
  .ptw-logo-mark { width: 26px; height: 26px; border-radius: 7px; }
  .ptw-logo-text { font-size: 15px; letter-spacing: .2px; }
  .ptw-logo-em { display: none; }        /* 手机端不放「· 用户中心」，把位置留给胶囊 */
}

/* 自绘悬浮提示（黑色半透明圆角 + 白字），替代浏览器默认 title */
.ptw-tip {
  position: fixed; z-index: 9500; pointer-events: none;
  background: rgba(17, 24, 39, .86); color: #fff;
  font: 12px/1.2 -apple-system, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  padding: 5px 9px; border-radius: 7px; white-space: nowrap;
  box-shadow: 0 6px 18px rgba(17, 24, 39, .22);
  opacity: 0; transform: translateY(-3px); transition: opacity .14s ease, transform .14s ease;
}
.ptw-tip.is-on { opacity: 1; transform: none; }

/* PC 用户中心：胶囊点击时左右抖两下（这里没有弹层，给点反馈） */
.ptwn-pill.is-shake { animation: ptwnShake .42s cubic-bezier(.36, .07, .19, .97) 1; }
@keyframes ptwnShake {
  0%, 100% { transform: translateX(0) scale(1); }
  15% { transform: translateX(-6px) scale(1.02); }
  35% { transform: translateX(5px) scale(1.02); }
  55% { transform: translateX(-4px) scale(1.02); }
  75% { transform: translateX(3px) scale(1.01); }
  90% { transform: translateX(-1px) scale(1); }
}

/* ============ v2.80：手机端导航改底部抽屉 ============ */
.ptwn-desc { display: none; }
.ptwn-quitbtn { display: none; }

@media (max-width: 768px) {
  .ptwn-menu {
    left: 0; right: 0; top: auto; bottom: 0;
    width: 100%; padding: 8px 10px calc(14px + env(safe-area-inset-bottom));
    border-radius: 18px 18px 0 0;
    transform-origin: 50% 100%;
    box-shadow: 0 -12px 40px rgba(17, 24, 39, .22);
  }
  .ptwn-menu.is-open { animation: ptwnSheetIn .28s cubic-bezier(.16, .9, .3, 1) both; }
  .ptwn-menu.is-closing { animation: ptwnSheetOut .18s ease both; }

  .ptwn-close {
    top: 14px; right: 12px; width: 28px; height: 28px;
    background: #f2f4f9; box-shadow: none; color: #7c8598;
  }
  .ptwn-head { padding: 10px 6px 12px; margin-bottom: 4px; gap: 10px; }
  .ptwn-head .ptwn-av { width: 30px; height: 30px; font-size: 13px; }
  .ptwn-head-name { font-size: 14px; font-weight: 700; padding-right: 30px; }

  .ptwn-item {
    padding: 12px 10px; gap: 11px; border-radius: 10px;
    border-bottom: 1px solid #f1f5f9;
  }
  .ptwn-item:last-of-type { border-bottom: 0; }
  .ptwn-item.is-on { background: #eff6ff; border-bottom-color: transparent; }
  .ptwn-item > svg { width: 18px; height: 18px; flex: 0 0 18px; opacity: .7; }
  .ptwn-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
  .ptwn-label { font-size: 14px; font-weight: 600; color: #1f2430; }
  .ptwn-desc { display: block; font-style: normal; font-size: 11.5px; color: #94a3b8; font-weight: 400; }
  .ptwn-item.is-on .ptwn-label, .ptwn-item.is-on .ptwn-side, .ptwn-item.is-on .ptwn-coin { color: #3b82f6; }
  .ptwn-side { font-size: 11.5px; }
  .ptwn-side-quit { display: none; }

  .ptwn-quitbtn {
    display: block; width: 100%; height: 44px; margin-top: 10px;
    border: 0; border-radius: 12px; background: #fef2f2; color: #dc2626;
    font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
  }
  .ptwn-quitbtn:active { background: #fde2e2; }
}

@keyframes ptwnSheetIn {
  from { opacity: 0; transform: translateY(100%); }
  to   { opacity: 1; transform: none; }
}
@keyframes ptwnSheetOut {
  from { opacity: 1; transform: none; }
  to   { opacity: 0; transform: translateY(100%); }
}

@media (max-width: 768px) {
  .ptwn-menu { width: auto; max-width: none; box-sizing: border-box; left: 0 !important; right: 0 !important; }
  .ptwn-menu * { box-sizing: border-box; }
}

/* ============ v2.89：手机端导航弹窗 → 居中圆角按钮网格（控制中心式） ============ */
@keyframes stagger-in {
  from { opacity: 0; transform: scale(.8) translateY(10px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes ptwnGridIn {
  from { opacity: 0; transform: scale(.92); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes ptwnGridOut {
  from { opacity: 1; transform: scale(1); }
  to   { opacity: 0; transform: scale(.96); }
}

@media (max-width: 768px) {
  /* 全屏毛玻璃遮罩 */
  .ptwn-mask {
    background: rgba(0, 0, 0, .30);
    -webkit-backdrop-filter: blur(10px) saturate(1.05);
    backdrop-filter: blur(10px) saturate(1.05);
  }

  /* 面板：屏幕正中，2 列 3 行网格；居中用 translate，动画只碰 transform */
  .ptwn-menu {
    left: 50% !important; right: auto !important;
    top: 50% !important; bottom: auto !important;
    translate: -50% -50%;
    width: min(86vw, 360px) !important; max-width: none;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 18px;
    border-radius: 28px;
    background: rgba(255, 255, 255, .96);
    -webkit-backdrop-filter: blur(14px) saturate(1.2);
    backdrop-filter: blur(14px) saturate(1.2);
    box-shadow: 0 26px 70px -20px rgba(9, 16, 34, .40), 0 0 0 1px rgba(255, 255, 255, .65);
    transform-origin: 50% 50%;
  }
  .ptwn-menu.is-open { animation: ptwnGridIn .3s cubic-bezier(.34, 1.4, .64, 1) both; }
  .ptwn-menu.is-closing { animation: ptwnGridOut .18s ease both; }
  .ptwn-menu * { box-sizing: border-box; }

  /* 头像行与说明文字都不要，保持 2×3 干净 */
  .ptwn-head,
  .ptwn-desc,
  .ptwn-side-quit { display: none !important; }

  /* 六个大方块 */
  .ptwn-item {
    position: relative;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 9px; height: 104px; width: 100%; padding: 0;
    border: 1px solid #eef1f6; border-radius: 20px;
    background: #fff; color: #1f2430;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .05);
    animation: stagger-in .3s cubic-bezier(.34, 1.56, .64, 1) backwards;
    will-change: transform, opacity;
    transition: background .16s ease, border-color .16s ease, box-shadow .16s ease, transform .12s ease;
  }
  .ptwn-item > svg { width: 26px; height: 26px; flex: 0 0 26px; color: #3b82f6; opacity: 1; }
  .ptwn-item .ptwn-text { display: block; }
  .ptwn-label {
    display: block; flex: none; font-size: 13.5px; font-weight: 600;
    color: #1f2430; text-align: center; white-space: nowrap;
  }
  .ptwn-item:active { transform: scale(.97); }
  .ptwn-item.is-on {
    background: #eff6ff; border-color: #cfe0ff;
    box-shadow: 0 4px 14px rgba(59, 130, 246, .14);
  }
  .ptwn-item.is-on .ptwn-label,
  .ptwn-item.is-on > svg { color: #2f6bff; }

  /* 右上角极小圆点：有数据才显示（积分 / 错题 蓝，待回复 红） */
  .ptwn-item .ptwn-side {
    position: absolute; top: 12px; right: 12px;
    min-width: 8px; width: 8px; height: 8px; padding: 0; margin: 0;
    border-radius: 999px; background: #3b82f6;
    font-size: 0; line-height: 0; overflow: hidden;
    box-shadow: 0 0 0 2px #fff;
  }
  .ptwn-item .ptwn-side > * { display: none; }
  .ptwn-item[data-key="tickets"] .ptwn-side { background: #ef4444; }
  .ptwn-item .ptwn-side.ptwn-dim { display: none; }

  /* 第 6 格：退出登录（浅红图标 + 浅红字） */
  .ptwn-quitbtn {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px;
    height: 104px; width: 100%; margin: 0; padding: 0;
    border: 1px solid #fdebea; border-radius: 20px;
    background: #fff; color: #e5484d;
    font: 600 13.5px/1.2 -apple-system, 'PingFang SC', system-ui, sans-serif;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .05);
    cursor: pointer;
    animation: stagger-in .3s cubic-bezier(.34, 1.56, .64, 1) backwards;
    will-change: transform, opacity;
  }
  .ptwn-quitbtn::before { content: '⏻'; font-size: 24px; line-height: 1; color: #f7adaf; }
  .ptwn-quitbtn:active { transform: scale(.97); background: #fff8f8; }

  /* 底部关闭：居中胶囊 */
  .ptwn-close {
    order: 99; grid-column: 1 / -1; justify-self: center;
    position: static; top: auto; right: auto;
    width: 96px; height: 38px; margin-top: 2px; padding: 0;
    border: 1px solid #e8ecf3; border-radius: 999px;
    background: #f4f6fa; color: #6b7280;
    font-size: 15px; font-weight: 500;
    box-shadow: none;
  }
  .ptwn-close:hover { background: #eceff6; }

  /* 级联延迟：第 1~6 格依次 0.05 ~ 0.3s（close 是第 1 个 button，格子从第 2 个开始） */
  .ptwn-menu .ptwn-item:nth-of-type(2) { animation-delay: .05s; }
  .ptwn-menu .ptwn-item:nth-of-type(3) { animation-delay: .10s; }
  .ptwn-menu .ptwn-item:nth-of-type(4) { animation-delay: .15s; }
  .ptwn-menu .ptwn-item:nth-of-type(5) { animation-delay: .20s; }
  .ptwn-menu .ptwn-item:nth-of-type(6) { animation-delay: .25s; }
  .ptwn-menu .ptwn-quitbtn { animation-delay: .30s; }
}

/* ============ v2.90：手机端导航去白板 → 6 张卡片直接浮在毛玻璃上 ============ */
@media (max-width: 768px) {
  /* 外层只剩网格：无底色、无阴影、无圆角、无内边距 */
  .ptwn-menu {
    background: transparent !important;
    box-shadow: none !important;
    border: 0 !important;
    border-radius: 0 !important;
    padding: 0 !important;
    gap: 12px !important;
    width: min(88vw, 372px) !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }

  /* 六张独立白卡：80% 白 + 自身毛玻璃 + 柔和投影，无边框 */
  .ptwn-item {
    height: 96px; gap: 8px;
    background: rgba(255, 255, 255, .80);
    border: 0;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
    -webkit-backdrop-filter: blur(12px) saturate(1.15);
    backdrop-filter: blur(12px) saturate(1.15);
  }
  .ptwn-item > svg { width: 26px; height: 26px; flex: 0 0 26px; }
  .ptwn-item.is-on {
    background: rgba(230, 240, 255, .92);
    border: 0;
    box-shadow: 0 8px 24px rgba(59, 130, 246, .12);
  }

  /* 右上角恢复「栏目右侧信息」的文字徽标（不是圆点） */
  .ptwn-item .ptwn-side {
    position: absolute; top: 9px; right: 9px;
    width: auto; height: auto; min-width: 0; padding: 1px 6px;
    border-radius: 999px; box-shadow: none; overflow: visible;
    background: rgba(59, 130, 246, .12); color: #3b82f6;
    font-size: 10.5px; line-height: 1.45; font-weight: 600;
    display: inline-flex; align-items: center; gap: 3px;
  }
  .ptwn-item .ptwn-side > * { display: inline; }
  .ptwn-item .ptwn-side .ptwn-coin-ico { display: inline-block; width: 10px; height: 10px; opacity: .9; }
  .ptwn-item .ptwn-side b { font-size: 10.5px; font-weight: 600; }
  .ptwn-item[data-key="tickets"] .ptwn-side {
    background: rgba(239, 68, 68, .12); color: #ef4444;
  }

  /* 第 6 格：同样尺寸的白色卡片，浅红图标与文字 */
  .ptwn-quitbtn {
    height: 96px;
    border: 0; border-radius: 16px;
    background: rgba(255, 255, 255, .80);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
    -webkit-backdrop-filter: blur(12px) saturate(1.15);
    backdrop-filter: blur(12px) saturate(1.15);
    color: #ee8b8f;
  }
  .ptwn-quitbtn::before { color: #f5b0b3; }
  .ptwn-quitbtn:active { background: rgba(255, 246, 246, .9); }

  /* 关闭：圆形红底 */
  .ptwn-close {
    order: 99; grid-column: 1 / -1; justify-self: center;
    position: static; width: 44px; height: 44px; margin: 2px 0 0; padding: 0;
    border: 0; border-radius: 50%;
    background: #ef4444; color: #fff;
    font-size: 18px; font-weight: 500; line-height: 44px;
    box-shadow: 0 8px 22px rgba(239, 68, 68, .38);
  }
  .ptwn-close:hover { background: #e0393f; color: #fff; }
  .ptwn-close:active { transform: scale(.94); }
}

/* ============ v2.91：导航卡片内容垂直居中 + 图标统一 + 收窄 + 关闭换图标 ============ */
/* PC 端关闭按钮里的 SVG 尺寸（替换原来的文字 ×） */
.ptwn-close svg { display: block; width: 14px; height: 14px; }

@media (max-width: 768px) {
  /* 面板再收窄一点，卡片接近正方形 */
  .ptwn-menu { width: min(84vw, 340px) !important; }

  /* 卡片内容：严格垂直 + 水平居中 */
  .ptwn-item {
    justify-content: center;
    align-items: center;
    gap: 7px;
    padding: 0;
    line-height: 1;
  }
  .ptwn-item > svg { width: 24px; height: 24px; flex: 0 0 24px; margin: 0 auto; }
  .ptwn-item .ptwn-text {
    display: flex; align-items: center; justify-content: center;
    flex: 0 0 auto;
  }
  .ptwn-label {
    display: block; flex: none;
    font-size: 13px; line-height: 1.15; text-align: center;
  }

  /* 退出登录与其它卡同尺寸、同图标大小 */
  .ptwn-quitbtn {
    justify-content: center; gap: 7px; line-height: 1;
    font-size: 13px;
  }
  .ptwn-quitbtn::before { font-size: 24px; line-height: 1; }

  /* 关闭：圆形红底 + SVG 图标，不再用文字 × */
  .ptwn-close {
    display: flex; align-items: center; justify-content: center;
    font-size: 0; line-height: 0;
  }
  .ptwn-close svg { width: 18px; height: 18px; }
}

/* ===== v3.10 品牌区：图标 + 中文名 + 英文名（两端与中文对齐）+ 竖线 + 描述（三页统一） ===== */
.brand-logo { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; min-width: 0; }
.brand-logo .logo-icon { display: block; height: 38px; width: auto; flex: 0 0 auto; }
.brand-logo .logo-brand { display: flex; flex-direction: column; justify-content: flex-start; }
.brand-logo .logo-title {
  font-size: 17px; font-weight: 800; line-height: 1.3; letter-spacing: .5px;
  color: #1e293b; white-space: nowrap;
}
.brand-logo .logo-en {
  display: flex; justify-content: space-between; width: 100%;
  font-size: 8.5px; line-height: 1.15; letter-spacing: 0;
  text-transform: uppercase; color: #94a3b8;
}
.brand-logo .logo-en i { font-style: normal; }
.brand-logo .logo-divider { flex: 0 0 auto; width: 1px; height: 20px; background: #e2e8f0; }
.brand-logo .logo-desc { font-size: 13px; font-weight: 400; color: #64748b; white-space: nowrap; }
/* 蓝底顶栏（工作台）反白 */
.topbar .brand-logo .logo-title { color: #fff; }
.topbar .brand-logo .logo-en { color: #c9d8ff; }
.topbar .brand-logo .logo-desc { color: #dbe5ff; }
.topbar .brand-logo .logo-divider { background: rgba(255,255,255,.28); }
/* 手机端：保住图标与中文名，收起竖线与描述 */
@media (max-width: 768px) {
  .brand-logo { gap: 8px; }
  .brand-logo .logo-icon { height: 30px; }
  .brand-logo .logo-title { font-size: 15px; letter-spacing: .4px; }
  .brand-logo .logo-en { font-size: 8.5px; }
  .brand-logo .logo-divider, .brand-logo .logo-desc { display: none; }
}
