/* =============================================================================
   Fantasy Dimension · Cyberpunk Futuristic Theme (High Intensity Cyber Aesthetics)
   强烈赛博风格：深渊黑基底、CRT扫描线、高饱和霓虹青/洋红双色发光、HUD战术切角
   ============================================================================= */
:root {
  --fd-bg: #04060a;
  --fd-ink: #f8fafc;
  --fd-muted: #8b9bb4;
  --fd-accent: #00f0ff;
  --cb-cyan: #00f0ff;
  --cb-magenta: #ff007f;
  --cb-yellow: #ffe600;
  --cb-purple: #8b5cf6;
  --fd-surface: rgba(7, 10, 18, 0.88);
  --fd-surface-solid: #080c16;
  --fd-glass: rgba(0, 240, 255, 0.04);
  --fd-glass-strong: rgba(5, 8, 15, 0.92);
  --fd-line: rgba(0, 240, 255, 0.16);
  --fd-line-hover: rgba(0, 240, 255, 0.5);
  --fd-sheen: inset 0 1px 0 rgba(0, 240, 255, 0.25), inset 0 -1px 0 rgba(255, 0, 127, 0.15);
  --fd-shadow: 0 0 20px -5px rgba(0, 240, 255, 0.2), 0 16px 36px -10px rgba(0, 0, 0, 0.7);
  --fd-blur: blur(16px);
  --fd-font: "JetBrains Mono", "SF Pro Display", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", monospace;
  color-scheme: dark;
}

body.fd-apple {
  color: var(--fd-ink);
  font-family: var(--fd-font) !important;
  background-color: var(--fd-bg) !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  min-height: 100dvh;
}

/* 赛博背景：深渊黑 + 霓虹网格 + 极细微 CRT 扫描线 */
body.fd-apple::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: 
    radial-gradient(ellipse 70% 450px at 50% -50px, rgba(0, 240, 255, 0.12), transparent),
    radial-gradient(ellipse 45% 450px at 90% 30%, rgba(255, 0, 127, 0.1), transparent),
    radial-gradient(ellipse 40% 400px at 10% 70%, rgba(0, 240, 255, 0.08), transparent),
    linear-gradient(rgba(0, 240, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 240, 255, 0.04) 1px, transparent 1px),
    linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%);
  background-size: 100% 100%, 100% 100%, 100% 100%, 36px 36px, 36px 36px, 100% 4px;
  background-position: 0 0, 0 0, 0 0, 0 0, 0 0, 0 0;
  background-color: var(--fd-bg);
}

.fd-apple .fd-wallpaper { display: none; }
.fd-apple .fd-orb { display: none; }

/* 文本层级与语义颜色 */
.fd-apple :is(.text-white, .text-slate-100) { color: #ffffff !important; }
.fd-apple :is(.text-slate-200, .text-slate-300) { color: #dbeafe; }
.fd-apple :is(.text-slate-400, .text-slate-500) { color: var(--fd-muted); }
.fd-apple [class*="border-white/"] { border-color: var(--fd-line); }

.fd-apple .fd-surface { background-color: var(--fd-surface-solid) !important; }

/* 顶栏、侧栏与底栏基础材质：霓虹发光底边 */
.fd-apple :is(.fd-bar, .fd-dock, .fd-foot, .fd-admin-side, .fd-admin-top, .fd-tool-toolbar, .fd-play-bar) {
  color: var(--fd-ink);
  background: var(--fd-glass-strong);
  border-color: var(--fd-line);
  backdrop-filter: var(--fd-blur);
  -webkit-backdrop-filter: var(--fd-blur);
}

.fd-apple .fd-bar {
  border-bottom: 1px solid var(--cb-cyan) !important;
  box-shadow: 0 4px 20px -2px rgba(0, 240, 255, 0.25), inset 0 -1px 0 rgba(0, 240, 255, 0.4);
}

/* 赛博切角卡片与面板 */
.fd-apple :is(.glass, .glass-heavy, .fd-sheet, .app-card, .fd-perk, .fd-entry, .fd-stage-panel, .fd-mc-model, .fd-mc-side, .fd-mc-meter, .fd-csdn-block, .fd-csdn-rail, .fd-csdn-main, .fd-csdn-aside, .fd-desk-panel, .fd-desk-chat, .fd-desk-board, .fd-desk-rail) {
  color: var(--fd-ink);
  background: var(--fd-surface);
  border: 1px solid var(--fd-line);
  border-radius: 12px;
  box-shadow: var(--fd-sheen), 0 8px 30px -5px rgba(0, 0, 0, 0.6);
  backdrop-filter: var(--fd-blur);
  -webkit-backdrop-filter: var(--fd-blur);
  transition: all 0.2s ease;
}

.fd-apple .fd-sheet {
  background: rgba(6, 10, 18, 0.95);
  border: 1px solid var(--cb-cyan);
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.25), 0 24px 60px rgba(0, 0, 0, 0.85);
}

.fd-apple .app-card:hover {
  background: rgba(10, 16, 28, 0.92);
  border-color: var(--cb-cyan);
  box-shadow: 0 0 20px -2px rgba(0, 240, 255, 0.4), var(--fd-sheen);
  transform: translateY(-2px);
}

/* 品牌赛博徽章 */
.fd-apple :is(.fd-mark, .fd-ai-mark) {
  color: #00f0ff;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.2), rgba(255, 0, 127, 0.2));
  border: 1px solid var(--cb-cyan);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.5), inset 0 0 8px rgba(0, 240, 255, 0.3);
}

/* 导航链接：赛博发光反馈 */
.fd-apple :is(.nav-link, .sb-link, .fd-csdn-rail-item) {
  color: #94a3b8;
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.15s ease;
}

.fd-apple :is(.nav-link, .sb-link, .fd-csdn-rail-item):hover {
  color: #00f0ff;
  background: rgba(0, 240, 255, 0.08);
  border-left: 2px solid var(--cb-cyan);
  padding-left: 14px;
}

.fd-apple :is(.nav-link.is-current, .sb-link.is-current, .fd-csdn-rail-item.is-on) {
  color: #00f0ff !important;
  background: rgba(0, 240, 255, 0.12);
  border: 1px solid rgba(0, 240, 255, 0.35);
  border-left: 3px solid #00f0ff;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.25);
}

/* 强烈赛博按钮系统：霓虹双色 */
.fd-apple :is(.btn-primary, .fd-login, .fd-action-primary, .fd-ai-send, .fd-desk-send) {
  color: #050811 !important;
  background: linear-gradient(135deg, #00f0ff 0%, #00c4cc 100%) !important;
  border: 1px solid #00f0ff !important;
  border-radius: 6px;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.6) !important;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: all 0.18s ease;
}

.fd-apple :is(.btn-primary, .fd-login, .fd-action-primary):hover {
  background: linear-gradient(135deg, #33f3ff 0%, #00f0ff 100%) !important;
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.8), 0 0 5px #ffffff !important;
  transform: translateY(-1px);
}

.fd-apple :is(.btn-secondary, .fd-ghost, .fd-copy) {
  color: #00f0ff;
  background: rgba(0, 240, 255, 0.05);
  border: 1px solid rgba(0, 240, 255, 0.3);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.15);
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.15s ease;
}

.fd-apple :is(.btn-secondary, .fd-ghost, .fd-copy):hover {
  background: rgba(0, 240, 255, 0.15);
  border-color: #00f0ff;
  box-shadow: 0 0 18px rgba(0, 240, 255, 0.4);
  color: #ffffff;
}

