/* ============================================================
 *  北抖AI · 自媒体导航 —— tvOS 风格桌面
 * ============================================================ */

:root {
  --cyan: #12d8f1;
  --ink: #03060b;
  --text: #e6f4f8;

  /* 11 个图标时宽度收窄到 94，高度固定 68 不变 —— logo 尺寸因此完全不受影响 */
  --dock-w: clamp(78px, 6.6vw, 94px);
  --dock-h: 68px;

  /* 苹果用的弹簧手感 */
  --spring: cubic-bezier(0.34, 1.42, 0.64, 1);
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
}

body {
  background: var(--ink);
  color: var(--text);
  font-family: -apple-system, "SF Pro Display", system-ui, "PingFang SC", "Microsoft YaHei", sans-serif;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

.stage {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

/* ---------- 壁纸 ---------- */

.wall {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: #0a1218;
}

.wall-layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.6s var(--ease), filter 0.45s ease;
  transform: scale(1.02);
  will-change: opacity, transform;
}

.wall-layer:first-child {
  background-image: url("../img/wallpapers/1015.jpg");
}

.wall-layer.is-active {
  opacity: 1;
  animation: kenburns 32s ease-in-out infinite alternate;
}

@keyframes kenburns {
  from { transform: scale(1.02) translate3d(0, 0, 0); }
  to   { transform: scale(1.13) translate3d(-1.6%, -1.3%, 0); }
}

.vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(to bottom,
      rgba(3, 6, 11, 0.50) 0%,
      rgba(3, 6, 11, 0.12) 24%,
      rgba(3, 6, 11, 0.16) 46%,
      rgba(3, 6, 11, 0.72) 78%,
      rgba(3, 6, 11, 0.78) 100%);
}

body.is-dim .wall-layer { filter: brightness(0.52) saturate(0.85); }
body.is-dim .vignette {
  background: linear-gradient(to bottom, rgba(2, 4, 7, 0.62) 0%, rgba(2, 4, 7, 0.36) 40%, rgba(2, 4, 7, 0.94) 100%);
}

/* ---------- 中央：标题 / 渠道信息 ---------- */

.center {
  position: absolute;
  left: 50%;
  top: 41%;
  transform: translate(-50%, -50%) translateY(0);
  z-index: 6;
  display: grid;
  place-items: center;
  width: min(92vw, 1000px);
  text-align: center;
  pointer-events: none;
  transition: transform 0.58s var(--spring);
}

/* 悬停某渠道时，标题区整体上移，把中间让给应用截图 */
.stage.is-focus .center {
  transform: translate(-50%, -50%) translateY(clamp(-186px, -17.4vh, -128px));
}

.center > * {
  grid-area: 1 / 1;
  transition: opacity 0.36s var(--ease), transform 0.36s var(--spring);
}

.center-brand {
  opacity: 1;
  transform: translateY(0) scale(1);
  transform-origin: center center;
  transition: transform 0.58s var(--spring), opacity 0.4s var(--ease);
}

/* 悬停时标题不消失，缩成小字移到渠道名上方 */
.stage.is-focus .center-brand {
  /* 整块上移后标题会顶到屏幕边缘，这里相对回落 18px 留出呼吸 */
  transform: translateY(-134px) scale(0.62);
  opacity: 0.9;
}

.stage.is-focus .center-brand p {
  opacity: 0;
}

.center-brand h1 em {
  font-style: normal;
  color: inherit;
}

.center-brand h1 {
  margin: 0;
  font-size: clamp(30px, 4.5vw, 58px);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.022em;
  color: #ffffff;
  text-shadow: 0 6px 44px rgba(0, 0, 0, 0.42);
}

.center-brand p {
  transition: opacity 0.3s ease;
  margin: clamp(14px, 1.6vw, 22px) 0 0;
  font-size: clamp(13px, 1.2vw, 16px);
  font-weight: 400;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.4);
}

.center-shelf {
  opacity: 0;
  transform: scale(0.96);
}

