﻿/* ============================================================
   硅基经纬 — 工作台样式 · 「织蓝工作室」
   公共变量 / reset / 按钮 / 品牌 / 主题开关见 css/base.css
   本页新增变量全部限定在本文件，不影响首页。

   设计母题：
   - 蓝色唯一主色系：云白 → 浅蓝雾 → 宝蓝 → 深宝石蓝
   - 经纬线纹理（weave）：双向细线交织，像绷在织机上的布
   - 纱线分割线（thread）：区块之间一条渐变纱线，入视织出
   ============================================================ */

/* ---------------- 工作台专属变量（base.css 不动） ---------------- */

:root {
  --sapphire: #16305e;        /* 深宝石蓝锚点 */
  --sapphire-2: #1d3f7c;      /* 深宝石蓝 · 亮一档 */
  --ice: #bcd7ff;             /* 冰蓝高光 */
  --ice-strong: #8fb8ff;      /* 冰蓝 · 深一档 */
  --topbar-h: 64px;           /* 通栏顶栏高度（侧栏从其下方开始） */
  --rail-w: 76px;             /* 侧栏收起宽度（纯图标） */
  --rail-w-open: 208px;       /* 侧栏展开宽度（图标 + 文字） */
  --weave-line: rgba(46, 107, 255, 0.055);   /* 经纬线（浅底上） */
  --thread-grad: linear-gradient(90deg, transparent, var(--accent-2) 22%, var(--accent) 55%, var(--ice) 82%, transparent);
}

body.theme-night {
  --sapphire: #24457f;
  --sapphire-2: #2c509b;
  --ice: #8fb8ff;
  --ice-strong: #bcd7ff;
  --weave-line: rgba(111, 157, 255, 0.07);
}

/* ---------------- 全页焦点态（设计稿也要键盘可用） ---------------- */

:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
}

/* ---------------- 签名细节 1：经纬线纹理 ---------------- */

.weave,
.wb-hero::before {
  background-image:
    repeating-linear-gradient(0deg, var(--weave-line) 0 1px, transparent 1px 26px),
    repeating-linear-gradient(90deg, var(--weave-line) 0 1px, transparent 1px 26px);
}

/* ---------------- 签名细节 2：纱线分割线 ---------------- */

.wb-thread {
  height: 1px;
  margin-bottom: clamp(28px, 3.5vw, 44px);
  background: var(--thread-grad);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 1.5s var(--ease-out);
}

.wb-thread.is-woven {
  transform: scaleX(1);
}

/* ---------------- 左侧图标导航栏 ---------------- */

.wb-rail {
  position: fixed;
  inset: var(--topbar-h) auto 0 0; /* 顶栏通栏占满最上一行，侧栏从其下方开始 */
  z-index: 60;
  width: var(--rail-w);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 18px 0;
  overflow: hidden; /* 展开动画期间裁掉文字标签 */
  background: var(--card);
  border-right: 1px solid var(--hairline);
  transition:
    width 0.5s var(--ease-out),
    background-color 0.7s ease,
    border-color 0.7s ease;
}

/* 侧栏展开：加宽为图标 + 文字栏 */
body.rail-expanded .wb-rail {
  width: var(--rail-w-open);
}

/* 导航文字标签：收起时宽度为 0，展开时随栏宽渐入 */
.rail-label {
  max-width: 0;
  margin-left: 0;
  opacity: 0;
  overflow: hidden;
  white-space: nowrap;
  font-size: 13px;
  letter-spacing: 0.06em;
  transition:
    max-width 0.5s var(--ease-out),
    margin-left 0.5s var(--ease-out),
    opacity 0.4s ease 0.1s;
}

body.rail-expanded .rail-label {
  max-width: 120px;
  margin-left: 12px;
  opacity: 1;
}

/* 展开态：导航项改为通宽左对齐（图标 + 文字横排） */
body.rail-expanded .rail-nav {
  align-self: stretch;
}

body.rail-expanded .rail-item {
  width: auto;
  justify-content: flex-start;
  padding: 0 16px;
  margin: 0 14px;
}

body.rail-expanded .rail-sep {
  width: calc(100% - 28px);
}

/* 展开后文字已在栏内，悬浮提示关闭 */
body.rail-expanded .rail-item[data-tip]::after,
body.rail-expanded .theme-toggle[data-tip]::after {
  display: none;
}

/* 展开态：底部夜间模式 / 侧栏开关变为图标 + 文字胶囊 */
body.rail-expanded .theme-toggle,
body.rail-expanded .rail-toggle {
  width: auto;
  border-radius: 999px;
  padding: 0 16px 0 11px;
}

/* 侧栏开关的文字随状态切换（宽栏下提示「收起侧栏」） */
.rail-toggle .label-collapse {
  display: none;
}

body.rail-expanded .rail-toggle .label-collapse {
  display: inline;
}

body.rail-expanded .rail-toggle .label-expand {
  display: none;
}

/* 侧栏折叠开关：与夜间模式开关同列同款，位于其正上方；
   窄栏时显示「展开」图标，宽栏时显示「收起」图标 */
.rail-toggle {
  position: fixed;
  left: 19px;   /* 38px 圆钮圆心落在侧栏图标列轴线（38px）上 */
  bottom: 64px; /* 夜间模式（底 18px + 高 38px）上方 8px 间隔 */
  z-index: 65;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  transition:
    color 0.4s var(--ease-out),
    border-color 0.4s var(--ease-out);
}

.rail-toggle:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.rail-toggle svg {
  width: 16px;
  height: 16px;
  stroke-width: 1.7;
}

.rail-toggle .icon-collapse {
  display: none;
}

body.rail-expanded .rail-toggle .icon-collapse {
  display: block;
}

body.rail-expanded .rail-toggle .icon-expand {
  display: none;
}

/* 页面加载时套用持久化状态，不播过渡动画 */
body.rail-init .wb-rail,
body.rail-init .wb-main {
  transition: none !important;
}

/* rail 右缘的渐变纱线（上淡下浓，像一根绷紧的经线） */
.wb-rail::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: -1px;
  width: 1px;
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(87, 184, 255, 0.3) 30%,
    rgba(46, 107, 255, 0.5) 62%,
    rgba(87, 184, 255, 0.3) 88%,
    transparent 100%);
  pointer-events: none;
}

.rail-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

/* 分组细分隔线 */
.rail-sep {
  width: 22px;
  height: 1px;
  margin: 8px auto;
  background: var(--hairline);
}

/* 套餐计费图标的额度角标 */
.rail-item-quota {
  position: relative;
}

.rail-quota {
  position: absolute;
  top: -4px;
  right: -8px;
  min-width: 20px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--ice), #dce9ff);
  color: var(--sapphire);
  font-size: 9.5px;
  font-weight: 600;
  line-height: 16px;
  text-align: center;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 10px -4px rgba(87, 184, 255, 0.8);
  pointer-events: none;
}

.rail-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  color: var(--ink-soft);
  transition:
    color 0.45s var(--ease-out),
    background-color 0.45s var(--ease-out),
    box-shadow 0.45s var(--ease-out);
}

.rail-item-action {
  border: 0;
  padding: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
  order: 1;
}

.rail-nav > .rail-item[href="/works.html"] {
  order: 2;
}

.rail-item svg {
  width: 19px;
  height: 19px;
  stroke-width: 1.7;
}

.rail-item:hover {
  color: var(--accent);
  background: var(--bg-soft);
}

.rail-item.is-active {
  color: #fff;
  background: var(--accent);
  box-shadow: 0 10px 22px -8px var(--glow);
}

/* 梭子到位：active 左侧 3px 冰蓝指示条 */
.rail-item.is-active::before {
  content: "";
  position: absolute;
  left: -16px;
  top: 50%;
  width: 3px;
  height: 22px;
  border-radius: 0 3px 3px 0;
  background: var(--ice-strong);
  transform: translateY(-50%);
  box-shadow: 0 0 10px rgba(87, 184, 255, 0.7);
}

.rail-bottom {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  align-self: stretch;
  gap: 8px;
  padding-left: 19px; /* 圆钮圆心恒定落在图标列轴线（38px）上，宽窄栏切换时不跳动 */
}

/* 导航悬停提示（向右弹出） */
.rail-item[data-tip]::after,
.theme-toggle[data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  left: calc(100% + 14px);
  top: 50%;
  z-index: 70;
  padding: 6px 12px;
  border-radius: 8px;
  background: var(--sapphire);
  color: #eaf1ff;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translate(-6px, -50%);
  transition:
    opacity 0.35s var(--ease-out),
    transform 0.35s var(--ease-out);
}

.rail-item[data-tip]:hover::after,
.theme-toggle[data-tip]:hover::after {
  opacity: 1;
  transform: translate(0, -50%);
}

/* ---------------- 主区域骨架 ---------------- */

.wb-main {
  margin-left: var(--rail-w);
  padding-top: var(--topbar-h); /* 顶栏已脱离文档流，这里补出它的高度 */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: margin-left 0.5s var(--ease-out);
}

body.rail-expanded .wb-main {
  margin-left: var(--rail-w-open);
}

.wb-content {
  flex: 1;
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
  padding-top: clamp(14px, 2.2vh, 28px);
}

/* ---------------- 顶栏（通栏一整行：折叠侧栏不与顶栏重合） ---------------- */

.wb-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 70;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 clamp(20px, 3vw, 40px) 0 20px; /* 左侧 20px：品牌方块圆心 38px，与侧栏图标列同轴 */
  background: rgba(246, 249, 253, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hairline);
  transition:
    background-color 0.7s ease,
    border-color 0.7s ease;
}

/* 顶栏品牌方块（原侧栏 logo 并入顶栏，与标题连成一体） */
.topbar-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(150deg, var(--sapphire), #2e6bff 62%, #57b8ff);
  color: #fff;
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 600;
  box-shadow: 0 10px 24px -10px rgba(46, 107, 255, 0.55);
  transition: transform 0.5s var(--ease-out);
}

.topbar-brand:hover {
  transform: translateY(-2px);
}

/* 域名保持小写，字距比英文副标略收（需压过 .topbar-title-sub 的大写与宽字距） */
.topbar-title-sub.topbar-domain {
  font-size: 21px;
  text-transform: none;
  letter-spacing: 0.12em;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.topbar-title-main {
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.14em;
}

/* 顶栏里的短纱线分隔符 */
.topbar-thread {
  width: 42px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), transparent);
}

.topbar-title-sub {
  font-size: 11px;
  letter-spacing: 0.34em;
  color: var(--muted);
  text-transform: uppercase;
  padding-top: 3px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.topbar-link {
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  transition: color 0.4s var(--ease-out);
}

.topbar-link:hover {
  color: var(--accent);
}

.topbar-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  transition:
    color 0.4s var(--ease-out),
    border-color 0.4s var(--ease-out);
}

.topbar-icon:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.topbar-icon svg {
  width: 16px;
  height: 16px;
  stroke-width: 1.7;
}

.topbar-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(150deg, var(--sapphire), #57b8ff);
  color: #fff;
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 600;
}

/* ---------------- Hero：深蓝指挥台（画布 + 核心功能同框） ---------------- */

.wb-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2.6vh, 32px);
  padding: clamp(20px, 3.2vh, 40px) clamp(24px, 3.4vw, 44px);
  border: 1px solid rgba(188, 215, 255, 0.2);
  border-radius: 18px;
  background:
    linear-gradient(128deg, var(--sapphire) 0%, var(--sapphire-2) 52%, #2e6bff 108%);
  box-shadow:
    0 34px 80px -34px rgba(22, 48, 94, 0.65),
    0 0 70px -30px rgba(46, 107, 255, 0.45);
  overflow: hidden;
  transition:
    background-color 0.7s ease,
    border-color 0.7s ease;
}

