@charset "utf-8";
/* ============================================================
 * 回忆时光机 · H5 主题样式（移动端）
 * 由 app/h5/view/memoir/index/index.html 内联样式抽取而来
 * 作用范围：H5 主 SPA、登录页、注册页
 * ============================================================ */

/* ===================== 设计变量：亮色 AI（晴空蓝紫 / 玻璃拟态） ===================== */
:root {
  --bg-0: #eef1fb;
  --bg-1: #e6eaf8;
  --brand: #4f6bff;          /* 主品牌靛蓝 */
  --brand-2: #7c5cff;        /* 紫 */
  --brand-3: #18c8ff;        /* 青 */
  --accent: #ff8fc7;         /* 粉（标签点缀） */
  --glass: rgba(255, 255, 255, .72);
  --glass-2: rgba(255, 255, 255, .5);
  --glass-bd: rgba(120, 130, 170, .16);
  --ink: #1b2138;
  --ink-2: #515a72;
  --sub: #9399ad;
  --line: rgba(120, 130, 170, .16);
  --card: #ffffff;
  --ok: #16a34a;
  --warn: #d97706;
  --danger: #ef4444;
  --glow: 0 10px 30px rgba(79, 107, 255, .22);
  --glow-soft: 0 4px 16px rgba(79, 107, 255, .14);
  --r-lg: 20px;
  --r-md: 15px;
  --r-sm: 11px;
  --shadow: 0 8px 28px rgba(40, 52, 110, .1);
  --topbar-h: 56px;
  --tabbar-h: 62px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  /* APP 沉浸式状态栏：真实高度由 Android JS Bridge 注入；未注入时保底 28px，避免内容被状态栏遮挡 */
  --status-bar-h: max(env(safe-area-inset-top, 0px), 28px);
  --brand-grad: linear-gradient(135deg, #4f6bff 0%, #7c5cff 52%, #18c8ff 100%);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; height: 100%; }
body {
  background: var(--bg-0);
  color: var(--ink);
  font: 15px/1.6 -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
input, textarea, select, button { font-family: inherit; font-size: 15px; color: inherit; }
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-thumb { background: rgba(120, 130, 170, .28); border-radius: 4px; }

/* ===================== 动态背景层（柔和粉彩光晕 + 细网格） ===================== */
.bg-fx {
  position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
  background:
    radial-gradient(130% 90% at 50% -10%, #f3f6ff 0%, #e9edfb 46%, #e4e9f7 100%);
}
.bg-fx .blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .5; will-change: transform; }
.bg-fx .b1 { width: 360px; height: 360px; top: -110px; left: -80px;
  background: radial-gradient(circle, rgba(124, 92, 255, .42), transparent 68%);
  animation: drift1 19s ease-in-out infinite; }
.bg-fx .b2 { width: 420px; height: 420px; bottom: -140px; right: -100px;
  background: radial-gradient(circle, rgba(24, 200, 255, .38), transparent 68%);
  animation: drift2 24s ease-in-out infinite; }
.bg-fx .b3 { width: 320px; height: 320px; top: 40%; left: 58%;
  background: radial-gradient(circle, rgba(255, 143, 199, .3), transparent 70%);
  animation: drift3 21s ease-in-out infinite; }
.bg-fx .grid {
  position: absolute; inset: 0; opacity: .35;
  background-image:
    linear-gradient(rgba(79, 107, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79, 107, 255, .05) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(120% 90% at 50% 30%, #000 40%, transparent 100%);
  mask-image: radial-gradient(120% 90% at 50% 30%, #000 40%, transparent 100%);
}
@keyframes drift1 { 0%,100% { transform: translate(0,0) scale(1);} 50% { transform: translate(40px,30px) scale(1.12);} }
@keyframes drift2 { 0%,100% { transform: translate(0,0) scale(1);} 50% { transform: translate(-36px,-26px) scale(1.1);} }
@keyframes drift3 { 0%,100% { transform: translate(0,0) scale(1);} 50% { transform: translate(-30px,24px) scale(1.15);} }

/* ===================== 骨架：全屏铺满 ===================== */
.app {
  position: fixed; inset: 0;
  display: flex; flex-direction: column;
  width: 100%; height: 100%; height: 100dvh;
  background: transparent;
  overflow: hidden;
}
.inner { width: 100%; max-width: 860px; margin: 0 auto; }

/* ===================== 沉浸式统一顶栏：科技感渐变 + 状态栏避让（所有 H5 页面） ===================== */

/* 主 Tab 页：统一渐变标题头（与子页 .float-head 同款设计：实色渐变 + 居中标题 + 圆角 + 投影） */
.view-head {
  flex: 0 0 auto; position: relative; z-index: 25;
  padding-top: var(--status-bar-h);
  height: calc(var(--status-bar-h) + var(--topbar-h));
  /* 统一头部渐变：实色品牌蓝 → 紫；状态栏区域同色无缝；圆角收口，不与内容硬接 */
  background: linear-gradient(180deg, #4f6bff 0%, #5660f3 26%, #7c5cff 60%, #8a5cf0 100%);
  border-radius: 0 0 18px 18px;
  box-shadow: 0 6px 24px rgba(20, 30, 80, .12);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 10px;
}
.view-head::before {
  content: ""; position: absolute; inset: 0; opacity: .12; pointer-events: none;
  background-image: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent);
  background-size: 45% 100%; background-repeat: no-repeat;
  animation: headShine 4s ease-in-out infinite;
}
.view-head.is-scrolled { box-shadow: 0 8px 26px rgba(20, 30, 80, .18); }
.view-head .vh-title {
  position: relative; z-index: 1;
  font-size: 17px; font-weight: 800; color: #fff; letter-spacing: .3px;
  text-shadow: 0 2px 8px rgba(20, 30, 80, .2);
}
@keyframes headShine { 0%,100% { background-position: -60% 0; } 50% { background-position: 160% 0; } }

/* 子页统一头部：渐变 + 返回 + 居中标题 */
.float-head {
  position: fixed; top: 0; left: 0; right: 0; z-index: 30;
  padding: var(--status-bar-h) 12px 0;
  height: calc(var(--status-bar-h) + var(--topbar-h));
  display: flex; align-items: center; gap: 10px;
  /* 顶部实色品牌蓝，向下过渡到紫；状态栏区域同色无缝 */
  background: linear-gradient(180deg, #4f6bff 0%, #5660f3 26%, #7c5cff 60%, #8a5cf0 100%);
  border-radius: 0 0 18px 18px;
  box-shadow: 0 6px 24px rgba(20, 30, 80, .12);
  pointer-events: auto;
  transition: box-shadow .25s ease;
}
.float-head.is-scrolled { box-shadow: 0 8px 26px rgba(20, 30, 80, .2); }
.float-back {
  pointer-events: auto; flex: 0 0 auto; width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .18); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, .32); color: #fff; font-size: 22px; line-height: 1;
  box-shadow: 0 4px 14px rgba(20, 30, 80, .18); transition: .18s; z-index: 2;
}
.float-back:active { transform: scale(.92); background: rgba(255, 255, 255, .3); }
.float-title {
  position: absolute; left: 50%; transform: translateX(-50%);
  font-size: 17px; font-weight: 800; color: #fff; letter-spacing: .3px;
  text-shadow: 0 2px 8px rgba(20, 30, 80, .2); pointer-events: none; z-index: 1;
}
.app.sub .scroll { padding-top: calc(var(--status-bar-h) + var(--topbar-h) + 8px); }

/* 独立页顶栏（分享页等）：与子页头部同款 */
.topbar {
  flex: 0 0 auto; position: relative; z-index: 25;
  padding-top: var(--status-bar-h);
  height: calc(var(--status-bar-h) + var(--topbar-h));
  display: flex; align-items: center;
  /* 顶部实色品牌蓝，向下过渡到紫；状态栏区域同色无缝 */
  background: linear-gradient(180deg, #4f6bff 0%, #5660f3 26%, #7c5cff 60%, #8a5cf0 100%);
  border-radius: 0 0 18px 18px;
  box-shadow: 0 6px 24px rgba(20, 30, 80, .12);
}
.topbar-in { width: 100%; height: var(--topbar-h); display: flex; align-items: center; gap: 10px; padding: 0 14px; position: relative; }
.topbar .tb-back {
  flex: 0 0 auto; width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.18); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.32); color: #fff; font-size: 22px; line-height: 1;
  box-shadow: 0 4px 14px rgba(20,30,80,.18); transition: .18s;
}
.topbar .tb-back:active { transform: scale(.92); background: rgba(255,255,255,.3); }
.topbar .tb-title { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); text-align: center; white-space: nowrap; }
.topbar .tb-title h1 { margin: 0; font-size: 17px; font-weight: 800; color: #fff; letter-spacing: .3px; text-shadow: 0 2px 8px rgba(20,30,80,.2); }
.topbar .tb-title p { margin: 1px 0 0; font-size: 11px; color: rgba(255,255,255,.75); }
.topbar .tb-right { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); }
.topbar .tb-act {
  width: 36px; height: 36px; border-radius: 50%; border: none;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.18); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.32); color: #fff; font-size: 18px;
  box-shadow: 0 4px 14px rgba(20,30,80,.18); transition: .18s;
}
.topbar .tb-act:active { transform: scale(.92); background: rgba(255,255,255,.3); }

/* ---- 记录页：发布范围（图标按钮 + 选择指引弹层，与图片按钮风格一致） ---- */
.scope-pick { position: relative; flex: 0 0 auto; display: flex; align-items: center; }
.scope-btn { position: relative; }
.scope-btn .scope-ico { font-size: 18px; line-height: 1; }
/* 选中具体群组时的小指引点 */
.scope-dot {
  position: absolute; top: 5px; right: 5px; width: 9px; height: 9px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 0 0 2px #fff, 0 0 8px rgba(79, 107, 255, .7);
}
/* 选择指引弹层（玻璃卡片，与整体质感协调，无硬边框） */
.scope-pop {
  position: absolute; bottom: calc(100% + 10px); left: 0; z-index: 40; min-width: 172px;
  background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  border-radius: 16px; padding: 8px; box-shadow: 0 18px 44px rgba(40, 52, 110, .24);
  transform-origin: bottom left; transform: translateY(8px) scale(.95); opacity: 0; pointer-events: none;
  transition: .22s cubic-bezier(.34, 1.4, .64, 1);
}
.scope-pop.show { transform: none; opacity: 1; pointer-events: auto; }
.scope-pop-h { font-size: 11px; font-weight: 700; color: var(--sub); padding: 5px 10px 8px; letter-spacing: .3px; }
.scope-opt {
  display: flex; align-items: center; gap: 9px; padding: 10px; border-radius: 12px; cursor: pointer;
  font-size: 13.5px; font-weight: 600; color: var(--ink-2); transition: .15s;
}
.scope-opt:active { background: #eef1fb; transform: scale(.98); }
.scope-opt.active { color: var(--brand); background: rgba(79, 107, 255, .12); }
.scope-opt .so-ic { font-size: 16px; width: 20px; text-align: center; }
.scope-opt .so-tx { flex: 1; }
.scope-opt .so-check { font-size: 13px; opacity: 0; color: var(--brand); }
.scope-opt.active .so-check { opacity: 1; }
.scope-note { margin-top: 10px; font-size: 12px; color: var(--sub); text-align: center; }
/* 多群组切换指引：极轻量、无感（不抢视觉，仅作微弱提示） */
.scope-hint {
  position: absolute; top: calc(100% + 2px); left: 50%; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 2px; white-space: nowrap;
  background: rgba(120, 130, 170, .1); color: var(--sub);
  font-size: 9px; font-weight: 600; padding: 1px 6px; border-radius: 9px;
  box-shadow: none; pointer-events: none; z-index: 41; opacity: .75;
}
.scope-hint::before {
  content: ""; position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%);
  border: 4px solid transparent; border-bottom-color: rgba(120, 130, 170, .4);
}
.scope-hint .scope-hint-ar { font-size: 8px; line-height: 1; transform: translateY(-1px); }
.scope-hint[hidden] { display: none; }
/* 提示极轻量，仅留出极小空间，不破坏记录页整体美观 */
.hero-actions.has-hint { margin-bottom: 10px; }

/* ---- 视图容器 ---- */
.views { flex: 1; position: relative; overflow: hidden; z-index: 1; }
.view { position: absolute; inset: 0; display: none; flex-direction: column; }
.view.active { display: flex; }
/* 子页（有浮动返回）时，主内容下移避免被返回按钮遮挡；并留出头部与内容的间距 */
.app.sub .scroll { padding-top: calc(72px + var(--status-bar-h)); }
.scroll { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.pad { padding: 14px; }
.stream { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 16px 14px 6px; }

/* ---- 底部 Tab（科技玻璃浮岛：突出 · 动态 · 与背景/内容协调） ---- */
.tabbar {
  flex: 0 0 auto; position: relative; z-index: 20;
  margin: 10px 14px calc(12px + var(--safe-b));
  padding: 0;
  border-radius: 22px;
  background: rgba(255, 255, 255, .72);
  -webkit-backdrop-filter: saturate(190%) blur(20px); backdrop-filter: saturate(190%) blur(20px);
  box-shadow: 0 16px 44px rgba(40, 52, 110, .20), 0 2px 10px rgba(40, 52, 110, .08);
  overflow: visible;
  border: none;
}
/* 浮岛呼吸光晕（呼应背景光斑，柔和融入，无硬边截断） */
.tabbar::before {
  content: ""; position: absolute; left: -8%; right: -8%; top: -26px; height: 70px; z-index: 0; pointer-events: none;
  background:
    radial-gradient(48% 100% at 30% 100%, rgba(79, 107, 255, .26), transparent 72%),
    radial-gradient(48% 100% at 72% 100%, rgba(124, 92, 255, .22), transparent 72%);
  filter: blur(15px);
  animation: navGlow 9s ease-in-out infinite alternate;
}
@keyframes navGlow {
  0%   { transform: translateX(-4%) scale(1);    opacity: .7; }
  100% { transform: translateX(4%)  scale(1.06); opacity: 1; }
}
/* 顶部流光细线（科技感；嵌在浮岛内、不外露截断） */
.tabbar::after {
  content: ""; position: absolute; left: 16px; right: 16px; top: 0; height: 2px; z-index: 4; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--brand), var(--brand-3), var(--brand-2), transparent);
  background-size: 60% 100%; background-repeat: no-repeat;
  animation: navLine 3s linear infinite; opacity: .85;
}
@keyframes navLine { 0% { background-position: -60% 0; } 100% { background-position: 160% 0; } }
.tabbar-in { position: relative; height: var(--tabbar-h); display: flex; z-index: 2; }
.tab {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; color: var(--sub); cursor: pointer; user-select: none; position: relative; z-index: 2;
  transition: color .25s;
}
.tab .ic { font-size: 21px; line-height: 1; opacity: .5; transition: transform .3s cubic-bezier(.34, 1.56, .64, 1), opacity .25s; will-change: transform; }
.tab .tx { font-size: 11px; font-weight: 600; transition: .25s; }
.tab.active { color: var(--brand); }
.tab.active .ic { opacity: 1; transform: translateY(-3px) scale(1.14); filter: drop-shadow(0 5px 10px rgba(79, 107, 255, .5)); animation: tabFloat 2.6s ease-in-out infinite; }
@keyframes tabFloat {
  0%, 100% { transform: translateY(-3px) scale(1.14); }
  50%      { transform: translateY(-7px) scale(1.18); }
}
.tab.active .tx { background: linear-gradient(92deg, var(--brand), var(--brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
/* 激活指示：发光玻璃台（醒目、无硬边） */
.tab-ind {
  position: absolute; top: 7px; bottom: 7px; left: 0; width: 0; z-index: 1;
  border-radius: 18px; pointer-events: none; opacity: 0;
  background: linear-gradient(135deg, rgba(79, 107, 255, .24), rgba(124, 92, 255, .18) 60%, rgba(24, 200, 255, .16));
  box-shadow: 0 8px 26px rgba(79, 107, 255, .38), inset 0 0 0 1px rgba(255, 255, 255, .5);
  transition: left .45s cubic-bezier(.34, 1.4, .64, 1), width .3s ease, opacity .3s;
}
.tab-ind.show { opacity: 1; }

/* ---- 入场动画（消息 / 卡片通用） ---- */
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes glowPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(56, 189, 248, .45); } 70% { box-shadow: 0 0 0 12px rgba(56, 189, 248, 0); } }

/* ===================== 通用组件 ===================== */
.card {
  background: var(--card);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow); padding: 16px; margin-bottom: 14px;
}
.card h3 { margin: 0 0 12px; font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 6px; color: var(--ink); }
.card h3 small { font-weight: 400; color: var(--sub); font-size: 12px; }
.btn {
  height: 40px; padding: 0 18px; border: none; border-radius: 12px; cursor: pointer;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; font-weight: 700; font-size: 14px;
  transition: .15s; white-space: nowrap; box-shadow: 0 6px 18px rgba(79, 107, 255, .28);
}
.btn:hover { box-shadow: 0 8px 24px rgba(79, 107, 255, .42); }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .5; cursor: default; transform: none; box-shadow: none; }
.btn.ghost { background: #f1f3fb; color: var(--ink-2); border: 1px solid var(--line); box-shadow: none; }
.btn.sm { height: 34px; padding: 0 14px; font-size: 13px; border-radius: 10px; }
.fld {
  width: 100%; height: 42px; border: 1px solid var(--line); background: #fff;
  border-radius: 12px; padding: 0 13px; outline: none; color: var(--ink); transition: .15s;
}
.fld::placeholder { color: var(--sub); }
.fld:focus { border-color: var(--brand); background: #fff; box-shadow: 0 0 0 3px rgba(79, 107, 255, .12); }
.row { display: flex; gap: 8px; align-items: center; }
.hint { font-size: 12.5px; color: var(--sub); margin-top: 9px; }
.empty { text-align: center; color: var(--sub); padding: 56px 20px; }
.empty .em { font-size: 40px; display: block; margin-bottom: 12px; opacity: .9; filter: drop-shadow(0 6px 14px rgba(79, 107, 255, .25)); animation: floatY 3s ease-in-out infinite; }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.empty p { margin: 0; font-size: 13.5px; }
.loading { text-align: center; color: var(--sub); padding: 34px 0; font-size: 13px; letter-spacing: .5px; animation: softPulse 1.6s ease-in-out infinite; }
@keyframes softPulse { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }

.chip {
  display: inline-flex; align-items: center; gap: 3px; font-size: 11.5px; line-height: 1.5;
  padding: 3px 9px; border-radius: 20px; margin: 0 5px 5px 0; font-weight: 500;
  border: 1px solid transparent; transition: .18s;
}
.aibox.chips { margin-top: 9px; }

/* ===================== 记录（现代 Composer 舞台：输入框为玻璃舞台，标签在背景漂浮） ===================== */
/* AI 一句话摘要（列表/已发布页复用） */
.aisum {
  margin-top: 8px; padding: 9px 12px;
  background: linear-gradient(135deg, rgba(124, 92, 255, .12), rgba(24, 200, 255, .12));
  border: 1px solid rgba(79, 107, 255, .28); border-radius: 12px;
  box-shadow: 0 0 16px rgba(79, 107, 255, .08) inset;
  font-size: 12.5px; color: var(--ink-2); line-height: 1.6; display: flex; gap: 6px; align-items: flex-start;
}
.aisum .ai-ic { flex: 0 0 auto; font-size: 13px; line-height: 1.5; filter: drop-shadow(0 0 6px rgba(79, 107, 255, .5)); }
.aisum .ai-tx { flex: 1; }

/* ===================== 记录（动感发布页：中间输入框 + 悬浮标签） ===================== */
.record-hero { position: relative; flex: 1; overflow: hidden; display: flex; align-items: center; justify-content: center; padding: 16px 16px 16px; }
.hero-orb { position: absolute; border-radius: 50%; filter: blur(44px); opacity: .5; pointer-events: none; }
.hero-orb.o1 { width: 210px; height: 210px; top: 4%; left: -52px; background: radial-gradient(circle, rgba(124, 92, 255, .32), transparent 70%); animation: floatY 6s ease-in-out infinite; }
.hero-orb.o2 { width: 250px; height: 250px; bottom: 3%; right: -60px; background: radial-gradient(circle, rgba(24, 200, 255, .3), transparent 70%); animation: floatY 7s ease-in-out infinite reverse; }
/* 悬浮标签层：位于输入框模块“之上”(z-index:3) 保证清晰可见；
   但只生成在「输入框四周的空白留白区」(safeRegions 计算)——绝不会落在输入框/按钮/文字/图标上 */
.float-tags { position: absolute; inset: 0; z-index: 3; pointer-events: none; overflow: hidden; }
.hero-inner { position: relative; z-index: 2; width: 100%; max-width: 540px; text-align: center; }
.hero-title { font-size: 15px; color: var(--ink-2); margin: 0 0 16px; font-weight: 600; }
.hero-title b { background: linear-gradient(92deg, var(--brand), var(--brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-card {
  background: rgba(255, 255, 255, .82); border: 1px solid transparent; border-radius: 22px;
  padding: 16px; box-shadow: 0 16px 44px rgba(79, 107, 255, .16); backdrop-filter: blur(10px);
  transition: box-shadow .3s, border-color .3s;
}
.hero-card.focus { border-color: rgba(79, 107, 255, .5); box-shadow: 0 16px 50px rgba(79, 107, 255, .28); }
.hero-card textarea {
  width: 100%; min-height: 74px; max-height: 160px; resize: none; border: none; outline: none;
  background: transparent; padding: 4px 2px 8px; line-height: 1.6; font-size: 16px; color: var(--ink);
}
.hero-card textarea::placeholder { color: var(--sub); }
/* 隐藏记录框滚动条，避免右侧出现灰色滚动条影响美观 */
.hero-card textarea { scrollbar-width: none; -ms-overflow-style: none; }
.hero-card textarea::-webkit-scrollbar { width: 0; height: 0; display: none; }
.hero-actions { display: flex; align-items: center; gap: 10px; margin-top: 10px; border-top: 1px dashed var(--line); padding-top: 12px; }
.hero-actions .icobtn { flex: 0 0 auto; }
.hero-actions .sendbtn { flex: 1; }
.hero-hint { margin-top: 14px; font-size: 12.5px; color: var(--sub); display: flex; align-items: center; justify-content: center; gap: 6px; }
.hero-hint .spark { font-size: 14px; filter: drop-shadow(0 0 6px rgba(79, 107, 255, .5)); }

/* ---- 悬浮标签（位置在输入框四周留白区，字号/运动随机，不点击、不影响输入） ---- */
.rbubble {
  position: absolute; transform: translateZ(0);
  display: inline-flex; align-items: center; gap: 4px;
  font-weight: 600; padding: 5px 12px; border-radius: 22px;
  white-space: nowrap; pointer-events: none; user-select: none;
  font-size: 12px; color: var(--ink-2);
  background: rgba(255, 255, 255, .62);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  border: 1px solid rgba(124, 92, 255, .2);
  box-shadow: 0 3px 10px rgba(40, 52, 110, .07);
  opacity: 0; will-change: transform, opacity;
}
.rbubble .bi { font-size: 1em; opacity: .82; }
/* 若隐若现：原地淡入淡出，不移动 */
.rbubble.f-fade { animation: rbFade var(--dur, 5s) ease-in-out forwards; }
@keyframes rbFade {
  0% { opacity: 0; } 22% { opacity: .92; } 62% { opacity: .82; } 100% { opacity: 0; }
}
/* 上浮短距离消失（仅上方区域使用，离输入框更远） */
.rbubble.f-up { animation: rbUp var(--dur, 5s) cubic-bezier(.3, .7, .3, 1) forwards; }
@keyframes rbUp {
  0% { opacity: 0; transform: translateY(0); }
  18% { opacity: .92; }
  100% { opacity: 0; transform: translateY(calc(-1 * var(--rise, 56px))); }
}
/* 向左消失 */
.rbubble.f-left { animation: rbLeft var(--dur, 5s) ease-in forwards; }
@keyframes rbLeft {
  0% { opacity: 0; transform: translateX(0); }
  18% { opacity: .9; }
  100% { opacity: 0; transform: translateX(calc(-1 * var(--shift, 70px))); }
}
/* 向右消失 */
.rbubble.f-right { animation: rbRight var(--dur, 5s) ease-in forwards; }
@keyframes rbRight {
  0% { opacity: 0; transform: translateX(0); }
  18% { opacity: .9; }
  100% { opacity: 0; transform: translateX(var(--shift, 70px)); }
}

/* ---- 对话输入区（玻璃浮岛风格，与底部导航同一套设计语言） ---- */
.composer {
  flex: 0 0 auto; position: relative; z-index: 2;
  margin: 8px 14px calc(8px + var(--safe-b));
  padding: 8px;
  border-radius: 22px;
  background: rgba(255, 255, 255, .72);
  -webkit-backdrop-filter: saturate(190%) blur(20px); backdrop-filter: saturate(190%) blur(20px);
  box-shadow: 0 14px 38px rgba(40, 52, 110, .18), 0 2px 8px rgba(40, 52, 110, .06);
  border: none;
}
/* 顶部柔光：呼应底部导航的光晕，让输入区与导航成为一体 */
.composer::before {
  content: ""; position: absolute; left: 12%; right: 12%; top: -16px; height: 28px; z-index: 0; pointer-events: none;
  background: radial-gradient(60% 100% at 50% 100%, rgba(79, 107, 255, .16), transparent 72%);
  filter: blur(10px);
}
.composer .inner { position: relative; z-index: 1; }
.thumbs { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 8px; }
.thumb { position: relative; width: 58px; height: 58px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb .x {
  position: absolute; top: 0; right: 0; width: 19px; height: 19px; line-height: 17px; text-align: center;
  background: rgba(27, 33, 56, .7); color: #fff; font-size: 13px; border-radius: 0 0 0 9px; cursor: pointer;
}
.cmp-row { display: flex; align-items: flex-end; gap: 8px; }
.cmp-row textarea {
  flex: 1; height: 46px; min-height: 46px; max-height: 46px; resize: none; border: 1px solid transparent; overflow: hidden;
  background: rgba(245, 247, 255, .9); border-radius: 16px; padding: 13px 14px; outline: none; line-height: 1.35;
  color: var(--ink); transition: border-color .18s, background .18s, box-shadow .18s;
}
.cmp-row textarea::placeholder { color: var(--sub); }
.cmp-row textarea:focus { border-color: rgba(79, 107, 255, .5); background: #fff; box-shadow: 0 0 0 3px rgba(79, 107, 255, .14); }
/* 圆形发送按钮：品牌渐变 + 发光，与导航/图标按钮同源 */
.chat-send {
  width: 46px; height: 46px; min-width: 46px; min-height: 46px;
  flex: 0 0 auto; padding: 0; border: none; border-radius: 50%; outline: none;
  -webkit-appearance: none; appearance: none; box-sizing: border-box;
  display: flex; align-items: center; justify-content: center; cursor: pointer; color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 6px 18px rgba(79, 107, 255, .42); transition: opacity .15s, filter .15s, box-shadow .15s;
}
.chat-send:focus { outline: none; }
.chat-send svg { width: 20px; height: 20px; }
.chat-send .cs-ic { display: flex; }
.chat-send.loading .cs-ic { animation: csSpin .8s linear infinite; }
.chat-send.loading { opacity: .7; }
.chat-send:active { filter: brightness(.92); }
.chat-send:disabled { opacity: .5; box-shadow: none; }
@keyframes csSpin { to { transform: rotate(360deg); } }
.icobtn {
  width: 42px; height: 42px; flex: 0 0 auto; border: 1px solid var(--line); background: #f1f3fb;
  border-radius: 14px; font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--ink-2);
  transition: .18s;
}
.icobtn:active { background: #e7eaf6; transform: scale(.95); }
.sendbtn {
  height: 42px; padding: 0 20px; flex: 0 0 auto; border: none; border-radius: 14px; cursor: pointer;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; font-weight: 700;
  box-shadow: 0 6px 18px rgba(79, 107, 255, .35); transition: .15s;
}
.sendbtn:hover { box-shadow: 0 8px 26px rgba(79, 107, 255, .5); }
.sendbtn:active { transform: scale(.96); }
.sendbtn:disabled { opacity: .55; box-shadow: none; }

/* ===================== 已发布 ===================== */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; margin-bottom: 14px; }
.stat {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 12px 6px; text-align: center; box-shadow: var(--shadow);
}
.stat b { display: block; font-size: 19px; font-weight: 800; line-height: 1.2;
  background: linear-gradient(180deg, var(--brand), var(--brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { font-size: 11px; color: var(--sub); }
.filter { display: flex; gap: 8px; margin-bottom: 14px; }
.filter .fld { height: 38px; border-radius: 11px; font-size: 13.5px; }
.filter select.fld { flex: 0 0 118px; padding: 0 8px; }

.post {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 14px; margin-bottom: 12px;
  animation: rise .4s cubic-bezier(.2, .7, .3, 1) both;
}
.post-hd { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; }
.post-hd .t { flex: 1; font-size: 12px; color: var(--sub); }
.post-hd .g { font-size: 11px; padding: 2px 8px; border-radius: 6px; background: rgba(79, 107, 255, .12); color: var(--brand); font-weight: 600; }
.post-hd .g.solo { background: #f1f3fb; color: var(--sub); }
.post-hd .del { font-size: 12px; color: var(--sub); cursor: pointer; padding: 2px 4px; transition: .15s; }
.post-hd .del:active { color: var(--danger); }
.post-tx { line-height: 1.7; white-space: pre-wrap; word-break: break-word; color: var(--ink); }
.post-tx.muted { color: var(--sub); }
.post-ft { margin-top: 9px; }
.loadmore { text-align: center; padding: 6px 0 22px; }

/* 已发布图片网格：约束宽度，绝不超出屏幕 */
.imgs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 10px; }
.imgs img {
  width: 100%; height: 104px; max-width: 100%; object-fit: cover; display: block;
  border-radius: 11px; border: 1px solid var(--line); background: #eef1fb;
  cursor: pointer; transition: transform .18s, box-shadow .18s; box-sizing: border-box;
}
.imgs img:active { transform: scale(.97); box-shadow: 0 6px 18px rgba(79, 107, 255, .25); }

/* ===================== 时间线 ===================== */
.tl { position: relative; padding-left: 22px; }
.tl::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(180deg, var(--brand), var(--brand-3)); border-radius: 2px; box-shadow: 0 0 10px rgba(79, 107, 255, .35); }
.tl-date { position: relative; margin: 18px 0 10px; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.tl-date:first-child { margin-top: 2px; }
.tl-date::before { content: ""; position: absolute; left: -21px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 3px #fff, 0 0 12px rgba(79, 107, 255, .55); }
.tl-item { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow); padding: 12px 13px; margin-bottom: 9px; display: flex; gap: 11px; }
.tl-ic { flex: 0 0 auto; font-size: 20px; filter: drop-shadow(0 0 6px rgba(79, 107, 255, .35)); }
.tl-item .n { font-weight: 600; font-size: 14px; }
.tl-item .c { color: var(--sub); font-size: 12.5px; margin-top: 3px; line-height: 1.6; }

/* ===================== 群组 ===================== */
.glist { list-style: none; padding: 0; margin: 0; }
.glist li { display: flex; align-items: center; gap: 11px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.glist li:last-child { border-bottom: none; padding-bottom: 0; }
.glist .gi { width: 40px; height: 40px; flex: 0 0 auto; border-radius: 13px; background: linear-gradient(135deg, #ffb86b, #ff7eb3); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 17px; box-shadow: 0 0 14px rgba(255, 126, 179, .3); }
.glist .gm { flex: 1; min-width: 0; }
.glist .gm b { display: block; font-size: 14.5px; font-weight: 600; }
.glist .gm span { font-size: 11.5px; color: var(--sub); }
.code { font-family: ui-monospace, Menlo, Consolas, monospace; letter-spacing: .5px; color: var(--brand); }

/* ===================== 浮层 ===================== */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--tabbar-h) + var(--safe-b) + 48px); transform: translate(-50%, 12px);
  background: rgba(255, 255, 255, .96); color: var(--ink); border: 1px solid var(--line);
  padding: 10px 18px; border-radius: 22px; font-size: 13.5px;
  box-shadow: 0 8px 28px rgba(40, 52, 110, .18);
  z-index: 999; opacity: 0; pointer-events: none; transition: .22s; max-width: 76%; text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
/* ---- 图片预览 / 灯箱（仅左右滑动切换，点击空白关闭） ---- */
.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  background: rgba(9, 11, 18, .94);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  opacity: 0; visibility: hidden;
  transition: opacity .26s ease, visibility .26s ease;
}
.lightbox.show { opacity: 1; visibility: visible; }
.lb-bar { position: absolute; top: 0; left: 0; right: 0; height: calc(56px + var(--status-bar-h)); display: flex; align-items: center; justify-content: space-between; padding: calc(var(--status-bar-h) + 10px) 16px 0; z-index: 4; pointer-events: none; }
.lb-bar > * { pointer-events: auto; }
.lb-count { color: #fff; font-size: 13px; font-weight: 600; letter-spacing: .4px; background: rgba(255, 255, 255, .14); padding: 6px 14px; border-radius: 20px; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.lb-close { width: 40px; height: 40px; border: none; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; font-size: 17px; line-height: 1; display: flex; align-items: center; justify-content: center; cursor: pointer; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: transform .15s ease, background .15s ease; }
.lb-close:active { transform: scale(.9); background: rgba(255, 255, 255, .3); }
.lb-view { width: 100%; height: 100%; overflow: hidden; touch-action: none; }
.lb-track { display: flex; height: 100%; width: 100%; transition: transform .34s cubic-bezier(.22, .61, .36, 1); will-change: transform; }
.lb-track.no-anim { transition: none; }
.lb-slide { flex: 0 0 100%; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; padding: calc(74px + var(--safe-t)) 20px calc(56px + var(--safe-b)); box-sizing: border-box; }
.lb-slide img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 16px; box-shadow: 0 22px 70px rgba(0, 0, 0, .55); -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; animation: lbPop .32s ease both; }
@keyframes lbPop { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: scale(1); } }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: none; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 26px; line-height: 1; cursor: pointer; z-index: 4; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: transform .15s ease, background .15s ease; }
.lb-nav:active { transform: translateY(-50%) scale(.9); background: rgba(255, 255, 255, .3); }
.lb-prev { left: 14px; } .lb-next { right: 14px; }
.lb-dots { position: absolute; bottom: calc(24px + var(--safe-b)); left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 4; }
.lb-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .35); transition: .25s ease; cursor: pointer; }
.lb-dots i.on { background: #fff; width: 20px; border-radius: 4px; }
.mask { position: fixed; inset: 0; background: rgba(20, 20, 30, .5); z-index: 900; display: none; }
.mask.show { display: block; }

/* ---- 发送中弹层 ---- */
.sendmask {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(238, 241, 251, .6);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  display: none; align-items: center; justify-content: center;
}
.sendmask.show { display: flex; }
.sendmask-card {
  background: rgba(255, 255, 255, .96);
  border: 1px solid var(--line);
  border-radius: 18px; padding: 28px 38px;
  display: flex; flex-direction: column; align-items: center; gap: 15px;
  box-shadow: 0 16px 50px rgba(40, 52, 110, .22), 0 0 30px rgba(79, 107, 255, .1) inset;
  min-width: 210px;
}
.spinner {
  width: 34px; height: 34px; border-radius: 50%;
  border: 3px solid rgba(79, 107, 255, .18); border-top-color: var(--brand);
  -webkit-animation: spin .8s linear infinite; animation: spin .8s linear infinite;
  box-shadow: 0 0 14px rgba(79, 107, 255, .35);
}
@-webkit-keyframes spin { to { -webkit-transform: rotate(360deg); } }
@keyframes spin { to { transform: rotate(360deg); } }
.sendmask-tx { font-size: 14.5px; color: var(--ink-2); font-weight: 600; letter-spacing: .3px; }

/* ===================== 对话（AI 陪伴）— 现代玻璃拟态 + 旋转光环（新颖） ===================== */
.welcome { text-align: center; padding: 22px 16px 14px; }
.welcome .wt {
  display: inline-block; font-size: 14px; font-weight: 700; line-height: 1.55; max-width: 86%;
  background: linear-gradient(135deg, rgba(124, 92, 255, .14), rgba(24, 200, 255, .14));
  color: var(--brand); border: 1px solid rgba(79, 107, 255, .28);
  padding: 12px 22px; border-radius: 18px;
  /* 滚动流畅优化：去掉毛玻璃模糊 */
  box-shadow: 0 8px 24px rgba(79, 107, 255, .12);
  animation: glowPulse 3s infinite;
}

/* 消息行：头像与气泡「顶部对齐」——内容框与头像上边水平线齐平 */
.cmsg { display: flex; gap: 11px; margin-bottom: 20px; align-items: flex-start; animation: rise .45s cubic-bezier(.2, .7, .3, 1) both; }
.cmsg.me { flex-direction: row-reverse; }

/* 头像容器 */
.cava {
  flex: 0 0 auto; width: 46px; height: 46px; border-radius: 50%; position: relative;
  display: flex; align-items: center; justify-content: center; font-size: 19px;
  overflow: visible; z-index: 1;
}
.cava img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.cava .ava-svg { width: 42px; height: 42px; display: block; }

/* 用户头像：调用个人资料头像，外裹细品牌环（与 AI 头像同款品牌渐变，成对协调） */
.cmsg.me .cava {
  padding: 2px;
  background: linear-gradient(135deg, var(--brand), var(--brand-3));
  box-shadow: 0 3px 10px rgba(79, 107, 255, .28);
}
.cmsg.me .cava img { border: 2px solid #fff; }

/* AI 头像：明亮品牌渐变底 + 旋转柔光环（与用户头像同色系、成对协调；图标为白色友好机器人 SVG） */
.cmsg.ai .cava {
  background: linear-gradient(135deg, var(--brand), var(--brand-3));
  color: #fff;
  box-shadow: 0 5px 16px rgba(79, 107, 255, .34), inset 0 0 10px rgba(255, 255, 255, .45);
}
.cmsg.ai .cava::before {
  content: ""; position: absolute; inset: -5px; border-radius: 50%; z-index: -1;
  background: conic-gradient(from 0deg, var(--brand), var(--brand-2), var(--brand-3), var(--brand));
  opacity: .35;
  animation: spin 6s linear infinite;
  will-change: transform;
}
/* 头像内 SVG 图标统一呈现 */
.ava-svg { display: block; width: 23px; height: 23px; }

.cmsg-main { flex: 1; min-width: 0; max-width: 74%; display: flex; flex-direction: column; }
.cmsg.me .cmsg-main { align-items: flex-end; }

.cbubble {
  padding: 12px 15px; border-radius: 18px; line-height: 1.7;
  white-space: pre-wrap; word-break: break-word; font-size: 14.5px; position: relative;
  transition: transform .15s;
}
/* AI：玻璃拟态卡片（通透、无侧边条，内容完整显示） */
.cmsg.ai .cbubble {
  background: rgba(255, 255, 255, .96);
  border: 1px solid rgba(120, 130, 170, .18);
  border-radius: 18px;
  color: var(--ink);
  box-shadow: 0 8px 26px rgba(40, 52, 110, .1);
}
/* 用户：玻璃渐变胶囊（现代、轻盈） */
.cmsg.me .cbubble {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff; border-radius: 18px 6px 18px 18px;
  box-shadow: 0 8px 22px rgba(79, 107, 255, .34);
}
.cmeta { font-size: 10.5px; color: var(--sub); margin: 6px 2px 0; }
.cmsg.me .cmeta { text-align: right; }

/* 思考态：能量波形（亮色） */
.thinking-wave { display: inline-flex; align-items: flex-end; gap: 3px; height: 16px; }
.thinking-wave i {
  width: 4px; border-radius: 3px;
  background: linear-gradient(180deg, var(--brand), var(--brand-3));
  animation: wave 1s ease-in-out infinite; transform-origin: bottom;
}
.thinking-wave i:nth-child(1) { height: 9px; animation-delay: 0s; }
.thinking-wave i:nth-child(2) { height: 15px; animation-delay: .15s; }
.thinking-wave i:nth-child(3) { height: 6px; animation-delay: .3s; }
.thinking-wave i:nth-child(4) { height: 13px; animation-delay: .45s; }
@keyframes wave { 0%, 100% { transform: scaleY(.4); } 50% { transform: scaleY(1); } }
.thinking-tx { margin-left: 9px; color: var(--ink-2); font-size: 13px; }
.cbubble.thinking { background: rgba(255, 255, 255, .72); border: 1px solid rgba(120, 130, 170, .2); }
/* 兼容旧三点（保留以防） */
.ctyping { display: inline-flex; gap: 4px; align-items: center; }
.ctyping i { width: 6px; height: 6px; border-radius: 50%; background: var(--sub); display: inline-block; animation: blink 1.1s infinite both; }
.ctyping i:nth-child(2) { animation-delay: .18s; }
.ctyping i:nth-child(3) { animation-delay: .36s; }
@keyframes blink { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }

/* ===================== 宽屏适配 ===================== */
@media (min-width: 820px) {
  .stream, .pad { padding-left: 0; padding-right: 0; }
  .stream > .inner, .pad > .inner { padding: 0 18px; }
  .imgs { grid-template-columns: repeat(4, 1fr); }
  .tabbar-in { max-width: 860px; margin: 0 auto; }
}

/* ===================== 登录 / 注册屏（内置弹屏 + 独立页共用） ===================== */
.auth-screen{position:fixed;inset:0;z-index:200;display:none;align-items:flex-start;justify-content:center;padding:calc(var(--status-bar-h) + 80px) 22px 22px;
  background:radial-gradient(130% 90% at 50% -10%,#f3f6ff 0%,#e9edfb 46%,#e4e9f7 100%);}
.auth-screen.show{display:flex;}
/* 应用内登录浮层：统一渐变标题头（与子页 .float-head 同款） */
.auth-head{
  position:fixed; top:0; left:0; right:0; z-index:1;
  padding-top:var(--status-bar-h);
  height:calc(var(--status-bar-h) + var(--topbar-h));
  background:linear-gradient(180deg, #4f6bff 0%, #5660f3 26%, #7c5cff 60%, #8a5cf0 100%);
  border-radius:0 0 18px 18px;
  box-shadow:0 6px 24px rgba(20,30,80,.12);
  overflow:hidden;
  display:flex; align-items:center; justify-content:center;
}
.auth-head::before{
  content:""; position:absolute; inset:0; opacity:.12; pointer-events:none;
  background-image:linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent);
  background-size:45% 100%; background-repeat:no-repeat;
  animation:headShine 4s ease-in-out infinite;
}
.auth-head .ah-title{
  position:relative; z-index:1;
  font-size:17px; font-weight:800; color:#fff; letter-spacing:.3px;
  text-shadow:0 2px 8px rgba(20,30,80,.2);
}
.auth-card{width:100%;max-width:380px;background:rgba(255,255,255,.86);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);
  border:1px solid rgba(120,130,170,.16);border-radius:22px;box-shadow:0 18px 50px rgba(40,52,110,.18);padding:26px 22px;}
.auth-logo{display:flex;align-items:center;gap:10px;justify-content:center;margin-bottom:6px;font-weight:800;font-size:20px;
  background:linear-gradient(92deg,#4f6bff,#7c5cff 55%,#18c8ff);-webkit-background-clip:text;background-clip:text;color:transparent;}
.auth-logo .dot{width:26px;height:26px;border-radius:8px;background:linear-gradient(92deg,#4f6bff,#7c5cff 55%,#18c8ff);box-shadow:0 8px 22px rgba(79,107,255,.35);}
.auth-sub{text-align:center;color:#9399ad;font-size:13px;margin-bottom:18px;}
.auth-seg{display:flex;background:#eef1fb;border-radius:12px;padding:4px;margin-bottom:16px;}
.auth-seg div{flex:1;text-align:center;padding:8px 0;border-radius:9px;font-weight:700;color:#515a72;font-size:14px;cursor:pointer;transition:.18s;}
.auth-seg div.on{background:#fff;color:#4f6bff;box-shadow:0 4px 12px rgba(79,107,255,.14);}
.auth-card .fld{width:100%;padding:12px 14px;border-radius:12px;border:1px solid rgba(120,130,170,.2);background:#fff;font-size:15px;margin-bottom:12px;outline:none;}
.auth-card .fld:focus{border-color:rgba(79,107,255,.5);box-shadow:0 0 0 3px rgba(79,107,255,.14);}
.auth-card .btn{width:100%;padding:12px;border-radius:12px;border:none;background:linear-gradient(92deg,#4f6bff,#7c5cff 55%,#18c8ff);color:#fff;font-weight:800;font-size:15px;cursor:pointer;box-shadow:0 10px 30px rgba(79,107,255,.22);}
.auth-err{color:#ef4444;font-size:13px;min-height:18px;margin-bottom:8px;text-align:center;}
.field{margin-bottom:12px;}
.field label{display:block;font-size:13px;font-weight:700;color:#515a72;margin-bottom:6px;}

/* ============================================================
 * 「我的」个人中心（QQ / 微信风格：横幅头像 + 数据条 + 分组 Cell）
 * ========================================================== */
/* Alpine 作用域包裹容器：不参与布局，保证内部 .view 仍以 .views 为定位父级 */
.x-scope { display: contents; }
[hidden] { display: none !important; }

.btn.block { width: 100%; display: block; }
.btn.danger { background: linear-gradient(92deg, #ff6b6b, #ef4444); box-shadow: 0 10px 26px rgba(239, 68, 68, .28); }

/* ---- 头像横幅 ---- */
.me-banner {
  flex: 0 0 auto; position: relative; z-index: 6;
  /* 底部内边距收紧：把拱形与统计模块整体上移，个人资料（顶部）与拱形顶端仍保持安全距离 */
  padding: calc(40px + var(--status-bar-h)) 16px 62px;
  /* 负 margin：把下方滚动区上提、叠到横幅之下，使拱形镂空处能透出「上滑的内容」而非静态背景 */
  margin-bottom: -76px;
  background: var(--brand-grad);
  background-size: 220% 220%;
  animation: bannerShift 13s ease-in-out infinite alternate;
  /* 底部中央以平缓拱形「镂空」：纵向半径收窄(58px)使弧度更浅更平缓、不再过弯；
     加入 52%→64% 的柔化过渡带(约 7px 羽化)，弧边变柔和不生硬，同时仍清晰不糊；
     拱形随横幅重叠延伸到内容区，透出整页背景（.bg-fx）与上滑内容 */
  -webkit-mask: radial-gradient(130% 58px at 50% 100%, transparent 0 52%, #000 64%);
          mask: radial-gradient(130% 58px at 50% 100%, transparent 0 52%, #000 64%);
}
/* 底部拱形已由 .me-banner 的 mask 镂空实现：透出整页背景 .bg-fx，不再用灰色实心填充 */
@keyframes bannerShift { 0% { background-position: 0% 50%; } 100% { background-position: 100% 50%; } }
.me-bn-fx { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.me-bn-fx .mb { position: absolute; border-radius: 50%; filter: blur(34px); opacity: .55; }
.me-bn-fx .b1 { width: 180px; height: 180px; top: -70px; right: -40px; background: rgba(255, 255, 255, .55); animation: bnFloat1 11s ease-in-out infinite; }
.me-bn-fx .b2 { width: 150px; height: 150px; bottom: -70px; left: -30px; background: rgba(255, 143, 199, .55); animation: bnFloat2 14s ease-in-out infinite; }
@keyframes bnFloat1 { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-16px, 12px); } }
@keyframes bnFloat2 { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(18px, -10px); } }
.me-bn-in {
  position: relative; z-index: 1; display: flex; align-items: center; gap: 14px;
  max-width: 860px; margin: 0 auto; cursor: pointer; transition: .18s;
}
.me-bn-in:active { transform: scale(.99); opacity: .92; }
.me-ava {
  width: 62px; height: 62px; flex: 0 0 auto; border-radius: 18px; object-fit: cover;
  border: 2px solid rgba(255, 255, 255, .9); background: #fff;
  box-shadow: 0 8px 22px rgba(20, 30, 80, .22);
}
.me-ava.lg { width: 84px; height: 84px; border-radius: 24px; border-color: #fff; box-shadow: var(--shadow); }
.me-id { flex: 1; min-width: 0; }
.me-nick { font-size: 19px; font-weight: 800; color: #fff; letter-spacing: .3px; text-shadow: 0 2px 10px rgba(20, 30, 80, .18); }
.me-sign {
  margin-top: 4px; font-size: 12.5px; color: rgba(255, 255, 255, .85);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.me-arrow { flex: 0 0 auto; font-size: 24px; color: rgba(255, 255, 255, .8); line-height: 1; }

/* ---- 主体：横幅通过负 margin 叠在滚动区之上，此处 padding-top 与之抵消，
   使统计模块起点正好落在横幅底边（紧贴拱形、不悬空）；拱形镂空处则透出上滑内容 ---- */
#v-me .scroll { padding-top: 76px; }
.me-body { max-width: 860px; margin: 0 auto; padding: 0 14px 26px; position: relative; z-index: 2; }

/* ---- 数据概览条 ---- */
.me-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px;
  background: var(--card); border-radius: var(--r-md); box-shadow: var(--shadow);
  padding: 14px 6px; margin-bottom: 14px;
}
.me-stats .ms { text-align: center; cursor: pointer; transition: .16s; border-radius: 10px; padding: 2px 0; }
.me-stats .ms:active { background: #f1f3fb; transform: scale(.96); }
.me-stats .ms b {
  display: block; font-size: 19px; font-weight: 800; line-height: 1.25;
  background: linear-gradient(92deg, var(--brand), var(--brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.me-stats .ms span { font-size: 11px; color: var(--sub); }

/* ---- 分组 Cell 列表（微信「我的」范式） ---- */
.cells { background: var(--card); border-radius: var(--r-md); box-shadow: var(--shadow); overflow: hidden; margin-bottom: 14px; }
.cell {
  display: flex; align-items: center; gap: 12px; padding: 14px 15px;
  border-bottom: 1px solid var(--line); cursor: pointer; transition: background .16s;
}
.cell:last-child { border-bottom: none; }
.cell:active { background: #f4f6fd; }
.cell .ci {
  width: 32px; height: 32px; flex: 0 0 auto; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; font-size: 17px;
  background: #f1f3fb;
}
.cell .ci.c-rp { background: linear-gradient(135deg, #ffd39b, #ff9f6b); }
.cell .ci.c-gp { background: linear-gradient(135deg, #ffb86b, #ff7eb3); }
.cell .ci.c-tl { background: linear-gradient(135deg, #a5f3d0, #34d399); }
.cell .ci.c-po { background: linear-gradient(135deg, #bcd0ff, #7c9bff); }
.cell .ci.c-ai { background: linear-gradient(135deg, #d5c6ff, #a78bfa); }
.cell .ci.c-ed { background: linear-gradient(135deg, #c7f0ff, #56cdf5); }
.cell .ci.c-pw { background: linear-gradient(135deg, #ffe0a3, #f5b942); }
.cell .ci.c-mb { background: linear-gradient(135deg, #ffd98a, #f08a2e); }
.cell .ct { flex: 1; min-width: 0; font-size: 15px; font-weight: 600; color: var(--ink); }
.cell .cd { flex: 0 0 auto; font-size: 12.5px; color: var(--sub); max-width: 46%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cell .ca { flex: 0 0 auto; font-size: 19px; color: #c6cade; line-height: 1; }
.cell.only { justify-content: center; padding: 15px; }
.cell.only .ct { flex: 0 0 auto; text-align: center; }
.cell.danger .ct { color: var(--danger); font-weight: 700; }
.cell .ci.c-ab { background: linear-gradient(135deg, #c7e9ff, #56cdf5); }
.cell .ci.c-pp { background: linear-gradient(135deg, #ffd6e7, #ff8fc7); }
.cell .ci.c-ver { background: linear-gradient(135deg, #d9d3ff, #9b8cff); }

.me-foot { text-align: center; font-size: 11.5px; color: var(--sub); padding: 8px 0 4px; letter-spacing: .3px; }
.me-edit-top { text-align: center; padding: 6px 0 16px; }
/* 头像选择：圆形头像 + 悬停遮罩，点击即上传 */
.ava-pick { position: relative; display: inline-block; cursor: pointer; border-radius: 26px; }
.ava-pick .me-ava.lg { display: block; }
.ava-pick-mask { position: absolute; left: 0; right: 0; bottom: 0; height: 30px;
  display: flex; align-items: center; justify-content: center; gap: 4px;
  font-size: 12px; color: #fff; background: linear-gradient(0deg, rgba(40,46,90,.72), rgba(40,46,90,0));
  border-radius: 0 0 24px 24px; opacity: 1; transition: .18s; }
.ava-pick:active .ava-pick-mask { opacity: .85; }
.ava-cam { font-style: normal; font-weight: 700; line-height: 1; }
.ava-row { display: none; }
.ava-path { display: none; }
.hide { display: none !important; }
.pw-err { color: var(--danger); font-size: 13px; text-align: center; min-height: 18px; margin-bottom: 8px; }

/* ---- 关于我们 / 隐私保护（APP 必要信息页） ---- */
.about-card { text-align: center; background: linear-gradient(160deg, #ffffff 0%, #f4f7ff 100%); border-color: rgba(79, 107, 255, .16); }
.about-logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 19px;
  background: linear-gradient(92deg, var(--brand), var(--brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.about-logo .dot { width: 22px; height: 22px; border-radius: 7px; background: linear-gradient(92deg, var(--brand), var(--brand-2) 55%, var(--brand-3)); box-shadow: 0 6px 16px rgba(79, 107, 255, .35); }
.about-slogan { margin: 8px 0 0; font-size: 12.5px; color: var(--sub); }
.about-tx { font-size: 13.5px; line-height: 1.8; color: var(--ink-2); margin: 0 0 10px; }
.about-tx b { color: var(--brand); }
.about-tx:last-child { margin-bottom: 0; }
.about-foot { text-align: center; font-size: 11.5px; color: var(--sub); padding: 10px 0 4px; }
/* 内容安全风控：官方接口徽标 */
.about-badge { display: inline-flex; align-items: center; gap: 5px; margin: 0 0 10px; padding: 4px 12px;
  font-size: 11.5px; font-weight: 600; color: var(--brand); background: rgba(79, 107, 255, .10);
  border: 1px solid rgba(79, 107, 255, .26); border-radius: 999px; }

/* ---- 后台可配置长文本（关于我们 / 服务协议 / 隐私政策）渲染容器 ---- */
.doc-card { padding: 18px 18px; }
.doc-card .doc-p { margin: 0 0 14px; }
.doc-card .doc-p:last-child { margin-bottom: 0; }
.doc-card .doc-h { font-size: 14.5px; font-weight: 700; color: var(--ink); margin: 0 0 6px;
  padding-left: 10px; border-left: 3px solid var(--brand); line-height: 1.5; }
.doc-card .doc-l { font-size: 13.5px; line-height: 1.85; color: var(--ink-2); margin: 0 0 4px; }
.doc-card .doc-empty { font-size: 13.5px; color: var(--sub); line-height: 1.8; }

/* ============================================================
 * 回忆报表（纯 H5 形态：生成面板 / 列表 / 长图式详情）
 * ========================================================== */
/* 生成面板：比普通卡片更亮一点，作为报表页的主行动区 */
.rp-gen {
  background: linear-gradient(160deg, #ffffff 0%, #f7f9ff 100%);
  border: 1px solid rgba(79, 107, 255, .16);
}
.rp-gen h3 small { margin-left: auto; }

.rp-types { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 12px; }
.rp-t {
  border: 1px solid var(--line); background: #f7f8fd; border-radius: 12px; padding: 10px 4px;
  display: flex; flex-direction: column; align-items: center; gap: 2px; cursor: pointer; transition: .18s;
}
.rp-t b { font-size: 13.5px; font-weight: 700; color: var(--ink-2); }
.rp-t span { font-size: 10.5px; color: var(--sub); }
.rp-t:active { transform: scale(.96); }
.rp-t.active { background: linear-gradient(135deg, rgba(79, 107, 255, .12), rgba(124, 92, 255, .12)); border-color: rgba(79, 107, 255, .45); box-shadow: 0 6px 16px rgba(79, 107, 255, .16); }
.rp-t.active b { color: var(--brand); }
.rp-range { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.rp-range .fld { flex: 1; height: 40px; }
.rp-to { flex: 0 0 auto; font-size: 13px; color: var(--sub); }
.rp-sec-t { font-size: 13px; font-weight: 700; color: var(--ink-2); margin: 4px 2px 10px; }

/* ---- 报表列表卡片 ---- */
.rp-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--shadow); padding: 14px 15px; margin-bottom: 11px; position: relative; overflow: hidden;
}
.rp-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: linear-gradient(180deg, var(--brand), var(--brand-3)); }
.rp-card .rc-hd { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.rp-card .rc-tag { font-size: 10.5px; font-weight: 700; padding: 2px 8px; border-radius: 6px; background: rgba(79, 107, 255, .12); color: var(--brand); }
.rp-card .rc-t { flex: 1; min-width: 0; font-size: 15.5px; font-weight: 700; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rp-card .rc-p { font-size: 11.5px; color: var(--sub); margin-bottom: 8px; }
.rp-card .rc-s { font-size: 13px; color: var(--ink-2); line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rp-card .rc-m { display: flex; gap: 12px; margin-top: 10px; font-size: 11.5px; color: var(--sub); }
.rp-card .rc-m i { font-style: normal; font-weight: 800; color: var(--ink-2); }
.rp-card .rc-ft { display: flex; gap: 8px; margin-top: 12px; padding-top: 11px; border-top: 1px dashed var(--line); }
.rp-card .rc-ft .btn { flex: 1; }

/* ---- 报表详情（长图式阅读） ---- */
.rp-hero {
  background: linear-gradient(135deg, #4f6bff 0%, #7c5cff 55%, #18c8ff 100%); color: #fff;
  border-radius: var(--r-lg); padding: 22px 18px; margin-bottom: 12px; box-shadow: 0 14px 34px rgba(79, 107, 255, .3);
}
.rp-hero .kicker { font-size: 11.5px; opacity: .9; letter-spacing: 1px; font-weight: 700; }
.rp-hero h2 { margin: 6px 0 4px; font-size: 22px; font-weight: 800; letter-spacing: .3px; }
.rp-hero .period { font-size: 12px; opacity: .88; }
.rp-hero .lead { margin-top: 13px; font-size: 14px; line-height: 1.8; background: rgba(255, 255, 255, .16); border-radius: 12px; padding: 12px 13px; }
.rp-metrics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; margin-bottom: 12px; }
.rp-m { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow); padding: 14px 12px; text-align: center; }
.rp-m b { display: block; font-size: 25px; font-weight: 800; line-height: 1.2; background: linear-gradient(92deg, var(--brand), var(--brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rp-m span { font-size: 11.5px; color: var(--sub); }
.rp-story { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow); padding: 15px; margin-bottom: 11px; }
.rp-story .eyebrow { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 800; margin-bottom: 9px; }
.rp-story .eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; }
.rp-story.past .eyebrow { color: #d97706; }
.rp-story.past .eyebrow .dot { background: #f59e0b; box-shadow: 0 0 10px rgba(245, 158, 11, .5); }
.rp-story.pres .eyebrow { color: var(--brand); }
.rp-story.pres .eyebrow .dot { background: var(--brand); box-shadow: 0 0 10px rgba(79, 107, 255, .5); }
.rp-story.fut .eyebrow { color: #10b981; }
.rp-story.fut .eyebrow .dot { background: #10b981; box-shadow: 0 0 10px rgba(16, 185, 129, .5); }
.rp-story .body { font-size: 14px; line-height: 1.85; color: var(--ink-2); white-space: pre-wrap; }
.rp-moment { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.rp-moment:last-child { border-bottom: none; padding-bottom: 0; }
.rp-moment .idx {
  flex: 0 0 auto; width: 22px; height: 22px; border-radius: 8px; font-size: 12px; font-weight: 800; color: #fff;
  display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--brand), var(--brand-2));
}
.rp-moment .txt { flex: 1; font-size: 13.5px; line-height: 1.7; color: var(--ink-2); }
.rp-insight { display: flex; gap: 9px; padding: 9px 0; }
.rp-insight .icon { flex: 0 0 auto; color: var(--brand); font-size: 14px; line-height: 1.6; }
.rp-insight .txt { flex: 1; font-size: 13.5px; line-height: 1.7; color: var(--ink-2); }
.rp-kw { display: flex; flex-wrap: wrap; gap: 7px; }
.rp-kw .kw { font-size: 12px; padding: 4px 11px; border-radius: 20px; font-weight: 600; }
.rp-kw .kw.tag { background: rgba(79, 107, 255, .1); color: var(--brand); }
.rp-kw .kw.emo { background: rgba(255, 143, 199, .16); color: #e0559b; }
.rp-close { text-align: center; color: var(--sub); font-size: 12px; padding: 18px 0 26px; }
.rp-close .sig { margin-top: 6px; font-weight: 800; font-size: 14px; background: linear-gradient(92deg, var(--brand), var(--brand-2), var(--brand-3)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rp-acts { display: flex; gap: 9px; margin-bottom: 12px; }
.rp-acts .btn { flex: 1; }

/* 分享页（独立 H5 页面，无 SPA 视图切换时的滚动容器） */
.rp-page {
  flex: 1; min-height: 0; position: relative; z-index: 1;
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: 14px 14px calc(20px + var(--safe-b));
}
.rp-page > .inner { max-width: 860px; margin: 0 auto; }
.rp-page .rp-cta {
  display: block; text-align: center; margin: 4px 0 10px;
  font-size: 12.5px; color: var(--sub);
}
.rp-page .rp-cta a { color: var(--brand); font-weight: 700; }

/* 共享脚本 memoir-h5.js 的 h5Toast() 载体（分享页等非 SPA 页面复用） */
.h5-toast {
  position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(.96);
  z-index: 9999; max-width: 80%; padding: 11px 18px;
  background: rgba(27, 33, 56, .92); color: #fff; font-size: 14px;
  border-radius: 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
  opacity: 0; pointer-events: none; transition: .2s;
}
.h5-toast.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }
