/* ============================================================
   模拟 Windows 更新界面 —— 栏目首页样式
   原站地址：https://www.bitsoo.cn/fakeupdate/
   说明：原站 style.css 未取得，本文件按原站缩略图观感复刻。
        卡片缩略图尺寸 235x132（原站素材原始尺寸）。
   ============================================================ */

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: #1c1c1c;
  color: #eaeaea;
  font-family: "Segoe UI", "Microsoft YaHei", Tahoma, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.centerDiv {
  max-width: 1800px;
  margin: 0 auto;
  padding: 44px 32px 72px;
  display: flex;
  align-items: flex-start;
  gap: 56px;
}

/* ---------- 左侧：标题与使用说明（对应原站 .div1 / #leftside） ---------- */
.div1 {
  flex: 0 0 auto;
  width: 480px;
}

#leftside {
  line-height: 1.9em;
  font-size: 22px;
  color: #cfcfcf;
}

#leftside h1 {
  margin: 0 0 10px;
  font-size: 40px;
  font-weight: 600;
  color: #fff;
  letter-spacing: .5px;
  line-height: 1.5;
}

#leftside span {
  display: inline-block;
  color: #b9b9b9;
}

/* ---------- 右侧：系统卡片网格（对应原站 .div2 / #rightside） ---------- */
.div2 {
  flex: 1 1 auto;
  min-width: 0;
}

#rightside {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

#rightside a {
  display: block;
  line-height: 0;
  border-radius: 9px;
  overflow: hidden;
  border: 1px solid #333;
  background: #101010;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

#rightside a img {
  display: block;
  width: 353px;      /* 原站 235x132 放大 50%（付工 2026-09-29 需求） */
  height: 198px;
}

#rightside a:hover {
  transform: translateY(-3px);
  border-color: #5a7edc;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .55);
}

#rightside br {
  display: none;   /* 原站用 <br> 断行，这里交给 flex 自动换行 */
}

.select {
  margin-top: 30px;
  text-align: center;
  font-size: 21px;
  letter-spacing: 2px;
  color: #8a8a8a;
}

/* ---------- 内嵌全屏播放器 ---------- */
#player {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #000;
  display: none;
}
#player.active { display: block; }

#player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}

#playerbar {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  height: 56px;
  padding: 0 18px;
  background: linear-gradient(180deg, rgba(0,0,0,.6), rgba(0,0,0,0));
  opacity: 0;
  transition: opacity .25s ease;
}
#player:hover #playerbar,
#player:not(.fs) #playerbar { opacity: 1; }   /* 全屏时悬停顶区出现，非全屏常显 */

#playerbar button {
  appearance: none;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(0,0,0,.55);
  color: #ddd;
  font: 15px/1 "Segoe UI", "Microsoft YaHei", sans-serif;
  padding: 10px 16px;
  border-radius: 6px;
  cursor: pointer;
}
#playerbar button:hover {
  background: rgba(255,255,255,.14);
  color: #fff;
  border-color: rgba(255,255,255,.5);
}

/* ---------- 窄屏自适应 ---------- */
@media (max-width: 1500px) {
  .centerDiv {
    flex-direction: column;
    gap: 34px;
    padding: 30px 22px 56px;
  }
  .div1 { width: auto; }
  #rightside a img { width: 100%; height: auto; }
  #rightside a { width: calc(50% - 12px); }
}
