/* ==========================================================================
   乐呈健康 · 首页智能体 — 还原 Figma「6-5乐呈健康-新首页」
   设计基准：375 × 812（iPhone X 逻辑分辨率）
   V2：对话内联化（去主卡片、去对话浮层），新增会话历史抽屉
   ========================================================================== */

:root {
  --c-primary: #06C99A;
  --c-text-1: #1A1A1A;
  --c-text-2: #404040;
  --c-text-85: rgba(0, 0, 0, .85);
  --c-text-65: rgba(0, 0, 0, .65);
  --c-text-45: rgba(0, 0, 0, .45);
  --c-tab-inactive: #A6ACB7;
  --c-page: #F0F5FC;
  --c-panel: #F5F7FA;
  --f-cn: "PingFang SC", "HarmonyOS Sans SC", "MiSans", -apple-system, "Noto Sans SC", sans-serif;
  --f-num: "Urbanist", -apple-system, sans-serif;
  --f-round: "Alimama FangYuanTi VF", "Alimama FangYuanTi", var(--f-cn);
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body {
  font-family: var(--f-cn);
  background: #E7ECF3;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}

#stage {
  position: relative;
  overflow: hidden;
  /* 宽高由 js/app.js fit() 按缩放后的可视尺寸写入，避免顶部被裁切 */
}

/* 手机画布：375×812，桌面端按窗口高度缩放，移动端满屏 */
#phone {
  position: relative;
  width: 375px; height: 812px;
  background: var(--c-page);
  overflow: hidden;
  transform-origin: top center; /* 从顶部缩放，避免短窗口裁掉状态栏/菜单 */
  box-shadow: 0 24px 80px rgba(30, 50, 80, .18);
  border-radius: 24px;
  user-select: none;
}
@media (max-width: 480px) {
  body { background: var(--c-page); }
  #phone { border-radius: 0; box-shadow: none; }
}