/* 经纬线纹理：4% 白透明度铺在横幅上 */
.wb-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 26px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 26px);
  pointer-events: none;
}

/* 横幅深处的一束冰蓝侧光 */
.wb-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(70% 90% at 88% 8%, rgba(87, 184, 255, 0.22), transparent 60%);
  pointer-events: none;
}

/* 超大衬线 italic 水印：海报感 */
.hero-watermark {
  position: absolute;
  top: -0.32em;
  right: 1.5%;
  z-index: 1;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(150px, 17vw, 250px);
  letter-spacing: 0.02em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.08);
  pointer-events: none;
  user-select: none;
  animation: watermarkDrift 14s ease-in-out infinite alternate;
}

@keyframes watermarkDrift {
  from { transform: translateX(0); }
  to   { transform: translateX(-24px); }
}

/* 上半：左文案 + 右画布 */
.wb-hero-main {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 0.92fr;
  gap: clamp(28px, 3.5vw, 56px);
  align-items: center;
}

.wb-hero-text {
  position: relative;
  z-index: 2;
}

.wb-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #eaf1ff;
  font-size: 12px;
  letter-spacing: 0.14em;
  margin-bottom: clamp(10px, 1.8vh, 18px);
}

.wb-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 8px var(--accent-2);
  animation: badgePulse 2.4s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* 发布头条：与原 .wb-badge 占位完全一致（35px 高 + 同款下边距），布局零变化 */
.wb-release {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px; /* avoid clipping after the larger headline treatment */
  margin-bottom: clamp(8px, 1.2vh, 12px);
}

.rl-text {
  font-weight: 800;
  font-size: clamp(18px, 1.1vw + 1vh, 26px);
  line-height: 1;
  letter-spacing: 0.04em;
  background: linear-gradient(100deg, #f4f8ff 0%, #c4ddff 35%, #86b4ff 65%, #d9e9ff 100%);
  background-size: 320% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: releaseShine 3.2s ease-in-out infinite;
}

.rl-text em {
  font-style: normal;
  font-weight: 900;
}

@keyframes releaseShine {
  0% { background-position: 0% 0; }
  50% { background-position: 100% 0; }
  100% { background-position: 0% 0; }
}

.wb-hero-title {
  position: relative;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(26px, 2.2vw + 1.4vh, 44px);
  line-height: 1.24;
  letter-spacing: 0.02em;
  color: #fff;
  margin-bottom: clamp(4px, 0.8vh, 8px);
  overflow: hidden;
  padding-bottom: 0.14em; /* 给 em 下划纱线留位 */
}

/* 入场·擦入：整行从左到右擦开 + 模糊到清晰，两行错落 220ms */
.wb-hero-title .t-line {
  display: block;
  clip-path: inset(0 100% 0 0);
  filter: blur(6px);
  opacity: 0.01;
  animation: lineWipe 1.05s var(--ease-out) 0.15s forwards;
}

.wb-hero-title .t-line:nth-child(2) {
  animation-delay: 0.37s;
}

@keyframes lineWipe {
  0%   { clip-path: inset(0 100% 0 0); filter: blur(6px); opacity: 0.4; }
  60%  { opacity: 1; }
  100% { clip-path: inset(0 0 0 0); filter: blur(0); opacity: 1; }
}

/* 艺术字核心：em 放大 + 衬线 italic + 冰蓝天青渐变，与白字形成双层对比 */
.wb-hero-title em {
  position: relative;
  padding: 0 0.05em;
  font-size: 1.16em;
  font-style: italic;
  letter-spacing: 0.04em;
  background: linear-gradient(100deg, var(--ice) 10%, var(--accent-2) 45%, var(--ice) 80%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: emFlow 12s ease-in-out infinite alternate;
}

@keyframes emFlow {
  from { background-position: 0% 0; }
  to   { background-position: 100% 0; }
}

/* em 下划纱线：入场后织出，随后轻微呼吸 */
.wb-hero-title em::after {
  content: "";
  position: absolute;
  left: 5%;
  right: 6%;
  bottom: -0.1em;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--ice), var(--accent-2) 60%, transparent);
  transform: scaleX(0);
  transform-origin: left center;
  animation:
    emThread 0.9s var(--ease-out) 1.25s forwards,
    emThreadBreathe 4.5s ease-in-out 2.4s infinite alternate;
}

@keyframes emThread {
  to { transform: scaleX(1); }
}

@keyframes emThreadBreathe {
  from { opacity: 0.55; }
  to   { opacity: 1; }
}

/* 点睛·光泽扫过：每 7s 一道斜向光泽掠过标题，其余时间静止 */
.hero-shine {
  position: absolute;
  top: -12%;
  bottom: -12%;
  left: 0;
  width: 32%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  mix-blend-mode: overlay;
  transform: translateX(-160%) skewX(-16deg);
  animation: titleShine 7s ease-in-out 2.2s infinite;
  pointer-events: none;
}

@keyframes titleShine {
  0%   { transform: translateX(-160%) skewX(-16deg); }
  16%  { transform: translateX(470%) skewX(-16deg); }
  100% { transform: translateX(470%) skewX(-16deg); }
}

.wb-hero-sub {
  font-size: clamp(13.5px, 0.6vw + 0.9vh, 15px);
  font-weight: 300;
  color: rgba(233, 238, 250, 0.82);
  line-height: 1.85;
  margin-bottom: clamp(14px, 2.4vh, 24px);
  max-width: 46ch;
}

.wb-hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* 首屏自适应：按钮随视口高度微收 */
.wb-hero .btn {
  padding: clamp(12px, 1.7vh, 16px) clamp(26px, 2.6vw, 36px);
}

/* 横幅内主按钮：白底深宝石蓝字 */
.wb-hero .btn-solid {
  background: #fff;
  color: var(--sapphire);
  box-shadow: 0 14px 34px -14px rgba(0, 0, 0, 0.45);
}

.wb-hero .btn-solid:hover {
  box-shadow: 0 20px 44px -14px rgba(0, 0, 0, 0.5), 0 0 30px -8px rgba(188, 215, 255, 0.6);
}

/* 横幅内次按钮：白描边透明 */
.wb-hero .btn-ghost {
  border-color: rgba(255, 255, 255, 0.42);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.wb-hero .btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 14px 34px -18px rgba(0, 0, 0, 0.5);
}

/* ---------------- Hero 右栏：硅基经纬无限画布 · 层叠窗口 ---------------- */

.wb-hero-side {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: clamp(220px, 24vw, 320px);
  margin-left: auto;
}

.win-stack {
  position: relative;
  display: block;
}

.win-stage {
  position: relative;
  display: block;
}

/* 主窗口：标题栏 + 真实网站截图，整窗可点；深色窗口与深蓝横幅一体 */
.win-frame {
  position: relative;
  z-index: 3;
  display: block;
  border-radius: 14px;
  overflow: hidden;
  background: #0b1220;
  border: 1px solid rgba(188, 215, 255, 0.28);
  box-shadow:
    0 34px 70px -26px rgba(5, 12, 26, 0.7),
    0 0 54px -16px rgba(87, 184, 255, 0.5);
  transition:
    transform 0.7s var(--ease-out),
    box-shadow 0.7s var(--ease-out);
}

.win-stack:hover .win-frame {
  transform: translateY(-6px);
  box-shadow:
    0 48px 90px -26px rgba(5, 12, 26, 0.75),
    0 0 70px -14px rgba(87, 184, 255, 0.65);
}

/* 背后两层虚窗：层层展开的无限画布（日夜跟随主题换图） */
.win-ghost {
  position: absolute;
  inset: 0;
  border-radius: 14px;
  background: #0b1220 url("http://tilzgbta3.hd-bkt.clouddn.com/assets/img/hb-day.png?v=20260805") center / cover no-repeat;
  border: 1px solid rgba(188, 215, 255, 0.18);
  pointer-events: none;
  transition: transform 0.8s var(--ease-out);
}

body.theme-night .win-ghost {
  background-image: url("http://tilzgbta3.hd-bkt.clouddn.com/assets/img/hb-night.png?v=20260805");
}

.win-ghost-a {
  z-index: 2;
  opacity: 0.5;
  filter: blur(1px) brightness(0.85);
  transform: translate(16px, -16px) rotate(1.4deg);
}

.win-ghost-b {
  z-index: 1;
  opacity: 0.28;
  filter: blur(2px) brightness(0.7);
  transform: translate(-14px, 15px) rotate(-1.6deg);
}

/* hover 时三层展开幅度加大，像画布真正摊开 */
.win-stack:hover .win-ghost-a {
  transform: translate(36px, -36px) rotate(3.2deg);
}

.win-stack:hover .win-ghost-b {
  transform: translate(-34px, 34px) rotate(-3.6deg);
}

/* 「主打功能」冰蓝胶囊 */
.win-badge {
  position: absolute;
  top: -12px;
  right: 20px;
  z-index: 4;
  padding: 5px 12px;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--ice), #dce9ff);
  color: var(--sapphire);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  box-shadow: 0 8px 18px -6px rgba(87, 184, 255, 0.7);
}

/* 窗口标题栏 */
.win-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  background: #101a2e;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.win-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}

.win-url {
  flex: 1;
  margin-left: 8px;
  padding: 3px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(179, 193, 222, 0.8);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-align: center;
}

.win-view {
  display: block;
  aspect-ratio: 2 / 1;
  overflow: hidden;
}

.win-view img {
  transition:
    transform 1s var(--ease-out),
    opacity 0.45s ease;
}

/* 日夜换图时的短暂淡出（js/theme.js 添加） */
.win-view img.is-swapping {
  opacity: 0;
}

.win-stack:hover .win-view img {
  transform: scale(1.05);
}

/* 窗口下方题名：衬线冰蓝流光艺术字 */
.win-caption {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  margin-top: clamp(22px, 3vh, 30px);
  text-align: center;
}

.win-caption-title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.1em;
  background: linear-gradient(100deg, var(--ice) 10%, var(--accent-2) 45%, var(--ice) 80%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: emFlow 6.5s ease-in-out infinite alternate;
}

.win-caption-desc {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: rgba(188, 215, 255, 0.8);
}

.win-caption-desc svg {
  width: 12px;
  height: 12px;
  color: var(--ice);
  transition: transform 0.5s var(--ease-out);
}

.win-stack:hover .win-caption-desc svg {
  transform: translate(2px, -2px);
}

/* ---------------- 区块通用（衬线标题回归 + 疏密节奏） ---------------- */

.wb-section {
  margin-top: clamp(48px, 6vh, 72px);
  scroll-margin-top: 92px;
}

/* 核心任务紧跟 Hero，首屏即可露头 */
#tasks {
  margin-top: clamp(36px, 4.5vh, 56px);
}

.wb-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(22px, 2.8vw, 32px);
}

.wb-label {
  font-size: 11.5px;
  letter-spacing: 0.3em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.wb-title {
  font-family: var(--font-serif);
  font-size: clamp(26px, 2.8vw, 34px);
  font-weight: 500;
  letter-spacing: 0.04em;
}

/* ---------------- 核心任务：超大 + 大 两级 · 功能分类筛选 ---------------- */

.task-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(20px, 2.5vw, 28px);
}

.task-card {
  position: relative;
  grid-column: span 4;
  display: flex;
  gap: 22px;
  padding: clamp(18px, 2.4vh, 24px);
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  box-shadow: 0 16px 40px -26px rgba(20, 33, 60, 0.18);
  transition:
    opacity 0.6s var(--ease-out),
    filter 0.6s var(--ease-out),
    transform 0.8s var(--ease-out),
    box-shadow 0.8s var(--ease-out),
    border-color 0.8s var(--ease-out),
    background-color 0.7s ease;
}

/* 分类聚焦：非匹配卡压暗降饱和退到背景 */
#tasks.is-spotlight .task-card {
  opacity: 0.38;
  filter: saturate(0.55);
}

