/* ==========================================================================
   门户文本版式锁定（2026-10-17）
   所有可被后台修改的文字都保持在现有版式区域内：
   1) 区域内自动换行（word-break 兜底长英文）
   2) 超过设计行数时截断并显示省略号
   3) 单行字段一律 nowrap + 省略号
   本文件必须最后加载（放在各页 <style> 之后），只覆盖文本溢出行为，不改版式。
   ========================================================================== */

/* ---------- 全站公共：导航 / 页脚 / 聊天 ---------- */
.nav-brand{max-width:140px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.nav-menu a{max-width:110px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.f-brand{max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.f-tag{max-width:280px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.f-nav a{max-width:120px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.f-copy{max-width:240px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.chat-name{max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.chat-msg{overflow-wrap:break-word;}

/* ---------- 首页 ---------- */
.hero-hi{max-width:600px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.hero-title{max-width:600px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;word-break:break-word;}
.hero-desc{max-width:600px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;word-break:break-word;}
.chip{max-width:220px;overflow:hidden;}
.chip span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.btn{max-width:260px;overflow:hidden;}
.sec-title{max-width:300px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.sec-sub{max-width:340px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.sec-more{max-width:170px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.card-desc{white-space:normal;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;word-break:break-word;}
.news-desc{white-space:normal;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;word-break:break-word;}
.tags .tag{max-width:120px;overflow:hidden;text-overflow:ellipsis;}
.skill b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.skill span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.tl-year,.tl-role,.tl-tech{max-width:170px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.doing .d-item span{max-width:240px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.doing .go{max-width:80px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.news-badge{max-width:80px;overflow:hidden;text-overflow:ellipsis;}
.news-date{max-width:110px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.photo-hand.h1,.photo-hand.h2{max-width:270px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.photo-hand.h3{max-width:140px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.hero-quote .q1,.hero-quote .q2{max-width:330px;overflow:hidden;text-overflow:ellipsis;}
.hero-quote .q3{max-width:240px;overflow:hidden;text-overflow:ellipsis;}

/* ---------- 子页 hero（关于我 / 技术路线 / AI 项目 / 联系我） ---------- */
.th-eyebrow,.sk-eyebrow,.pj-eyebrow,.ct-eyebrow{max-width:400px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.th-h1,.sk-h1,.pj-h1,.ct-h1{max-width:600px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.th-sub,.sk-sub,.ct-sub{max-width:600px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.th-desc,.sk-desc,.pj-desc,.ct-desc{white-space:normal;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;max-width:600px;word-break:break-word;}
.th-chips span{max-width:170px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}

/* ---------- 关于我 ---------- */
.bd-hd b{max-width:240px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.bd-hd em{max-width:140px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.bio-p{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;word-break:break-word;}
.stat .n{max-width:190px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.stat .l{max-width:190px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.wk .dt{max-width:104px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.wk .co{max-width:264px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.wk .rl{max-width:80px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.wk .tg{max-width:130px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.wk .ds{white-space:normal;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;word-break:break-word;}
.edu .dt{max-width:104px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.edu .rl,.edu .dg{max-width:90px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.sf b{max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.sf span{max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.art .cat{max-width:80px;overflow:hidden;text-overflow:ellipsis;}
.art h3{max-width:240px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;word-break:break-word;}
.art p{max-width:248px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;word-break:break-word;}
.art .meta{max-width:240px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.li-t{max-width:300px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.li-s{max-width:300px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.li-n{max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.nw-t{max-width:260px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.op-t{max-width:260px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.sub-t{max-width:230px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.sub-s{max-width:230px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.sub-i{max-width:226px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.sub-b{max-width:226px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.tli b{max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.hb span{max-width:64px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.th-hand .h1,.th-hand .h2{max-width:360px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.th-hand .h3{max-width:240px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}

/* ---------- 技术路线 ---------- */
.gcard .yr{max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.gcard .gd{max-width:220px;white-space:normal;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;overflow:hidden;word-break:break-word;}
.ccard b{max-width:110px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.tcard .tt{max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.tcard .td{max-width:280px;white-space:normal;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;word-break:break-word;}
.tcard .tgs span{max-width:125px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.prog b,.prog i{max-width:130px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.ov-t{max-width:270px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.ov-h{max-width:270px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.ov-s{max-width:270px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.ov-p{max-width:270px;white-space:normal;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;word-break:break-word;}
.kw-t{max-width:270px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.ptx{max-width:300px;white-space:normal;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;word-break:break-word;}
.sh-all{max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.lq .sig{max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.sk-hand .h1,.sk-hand .h2,.sk-hand .h3{max-width:360px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.sk-hand .h4{max-width:240px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}

/* ---------- AI 项目实践作品集 ---------- */
.stat b{max-width:100px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.pcard .pt{max-width:300px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.pcard .ps{max-width:300px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.pcard .pd{max-width:320px;white-space:normal;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;word-break:break-word;}
.pcard .cap{max-width:240px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.pcard .kind{max-width:110px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.pcard .more{max-width:80px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.pi b{max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.pcard .tags span{max-width:110px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.vhand{max-width:260px;white-space:normal;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;word-break:break-word;}
.sect-t{max-width:300px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.quote2 .sig{max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}

/* ---------- 联系我 ---------- */
.ci b{max-width:160px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.ci u{max-width:160px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.ci .v{max-width:170px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.ci .n{max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.bs{max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.bhand{max-width:300px;white-space:normal;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;word-break:break-word;}
.cq .sg{max-width:140px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.qr s{max-width:60px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.send{max-width:400px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}

/* 截断字段的即时悬停全文浮层（portal-bind-2.js 负责定位与显示） */
#cms-hover-tip{
  position:fixed;
  z-index:2147483000;
  max-width:min(440px,calc(100vw - 24px));
  padding:8px 11px;
  border-radius:8px;
  background:rgba(15,29,55,.96);
  box-shadow:0 8px 24px rgba(8,20,42,.24);
  color:#fff;
  font:12px/1.55 -apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;
  text-align:left;
  white-space:normal;
  overflow-wrap:anywhere;
  pointer-events:none;
  opacity:0;
  visibility:hidden;
  transform:translateY(4px);
  transition:opacity .12s ease,transform .12s ease,visibility .12s;
}
#cms-hover-tip[data-show="1"]{
  opacity:1;
  visibility:visible;
  transform:none;
}
/* 被截断、可在悬停时查看全文的字段，给出可交互提示 */
[data-cms-tooltip="1"]{cursor:help;}

/* ==========================================================================
   2026-10-18 版式冻结补丁
   目标：后台内容无论多长，都只影响该字段自身的截断，不改变页面高度、
   不挤占相邻模块、不造成横向滚动。当前内容远未触发这些边界，因此视觉不变。
   ========================================================================== */

.page [data-cms],
.page [data-cms-field],
.page [data-cms-string],
.page [data-cms-rich] {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.page img[data-cms-attr="src"] {
  max-width: 100%;
}

/* 首页固定区域 */
.page--home .sec-title {
  width: 123px;
  max-width: 123px;
  display: block;
}

.hero-chips {
  max-width: 600px;
  flex-wrap: nowrap;
  overflow: hidden;
}

.hero-chips .chip {
  flex: 0 1 auto;
  min-width: 0;
}

.hero-chips .chip span {
  max-width: 150px;
}

.hero-cta {
  max-width: 600px;
  overflow: hidden;
}

.hero-cta .btn span {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-quote .q1,
.hero-quote .q2,
.hero-quote .q3 {
  white-space: nowrap;
}

.hero-quote {
  overflow: hidden;
}

.card .tags {
  max-width: calc(100% - 24px);
  max-height: 28px;
  overflow: hidden;
}

.card .tags .tag {
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.skill {
  overflow: hidden;
}

.skill b,
.skill span {
  display: block;
  max-width: 104px;
}

.tl-year,
.tl-role,
.tl-tech {
  white-space: nowrap;
}

/* 子页 Hero */
.th-h1,
.sk-h1,
.pj-h1,
.ct-h1 {
  width: 600px;
}

.th-sub,
.sk-sub,
.pj-sub,
.ct-sub {
  white-space: nowrap;
}

.th-hand,
.sk-hand,
.pj-hand,
.ct-hand {
  overflow: hidden;
}

.th-hand i,
.sk-hand i,
.pj-hand i,
.ct-hand i {
  max-width: 365px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.th-hand i.h3,
.pj-hand i.h3,
.ct-hand i.h3 {
  max-width: 235px;
}

/* 关于我：固定两段简介与文章摘要 */
.bd-hd {
  max-width: 880px;
  overflow: hidden;
}

.bd-hd > b,
.bd-hd > em,
.bd-hd > .work-order {
  min-width: 0;
}

.bd-hd > b {
  flex: 0 1 auto;
  max-width: 240px;
}

.bd-hd > em {
  flex: none;
  max-width: 180px;
}

.bd-hd > .work-order {
  flex: none;
}

.bio-p {
  max-height: 42px;
}

.wk .co {
  max-width: 264px;
}

.wk .ds {
  max-height: 51px;
}

.page--about .art h3 {
  max-height: 40px;
}

.page--about .art p {
  max-height: 34px;
}

.page--about .art .meta {
  white-space: nowrap;
}

/* 技术路线：成长卡描述与要点必须为下方列表留出固定空间 */
.sh {
  max-width: 650px;
  overflow: hidden;
}

.sh b {
  max-width: 240px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sh em {
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gcard h3 {
  max-width: 210px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gcard .gd {
  max-height: 26px;
  -webkit-line-clamp: 2;
}

.gcard li {
  max-width: 205px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tcard .tgs {
  max-height: 46px;
  overflow: hidden;
}

.tcard .td {
  max-height: 54px;
}

.route-edu-badge {
  max-width: 560px;
  overflow: hidden;
}

.route-edu-badge b,
.route-edu-badge em span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* AI 项目：新版三栏项目行 */
.page--proj .pcard {
  min-width: 0;
}

.page--proj .pcard .kind {
  max-width: 120px;
}

.page--proj .pcard .pt {
  max-width: 470px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page--proj .pcard .ps {
  max-width: 455px;
}

.page--proj .pcard .pd {
  max-width: 455px;
  max-height: 36px;
  -webkit-line-clamp: 2;
}

.page--proj .pcard .tags {
  max-width: 292px;
  max-height: 62px;
  overflow: hidden;
}

.page--proj .pcard .tags span {
  max-width: 132px;
}

.page--proj .pcard .more {
  max-width: 92px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 作品集：隐藏重复的悬浮数字人卡片，避免遮挡项目「查看详情」按钮；
   右下角对话入口仍由全局悬浮头像提供 */
.page--proj .float {
  display: none !important;
}

.page--proj .float b {
  max-width: 126px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page--proj .float span {
  max-width: 126px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 联系页：新版邮箱主卡与下半区 */
.bh {
  max-width: calc(100% - 40px);
  min-width: 0;
  overflow: hidden;
}

.bh > img {
  flex: none;
}

.bh > b {
  min-width: 0;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bh > em {
  min-width: 0;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact-primary {
  min-width: 0;
}

.contact-primary-label {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact-email {
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact-primary-note {
  max-width: 330px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact-copy {
  max-width: 92px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page--contact .big-l .bs {
  max-width: 520px;
}

.page--contact .bc1 .bul li span {
  display: inline-block;
  max-width: 245px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: top;
}

.page--contact .bc2 .bs,
.page--contact .bc2 .map {
  max-width: 594px;
}

.page--contact .tri {
  max-width: 540px;
  overflow: hidden;
}

.page--contact .tri div {
  min-width: 0;
  max-width: 180px;
  overflow: hidden;
}

.page--contact .tri div > span {
  min-width: 0;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.qpill {
  min-width: 0;
  overflow: hidden;
}

.qpill span {
  max-width: 230px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-msg {
  max-height: 180px;
  overflow-x: hidden;
  overflow-y: auto;
}

/* 右下角悬浮「联系我」提示：默认隐藏，仅在悬停或键盘聚焦时出现，避免遮挡卡片内容与按钮 */
.fab .fab-tip {
  opacity: 0;
  pointer-events: none;
  transform: translateX(6px);
  transition: opacity .18s ease, transform .18s ease;
}

.fab:hover .fab-tip,
.fab:focus-within .fab-tip {
  opacity: 1;
  transform: none;
}

/* 悬浮按钮旁的气泡文案：默认隐藏，悬停时出现，避免在 1312px 桌面宽度下压住卡片内容 */
.fab-btn .fl-tip,
.dh-mini .fl-tip {
  opacity: 0;
  transform: translateY(-50%) translateX(6px);
  transition: opacity .18s ease, transform .18s ease;
}

.fab-btn:hover .fl-tip,
.fab-btn:focus-visible .fl-tip,
.dh-mini:hover .fl-tip,
.dh-mini:focus-visible .fl-tip {
  opacity: 1;
  transform: translateY(-50%);
}
