/* public/pixelos/style/phone-mock.css
   PhoneTimelineMock.astro(hero/features 手机屏 HTML 实锚复刻)专属样式,自 home.css 拆出(逐字迁移)。
   首页经 scripts/bundle-pixelos-css.mjs 并入 home-bundle.generated.css(home.css 之后,级联序不变);
   内页(features)按 pageStyles 分文件加载(page.css 之后)。 */

/* ━━━━━━ hero 手机屏 HTML 实锚复刻(.pm-,PhoneTimelineMock.astro) ━━━━━━
   替代旧烤死时间线截图 webp(已退役);source of truth = docs/design/mobile-app/
   phone-tabs-layout.html ?phone=1 night 主题渲染态(402x850,listening 场景 +
   viewMTimeline,滚到 App 2.0 卡顶上方 8px)。全部值逐项对齐 getComputedStyle
   采集结果(2026-07-30);night 深色 = 截图约定,双主题恒深(同旧 webp / .phone-bar)。
   字体:D-DIN 站内暂缺(零外链政策,pixelos-fonts.css 有记录),mono 位回退 Geist Mono。 */

/* 402 设计宽 → .phone-shot 300px 槽位:transform 缩放,wrapper 定高消除布局空洞 */
.pm-scale {
  position: relative;
  width: 300px;
  height: calc(850px * (300 / 402));
  pointer-events: none;
  user-select: none;
}
.pm-screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 402px;
  height: 850px;
  transform: scale(calc(300 / 402));
  transform-origin: top left;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #17191b;                 /* night --bg;与 .phone-bar 无缝衔接 */
  color: #d8dbdf;                      /* night 正文色 */
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: normal;
  text-align: left;
}

