/* ============================================================
   Q桥网 · 门户首页样式
   主题：深绿门户（与站内浅绿护眼主题形成「门户→系统」层次）
   依赖：无外部依赖；花色/卡牌视觉沿用站内 style.css 的语义色
   ============================================================ */

/* ============================================================
   自托管中文字体（Q桥网 Web 子集）
   来源：Noto Sans CJK SC（SIL Open Font License 1.1）
   用途：为「品牌名 / 顶栏导航 / 按钮 / 页脚」等必现文字提供确定性字形。
        未覆盖的文字由下方 --pt-font 字体栈逐级回退，不会出现空白。
   体积：Regular 88KB + Bold 90KB，均带 font-display:swap
   ============================================================ */
@font-face {
  font-family: "QiaoWang Sans Web";
  src: url("../fonts/QiaoWangSans-Web-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "QiaoWang Sans Web";
  src: url("../fonts/QiaoWangSans-Web-Bold.woff2") format("woff2");
  font-weight: 700 900;
  font-style: normal;
  font-display: swap;
}

/* 统一字体栈：优先自托管中文字体 → 各平台系统中文字体 → 通用族兜底
   注意：此前字体栈只列了 PingFang SC / Microsoft YaHei / Segoe UI，
   在未安装上述字体的 Android、Linux 上会命中纯拉丁字体，
   中文因无字形而静默丢失（浏览器不再触发 CJK 回退），即「字体缺失」现象。 */
:root {
  --pt-font: "QiaoWang Sans Web",
             "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Heiti SC",
             "Noto Sans SC", "Noto Sans CJK SC", "Source Han Sans SC",
             "WenQuanYi Micro Hei", "Microsoft JhengHei",
             "Segoe UI", Roboto, sans-serif;

  --pt-green-900: #0b3b2c;   /* 最深：顶栏 */
  --pt-green-800: #0f4c39;   /* 门户主色 */
  --pt-green-700: #14604a;   /* 分区底 */
  --pt-green-600: #1a7458;   /* 卡片底 */
  --pt-line:      rgba(255,255,255,.10);
  --pt-text:      #eaf5ef;
  --pt-text-dim:  #9dc4b2;
  --pt-gold:      #c9a24b;   /* 立即参赛 */
  --pt-gold-d:    #b08d38;
  --pt-teal:      #2aa87a;   /* 查看排名 */
  --pt-teal-d:    #238c66;
  --pt-white:     #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* ★ 20261031backtop1：锚点跳转平滑滚动（配合 index.html 的 #ptTop 真实锚点） */
html { scroll-behavior: smooth; }

html, body { height: 100%; }

/* ★ 20261031mobilefit1：窄屏（微信内置浏览器）横向溢出适配（秋神截图：学员端内容左半被裁）
   三道防线：
   ① 禁用移动内核「字号自动放大」——微信按用户字体设置整页放大文本时，
      nowrap 行（导航/标题/按钮）会被撑得比视口宽，页面出现横向滚动、
      左移后内容看似被裁。text-size-adjust:100% 让文本始终按 CSS 字号渲染；
   ② 横向溢出硬护栏：即便某个元素真超宽，页面也不允许横向滚动
      （overflow-x:clip 优先，不生成滚动容器；不支持 clip 的老内核回落 hidden。
      本页无 position:sticky，两种写法都安全；抽屉菜单是 fixed 定位，不受影响）；
   ③ 见文件末尾 @media (max-width:480px) 的窄屏收紧规则。 */
html, body {
  -webkit-text-size-adjust: 100% !important;
  text-size-adjust: 100% !important;
  overflow-x: hidden;
  overflow-x: clip;
}

/* 返回顶部锚点本体：零高度、不占位、不产生任何视觉 */
#ptTop { height: 0; line-height: 0; font-size: 0; }

body {
  font-family: var(--pt-font);
  background: var(--pt-green-800);
  color: var(--pt-text);
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }

/* 表单控件默认不继承字体，需显式声明，否则出现「部分区域字体不一致」 */
button, input, select, textarea, optgroup { font-family: inherit; }

/* 花色语义色：严格对齐站内 style.css 的权威值（♠黑 / ♥红 / ♦橙红 / ♣绿）
   注意：此处曾误写为 .suit-s #1a1a1a / .suit-h #c0392b / .suit-d #d08a2e(金色) / .suit-c #1f8b58，
   与站内不一致；其中「方块=金色」在视觉上会被误认为黑桃，造成「花色颜色反了」。
   站内 2026-09-05 用户指定的方块色为 #FF5500，此处一并对齐。 */
.suit-s { color: #111; }
.suit-h { color: #d32f2f; }
.suit-d { color: #FF5500; }
.suit-c { color: #2e7d32; }

/* 站内同款别名，避免门户复用站内片段时花色丢色 */
.suit-spade   { color: #111; }
.suit-heart   { color: #d32f2f; }
.suit-diamond { color: #FF5500; }
.suit-club    { color: #2e7d32; }

/* ===================== 顶栏（横向平铺导航） ===================== */
/* 顶栏与 Hero 同底色、无分隔线；滚动后渐变实底，保证导航始终可读 */
.pt-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 68px;
  background: transparent;
  transition: background .25s, backdrop-filter .25s, box-shadow .25s;
}
.pt-header.scrolled {
  background: rgba(11,59,44,.94);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(255,255,255,.07);
}

.pt-header-inner {
  max-width: 1360px; height: 100%; margin: 0 auto;
  padding: 0 22px;
  display: flex; align-items: center; gap: 18px;
}

/* ---- 左侧品牌：纯金字，与 Hero 大标题同款渐变 ---- */
/* ⚠️ 2026-09-20 根治「网字缺角」：
   历史多轮误判为「容器宽度不够 / 字体子集缺字形 / 品牌区被压缩」，实际根因是
   **子元素 line-height: 1 把行盒压瘪**。品牌用 900 斜体字形，其墨迹框（ascent+descent）
   在本字体下需要约 33px，而 line-height:1 只给 27px（= font-size），
   多出的 6px 被行盒裁掉 —— 表现为「网」字下缘与右侧缺口。
   实测对照（1440×900，27px 字号）：
     line-height: 1        → 行盒 27px，内容需 33px  ⇒ 裁 6px（缺角）
     line-height: 1.25     → 行盒 33.75px，内容需 36px ⇒ 仍裁 2px
     line-height: normal   → 行盒 39px，内容需 39px  ⇒ 完整
   故改为 line-height: normal，并给子元素留出左右呼吸位，使渲染不依赖字体度量。 */
.pt-brand {
  display: inline-flex; align-items: center; gap: .06em;
  flex: 0 0 auto;
  flex-shrink: 0;
  white-space: nowrap;
  overflow: visible;
  padding: 4px 6px 6px 4px;                         /* 右侧/下方留白，防斜体字形越界被切 */
  margin-right: 2px;
}
.pt-brand-q,
.pt-brand-name {
  font-size: 27px; font-weight: 900; font-style: italic;
  /* 关键修复：不可用 1 —— 会裁掉斜体汉字的下缘与右侧。见上方实测对照。 */
  line-height: normal;
  letter-spacing: .02em;
  white-space: nowrap;
  overflow: visible;
  /* 斜体字形右倾 + 汉字墨迹外扩的呼吸位，px 与 em 各留一点，避免任何字体度量下贴边 */
  padding: 0 .06em .04em 0;
  background: linear-gradient(180deg, #fbeeb8 0%, #eed488 30%, #d4af5a 62%, #b8912f 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #d4af5a;                                  /* 降级回退色 */
  filter: drop-shadow(0 2px 5px rgba(0,0,0,.35));
}
.pt-brand:hover .pt-brand-q,
.pt-brand:hover .pt-brand-name {
  filter: drop-shadow(0 2px 9px rgba(212,175,90,.55));
}

/* ---- 中部主导航：横向平铺，当前项浅色高亮块 ---- */
.pt-mainnav {
  flex: 1 1 auto;
  display: flex; align-items: center; justify-content: center;
  gap: 2px;
  overflow-x: auto; scrollbar-width: none;       /* 窄屏可横向滑动 */
}
.pt-mainnav::-webkit-scrollbar { display: none; }

.pt-nav-item {
  flex: 0 0 auto;
  padding: 9px 14px; border-radius: 8px;
  font-size: 15px; font-weight: 500; white-space: nowrap;
  color: var(--pt-text);
  transition: background .16s, color .16s;
}
.pt-nav-item:hover { background: rgba(255,255,255,.10); }
.pt-nav-item.active {
  background: rgba(255,255,255,.16);
  font-weight: 700; color: #fff;
}

/* ---- 右侧：登录按钮 + 移动端菜单按钮 ---- */
.pt-header-right { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }

.pt-login-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 18px; border-radius: 999px;
  border: 1px solid rgba(201,162,75,.75);
  color: var(--pt-gold); font-size: 15px; font-weight: 600;
  white-space: nowrap;
  transition: background .16s, border-color .16s;
}
.pt-login-btn:hover { background: rgba(201,162,75,.16); border-color: var(--pt-gold); }
/* 用户图标改为内联 SVG：不依赖 emoji 字体，任何设备都能渲染 */
.pt-user-ico { width: 15px; height: 15px; flex: 0 0 auto; }
.pt-drawer-close svg { width: 16px; height: 16px; display: block; }

/* 移动端菜单按钮：默认隐藏，仅在窄屏出现 */
.pt-menu-btn {
  display: none;
  width: 42px; height: 42px; border: 0; background: transparent; cursor: pointer;
  align-items: center; justify-content: center;
}
.pt-menu-bars,
.pt-menu-bars::before,
.pt-menu-bars::after {
  display: block; width: 22px; height: 2px; border-radius: 2px;
  background: var(--pt-text);
}
.pt-menu-bars { position: relative; }
.pt-menu-bars::before,
.pt-menu-bars::after { content: ""; position: absolute; left: 0; }
.pt-menu-bars::before { top: -7px; }
.pt-menu-bars::after  { top: 7px; }
.pt-menu-btn:hover .pt-menu-bars,
.pt-menu-btn:hover .pt-menu-bars::before,
.pt-menu-btn:hover .pt-menu-bars::after { background: var(--pt-gold); }

/* ===================== 侧边抽屉 ===================== */
.pt-drawer-mask {
  position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.45);
  opacity: 0; visibility: hidden; transition: .25s;
}
.pt-drawer-mask.on { opacity: 1; visibility: visible; }

.pt-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 201;
  width: min(88vw, 420px);
  background: var(--pt-green-800);
  border-left: 1px solid var(--pt-line);
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .28s cubic-bezier(.4,0,.2,1);
}
.pt-drawer.on { transform: translateX(0); }

.pt-drawer-head {
  display: flex; align-items: center; gap: 10px;
  padding: 18px 20px; border-bottom: 1px solid var(--pt-line);
}
.pt-drawer-title { flex: 1; font-size: 18px; font-weight: 700; }
.pt-drawer-head .pt-menu-q { flex: 0 0 auto; font-size: 26px; }
/* 抽屉头部品牌字沿用纯金字 */
/* ⚠️ 2026-09-20：与顶栏品牌同因（line-height:1 压瘪行盒致斜体汉字缺角），一并修正。 */
.pt-menu-q {
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 26px; font-weight: 900; font-style: italic; line-height: normal;
  padding: 0 .06em .04em 0;
  background: linear-gradient(180deg, #fbeeb8 0%, #eed488 30%, #d4af5a 62%, #b8912f 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: #d4af5a;
}
.pt-drawer-close {
  width: 34px; height: 34px; border: 0; background: transparent; color: #fff;
  font-size: 20px; cursor: pointer; border-radius: 8px;
}
.pt-drawer-close:hover { background: rgba(255,255,255,.08); }

.pt-drawer-nav { flex: 1; overflow-y: auto; padding: 12px 14px; }
.pt-nav-item {
  display: block; padding: 15px 16px; margin-bottom: 2px;
  font-size: 16px; color: var(--pt-text); border-radius: 8px;
}
.pt-nav-item:hover { background: rgba(255,255,255,.06); }
.pt-nav-item.active { background: rgba(255,255,255,.14); font-weight: 700; }

.pt-drawer-login {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin: 14px; padding: 14px;
  border: 1px solid rgba(201,162,75,.7); border-radius: 10px;
  color: var(--pt-gold); font-size: 16px; font-weight: 600;
}
.pt-drawer-login:hover { background: rgba(201,162,75,.12); }
.pt-user-ico { font-size: 15px; }

/* ---- 20261104navuser1：登录态顶栏（档 B）薄样式 ----
   .pt-user-drop 独立于 .pt-nav-drop：窄屏不隐藏，下拉仍挂 .pt-header-right。
   已登录 chip 略去「金边 CTA」感；菜单项 button 与 a 同貌。 */
.pt-header-auth { position: relative; display: flex; align-items: center; }
.pt-user-drop { position: relative; }
.pt-user-drop .pt-drop-arw {
  display: inline-block; width: 0; height: 0; margin-left: 6px;
  border: 4px solid transparent; border-top-color: currentColor;
  vertical-align: middle; transform: translateY(2px);
  transition: transform .16s;
}
.pt-user-chip {
  border-color: rgba(255,255,255,.28);
  color: var(--pt-text);
  font-weight: 600;
  background: rgba(255,255,255,.06);
  cursor: pointer;
  font-family: inherit;
}
.pt-user-chip:hover {
  background: rgba(255,255,255,.12);
  border-color: rgba(201,162,75,.55);
  color: #fff;
}
.pt-user-drop.on .pt-drop-arw,
.pt-user-drop:hover .pt-drop-arw,
.pt-user-drop:focus-within .pt-drop-arw { transform: translateY(0) rotate(180deg); }
.pt-user-drop.on .pt-user-panel,
.pt-user-drop:hover .pt-user-panel,
.pt-user-drop:focus-within .pt-user-panel {
  opacity: 1; visibility: visible; transform: translateY(0);
  pointer-events: auto;
}
.pt-user-drop.force-closed:hover .pt-user-panel,
.pt-user-drop.force-closed:focus-within .pt-user-panel,
.pt-user-drop.force-closed .pt-user-panel {
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  pointer-events: none;
}
.pt-user-drop.force-closed:hover .pt-drop-arw,
.pt-user-drop.force-closed:focus-within .pt-drop-arw {
  transform: translateY(2px) rotate(0deg);
}
.pt-drop-item.pt-drop-btn {
  width: 100%; text-align: left; border: 0; background: transparent;
  cursor: pointer; font-family: inherit; color: inherit;
}
.pt-drop-item.pt-drop-btn:hover { background: rgba(255,255,255,.12); color: #fff; }

.pt-drawer-auth { margin: 14px; }
.pt-drawer-auth .pt-drawer-login { margin: 0; }
.pt-drawer-user {
  display: flex; flex-direction: column; gap: 6px;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,.18); border-radius: 10px;
  background: rgba(255,255,255,.04);
}
.pt-drawer-user-name {
  font-size: 15px; font-weight: 700; color: var(--pt-text);
  padding: 4px 2px 8px; border-bottom: 1px solid rgba(255,255,255,.08);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pt-drawer-user-link {
  display: block; width: 100%; text-align: left;
  padding: 10px 12px; border-radius: 8px;
  font-size: 15px; font-weight: 500; color: var(--pt-text);
  text-decoration: none; border: 0; background: transparent;
  cursor: pointer; font-family: inherit;
}
.pt-drawer-user-link:hover { background: rgba(255,255,255,.10); color: #fff; }
.pt-drawer-logout { color: #f0c9a0; }

/* navuser1：hidden 须压过 .pt-login-btn / .pt-drawer-login 的 display */
.pt-login-btn[hidden],
.pt-user-drop[hidden],
.pt-drawer-login[hidden],
.pt-drawer-user[hidden] {
  display: none !important;
}

/* ===================== Hero ===================== */
/* 与整页同底色，无独立背景块，内容直接融入背景。
   高度说明：原为 min-height:100vh，在 1440×900 下留出约 650px 空白，
   与后续区块（400-800px）相比明显失衡。改为「按内容高度 + 适度上下留白」，
   并保留 max-height 上限，避免超宽屏被拉得过高。 */
.pt-hero {
  position: relative; overflow: hidden;
  min-height: clamp(440px, 58vh, 620px);
  padding: 96px 20px 88px;
  display: flex; align-items: center; justify-content: center;
}
.pt-wm { position: absolute; line-height: 1; opacity: .05; user-select: none; pointer-events: none; }
.pt-wm1 { left: 4%; top: 22%; font-size: 190px; color: #fff !important; }
.pt-wm2 { right: 6%; top: 14%; font-size: 170px; color: #fff !important; opacity: .03; }
.pt-wm3 { left: 24%; bottom: 2%; font-size: 150px; color: #fff !important; }
.pt-wm4 { right: 20%; bottom: 8%; font-size: 160px; color: #fff !important; opacity: .03; }

.pt-hero-inner { position: relative; z-index: 2; text-align: center; max-width: 780px; margin-left: auto; margin-right: auto; }
/* 20261029portalhero1：LOGO + 扇形牌成组，整组水平居中 */
.pt-hero-brand {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 1.6vw, 20px);
  margin: 0 auto 26px;
  width: 100%;
}
.pt-hero-brand .pt-hero-title { margin-bottom: 0; }
/* 品牌标题：「Q桥网」三字纯金字，无底色、透明背景 */
.pt-hero-title {
  display: flex; align-items: baseline; justify-content: center;
  gap: .12em; margin-bottom: 26px;
  background: none; border: 0; padding: 0; box-shadow: none;
}
.pt-hero-q,
.pt-hero-name {
  font-size: clamp(44px, 9vw, 80px);
  font-family: inherit;
  font-weight: 900; font-style: italic;
  /* ⚠️ 2026-09-20：同「网字缺角」根因。1.05 对 900 斜体汉字偏紧（墨迹框≈1.22em），
     大字号下缺口更明显，改为 normal 并留呼吸位。 */
  line-height: normal;
  letter-spacing: .03em;
  padding: 0 .04em .03em 0;
  background: linear-gradient(180deg, #fbeeb8 0%, #eed488 30%, #d4af5a 62%, #b8912f 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #d4af5a;                                       /* 降级回退色 */
  filter: drop-shadow(0 3px 10px rgba(0,0,0,.35));
}
.pt-hero-name { margin-left: -.02em; }
.pt-hero-sub {
  /* ⚠️ 2026-09-20：副标题由 4 段增至 6 段（青少年教学 · 专项练习 · 天梯实战 · 班级作业 · 俱乐部管理 · 全龄覆盖），
     总宽增加约 16%。字号上限 18px → 16.5px、字距 3px → 2px，让宽屏仍能单行排布、不折行。
     字体族、颜色、行高均未改动。 */
  font-size: clamp(11px, 1.72vw, 16.5px); color: var(--pt-text-dim);
  letter-spacing: 2px; line-height: 1.9; margin-bottom: 44px;
  max-width: 900px; padding: 0 8px;
}
/* 分隔点由 span::after 生成（2026-09-20）：
   归属前一段，折行时跟随上一行末尾，不会孤零零留在行首；
   :last-child 隐藏末尾多余的点。 */
.pt-hero-sub span::after { content: ' · '; opacity: .72; }
.pt-hero-sub span:last-child::after { content: ''; }
/* ⚠️ 2026-09-20 实测踩坑记录（这段样式改前务必读懂）：
   目标：让分隔点『 · 』永远跟在词尾，不在下一行行首出现孤立的点。
   走法一（失败）：span 加 white-space:nowrap。
       结果：span 之间没有空白字符，浏览器找不到折行机会，
             整段排版退化为一行并横向溢出（实测 414px 视口 scrollWidth 455 > clientWidth 240）。
   走法二（采用）：span 用 inline-block。
       inline-block 天然是原子单位（内部不折），
       同时相邻 inline-block 之间本身即为合法折行点，
       于是折行只会干干净净地落在两个词之间。 */
.pt-hero-sub span { display: inline-block; }
/* 行尾分隔点清除：由 portal.js 的 fixHeroSubLineEnds() 给每行最后一个 span
   打上 .is-line-end，这里把该点的内容清空（2026-09-20）。 */
.pt-hero-sub span.is-line-end::after { content: ''; }

.pt-hero-btns { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.pt-btn {
  min-width: 132px; padding: 14px 30px; border-radius: 10px;
  font-size: 17px; font-weight: 700; text-align: center;
  transition: transform .15s, box-shadow .15s, background .15s;
}
.pt-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.28); }
.pt-btn-gold  { background: var(--pt-gold); color: #3a2c07; }
.pt-btn-gold:hover  { background: var(--pt-gold-d); }
.pt-btn-ghost { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.85); }
.pt-btn-ghost:hover { background: rgba(255,255,255,.12); }
.pt-btn-teal  { background: var(--pt-teal); color: #fff; }
.pt-btn-teal:hover  { background: var(--pt-teal-d); }

/* ===================== 区块通用 ===================== */
/* 纵向节奏统一为 --pt-sec-gap，避免各区「一松一紧」。
   原值 72px 且排行榜单独用 padding-top:24px，导致此处过密、他处过松。 */
:root { --pt-sec-gap: 64px; }
.pt-section { padding: var(--pt-sec-gap) 20px; max-width: 1180px; margin: 0 auto; }
/* 相邻区块之间避免叠加成双倍留白 */
.pt-section + .pt-section { padding-top: var(--pt-sec-gap); }

/* 居中标题（近期赛事 / 平台特色）——白字粗体，无装饰线，与参考图一致 */
.pt-sec-head {
  font-size: clamp(22px, 2.6vw, 30px); font-weight: 800;
  text-align: center; margin-bottom: 44px;
  color: #fff; letter-spacing: .04em;
}
/* 左对齐标题（排行榜速览） */
.pt-sec-head-left { text-align: left; margin-bottom: 0; }

/* ===================== 近期赛事 ===================== */
.pt-events {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.pt-ev {
  display: block;
  background: var(--pt-green-700);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 12px;
  padding: 20px 22px 22px;
  transition: transform .16s, border-color .16s;
}
.pt-ev:hover { transform: translateY(-3px); border-color: rgba(201,162,75,.45); }

/* 状态徽章：四种色调，彼此可区分 */
.pt-ev-badge {
  display: inline-block; margin-bottom: 14px;
  font-size: 12px; font-weight: 700; line-height: 1;
  padding: 6px 12px; border-radius: 999px;
}
.pt-ev-ing  { background: #c9a24b; color: #3a2c07; }   /* 报名中 · 金 */
.pt-ev-now  { background: #1f8b58; color: #fff; }      /* 进行中 · 绿 */
.pt-ev-soon { background: #2f6fd0; color: #fff; }      /* 即将开始 · 蓝 */
.pt-ev-past { background: rgba(255,255,255,.12); color: rgba(234,245,239,.70); }  /* 已完赛 · 灰 */

.pt-ev-name {
  font-size: 17px; font-weight: 700; color: #fff;
  line-height: 1.5; margin-bottom: 12px;
  /* 固定两行高度：让不同长度的赛事名在卡片间保持基线对齐 */
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; min-height: 51px;
}
.pt-ev-date { font-size: 14px; color: rgba(234,245,239,.82); margin-bottom: 5px; line-height: 1.5; }
.pt-ev-meta { font-size: 14px; color: rgba(234,245,239,.82); line-height: 1.5; }
.pt-empty { grid-column: 1 / -1; text-align: center; color: var(--pt-text-dim); padding: 30px 0; font-size: 15px; }

/* ===================== 排行榜速览 ===================== */
/* 与相邻区块共用同一节奏（原为 padding-top:24px，导致上方过密下方过松） */
.pt-sec-rank { padding-top: var(--pt-sec-gap); }

.pt-rank-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; margin-bottom: 22px;
}
.pt-more {
  flex: 0 0 auto; font-size: 15px; font-weight: 600;
  color: var(--pt-gold); white-space: nowrap;
  transition: opacity .16s;
}
.pt-more:hover { opacity: .8; }
.pt-more-arw { font-size: 15px; }

/* 年龄组切换标签（U10/U12/U15/U18/18+）
   对齐站内「俱乐部精英排行榜」的五档口径，让公开页与站内看到的是同一份分组。 */
.pt-rank-tabs {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: -6px 0 16px;
}
.pt-rank-tabs:empty { display: none; }
.pt-rank-tab {
  appearance: none; cursor: pointer;
  padding: 7px 16px; border-radius: 999px;
  font-family: inherit; font-size: 14px; font-weight: 600;
  color: var(--pt-text-dim);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  transition: background .16s, color .16s, border-color .16s;
  white-space: nowrap;
}
.pt-rank-tab:hover { background: rgba(255,255,255,.11); color: var(--pt-text); }
.pt-rank-tab.is-on {
  background: var(--pt-gold); color: #22320a;
  border-color: var(--pt-gold); font-weight: 700;
}

.pt-ranktable-wrap {
  background: var(--pt-green-700);
  border-radius: 12px; overflow: hidden;
}
.pt-ranktable { width: 100%; border-collapse: collapse; }

/* 行高收紧：原 (20+20+字高) / (17+17+字高) 使 8 行表格高达 613px，
   明显重于同页其他区块。收紧到视觉饱满但不臃肿的密度。 */
.pt-ranktable thead th {
  text-align: left; font-size: 15px; font-weight: 700;
  color: #fff; padding: 15px 26px;
  background: rgba(0,0,0,.14);
  white-space: nowrap;
}
.pt-ranktable tbody td {
  padding: 12px 26px; font-size: 16px; color: #fff;
  border-top: 1px solid rgba(255,255,255,.06);
  vertical-align: middle;
}
.pt-ranktable tbody tr:hover { background: rgba(255,255,255,.03); }

.pt-col-rk { width: 120px; }
.pt-col-pt, .pt-col-wr { width: 170px; }

/* 排名徽标：前三名圆形色标（金/银/铜），其余为纯数字 */
.pt-rk {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  font-size: 15px; font-weight: 700;
}
.pt-rk-1 { background: #d3a93f; color: #ffffff; }
.pt-rk-2 { background: #cfd4d8; color: #35506a; }
.pt-rk-3 { background: #cf7a2c; color: #ffffff; }
.pt-rk-n { background: transparent; color: rgba(234,245,239,.72); font-weight: 600; }

/* 积分列金色，胜率列常规色 */
.pt-td-pt { color: var(--pt-gold); font-weight: 700; }
.pt-td-wr { color: rgba(234,245,239,.86); }
.pt-td-empty { color: var(--pt-text-dim); font-size: 14px; text-align: center; padding: 34px 0 !important; }

.pt-rank-note {
  margin-top: 12px; font-size: 13px; color: var(--pt-text-dim); text-align: right;
}
.pt-rank-note:empty { display: none; }

/* ===================== 平台特色 ===================== */
.pt-feats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}
.pt-feat {
  display: block; text-align: center;
  background: var(--pt-green-700);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 12px;
  padding: 34px 14px 30px;
  transition: transform .16s, border-color .16s;
}
.pt-feat:hover { transform: translateY(-3px); border-color: rgba(201,162,75,.45); }
/* 首卡金色描边高亮（与参考图一致） */
.pt-feat.is-on { border-color: var(--pt-gold); }

.pt-feat h3 {
  font-size: 18px; font-weight: 800; color: #fff; margin-bottom: 12px;
  letter-spacing: .02em;
  /* drop1：减少「对战」「错题练习」等词被拆到两行 */
  word-break: keep-all; line-height: 1.35;
}
.pt-feat p {
  font-size: 13.5px; color: rgba(234,245,239,.78); line-height: 1.85;
  /* 描述宽度放宽到卡片内沿，避免「实时排行」这类短语被无谓拆行 */
  max-width: 100%; margin: 0 auto;
  padding: 0 2px;
  word-break: keep-all;
}
.pt-feat .pt-nowrap { white-space: nowrap; }

/* 特色图标：金色线性 SVG（mask 方案，随 color 变色） */
.pt-fi {
  display: block; width: 46px; height: 46px; margin: 0 auto 20px;
  background-color: var(--pt-gold);
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center;  mask-position: center;
  -webkit-mask-size: contain;     mask-size: contain;
}
/* people：三人
   mask 用浅色数据 URI —— background 被盖掉，只留镂空，
   因此深浅底都能正确显示（不会出现白块）。 */
.pt-fi-people {
  -webkit-mask-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='9' cy='7.5' r='3.5'/%3E%3Cpath d='M2.5 19.5c0-3.6 2.9-6.2 6.5-6.2s6.5 2.6 6.5 6.2z'/%3E%3Ccircle cx='17.5' cy='8.6' r='2.7'/%3E%3Cpath d='M15.6 13.9c.6-.2 1.2-.3 1.9-.3 2.9 0 5.1 2.1 5.1 5.1v.8h-5.2c0-2.1-.7-3.9-1.8-5z'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='9' cy='7.5' r='3.5'/%3E%3Cpath d='M2.5 19.5c0-3.6 2.9-6.2 6.5-6.2s6.5 2.6 6.5 6.2z'/%3E%3Ccircle cx='17.5' cy='8.6' r='2.7'/%3E%3Cpath d='M15.6 13.9c.6-.2 1.2-.3 1.9-.3 2.9 0 5.1 2.1 5.1 5.1v.8h-5.2c0-2.1-.7-3.9-1.8-5z'/%3E%3C/svg%3E");
}
/* trophy：奖杯 */
.pt-fi-trophy {
  -webkit-mask-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 4h8v5.5a4 4 0 0 1-8 0z'/%3E%3Cpath d='M8 5.2H5.4a1 1 0 0 0-1 1.1c.2 2.4 1.6 4 3.6 4.5z'/%3E%3Cpath d='M16 5.2h2.6a1 1 0 0 1 1 1.1c-.2 2.4-1.6 4-3.6 4.5z'/%3E%3Cpath d='M11.2 13.5h1.6v3.2h-1.6z'/%3E%3Cpath d='M7.6 20.4c0-2 1.5-3.7 4.4-3.7s4.4 1.7 4.4 3.7z'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 4h8v5.5a4 4 0 0 1-8 0z'/%3E%3Cpath d='M8 5.2H5.4a1 1 0 0 0-1 1.1c.2 2.4 1.6 4 3.6 4.5z'/%3E%3Cpath d='M16 5.2h2.6a1 1 0 0 1 1 1.1c-.2 2.4-1.6 4-3.6 4.5z'/%3E%3Cpath d='M11.2 13.5h1.6v3.2h-1.6z'/%3E%3Cpath d='M7.6 20.4c0-2 1.5-3.7 4.4-3.7s4.4 1.7 4.4 3.7z'/%3E%3C/svg%3E");
}
/* target：同心圆靶（实心圆环） */
.pt-fi-target {
  -webkit-mask-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.6A9.4 9.4 0 1 0 21.4 12 9.4 9.4 0 0 0 12 2.6zm0 2.6a6.8 6.8 0 1 1-6.8 6.8A6.8 6.8 0 0 1 12 5.2z'/%3E%3Cpath d='M12 7.6A4.4 4.4 0 1 0 16.4 12 4.4 4.4 0 0 0 12 7.6zm0 2.6a1.8 1.8 0 1 1-1.8 1.8A1.8 1.8 0 0 1 12 10.2z'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.6A9.4 9.4 0 1 0 21.4 12 9.4 9.4 0 0 0 12 2.6zm0 2.6a6.8 6.8 0 1 1-6.8 6.8A6.8 6.8 0 0 1 12 5.2z'/%3E%3Cpath d='M12 7.6A4.4 4.4 0 1 0 16.4 12 4.4 4.4 0 0 0 12 7.6zm0 2.6a1.8 1.8 0 1 1-1.8 1.8A1.8 1.8 0 0 1 12 10.2z'/%3E%3C/svg%3E");
}
/* medal：奖章（缎带 + 圆章） */
.pt-fi-medal {
  -webkit-mask-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='8.6' r='5.2'/%3E%3Cpath d='M12 5.6a3 3 0 1 0 3 3 3 3 0 0 0-3-3zm0 1.8a1.2 1.2 0 1 1-1.2 1.2A1.2 1.2 0 0 1 12 7.4z'/%3E%3Cpath d='M8.6 13.4 6.2 21.4l5.8-2.6 5.8 2.6-2.4-8z'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='8.6' r='5.2'/%3E%3Cpath d='M12 5.6a3 3 0 1 0 3 3 3 3 0 0 0-3-3zm0 1.8a1.2 1.2 0 1 1-1.2 1.2A1.2 1.2 0 0 1 12 7.4z'/%3E%3Cpath d='M8.6 13.4 6.2 21.4l5.8-2.6 5.8 2.6-2.4-8z'/%3E%3C/svg%3E");
}
/* book：摊开的书 */
.pt-fi-book {
  -webkit-mask-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 4.6h6.6c1.3 0 2.4.9 2.4 2.1v12c0-1.1-1-2-2.3-2H3z'/%3E%3Cpath d='M21 4.6h-6.6c-1.3 0-2.4.9-2.4 2.1v12c0-1.1 1-2 2.3-2H21z'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 4.6h6.6c1.3 0 2.4.9 2.4 2.1v12c0-1.1-1-2-2.3-2H3z'/%3E%3Cpath d='M21 4.6h-6.6c-1.3 0-2.4.9-2.4 2.1v12c0-1.1 1-2 2.3-2H21z'/%3E%3C/svg%3E");
}

/* ===================== 页脚 ===================== */
.pt-footer {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 54px 20px 0;
}
.pt-footer-inner {
  max-width: 1180px; margin: 0 auto;
  display: grid;
  /* 品牌栏占主，右侧两栏靠在一起并整体贴右，与参考图一致 */
  grid-template-columns: minmax(0, 1fr) 330px 240px;
  gap: 24px 40px;
  padding-bottom: 44px;
}
.pt-fbrand { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.pt-fsuit { font-size: 24px; color: #0d1c16; line-height: 1; }
.pt-fbrand-name { font-size: 19px; font-weight: 800; color: #fff; letter-spacing: .02em; }
.pt-fdesc {
  font-size: 14.5px; color: rgba(234,245,239,.78); line-height: 1.95;
  max-width: 460px;
}
/* 页脚品牌关键词带（2026-09-20 新增）：与 hero 副标题六项一一呼应。
   用金色描边小标签呈现，视觉上比纯文字更有层次，且不占用过多纵向空间。 */
.pt-ftags {
  display: flex; flex-wrap: wrap; gap: 8px;
  /* ⚠️ 宽度实测调整：六项标签合计 481px + 5×8px 间隙 = 521px。
     品牌列实际可用 580px，原先限死 460px 装不下，导致「全龄覆盖」孤零零掉到第二行。
     放宽到 540px，宽屏即可整齐排成一行，同时仍窄于简介的 460px 观感。 */
  margin-top: 18px; max-width: 100%;
  list-style: none;
}
.pt-ftags li {
  font-size: 12.5px; letter-spacing: .04em; line-height: 1;
  padding: 7px 12px; border-radius: 999px;
  color: var(--pt-gold); border: 1px solid rgba(201,162,75,.42);
  background: rgba(201,162,75,.08);
}

.pt-fhead { font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 16px; }
/* 快速链接 10 项：显式网格双列（2026-10-26 二轮）。
   不用 columns:2 —— 它按高度自动分列，10 项会分成 6+4 不平衡；
   网格 + auto-flow:column 按列向填 5+5，阅读顺序仍是从左列到右列。
   ⚠ 若链接增删，需同步调整 grid-template-rows 的行数。 */
.pt-flinks--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-flow: column;
  grid-template-rows: repeat(5, auto);
  column-gap: 32px;
}
.pt-flinks { list-style: none; }
.pt-flinks li { margin-bottom: 12px; font-size: 14.5px; color: rgba(234,245,239,.82); }
.pt-flinks a { color: rgba(234,245,239,.82); transition: color .16s; }
.pt-flinks a:hover { color: var(--pt-gold); }

/* 底部版权行：上方细分隔线，居中 */
.pt-footer-bar {
  border-top: 1px solid rgba(255,255,255,.07);
  padding: 26px 0 30px;
}
.pt-copyright {
  text-align: center; font-size: 14px; color: rgba(234,245,239,.62);
}

/* ---- 顶栏分组下拉（2026-10-14 阶段3 / 2026-10-28 drop1） ----
   ⚠️ 下拉挂 .pt-header-right 下而非 .pt-mainnav 内：后者 overflow-x:auto 会裁剪 absolute 面板。
   面板 ::before 补 6px 透明桥接区，避免鼠标经过按钮-面板间隙时 hover 断开。
   drop1：桌面用 :hover / :focus-within 显示面板（不抢 JS 的 .on）；
   .on 表示点击钉住；关闭态 pointer-events:none，避免隐形面板挡点击。 */
.pt-nav-drop { position: relative; }
.pt-nav-drop .pt-drop-arw {
  display: inline-block; width: 0; height: 0; margin-left: 6px;
  border: 4px solid transparent; border-top-color: currentColor;
  vertical-align: middle; transform: translateY(2px);
  transition: transform .16s;
}
.pt-drop-panel {
  position: absolute; top: calc(100% + 6px); right: 0; z-index: 60;
  min-width: 176px; padding: 8px;
  background: #0f4c39; border: 1px solid rgba(201,162,75,.45);
  border-radius: 12px; box-shadow: 0 16px 40px rgba(0,0,0,.42);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  pointer-events: none;
  transition: opacity .16s, transform .16s, visibility .16s;
}
.pt-drop-panel::before { content: ''; position: absolute; left: 0; right: 0; top: -6px; height: 6px; }
.pt-nav-drop.on .pt-drop-arw,
.pt-nav-drop:hover .pt-drop-arw,
.pt-nav-drop:focus-within .pt-drop-arw { transform: translateY(0) rotate(180deg); }
.pt-nav-drop.on .pt-drop-panel,
.pt-nav-drop:hover .pt-drop-panel,
.pt-nav-drop:focus-within .pt-drop-panel {
  opacity: 1; visibility: visible; transform: translateY(0);
  pointer-events: auto;
}
/* Esc/点外强制收起：盖过 hover 与 focus-within，直到再次悬停或点击 */
.pt-nav-drop.force-closed:hover .pt-drop-panel,
.pt-nav-drop.force-closed:focus-within .pt-drop-panel,
.pt-nav-drop.force-closed .pt-drop-panel {
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  pointer-events: none;
}
.pt-nav-drop.force-closed:hover .pt-drop-arw,
.pt-nav-drop.force-closed:focus-within .pt-drop-arw {
  transform: translateY(2px) rotate(0deg);
}
.pt-drop-group + .pt-drop-group { margin-top: 6px; padding-top: 6px; border-top: 1px solid rgba(255,255,255,.08); }
.pt-drop-head {
  padding: 4px 10px 3px; font-size: 11px; font-weight: 700;
  letter-spacing: .08em; color: #c9a24b;
}
.pt-drop-item {
  display: block; padding: 8px 10px; border-radius: 7px;
  font-size: 14px; font-weight: 500; color: var(--pt-text);
  text-decoration: none; white-space: nowrap;
  transition: background .14s, color .14s;
}
.pt-drop-item:hover { background: rgba(255,255,255,.12); color: #fff; }

/* 窄屏：顶栏下拉让位给抽屉分组（禁用桌面 hover 规则的命中面） */
@media (max-width: 980px) { .pt-nav-drop { display: none; } }

/* ---- 抽屉内教师端分组（阶段3） ---- */
.pt-drawer-more {
  width: 100%; text-align: left; font-family: inherit; cursor: pointer;
  border: none; background: none; color: var(--pt-text);
}
.pt-drawer-sub { padding: 2px 0 8px; }
.pt-drawer-group { margin-bottom: 6px; }
.pt-drawer-group-head {
  padding: 6px 16px 2px 28px; font-size: 12px; font-weight: 700;
  letter-spacing: .06em; color: #c9a24b;
}
.pt-drawer-sub-item {
  display: block; padding: 9px 16px 9px 40px; border-radius: 8px;
  font-size: 14.5px; color: var(--pt-text); text-decoration: none;
  transition: background .14s;
}
.pt-drawer-sub-item:hover { background: rgba(255,255,255,.08); }

/* ---- P1c（2026-10-27）：抽屉顶层分组标题 ----
   与「教师端」子项的 .pt-drawer-group-head 区别开：顶层标题更低调（弱化金色、更紧凑），
   高度实测 28.4px；配合导航项 46px，使 320×700 默认态余量 72px、不滚动。 */
.pt-drawer-nav > .pt-drawer-group-head {
  padding: 9px 16px 5px; font-size: 12px; font-weight: 700;
  line-height: 1.2; letter-spacing: .06em;
  color: rgba(255,255,255,.55);
}

/* ---- 首页功能入口区（阶段8） ---- */
.pt-sec-entry { padding-top: 4px; }
.pt-entry-group + .pt-entry-group { margin-top: 26px; }
.pt-entry-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.pt-entry-desc { font-size: 13px; color: rgba(255,255,255,.5); }
.pt-entry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}
.pt-entry-card {
  display: flex; align-items: center; justify-content: center;
  min-height: 54px; padding: 10px 12px;
  border: 1px solid rgba(201,162,75,.28); border-radius: 10px;
  background: rgba(255,255,255,.04);
  color: #f3ead8; font-size: 15px; font-weight: 600; letter-spacing: .5px;
  text-decoration: none; transition: background .18s, border-color .18s, transform .18s;
}
.pt-entry-card:hover {
  background: rgba(201,162,75,.16); border-color: rgba(201,162,75,.65);
  color: #fff; transform: translateY(-2px);
}
.pt-entry-name { line-height: 1.3; text-align: center; }
@media (max-width: 640px) {
  .pt-entry-grid { grid-template-columns: repeat(2, 1fr); }
  .pt-entry-card { min-height: 48px; font-size: 14px; }
}

/* ---- 阶段9（2026-10-15）：分工 hint / 最近使用 / 花色图标 / 待办角标 / 试做标记 ---- */
.pt-entry-hint { margin: 0 0 12px; font-size: 13px; color: rgba(255,255,255,.45); }

/* 卡片改为相对定位，供角标绝对定位；图标与名称之间留 6px */
.pt-entry-card { position: relative; gap: 6px; }
.pt-entry-suit { font-size: 17px; line-height: 1; font-weight: 400; opacity: .85; }

/* 待办角标（红）：疑问待处理数 / 作业未交人数。pointer-events:none 保证不挡点击 */
.pt-entry-badge {
  position: absolute; top: -7px; right: -7px;
  min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px;
  background: #d9534f; color: #fff; font-size: 11px; font-weight: 700;
  line-height: 19px; text-align: center; letter-spacing: 0;
  box-shadow: 0 2px 6px rgba(0,0,0,.35); pointer-events: none;
}
/* 「试做」标记（蓝）：教师体验学生视角 */
.pt-try-tag {
  position: absolute; top: -7px; left: -7px; padding: 1px 6px; border-radius: 8px;
  background: #2f6fd0; color: #fff; font-size: 10px; font-weight: 700;
  line-height: 16px; letter-spacing: 0; pointer-events: none;
}

/* 最近使用条：无记录时整条隐藏（hidden 需显式声明，否则被 flex 覆盖） */
.pt-recent { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 18px; }
.pt-recent[hidden] { display: none; }
.pt-recent-label { font-size: 13px; color: rgba(255,255,255,.45); margin-right: 2px; }
.pt-recent-chip {
  padding: 5px 12px; border-radius: 999px; white-space: nowrap;
  border: 1px solid rgba(201,162,75,.35); background: rgba(201,162,75,.10);
  color: #f3ead8; font-size: 13px; text-decoration: none;
  transition: background .16s, border-color .16s, color .16s;
}
.pt-recent-chip:hover {
  background: rgba(201,162,75,.24); border-color: rgba(201,162,75,.7); color: #fff;
}

/* ---- 阶段9：近期赛事紧凑条（已上移到入口区之前） ---- */
.pt-sec-events--slim { padding-top: 8px; }
.pt-sec-events--slim .pt-ev { padding: 10px 12px; }
.pt-sec-events--slim .pt-ev-name { font-size: 14px; }
.pt-sec-events--slim .pt-ev-date,
.pt-sec-events--slim .pt-ev-meta { font-size: 12px; margin-bottom: 3px; }
.pt-ev-more {
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: rgba(201,162,75,.92); border-style: dashed;
}

@media (max-width: 640px) {
  .pt-recent { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .pt-entry-suit { font-size: 15px; }
}

/* ===================== 响应式 ===================== */

/* 中等宽度：收缩导航间距，防止换行 */
@media (max-width: 1180px) {
  .pt-header-inner { gap: 10px; padding: 0 14px; }
  .pt-nav-item { padding: 9px 10px; font-size: 14px; }
  .pt-brand-q, .pt-brand-name { font-size: 24px; }

  .pt-events { grid-template-columns: repeat(2, 1fr); }
  .pt-feats  { grid-template-columns: repeat(3, 1fr); }
}

/* 窄屏：主导航收起为抽屉，显示汉堡按钮 */
@media (max-width: 980px) {
  .pt-mainnav { display: none; }
  .pt-menu-btn { display: flex; }
  .pt-header-inner { justify-content: space-between; }
  .pt-header-right { margin-left: auto; }
  /* 窄屏抽屉展开后，导航项恢复为纵向列表
     P1c：项高 54px → 46px（padding 15px → 11px）。46px 仍高于 44px 触控底线，
     换来 320×700 默认态不滚动（内容 470.8px / 可视 543px）。 */
  .pt-drawer .pt-nav-item { display: block; padding: 11px 16px; margin-bottom: 2px; font-size: 16px; }

  .pt-section { padding: 56px 18px; }
  :root { --pt-sec-gap: 56px; }
  /* 平板端 Hero 同步压缩，避免窄屏下 58vh 被放大 */
  .pt-hero { min-height: 0; padding: 76px 18px 68px; }
  .pt-footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .pt-flinks--split { column-gap: 28px; }
  .pt-fcol-brand { grid-column: 1 / -1; }

  /* 排行榜表格：收窄内边距，排名列变窄 */
  .pt-ranktable thead th { padding: 16px 16px; font-size: 14px; }
  .pt-ranktable tbody td { padding: 15px 16px; font-size: 15px; }
  .pt-col-rk { width: 84px; }
  .pt-col-pt, .pt-col-wr { width: 110px; }
}

@media (max-width: 640px) {
  /* 移动端不再强制 100vh：窄屏下满屏 Hero 会放大空旷感，改用内容自适应 + 适度留白 */
  .pt-hero { min-height: 0; padding: 64px 16px 56px; }
  .pt-wm { font-size: 110px !important; }
  .pt-btn { flex: 1 1 100%; min-width: 0; }
  .pt-section { padding: 44px 16px; }
  :root { --pt-sec-gap: 44px; }
  .pt-login-btn { padding: 7px 13px; font-size: 14px; }
  .pt-brand-q, .pt-brand-name { font-size: 21px; }
  .pt-header { height: 60px; }

  .pt-sec-head { margin-bottom: 30px; }
  .pt-events { grid-template-columns: 1fr; gap: 16px; }
  /* minmax(0,1fr)：允许列收缩到 0 再由内容折行，避免 1fr 的隐式 min-content 把网格撑出视口（20261031mobilefit2） */
  .pt-feats  { grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 14px; }
  .pt-feat { padding: 24px 14px 22px; }
  .pt-feat p { font-size: 12.5px; }
  .pt-fi { width: 38px; height: 38px; margin-bottom: 14px; }

  .pt-rank-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  /* 窄屏表格：用 fixed 布局 + 明确列宽，避免「积分」与「局数」两列贴在一起 */
  .pt-ranktable { table-layout: fixed; }
  .pt-ranktable thead th { padding: 12px 8px; font-size: 13px; }
  .pt-ranktable tbody td {
    padding: 12px 8px; font-size: 14px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  /* ---------------- P1c（2026-10-27）：窄屏排行榜三列 + 6 行 ----------------
     ① 隐藏「局数」列：它是速览里信息价值最低的一列，完整榜单仍可查看；
        让出的宽度给牌手列，解决姓名被 ellipsis 截断。
     ② 牌手列改为「最多两行」：裁剪由 td 内的块级容器 .pt-nk 承担
        （line-clamp 挂在 td/table-cell 上不生效，会出现第三行）。
     ③ 只显示前 6 行：表高 451px → 约 355px，占屏从 53% 降到 42%（390px）。 */
  .pt-ranktable th:nth-child(4),
  .pt-ranktable td:nth-child(4) { display: none; }
  .pt-ranktable tbody tr:nth-child(n+7) { display: none; }
  .pt-col-rk { width: 48px; }
  .pt-col-nk { width: auto; }        /* 昵称列吃掉剩余空间 */
  .pt-col-pt { width: 88px; }
  .pt-rk { width: 26px; height: 26px; font-size: 12px; }
  .pt-ranktable thead th.pt-col-pt { text-align: right; }
  .pt-ranktable tbody td.pt-td-pt { text-align: right; }
  /* 牌手单元格：交给内部容器做两行裁剪，单元格自身不参与裁剪 */
  .pt-ranktable tbody td.pt-td-nk { overflow: visible; white-space: normal; text-overflow: clip; }
  .pt-td-nk .pt-nk {
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
    overflow: hidden;
    white-space: normal; line-height: 1.3; max-height: 2.6em;   /* 2 行 × 1.3 行高，硬上限 */
    word-break: break-word;
  }

  .pt-footer { padding-top: 40px; }
  .pt-footer-inner { grid-template-columns: 1fr; gap: 28px; padding-bottom: 32px; }

  /* 手机端副标题：六段按 3+3 均衡折行（2026-09-20）
     默认折行会变成 5+1 —— 第二行只挂「全龄覆盖」一个词，视觉失衡。
     实测（375px 视口、字号 12px、字距 1.5px）：
       各段均为 48px（「俱乐部管理」60px），「 · 」分隔 17px；
       前 3 段文字合计 190px，叠加 13 字 × 1.5px 字距及末尾字距后约 215px。
     故限宽需 ≥ 220px；取 252px 留出余量，确保稳定折成 3+3（240px 实测只能容 2 段，会变 2+2+2）。
     字号回到 12px（原 clamp 下限 11px 偏小），保证小屏可读。 */
  .pt-hero-sub { font-size: 12px; letter-spacing: 1.5px; max-width: 252px; margin-left: auto; margin-right: auto; }

  /* 手机端页脚标签：宽度跟随内容列，避免固定 540px 在窄屏溢出 */
  .pt-ftags { max-width: 100%; }
  .pt-flinks--split { column-gap: 24px; }
}

/* ============================================================
   第一阶段（2026-10-26）信息架构优化 —— 新增样式
   范围：仅门户首页（portal/index.html）用到的新类；
        未改动/未覆盖上方任何既有规则，纯追加。
   目标：① 明确面向谁 / 能做什么 / 怎么进 ② 建设中功能可辨识
        ③ 特色区不再重复提供功能入口
   ============================================================ */

/* Hero「面向谁 / 能做什么」说明行：位于品牌标题与关键词行之间 */
.pt-hero-who {
  font-size: clamp(13px, 2.05vw, 19px);
  font-weight: 600; color: #f3ead8;
  line-height: 1.85; letter-spacing: .5px;
  max-width: 760px; margin: 0 auto 16px; padding: 0 8px;
}

/* Hero 入口说明：讲清「未登录点击会怎样」，避免访客以为功能坏了。
   2026-10-26 反馈：原 12.5px / .62 透明度过淡偏小，手机端几乎读不到，
   故整体提亮到 .72，并在 640px 以下进一步加大字号与亮度。 */
.pt-hero-note {
  font-size: 13px; line-height: 1.8;
  color: rgba(234,245,239,.72);
  max-width: 620px; margin: 18px auto 0; padding: 0 8px;
}

/* 分区副标题（平台特色）：抵消 .pt-sec-head 44px 下边距带来的过大间距 */
.pt-sec-sub {
  text-align: center; font-size: 13.5px; line-height: 1.8;
  color: rgba(234,245,239,.60);
  margin: -28px 0 32px; padding: 0 8px;
}

/* 「建设中」标记：默认行内小胶囊（用于平台特色标题后） */
.pt-wip-tag {
  display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 8px;
  background: rgba(255,255,255,.16); color: #ffd9a0;
  font-size: 10px; font-weight: 700; line-height: 16px; letter-spacing: 0;
  white-space: nowrap; vertical-align: middle;
}
/* 入口卡内：绝对定位到卡片右下角，不参与卡片居中排版、不挡点击 */
.pt-entry-card .pt-wip-tag {
  position: absolute; right: 4px; bottom: 3px;
  margin-left: 0; pointer-events: none;
}
/* 建设中的入口卡：虚线边框 + 略降饱和，与可用功能在视觉上区分。
   该卡不带链接（不可点击），故同时取消悬停上浮与高亮，避免看起来像可用入口。 */
.pt-entry-card--wip { border-style: dashed; cursor: default; }
.pt-entry-card--wip .pt-entry-name { color: rgba(243,234,216,.88); }
.pt-entry-card--wip:hover {
  transform: none;
  background: rgba(255,255,255,.04);
  border-color: rgba(201,162,75,.28);
  color: #f3ead8;
}

/* 平台特色卡：已改为说明性内容（非入口），去掉悬停上浮与描边变化，
   使视觉反馈与「不可点击」一致；首卡金色描边（.is-on）保持不变。 */
.pt-feat { transition: none; cursor: default; }
.pt-feat:hover { transform: none; border-color: rgba(255,255,255,.07); }
.pt-feat.is-on:hover { border-color: var(--pt-gold); }

/* 建设中的导航项（顶栏 / 抽屉）与页脚项：不可点击 ——
   文字降饱和 + 取消悬停高亮，配合「建设中」标记，视觉上明确为未开放。 */
.pt-nav-item--wip,
.pt-flink-wip { cursor: default; color: rgba(234,245,239,.58); }
.pt-nav-item--wip:hover,
.pt-flink-wip:hover { background: transparent; color: rgba(234,245,239,.58); }
/* 顶栏窄屏时主导航可横向滚动，禁用项不参与 hover，故无需额外收缩；
   页脚项由 li 继承字号，此处只保证与相邻可用链接拉开对比 */

@media (max-width: 640px) {
  .pt-hero-who  { font-size: 13.5px; line-height: 1.9; margin-bottom: 14px; }
  /* 手机端登录说明：加大到 13.5px 并显著提亮（.62 → .92），保证可读 */
  .pt-hero-note { font-size: 13.5px; line-height: 1.85; color: rgba(234,245,239,.92); margin-top: 16px; }
  .pt-sec-sub   { margin: -18px 0 24px; font-size: 12.5px; }
  /* 抽屉内禁用项：整行可点区域取消反馈，避免误以为可进 */
  .pt-drawer .pt-nav-item--wip:hover { background: transparent; }
}

/* ---- 2026-10-26「意图续接」：首屏「直接开始」任务条 ----
   复用既有 .pt-entry-card 的全部基础样式，只做三处增强：整行四等分、卡片更高更醒目、
   描边与底色比清单卡重一档。手机端回落到两列，与其余分组一致。
   不给 .pt-quick-card 加 hover 上浮（沿用既有入口卡的 translateY(-2px) 即可）。 */
.pt-quick-group { margin-bottom: 28px; }
.pt-quick-grid { grid-template-columns: repeat(4, 1fr); gap: 12px; }
.pt-quick-card {
  min-height: 64px; padding: 12px 14px;
  border-color: rgba(201,162,75,.46);
  background: rgba(201,162,75,.10);
  font-size: 16px; letter-spacing: 1px;
}
.pt-quick-card:hover {
  background: rgba(201,162,75,.20);
  border-color: rgba(201,162,75,.78);
}
@media (max-width: 900px) {
  .pt-quick-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .pt-quick-grid { gap: 10px; }
  .pt-quick-card { min-height: 54px; font-size: 15px; letter-spacing: .5px; }
}

/* ===================== P1b：赛事区（状态中性化 / 已完赛折叠 / 移动端紧凑卡） ===================== */

/* 状态徽章：中性色。不再用「进行中」「报名中」这类由月份臆断的进度词，
   只区分「已完赛（灰）」与「本月 / 下月 / M月（中性）」两类。 */
.pt-ev-cur  { background: rgba(47,111,208,.24); color: #d8e6ff; }              /* 本月 · 中性蓝 */
.pt-ev-next { background: rgba(255,255,255,.10); color: rgba(234,245,239,.86); } /* 下月 / M月 · 中性灰白 */

/* 已完赛折叠区：默认折叠，展开后仍可逐场查看 */
.pt-ev-past-wrap { grid-column: 1 / -1; margin-top: 6px; }
.pt-ev-past-sum {
  display: inline-flex; align-items: center; gap: 8px;
  cursor: pointer; user-select: none; list-style: none;
  font-size: 13.5px; color: rgba(234,245,239,.82);
  padding: 8px 15px; border: 1px dashed rgba(255,255,255,.24); border-radius: 999px;
  transition: color .16s, border-color .16s;
}
.pt-ev-past-sum:hover { color: #fff; border-color: rgba(201,162,75,.6); }
.pt-ev-past-sum::-webkit-details-marker { display: none; }
.pt-ev-past-sum::before { content: '▸'; font-size: 11px; }
details[open] > .pt-ev-past-sum::before { content: '▾'; }
.pt-events-past { margin-top: 14px; }

/* ---- 移动端（≤680px）：赛事卡压成紧凑两行 ----
   第一行：徽标 + 赛事名（名称完整换行，不截断、不挤压徽标）
   第二行：日期 | 城市 · 形式
   桌面（>680px）布局与卡片尺寸保持原样，不受本段影响。 */
@media (max-width: 680px) {
  .pt-sec-events--slim .pt-ev {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 10px; row-gap: 4px;
    align-items: baseline;
    padding: 10px 12px;
  }
  .pt-sec-events--slim .pt-ev-badge {
    grid-column: 1; grid-row: 1;
    margin-bottom: 0; align-self: center;
    white-space: nowrap;
    font-size: 11.5px; padding: 4px 9px;
  }
  .pt-sec-events--slim .pt-ev-name {
    grid-column: 2; grid-row: 1;
    margin-bottom: 0; min-height: 0;
    font-size: 14px; line-height: 1.4;
    display: block; overflow: visible;   /* 移动端完整显示赛事名，不做两行截断 */
  }
  .pt-sec-events--slim .pt-ev-date {
    grid-column: 1; grid-row: 2;
    margin-bottom: 0; font-size: 12px; white-space: nowrap;
  }
  .pt-sec-events--slim .pt-ev-meta {
    grid-column: 2; grid-row: 2;
    font-size: 12px;
  }
  /* 「查看全年赛事日历」保持原来的单行居中条，不参与两行重排 */
  .pt-sec-events--slim .pt-ev-more {
    display: flex; align-items: center; justify-content: center;
    padding: 12px;
  }
  .pt-ev-past-sum { font-size: 13px; padding: 7px 13px; }
}

/* ===== P1c 补充（B-3）：极矮屏抽屉紧凑档 =====
   适用：宽度 ≤980px 且可视高度 ≤680px（375×667 / 360×640 一类小屏）。
   目的：默认折叠态下无需滚动即可看全抽屉全部入口。
   做法：只收紧纵向间距，抽屉项 46px → 44px（满足 ≥44px 触控标准），
        分组标题上下留白 9/5 → 5/3、项间距 2px → 1px。入口数量与顺序一律不变。 */
@media (max-width: 980px) and (max-height: 680px) {
  .pt-drawer .pt-nav-item { padding: 10px 16px; margin-bottom: 1px; }
  .pt-drawer-nav > .pt-drawer-group-head { padding: 5px 16px 3px; }
  .pt-drawer-sub .pt-nav-item { padding: 8px 16px 8px 24px; }
}


/* ===== 视觉动效 v1.1 · 20261028motion1 + A3/motion1b =====
   M1–M6：入场 opacity（A3：pt-fade-up 不再写 transform，hover 位移可生效）；
   CTA 不挡点击；hover 位移 ≤4px；prefers-reduced-motion 关入场/位移，保留颜色过渡；
   (hover:none) 不依赖 hover 才可读。不动 API / 顶栏结构。 */
:root {
  --pt-motion: 320ms;
  --pt-ease: cubic-bezier(.22, .61, .36, 1);
}

/* A3/motion1b：keyframes 只动 opacity，勿用 both 锁 transform（否则 hover translateY 无效） */
@keyframes pt-fade-up {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes pt-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes pt-badge-pop {
  0%   { transform: scale(1); }
  45%  { transform: scale(1.08); }
  100% { transform: scale(1); }
}

/* M1 Hero：0 / 120 / 200ms；禁止 visibility:hidden / pointer-events:none */
.pt-hero-title {
  animation: pt-fade-up var(--pt-motion) var(--pt-ease) both;
  animation-delay: 0ms;
}
.pt-hero-who,
.pt-hero-sub {
  animation: pt-fade-up var(--pt-motion) var(--pt-ease) both;
  animation-delay: 120ms;
}
.pt-hero-btns {
  animation: pt-fade-up var(--pt-motion) var(--pt-ease) both;
  animation-delay: 200ms;
  pointer-events: auto;
}
.pt-hero-btns a,
.pt-hero-btns .pt-btn { pointer-events: auto; }

/* IO 入场：仅在 JS 加 .pt-io 后才隐藏；无高度/margin 变化 */
.pt-reveal.pt-io:not(.is-in) {
  opacity: 0;
  transform: translateY(12px);
}
.pt-reveal.is-in {
  opacity: 1;
  transform: translateY(0);
  transition: opacity var(--pt-motion) var(--pt-ease),
              transform var(--pt-motion) var(--pt-ease);
}

/* M2 精选卡 stagger */
.pt-reveal.is-in .pt-guest-grid .pt-gt-card {
  animation: pt-fade-up var(--pt-motion) var(--pt-ease) both;
}
.pt-reveal.is-in .pt-guest-grid .pt-gt-card:nth-child(1) { animation-delay: 0ms; }
.pt-reveal.is-in .pt-guest-grid .pt-gt-card:nth-child(2) { animation-delay: 40ms; }
.pt-reveal.is-in .pt-guest-grid .pt-gt-card:nth-child(3) { animation-delay: 80ms; }
.pt-reveal.is-in .pt-guest-grid .pt-gt-card:nth-child(4) { animation-delay: 120ms; }
.pt-reveal.is-in .pt-guest-grid .pt-gt-card:nth-child(5) { animation-delay: 160ms; }
.pt-reveal.is-in .pt-guest-grid .pt-gt-card:nth-child(6) { animation-delay: 200ms; }

/* M3 入口卡 stagger + hover 统一 -3px（仅精细指针） */
.pt-reveal.is-in .pt-entry-grid .pt-entry-card {
  animation: pt-fade-up var(--pt-motion) var(--pt-ease) both;
}
.pt-reveal.is-in .pt-entry-grid .pt-entry-card:nth-child(1) { animation-delay: 0ms; }
.pt-reveal.is-in .pt-entry-grid .pt-entry-card:nth-child(2) { animation-delay: 40ms; }
.pt-reveal.is-in .pt-entry-grid .pt-entry-card:nth-child(3) { animation-delay: 80ms; }
.pt-reveal.is-in .pt-entry-grid .pt-entry-card:nth-child(4) { animation-delay: 120ms; }
.pt-reveal.is-in .pt-entry-grid .pt-entry-card:nth-child(5) { animation-delay: 160ms; }
.pt-reveal.is-in .pt-entry-grid .pt-entry-card:nth-child(6) { animation-delay: 200ms; }
.pt-reveal.is-in .pt-entry-grid .pt-entry-card:nth-child(7) { animation-delay: 240ms; }
.pt-reveal.is-in .pt-entry-grid .pt-entry-card:nth-child(8) { animation-delay: 280ms; }

@media (hover: hover) and (pointer: fine) {
  .pt-entry-card:hover {
    transform: translateY(-3px);
    border-color: rgba(201, 162, 75, .65);
    box-shadow: 0 8px 18px rgba(0, 0, 0, .18);
  }
  .pt-ev:hover {
    transform: translateY(-3px);
    border-color: rgba(201, 162, 75, .45);
    box-shadow: 0 8px 18px rgba(0, 0, 0, .16);
  }
  .pt-guest-grid .pt-gt-card:hover {
    box-shadow: 0 8px 18px rgba(0, 0, 0, .2);
  }
}

/* M4 赛事卡入场 stagger；badge 一次性微缩放 */
.pt-events > .pt-ev {
  animation: pt-fade-up var(--pt-motion) var(--pt-ease) both;
}
.pt-events > .pt-ev:nth-child(1) { animation-delay: 0ms; }
.pt-events > .pt-ev:nth-child(2) { animation-delay: 40ms; }
.pt-events > .pt-ev:nth-child(3) { animation-delay: 80ms; }
.pt-events > .pt-ev:nth-child(4) { animation-delay: 120ms; }
.pt-events > .pt-ev .pt-ev-badge {
  animation: pt-badge-pop 420ms var(--pt-ease) 1 both;
  animation-delay: 160ms;
}

/* M5 天梯 tab 切换 tbody 短淡入 */
.pt-ranktable tbody.is-swap {
  animation: pt-fade-in 200ms var(--pt-ease) both;
}

/* M6 区块标题随 section.is-in 淡入 */
.pt-reveal.is-in > .pt-sec-head,
.pt-reveal.is-in .pt-entry-head > .pt-sec-head,
.pt-reveal.is-in .pt-guest-head > .pt-sec-head,
.pt-reveal.is-in .pt-rank-head > .pt-sec-head {
  animation: pt-fade-in var(--pt-motion) var(--pt-ease) both;
}

/* 触控：不依赖 hover；关掉可能 sticky 的位移增强 */
@media (hover: none) {
  .pt-entry-card:hover,
  .pt-ev:hover,
  .pt-btn:hover,
  .pt-guest-grid .pt-gt-card:hover {
    transform: none;
    box-shadow: none;
  }
}

/* 可访问：关入场与位移，保留颜色类过渡（未全局清零 transition） */
@media (prefers-reduced-motion: reduce) {
  .pt-hero-title,
  .pt-hero-who,
  .pt-hero-sub,
  .pt-hero-btns,
  .pt-reveal,
  .pt-reveal.pt-io:not(.is-in),
  .pt-reveal.is-in,
  .pt-reveal.is-in .pt-guest-grid .pt-gt-card,
  .pt-reveal.is-in .pt-entry-grid .pt-entry-card,
  .pt-reveal.is-in > .pt-sec-head,
  .pt-reveal.is-in .pt-entry-head > .pt-sec-head,
  .pt-reveal.is-in .pt-guest-head > .pt-sec-head,
  .pt-reveal.is-in .pt-rank-head > .pt-sec-head,
  .pt-events > .pt-ev,
  .pt-events > .pt-ev .pt-ev-badge,
  .pt-ranktable tbody.is-swap {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .pt-entry-card:hover,
  .pt-ev:hover,
  .pt-btn:hover,
  .pt-feat:hover,
  .pt-guest-grid .pt-gt-card:hover {
    transform: none !important;
    box-shadow: none !important;
  }
}





/* ===== dyn1 数据动态 + 个性化（20261028dyn1）=====
   倒计时条 / pulse / 学员作业条；轻量；尊重 reduced-motion。
   不改 M7 Hero 扇形 / motion1 / A3-motion。 */

.pt-pulse {
  max-width: 1120px;
  margin: 0 auto;
  padding: 10px 20px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: baseline;
  font-size: 13px;
  color: var(--pt-muted, #5a6a7a);
}
.pt-pulse[hidden] { display: none !important; }
.pt-pulse-item {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}
.pt-pulse-n {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--pt-ink, #1a2433);
  font-size: 16px;
}
.pt-pulse-label { opacity: .85; }

.pt-next-event {
  max-width: 1120px;
  margin: 0 auto 12px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(26, 90, 140, .06);
  border: 1px solid rgba(26, 90, 140, .14);
  font-size: 14px;
  line-height: 1.5;
  color: var(--pt-ink, #1a2433);
}
.pt-next-event a {
  color: inherit;
  text-decoration: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  align-items: baseline;
}
.pt-next-event a:hover { text-decoration: underline; }
.pt-next-event-name { font-weight: 600; }
.pt-next-event-cd {
  font-variant-numeric: tabular-nums;
  color: var(--pt-accent, #1a5a8c);
  font-weight: 600;
}
.pt-next-event-empty { color: var(--pt-muted, #5a6a7a); }

.pt-student-hw {
  margin: 0 0 14px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(180, 90, 20, .07);
  border: 1px solid rgba(180, 90, 20, .18);
  font-size: 14px;
}
.pt-student-hw[hidden] { display: none !important; }
.pt-student-hw a {
  color: inherit;
  text-decoration: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  align-items: baseline;
}
.pt-student-hw a:hover { text-decoration: underline; }
.pt-student-hw-n { font-weight: 700; color: #a45a12; }
.pt-student-hw-due { color: var(--pt-muted, #5a6a7a); font-size: 13px; }

@media (prefers-reduced-motion: reduce) {
  .pt-pulse,
  .pt-next-event,
  .pt-student-hw {
    transition: none !important;
    animation: none !important;
  }
}

/* ===== M7 Hero AKQJ10 扇形 · 20261028heroFan6（v1.5）=====
   叠在 heroFan5 / motion1/A3 之上；主方案 A：只露 Q → 弹开过冲 → 落定 heroFan4 扇面 → 合拢。
   纯 CSS；pointer-events:none；防 CLS。
   v1.5：牌序左→右 ST→SA（10 J Q K A）；终态角 ±40/±20/0（=heroFan4）；外档过冲 ±44；
   pt-fan-breathe 4.5s（0–10% 合拢保持 / 10–38% 弹开含过冲 / 38–58% 平台 heroFan4 /
   58–90% 合拢 / 90–100% 合拢保持）；合拢 z 1/2/10/2/1（Q=10）；展开平台 z 左低右高 1/2/3/4/5；
   仍牌底轴 transform-origin:50% 100%；--fan-tx-open 恒 0（禁止大 tx 撑扇）；无 per-card --fan-ty；
   容器默认回 heroFan4：250×140 / 300×185 / 350×230；
   reduced-motion 定格 heroFan4 展开扇（±40/±20/0，左低右高 z），停循环。
   ＜900：LOGO+扇可折行居中；≥900：扇贴 LOGO 右侧成组居中（20261029portalhero1）。 */
.pt-hero-fan {
  position: relative;
  z-index: 2;
  pointer-events: none;
  user-select: none;
  width: 250px;
  height: 140px;
  margin: 0; /* 在 .pt-hero-brand 内，由 gap 控距 */
  flex-shrink: 0;
}
.pt-hero-fan-card {
  --fan-tx-open: 0px; /* v1.2–v1.5：恒 0；开合不用 tx 撑扇 */
  --fan-rot-open: 0deg;
  --z-closed: 1;
  --z-open: 1;
  position: absolute;
  left: 50%;
  top: 50%;
  width: 52px;
  height: 74px;
  object-fit: contain;
  border-radius: 5px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .32);
  transform-origin: 50% 100%;
  will-change: transform, opacity;
  backface-visibility: hidden;
  /* 默认定格态＝展开（供 reduced-motion / 动画未跑时）；循环动画覆盖 transform/z */
  transform: translate(-50%, -100%) rotate(var(--fan-rot-open));
  z-index: var(--z-open);
  animation: pt-fan-breathe 4.5s var(--pt-ease) infinite;
}
.pt-hero-fan-card:nth-child(1) {
  --fan-rot-open: -40deg;
  --fan-rot-overshoot: -44deg;
  --z-closed: 1;
  --z-open: 1;
}
.pt-hero-fan-card:nth-child(2) {
  --fan-rot-open: -20deg;
  --z-closed: 2;
  --z-open: 2;
}
.pt-hero-fan-card:nth-child(3) {
  --fan-rot-open: 0deg;
  --z-closed: 10; /* Q 合拢最上；展开平台回 heroFan4 的 3 */
  --z-open: 3;
}
.pt-hero-fan-card:nth-child(4) {
  --fan-rot-open: 20deg;
  --z-closed: 2;
  --z-open: 4;
}
.pt-hero-fan-card:nth-child(5) {
  --fan-rot-open: 40deg;
  --fan-rot-overshoot: 44deg;
  --z-closed: 1;
  --z-open: 5;
}
/* 合拢(露Q)→弹开(过冲)→平台 heroFan4 角+左低右高z→合拢再露Q；五张同轴；只变 rotate(+scale/z) */
@keyframes pt-fan-breathe {
  0%, 10% {
    opacity: 1;
    transform: translate(-50%, -100%) rotate(0deg) scale(.96);
    z-index: var(--z-closed);
  }
  28% {
    opacity: 1;
    transform: translate(-50%, -100%) rotate(var(--fan-rot-overshoot, var(--fan-rot-open))) scale(1.03);
  }
  38%, 58% {
    opacity: 1;
    transform: translate(-50%, -100%) rotate(var(--fan-rot-open)) scale(1);
    z-index: var(--z-open);
  }
  90%, 100% {
    opacity: 1;
    transform: translate(-50%, -100%) rotate(0deg) scale(.96);
    z-index: var(--z-closed);
  }
}

/* ≥900px：扇形仅贴 LOGO 右侧（成组居中）；文案仍整页居中，不再 grid 拉歪 */
@media (min-width: 900px) {
  .pt-hero-inner {
    max-width: 900px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }
  .pt-hero-brand {
    flex-wrap: nowrap;
    gap: clamp(12px, 2vw, 28px);
  }
  .pt-hero-fan {
    width: 300px;
    height: 185px;
  }
  .pt-hero-fan-card {
    width: 72px;
    height: 100px;
    border-radius: 6px;
  }
  .pt-hero-who,
  .pt-hero-sub {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }
  /* 各断点勿再覆盖 --fan-tx-open；保持 0 */
}

/* ≥1100px：更大牌面；容器对齐 heroFan4（±40 终态；±44 过冲若裁切再略加，禁加大 tx） */
@media (min-width: 1100px) {
  .pt-hero-inner { max-width: 960px; }
  .pt-hero-fan {
    width: 350px;
    height: 230px;
  }
  .pt-hero-fan-card {
    width: 88px;
    height: 124px;
    border-radius: 7px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .36);
  }
}

/* 可访问：停循环，定格 heroFan4 同高展开扇（±40/±20/0，左低右高 z，仍无大 tx） */
@media (prefers-reduced-motion: reduce) {
  .pt-hero-fan-card {
    animation: none !important;
    opacity: 1 !important;
    transform: translate(-50%, -100%) rotate(var(--fan-rot-open)) scale(1) !important;
    z-index: var(--z-open) !important;
  }
}

/* ★ 20261031mobilefit1：≤480px 窄屏收紧（微信内置浏览器 / 小屏手机实测反馈） */
@media (max-width: 480px) {
  .pt-hero { padding: 84px 14px 64px; }
  /* 扇形牌组收一档，保证与标题同排或在 320px 视口内折行后仍居中完整 */
  .pt-hero-fan { width: 190px; height: 108px; }
  .pt-hero-fan-card { width: 42px; height: 60px; }
  .pt-hero-q, .pt-hero-name { font-size: clamp(40px, 11vw, 52px); }
  .pt-hero-sub { letter-spacing: 1px; line-height: 1.75; margin-bottom: 30px; }
  .pt-section { padding-left: 14px; padding-right: 14px; }
  /* 统计/表格类内容允许在极窄屏横向滚动，但不把页面撑破（滚动发生在各自容器内） */
  .pt-rank-wrap, .pt-tablewrap, .pt-events { min-width: 0; max-width: 100%; }
}
