/* portal 布局：container / header / mega / footer / doc 三栏 / drawer */

.pt-container {
  width: 100%;
  max-width: var(--w-container);
  margin: 0 auto;
  padding: 0 var(--sp-4);
}

/* 顶栏 / 页脚：大屏分别留 100px / 150px，避免贴边铺满 */
.pt-header .pt-container {
  max-width: none;
  padding-left: var(--w-header-gutter, 100px);
  padding-right: var(--w-header-gutter, 100px);
}
.pt-footer > .pt-container {
  max-width: none;
  padding-left: var(--w-footer-gutter, 150px);
  padding-right: var(--w-footer-gutter, 150px);
}

/* ---- 主壳 ---- */
.pt-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.pt-shell__main {
  flex: 1;
  padding: var(--sp-6) 0 var(--sp-12);
  /* 全站正文区：干净静态底，避免整页渐变动画造成视觉疲劳 */
  background: var(--c-bg-page, #fbfefe);
}
@media (prefers-reduced-motion: reduce) {
  .pt-shell__main,
  .pt-shell__main--flush,
  .pt-shell__main--flush::before,
  .pt-quiz-hero,
  .pt-tutorial-hero,
  .pt-center-hero { animation: none !important; }
}

/* ---- 顶栏 ---- */
.pt-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  height: var(--h-header);
  background: #fff;
  border-bottom: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 1px 0 rgba(0,0,0,.04);
  transition: background .3s ease, box-shadow .3s ease, height .3s ease, border-color .3s ease;
}
/* 首页顶栏压在首屏视频/轮播上：磨砂半透明，视频色能透上来。暗底用 ~45% 白，比链未云浅底的 63% 更透 */
body.pt-home .pt-header {
  position: fixed;
  left: 0; right: 0;
  background: rgba(255, 255, 255, .45);
  -webkit-backdrop-filter: saturate(1.6) blur(22px);
  backdrop-filter: saturate(1.6) blur(22px);
  border-bottom: 1px solid rgba(255, 255, 255, .16);
  box-shadow: none;
  height: 72px;
}
body.pt-home .pt-header.is-scrolled {
  background: rgba(255, 255, 255, .72);
  -webkit-backdrop-filter: saturate(1.4) blur(20px);
  backdrop-filter: saturate(1.4) blur(20px);
  border-bottom: 1px solid rgba(15, 23, 42, .06);
  box-shadow: 0 4px 16px rgba(15, 23, 42, .06);
  height: 64px;
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  body.pt-home .pt-header,
  body.pt-home .pt-header.is-scrolled {
    background: rgba(255, 255, 255, .88);
  }
}
@media (prefers-reduced-transparency: reduce) {
  body.pt-home .pt-header,
  body.pt-home .pt-header.is-scrolled {
    background: rgba(255, 255, 255, .94);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}
.pt-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}
.pt-brand {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  flex-shrink: 0;
  color: var(--c-text);
  font-weight: 700;
  font-size: var(--fs-md);
  letter-spacing: -.02em;
  line-height: 0;
}
.pt-brand:hover { color: var(--c-primary); opacity: .92; }
.pt-brand__logo {
  display: block;
  height: 36px;
  width: auto;
  max-width: min(220px, 52vw);
  object-fit: contain;
  background: none;
}
.pt-brand__logo--drawer {
  height: 32px;
  max-width: 200px;
}
.pt-brand__mark {
  width: 32px; height: 32px;
  border-radius: 10px;
  background: var(--c-gradient, linear-gradient(145deg, #5B9AFF 0%, var(--c-primary) 50%, #4A7FFF 100%));
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: var(--fs-sm); font-weight: 800;
  box-shadow: 0 6px 14px rgba(35, 97, 252, .28);
}
.pt-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
  height: 100%;
}
.pt-nav__item {
  position: relative;
  display: inline-flex;
  align-items: center;
  align-self: center;
  gap: 4px;
  padding: 8px 16px;
  height: auto;
  color: var(--c-text);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  border-radius: 8px;
  border-bottom: 0;
  transition: color .2s, background .2s;
}
.pt-nav__item:hover,
.pt-nav__item.is-open,
.pt-nav__item.is-active {
  color: var(--c-primary);
  background: var(--c-primary-soft);
}
.pt-nav__chevron {
  width: 14px; height: 14px;
  transition: transform var(--t-fast);
}
.pt-nav__item.is-open .pt-nav__chevron { transform: rotate(180deg); }
.pt-nav__badge {
  margin-left: 2px;
  padding: 0 6px;
  font-size: 10px;
  line-height: 16px;
  border-radius: var(--r-full);
  background: var(--c-accent);
  color: #fff;
}

.pt-header__tools {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-left: auto;
  flex-shrink: 0;
}
.pt-header__burger {
  display: none;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  border-radius: var(--r-md);
  color: var(--c-text);
}
.pt-header__burger:hover { background: var(--c-bg-page); }

/* ---- Mega Menu ---- */
.pt-mega {
  position: absolute;
  left: 0; right: 0;
  top: var(--h-header);
  z-index: var(--z-megamenu);
  background: var(--c-bg);
  border-bottom: 1px solid var(--c-border);
  box-shadow: 0 18px 40px rgba(26, 31, 54, .10);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity var(--t-base) var(--ease), transform var(--t-base) var(--ease), visibility var(--t-base);
  pointer-events: none;
}
.pt-mega.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
.pt-mega__inner {
  padding: var(--sp-6) 0 var(--sp-5);
}
.pt-mega__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--sp-5);
  max-width: 720px;
}
.pt-mega__group-title {
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--c-text-weak);
  letter-spacing: .06em;
  margin-bottom: var(--sp-3);
}
.pt-mega__list { display: flex; flex-direction: column; gap: 2px; }
.pt-mega__link {
  display: block;
  padding: 8px 10px;
  border-radius: var(--r-md);
  color: var(--c-text);
  font-size: var(--fs-base);
  font-weight: 500;
}
.pt-mega__link:hover {
  background: var(--c-primary-soft);
  color: var(--c-primary);
  text-decoration: none;
}
.pt-mega__foot {
  margin-top: var(--sp-5);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--c-border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  flex-wrap: wrap;
}
.pt-mega__foot a {
  font-weight: 600;
  font-size: var(--fs-sm);
}
.pt-mega__foot-muted {
  color: var(--c-text-weak) !important;
  font-weight: 500 !important;
}
.pt-mega__empty {
  margin: 0;
  font-size: var(--fs-sm);
  color: var(--c-text-weak);
}