/* 匹配卡提亮：边框辉光 + 微浮起 + 分类标签转实色 */
#tasks.is-spotlight .task-card.is-spot {
  opacity: 1;
  filter: none;
  transform: translateY(-4px);
  border-color: rgba(46, 107, 255, 0.55);
  box-shadow:
    0 26px 56px -24px rgba(20, 33, 60, 0.32),
    0 0 46px -10px rgba(46, 107, 255, 0.42);
}

.task-eyebrow {
  transition:
    background-color 0.5s var(--ease-out),
    border-color 0.5s var(--ease-out),
    color 0.5s var(--ease-out),
    box-shadow 0.5s var(--ease-out);
}

#tasks .task-card.is-spot .task-eyebrow {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 8px 20px -8px var(--glow);
}

/* hover 底部浮现的 2px 渐变纱线 */
.task-card::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent-2), var(--accent), var(--ice));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.7s var(--ease-out);
}

.task-card:hover {
  transform: translateY(-4px);
  border-color: rgba(46, 107, 255, 0.35);
  box-shadow:
    0 28px 60px -26px rgba(20, 33, 60, 0.3),
    0 0 40px -14px rgba(46, 107, 255, 0.25);
}

.task-card:hover::after {
  transform: scaleX(1);
}

/* 主推大卡：通栏横排，图片右侧出血；高度随视口收紧 */
.task-card-featured .task-desc {
  display: block;
  overflow: visible;
  -webkit-line-clamp: unset;
}

/* 右侧滑块舞台：35% 宽，撑满卡片高度（图随文高，无上下留白），贴右缘出血 */
.task-card-featured .task-media {
  flex: 0 0 35%;
  align-self: stretch;
  aspect-ratio: auto;
  width: auto;
  padding: 0;
  border: 0;
  border-radius: 14px 0 0 14px;
  overflow: hidden;
}

.task-card-featured {
  grid-column: span 12;
  align-items: center;
  gap: clamp(26px, 3.5vw, 48px);
  padding: clamp(20px, 3vh, 34px) clamp(22px, 3vw, 40px);
  padding-right: 0;             /* 出血图贴到右缘 */
  overflow: visible;
  background:
    radial-gradient(120% 150% at 100% 0%, rgba(87, 184, 255, 0.1), transparent 55%),
    var(--card);
}

.task-card-featured .task-info {
  max-width: 42%;
}

.task-card-featured .task-name {
  font-size: clamp(22px, 2.2vw, 28px);
}

.task-card-featured .task-desc {
  font-size: 14.5px;
}

/* 大卡缩略图统一 34% 宽（29 张卡统一节奏） */
.task-card .task-thumb {
  width: 34%;
}

/* ---------------- 换花卡：整幅输入 + 柔边卷帘擦除换输出 ---------------- */

/* 满幅素材区（无内边距） */
.task-media.pt-full {
  display: block;
  padding: 0;
}

.pt-full img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 输出层：柔边 mask 卷帘，7s 循环「A 停留 → 卷开见 B → B 停留 → 卷回 A」 */
.pt-over {
  -webkit-mask-image: linear-gradient(105deg, #000 42%, transparent 58%);
  mask-image: linear-gradient(105deg, #000 42%, transparent 58%);
  -webkit-mask-size: 260% 100%;
  mask-size: 260% 100%;
  -webkit-mask-position: 100% 0;
  mask-position: 100% 0;
  animation: ptWipe 7s ease-in-out infinite;
}

@keyframes ptWipe {
  0%, 30% { -webkit-mask-position: 100% 0; mask-position: 100% 0; }
  45%, 80% { -webkit-mask-position: 0% 0; mask-position: 0% 0; }
  95%, 100% { -webkit-mask-position: 100% 0; mask-position: 100% 0; }
}

/* 降级：静态展示输入图 */
@media (prefers-reduced-motion: reduce) {
  .pt-over {
    display: none;
  }
}

/* ---------------- 试点卡：上动画素材 + 下标题标签 ---------------- */

.task-card-media {
  flex-direction: column;
  gap: 16px;
}

/* 素材区：左「产品原图」锚点 + 光点连线 + 右「套图长卷」无限上滚 */
.task-media {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: 7%;
  border-radius: 10px;
  border: 1px solid var(--hairline);
  background: var(--bg-soft);
  overflow: hidden;
  transition: border-color 0.6s var(--ease-out);
}

.task-card-media:hover .task-media {
  border-color: rgba(46, 107, 255, 0.4);
}

/* 输入：白底产品图，呼吸辉光表示「源头」（白底图用 contain 完整展示，与白色容器无缝） */
.dg2-src {
  flex: 0 0 38%;
  align-self: stretch;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--hairline);
  background: #fff;
  animation: dg2Breath 4s ease-in-out infinite;
}

.dg2-src img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 3%;
}

@keyframes dg2Breath {
  0%, 100% { box-shadow: 0 0 0 0 rgba(46, 107, 255, 0); }
  50% { box-shadow: 0 0 18px -2px rgba(46, 107, 255, 0.5); }
}

/* 连接：1px 渐变细线 + 每 2s 从左滑到右的生成光点 */
.dg2-link {
  position: relative;
  flex: 0 0 13%;
  height: 1px;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  opacity: 0.75;
}

.dg2-dot {
  position: absolute;
  top: -2px;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-2);
  animation: dg2Dot 2s var(--ease-out) infinite;
}

@keyframes dg2Dot {
  0% { left: 0; opacity: 0; }
  25% { opacity: 1; }
  80% { opacity: 1; }
  100% { left: calc(100% - 5px); opacity: 0; }
}

/* 输出：竖向长卷无限上滚，上下边缘渐隐收边 */
.dg2-roll {
  flex: 1;
  align-self: stretch;
  min-width: 0;
  overflow: hidden;
  border-radius: 8px;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 16%, #000 84%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 16%, #000 84%, transparent);
}

.dg2-track {
  display: flex;
  flex-direction: column;
  animation: dg2Roll 10s linear infinite;
}

.dg2-set {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 8px;
}

.dg2-set img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
}

@keyframes dg2Roll {
  to { transform: translateY(-50%); }
}

/* 底部：标题居左，分类标签居右 */
.task-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}

.task-card-media .task-name {
  margin-bottom: 0;
  font-size: 19px;
}

.task-card-media .task-eyebrow {
  margin-bottom: 0;
  flex-shrink: 0;
}

/* 降级：静态展示「一图 + 一套」构图 */
@media (prefers-reduced-motion: reduce) {
  .dg2-src,
  .dg2-dot,
  .dg2-track {
    animation: none;
  }

  .dg2-dot {
    display: none;
  }
}

.task-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* 分类标签沉到卡片底部（原「立即开始」位置） */
.task-info .task-eyebrow {
  order: 5;
  margin: 0;
}

.task-eyebrow {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(87, 184, 255, 0.35);
  background: rgba(87, 184, 255, 0.1);
  color: var(--accent);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  margin-bottom: 14px;
}

/* NEW 标签统一冰蓝系（不再用金色） */
.task-eyebrow-new {
  color: var(--sapphire);
  background: linear-gradient(120deg, rgba(188, 215, 255, 0.55), rgba(87, 184, 255, 0.28));
  border-color: rgba(87, 184, 255, 0.55);
}

.task-name {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}

.task-desc {
  flex: 1;
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.85;
  margin-bottom: 18px;
  /* 统一两行截断，29 张卡高度节奏一致 */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.task-thumb {
  position: relative;
  flex: 0 0 auto;
  align-self: center;
  width: 38%;
  max-width: 190px;
  aspect-ratio: 4 / 3.2;
  border-radius: 10px;
  overflow: hidden;
}

/* hover 光泽斜掠（绸面反光） */
.task-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.32) 48%, transparent 62%);
  transform: translateX(-120%);
  transition: transform 0.9s var(--ease-out);
  pointer-events: none;
}

.task-card:hover .task-thumb::after {
  transform: translateX(120%);
}

.task-thumb img {
  transition:
    transform 1s var(--ease-out),
    opacity 0.45s ease;
}

.task-card:hover .task-thumb img {
  transform: scale(1.06);
}

/* 日夜换图时的短暂淡出（js/theme.js 添加） */
.task-thumb img.is-swapping {
  opacity: 0;
}

/* ---------------- 功能抽屉：grid-template-rows 0fr → 1fr，高度平滑撑开 ---------------- */

.tool-drawer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.95s var(--ease-out);
}

.tool-drawer.is-open {
  grid-template-rows: 1fr;
}

.tool-drawer-inner {
  overflow: hidden;
  min-height: 0;
  perspective: 1200px;
}

/* 抽屉内任务卡：与大卡同款 3 列网格，顶部留白 */
.task-drawer-grid {
  padding-top: clamp(20px, 2.4vw, 28px);
}

/* 布帘展开：卡片以顶边为轴 rotateX 垂落 + 模糊消散，
   --d 逐行延迟（行×110ms，JS 写入），同一行同时起步、从上到下逐行落下 */
.task-drawer .task-card {
  opacity: 0;
  transform: rotateX(-10deg) translateY(16px);
  transform-origin: top center;
  filter: blur(4px);
  transition:
    opacity 0.45s ease,
    transform 0.8s var(--ease-out),
    filter 0.6s ease;
  transition-delay: 0s;
}

.task-drawer.is-open .task-card {
  opacity: 1;
  transform: none;
  filter: blur(0);
  transition-delay: var(--d, 0.1s);
}

/* ---------------- 展开条：纱线 + 胶囊按钮 ---------------- */

.tool-expand {
  display: flex;
  align-items: center;
  gap: 18px;
  width: 100%;
  margin-top: clamp(20px, 2.4vw, 28px);
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

/* 左右纱线：平时收拢，hover / 展开时向两边织开 */
.tool-expand-line {
  flex: 1;
  height: 1px;
  background: var(--thread-grad);
  opacity: 0.45;
  transform: scaleX(0.4);
  transition:
    transform 0.8s var(--ease-out),
    opacity 0.5s var(--ease-out);
}

.tool-expand-line:first-child {
  transform-origin: right center;
}

.tool-expand-line:last-child {
  transform-origin: left center;
}

.tool-expand:hover .tool-expand-line,
.tool-expand.is-open .tool-expand-line {
  transform: scaleX(1);
  opacity: 1;
}

.tool-expand-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  background: var(--card);
  color: var(--accent);
  font-size: 13px;
  letter-spacing: 0.08em;
  white-space: nowrap;
  transition:
    border-color 0.5s var(--ease-out),
    box-shadow 0.5s var(--ease-out),
    transform 0.5s var(--ease-out);
}

.tool-expand:hover .tool-expand-btn {
  border-color: rgba(46, 107, 255, 0.45);
  box-shadow: 0 12px 30px -14px rgba(46, 107, 255, 0.4);
  transform: translateY(-1px);
}

.tool-expand-btn svg {
  width: 15px;
  height: 15px;
  stroke-width: 1.8;
  transition: transform 0.5s var(--ease-out);
}

/* 展开态：胶囊转实色宝蓝底白字，与收起描边态形成明确双态 */
.tool-expand.is-open .tool-expand-btn {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 10px 24px -10px var(--glow);
}

.tool-expand.is-open .tool-expand-btn svg {
  transform: rotate(180deg);
}

/* ---------------- 灵感素材库：纺织蓝图 ---------------- */

.wb-section-head-tabs {
  align-items: center;
}

/* Tab 组：浅色胶囊容器 */
.lib-tabs {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  background: var(--bg-soft);
}

.lib-tab {
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink-soft);
  font-family: inherit;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition:
    color 0.5s var(--ease-out),
    background-color 0.5s var(--ease-out),
    border-color 0.5s var(--ease-out),
    box-shadow 0.5s var(--ease-out);
}

