* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  user-select: none;
  font-family: "Segoe UI", system-ui, "Microsoft YaHei", sans-serif;
}

body {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: url("./image/wallpaper.jpg") center/cover no-repeat;
}

.boot-screen {
  position: fixed;
  inset: 0;
  background: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 99999;
}

.win-logo {
  width: 70px;
  height: 70px;
  margin-bottom: 30px;
}

.loader {
  width: 50px;
  height: 50px;
  border: 3px solid transparent;
  border-top: 3px solid #0099ff;
  border-radius: 50%;
  animation: spin 1.2s linear infinite;
}

@keyframes spin {
  100% { transform: rotate(360deg); }
}

.boot-txt {
  color: #ccc;
  margin-top: 20px;
  font-size: 14px;
}

.lock-screen {
  position: fixed;
  inset: 0;
  background: inherit;
  display: none;
  z-index: 9999;
  color: #fff;
  text-align: center;
  padding-top: 18vh;
}

.lock-time {
  font-size: 72px;
  font-weight: 300;
}

.lock-date {
  font-size: 18px;
  margin: 8px 0 40px;
  opacity: 0.9;
}

.lock-unlock {
  padding: 12px 36px;
  background: rgba(0,153,255,0.8);
  border: none;
  color: #fff;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
}

.lock-unlock:hover {
  background: #0099ff;
}

.desktop-icon {
  width: 80px;
  text-align: center;
  color: #fff;
  padding: 8px 0;
  border-radius: 4px;
  position: absolute;
  cursor: pointer;
  text-shadow: 0 1px 3px #000;
}

.desktop-icon:hover {
  background: rgba(255,255,255,0.15);
}

.taskbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 48px;
  background: rgba(28,28,28,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  gap: 6px;
}

.start-btn {
  width: 40px;
  height: 36px;
  background: #0099ff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.start-btn:hover {
  background: #007bcc;
}

.taskbar-icon {
  width: 40px;
  height: 36px;
  background: rgba(255,255,255,0.1);
  border: none;
  color: #fff;
  font-size: 16px;
  border-radius: 6px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
}

.taskbar-icon img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.time-box {
  position: absolute;
  right: 15px;
  color: #fff;
  font-size: 12px;
  text-align: right;
  opacity: 0.9;
}

.start-menu {
  position: fixed;
  left: 50%;
  bottom: 56px;
  transform: translateX(-50%) translateY(15px) scale(0.96);
  width: 380px;
  background: rgba(32,32,32,0.95);
  backdrop-filter: blur(12px);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
  z-index: 998;
  visibility: hidden;
  opacity: 0;
  transition: all 0.3s ease;
  color: #e5e5e5;
}

.start-menu.show {
  visibility: visible;
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
}

.start-search {
  width: 100%;
  background: rgba(255,255,255,0.1);
  border: none;
  border-radius: 8px;
  padding: 8px 12px;
  color: #fff;
  outline: none;
  margin-bottom: 12px;
}

.start-pinned {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 16px;
}

.start-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 6px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 12px;
}

.start-item:hover {
  background: rgba(255,255,255,0.12);
}

.start-item-icon img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  margin-bottom: 4px;
}

.start-recommended-title {
  font-size: 12px;
  opacity: 0.7;
  margin-bottom: 8px;
}

.start-recommended {
  margin-bottom: 12px;
}

.start-recommended-item {
  display: flex;
  align-items: center;
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
}

.start-recommended-item:hover {
  background: rgba(255,255,255,0.12);
}

.start-recommended-icon {
  font-size: 16px;
  margin-right: 10px;
  width: 24px;
  text-align: center;
}

.start-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.start-user {
  display: flex;
  align-items: center;
  font-size: 13px;
}

.start-user-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #0099ff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
  font-size: 14px;
}

.start-power {
  font-size: 16px;
  padding: 6px;
  border-radius: 6px;
  cursor: pointer;
}

.start-power:hover {
  background: rgba(255,255,255,0.12);
}

.win {
  position: absolute;
  width: 720px;
  height: 460px;
  background: #fff;
  border-radius: 10px 10px 0 0;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
  overflow: hidden;
  display: none;
  z-index: 10;
}

.win-title {
  height: 36px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: move;
}

.win-controls {
  display: flex;
  height: 100%;
}