/* 学习中心：贴导航的紧凑下拉（内容少，不必全宽 Mega） */
.pt-nav__drop {
  position: relative;
  display: flex;
  align-items: center;
  height: auto;
}
.pt-nav__drop:hover .pt-mega--compact,
.pt-nav__drop:focus-within .pt-mega--compact {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
.pt-mega--compact {
  left: 0;
  right: auto;
  top: 100%;
  width: 180px;
  margin-top: 8px;
  padding: 6px;
  border: 1px solid #e6e8f0;
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(40,60,140,.10);
  background: #fff;
}
/* 填补触发条与面板间隙，避免移入时误关闭 */
.pt-mega--compact::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -8px;
  height: 8px;
}
.pt-mega--compact .pt-mega__list {
  gap: 0;
}
.pt-mega--compact .pt-mega__link {
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  white-space: nowrap;
}
.pt-mega__foot--compact {
  margin-top: var(--sp-1);
  padding: var(--sp-2) var(--sp-3) var(--sp-1);
  border-top: 1px solid var(--c-border-light);
  justify-content: flex-start;
}
.pt-mega__foot--compact a {
  font-size: var(--fs-xs);
}

/* ---- 顶栏搜索 ---- */
.pt-search {
  position: relative;
  width: min(288px, 30vw);
  flex-shrink: 0;
}
.pt-search__input {
  width: 100%;
  height: 40px;
  padding: 0 14px 0 40px;
  border: 1px solid #c7d7f5;
  border-radius: var(--r-full);
  background: linear-gradient(180deg, #fff 0%, #f5f9ff 100%);
  font-size: 13px;
  font-weight: 500;
  color: var(--c-text);
  box-shadow:
    inset 0 1px 2px rgba(15, 23, 42, .04),
    0 1px 2px rgba(37, 99, 235, .06);
  transition: border-color var(--t-fast), background var(--t-fast), box-shadow var(--t-fast), width var(--t-fast);
}
.pt-search__input::placeholder {
  color: #64748b;
  font-weight: 500;
}
.pt-search__input:hover {
  border-color: #93b4fd;
  background: #fff;
  box-shadow:
    inset 0 1px 2px rgba(15, 23, 42, .03),
    0 0 0 3px rgba(37, 99, 235, .06);
}
.pt-search__input:focus {
  outline: none;
  border-color: var(--c-primary);
  background: #fff;
  box-shadow:
    0 0 0 4px var(--c-primary-soft),
    0 8px 20px rgba(37, 99, 235, .12);
}
.pt-search:focus-within .pt-search__icon {
  color: var(--c-primary);
}
.pt-search__icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 17px;
  height: 17px;
  color: #64748b;
  pointer-events: none;
}