.center-shelf.is-on {
  opacity: 1;
  transform: scale(1);
}

.shelf-icon {
  width: clamp(52px, 4.4vw, 62px);
  height: clamp(52px, 4.4vw, 62px);
  margin: 0 auto clamp(6px, 0.65vw, 9px);
  border-radius: 23%;
  display: grid;
  place-items: center;
  background-image:
    linear-gradient(155deg, rgba(255, 255, 255, 0.30) 0%, rgba(255, 255, 255, 0.05) 34%, rgba(0, 0, 0, 0.12) 100%),
    linear-gradient(165deg, var(--c) 0%, var(--c2) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    0 18px 38px -16px rgba(0, 0, 0, 0.75),
    0 0 46px -14px var(--c);
}

.shelf-logo {
  display: block;
  width: 44%;
  height: auto;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.28));
}

/* 中央大图标里的字标同样要铺满，否则汉字会糊成一团 */
.shelf-icon[data-id="xhs"] .shelf-logo {
  width: 80%;
}

.shelf-icon[data-id="channels"] .shelf-logo {
  width: 62%;
}

.shelf-title {
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 500;
  letter-spacing: -0.015em;
  color: #ffffff;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.45);
}

.shelf-sub {
  margin-top: clamp(4px, 0.45vw, 7px);
  font-size: clamp(11.5px, 1vw, 13px);
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.66);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.4);
}

/* ---------- 应用截图区（Top Shelf） ---------- */

.shots {
  position: absolute;
  left: 50%;
  top: 58%;
  transform: translate(-50%, -50%) translateY(26px) scale(0.97);
  z-index: 5;
  width: min(37vw, 480px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.42s var(--ease), transform 0.56s var(--spring);
}

/* 宽幅图（16:9 这类）把可用高度吃满，避免被 4:3 的宽度限制住显得小 */
.shots.is-wide {
  width: min(47vw, 600px);
}

.stage.is-focus .shots {
  opacity: 1;
  transform: translate(-50%, -50%) translateY(0) scale(1);
}

.shots-frame {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  overflow: hidden;
  background-color: rgba(10, 16, 24, 0.5);
  background-image: linear-gradient(160deg, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0) 62%);
  -webkit-backdrop-filter: blur(22px) brightness(1.2);
  backdrop-filter: blur(22px) brightness(1.2);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    0 42px 96px -42px rgba(0, 0, 0, 0.92),
    inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.shots-img {
  position: absolute;
  top: 30px;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: calc(100% - 30px);
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.4s ease;
}

/* 有图时：取消固定比例，让图片按自身比例撑开卡片（不裁剪、不缩放） */
.shots-frame.has-img {
  aspect-ratio: auto;
}

.shots-frame.has-img .shots-img {
  position: static;
  width: 100%;
  height: auto;
  margin-top: 30px;
  display: block;
  opacity: 1;
}

.shots-empty {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.4);
  transition: opacity 0.3s ease;
}

.shots-empty-logo {
  width: 42px;
  height: auto;
  opacity: 0.45;
}

.shots-frame.has-img .shots-empty { opacity: 0; }

/* ---------- 右上时钟 ---------- */

.clock {
  position: absolute;
  top: 26px;
  right: 46px;
  z-index: 10;
  text-align: right;
  pointer-events: none;
}

.clock-time {
  font-size: 32px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0.005em;
  color: #ffffff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.5);
}

.clock-date {
  margin-top: 3px;
  font-size: 11.5px;
  letter-spacing: 0.09em;
  color: rgba(240, 248, 252, 0.74);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5);
}

/* ---------- 控制中心 ---------- */

.corner {
  position: absolute;
  top: 98px;
  right: 46px;
  z-index: 12;
}

.corner-btn {
  width: 34px;
  height: 34px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: rgba(240, 252, 255, 0.92);
  background-color: rgba(255, 255, 255, 0.20);
  background-image: linear-gradient(158deg, rgba(255, 255, 255, 0.24) 0%, rgba(255, 255, 255, 0.03) 66%);
  -webkit-backdrop-filter: blur(20px) saturate(135%);
  backdrop-filter: blur(20px) saturate(135%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.32), 0 8px 22px -12px rgba(0, 0, 0, 0.9);
  cursor: pointer;
  transition: background 0.24s var(--ease), transform 0.24s var(--spring);
}