.lib-tab:hover {
  color: var(--accent);
}

.lib-tab.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 8px 20px -8px var(--glow);
}

/* 素材搜索框：胶囊描边，聚焦泛蓝 */
.lib-search {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  background: var(--bg-soft);
  color: var(--muted);
  transition:
    border-color 0.4s var(--ease-out),
    box-shadow 0.4s var(--ease-out),
    color 0.4s var(--ease-out);
}

.lib-search:focus-within {
  border-color: rgba(46, 107, 255, 0.45);
  box-shadow: 0 0 0 3px rgba(46, 107, 255, 0.12);
  color: var(--accent);
}

.lib-search svg {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  stroke-width: 1.8;
}

.lib-search input {
  width: 180px;
  border: 0;
  background: transparent;
  outline: none;
  font-family: inherit;
  font-size: 12.5px;
  letter-spacing: 0.03em;
  color: var(--ink);
}

.lib-search input::placeholder {
  color: var(--muted);
}

/* 搜索无结果空态 */
.lib-empty {
  margin: 0;
  padding: 44px 0 12px;
  text-align: center;
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

/* 瀑布流：多列布局，列宽由浏览器均分严格统一；卡片高度随原图比例自由（零间距贴排） */
.lib-wrap {
  position: relative;
}

/* 纱帘扫场：切换分类 / 搜索时，一道蓝白纱雾从左扫到右，
   扫过瞬间完成内容切换，永远看不见生硬的增删 */
.lib-veil {
  position: absolute;
  inset: -10px -14px;
  z-index: 5;
  pointer-events: none;
  background: linear-gradient(100deg,
    rgba(238, 245, 255, 0) 0%,
    rgba(226, 236, 250, 0.82) 38%,
    rgba(188, 215, 255, 0.92) 50%,
    rgba(226, 236, 250, 0.82) 62%,
    rgba(238, 245, 255, 0) 100%);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  opacity: 0;
  transform: translateX(-105%);
}

.lib-veil.is-in {
  opacity: 1;
  transform: translateX(0);
  transition:
    transform 0.22s ease-in,
    opacity 0.1s ease;
}

.lib-veil.is-out {
  opacity: 0;
  transform: translateX(105%);
  transition:
    transform 0.28s var(--ease-out),
    opacity 0.22s ease 0.08s;
}

/* 夜间：纱雾换成暮蓝色调 */
body.theme-night .lib-veil {
  background: linear-gradient(100deg,
    rgba(13, 23, 41, 0) 0%,
    rgba(19, 31, 58, 0.85) 38%,
    rgba(46, 84, 156, 0.9) 50%,
    rgba(19, 31, 58, 0.85) 62%,
    rgba(13, 23, 41, 0) 100%);
}

.lib-grid {
  position: relative;
  display: block;
  min-height: 0;
  column-count: 5;
  column-gap: 0;
}

.tpl-card {
  display: block;
  break-inside: avoid; /* 一张卡不被截断到两列 */
  margin: 0;
  transition: transform 0.8s var(--ease-out);
}

.tpl-card.is-hidden {
  display: none;
}

.tpl-card:hover {
  transform: translateY(-4px);
}

/* 缩略图：比例由各卡 inline aspect-ratio 决定（原图比例，钳制区间 2:3 ~ 3:2）；底色兼作加载占位；
   零间距贴排配小圆角，1px 描边充当图片间的细分隔 */
.tpl-thumb {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--hairline);
  background: linear-gradient(160deg, #f2f7fe, #e8f1fc 60%, #e2ecfa);
  transition:
    box-shadow 0.8s var(--ease-out),
    border-color 0.8s var(--ease-out),
    background-color 0.7s ease;
}

/* 图片铺满缩略框；框比例与原图一致时不裁切，越界比例才由 cover 裁切边缘 */
.tpl-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tpl-card:hover .tpl-thumb {
  border-color: rgba(46, 107, 255, 0.4);
  box-shadow:
    0 22px 48px -22px rgba(20, 33, 60, 0.3),
    0 0 34px -14px rgba(46, 107, 255, 0.3);
}

/* ---------------- 素材详情弹窗（点击瀑布流图片弹出，深色恒主题） ---------------- */

.tpl-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(14px, 3.5vw, 44px);
}

.tpl-modal[hidden] {
  display: none;
}

.tpl-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 14, 30, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.tpl-modal-box {
  position: relative;
  display: flex;
  width: min(1160px, 100%);
  max-height: 88vh;
  border-radius: 18px;
  overflow: hidden;
  background: #f7fbff;
  border: 1px solid rgba(119, 153, 214, 0.22);
  box-shadow: 0 40px 100px -42px rgba(42, 70, 124, 0.35);
  opacity: 0;
  transform: translateY(16px) scale(0.985);
  transition:
    opacity 0.45s var(--ease-out),
    transform 0.45s var(--ease-out);
}

.tpl-modal.is-open .tpl-modal-backdrop {
  opacity: 1;
}

.tpl-modal.is-open .tpl-modal-box {
  opacity: 1;
  transform: none;
}

/* 左：大图舞台 */
.tpl-modal-stage {
  position: relative;
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #f5f9ff 0%, #ecf3fc 100%);
  margin: 0;
}

.tpl-modal-stage img {
  display: block;
  max-width: 100%;
  max-height: 88vh;
  object-fit: contain;
}

/* ID 角标：舞台左上 */
.tpl-modal-id {
  position: absolute;
  left: 16px;
  top: 14px;
  padding: 3px 10px;
  border-radius: 6px;
  background: rgba(27, 54, 108, 0.7);
  color: #eff5ff;
  font-size: 11px;
  letter-spacing: 0.14em;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* 右：信息栏 */
.tpl-modal-panel {
  width: 320px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 26px 24px 22px;
  color: #23395d;
  background: linear-gradient(180deg, #f8fbff 0%, #eef4fd 100%);
  border-left: 1px solid rgba(119, 153, 214, 0.18);
}

.tpl-modal-author {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  letter-spacing: 0.04em;
}

.tpl-modal-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(150deg, var(--sapphire-2), #2e6bff 62%, #57b8ff);
  color: #fff;
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 600;
  box-shadow: 0 10px 24px -10px rgba(46, 107, 255, 0.55);
}

.tpl-modal-heading {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: rgba(35, 57, 93, 0.58);
}

.tpl-modal-prompt {
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(119, 153, 214, 0.18);
  font-size: 12.5px;
  line-height: 1.9;
  color: rgba(35, 57, 93, 0.9);
}

.tpl-modal-params {
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(119, 153, 214, 0.18);
  font-size: 12.5px;
  line-height: 1.9;
  white-space: pre-line;
  color: rgba(35, 57, 93, 0.82);
}

.tpl-modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tpl-modal-tags .m-tag {
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(119, 153, 214, 0.26);
  background: rgba(255, 255, 255, 0.7);
  color: #33538b;
  font-size: 11px;
  letter-spacing: 0.08em;
}

/* 底部操作条：点赞 / 收藏 / 下载 + 一键同款 */
.tpl-modal-actions {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid rgba(119, 153, 214, 0.16);
}

.tpl-act {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(119, 153, 214, 0.24);
  background: rgba(255, 255, 255, 0.76);
  color: rgba(35, 57, 93, 0.82);
  cursor: pointer;
  transition:
    color 0.35s var(--ease-out),
    border-color 0.35s var(--ease-out),
    background-color 0.35s var(--ease-out);
}

.tpl-act svg {
  width: 16px;
  height: 16px;
  stroke-width: 1.7;
}

.tpl-act:hover {
  color: var(--ice-strong);
  border-color: var(--ice-strong);
}

.tpl-act.is-active {
  color: #fff;
  border-color: var(--accent-2);
  background: rgba(87, 184, 255, 0.2);
}

.tpl-modal-cta {
  margin-left: auto;
  padding: 10px 20px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(120deg, #2e6bff, #57b8ff);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  cursor: pointer;
  box-shadow: 0 12px 28px -12px rgba(46, 107, 255, 0.65);
  transition:
    transform 0.4s var(--ease-out),
    box-shadow 0.4s var(--ease-out);
}

.tpl-modal-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px -12px rgba(46, 107, 255, 0.75);
}

/* 关闭按钮：弹窗右上角 */
.tpl-modal-close {
  position: absolute;
  right: 14px;
  top: 14px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(119, 153, 214, 0.22);
  background: rgba(255, 255, 255, 0.92);
  color: rgba(35, 57, 93, 0.8);
  cursor: pointer;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition:
    color 0.35s var(--ease-out),
    border-color 0.35s var(--ease-out);
}

.tpl-modal-close:hover {
  color: #fff;
  border-color: var(--ice-strong);
}

.tpl-modal-close svg {
  width: 16px;
  height: 16px;
}

@media (max-width: 860px) {
  .tpl-modal-box {
    flex-direction: column;
    overflow-y: auto;
  }

  .tpl-modal-stage img {
    max-height: 52vh;
  }

  .tpl-modal-panel {
    width: auto;
    border-left: none;
    border-top: 1px solid rgba(143, 184, 255, 0.12);
  }
}

/* ---------------- 页脚 ---------------- */

.wb-footer {
  margin-top: clamp(88px, 10vw, 130px);
  padding: 64px clamp(24px, 4vw, 56px) 32px;
  background: var(--card);
  border-top: 1px solid var(--hairline);
  transition:
    background-color 0.7s ease,
    border-color 0.7s ease;
}

.wb-footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 56px;
  flex-wrap: wrap;
  width: min(1200px, 100%);
  margin: 0 auto;
}

.wb-footer-brand .brand-mark {
  font-size: 28px;
}

/* 页脚品牌下的一条短纱线 */
.footer-thread {
  display: block;
  width: 64px;
  height: 1px;
  margin-top: 14px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), transparent);
}

.wb-footer-tag {
  margin-top: 12px;
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: 0.1em;
}

.wb-footer-cols {
  display: flex;
  gap: clamp(40px, 6vw, 88px);
  flex-wrap: wrap;
}

.wb-footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wb-footer-col h4 {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin-bottom: 6px;
}

.wb-footer-col a {
  font-size: 13px;
  color: var(--ink-soft);
  transition: color 0.4s var(--ease-out);
}

.wb-footer-col a:hover {
  color: var(--accent);
}

.wb-footer-copy {
  width: min(1200px, 100%);
  margin: 40px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--hairline);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-align: center;
}

.wb-footer-copy p {
  margin: 0;
}

.wb-footer-copy p + p {
  margin-top: 8px;
}

/* ---------------- 入场 reveal（JS 加 .js-reveal 才启用隐藏态） ---------------- */

.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.85s var(--ease-out),
    transform 0.85s var(--ease-out);
}

