/* ==========================================================================
   立壹服务台 · 页面修正层 (R10)
   --------------------------------------------------------------------------
   在各页自带样式之后加载,只做三件"地板"工作,不改变任何页面的设计语言:
     1. 可读性地板:说明性文字不小于 12px(旧版大量 10–11px)
     2. 触控地板:可点元素命中区不小于 44×44(旧版大量 20–40px)
     3. 对比度修正:少数低于 4.5:1 的文字(390px 实测定位)
   这里使用 !important 是刻意的:地板规则必须压过各页历史样式,
   但选择器范围严格限定在"说明文字 / 可点元素",不触碰版式与配色体系。
   ========================================================================== */

/* --- 1. 可读性地板 ------------------------------------------------------ */
small,.small{font-size:12px!important}
.demo-stamp,.mode-badge,.dirty-pill,.dl-fee,.sheet-title,.brand-sub,.src,.n,
.missing,.eyebrow,.dot,.seg button,footer:not(.tool-foot){font-size:12px!important}
/* 实测遗漏的散装小字(文案台) */
#genHint,#inqHint,#kwHint,#documentType,#editState,#factCount,.foot-symbol{font-size:12px!important}
@media(min-width:861px){
  small,.small,.demo-stamp,.mode-badge,.dirty-pill,.dl-fee,.sheet-title,.brand-sub,
  .src,.n,.missing,.eyebrow,.dot{font-size:12.5px!important}
}
/* 缩略图/预览区里的文字是等比缩放的一部分,不参与地板,避免撑破小卡片 */
.layout-thumb small,.layout-thumb .small,.layout-thumb .lt-name,
.thumb small,.thumb .small,.mini-preview small,.mini-preview .small{font-size:inherit!important}

/* --- 2. 触控地板:可点元素命中区 ≥ 44×44 ------------------------------- */
a.crumb,a.brand,a.pill,a.mini,a.back,
button.langt,button.linklike,button.mini,button.ghost,button.add-row-btn,
.lang-toggle button,.seg button,.filters button,#categories button,#favorites,footer a{
  min-height:44px;min-width:44px;
}
/* 视觉尺寸不变,用伪元素扩大命中区 */
a.crumb,button.mini,a.pill{position:relative}
a.crumb::after,button.mini::after,a.pill::after{content:"";position:absolute;inset:-6px -8px}
input[type="text"],input[type="url"],input[type="email"],input[type="search"],textarea,select{min-height:44px}
.confirm-row input[type="checkbox"]{width:24px!important;height:24px!important;min-height:0}

/* --- 3. 对比度修正(390px 实测低于 4.5:1 的元素) ----------------------- */
/* 文案台:流程箭头 */
.flow i,.flow-arrow{color:#4E5F73!important}
/* 网站体检:面包屑分隔符 */
.crumb-sep{color:#5F7186!important}
/* 回复助手:首屏大号装饰数字 + 服务号验签说明 */
.service .number{color:#5B6B7C!important}
.card p b{color:#7A5200!important}
/* 回复助手:聊天演示头部浅色说明(绿底上原来 4.3:1) */
.chat-demo .cd-head small{color:#EAF7F0!important}

/* --- 4. 回复助手:绿色主题(原来是与总站同色的蓝,视觉上分不出服务身份) --- */
body[data-studio-page="reply"]{
  --bg:#F1F7F4;      /* 纸面:带绿的浅灰 */
  --paper:#FFFFFF;
  --ink:#12291F;     /* 白底 15.4:1 */
  --muted:#42584C;   /* 白底 8.1:1;在浅绿底 #E4F4EC 上 6.8:1 */
  --accent:#0F7A55;  /* 白底 5.3:1;反白同样 5.3:1 */
  --soft:#E4F4EC;
  --line:#D3E4DA;
  --warning:#8A5A00;
}

/* --- 5. 名片工坊:移动端两列 + 首个模板通栏(原为单列,一屏只看得到一个模板) --- */
@media(max-width:600px){
  .gallery{grid-template-columns:1fr 1fr!important;gap:16px 12px!important}
  .tile:first-child{grid-column:1/-1}
  .gallery-intro{padding:26px 0 20px!important}
  .gallery-intro h1{font-size:clamp(30px,8.4vw,40px)!important}
}
@media(min-width:601px) and (max-width:1000px){
  .gallery{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}

/* --- 6. 各页自带页脚统一(工具页的 .tool-foot 有自己的身份,不参与统一) --- */
footer:not(.tool-foot){
  text-align:left!important;
  font-family:var(--libb-sans,inherit)!important;
  font-size:12.5px!important;
  line-height:1.75!important;
  letter-spacing:normal!important;
  color:var(--libb-muted,inherit)!important;
}
footer a,footer b,footer strong{font-family:inherit!important}
footer .flow,footer .row,footer .footer-inner{justify-content:flex-start!important;text-align:left!important}
footer .flow i{color:#5F7186!important}

/* --- 7. 回复助手小节标题:沿用借鉴层的语言(大一号 + 蓝色竖线) --- */
body[data-studio-page="reply"] .sec{
  position:relative;padding-left:16px;
  font-size:clamp(20px,3.4vw,26px);line-height:1.3;letter-spacing:-.02em;
}
body[data-studio-page="reply"] .sec::before{
  content:"";position:absolute;left:0;top:.16em;bottom:.16em;width:4px;border-radius:2px;
  background:var(--libb-brand,#004EA2);
}

/* --- 8. 工具页第二层栏瘦身:页名/品牌已经在全站栏与页面标题里出现,不再重复 --- */
.gl-bar + header .mark,
.gl-bar + header .brand,
.gl-bar + header .brand-name,
.gl-bar + header .brand-sub,
.gl-bar + header .crumb,
.gl-bar + header .crumb-sep,
.gl-bar + header .sub{display:none!important}
/* 第二层栏贴住全站栏,不留双线 */
.gl-bar + header{border-top:0!important}

/* --- 8. 装饰层安全 ------------------------------------------------------ */
/* 环境光效只能画,不能吃点击;层级不得高于导航(导航 z-index:100) */
.ripples,.ambient,.glow,.aurora{pointer-events:none;z-index:0!important}
.ripples{position:fixed;inset:0}
