/* Pixel World 网页演示：按 1100×700 的窗口尺寸绘制，再整体缩放。所有选择器都在 .pd 之内。
   配色由启动器同一套 MD3 算法（fidelity 变体）从主题色生成。 */
.pd-stage { position: relative; width: 100%; overflow: clip; overflow-clip-margin: 64px; }
.pd-scale { position: absolute; left: 0; top: 0; width: 1100px; height: 700px; transform-origin: 0 0; }
.pd-noscript { padding: 24px; text-align: center; color: var(--md-sys-color-on-surface-variant); }

.pd {
  --win-shadow: 0 0 0 1px rgb(0 0 0 / .12), 0 24px 70px rgb(20 40 30 / .26), 0 6px 20px rgb(20 40 30 / .12);
  --scrim: rgb(0 0 0 / .32);
  position: relative; width: 1100px; height: 700px; overflow: hidden;
  border-radius: 12px; background: var(--s); color: var(--os);
  box-shadow: var(--win-shadow);
  font: 400 14px/20px "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Roboto, system-ui, sans-serif;
  letter-spacing: 0; overflow-wrap: normal; text-align: left; user-select: none;
  -webkit-font-smoothing: antialiased; isolation: isolate;
  transition: background-color .25s, color .25s;
}
/* 浅色：#2F6B4F（默认） */
.pd { --p:#125238;--op:#fff;--pc:#2f6b4f;--opc:#aae9c6;--sc:#cfe9d8;--osc:#536a5c;--tc:#446855;--otc:#bde5cd;--s:#f8faf6;--os:#191c1a;--osv:#404943;--c0:#fff;--c1:#f2f4f0;--c2:#eceeea;--c3:#e7e9e4;--c4:#e1e3df;--ol:#707972;--olv:#c0c9c1;--e:#ba1a1a;--ec:#ffdad6;--oec:#93000a;--pf:#b0f0cc;--opf:#002113; }
.pd.dark { --p:#96d4b2;--op:#003824;--pc:#2f6b4f;--opc:#aae9c6;--sc:#354c3f;--osc:#a2bbab;--tc:#446855;--otc:#bde5cd;--s:#111412;--os:#e1e3df;--osv:#c0c9c1;--c0:#0c0f0d;--c1:#191c1a;--c2:#1d201e;--c3:#272b28;--c4:#323633;--ol:#8a938c;--olv:#404943;--e:#ffb4ab;--ec:#93000a;--oec:#ffdad6;
  --win-shadow: 0 0 0 1px rgb(255 255 255 / .1), 0 24px 70px rgb(0 0 0 / .6), 0 6px 20px rgb(0 0 0 / .4); --scrim: rgb(0 0 0 / .5); }
/* 蓝 #2E6CB5 */
.pd[data-seed="blue"] { --p:#00539b;--op:#fff;--pc:#2e6cb5;--opc:#e5edff;--sc:#c7dbfe;--osc:#4d607e;--tc:#4c6c9a;--otc:#e4edff;--s:#f9f9ff;--os:#191c20;--osv:#424751;--c0:#fff;--c1:#f2f3fa;--c2:#ededf4;--c3:#e7e8ee;--c4:#e1e2e9;--ol:#727782;--olv:#c2c6d2;--pf:#d4e3ff;--opf:#001c3a; }
.pd.dark[data-seed="blue"] { --p:#a5c8ff;--op:#00315f;--pc:#2e6cb5;--opc:#e5edff;--sc:#374a66;--osc:#a6b9db;--tc:#4c6c9a;--otc:#e4edff;--s:#111318;--os:#e1e2e9;--osv:#c2c6d2;--c0:#0c0e13;--c1:#191c20;--c2:#1d2025;--c3:#282a2f;--c4:#32353a;--ol:#8c919c;--olv:#424751; }
/* 橙 #B4632B */
.pd[data-seed="orange"] { --p:#914810;--op:#fff;--pc:#b05f28;--opc:#fffbff;--sc:#ffc9aa;--osc:#7a523a;--tc:#a16641;--otc:#fffbff;--s:#fff8f5;--os:#221a15;--osv:#54433a;--c0:#fff;--c1:#fff1ea;--c2:#fbebe3;--c3:#f5e5dd;--c4:#efdfd8;--ol:#877368;--olv:#dac2b5;--pf:#ffdbc8;--opf:#331200; }
.pd.dark[data-seed="orange"] { --p:#ffb68a;--op:#522300;--pc:#d27b41;--opc:#140500;--sc:#633e27;--osc:#ddaa8c;--tc:#c2825a;--otc:#140500;--s:#19120e;--os:#efdfd8;--osv:#dac2b5;--c0:#140d09;--c1:#221a15;--c2:#261e19;--c3:#312823;--c4:#3c332e;--ol:#a28c81;--olv:#54433a; }
/* 紫 #7A4FA0 */
.pd[data-seed="purple"] { --p:#613686;--op:#fff;--pc:#7a4fa0;--opc:#efd6ff;--sc:#efd7ff;--osc:#6e5b7d;--tc:#73578a;--otc:#efd6ff;--s:#fff7fe;--os:#1e1a20;--osv:#4b4450;--c0:#fff;--c1:#faf1f9;--c2:#f4ebf3;--c3:#eee6ed;--c4:#e8e0e8;--ol:#7d7481;--olv:#cec3d1;--pf:#f2daff;--opf:#2c0051; }
.pd.dark[data-seed="purple"] { --p:#dfb7ff;--op:#45196a;--pc:#7a4fa0;--opc:#efd6ff;--sc:#544262;--osc:#c7b0d6;--tc:#73578a;--otc:#efd6ff;--s:#151217;--os:#e8e0e8;--osv:#cec3d1;--c0:#100d12;--c1:#1e1a20;--c2:#221e24;--c3:#2c292e;--c4:#373339;--ol:#978e9b;--olv:#4b4450; }

.pd *, .pd *::before, .pd *::after { box-sizing: border-box; }
.pd p, .pd h1, .pd h2, .pd h3 { margin: 0; }
.pd button { font: inherit; letter-spacing: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; text-align: inherit; }
.pd a { color: inherit; text-decoration: none; }
.pd input, .pd textarea { font: inherit; color: inherit; letter-spacing: inherit; }
.pd .ic {
  font-family: "Material Symbols Rounded"; font-weight: normal; font-style: normal; font-size: 20px; line-height: 1;
  display: inline-block; width: 1em; flex: none; overflow: hidden; white-space: nowrap; direction: ltr;
  -webkit-font-feature-settings: "liga"; font-feature-settings: "liga"; font-variation-settings: "FILL" 0, "wght" 400, "opsz" 24;
}
.pd .ic.f { font-variation-settings: "FILL" 1, "wght" 400, "opsz" 24; }
.pd .mono { font-family: Consolas, "SF Mono", Menlo, monospace; }
.pd .muted { color: var(--osv); }
.pd .sp { flex: 1; }
.pd :focus-visible { outline: 2px solid var(--p); outline-offset: 1px; }

/* 悬停层：MD3 state layer */
.pd .hv { position: relative; isolation: isolate; }
.pd .hv::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: currentColor; opacity: 0; transition: opacity .15s; pointer-events: none; z-index: 1; }
.pd .hv:hover::after { opacity: .08; }
.pd .hv:active::after { opacity: .12; }
.pd [disabled] { cursor: default; opacity: .45; }
.pd [disabled].hv::after { display: none; }

/* ---------- 整体布局 ---------- */
.pd .app { position: absolute; inset: 0; display: flex; }
.pd .rail { width: 76px; flex: none; background: var(--c1); display: flex; flex-direction: column; align-items: center; padding: 10px 0; gap: 0; }
.pd .rail .logo { width: 36px; height: 36px; margin-bottom: 10px; }
.pd .ri { width: 64px; height: 56px; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 12px; }
.pd .ri .pill { width: 52px; height: 30px; border-radius: 15px; display: grid; place-items: center; color: var(--osv); transition: background-color .16s; }
.pd .ri .ic { font-size: 21px; }
.pd .ri .l { font-size: 11px; line-height: 16px; margin-top: 3px; font-weight: 500; color: var(--osv); }
.pd .ri.on .pill { background: var(--pc); color: var(--opc); }
.pd .ri.on .l { color: var(--os); font-weight: 700; }
.pd .ri.hv::after { inset: 4px 6px 22px; border-radius: 15px; }
.pd .main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

/* 顶栏 */
.pd .tb { height: 56px; flex: none; display: flex; align-items: center; padding-left: 14px; gap: 4px; }
.pd .tb.sub { padding-left: 6px; }
.pd .tb .tt { flex: 1; min-width: 0; font-size: 16px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 2px; }
.pd .tb .tt small { font-size: 12px; font-weight: 400; color: var(--osv); margin-left: 8px; }
.pd .chipb { height: 38px; border-radius: 9px; background: var(--c2); display: flex; align-items: center; gap: 8px; padding: 0 12px; font-size: 12px; font-weight: 500; color: var(--osv); }
.pd .chipb.task { width: 236px; margin-left: 8px; }
.pd .chipb.task .x { flex: 1; }
.pd .chipb.task.busy { background: var(--pc); color: var(--opc); }
.pd .chipb .bar { height: 3px; border-radius: 2px; background: rgb(127 127 127 / .25); margin-top: 3px; overflow: hidden; }
.pd .chipb .bar i { display: block; height: 100%; background: var(--pf); width: 0; transition: width .3s; }
.pd .chipb.acc { padding: 0 12px 0 7px; gap: 7px; color: var(--os); margin-left: 6px; }
.pd .ava { width: 24px; height: 24px; border-radius: 6px; background: var(--pc); color: var(--opc); display: grid; place-items: center; font-size: 12px; font-weight: 700; flex: none; }
.pd .ib { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--osv); flex: none; }
.pd .ib .ic { font-size: 21px; }
.pd .ib.sm { width: 32px; height: 32px; }
.pd .ib.sm .ic { font-size: 18px; }
.pd .wbtn { width: 46px; height: 56px; display: grid; place-items: center; color: var(--osv); }
.pd .wbtn .ic { font-size: 18px; }
.pd .wbtn.x:hover { background: #c42b1c; color: #fff; }
.pd .wbtns { display: flex; margin-left: 8px; }
.pd .pbody { flex: 1; min-height: 0; position: relative; }
.pd .pbody.in { animation: pd-in .22s cubic-bezier(.2, 0, 0, 1); }
@keyframes pd-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.pd .scr { position: absolute; inset: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--olv) transparent; }
.pd .scr::-webkit-scrollbar { width: 8px; }
.pd .scr::-webkit-scrollbar-thumb { background: var(--olv); border-radius: 4px; }

/* 侧边二级菜单 + 内容面板 */
.pd .split { position: absolute; inset: 0; display: flex; padding: 0 16px 16px 0; }
.pd .snav { width: 196px; flex: none; padding: 0 6px 16px 14px; overflow-y: auto; scrollbar-width: none; }
.pd .sgt { padding: 12px 12px 6px; font-size: 12px; font-weight: 500; color: var(--osv); }
.pd .si { width: 100%; height: 40px; border-radius: 20px; display: flex; align-items: center; gap: 10px; padding: 0 16px; margin-bottom: 2px; color: var(--osv); font-weight: 500; font-size: 13.5px; }
.pd .si .ic { font-size: 19px; }
.pd .si .tr { margin-left: auto; font-size: 11px; color: var(--osv); }
.pd .si.on { background: var(--sc); color: var(--os); font-weight: 700; }
.pd .si.on .ic { color: var(--p); font-variation-settings: "FILL" 1; }
.pd .panel { flex: 1; min-width: 0; position: relative; background: var(--c1); border-radius: 20px; overflow: hidden; }
.pd .panel > .scr { padding: 20px 24px 24px; }

/* 设置分组 */
.pd .grp { margin-bottom: 14px; }
.pd .grp > h3 { font-size: 13px; font-weight: 500; color: var(--osv); padding: 4px 4px 8px; }
.pd .gc { background: var(--c2); border-radius: 12px; overflow: hidden; }
.pd .panel .gc { background: var(--s); }
.pd.dark .panel .gc { background: var(--c2); }
.pd .gc > * + * { border-top: 1px solid var(--olv); }
.pd .lt { display: flex; align-items: center; gap: 16px; min-height: 56px; padding: 8px 16px 8px 20px; width: 100%; }
.pd .lt > .ic { color: var(--osv); font-size: 22px; }
.pd .lt .t { flex: 1; min-width: 0; }
.pd .lt .t1 { font-size: 15px; line-height: 22px; color: var(--os); }
.pd .lt .t2 { font-size: 13px; line-height: 19px; color: var(--osv); }
.pd .lt .trail { display: flex; gap: 8px; align-items: center; flex: none; }

/* 按钮 */
.pd .b { height: 40px; border-radius: 20px; padding: 0 20px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 14px; font-weight: 500; white-space: nowrap; flex: none; transition: border-radius .15s; }
.pd .b:active { border-radius: 12px; }
.pd .b .ic { font-size: 18px; margin-left: -4px; }
.pd .b.fill { background: var(--p); color: var(--op); }
.pd .b.tonal { background: var(--sc); color: var(--osc); }
.pd .b.out { border: 1px solid var(--ol); color: var(--p); }
.pd .b.txt { color: var(--p); padding: 0 12px; }
.pd .b.sm { height: 32px; padding: 0 14px; font-size: 13px; }
.pd .b.lg { height: 44px; }
.pd .b.err { background: var(--e); color: var(--op); }

/* 开关、下拉、输入框 */
.pd .sw { width: 52px; height: 32px; border-radius: 16px; border: 2px solid var(--ol); background: var(--c4); position: relative; flex: none; transition: background-color .2s, border-color .2s; }
.pd .sw::before { content: ""; position: absolute; width: 16px; height: 16px; left: 6px; top: 6px; border-radius: 50%; background: var(--ol); transition: all .2s cubic-bezier(.2, 0, 0, 1); }
.pd .sw[aria-checked="true"] { background: var(--p); border-color: var(--p); }
.pd .sw[aria-checked="true"]::before { width: 24px; height: 24px; left: 22px; top: 2px; background: var(--op); }
.pd .dd { position: relative; flex: none; }
.pd .dd select { appearance: none; -webkit-appearance: none; height: 40px; min-width: 150px; border-radius: 8px; border: 1px solid var(--ol); background: transparent; padding: 0 36px 0 14px; color: var(--os); cursor: pointer; font-size: 14px; }
.pd .dd select option { background: var(--c3); color: var(--os); }
.pd .dd .ic { position: absolute; right: 10px; top: 10px; pointer-events: none; color: var(--osv); }
.pd .tf { height: 40px; border-radius: 8px; border: 1px solid var(--ol); background: transparent; padding: 0 14px; outline: none; color: var(--os); width: 260px; }
.pd .tf:focus { border: 2px solid var(--p); padding: 0 13px; }
.pd .tf::placeholder { color: var(--osv); opacity: .8; }
.pd .fld { position: relative; }
.pd .fld > label { position: absolute; left: 10px; top: -8px; padding: 0 4px; font-size: 11px; line-height: 16px; color: var(--osv); background: var(--c1); }
.pd .search { position: relative; }
.pd .search .ic { position: absolute; z-index: 1; left: 12px; top: 10px; color: var(--osv); font-size: 19px; }
.pd .search input { height: 40px; width: 100%; border-radius: 20px; border: 0; background: var(--c3); padding: 0 16px 0 40px; outline: none; color: var(--os); }
.pd .search input::placeholder { color: var(--osv); }
.pd input[type="range"] { accent-color: var(--p); width: 220px; }

/* 下载页顶部标签 */
.pd .tabs { display: flex; align-items: flex-end; height: 44px; gap: 2px; margin: 0 16px 8px 12px; border-bottom: 1px solid var(--olv); flex: none; }
.pd .tab { height: 42px; padding: 0 14px; border-radius: 8px 8px 0 0; font-weight: 500; color: var(--osv); border-bottom: 2px solid transparent; }
.pd .tab.on { color: var(--p); border-bottom-color: var(--p); font-weight: 700; }
.pd .tabs .seg { margin-left: auto; margin-bottom: 4px; }
.pd .seg { display: flex; padding: 3px; border-radius: 20px; background: var(--c3); gap: 2px; }
.pd .seg button { height: 30px; padding: 0 12px; border-radius: 15px; font-size: 13px; font-weight: 500; color: var(--osv); }
.pd .seg button.on { background: var(--s); color: var(--os); box-shadow: 0 1px 2px rgb(0 0 0 / .12); }
.pd.dark .seg button.on { background: var(--c1); }
.pd .col { position: absolute; inset: 52px 16px 16px 12px; display: flex; gap: 12px; }
.pd .col > .l { width: 340px; flex: none; display: flex; flex-direction: column; gap: 6px; }
.pd .col > .r { flex: 1; min-width: 0; position: relative; background: var(--c1); border-radius: 14px; overflow: hidden; }
.pd .vlist { flex: 1; min-height: 0; position: relative; background: var(--c1); border-radius: 12px; overflow: hidden; }
.pd .vr { height: 48px; width: 100%; display: flex; align-items: center; gap: 8px; padding: 0 14px 0 11px; border-left: 3px solid transparent; border-bottom: 1px solid rgb(127 127 127 / .14); }
.pd .vr b { font-size: 14px; }
.pd .vr .d { margin-left: auto; font-size: 11px; color: var(--osv); }
.pd .vr.on { background: var(--c3); border-left-color: var(--p); }
.pd .tag { font-size: 11px; line-height: 16px; padding: 1px 7px; border-radius: 5px; border: 1px solid var(--olv); color: var(--osv); }
.pd .tag.f { background: var(--pc); color: var(--opc); border-color: transparent; }

/* 安装面板 */
.pd .inst { padding: 12px 14px 8px; }
.pd .inst h4 { margin: 0; font-size: 16px; font-weight: 800; display: flex; align-items: baseline; gap: 8px; }
.pd .inst h4 small { font-size: 11px; font-weight: 400; color: var(--osv); }
.pd .ltiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 12px; }
.pd .ltile { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: var(--c2); min-height: 56px; text-align: left; border: 1.5px solid transparent; }
.pd .ltile .li { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; font-weight: 800; font-size: 13px; color: #fff; flex: none; }
.pd .ltile b { display: block; font-size: 13px; line-height: 18px; }
.pd .ltile span.h { display: block; font-size: 11px; line-height: 15px; color: var(--osv); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.pd .ltile.on { background: var(--sc); border-color: var(--p); }
.pd .ofrow { display: flex; align-items: center; gap: 12px; margin-top: 8px; padding: 8px 14px; border-radius: 10px; background: var(--c2); width: 100%; text-align: left; }
.pd .ofrow.on { background: var(--sc); }
.pd .cb { width: 18px; height: 18px; border-radius: 3px; border: 2px solid var(--osv); display: grid; place-items: center; flex: none; margin-left: auto; }
.pd .ofrow.on .cb { background: var(--p); border-color: var(--p); color: var(--op); }
.pd .cb .ic { font-size: 16px; }
.pd .instbar { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 14px; display: flex; justify-content: flex-end; align-items: center; gap: 10px; border-top: 1px solid var(--olv); background: var(--c1); }
.pd .instbar .x { flex: 1; font-size: 12px; color: var(--osv); }

/* 资源 */
.pd .res { display: flex; gap: 14px; padding: 12px 14px; border-radius: 14px; background: var(--c1); align-items: center; margin-bottom: 8px; width: 100%; text-align: left; }
.pd .res img, .pd .res .ph { width: 52px; height: 52px; border-radius: 12px; flex: none; background: var(--c3); object-fit: cover; display: grid; place-items: center; font-weight: 800; color: var(--p); font-size: 20px; }
.pd .res .t1 { font-weight: 700; font-size: 15px; }
.pd .res .t2 { font-size: 12.5px; color: var(--osv); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.pd .res .meta { font-size: 11.5px; color: var(--osv); margin-top: 2px; display: flex; gap: 12px; }
.pd .res .meta .ic { font-size: 14px; vertical-align: -2px; margin-right: 2px; }
.pd .resbar { display: flex; gap: 10px; margin: 0 16px 10px 12px; align-items: center; }

/* ---------- 首页 ---------- */
.pd .home { padding: 0 16px 0 12px; }
.pd .fold { height: 644px; display: flex; flex-direction: column; justify-content: center; }
.pd .toprow { display: flex; gap: 12px; height: 340px; }
.pd .hcard { flex: 1; min-width: 0; border-radius: 16px; background: var(--c1); border: 1px solid color-mix(in srgb, var(--olv) 40%, transparent); padding: 16px 20px 18px; display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; }
.pd .hcard .deco { position: absolute; right: -40px; bottom: -60px; width: 300px; height: 300px; opacity: .06; pointer-events: none; }
.pd .swi { align-self: flex-start; display: inline-flex; align-items: center; gap: 2px; padding: 5px 6px 5px 10px; border-radius: 8px; background: var(--c4); font-size: 12px; font-weight: 500; color: var(--osv); }
.pd .swi .ic { font-size: 16px; }
.pd .vh { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.pd .vico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex: none; overflow: hidden; }
.pd .vh .n { font-size: 24px; line-height: 32px; font-weight: 800; }
.pd .vh .id { font-size: 11px; color: var(--osv); }
.pd .facts { margin-top: 8px; font-size: 12.5px; color: var(--osv); }
.pd .hbtns { display: flex; align-items: center; gap: 8px; margin-top: 14px; }
.pd .launch { height: 44px; min-width: 132px; border-radius: 22px; padding: 0 22px 0 18px; background: var(--pf); color: var(--opf); font-weight: 700; display: inline-flex; align-items: center; gap: 8px; transition: border-radius .15s, background-color .2s; }
.pd .launch:active { border-radius: 12px; }
.pd .launch .ic { font-size: 19px; }
.pd .launch.run { background: var(--e); color: var(--op); }
.pd .more { width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--ol); display: grid; place-items: center; color: var(--osv); }
.pd .side { width: 340px; flex: none; display: flex; flex-direction: column; gap: 10px; }
.pd .anno { flex: 1; border-radius: 14px; background: var(--c1); border: 1px solid color-mix(in srgb, var(--olv) 40%, transparent); padding: 14px 16px; text-align: left; display: flex; flex-direction: column; }
.pd .anno .h { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; }
.pd .anno .h .ic { color: var(--p); font-size: 18px; }
.pd .anno .h em { margin-left: auto; font-style: normal; font-size: 11px; color: var(--p); font-weight: 500; }
.pd .anno p { margin-top: 6px; font-size: 12.5px; line-height: 1.55; color: var(--osv); }
.pd .qgrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; height: 106px; }
.pd .qb { border-radius: 8px; background: var(--c3); display: flex; align-items: center; gap: 10px; padding: 0 14px; font-weight: 500; font-size: 13.5px; }
.pd .qb .ic { color: var(--p); font-size: 19px; }
.pd .rh { height: 36px; display: flex; align-items: center; margin-top: 14px; }
.pd .rh b { font-size: 14px; }
.pd .worlds { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.pd .wt { height: 64px; border-radius: 14px; display: flex; align-items: center; gap: 12px; padding: 0 10px; text-align: left; }
.pd .wt .th { width: 44px; height: 44px; border-radius: 9px; flex: none; image-rendering: pixelated; }
.pd .wt .t { flex: 1; min-width: 0; }
.pd .wt b { display: block; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pd .wt span.s { display: block; font-size: 11.5px; color: var(--osv); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pd .wt .go { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--pf); color: var(--opf); flex: none; }
.pd .wt .go .ic { font-size: 18px; }
.pd .down { height: 34px; margin-top: 14px; display: flex; justify-content: center; }
.pd .down .b { color: var(--osv); font-size: 13px; }
.pd .lower { display: flex; gap: 12px; padding: 6px 0 20px; align-items: flex-start; }
.pd .lower > .l { flex: 1; min-width: 0; }
.pd .lower > .r { width: 340px; flex: none; padding-top: 8px; }
.pd .card { border-radius: 14px; background: var(--c1); }
.pd .hint { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--c1); font-size: 12.5px; line-height: 1.55; margin-bottom: 8px; }
.pd .hint .ic { color: var(--p); font-size: 19px; margin-top: 1px; }
.pd .hint a { color: var(--p); font-weight: 500; white-space: nowrap; }
.pd .clog { display: flex; gap: 12px; align-items: center; padding: 12px 16px; border-radius: 14px; background: var(--sc); color: var(--osc); margin-top: 8px; }
.pd .clog .ic { font-size: 20px; }
.pd .clog b { color: var(--os); font-size: 14px; }
.pd .nh { display: flex; align-items: center; gap: 8px; margin: 18px 4px 8px; }
.pd .nh b { font-size: 15px; }
.pd .nh small { font-size: 12px; color: var(--osv); }
.pd .news { display: flex; gap: 14px; padding: 10px; border-radius: 14px; background: var(--c1); margin-bottom: 8px; width: 100%; text-align: left; }
.pd .news .cv { width: 150px; height: 84px; border-radius: 10px; flex: none; background-size: cover; background-position: center; }
.pd .news .hd { display: flex; align-items: center; gap: 8px; }
.pd .news .hd b { font-size: 14.5px; }
.pd .news .hd i { margin-left: auto; font-style: normal; font-size: 11.5px; color: var(--osv); }
.pd .news .tx { flex: 1; min-width: 0; }
.pd .news .sm { font-size: 12.5px; line-height: 1.55; color: var(--osv); margin-top: 4px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.pd .badge { font-size: 11px; line-height: 18px; padding: 0 7px; border-radius: 5px; background: var(--sc); color: var(--osc); font-weight: 500; }
.pd .badge.pr { background: var(--pc); color: var(--opc); }
.pd .vinfo { padding: 14px 16px; }
.pd .vinfo .kv { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; font-size: 12.5px; }
.pd .vinfo .kv span:first-child { color: var(--osv); }
.pd .vinfo .kv span:last-child { text-align: right; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.pd .vinfo h5 { margin: 0 0 6px; font-size: 14px; display: flex; align-items: center; }

/* 实例列表、实例详情 */
.pd .irow { display: flex; align-items: center; gap: 14px; padding: 10px 12px 10px 14px; border-radius: 14px; background: var(--c1); margin-bottom: 8px; width: 100%; text-align: left; border: 1.5px solid transparent; }
.pd .irow.on { border-color: var(--p); background: var(--sc); }
.pd .irow .t1 { font-weight: 700; }
.pd .irow .t2 { font-size: 12px; color: var(--osv); }

/* AI */
.pd .ai { position: absolute; inset: 0 16px 16px 12px; display: flex; gap: 12px; }
.pd .ai .sess { width: 200px; flex: none; display: flex; flex-direction: column; }
.pd .ai .chat { flex: 1; min-width: 0; position: relative; display: flex; flex-direction: column; }
.pd .ai .wel { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 28px; }
.pd .ai .wel > .ic { font-size: 40px; color: var(--p); font-variation-settings: "FILL" 1; }
.pd .ai .wel h4 { margin: 12px 0 8px; font-size: 24px; font-weight: 400; }
.pd .ai .wel p { color: var(--osv); max-width: 560px; }
.pd .aicard { display: flex; align-items: center; gap: 16px; margin-top: 24px; padding: 14px 20px; border-radius: 12px; background: var(--c3); width: 520px; text-align: left; }
.pd .aichips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 16px; max-width: 560px; }
.pd .chip { height: 32px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--olv); font-size: 13px; font-weight: 500; color: var(--osv); display: inline-flex; align-items: center; gap: 6px; }
.pd .chip.on { background: var(--sc); color: var(--osc); border-color: transparent; }
.pd .aib { display: flex; gap: 10px; align-items: flex-end; padding: 10px 10px 10px 18px; border-radius: 24px; background: var(--c2); }
.pd .aib textarea { flex: 1; border: 0; background: none; outline: none; resize: none; height: 40px; padding: 10px 0; line-height: 20px; }
.pd .aib .b { width: 40px; padding: 0; }
.pd .aib .b .ic { margin: 0; }
.pd .msg { max-width: 75%; margin: 10px 0; padding: 10px 14px; border-radius: 16px; line-height: 1.6; font-size: 13.5px; }
.pd .msg.u { margin-left: auto; background: var(--sc); color: var(--os); border-bottom-right-radius: 4px; }
.pd .msg.a { background: var(--c1); border-bottom-left-radius: 4px; }

/* 账户 */
.pd .acct { display: flex; align-items: center; gap: 14px; padding: 10px 14px; border-radius: 12px; width: 100%; text-align: left; }
.pd .acct.on { background: var(--sc); }
.pd .acct .av { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--pc); color: var(--opc); font-weight: 700; flex: none; }
.pd .acct .t1 { font-weight: 500; }
.pd .acct .t2 { font-size: 12px; color: var(--osv); }
.pd .note { padding: 10px 14px; border-radius: 10px; background: var(--sc); color: var(--osc); font-size: 13px; line-height: 1.55; margin-top: 12px; }
.pd .sect { font-size: 14px; font-weight: 500; margin: 20px 0 8px; }

/* 主题色 */
.pd .swatch { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: #fff; border: 2px solid transparent; }
.pd .swatch.on { border-color: var(--os); }
.pd .swatch .ic { font-size: 18px; }

/* 工具 */
.pd .h5 { font-size: 22px; line-height: 30px; font-weight: 400; }
.pd .sub { color: var(--osv); font-size: 13px; }
.pd .form { display: flex; flex-direction: column; gap: 14px; margin-top: 22px; max-width: 460px; }
.pd .form .tf { width: 100%; }
.pd .ob { margin-top: 16px; padding: 14px 16px; border-radius: 12px; background: var(--s); font-size: 13.5px; line-height: 1.6; }
.pd.dark .ob { background: var(--c2); }
.pd .luck { font-size: 72px; line-height: 1; font-weight: 800; color: var(--p); margin: 24px 0 8px; }
.pd .empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 8px; color: var(--osv); padding: 24px; }
.pd .empty > .ic { font-size: 44px; color: var(--olv); }
.pd .empty .tt { color: var(--os); font-size: 16px; font-weight: 500; }
.pd .log { font-family: Consolas, "SF Mono", Menlo, monospace; font-size: 12px; line-height: 1.65; padding: 14px 16px; border-radius: 12px; background: var(--s); white-space: pre-wrap; color: var(--osv); }
.pd.dark .log { background: var(--c0); }

/* 弹出菜单、提示 */
.pd .menu { position: absolute; z-index: 20; min-width: 200px; padding: 6px 0; border-radius: 10px; background: var(--c2); box-shadow: 0 6px 24px rgb(0 0 0 / .2), 0 1px 3px rgb(0 0 0 / .14); animation: pd-pop .14s ease-out; }
.pd .menu button { display: flex; align-items: center; gap: 12px; width: 100%; height: 44px; padding: 0 16px; font-size: 13.5px; }
.pd .menu button .ic { color: var(--osv); font-size: 19px; }
.pd .menu .sep { height: 1px; background: var(--olv); margin: 4px 0; }
@keyframes pd-pop { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
.pd .toast { position: absolute; left: 50%; bottom: 24px; z-index: 30; transform: translate(-50%, 16px); max-width: 640px; padding: 12px 18px; border-radius: 6px; background: var(--os); color: var(--s); font-size: 13.5px; box-shadow: 0 4px 14px rgb(0 0 0 / .25); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s cubic-bezier(.2, 0, 0, 1); }
.pd .toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 背景图片（毛玻璃）：「上下」「极简」布局生效，主题色跟随背景（#6878B4） ---------- */
.pd.glass { --p:#495993;--op:#fff;--pc:#6272ad;--opc:#fffbff;--sc:#d9defc;--osc:#5c627a;--s:#fbf8fe;--os:#1b1b1f;--osv:#454650;--c0:#fff;--c1:#f5f3f8;--c2:#efedf2;--c3:#e9e7ed;--c4:#e4e1e7;--ol:#757681;--olv:#c5c5d1;--pf:#dce1ff;--opf:#01164f;
  --g1: rgb(245 243 248 / .62); --g2: rgb(251 248 254 / .5); --g3: rgb(233 231 237 / .62); --gb: blur(5px) saturate(1.2); }
.pd.glass.dark { --p:#b6c4ff;--op:#1b2c64;--pc:#7e8ecc;--opc:#000a31;--sc:#424860;--osc:#b2b7d3;--s:#131317;--os:#e4e1e7;--osv:#c5c5d1;--c0:#0d0e12;--c1:#1b1b1f;--c2:#1f1f23;--c3:#292a2e;--c4:#343439;--ol:#8f909b;--olv:#454650;--pf:#dce1ff;--opf:#01164f;
  --g1: rgb(27 27 31 / .62); --g2: rgb(19 19 23 / .45); --g3: rgb(41 42 46 / .62); }
.pd.glass { background: #403a40 url("wallpaper.jpg") center / cover no-repeat; }
/* 契合度：适应时空出来的地方用图片平均色压暗 45%，和启动器一致 */
.pd.glass[data-fit="fit"] { background-size: contain; }
.pd.glass[data-fit="stretch"] { background-size: 100% 100%; }
.pd.glass[data-fit="tile"] { background-size: auto; background-repeat: repeat; background-position: 0 0; }
.pd.glass[data-fit="center"] { background-size: auto; }
.pd.glass .rail, .pd.glass .chipb, .pd.glass .hcard, .pd.glass .anno, .pd.glass .qb, .pd.glass .wt, .pd.glass .panel, .pd.glass .vlist,
.pd.glass .col > .r, .pd.glass .res, .pd.glass .card, .pd.glass .hint, .pd.glass .news, .pd.glass .aib, .pd.glass .irow, .pd.glass .snav,
.pd.glass .tabs, .pd.glass .ai .sess, .pd.glass .strip, .pd.glass .mbar, .pd.glass .search input, .pd.glass .seg {
  background: var(--g1); -webkit-backdrop-filter: var(--gb); backdrop-filter: var(--gb);
}
.pd.glass .chipb.task.busy { background: var(--pc); }
.pd.glass .instbar { background: transparent; }
.pd.glass .panel .gc, .pd.glass .col > .r .ltile, .pd.glass .col > .r .ofrow, .pd.glass .ob, .pd.glass .log, .pd.glass .seg button.on { background: var(--g2); }
.pd.glass .irow.on, .pd.glass .ltile.on, .pd.glass .ofrow.on, .pd.glass .vr.on { background: color-mix(in srgb, var(--sc) 75%, transparent); }
.pd.glass .wt { background: var(--g1) !important; }
.pd.glass .snav { margin: 0 4px 0 12px; padding: 6px 6px 12px; border-radius: 20px; }
.pd.glass .tabs { border-bottom: 0; border-radius: 14px; padding: 0 6px; }
.pd.glass .ai .sess { padding: 8px; border-radius: 16px; }
.pd.glass .tb .tt, .pd.glass .rh b, .pd.glass .rh .b, .pd.glass .down .b, .pd.glass .nh b, .pd.glass .nh small, .pd.glass .nh .ib, .pd.glass .tb > .ib, .pd.glass .wbtn, .pd.glass .ai .wel h4, .pd.glass .ai .wel p, .pd.glass .ai .wel > .ic {
  color: #fff; text-shadow: 0 1px 3px rgb(0 0 0 / .45);
}
.pd.glass .tb .tt small { color: rgb(255 255 255 / .8); }

/* 「上下」布局：顶部一条当前实例，底部一条开始游戏和最近游玩 */
.pd .strip { border-radius: 16px; display: flex; align-items: center; gap: 10px; padding: 10px 12px; }
.pd .strip .ti { min-width: 0; }
.pd .strip .ti b { display: block; font-size: 16px; font-weight: 800; line-height: 22px; white-space: nowrap; }
.pd .strip .ti span { display: block; font-size: 12px; color: var(--osv); }
.pd .strip .ib { width: 36px; height: 36px; }
.pd .strip .ib .ic { font-size: 20px; }
.pd .swi.flat { background: transparent; margin-left: 4px; }
.pd .dock { height: 52px; width: 200px; flex: none; border-radius: 26px; background: var(--pf); color: var(--opf); display: flex; align-items: center; gap: 12px; padding: 0 18px; text-align: left; }
.pd .dock .ic { font-size: 20px; }
.pd .dock b { display: block; font-size: 14px; font-weight: 800; line-height: 1.2; }
.pd .dock span.v { display: block; font-size: 11px; opacity: .75; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pd .dock.run { background: var(--e); color: var(--op); }
.pd .dw { height: 52px; width: 200px; flex: none; border-radius: 14px; display: flex; align-items: center; gap: 10px; padding: 0 10px; background: var(--g2, var(--c2)); text-align: left; min-width: 0; }
.pd .dw .th { width: 32px; height: 32px; border-radius: 7px; flex: none; }
.pd .dw b { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pd .dw span.s { display: block; font-size: 11px; color: var(--osv); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pd .foldw { height: 644px; display: flex; flex-direction: column; padding-bottom: 16px; }
.pd .foldw .gap { flex: 1; }
/* 「极简」布局：底部居中一条 */
.pd .mbar { align-self: center; border-radius: 32px; display: flex; align-items: center; gap: 4px; padding: 8px 8px 8px 12px; height: 64px; }
.pd .mbar .vt { display: flex; flex-direction: column; justify-content: center; padding: 0 4px; border-radius: 8px; max-width: 240px; text-align: left; margin-left: 8px; }
.pd .mbar .vt b { font-size: 14px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pd .mbar .vt span { font-size: 11px; color: var(--osv); display: flex; align-items: center; }
.pd .mbar .vt span .ic { font-size: 14px; }
.pd .mbar .div { width: 1px; height: 26px; margin: 0 8px; background: color-mix(in srgb, var(--olv) 50%, transparent); }
.pd .mbar .dock { height: 48px; border-radius: 24px; margin-left: 8px; }

/* 下载 → 游戏版本：左边版本列表较宽，右边安装面板与顶栏「后台任务」右边缘对齐 */
.pd .col > .l { width: auto; flex: 1; min-width: 0; }
.pd .col > .r { flex: none; width: 330px; }
.pd .search.box input { border-radius: 12px; height: 44px; background: var(--c1); font-size: 15px; padding-left: 44px; }
.pd .search.box .ic { top: 12px; left: 14px; font-size: 20px; }
.pd .vr { height: 48px; }
.pd .vr b { font-size: 14.5px; }
.pd .inst h4 { font-size: 16px; }
.pd .lbar { height: 3px; border-radius: 2px; background: color-mix(in srgb, var(--p) 18%, transparent); margin-top: 6px; overflow: hidden; }
.pd .lbar i { display: block; height: 100%; background: var(--p); transition: width .15s; }
.pd .note2 { font-size: 11.5px; line-height: 1.45; color: var(--osv); margin-top: 6px; }
.pd .lgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-top: 10px; }
.pd .lt2 { display: flex; align-items: center; gap: 8px; min-height: 54px; padding: 6px 10px; border-radius: 10px; background: var(--c2); border: 1.5px solid transparent; text-align: left; color: var(--os); }
.pd .lt2 .lic { flex: none; color: var(--os); }
.pd .lt2 .tx { flex: 1; min-width: 0; }
.pd .lt2 b { display: block; font-size: 14px; font-weight: 700; line-height: 19px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pd .lt2 .tx span { display: block; font-size: 11.5px; line-height: 16px; color: var(--osv); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pd .lt2.on { background: color-mix(in srgb, var(--pc) 35%, transparent); border-color: var(--p); }
.pd .lt2.off { opacity: .45; }
.pd .lt2[disabled] { opacity: 1; cursor: default; }
.pd .lt2.off[disabled] { opacity: .45; }
.pd .spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--p); border-right-color: transparent; flex: none; animation: pd-spin .8s linear infinite; }
@keyframes pd-spin { to { transform: rotate(360deg); } }
.pd .of2 { display: flex; align-items: center; gap: 14px; width: 100%; margin-top: 8px; padding: 12px 14px; min-height: 64px; border-radius: 10px; background: var(--c2); text-align: left; color: var(--os); }
.pd .of2 .lic { color: var(--osv); flex: none; }
.pd .of2 .tx { flex: 1; min-width: 0; }
.pd .of2 b { display: block; font-size: 13.5px; font-weight: 500; }
.pd .of2 .tx span { display: block; font-size: 12px; color: var(--osv); }
.pd .of2.on { background: var(--sc); }
.pd .of2.on .cb { background: var(--p); border-color: var(--p); color: var(--op); }
.pd .of2.off[disabled] { opacity: .45; }
.pd .instbar { border-top: 0; background: transparent; padding: 12px 14px 14px; }
.pd .ibtn2 { height: 48px; min-width: 110px; border-radius: 24px; font-size: 15px; }
.pd.glass .lt2, .pd.glass .of2 { background: var(--g2); }
.pd.glass .lt2.on { background: color-mix(in srgb, var(--pc) 35%, transparent); }
.pd.glass .of2.on { background: color-mix(in srgb, var(--sc) 75%, transparent); }
.pd.glass .search.box input { background: var(--g1); }