.js-reveal [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* ============================================================
   夜间主题适配（变量之外的部分）
   ============================================================ */

body.theme-night .wb-topbar {
  background: rgba(11, 19, 34, 0.78);
}

/* 深蓝横幅夜间再压暗一档 */
body.theme-night .wb-hero {
  background: linear-gradient(128deg, #0e1b33 0%, var(--sapphire) 58%, var(--sapphire-2) 112%);
  border-color: rgba(143, 184, 255, 0.22);
  box-shadow:
    0 34px 80px -34px rgba(0, 0, 0, 0.8),
    0 0 70px -30px rgba(111, 157, 255, 0.35);
}

body.theme-night .wb-hero::before {
  background-image:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 26px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 26px);
}

body.theme-night .wb-hero .btn-solid {
  color: #0e1b33;
}

body.theme-night .task-eyebrow-new {
  color: var(--ice-strong);
  background: rgba(143, 184, 255, 0.14);
  border-color: rgba(143, 184, 255, 0.4);
}

body.theme-night .lib-tabs {
  background: var(--bg-deep);
}

/* 缩略图夜间：加载占位底色换成深夜蓝 */
body.theme-night .tpl-thumb {
  background: linear-gradient(160deg, #131f3a, #101a30 60%, #0d1729);
}

body.theme-night .tpl-modal-box {
  background: #101a33;
  border-color: rgba(143, 184, 255, 0.16);
  box-shadow: 0 50px 120px -40px rgba(3, 8, 20, 0.9);
}

body.theme-night .tpl-modal-stage {
  background: #0a1226;
}

body.theme-night .tpl-modal-panel {
  color: #dce7fb;
  background: transparent;
  border-left-color: rgba(143, 184, 255, 0.12);
}

body.theme-night .tpl-modal-heading {
  color: rgba(188, 215, 255, 0.62);
}

body.theme-night .tpl-modal-prompt {
  background: rgba(143, 184, 255, 0.07);
  border-color: rgba(143, 184, 255, 0.12);
  color: rgba(220, 231, 251, 0.88);
}

body.theme-night .tpl-modal-params {
  background: rgba(143, 184, 255, 0.05);
  border-color: rgba(143, 184, 255, 0.1);
  color: rgba(220, 231, 251, 0.78);
}

body.theme-night .tpl-modal-tags .m-tag {
  border-color: rgba(143, 184, 255, 0.24);
  background: rgba(143, 184, 255, 0.08);
  color: var(--ice);
}

body.theme-night .tpl-modal-actions {
  border-top-color: rgba(143, 184, 255, 0.1);
}

body.theme-night .tpl-act {
  border-color: rgba(143, 184, 255, 0.24);
  background: transparent;
  color: rgba(220, 231, 251, 0.85);
}

body.theme-night .tpl-modal-close {
  border-color: rgba(143, 184, 255, 0.2);
  background: rgba(8, 14, 30, 0.55);
  color: rgba(220, 231, 251, 0.85);
}

/* ============================================================
   首屏自适应：矮屏桌面（如 13 寸笔电 1366×768）额外收紧
   ============================================================ */

@media (min-width: 861px) and (max-height: 800px) {
  .wb-hero-title {
    font-size: clamp(24px, 2vw + 1vh, 34px);
  }

  .wb-hero-sub {
    line-height: 1.7;
  }

  .win-caption {
    margin-top: 14px;
  }

  .hero-watermark {
    font-size: 140px;
  }
}

/* ============================================================
   响应式
   ============================================================ */

@media (max-width: 1100px) {
  .wb-hero-main {
    grid-template-columns: 1fr;
  }

  .wb-hero-side {
    margin: 8px auto 0;
  }

  .lib-grid {
    column-count: 4;
  }
}

@media (max-width: 860px) {
  .wb-rail {
    width: 64px;
  }

  .rail-toggle {
    left: 13px; /* 窄屏侧栏 64px，图标列轴线 32px */
  }

  .rail-item.is-active::before {
    left: -10px;
  }

  .wb-main {
    margin-left: 64px;
  }

  /* 水印让小屏保持干净 */
  .hero-watermark {
    display: none;
  }

  /* 小卡退回通栏单列 */
  .task-card {
    grid-column: span 12;
  }

  .lib-grid {
    column-count: 3;
  }

  .wb-section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .topbar-actions .topbar-link {
    display: none;
  }
}

@media (max-width: 560px) {
  .wb-hero {
    padding: 24px 20px;
  }

  /* 大卡转竖排，媒体区落到卡内下方 */
  .task-card-featured {
    flex-direction: column;
    align-items: stretch;
    padding-right: clamp(22px, 3vw, 40px);
  }

  .task-card-featured .task-info {
    max-width: none;
  }

  .task-card {
    flex-direction: column;
  }

  .task-thumb {
    width: 100% !important;
    max-width: none;
    aspect-ratio: 16 / 9;
  }

  .lib-grid {
    column-count: 2;
  }

  /* 顶栏收窄：只留「工作台」，避免与右侧操作区挤爆 */
  .topbar-thread,
  .topbar-title-sub {
    display: none;
  }

  .wb-footer-inner {
    flex-direction: column;
    gap: 36px;
  }
}

/* ============================================================
   降低动态偏好
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  .wb-badge-dot,
  .rl-text,
  .wb-hero-title em,
  .win-caption-title,
  .hero-watermark,
  .hero-shine {
    animation: none;
  }

  /* 弹窗出入场降级为直接显隐 */
  .tpl-modal-backdrop,
  .tpl-modal-box {
    transition: none;
  }

  /* 标题入场降级为直接可见 */
  .wb-hero-title .t-line {
    animation: none;
    clip-path: none;
    filter: none;
    opacity: 1;
  }

  .wb-hero-title em::after {
    animation: none;
    transform: scaleX(1);
  }

  .js-reveal [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .wb-thread {
    transform: none;
    transition: none;
  }

  .task-card,
  .task-card::after,
  .tool-drawer,
  .task-drawer .task-card,
  .tool-expand-line,
  .tool-expand-btn,
  .tool-expand-btn svg,
  .tpl-card,
  .task-thumb img,
  .task-thumb::after,
  .win-frame,
  .win-ghost,
  .win-view img {
    transition: none;
  }

  /* 抽屉降级为瞬间展开 */
  .task-drawer .task-card {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

/* ============================================================
   功能卡动画原型库（媒体卡：上素材动画 + 下标题标签）
   约定：无动画时素材区呈现「最终态」，动画是循环增强；
   素材区均为 .task-media（4:3）内的绝对定位层
   ============================================================ */

/* 通用：满幅素材层与图片 */
.mx {
  position: absolute;
  inset: 0;
}

.mx > img,
.mx-img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------------- 2. 双图溶解（视角 / 线稿 / 转绘类 A⇄B） ---------------- */
.mx-xfade .mx-b {
  animation: mxXfade 6.5s ease-in-out infinite;
}

@keyframes mxXfade {
  0%, 36% { opacity: 0; }
  50%, 86% { opacity: 1; }
  100% { opacity: 0; }
}

/* ---------------- 3. 镜头呼吸（视频类：缓慢推拉升降） ---------------- */
.mx-kb .mx-img {
  animation: mxKb 11s ease-in-out infinite alternate;
}

@keyframes mxKb {
  from { transform: scale(1.03) translate(0, 0); }
  to { transform: scale(1.14) translate(-2.2%, -1.8%); }
}

/* 视频卡：底部进度线循环 */
.mx-kb .mx-prog {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 7%;
  height: 2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.35);
  overflow: hidden;
}

.mx-kb .mx-prog::after {
  content: "";
  display: block;
  height: 100%;
  width: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent-2), #fff);
  transform: translateX(-100%);
  animation: mxProg 11s linear infinite;
}

@keyframes mxProg {
  to { transform: translateX(0); }
}

/* ---------------- 4. 裂变扇出（1 → 2×2 变体网格，错峰浮现） ---------------- */
.mx-fan {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 6px;
  padding: 6px;
}

.mx-fan img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
  animation: mxFan 7s var(--ease-out) infinite;
}

.mx-fan img:nth-child(2) { animation-delay: 0.45s; }
.mx-fan img:nth-child(3) { animation-delay: 0.9s; }
.mx-fan img:nth-child(4) { animation-delay: 1.35s; }

@keyframes mxFan {
  0% { opacity: 0; transform: scale(0.62); filter: blur(6px); }
  10%, 82% { opacity: 1; transform: none; filter: blur(0); }
  94%, 100% { opacity: 0; transform: scale(0.94); filter: blur(3px); }
}

/* ---------------- 5. 双面翻转（A/B 面 rotateY） ---------------- */
.mx-flip {
  perspective: 1000px;
}

.mx-flip-card {
  position: absolute;
  inset: 6%;
  transform-style: preserve-3d;
  animation: mxFlip 8s ease-in-out infinite;
}

.mx-flip-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.mx-flip-card .mx-back {
  transform: rotateY(180deg);
}

@keyframes mxFlip {
  0%, 38% { transform: rotateY(0); }
  50%, 88% { transform: rotateY(180deg); }
  100% { transform: rotateY(360deg); }
}

/* ---------------- 6. 反推（扫描识图 → 提示词逐行织出） ---------------- */
.mx-rev {
  position: absolute;
  inset: 0;
  display: flex;
  gap: 7%;
  padding: 7%;
}

.mx-rev-img {
  position: relative;
  flex: 0 0 42%;
  border-radius: 8px;
  overflow: hidden;
}

.mx-rev-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 扫描光从上往下识图 */
.mx-rev-img::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -12%;
  height: 12%;
  background: linear-gradient(180deg, transparent, rgba(87, 184, 255, 0.55), transparent);
  animation: mxScanY 6s ease-in-out infinite;
}

@keyframes mxScanY {
  0%, 8% { top: -12%; opacity: 0; }
  14% { opacity: 1; }
  34%, 100% { top: 104%; opacity: 0; }
}

.mx-rev-lines {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14%;
}

.mx-rev-lines i {
  display: block;
  height: 8px;
  border-radius: 99px;
  background: linear-gradient(90deg, rgba(46, 107, 255, 0.4), rgba(87, 184, 255, 0.16));
  transform-origin: left center;
  animation: mxLine 6s var(--ease-out) infinite;
}

.mx-rev-lines i:nth-child(1) { width: 88%; animation-delay: 1.9s; }
.mx-rev-lines i:nth-child(2) { width: 64%; animation-delay: 2.25s; }
.mx-rev-lines i:nth-child(3) { width: 76%; animation-delay: 2.6s; }

@keyframes mxLine {
  0% { opacity: 0; transform: scaleX(0); }
  8%, 82% { opacity: 1; transform: scaleX(1); }
  94%, 100% { opacity: 0; transform: scaleX(1); }
}

/* ---------------- 7. 高清增强（模糊 ⇄ 清晰呼吸） ---------------- */
.mx-sharp .mx-img {
  animation: mxSharp 5.5s ease-in-out infinite;
}

@keyframes mxSharp {
  0%, 100% { filter: blur(2.5px) saturate(0.92); }
  50% { filter: blur(0) saturate(1); }
}

/* ---------------- 8. 智能扩图（画幅向两侧展开） ---------------- */
.mx-grow .mx-img {
  animation: mxGrow 8s ease-in-out infinite;
}

@keyframes mxGrow {
  0%, 28% { clip-path: inset(0 17% 0 17%); }
  52%, 82% { clip-path: inset(0 0 0 0); }
  100% { clip-path: inset(0 17% 0 17%); }
}

/* 扩图两侧虚线参考框 */
.mx-grow::before,
.mx-grow::after {
  content: "";
  position: absolute;
  top: 10%;
  bottom: 10%;
  z-index: 2;
  width: 0;
  border-left: 1px dashed rgba(255, 255, 255, 0.75);
  filter: drop-shadow(0 0 3px rgba(22, 48, 94, 0.6));
  animation: mxGrowLine 8s ease-in-out infinite;
}

.mx-grow::before { left: 17%; }
.mx-grow::after { right: 17%; border-left: none; border-right: 1px dashed rgba(255, 255, 255, 0.75); }

@keyframes mxGrowLine {
  0%, 28% { opacity: 1; }
  52%, 82% { opacity: 0; }
  100% { opacity: 1; }
}

/* ---------------- 9. 接板巡航（花型长条横向平铺滚动） ---------------- */
.mx-tile {
  overflow: hidden;
}

.mx-tile-track {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: stretch;
  gap: 6px;
  padding: 6px;
  animation: mxTileX 9s linear infinite;
}

.mx-tile-track img {
  height: 100%;
  width: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 6px;
}

@keyframes mxTileX {
  to { transform: translateX(-50%); }
}

/* ---------------- 12. 局部精修（圆形光圈内的区域被修复） ---------------- */
.mx-spot .mx-b {
  animation: mxSpot 7s ease-in-out infinite;
}