.win-btn {
  width: 42px;
  height: 100%;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 15px;
  transition: 0.12s;
  color: #fff;
}

.win-btn:hover {
  background: rgba(255,255,255,0.15);
}

.win-btn.close:hover {
  background: #e83b3b;
}

.win-content {
  width: 100%;
  height: calc(100% - 36px);
}

.term-container {
  width: 100%;
  height: 100%;
  background: #000;
  padding: 15px;
  overflow: auto;
  font-family: Consolas, "Courier New", monospace;
  font-size: 14px;
}

.term-text {
  white-space: pre-wrap;
  color: #cccccc;
  margin-bottom: 8px;
}

.ps-text {
  color: #eeedc2;
}

.term-input-line {
  display: flex;
  align-items: center;
  color: #fff;
}

.term-prefix {
  margin-right: 6px;
  white-space: nowrap;
}

.term-input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: none;
  color: #fff;
  font: inherit;
  caret-color: #fff;
}

.context-menu {
  position: fixed;
  width: 220px;
  background: rgba(25,25,25,0.95);
  border-radius: 8px;
  padding: 6px 0;
  box-shadow: 0 4px 20px #0003;
  z-index: 9999;
  display: none;
}

.context-item {
  color: #eee;
  padding: 9px 16px;
  font-size: 14px;
  cursor: pointer;
}

.context-item:hover {
  background: #0078d4;
}

.context-line {
  height: 1px;
  background: rgba(255,255,255,0.15);
  margin: 5px 10px;
}

.browser-tabs {
  display: flex;
  background: #f1f1f1;
  padding: 4px;
  gap: 4px;
  align-items: center;
}

.tab-item {
  padding: 4px 12px;
  background: #ddd;
  border-radius: 6px 6px 0 0;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

.tab-item.active {
  background: #fff;
}

.tab-close {
  font-size: 16px;
  color: #666;
}

.tab-close:hover {
  color: red;
}

.new-tab-btn {
  padding: 4px 10px;
  background: #e9e9e9;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}

.browser-address {
  padding: 8px;
  display: flex;
  gap: 8px;
}

.browser-address input {
  flex: 1;
  padding: 6px 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  outline: none;
}

.browser-content {
  width: 100%;
  height: calc(100% - 90px);
}

.iframe-tab {
  width: 100%;
  height: 100%;
  border: none;
  display: none;
}

.iframe-tab.active {
  display: block;
}

textarea {
  width: 100%;
  height: 100%;
  border: none;
  outline: none;
  resize: none;
  font-size: 14px;
  padding: 8px;
}

/* ========== 资源管理器 Explorer ========== */
.explorer-container{
  display:flex;
  width:100%;
  height:100%;
  background:#fff;
}
.explorer-left{
  width:180px;
  background:#f8f9fa;
  border-right:1px solid #e5e5e5;
  padding:8px 0;
}
.exp-left-item{
  padding:8px 12px;
  font-size:14px;
  cursor:pointer;
}
.exp-left-item:hover{
  background:#e9e9e9;
}
.exp-left-item.active{
  background:#d0e8fc;
}
.exp-left-sep{
  height:1px;
  background:#ddd;
  margin:8px 10px;
}
.explorer-right{
  flex:1;
  padding:20px;
  overflow:auto;
}
.drive-list{
  display:grid;
  grid-template-columns:repeat(auto-fill,180px);
  gap:16px;
}
.drive-item{
  display:flex;
  flex-direction:column;
  align-items:center;
  padding:16px 8px;
  border-radius:8px;
  cursor:pointer;
  border:1px solid transparent;
}
.drive-item:hover{
  background:#f5f5f5;
  border:1px solid #eee;
}
.drive-icon{
  width:48px;
  height:48px;
  object-fit:contain;
  margin-bottom:8px;
}
.drive-name{
  font-size:14px;
  color:#222;
  text-align:center;
}
.drive-desc{
  font-size:12px;
  color:#777;
  margin-top:4px;
  text-align:center;
}
.drive-bar{
  width:120px;
  height:6px;
  background:#eee;
  border-radius:3px;
  margin:6px 0;
  overflow:hidden;
}
.drive-progress{
  height:100%;
  background:#0078d4;
  border-radius:3px;
  transition:width 0.3s;
}