/* ==========================================================================
   SuperPDF · 前台主样式
   效果清单：1 毛玻璃 / 2 便当盒 / 3 三维倾斜 / 4 聚光灯 / 5 视差滚动
             6 交错入场 / 7 走马灯 / 8 文字逐行揭示
   ========================================================================== */
@import url("./tokens.css");

/* 用户提供的第二张原图（红色 P 图标）：整页虚化背景与每个小方格底纹共用同一份，
   单文件构建时只内联一次 base64；Logo 本身内容/颜色/比例不做任何修改。 */
:root { --logo-img: url("../img/logo-icon.jpg"); }

/* ------------------------------ Reset / Base ------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--td-font);
  font-size: var(--td-fs-3);
  line-height: var(--td-lh-body);
  color: var(--td-text-primary);
  background: #eef3ff;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
img, canvas { display: block; max-width: 100%; }
::selection { background: var(--td-brand-3); color: var(--td-brand-10); }
:focus-visible { outline: 2px solid var(--td-brand-color); outline-offset: 2px; }

.container { width: min(100% - 2 * var(--td-s3), var(--td-content-max)); margin-inline: auto; }
.page-shell { position: relative; z-index: 2; }

/* -------------------- 5 · 视差背景层（背景移动慢） ----------------------- */
.page-bg {
  position: fixed; inset: -12% 0 -12% 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(900px 620px at 12% 8%, rgba(120, 160, 255, .34), transparent 68%),
    radial-gradient(760px 560px at 92% 26%, rgba(150, 130, 255, .26), transparent 70%),
    radial-gradient(820px 620px at 28% 88%, rgba(90, 200, 235, .22), transparent 72%),
    linear-gradient(165deg, #f5f8ff 0%, #e6eeff 38%, #dae6ff 70%, #f2f6ff 100%);
}
/* 用户提供的第二张图（红色 P 图标）作为整站模糊虚化底图：
   只做背景虚化，不改动 Logo 本身的内容/颜色/比例；三处错位铺开形成柔和红白光晕。 */
.bg-logo {
  position: absolute; inset: -14%;
  /* 同一张原图用全局变量复用三处，单文件版只需内联一次 base64 */
  background-image: var(--logo-img), var(--logo-img), var(--logo-img);
  background-size: 320px 320px, 270px 270px, 360px 360px;
  background-position: 6% 4%, 84% 30%, 26% 78%;
  background-repeat: no-repeat;
  /* 第七轮：背景由 .26 加深到 .40、模糊略收，红粉光晕更明显；
     它位于毛玻璃卡片之下，卡片自带半透明白底 + blur，文字不受影响 */
  filter: blur(58px) saturate(175%);
  opacity: .40;
  /* 不设 transform：视差层会写入 translate3d，由 inset 负值与 blur 自身铺满画面 */
  will-change: transform;
  pointer-events: none;
}
/* 斜向柔光带：给毛玻璃一个能「糊开」的明确底图 */
.page-bg::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(118deg, transparent 24%, rgba(0, 82, 217, .10) 42%,
              rgba(126, 92, 255, .10) 56%, transparent 76%);
}
.bg-layer { position: absolute; inset: 0; will-change: transform; }
.bg-blob { position: absolute; border-radius: 50%; filter: blur(52px); opacity: .72; }
.bg-blob.a { width: 520px; height: 520px; left: -8%;  top: 3%;   background: radial-gradient(circle, #6f96ff, transparent 70%); }
.bg-blob.b { width: 460px; height: 460px; right: -6%;  top: 16%;  background: radial-gradient(circle, #a98cff, transparent 70%); }
.bg-blob.c { width: 560px; height: 560px; left: 26%;   top: 58%;  background: radial-gradient(circle, #6fc8ee, transparent 72%); }
.bg-blob.d { width: 380px; height: 380px; right: 16%;  bottom: 4%; background: radial-gradient(circle, #ff9ab5, transparent 72%); opacity: .42; }
.bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0, 82, 217, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 82, 217, .07) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: linear-gradient(#000 0%, transparent 88%);
  mask-image: linear-gradient(#000 0%, transparent 88%);
}
.float-shape {
  position: absolute; border-radius: 28%; border: 1px solid rgba(0, 82, 217, .22);
  background: rgba(255, 255, 255, .42);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 8px 24px rgba(0, 60, 160, .08);
  will-change: transform;
}
.float-shape.f1 { width: 92px;  height: 92px;  left: 8%;  top: 38%; transform: rotate(18deg); }
.float-shape.f2 { width: 46px;  height: 46px;  right: 12%; top: 52%; border-radius: 50%; }
.float-shape.f3 { width: 130px; height: 130px; right: 4%; top: 8%;  transform: rotate(-22deg); }

/* ------------------------- 4 · 聚光灯（跟随鼠标） ------------------------- */
#spotlight {
  /* 放在玻璃卡片之下：光晕透过半透明玻璃显现，卡片文字完全不受混合影响 */
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  opacity: 0; transition: opacity .38s var(--td-ease);
  background: radial-gradient(
    var(--mv-spotlight-size, 320px) circle at var(--sx, 50%) var(--sy, 30%),
    rgba(255, 255, 255, .95) 0%,
    rgba(170, 200, 255, .55) 34%,
    rgba(140, 122, 255, .22) 58%,
    transparent 80%);
  mix-blend-mode: screen;
}
body.has-pointer #spotlight { opacity: 1; }

/* 单文件外壳（微信 / 手机）内：站点头部收成一行轻玻璃栏，
   与外层工具条明确分层，不再叠两条厚白栏 */
.in-shell .brand-sub { display: none; }
.in-shell .brand-text { font-size: 16px; }
.in-shell .site-header { background: rgba(255, 255, 255, .58); }
.in-shell .header-inner { gap: var(--td-s2); }
.in-shell .notice-wrap { padding-top: 8px; }
.in-shell .notice-pill { font-size: 10px; }

/* ------------------------------- Header ---------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 30; height: var(--td-header-h);
  background: rgba(255, 255, 255, .72);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, .65);
  box-shadow: 0 1px 0 var(--td-border-soft);
}
.site-header.is-static { position: relative; }
.header-inner {
  width: min(100% - 2 * var(--td-s3), var(--td-content-max));
  height: 100%; margin-inline: auto; display: flex; align-items: center; gap: var(--td-s3);
}
.brand { display: flex; align-items: center; gap: 10px; flex: none; min-width: 0; }
.brand-words { display: block; min-width: 0; }
.brand-text { display: block; font-size: 18px; font-weight: 750; letter-spacing: .5px; line-height: 1.05; }
.brand-sub  { display: block; font-size: 10px; color: var(--td-text-placeholder); letter-spacing: 1.6px; line-height: 1; margin-top: 3px; }
/* 真实 Logo：只按后台设置的尺寸等比展示，不裁切、不改色、不改内容 */
.brand-logo { display: block; flex: none; object-fit: contain; background: #fff; }
.header-logo { box-shadow: 0 1px 6px rgba(0, 40, 120, .12); }
.footer-logo { box-shadow: 0 1px 8px rgba(0, 40, 120, .10); }
.footer-brand { align-items: flex-start; }
.footer-brand .brand-words { display: none; }   /* 横版已含中英文字，不重复 */
.footer-brand-col .footer-slogan { margin-top: 14px; }
.footer-grid { align-items: start; }
.nav { display: flex; align-items: center; gap: 2px; flex: 1; min-width: 0; }
.nav-link {
  padding: 6px 12px; border-radius: var(--td-radius-md);
  font-size: var(--td-fs-2); color: var(--td-text-secondary);
  white-space: nowrap; transition: background var(--td-dur-fast) var(--td-ease), color var(--td-dur-fast) var(--td-ease);
}
.nav-link:hover { background: var(--td-brand-1); color: var(--td-brand-color); }
.nav-link.is-active { color: var(--td-brand-color); font-weight: 650; }
.header-cta { flex: none; }
.nav-toggle {
  display: none; width: 36px; height: 36px; border: 1px solid var(--td-border-default);
  border-radius: var(--td-radius-md); background: #fff; color: var(--td-brand-color);
  align-items: center; justify-content: center; font-size: 18px; line-height: 1;
}

/* 公告条 */
.notice-wrap { padding-top: var(--td-s3); }
.notice-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: var(--td-radius-round);
  font-size: var(--td-fs-1); color: var(--td-brand-color);
  background: rgba(255, 255, 255, .66);
  border: 1px solid rgba(255, 255, 255, .75);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: var(--td-shadow-1);
}
.notice-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--td-success); }

/* ------------------------------- Buttons --------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 20px; border-radius: var(--td-radius-md);
  border: 1px solid transparent; font-size: var(--td-fs-2); font-weight: 650;
  white-space: nowrap; transition: background var(--td-dur) var(--td-ease),
    transform var(--td-dur) var(--td-ease), box-shadow var(--td-dur) var(--td-ease);
}
.btn-primary { background: var(--td-brand-color); color: var(--td-text-anti); box-shadow: 0 4px 12px rgba(0, 82, 217, .22); }
.btn-primary:hover { background: var(--td-brand-hover); transform: translateY(-2px); box-shadow: var(--td-shadow-2); }
.btn-primary:active { background: var(--td-brand-active); transform: translateY(0); }
.btn-primary:disabled { background: var(--td-brand-disabled); box-shadow: none; cursor: not-allowed; transform: none; }
.btn-ghost { background: rgba(255, 255, 255, .72); border-color: var(--td-border-default); color: var(--td-brand-color); }
.btn-ghost:hover { background: var(--td-brand-1); border-color: var(--td-brand-3); }
.btn-sm { height: 32px; padding: 0 14px; font-size: var(--td-fs-1); }

/* -------------------------------- Hero ----------------------------------- */
.hero { position: relative; padding: var(--td-s8) 0 var(--td-s10); }
.hero-grid { display: grid; grid-template-columns: 1.12fr .88fr; gap: var(--td-s6); align-items: center; }
.hero-eyebrow {
  font-size: var(--td-fs-1); font-weight: 650; letter-spacing: 2px;
  color: var(--td-brand-color); text-transform: uppercase;
}
.hero-title {
  font-size: clamp(34px, 4.6vw, 60px); font-weight: 800; line-height: 1.2;
  letter-spacing: -1.5px; margin: var(--td-s2) 0 var(--td-s3);
}
.hero-title .accent { color: var(--td-brand-color); }

/* 8 · 文字逐行揭示：每行独立遮罩，一行完成再显示下一行 */
.reveal-line { display: block; overflow: hidden; padding-bottom: .10em; margin-bottom: -.10em; }
/* 内容默认可读（零等待）；只有 JS 主动标记 will-reveal 的行才做极短遮罩揭示 */
.reveal-inner {
  display: block; transform: translateY(0); opacity: 1;
  transition: transform var(--mv-text-duration, 120ms) var(--td-ease-out),
              opacity var(--mv-text-duration, 120ms) var(--td-ease-out);
}
.reveal-line.will-reveal:not(.is-in) .reveal-inner { transform: translateY(110%); opacity: 0; }

.hero-desc { max-width: 520px; color: var(--td-text-secondary); font-size: var(--td-fs-3); margin: 0 0 var(--td-s4); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 10px; margin-top: var(--td-s6); flex-wrap: wrap; }
/* 三块半透明玻璃小卡：首屏即可看到「卡片半透明 + 背景模糊」，文字仍用高对比语义色 */
.hero-stats > div {
  min-width: 0; flex: 1 1 88px; padding: 10px 12px;
  border-radius: var(--td-radius-md);
  background: linear-gradient(145deg, rgba(255, 255, 255, .76), rgba(255, 255, 255, .44));
  -webkit-backdrop-filter: blur(var(--mv-glass-blur, 24px)) saturate(195%);
  backdrop-filter: blur(var(--mv-glass-blur, 24px)) saturate(195%);
  border: 1px solid rgba(255, 255, 255, .92);
  box-shadow: inset 0 1px 0 #fff, 0 8px 22px rgba(0, 52, 140, .10);
}
.stat-num { font-family: var(--td-font-num); font-size: var(--td-fs-5); font-weight: 750; color: var(--td-brand-color); line-height: 1; }
.stat-label { font-size: var(--td-fs-1); color: var(--td-text-secondary); margin-top: 6px; }

/* Hero 视觉：文档堆叠 + 3D 倾斜 */
.hero-visual { position: relative; padding: var(--td-s4); }
.hero-card { border-radius: var(--td-radius-xl); padding: var(--td-s3); }
.doc-stack { position: relative; height: 300px; }
.doc-sheet {
  position: absolute; border-radius: var(--td-radius-md); background: #fff;
  border: 1px solid var(--td-border-default); box-shadow: var(--td-shadow-2);
  padding: 18px; overflow: hidden;
}
.doc-sheet.s1 { inset: 40px 30px 20px 10px; transform: rotate(-6deg); opacity: .55; }
.doc-sheet.s2 { inset: 26px 16px 30px 26px; transform: rotate(4deg);  opacity: .75; }
.doc-sheet.s3 { inset: 16px 22px 44px 14px; transform: rotate(-1deg); }
.doc-line { height: 8px; border-radius: 4px; background: var(--td-gray-2); margin-bottom: 12px; }
.doc-line.w90 { width: 90%; } .doc-line.w70 { width: 70%; } .doc-line.w50 { width: 50%; }
.doc-badge {
  display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700;
  color: #fff; background: var(--td-error); padding: 3px 8px; border-radius: var(--td-radius-sm);
  margin-bottom: 16px;
}
.doc-proc { position: absolute; left: 14px; right: 14px; bottom: 14px; }
.doc-proc-bar { height: 6px; border-radius: 3px; background: var(--td-gray-2); overflow: hidden; }
.doc-proc-bar > i { display: block; height: 100%; width: 72%; background: linear-gradient(90deg, var(--td-brand-6), var(--td-brand-7)); }
.doc-proc-txt { font-size: 10px; color: var(--td-text-placeholder); margin-top: 6px; }

/* -------------------------------- Section -------------------------------- */
.section { padding: var(--td-s8) 0; }
.section-head { margin-bottom: var(--td-s4); }
.section-kicker { font-size: var(--td-fs-1); font-weight: 650; letter-spacing: 2px; color: var(--td-brand-color); }
.section-title { font-size: clamp(24px, 3vw, 34px); font-weight: 780; letter-spacing: -.5px; margin: 8px 0; }
.section-desc { color: var(--td-text-secondary); max-width: 660px; font-size: var(--td-fs-2); margin: 0; }

/* --------------------------- 1 · 毛玻璃基类 ------------------------------- */
.glass {
  background: linear-gradient(145deg, rgba(255, 255, 255, .70), rgba(255, 255, 255, .48));
  -webkit-backdrop-filter: blur(var(--mv-glass-blur, 24px)) saturate(205%);
  backdrop-filter: blur(var(--mv-glass-blur, 24px)) saturate(205%);
  border: 1px solid rgba(255, 255, 255, .92);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .95),
    0 10px 30px rgba(0, 52, 140, .10),
    0 2px 8px rgba(0, 52, 140, .05);
}
.glass-strong {
  background: linear-gradient(145deg, rgba(255, 255, 255, .84), rgba(255, 255, 255, .62));
  -webkit-backdrop-filter: blur(32px) saturate(205%);
  backdrop-filter: blur(32px) saturate(205%);
  border: 1px solid rgba(255, 255, 255, .95);
  box-shadow: inset 0 1px 0 #fff, 0 16px 40px rgba(0, 52, 140, .14);
}
/* 毛玻璃上的文字永远使用高对比度语义色，保证清晰 */
.glass, .glass-strong { color: var(--td-text-primary); }
/* 重点大格：带品牌蓝的彩色玻璃，视觉层级更明显 */
.tools-bento-item.size-big.glass,
.bento-item.size-workbench.glass {
  background: linear-gradient(145deg, rgba(235, 242, 255, .80), rgba(255, 255, 255, .50));
  border-color: rgba(255, 255, 255, .95);
}
.tools-bento-item.size-big::before,
.bento-item.size-workbench::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; z-index: 2;
  background: linear-gradient(90deg, var(--td-brand-7), #7b6cff 55%, #58c8ee);
  pointer-events: none;
}

/* --------------------------- 2 · 便当盒布局 ------------------------------- */
/* 4 列 = TDesign 12 栅格每 3 列合并；gap 16px 对齐槽宽，内容边缘统一对齐列基线 */
.bento {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 128px;
  grid-auto-flow: dense;
  gap: var(--td-gutter);
}
.bento-item { position: relative; border-radius: var(--td-radius-lg); overflow: hidden; }
/* 工作台内容最高，始终盖在相邻小卡之上，保证「执行处理」不被遮挡 */
.bento-item.size-workbench { position: relative; z-index: 2; grid-column: span 2; grid-row: span 3; }
.bento-item.size-wide      { grid-column: span 2; grid-row: span 1; }
.bento-item.size-md        { grid-column: span 2; grid-row: span 1; }
.bento-item.size-sm        { grid-column: span 1; grid-row: span 1; }
.bento-item.solid-brand {
  background: linear-gradient(120deg, var(--td-brand-7) 0%, var(--td-brand-6) 100%);
  color: #fff; box-shadow: var(--td-shadow-2);
}
.bento-item.solid-brand .card-desc,
.bento-item.solid-brand .stat-label { color: rgba(255, 255, 255, .82); }
.bento-item.solid-brand .card-icon { background: rgba(255, 255, 255, .18); color: #fff; }

/* --------------------- 工具能力便当盒（重点能力占大格） --------------------- */
.tools-bento {
  display: grid;
  /* 保留 4 列基线供栅格/验收使用；能力分组本身横铺整行，电脑端不再挤成窄条 */
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: auto;
  gap: var(--td-gutter);
  align-items: start;
}
.tools-bento-item { position: relative; border-radius: var(--td-radius-lg); overflow: hidden; min-width: 0; }
.tools-bento-item.size-big,
.tools-bento-item.size-mid { grid-column: 1 / -1; grid-row: auto; }
.tbi-inner { display: flex; flex-direction: column; height: 100%; padding: 16px 18px 14px; min-width: 0; }
.tbi-head {
  display: flex; align-items: center; gap: 10px; min-width: 0;
  margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--td-border-soft);
}
.tbi-icon {
  width: 32px; height: 32px; flex: none; border-radius: var(--td-radius-md);
  display: grid; place-items: center; background: var(--td-brand-1); color: var(--td-brand-color);
}
.tbi-head h3 { margin: 0; font-size: 18px; font-weight: 750; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.tbi-head h3 small { display: inline; margin-left: 8px; font-size: 12px; font-weight: 500; color: var(--td-text-placeholder); }
.tbi-count {
  margin-left: auto; flex: none; font-size: 12px; font-weight: 650; color: var(--td-brand-color);
  background: var(--td-brand-1); padding: 4px 12px; border-radius: var(--td-radius-round); white-space: nowrap;
}
.tool-cell-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 10px;
  flex: 0 1 auto; min-height: 0; align-content: start; overflow: visible;
}
.tbi-foot {
  margin-top: 12px; padding-top: 9px; min-width: 0;
  display: flex; align-items: center; gap: 5px;
  font-size: 11px; color: var(--td-text-placeholder);
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}

/* —— 小方块带圆角容器组件：图标在上、名称在下、右下角绿色直达箭头 —— */
.tool-cell {
  position: relative; min-width: 0; min-height: 66px; height: auto;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px;
  padding: 10px 12px 26px; text-align: left;
  border: 1px solid rgba(255, 255, 255, .95); border-radius: 10px;
  background: linear-gradient(150deg, rgba(255,255,255,.94), rgba(244,248,255,.80));
  box-shadow: inset 0 1px 0 #fff, 0 3px 10px rgba(0, 52, 140, .07);
  color: var(--td-text-primary); font-size: 13px; line-height: 1.35;
  transition: transform .18s var(--td-ease), border-color var(--td-dur-fast) var(--td-ease),
              box-shadow .18s var(--td-ease);
}
.tool-cell:hover, .tool-cell.is-active {
  transform: translateY(-2px); border-color: var(--td-brand-color); color: var(--td-brand-color);
  box-shadow: inset 0 1px 0 #fff, 0 8px 18px rgba(0, 82, 217, .16);
}
/* 每个小方格的底纹：第二张原图（红色 P 图标）偏右上放大、明显加深，
   只作为背景质感，不改图片内容；下面用白色径向遮罩把左侧文字/图标区护住。 */
.tool-cell::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: 0;
  background: var(--logo-img) 76% 30% / 78% 78% no-repeat;
  opacity: .38; filter: blur(1.2px) saturate(150%);
  pointer-events: none;
  transition: opacity .18s var(--td-ease), transform .18s var(--td-ease);
}
.tool-cell:hover::before, .tool-cell.is-active::before { opacity: .50; transform: scale(1.06); }
/* 白色保护罩：左中（图标 + 名称区域）接近纯白，向右下渐隐让 Logo 透出来。
   z-index 同为 0 且排在 ::before 之后，只盖底纹，不盖任何内容。 */
.tool-cell::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: 0;
  background: radial-gradient(118% 108% at 16% 46%,
    rgba(255,255,255,.96) 0%, rgba(255,255,255,.86) 34%,
    rgba(255,255,255,.42) 62%, rgba(255,255,255,.06) 84%, transparent 100%);
  pointer-events: none;
}
/* 所有内容（图标 / 名称 / 箭头）都在遮罩之上 */
.tool-cell > * { position: relative; z-index: 1; }
.tool-cell-ico {
  width: 26px; height: 26px; flex: none; display: grid; place-items: center;
  border-radius: 8px; background: rgba(255,255,255,.96);
  border: 1px solid rgba(0, 82, 217, .12);
  color: var(--td-brand-color);
  box-shadow: 0 1px 3px rgba(0, 40, 120, .08);
}
.tool-cell-ico svg { width: 16px; height: 16px; }
.tool-cell-label {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; word-break: break-all; font-weight: 650; max-width: 100%; font-size: 13px;
  color: var(--td-text-primary);
  text-shadow: 0 1px 0 #fff, 0 0 4px rgba(255,255,255,.95);
}
/* 直达箭头：绿色（TDesign 成功色），不再是灰蓝长条箭头 */
.tool-cell-go {
  position: absolute; z-index: 2; right: 8px; bottom: 8px;
  width: 20px; height: 20px; display: grid; place-items: center;
  border-radius: 6px; background: var(--td-success); color: #fff;
  box-shadow: 0 2px 5px rgba(43, 164, 113, .35);
  transition: transform .18s var(--td-ease), background var(--td-dur-fast) var(--td-ease);
}
.tool-cell:hover .tool-cell-go { transform: translate(1px, -1px); background: #24945f; }
.tool-cell-go svg { width: 12px; height: 12px; }
.wb-pick-link { flex: none; font-size: 11px; font-weight: 650; color: var(--td-brand-color); white-space: nowrap; }
.wb-pick-link:hover { text-decoration: underline; }
/* 6 · 交错入场（外层做位移，内层做倾斜，互不冲突） */
/* 默认可见：脚本异常 / 观察器未触发时内容也始终可读，绝不出现「等几秒才出来」 */
.reveal-item { opacity: 1; transform: none; }
.reveal-item.will-reveal:not(.is-in) {
  opacity: 0; transform: translateY(var(--mv-reveal-distance, 8px));
  transition: opacity var(--mv-reveal-duration, 140ms) var(--td-ease-out),
              transform var(--mv-reveal-duration, 140ms) var(--td-ease-out);
  transition-delay: calc(var(--i, 0) * var(--mv-reveal-stagger, 16ms));
}
.reveal-item.will-reveal.is-in { opacity: 1; transform: translateY(0); }

/* 3 · 三维倾斜 */
.tilt {
  height: 100%; width: 100%;
  /* 不使用 preserve-3d：避免子元素脱离 overflow 裁剪、溢出格子后遮挡相邻卡片的点击区 */
  transition: transform var(--mv-tilt-reset, 360ms) var(--td-ease-out);
  will-change: transform;
}
.tilt.is-tracking { transition: transform 80ms linear; }
.tilt-glare {
  position: absolute; inset: 0; pointer-events: none; opacity: 0; z-index: 0;
  background: radial-gradient(280px circle at var(--gx, 50%) var(--gy, 50%), rgba(255,255,255,.48), transparent 62%);
  transition: opacity .4s var(--td-ease);
}
.tilt.is-tracking .tilt-glare { opacity: .5; }
/* 内容层永远在高光之上：光晕只照亮玻璃底，不洗淡任何文字 */
.tilt > .tbi-inner, .tilt > .card-body, .tilt > .wb { position: relative; z-index: 1; }
/* 内容层不做 Z 位移：3D 倾斜由 .tilt 自身的 perspective+rotate 提供，
   内容保持平面可避免透视放大溢出格子、遮挡相邻卡片的按钮（点击可用性）。 */
.tilt > .card-body, .tilt > .wb { transform: none; }

/* 卡片内容 */
.card-body { height: 100%; padding: 16px 18px; display: flex; flex-direction: column; justify-content: space-between; }
.card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.card-icon {
  width: 30px; height: 30px; flex: none; border-radius: var(--td-radius-md);
  background: var(--td-brand-1); color: var(--td-brand-color);
  display: grid; place-items: center; font-size: 15px;
}
.card-tag { font-size: 10px; padding: 2px 7px; border-radius: var(--td-radius-sm); background: var(--td-brand-1); color: var(--td-brand-color); white-space: nowrap; }
.card-title { font-size: var(--td-fs-2); font-weight: 720; margin: 8px 0 2px; line-height: 1.35; }
.card-desc {
  font-size: var(--td-fs-1); color: var(--td-text-secondary); line-height: 1.45; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-arrow { font-size: var(--td-fs-1); color: var(--td-brand-color); margin-top: 6px; }

/* --------------------- 大格子：在线 PDF 工作台 ---------------------------- */
.wb { height: 100%; padding: 16px 18px; display: flex; flex-direction: column; gap: 9px;
  overflow-y: auto; scrollbar-width: thin; }
.wb-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.wb-title { font-size: var(--td-fs-3); font-weight: 750; display: flex; align-items: center; gap: 8px; }
.wb-badge { font-size: 10px; padding: 2px 8px; border-radius: var(--td-radius-round); background: var(--td-brand-1); color: var(--td-brand-color); font-weight: 650; }
.wb-drop {
  height: 56px; flex: none; border-radius: var(--td-radius-md); cursor: pointer;
  border: 1.5px dashed var(--td-brand-3); background: rgba(242, 243, 255, .6);
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: var(--td-fs-1); color: var(--td-brand-color);
  transition: background var(--td-dur-fast) var(--td-ease), border-color var(--td-dur-fast) var(--td-ease);
}
.wb-drop:hover, .wb-drop.is-over { background: var(--td-brand-2); border-color: var(--td-brand-color); }
.wb-drop b { font-weight: 700; }
.wb-files { display: flex; gap: 6px; overflow-x: auto; min-height: 24px; scrollbar-width: thin; }
.file-chip {
  flex: none; max-width: 160px; font-size: 10px; padding: 3px 8px; border-radius: var(--td-radius-sm);
  background: #fff; border: 1px solid var(--td-border-default); color: var(--td-text-secondary);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.wb-empty { font-size: 10px; color: var(--td-text-placeholder); line-height: 24px; }
/* 31 项工具：横向滚动 + 分组标签，不撑高便当盒大格 */
.wb-tools {
  display: flex; flex-wrap: nowrap; align-items: center; gap: 5px;
  overflow-x: auto; overflow-y: hidden; padding-bottom: 3px; scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
.wb-tools::-webkit-scrollbar { height: 4px; }
.wb-tools::-webkit-scrollbar-thumb { background: var(--td-brand-3); border-radius: 2px; }
.tool-group {
  flex: none; font-size: 9px; font-weight: 700; letter-spacing: .5px; color: var(--td-brand-color);
  background: var(--td-brand-1); padding: 3px 6px; border-radius: var(--td-radius-sm);
  margin-left: 3px; white-space: nowrap;
}
.tool-btn {
  flex: none; display: inline-flex; align-items: center; gap: 4px;
  height: 26px; padding: 0 9px; border-radius: var(--td-radius-sm); font-size: 11px;
  border: 1px solid var(--td-border-default); background: rgba(255,255,255,.9);
  color: var(--td-text-secondary); white-space: nowrap;
  transition: all var(--td-dur-fast) var(--td-ease);
}
.tool-btn svg { flex: none; opacity: .8; }
.tool-btn:hover { border-color: var(--td-brand-3); color: var(--td-brand-color); }
.tool-btn.is-active { background: var(--td-brand-color); border-color: var(--td-brand-color); color: #fff; }
.wb-aux { display: flex; align-items: center; gap: 7px; min-height: 22px; }
.wb-aux-btn {
  flex: none; display: inline-flex; align-items: center; gap: 4px; cursor: pointer;
  font-size: 10px; font-weight: 650; color: var(--td-brand-color);
  padding: 3px 8px; border-radius: var(--td-radius-sm);
  border: 1px solid var(--td-brand-3); background: rgba(255,255,255,.85);
}
.wb-aux-btn:hover { background: var(--td-brand-1); }
.wb-textarea { min-height: 54px; resize: vertical; line-height: 1.5; padding-top: 6px; }
.wb-input[hidden] { display: none; }
.wb-params { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.wb-input {
  height: 28px; flex: 1 1 120px; min-width: 0; padding: 0 9px; font-size: 11px;
  border: 1px solid var(--td-border-default); border-radius: var(--td-radius-sm);
  background: rgba(255,255,255,.9); color: var(--td-text-primary);
}
.wb-hint { font-size: 10px; color: var(--td-text-placeholder); }
.wb-preview {
  display: flex; align-items: center; gap: 10px; min-height: 58px; padding: 7px 9px;
  border-radius: var(--td-radius-md); background: rgba(255,255,255,.58);
  border: 1px solid var(--td-border-soft);
}
.wb-preview canvas { max-height: 44px; border: 1px solid var(--td-border-default); border-radius: 2px; background: #fff; }
.wb-preview canvas[hidden] { display: none; }
.wb-status { font-size: 11px; color: var(--td-text-secondary); line-height: 1.45; }
.wb-status.ok { color: var(--td-success); }
.wb-status.err { color: var(--td-error); }
.wb-actions { display: flex; gap: 8px; align-items: center; }
.wb-actions .btn { height: 30px; padding: 0 13px; font-size: var(--td-fs-1); }
.wb-log { font-size: 10px; color: var(--td-text-placeholder); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 首页工作台入口卡：不再塞进大格里的迷你工作台，而是清晰的大按钮 */
.workbench-entry-body { justify-content: space-between; gap: 16px; }
.workbench-entry-btn { margin-top: 12px; height: 38px; padding: 0 16px; font-size: var(--td-fs-2); }

/* 独立工作台页面：整页使用工作台，控件和结果都放大到可日常操作 */
html[data-page="workbench"] .site-header { position: relative !important; }
.workbench-page-section { padding-top: var(--td-s6); padding-bottom: var(--td-s10); }
.workbench-page-card { padding: 10px; border-radius: var(--td-radius-xl); }
.workbench-page-card .wb {
  height: auto; overflow: visible; gap: 14px; padding: 20px;
  border-radius: var(--td-radius-lg);
  background: rgba(255,255,255,.72);
}
.workbench-page-card .wb-head { padding-bottom: 12px; border-bottom: 1px solid var(--td-border-soft); }
.workbench-page-card .wb-title { font-size: 20px; }
.workbench-page-card .wb-badge { font-size: 11px; padding: 3px 10px; }
.workbench-page-card .wb-pick-link { font-size: 13px; }
.workbench-page-card .wb-drop { height: 88px; font-size: 14px; border-radius: 10px; }
.workbench-page-card .wb-files { min-height: 32px; }
.workbench-page-card .file-chip { max-width: 210px; font-size: 12px; padding: 5px 10px; }
.workbench-page-card .wb-empty { font-size: 12px; line-height: 32px; }
.workbench-page-card .wb-tools {
  flex-wrap: wrap; gap: 7px; overflow: visible; padding: 10px;
  border-radius: var(--td-radius-md); background: rgba(242,246,255,.58);
}
.workbench-page-card .tool-group { font-size: 11px; padding: 4px 8px; margin-left: 4px; }
.workbench-page-card .tool-btn { height: 32px; padding: 0 12px; font-size: 12px; }
.workbench-page-card .wb-assets { padding: 12px 14px; }
.workbench-page-card .wb-assets-title { font-size: 13px; }
.workbench-page-card .wb-hint { font-size: 11px; }
.workbench-page-card .wf-assets { flex-basis: 240px; }
.workbench-page-card .wf-asset, .workbench-page-card .wf-empty { font-size: 11px; }
.workbench-page-card .wf-form { padding: 14px 16px; }
.workbench-page-card .wf-tip { font-size: 12px; margin-bottom: 12px; }
.workbench-page-card .wf-grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px 14px; }
.workbench-page-card .wf-field > label { font-size: 12px; }
.workbench-page-card .wf-ctl { height: 34px; padding: 0 10px; font-size: 13px; }
.workbench-page-card .wf-area { min-height: 84px; }
.workbench-page-card .wf-help { font-size: 10px; }
.workbench-page-card .wb-input { height: 36px; padding: 0 12px; font-size: 13px; flex-basis: 220px; }
.workbench-page-card .wb-textarea { min-height: 96px; }
.workbench-page-card .wb-preview { min-height: 130px; padding: 14px; align-items: flex-start; }
.workbench-page-card .wb-preview canvas { max-height: 180px; max-width: 42%; }
.workbench-page-card .wb-status { font-size: 13px; }
.workbench-page-card .wb-actions { position: static; padding: 4px 0 0; background: none; }
.workbench-page-card .wb-actions .btn { height: 42px; padding: 0 22px; font-size: 14px; }
.workbench-page-card .wb-log { font-size: 11px; white-space: normal; }
.workbench-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 24px 0; font-size: 12px; }
.workbench-foot a { color: var(--td-brand-color); font-weight: 650; }

@media (max-width: 720px) {
  .workbench-page-card { padding: 4px; }
  .workbench-page-card .wb { padding: 14px; gap: 12px; }
  .workbench-page-card .wb-tools { flex-wrap: nowrap; overflow-x: auto; }
  .workbench-page-card .wf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .workbench-page-card .wb-preview { flex-direction: column; }
  .workbench-page-card .wb-preview canvas { max-width: 100%; }
  .workbench-foot { flex-direction: column; text-align: center; }
}

/* ---------------- 工作台 · 素材上传区（跟随工具变化） ---------------- */
.wb-assets {
  border: 1px solid rgba(255,255,255,.92); border-radius: var(--td-radius-md);
  background: linear-gradient(145deg, rgba(255,255,255,.72), rgba(242,246,255,.52));
  padding: 8px 10px; min-width: 0;
}
.wb-assets-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; min-width: 0; }
.wb-assets-title { font-size: 11px; font-weight: 750; color: var(--td-brand-color); white-space: nowrap; }
.wb-assets-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.wb-assets-row .wb-aux-btn { display: inline-flex; align-items: center; gap: 4px; }
.wb-assets-row .wb-aux-btn[hidden] { display: none; }
.wf-assets { display: flex; gap: 5px; flex-wrap: wrap; min-width: 0; flex: 1 1 120px; }
.wf-empty { font-size: 10px; color: var(--td-text-placeholder); }
.wf-asset {
  display: inline-flex; align-items: center; gap: 4px; max-width: 160px; min-width: 0;
  padding: 2px 5px; border: 1px solid var(--td-border-default); border-radius: var(--td-radius-sm);
  background: #fff; font-size: 10px; color: var(--td-text-primary);
}
.wf-asset img { width: 20px; height: 20px; flex: none; object-fit: cover; border-radius: 3px; background: var(--td-gray-1); }
.wf-asset-ico { width: 20px; flex: none; text-align: center; color: var(--td-brand-color); }
.wf-asset-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 92px; min-width: 0; }
.wf-del { flex: none; border: 0; background: transparent; color: var(--td-error); font-size: 11px; cursor: pointer; padding: 0 2px; line-height: 1; }
.wf-del:hover { background: var(--td-error-light, #fff0ed); border-radius: 3px; }

/* ---------------- 工作台 · 每项功能专属操作控件 ---------------- */
.wf-form {
  border: 1px solid rgba(255,255,255,.92); border-radius: var(--td-radius-md);
  background: linear-gradient(145deg, rgba(255,255,255,.74), rgba(238,244,255,.54));
  padding: 10px 12px; min-width: 0;
}
.wf-tip { font-size: 10px; color: var(--td-text-secondary); line-height: 1.5; margin-bottom: 8px; overflow-wrap: anywhere; }
.wf-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 8px 10px; }
.wf-field { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.wf-field > label { font-size: 10px; font-weight: 650; color: var(--td-text-secondary); overflow-wrap: anywhere; }
.wf-ctl {
  width: 100%; min-width: 0; height: 26px; padding: 0 7px;
  font-size: 11px; font-family: inherit; color: var(--td-text-primary);
  border: 1px solid var(--td-border-default); border-radius: var(--td-radius-sm); background: #fff;
}
.wf-ctl:focus-visible { outline: 2px solid var(--td-brand-color); outline-offset: 1px; }
.wf-area { height: auto; min-height: 58px; padding: 6px 7px; line-height: 1.5; resize: vertical; }
.wf-field.wf-textarea { grid-column: 1 / -1; }
.wf-range { display: flex; align-items: center; gap: 6px; }
.wf-range input[type=range] { flex: 1; min-width: 0; height: 22px; padding: 0; border: 0; background: transparent; accent-color: var(--td-brand-color); }
.wf-range output { flex: none; width: 38px; text-align: right; font-family: var(--td-font-num); font-size: 10px; font-weight: 700; color: var(--td-brand-color); }
.wf-color { padding: 2px 3px; cursor: pointer; }
.wf-help { font-size: 9px; color: var(--td-text-placeholder); line-height: 1.35; overflow-wrap: anywhere; }
/* 工作台内部可滚动时，执行按钮始终可见可点 */
.wb-actions {
  position: sticky; bottom: -1px; z-index: 2; padding: 6px 0 2px;
  background: linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,.92) 42%);
}
@media (max-width: 720px) {
  .wf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wb-assets-title { font-size: 10px; }
}

/* ------------------------------ 7 · 走马灯 ------------------------------- */
.marquee-band {
  padding: var(--td-s3) 0; border-top: 1px solid var(--td-border-soft);
  border-bottom: 1px solid var(--td-border-soft);
  background: rgba(255, 255, 255, .38);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.marquee-label { font-size: var(--td-fs-1); color: var(--td-text-placeholder); letter-spacing: 1px; margin-bottom: 8px; }
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee-left 30s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; flex: none; gap: 12px; padding-right: 12px; }
@keyframes marquee-left { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee-item {
  display: inline-flex; align-items: center; gap: 8px; flex: none;
  height: 38px; padding: 0 16px; border-radius: var(--td-radius-md);
  background: rgba(255,255,255,.78); border: 1px solid rgba(255,255,255,.9);
  box-shadow: var(--td-shadow-1); font-size: var(--td-fs-2); font-weight: 600;
  white-space: nowrap; color: var(--td-text-primary);
}
.marquee-item i { width: 7px; height: 7px; border-radius: 50%; background: var(--td-brand-color); }

/* ------------------------------ 特性条 ----------------------------------- */
.feature-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--td-gutter); }
.feature-card { border-radius: var(--td-radius-lg); padding: var(--td-s3); }
.feature-num { font-family: var(--td-font-num); font-size: var(--td-fs-4); font-weight: 750; color: var(--td-brand-color); }
.feature-card h3 { font-size: var(--td-fs-3); margin: 8px 0 6px; }
.feature-card p { font-size: var(--td-fs-2); color: var(--td-text-secondary); margin: 0; }

/* ------------------------------- Footer ---------------------------------- */
.site-footer {
  margin-top: var(--td-s10);
  background: rgba(255, 255, 255, .62);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  border-top: 1px solid rgba(255, 255, 255, .78);
}
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: var(--td-s4); padding: var(--td-s6) 0 var(--td-s5); }
.footer-brand .brand-text { font-size: var(--td-fs-4); }
.footer-slogan { font-size: var(--td-fs-2); color: var(--td-text-secondary); margin: 12px 0 0; max-width: 280px; }
.footer-col h4 { font-size: var(--td-fs-2); margin: 0 0 12px; }
.footer-col a { display: block; font-size: var(--td-fs-2); color: var(--td-text-secondary); padding: 4px 0; }
.footer-col a:hover { color: var(--td-brand-color); }
.footer-bottom {
  border-top: 1px solid var(--td-border-soft); padding: var(--td-s2) 0;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-size: var(--td-fs-1); color: var(--td-text-secondary);
}

/* 后台保存后前台热同步提示：不打断操作，2.6s 自动收起 */
#superpdfSyncToast {
  position: fixed; z-index: 90; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%); display: flex; align-items: center; gap: 7px;
  padding: 8px 14px; border-radius: var(--td-radius-round); font-size: 12px; font-weight: 650;
  color: var(--td-text-primary); white-space: nowrap;
  background: rgba(255,255,255,.94); border: 1px solid rgba(255,255,255,.96);
  -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%);
  box-shadow: var(--td-shadow-2); opacity: 1; transition: opacity .3s, transform .3s;
}
#superpdfSyncToast.is-out { opacity: 0; transform: translate(-50%, 8px); pointer-events: none; }
.sync-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--td-success); flex: none;
  box-shadow: 0 0 0 3px rgba(43,164,113,.18); }