@keyframes mxSpot {
  0%, 18% { clip-path: circle(0% at 34% 44%); }
  34%, 72% { clip-path: circle(24% at 34% 44%); }
  90%, 100% { clip-path: circle(0% at 34% 44%); }
}

/* 光圈描边环 */
.mx-spot::after {
  content: "";
  position: absolute;
  z-index: 2;
  left: 34%;
  top: 44%;
  width: 46%;
  aspect-ratio: 1;
  border: 1.5px dashed rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  filter: drop-shadow(0 0 4px rgba(22, 48, 94, 0.55));
  transform: translate(-50%, -50%) scale(0);
  animation: mxSpotRing 7s ease-in-out infinite;
  pointer-events: none;
}

@keyframes mxSpotRing {
  0%, 18% { transform: translate(-50%, -50%) scale(0); opacity: 0; }
  34%, 72% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  90%, 100% { transform: translate(-50%, -50%) scale(0); opacity: 0; }
}

/* ---------------- 13. 融合（A + B 汇入 → 合成图浮现） ---------------- */
.mx-blend .mx-a,
.mx-blend .mx-b {
  width: 52%;
  border-radius: 8px;
  box-shadow: 0 10px 26px -14px rgba(22, 48, 94, 0.5);
}

.mx-blend .mx-a { left: 5%; right: auto; animation: mxBlendA 8s ease-in-out infinite; }
.mx-blend .mx-b { left: auto; right: 5%; animation: mxBlendB 8s ease-in-out infinite; }

.mx-blend .mx-c {
  animation: mxBlendC 8s ease-in-out infinite;
}

@keyframes mxBlendA {
  0%, 30% { transform: translateX(0); opacity: 1; }
  46%, 88% { transform: translateX(38%) scale(0.9); opacity: 0; }
  100% { transform: translateX(0); opacity: 1; }
}

@keyframes mxBlendB {
  0%, 30% { transform: translateX(0); opacity: 1; }
  46%, 88% { transform: translateX(-38%) scale(0.9); opacity: 0; }
  100% { transform: translateX(0); opacity: 1; }
}

@keyframes mxBlendC {
  0%, 38% { opacity: 0; transform: scale(1.05); filter: blur(6px); }
  54%, 88% { opacity: 1; transform: none; filter: blur(0); }
  100% { opacity: 0; transform: scale(1.02); filter: blur(3px); }
}

/* ---------------- 14. 布样卡：用于模拟/观察类功能 ---------------- */
.mx-swatch {
  position: absolute;
  left: 6%;
  bottom: 8%;
  z-index: 3;
  width: 22%;
  aspect-ratio: 1;
  border-radius: 8px;
  border: 2px solid #fff;
  box-shadow: 0 10px 24px -10px rgba(22, 48, 94, 0.45);
  object-fit: cover;
  animation: mxSwatch 7s ease-in-out infinite;
}

@keyframes mxSwatch {
  0%, 12% { transform: translateY(14%) scale(0.7); opacity: 0; }
  26%, 84% { transform: none; opacity: 1; }
  96%, 100% { transform: translateY(10%) scale(0.85); opacity: 0; }
}

/* ---------------- 降级：全部呈现最终态 ---------------- */
@media (prefers-reduced-motion: reduce) {
  .task-media .mx,
  .task-media .mx-img,
  .task-media img,
  .task-media i,
  .task-media::before,
  .task-media::after,
  .mx-flip-card,
  .mx-tile-track,
  .mx-rev-img::after,
  .mx-kb .mx-prog::after {
    animation: none !important;
  }

  /* 双图类只留底图；网格类全部可见 */
  .mx-xfade .mx-b,
  .mx-blend .mx-c,
  .mx-spot::after,
  .mx-kb .mx-prog,
  .mx-chip,
  .mx-dots {
    display: none;
  }

  .mx-slide:not(:first-child) {
    display: none;
  }

  .mx-slide,
  .mx-fan img {
    opacity: 1;
    transform: none;
    filter: none;
    clip-path: none;
  }

  .mx-grow .mx-img {
    clip-path: none;
  }

  .task-media.mx-seam {
    animation: none;
  }

  .mx-spot .mx-b {
    clip-path: none;
  }

  .mx-rev-lines i {
    opacity: 1;
    transform: none;
  }
}

/* ---------------- 超大卡：输入产品图 + 2×2 多渠道主图批量落位（满 bleed 右区） ---------------- */
.mx-stage {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 52%;
  display: flex;
  align-items: stretch;
  gap: 12px;
  padding: 12px;
  border-radius: 0 14px 14px 0;
  border-left: 1px solid var(--hairline);
  background: linear-gradient(155deg, #edf3fc 0%, #e1ebfa 100%);
  overflow: hidden;
}

body.theme-night .mx-stage {
  background: linear-gradient(155deg, #14203c 0%, #101a30 100%);
}

/* 输入：白底产品图常驻，呼吸辉光 */
.mx-input {
  flex: 0 0 30%;
  border-radius: 8px;
  border: 1px solid var(--hairline);
  background: #fff;
  overflow: hidden;
  animation: dg2Breath 4s ease-in-out infinite;
}

.mx-input img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4%;
}

/* 输出：2×2 主图网格填满剩余区域 */
.mx-stage .mx-fan {
  flex: 1;
  min-width: 0;
  padding: 0;
  gap: 10px;
}

@media (max-width: 560px) {
  .mx-stage {
    position: static;
    width: 100%;
    height: 200px;
    margin-top: 18px;
    border-left: none;
    border-top: 1px solid var(--hairline);
    border-radius: 12px;
  }
}

/* ============================================================
   超大卡 V2：模板放映厅（输入产品图 + 渠道模板轮播）
   24s 循环 = 4 模板 × 6s；滑入剪辑 + 缓慢推近 + 模板签 / 进度点同步
   ============================================================ */

.mx-screen {
  position: relative;
  flex: 1;
  min-width: 0;
  align-self: stretch;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--hairline);
  background: var(--bg-soft);
  box-shadow: 0 18px 40px -22px rgba(22, 48, 94, 0.4);
}

.mx-slide {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: mxSlide 24s ease-in-out infinite;
}

.mx-slide:nth-child(2) { animation-delay: 6s; }
.mx-slide:nth-child(3) { animation-delay: 12s; }
.mx-slide:nth-child(4) { animation-delay: 18s; }

/* 每张 6s 窗口：右侧剪辑滑入 + 推近归位 → 停留 → 淡出 */
@keyframes mxSlide {
  0% { opacity: 0; clip-path: inset(0 0 0 42%); transform: scale(1.07); }
  1.5% { opacity: 1; }
  7%, 22% { clip-path: inset(0 0 0 0); transform: scale(1); }
  25% { opacity: 1; clip-path: inset(0 0 0 0); transform: scale(1); }
  27.5%, 100% { opacity: 0; clip-path: inset(0 0 0 0); transform: scale(1); }
}

/* 模板签：与对应画面同步浮现 */
.mx-chip {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 3;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(8, 14, 30, 0.55);
  color: #eaf1ff;
  font-size: 11px;
  letter-spacing: 0.12em;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  animation: mxChip 24s ease-in-out infinite;
}

.mx-chip:nth-of-type(1) { animation-delay: 0s; }
.mx-chip:nth-of-type(2) { animation-delay: 6s; }
.mx-chip:nth-of-type(3) { animation-delay: 12s; }
.mx-chip:nth-of-type(4) { animation-delay: 18s; }

@keyframes mxChip {
  0%, 1.5% { opacity: 0; transform: translateY(8px); }
  4.5%, 22% { opacity: 1; transform: none; }
  25%, 100% { opacity: 0; transform: translateY(-5px); }
}

/* 进度点：与画面对应点亮 */
.mx-dots {
  position: absolute;
  right: 12px;
  bottom: 14px;
  z-index: 3;
  display: flex;
  gap: 6px;
}

.mx-dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  animation: mxDot 24s ease-in-out infinite;
}

.mx-dots i:nth-child(1) { animation-delay: 0s; }
.mx-dots i:nth-child(2) { animation-delay: 6s; }
.mx-dots i:nth-child(3) { animation-delay: 12s; }
.mx-dots i:nth-child(4) { animation-delay: 18s; }

