@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700;800&display=swap');

/* ── 方案C · 轻量空间未来（visionOS）全局基底 ───────────────────── */
/* 柔彩雾背景：全站 body 统一（固定不随滚动） */
body {
  background-color: #eef2fb;
  background-image:
    radial-gradient(46% 42% at 5% 0%, rgba(99,102,241,.14), transparent 60%),
    radial-gradient(46% 40% at 97% 3%, rgba(34,211,238,.13), transparent 60%),
    radial-gradient(58% 52% at 62% 104%, rgba(168,85,247,.08), transparent 60%);
  background-attachment: fixed;
}
/* 玻璃磨砂卡：surface-container-lowest 同时是卡片/侧栏/顶栏底色，
   token 已改半透明白，这里叠加磨砂 + 柔和投影 + 顶部高光 */
.bg-surface-container-lowest {
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  backdrop-filter: blur(18px) saturate(1.15);
  box-shadow: 0 10px 30px rgba(45,55,95,.07), inset 0 1px 0 rgba(255,255,255,.55);
}
/* 兜底：点击上传/生成后 JS 动态渲染的结果卡/弹窗常写死 bg-white，
   只对"带卡片圆角"的 bg-white 同样玻璃化（不影响小胶囊/文档纸/半透明变体） */
.bg-white.rounded-lg, .bg-white.rounded-xl, .bg-white.rounded-2xl {
  background-color: rgba(255,255,255,0.72) !important;
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  backdrop-filter: blur(18px) saturate(1.15);
  box-shadow: 0 10px 30px rgba(45,55,95,.07), inset 0 1px 0 rgba(255,255,255,.55);
}
/* 靛→青渐变工具类（可选用于强调卡 / 文案 / 进度） */
.wk-grad-text { background: linear-gradient(120deg,#6366f1,#22d3ee); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.wk-grad-bg { background-image: linear-gradient(135deg,#4f46e5,#22d3ee); }
.wk-grad-bar { background-image: linear-gradient(90deg,#6366f1,#22d3ee); }

.material-symbols-outlined { font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24; }
.icon-fill { font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24; }

/* ── 商业级排版基线 ─────────────────────────────────────────── */
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
/* Hanken Grotesk 标题统一字间距与字重节奏 */
.font-headline-lg, .font-headline-md, .font-display-kpi { letter-spacing: -0.01em; }
/* 全站交互过渡 + 统一 focus 可见态（键盘可达性 + 商业级细节） */
a, button, input, select, textarea { transition: color .15s ease, background-color .15s ease, border-color .15s ease, box-shadow .15s ease, opacity .15s ease, transform .15s ease; }
:focus-visible { outline: 2px solid #4f46e5; outline-offset: 2px; border-radius: 4px; }
button:focus:not(:focus-visible) { outline: none; }
/* 统一卡片柔和阴影（opt-in，单光源、低透明度） */
.wk-elev { box-shadow: 0 1px 2px rgba(11,28,48,.04), 0 4px 12px rgba(11,28,48,.06); }
.wk-elev-ai { box-shadow: 0 4px 16px rgba(0,194,209,.12); }

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #c3c6d7; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #737686; }

/* ── 侧边栏：商业级层级 ──────────────────────────────────────── */
.nav-sub { max-height: 0; overflow: hidden; transition: max-height .28s ease; }
.nav-group.open .nav-sub { max-height: 520px; }
.nav-group.open .nav-caret { transform: rotate(180deg); }
.nav-caret { transition: transform .2s ease; }
/* 分区小标题（MENU / 业务域分隔） */
.nav-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .08em; color: #94a0b8; padding: 0 16px; }
/* 子项：略小一号、靠竖线分组，hover 有左缩进微动 */
.nav-leaf { font-size: 13px; }
.nav-leaf:hover { transform: translateX(2px); }
/* 子菜单整体挂一条竖向引导线，强化"域→页"从属 */
.nav-sub-rail { border-left: 1px solid #E2E8F0; margin-left: 30px; padding-left: 0; }

/* AI 微光（设计稿里的 AI Sparkle / 副驾） */
@keyframes wk-pulse { 0%,100%{opacity:.55} 50%{opacity:1} }
.ai-pulse { animation: wk-pulse 2.2s ease-in-out infinite; }

/* AI 推理打字 */
.ai-typing::after { content:'▍'; animation: wk-pulse 1s steps(1) infinite; color:#4f46e5; }

[x-cloak] { display:none !important; }
