/* 首页的动态画面（.dm）：在网页里重新做的一小块 Mac 桌面：壁纸、菜单栏、刘海、真的窗口内容（对话、文章、文档、日历、邮件），
   和 Flicky 在上面出现的东西（刘海长出的卡片、光标旁的面板、灰字续写、标注、它自己的光标、输入法候选、剪贴板）。每块按固定的逻辑尺寸
   （--w × --h）排好，整块等比缩放到框里（--k，由 js/demos.js 量），所以什么宽度下都是完整的一块。
   样式照原型（design/v12/src/notch.css、caret.css、cursor.css、ime.css）：刘海纯黑、浮层毛玻璃圆角 14、标注是深灰 2 pt 线加浅色晕。
   类名都带 f- 前缀，不和官网别的样式撞。 */
.dm { position: relative; margin: 0; aspect-ratio: var(--w) / var(--h); border-radius: 16px; overflow: hidden; background: #1a1c1a;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 40px 90px -30px rgba(0, 0, 0, .85); }
.dm.tall { width: 100%; max-width: 420px; justify-self: center; }
.dk { position: absolute; left: 0; top: 0; width: calc(var(--w) * 1px); height: calc(var(--h) * 1px); transform: scale(var(--k, 1)); transform-origin: 0 0; overflow: hidden;
  background: url(../img/wall.jpg) center / cover; color: #1d1d1f; font: 400 13px/1.45 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  --mat: rgba(246, 246, 248, .8); --fill: rgba(255, 255, 255, .72); --edge: rgba(0, 0, 0, .1); --ink: #1d1d1f; --ink2: rgba(29, 29, 31, .58); --sel: rgba(0, 0, 0, .06); --quiet: rgba(0, 0, 0, .05);
  --shadow: 0 0 0 .5px var(--edge), 0 10px 30px rgba(0, 0, 0, .22); --sm: cubic-bezier(.32, .72, 0, 1); --sp: cubic-bezier(.34, 1.5, .5, 1); }
.dk * { box-sizing: border-box; }
.dk img { display: block; }
.dk.dim::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .12); pointer-events: none; }

/* 菜单栏：右边几颗图标和时间 */
.f-mb { position: absolute; left: 0; right: 0; top: 0; height: 26px; display: flex; align-items: center; gap: 12px; padding: 0 14px; color: #fff; font-size: 12px; font-weight: 500;
  background: rgba(0, 0, 0, .14); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); z-index: 5; }
.f-mb .ap { font-weight: 700; }
.f-mb .sp { flex: 1; }
.f-mb svg { width: 15px; height: 15px; }

/* 刘海：纯黑，贴着上沿，宽高用 smooth 长；内容层换的时候淡入淡出 */
.f-nt { position: absolute; left: 50%; top: 0; z-index: 30; width: calc(var(--nw, 190) * 1px); height: calc(var(--nh, 30) * 1px); translate: -50% 0;
  transition: width .5s var(--sm), height .5s var(--sm); }