@keyframes mxDot {
  0%, 24% { background: #fff; box-shadow: 0 0 7px rgba(255, 255, 255, 0.85); }
  25%, 100% { background: rgba(255, 255, 255, 0.4); box-shadow: none; }
}

/* ============================================================
   无缝拼接 V2：花型平面无限斜向巡航（平铺背景，天生无缝）
   ============================================================ */
.mx-seam {
  background-image: url("http://tilzgbta3.hd-bkt.clouddn.com/assets/img/fn-extract-out.png?v=20260805");
  background-repeat: repeat;
  background-size: 190px auto;
  animation: mxSeam 16s linear infinite;
}

@keyframes mxSeam {
  to { background-position: 190px 190px; }
}

/* 中央缝线十字，随巡航隐现，提示「接缝在这里也看不出来」 */
.mx-seam::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 34px;
  height: 34px;
  border: 1.5px dashed rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  filter: drop-shadow(0 0 4px rgba(22, 48, 94, 0.5));
  transform: translate(-50%, -50%);
  animation: mxSeamMark 8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes mxSeamMark {
  0%, 100% { opacity: 0; }
  50% { opacity: 0.9; }
}

/* ============================================================
   花型模拟 V2：打样预览 = 全景 ⇄ 花型比例变焦（同图推近）+ 布样常驻
   ============================================================ */
.mx-z1 {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 变焦层：叠化进入的同时从 1.35x 推到 1.75x（花型比例 / 整理程度） */
.mx-z2 {
  transform-origin: 50% 62%;
  animation:
    mxXfade 6.5s ease-in-out infinite,
    mxZoomB 6.5s ease-in-out infinite;
}

@keyframes mxZoomB {
  0%, 36% { transform: scale(1.35); }
  50%, 86% { transform: scale(1.78); }
  100% { transform: scale(1.35); }
}


/* ============================================================
   2026-07-22 refresh: 主图生成 / 换花 / 模拟 / 排版 / 无缝拼接
   ============================================================ */

.task-card-featured .task-info {
  max-width: 65%;
}

.mx-swatch {
  inset: auto;
  border-radius: 10px;
  top: auto;
  right: auto;
  height: auto;
}

.mx-stage {
  width: 56%;
  display: grid;
  grid-template-columns: minmax(132px, 26%) minmax(0, 1fr);
  gap: 14px;
  padding: 18px 18px 18px 0;
  border-left-color: rgba(212, 222, 236, 0.88);
  background:
    radial-gradient(132% 120% at 100% 0%, rgba(168, 186, 210, 0.26), transparent 46%),
    linear-gradient(145deg, #f4f2ed 0%, #edf1f5 46%, #dee6ef 100%);
}

body.theme-night .mx-stage {
  border-left-color: rgba(96, 116, 153, 0.48);
  background:
    radial-gradient(132% 120% at 100% 0%, rgba(118, 136, 172, 0.22), transparent 46%),
    linear-gradient(145deg, #1b2231 0%, #131a28 48%, #101726 100%);
}

.mx-source-panel,
.mx-output-board {
  position: relative;
  min-width: 0;
  border-radius: 20px;
  border: 1px solid rgba(170, 184, 204, 0.46);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 24px 40px -30px rgba(35, 46, 67, 0.32);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

body.theme-night .mx-source-panel,
body.theme-night .mx-output-board {
  border-color: rgba(112, 130, 165, 0.28);
  background: rgba(16, 22, 34, 0.76);
  box-shadow: 0 24px 40px -32px rgba(0, 0, 0, 0.58);
}

.mx-source-panel {
  height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 12px;
  padding: 14px;
}

.mx-panel-tag,
.mx-output-kicker,
.mx-counter {
  display: inline-flex;
  align-items: center;
  width: max-content;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(14, 23, 38, 0.08);
  color: rgba(32, 46, 68, 0.82);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body.theme-night .mx-panel-tag,
body.theme-night .mx-output-kicker,
body.theme-night .mx-counter {
  background: rgba(236, 242, 255, 0.08);
  color: rgba(230, 238, 252, 0.82);
}

.mx-source-frame,
.mx-pattern-thumb,
.mx-screen,
.mx-story {
  overflow: hidden;
}

.mx-source-frame {
  position: relative;
  min-height: 0;
  border-radius: 16px;
  border: 1px solid rgba(190, 200, 214, 0.9);
  background:
    radial-gradient(120% 120% at 50% 0%, rgba(255, 255, 255, 0.78), rgba(239, 240, 238, 0.96)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(240, 242, 246, 0.9));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 18px 30px -24px rgba(46, 60, 87, 0.24);
}

body.theme-night .mx-source-frame {
  border-color: rgba(96, 114, 145, 0.52);
  background:
    radial-gradient(120% 120% at 50% 0%, rgba(245, 247, 252, 0.14), rgba(24, 30, 43, 0.92)),
    linear-gradient(180deg, rgba(24, 31, 44, 0.96), rgba(16, 22, 33, 0.96));
}

.mx-source-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8% 8% 5%;
}

.mx-source-meta,
.mx-pattern-copy,
.mx-story-copy {
  display: grid;
  gap: 3px;
}

.mx-source-meta span,
.mx-pattern-copy span,
.mx-story-copy small {
  font-size: 10px;
  letter-spacing: 0.08em;
  color: rgba(86, 100, 124, 0.82);
  text-transform: uppercase;
}

body.theme-night .mx-source-meta span,
body.theme-night .mx-pattern-copy span,
body.theme-night .mx-story-copy small {
  color: rgba(190, 200, 220, 0.72);
}

.mx-source-meta strong,
.mx-pattern-copy strong,
.mx-story-copy strong {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: rgba(21, 30, 47, 0.92);
}

body.theme-night .mx-source-meta strong,
body.theme-night .mx-pattern-copy strong,
body.theme-night .mx-story-copy strong {
  color: rgba(238, 242, 250, 0.94);
}

.mx-pattern-card {
  position: absolute;
  left: clamp(128px, 25%, 190px);
  bottom: 28px;
  z-index: 4;
  width: clamp(168px, 22%, 210px);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 18px;
  border: 1px solid rgba(182, 194, 212, 0.68);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 20px 34px -28px rgba(31, 45, 70, 0.46);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

body.theme-night .mx-pattern-card {
  border-color: rgba(112, 131, 170, 0.34);
  background: rgba(18, 24, 37, 0.82);
}

.mx-pattern-thumb {
  flex: 0 0 56px;
  aspect-ratio: 1;
  border-radius: 12px;
  border: 1px solid rgba(174, 188, 207, 0.58);
}

.mx-pattern-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mx-pattern-copy {
  min-width: 0;
}

.mx-output-board {
  height: 100%;
  display: block;
  padding: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(246, 248, 252, 0.94)),
    linear-gradient(145deg, rgba(244, 248, 252, 0.4), rgba(255, 255, 255, 0.1));
}

body.theme-night .mx-output-board {
  background:
    linear-gradient(180deg, rgba(19, 26, 40, 0.84), rgba(12, 18, 30, 0.96)),
    linear-gradient(145deg, rgba(109, 129, 166, 0.08), rgba(255, 255, 255, 0.02));
}

.mx-output-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  z-index: 4;
}

.mx-counter {
  position: static;
  color: rgba(32, 46, 68, 0.92);
  box-shadow: inset 0 0 0 1px rgba(170, 184, 204, 0.36);
}

body.theme-night .mx-counter {
  color: rgba(238, 242, 250, 0.9);
  box-shadow: inset 0 0 0 1px rgba(110, 130, 168, 0.32);
}

.mx-slide {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0;
  transform: scale(1.05);
  animation: mxSlideStory 18s ease-in-out infinite;
}

.mx-slide:nth-child(2) { animation-delay: 6s; }
.mx-slide:nth-child(3) { animation-delay: 12s; }

.mx-screen {
  position: relative;
  height: 100%;
  min-width: 0;
  min-height: 0;
  align-self: stretch;
  border-radius: 18px;
  border: 1px solid rgba(168, 184, 205, 0.58);
  background: #d5dde8;
  box-shadow: 0 24px 42px -28px rgba(17, 28, 46, 0.48);
}

.mx-screen::before {
  content: "";
  position: absolute;
  inset: 12px;
  z-index: 3;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.46);
  pointer-events: none;
}

.mx-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(10, 17, 31, 0) 30%, rgba(10, 17, 31, 0.22) 100%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.mx-chip {
  position: absolute;
  left: 14px;
  bottom: 78px;
  z-index: 3;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(10, 16, 29, 0.52);
  color: #f3f6fd;
  font-size: 11px;
  letter-spacing: 0.08em;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  animation: mxChipStory 18s ease-in-out infinite;
}

.mx-chip:nth-of-type(1) { animation-delay: 0s; }
.mx-chip:nth-of-type(2) { animation-delay: 6s; }
.mx-chip:nth-of-type(3) { animation-delay: 12s; }

.mx-dots {
  position: absolute;
  right: 14px;
  bottom: 80px;
  z-index: 3;
  display: flex;
  gap: 6px;
}

.mx-dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.38);
  animation: mxDotStory 18s ease-in-out infinite;
}

.mx-dots i:nth-child(1) { animation-delay: 0s; }
.mx-dots i:nth-child(2) { animation-delay: 6s; }
.mx-dots i:nth-child(3) { animation-delay: 12s; }

.mx-storyboard {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 4;
}

.mx-story {
  position: relative;
  min-width: 0;
  height: 54px;
  border-radius: 14px;
  border: 1px solid rgba(168, 184, 205, 0.4);
  background: rgba(255, 255, 255, 0.66);
  box-shadow: 0 18px 32px -28px rgba(17, 28, 46, 0.46);
  opacity: 0.58;
  transform: translateY(4px);
  animation: mxStoryCard 18s ease-in-out infinite;
}

body.theme-night .mx-story {
  border-color: rgba(111, 129, 163, 0.26);
  background: rgba(18, 24, 37, 0.78);
}

.mx-story img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mx-story::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(9, 14, 24, 0) 34%, rgba(9, 14, 24, 0.78) 100%);
}

.mx-story-copy {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  z-index: 2;
}

.mx-story:nth-child(2) { animation-delay: 6s; }
.mx-story:nth-child(3) { animation-delay: 12s; }

@keyframes mxSlideStory {
  0% {
    opacity: 0;
    clip-path: inset(0 0 0 28%);
    transform: scale(1.05);
  }
  2% { opacity: 1; }
  10%, 29% {
    opacity: 1;
    clip-path: inset(0 0 0 0);
    transform: scale(1);
  }
  33.333%, 100% {
    opacity: 0;
    clip-path: inset(0 0 0 0);
    transform: scale(1);
  }
}

@keyframes mxChipStory {
  0%, 2% {
    opacity: 0;
    transform: translateY(8px);
  }
  7%, 29% {
    opacity: 1;
    transform: none;
  }
  33.333%, 100% {
    opacity: 0;
    transform: translateY(-6px);
  }
}

@keyframes mxDotStory {
  0%, 31% {
    background: #fff;
    box-shadow: 0 0 7px rgba(255, 255, 255, 0.82);
  }
  33.333%, 100% {
    background: rgba(255, 255, 255, 0.38);
    box-shadow: none;
  }
}

@keyframes mxStoryCard {
  0%, 2% {
    opacity: 0.52;
    transform: translateY(4px);
    box-shadow: 0 18px 32px -28px rgba(17, 28, 46, 0.3);
  }
  7%, 29% {
    opacity: 1;
    transform: translateY(0);
    box-shadow: 0 24px 34px -26px rgba(17, 28, 46, 0.42);
  }
  33.333%, 100% {
    opacity: 0.52;
    transform: translateY(4px);
    box-shadow: 0 18px 32px -28px rgba(17, 28, 46, 0.3);
  }
}

.mx-sim {
  background:
    radial-gradient(110% 120% at 100% 0%, rgba(129, 176, 255, 0.18), transparent 50%),
    linear-gradient(150deg, #edf4ff 0%, #e5eefc 100%);
}

.mx-sim-scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mx-sim-grid {
  position: absolute;
  inset: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.46);
  background:
    linear-gradient(90deg, transparent 33.2%, rgba(255, 255, 255, 0.46) 33.2%, rgba(255, 255, 255, 0.46) 33.8%, transparent 33.8%, transparent 66.2%, rgba(255, 255, 255, 0.46) 66.2%, rgba(255, 255, 255, 0.46) 66.8%, transparent 66.8%),
    linear-gradient(180deg, transparent 33.2%, rgba(255, 255, 255, 0.46) 33.2%, rgba(255, 255, 255, 0.46) 33.8%, transparent 33.8%, transparent 66.2%, rgba(255, 255, 255, 0.46) 66.2%, rgba(255, 255, 255, 0.46) 66.8%, transparent 66.8%);
  opacity: 0.32;
}

.mx-sim-focus {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 3;
  width: 37%;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.88);
  box-shadow: 0 24px 36px -24px rgba(22, 48, 94, 0.54);
  background: rgba(255, 255, 255, 0.82);
  opacity: 1;
  animation: mxSimFocusRefresh 8s ease-in-out infinite;
}

.mx-sim-focus::before {
  content: "";
  position: absolute;
  inset: 8px;
  z-index: 2;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  pointer-events: none;
}

.mx-sim-focus img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: 58% 54%;
  animation: mxSimZoomRefresh 8s ease-in-out infinite;
}

.mx-sim-swatch {
  left: 14px !important;
  right: auto !important;
  top: auto !important;
  bottom: 14px !important;
  width: 18% !important;
  height: auto !important;
  z-index: 4;
  animation: none;
}

.mx-editorial {
  padding: 12px;
  background: linear-gradient(145deg, #ecf3ff 0%, #e2ebfb 100%);
}

.mx-editorial::before {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 249, 255, 0.96));
  box-shadow: inset 0 0 0 1px rgba(198, 214, 241, 0.75);
}

.mx-editorial-sheet {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.18fr 0.82fr 0.82fr;
  grid-template-rows: 1fr 0.82fr;
  gap: 10px;
  height: 100%;
}

.mx-editorial-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 32px -24px rgba(22, 48, 94, 0.36);
  opacity: 0;
  transform: translateY(18px) scale(0.96);
  animation: mxEditorialCardRefresh 8.5s var(--ease-out) infinite;
}

.mx-editorial-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mx-editorial-hero {
  grid-row: span 2;
}

.mx-editorial-strip {
  grid-column: 2 / span 2;
}

.mx-editorial-a {
  grid-column: 2;
  grid-row: 2;
}

.mx-editorial-b {
  grid-column: 3;
  grid-row: 2;
}

.mx-editorial-chip {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 2;
  width: 62px;
  height: 62px;
  border: 1px solid rgba(255, 255, 255, 0.82);
}

.mx-editorial-hero { animation-delay: 0s; }
.mx-editorial-strip { animation-delay: 0.28s; }
.mx-editorial-a { animation-delay: 0.56s; }
.mx-editorial-b { animation-delay: 0.84s; }
.mx-editorial-chip { animation-delay: 1.12s; }