.pt-header__auth {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.pt-header__auth .pt-btn--ghost {
  color: var(--c-text-sub);
  font-weight: 600;
}
.pt-header__auth .pt-btn--ghost:hover {
  color: var(--c-primary);
  background: var(--c-primary-soft);
}
.pt-header__auth .pt-btn--primary {
  box-shadow: 0 6px 14px rgba(35, 97, 252, .28);
  padding: 0 16px;
}

.pt-nav__item .pt-icon {
  display: none;
}

/* ---- 用户区 ---- */
.pt-user { position: relative; }
.pt-user__trigger {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 4px 8px 4px 4px;
  border-radius: var(--r-full);
  transition: background var(--t-fast);
}
.pt-user__trigger:hover,
.pt-user.is-open .pt-user__trigger { background: var(--c-bg-page); }
.pt-user__menu {
  position: absolute;
  right: 0; top: calc(100% + 8px);
  min-width: 200px;
  padding: var(--sp-2);
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  opacity: 0; visibility: hidden;
  transform: translateY(-4px);
  transition: opacity var(--t-fast), transform var(--t-fast), visibility var(--t-fast);
  z-index: var(--z-megamenu);
}
.pt-user.is-open .pt-user__menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.pt-user__menu a,
.pt-user__menu button {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  width: 100%;
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-md);
  color: var(--c-text);
  font-size: var(--fs-base);
  text-align: left;
}
.pt-user__menu a:hover,
.pt-user__menu button:hover {
  background: var(--c-primary-soft);
  color: var(--c-primary);
}
.pt-user__sep {
  height: 1px;
  margin: var(--sp-2) 0;
  background: var(--c-border-light);
}

