/* ===========================================================
   OSSim 内核 · entry.css —— 入口选择页（设备陈列）+ 开机过渡 + 横屏舞台 iframe
   全部在 .ossim-entry / .ossim-rot-frame 之下
   一屏放下：10 台设备排成一个网格，卡片宽度 --oe-cw、列数、间距由 entry.js 的 fit() 按可用宽高算出来；
   卡片档位 data-sz = l / m / s（大 / 中 / 小）。下面的内边距、信息栏高度、舞台比例 0.68 与 entry.js 里的 SZ 表一一对应，改一处要同步改另一处。
   设备尺寸全部用百分比（相对卡片宽度）；屏幕画面见 shared/art/osminis.js
   =========================================================== */
.ossim-entry {
  --oe-fg: #eef2f8; --oe-dim: #9aa6b8; --oe-faint: #6c7789; --oe-accent: #7fb0ff;
  position: absolute; inset: 0; overflow-x: hidden; overflow-y: auto; -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain; touch-action: manipulation;
  color: var(--oe-fg);
  background:
    radial-gradient(1100px 560px at 50% -260px, rgba(120, 150, 235, .26), transparent 72%),
    radial-gradient(760px 420px at 100% 100%, rgba(120, 86, 210, .14), transparent 70%),
    radial-gradient(760px 420px at 0% 100%, rgba(40, 110, 210, .12), transparent 70%),
    linear-gradient(180deg, #11151d 0%, #0a0d13 58%, #07090d 100%);
  background-attachment: fixed;
  font-family: 'OSSim Inter', system-ui, -apple-system, 'Segoe UI', 'Microsoft YaHei', 'PingFang SC', 'Noto Sans CJK SC', sans-serif;
  -webkit-touch-callout: none;
}
.ossim-entry .oe-wrap {
  margin: 0 auto; min-height: 100%; display: flex; flex-direction: column;
  padding: max(14px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
}

/* ---------- 标题区：标志 + 字标 + 中文副标题（全部自绘 SVG）| 虚拟机说明，宽屏并排一行 ---------- */
.ossim-entry .oe-head { flex: none; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px 32px; margin: 0 0 20px; }
.ossim-entry .oe-brand { display: flex; align-items: center; gap: 13px; margin: 0; font-size: 0; line-height: 0; }
.ossim-entry .oe-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ossim-entry .oe-mark { display: block; width: 52px; height: 52px; flex: none; filter: drop-shadow(0 8px 18px rgba(80, 130, 255, .28)); }
.ossim-entry .oe-type { display: flex; flex-direction: column; gap: 7px; }
/* 字标和副标题一样宽：高 = 宽 × 40 / 220.5、宽 × 14 / 129（viewBox 见 entry.js 的 WORD / SUBTITLE） */
.ossim-entry .oe-word { display: block; width: 180px; height: 32.65px; color: #eef2f8; }        /* viewBox 220.5×40 */
.ossim-entry .oe-cn { display: block; width: 180px; height: 19.53px; color: #aab6c9; }          /* viewBox 129×14 */
/* 虚拟机说明框：图标 | 两行说明 | 「三连+去关注」按钮（窄屏时按钮换到下一行铺满） */
.ossim-entry .oe-vm {
  display: flex; align-items: center; gap: 12px; max-width: 660px; padding: 9px 10px 9px 12px; border-radius: 14px; text-align: left;
  background: linear-gradient(100deg, rgba(110, 163, 255, .14), rgba(251, 114, 153, .1)); border: 1px solid rgba(160, 190, 255, .2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
}
.ossim-entry .oe-vm-ic { display: block; width: 30px; height: 30px; flex: none; }
.ossim-entry .oe-vm p { flex: 1 1 auto; min-width: 0; margin: 0; font-size: 13px; line-height: 1.6; color: #d3dbea; }
.ossim-entry .oe-vm b { color: #fff; font-weight: 650; }
.ossim-entry .oe-vm em { font-style: normal; font-weight: 650; color: #ffc46b; }
.ossim-entry .oe-promo {
  flex: none; display: flex; align-items: center; justify-content: center; height: 40px; margin: 0 0 0 4px; padding: 0 20px;
  border: 0; border-radius: 99px; cursor: pointer; outline: none; -webkit-tap-highlight-color: transparent;
  font: inherit; font-size: 14.5px; font-weight: 700; letter-spacing: .03em; line-height: 1; color: #fff; white-space: nowrap;
  background: linear-gradient(180deg, #ff8fb1, #f45e8a);
  box-shadow: 0 6px 18px rgba(251, 114, 153, .34), inset 0 1px 0 rgba(255, 255, 255, .3), inset 0 -1px 0 rgba(150, 20, 60, .18);
  text-shadow: 0 1px 1px rgba(150, 20, 60, .25);
  transition: transform .12s, box-shadow .15s, filter .15s;
}
@media (hover: hover) { .ossim-entry .oe-promo:hover { filter: brightness(1.06); box-shadow: 0 8px 24px rgba(251, 114, 153, .46), inset 0 1px 0 rgba(255, 255, 255, .3), inset 0 -1px 0 rgba(150, 20, 60, .18); } }
.ossim-entry .oe-promo:active { transform: scale(.96); filter: brightness(.96); }
.ossim-entry .oe-promo:focus-visible { box-shadow: 0 0 0 3px rgba(255, 170, 200, .6), 0 6px 18px rgba(251, 114, 153, .34); }
.ossim-entry.oe-nested .oe-vm { display: none; }    /* 虚拟机里已经在用虚拟机了 */

/* ---------- 标题 + 网格作为一整块上下居中（列数和卡片宽度由 fit() 设置），页脚贴底 ---------- */
.ossim-entry .oe-main { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ossim-entry .oe-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--oe-rgap, 14px) var(--oe-gap, 14px); max-width: 100%; }
.ossim-entry .oe-card { position: relative; min-width: 0; width: var(--oe-cw, 200px); }

/* ---------- 展台（整张卡片是一个按钮） ---------- */
.ossim-entry .oe-go {
  position: relative; display: flex; flex-direction: column; width: 100%; margin: 0; padding: 4px 8px 8px;
  border-radius: 18px; text-align: left; cursor: pointer; outline: none; color: inherit; -webkit-tap-highlight-color: transparent;
  border: 1px solid rgba(255, 255, 255, .065);
  background:
    radial-gradient(72% 48% at 50% 0%, rgba(190, 208, 255, .1), rgba(190, 208, 255, 0) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .012) 62%, rgba(255, 255, 255, .03));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 10px 30px rgba(0, 0, 0, .22);
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.ossim-entry .oe-stage {   /* 高 = 宽 × 0.68，底部留 7% 当台面 */
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; align-items: center;
  width: 100%; aspect-ratio: 25 / 17; padding-bottom: 7%;
}
/* 台面：屏幕光的彩色反光（--oe-gy = 设备底边的位置）+ 接触投影（宽度按设备种类） */
.ossim-entry .oe-stage::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .3; transition: opacity .3s;
  background: radial-gradient(var(--oe-gw, 42%) 17% at 50% 89.7%, var(--oe-glow), rgba(0, 0, 0, 0));
}
.ossim-entry .oe-floor { position: absolute; left: 50%; top: 100%; margin-top: -7%; width: 42%; aspect-ratio: 8 / 1; transform: translate(-50%, -50%); pointer-events: none; }
.ossim-entry .oe-floor::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .72), rgba(0, 0, 0, 0)); transition: transform .3s, opacity .3s; }
.ossim-entry [data-dev="laptop"] { --oe-gw: 54%; }
.ossim-entry [data-dev="laptop"] .oe-floor { width: 88%; }
.ossim-entry [data-dev="phone"] { --oe-gw: 32%; }
.ossim-entry [data-dev="phone"] .oe-floor { width: 38%; }
.ossim-entry [data-dev="tablet"] { --oe-gw: 50%; }
.ossim-entry [data-dev="tablet"] .oe-floor { width: 78%; }

/* ---------- 设备 ---------- */
.ossim-entry .oe-dev { position: relative; display: block; flex: none; width: 74%; -webkit-box-reflect: below 0 linear-gradient(rgba(0, 0, 0, 0) 86%, rgba(255, 255, 255, .12)); }
.ossim-entry .oe-lift { display: block; transition: transform .3s cubic-bezier(.3, .7, .3, 1); }
.ossim-entry .oe-bez {
  position: relative; display: block; padding: 2.2% 2.2% 3.8%; border-radius: 7px;
  background: linear-gradient(180deg, #25282f, #111317);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), 0 16px 28px -14px rgba(0, 0, 0, .8);
}
.ossim-entry .oe-scr { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 10; border-radius: 2px; background: #000; }
.ossim-entry .oe-scr > svg { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: block; transition: opacity .15s; }
.ossim-entry .oe-scr::after {   /* 玻璃反光 */
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(118deg, rgba(255, 255, 255, .15) 0%, rgba(255, 255, 255, .04) 32%, rgba(255, 255, 255, 0) 33%);
}
.ossim-entry .oe-off .oe-scr > svg { opacity: 0; }
/* 显示器：支架 + 底座 */
.ossim-entry .oe-neck { display: block; width: 10%; margin: 0 auto; aspect-ratio: 1 / .78; background: linear-gradient(90deg, #1f2227, #3c4048 45%, #2b2e34 60%, #1b1d22); }
.ossim-entry .oe-base { display: block; width: 38%; margin: 0 auto; aspect-ratio: 19 / 1; border-radius: 3px 3px 6px 6px; background: linear-gradient(180deg, #555a64, #26292f); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14); }
/* 笔记本：窄边框屏幕 + 梯形键盘底座（底座比屏幕宽，不做倒影） */
.ossim-entry [data-dev="laptop"] .oe-dev { width: 66%; -webkit-box-reflect: none; }
.ossim-entry [data-dev="laptop"] .oe-bez { padding: 2.6% 2.6% 2.4%; border-radius: 8px 8px 3px 3px; background: #0c0d10; box-shadow: 0 0 0 1.5px #a3a8b1, inset 0 0 0 1px rgba(255, 255, 255, .06); }
.ossim-entry .oe-deck {
  position: relative; display: block; width: 124%; margin-left: -12%; aspect-ratio: 124 / 10;
  background: linear-gradient(180deg, #aeb3bb 0%, #e6e8ec 26%, #cdd1d7 72%, #7c818a 100%);
  -webkit-clip-path: polygon(9.7% 0, 90.3% 0, 100% 76%, 99% 100%, 1% 100%, 0 76%); clip-path: polygon(9.7% 0, 90.3% 0, 100% 76%, 99% 100%, 1% 100%, 0 76%);
}
.ossim-entry .oe-deck::before {   /* 键盘 */
  content: ''; position: absolute; left: 17%; right: 17%; top: 9%; height: 42%;
  background: repeating-linear-gradient(90deg, rgba(30, 33, 40, .62) 0 2.3%, rgba(30, 33, 40, .22) 2.3% 2.9%);
  -webkit-clip-path: polygon(2% 0, 98% 0, 100% 100%, 0 100%); clip-path: polygon(2% 0, 98% 0, 100% 100%, 0 100%);
}
.ossim-entry .oe-deck::after { content: ''; position: absolute; left: 41%; right: 41%; top: 56%; height: 18%; border-radius: 2px; background: rgba(0, 0, 0, .14); }   /* 触控板 */
.ossim-entry [data-id="chromeos"] .oe-bez { box-shadow: 0 0 0 1.5px #4d525a, inset 0 0 0 1px rgba(255, 255, 255, .06); }
.ossim-entry [data-id="chromeos"] .oe-deck { background: linear-gradient(180deg, #33373e 0%, #5d626b 26%, #474b53 72%, #222529 100%); }
.ossim-entry [data-id="chromeos"] .oe-deck::before { background: repeating-linear-gradient(90deg, rgba(10, 11, 14, .7) 0 2.3%, rgba(10, 11, 14, .3) 2.3% 2.9%); }
/* 手机：圆角外框 + 侧键（刘海/挖孔画在屏幕里） */
.ossim-entry [data-dev="phone"] .oe-dev { width: 28%; }
.ossim-entry [data-dev="phone"] .oe-bez { padding: 4.2%; border-radius: 19% / 9.2%; background: #0b0b0d; box-shadow: 0 0 0 1.5px #80838a, inset 0 0 0 1px rgba(255, 255, 255, .07), 0 16px 28px -14px rgba(0, 0, 0, .8); }
.ossim-entry [data-dev="phone"] .oe-scr { aspect-ratio: 180 / 390; border-radius: 16% / 7.4%; }
.ossim-entry [data-dev="phone"] .oe-bez::before { content: ''; position: absolute; right: -2.6%; top: 24%; width: 2%; height: 11%; border-radius: 0 2px 2px 0; background: #6f727a; }
.ossim-entry [data-id="android"] .oe-bez { border-radius: 14% / 6.8%; box-shadow: 0 0 0 1.5px #44524c, inset 0 0 0 1px rgba(255, 255, 255, .07), 0 16px 28px -14px rgba(0, 0, 0, .8); }
.ossim-entry [data-id="android"] .oe-scr { border-radius: 11% / 5.1%; }
/* 平板（横放） */
.ossim-entry [data-dev="tablet"] .oe-dev { width: 72%; }
.ossim-entry [data-dev="tablet"] .oe-bez { padding: 3.4%; border-radius: 6.5% / 9.1%; background: #0b0b0d; box-shadow: 0 0 0 1.5px #a7aab0, inset 0 0 0 1px rgba(255, 255, 255, .07), 0 16px 28px -14px rgba(0, 0, 0, .8); }
.ossim-entry [data-dev="tablet"] .oe-scr { aspect-ratio: 295 / 205; border-radius: 3.4% / 4.9%; }
.ossim-entry [data-dev="tablet"] .oe-bez::before { content: ''; position: absolute; left: 50%; top: 1.2%; width: 1%; aspect-ratio: 1; margin-left: -.5%; border-radius: 50%; background: #2c2e33; }

/* ---------- 标志 / 名称 / 版本 · 年份（l 档：标志占两行；m / s 档：标志和名称一行，版本年份另起一行） ---------- */
.ossim-entry .oe-info { display: grid; grid-template-columns: auto minmax(0, 1fr); align-content: center; align-items: center; column-gap: 9px; height: 38px; padding: 0 30px 0 3px; }
.ossim-entry .oe-logo {
  grid-row: span 2; width: 32px; height: 32px; border-radius: 9px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, #fbfcfe, #dfe5ee); box-shadow: 0 3px 10px rgba(0, 0, 0, .3);
}
.ossim-entry .oe-logo svg { display: block; width: 24px; height: 24px; }
.ossim-entry .oe-name { font-size: 15px; font-weight: 650; line-height: 1.25; color: var(--oe-fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ossim-entry .oe-sub { font-size: 12px; line-height: 1.35; color: var(--oe-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ossim-entry .oe-last {
  position: absolute; left: 10px; top: -9px; padding: 2px 9px; border-radius: 99px; z-index: 2;
  font-size: 11px; line-height: 15px; font-weight: 600; color: #0d1730;
  background: linear-gradient(90deg, #8fbaff, #b6a2ff); box-shadow: 0 3px 10px rgba(110, 140, 255, .35);
}
.ossim-entry .oe-card.last .oe-go { border-color: rgba(143, 186, 255, .4); }
.ossim-entry .oe-more {
  position: absolute; right: 4px; bottom: 7px; width: 32px; height: 32px; border-radius: 10px; z-index: 1;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  background: transparent; border: 0; color: var(--oe-faint); outline: none; transition: background .15s, color .15s;
}
.ossim-entry .oe-more svg { width: 18px; height: 18px; }
/* m 档 */
.ossim-entry[data-sz="m"] .oe-go { padding: 4px 6px 7px; border-radius: 15px; }
.ossim-entry[data-sz="m"] .oe-info { column-gap: 6px; height: 37px; padding: 0 2px; }
.ossim-entry[data-sz="m"] .oe-logo { grid-row: auto; width: 20px; height: 20px; border-radius: 6px; }
.ossim-entry[data-sz="m"] .oe-logo svg { width: 16px; height: 16px; }
.ossim-entry[data-sz="m"] .oe-name { font-size: 13.5px; }
.ossim-entry[data-sz="m"] .oe-sub { grid-column: 1 / -1; margin-top: 2px; padding-right: 24px; font-size: 11px; }
.ossim-entry[data-sz="m"] .oe-more { right: 1px; bottom: 3px; width: 28px; height: 26px; }
/* s 档：只留系统名和年份 */
.ossim-entry[data-sz="s"] .oe-go { padding: 3px 5px 6px; border-radius: 13px; }
.ossim-entry[data-sz="s"] .oe-info { column-gap: 5px; height: 31px; padding: 0 1px; }
.ossim-entry[data-sz="s"] .oe-logo { grid-row: auto; width: 16px; height: 16px; border-radius: 5px; box-shadow: 0 2px 6px rgba(0, 0, 0, .3); }
.ossim-entry[data-sz="s"] .oe-logo svg { width: 13px; height: 13px; }
.ossim-entry[data-sz="s"] .oe-name { font-size: 12px; }
.ossim-entry[data-sz="s"] .oe-sub { grid-column: 1 / -1; margin-top: 1px; padding-right: 22px; font-size: 10.5px; }
.ossim-entry[data-sz="s"] .oe-ver { display: none; }
.ossim-entry[data-sz="s"] .oe-more { right: 0; bottom: 1px; width: 26px; height: 24px; }
.ossim-entry[data-sz="s"] .oe-more svg { width: 15px; height: 15px; }
.ossim-entry[data-sz="s"] .oe-last { left: 6px; top: -8px; padding: 1px 6px; font-size: 10px; line-height: 13px; }

/* ---------- 悬停（电脑）/ 焦点 / 按下 ---------- */
@media (hover: hover) {
  .ossim-entry .oe-scr::before { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: #05070b; opacity: .2; transition: opacity .3s; }
  .ossim-entry .oe-go:hover { border-color: rgba(255, 255, 255, .15); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 18px 44px rgba(0, 0, 0, .34); }
  .ossim-entry .oe-go:hover .oe-lift { transform: translateY(-4.5%); }
  .ossim-entry .oe-go:hover .oe-scr::before { opacity: 0; }
  .ossim-entry .oe-go:hover .oe-stage::before { opacity: .55; }
  .ossim-entry .oe-go:hover .oe-floor::after { transform: scale(.84); opacity: .7; }
  .ossim-entry .oe-more:hover { background: rgba(255, 255, 255, .1); color: var(--oe-fg); }
}
.ossim-entry .oe-go:focus-visible { border-color: var(--oe-accent); box-shadow: 0 0 0 3px rgba(127, 176, 255, .5), 0 18px 44px rgba(0, 0, 0, .34); }
.ossim-entry .oe-go:focus-visible .oe-lift { transform: translateY(-4.5%); }
.ossim-entry .oe-go:focus-visible .oe-scr::before { opacity: 0; }
.ossim-entry .oe-go:focus-visible .oe-stage::before { opacity: .55; }
.ossim-entry .oe-go:active { background-color: rgba(255, 255, 255, .035); }
.ossim-entry .oe-go:active .oe-lift { transform: translateY(-1.5%) scale(.965); transition-duration: .08s; }
.ossim-entry .oe-go:active .oe-stage::before { opacity: .65; }
.ossim-entry .oe-more:active { background: rgba(255, 255, 255, .16); }
.ossim-entry .oe-more:focus-visible { box-shadow: 0 0 0 2px var(--oe-accent); color: var(--oe-fg); }
.ossim-entry.oe-busy { pointer-events: none; }

/* ---------- 页脚：一行小字 ---------- */
.ossim-entry .oe-foot { flex: none; margin-top: 10px; text-align: center; font-size: 11.5px; line-height: 1.5; color: var(--oe-faint); overflow-wrap: anywhere; }
.ossim-entry .oe-foot p { margin: 0; }
.ossim-entry .oe-hint { color: var(--oe-dim); }
@media (max-width: 1099px) { .ossim-entry .oe-hint { display: none; } }

/* ---------- 汇报 Bug（core/bugreport.js）：页脚右侧的小按钮；左边留同宽的空位，文字仍然居中。按钮在页脚里，fit() 算高度时已经算上 ---------- */
.ossim-entry .oe-foot-bug { display: flex; align-items: center; gap: 10px; }
.ossim-entry .oe-foot-bug::before { content: ''; flex: none; width: 88px; }
.ossim-entry .oe-foot-bug p { flex: 1 1 auto; min-width: 0; }
.ossim-entry .oe-bug {
  flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 5px; width: 88px; height: 26px; margin: 0; padding: 0 8px;
  border-radius: 99px; border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .045); color: var(--oe-dim);
  font: inherit; font-size: 12px; font-weight: 550; line-height: 1; white-space: nowrap; cursor: pointer; outline: none; -webkit-tap-highlight-color: transparent;
  transition: background .15s, color .15s, border-color .15s;
}
.ossim-entry .oe-bug svg { display: block; width: 14px; height: 14px; flex: none; }
@media (hover: hover) { .ossim-entry .oe-bug:hover { color: var(--oe-fg); background: rgba(255, 255, 255, .09); border-color: rgba(255, 255, 255, .18); } }
.ossim-entry .oe-bug:active { background: rgba(255, 255, 255, .14); color: var(--oe-fg); }
.ossim-entry .oe-bug:focus-visible { box-shadow: 0 0 0 2px var(--oe-accent); color: var(--oe-fg); }
/* 弹窗：深色玻璃卡片（同"更多"菜单 / 虚拟机说明框的配色） */
.ossim-entry .oe-bugdlg {
  position: fixed; left: 0; top: 0; width: 100%; height: 100%; z-index: 15; box-sizing: border-box;
  display: flex; align-items: center; justify-content: center;
  padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  background: rgba(4, 6, 10, .58); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  -webkit-touch-callout: default;   /* 文本框里长按要能出粘贴菜单（入口页根元素关掉了） */
  animation: ossim-entry-fade .16s ease-out;
}
@keyframes ossim-entry-fade { from { opacity: 0; } }
.ossim-entry .oe-bug-card {
  position: relative; display: flex; flex-direction: column; width: min(480px, 100%); max-height: 100%; box-sizing: border-box; overflow: hidden;
  border-radius: 18px; border: 1px solid rgba(255, 255, 255, .14); color: var(--oe-fg);
  background: linear-gradient(160deg, rgba(110, 163, 255, .1), rgba(251, 114, 153, .06) 70%), rgba(26, 31, 42, .95);
  box-shadow: 0 24px 64px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .06);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  animation: ossim-entry-pop .16s ease-out;
}
.ossim-entry .oe-bug-head { flex: none; display: flex; align-items: center; gap: 10px; padding: 14px 10px 8px 16px; }
.ossim-entry .oe-bug-ic { display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 9px; color: #ffc46b; background: rgba(255, 181, 71, .14); }
.ossim-entry .oe-bug-ic svg { width: 18px; height: 18px; }
.ossim-entry .oe-bug-head h2 { flex: 1; margin: 0; font-size: 16.5px; font-weight: 650; line-height: 1.3; }
.ossim-entry .oe-bug-x {
  flex: none; display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 10px;
  background: none; color: var(--oe-dim); cursor: pointer; outline: none; -webkit-tap-highlight-color: transparent;
}
.ossim-entry .oe-bug-x svg { width: 18px; height: 18px; }
.ossim-entry .oe-bug-x:hover, .ossim-entry .oe-bug-x:focus-visible { background: rgba(255, 255, 255, .1); color: var(--oe-fg); }
.ossim-entry .oe-bug-form { display: flex; flex-direction: column; gap: 10px; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 16px; }
.ossim-entry .oe-bug-form > * { flex-shrink: 0; }   /* 放不下时整块滚动，不压扁输入框 */
.ossim-entry .oe-bug-tip { margin: 0; font-size: 13px; line-height: 1.6; color: #c3cce0; }
.ossim-entry .oe-bug-field { position: relative; }
.ossim-entry .oe-bug-form textarea, .ossim-entry .oe-bug-form input {
  display: block; width: 100%; box-sizing: border-box; margin: 0; border-radius: 12px; outline: none;
  border: 1px solid rgba(255, 255, 255, .14); background: rgba(0, 0, 0, .26); color: var(--oe-fg);
  font: inherit; font-size: 14px; line-height: 1.55; transition: border-color .15s, box-shadow .15s;
}
.ossim-entry .oe-bug-form textarea { min-height: 118px; max-height: 40vh; padding: 10px 12px 22px; resize: vertical; }
.ossim-entry .oe-bug-form input { height: 40px; padding: 0 12px; }
.ossim-entry .oe-bug-form textarea::placeholder, .ossim-entry .oe-bug-form input::placeholder { color: var(--oe-faint); }
.ossim-entry .oe-bug-form textarea:focus, .ossim-entry .oe-bug-form input:focus { border-color: rgba(127, 176, 255, .7); box-shadow: 0 0 0 3px rgba(127, 176, 255, .2); }
.ossim-entry .oe-bug-form [readonly] { opacity: .7; }
.ossim-entry .oe-bug-count { position: absolute; right: 10px; bottom: 6px; font-size: 11px; line-height: 1; color: var(--oe-faint); pointer-events: none; }
.ossim-entry .oe-bug-dev { border-radius: 12px; border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .03); }
.ossim-entry .oe-bug-dev summary {
  display: flex; align-items: center; gap: 4px; padding: 9px 12px; list-style: none; cursor: pointer; outline: none; border-radius: 12px;
  font-size: 13px; color: var(--oe-dim); -webkit-tap-highlight-color: transparent;
}
.ossim-entry .oe-bug-dev summary::-webkit-details-marker { display: none; }
.ossim-entry .oe-bug-dev summary::before { content: ''; width: 6px; height: 6px; margin: 0 6px 0 2px; border: solid currentColor; border-width: 0 1.6px 1.6px 0; transform: rotate(-45deg); transition: transform .15s; }
.ossim-entry .oe-bug-dev[open] summary::before { transform: rotate(45deg); }
.ossim-entry .oe-bug-dev summary span { color: #ffc46b; }
.ossim-entry .oe-bug-dev summary:focus-visible { box-shadow: 0 0 0 2px var(--oe-accent); }
.ossim-entry .oe-bug-dev p { margin: 0; padding: 0 12px 6px; font-size: 12px; line-height: 1.5; color: var(--oe-faint); }
.ossim-entry .oe-bug-dev pre {
  margin: 0; max-height: 180px; overflow: auto; padding: 0 12px 10px; white-space: pre-wrap; word-break: break-all;
  font: 11px/1.5 'OSSim Mono', Consolas, monospace; color: #b8c3d6; user-select: text; -webkit-user-select: text;
}
.ossim-entry .oe-bug-msg { margin: 0; font-size: 13px; line-height: 1.5; color: var(--oe-dim); }
.ossim-entry .oe-bug-msg:empty { display: none; }
.ossim-entry .oe-bug-msg.err { color: #ff8a80; }
/* 提示 + 按钮行贴在弹窗底部（内容多到要滚动时也一直看得见） */
.ossim-entry .oe-bug-end { position: sticky; bottom: 0; z-index: 1; display: flex; flex-direction: column; gap: 8px; margin-top: -8px; padding: 12px 0 16px; background: linear-gradient(rgba(27, 31, 42, 0), rgb(27, 31, 42) 12px); }
.ossim-entry .oe-bug-btns { display: flex; gap: 8px; }
.ossim-entry .oe-bug-card button:not(.oe-bug-x) {
  flex: 1; height: 40px; margin: 0; padding: 0 16px; border: 0; border-radius: 99px; cursor: pointer; outline: none; -webkit-tap-highlight-color: transparent;
  font: inherit; font-size: 14.5px; font-weight: 650; color: var(--oe-fg); background: rgba(255, 255, 255, .09); transition: filter .15s, background .15s, transform .12s;
}
.ossim-entry .oe-bug-card button:not(.oe-bug-x):hover { background: rgba(255, 255, 255, .14); }
.ossim-entry .oe-bug-card button.primary { color: #fff; background: linear-gradient(180deg, #ff8fb1, #f45e8a); box-shadow: 0 6px 18px rgba(251, 114, 153, .3), inset 0 1px 0 rgba(255, 255, 255, .3); text-shadow: 0 1px 1px rgba(150, 20, 60, .25); }
.ossim-entry .oe-bug-card button.primary:hover { background: linear-gradient(180deg, #ff8fb1, #f45e8a); filter: brightness(1.06); }
.ossim-entry .oe-bug-card button:not(.oe-bug-x):active { transform: scale(.97); }
.ossim-entry .oe-bug-card button:not(.oe-bug-x):focus-visible { box-shadow: 0 0 0 3px rgba(127, 176, 255, .55); }
.ossim-entry .oe-bug-card button:disabled { opacity: .55; cursor: default; transform: none; filter: none; }
.ossim-entry .oe-bug-ok { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 28px 20px 20px; text-align: center; }
.ossim-entry .oe-bug-ok svg { width: 64px; height: 64px; }
.ossim-entry .oe-bug-ok h2 { margin: 2px 0 0; font-size: 18px; font-weight: 700; }
.ossim-entry .oe-bug-ok p { margin: 0 0 8px; font-size: 13.5px; line-height: 1.6; color: #c3cce0; }
.ossim-entry .oe-bug-ok p span { font-size: 12px; color: var(--oe-faint); user-select: text; -webkit-user-select: text; }
.ossim-entry .oe-bug-ok button { flex: none !important; min-width: 160px; }

/* ---------- 开机过渡：屏幕从卡片放大铺满（transform 由 entry.js 用 Web Animations 驱动） ---------- */
.ossim-entry .oe-zoom { position: fixed; inset: 0; z-index: 20; overflow: hidden; }
.ossim-entry .oe-zoom > b { position: absolute; inset: 0; background: #05070b; opacity: 0; }
.ossim-entry .oe-zoom-scr { position: absolute; overflow: hidden; background: #000; transform-origin: 50% 50%; will-change: transform; }
.ossim-entry .oe-zoom-scr > svg { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: block; }
.ossim-entry .oe-zoom-scr > i { position: absolute; inset: 0; background: #000; opacity: 0; }
.ossim-entry .oe-zoom-black > b { opacity: 1 !important; background: #000; }
.ossim-entry .oe-zoom-black .oe-zoom-scr { visibility: hidden; }

/* ---------- 更多菜单 / 清空确认 / 提示 ---------- */
.ossim-entry .oe-scrim { position: fixed; inset: 0; z-index: 10; }
.ossim-entry .oe-pop {
  position: fixed; z-index: 11; width: min(280px, calc(100vw - 24px)); padding: 6px;
  border-radius: 14px; background: rgba(32, 38, 50, .96); border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 18px 48px rgba(0, 0, 0, .5); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  animation: ossim-entry-pop .14s ease-out;
}
@keyframes ossim-entry-pop { from { opacity: 0; transform: translateY(-4px) scale(.98); } }
.ossim-entry .oe-pop-h { padding: 8px 10px 6px; font-size: 12.5px; color: var(--oe-dim); }
.ossim-entry .oe-pop-t { margin: 0; padding: 2px 10px 10px; font-size: 14px; line-height: 1.6; color: var(--oe-fg); }
.ossim-entry .oe-pop button {
  display: block; width: 100%; text-align: left; padding: 11px 10px; border: 0; border-radius: 9px; cursor: pointer;
  background: none; color: var(--oe-fg); font-size: 15px; outline: none;
}
.ossim-entry .oe-pop button:hover, .ossim-entry .oe-pop button:focus-visible { background: rgba(255, 255, 255, .1); }
.ossim-entry .oe-pop [data-act="wipe"] { color: #ff8a80; }
.ossim-entry .oe-pop-btns { display: flex; gap: 8px; padding: 0 4px 4px; }
.ossim-entry .oe-pop-btns button { flex: 1; text-align: center; background: rgba(255, 255, 255, .08); }
.ossim-entry .oe-pop-btns button.danger { background: #d64545; color: #fff; }
.ossim-entry .oe-pop-btns button.danger:hover, .ossim-entry .oe-pop-btns button.danger:focus-visible { background: #e25252; }
.ossim-entry .oe-pop button:disabled { opacity: .6; }
.ossim-entry .oe-toast {
  position: fixed; left: 50%; bottom: max(24px, env(safe-area-inset-bottom)); z-index: 12; transform: translate(-50%, 12px);
  padding: 10px 16px; border-radius: 99px; background: rgba(40, 46, 60, .96); border: 1px solid rgba(255, 255, 255, .14);
  font-size: 14px; color: var(--oe-fg); opacity: 0; transition: opacity .2s, transform .2s; pointer-events: none;
  width: max-content; max-width: calc(100vw - 32px); box-sizing: border-box; text-align: center;
}
.ossim-entry .oe-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 标题区随屏幕变小 ---------- */
@media (max-width: 759px) {   /* 竖屏手机 / 小窗口：标志和说明上下排 */
  .ossim-entry .oe-head { flex-direction: column; gap: 10px; }
  .ossim-entry .oe-mark { width: 42px; height: 42px; }
  .ossim-entry .oe-brand { gap: 11px; }
  .ossim-entry .oe-type { gap: 6px; }
  .ossim-entry .oe-word { width: 150px; height: 27.21px; }
  .ossim-entry .oe-cn { width: 150px; height: 16.28px; }
  .ossim-entry .oe-vm { max-width: 100%; gap: 10px; padding: 8px 8px 8px 10px; }
  .ossim-entry .oe-vm-ic { width: 26px; height: 26px; }
  .ossim-entry .oe-vm p { font-size: 12.5px; line-height: 1.55; }
  .ossim-entry .oe-promo { font-size: 14px; padding: 0 16px; margin-left: 0; }
}
@media (max-width: 559px) {   /* 竖屏手机：按钮换到说明下面，整行宽，好点 */
  .ossim-entry .oe-vm { flex-wrap: wrap; row-gap: 8px; padding: 9px 10px 10px; }
  .ossim-entry .oe-vm p { flex-basis: 0; }
  .ossim-entry .oe-promo { flex: 1 0 100%; height: 42px; font-size: 15px; }
  .ossim-entry .oe-foot-bug::before { display: none; }      /* 窄屏：文字靠左，按钮在右，省得两边各空一块把文字挤成好几行 */
  .ossim-entry .oe-foot-bug p { text-align: left; }
}
@media (max-height: 520px) {   /* 手机横屏 / 虚拟机小窗口：再压扁 */
  .ossim-entry .oe-wrap { padding-top: max(8px, env(safe-area-inset-top)); padding-bottom: max(6px, env(safe-area-inset-bottom)); }
  .ossim-entry .oe-head { gap: 8px 24px; margin-bottom: 8px; }
  .ossim-entry .oe-mark { width: 36px; height: 36px; }
  .ossim-entry .oe-brand { gap: 10px; }
  .ossim-entry .oe-type { gap: 5px; }
  .ossim-entry .oe-word { width: 128px; height: 23.22px; }
  .ossim-entry .oe-cn { width: 128px; height: 13.89px; }
  .ossim-entry .oe-vm { padding: 5px 6px 5px 10px; gap: 9px; }
  .ossim-entry .oe-vm-ic { width: 24px; height: 24px; }
  .ossim-entry .oe-vm p { font-size: 11.5px; line-height: 1.5; }
  .ossim-entry .oe-promo { height: 36px; padding: 0 14px; font-size: 13.5px; }
  .ossim-entry .oe-foot { margin-top: 6px; font-size: 11px; }
  .ossim-entry .oe-bug { height: 22px; font-size: 11.5px; }
  .ossim-entry .oe-bug-head { padding: 8px 8px 4px 14px; }
  .ossim-entry .oe-bug-ic { width: 26px; height: 26px; }
  .ossim-entry .oe-bug-form { gap: 8px; padding: 0 14px; }
  .ossim-entry .oe-bug-end { gap: 6px; padding-bottom: 12px; }
  .ossim-entry .oe-bug-tip { font-size: 12px; line-height: 1.5; }
  .ossim-entry .oe-bug-form textarea { height: 92px; min-height: 64px; }
  .ossim-entry .oe-bug-form input, .ossim-entry .oe-bug-card button:not(.oe-bug-x) { height: 36px; }
  .ossim-entry .oe-bug-dev summary { padding: 7px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .ossim-entry .oe-go, .ossim-entry .oe-lift, .ossim-entry .oe-pop, .ossim-entry .oe-stage::before, .ossim-entry .oe-floor::after, .ossim-entry .oe-scr::before,
  .ossim-entry .oe-bugdlg, .ossim-entry .oe-bug-card { transition: none; animation: none; }
  .ossim-entry .oe-go:hover .oe-lift, .ossim-entry .oe-go:focus-visible .oe-lift, .ossim-entry .oe-go:active .oe-lift { transform: none; }
}

/* 横屏舞台：顶层只放这个 iframe，宽高与旋转由 entry.js 设置 */
.ossim-rot-frame { position: absolute; left: 0; top: 0; border: 0; display: block; background: #000; transform-origin: 0 0; }