/* ------------------------------------------------------------------ 背景极光 */
.bg-aurora { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.aurora-base {
  position: absolute; left: 0; top: 0; width: 375px; height: 450px;
  background: linear-gradient(180deg, #F5FCFF 0%, rgba(245, 252, 255, 0) 100%);
}
.aurora-mint {
  position: absolute; left: -231px; top: -100px; width: 497px; height: 441px;
  border-radius: 50%;
  background: #EDFFFB;
  filter: blur(90px);
}
.aurora-coral {
  position: absolute; left: 142px; top: -42px; width: 189px; height: 239px;
  border-radius: 50%;
  background: radial-gradient(50% 50% at 50% 50%, #FFFFFF 0%, #FF9283 100%);
  filter: blur(100px);
  opacity: .85;
}
.aurora-cyan {
  position: absolute; left: 142px; top: -185px; width: 493px; height: 496px;
  border-radius: 50%;
  background: radial-gradient(50% 50% at 50% 50%, #FFFFFF 0%, #C7FFF1 100%);
  filter: blur(100px);
}

/* ------------------------------------------------------------------ 状态栏 */
.statusbar { position: absolute; left: 0; top: 0; width: 375px; height: 44px; z-index: 30; }
.statusbar img { width: 375px; height: 44px; display: block; }

/* ------------------------------------------------------------------ 顶部操作栏 */
.topbar {
  position: absolute; left: 0; top: 64px; width: 375px; height: 24px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px;
  z-index: 30;
}
.icon-btn {
  width: 24px; height: 24px; border: 0; background: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center; padding: 0;
}
.icon-btn img { width: 24px; height: 24px; display: block; }
.topbar-right { display: flex; align-items: center; gap: 16px; }

/* ------------------------------------------------------------------ 对话主区域 */
.stream-wrap {
  position: absolute; left: 0; top: 96px; width: 375px; bottom: 186px;
  overflow-y: auto; z-index: 5;
  scrollbar-width: none;
  overscroll-behavior: contain;
}
.stream-wrap::-webkit-scrollbar { display: none; }

/* 吉祥物（消息流顶部，随内容滚动） */
.mascot-inline { position: relative; height: 84px; flex: none; }
.mascot-inline .mascot-img {
  position: absolute; left: 26.7px; top: 8px; width: 100.8px; height: 74.3px;
  filter: drop-shadow(0 0.9px 3.6px rgba(0, 0, 0, .03));
}
.mascot-inline .hi-bubble { position: absolute; left: 94.9px; top: -4px; width: 39.1px; height: 36.3px; }

#chat-stream { padding: 12px 24px 16px; }

/* 消息样式 */
.msg { margin-bottom: 20px; }
.msg-agent { font-size: 15px; line-height: 25px; color: var(--c-text-1); }
.msg-agent b, .msg-agent strong { font-weight: 600; }

/* Markdown 排版（智能体消息内） */
.msg-agent p { margin: 0 0 10px; }
.msg-agent p:last-child { margin-bottom: 0; }
.msg-agent h3, .msg-agent h4, .msg-agent h5 {
  font-weight: 600; color: var(--c-text-1); margin: 14px 0 6px; line-height: 1.5;
}
.msg-agent h3 { font-size: 16px; }
.msg-agent h4 { font-size: 15px; }
.msg-agent h5 { font-size: 15px; }
.msg-agent ul, .msg-agent ol { margin: 4px 0 10px; padding-left: 20px; }
.msg-agent li { margin: 3px 0; }
.msg-agent li::marker { color: var(--c-text-45); }
.msg-agent code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px; background: rgba(0, 0, 0, .05); border-radius: 4px; padding: 1px 5px;
}
.msg-agent pre {
  background: rgba(0, 0, 0, .04); border-radius: 10px; padding: 10px 12px;
  margin: 8px 0 12px; overflow-x: auto;
}
.msg-agent pre code { background: none; padding: 0; font-size: 12.5px; line-height: 19px; white-space: pre; }
.msg-agent blockquote {
  border-left: 3px solid rgba(6, 201, 154, .4); padding: 2px 0 2px 12px;
  color: var(--c-text-65); margin: 8px 0 12px;
}
.msg-agent hr { border: 0; border-top: 1px solid rgba(0, 0, 0, .08); margin: 12px 0; }
.msg-agent a { color: #1B7AF8; text-decoration: none; }
.msg-agent table {
  border-collapse: collapse; margin: 8px 0 12px; font-size: 13px; width: 100%;
  background: #FFF; border-radius: 8px; overflow: hidden;
}
.msg-agent th, .msg-agent td { border: 1px solid #EEF1F4; padding: 6px 8px; text-align: left; }
.msg-agent th { background: #F6F8FA; font-weight: 600; }
.msg-user { display: flex; justify-content: flex-end; }
.msg-user .bubble {
  max-width: 264px; background: #C6F0DC; border-radius: 12px;
  padding: 10px 16px; font-size: 15px; line-height: 23px; color: var(--c-text-1);
}
.msg-typing { display: inline-flex; gap: 5px; padding: 6px 0; }
.msg-typing i { width: 7px; height: 7px; border-radius: 50%; background: rgba(0, 0, 0, .25); animation: blink 1.2s infinite; }
.msg-typing i:nth-child(2) { animation-delay: .2s; }
.msg-typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 70%, 100% { opacity: .25; } 35% { opacity: .9; } }

/* 工具执行回执（浅色，弱化存在感，只为让用户确认动作真的发生了） */
.msg-step {
  display: flex; align-items: center; gap: 6px;
  margin-bottom: 12px; font-size: 12.5px; line-height: 18px; color: var(--c-text-45);
}
.msg-step .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--c-primary); flex: none; }

/* 主动关怀开场（AI 星芒 + 文案，样式取自设计稿主动关怀消息） */
.msg-care { display: flex; gap: 4px; }
.msg-care .ai-sparkle { width: 20px; height: 20px; flex: none; margin-top: 2px; }
.msg-care p { font-size: 14px; line-height: 24px; color: var(--c-text-2); }

/* 对话内交互卡片 */
.msg-card {
  background: #FFFFFF; border-radius: 16px; padding: 16px;
  box-shadow: 0 2px 12px rgba(30, 50, 80, .05);
}
.msg-card .card-title { font-size: 15px; font-weight: 600; color: var(--c-text-1); line-height: 22px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.msg-card .card-desc { font-size: 13px; line-height: 20px; color: var(--c-text-65); margin-top: 6px; }
.msg-card .card-actions { display: flex; gap: 10px; margin-top: 14px; }
.btn-primary, .btn-ghost {
  flex: 1; height: 40px; border-radius: 20px; cursor: pointer;
  font-family: var(--f-cn); font-size: 14px; font-weight: 500;
}
.btn-primary { border: 0; background: linear-gradient(90deg, #06C99A 0%, #2BDDB4 100%); color: #FFF; }
.btn-ghost { border: 1px solid #E4E8EC; background: #FFF; color: var(--c-text-65); }
.card-tag { display: inline-block; font-size: 11px; line-height: 16px; color: var(--c-primary); background: rgba(6, 201, 154, .08); border-radius: 4px; padding: 2px 6px; margin-right: 6px; }

/* 追问/建议 chips（对话内） */
.suggest-row { display: flex; flex-wrap: wrap; gap: 8px; }
.suggest {
  border: 1px solid #FFFFFF; background: rgba(255, 255, 255, .8); border-radius: 18px;
  padding: 8px 14px; font-family: var(--f-cn); font-size: 13px; color: var(--c-text-65); cursor: pointer;
}

/* ------------------------------------------------------------------ 底部固定区 */
.bottom-fixed { position: absolute; left: 0; bottom: 0; width: 375px; z-index: 20; }
.bottom-fade { height: 16px; background: linear-gradient(180deg, rgba(245, 247, 250, 0) 0%, #F5F7FA 100%); }
.bottom-panel { background: var(--c-panel); }

.chips-row {
  display: flex; gap: 8px; padding: 0 16px; height: 36px;
  overflow-x: auto; scrollbar-width: none;
}
.chips-row::-webkit-scrollbar { display: none; }
.chip {
  flex: none; height: 36px; border-radius: 10px;
  background: rgba(255, 255, 255, .5);
  border: 1px solid #FFFFFF;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 0 12px; cursor: pointer;
  font-family: var(--f-cn); font-size: 14px; font-weight: 500; color: var(--c-text-2);
}
.chip img { width: 16px; height: 16px; }
.chip .chip-caret { width: 12px; height: 12px; margin-left: 2px; transition: transform .2s; }
.chip.caret-up .chip-caret { transform: rotate(180deg); }

.input-row { padding: 12px 16px 0; }
.input-pill {
  height: 48px; border-radius: 100px;
  background: rgba(255, 255, 255, .5);
  border: 2px solid #FFFFFF;
  display: flex; align-items: center; padding: 0 16px;
  cursor: text;
}
.input-pill .mic { width: 24px; height: 24px; margin-right: 9px; }
.input-pill input {
  flex: 1; border: 0; background: none; outline: none; min-width: 0;
  font-family: var(--f-cn); font-size: 14px; color: var(--c-text-85);
}
.input-pill input::placeholder { color: var(--c-text-45); }
.input-right { display: flex; align-items: center; gap: 12px; }
.input-right img { width: 24px; height: 24px; cursor: pointer; }

.tabbar { display: flex; height: 54px; align-items: center; }
.tab {
  flex: 1; text-align: center; font-size: 16px; line-height: 22px;
  font-weight: 500; color: var(--c-tab-inactive); position: relative; cursor: pointer;
}
.tab.active { font-weight: 600; color: var(--c-text-85); }
.tab.has-gift { overflow: visible; }
.tab.has-gift .gift { position: absolute; width: 20px; height: 20px; left: 50%; margin-left: 14px; top: -7px; }
.home-indicator { height: 20px; display: flex; align-items: center; justify-content: center; }
.home-indicator i { display: block; width: 139px; height: 5px; border-radius: 100px; background: #000; }

/* ------------------------------------------------------------------ 会话历史抽屉 */
.history-layer { position: absolute; inset: 0; z-index: 55; }
.history-mask {
  position: absolute; inset: 0; background: rgba(10, 20, 30, .35);
  opacity: 0; transition: opacity .25s;
}
.history-layer.open .history-mask { opacity: 1; }
.history-panel {
  position: absolute; left: 0; top: 0; bottom: 0; width: 300px;
  background: #F7F9FA;
  transform: translateX(-100%); transition: transform .28s cubic-bezier(.3, .9, .3, 1);
  display: flex; flex-direction: column;
}
.history-layer.open .history-panel { transform: none; }
.hp-safe { height: 44px; flex: none; }
.hp-user { display: flex; align-items: center; gap: 10px; padding: 12px 16px 20px; flex: none; }
.hp-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: #EAF6F0; }
.hp-name { font-size: 17px; font-weight: 600; color: var(--c-text-1); }
.hp-new {
  margin: 0 16px 18px; height: 44px; flex: none;
  border: 0; border-radius: 10px; background: #EFF2F4; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--f-cn); font-size: 15px; font-weight: 500; color: var(--c-text-1);
}
.hp-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px 6px; flex: none;
  font-size: 16px; font-weight: 600; color: var(--c-text-1);
}
.hp-manage { border: 0; background: none; font-family: var(--f-cn); font-size: 13px; color: var(--c-text-45); cursor: pointer; }
.hp-list { flex: 1; overflow-y: auto; padding: 0 16px 24px; scrollbar-width: none; }
.hp-list::-webkit-scrollbar { display: none; }
.hp-group { font-size: 13px; color: var(--c-text-45); padding: 14px 0 4px; }
.hp-year { font-size: 13px; color: var(--c-text-45); padding: 14px 0 2px; font-weight: 600; }
.hp-item {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 11px 0; cursor: pointer;
}
.hp-item .t { flex: 1; min-width: 0; font-size: 15px; color: var(--c-text-1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hp-item .d { flex: none; font-size: 13px; color: var(--c-text-45); }
.hp-item.active .t { color: var(--c-primary); font-weight: 500; }
.hp-empty { padding: 40px 0; text-align: center; font-size: 13px; color: var(--c-text-45); }
.hp-end { padding: 16px 0; text-align: center; font-size: 12px; color: rgba(0,0,0,.25); }

/* ------------------------------------------------------------------ 模式弹层 */
.mode-layer { position: absolute; inset: 0; z-index: 40; }
.mode-mask { position: absolute; inset: 0; }
.mode-menu {
  position: absolute; left: 16px; bottom: 186px;
  width: 244px; background: #FFFFFF; border-radius: 16px;
  box-shadow: 0 8px 40px rgba(20, 40, 60, .12);
  padding: 12px 0;
}
.mode-item {
  width: 100%; height: 68px; border: 0; background: none; cursor: pointer;
  display: flex; align-items: center; gap: 12px; padding: 0 24px;
  font-family: var(--f-cn); font-size: 16px; font-weight: 500; color: var(--c-text-1);
}
.mode-item img:first-child { width: 22px; height: 22px; }
.mode-item span { flex: 1; text-align: left; }
.mode-item .mode-check { width: 20px; height: 20px; visibility: hidden; }
.mode-item.active .mode-check { visibility: visible; }

/* ------------------------------------------------------------------ 问卷弹层 */
.qn-layer { position: absolute; inset: 0; z-index: 60; }
.qn-mask { position: absolute; inset: 0; background: rgba(10, 20, 30, .45); }
.qn-sheet {
  position: absolute; left: 0; right: 0; bottom: 0; height: 640px;
  background: #FFFFFF; border-radius: 24px 24px 0 0; overflow: hidden;
  display: flex; flex-direction: column;
  animation: sheetUp .28s cubic-bezier(.3, .9, .3, 1);
}
@keyframes sheetUp { from { transform: translateY(40px); opacity: .4; } to { transform: none; opacity: 1; } }
.qn-head {
  height: 56px; flex: none; display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px; font-size: 17px; font-weight: 600; color: var(--c-text-1);
  border-bottom: 1px solid #F2F4F6;
}
.qn-close { width: 32px; height: 32px; border: 0; background: none; cursor: pointer; }
#qn-frame { flex: 1; width: 100%; border: 0; }

/* ------------------------------------------------------------------ Toast */
.toast {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  background: rgba(20, 24, 28, .82); color: #FFF;
  font-size: 14px; line-height: 20px; padding: 12px 20px; border-radius: 10px;
  z-index: 90; pointer-events: none; text-align: center; max-width: 260px;
}

/* ------------------------------------------------------------------ 登录弹层 */
.login-layer {
  position: absolute; inset: 0; z-index: 80;
  display: flex; align-items: flex-end; justify-content: center;
}
.login-mask {
  position: absolute; inset: 0; background: rgba(10, 20, 30, .35);
  opacity: 0; transition: opacity .24s ease;
}
.login-layer.open .login-mask { opacity: 1; }
.login-card {
  position: relative; width: 100%; z-index: 1;
  background: linear-gradient(180deg, #F4F8FD 0%, #FFFFFF 42%);
  border-radius: 20px 20px 0 0; padding: 20px 26px 30px;
  display: flex; flex-direction: column; align-items: center;
  transform: translateY(100%); transition: transform .26s ease;
  box-shadow: 0 -6px 24px rgba(16, 40, 70, .12);
}
.login-layer.open .login-card { transform: translateY(0); }
.login-close {
  position: absolute; top: 10px; right: 14px;
  width: 30px; height: 30px; border: 0; border-radius: 15px;
  background: none; font-size: 22px; line-height: 1;
  color: var(--c-text-45); cursor: pointer;
}
.login-mascot { width: 84px; height: 62px; object-fit: contain; }
.login-title {
  font-family: var(--f-round); font-size: 22px; font-weight: 700;
  color: var(--c-text-1); letter-spacing: .5px;
}
.login-sub { margin-top: 5px; font-size: 13px; color: var(--c-text-45); text-align: center; }

.login-field { width: 100%; margin-top: 14px; }
.lf-label { display: block; font-size: 13px; color: var(--c-text-65); margin-bottom: 6px; }
.lf-row {
  display: flex; align-items: center; gap: 8px;
  background: #FFFFFF; border-radius: 12px; padding: 0 4px 0 14px;
  border: 1px solid #E6EBF2;
}
.lf-row input {
  flex: 1; height: 46px; border: 0; outline: 0; background: none; min-width: 0;
  font-family: var(--f-cn); font-size: 16px; color: var(--c-text-1);
}
.lf-row input::placeholder { color: #B6BDC7; font-size: 15px; }
.lf-send {
  flex: none; height: 34px; padding: 0 12px; border: 0; border-radius: 9px;
  background: rgba(6, 201, 154, .12); color: var(--c-primary);
  font-family: var(--f-cn); font-size: 13px; font-weight: 600; cursor: pointer;
}
.lf-send:disabled { background: #F0F2F5; color: var(--c-text-45); cursor: default; }

.login-hint { min-height: 18px; margin-top: 10px; font-size: 12px; color: var(--c-text-45); text-align: center; }
.login-hint.is-error { color: #E4544B; }
.login-submit {
  width: 100%; height: 48px; margin-top: 4px; border: 0; border-radius: 24px;
  background: var(--c-primary); color: #FFFFFF;
  font-family: var(--f-cn); font-size: 16px; font-weight: 600; cursor: pointer;
  box-shadow: 0 6px 16px rgba(6, 201, 154, .28);
}
.login-submit:disabled { opacity: .6; cursor: default; }
.login-tip {
  margin-top: 12px; font-size: 11px; color: var(--c-text-45);
  text-align: center; line-height: 1.5;
}

/* ------------------------------------------------------------------ 我的 / 个人档案 */
.mine-layer {
  position: absolute; inset: 0; z-index: 70;
  background: #F3F6FA;
  transform: translateX(100%);
  transition: transform .24s ease;
}
.mine-layer.open { transform: translateX(0); }
.mine-page { height: 100%; display: flex; flex-direction: column; }
.mine-head {
  flex: none; display: flex; align-items: center; gap: 8px;
  padding: 54px 16px 12px; background: #F3F6FA;
}
.mine-back {
  width: 36px; height: 36px; border: 0; border-radius: 18px;
  background: #fff; font-size: 26px; line-height: 1; color: var(--c-text-1);
  box-shadow: 0 1px 3px rgba(16,40,70,.06); cursor: pointer;
}
.mine-title-wrap { flex: 1; min-width: 0; }
.mine-title { font-size: 18px; font-weight: 700; color: var(--c-text-1); }
.mine-phone { margin-top: 2px; font-size: 12px; color: var(--c-text-45); }
.mine-logout {
  border: 0; background: none; color: var(--c-text-65);
  font-size: 13px; padding: 8px; cursor: pointer;
}
.mine-scroll {
  flex: 1; overflow-y: auto; padding: 4px 16px 28px;
  -webkit-overflow-scrolling: touch;
}
.mine-card {
  background: #fff; border-radius: 14px; padding: 14px 14px 16px;
  margin-bottom: 12px; box-shadow: 0 1px 3px rgba(16,40,70,.04);
}
.mine-sec { font-size: 15px; font-weight: 700; color: var(--c-text-1); }
.mine-sec-row { display: flex; align-items: center; justify-content: space-between; }
.mine-hint { margin: 6px 0 12px; font-size: 12px; color: var(--c-text-45); line-height: 1.5; }
.mine-field { display: block; margin-bottom: 10px; }
.mine-field span {
  display: block; font-size: 12px; color: var(--c-text-65); margin-bottom: 4px;
}
.mine-field input, .mine-field select {
  width: 100%; height: 40px; border: 1px solid #E6EBF2; border-radius: 10px;
  padding: 0 12px; font-family: var(--f-cn); font-size: 14px; color: var(--c-text-1);
  background: #F8FAFC; outline: 0; box-sizing: border-box;
}
.mine-field input:focus, .mine-field select:focus, .mine-md:focus {
  border-color: rgba(6,201,154,.55); background: #fff;
}
.mine-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mine-md {
  width: 100%; min-height: 220px; border: 1px solid #E6EBF2; border-radius: 10px;
  padding: 12px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12.5px; line-height: 1.55; color: var(--c-text-1);
  background: #F8FAFC; outline: 0; resize: vertical; box-sizing: border-box;
}
.mine-save {
  width: 100%; height: 44px; margin-top: 12px; border: 0; border-radius: 22px;
  background: var(--c-primary); color: #fff;
  font-family: var(--f-cn); font-size: 15px; font-weight: 600; cursor: pointer;
}
.mine-save.is-dirty { box-shadow: 0 4px 14px rgba(6,201,154,.35); }
.mine-save:disabled { opacity: .6; cursor: default; }
.mine-link {
  border: 0; background: none; color: #E4544B; font-size: 12px; cursor: pointer; padding: 4px;
}
.mine-memory {
  margin: 0; max-height: 220px; overflow: auto;
  padding: 10px 12px; border-radius: 10px; background: #F4F7FB;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11.5px; line-height: 1.5; color: var(--c-text-65);
  white-space: pre-wrap; word-break: break-word;
}

/* ------------------------------------------------------------------ 待确认与档案卡片 */
.tabbar .tab { position: relative; }
.tab-dot {
  position: absolute; top: 12px; right: 50%; margin-right: -22px;
  width: 7px; height: 7px; border-radius: 50%; background: #FF5A4E;
}
.mine-pending { border: 1px solid rgba(6, 201, 154, .28); }
.mine-badge {
  display: inline-block; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: #FF5A4E; color: #fff;
  font-size: 11px; line-height: 18px; text-align: center; vertical-align: 2px;
}
.mine-link-plain { color: var(--c-primary); }

.pf-item {
  border: 1px solid #EAEFF5; border-radius: 12px;
  padding: 11px 12px; margin-bottom: 10px; background: #FBFDFF;
}
.pf-text { font-size: 14px; line-height: 1.5; color: var(--c-text-1); }
.pf-meta {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-top: 6px; font-size: 11px; color: var(--c-text-45);
}
.pf-tag {
  padding: 1px 7px; border-radius: 8px;
  background: rgba(6, 201, 154, .12); color: var(--c-primary);
}
.pf-actions { display: flex; gap: 8px; margin-top: 10px; }
.pf-btn {
  flex: none; height: 32px; padding: 0 12px; border: 1px solid #E1E7EF;
  border-radius: 16px; background: #fff; color: var(--c-text-65);
  font-family: var(--f-cn); font-size: 13px; cursor: pointer;
}
.pf-primary { background: var(--c-primary); border-color: var(--c-primary); color: #fff; font-weight: 600; }
.pf-ghost { color: var(--c-text-45); }
.pf-edit { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.pf-input {
  flex: 1 1 100%; height: 36px; border: 1px solid #E1E7EF; border-radius: 9px;
  padding: 0 10px; font-family: var(--f-cn); font-size: 13.5px; outline: 0;
}
.pf-select {
  flex: 1; height: 32px; border: 1px solid #E1E7EF; border-radius: 16px;
  padding: 0 8px; font-family: var(--f-cn); font-size: 13px;
  background: #fff; color: var(--c-text-65); outline: 0;
}

.ps-block { padding: 12px 0; border-top: 1px solid #F0F3F7; }
.ps-block:first-child { border-top: 0; padding-top: 4px; }
.ps-head { display: flex; align-items: center; justify-content: space-between; }
.ps-name { font-size: 13.5px; font-weight: 600; color: var(--c-text-1); }
.ps-empty { margin-top: 6px; font-size: 12px; color: var(--c-text-45); line-height: 1.5; }
.ps-list { margin-top: 8px; list-style: none; }
.ps-item {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  padding: 5px 0; font-size: 13.5px; color: var(--c-text-1); line-height: 1.5;
}
.ps-text { flex: 1; }
.ps-src { flex: none; font-size: 10.5px; color: #A8B2BF; white-space: nowrap; }
.ps-area {
  width: 100%; margin-top: 8px; border: 1px solid #E6EBF2; border-radius: 10px;
  padding: 10px; font-family: var(--f-cn); font-size: 13.5px; line-height: 1.6;
  background: #F8FAFC; outline: 0; resize: vertical; box-sizing: border-box;
}
.ps-edit-actions { display: flex; gap: 8px; margin-top: 8px; }