/* ── 顶栏(52px):menu 钮 + 聆听暗块拼成一根 graphite 圆角条 ── */
.pm-navbar { display: flex; align-items: center; height: 52px; padding: 0 12px; flex: none; }
.pm-nav-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: none;
  background: #20242c;
  border-radius: 8px 0 0 8px;
  color: #e7e9ed;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), 0 2px 6px rgba(0, 0, 0, 0.3);
}
.pm-nav-btn svg { width: 19px; height: 19px; }
/* menu 钮与聆听块之间的 1px 竖分隔(设计稿 .nav-btn::after:1x20 @ 右缘垂直居中) */
.pm-nav-btn::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 20px;
  background: #939aa6;
}
.pm-listen {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  height: 44px;
  padding: 0 12px;
  overflow: hidden;
  background: #20242c;
  border-radius: 0 8px 8px 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), 0 2px 6px rgba(0, 0, 0, 0.3);
}
.pm-listen-info { position: relative; z-index: 1; display: flex; align-items: baseline; gap: 10px; }
.pm-listen-title { font-size: 17px; font-weight: 650; line-height: 1.25; color: #e7e9ed; white-space: nowrap; }
.pm-listen-meta { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.48px; color: #939aa6; white-space: nowrap; }
/* 右侧点阵纹理:设计稿为 canvas 动画,静态复刻用现成资产(生产源禁 canvas/rAF,D12 红线);
   资产原亮度高于设计稿静帧 → 0.55 衰减 + 加宽左渐隐,对齐设计稿「左暗右亮」观感 */
.pm-dither {
  position: absolute;
  inset: 0 0 0 133px;
  background: url('/pixelos/assets/shots/listening-dither-static.png') right center / auto 100% no-repeat;
  opacity: 0.5;
}
.pm-dither::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to right, #20242c 8px, rgba(32, 36, 44, 0) 130px); }

/* ── 日历面板:年月 + 周条(borders/间距对齐 .m-display-panel 渲染态) ── */
.pm-panel { flex: none; padding-top: 12px; border-bottom: 1px solid #2c3034; }
.pm-monthyear {
  margin: 0 0 2px;
  padding: 0 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 650;
  line-height: 13px;
  letter-spacing: 1.2px;
  color: #858a91;
}
/* 周条:6 档 63px + 4px gap,首档左溢 8px(对齐设计稿滚动至今日的停靠位) */
.pm-dates { display: flex; align-items: center; gap: 4px; height: 55px; margin-left: -8px; }
.pm-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 63px;
  height: 55px;
  flex: none;
  padding: 3px 0 4px;
}
.pm-date-dow { font-family: var(--font-mono); font-size: 12px; line-height: 13px; letter-spacing: 1.44px; text-transform: uppercase; color: #858a91; }
.pm-date-day { font-family: var(--font-mono); font-size: 22px; line-height: 22px; font-weight: 500; color: #adb1b7; }
.pm-date-dots { display: flex; height: 4px; margin-top: 5px; color: #858a91; }
.pm-date-dots svg { display: block; }
.pm-date.is-today .pm-date-dow, .pm-date.is-today .pm-date-dots { color: #7dba18; }
.pm-date.is-today .pm-date-day { color: #7dba18; font-weight: 650; }

/* ── 时间轨主区:聆听中绿带 + 行(时间列|色条|卡) ── */
.pm-main { position: relative; flex: 1; overflow: hidden; }
/* is-recording 连续绿带(row/rail ::before 同值,合并为一层):左缘绿光衰减 80px + 4% 提亮底 */
.pm-band {
  position: absolute;
  inset: 0 0 0 56px;
  z-index: 0;
  background: linear-gradient(to right, rgba(125, 186, 24, 0.1) 0, rgba(0, 0, 0, 0) 80px), rgba(216, 219, 223, 0.04);
}
.pm-cal { position: relative; z-index: 1; padding: 8px 12px 0; }
.pm-row { display: flex; align-items: stretch; margin-bottom: 26px; }
.pm-gap { position: relative; }
/* 行内时间列(44px):起点顶部对齐,终点吸底右缘 */
.pm-timecol { position: relative; width: 44px; flex: none; padding: 4px 8px 0 0; text-align: right; }
.pm-t-start { display: block; font-family: var(--font-mono); font-size: 12px; line-height: 12px; letter-spacing: 0.48px; color: #858a91; }
.pm-t-end { position: absolute; right: 8px; bottom: 4px; font-family: var(--font-mono); font-size: 11px; line-height: 11px; letter-spacing: 0.48px; color: #858a91; opacity: 0.65; }
/* 分类色条(event-col::before:3px 圆角棒,上下各缩 6px);色值为设计稿 color-mix 渲染结果 */
/* border-left 1px 透明:对齐设计稿 event-col 的 1px dashed transparent(决定卡宽 321
   与 snippet 截断点——少这 1px 首行会多挤进一词,截断成 mid-word) */
.pm-eventcol { position: relative; display: flex; align-items: stretch; flex: 1; padding-left: 12px; border-left: 1px solid rgba(0, 0, 0, 0); }
.pm-eventcol::before { content: ''; position: absolute; left: -2px; top: 6px; bottom: 6px; width: 3px; border-radius: 2px; background: var(--pm-bar); }
/* 卡片:55% graphite 半透底 + 分类色 160° 渐变(9% → 58% 处透明),1px 白 12% 描边 */
.pm-card {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 14px;
  overflow: hidden;
  background: linear-gradient(160deg, var(--pm-tint), rgba(0, 0, 0, 0) 58%), rgba(40, 44, 50, 0.55);
  border: 1px solid rgba(242, 243, 244, 0.12);
  border-radius: 6px;
}
/* 分类水印(data-type-mark → ::after):右上角 22px/650 大字,分类色 16% */
.pm-card-mark {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 0;
  width: 120px;
  font-size: 22px;
  font-weight: 650;
  line-height: 0.92;
  letter-spacing: 1.76px;
  text-align: right;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--pm-mark);
}
.pm-card-head { position: relative; z-index: 1; display: block; margin: 0 0 6px; padding-right: 80px; }
.pm-card-time { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.48px; color: #adb1b7; white-space: nowrap; }
.pm-card-title { position: relative; z-index: 1; display: block; margin: 0 0 14px; font-size: 16px; color: #d8dbdf; }
.pm-card-snippet {
  position: relative;
  z-index: 1;
  margin: 0 0 6px;
  font-size: 13px;
  line-height: 19px;
  color: #adb1b7;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
/* chips 行吸底(设计稿 margin-top:auto 弹性下沉) */
.pm-card-meta { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: auto; padding-bottom: 4px; }
.pm-chip {
  max-width: 140px;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 10px;
  line-height: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pm-chip-person { background: rgba(125, 186, 24, 0.12); color: #bcdf5e; }
.pm-chip-topic { background: rgba(143, 167, 212, 0.22); color: #8fa7d4; }
.pm-chip-topic-alt { background: rgba(185, 160, 210, 0.22); color: #b4a2cf; }
/* 分类色(night):tint=9%,mark=16%;bar 为 color-mix(cat, night bg) 渲染结果 */
.pm-cat-meeting { --pm-tint: rgba(125, 186, 24, 0.09); --pm-mark: rgba(125, 186, 24, 0.16); --pm-bar: #527619; }
.pm-cat-meal { --pm-tint: rgba(221, 177, 82, 0.09); --pm-mark: rgba(221, 177, 82, 0.16); --pm-bar: #8a713b; }
.pm-cat-work { --pm-tint: rgba(143, 167, 212, 0.09); --pm-mark: rgba(143, 167, 212, 0.16); --pm-bar: #5d6b86; }
/* 整点刻度(空档带内 50% 处):时间 + 虚线,整体 55% 淡显 */
.pm-tick { position: absolute; top: 50%; left: 1px; right: 0; display: flex; align-items: center; height: 11px; }
.pm-tick-time { flex: none; width: 36px; padding-right: 8px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.4px; text-align: right; color: #858a91; opacity: 0.55; }
.pm-tick-line { flex: 1; border-top: 1px dashed #2c3034; opacity: 0.55; }

/* ── 月历浮钮(48px 圆,右 16 底 104) ── */
.pm-fab {
  position: absolute;
  right: 16px;
  bottom: 104px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: #32363b;
  border: 1px solid #2c3034;
  border-radius: 50%;
  color: #adb1b7;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4), 0 16px 40px rgba(0, 0, 0, 0.45);
}
.pm-fab svg { width: 22px; height: 22px; }

/* ── 底部 tab 栏(90px 含 34px 安全区) ── */
.pm-tabbar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 6;
  display: flex;
  align-items: stretch;
  height: 90px;
  padding: 6px 6px 34px;
  background: #23262a;
  border-top: 1px solid rgba(242, 243, 244, 0.06);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.05);
}
.pm-tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; flex: 1; padding: 4px 0; color: #d8dbdf; }
.pm-tab svg { width: 22px; height: 22px; }
.pm-tab-label { font-size: 10px; line-height: 10px; font-weight: 500; letter-spacing: 0.4px; white-space: nowrap; }
.pm-tab.is-active { color: #7dba18; }

/* ── features 活动节裁切态(.pm-crop,与 .h-feat-shot 同元素) ──
   替代旧烤死时间线截图 webp 的裁切呈现(page.css .h-feat-shot-img img:
   定高 340/400 + object-fit:cover + object-position center 22%)。
   构图对齐:旧图 1206x2550 = 402x850 设计空间 3x,cover 由宽度主导,
   顶部裁量 = 0.22 * (850 - H*402/W) 设计px,常见列宽区间(400~600px)得 111~137,
   取 120 —— 取景「周条底缘 + MEETING 卡 + MEAL 卡」区,与旧图同构。
   实现:.pm-crop 设 container-type:inline-size,.pm-screen 以 100cqw/402px 缩放铺满
   容器宽(等价旧 cover 的宽度主导),再 translateY(-120px)(设计px,先移后缩)取景;
   transform-origin 沿用基础规则 top left。scale() 只收 number,长度→数值用标准
   tan(atan2(len,len)) 换算(cqw/三角函数基线 Chrome111/Safari16/FF110 内,
   与站内 color-mix 既有基线一致);前一条 scale(1.1) 为不支持时的近似兜底。
   fab/tabbar 在取景窗外,被 overflow 裁掉。 */
.pm-crop {
  position: relative;
  height: 340px;
  padding: 0;
  overflow: hidden;
  container-type: inline-size;
  background: #17191b;                 /* night --bg:边缘防露底(.h-feat-shot 双主题底色) */
}
.pm-crop .pm-scale { position: absolute; inset: 0; width: auto; height: auto; }
.pm-crop .pm-screen { transform: scale(1.1) translateY(-120px); }
.pm-crop .pm-screen { transform: scale(calc(tan(atan2(100cqw, 402px)))) translateY(-120px); }
@media (min-width: 768px) {
  .pm-crop { height: 400px; }          /* 与旧 .h-feat-shot-img img 媒体查询定高同步 */
}