/* ------------------------------ 响应式 ----------------------------------- */
@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: minmax(128px, auto); }
  /* 工作台加了动态操作表单，不再锁死 4 行：让便当盒这一格自然撑高 */
  .bento-item.size-workbench { grid-column: span 2; grid-row: auto; }
  .wb { height: auto; overflow: visible; }
  .wb-actions { position: static; background: none; padding: 0; }
  .bento-item.size-wide, .bento-item.size-md { grid-column: span 2; }
  /* 平板：2 列栅格基线，能力分组仍整行铺开，保证 768px 下也能读清 */
  .tools-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: auto; }
  .tools-bento-item.size-big,
  .tools-bento-item.size-mid { grid-column: 1 / -1; grid-row: auto; }
  .tools-bento-item .tool-cell-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tool-cell { min-height: 60px; padding: 9px 10px 24px; font-size: 12px; }
  .tool-cell-label { font-size: 12px; }
  .tool-cell-ico { width: 24px; height: 24px; }
  .tool-cell-ico svg { width: 15px; height: 15px; }
  .tool-cell-go { width: 18px; height: 18px; right: 6px; bottom: 6px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .feature-strip { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .container, .header-inner { width: min(100% - var(--td-s2), var(--td-content-max)); }
  .nav {
    display: none; position: absolute; top: var(--td-header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; padding: 8px 16px 16px;
    background: rgba(255,255,255,.94); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--td-border-default); box-shadow: var(--td-shadow-2);
  }
  .site-header.nav-open .nav { display: flex; }
  .nav-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .hero { padding: var(--td-s6) 0 var(--td-s8); }
  .hero-stats { gap: var(--td-s3); }
  /* 2 列便当盒：工作台占整行最大格，宽卡整行，小卡两两成对 */
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: minmax(96px, auto); }
  .bento-item.size-workbench { grid-column: span 2; grid-row: auto; }
  .wb { height: auto; overflow: visible; }
  .bento-item.size-wide, .bento-item.size-md { grid-column: span 2; grid-row: span 1; }
  .bento-item.size-sm { grid-column: span 1; grid-row: span 1; }
  .card-body { padding: 12px; }
  .card-title { font-size: var(--td-fs-2); }
  .card-desc { font-size: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .card-tag { font-size: 9px; padding: 2px 6px; }
  /* 手机：2 列便当盒 —— 编辑/转换跨整行放大格，装饰/信息各占半格，
     大小不一但都对齐列基线，不再是一整条等宽长条 */
  .tools-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: auto; gap: 10px; align-items: stretch; }
  .tools-bento-item.size-big { grid-column: span 2; grid-row: auto; }
  .tools-bento-item.size-mid { grid-column: span 1; grid-row: auto; min-width: 0; }
  /* 手机：保持用户已认可的大格 4 列 / 半格 2 列近方形小卡 */
  .tools-bento-item.size-big .tool-cell-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: visible; }
  .tools-bento-item.size-mid .tool-cell-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; }
  .tool-cell { gap: 2px; min-height: 0; aspect-ratio: 1.1 / 1; height: auto; padding: 6px 5px 12px; font-size: 9px; border-radius: 8px; }
  .tool-cell-label { font-size: 9px; }
  .tool-cell-ico { width: 19px; height: 19px; border-radius: 6px; }
  .tool-cell-ico svg { width: 12px; height: 12px; }
  .tool-cell-go { width: 15px; height: 15px; right: 4px; bottom: 4px; }
  .tool-cell-go svg { width: 9px; height: 9px; }
  .tools-bento-item .tbi-head h3 { font-size: 16px; }
  .tools-bento-item.size-mid .tbi-head h3 small,
  .tools-bento-item.size-mid .tbi-foot,
  .tools-bento-item.size-mid .tbi-icon { display: none; }
  .tools-bento-item.size-mid .tbi-head { margin-bottom: 8px; }
  .tools-bento-item.size-mid .tbi-head h3 { font-size: var(--td-fs-2); }
  .tbi-inner { padding: 12px; }
  .tbi-count { padding: 2px 7px; font-size: 10px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--td-s3); }
  .wb { padding: 12px; }
  .wb-tools { max-height: none; overflow-x: auto; overflow-y: hidden; }
  .wb-head { flex-wrap: wrap; gap: 4px; }
}
@media (max-width: 420px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
}

/* ------------------- 能力降级：无 backdrop-filter 时保证文字清晰 ------------ */
.no-backdrop .glass         { background: rgba(255, 255, 255, .95); }
.no-backdrop .glass-strong  { background: rgba(255, 255, 255, .98); }
.no-backdrop .site-header   { background: rgba(255, 255, 255, .97); }
.no-backdrop .site-footer   { background: rgba(255, 255, 255, .96); }

/* ------------------- 无障碍：尊重「减少动态效果」偏好 ---------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
  .reveal-item, .reveal-item.will-reveal:not(.is-in) { opacity: 1 !important; transform: none !important; }
  .reveal-inner, .reveal-line.will-reveal:not(.is-in) .reveal-inner { transform: none !important; opacity: 1 !important; }
  .tilt { transform: none !important; }
  .marquee-track { animation: none; }
  #spotlight { display: none; }
}

/* ==========================================================================
   后台「动效 Motion」8 大效果独立开关
   开关由 JS 挂在 <html> 上，热更新即时生效；全部用 !important 避免被组件规则覆盖。
   ========================================================================== */
/* 1 · 毛玻璃：关闭后回到清晰实底，文字对比度不降级 */
html.mv-no-glass .glass, html.mv-no-glass .glass-strong,
html.mv-off .glass, html.mv-off .glass-strong {
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
  background: rgba(255,255,255,.96) !important;
}
html.mv-no-glass .site-header, html.mv-no-glass .site-footer,
html.mv-off .site-header, html.mv-off .site-footer {
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
  background: rgba(255,255,255,.97) !important;
}
/* 2 · 便当盒：关闭后大小格变成整齐的等宽格 */
html.mv-no-bento .bento-item, html.mv-no-bento .tools-bento-item,
html.mv-off .bento-item, html.mv-off .tools-bento-item {
  grid-column: span 1 !important; grid-row: auto !important;
}
/* 能力区例外：关闭便当盒/总动效也不能牺牲 71 项能力的可读性 */
@media (min-width: 721px) {
  html.mv-no-bento .tools-bento-item, html.mv-off .tools-bento-item {
    grid-column: 1 / -1 !important;
  }
  html.mv-no-bento .tools-bento, html.mv-off .tools-bento { gap: 10px; }
}
@media (max-width: 720px) {
  /* 手机保持用户已认可的大格 4 列 / 半格 2 列，不被降级成整排等宽窄条 */
  html.mv-no-bento .tools-bento-item.size-big, html.mv-off .tools-bento-item.size-big {
    grid-column: span 2 !important;
  }
  html.mv-no-bento .tools-bento-item.size-mid, html.mv-off .tools-bento-item.size-mid {
    grid-column: span 1 !important;
  }
}
/* 3 · 三维倾斜：关闭后完全不倾斜，高光隐藏 */
html.mv-no-tilt [data-tilt], html.mv-off [data-tilt] { transform: none !important; }
html.mv-no-tilt .tilt-glare, html.mv-off .tilt-glare { opacity: 0 !important; }
/* 4 · 聚光灯：关闭后光斑消失 */
html.mv-no-spotlight #spotlight, html.mv-off #spotlight,
html.mv-no-spotlight body.has-pointer #spotlight, html.mv-off body.has-pointer #spotlight {
  opacity: 0 !important; display: none !important;
}
/* 5 · 视差：关闭后背景层固定 */
html.mv-no-parallax [data-parallax], html.mv-off [data-parallax] { transform: none !important; }
/* 6 · 交错入场：关闭后所有卡片第一帧即可读 */
html.mv-no-entry .reveal-item, html.mv-no-entry .reveal-item.will-reveal:not(.is-in),
html.mv-off .reveal-item, html.mv-off .reveal-item.will-reveal:not(.is-in) {
  opacity: 1 !important; transform: none !important;
}
/* 7 · 走马灯：关闭后静止（不跳帧，停在当前位置） */
html.mv-no-marquee .marquee-track, html.mv-off .marquee-track {
  animation-play-state: paused !important;
}
/* 8 · 文字逐行揭示：关闭后标题整段直接可读 */
html.mv-no-text .reveal-line.will-reveal:not(.is-in) .reveal-inner,
html.mv-off .reveal-line.will-reveal:not(.is-in) .reveal-inner {
  transform: none !important; opacity: 1 !important;
}

/* ============ 71 项功能各自的独立 SEO 落地内容区（工作台下方） ============ */
.tool-seo-section {
  grid-column: 1 / -1; position: relative; z-index: 1;
  padding: 26px 26px 30px; margin-top: 2px; border-radius: var(--td-radius-lg);
  background: rgba(255,255,255,.86); border: 1px solid rgba(255,255,255,.95);
  box-shadow: var(--td-shadow-1); overflow: hidden; min-width: 0;
}
.tool-seo-kicker { font-size: 11px; font-weight: 750; letter-spacing: 2px; color: var(--td-brand-color); margin-bottom: 10px; }
.tool-seo-h1 { font-size: 24px; line-height: 1.4; margin: 0 0 12px; font-weight: 750; overflow-wrap: anywhere; }
.tool-seo-desc { font-size: 14px; line-height: 1.9; color: var(--td-text-secondary); margin: 0 0 16px; overflow-wrap: anywhere; }
.tool-seo-kw { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 14px; }
.tool-seo-kw span { font-size: 11px; padding: 4px 10px; border-radius: 999px;
  background: rgba(242,243,255,.95); border: 1px solid #e3e8ff; color: var(--td-brand-color); }
.tool-seo-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 11px;
  color: var(--td-text-placeholder); padding-bottom: 16px; border-bottom: 1px dashed var(--td-border-soft); }
.tool-seo-h2 { font-size: 16px; margin: 20px 0 10px; }
.tool-seo-faq details { border-bottom: 1px dashed var(--td-border-soft); padding: 10px 0; }
.tool-seo-faq summary { cursor: pointer; font-size: 13px; font-weight: 650; }
.tool-seo-faq details p { margin: 8px 0 0; font-size: 13px; line-height: 1.85; color: var(--td-text-secondary); }
@media (max-width: 480px) {
  .tool-seo-section { padding: 20px 16px 24px; }
  .tool-seo-h1 { font-size: 20px; }
}
