/* 界面设计 · 冷色调页面外壳 */
:root { --gold: #9fd0ff; --gold2: #cfe8ff; --panel: rgba(10,16,26,.84); --panel2: rgba(16,26,40,.94); --line: rgba(150,190,235,.35); --dim: #8a98a8; --ice: #8fd0ff; --ice2: #cfe8ff; --sil: #dfe8f2; --line2: rgba(150,190,235,.35); --dim2: #8a98a8; --pan: rgba(10,16,26,.84); --pan2: rgba(16,26,40,.94); }
html, body { background: #05080d; }
body { background: radial-gradient(1200px 640px at 50% -10%, #142844, #05080d 70%); }
#bar { position: fixed; top: 0; left: 0; right: 0; height: 52px; display: flex; align-items: center; gap: 10px; padding: 0 16px 0 calc(var(--hubw) + 18px); z-index: 10; }
#bar h1 { color: var(--ice2); font-size: 16px; letter-spacing: 4px; font-weight: 700; white-space: nowrap; }
#bar h1 small { color: var(--dim2); font-size: 11px; letter-spacing: 1px; margin-left: 8px; font-weight: 400; }
.sp { flex: 1; }
.seg { display: flex; border: 1px solid var(--line2); border-radius: 18px; overflow: hidden; background: var(--pan); }
.seg button { background: transparent; color: #d6e0ea; border: 0; padding: 7px 14px; font-size: 12.5px; cursor: pointer; font-family: inherit; white-space: nowrap; }
.seg button.on { background: linear-gradient(#cfe8ff, #7ab0e8); color: #0a1626; font-weight: 700; }
.btn { background: var(--pan); border-color: var(--line2); color: #d6e0ea; }
.btn:hover { background: rgba(30,50,80,.9); }
.btn.on, #nav .btn.on, .seg .btn.on, button.btn.on { background: linear-gradient(#cfe8ff, #7ab0e8) !important; color: #0a1626 !important; border-color: #9fd0ff !important; }
.hubback { border-color: var(--line2); background: var(--pan2); color: var(--ice2); }
#stagewrap { position: fixed; top: 52px; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: center; }
#device { position: relative; transform-origin: center center; flex: none; }
.bezel { position: absolute; inset: 0; border-radius: 52px; background: linear-gradient(145deg, #1e2630, #07090c 40%, #141a22); box-shadow: 0 0 0 1.5px #3a4656, 0 40px 90px rgba(0,0,0,.7), inset 0 0 0 2px #000; }
.tablet .bezel { border-radius: 40px; }
#screen { position: absolute; overflow: hidden; background: #030406; border-radius: 36px; }
.tablet #screen { border-radius: 22px; }
#screen canvas { display: block; width: 100%; height: 100%; touch-action: none; }
.island { position: absolute; left: 22px; top: 50%; width: 30px; height: 112px; transform: translateY(-50%); border-radius: 16px; background: #000; z-index: 3; pointer-events: none; }
.tablet .island { width: 8px; height: 8px; left: 10px; border-radius: 50%; background: #1a1a1e; }
.homebar { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 5px; height: 130px; border-radius: 3px; background: rgba(255,255,255,.45); z-index: 3; pointer-events: none; }
.tablet .homebar { right: auto; left: 50%; top: auto; bottom: 7px; transform: translateX(-50%); width: 200px; height: 5px; }
#devlabel { position: absolute; left: 0; right: 0; bottom: -34px; text-align: center; color: var(--dim2); font-size: 12px; letter-spacing: 2px; }
#toast { position: absolute; left: 50%; top: 18%; transform: translateX(-50%); background: var(--pan2); border: 1px solid var(--line2); color: var(--ice2); padding: 7px 16px; border-radius: 16px; font-size: 13px; z-index: 5; pointer-events: none; opacity: 0; transition: opacity .25s; white-space: nowrap; }
#toast.show { opacity: 1; }
#loader { position: fixed; inset: 0; display: flex; flex-direction: column; gap: 12px; align-items: center; justify-content: center; background: radial-gradient(#132238, #04060a); z-index: 60; transition: opacity .5s; }
#loader.hide { opacity: 0; pointer-events: none; }
#loader b { color: var(--ice2); letter-spacing: 6px; font-size: 18px; }
#loader i { color: var(--dim2); font-size: 12px; font-style: normal; }
#nav { position: fixed; left: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 6px; z-index: 9; }
#nav .t { color: var(--dim2); font-size: 11px; letter-spacing: 2px; margin-bottom: 2px; }
#nav button { text-align: left; }
@media (max-width: 900px) { #nav { flex-direction: row; flex-wrap: wrap; left: 8px; right: 8px; bottom: 6px; } #nav .t { display: none; } #bar h1 small { display: none; } }
/* 素材 3D 查看 */
#viewer { position: fixed; inset: 52px 0 0 0; display: none; background: radial-gradient(900px 600px at 50% 40%, #14243a, #04060a); }
#viewer.on { display: grid; grid-template-columns: 236px 1fr; }
#vlist { overflow: auto; padding: 12px; display: flex; flex-direction: column; gap: 3px; border-right: 1px solid rgba(150,190,235,.16); }
#vlist .vg { color: var(--ice); font-size: 11px; letter-spacing: 2px; margin: 10px 4px 4px; }
#vlist button { text-align: left; background: transparent; border: 1px solid transparent; color: #c8d4e0; padding: 7px 10px; border-radius: 8px; font-size: 12.5px; cursor: pointer; font-family: inherit; }
#vlist button.m { color: #9ac4b0; } #vlist button.b { color: #b0c8f0; }
#vlist button:hover { background: rgba(255,255,255,.05); }
#vlist button.on { border-color: var(--line2); background: rgba(120,170,230,.14); color: var(--ice2); }
#vmain { position: relative; }
#vcv { width: 100%; height: 100%; display: block; background-image: linear-gradient(45deg, rgba(255,255,255,.025) 25%, transparent 25%, transparent 75%, rgba(255,255,255,.025) 75%), linear-gradient(45deg, rgba(255,255,255,.025) 25%, transparent 25%, transparent 75%, rgba(255,255,255,.025) 75%); background-size: 24px 24px; background-position: 0 0, 12px 12px; cursor: grab; }
#vtools { position: absolute; left: 16px; right: 16px; bottom: 16px; display: flex; gap: 8px; align-items: center; }
#vname { color: var(--ice2); letter-spacing: 3px; font-size: 16px; position: absolute; left: 20px; top: 16px; }
#vhint { position: absolute; right: 20px; top: 18px; color: var(--dim2); font-size: 12px; }
@media (max-width: 760px) { #viewer.on { grid-template-columns: 1fr; grid-template-rows: 150px 1fr; } #vlist { flex-direction: row; flex-wrap: wrap; border-right: 0; border-bottom: 1px solid rgba(150,190,235,.16); } #vhint { display: none; } }
.hubback:hover { background: rgba(30,50,80,.95) !important; border-color: #9fd0ff !important; }

/* v35 样机内嵌真机演示 */
#liveWrap { position: absolute; inset: 0; z-index: 8; background: #000; }
#liveWrap iframe { width: 100%; height: 100%; border: 0; display: block; }
#liveClose { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); z-index: 9; width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(150,190,235,.5); background: rgba(10,16,26,.85); color: #cfe8ff; font-size: 14px; cursor: pointer; }
#liveTip { position: absolute; inset: 0; display: grid; place-items: center; color: #cfe8ff; letter-spacing: 4px; font-size: 14px; pointer-events: none; }