/* 赛博输入框 */
.fd-apple :where(.fd-input, .fd-select-dark, input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="hidden"]), textarea, select) {
  color: var(--fd-ink) !important;
  background-color: rgba(5, 9, 16, 0.8) !important;
  border: 1px solid rgba(0, 240, 255, 0.2) !important;
  border-radius: 6px;
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.5);
  transition: all 0.15s ease;
}

.fd-apple :is(input, textarea)::placeholder {
  color: #526077 !important;
  font-family: var(--fd-font);
}

.fd-apple :is(input, textarea, select):focus {
  border-color: #00f0ff !important;
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.4), inset 0 1px 4px rgba(0, 0, 0, 0.5) !important;
  outline: none;
}

.fd-apple select option {
  color: var(--fd-ink);
  background: #0f131d;
}

.fd-apple :is(input[type="checkbox"], input[type="radio"], input[type="range"]) {
  accent-color: #6366f1;
}

/* 标签药丸（Pills） */
.fd-apple :is(.cat-pill, .fd-ch, .fd-csdn-chip, .fd-mc-pill, .fd-tag) {
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--fd-line);
  box-shadow: none;
  border-radius: 8px;
  transition: all 0.15s ease;
}

.fd-apple :is(.cat-pill:hover, .fd-ch:hover, .fd-csdn-chip:hover) {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--fd-line-hover);
  color: #ffffff;
}

.fd-apple :is(.cat-pill.active, .fd-ch.is-on, .fd-csdn-chip.is-on, .provider-btn.active, .netmode-btn.active) {
  color: #ffffff;
  background: rgba(99, 102, 241, 0.2);
  border-color: rgba(99, 102, 241, 0.5);
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.2);
}