.corner-btn:hover { transform: scale(1.08); background: rgba(255, 255, 255, 0.2); }
.corner-btn.is-open { background: rgba(255, 255, 255, 0.22); }

/* 容器不参与 opacity / transform 动画，避免破坏 backdrop-filter 的取样范围 */
.cc {
  position: absolute;
  top: 144px;
  right: 46px;
  z-index: 12;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 9px;
  pointer-events: none;
}

.cc.is-open { pointer-events: auto; }

.cc-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: conic-gradient(from 200deg,
    rgba(255, 140, 140, 0.55),
    rgba(255, 226, 152, 0.48),
    rgba(152, 255, 192, 0.38),
    rgba(142, 206, 255, 0.55),
    rgba(208, 154, 255, 0.46),
    rgba(255, 140, 140, 0.55));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0.42;
  mix-blend-mode: screen;
  pointer-events: none;
}

.cc-btn {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 16px 10px 13px;
  border-radius: 999px;
  color: rgba(244, 253, 255, 0.95);
  background-color: rgba(255, 255, 255, 0.22);
  background-image: linear-gradient(158deg, rgba(255, 255, 255, 0.26) 0%, rgba(255, 255, 255, 0.02) 64%);
  -webkit-backdrop-filter: blur(26px) saturate(135%);
  backdrop-filter: blur(26px) saturate(135%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    0 10px 28px -14px rgba(0, 0, 0, 0.9);
  font-family: inherit;
  font-size: 12px;
  letter-spacing: 0.02em;
  min-width: 122px;
  cursor: pointer;
  opacity: 0;
  transform: translateY(-10px) scale(0.96);
  transition: opacity 0.26s var(--ease), transform 0.3s var(--spring), background 0.2s ease;
  transition-delay: 0s;
}

.cc.is-open .cc-btn {
  opacity: 1;
  transform: none;
}

.cc.is-open .cc-btn:nth-child(1) { transition-delay: 0s; }
.cc.is-open .cc-btn:nth-child(2) { transition-delay: 0.045s; }
.cc.is-open .cc-btn:nth-child(3) { transition-delay: 0.09s; }
.cc.is-open .cc-btn:nth-child(4) { transition-delay: 0.135s; }

.cc-btn:hover {
  background: rgba(255, 255, 255, 0.24);
  transform: translateX(-3px);
}

.cc-btn.is-on {
  background: rgba(18, 216, 241, 0.24);
  border-color: rgba(127, 230, 255, 0.5);
}

/* ---------- 液态玻璃 Dock ----------
 * 五层结构参考 pure-serendipity-five/dsh-liquid-glass-studio 的光学规格：
 * ① 半透明层 ② 折射层（边缘） ③ 色差层 ④ 高光层 ⑤ 动态层
 * 折射层需要 backdrop-filter: url()，Safari/微信不支持，这里用 ③④ 两层做出等效观感。
 */

.dock {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(28px, 4.4vh, 46px);
  margin: 0 auto;
  width: fit-content;
  z-index: 8;
  display: flex;
  align-items: flex-end;
  gap: clamp(6px, 0.8vw, 11px);
  padding: 15px clamp(12px, 1.4vw, 18px) 9px;
  border-radius: clamp(20px, 2.2vw, 27px);

  /* ① 深色半透明层（深色玻璃在任何壁纸下都稳定，不会被背景色同化） */
  background-color: rgba(255, 255, 255, 0.045);
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.02) 48%, rgba(255, 255, 255, 0) 100%);
  -webkit-backdrop-filter: blur(26px) brightness(1.85) saturate(150%);
  backdrop-filter: blur(26px) brightness(1.85) saturate(150%);
  box-shadow: 0 34px 90px -34px rgba(0, 0, 0, 0.94);
  isolation: isolate;
}