.mx-seam {
  background: linear-gradient(145deg, #edf4ff 0%, #dfeafa 100%);
}

.mx-seam::after {
  content: none;
}

.mx-seam-grid,
.mx-seam-line,
.mx-seam-pass,
.mx-seam-badge {
  position: absolute;
}

.mx-seam-grid {
  inset: 0;
  background-image: url("http://tilzgbta3.hd-bkt.clouddn.com/assets/img/fn-extract-out.png?v=20260805");
  background-repeat: repeat;
  background-size: 164px auto;
  animation: mxSeamDriftRefresh 16s linear infinite;
}

.mx-seam-line {
  top: 8%;
  bottom: 8%;
  left: 50%;
  width: 3px;
  margin-left: -1.5px;
  background: linear-gradient(180deg, rgba(81, 128, 214, 0), rgba(81, 128, 214, 0.9), rgba(81, 128, 214, 0));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.42), 0 0 18px rgba(103, 168, 255, 0.24);
  animation: mxSeamLineRefresh 8s ease-in-out infinite;
}

.mx-seam-pass {
  top: 10%;
  bottom: 10%;
  left: -24%;
  width: 24%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.95) 42%, rgba(149, 188, 255, 0.48) 72%, rgba(255, 255, 255, 0) 100%);
  filter: blur(10px);
  mix-blend-mode: screen;
  animation: mxSeamPassRefresh 8s ease-in-out infinite;
}

.mx-seam-badge {
  left: 50%;
  top: 50%;
  width: 38px;
  height: 38px;
  margin: -19px 0 0 -19px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.82);
  box-shadow: 0 0 0 6px rgba(103, 168, 255, 0.12);
  opacity: 0.72;
  animation: mxSeamBadgeRefresh 8s ease-in-out infinite;
}

@keyframes mxSimFocusRefresh {
  0%, 44% { transform: none; opacity: 1; }
  58% { transform: translate(-8px, -6px) scale(0.96); opacity: 1; }
  74%, 100% { transform: none; opacity: 1; }
}

@keyframes mxSimZoomRefresh {
  0%, 36% { transform: scale(1.56) translate(-2%, -1%); }
  58% { transform: scale(1.8) translate(-7%, -6%); }
  78%, 100% { transform: scale(1.62) translate(-3%, -2%); }
}

@keyframes mxEditorialCardRefresh {
  0%, 14% { opacity: 0; transform: translateY(18px) scale(0.96); filter: blur(4px); }
  22%, 82% { opacity: 1; transform: none; filter: blur(0); }
  100% { opacity: 0.96; transform: translateY(-2px); filter: blur(0); }
}

@keyframes mxSeamDriftRefresh {
  to { background-position: 164px 164px; }
}

@keyframes mxSeamLineRefresh {
  0%, 34% { opacity: 0.95; }
  46%, 78% { opacity: 0.12; }
  100% { opacity: 0.95; }
}

@keyframes mxSeamPassRefresh {
  0%, 22% { transform: translateX(0); opacity: 0; }
  30% { opacity: 1; }
  44%, 74% { transform: translateX(520%); opacity: 1; }
  100% { transform: translateX(520%); opacity: 0; }
}

@keyframes mxSeamBadgeRefresh {
  0%, 34%, 100% { opacity: 0.72; transform: scale(0.92); }
  48%, 64% { opacity: 1; transform: scale(1); }
}

@media (max-width: 560px) {
  .mx-stage {
    position: static;
    width: 100%;
    height: auto;
    margin-top: 18px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 12px;
    border-left: none;
    border-top: 1px solid var(--hairline);
    border-radius: 12px;
  }

  .mx-source-panel,
  .mx-output-board {
    padding: 12px;
  }

  .mx-pattern-card {
    position: static;
    width: auto;
    margin: -2px 0 0;
  }

  .mx-screen {
    aspect-ratio: 1.14;
  }

  .task-card-featured .task-info {
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mx-bridge i,
  .mx-seam-pass,
  .mx-seam-badge,
  .mx-seam-line {
    display: none;
  }

  .mx-editorial-card,
  .mx-slide {
    opacity: 1;
    transform: none;
    filter: none;
    clip-path: none;
  }

  .mx-story {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .mx-sim-focus {
    transform: none;
  }

  .mx-sim-focus img {
    transform: scale(1.5);
  }
}

/* 对比滑块：就是两张图。before 装在平移滑窗里（窗内图等量反向位移保持静止），
   竖线是同宽滑轨的右缘；三者位置都由 JS 每帧写入的同一个变量 --cmp 推出，
   且全部为 transform（合成器线程，不重绘大图），同步且流畅 */
.mx-compare { --cmp: 0.01; }

.mx-compare .mx-after {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mx-before {
  position: absolute;
  inset: 0;
  overflow: hidden;
  transform: translateX(calc((var(--cmp) - 1) * 100%));
  will-change: transform;
}

.mx-before img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translateX(calc((1 - var(--cmp)) * 100%));
  will-change: transform;
}

/* 竖线滑轨：与滑窗同宽同位移，右缘即分割线 */
.mx-bar {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  width: 100%;
  transform: translateX(calc((var(--cmp) - 1) * 100%));
  will-change: transform;
  pointer-events: none;
}

.mx-bar::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 2px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 10px rgba(22, 48, 94, 0.4);
}

.mx-handle {
  position: absolute;
  right: 0;
  top: 50%;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 6px 16px -4px rgba(22, 48, 94, 0.45);
  transform: translate(50%, -50%);
}

.mx-handle::before,
.mx-handle::after {
  content: "";
  position: absolute;
  top: 50%;
  border: 4px solid transparent;
  transform: translateY(-50%);
}

.mx-handle::before { left: 5.5px; border-right-color: var(--accent); }
.mx-handle::after { right: 5.5px; border-left-color: var(--accent); }

/* 极简提取：虚线上传框呼吸（与卷帘同步隐现） */
.mx-mini::before {
  content: "";
  position: absolute;
  inset: 10%;
  z-index: 2;
  border: 1.5px dashed rgba(255, 255, 255, 0.85);
  border-radius: 12px;
  filter: drop-shadow(0 0 4px rgba(22, 48, 94, 0.5));
  animation: mxMiniRing 7s ease-in-out infinite;
  pointer-events: none;
}

@keyframes mxMiniRing {
  0%, 30%, 95%, 100% { opacity: 0.9; }
  45%, 80% { opacity: 0; }
}

/* ============================================================
   2026-07-24 展厅改版：全页贴边 + Hero 广告栏 + 功能统一网格
   ============================================================ */

/* 全页左右贴边（去 1200px 限宽居中） */
.wb-content {
  width: 100%;
  max-width: none;
  margin: 0;
  padding-left: clamp(16px, 2vw, 32px);
  padding-right: clamp(16px, 2vw, 32px);
}

/* Hero 广告栏化：压扁成长条 */
.wb-hero {
  padding: clamp(12px, 1.5vh, 18px) clamp(22px, 2.8vw, 40px);
}

.wb-hero-main {
  grid-template-columns: 1fr auto;
  gap: clamp(16px, 2vw, 32px);
}

.hero-watermark {
  font-size: clamp(110px, 12vw, 180px);
  top: -0.42em;
}

.wb-hero-title {
  font-size: clamp(26px, 3vw, 42px);
  transform: translateY(clamp(16px, 2.4vh, 28px));
}

/* 竖排题名 + 窗口图横排 */
.wb-hero-side {
  display: flex;
  align-items: center;
}

.win-stack {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: clamp(10px, 1.2vw, 18px);
}

.win-vtitle {
  writing-mode: vertical-rl;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(13px, 1vw, 17px);
  letter-spacing: 0.18em;
  background: linear-gradient(180deg, #fff 20%, var(--ice) 70%, var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
  user-select: none;
}

/* 窗口图缩小适配栏高，幽灵层收掉 */
.win-stage {
  width: clamp(190px, 20vw, 290px);
}

.win-ghost { display: none; }

/* 功能模块：统一自适应网格，不再有优先级 */
.task-grid {
  grid-template-columns: repeat(auto-fill, minmax(clamp(210px, 17vw, 300px), 1fr));
}

.task-card-featured {
  grid-column: auto;
}

@media (max-width: 900px) {
  .wb-hero-main { grid-template-columns: 1fr; }
  .wb-hero-side { justify-content: flex-start; }
}

@media (max-width: 560px) {
  .wb-hero-title {
    transform: translateY(10px);
  }
}

/* 统一网格下取消旧 12 列占位 */
.task-grid .task-card {
  grid-column: auto;
}

/* 空轨道坍缩：卡片占满整行 */
.task-grid {
  grid-template-columns: repeat(auto-fit, minmax(clamp(210px, 17vw, 300px), 1fr));
}

/* 无限画布：幽灵层恢复 + 悬停层卡展开主窗上浮 */
.win-ghost { display: block; }

/* 标题下小字：不撑高度 */
.wb-hero-sub {
  margin: clamp(8px, 1.2vh, 12px) 0 0;
  font-size: 12.5px;
  line-height: 1.6;
  color: rgba(214, 230, 255, 0.72);
  max-width: 34em;
}

/* 灵感瀑布：列宽驱动，随视口/缩放增减列数（素材视觉尺寸跟随界面缩放） */
.lib-grid {
  column-width: 260px;
  column-count: auto;
}

/* 首页与灵感素材页使用同一套 JS 瀑布流定位，避免 CSS 多列规则改变卡片尺寸 */
#libGrid.lib-grid {
  column-count: initial;
  column-width: auto;
}

/* Hero 微调：右侧留缝 / 光泽只扫文字 / 小字调大 */
.wb-hero-side {
  margin-right: clamp(10px, 1.4vw, 26px);
}

/* 标题宽度收缩到文字本身，斜掠光泽不再越过文字区 */
.wb-hero-title {
  width: fit-content;
}

.wb-hero-sub {
  font-size: clamp(14px, 0.7vw + 1vh, 16px);
}

/* ---------------- 灵感素材库「查看更多」入口 ---------------- */

.lib-more {
  display: flex;
  justify-content: center;
  padding: 28px 0 8px;
}

.lib-more-btn svg {
  width: 15px;
  height: 15px;
  stroke-width: 1.8;
  margin-left: 6px;
}

/* 首页素材卡片与灵感素材页保持一致的悬浮操作层 */
.insp-card-overlay {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 12px 12px;
  background: linear-gradient(180deg, rgba(7, 13, 24, 0) 0%, rgba(7, 13, 24, 0.18) 42%, rgba(7, 13, 24, 0.76) 100%);
  opacity: 1;
  transform: translateY(0);
}

.insp-card-author {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.insp-card-avatar {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  overflow: hidden;
  border: 1.5px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  box-shadow: 0 8px 22px -14px rgba(0, 0, 0, 0.56);
  background: rgba(255, 255, 255, 0.92);
}

.insp-card-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.insp-card-name {
  min-width: 0;
  overflow: hidden;
  color: #fff;
  font-weight: 500;
  font-size: 14px;
  white-space: nowrap;
  text-overflow: ellipsis;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.32);
}

.insp-card-cta {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 14px 32px -22px rgba(0, 0, 0, 0.56);
}

.insp-card-cta:hover {
  background: rgba(255, 255, 255, 0.23);
}

.insp-card-cta svg {
  width: 15px;
  height: 15px;
}

/* 区块标题使用业务名称，替换原来的宣传式大标题。 */
.wb-section-head .wb-label {
  display: block;
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(26px, 2.8vw, 34px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.04em;
  color: var(--ink);
  text-transform: none;
}

.wb-section-head .wb-title {
  display: none;
}

/* 发布提示字号提升，但沿用固定行高，避免撑大深蓝 Hero 盒子。 */
.wb-release .rl-text {
  font-size: clamp(28px, 1.5vw + 1.2vh, 36px);
  line-height: 1.05;
}

/* 仅调整视觉位置来拉开与下方主标题的呼吸感，不改变 Hero 的布局高度。 */
.wb-release {
  transform: translateY(4px);
}

/* 工作台底部页脚按需求移除。 */
.wb-footer {
  display: none !important;
}

