/* 奇幻维度 — 全局样式
   材质是苹果液态玻璃的网页近似：backdrop-filter + 顶缘高光 + 半透明填充。
   没有官方的 liquid-glass.css，系统不支持时退回实色。 */

*, *::before, *::after { box-sizing: border-box; }

:root {
  --fd-bg: #07080d;
  --fd-ink: #f5f5f7;
  --fd-muted: #a1a1a6;
  --fd-accent: #0a84ff;
  --fd-glass: rgba(255, 255, 255, 0.075);
  --fd-glass-strong: rgba(22, 22, 26, 0.62);
  --fd-line: rgba(255, 255, 255, 0.18);
  --fd-sheen: inset 0 1px 0 rgba(255, 255, 255, 0.42);
  --fd-shadow: 0 18px 50px rgba(0, 0, 0, 0.32);
  --fd-blur: blur(28px) saturate(1.85);
  --fd-font: -apple-system, BlinkMacSystemFont, "Segoe UI Variable Display", "Segoe UI", "Noto Sans SC", sans-serif;
  color-scheme: light;
}

html { scroll-behavior: smooth; }

body {
  background: var(--fd-bg);
  color: var(--fd-ink);
  font-family: var(--fd-font);
}

/* 墙纸：大块冷色光斑，让玻璃后面有东西可折射 */
.fd-wallpaper {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% -10%, rgba(120, 160, 255, 0.18), transparent 46%),
    var(--fd-bg);
}
.fd-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(40px);
  opacity: 0.9;
}
.fd-orb-a {
  width: 42rem;
  height: 42rem;
  left: -8rem;
  top: -6rem;
  background: rgba(10, 132, 255, 0.28);
  animation: fd-drift 22s ease-in-out infinite alternate;
}
.fd-orb-b {
  width: 36rem;
  height: 36rem;
  right: -6rem;
  top: 18%;
  background: rgba(180, 210, 255, 0.16);
  animation: fd-drift 26s ease-in-out infinite alternate-reverse;
}
.fd-orb-c {
  width: 32rem;
  height: 32rem;
  left: 28%;
  bottom: -8rem;
  background: rgba(88, 86, 214, 0.2);
  animation: fd-drift 30s ease-in-out infinite alternate;
}
.fd-grain {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* 顶栏、侧栏、弹层共用的一层玻璃 */
.fd-bar,
.fd-dock,
.fd-foot,
.fd-sheet,
.glass,
.glass-heavy {
  background: var(--fd-glass-strong);
  backdrop-filter: var(--fd-blur);
  -webkit-backdrop-filter: var(--fd-blur);
  border: 1px solid var(--fd-line);
  box-shadow: var(--fd-sheen), var(--fd-shadow);
}
.fd-bar {
  top: 0;
  margin: 0;
  border-radius: 0;
  border-left: none;
  border-right: none;
  border-top: none;
}
.fd-bar > div { flex-wrap: nowrap; }
.fd-bar nav { flex-wrap: nowrap; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.fd-bar .nav-link,
.fd-bar button,
.fd-bar .fd-login { white-space: nowrap; flex-shrink: 0; }
.fd-login {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  height: 2rem;
  padding: 0 0.85rem 0 0.65rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--fd-ink);
  background: linear-gradient(180deg, #5aadff, #0a84ff);
  border: 1px solid var(--fd-line);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.5), 0 6px 14px rgba(10,132,255,0.28);
}
.fd-login svg { width: 0.95rem; height: 0.95rem; }
.fd-login:hover { filter: brightness(1.08); }
.fd-login:active { transform: scale(0.98); }
.fd-check {
  width: 1rem;
  height: 1rem;
  accent-color: #0a84ff;
  cursor: pointer;
  position: relative;
  z-index: 2;
}
.fd-ai-bubble {
  max-width: 16rem;
  margin: 0;
  padding: .65rem .85rem;
  border-radius: 1rem 1rem .35rem 1rem;
  background: var(--fd-surface);
  border: 1px solid var(--fd-line);
  color: var(--fd-ink);
  font-size: .82rem;
  line-height: 1.45;
  box-shadow: var(--fd-sheen), var(--fd-shadow);
  backdrop-filter: var(--fd-blur);
  -webkit-backdrop-filter: var(--fd-blur);
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.fd-ai-bubble.is-on { opacity: 1; transform: none; }
.fd-ai-bubble:empty { display: none; }
#mobileSidebarOverlay .fd-sheet { border-radius: 0 22px 22px 0; }
.fd-dock {
  margin: 0;
  border-radius: 0;
  border-top: none;
  border-bottom: none;
  border-left: none;
  height: calc(100dvh - 56px);
  position: sticky;
  top: 56px;
  align-self: flex-start;
  overflow: auto;
}
.fd-foot {
  margin: 0;
  border-radius: 0;
  border-left: none;
  border-right: none;
  border-bottom: none;
}
.fd-sheet { border-radius: 22px; }
.fd-mark {
  width: 2rem;
  height: 2rem;
  border-radius: 0.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 650;
  color: var(--fd-ink);
  background: linear-gradient(180deg, rgba(255,255,255,0.28), rgba(255,255,255,0.06));
  border: 1px solid var(--fd-line);
  box-shadow: var(--fd-sheen), 0 8px 20px rgba(10, 132, 255, 0.25);
}
.fd-mark-sm { width: 1.75rem; height: 1.75rem; border-radius: 0.55rem; font-size: 0.72rem; }
.fd-nav-ico { width: 0.95rem; height: 0.95rem; flex-shrink: 0; }
.sb-link .fd-nav-ico { width: 1.05rem; height: 1.05rem; }
.nav-link.is-current,
.sb-link.is-current {
  color: var(--fd-ink);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid var(--fd-line);
  box-shadow: var(--fd-sheen);
}

/* 页面里手写的圆角描边盒子，收成同一层玻璃。警告色边框保持原色。 */
main :is(.rounded-lg, .rounded-xl, .rounded-2xl, .rounded-3xl)[class*="border"]:not(button):not(a):not(input):not(select):not(textarea):not(label):not([class*="border-red"]):not([class*="border-amber"]):not([class*="border-emerald"]):not([class*="border-green"]):not([class*="border-rose"]) {
  background-color: rgba(255, 255, 255, 0.06);
  backdrop-filter: var(--fd-blur);
  -webkit-backdrop-filter: var(--fd-blur);
  border-color: var(--fd-line);
  box-shadow: var(--fd-sheen), 0 12px 32px rgba(0, 0, 0, 0.22);
}
/* 还写着旧紫青渐变的按钮和标，收到系统蓝，避免登录、后台、工具页各留一套 */
[style*="linear-gradient(135deg,#7c3aed,#06b6d4)"],
[style*="linear-gradient(135deg,#7c3aed,#0891b2)"],
[style*="linear-gradient(135deg,#ec4899,#7c3aed)"] {
  background: linear-gradient(180deg, #3d9bff, #0a84ff) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.4), 0 8px 18px rgba(10,132,255,0.28) !important;
}
.admin-nav-primary[class*="violet"] {
  color: var(--fd-ink) !important;
  background: rgba(255,255,255,0.12) !important;
  border: 1px solid var(--fd-line) !important;
  box-shadow: var(--fd-sheen);
}
.fd-admin-side,
.fd-admin-top {
  background: var(--fd-surface);
  border-color: var(--fd-line);
}
.fd-mark-lg { width: 4rem; height: 4rem; border-radius: 1.15rem; font-size: 1.6rem; }

/* ── Scrollbar ─────────────────────────────────────────── */
::-webkit-scrollbar       { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: rgba(255,255,255,0.02); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.22); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.38); }

/* ── Gradient text ─────────────────────────────────────── */
.gradient-text {
  background: linear-gradient(180deg, #ffffff, #c5d4ea);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Buttons ───────────────────────────────────────────── */
.btn-primary {
  padding: .5rem 1.15rem;
  border-radius: 999px;
  font-size: .875rem;
  font-weight: 560;
  color: var(--fd-ink);
  background: linear-gradient(180deg, #3d9bff, #0a84ff);
  border: 1px solid var(--fd-line);
  cursor: pointer;
  transition: transform .15s, filter .2s;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.45), 0 8px 22px rgba(10,132,255,0.32);
}
.btn-primary:hover  { filter: brightness(1.08); }
.btn-primary:active { transform: scale(.98); }
.btn-primary:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.btn-secondary {
  padding: .5rem 1.15rem;
  border-radius: 999px;
  font-size: .875rem;
  font-weight: 500;
  color: var(--fd-ink);
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--fd-line);
  cursor: pointer;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.28);
  transition: background .2s, transform .15s;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}
.btn-secondary:hover  { background: rgba(255,255,255,0.14); }
.btn-secondary:active { transform: scale(.98); }

/* ── Input ─────────────────────────────────────────────── */
.fd-input {
  width: 100%;
  min-height: 2.75rem;
  padding: .7rem 1rem;
  border-radius: .85rem;
  font-size: .9rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--fd-line);
  color: var(--fd-ink);
  outline: none;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.2);
  transition: border-color .2s, box-shadow .2s;
}
.fd-input::placeholder { color: var(--fd-muted); }
.fd-input:focus {
  border-color: rgba(10,132,255,0.7);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.25), 0 0 0 3px rgba(10,132,255,0.28);
}

/* 带左侧放大镜的搜索框：左内边距写在 site.css，避免被 .fd-input 的 padding 简写冲掉 Tailwind pl-* */
.fd-search {
  position: relative;
  flex: 1 1 12rem;
  min-width: 0;
}
.fd-search .fd-input {
  padding-left: 2.75rem;
}
.fd-search-icon {
  position: absolute;
  left: .95rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.1rem;
  height: 1.1rem;
  color: var(--fd-muted);
  pointer-events: none;
  z-index: 2;
}

/* 深色主题下原生 select 下拉：强制深底浅字，避免白底浅灰看不清；勿 width:100% 以免挤扁同行搜索框 */
select.fd-input,
select.fd-select,
#ticketType,
#complaintCategory {
  color: var(--fd-ink) !important;
  background-color: #1c1e28 !important;
  color-scheme: light;
  width: auto;
  min-width: 10rem;
  flex: 0 0 auto;
}
select.fd-input option,
select.fd-select option,
#ticketType option,
#complaintCategory option {
  background-color: #1c1e28;
  color: var(--fd-ink);
}
select.fd-input option:checked,
select.fd-select option:checked,
#ticketType option:checked,
#complaintCategory option:checked {
  background-color: #0a84ff;
  color: var(--fd-ink);
}

/* ── Tag ───────────────────────────────────────────────── */
.fd-tag {
  display: inline-flex;
  align-items: center;
  padding: .15rem .55rem;
  border-radius: 999px;
  font-size: .7rem;
  background: rgba(10,132,255,0.16);
  color: var(--fd-ink);
  border: 1px solid rgba(10,132,255,0.32);
}

/* ── App card ──────────────────────────────────────────── */
.app-card {
  background: rgba(255,255,255,0.07);
  backdrop-filter: var(--fd-blur);
  -webkit-backdrop-filter: var(--fd-blur);
  border: 1px solid var(--fd-line);
  border-radius: 1.35rem;
  padding: 1.25rem;
  cursor: pointer;
  transition: border-color .25s, box-shadow .25s, background .25s;
  position: relative;
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
  box-shadow: var(--fd-sheen), 0 12px 32px rgba(0,0,0,0.2);
}
.app-card::before {
  content:'';
  position:absolute;
  top:0;left:8%;right:8%;height:1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.7), transparent);
  opacity: .35;
  z-index: 1;
  pointer-events: none;
}
.app-card:hover {
  background: rgba(255,255,255,0.11);
  border-color: var(--fd-line);
  box-shadow: var(--fd-sheen), 0 18px 44px rgba(0,0,0,0.32);
}
.app-card:hover::before { opacity: 1; }