/* ③ 色差层：只留最外缘 2px 的彩虹环 */
.dock::before {
  content: ;
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: conic-gradient(from 205deg,
    rgba(255, 138, 138, 0.62),
    rgba(255, 224, 150, 0.55),
    rgba(150, 255, 190, 0.44),
    rgba(140, 205, 255, 0.62),
    rgba(206, 152, 255, 0.52),
    rgba(255, 138, 138, 0.62));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0.62;
  mix-blend-mode: screen;
  pointer-events: none;
}

/* ④ 高光层：顶部内光线 + 菲涅尔内环 + 底部反光 */
.dock::after {
  content: ;
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    inset 0 0 0 1px rgba(255, 255, 255, 0.13),
    inset 0 10px 22px -14px rgba(255, 255, 255, 0.62),
    inset 0 -1px 0 rgba(255, 255, 255, 0.28),
    inset 0 0 34px rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

/* ---------- 渠道图标 ---------- */

.app {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--dock-w);
  height: var(--dock-h);
  border-radius: 16px;
  text-decoration: none;
  background-image:
    linear-gradient(155deg, rgba(255, 255, 255, 0.30) 0%, rgba(255, 255, 255, 0.05) 34%, rgba(0, 0, 0, 0.12) 100%),
    linear-gradient(165deg, var(--c) 0%, var(--c2) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    inset 0 -1px 0 rgba(0, 0, 0, 0.22),
    0 10px 24px -12px rgba(0, 0, 0, 0.9),
    0 3px 10px -6px var(--c);
  transition: transform 0.34s var(--spring), background 0.26s ease, box-shadow 0.34s ease;
  transform-origin: bottom center;
  cursor: pointer;
}

.app::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(180deg,
    rgba(255, 255, 255, 0.5) 0%,
    rgba(255, 255, 255, 0.09) 40%,
    rgba(255, 255, 255, 0.05) 74%,
    rgba(255, 255, 255, 0.17) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

.app-logo {
  width: clamp(24px, 2.3vw, 30px);
  height: auto;
  opacity: 1;
  pointer-events: none;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.28));
  transition: opacity 0.26s ease, transform 0.34s var(--spring);
}

/* 悬停时底部透出该渠道的品牌色 */
.app::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.30) 0%, rgba(255, 255, 255, 0) 42%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

/* 焦点移动时，周围图标按距离后退 */
.app.is-away {
  transform: scale(calc(1 - var(--away, 0) * 0.85)) translateY(calc(var(--away, 0) * 105px));
  opacity: calc(1 - var(--away, 0) * 1.7);
}

.app:hover,
.app:focus-visible,
.app.is-focus {
  outline: none;
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-10px) scale(1.07) rotateX(7deg);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    0 20px 40px -14px rgba(0, 0, 0, 0.9),
    0 0 34px -4px var(--c);
}

.app:hover::after,
.app.is-focus::after { opacity: 0.34; }

/* 小红书官方字标：三个汉字并排，字高只有宽度的 1/3.4，
   必须铺满图标宽度才能看清（官方 App 图标就是这个排法） */
.app[data-id="xhs"] .app-logo {
  width: 62%;
  height: auto;
}

/* 视频号蝴蝶结在竖向上偏宽，收一点 */
.app[data-id="channels"] .app-logo {
  width: clamp(32px, 3.1vw, 40px);
}

.app:hover .app-logo,
.app.is-focus .app-logo {
  opacity: 1;
  transform: scale(1.04);
}

/* ---------- 快捷键面板 ---------- */