.f-nb { position: absolute; inset: 0; background: #000; color: #fff; overflow: hidden; border-radius: 0 0 calc(var(--nr, 10) * 1px) calc(var(--nr, 10) * 1px); transition: border-radius .5s var(--sm); }
.f-ne { position: absolute; top: 0; width: 7px; height: 7px; }
.f-ne.l { right: 100%; background: radial-gradient(circle at 0 100%, transparent 6.5px, #000 7px); }
.f-ne.r { left: 100%; background: radial-gradient(circle at 100% 100%, transparent 6.5px, #000 7px); }
.f-nl { position: absolute; inset: 0; animation: f-in .35s ease-out both; }
.f-nl.out { animation: f-out .18s ease-out both; }
.f-nl.grow > .f-nc { transform-origin: 50% 0; animation: f-grow .4s var(--sm) .06s both; }
@keyframes f-in { from { opacity: 0; } }
@keyframes f-out { to { opacity: 0; } }
@keyframes f-grow { from { opacity: 0; transform: scale(.85); } }
.f-ns { position: absolute; left: 0; right: 0; top: 0; height: 30px; }
.f-ns .lf, .f-ns .rt { position: absolute; top: 0; height: 100%; display: flex; align-items: center; gap: 6px; white-space: nowrap; font-size: 12px; font-weight: 600; }
.f-ns .lf { left: 14px; } .f-ns .rt { right: 14px; }
.f-ns .cl { width: 19px; height: 14px; }
.f-ns .ic { width: 15px; height: 15px; border-radius: 3.5px; }
.f-ns .dim { color: rgba(255, 255, 255, .55); font-weight: 500; }
/* 黑色的标志在刘海里反成白的 */
.f-nb img[src$="slack.svg"] { filter: invert(1); }
.f-dots { display: inline-flex; gap: 3px; margin-left: 2px; }
.f-dots i { width: 3.5px; height: 3.5px; border-radius: 50%; background: #fff; opacity: .3; animation: f-dot 1.1s ease-in-out infinite; }
.f-dots i:nth-child(2) { animation-delay: .18s; } .f-dots i:nth-child(3) { animation-delay: .36s; }
@keyframes f-dot { 40% { opacity: 1; transform: translateY(-1.5px); } }
.f-nc { position: absolute; left: 18px; right: 18px; top: 38px; display: flex; flex-direction: column; }
.f-nc .t1 { display: flex; align-items: center; gap: 9px; font-size: 15px; font-weight: 600; line-height: 20px; white-space: nowrap; }
.f-nc .t1 .g { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.f-nc .t1 .n { flex: none; font-size: 12px; font-weight: 400; color: rgba(255, 255, 255, .45); }
.f-nc .ic { width: 18px; height: 18px; border-radius: 4px; flex: none; }
.f-nc .sub { margin-top: 5px; font-size: 13px; line-height: 18px; color: rgba(255, 255, 255, .55); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.f-nc .fl { margin-top: 10px; display: flex; flex-direction: column; gap: 2px; }
.f-nc .fl div { display: flex; align-items: center; gap: 9px; height: 26px; font-size: 13px; color: rgba(255, 255, 255, .85); }
.f-nc .bts { display: flex; align-items: center; justify-content: flex-end; gap: 14px; margin-top: 12px; height: 28px; }
.f-nc .lk { font-size: 13px; color: rgba(255, 255, 255, .55); }
.f-nc .pl { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 13px; border-radius: 14px; background: #fff; color: #000; font-size: 13px; font-weight: 600; transition: transform .12s; }
.f-nc .pl .kk { font-weight: 500; color: rgba(0, 0, 0, .45); }
.f-nc.ctr { align-items: center; text-align: center; }
.f-nc .cy { min-height: 20px; max-width: 100%; font-size: 15px; font-weight: 600; line-height: 20px; }
.f-nc .ci { margin-top: 6px; min-height: 18px; font-size: 13px; line-height: 18px; color: rgba(255, 255, 255, .55); }
.f-wave { display: flex; align-items: center; justify-content: center; gap: 2px; height: 12px; margin-top: 12px; }
.f-wave i { width: 2px; height: 3px; border-radius: 1px; background: #fff; opacity: .85; animation: f-wv 1s ease-in-out infinite; }
@keyframes f-wv { 50% { height: 12px; } }
.f-tick { width: 14px; height: 14px; border-radius: 50%; background: #30d158; display: inline-flex; align-items: center; justify-content: center; }
.f-tick::after { content: ""; width: 6px; height: 3.5px; border-left: 1.6px solid #000; border-bottom: 1.6px solid #000; transform: translateY(-1px) rotate(-45deg); }

/* 内容：浅色圆角块，没有窗口外壳 */
.f-card { position: absolute; background: #fff; border-radius: 14px; box-shadow: 0 0 0 .5px rgba(0, 0, 0, .12), 0 18px 50px rgba(0, 0, 0, .3); overflow: hidden; }
.f-hd { flex: none; display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 18px; border-bottom: 1px solid #ececf0; }
.f-hd b { font-size: 14px; font-weight: 700; white-space: nowrap; }
.f-hd span { min-width: 0; font-size: 12px; color: #86868b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.f-hd .ic { width: 18px; height: 18px; }
.f-av { flex: none; width: 30px; height: 30px; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 11px; font-weight: 700; background: linear-gradient(135deg, #3d6b8f, #6d8fa8); }
.f-av.me { background: linear-gradient(135deg, #c9844b, #e0a96d); }
.f-av.sm { width: 24px; height: 24px; border-radius: 6px; font-size: 9.5px; }

/* 对话 */
.f-chat { display: flex; flex-direction: column; }
.f-thr { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 12px; padding: 0 18px 8px; overflow: hidden; }
.f-msg { display: flex; gap: 10px; flex: none; }
.f-day { flex: none; display: flex; align-items: center; gap: 10px; font-size: 11px; font-weight: 600; color: #6e6e73; }
.f-day::before, .f-day::after { content: ""; flex: 1; height: 1px; background: #ececf0; }
.f-day span { padding: 2px 10px; border-radius: 10px; box-shadow: inset 0 0 0 1px #e5e5ea; }
.f-msg .bd { min-width: 0; }
.f-msg .nm { font-size: 13px; font-weight: 700; }
.f-msg .nm span { margin-left: 6px; font-size: 11px; font-weight: 400; color: #86868b; }
.f-msg p { margin: 1px 0 0; font-size: 13.5px; line-height: 1.45; }
.f-msg.new, .f-day.new { animation: f-up .45s var(--sm) both; }
@keyframes f-up { from { opacity: 0; transform: translateY(12px); } }
.f-att { display: inline-flex; align-items: center; gap: 7px; margin-top: 6px; padding: 6px 10px 6px 7px; border-radius: 8px; box-shadow: inset 0 0 0 1px #e5e5ea; font-size: 12px; font-weight: 600; }
.f-in { position: relative; flex: none; margin: 4px 18px 16px; min-height: 38px; padding: 9px 44px 9px 12px; border-radius: 9px; box-shadow: inset 0 0 0 1px #d2d2d7; font-size: 13.5px; line-height: 20px; }
.f-in.on { box-shadow: inset 0 0 0 1.5px #7a7a80; }
.f-in .ph { display: none; color: #a1a1a6; }
.f-in .tx:empty ~ .ph { display: inline; }
.f-in:not(.on) .f-car { display: none; }
.f-in .snd { position: absolute; right: 8px; bottom: 7px; width: 26px; height: 24px; border-radius: 6px; background: #e8e8ed; display: flex; align-items: center; justify-content: center; }
.f-in .snd svg { width: 12px; height: 12px; color: #86868b; }
.f-in.ready .snd { background: #007a5a; } .f-in.ready .snd svg { color: #fff; }
.f-in .f-att { display: flex; width: max-content; margin: 0 0 6px; }
.f-car { display: inline-block; width: 1.5px; height: 1.15em; margin: 0 0 -.2em 1px; background: currentColor; animation: f-blink 1s steps(1) infinite; }
@keyframes f-blink { 50% { opacity: 0; } }
.f-hl { border-radius: 3px; animation: f-hl 1.6s ease-out both; }
@keyframes f-hl { from { background: rgba(10, 132, 255, .25); } to { background: transparent; } }

/* 浮层：毛玻璃、0.5 pt 细边、圆角 14（气泡、剪贴板、截图卡片） */
.f-gl { position: absolute; z-index: 20; border-radius: 14px; color: var(--ink); background: linear-gradient(var(--fill), var(--fill)), var(--mat);
  -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%); box-shadow: var(--shadow);
  opacity: 0; transform: scale(.94) translateY(4px); transform-origin: var(--o, 50% 100%); transition: opacity .18s, transform .35s var(--sp); pointer-events: none; }
.f-gl.in { opacity: 1; transform: none; }
.f-bb { padding: 12px 14px 12px; font-size: 14px; }
.f-bb .h { font-weight: 600; }
.f-rs { display: flex; flex-direction: column; gap: 2px; margin: 8px -8px 0; }
.f-rs div { display: flex; align-items: flex-start; gap: 10px; padding: 7px 9px; border-radius: 9px; line-height: 1.5; }
.f-rs div span { flex: 1; }
.f-rs div.sel { background: var(--sel); }
.f-kc { flex: none; height: 20px; min-width: 22px; padding: 0 6px; border-radius: 10px; background: #1d1d1f; color: #fff; font: 600 11px/20px -apple-system, sans-serif; text-align: center; visibility: hidden; }
.sel > .f-kc { visibility: visible; }
.f-bts { display: flex; justify-content: flex-end; align-items: center; gap: 14px; margin-top: 12px; }
.f-bts .lk { font-size: 13px; font-weight: 500; color: var(--ink2); }
.f-pl { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 13px; border-radius: 14px; background: #1d1d1f; color: #fff; font-size: 13px; font-weight: 600; transition: transform .12s; }
.f-pl .kk { opacity: .55; font-weight: 500; }
.dn { transform: scale(.93); }

/* 网页（报价询价单） */
.f-url { display: flex; align-items: center; justify-content: center; height: 40px; border-bottom: 1px solid #ececf0; background: #f7f7f9; }
.f-url span { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 14px; border-radius: 13px; background: #ececf0; font-size: 12px; color: #515154; }
.f-url svg { width: 10px; height: 10px; }
.f-pg { padding: 20px 28px; }
.f-pg .eb { font-size: 11.5px; font-weight: 600; color: #86868b; letter-spacing: .02em; text-transform: uppercase; }
.f-pg h4 { margin: 4px 0 2px; font-size: 21px; font-weight: 700; letter-spacing: -.01em; }
.f-pg .mt { font-size: 12.5px; color: #6e6e73; }
.f-pg .mt b { color: #1d1d1f; font-weight: 600; }
.f-tb { width: 100%; margin-top: 16px; border-collapse: collapse; font-size: 13px; }
.f-tb th { text-align: left; font-size: 11.5px; font-weight: 600; color: #86868b; padding: 7px 8px; border-bottom: 1px solid #e5e5ea; }
.f-tb td { padding: 10px 8px; border-bottom: 1px solid #f0f0f3; }
.f-tb .num { text-align: right; font-variant-numeric: tabular-nums; }
.f-tb th.num { text-align: right; }
.f-mk { position: relative; display: inline-block; }
/* 标注：它的光标那种深灰 2 pt 线，外面一圈浅色晕 */
.f-mk::after { content: ""; position: absolute; inset: -5px -8px; border-radius: 8px; box-shadow: 0 0 0 2px #4d4948, 0 0 0 6px rgba(255, 255, 255, .7); opacity: 0; transform: scale(1.15); transition: opacity .3s, transform .45s var(--sp); }
.f-mk.on::after { opacity: 1; transform: none; }
.f-pin { position: absolute; z-index: 15; display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px 0 10px; border-radius: 15px; background: #000; color: #fff; font-size: 12.5px; font-weight: 600; white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .3); opacity: 0; transform: translateY(6px) scale(.9); transform-origin: 0 50%; transition: opacity .2s, transform .4s var(--sp); }
.f-pin.in { opacity: 1; transform: none; }
.f-pin img { width: 15px; height: 11px; }
.f-pin .lg { color: rgba(255, 255, 255, .6); font-weight: 500; }

/* 文档 */
.f-doc { padding: 34px 42px; font-size: 17px; line-height: 1.8; }
.f-doc h4 { margin: 0 0 14px; font-size: 25px; font-weight: 700; letter-spacing: -.01em; }
.f-doc p { margin: 0; }
.f-gh { color: #a1a1a6; transition: color .25s; }
.f-gh.ok { color: inherit; }
.f-tabk { display: inline-flex; align-items: center; height: 18px; padding: 0 5px; margin-left: 6px; border-radius: 4px; background: #ececf0; color: #6e6e73; font-size: 10.5px; font-weight: 600; vertical-align: 2px; }

/* 日历 */
.f-cal-h { display: flex; align-items: baseline; gap: 8px; height: 46px; padding: 14px 18px 0; }
.f-cal-h b { font-size: 16px; font-weight: 700; }
.f-cal-h span { font-size: 12px; color: #86868b; }
.f-wk { position: absolute; left: 0; right: 0; top: 46px; bottom: 0; display: grid; grid-template-columns: 40px repeat(var(--days, 5), 1fr); grid-template-rows: 26px repeat(var(--hrs, 5), 1fr); }
.f-wk .dh { font-size: 11px; color: #86868b; text-align: left; padding-left: 6px; border-bottom: 1px solid #e5e5ea; }
.f-wk .dh b { color: #1d1d1f; font-weight: 600; }
.f-wk .dh.td b { display: inline-block; width: 18px; height: 18px; border-radius: 50%; background: #ff3b30; color: #fff; text-align: center; line-height: 18px; }
.f-wk .hr { font-size: 10px; color: #a1a1a6; text-align: right; padding: 0 6px 0 0; transform: translateY(-6px); }
.f-wk .cell { border-left: 1px solid #f0f0f3; border-bottom: 1px solid #f0f0f3; }
.f-ev { position: absolute; z-index: 2; padding: 4px 7px; border-radius: 5px; font-size: 11px; line-height: 1.3; font-weight: 600; overflow: hidden; }
.f-ev em { display: block; font-style: normal; font-weight: 400; opacity: .75; }
.f-ev.blue { background: #dcebff; color: #0a5bd6; box-shadow: inset 2.5px 0 0 #0a84ff; }
.f-ev.green { background: #dcf5e3; color: #1d7a3a; box-shadow: inset 2.5px 0 0 #30c759; }
.f-ev.org { background: #ffefd9; color: #a35a00; box-shadow: inset 2.5px 0 0 #ff9f0a; }
.f-ev.pop { animation: f-pop .5s var(--sp) both; transform-origin: 50% 0; }
@keyframes f-pop { from { opacity: 0; transform: scaleY(.3); } }
.f-now { position: absolute; z-index: 3; height: 1.5px; background: #ff3b30; }
.f-now::before { content: ""; position: absolute; left: -4px; top: -3px; width: 7.5px; height: 7.5px; border-radius: 50%; background: #ff3b30; }

/* 文件卡（桌面上打开的文件） */
.f-file { position: absolute; z-index: 12; width: 150px; padding: 10px; border-radius: 10px; background: #fff; box-shadow: 0 0 0 .5px rgba(0, 0, 0, .12), 0 14px 34px rgba(0, 0, 0, .3);
  opacity: 0; transform: translateY(20px) scale(.9); transition: opacity .3s, transform .5s var(--sp); }
.f-file.in { opacity: 1; transform: rotate(var(--r, 0deg)); }
.f-file .pv { height: 92px; border-radius: 5px; background: #f5f5f7; padding: 9px; display: flex; flex-direction: column; gap: 5px; }
.f-file .pv i { display: block; height: 4px; border-radius: 2px; background: #d8d8dd; }
.f-file .pv i:first-child { width: 60%; height: 6px; background: #b8b8c0; }
.f-file b { display: block; margin-top: 7px; font-size: 11px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.f-fi { flex: none; width: 18px; height: 22px; border-radius: 3px; position: relative; display: inline-flex; align-items: flex-end; justify-content: center; padding-bottom: 2px; color: #fff; font: 700 6px/1 -apple-system, sans-serif; background: #e5483b; }
.f-fi.md { background: #6e6e73; } .f-fi.xl { background: #1f8f4e; }

/* 截图：选框、闪一下、缩略图、圈出来 */
.f-sel { position: absolute; z-index: 25; box-shadow: 0 0 0 9999px rgba(0, 0, 0, .3); outline: 1px solid rgba(255, 255, 255, .9); opacity: 0; }
.f-sel.on { opacity: 1; }
.f-sel .wh { position: absolute; right: -2px; bottom: -22px; transform: translateX(100%); padding: 2px 6px; border-radius: 4px; background: rgba(0, 0, 0, .65); color: #fff; font-size: 10.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.f-flash { position: absolute; inset: 0; z-index: 26; background: #fff; opacity: 0; pointer-events: none; }
.f-flash.go { animation: f-flash .5s ease-out; }
@keyframes f-flash { 0% { opacity: .85; } 100% { opacity: 0; } }
.f-th { position: absolute; z-index: 18; width: 168px; height: 60px; border-radius: 6px; overflow: hidden; background: #fff; box-shadow: 0 0 0 3px #fff, 0 10px 26px rgba(0, 0, 0, .35); padding: 6px 7px;
  opacity: 0; transform: translateX(40px); transition: opacity .3s, transform .5s var(--sm); }
.f-th.in { opacity: 1; transform: none; }
.f-th i { display: block; height: 4px; margin: 4px 0; border-radius: 2px; background: #e1e1e6; }
.f-th i:nth-child(2) { width: 70%; } .f-th i:nth-child(3) { width: 85%; }
.f-ring { position: absolute; z-index: 16; pointer-events: none; overflow: visible; }
.f-ring ellipse { fill: none; stroke: #4d4948; stroke-width: 2; stroke-dasharray: 400; stroke-dashoffset: 400; stroke-linecap: round; }
.f-ring ellipse.halo { stroke: rgba(255, 255, 255, .75); stroke-width: 6; }
.f-ring.on ellipse { animation: f-draw .7s var(--sm) forwards; }
@keyframes f-draw { to { stroke-dashoffset: 0; } }
.f-sc { width: 318px; padding: 13px 15px; }
.f-sc .h { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.f-sc .h img { width: 16px; height: 16px; border-radius: 4px; }
.f-sc .q { margin-top: 8px; padding: 1px 0 1px 11px; box-shadow: inset 2px 0 0 rgba(29, 29, 31, .3); font-size: 13px; line-height: 1.6; }
.f-sc .ok { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }

/* 它的光标：深灰指针、浅色描边、一圈雾；用户的光标是普通黑箭头 */
.f-cur { position: absolute; left: 0; top: 0; z-index: 40; width: 34px; height: 34px; pointer-events: none; opacity: 0; transition: opacity .25s, transform .9s var(--sm); }
.f-cur.on { opacity: 1; }
.f-cur svg { width: 34px; height: 34px; overflow: visible; filter: drop-shadow(0 0 8px rgba(255, 255, 255, .55)) drop-shadow(0 2px 4px rgba(0, 0, 0, .25)); }
.f-cur.tap svg { animation: f-tap .28s; }
@keyframes f-tap { 45% { transform: scale(.78); } }
.f-cur.me svg { width: 22px; height: 22px; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .35)); }
.f-cur.xh svg { width: 22px; height: 22px; filter: none; }

/* 跟着它光标的云：黑底小胶囊里一朵白云，比光标慢半拍 */
.f-bud { position: absolute; left: 0; top: 0; z-index: 39; display: flex; align-items: center; justify-content: center; width: 34px; height: 26px; border-radius: 13px; background: #000;
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .85), 0 6px 16px rgba(0, 0, 0, .35); pointer-events: none; opacity: 0; transition: opacity .25s, transform 1.15s var(--sm); }
.f-bud img { width: 20px; height: 15px; }
.f-cur.on:not(.xh) ~ .f-bud { opacity: 1; }

/* 按了什么键：底部正中一排键帽 */
.f-keys { position: absolute; left: 50%; bottom: 16px; z-index: 45; display: flex; gap: 6px; translate: -50% 0; opacity: 0; transform: translateY(8px); transition: opacity .2s, transform .3s var(--sm); }
.f-keys.in { opacity: 1; transform: none; }
.f-keys span { min-width: 34px; height: 34px; padding: 0 9px; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 15px; font-weight: 600;
  background: linear-gradient(#3a3a3e, #232326); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 2px 0 #000, 0 10px 24px rgba(0, 0, 0, .4); transition: transform .1s, box-shadow .1s; }
.f-keys span.dn { transform: translateY(2px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 0 0 #000, 0 6px 16px rgba(0, 0, 0, .4); }

/* 任务面板 */
.f-tp { position: absolute; inset: 40px 18px 18px; z-index: 6; display: flex; flex-direction: column; border-radius: 16px; background: rgba(246, 246, 248, .94); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); box-shadow: 0 0 0 .5px rgba(0, 0, 0, .12), 0 18px 50px rgba(0, 0, 0, .35); overflow: hidden; }
.f-tp-h { display: flex; align-items: center; gap: 9px; height: 46px; padding: 0 16px; font-size: 14px; font-weight: 700; flex: none; }
.f-tp-h img { width: 18px; height: 18px; }
.f-tp-h b { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.f-pr { flex: none; margin: 0 12px; padding: 10px 12px 11px; border-radius: 11px; background: rgba(0, 0, 0, .05); font-size: 12.5px; }
.f-pr .bar { margin-top: 8px; height: 3px; border-radius: 2px; background: rgba(0, 0, 0, .1); overflow: hidden; }
.f-pr .bar i { display: block; height: 100%; width: calc(var(--p, 0) * 100%); background: #1d1d1f; border-radius: 2px; transition: width .6s var(--sm); }
.f-tp-m { flex: none; padding: 9px 16px 0; font-size: 11px; color: #86868b; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.f-tl { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 9px; padding: 10px 16px 12px; overflow: hidden; font-size: 13px; line-height: 1.45;
  -webkit-mask-image: linear-gradient(transparent, #000 36px); mask-image: linear-gradient(transparent, #000 36px); }
.f-tl > * { flex: none; animation: f-up .4s var(--sm) both; }
.f-you { align-self: flex-end; max-width: 86%; padding: 8px 12px; border-radius: 12px; background: #1d1d1f; color: #fff; }
.f-tool { display: flex; align-items: center; gap: 7px; font-size: 12px; color: #6e6e73; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.f-tool b { font-weight: 600; color: #1d1d1f; }
.f-tool code { font: 11.5px/1 ui-monospace, "SF Mono", Menlo, monospace; color: #515154; overflow: hidden; text-overflow: ellipsis; }
.f-ask { flex: none; margin: 0 12px 12px; padding: 12px; border-radius: 12px; background: rgba(0, 0, 0, .05); font-size: 13px; animation: f-up .4s var(--sm) both; }
.f-ask b { display: block; margin-bottom: 8px; font-weight: 600; }
.f-ask .op { display: block; padding: 8px 12px; margin-top: 6px; border-radius: 9px; background: #fff; box-shadow: 0 0 0 .5px rgba(0, 0, 0, .12); transition: background .2s, box-shadow .2s; }
.f-ask .op.on { box-shadow: 0 0 0 1.5px #1d1d1f; }
.f-ask code { display: block; padding: 8px 10px; border-radius: 8px; background: #fff; font: 11.5px/1.4 ui-monospace, "SF Mono", Menlo, monospace; box-shadow: 0 0 0 .5px rgba(0, 0, 0, .12); }
.f-ask .f-bts { margin-top: 10px; }
.f-res { padding: 11px 12px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 .5px rgba(0, 0, 0, .12); }
.f-res .h { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.f-res .fr { display: flex; justify-content: space-between; margin-top: 5px; font-size: 11.5px; color: #6e6e73; font-family: ui-monospace, "SF Mono", Menlo, monospace; }
.f-res .fr span { color: #1d7a3a; } .f-res .fr span i { font-style: normal; color: #c9302c; margin-left: 6px; }

/* 文章、摘要 */
.f-p { margin: 10px 0 0; font-size: 13.5px; line-height: 1.6; color: #3a3a3c; }
.f-pg h4 { line-height: 1.25; }
.f-tb td em { font-style: normal; font-size: 11.5px; color: #86868b; }
.f-sum { padding: 14px 16px; font-size: 13.5px; }
.f-sum .h { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.f-sum .h .cl { width: 17px; height: 13px; filter: invert(1); }
.f-sum ul { margin: 8px 0 0; padding: 0 0 0 18px; line-height: 1.55; }
.f-sum li + li { margin-top: 4px; }
.f-sum .ft { margin-top: 10px; font-size: 12px; color: var(--ink2); }
.f-pin .f-kc.in { visibility: visible; margin-left: 6px; background: #fff; color: #000; }
.f-pin .f-tick { margin-right: 2px; }
.f-rs em.f-att { display: flex; width: max-content; font-style: normal; }
.f-fi.key { background: #0a7aff; }

/* 邮件 */
.f-mh { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 18px; background: #f6f6f8; border-bottom: 1px solid #ececf0; font-size: 14px; }
.f-mh img { width: 18px; height: 18px; }
.f-mr { display: flex; gap: 12px; height: 38px; align-items: center; margin: 0 18px; border-bottom: 1px solid #f0f0f3; font-size: 13.5px; }
.f-mr span { width: 56px; color: #86868b; }
.f-mail .f-doc { padding: 20px 18px; font-size: 15.5px; line-height: 1.75; }
.f-mail .f-doc p + p { margin-top: 8px; }
.f-doc.sm { padding: 24px 26px; font-size: 14.5px; line-height: 1.65; }
.f-doc.sm h4 { font-size: 20px; margin-bottom: 10px; }

/* 后台写好的文档：先藏着，⇥ 后滑上来 */
.f-wd { opacity: 0; transform: translateY(24px) scale(.97); transition: opacity .35s, transform .55s var(--sp); }
.f-wd.in { opacity: 1; transform: none; }
.f-wd .wl p { margin: 6px 0; font-size: 14px; line-height: 1.5; }
.f-wd .wl p.new { animation: f-up .45s var(--sp) both; }

/* 前台智能体：桌面上的文件，挪走时飞向右边 */
.f-fdh { display: flex; align-items: baseline; gap: 10px; padding: 14px 18px; border-bottom: .5px solid rgba(0, 0, 0, .1); background: #f6f6f6; font-size: 14px; }
.f-fdh .cnt { margin-left: auto; font-size: 12px; color: #86868b; }
.f-icons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 8px; padding: 18px 14px; }
.f-icons .fic { display: grid; justify-items: center; gap: 6px; transition: transform .6s var(--sm), opacity .4s; }
.f-icons .fic i { width: 64px; height: 44px; border-radius: 4px; background: url(../img/wall.jpg) center / cover; box-shadow: 0 0 0 3px #fff, 0 2px 6px rgba(0, 0, 0, .25); }
.f-icons .fic.dir i { width: 54px; height: 42px; border-radius: 5px; background: #6cb2f5; box-shadow: inset 0 8px 0 #8cc4f8; }
.f-icons .fic em { font-style: normal; font-size: 10.5px; color: #3a3a3c; white-space: nowrap; }
.f-icons .fic.go { transform: translate(120px, 40px) scale(.3); opacity: 0; }

/* 输入法：拼音带下划线，候选窗是白色圆角条，第一个高亮，右边 Flicky 的标 */
.f-py { text-decoration: underline; text-underline-offset: 3px; }
.f-py:empty { display: none; }
.f-imw { position: absolute; z-index: 20; display: flex; align-items: center; gap: 2px; padding: 4px; border-radius: 10px; background: #fff; box-shadow: 0 0 0 .5px rgba(0, 0, 0, .14), 0 10px 28px rgba(0, 0, 0, .25);
  font: 16px/1 -apple-system, "PingFang SC", sans-serif; opacity: 0; transform: translateY(4px); transition: opacity .15s, transform .25s var(--sm); }
.f-imw.in { opacity: 1; transform: none; }
.f-imw .c { display: flex; align-items: baseline; gap: 5px; height: 30px; padding: 0 10px; border-radius: 7px; line-height: 30px; }
.f-imw .c em { font-style: normal; font-size: 11px; color: rgba(29, 29, 31, .45); }
.f-imw .c.on { background: #0a7aff; color: #fff; } .f-imw .c.on em { color: rgba(255, 255, 255, .7); }
.f-imw .lg { padding: 0 6px 0 8px; border-left: 1px solid #ececf0; } .f-imw .lg img { width: 18px; height: 15px; filter: invert(1); }

/* 剪贴板面板：毛玻璃，上面搜索，下面两列卡片 */
.f-cp { padding: 12px; }
.f-cps { display: flex; align-items: center; gap: 7px; height: 32px; padding: 0 10px; border-radius: 9px; background: rgba(0, 0, 0, .06); font-size: 13px; }
.f-cps svg { width: 13px; height: 13px; color: #86868b; }
.f-cps .ph { color: #a1a1a6; } .f-cps .q:not(:empty) ~ .ph { display: none; }
.f-cg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.f-cg .cc { display: flex; flex-direction: column; justify-content: space-between; height: 92px; padding: 9px 10px; border-radius: 10px; background: #fff; box-shadow: 0 0 0 .5px rgba(0, 0, 0, .1);
  font-size: 12.5px; transition: opacity .25s, box-shadow .2s; }
.f-cg .cc p { margin: 0; display: flex; align-items: center; gap: 7px; line-height: 1.35; }
.f-cg .cc em { font-style: normal; font-size: 10.5px; color: #86868b; }
.f-cg .cc .u { font-size: 11px; color: #86868b; } .f-cg .cc .lt { font-weight: 600; }
.f-cg .cc.pic i { flex: 1; margin: -3px -4px 6px; border-radius: 6px; background: url(../img/wall.jpg) center / cover; }
.f-cg .cc.on { box-shadow: 0 0 0 2px #0a7aff; }
.f-cg .cc.hide { opacity: .18; }

@media (prefers-reduced-motion: reduce) {
  .dk *, .dk *::before, .dk *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