/* 软件/应用卡片：标题单独一行，荣誉只留一枚，操作放到底栏 */
.sw-top { display: flex; align-items: center; gap: .75rem; margin-bottom: .85rem; }
.sw-icon {
  width: 2.75rem; height: 2.75rem; border-radius: .9rem; flex-shrink: 0; overflow: hidden;
  display: flex; align-items: center; justify-content: center; font-size: 1.35rem;
  background: rgba(255,255,255,.08);
  border: 1px solid var(--fd-line);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35);
}
.sw-copy { min-width: 0; flex: 1; }
.sw-copy h3 { margin: 0; font-size: .95rem; font-weight: 600; color: var(--fd-ink); letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sw-copy p { margin: .15rem 0 0; font-size: .75rem; color: var(--fd-muted); }
.sw-pin {
  width: 2rem; height: 2rem; border-radius: 999px; flex-shrink: 0;
  border: 1px solid var(--fd-line);
  background: rgba(255,255,255,.06);
  color: var(--fd-ink); cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.3);
}
.sw-pin:hover { background: rgba(255,255,255,.14); }
.sw-desc { margin: 0 0 .85rem; font-size: .8rem; line-height: 1.55; color: var(--fd-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sw-tags { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .9rem; }
.sw-foot {
  display: flex; align-items: center; gap: .45rem; flex-wrap: wrap;
  padding-top: .7rem; border-top: 1px solid var(--fd-line);
  font-size: .72rem; color: var(--fd-muted);
}
.sw-mark {
  color: var(--fd-ink);
  background: rgba(10,132,255,.16);
  border: 1px solid rgba(10,132,255,.28);
  border-radius: 999px; padding: .1rem .45rem;
}
.sw-go { margin-left: auto; color: var(--fd-ink); font-weight: 560; }

/* ── Section heading ───────────────────────────────────── */
.section-title {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--fd-ink);
  margin-bottom: .25rem;
}
.section-sub {
  font-size: .875rem;
  color: var(--fd-muted);
}

/* ── Alert / status ────────────────────────────────────── */
.fd-alert-success {
  background: rgba(16,185,129,0.1);
  border: 1px solid rgba(16,185,129,0.3);
  color: #6ee7b7;
  padding: .75rem 1rem;
  border-radius: .75rem;
  font-size: .875rem;
}
.fd-alert-error {
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.3);
  color: #fca5a5;
  padding: .75rem 1rem;
  border-radius: .75rem;
  font-size: .875rem;
}
.fd-alert-info {
  background: rgba(6,182,212,0.1);
  border: 1px solid rgba(6,182,212,0.3);
  color: var(--fd-accent);
  padding: .75rem 1rem;
  border-radius: .75rem;
  font-size: .875rem;
}

/* ── Category pill ─────────────────────────────────────── */
.cat-pill {
  padding: .35rem .85rem;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all .2s;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--fd-line);
  color: var(--fd-muted);
  white-space: nowrap;
}
.cat-pill:hover  { background: rgba(255,255,255,0.1); color: var(--fd-ink); }
.cat-pill.active { background: rgba(255,255,255,0.16); color: var(--fd-ink); border-color: var(--fd-line); box-shadow: var(--fd-sheen); }