.overlay {
  position: absolute;
  inset: 0;
  z-index: 14;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.hotkeys {
  min-width: 262px;
  padding: 20px 24px;
  border-radius: 18px;
  background: rgba(8, 16, 23, 0.5);
  -webkit-backdrop-filter: blur(30px) saturate(175%);
  backdrop-filter: blur(30px) saturate(175%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow:
    0 34px 80px -34px rgba(0, 0, 0, 0.9),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.24s var(--ease), transform 0.3s var(--spring);
  pointer-events: none;
}

.overlay.is-open .hotkeys {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.hotkeys-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  font-size: 12px;
  color: rgba(216, 234, 244, 0.88);
}

.hotkeys-row span {
  margin-left: 6px;
  color: rgba(168, 196, 210, 0.82);
}

kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 22px;
  padding: 0 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.28);
  font-family: inherit;
  font-size: 11px;
  color: #eaf7fb;
}

/* ---------- 小屏适配 ---------- */

@media (max-width: 820px) {
  .clock { top: 16px; right: 18px; }
  .clock-time { font-size: 22px; }
  .clock-date { font-size: 10.5px; }

  .corner { top: 64px; right: 18px; }
  .corner-btn { width: 30px; height: 30px; }

  .cc { top: 104px; right: 18px; gap: 7px; }
  .cc-btn {
    min-width: 104px;
    padding: 8px 12px 8px 10px;
    gap: 7px;
    font-size: 11px;
  }
  .cc-btn svg { width: 14px; height: 14px; }

  .center { top: 44%; }
  .stage.is-focus .center { transform: translate(-50%, -50%) translateY(-92px); }
  .shots { width: 86vw; top: 60%; }
  /* 手机上同样按图片比例自适应，不再写死高度 */
  .shots-frame { border-radius: 14px; }
  .shots-frame::before { height: 24px; }
  .shots-frame::after { top: 7px; left: 11px; width: 9px; height: 9px; box-shadow: 15px 0 0 #febc2e, 30px 0 0 #28c840; }
  .shots-img { top: 24px; height: calc(100% - 24px); }
  .shots-frame.has-img .shots-img { margin-top: 24px; }
  .center-brand h1 { font-size: clamp(25px, 6.8vw, 33px); }
  .center-brand p { font-size: 10.5px; letter-spacing: 0.14em; }
  .shelf-logo { width: 32px; }
  .shelf-title { font-size: 23px; }
  .shelf-sub { font-size: 10.5px; }

  .dock {
    --dock-w: clamp(34px, 9.6vw, 42px);
    --dock-h: clamp(24px, 6.8vw, 30px);
    gap: 5px;
    padding: 9px 10px 7px;
    border-radius: 16px;
    /* 11 个图标一行放不下：按「自有产品 / 外部渠道」分成两行 */
    flex-wrap: wrap;
    justify-content: center;
    max-width: 92vw;
  }
  /* 分隔线在手机上变成换行符（用 .dock 前缀压过文件末尾的同名规则） */
  .dock .dock-sep {
    flex: 0 0 100%;
    height: 0;
    margin: 0;
    background: none;
  }
  .app { border-radius: 9px; }
  /* 自有产品只有 4 个，放大一档，避免第一行显得空 */
  .app.is-own {
    width: clamp(46px, 12.6vw, 54px);
    border-radius: 11px;
  }
  .app-logo { width: clamp(12px, 3.6vw, 16px); }
  .app.is-own .app-logo { width: clamp(14px, 4.2vw, 18px); }
  .app[data-id="agents"] .app-logo { width: clamp(15px, 4.5vw, 20px); }
  .app[data-id="xhs"] .app-logo { width: 76%; }
  .toast { bottom: 190px; font-size: 11.5px; padding: 8px 14px; }
}

/* ---------- Dock 分隔线：自有产品 | 外部渠道 ---------- */

.dock-sep {
  flex: 0 0 1px;
  align-self: stretch;
  margin: 7px 3px;
  border-radius: 1px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.26) 22%,
    rgba(255, 255, 255, 0.26) 78%,
    rgba(255, 255, 255, 0) 100%
  );
  pointer-events: none;
}

/* 自有产品：深藏蓝底 + 青色微光，跟彩色渠道在视觉上分层 */
.app.is-own {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    inset 0 -1px 0 rgba(0, 0, 0, 0.45),
    0 10px 24px -12px rgba(0, 0, 0, 0.9),
    0 0 20px -7px rgba(18, 216, 241, 0.32);
}