/* ---- 页脚 ---- */
.pt-footer {
  padding: 44px 0 24px;
  border-top: 1px solid #e5e9f1;
  background: #f6f8fb;
  color: #5f6879;
  font-size: 13px;
}
.pt-footer__grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) repeat(var(--footer-cols, 4), minmax(96px, 1fr));
  gap: 32px 20px;
  margin-bottom: 36px;
  align-items: start;
}
.pt-footer__col {
  min-width: 0;
}
.pt-footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: #182033;
  font-size: 17px;
  font-weight: 800;
  line-height: 0;
}
.pt-footer__brand:hover { color: var(--c-primary); text-decoration: none; opacity: .92; }
.pt-footer__brand-logo {
  display: block;
  height: 44px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
}
.pt-footer__name {
  margin: 0 0 6px;
  color: #182033;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.4;
  max-width: 350px;
}
.pt-footer__tagline {
  margin: 0 0 8px;
  color: #3d4658;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.55;
  max-width: 350px;
}
.pt-footer__contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 14px;
  color: #747e90;
  font-size: 12px;
  line-height: 1.5;
}
.pt-footer__contact a { color: #747e90; }
.pt-footer__contact a:hover { color: var(--c-primary); }
.pt-footer__qr {
  display: flex;
  gap: 16px;
  margin-top: 16px;
}
.pt-footer__qr-box {
  width: 80px;
  height: 80px;
  background: #e6e8ec;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
  font-size: 11px;
  text-align: center;
}
.pt-footer__qr-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.pt-footer__qr-img {
  width: 88px;
  height: 88px;
  object-fit: contain;
  background: #fff;
  border: 1px solid #e6e8ec;
  border-radius: 8px;
  display: block;
}
.pt-footer__qr-label {
  color: #747e90;
  font-size: 12px;
  line-height: 1.3;
}
.pt-footer__powered {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #e2e4e8;
  color: #666;
  font-size: 12.5px;
  flex-wrap: wrap;
}
.pt-footer__powered img { height: 20px; width: auto; display: block; }
.pt-footer__powered a { color: #666; text-decoration: none; display: inline-flex; align-items: center; }
.pt-footer__brand-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: var(--c-primary);
  color: #fff;
  font-size: 13px;
  box-shadow: 0 6px 14px rgba(35, 97, 252, .2);
}
.pt-footer__desc {
  max-width: 350px;
  margin: 0;
  color: #747e90;
  font-size: 12px;
  line-height: 1.85;
}
.pt-footer__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 16px;
}
.pt-footer__badges span {
  padding: 4px 8px;
  border: 1px solid #e1e6ee;
  border-radius: 5px;
  background: #fff;
  color: #7a8495;
  font-size: 10px;
}
.pt-footer__title {
  margin-bottom: 16px;
  color: #20283a;
  font-size: 13px;
  font-weight: 800;
}
.pt-footer__links { display: flex; flex-direction: column; gap: 10px; }
.pt-footer__links a { color: #747e90; font-size: 12px; word-break: break-word; }
.pt-footer__links a:hover { color: var(--c-primary); }
.pt-footer__copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid #e1e6ee;
  color: #969eac;
  font-size: 11px;
}
.pt-footer__copy > span:first-child {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
}
.pt-footer__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
}
.pt-footer__copy a,
.pt-footer__beian { color: #7d8798; }
.pt-footer__copy a:hover,
.pt-footer__beian:hover { color: var(--c-primary); }
.pt-footer__beian { text-decoration: none; }
.pt-footer__beian--police,
.pt-footer__beian--icp {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  vertical-align: middle;
}
.pt-footer__police-icon,
.pt-footer__icp-icon {
  width: 16px;
  height: 16px;
  display: block;
  flex-shrink: 0;
  object-fit: contain;
}

/* ---- 文档三栏壳（P2 用，先占位） ---- */
.pt-doc-layout {
  display: grid;
  grid-template-columns: var(--w-doc-left) minmax(0, 1fr) var(--w-doc-right);
  gap: 0;
  max-width: 1440px;
  margin: 0 auto;
  min-height: calc(100vh - var(--h-header));
}
.pt-doc-layout__side,
.pt-doc-layout__toc {
  position: sticky;
  top: var(--h-header);
  height: calc(100vh - var(--h-header));
  overflow: auto;
  padding: var(--sp-5) var(--sp-4);
  background: var(--c-bg);
  border-right: 1px solid var(--c-border-light);
}
.pt-doc-layout__toc { border-right: 0; border-left: 1px solid var(--c-border-light); }
.pt-doc-layout__body {
  padding: var(--sp-6) var(--sp-8);
  max-width: 820px + var(--sp-16);
}

/* ---- 移动抽屉 ---- */
.pt-drawer {
  position: fixed;
  inset: 0;
  z-index: var(--z-drawer);
  pointer-events: none;
}
.pt-drawer.is-open { pointer-events: auto; }
.pt-drawer__mask {
  position: absolute; inset: 0;
  background: rgba(15, 23, 42, .4);
  opacity: 0;
  transition: opacity var(--t-base);
}
.pt-drawer.is-open .pt-drawer__mask { opacity: 1; }
.pt-drawer__panel {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: min(320px, 88vw);
  background: var(--c-bg);
  box-shadow: var(--sh-lg);
  transform: translateX(-100%);
  transition: transform var(--t-base) var(--ease);
  overflow: auto;
  padding: var(--sp-4);
}
.pt-drawer.is-open .pt-drawer__panel { transform: translateX(0); }

/* ---- 右侧贴边工具条：客服 + 回到顶部 ---- */
body.pt-work-modal-open .pt-cs { display: none; }
.pt-cs {
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: 420;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  pointer-events: none;
}
.pt-cs__dock {
  position: relative;
  z-index: 423;
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 12px 0 0 12px;
  box-shadow:
    -6px 10px 28px rgba(26, 82, 232, .26),
    inset 0 1px 0 rgba(255, 255, 255, .2);
}
.pt-cs__tab,
.pt-cs__top,
.pt-cs__pop,
.pt-cs__mask { pointer-events: auto; }
.pt-cs__tab,
.pt-cs__top {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 44px;
  margin: 0;
  border: 0;
  border-radius: 0;
  color: #fff;
  cursor: pointer;
  user-select: none;
  box-shadow: none;
  transition: background .2s var(--ease), filter .2s var(--ease);
}
.pt-cs__tab {
  padding: 14px 0 12px;
  background: linear-gradient(180deg, #5b8dff 0%, var(--c-primary) 52%, var(--c-primary-deep) 100%);
}
.pt-cs__top {
  max-height: 0;
  opacity: 0;
  padding: 0;
  gap: 0;
  overflow: hidden;
  pointer-events: none;
  background: #1b2436;
  transform: translateY(-8px);
  transition:
    max-height .36s var(--ease-out-soft),
    opacity .28s var(--ease),
    padding .36s var(--ease-out-soft),
    gap .36s var(--ease-out-soft),
    transform .36s var(--ease-out-soft);
}
.pt-cs.is-scrolled .pt-cs__top {
  max-height: 160px;
  opacity: 1;
  padding: 12px 0 11px;
  gap: 8px;
  pointer-events: auto;
  transform: none;
}
.pt-cs__tab:hover { filter: brightness(1.07); }
.pt-cs__top:hover { background: #111827; }
.pt-cs__tab:focus-visible,
.pt-cs__top:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -3px;
}
.pt-cs__tab[aria-expanded="true"] { filter: brightness(1.03); }
.pt-cs__tab-icon {
  display: block;
  width: 18px;
  height: 18px;
}
.pt-cs__tab-text {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  letter-spacing: .18em;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  font-family: var(--ff-base);
}
.pt-cs__top .pt-cs__tab-text { letter-spacing: .12em; }
.pt-cs__mask {
  position: fixed;
  inset: 0;
  z-index: 421;
  background: rgba(15, 20, 36, .12);
}
.pt-cs__pop {
  position: absolute;
  z-index: 422;
  right: 52px;
  top: 50%;
  bottom: auto;
  width: 268px;
  max-width: calc(100vw - 64px);
  background: #fff;
  border-radius: 14px;
  padding: 16px 16px 14px;
  box-shadow:
    0 18px 44px rgba(16, 24, 40, .18),
    0 0 0 1px rgba(16, 24, 40, .06);
  text-align: center;
  transform: translateY(-50%);
}
.pt-cs__pop:not([hidden]) {
  animation: pt-cs-in .28s var(--ease-out-soft);
}
.pt-cs__pop::after {
  content: "";
  position: absolute;
  right: -5px;
  top: 50%;
  width: 10px;
  height: 10px;
  background: #fff;
  transform: translateY(-50%) rotate(45deg);
  box-shadow: 3px -3px 6px rgba(16, 24, 40, .04);
}
.pt-cs__pop-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 12px;
  padding: 0 4px;
}
.pt-cs__close {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #8b93a7;
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
}
.pt-cs__close:hover { background: #f3f5f9; color: #1a2233; }
.pt-cs__title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #1a2233;
  text-align: left;
}
.pt-cs__pop img {
  width: 200px;
  height: 200px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  padding: 8px;
  background: #fff;
  border: 1px solid #eef1f6;
  border-radius: 8px;
}
.pt-cs__hint { margin: 10px 0 0; font-size: 12px; color: #747e90; }
@keyframes pt-cs-in {
  from { opacity: 0; transform: translateY(-50%) translateX(10px); }
  to { opacity: 1; transform: translateY(-50%) translateX(0); }
}
@media (prefers-reduced-motion: reduce) {
  .pt-cs__pop:not([hidden]) { animation: none; }
  .pt-cs__top {
    transition: none;
    transform: none;
  }
}
@media (max-width: 640px) {
  .pt-cs { top: 0; bottom: 0; }
  .pt-cs__tab,
  .pt-cs__top { width: 40px; }
  .pt-cs__tab { padding: 12px 0 10px; gap: 6px; }
  .pt-cs.is-scrolled .pt-cs__top { padding: 10px 0 9px; gap: 6px; }
  .pt-cs__tab-text { font-size: 11px; letter-spacing: .14em; }
  .pt-cs__pop { right: 48px; width: min(250px, calc(100vw - 56px)); }
  .pt-cs__pop img { width: 176px; height: 176px; }
}
.pt-drawer__nav a {
  display: block;
  padding: var(--sp-3);
  border-radius: var(--r-md);
  color: var(--c-text);
  font-weight: 500;
}
.pt-drawer__nav a:hover { background: var(--c-primary-soft); color: var(--c-primary); }
.pt-drawer__auth {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--c-border-light, #e8f2f1);
}
.pt-drawer__auth .pt-btn { width: 100%; justify-content: center; }

/* ---- 响应式 ---- */
@media (max-width: 1199px) {
  :root {
    --w-header-gutter: 48px;
    --w-footer-gutter: 72px;
    --w-page-gutter: 48px;
  }
  .pt-doc-layout { grid-template-columns: var(--w-doc-left) minmax(0, 1fr); }
  .pt-doc-layout__toc { display: none; }
  .pt-mega__grid { grid-template-columns: repeat(3, 1fr); }
  .pt-footer__grid { grid-template-columns: minmax(200px, 1.1fr) repeat(var(--footer-cols, 4), minmax(110px, 1fr)); gap: var(--sp-6); }
}
@media (max-width: 991px) {
  :root {
    --w-header-gutter: 24px;
    --w-footer-gutter: 24px;
    --w-page-gutter: 24px;
  }
  html { overflow-x: hidden; }
  .pt-nav { display: none; }
  .pt-search { width: min(220px, 34vw); }
  .pt-header__burger { display: inline-flex; }
  .pt-doc-layout { grid-template-columns: 1fr; }
  .pt-doc-layout__side { display: none; }
  .pt-mega { display: none; }
}
@media (max-width: 767px) {
  :root {
    --w-header-gutter: 16px;
    --w-footer-gutter: 16px;
    --w-page-gutter: 16px;
  }
  .pt-search { display: none; }
  .pt-brand__text { max-width: 88px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .pt-brand__logo { height: 32px; max-width: min(160px, 46vw); }
  .pt-footer__grid { grid-template-columns: 1fr 1fr; }
  .pt-footer__about { grid-column: 1 / -1; }
  .pt-footer__copy { align-items: flex-start; flex-direction: column; }
  .pt-shell__main { padding: var(--sp-4) 0 var(--sp-8); }
  .pt-container { padding-left: 16px; padding-right: 16px; }
}
@media (max-width: 480px) {
  .pt-footer__grid { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 430px) {
  .pt-header__inner { gap: 6px; }
  .pt-header__tools { gap: 4px; }
  .pt-header__auth .pt-btn--ghost { display: none; }
  .pt-user .pt-brand__text { display: none; }
}