/* ── Loading spinner ───────────────────────────────────── */
.spinner {
  width: 2rem; height: 2rem;
  border: 2px solid var(--fd-line);
  border-top-color: #0a84ff;
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Waterfall (Masonry) layout ─────────────────────────── */
.waterfall {
  column-count: 1;
  column-gap: 1rem;
}
@media (min-width: 640px) { .waterfall { column-count: 2; } }
@media (min-width: 1024px) { .waterfall { column-count: 3; } }
@media (min-width: 1280px) { .waterfall { column-count: 4; } }
.waterfall-item {
  display: inline-block;
  width: 100%;
  box-sizing: border-box;
  vertical-align: top;
  break-inside: avoid;
  page-break-inside: avoid;
  -webkit-column-break-inside: avoid;
  margin-bottom: 1rem;
}

/* ── Misc ──────────────────────────────────────────────── */
.rating-star { color: #fbbf24; }

code, pre {
  font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
  font-size: .825rem;
}
pre {
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--fd-line);
  border-radius: .75rem;
  padding: 1rem;
  overflow-x: auto;
  color: var(--fd-muted);
}

/* ── Claw Markdown 气泡样式 ─────────────────────────────────── */
.claw-markdown-body p { margin: 0 0 0.6em 0; }
.claw-markdown-body p:last-child { margin-bottom: 0; }
.claw-markdown-body ul, .claw-markdown-body ol { margin: 0.4em 0; padding-left: 1.4em; }
.claw-markdown-body li { margin: 0.2em 0; }
.claw-markdown-body h1, .claw-markdown-body h2, .claw-markdown-body h3 {
  font-size: 1em; font-weight: 600; margin: 0.6em 0 0.3em 0;
}
.claw-markdown-body h1 { font-size: 1.1em; }
.claw-markdown-body blockquote {
  margin: 0.4em 0; padding-left: 1em; border-left: 3px solid rgba(10,132,255,0.55); color: var(--fd-muted);
}
.claw-markdown-body code {
  background: rgba(0,0,0,0.35); padding: 0.15em 0.4em; border-radius: 0.35em; font-size: .9em;
}
.claw-markdown-body pre { margin: 0.5em 0; }
.claw-markdown-body pre code { padding: 0; background: none; }
.claw-markdown-body a { color: var(--fd-accent); text-decoration: underline; }
.claw-markdown-body a:hover { color: var(--fd-ink); }
.claw-markdown-body strong { font-weight: 600; color: var(--fd-ink); }
.claw-markdown-body hr { border: none; border-top: 1px solid var(--fd-line); margin: 0.6em 0; }

/* ── 奇幻论坛 Markdown 正文（不依赖 @tailwindcss/typography） ───────────── */
.forum-md { line-height: 1.65; color: var(--fd-ink); font-size: 0.9375rem; }
.forum-md p { margin: 0 0 0.75em 0; }
.forum-md p:last-child { margin-bottom: 0; }
.forum-md strong, .forum-md b { font-weight: 600; color: var(--fd-ink); }
.forum-md em, .forum-md i { font-style: italic; color: var(--fd-ink); }
.forum-md del { text-decoration: line-through; opacity: 0.85; }
.forum-md ul, .forum-md ol { margin: 0.5em 0; padding-left: 1.35em; }
.forum-md li { margin: 0.25em 0; }
.forum-md h1, .forum-md h2, .forum-md h3, .forum-md h4 {
  font-weight: 600; margin: 1em 0 0.4em 0; color: var(--fd-ink);
}
.forum-md h1 { font-size: 1.35em; }
.forum-md h2 { font-size: 1.2em; }
.forum-md h3 { font-size: 1.05em; }
.forum-md blockquote {
  margin: 0.6em 0; padding: 0.4em 0 0.4em 1em; border-left: 3px solid rgba(10,132,255,0.55); color: var(--fd-muted);
}
.forum-md code {
  background: rgba(0,0,0,0.35); padding: 0.12em 0.35em; border-radius: 0.35em; font-size: 0.9em;
}
.forum-md pre {
  margin: 0.75em 0; padding: 0.85em 1em; border-radius: 0.6em;
  background: rgba(0,0,0,0.4); border: 1px solid var(--fd-line); overflow-x: auto;
}
.forum-md pre code { padding: 0; background: none; font-size: 0.85em; }
.forum-md a { color: var(--fd-accent); text-decoration: underline; }
.forum-md a:hover { color: var(--fd-ink); }
.forum-md img { max-width: 100%; height: auto; border-radius: 0.5em; }
.forum-md table { border-collapse: collapse; width: 100%; margin: 0.75em 0; font-size: 0.9em; }
.forum-md th, .forum-md td { border: 1px solid var(--fd-line); padding: 0.35em 0.5em; }
.forum-md hr { border: none; border-top: 1px solid var(--fd-line); margin: 1em 0; }

/* ── 首页舞台 ───────────────────────────────────────────── */
.fd-stage {
  /* overflow 必须可见：搜索建议面板绝对定位向下展开，hidden 会裁切；
     z-index 抬高，避免面板溢出舞台后被下方统计/卡片区盖住 */
  position: relative;
  z-index: 30;
  overflow: visible;
  min-height: 32rem;
  padding: 4.5rem 1.5rem 3.5rem;
  border-bottom: 1px solid var(--fd-line);
}
.fd-stage-aurora,
.fd-stage-grid,
.fd-stage-sweep {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.fd-stage-aurora {
  inset: -18%;
  background:
    radial-gradient(ellipse at 18% 20%, rgba(10,132,255,.42), transparent 46%),
    radial-gradient(ellipse at 82% 8%, rgba(200,220,255,.28), transparent 42%),
    radial-gradient(ellipse at 62% 88%, rgba(88,86,214,.22), transparent 40%);
  filter: blur(6px);
  animation: fd-drift 18s ease-in-out infinite alternate;
}
.fd-stage-grid {
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse at 50% 35%, #000 15%, transparent 72%);
}
.fd-stage-sweep {
  background: linear-gradient(110deg, transparent 40%, rgba(255,255,255,.06) 50%, transparent 60%);
  background-size: 220% 100%;
  animation: fd-sweep 8s linear infinite;
}
.fd-stage-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: none;
  margin: 0;
  display: grid;
  gap: 2.5rem;
  align-items: center;
  padding-inline: clamp(.5rem, 2vw, 1.5rem);
}
@media (min-width: 960px) {
  .fd-stage-inner { grid-template-columns: 1.15fr .85fr; }
}
.fd-kicker {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-size: .72rem;
  letter-spacing: .28em;
  color: var(--fd-accent);
  margin-bottom: 1rem;
}
.fd-pulse {
  width: .5rem;
  height: .5rem;
  border-radius: 999px;
  background: #0a84ff;
  box-shadow: 0 0 0 0 rgba(10,132,255,.7);
  animation: fd-pulse 1.8s ease-out infinite;
}
.fd-display {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 1.05;
  font-weight: 700;
  color: var(--fd-ink);
  letter-spacing: -.03em;
}
.fd-lead {
  margin-top: 1.25rem;
  max-width: 36rem;
  color: var(--fd-ink);
  font-size: 1.05rem;
  line-height: 1.7;
}
.fd-seek-wrap {
  position: relative;
  margin-top: 1.6rem;
  max-width: 38rem;
  /* 高于同列 CTA 按钮与右侧 deck，保证建议列表完整露在顶层 */
  z-index: 40;
}
.fd-seek {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .4rem .4rem .4rem .95rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--fd-line);
  backdrop-filter: var(--fd-blur);
  -webkit-backdrop-filter: var(--fd-blur);
  box-shadow: var(--fd-sheen), 0 18px 50px rgba(0,0,0,0.28);
}
.fd-seek:focus-within {
  border-color: var(--fd-line);
  box-shadow: var(--fd-sheen), 0 0 0 3px rgba(10,132,255,0.28);
}
.fd-seek-icon { width: 1.15rem; height: 1.15rem; color: var(--fd-ink); flex-shrink: 0; }
.fd-seek input {
  flex: 1;
  min-width: 0;
  height: 2.7rem;
  border: 0;
  background: transparent;
  color: var(--fd-ink);
  font-size: 1rem;
  outline: none;
}
.fd-seek input::placeholder { color: var(--fd-muted); }
.fd-seek-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + .45rem);
  z-index: 50;
  max-height: 24rem;
  overflow: auto;
  border-radius: 1rem;
  padding: .45rem;
  /* 略提高不透明度，避免透过下层内容显得「被挡住」 */
  background: var(--fd-surface);
  border: 1px solid var(--fd-line);
  backdrop-filter: var(--fd-blur);
  -webkit-backdrop-filter: var(--fd-blur);
  box-shadow: var(--fd-sheen), 0 24px 60px rgba(0,0,0,.55);
}
.fd-seek-label {
  margin: .35rem .55rem .15rem;
  font-size: .68rem;
  letter-spacing: .14em;
  color: var(--fd-accent);
}
.fd-seek-hit {
  display: block;
  padding: .55rem .65rem;
  border-radius: .75rem;
  text-decoration: none;
}
.fd-seek-hit:hover, .fd-seek-hit:focus { background: rgba(255,255,255,.1); outline: none; }
.fd-seek-hit strong { display: block; color: var(--fd-ink); font-size: .9rem; font-weight: 600; }
.fd-seek-hit span { display: block; margin-top: .1rem; color: var(--fd-muted); font-size: .75rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fd-seek-empty { padding: .8rem .7rem; color: var(--fd-muted); font-size: .85rem; }
.fd-ghost {
  display: inline-flex;
  align-items: center;
  padding: .75rem 1.15rem;
  border-radius: .85rem;
  font-size: .875rem;
  color: var(--fd-ink);
  border: 1px solid var(--fd-line);
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(16px);
  box-shadow: var(--fd-sheen);
}
.fd-ghost:hover { background: rgba(255,255,255,.14); color: var(--fd-ink); }
.fd-deck { position: relative; min-height: 16rem; }
.fd-deck-card { position: relative; }
.fd-deck-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(from var(--fd-spin), transparent 0 68%, rgba(126,231,255,.95) 80%, transparent 90%);
  -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;
  animation: fd-border 5.5s linear infinite;
  pointer-events: none;
}
.fd-orbit {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(158,226,255,.28);
  pointer-events: none;
  z-index: 2;
}
.fd-runner, .fd-mote {
  position: absolute;
  top: 0;
  left: 0;
  offset-rotate: 0deg;
  offset-anchor: center;
  animation: fd-along 8.5s linear infinite;
}
.fd-runner { width: 48px; height: 60px; }
.fd-runner svg { display: block; width: 100%; height: 100%; overflow: visible; }
.fd-runner-ai { filter: drop-shadow(0 6px 8px rgba(8,40,60,.45)) drop-shadow(0 0 8px rgba(90,214,255,.45)); }
.fd-runner-human { filter: drop-shadow(0 6px 8px rgba(8,16,32,.4)) drop-shadow(0 0 6px rgba(220,232,255,.28)); }
.fd-runner.is-left .fd-runner-turn { transform: scaleX(-1); }
.fd-pose { animation: fd-pose .48s linear infinite; }
.fd-pose-b { animation-delay: -.23s; }
.fd-mote {
  width: 12px;
  height: 14px;
  font-family: ui-monospace, monospace;
  font-size: .62rem;
  font-weight: 600;
  line-height: 14px;
  text-align: center;
  color: rgba(198,236,255,.72);
  text-shadow: 0 0 8px rgba(94,214,255,.65);
}
.fd-bits { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.fd-bits span {
  position: absolute;
  bottom: 8%;
  font-family: ui-monospace, monospace;
  font-size: .75rem;
  letter-spacing: .12em;
  color: rgba(186,214,255,.34);
  animation: fd-bit 16s linear infinite;
}
.fd-deck-ring {
  position: absolute;
  inset: 8% 6%;
  border-radius: 1.6rem;
  border: 1px solid var(--fd-line);
  box-shadow: 0 0 60px rgba(10,132,255,.22), inset 0 0 40px rgba(255,255,255,.05);
  animation: fd-drift 12s ease-in-out infinite alternate-reverse;
}
.fd-deck-card {
  position: relative;
  margin: 1.4rem;
  padding: 1.4rem 1.35rem;
  border-radius: 1.25rem;
  background: rgba(255,255,255,.08);
  border: 1px solid var(--fd-line);
  backdrop-filter: var(--fd-blur);
  -webkit-backdrop-filter: var(--fd-blur);
  box-shadow: var(--fd-sheen), 0 24px 60px rgba(0,0,0,.35);
}
.fd-ch {
  text-align: left;
  padding: 1rem 1.05rem 1.1rem;
  border-radius: 1rem;
  border: 1px solid var(--fd-line);
  background: rgba(255,255,255,.03);
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.fd-ch:hover { border-color: var(--fd-line); }
.fd-ch.is-on {
  border-color: var(--fd-line);
  background: rgba(255,255,255,.12);
  box-shadow: var(--fd-sheen), 0 12px 28px rgba(0,0,0,.25);
}
.fd-ch-index {
  font-size: .68rem;
  letter-spacing: .18em;
  color: var(--fd-accent);
}
.fd-stage-panel {
  border-radius: 1.25rem;
  padding: 1.15rem 1.15rem 1.2rem;
  border: 1px solid var(--fd-line);
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(18px);
  box-shadow: var(--fd-sheen), inset 3px 0 0 #0a84ff;
}
.fd-code {
  margin: 0;
  color: var(--fd-ink);
  font-size: .78rem;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}
.fd-copy {
  flex-shrink: 0;
  font-size: .75rem;
  padding: .35rem .7rem;
  border-radius: .6rem;
  color: var(--fd-ink);
  border: 1px solid var(--fd-line);
  background: rgba(255,255,255,.08);
}
.fd-copy:hover { background: rgba(255,255,255,.16); color: var(--fd-ink); }
#connect { scroll-margin-top: 5.5rem; }
@keyframes fd-drift {
  from { transform: translate3d(-1.5%, -1%, 0) scale(1); }
  to { transform: translate3d(2%, 1.5%, 0) scale(1.05); }
}
@keyframes fd-sweep {
  from { background-position: 120% 0; }
  to { background-position: -120% 0; }
}
@keyframes fd-pulse {
  0% { box-shadow: 0 0 0 0 rgba(34,211,238,.65); }
  70% { box-shadow: 0 0 0 8px rgba(34,211,238,0); }
  100% { box-shadow: 0 0 0 0 rgba(34,211,238,0); }
}
@property --fd-spin {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}
@keyframes fd-border { to { --fd-spin: 360deg; } }
@keyframes fd-along {
  from { offset-distance: 0%; }
  to { offset-distance: 100%; }
}
@keyframes fd-pose {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}
@keyframes fd-bit {
  0% { transform: translateY(12vh); opacity: 0; }
  14% { opacity: .75; }
  78% { opacity: .28; }
  100% { transform: translateY(-38vh); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .fd-stage-aurora, .fd-stage-sweep, .fd-deck-ring, .fd-pulse, .fd-orb,
  .fd-runner, .fd-mote, .fd-pose, .fd-bits span, .fd-deck-card::before { animation: none; }
  .fd-orbit, .fd-bits { display: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .fd-bar, .fd-dock, .fd-foot, .fd-sheet, .glass, .glass-heavy, .app-card, .fd-seek, .fd-seek-panel, .btn-secondary,
  .fd-perk, .fd-stats a, .fd-entry, .fd-input, .fd-deck-card {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: #1c1c1e;
  }
}

/* ── 模型中心 ───────────────────────────────────────────── */
.fd-mc-stage { min-height: 0; padding: 2.4rem 1.5rem 1.8rem; }
.fd-mc-meters {
  display: grid;
  gap: .75rem;
}
@media (min-width: 720px) {
  .fd-mc-meters { grid-template-columns: 1.2fr 1.4fr .9fr; }
}
.fd-mc-meter {
  border-radius: 1rem;
  padding: .9rem 1rem 1rem;
  border: 1px solid var(--fd-line);
  background: rgba(255,255,255,.07);
  backdrop-filter: var(--fd-blur);
  -webkit-backdrop-filter: var(--fd-blur);
  box-shadow: var(--fd-sheen);
}
.fd-mc-meter b {
  display: block;
  margin-top: .2rem;
  font-size: 1.65rem;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  color: var(--fd-ink);
}
.fd-mc-k {
  font-size: .68rem;
  letter-spacing: .16em;
  color: var(--fd-accent);
}
.fd-mc-bar {
  margin-top: .7rem;
  height: .35rem;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  overflow: hidden;
}
.fd-mc-bar > span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #0a84ff, #d6e6ff);
}
.fd-mc-layout {
  display: grid;
  gap: 1.25rem;
  padding: 1.5rem 1.5rem 2.5rem;
  width: 100%;
  max-width: none;
  margin: 0;
}
@media (min-width: 1024px) {
  .fd-mc-layout { grid-template-columns: minmax(0, 1.7fr) minmax(280px, .85fr); align-items: start; }
}
.fd-mc-models {
  display: grid;
  gap: .75rem;
}
@media (min-width: 700px) {
  .fd-mc-models { grid-template-columns: 1fr 1fr; }
}
.fd-mc-model {
  border-radius: 1rem;
  padding: 1rem 1rem .9rem;
  border: 1px solid var(--fd-line);
  background: rgba(255,255,255,.07);
  backdrop-filter: blur(18px);
  box-shadow: var(--fd-sheen);
  min-height: 8.5rem;
  display: flex;
  flex-direction: column;
}
.fd-mc-model:first-child {
  background: linear-gradient(180deg, rgba(255,255,255,.14), rgba(10,132,255,.08));
  box-shadow: var(--fd-sheen);
}
@media (min-width: 700px) {
  .fd-mc-model:first-child { grid-column: 1 / -1; min-height: 0; }
}
.fd-mc-pill {
  font-size: .68rem;
  padding: .15rem .45rem;
  border-radius: 999px;
  border: 1px solid rgba(34,211,238,.35);
  color: var(--fd-accent);
}
.fd-mc-pill.is-adv {
  border-color: rgba(251,191,36,.4);
  color: #fcd34d;
}
.fd-mc-code {
  margin-left: auto;
  font-size: .72rem;
  color: var(--fd-muted);
  font-family: Consolas, monospace;
}
.fd-mc-side {
  border-radius: 1.15rem;
  border: 1px solid var(--fd-line);
  background: var(--fd-surface);
  backdrop-filter: var(--fd-blur);
  -webkit-backdrop-filter: var(--fd-blur);
  box-shadow: var(--fd-sheen);
  padding: 1rem;
}
@media (min-width: 1024px) {
  .fd-mc-side { position: sticky; top: 5rem; }
}
.fd-mc-key {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  align-items: center;
  padding: .7rem .75rem;
  border-radius: .8rem;
  border: 1px solid var(--fd-line);
  background: rgba(255,255,255,.06);
  box-shadow: var(--fd-sheen);
}
.fd-mc-log {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: .65rem;
  align-items: center;
  padding: .7rem .2rem;
  border-bottom: 1px solid var(--fd-line);
}
.fd-mc-dot {
  width: .45rem;
  height: .45rem;
  border-radius: 999px;
  background: #64748b;
}
.fd-mc-dot.is-ok { background: #34d399; box-shadow: 0 0 8px rgba(52,211,153,.7); }
.fd-mc-dot.is-bad { background: #f87171; }

/* 论坛与开发者中心：内容用实色，避免再叠一层模糊 */
.fd-page { padding: 1.6rem 1.5rem 3rem; width: 100%; max-width: none; margin: 0; }
.fd-page-narrow { max-width: 52rem; margin-left: auto; margin-right: auto; }
.fd-page-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: .85rem 1.25rem; margin-bottom: 1.15rem;
}
.fd-page-head h1 {
  margin: 0; font-size: 1.7rem; font-weight: 700; letter-spacing: -.03em; color: var(--fd-ink);
  display: flex; align-items: center; gap: .45rem;
}
.fd-page-head p { margin: .3rem 0 0; max-width: 36rem; color: var(--fd-muted); font-size: .9rem; line-height: 1.5; }
.fd-page-ico { font-size: 1.35rem; }
.fd-page-actions { display: flex; flex-wrap: wrap; gap: .45rem; }
.fd-inline-link { color: var(--fd-accent); font-size: .78rem; text-decoration: none; }
.fd-inline-link:hover { color: var(--fd-ink); }

/* ── 论坛：CSDN 风格三栏（首页）+ 版块页兼容 ── */
.fd-page-forum { max-width: none; width: 100%; }

.fd-csdn {
  display: grid; gap: 1rem;
}
@media (min-width: 1100px) {
  .fd-csdn {
    grid-template-columns: 11.5rem minmax(0, 1fr) 16.5rem;
    align-items: start; gap: 1.1rem;
  }
}
@media (min-width: 760px) and (max-width: 1099.98px) {
  .fd-csdn {
    grid-template-columns: 11.5rem minmax(0, 1fr);
    align-items: start;
  }
  .fd-csdn-aside { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
}

.fd-csdn-rail {
  position: sticky; top: 5.2rem;
  max-height: calc(100dvh - 6.5rem); overflow: auto;
  padding: .55rem .4rem;
  border-radius: 1rem;
  background: var(--fd-surface);
  border: 1px solid var(--fd-line);
  box-shadow: var(--fd-sheen);
}
@media (max-width: 759.98px) {
  .fd-csdn-rail { position: static; max-height: none; display: flex; gap: .75rem; overflow-x: auto; }
  .fd-csdn-rail-block { display: flex; gap: .25rem; }
  .fd-csdn-rail-label { display: none; }
}
.fd-csdn-rail-label {
  margin: .7rem .55rem .25rem;
  font-size: .65rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--fd-muted); font-weight: 600;
}
.fd-csdn-rail-block { display: flex; flex-direction: column; gap: .12rem; }
.fd-csdn-rail-item {
  display: flex; align-items: center; gap: .5rem;
  padding: .48rem .55rem; border-radius: .65rem;
  color: var(--fd-muted); font-size: .82rem; text-decoration: none; white-space: nowrap;
}
.fd-csdn-rail-item span { width: 1.15rem; text-align: center; flex-shrink: 0; font-size: .9rem; }
.fd-csdn-rail-item:hover { color: var(--fd-ink); background: rgba(255,255,255,.06); }
.fd-csdn-rail-item.is-on { color: var(--fd-ink); background: rgba(10,132,255,.18); font-weight: 600; }

.fd-csdn-topbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: .55rem;
  margin-bottom: .75rem;
}
.fd-csdn-search { display: flex; flex: 1 1 16rem; gap: .4rem; align-items: center; }
.fd-csdn-search .fd-input { flex: 1 1 auto; width: auto; min-width: 0; }
.fd-csdn-create { white-space: nowrap; }

.fd-csdn-chips {
  display: flex; gap: .4rem; overflow-x: auto; padding-bottom: .15rem;
  margin-bottom: .9rem; scrollbar-width: thin;
}
.fd-csdn-chip {
  flex: 0 0 auto; padding: .35rem .85rem; border-radius: 999px;
  font-size: .78rem; color: var(--fd-muted); text-decoration: none;
  background: rgba(255,255,255,.05); border: 1px solid var(--fd-line);
}
.fd-csdn-chip:hover { color: var(--fd-ink); border-color: var(--fd-line); }
.fd-csdn-chip.is-on {
  color: var(--fd-ink); border-color: transparent;
  background: linear-gradient(180deg, #3d9bff, #0a84ff);
}

.fd-csdn-block {
  margin-bottom: 1rem; padding: .95rem 1rem 1.05rem;
  border-radius: 1.05rem;
  background: var(--fd-surface);
  border: 1px solid var(--fd-line);
  box-shadow: var(--fd-sheen);
}
.fd-csdn-block-head {
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  margin-bottom: .75rem;
}
.fd-csdn-block-head h2 {
  margin: 0; font-size: 1.05rem; font-weight: 650; color: var(--fd-ink); letter-spacing: -.02em;
}
.fd-csdn-block-head > a {
  font-size: .78rem; color: var(--fd-accent); text-decoration: none; white-space: nowrap;
}
.fd-csdn-block-head > a:hover { color: var(--fd-ink); }

.fd-csdn-features {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem;
}
@media (min-width: 720px) {
  .fd-csdn-features { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.fd-csdn-feature {
  position: relative; display: block; aspect-ratio: 16 / 10;
  border-radius: .75rem; overflow: hidden; text-decoration: none;
  background: rgba(255,255,255,.06); border: 1px solid var(--fd-line);
}
.fd-csdn-feature img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.fd-csdn-feature-fallback {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%;
  font-size: 1.6rem; font-weight: 650; color: var(--fd-ink);
  background: linear-gradient(145deg, rgba(10,132,255,.35), rgba(88,86,214,.25));
}
.fd-csdn-feature-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1.4rem .55rem .45rem;
  font-size: .78rem; font-weight: 600; line-height: 1.35; color: var(--fd-ink);
  background: linear-gradient(transparent, rgba(0,0,0,.78));
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.fd-csdn-headlines {
  display: grid; gap: .15rem .9rem; margin-top: .85rem;
  padding-top: .75rem; border-top: 1px solid var(--fd-line);
}
@media (min-width: 640px) {
  .fd-csdn-headlines { grid-template-columns: 1fr 1fr; }
}
.fd-csdn-headlines ul { margin: 0; padding: 0; list-style: none; }
.fd-csdn-headlines li {
  position: relative; padding: .28rem 0 .28rem .85rem;
  border-bottom: 1px dashed var(--fd-line);
}
.fd-csdn-headlines li::before {
  content: ""; position: absolute; left: .15rem; top: .7rem;
  width: .28rem; height: .28rem; border-radius: 50%; background: #6e6e73;
}
.fd-csdn-headlines a {
  color: #d2d2d7; font-size: .84rem; line-height: 1.4; text-decoration: none;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.fd-csdn-headlines a:hover { color: var(--fd-accent); }

.fd-csdn-feed .fd-threads { margin: 0 -.25rem; }
.fd-csdn-feed .fd-thread + .fd-thread { border-top: 1px solid var(--fd-line); }
.fd-csdn-feed .fd-thread a {
  border-radius: .55rem; border: 0; box-shadow: none; background: transparent;
  padding: .75rem .5rem;
}
.fd-csdn-feed .fd-thread a:hover { background: rgba(255,255,255,.035); border-color: transparent; }

.fd-csdn-aside-card {
  padding: .9rem .95rem; border-radius: 1rem; margin-bottom: .75rem;
  background: var(--fd-surface);
  border: 1px solid var(--fd-line);
  box-shadow: var(--fd-sheen);
}
.fd-csdn-aside-card h2 {
  margin: 0 0 .65rem; font-size: .95rem; font-weight: 650; color: var(--fd-ink);
}
.fd-csdn-comm-list { display: flex; flex-direction: column; gap: .2rem; }
.fd-csdn-comm-list a {
  display: flex; align-items: center; gap: .55rem;
  padding: .45rem .35rem; border-radius: .6rem; text-decoration: none; color: inherit;
}
.fd-csdn-comm-list a:hover { background: rgba(255,255,255,.05); }
.fd-csdn-comm-ico {
  width: 2rem; height: 2rem; border-radius: .55rem; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.08); font-size: .85rem;
}
.fd-csdn-comm-text { min-width: 0; flex: 1; }
.fd-csdn-comm-text strong {
  display: block; font-size: .82rem; color: var(--fd-ink); font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.fd-csdn-comm-text em {
  display: block; margin-top: .08rem; font-style: normal; font-size: .68rem; color: var(--fd-muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.fd-csdn-comm-arrow { color: var(--fd-muted); font-size: 1.1rem; }

.fd-csdn-hot-list { margin: 0; padding: 0; list-style: none; }
.fd-csdn-hot-list li {
  display: flex; align-items: flex-start; gap: .5rem;
  padding: .35rem 0; border-bottom: 1px solid var(--fd-line);
}
.fd-csdn-hot-list li:last-child { border-bottom: 0; }
.fd-csdn-hot-rank {
  flex-shrink: 0; width: 1.15rem; text-align: center;
  font-size: .78rem; font-weight: 700; color: var(--fd-muted); line-height: 1.4;
}
.fd-csdn-hot-rank.is-top { color: #ff9f0a; }
.fd-csdn-hot-list a {
  color: #d2d2d7; font-size: .8rem; line-height: 1.4; text-decoration: none;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.fd-csdn-hot-list a:hover { color: var(--fd-accent); }
.fd-csdn-tips {
  margin: 0; padding-left: 1.05rem; color: var(--fd-muted); font-size: .78rem; line-height: 1.55;
}

/* 版块页仍用双栏 + boards */
.fd-forum { display: grid; gap: 1rem; }
@media (min-width: 1100px) {
  .fd-forum {
    grid-template-columns: 13.5rem minmax(0, 1fr) 15rem;
    align-items: start;
  }
}
@media (min-width: 760px) and (max-width: 1099.98px) {
  .fd-forum {
    grid-template-columns: 13.5rem minmax(0, 1fr);
    align-items: start;
  }
  .fd-forum-col-side { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
}
.fd-forum-col-title {
  margin: 0 0 .45rem; padding: 0 .15rem;
  font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--fd-muted); font-weight: 600;
}
.fd-forum-hero {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: .85rem; margin-bottom: 1.1rem;
}
.fd-forum-hero h1 {
  margin: 0; font-size: clamp(1.45rem, 2.4vw, 1.85rem); font-weight: 650; letter-spacing: -.03em; color: var(--fd-ink);
}
.fd-forum-hero p { margin: .28rem 0 0; color: var(--fd-muted); font-size: .88rem; }
.fd-forum-hero-actions { display: flex; flex-wrap: wrap; gap: .45rem; }

.fd-boards { display: flex; gap: .4rem; overflow-x: auto; padding-bottom: .1rem; }
@media (min-width: 760px) {
  .fd-boards {
    flex-direction: column; position: sticky; top: 5.4rem;
    max-height: calc(100dvh - 7rem); overflow: auto;
  }
}
.fd-board {
  display: flex; align-items: center; gap: .6rem; min-width: 10.5rem;
  padding: .5rem .65rem; border-radius: .95rem; text-decoration: none; color: var(--fd-ink);
  background: var(--fd-surface); border: 1px solid var(--fd-line);
  box-shadow: var(--fd-sheen);
}
@media (min-width: 760px) { .fd-board { min-width: 0; } }
.fd-board-ico {
  width: 1.9rem; height: 1.9rem; border-radius: .6rem; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: .95rem;
  background: rgba(255,255,255,.08); border: 1px solid var(--fd-line);
}
.fd-board-copy { min-width: 0; }
.fd-board-copy strong { display: block; font-size: .82rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fd-board-copy em {
  display: block; margin-top: .08rem; font-style: normal; font-size: .68rem; color: var(--fd-muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.fd-board:hover { border-color: var(--fd-line); }
.fd-board.is-on { border-color: rgba(10,132,255,.6); background: rgba(10,132,255,.14); }

.fd-forum-panel {
  border-radius: 1.15rem;
  background: var(--fd-surface);
  border: 1px solid var(--fd-line);
  box-shadow: var(--fd-sheen);
  overflow: hidden;
}
.fd-forum-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .65rem;
  padding: .55rem .85rem;
  border-bottom: 1px solid var(--fd-line);
  background: rgba(255,255,255,.02);
}
.fd-forum-tabs { display: flex; gap: .15rem; }
.fd-forum-tabs a {
  position: relative; padding: .42rem .85rem; border-radius: .55rem;
  font-size: .88rem; font-weight: 560; color: var(--fd-muted); text-decoration: none;
}
.fd-forum-tabs a:hover { color: var(--fd-ink); background: rgba(255,255,255,.05); }
.fd-forum-tabs a.is-on {
  color: var(--fd-ink); background: rgba(10,132,255,.16);
}
.fd-forum-tabs a.is-on::after {
  content: ""; position: absolute; left: .85rem; right: .85rem; bottom: .12rem;
  height: 2px; border-radius: 2px; background: #0a84ff;
}
.fd-forum-search { display: flex; flex: 1 1 14rem; gap: .4rem; align-items: center; max-width: 26rem; margin-left: auto; }
.fd-forum-search .fd-input { flex: 1 1 auto; width: auto; min-width: 0; padding-top: .55rem; padding-bottom: .55rem; }

.fd-forum-card {
  padding: .95rem 1rem; border-radius: 1.05rem; margin-bottom: .75rem;
  background: var(--fd-surface); border: 1px solid var(--fd-line); box-shadow: var(--fd-sheen);
}
.fd-forum-card h2 {
  margin: 0 0 .55rem; font-size: .78rem; font-weight: 650; letter-spacing: .08em;
  text-transform: uppercase; color: var(--fd-accent);
}
.fd-forum-card ul { margin: 0; padding-left: 1.05rem; color: var(--fd-muted); font-size: .78rem; line-height: 1.55; }
.fd-forum-card-text { margin: 0; color: var(--fd-muted); font-size: .8rem; line-height: 1.55; }
.fd-forum-side-links { display: flex; flex-direction: column; gap: .35rem; }
.fd-forum-side-links a {
  display: block; padding: .4rem .55rem; border-radius: .6rem; text-decoration: none;
  color: var(--fd-ink); font-size: .82rem; background: rgba(255,255,255,.04); border: 1px solid transparent;
}
.fd-forum-side-links a:hover { border-color: var(--fd-line); background: rgba(255,255,255,.07); }
.fd-forum-side-boards { display: flex; flex-direction: column; gap: .3rem; }
.fd-forum-side-boards a {
  display: flex; align-items: center; gap: .45rem; padding: .35rem .4rem; border-radius: .55rem;
  text-decoration: none; color: var(--fd-ink); font-size: .8rem;
}
.fd-forum-side-boards a:hover { background: rgba(255,255,255,.06); }
.fd-forum-side-boards a span {
  width: 1.5rem; height: 1.5rem; border-radius: .45rem; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.08); font-size: .75rem;
}

.fd-forum-bar { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: .7rem; }
.fd-forum-bar .fd-input { flex: 1 1 12rem; width: auto; }
.fd-seg {
  display: inline-flex; padding: .18rem; border-radius: 999px;
  background: var(--fd-surface); border: 1px solid var(--fd-line);
}
.fd-seg a { padding: .32rem .8rem; border-radius: 999px; font-size: .78rem; color: var(--fd-muted); text-decoration: none; }
.fd-seg a.is-on { background: linear-gradient(180deg, #3d9bff, #0a84ff); color: var(--fd-ink); }

.fd-threads { display: flex; flex-direction: column; }
.fd-forum-panel .fd-threads { gap: 0; }
.fd-forum-panel .fd-thread + .fd-thread { border-top: 1px solid var(--fd-line); }
.fd-forum-panel .fd-thread a {
  border-radius: 0; border: 0; box-shadow: none; background: transparent;
  padding: .85rem 1rem;
}
.fd-forum-panel .fd-thread a:hover { background: rgba(255,255,255,.035); border-color: transparent; }
.fd-thread a {
  display: grid; grid-template-columns: 2.7rem minmax(0, 1fr) auto; gap: .75rem; align-items: center;
  padding: .65rem .75rem; border-radius: 1rem; text-decoration: none; color: inherit;
  background: var(--fd-surface); border: 1px solid var(--fd-line);
  box-shadow: var(--fd-sheen);
}
.fd-thread a:hover { border-color: var(--fd-line); background: var(--fd-surface); }
.fd-thread-cover, .fd-thread-mark { width: 2.7rem; height: 2.7rem; border-radius: .7rem; }
.fd-thread-cover { object-fit: cover; display: block; }
.fd-thread-mark {
  display: flex; align-items: center; justify-content: center;
  background: rgba(10,132,255,.16); color: var(--fd-ink); font-weight: 600;
  border: 1px solid rgba(10,132,255,.28);
}
.fd-thread-title { display: block; color: var(--fd-ink); font-size: .92rem; font-weight: 600; line-height: 1.35; }
.fd-thread-meta { display: flex; flex-wrap: wrap; gap: .28rem .55rem; margin-top: .22rem; color: var(--fd-muted); font-size: .72rem; align-items: center; }
.fd-thread-nums { display: flex; gap: .75rem; color: var(--fd-muted); font-size: .68rem; }
.fd-thread-nums span { min-width: 2.2rem; text-align: right; }
.fd-thread-nums b { display: block; color: var(--fd-ink); font-size: .88rem; font-weight: 600; }
.fd-pin, .fd-lock, .fd-chip {
  display: inline-flex; align-items: center; margin-right: .3rem;
  padding: .05rem .4rem; border-radius: 999px; font-size: .68rem; font-weight: 560; vertical-align: .05em;
}
.fd-pin { color: #fcd34d; background: rgba(251,191,36,.14); border: 1px solid rgba(251,191,36,.28); }
.fd-lock { color: var(--fd-muted); background: rgba(255,255,255,.06); border: 1px solid var(--fd-line); }
.fd-chip { margin-right: 0; color: var(--fd-ink); background: rgba(10,132,255,.12); border: 1px solid rgba(10,132,255,.22); }
.fd-empty {
  margin: 0; padding: 2.2rem 1rem; text-align: center; color: var(--fd-muted); font-size: .875rem;
  border-top: 1px dashed var(--fd-line);
}
.fd-forum-panel > .fd-empty { border-radius: 0; border-left: 0; border-right: 0; border-bottom: 0; }
.fd-more { display: flex; justify-content: center; margin-top: .9rem; }

.fd-post {
  background: var(--fd-surface); border: 1px solid var(--fd-line);
  border-radius: 1.2rem; padding: 1.1rem 1.15rem; box-shadow: var(--fd-sheen);
}
.fd-reply { margin-top: 1.4rem; }
.fd-mine {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem;
  padding: .85rem 1rem; margin-bottom: .45rem; border-radius: 1rem;
  background: var(--fd-surface); border: 1px solid var(--fd-line); box-shadow: var(--fd-sheen);
}
.fd-mine-title { color: var(--fd-ink); font-weight: 620; text-decoration: none; }
.fd-mine-title:hover { color: var(--fd-ink); }
.fd-page-num {
  display: inline-flex; min-width: 2rem; justify-content: center;
  padding: .3rem .55rem; border-radius: 999px; font-size: .8rem; text-decoration: none;
  color: var(--fd-muted); border: 1px solid var(--fd-line);
}
.fd-page-num.is-on { color: var(--fd-ink); background: #0a84ff; border-color: transparent; }

.fd-dev { display: grid; gap: .85rem; }
@media (min-width: 980px) {
  .fd-dev { grid-template-columns: 12.2rem minmax(0, 1fr); align-items: start; }
}
.fd-dev-nav { display: flex; gap: .4rem; overflow-x: auto; }
@media (min-width: 980px) {
  .fd-dev-nav { flex-direction: column; position: sticky; top: 5.4rem; }
}
.fd-dev-nav button {
  text-align: left; white-space: nowrap; cursor: pointer;
  padding: .7rem .85rem; border-radius: .95rem; color: var(--fd-muted); font-size: .875rem;
  background: var(--fd-surface); border: 1px solid var(--fd-line); box-shadow: var(--fd-sheen);
}
.fd-dev-nav button.is-on { color: var(--fd-ink); border-color: rgba(10,132,255,.6); background: rgba(10,132,255,.16); }
.fd-dev-body .tab-pane {
  background: var(--fd-surface); border: 1px solid var(--fd-line);
  border-radius: 1.35rem; padding: 1.2rem 1.25rem;
  box-shadow: var(--fd-sheen), 0 12px 32px rgba(0,0,0,.2);
}
.fd-dev-grid { display: grid; gap: 1.2rem; }
.fd-note {
  padding: 1rem 1.05rem; border-radius: 1rem;
  background: rgba(255,255,255,.04); border: 1px solid var(--fd-line);
}
.fd-note-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.fd-note-list li { display: flex; gap: .45rem; align-items: flex-start; color: var(--fd-muted); font-size: .875rem; line-height: 1.55; }
.fd-note-list li > span:last-child { min-width: 0; }
.fd-note-mark { flex-shrink: 0; color: var(--fd-accent); }
.fd-note code { font-size: .78rem; color: var(--fd-ink); }
.fd-keybar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem;
  margin-bottom: .9rem; padding: .75rem .85rem; border-radius: 1rem;
  background: rgba(255,255,255,.04); border: 1px solid var(--fd-line);
}
.fd-keybar code { color: var(--fd-ink); }
.fd-app-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem; margin-bottom: .85rem; }
.fd-app-bar .fd-input { width: min(100%, 18rem); }
.fd-dev-app {
  display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem;
  padding: .75rem .85rem; border-radius: 1rem;
  background: rgba(255,255,255,.04); border: 1px solid var(--fd-line);
}

.fd-stats { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
@media (min-width: 900px) { .fd-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.fd-stats a {
  display: block; padding: .95rem 1rem; border-radius: 1.15rem; text-decoration: none;
  background: rgba(255,255,255,.07); border: 1px solid var(--fd-line);
  backdrop-filter: var(--fd-blur); -webkit-backdrop-filter: var(--fd-blur);
  box-shadow: var(--fd-sheen); position: relative;
}
.fd-stats a:hover { border-color: var(--fd-line); }
.fd-stats-icon {
  display: inline-flex; width: 1.7rem; height: 1.7rem; margin: 0 0 .45rem; padding: 0;
  color: var(--fd-accent); opacity: .95; font-size: inherit;
}
.fd-stats-icon svg { width: 100%; height: 100%; }
.fd-stats b { display: block; font-size: 1.7rem; line-height: 1.1; color: var(--fd-ink); letter-spacing: -.03em; }
.fd-stats a > span:not(.fd-stats-icon) { display: block; margin-top: .25rem; color: var(--fd-muted); font-size: .78rem; }
.fd-perks { display: grid; gap: .6rem; }
@media (min-width: 760px) { .fd-perks { grid-template-columns: 1fr 1fr; } }
.fd-perk {
  padding: 1.15rem 1.2rem 1.2rem;
  border-radius: 1.15rem;
  background: rgba(255,255,255,.07);
  border: 1px solid var(--fd-line);
  backdrop-filter: var(--fd-blur);
  -webkit-backdrop-filter: var(--fd-blur);
  box-shadow: var(--fd-sheen);
}
.fd-perk-kicker {
  margin: 0;
  font-size: .68rem;
  letter-spacing: .16em;
  color: var(--fd-accent);
}
.fd-perk h3 { margin: .4rem 0 .45rem; color: var(--fd-ink); font-size: 1.05rem; font-weight: 650; }
.fd-perk p { margin: 0; color: var(--fd-muted); font-size: .84rem; line-height: 1.6; }
.fd-tiers { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .85rem; }
.fd-tiers span {
  font-size: .72rem;
  color: var(--fd-ink);
  padding: .18rem .55rem;
  border-radius: 999px;
  background: rgba(10,132,255,.16);
}
.fd-perk-foot {
  display: flex; flex-wrap: wrap; align-items: center; gap: .85rem 1.1rem;
  margin: .9rem 0 0; color: var(--fd-muted); font-size: .82rem;
}
.fd-perk-foot a { color: var(--fd-accent); text-decoration: none; }
.fd-perk-foot a:hover { color: var(--fd-ink); }
.fd-entries { display: grid; gap: .6rem; }
@media (min-width: 720px) { .fd-entries { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.fd-entry {
  display: block; padding: 1rem 1.05rem; border-radius: 1.15rem; text-decoration: none;
  background: rgba(255,255,255,.07); border: 1px solid var(--fd-line);
  backdrop-filter: var(--fd-blur); -webkit-backdrop-filter: var(--fd-blur);
  box-shadow: var(--fd-sheen);
}
.fd-entry:hover { border-color: rgba(10,132,255,.5); }
.fd-entry strong { display: block; color: var(--fd-ink); font-size: .95rem; }
.fd-entry em { display: block; margin-top: .3rem; font-style: normal; color: var(--fd-muted); font-size: .78rem; line-height: 1.5; }
.fd-more-link { color: var(--fd-accent); font-size: .85rem; text-decoration: none; white-space: nowrap; }
.fd-more-link:hover { color: var(--fd-ink); }
.sw-icon img { width: 100%; height: 100%; object-fit: cover; }

.fd-game-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .fd-game-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1100px) {
  .fd-game-grid { grid-template-columns: 1fr 1fr 1fr; }
}
.fd-game-card {
  display: flex;
  flex-direction: column;
  border-radius: 1.35rem;
  overflow: hidden;
  border: 1px solid var(--fd-line);
  background: var(--fd-surface);
  box-shadow: var(--fd-sheen), 0 16px 40px rgba(0,0,0,0.28);
  transition: transform .2s ease, border-color .2s ease;
}
.fd-game-card:hover {
  transform: translateY(-3px);
  border-color: rgba(10,132,255,.45);
}
.fd-game-cover {
  position: relative;
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(10,132,255,.45), transparent 55%),
    radial-gradient(ellipse at 80% 80%, rgba(48,209,88,.22), transparent 50%),
    #12141c;
}
.fd-game-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.fd-game-cover-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4.5rem;
  line-height: 1;
}
.fd-game-badge {
  position: absolute;
  left: .75rem;
  bottom: .75rem;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .02em;
  padding: .28rem .55rem;
  border-radius: .55rem;
  color: var(--fd-ink);
  background: rgba(0,0,0,.55);
  border: 1px solid var(--fd-line);
  backdrop-filter: blur(8px);
}
.fd-game-badge-online { background: rgba(48,209,88,.35); border-color: rgba(48,209,88,.5); }
.fd-game-badge-package { background: rgba(10,132,255,.4); border-color: rgba(10,132,255,.55); }
.fd-game-badge-link { background: rgba(255,159,10,.35); border-color: rgba(255,159,10,.5); }
.fd-game-pick {
  position: absolute;
  top: .75rem;
  right: .75rem;
  font-size: .65rem;
  font-weight: 700;
  padding: .22rem .5rem;
  border-radius: .5rem;
  color: #111;
  background: linear-gradient(135deg, #ffd60a, #ff9f0a);
}
.fd-game-body { padding: 1.15rem 1.2rem 1.25rem; display: flex; flex-direction: column; flex: 1; }
.fd-game-body h2 {
  color: var(--fd-ink);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -.02em;
}
.fd-game-meta { font-size: .72rem; color: var(--fd-muted); margin-bottom: .35rem; }
.fd-game-desc {
  font-size: .86rem;
  color: var(--fd-muted);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: .55rem 0 1rem;
  flex: 1;
}
.fd-game-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-top: auto;
}

.fd-games-hero {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
  padding: 1.6rem 1.5rem;
  border-radius: 1.5rem;
  border: 1px solid var(--fd-line);
  background:
    radial-gradient(ellipse at 12% 0%, rgba(10,132,255,.28), transparent 45%),
    radial-gradient(ellipse at 90% 100%, rgba(48,209,88,.12), transparent 40%),
    linear-gradient(165deg, rgba(28,30,40,.95), rgba(14,16,22,.98));
  box-shadow: var(--fd-sheen);
}
@media (min-width: 900px) {
  .fd-games-hero {
    grid-template-columns: 1.4fr .9fr;
    align-items: center;
    padding: 2rem 2.1rem;
  }
}
.fd-games-kicker {
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--fd-accent);
  margin-bottom: .55rem;
}
.fd-games-hero h1 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -.03em;
  color: var(--fd-ink);
  margin-bottom: .55rem;
}
.fd-games-hero-copy > p:last-of-type {
  color: #a1a1aa;
  font-size: .95rem;
  line-height: 1.6;
  max-width: 36rem;
}
.fd-games-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin-top: 1.15rem;
}
.fd-games-hero-panel { position: relative; min-height: 8rem; }
.fd-games-orb {
  position: absolute;
  inset: 10% 8%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(10,132,255,.55), transparent 60%),
              radial-gradient(circle at 70% 70%, rgba(48,209,88,.35), transparent 55%);
  filter: blur(2px);
  opacity: .85;
  animation: fd-games-pulse 6s ease-in-out infinite;
}
@keyframes fd-games-pulse {
  0%, 100% { transform: scale(1); opacity: .75; }
  50% { transform: scale(1.06); opacity: 1; }
}
.fd-games-stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.fd-games-stats li {
  text-align: center;
  padding: .9rem .5rem;
  border-radius: 1rem;
  background: rgba(0,0,0,.35);
  border: 1px solid var(--fd-line);
}
.fd-games-stats strong {
  display: block;
  font-size: 1.35rem;
  color: var(--fd-ink);
  font-weight: 700;
}
.fd-games-stats span {
  display: block;
  margin-top: .2rem;
  font-size: .7rem;
  color: var(--fd-muted);
}
.fd-games-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .65rem;
  margin-bottom: 1rem;
  max-width: 48rem;
}
.fd-games-toolbar .fd-search {
  flex: 1 1 14rem;
  min-width: 12rem;
}
.fd-games-filters {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-bottom: .75rem;
}
.fd-games-chip {
  display: inline-flex;
  align-items: center;
  padding: .38rem .78rem;
  border-radius: .7rem;
  font-size: .78rem;
  color: #a1a1aa;
  text-decoration: none;
  border: 1px solid var(--fd-line);
  background: rgba(255,255,255,.03);
  transition: color .15s, border-color .15s, background .15s;
}
.fd-games-chip:hover { color: var(--fd-ink); border-color: rgba(10,132,255,.4); }
.fd-games-chip.is-active {
  color: var(--fd-ink);
  background: rgba(10,132,255,.22);
  border-color: rgba(10,132,255,.55);
}
.fd-games-chip-mode.is-active {
  background: rgba(48,209,88,.18);
  border-color: rgba(48,209,88,.45);
}
.fd-games-empty { text-align: center; padding: 4rem 1rem; }

.fd-play-page {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 4rem);
  background: #0a0b10;
}
.fd-play-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .75rem 1.1rem;
  border-bottom: 1px solid var(--fd-line);
  background: var(--fd-surface);
}
.fd-play-back {
  color: var(--fd-accent);
  font-size: .85rem;
  text-decoration: none;
  white-space: nowrap;
}
.fd-play-back:hover { color: var(--fd-ink); }
.fd-play-title { flex: 1; min-width: 0; }
.fd-play-title h1 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--fd-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fd-play-title p { font-size: .72rem; color: var(--fd-muted); margin-top: .1rem; }
.fd-play-stage {
  flex: 1;
  min-height: 0;
  background: #000;
}
.fd-play-stage iframe {
  width: 100%;
  height: 100%;
  min-height: calc(100vh - 7rem);
  border: 0;
  display: block;
  background: #000;
}

/* ── 维度 AI 对话窗（科技感壳） ─────────────────────────── */
.fd-ai-panel {
  --fd-ai-spin: 0deg;
  position: fixed;
  border-radius: 1.35rem;
  isolation: isolate;
  background:
    linear-gradient(165deg, rgba(22, 28, 42, 0.94), rgba(10, 12, 18, 0.96));
  border: 1px solid transparent;
  background-clip: padding-box;
  box-shadow:
    0 0 0 1px rgba(100, 180, 255, 0.18),
    0 24px 60px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(18px) saturate(1.35);
  -webkit-backdrop-filter: blur(18px) saturate(1.35);
  animation: fd-ai-panel-in .42s cubic-bezier(.2, .85, .25, 1) both;
}
.fd-ai-panel.is-open { animation-name: fd-ai-panel-in; }
.fd-ai-panel::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(
    from var(--fd-ai-spin),
    #64d2ff, #0a84ff, #30d158, #ffd60a, #ff375f, #bf5af2, #64d2ff
  );
  -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;
  z-index: 0;
  animation: fd-ai-border-spin 8s linear infinite;
  opacity: .85;
}
.fd-ai-panel-glow {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse at 18% 0%, rgba(10, 132, 255, 0.35), transparent 42%),
    radial-gradient(ellipse at 92% 8%, rgba(48, 209, 88, 0.12), transparent 38%),
    radial-gradient(ellipse at 50% 100%, rgba(100, 210, 255, 0.08), transparent 45%);
}
.fd-ai-panel-grid {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  opacity: .22;
  background-image:
    linear-gradient(rgba(100, 180, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(100, 180, 255, 0.07) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.7), transparent 78%);
}
.fd-ai-panel > *:not(.fd-ai-panel-glow):not(.fd-ai-panel-grid) {
  position: relative;
  z-index: 1;
}

.fd-ai-panel-head {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .9rem 1rem .75rem;
  border-bottom: 1px solid var(--fd-line);
  background: linear-gradient(180deg, rgba(255,255,255,0.04), transparent);
}
.fd-ai-panel-mark {
  position: relative;
  width: 2.35rem;
  height: 2.35rem;
  flex-shrink: 0;
}
.fd-ai-panel-mark-core {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: .75rem;
  font-size: .9rem;
  color: var(--fd-ink);
  background: linear-gradient(145deg, #3d9bff, #0a84ff 55%, #0055d4);
  border: 1px solid var(--fd-line);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    0 0 18px rgba(10, 132, 255, 0.55);
  z-index: 1;
}
.fd-ai-panel-mark-ring {
  position: absolute;
  inset: -4px;
  border-radius: .95rem;
  border: 1px solid rgba(100, 210, 255, 0.45);
  box-shadow: 0 0 12px rgba(10, 132, 255, 0.35);
  animation: fd-ai-mark-pulse 2.4s ease-in-out infinite;
}
.fd-ai-panel-name {
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--fd-ink);
  line-height: 1.2;
}
.fd-ai-panel-tabs {
  display: flex;
  gap: .35rem;
  margin-top: .28rem;
}
.fd-ai-panel-tabs span {
  font-size: .65rem;
  letter-spacing: .08em;
  padding: .12rem .45rem;
  border-radius: .4rem;
  color: var(--fd-muted);
  border: 1px solid transparent;
}
.fd-ai-panel-tabs span.is-on {
  color: var(--fd-accent);
  background: rgba(10, 132, 255, 0.18);
  border-color: rgba(10, 132, 255, 0.35);
}
.fd-ai-panel-actions {
  display: flex;
  align-items: center;
  gap: .2rem;
}
.fd-ai-icon-btn {
  width: 1.85rem;
  height: 1.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: .55rem;
  color: var(--fd-muted);
  background: transparent;
  border: 1px solid transparent;
  font-size: .85rem;
  line-height: 1;
  transition: color .15s, background .15s, border-color .15s;
}
.fd-ai-icon-btn:hover {
  color: var(--fd-ink);
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--fd-line);
}

.fd-ai-panel-msgs {
  padding: 1rem .95rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  scroll-behavior: smooth;
}
.fd-ai-row {
  display: flex;
  animation: fd-ai-msg-in .35s ease both;
}
.fd-ai-row.is-user { justify-content: flex-end; }
.fd-ai-row.is-bot { justify-content: flex-start; }
.fd-ai-bubble-msg {
  max-width: 92%;
  padding: .8rem .95rem;
  font-size: .875rem;
  line-height: 1.55;
  border-radius: 1.05rem;
}
.fd-ai-bubble-msg.is-bot {
  color: var(--fd-ink);
  background: linear-gradient(160deg, rgba(255,255,255,0.09), rgba(255,255,255,0.04));
  border: 1px solid rgba(120, 180, 255, 0.18);
  border-radius: 1.05rem 1.05rem 1.05rem .35rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 8px 20px rgba(0,0,0,0.18);
}
.fd-ai-bubble-msg.is-user {
  color: var(--fd-ink);
  background: linear-gradient(145deg, #4aa3ff, #0a84ff 60%, #0066d6);
  border-radius: 1.05rem 1.05rem .35rem 1.05rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.35), 0 8px 18px rgba(10,132,255,0.28);
}
.fd-ai-bubble-body strong { color: var(--fd-ink); font-weight: 650; }
.fd-ai-bubble-msg.is-bot .fd-ai-bubble-body strong { color: var(--fd-accent); }
.fd-ai-cards {
  margin-top: .7rem;
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.fd-ai-card {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .55rem .65rem;
  border-radius: .8rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--fd-line);
  transition: transform .15s, border-color .15s, background .15s;
}
.fd-ai-card:hover {
  transform: translateY(-1px);
  border-color: rgba(10, 132, 255, 0.45);
  background: rgba(10, 132, 255, 0.1);
}
.fd-ai-card.is-sw {
  background: rgba(6, 182, 212, 0.1);
  border-color: rgba(6, 182, 212, 0.28);
}
.fd-ai-card.is-forum {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.28);
}

.fd-ai-typing {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .75rem 1rem;
}
.fd-ai-typing-dot {
  width: .4rem;
  height: .4rem;
  border-radius: 999px;
  background: #64d2ff;
  animation: typingDot 1.4s ease-in-out infinite;
}
.fd-ai-typing-dot:nth-child(2) { animation-delay: .2s; background: #0a84ff; }
.fd-ai-typing-dot:nth-child(3) { animation-delay: .4s; background: #30d158; }

.fd-ai-panel-mode {
  display: flex;
  align-items: center;
  gap: .45rem;
  padding: .4rem .95rem;
  border-top: 1px solid var(--fd-line);
  background: rgba(0, 0, 0, 0.22);
}
.fd-ai-mode-dot {
  width: .45rem;
  height: .45rem;
  border-radius: 999px;
  background: #f59e0b;
  box-shadow: 0 0 8px currentColor;
  flex-shrink: 0;
}
.fd-ai-mode-dot.is-llm {
  background: #30d158;
  color: #30d158;
  animation: fd-ai-mode-glow 2s ease-in-out infinite;
}
.fd-ai-mode-dot.is-builtin {
  background: #f59e0b;
  color: #f59e0b;
}
.fd-ai-mode-text {
  font-size: .68rem;
  color: var(--fd-muted);
  letter-spacing: .02em;
}
.fd-ai-mode-link {
  font-size: .68rem;
  color: var(--fd-accent);
  text-decoration: none;
}
.fd-ai-mode-link:hover { color: var(--fd-ink); }

.fd-ai-panel-composer {
  padding: .7rem .85rem .9rem;
  border-top: 1px solid var(--fd-line);
  background: linear-gradient(0deg, rgba(10, 132, 255, 0.08), transparent 70%);
}
.fd-ai-composer {
  display: flex;
  gap: .5rem;
  align-items: center;
  padding: .28rem .28rem .28rem .7rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(100, 180, 255, 0.28);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 0 0 0 rgba(10,132,255,0);
  transition: border-color .2s, box-shadow .2s;
}
.fd-ai-composer:focus-within {
  border-color: rgba(100, 210, 255, 0.65);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 0 0 3px rgba(10, 132, 255, 0.18);
}
.fd-ai-input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: none;
  color: var(--fd-ink);
  font-size: .875rem;
  padding: .45rem 0;
}
.fd-ai-input::placeholder { color: var(--fd-muted); }
.fd-ai-send {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  height: 2.15rem;
  padding: 0 .95rem;
  border-radius: 999px;
  border: 1px solid var(--fd-line);
  color: var(--fd-ink);
  font-size: .8rem;
  font-weight: 650;
  background: linear-gradient(180deg, #5aadff, #0a84ff);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.4), 0 6px 14px rgba(10,132,255,0.35);
  transition: filter .15s, transform .15s;
}
.fd-ai-send:hover { filter: brightness(1.08); }
.fd-ai-send:active { transform: scale(0.97); }

@keyframes fd-ai-panel-in {
  from { opacity: 0; transform: translateY(18px) scale(.96); }
  to { opacity: 1; transform: none; }
}
@keyframes fd-ai-msg-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
@keyframes fd-ai-mark-pulse {
  0%, 100% { opacity: .55; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.06); }
}
@keyframes fd-ai-mode-glow {
  0%, 100% { box-shadow: 0 0 6px #30d158; }
  50% { box-shadow: 0 0 14px #30d158; }
}
@keyframes fd-ai-border-spin {
  to { --fd-ai-spin: 360deg; }
}
@property --fd-ai-spin {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

/* ── FAB 柔和全屏水波（不变换 body，避免页面跳动） ─────── */
.fd-ai-wake-layer {
  position: fixed;
  inset: 0;
  z-index: 200050;
  pointer-events: none;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
}
.fd-ai-wake-layer.is-on {
  opacity: 1;
  visibility: visible;
}
.fd-ai-wake-flash {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(100, 210, 255, 0.1), transparent 60%);
  animation: fd-ai-wake-flash 0.95s ease-out forwards;
}
.fd-ai-wake {
  position: absolute;
  width: 0;
  height: 0;
  pointer-events: none;
  --wake-r: 80vmax;
}
.fd-ai-wake-fill {
  position: absolute;
  left: 0;
  top: 0;
  width: calc(var(--wake-r) * 2);
  height: calc(var(--wake-r) * 2);
  margin-left: calc(var(--wake-r) * -1);
  margin-top: calc(var(--wake-r) * -1);
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.14) 0%,
    rgba(100, 210, 255, 0.12) 18%,
    rgba(10, 132, 255, 0.08) 40%,
    rgba(191, 90, 242, 0.05) 62%,
    transparent 78%
  );
  transform: scale(0.04);
  opacity: 0;
  animation: fd-ai-wake-fill 1.05s cubic-bezier(.2, .75, .25, 1) forwards;
}
.fd-ai-wake-core {
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  margin: -11px 0 0 -11px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0%, #64d2ff 45%, transparent 75%);
  box-shadow: 0 0 18px rgba(100, 210, 255, 0.55), 0 0 36px rgba(191, 90, 242, 0.25);
  animation: fd-ai-wake-core 0.9s ease-out forwards;
}
.fd-ai-wake-blob {
  position: absolute;
  left: 0;
  top: 0;
  width: 96px;
  height: 96px;
  margin: -48px 0 0 -48px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #ff375f, #ffd60a, #30d158, #64d2ff, #bf5af2, #ff375f);
  filter: blur(20px);
  opacity: .55;
  animation: fd-ai-wake-blob 1.05s ease-out forwards;
}
.fd-ai-wake-ring {
  position: absolute;
  left: 0;
  top: 0;
  width: calc(var(--wake-r) * 2);
  height: calc(var(--wake-r) * 2);
  margin-left: calc(var(--wake-r) * -1);
  margin-top: calc(var(--wake-r) * -1);
  border-radius: 50%;
  background: conic-gradient(
    from calc(var(--i) * 50deg),
    #ff375f, #ff9f0a, #ffd60a, #30d158, #64d2ff, #0a84ff, #bf5af2, #ff375f
  );
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
  opacity: 0;
  transform: scale(0.04);
  animation: fd-ai-wake-ring 1.1s cubic-bezier(.18, .72, .22, 1) forwards;
  animation-delay: calc(var(--i) * 0.12s);
  filter: drop-shadow(0 0 6px rgba(100, 210, 255, 0.35));
}
.fd-ai-wake-ring-soft {
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 16px), #000 calc(100% - 2px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 16px), #000 calc(100% - 2px));
  filter: blur(3px) drop-shadow(0 0 10px rgba(100, 210, 255, 0.25));
}

/* 仅墙纸轻呼吸，不缩放 body */
html.fd-ai-alive .fd-wallpaper {
  animation: fd-ai-alive-glow .9s ease-out both;
}

@keyframes fd-ai-wake-flash {
  0% { opacity: 0; }
  25% { opacity: 1; }
  100% { opacity: 0; }
}
@keyframes fd-ai-wake-fill {
  0% { transform: scale(0.04); opacity: 0; }
  22% { opacity: .7; }
  100% { transform: scale(1); opacity: 0; }
}
@keyframes fd-ai-wake-core {
  0% { transform: scale(.5); opacity: .9; }
  100% { transform: scale(2.4); opacity: 0; }
}
@keyframes fd-ai-wake-blob {
  0% { transform: scale(.4) rotate(0deg); opacity: .6; }
  100% { transform: scale(3.2) rotate(40deg); opacity: 0; }
}
@keyframes fd-ai-wake-ring {
  0% { transform: scale(0.04); opacity: 0; }
  12% { opacity: .72; }
  100% { transform: scale(1); opacity: 0; }
}
@keyframes fd-ai-alive-glow {
  0%, 100% { filter: none; }
  40% { filter: brightness(1.08) saturate(1.12); }
}

@media (prefers-reduced-motion: reduce) {
  .fd-ai-panel, .fd-ai-panel::before, .fd-ai-panel-mark-ring,
  .fd-ai-row, .fd-ai-mode-dot.is-llm, .fd-ai-typing-dot { animation: none; }
  .fd-ai-wake-layer { display: none; }
  html.fd-ai-alive .fd-wallpaper { animation: none; }
}

/* ── 任务中心：大厅聊天为主 ─────────────────────────────── */
.fd-desk {
  width: 100%;
  max-width: none;
  padding: .85rem 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  min-height: calc(100dvh - 5.5rem);
}
.fd-desk-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem 1rem;
}
.fd-desk-brand { flex: 1 1 16rem; min-width: 0; }
.fd-desk-brand h1 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--fd-ink);
  letter-spacing: -.02em;
}
.fd-desk-brand p {
  margin: .2rem 0 0;
  color: var(--fd-muted);
  font-size: .82rem;
  line-height: 1.45;
  max-width: 40rem;
}
.fd-desk-stats {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}
.fd-desk-stats span {
  display: inline-flex;
  align-items: baseline;
  gap: .28rem;
  padding: .35rem .7rem;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--fd-line);
  color: var(--fd-muted);
  font-size: .75rem;
}
.fd-desk-stats b { color: var(--fd-ink); font-size: .95rem; font-weight: 650; }
.fd-desk-stats .is-live b { color: #6ee7b7; }

.fd-desk-grid {
  flex: 1;
  min-height: 0;
  display: grid;
  gap: .75rem;
  grid-template-columns: 1fr;
}
@media (min-width: 960px) {
  .fd-desk-grid {
    grid-template-columns: 15.5rem minmax(0, 1fr) 16.5rem;
    height: calc(100dvh - 9.5rem);
    min-height: 28rem;
  }
}

.fd-desk-rail,
.fd-desk-chat,
.fd-desk-board {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-radius: 1.1rem;
  border: 1px solid var(--fd-line);
  background: rgba(255,255,255,.045);
  backdrop-filter: var(--fd-blur);
  -webkit-backdrop-filter: var(--fd-blur);
  box-shadow: var(--fd-sheen);
}
.fd-desk-rail-head,
.fd-desk-chat-head,
.fd-desk-board-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding: .7rem .85rem;
  border-bottom: 1px solid var(--fd-line);
}
.fd-desk-rail-head h2,
.fd-desk-chat-head h2,
.fd-desk-board-block h2 {
  margin: 0;
  font-size: .78rem;
  font-weight: 650;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--fd-ink);
}
.fd-desk-chat-head p {
  margin: 0;
  font-size: .72rem;
  color: var(--fd-muted);
}
.fd-desk-err { margin: .4rem .85rem 0; font-size: .75rem; color: #fca5a5; }
.fd-desk-empty { margin: .6rem .85rem; font-size: .8rem; color: var(--fd-muted); line-height: 1.45; }
.fd-desk-settle { padding: .65rem .75rem; display: grid; gap: .4rem; border-bottom: 1px solid var(--fd-line); }
.fd-desk-settle-acts { display: flex; flex-wrap: wrap; gap: .35rem; }
.fd-desk-ghost {
  padding: .35rem .65rem;
  border-radius: .65rem;
  border: 1px solid rgba(103,232,249,.28);
  color: var(--fd-accent);
  font-size: .72rem;
  background: transparent;
}
.fd-desk-me {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .45rem .85rem;
  font-size: .72rem;
  color: var(--fd-muted);
  border-bottom: 1px solid var(--fd-line);
}
.fd-desk-people {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: .35rem;
  display: flex;
  flex-direction: column;
  gap: .2rem;
}
.fd-desk-person {
  display: flex;
  align-items: center;
  gap: .5rem;
  width: 100%;
  text-align: left;
  padding: .45rem .5rem;
  border-radius: .75rem;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.fd-desk-person:hover { background: rgba(255,255,255,.06); }
.fd-desk-dot {
  width: .45rem;
  height: .45rem;
  border-radius: 999px;
  background: #475569;
  flex-shrink: 0;
}
.fd-desk-dot.is-on { background: #34d399; box-shadow: 0 0 0 3px rgba(52,211,153,.18); }
.fd-desk-person-copy { flex: 1; min-width: 0; display: grid; gap: .05rem; }
.fd-desk-person-copy strong {
  font-size: .82rem;
  font-weight: 600;
  color: var(--fd-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fd-desk-person-copy em {
  font-style: normal;
  font-size: .68rem;
  color: var(--fd-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fd-desk-assign {
  flex-shrink: 0;
  font-size: .68rem;
  color: var(--fd-accent);
  padding: .15rem .35rem;
  border-radius: .4rem;
}
.fd-desk-assign:hover { background: rgba(125,211,252,.12); color: var(--fd-accent); }

.fd-desk-chat { min-height: 22rem; }
.fd-desk-log {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: .75rem .85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: .65rem;
}
.fd-desk-msg {
  max-width: min(36rem, 92%);
  align-self: flex-start;
}
.fd-desk-msg.is-me { align-self: flex-end; }
.fd-desk-msg header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .35rem .5rem;
  margin-bottom: .2rem;
}
.fd-desk-msg strong { font-size: .78rem; color: var(--fd-ink); font-weight: 600; }
.fd-desk-msg.is-me strong { color: var(--fd-accent); }
.fd-desk-kind {
  font-size: .62rem;
  letter-spacing: .04em;
  color: var(--fd-muted);
  padding: .05rem .35rem;
  border-radius: 999px;
  background: rgba(255,255,255,.05);
}
.fd-desk-msg time { font-size: .62rem; color: var(--fd-muted); }
.fd-desk-msg p {
  margin: 0;
  padding: .55rem .7rem;
  border-radius: .85rem;
  background: rgba(255,255,255,.07);
  border: 1px solid var(--fd-line);
  color: var(--fd-ink);
  font-size: .9rem;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}
.fd-desk-msg.is-me p {
  background: rgba(10,132,255,.18);
  border-color: rgba(10,132,255,.28);
}
.fd-desk-at {
  color: var(--fd-accent);
  background: rgba(125,211,252,.12);
  border-radius: .25rem;
  padding: 0 .15rem;
  font-weight: 600;
}
.fd-desk-composer {
  display: flex;
  gap: .5rem;
  padding: .65rem .75rem .8rem;
  border-top: 1px solid var(--fd-line);
}
.fd-desk-composer.is-locked { justify-content: center; }
.fd-desk-composer input {
  flex: 1;
  min-width: 0;
  height: 2.55rem;
  border-radius: .8rem;
  border: 1px solid var(--fd-line);
  background: rgba(0,0,0,.25);
  color: var(--fd-ink);
  padding: 0 .85rem;
  outline: none;
}
.fd-desk-composer input:focus {
  border-color: rgba(10,132,255,.55);
  box-shadow: 0 0 0 3px rgba(10,132,255,.18);
}
.fd-desk-composer.is-busy { opacity: .7; pointer-events: none; }

.fd-desk-board { overflow: hidden; }
.fd-desk-board-block {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1;
}
.fd-desk-board-block + .fd-desk-board-block { border-top: 1px solid var(--fd-line); }
.fd-desk-board-block > h2,
.fd-desk-board-head {
  padding: .7rem .85rem .55rem;
}
.fd-desk-tabs { display: flex; gap: .15rem; }
.fd-desk-tabs a {
  font-size: .68rem;
  color: var(--fd-muted);
  padding: .2rem .4rem;
  border-radius: .4rem;
}
.fd-desk-tabs a:hover { color: var(--fd-ink); }
.fd-desk-tabs a.is-on { color: var(--fd-accent); background: rgba(139,92,246,.15); }
.fd-desk-board-list {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 0 .45rem .55rem;
  display: flex;
  flex-direction: column;
  gap: .3rem;
}
.fd-desk-task {
  display: grid;
  gap: .12rem;
  padding: .55rem .6rem;
  border-radius: .75rem;
  text-decoration: none;
  border: 1px solid transparent;
}
.fd-desk-task:hover {
  background: rgba(255,255,255,.05);
  border-color: var(--fd-line);
}
.fd-desk-task.is-inbox { background: rgba(251,191,36,.08); }
.fd-desk-task span { font-size: .65rem; color: #fbbf24; }
.fd-desk-task strong {
  font-size: .82rem;
  color: var(--fd-ink);
  font-weight: 600;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.fd-desk-task em { font-style: normal; font-size: .68rem; color: var(--fd-muted); }

/* 首页：更大的标题、玻璃透镜、用量条压在舞台下沿。模型中心仍用原来的 .fd-stage。 */
.fd-home-hero {
  container-type: inline-size;
  min-height: 0;
  display: flex;
  align-items: center;
  padding-top: 2.4rem;
  padding-bottom: 2.6rem;
}
.fd-home .fd-stage-inner {
  align-items: center;
  gap: 1.25rem 2rem;
  grid-template-columns: 1fr;
  grid-template-areas: "copy" "lens" "actions";
}
.fd-home-copy { grid-area: copy; }
.fd-home-actions { grid-area: actions; }
.fd-home-lens { grid-area: lens; }
.fd-home .fd-seek-wrap { position: relative; z-index: 4; max-width: none; }
@container (min-width: 36rem) {
  .fd-home .fd-stage-inner {
    grid-template-columns: minmax(0, 1.45fr) minmax(12rem, 16rem);
    grid-template-areas:
      "copy lens"
      "actions actions";
    align-items: center;
  }
}
.fd-home-display {
  font-size: clamp(2.7rem, 7.5cqi, 5.2rem);
  line-height: 1.02;
  letter-spacing: -.04em;
}
.fd-home-lens {
  position: relative;
  width: min(100%, 16.5rem);
  aspect-ratio: 1;
  height: auto;
  margin-inline: auto;
  justify-self: end;
}
.fd-home-lens-ring {
  position: absolute;
  inset: 7%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, rgba(255,255,255,.28), transparent 36%),
    rgba(255,255,255,.07);
  border: 1px solid var(--fd-line);
  backdrop-filter: blur(28px) saturate(1.7);
  -webkit-backdrop-filter: blur(28px) saturate(1.7);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 28px 70px rgba(0,0,0,.35);
}
.fd-home-lens-ring::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(from var(--fd-spin), transparent 0 70%, rgba(214,230,255,.95) 82%, transparent 92%);
  -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;
  animation: fd-border 7s linear infinite;
  pointer-events: none;
}
.fd-home-lens-core {
  position: absolute;
  inset: 26% 7%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .45rem;
  padding: 1.1rem 1.15rem;
  border-radius: 1.25rem;
  background: var(--fd-surface);
  border: 1px solid var(--fd-line);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28);
}
.fd-home-lens-kicker {
  margin: 0;
  font-size: .68rem;
  letter-spacing: .28em;
  color: var(--fd-accent);
}
.fd-home-lens-host {
  margin: 0;
  color: var(--fd-ink);
  font-size: .72rem;
  font-weight: 650;
  line-height: 1.35;
  flex-shrink: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fd-home-lens-log {
  margin: .35rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--fd-muted);
  font-family: ui-monospace, monospace;
  font-size: .72rem;
  line-height: 1.7;
}
.fd-home-lens-log span { color: var(--fd-ink); margin-right: .35rem; }
.fd-home-orbit {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.fd-home-orbit i {
  position: absolute;
  font-style: normal;
}
.fd-home-orbit i:nth-child(1) { top: 3%; left: 50%; }
.fd-home-orbit i:nth-child(2) { bottom: 9%; left: 7%; }
.fd-home-orbit i:nth-child(3) { bottom: 9%; right: 7%; }
.fd-home-orbit b {
  display: block;
  padding: .28rem .7rem;
  border-radius: 999px;
  color: var(--fd-ink);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .14em;
  background: rgba(255,255,255,.1);
  border: 1px solid var(--fd-line);
  backdrop-filter: blur(12px);
}
.fd-home-orbit i:nth-child(1) b { transform: translateX(-50%); }
.fd-home-orbit i:nth-child(2) b,
.fd-home-orbit i:nth-child(3) b { transform: none; }
.fd-home-meter {
  position: relative;
  z-index: 32;
  margin-top: 0;
}
.fd-home-perks {
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .fd-home-perks { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.fd-home-perks { counter-reset: fdperk; }
.fd-home-perks .fd-perk { counter-increment: fdperk; }
.fd-home-perks .fd-perk-kicker::before {
  content: counter(fdperk, decimal-leading-zero);
  margin-right: .55rem;
  color: var(--fd-ink);
  letter-spacing: 0;
}
.fd-home-entries { grid-template-columns: 1fr; }
@media (min-width: 800px) {
  .fd-home-entries { grid-template-columns: 1.35fr 1fr 1fr; }
  .fd-home-entries .fd-entry:first-child { grid-row: span 2; min-height: 100%; }
}
@keyframes fd-home-spin { to { transform: rotate(360deg); } }
@container (max-width: 35.99rem) {
  .fd-home-lens { justify-self: center; margin-top: .25rem; }
}
@media (prefers-reduced-motion: reduce) {
  .fd-home-orbit, .fd-home-orbit b, .fd-home-lens-ring { animation: none; }
}

@media (max-width: 959px) {
  .fd-desk-chat { order: -1; min-height: 55dvh; }
  .fd-desk-rail { max-height: 16rem; }
  .fd-desk-board { max-height: 22rem; }
}





