/* ============================================================
   01 · 第一次开机 — Windows 7 / Aero
   ============================================================ */

.scene--win7{
  background:#04141c;
  color:#EAF5FB;
  --sh-line:rgba(234,245,251,.20);
  --sh-num:#9FD8EF;
  --sh-dim:#A5C8D6;
  --sh-title:#FFFFFF;
  --prose-lead:#FFFFFF;
  --prose-em:#A9E2FF;
  --prose-hl:rgba(126,195,232,.20);
}

.w7-wall{
  position:absolute;inset:0;overflow:hidden;z-index:0;
  background:
    radial-gradient(ellipse 90% 70% at 78% 8%,rgba(53,140,168,.38),transparent 60%),
    radial-gradient(ellipse 70% 60% at 12% 88%,rgba(15,78,104,.55),transparent 62%),
    linear-gradient(158deg,#062733 0%,#08384a 34%,#06222f 62%,#03101a 100%);
}
.w7-wall::after{
  content:"";position:absolute;inset:0;
  background-image:radial-gradient(rgba(255,255,255,.055) 1px,transparent 1px);
  background-size:26px 26px;
  mask-image:linear-gradient(180deg,transparent,#000 35%,transparent 92%);
  -webkit-mask-image:linear-gradient(180deg,transparent,#000 35%,transparent 92%);
  opacity:.5;
}
.w7-wall-glow{
  position:absolute;width:70vw;height:70vw;right:-18vw;top:-30vw;
  background:radial-gradient(circle,rgba(150,225,255,.20),transparent 62%);
  filter:blur(60px);
}
.w7-wall-ribbon{
  position:absolute;
  width:120%;height:34vh;
  left:-10%;top:46%;
  background:linear-gradient(90deg,transparent,rgba(96,190,220,.16) 30%,rgba(180,240,255,.22) 50%,rgba(96,190,220,.12) 72%,transparent);
  filter:blur(26px);
  transform:rotate(-8deg) skewX(-10deg);
  border-radius:50%;
  animation:ribbonDrift 28s ease-in-out infinite alternate;
}
.w7-wall-ribbon--2{
  top:64%;height:18vh;
  background:linear-gradient(90deg,transparent,rgba(60,150,180,.22),rgba(120,210,240,.12),transparent);
  transform:rotate(-5deg) skewX(8deg);
  opacity:.7;
  animation:ribbonDrift2 36s ease-in-out infinite alternate;
}
@keyframes ribbonDrift{
  from{transform:translate3d(0,0,0) rotate(-8deg) skewX(-10deg)}
  to{transform:translate3d(-3%,-2%,0) rotate(-11deg) skewX(-13deg)}
}
@keyframes ribbonDrift2{
  from{transform:translate3d(0,0,0) rotate(-5deg) skewX(8deg)}
  to{transform:translate3d(2%,-1%,0) rotate(-3deg) skewX(11deg)}
}

/* ---------- 布局 ---------- */
.w7-layout{
  display:grid;
  grid-template-columns:minmax(0,.95fr) minmax(440px,1.05fr);
  gap:clamp(34px,5vw,76px);
  margin-top:clamp(44px,6.5vh,76px);
  align-items:start;
}
.w7-prose{
  max-width:31em;
  padding-top:6px;
}
.w7-fig{margin-top:44px;max-width:340px}
.w7-legend{
  display:flex;flex-direction:column;gap:6px;
  padding-top:12px;border-top:1px solid rgba(234,245,251,.22);
  font-family:var(--f-mono);font-size:9px;letter-spacing:.12em;
  line-height:1.8;color:rgba(234,245,251,.62);
}
.w7-legend span:first-child{color:#9FD8EF}

/* ---------- 桌面 ---------- */
.w7-desktop{
  position:relative;
  aspect-ratio:1 / 1;
  min-height:520px;
  border-radius:8px;
  border:1px solid rgba(255,255,255,.26);
  background:
    radial-gradient(ellipse 80% 60% at 72% 12%,rgba(110,200,230,.30),transparent 62%),
    linear-gradient(160deg,#0a3344,#062230 60%,#04141d);
  box-shadow:
    0 40px 80px -20px rgba(0,0,0,.6),
    inset 0 0 0 1px rgba(255,255,255,.08),
    inset 0 0 90px rgba(90,190,220,.08);
  overflow:hidden;
  isolation:isolate;
  position:relative;
  top:auto;
}
.w7-desktop::after{
  content:"";position:absolute;inset:0;pointer-events:none;
  background:linear-gradient(128deg,rgba(255,255,255,.10),transparent 26%,transparent 70%,rgba(255,255,255,.04));
  z-index:2;
}
.w7-icons{
  position:absolute;left:8px;top:10px;z-index:3;
  display:flex;flex-direction:column;gap:4px;
}
.w7-dicon{
  width:66px;padding:7px 4px 5px;
  display:flex;flex-direction:column;align-items:center;gap:5px;
  border:1px solid transparent;border-radius:3px;
  color:#F2FAFF;
  font-family:"Segoe UI",var(--f-sans);
  font-size:9px;line-height:1.3;
  text-shadow:0 1px 3px rgba(0,0,0,.8);
  transition:background .2s,border-color .2s;
}
.w7-dicon svg{width:30px;height:30px;stroke-width:1.2;color:#CFEFFF}
.w7-dicon:hover{background:rgba(190,235,255,.16);border-color:rgba(190,235,255,.3)}
.w7-dicon:active{background:rgba(190,235,255,.26)}

/* ---------- 窗口 ---------- */
.w7-window{
  position:absolute;
  z-index:4;
  left:84px;right:12px;top:16px;bottom:130px;
  display:flex;flex-direction:column;
  border-radius:7px 7px 4px 4px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.5);
  background:rgba(240,248,252,.92);
  box-shadow:
    0 26px 50px -8px rgba(0,0,0,.5),
    0 0 0 1px rgba(0,0,0,.22),
    inset 0 0 0 1px rgba(255,255,255,.6);
  color:#16262E;
  font-family:"Segoe UI",var(--f-sans);
  animation:winIn .8s var(--ease) .5s both;
}
@keyframes winIn{
  from{opacity:0;transform:translateY(10px) scale(.985)}
  to{opacity:1;transform:none}
}
.w7-titlebar{
  height:30px;flex:none;display:flex;align-items:center;gap:7px;
  padding:0 6px 0 9px;
  background:
    linear-gradient(180deg,rgba(255,255,255,.62),rgba(214,238,248,.42) 48%,rgba(178,218,235,.36));
  border-bottom:1px solid rgba(255,255,255,.55);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.7);
  backdrop-filter:blur(18px) saturate(150%);
  -webkit-backdrop-filter:blur(18px) saturate(150%);
}
.w7-winico{width:14px;height:14px;stroke-width:1.5;color:#2C7FA4}
.w7-wintitle{
  font-size:10.5px;letter-spacing:.02em;color:#0E2632;
  text-shadow:0 0 8px rgba(255,255,255,.9);
  flex:1;
}
.w7-controls{display:flex;gap:2px}
.w7-controls i{
  width:22px;height:16px;border-radius:2px;
  border:1px solid rgba(120,160,180,.45);
  background:linear-gradient(180deg,rgba(255,255,255,.85),rgba(200,230,242,.55));
  position:relative;
}
.w7-controls i::before{
  content:"";position:absolute;left:6px;right:6px;bottom:5px;height:1px;background:#33525F;
}
.w7-controls i.max::before{bottom:6px;height:6px;border:1px solid #33525F;background:none}
.w7-controls i.close{
  background:linear-gradient(180deg,#F2A08B,#D9614A);
  border-color:rgba(160,60,40,.55);
}
.w7-controls i.close::before,.w7-controls i.close::after{
  content:"";position:absolute;left:7px;right:7px;top:7px;height:1px;background:#fff;transform:rotate(45deg);
}
.w7-controls i.close::after{transform:rotate(-45deg)}
.w7-controls i.close::before{bottom:auto}

.w7-address{
  height:28px;flex:none;display:flex;align-items:center;gap:8px;
  padding:0 8px;
  background:linear-gradient(180deg,#EAF4F9,#DDEBF3);
  border-bottom:1px solid #C3D7E2;
  font-size:9.5px;color:#3A5866;
}
.w7-back{
  width:18px;height:18px;border-radius:50%;
  display:grid;place-items:center;
  background:#D6E9F3;color:#2D6B87;font-size:13px;line-height:1;
}
.w7-crumb{flex:1}
.w7-crumb em{color:#7C97A3;padding-inline:3px}
.w7-search{
  border:1px solid #C6D9E3;border-radius:2px;
  background:#fff;padding:2px 6px;width:92px;
  color:#9AAEB8;font-size:8.5px;
}

.w7-body{display:grid;grid-template-columns:88px 1fr;flex:1;min-height:0;background:#FBFDFE}
.w7-side{
  background:linear-gradient(180deg,#F2F8FB,#E8F2F7);
  border-right:1px solid #D9E6ED;
  padding:8px 6px;
  font-size:8.5px;color:#3D5A67;
  display:flex;flex-direction:column;gap:1px;
  overflow:hidden;
}
.w7-side p{
  font-size:7.5px;color:#7E97A2;letter-spacing:.04em;
  margin:6px 2px 3px;
}
.w7-side span{padding:2.5px 4px;border-radius:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.w7-side span.on{background:#CDE8F5;color:#0E4A66;box-shadow:inset 0 0 0 1px #B3DAEE}
.w7-main{padding:9px 10px;overflow:hidden}
.w7-group{font-size:8px;color:#7A929D;margin-bottom:4px}
.w7-drive{display:flex;gap:8px;align-items:center;margin-bottom:7px}
.w7-drive svg{width:26px;height:26px;stroke:#7AA9BF;stroke-width:1.2;flex:none}
.w7-drive div{flex:1;min-width:0}
.w7-drive b{display:block;font-size:8.5px;font-weight:400;color:#25414D}
.w7-bar{
  display:block;height:5px;border-radius:2px;
  background:#DCE8EE;margin:3px 0 2px;overflow:hidden;
  box-shadow:inset 0 1px 1px rgba(0,0,0,.08);
}
.w7-bar i{
  display:block;height:100%;
  background:linear-gradient(180deg,#7FC7E8,#3D96C4);
  box-shadow:0 0 4px rgba(70,160,200,.6);
}
.w7-drive em{font-size:7.5px;color:#7C939E}
.w7-file{
  display:flex;align-items:center;gap:7px;
  padding:3px 2px;font-size:8.5px;color:#2A4653;
}
.w7-file svg{width:18px;height:18px;stroke:#84A9BB;stroke-width:1.2;flex:none}
.w7-file b{font-weight:400;flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.w7-file em{font-size:7.5px;color:#8CA1AB}
.w7-libs{display:grid;grid-template-columns:1fr 1fr;gap:2px 8px;margin-top:4px}
.w7-libs span{display:flex;align-items:center;gap:5px;font-size:8.5px;color:#2F4B58;padding:2px 0;white-space:nowrap}
.w7-libs svg{width:14px;height:14px;stroke:#D6A34A;stroke-width:1.4;flex:none}
.w7-tip{margin-top:10px;font-size:7.5px;line-height:1.7;color:#93A7B1;max-width:26em}

.w7-statusbar{
  flex:none;
  height:22px;display:flex;justify-content:space-between;align-items:center;
  padding:0 9px;
  background:linear-gradient(180deg,#EAF3F8,#DCEAF2);
  border-top:1px solid #D2E2EA;
  font-size:7.5px;color:#5F7A87;
}

/* ---------- 开始菜单 ---------- */
.w7-taskbar{
  position:absolute;left:0;right:0;bottom:0;z-index:10;
  height:40px;
  display:flex;align-items:center;gap:6px;
  padding:0 6px;
  background:
    linear-gradient(180deg,rgba(28,66,84,.88),rgba(10,34,46,.94));
  border-top:1px solid rgba(170,225,245,.34);
  box-shadow:0 -10px 30px rgba(0,0,0,.25),inset 0 1px 0 rgba(255,255,255,.18);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
}
.w7-start{
  width:38px;height:32px;flex:none;border-radius:3px;
  display:grid;place-items:center;
  transition:background .2s,box-shadow .2s;
}
.w7-start:hover,.w7-start[aria-expanded="true"]{
  background:rgba(160,220,245,.18);
  box-shadow:inset 0 0 18px rgba(180,235,255,.25);
}
.w7-orb{
  width:24px;height:24px;border-radius:50%;
  display:grid;grid-template-columns:1fr 1fr;grid-template-rows:1fr 1fr;
  padding:4px;gap:1.5px;
  background:radial-gradient(circle at 35% 30%,#DFF6FF,#8FD0EA 55%,#2C7FA4);
  box-shadow:0 0 10px rgba(140,220,255,.55),inset 0 0 4px rgba(255,255,255,.9);
  transform:rotate(-3deg);
}
.w7-orb i:nth-child(1){background:#F7C948;border-radius:1px}
.w7-orb i:nth-child(2){background:#E07B39;border-radius:1px}
.w7-orb i:nth-child(3){background:#5FB56A;border-radius:1px}
.w7-orb i:nth-child(4){background:#4A9BD8;border-radius:1px}

.w7-tasks{display:flex;gap:3px;flex:1;min-width:0;overflow:hidden}
.w7-task{
  display:flex;align-items:center;gap:5px;
  height:26px;padding:0 8px;border-radius:2px;
  font-size:9px;color:#DDF3FC;
  background:linear-gradient(180deg,rgba(130,200,230,.22),rgba(60,130,160,.12));
  border:1px solid rgba(170,225,245,.18);
  white-space:nowrap;
}
.w7-task.is-active{
  background:linear-gradient(180deg,rgba(190,235,255,.42),rgba(110,185,220,.28));
  border-color:rgba(210,245,255,.45);
  box-shadow:inset 0 0 12px rgba(255,255,255,.18);
}
.w7-task svg{width:12px;height:12px;stroke-width:1.6;flex:none}
.w7-tray{display:flex;align-items:center;gap:7px;padding-right:4px;color:#CFEFFA}
.w7-tray svg{width:12px;height:12px;stroke-width:1.6;opacity:.85}
.w7-clock{
  display:flex;flex-direction:column;align-items:center;line-height:1.25;
  font-size:8px;color:#E8F8FF;
  font-variant-numeric:tabular-nums;
  padding-left:3px;
}
.w7-clock b{font-weight:400;font-size:9.5px}
.w7-clock span{font-size:7.5px;opacity:.75}

.w7-startmenu{
  position:absolute;left:6px;bottom:44px;
  width:min(300px,calc(100% - 12px));
  border-radius:7px 7px 4px 4px;
  overflow:hidden;
  background:linear-gradient(180deg,rgba(23,64,82,.985),rgba(7,28,38,.995));
  border:1px solid rgba(170,225,245,.38);
  box-shadow:0 30px 60px rgba(0,0,0,.55),inset 0 1px 0 rgba(255,255,255,.2);
  backdrop-filter:blur(24px) saturate(150%);
  -webkit-backdrop-filter:blur(24px) saturate(150%);
  color:#EAF7FD;
  font-family:"Segoe UI",var(--f-sans);
  opacity:0;transform:translateY(10px) scale(.98);transform-origin:0 100%;
  pointer-events:none;
  transition:opacity .25s var(--ease),transform .3s var(--ease);
  z-index:20;
}
.w7-startmenu.is-open{opacity:1;transform:none;pointer-events:auto}
.w7-sm-user{
  display:flex;align-items:center;gap:9px;
  padding:10px;
  border-bottom:1px solid rgba(170,225,245,.16);
}
.w7-avatar{
  width:30px;height:30px;border-radius:3px;
  display:grid;place-items:center;
  background:linear-gradient(160deg,#8FD0EA,#2C7FA4);
  border:1px solid rgba(255,255,255,.55);
  font-family:var(--f-serif);font-size:14px;color:#04212E;
  box-shadow:inset 0 0 8px rgba(255,255,255,.4);
}
.w7-sm-user b{font-size:11px;font-weight:400}
.w7-sm-cols{display:grid;grid-template-columns:1.25fr .8fr;gap:6px;padding:9px}
.w7-sm-left p{font-size:7.5px;color:#8FB7C6;margin-bottom:5px;letter-spacing:.05em}
.w7-sm-left a{
  display:flex;justify-content:space-between;align-items:baseline;gap:6px;
  font-size:9.5px;padding:4.5px 6px;border-radius:2px;color:#EAF7FD;
}
.w7-sm-left a em{font-size:7px;color:#8FB7C6;font-style:normal}
.w7-sm-left a:hover{background:rgba(160,220,245,.16);box-shadow:inset 0 0 0 1px rgba(170,225,245,.2)}
.w7-sm-right{display:flex;flex-direction:column;gap:1px;border-left:1px solid rgba(170,225,245,.14);padding-left:6px}
.w7-sm-right a{font-size:8.5px;padding:4px 5px;color:#CFE9F4;border-radius:2px}
.w7-sm-right a:hover{background:rgba(160,220,245,.14)}
.w7-sm-foot{
  padding:7px 9px;
  border-top:1px solid rgba(170,225,245,.16);
  background:rgba(0,0,0,.14);
  display:flex;justify-content:flex-end;
}
.w7-sm-foot button{
  display:flex;align-items:center;gap:5px;
  font-size:9px;color:#EAF7FD;padding:5px 9px;border-radius:2px;
  background:linear-gradient(180deg,rgba(120,190,220,.25),rgba(60,130,160,.16));
  border:1px solid rgba(170,225,245,.25);
}
.w7-sm-foot button:hover{background:rgba(160,220,245,.22)}
.w7-sm-foot svg{width:11px;height:11px}

/* ---------- 对话框 / 气泡 ---------- */
.w7-dialog{
  position:absolute;z-index:30;left:50%;top:46%;
  width:min(304px,86%);
  transform:translate(-50%,-50%) scale(.97);
  background:linear-gradient(180deg,#F4FBFE,#E4F1F7);
  border:1px solid rgba(255,255,255,.7);
  border-radius:6px;
  box-shadow:0 30px 60px rgba(0,0,0,.5),0 0 0 1px rgba(20,60,80,.3);
  color:#16303C;font-family:"Segoe UI",var(--f-sans);
  opacity:0;pointer-events:none;
  transition:opacity .25s,transform .3s var(--ease);
}
.w7-dialog.is-open{opacity:1;pointer-events:auto;transform:translate(-50%,-50%) scale(1)}
.w7-dialog .w7-titlebar{height:26px;background:linear-gradient(180deg,#FDFEFF,#DCEEF7)}
.w7-dialog .w7-wintitle{font-size:10px}
.w7-dclose{
  width:20px;height:16px;display:grid;place-items:center;border-radius:2px;
  background:linear-gradient(180deg,#F2A08B,#D9614A);
  color:#fff;
}
.w7-dclose svg{width:9px;height:9px;stroke-width:2}
.w7-dialog-body{padding:18px 18px 14px}
.w7-dialog-q{font-size:10px;line-height:1.9;color:#24414D;margin-bottom:16px}
.w7-dialog-btns{display:flex;justify-content:flex-end}
.w7-dialog-btns button{
  min-width:66px;height:23px;border-radius:3px;
  background:linear-gradient(180deg,#FBFEFF,#D7EAF4);
  border:1px solid #9FBFCE;
  font-size:9px;color:#18323E;
}
.w7-dialog-btns button:hover{border-color:#5C9FBE;background:linear-gradient(180deg,#EAF8FF,#C7E6F4)}

.w7-gadget{
  position:absolute;left:0;bottom:54px;z-index:3;
  width:70px;
  display:flex;flex-direction:column;align-items:center;gap:5px;
  font-family:"Segoe UI",var(--f-sans);
}
.w7-face{
  width:68px;height:68px;border-radius:50%;
  position:relative;
  background:
    repeating-conic-gradient(from -1deg,rgba(30,70,85,.45) 0 .8deg,transparent .8deg 30deg),
    radial-gradient(circle at 38% 30%,rgba(255,255,255,.95),rgba(214,240,250,.72) 60%,rgba(160,210,230,.55));
  border:1px solid rgba(255,255,255,.85);
  box-shadow:
    0 8px 18px rgba(0,0,0,.3),
    inset 0 0 0 4px rgba(255,255,255,.35),
    inset 0 0 16px rgba(80,150,180,.2);
}
.w7-face::after{
  content:"";position:absolute;inset:5px;border-radius:50%;
  border:1px solid rgba(255,255,255,.55);
}
.w7-hand{
  position:absolute;left:50%;bottom:50%;
  transform-origin:50% 100%;
  background:#2A4A58;border-radius:1px;z-index:2;
}
.w7-hand--h{width:2.4px;height:16px;margin-left:-1.2px}
.w7-hand--m{width:1.8px;height:23px;margin-left:-.9px;background:#3B6272}
.w7-hand--s{width:1px;height:26px;margin-left:-.5px;background:#C4703B}
.w7-pin{
  position:absolute;left:50%;top:50%;width:5px;height:5px;margin:-2.5px 0 0 -2.5px;
  border-radius:50%;background:#2A4A58;z-index:3;
}
.w7-gadget > span{
  font-size:7.5px;letter-spacing:.06em;color:rgba(234,245,251,.75);
  text-shadow:0 1px 3px rgba(0,0,0,.5);
  white-space:nowrap;
}
.w7-gadget em{color:#EAF5FB;font-style:normal;font-variant-numeric:tabular-nums}

.w7-toast{
  position:absolute;z-index:29;right:12px;bottom:52px;
  max-width:200px;
  padding:9px 11px;
  background:#FDFEFF;
  border:1px solid #9FBFCE;
  border-radius:3px;
  box-shadow:0 10px 24px rgba(0,0,0,.3);
  color:#24414D;font-family:"Segoe UI",var(--f-sans);font-size:8.5px;line-height:1.7;
  opacity:0;transform:translateY(6px);
  transition:opacity .3s,transform .3s var(--ease);
  pointer-events:none;
}
.w7-toast.is-on{opacity:1;transform:none}

@media (max-width:1100px){
  .w7-layout{grid-template-columns:1fr;gap:46px}
  .w7-prose{max-width:36em}
  .w7-desktop{position:relative;top:0;max-width:620px;aspect-ratio:1 / .92;min-height:0}
  .w7-fig{display:none}
}
@media (max-width:620px){
  .w7-desktop{aspect-ratio:auto;height:470px}
  .w7-icons{flex-direction:row;left:6px;top:6px;gap:0}
  .w7-dicon{width:56px;font-size:8px}
  .w7-dicon svg{width:24px;height:24px}
  .w7-window{left:6px;right:6px;top:78px}
  .w7-libs,.w7-tip,.w7-file{display:none}
  .w7-main .w7-group:nth-of-type(2),
  .w7-main .w7-group:nth-of-type(3){display:none}
  .w7-side{display:none}
  .w7-body{grid-template-columns:1fr;height:calc(100% - 108px)}
  .w7-task{display:none}
  .w7-taskbar{gap:4px}
}