.fd-apple .gradient-text {
  background-image: linear-gradient(135deg, #ffffff 0%, #cbd5e1 50%, #94a3b8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.fd-apple .fd-kicker { color: #b9d5fb; }
.fd-apple .fd-stage { border-color: var(--fd-line); background: transparent; }
.fd-apple :is(.fd-stage-grid, .fd-stage-sweep) { display: none; }
.fd-apple :is(.fd-seek, .fd-seek-panel) { background: var(--fd-glass-strong); border-color: #ffffff29; box-shadow: var(--fd-sheen), var(--fd-shadow); backdrop-filter: var(--fd-blur); -webkit-backdrop-filter: var(--fd-blur); }
.fd-apple .fd-seek input { background: transparent !important; box-shadow: none; }
.fd-apple :is(.fd-seek-icon, .fd-seek-hit strong) { color: var(--fd-ink); }
.fd-apple :is(.fd-seek-hit:hover, .fd-seek-hit:focus) { background: #ffffff0d; }
.fd-apple .fd-stats-icon { color: #9bc8ff; background: transparent; }
.fd-apple :is(.fd-stats, .fd-stats > a) { background: transparent; box-shadow: none; border-color: var(--fd-line); }
.fd-apple :is(.fd-entry:hover, .fd-perk:hover, .fd-thread-card:hover, .fd-desk-task:hover) { background: #ffffff0b; border-color: #ffffff38; }
.fd-apple :is(.fd-thread-card, .fd-csdn-thread, .fd-desk-task, .fd-csdn-topbar, .fd-csdn-chips, .fd-csdn-block-head) { background: transparent; border-color: var(--fd-line); }
.fd-apple :is(.fd-seg a.is-on, .fd-page-num.is-on) { color: white; }
.fd-apple .fd-pin { color: #f2cf90; }
.fd-apple :is(.fd-thread a:hover, .fd-post, .fd-mine, .fd-dev-body .tab-pane, .fd-dev-nav button, .fd-forum-panel, .fd-forum-side) { background: var(--fd-surface); border-color: var(--fd-line); }
.fd-apple .fd-dev-nav button { color: var(--fd-muted); }
.fd-apple .fd-dev-nav button.is-on { color: #bfddff; background: #609df826; }
.fd-apple :is(.fd-game-badge, .fd-game-cover .fd-game-badge) { color: white; }
.fd-apple :is(.fd-code, .fd-mc-code, pre, .forum-md pre, .forum-md code) { color: #d5def3; background: #080c166b; border-color: var(--fd-line); }
.fd-apple .forum-md { color: #d3d9e5; }
.fd-apple .forum-md :is(h1, h2, h3, h4, strong, b, em, i) { color: var(--fd-ink); }
.fd-apple .forum-md a { color: #a0ceff; }
.fd-apple .forum-md blockquote { background: #79bbff0d; border-color: #79bbff70; color: #becce1; }
.fd-apple table { color: var(--fd-ink); }
.fd-apple thead { background: #ffffff08; color: #c3cbdb; }
.fd-apple :is(th, td) { border-color: var(--fd-line); }
.fd-apple tbody tr:hover { background: #ffffff07 !important; }
.fd-apple .slider { background: #444b5a; border-color: #ffffff1a; }
.fd-apple input:checked + .slider { background: #30b85e; border-color: #ffffff26; }
.fd-apple .slider::before { box-shadow: 0 2px 5px #0003; }
.fd-apple :is(.fd-ai-panel, .fd-ai-bubble, .fd-ai-panel-head, .fd-ai-panel-mode, .fd-ai-panel-compose, .fd-ai-panel-footer) { color: var(--fd-ink); background: var(--fd-glass-strong); border-color: var(--fd-line); box-shadow: var(--fd-sheen), var(--fd-shadow); }
.fd-apple :is(.fd-ai-panel-name, .fd-ai-bubble-body, .fd-ai-bubble-body strong, .fd-ai-card) { color: var(--fd-ink); }
.fd-apple :is(.fd-ai-card, .fd-ai-bubble-msg.is-bot) { background: #ffffff08; color: var(--fd-ink); border-color: var(--fd-line); box-shadow: var(--fd-sheen); }
.fd-apple .fd-ai-bubble-msg.is-user { background: #176bd0; color: white; box-shadow: none; }
.fd-apple .fd-ai-bubble-msg.is-user * { color: white !important; }
.fd-apple .fd-ai-icon-btn:hover { color: #a0ceff; background: #ffffff0d; border-color: var(--fd-line); }
.fd-apple :is(.fd-ai-panel-input, .fd-desk-composer) { color: var(--fd-ink); background: #080c164d; border-color: var(--fd-line); }
.fd-apple :is(.fd-ai-panel-mark, .fd-ai-mark) * { color: white; }
.fd-apple .chg-up { color: #83dba6; }
.fd-apple .chg-dn { color: #ff9caa; }
.fd-apple #headerPreviewTable :is(th, td) { color: var(--fd-ink); }
.fd-apple #headerPreviewTable tr.hdr-keep :is(td, .row-num) { background: #79bbff1a; color: #bfddff; }
.fd-apple #headerPreviewTable tr.hdr-data td { background: var(--fd-surface-solid); color: var(--fd-muted); }

/* Edge-to-edge page, with clean framing */
.fd-apple .fd-app-window { display: flex; flex-direction: column; position: relative; isolation: isolate; width: 100%; max-width: none; height: 100dvh; margin: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.fd-window-lights { display: none; }
.fd-apple .fd-bar { position: relative; flex-shrink: 0; z-index: 40; border: 0; border-bottom: 1px solid var(--fd-line); border-radius: 0; background: rgba(9, 12, 19, 0.78); backdrop-filter: var(--fd-blur); -webkit-backdrop-filter: var(--fd-blur); }
.fd-apple .fd-bar > div { height: 56px; padding-inline: 20px; gap: 14px; }
.fd-header-actions { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.fd-header-tools { display: flex; align-items: center; gap: 8px; }
.fd-header-account { display: flex; align-items: center; gap: 12px; border-left: 1px solid var(--fd-line); padding-left: 16px; }
.fd-header-account > button, .fd-header-account > .relative > button { min-height: 34px; }
.fd-apple .fd-header-tools > button, .fd-apple .fd-header-tools #annInfoBtn { min-height: 34px; border-radius: 8px; border: 1px solid var(--fd-line); background: rgba(255, 255, 255, 0.04); padding: 6px 12px; font-size: 13px; font-weight: 500; white-space: nowrap; transition: all 0.15s ease; }
.fd-apple .fd-header-tools .fd-header-icon, .fd-apple .fd-header-tools #annInfoBtn { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; padding: 0; }
.fd-apple .fd-header-tools button:hover { background: rgba(255, 255, 255, 0.08); border-color: var(--fd-line-hover); }
.fd-apple .fd-bar .fd-login { height: 34px; padding-inline: 16px; font-size: 13px; border-radius: 8px; }
.fd-apple .fd-dock .sb-link { margin-bottom: 4px; padding: 8px 12px; border-radius: 8px; font-size: 13px; }
.fd-apple .fd-dock .sb-link:last-child { margin-bottom: 0; }
@media (max-width: 1099px) {
  .fd-apple .fd-header-tools .fd-header-feedback { display: none; }
  .fd-header-actions { gap: 12px; }
  .fd-header-account { padding-left: 12px; }
}
@media (max-width: 767px) {
  .fd-header-actions { gap: 8px; }
  .fd-header-tools { gap: 6px; }
  .fd-header-account { gap: 6px; padding-left: 8px; }
  .fd-apple .fd-header-tools > button, .fd-apple .fd-header-tools #annInfoBtn { min-height: 32px; font-size: 12px; }
  .fd-apple .fd-header-tools .fd-header-icon, .fd-apple .fd-header-tools #annInfoBtn { width: 32px; height: 32px; }
  .fd-apple .fd-header-account .fd-daily-check { display: none; }
  .fd-apple .fd-bar .fd-login { height: 32px; padding-inline: 12px; font-size: 12px; }
}
.fd-apple .fd-toolbar-title { padding-left: 14px; border-left: 1px solid var(--fd-line); font-size: 13px; font-weight: 500; color: var(--fd-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fd-apple .fd-bar .fd-mark { width: 28px; height: 28px; border-radius: 8px; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; }
.fd-apple .fd-app-body { flex: 1; min-height: 0 !important; }
.fd-apple .fd-app-body > main { background: transparent; overscroll-behavior: contain; }
.fd-apple .fd-dock { position: static; width: 220px; height: auto; align-self: stretch; background: rgba(9, 12, 20, 0.4); border-right: 1px solid var(--fd-line); box-shadow: none; }
.fd-apple .fd-nav-ico { color: #818cf8; }
.fd-apple .sb-link.is-current .fd-nav-ico { color: #ffffff; }
.fd-apple .fd-sidebar-meta { border-top: 1px solid var(--fd-line); padding: 12px 0 0; }
.fd-apple .fd-sidebar-meta p { font-size: 11px; }
.fd-apple .fd-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 5px 16px; flex-shrink: 0; padding: 10px 24px; font-size: 11px; border: 0; border-top: 1px solid var(--fd-line); border-radius: 0; background: rgba(8, 11, 18, 0.6); }
.fd-apple .fd-foot p { margin: 0; }
.fd-apple .section-title { font-size: 21px; letter-spacing: -.025em; font-weight: 600; }
.fd-apple .section-sub { font-size: 13px; margin-top: 6px; }
.fd-apple .fixed > [class*="bg-black/"] { background-color: #03050b88; }
.fd-apple .fd-tool-toolbar { display: flex; align-items: center; gap: 20px; height: 64px; flex-shrink: 0; border: 0; border-bottom: 1px solid var(--fd-line); border-radius: 0; padding: 0 24px; }
.fd-tool-toolbar a { color: #a0ceff; font-size: 13px; }
.fd-tool-toolbar > span:not(.fd-window-lights) { margin-right: auto; padding-left: 16px; border-left: 1px solid var(--fd-line); font-size: 13px; color: var(--fd-muted); }
.fd-apple .fd-tool-content { flex: 1; min-height: 0; overflow: auto; background: transparent; }
.fd-embedded body.fd-apple { background: var(--fd-bg) !important; }
.fd-embedded .fd-tool-toolbar { display: none; }
html.fd-embedded .fd-bar,
html.fd-embedded #sidebar,
html.fd-embedded #mobileSidebarOverlay,
html.fd-embedded .fd-foot,
html.fd-embedded #aiFabDock,
html.fd-embedded #aiChatWidget,
html.fd-embedded #aiWakeLayer { display: none !important; }
html.fd-embedded .fd-app-body { min-height: 100vh; }
html.fd-embedded .fd-app-body > main,
html.fd-embedded .fd-app-body > .flex-1 { width: 100%; }
.fd-apple .fd-admin-window { flex-direction: row; overflow: hidden; }
.fd-apple .fd-admin-side { width: 220px; border-radius: 0; background: rgba(16, 20, 30, .4); }
.fd-apple .fd-admin-top { border-radius: 0; background: rgba(15, 18, 27, .58); }
.fd-apple .fd-admin-window main { background: transparent; }
.fd-apple.fd-auth .animate-slide-up { background: transparent; border: 0; padding: 0; max-width: 480px; box-shadow: none; backdrop-filter: none; }
.fd-apple.fd-auth .animate-slide-up > .fd-sheet { background: transparent; border: 0; padding: 0; box-shadow: none; backdrop-filter: none; }
.fd-apple.fd-auth .animate-slide-up > .text-center { margin-bottom: 24px; }
.fd-apple.fd-auth .fd-mark-lg { width: 56px; height: 56px; border-radius: 12px; }
.fd-apple.fd-auth h1 { font-size: 26px; font-weight: 700; }
.fd-apple .waterfall { column-count: 1; column-gap: 20px; }
@media (min-width: 640px) { .fd-apple .waterfall { column-count: 2; } }
@media (min-width: 1300px) { .fd-apple .waterfall { column-count: 3; } }
.fd-apple .fd-mc-stage { padding: 32px; }
.fd-apple .fd-mc-stage .fd-stage-inner { display: flex; flex-direction: column; align-items: stretch; gap: 16px; padding: 0; }
.fd-mc-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.fd-mc-heading h1 { color: var(--fd-ink); font-size: 30px; font-weight: 600; letter-spacing: -.035em; }
.fd-apple .fd-mc-stage .fd-lead { max-width: 65ch; margin: 0; font-size: 14px; line-height: 1.7; }
.fd-apple .fd-mc-meters { width: 100%; gap: 16px; margin-top: 8px; }
.fd-apple .fd-mc-meter { padding: 20px; }
.fd-apple .fd-mc-k { letter-spacing: 0; font-size: 12px; }
.fd-apple .fd-mc-bar { background: #ffffff12; }
.fd-apple .fd-mc-layout { padding: 24px 32px 32px; gap: 24px; }
.fd-apple .fd-mc-model:first-child { grid-column: auto; }
.fd-apple .fd-mc-side { top: 24px; }
.fd-apple .fd-desk { min-height: 100%; padding: 24px; gap: 20px; }
.fd-apple .fd-desk-grid { grid-template-columns: 1fr; height: auto; min-height: 0; gap: 16px; }
.fd-apple .fd-desk-chat { order: -1; min-height: min(560px, 65dvh); }
.fd-apple .fd-desk-stats .is-live b { color: #83dba6; }
.fd-apple :is(.fd-desk-rail-head h2, .fd-desk-chat-head h2, .fd-desk-board-block h2) { letter-spacing: 0; text-transform: none; }
.fd-apple .fd-csdn { grid-template-columns: 1fr; gap: 16px; }
.fd-apple :is(.fd-csdn-rail, .fd-csdn-aside) { top: 24px; }
@media (min-width: 768px) {
  .fd-apple .fd-csdn { grid-template-columns: 150px minmax(0, 1fr); }
  .fd-apple .fd-csdn-aside { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
}
@media (min-width: 1100px) {
  .fd-apple .fd-desk-grid { grid-template-columns: 180px minmax(0, 1fr); }
  .fd-apple .fd-desk-chat { order: 0; }
  .fd-apple .fd-desk-board { grid-column: 1 / -1; }
}
@media (min-width: 1300px) {
  .fd-apple .fd-desk-grid { grid-template-columns: 180px minmax(0, 1fr) 220px; }
  .fd-apple .fd-desk-board { grid-column: auto; }
  .fd-apple .fd-csdn { grid-template-columns: 150px minmax(0, 1fr) 220px; }
  .fd-apple .fd-csdn-aside { grid-column: auto; display: block; }
}

/* Home controls share the rounded glass material of iPhone widgets. */
.fd-home { padding: 36px 40px 48px; }
.fd-home-welcome { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.fd-home-welcome h1 { font-size: clamp(28px, 3vw, 38px); font-weight: 600; line-height: 1.2; letter-spacing: -.04em; color: var(--fd-ink); }
.fd-home-welcome p { margin-top: 12px; color: var(--fd-muted); font-size: 14px; }
.fd-apple .fd-home .fd-home-search { position: relative; z-index: 50; width: min(400px, 45%); flex-shrink: 0; margin: 0; }
.fd-apple .fd-home-search .fd-seek { border-radius: 999px; padding: 8px 8px 8px 20px; gap: 12px; }
.fd-apple .fd-home-search .fd-seek input { font-size: 13px; padding: 0; height: 36px; border: 0 !important; }
.fd-apple .fd-home-search .fd-seek button { padding: 10px 18px; font-size: 13px; }
.fd-home-search .fd-seek-icon { width: 18px; height: 18px; }
.fd-launchpad { position: relative; margin-bottom: 28px; padding: 24px 28px; border: 1px solid #ffffff29; border-radius: 32px; background: rgba(45, 51, 70, .27); backdrop-filter: blur(30px) saturate(1.7); -webkit-backdrop-filter: blur(30px) saturate(1.7); box-shadow: inset 0 1px #ffffff40, inset 0 -1px #ffffff08, 0 18px 50px #0002; }
.fd-home-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.fd-home-section-head h2 { font-size: 15px; font-weight: 600; }
.fd-home-section-head a { font-size: 13px; color: #a0ceff; }
.fd-launch-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
.fd-launch-grid a { display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--fd-ink); font-size: 13px; text-align: center; }
.fd-launch-grid a small { color: var(--fd-muted); font-size: 11px; }
.fd-system-icon { display: flex; align-items: center; justify-content: center; width: 58px; height: 58px; border-radius: 19px; border: 1px solid #ffffff30; box-shadow: inset 0 1px #ffffff66, 0 8px 18px #0003; transition: transform .2s; }
.fd-apple .fd-system-icon .fd-nav-ico { width: 29px; height: 29px; color: white; }
.fd-launch-grid a:hover .fd-system-icon { transform: translateY(-4px) scale(1.04); }
.fd-icon-blue { background: linear-gradient(#459ce9c9, #1755a5c9); }
.fd-icon-purple { background: linear-gradient(#ad90e0c9, #7553b3c9); }
.fd-icon-orange { background: linear-gradient(#edb864c9, #b37632c9); }
.fd-icon-green { background: linear-gradient(#66c49bc9, #2c7c62c9); }
.fd-icon-slate { background: linear-gradient(#91abc9c9, #446388c9); }
.fd-icon-pink { background: linear-gradient(#d891a9c9, #964866c9); }
.fd-home-contents { display: grid; gap: 32px; }
.fd-apple .fd-home-meter { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 0; background: transparent; }
.fd-apple .fd-home-meter > a { border: 0; border-right: 1px solid #ffffff12; padding: 12px 20px; background: transparent; display: grid; grid-template-columns: 28px 1fr; gap: 4px 12px; align-items: center; text-align: left; border-radius: 0; backdrop-filter: none; box-shadow: none; }
.fd-apple .fd-home-meter > a:last-child { border-right: 0; }
.fd-apple .fd-home-meter .fd-stats-icon { grid-row: span 2; background: none; padding: 0; margin: 0; width: 24px; height: 24px; }
.fd-apple .fd-home-meter b { font-size: 24px; font-weight: 600; line-height: 1.1; }
.fd-apple .fd-home-meter span:not(.fd-stats-icon) { font-size: 11px; }
.fd-home-contents > section { min-width: 0; }
.fd-home-contents .mb-5 { margin-bottom: 18px; }
.fd-apple .fd-home .app-card { padding: 20px; }
.fd-apple .fd-home .fd-perk { background: transparent; padding: 20px 0; border-radius: 0; border-width: 1px 0 0; backdrop-filter: none; box-shadow: none; }
.fd-apple .fd-home .fd-perk-kicker { color: var(--fd-muted); letter-spacing: 0; font-size: 12px; }
.fd-home-perks .fd-perk-kicker::before { display: none; }
.fd-apple .fd-home .fd-perk h3 { font-size: 16px; }
.fd-apple .fd-home .fd-perk p { font-size: 13px; }
.fd-apple .fd-home .fd-ch { border-radius: 20px; padding: 16px; text-align: left; backdrop-filter: blur(20px); }
.fd-apple .fd-home .fd-ch-index { display: none; }
.fd-apple .fd-home .fd-ch .mt-2 { margin-top: 0; }
.fd-apple .fd-home .fd-thread a { border-radius: 0; border-width: 0 0 1px; padding: 16px 0; box-shadow: none; }
.fd-apple .fd-home .fd-empty { border: 1px dashed #ffffff29; border-radius: 24px; padding: 28px; background: #ffffff05; }
/* A conventional browse-and-accept task market. */
.fd-task-market { padding: 32px 40px 48px; }
.fd-task-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.fd-task-heading h1 { font-size: 32px; font-weight: 600; letter-spacing: -.035em; }
.fd-task-heading p { margin-top: 10px; font-size: 14px; color: var(--fd-muted); line-height: 1.7; }
.fd-task-heading > a { flex-shrink: 0; font-size: 13px; }
.fd-task-scopes { display: flex; gap: 28px; border-bottom: 1px solid var(--fd-line); margin-bottom: 24px; overflow-x: auto; }
.fd-task-scopes a { position: relative; padding: 0 0 16px; color: var(--fd-muted); font-size: 14px; white-space: nowrap; }
.fd-task-scopes a.is-on { color: #e8f3ff; }
.fd-task-scopes a.is-on::after { content: ""; position: absolute; bottom: 0; left: 0; right: 0; height: 3px; border-radius: 3px; background: #90c3ff; }
.fd-task-filters { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; margin-bottom: 24px; }
.fd-task-search { display: flex; gap: 10px; width: min(100%, 420px); }
.fd-task-search input { min-width: 0; flex: 1; }
.fd-task-search button { flex-shrink: 0; font-size: 13px; }
.fd-task-statuses { display: flex; flex-wrap: wrap; gap: 10px; }
.fd-task-statuses a { padding: 9px 14px; border: 1px solid #ffffff12; border-radius: 999px; color: var(--fd-muted); font-size: 12px; background: #ffffff04; }
.fd-task-statuses a.is-on { background: #83b8ff1f; color: #cce5ff; border-color: #91bdff42; }
.fd-task-list-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 16px; font-size: 12px; color: var(--fd-muted); }
.fd-task-list-head b { color: var(--fd-ink); font-weight: 500; }
.fd-task-list { display: grid; gap: 16px; }
.fd-task-card { display: flex; align-items: center; gap: 24px; padding: 24px 28px; border: 1px solid var(--fd-line); border-radius: 24px; background: var(--fd-surface); backdrop-filter: var(--fd-blur); -webkit-backdrop-filter: var(--fd-blur); box-shadow: var(--fd-sheen); }
.fd-task-card-body { flex: 1; min-width: 0; }
.fd-task-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; color: var(--fd-muted); font-size: 11px; }
.fd-task-state { padding: 4px 9px; border-radius: 8px; background: #ffffff0d; color: #ced8e8; }
.fd-task-state.is-open { color: #9be1b7; background: #67c38a16; }
.fd-task-state.is-accepted { color: #b9d9ff; background: #83b8ff1c; }
.fd-task-state.is-quoted { color: #ecd298; background: #c39e6719; }
.fd-task-card h2 { font-size: 18px; font-weight: 600; margin: 12px 0 10px; overflow-wrap: anywhere; }
.fd-task-card h2 a:hover { color: #b9d9ff; }
.fd-task-description { color: var(--fd-muted); font-size: 13px; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.fd-task-meta { display: flex; flex-wrap: wrap; gap: 16px; color: var(--fd-muted); font-size: 11px; margin-top: 16px; }
.fd-task-card-action { display: flex; flex-direction: column; align-items: flex-end; flex-shrink: 0; gap: 10px; min-width: 160px; max-width: 30%; padding-left: 24px; border-left: 1px solid #ffffff0c; }
.fd-task-reward-label { font-size: 10px; color: var(--fd-muted); }
.fd-task-card-action strong { color: #efd397; font-size: 22px; font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.fd-task-card-action > a { margin-top: 6px; font-size: 12px; }
.fd-task-empty { text-align: center; padding: 56px 24px; border: 1px dashed var(--fd-line); border-radius: 24px; background: #ffffff04; }
.fd-task-empty h2 { font-size: 20px; font-weight: 500; }
.fd-task-empty p { font-size: 13px; color: var(--fd-muted); margin: 12px 0 24px; }
.fd-task-pagination { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 28px; font-size: 12px; color: var(--fd-muted); }
@media (max-width: 767px) {
  .fd-task-market { padding: 24px 18px 32px; }
  .fd-task-heading { align-items: flex-start; gap: 12px; }
  .fd-task-heading h1 { font-size: 26px; }
  .fd-task-heading p { font-size: 12px; }
  .fd-task-heading > a { padding: 10px 14px; font-size: 11px; }
  .fd-task-scopes { gap: 22px; }
  .fd-task-card { flex-direction: column; align-items: stretch; padding: 20px; gap: 20px; }
  .fd-task-card-action { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; max-width: none; min-width: 0; border-left: 0; border-top: 1px solid #ffffff0c; padding: 16px 0 0; }
  .fd-task-reward-label { display: none; }
  .fd-task-card-action strong { font-size: 18px; text-align: left; }
  .fd-task-card-action > a { margin: 0; padding: 10px 14px; }
}
/* The home animation is a glass core and moving reflections, not desktop chrome. */
.fd-apple .fd-liquid-hero { display: grid; position: relative; z-index: 40; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; gap: 32px; min-height: 400px; padding: 8px 8px 24px; margin-bottom: 20px; }
.fd-liquid-copy { position: relative; z-index: 2; min-width: 0; }
.fd-apple .fd-liquid-copy h1 { font-size: clamp(40px, 4.6vw, 72px); font-weight: 600; letter-spacing: -.055em; line-height: 1.16; text-shadow: 0 2px 40px #0002; }
.fd-liquid-copy h1 > span { display: block; }
.fd-apple .fd-liquid-copy > p { max-width: 38em; font-size: 15px; line-height: 1.85; margin: 20px 0 24px; color: #b5bed2; }
.fd-apple .fd-liquid-copy .fd-home-search { width: 100%; max-width: 520px; }
.fd-liquid-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; font-size: 13px; }
.fd-liquid-actions .fd-ghost { padding: 12px 20px; font-size: 13px; }
.fd-liquid-art { position: relative; isolation: isolate; width: min(100%, 480px); height: 380px; justify-self: center; }
.fd-liquid-halo { position: absolute; inset: 12% 6%; border-radius: 50%; background: conic-gradient(from 45deg, #5ab9ee50, #678cf950, #b68bcb50, #5ab9ee50); filter: blur(40px); animation: fd-liquid-breathe 9s ease-in-out infinite alternate; }
.fd-liquid-sphere {
  position: absolute; inset: 19% 25%; display: grid; place-items: center; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(ellipse at 26% 15%, #ffffff59, transparent 40%), radial-gradient(ellipse at 72% 85%, #b07fd74d, transparent 58%), linear-gradient(135deg, #79cfff1f, #ffffff06 48%, #7371cc1f);
  border: 1px solid #d9eeff66; backdrop-filter: blur(18px) saturate(1.8); -webkit-backdrop-filter: blur(18px) saturate(1.8);
  box-shadow: inset 8px 10px 24px #d2eeff20, inset -10px -12px 24px #1818444d, 0 0 50px #7ab9ff20, 0 30px 55px #0004;
  animation: fd-liquid-float 8s ease-in-out infinite;
}
.fd-liquid-sphere::before { content: ""; position: absolute; inset: 7%; border-radius: inherit; border-top: 1px solid #ffffffa6; border-left: 1px solid #ffffff3d; transform: rotate(-25deg); filter: blur(.5px); }
.fd-liquid-sphere span { color: #eff6ff; font-size: 84px; font-weight: 400; text-shadow: 0 0 36px #aacfff99; }
.fd-liquid-ring { position: absolute; inset: 12% 8%; border: 1px solid #b9d9ff3d; border-radius: 50%; box-shadow: inset 0 1px #ffffff40, 0 0 14px #91b5ff12; pointer-events: none; }
.fd-liquid-ring-a { transform: rotate(-28deg) scaleY(.64); animation: fd-liquid-orbit-a 16s ease-in-out infinite alternate; }
.fd-liquid-ring-b { inset: 6% 18%; transform: rotate(38deg) scaleX(.62); border-color: #dac5ff33; animation: fd-liquid-orbit-b 20s ease-in-out infinite alternate; }
.fd-liquid-ring::after { content: ""; position: absolute; width: 7px; height: 7px; left: 13%; top: 13%; border-radius: 50%; background: #d9edff; box-shadow: 0 0 16px #c0dfff; }
.fd-liquid-tile {
  position: absolute; z-index: 3; display: grid; grid-template-columns: 40px 1fr; gap: 4px 10px; min-width: 158px; padding: 16px 18px;
  border: 1px solid #ffffff40; border-radius: 24px; background: linear-gradient(135deg, #ffffff19, #ffffff07);
  backdrop-filter: blur(24px) saturate(1.8); -webkit-backdrop-filter: blur(24px) saturate(1.8);
  box-shadow: inset 0 1px #ffffff59, inset 0 -1px #ffffff0d, 0 16px 40px #0003; transition: background .2s, border-color .2s;
}
.fd-liquid-tile > span { grid-row: span 2; display: grid; place-items: center; align-self: center; width: 40px; height: 40px; border-radius: 14px; background: #9abaff14; border: 1px solid #ffffff26; box-shadow: inset 0 1px #ffffff26; }
.fd-liquid-tile .fd-nav-ico { width: 22px; height: 22px; color: #d4e7ff; }
.fd-liquid-tile b { color: #f2f5fc; font-size: 13px; font-weight: 500; align-self: end; }
.fd-liquid-tile small { color: #c1cbdf; font-size: 10px; }
.fd-liquid-tile:hover { background: #ffffff1c; border-color: #ffffff80; }
.fd-liquid-tile-model { top: 28px; right: 6px; }
.fd-liquid-tile-app { top: 158px; left: 0; }
.fd-liquid-tile-task { bottom: 20px; right: 16px; }
.fd-hero-aurora { position: absolute; inset: -20px -20px -50px; overflow: hidden; pointer-events: none; z-index: 0; border-radius: 48px; }
.fd-hero-aurora i { position: absolute; width: 65%; height: 55%; border-radius: 50%; filter: blur(65px); background: linear-gradient(120deg, #5bc5dd1f, #7e8fe52e, #b56bb11f); animation: fd-aurora-flow 12s ease-in-out infinite alternate; }
.fd-hero-aurora i:first-child { left: 20%; top: 4%; transform: rotate(-16deg); }
.fd-hero-aurora i:last-child { right: -10%; bottom: -10%; animation-delay: -6s; }
.fd-hero-stars { position: absolute; inset: 0; pointer-events: none; }
.fd-hero-stars i { position: absolute; left: calc(var(--star-x) * 1%); top: calc(var(--star-y) * 1%); width: 2px; height: 2px; background: #d5e8ff; border-radius: 50%; box-shadow: 0 0 8px #aecbff; animation: fd-star-drift 6s ease-in-out infinite alternate; animation-delay: calc(var(--star-x) * -.1s); }
.fd-hero-stars i:nth-child(1) { --star-x: 7; --star-y: 12; }
.fd-hero-stars i:nth-child(2) { --star-x: 36; --star-y: 7; }
.fd-hero-stars i:nth-child(3) { --star-x: 57; --star-y: 24; }
.fd-hero-stars i:nth-child(4) { --star-x: 66; --star-y: 9; }
.fd-hero-stars i:nth-child(5) { --star-x: 85; --star-y: 13; }
.fd-hero-stars i:nth-child(6) { --star-x: 94; --star-y: 42; }
.fd-hero-stars i:nth-child(7) { --star-x: 46; --star-y: 87; }
.fd-hero-stars i:nth-child(8) { --star-x: 59; --star-y: 77; }
.fd-hero-stars i:nth-child(9) { --star-x: 88; --star-y: 90; }
.fd-hero-stars i:nth-child(10) { --star-x: 75; --star-y: 55; }
.fd-hero-stars i:nth-child(11) { --star-x: 21; --star-y: 94; }
.fd-hero-stars i:nth-child(12) { --star-x: 98; --star-y: 76; }
.fd-liquid-ring-c { inset: 3% 0; border-color: #b6cfff1f; animation: fd-outer-ring 18s ease-in-out infinite alternate; }
.fd-liquid-comet { position: absolute; inset: 12% 8%; pointer-events: none; border-radius: 50%; animation: fd-comet-orbit 7s linear infinite; }
.fd-liquid-comet-b { inset: 4% 15%; animation-duration: 11s; animation-direction: reverse; }
.fd-liquid-comet i { position: absolute; top: 8%; left: 16%; width: 6px; height: 6px; border-radius: 50%; background: #e9f4ff; box-shadow: 0 0 12px 3px #a3caff66, 0 0 28px #88abffaa; }
.fd-liquid-comet i::before { content: ""; position: absolute; right: 2px; top: 1px; width: 36px; height: 3px; border-radius: 50%; background: linear-gradient(90deg, transparent, #c6ddff99); transform: rotate(-34deg); transform-origin: right; }
.fd-liquid-ripple { position: absolute; inset: 18% 24%; border: 1px solid #b1d5ff59; border-radius: 50%; pointer-events: none; animation: fd-core-ripple 5s ease-out infinite; }
.fd-liquid-ripple-b { animation-delay: -2.5s; }
.fd-liquid-sphere::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(115deg, transparent 25%, #ffffff19 45%, #ffffff29 50%, transparent 70%); background-size: 220% 100%; animation: fd-glass-reflect 8s ease-in-out infinite; }
.fd-liquid-tile-model { animation: fd-tile-bob 7s ease-in-out infinite; }
.fd-liquid-tile-app { animation: fd-tile-bob 8s ease-in-out -3s infinite; }
.fd-liquid-tile-task { animation: fd-tile-bob 9s ease-in-out -5s infinite; }
.fd-liquid-tile:hover { animation-play-state: paused; }
.fd-launchpad::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(105deg, transparent 30%, #ffffff05 44%, #ffffff0c 50%, transparent 66%); background-size: 240% 100%; animation: fd-glass-reflect 12s ease-in-out infinite; }
@keyframes fd-aurora-flow { from { translate: -8% -12%; rotate: -12deg; opacity: .5; } to { translate: 10% 15%; rotate: 12deg; opacity: 1; } }
@keyframes fd-star-drift { from { opacity: .15; translate: 0 5px; } to { opacity: .75; translate: 0 -8px; } }
@keyframes fd-outer-ring { from { transform: rotate(-20deg) scaleY(.7); } to { transform: rotate(20deg) scaleY(.9); } }
@keyframes fd-comet-orbit { to { transform: rotate(360deg); } }
@keyframes fd-core-ripple { from { transform: scale(.9); opacity: 0; } 20% { opacity: .55; } to { transform: scale(1.65); opacity: 0; } }
@keyframes fd-glass-reflect { 0%, 20% { background-position: 120% 0; } 80%, 100% { background-position: -100% 0; } }
@keyframes fd-tile-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -7px; } }
.fd-liquid-sparks { position: absolute; inset: 0; pointer-events: none; }
.fd-liquid-sparks i { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #e1edff; box-shadow: 0 0 10px #b6cfff; animation: fd-liquid-spark 5s ease-in-out infinite alternate; }
.fd-liquid-sparks i:nth-child(1) { left: 18%; top: 19%; }
.fd-liquid-sparks i:nth-child(2) { left: 68%; top: 11%; animation-delay: -2s; }
.fd-liquid-sparks i:nth-child(3) { left: 88%; top: 56%; animation-delay: -4s; }
.fd-liquid-sparks i:nth-child(4) { left: 28%; top: 84%; animation-delay: -1s; }
.fd-liquid-sparks i:nth-child(5) { left: 9%; top: 69%; animation-delay: -3s; }
@keyframes fd-liquid-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes fd-liquid-breathe { from { transform: translate(-10px, -8px) scale(.92); opacity: .65; } to { transform: translate(10px, 8px) scale(1.08); opacity: 1; } }
@keyframes fd-liquid-orbit-a { from { transform: rotate(-28deg) scaleY(.64); } to { transform: rotate(-12deg) scaleY(.8); } }
@keyframes fd-liquid-orbit-b { from { transform: rotate(38deg) scaleX(.62); } to { transform: rotate(55deg) scaleX(.82); } }
@keyframes fd-liquid-spark { from { opacity: .2; transform: translateY(8px); } to { opacity: .9; transform: translateY(-8px); } }
@media (max-width: 1100px) {
  .fd-home-welcome { align-items: flex-start; flex-direction: column; gap: 20px; }
  .fd-apple .fd-home .fd-home-search { width: 100%; max-width: 520px; }
  .fd-launch-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px 12px; }
  .fd-apple .fd-liquid-hero { grid-template-columns: 1fr; gap: 8px; padding: 0; }
  .fd-liquid-art { height: 320px; width: min(100%, 420px); }
}
@media (max-width: 767px) {
  .fd-apple .fd-bar > div { height: 60px; padding-inline: 12px; gap: 10px; }
  .fd-apple .fd-toolbar-title { padding-left: 10px; font-size: 12px; }
  .fd-apple .fd-foot { padding: 6px 12px; font-size: 9px; }
  .fd-home { padding: 24px 18px 32px; }
  .fd-launchpad { padding: 20px 12px; border-radius: 28px; }
  .fd-launch-grid { gap: 22px 8px; }
  .fd-home-welcome h1 { font-size: 28px; }
  .fd-apple .fd-home-meter { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px 0; }
  .fd-apple .fd-home-meter > a { padding: 8px 12px; }
  .fd-apple .fd-home-meter > a:nth-child(2) { border-right: 0; }
  .fd-apple .fd-tool-toolbar { gap: 12px; padding-inline: 14px; }
  .fd-apple .fd-admin-window { flex-direction: column; }
  .fd-apple .fd-admin-side { width: 100%; max-height: 12rem; border-right: 0; border-bottom: 1px solid var(--fd-line); flex-shrink: 0; }
  .fd-apple .fd-admin-side > div:last-child { display: none; }
  .fd-apple .fd-admin-side nav { display: flex; gap: 8px; padding: 8px 12px; flex: initial; overflow-x: auto; }
  .fd-apple .fd-admin-side nav > p { display: none; }
  .fd-apple .admin-nav-primary { white-space: nowrap; flex-shrink: 0; }
  .fd-apple .fd-admin-top { padding-inline: 16px; }
  .fd-apple.fd-auth .animate-slide-up { padding: 28px; }
  .fd-apple .fd-mc-stage { padding: 24px 18px; }
  .fd-apple .fd-mc-layout { padding: 20px 18px 30px; }
  .fd-mc-heading h1 { font-size: 26px; }
  .fd-apple .fd-desk { padding: 20px 18px; }
  .fd-apple .fd-liquid-copy h1 { font-size: clamp(38px, 7vw, 52px); }
  .fd-apple .fd-liquid-copy > p { font-size: 13px; line-height: 1.8; margin: 16px 0 20px; }
  .fd-liquid-actions { gap: 8px; margin-top: 16px; }
  .fd-liquid-actions > a { padding: 10px 16px; font-size: 12px; }
  .fd-liquid-art { height: 270px; width: min(100%, 350px); }
  .fd-liquid-sphere { inset: 20% 25%; }
  .fd-liquid-sphere span { font-size: 60px; }
  .fd-liquid-tile { min-width: 0; grid-template-columns: 30px 1fr; gap: 3px 8px; padding: 12px; border-radius: 20px; }
  .fd-liquid-tile > span { width: 30px; height: 30px; border-radius: 11px; }
  .fd-liquid-tile .fd-nav-ico { width: 18px; height: 18px; }
  .fd-liquid-tile b { font-size: 11px; }
  .fd-liquid-tile small { font-size: 9px; }
  .fd-liquid-tile-model { top: 22px; right: 0; }
  .fd-liquid-tile-app { top: 122px; left: 0; }
  .fd-liquid-tile-task { bottom: 12px; right: 0; }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .fd-apple :is(.fd-bar, .fd-dock, .fd-sheet, .glass, .glass-heavy, .app-card, .fd-launchpad, .fd-admin-side, .fd-admin-top) { background: #1b2030; }
}
@media (max-width: 420px) { .fd-apple .fd-toolbar-title { display: none; } }
@media (prefers-reduced-transparency: reduce) {
  .fd-apple { --fd-glass-strong: #171b26; --fd-surface: #202533; --fd-glass: #202533; --fd-blur: none; }
  .fd-apple :is(.fd-bar, .fd-dock, .fd-foot, .fd-launchpad, .fd-admin-side, .fd-admin-top), .fd-apple.fd-auth .animate-slide-up { background: #171b26; backdrop-filter: none; -webkit-backdrop-filter: none; }
}
@media (prefers-reduced-motion: reduce) {
  .fd-apple *, .fd-apple *::before, .fd-apple *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media (prefers-contrast: more) {
  .fd-apple { --fd-line: #8591a5; --fd-muted: #d4d9e4; --fd-surface: #151a25; --fd-glass-strong: #111620; }
}

/* =============================================================================
   Fantasy Dimension · Precision Visual Effects (Fluid Aurora, Shimmer, Spotlight)
   ============================================================================= */

/* 1. 流光字体 (Animated Shimmer Text) */
@keyframes fd-shimmer-sweep {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.fd-shimmer-text {
  background: linear-gradient(100deg, #ffffff 0%, #cbd5e1 20%, #818cf8 40%, #38bdf8 60%, #ffffff 80%, #cbd5e1 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  animation: fd-shimmer-sweep 8s ease-in-out infinite;
}

/* 2. 背景柔和漂浮极光 (Hero Floating Aurora) */
@keyframes fd-aurora-breathe {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.18; }
  50% { transform: translate(25px, -15px) scale(1.1); opacity: 0.28; }
}
.fd-aurora-sphere {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  animation: fd-aurora-breathe 10s ease-in-out infinite alternate;
}
.fd-aurora-1 {
  width: 550px;
  height: 320px;
  background: radial-gradient(circle, #6366f1 0%, #3b82f6 50%, transparent 75%);
  top: -60px;
  left: 15%;
}
.fd-aurora-2 {
  width: 480px;
  height: 280px;
  background: radial-gradient(circle, #8b5cf6 0%, #ec4899 60%, transparent 80%);
  top: -30px;
  right: 15%;
  animation-delay: -5s;
}

/* 3. 探照灯鼠标感应光效 (Spotlight Glow Card) */
.fd-spotlight-group {
  --spotlight-color: rgba(99, 102, 241, 0.15);
}
.fd-spotlight-card {
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.fd-spotlight-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(400px circle at var(--mouse-x, -500px) var(--mouse-y, -500px), var(--spotlight-color, rgba(99, 102, 241, 0.18)), transparent 60%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1;
}
.fd-spotlight-card:hover::before {
  opacity: 1;
}
.fd-spotlight-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.18) !important;
  box-shadow: var(--fd-sheen), 0 16px 36px -10px rgba(0, 0, 0, 0.6) !important;
}

/* 4. 全息 3D 展位科幻动态扫光 (Holographic Sweep & Grid) */
@keyframes fd-holo-sweep {
  0% { transform: translateX(-100%) rotate(25deg); }
  100% { transform: translateX(250%) rotate(25deg); }
}
.fd-holo-card {
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 35px -10px rgba(99, 102, 241, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.fd-holo-card::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.05) 50%, transparent 100%);
  transform: rotate(25deg);
  animation: fd-holo-sweep 7s ease-in-out infinite;
  pointer-events: none;
}
.fd-holo-grid {
  background-image: 
    linear-gradient(rgba(0, 240, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 240, 255, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* =============================================================================
   5. 强烈赛博专属组件 (HUD Corners, Glitch Text, Tactical Cut, Neon Lasers)
   ============================================================================= */

/* 经典赛博 45° 战术切角 */
.cyber-cut {
  clip-path: polygon(
    0 0,
    calc(100% - 14px) 0,
    100% 14px,
    100% 100%,
    14px 100%,
    0 calc(100% - 14px)
  );
}

.cyber-cut-sm {
  clip-path: polygon(
    0 0,
    calc(100% - 8px) 0,
    100% 8px,
    100% 100%,
    8px 100%,
    0 calc(100% - 8px)
  );
}

/* 霓虹发光文字与微色散 */
.cyber-neon-cyan {
  color: #00f0ff !important;
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.6), 0 0 25px rgba(0, 240, 255, 0.3);
}

.cyber-neon-magenta {
  color: #ff007f !important;
  text-shadow: 0 0 10px rgba(255, 0, 127, 0.6), 0 0 25px rgba(255, 0, 127, 0.3);
}

.cyber-neon-yellow {
  color: #ffe600 !important;
  text-shadow: 0 0 10px rgba(255, 230, 0, 0.6), 0 0 25px rgba(255, 230, 0, 0.3);
}

/* HUD 战术瞄准角标容器 (Corner Brackets) */
.cyber-hud-bracket {
  position: relative;
}
.cyber-hud-bracket::before,
.cyber-hud-bracket::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  pointer-events: none;
  z-index: 2;
  border-color: #00f0ff;
}
.cyber-hud-bracket::before {
  top: -1px;
  left: -1px;
  border-top: 2px solid #00f0ff;
  border-left: 2px solid #00f0ff;
}
.cyber-hud-bracket::after {
  bottom: -1px;
  right: -1px;
  border-bottom: 2px solid #00f0ff;
  border-right: 2px solid #00f0ff;
}

/* 霓虹流光扫描框 */
.cyber-scan-border {
  position: relative;
  border: 1px solid rgba(0, 240, 255, 0.4);
  box-shadow: 0 0 15px -3px rgba(0, 240, 255, 0.3), inset 0 0 15px -3px rgba(0, 240, 255, 0.15);
}
.cyber-scan-border:hover {
  border-color: #00f0ff;
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.5), inset 0 0 20px rgba(0, 240, 255, 0.25);
}

/* 赛博状态指示灯呼吸灯 */
@keyframes cyber-pulse-dot {
  0%, 100% { opacity: 1; filter: drop-shadow(0 0 8px #00f0ff); }
  50% { opacity: 0.3; filter: drop-shadow(0 0 2px #00f0ff); }
}
.cyber-dot-cyan {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #00f0ff;
  animation: cyber-pulse-dot 1.8s ease-in-out infinite;
}
.cyber-dot-magenta {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #ff007f;
  animation: cyber-pulse-dot 1.8s ease-in-out infinite 0.9s;
}

/* 赛博战术徽章 */
.cyber-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--fd-font);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.4);
  color: #00f0ff;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

/* =============================================================================
   6. 赛博认证终端特装特效 (Cyber Auth Gate - Scanner, Glow, HUD Controls)
   ============================================================================= */

/* 垂直全息扫描光线 (Vertical Hologram Scanner) */
@keyframes cyber-scanner-move {
  0% { top: -2px; opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

.cyber-auth-terminal {
  position: relative;
  background: linear-gradient(175deg, rgba(7, 12, 22, 0.95) 0%, rgba(4, 7, 13, 0.98) 100%);
  border: 1px solid rgba(0, 240, 255, 0.35);
  box-shadow: 0 0 35px -5px rgba(0, 240, 255, 0.3), 0 0 70px -10px rgba(255, 0, 127, 0.15), inset 0 0 20px rgba(0, 240, 255, 0.08);
  overflow: hidden;
}

.cyber-auth-terminal::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, #00f0ff 30%, #ff007f 70%, transparent 100%);
  box-shadow: 0 0 15px #00f0ff, 0 0 8px #ff007f;
  animation: cyber-scanner-move 5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  pointer-events: none;
  z-index: 20;
}

/* 赛博输入框包裹层 (Cyber Input Wrap) */
.cyber-field {
  position: relative;
  transition: all 0.2s ease;
}

.cyber-field-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--fd-font);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7dd3fc;
  margin-bottom: 6px;
}

.cyber-field-input {
  width: 100%;
  background: rgba(3, 6, 12, 0.85) !important;
  border: 1px solid rgba(0, 240, 255, 0.25) !important;
  color: #e0f2fe !important;
  font-family: var(--fd-font);
  font-size: 13px;
  padding: 11px 14px;
  border-radius: 4px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.6);
  transition: all 0.2s ease;
}

.cyber-field-input:focus {
  border-color: #00f0ff !important;
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.4), inset 0 1px 3px rgba(0, 0, 0, 0.8) !important;
  outline: none;
}

.cyber-field-input::placeholder {
  color: #475569 !important;
  font-size: 12px;
}

/* 赛博高能发射按钮 (High-Energy Cyber Trigger) */
@keyframes cyber-btn-energy {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.cyber-btn-trigger {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 20px;
  font-family: var(--fd-font);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #030712 !important;
  background: linear-gradient(135deg, #00f0ff 0%, #00d4ff 40%, #ff007f 100%) !important;
  background-size: 200% 200%;
  border: 1px solid #00f0ff !important;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
  transition: all 0.2s ease;
  cursor: pointer;
  animation: cyber-btn-energy 6s ease infinite;
}

.cyber-btn-trigger:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
  box-shadow: 0 0 35px rgba(0, 240, 255, 0.8), 0 0 15px rgba(255, 0, 127, 0.5) !important;
}

.cyber-btn-trigger:active {
  transform: translateY(1px);
  filter: brightness(0.95);
}

/* 赛博第三方登录 HUD 按钮 */
.cyber-oauth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px 16px;
  font-family: var(--fd-font);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #bae6fd;
  background: rgba(0, 240, 255, 0.04);
  border: 1px solid rgba(0, 240, 255, 0.2);
  transition: all 0.2s ease;
}

.cyber-oauth-btn:hover {
  background: rgba(0, 240, 255, 0.12);
  border-color: #00f0ff;
  color: #ffffff;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.35);
}

/* 验证码预览边框 */
.cyber-captcha-box {
  border: 1px solid rgba(0, 240, 255, 0.4);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
  transition: all 0.2s ease;
}

.cyber-captcha-box:hover {
  border-color: #00f0ff;
  box-shadow: 0 0 18px rgba(0, 240, 255, 0.45);
}
