/* Independent simulator shell, derived from the original design. */
:root{
  --cream:#FAF3E9;            /* 页面底（设计稿的奶油底） */
  --cream-deep:#F6EAD8;       /* 稍深的奶油（侧饰/格底） */
  --card:#FFFFFF;
  --brand:#FF7A45;            /* 品牌（AGENTS F8 定稿），用于标签/选中态 */
  --brand-d:#E8623B;
  --grad: linear-gradient(90deg,#FFA02E 0%,#F5501F 100%);   /* 大按钮的橙→红渐变 */
  --ink:#33302B; --ink2:#6E6459; --muted:#A99F92;
  --line:#EFE6D8; --line-soft:#F3EADC;
  --tag-orange-bg:#FFF3E3; --tag-orange-tx:#EE7A2E;
  --g:#27A158; --g-l:#E9F7EE;
  --r:#E5484D; --r-l:#FDECEC;
  --y:#C97A16; --y-l:#FEF3C7;
  --b:#2C6BD8; --b-l:#EAF0FE;
  --shadow-card: 0 1px 2px rgba(120,96,50,.05), 0 10px 30px rgba(170,130,70,.07);
}
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  background:#EFE8DB; color:var(--ink);
  font:14px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;
  -webkit-font-smoothing:antialiased;
}
code{background:#F3EADA;border-radius:4px;padding:1px 5px;font-size:12px;color:#6B4A15}
a{color:var(--brand)}

/* ── 舞台 ── */
.stage{display:flex;gap:28px;justify-content:center;align-items:flex-start;padding:28px 20px 60px;flex-wrap:wrap}

/* ── 手机壳 390×844 ── */
.phone{
  width:390px;height:844px;flex:0 0 auto;background:var(--cream);border-radius:38px;position:relative;
  box-shadow:0 24px 60px rgba(60,45,20,.22),0 0 0 10px #14100C,0 0 0 12px #42372B;
  display:flex;flex-direction:column;overflow:hidden;
}
.statusbar{
  height:30px;flex:0 0 auto;background:var(--cream);color:var(--ink);font-size:11px;font-weight:600;
  display:flex;align-items:center;justify-content:space-between;padding:0 22px;letter-spacing:.2px;
}
.sb-right{opacity:.55;font-weight:500}
.navbar{
  height:48px;flex:0 0 auto;background:var(--cream);color:var(--ink);display:flex;align-items:center;
  gap:6px;padding:0 10px;font-weight:700;font-size:17px;color:#2B2521;
}
.nav-title{flex:1;text-align:center;letter-spacing:.3px}
.nav-back{
  background:none;color:#2B2521;border:0;width:30px;height:30px;border-radius:15px;
  padding:0;font-size:19px;line-height:1;cursor:pointer;font-family:inherit;
}
.nav-back[disabled]{opacity:0;pointer-events:none}
.nav-back:enabled:hover{background:rgba(51,48,43,.06)}
.nav-out{
  margin-left:auto;background:none;border:0;color:var(--muted);font-size:11px;letter-spacing:1px;
  height:28px;border-radius:14px;padding:0 10px;font-size:11px;cursor:pointer;font-family:inherit;
}
.nav-out:hover{color:var(--ink2)}
.capsule{
  flex:0 0 auto;background:#fff;border:1px solid rgba(51,48,43,.14);border-radius:16px;height:30px;
  display:flex;align-items:center;padding:0 4px;pointer-events:none;
}
.capsule i{width:30px;height:28px;display:flex;align-items:center;justify-content:center;color:#2B2521;font-style:normal;font-size:13px}
.capsule i:first-child{border-right:1px solid rgba(51,48,43,.14)}
.screen{flex:1 1 auto;overflow-y:auto;background:var(--cream);padding:12px 12px 18px}
.screen.screen-enter{animation:screenIn .2s ease-out}
@keyframes screenIn{from{opacity:.45;transform:translateY(8px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion: reduce){.screen.screen-enter{animation:none}}
.screen::-webkit-scrollbar{width:6px}
.screen::-webkit-scrollbar-thumb{background:#D8CCB8;border-radius:3px}
.tabbar{
  flex:0 0 auto;display:flex;background:#fff;border-top:1px solid var(--line);
  padding-bottom:calc(6px + env(safe-area-inset-bottom));
}
.tabbar:empty{display:none}
.tabbar button{
  flex:1;border:0;background:none;font-family:inherit;font-size:11px;color:#9A9184;
  padding:8px 2px 4px;cursor:pointer;display:flex;flex-direction:column;align-items:center;gap:3px;
}
.tabbar button svg{width:21px;height:21px;stroke:#B7AC9C;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.tabbar button.on{color:var(--brand);font-weight:600}
.tabbar button.on svg{stroke:var(--brand)}


.side{width:400px;flex:0 0 auto}
.side h1{font-size:19px;margin:4px 0 8px}
.side .lead{color:#6E6459;font-size:13px;margin:0 0 14px}
.side-box{background:#fff;border-radius:12px;padding:12px 14px;margin-bottom:10px;box-shadow:var(--shadow-card)}
.side-box.warn{background:var(--y-l)}
.side-h{font-weight:700;font-size:13px;margin-bottom:6px}
.side-box ul{margin:0;padding-left:18px;font-size:12.5px;color:var(--ink2)}
.side-box li{margin-bottom:4px}
.side-box p{margin:0;font-size:12.5px;color:var(--ink2)}
@media (max-width:900px){.side{width:390px}}

.site-foot{display:flex;justify-content:center;align-items:center;gap:14px;padding:0 20px 28px;color:#9C9183;font-size:12px}
.site-foot a{color:#9C9183;text-decoration:none}
.site-foot a:hover{color:var(--brand);text-decoration:underline}

@media(max-width:600px){
  .stage{display:block;padding:0;background:var(--cream)}
  .phone{width:100%;height:100dvh;min-height:600px;border-radius:0;box-shadow:none}
  .side{width:auto;padding:22px 16px}
  .site-foot{padding:16px 16px calc(18px + env(safe-area-inset-bottom));background:var(--cream)}
}