.app.is-own:hover,
.app.is-own.is-focus {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 20px 40px -14px rgba(0, 0, 0, 0.9),
    0 0 34px -4px rgba(18, 216, 241, 0.55);
}

/* ---------- 轻提示 ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: clamp(150px, 25vh, 236px);
  transform: translate(-50%, 12px);
  z-index: 60;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 12.5px;
  letter-spacing: 0.02em;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(10, 16, 24, 0.74);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.9);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.4s var(--spring);
}

.toast.is-on {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* 自有产品的符号细节少，需要比渠道 logo 更大才够视觉重量（桌面专用） */
@media (min-width: 821px) {
  .app.is-own .app-logo {
    width: clamp(26px, 2.6vw, 34px);
  }
}

/* 分隔线太细看不见，加粗提亮 */
.dock-sep {
  flex: 0 0 1.5px;
  margin: 9px 5px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.42) 24%,
    rgba(255, 255, 255, 0.42) 76%,
    rgba(255, 255, 255, 0) 100%
  );
}

/* 自有产品整体再提一档：外发光加强，避免在深色玻璃上像空槽 */
.app.is-own {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    inset 0 -1px 0 rgba(0, 0, 0, 0.4),
    0 10px 24px -12px rgba(0, 0, 0, 0.9),
    0 0 22px -6px rgba(18, 216, 241, 0.45);
}

/* node-tree 图形本身只占画布 3/4，单独放大一档
   —— 限定桌面，否则会盖掉手机断点里的小尺寸 */
@media (min-width: 821px) {
  .app[data-id="agents"] .app-logo {
    width: clamp(30px, 3vw, 40px);
  }
}

/* 中央文字的对比度交给文字自身的投影，不再垫暗色柔光（会变成一块脏影子） */
.shelf-title,
.shelf-sub,
.center-brand h1,
.center-brand p {
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.45),
    0 2px 18px rgba(0, 0, 0, 0.55);
}

.shelf-sub {
  font-size: clamp(12.5px, 1.05vw, 14.5px);
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.75);
}

.center-brand p {
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.6);
}

/* 描述是最小的一行，亮背景上靠「字幕式描边」撑住：
   四向 1px 硬阴影勾一圈边，再加一层柔光，不产生任何色块 */
.shelf-sub {
  color: #ffffff;
  text-shadow:
    -1px -1px 0 rgba(0, 0, 0, 0.5),
     1px -1px 0 rgba(0, 0, 0, 0.5),
    -1px  1px 0 rgba(0, 0, 0, 0.5),
     1px  1px 0 rgba(0, 0, 0, 0.5),
     0    2px 10px rgba(0, 0, 0, 0.45);
}

/* 主标题同款描边，只是更轻，避免小字清楚、大字发虚 */
.shelf-title,
.center-brand h1 {
  text-shadow:
    -1px -1px 0 rgba(0, 0, 0, 0.34),
     1px -1px 0 rgba(0, 0, 0, 0.34),
    -1px  1px 0 rgba(0, 0, 0, 0.34),
     1px  1px 0 rgba(0, 0, 0, 0.34),
     0    3px 18px rgba(0, 0, 0, 0.5);
}

/* ---------- 截图卡做成 Mac 窗口：左上角三个交通灯按钮 ---------- */

/* 窗口标题栏：三个交通灯要有'家'，否则只是贴在图片上 */
.shots-frame::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 30px;
  z-index: 3;
  background: linear-gradient(180deg, rgba(30, 33, 38, 0.94) 0%, rgba(20, 22, 26, 0.78) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  pointer-events: none;
}

/* 三个交通灯，落在标题栏里 */
.shots-frame::after {
  content: "";
  position: absolute;
  top: 10px;
  left: 15px;
  z-index: 4;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff5f57;
  box-shadow: 17px 0 0 #febc2e, 34px 0 0 #28c840;
  pointer-events: none;
}
