/* =========================================
   admin.css
   后台通用 + 发布中心 / 软件更新页专用
   说明：
   1. 只保留当前实际用到的选择器
   2. 去掉重复 / 无效 / 互相打架的规则
   3. 发布中心(.release-admin) 与 软件更新页(.release-updates) 分开命中
========================================= */

/* =========================
   通用后台基础
========================= */

.main-content{
  padding:30px 40px;
  max-width:1400px;
  margin:0 auto;
}

.section{
  margin-bottom:30px;
}

.section-title{
  font-size:22px;
  font-weight:700;
  margin-bottom:12px;
}

.section-sub{
  font-size:14px;
  opacity:.7;
}

.card{
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.06);
  border-radius:16px;
  padding:22px;
}

.card-row{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:16px;
}

.card-title{
  font-size:13px;
  opacity:.6;
}

.card-value{
  font-size:28px;
  font-weight:700;
  margin-top:6px;
}

.form-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:16px;
}

.form-card{
  background:rgba(255,255,255,.03);
  border-radius:14px;
  padding:18px;
  border:1px solid rgba(255,255,255,.05);
}

.upload-box{
  border:1px dashed rgba(255,255,255,.15);
  border-radius:14px;
  padding:40px;
  text-align:center;
  opacity:.8;
}

.upload-box:hover{
  opacity:1;
  border-color:#2d8cf0;
}

/* =========================
   发布中心 / 软件更新页总命名空间
========================= */

body.release-admin-page,
body.release-updates-page{
  color:#eef4ff;
}

.release-admin,
.release-updates{
  --bd: rgba(255,255,255,.12);
  --bg: rgba(8,18,40,.82);
  --bg2: rgba(255,255,255,.04);
  --txt2: rgba(230,238,255,.72);
  --shadow: 0 14px 34px rgba(0,0,0,.22);
  color:#eef4ff;
}

.release-admin{
  --primary: #58a6ff;
  --ok: #2ed3a4;
  --warn: #f5a623;
  --danger: #ff6b6b;
}

.release-admin .container,
.release-updates .container{
  padding-top:16px;
}

.release-admin .wrap,
.release-updates .wrap{
  display:flex;
  flex-direction:column;
  gap:16px;
  padding:0 0 30px;
}

/* =========================
   共用卡片 / 文本 / hero
========================= */

.release-admin .cardx,
.release-admin .mini,
.release-admin .line,
.release-admin .form-card,
.release-admin .upload-card,
.release-admin .row,
.release-admin .list-card,
.release-admin .box,
.release-updates .cardx,
.release-updates .mini,
.release-updates .row,
.release-updates .box{
  border:1px solid var(--bd);
  background:var(--bg);
  border-radius:20px;
  box-shadow:var(--shadow);
  color:#eef4ff;
}

.release-admin .hero,
.release-updates .hero{
  padding:18px;
  background:
    radial-gradient(circle at top right, rgba(59,130,246,.22), transparent 34%),
    radial-gradient(circle at left bottom, rgba(99,102,241,.16), transparent 28%),
    linear-gradient(180deg, rgba(22,40,78,.92), rgba(8,18,40,.92));
}

.release-admin .hero h1{
  margin:10px 0 8px;
  font-size:28px;
  line-height:1.2;
  color:#fff;
}

.release-updates h1{
  margin:10px 0 8px;
  font-size:30px;
  line-height:1.2;
  color:#fff;
}

.release-admin .sub,
.release-updates .sub{
  color:var(--txt2);
  line-height:1.75;
}

.release-admin .badge2,
.release-admin .chip,
.release-admin .state,
.release-updates .badge2,
.release-updates .chip,
.release-updates .state{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:6px 11px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.16);
  font-size:12px;
  background:rgba(255,255,255,.05);
  color:#eef4ff;
}

.release-admin .badge2,
.release-updates .badge2{
  background:rgba(59,130,246,.18);
  border-color:rgba(59,130,246,.42);
  font-weight:900;
}

.release-admin .state.ok,
.release-updates .state.ok{
  background:rgba(46,211,164,.16);
  border-color:rgba(46,211,164,.35);
}

.release-admin .state.warn{
  background:rgba(245,166,35,.12);
  border-color:rgba(245,166,35,.35);
}

.release-admin .state.danger{
  background:rgba(255,107,107,.12);
  border-color:rgba(255,107,107,.35);
}

.release-admin .btn,
.release-admin .btn2,
.release-admin .btn3,
.release-updates .btn,
.release-updates .btn2{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:10px 16px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.14);
  cursor:pointer;
  text-decoration:none;
  color:#fff;
  font-weight:900;
}

.release-admin .btn,
.release-updates .btn{
  background:rgba(59,130,246,.24);
}

.release-admin .btn2,
.release-updates .btn2{
  background:rgba(255,255,255,.08);
}

.release-admin .btn3{
  background:transparent;
  border-style:dashed;
  color:#d6e2ff;
}

.release-admin .stats,
.release-updates .stats{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
}

.release-admin .stats .mini,
.release-updates .stats .mini{
  padding:14px;
  flex:1 1 180px;
  min-width:180px;
}

.release-admin .mini .k,
.release-updates .mini .k{
  font-size:12px;
  color:var(--txt2);
}

.release-admin .mini .v{
  font-size:22px;
  font-weight:900;
  margin-top:8px;
  color:#fff;
}

.release-updates .mini .v{
  font-size:20px;
  font-weight:900;
  margin-top:8px;
  color:#fff;
}

.release-admin .mini .d,
.release-updates .mini .d{
  font-size:12px;
  color:var(--txt2);
  line-height:1.6;
  margin-top:6px;
}

.release-admin .box,
.release-updates .box{
  padding:14px;
  min-width:0;
  box-sizing:border-box;
  overflow:hidden;
}

.release-admin .box{
  background:rgba(255,255,255,.03);
}

.release-updates .box{
  background:var(--bg2);
}

.release-admin .box h4,
.release-updates .box h4{
  margin:0 0 8px;
  font-size:18px;
  color:#fff;
}

.release-admin .box ul,
.release-updates .box ul{
  margin:0;
  padding-left:20px;
  line-height:1.8;
  color:#eef3ff;
}

.release-admin .tiny,
.release-updates .tiny{
  font-size:12px;
  color:var(--txt2);
  line-height:1.8;
  overflow-wrap:anywhere;
  word-break:break-word;
}

.release-admin .hidden,
.release-updates .hidden{
  display:none !important;
}

.release-admin .ok-text{
  color:#aaf0d9;
}

/* 下拉框统一深色 */
.release-admin select,
.release-updates select{
  appearance:auto;
  background-color:rgba(16,31,62,.96);
  color:#fff;
}

.release-admin select option,
.release-updates select option{
  background:#12264b;
  color:#fff;
}

/* =========================
   发布中心
========================= */

.release-admin .top,
.release-admin .head,
.release-admin .actions,
.release-admin .meta,
.release-admin .form-grid,
.release-admin .row-actions,
.release-admin .ops{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
}

.release-admin .top,
.release-admin .head{
  justify-content:space-between;
  align-items:flex-start;
}

.release-admin .two{
  display:grid;
  grid-template-columns:minmax(0,1.15fr) minmax(360px,.85fr);
  gap:16px;
}

.release-admin .form-card,
.release-admin .upload-card,
.release-admin .list-card{
  padding:18px;
}

.release-admin .section-title{
  font-weight:900;
  margin:0;
  color:#fff;
  font-size:22px;
}

.release-admin .section-sub{
  color:var(--txt2);
  font-size:13px;
  line-height:1.75;
  margin-top:6px;
}

.release-admin .tabs{
  display:flex;
  gap:8px;
  margin-top:2px;
}

.release-admin .tab{
  padding:10px 14px;
  border-radius:14px;
  border:1px solid var(--bd);
  background:var(--bg2);
  cursor:pointer;
  font-weight:900;
  color:#eef4ff;
}

.release-admin .tab.active{
  background:rgba(59,130,246,.2);
  border-color:rgba(59,130,246,.45);
}

.release-admin .form-grid{
  align-items:stretch;
  margin-top:14px;
}

.release-admin .field{
  flex:1 1 calc(50% - 10px);
  min-width:220px;
}

.release-admin .field.full{
  flex-basis:100%;
}

.release-admin .field label{
  display:block;
  font-size:12px;
  color:#c8d8ff;
  margin-bottom:7px;
}

.release-admin .field input,
.release-admin .field textarea,
.release-admin .field select,
.release-admin .toolbar input,
.release-admin .toolbar select{
  width:100%;
  box-sizing:border-box;
  border:1px solid var(--bd);
  background:var(--bg2);
  color:#fff;
  border-radius:14px;
  padding:12px 12px;
  outline:none;
}

.release-admin .field textarea{
  min-height:120px;
  resize:vertical;
  line-height:1.7;
}

.release-admin .switches{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:6px;
}

.release-admin .sw{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid var(--bd);
  background:var(--bg2);
  cursor:pointer;
}

.release-admin .dot{
  width:16px;
  height:16px;
  border-radius:999px;
  background:rgba(255,255,255,.18);
  border:1px solid rgba(255,255,255,.16);
}

.release-admin .sw.on .dot{
  background:var(--primary);
  box-shadow:0 0 0 4px rgba(88,166,255,.12);
}

.release-admin .drop{
  margin-top:14px;
  min-height:180px;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  border:1px dashed rgba(255,255,255,.18);
  border-radius:18px;
  background:rgba(255,255,255,.02);
  padding:18px;
  color:#d9e5ff;
  line-height:1.8;
}

.release-admin .line{
  padding:14px;
}

.release-admin .line .t{
  font-weight:900;
  color:#fff;
}

.release-admin .line .d{
  font-size:13px;
  color:var(--txt2);
  line-height:1.75;
  margin-top:4px;
}

/* 搜索栏：输入框 + 状态筛选 */
.release-admin .toolbar{
  display:grid;
  grid-template-columns:minmax(0,1fr) 140px;
  gap:12px;
  align-items:center;
  margin-top:14px;
}

.release-admin .toolbar input,
.release-admin .toolbar select{
  height:42px;
  padding:0 12px;
}

.release-admin .toolbar > input,
.release-admin .toolbar > .meta{
  min-width:0;
}

.release-admin .toolbar > .meta{
  margin-left:0;
}

.release-admin .toolbar > .meta select{
  width:100%;
}

/* 列表 */
.release-admin .rows{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-top:14px;
}

.release-admin .row{
  padding:14px 16px;
}

.release-admin .row .title{
  font-size:20px;
  font-weight:900;
  color:#fff;
}

.release-admin .row .subtxt{
  color:var(--txt2);
  font-size:13px;
  line-height:1.75;
  margin-top:4px;
  overflow-wrap:anywhere;
  word-break:break-word;
}

.release-admin .row-hd{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:14px;
  align-items:start;
}

.release-admin .row-hd > div:first-child{
  min-width:0;
}

.release-admin .ops{
  justify-content:flex-end;
  align-items:flex-start;
  margin-left:auto;
}

.release-admin .ops .btn2,
.release-admin .ops .btn3{
  min-width:84px;
  padding-left:14px;
  padding-right:14px;
  text-align:center;
  white-space:nowrap;
}

.release-admin .ops .btn-current{
  min-width:108px;
}

.release-admin .ops .btn-download{
  min-width:112px;
}

.release-admin .row-body{
  display:none;
  width:100%;
  max-width:100%;
  box-sizing:border-box;
  margin-top:14px;
  border-top:1px solid rgba(255,255,255,.08);
  padding-top:14px;
}

.release-admin .row.open .row-body{
  display:grid !important;
  width:100% !important;
  max-width:100% !important;
  grid-template-columns:minmax(0,1fr) 360px !important;
  gap:16px !important;
  align-items:stretch !important;
}

.release-admin .row.open .row-body > .box{
  min-width:0 !important;
  width:100% !important;
  max-width:100% !important;
  height:100%;
}

.release-admin .row.open .row-body > .box:last-child{
  width:360px !important;
  min-width:360px !important;
  max-width:360px !important;
  justify-self:stretch !important;
}

.release-admin .row.open .row-body a,
.release-admin .row.open .row-body code,
.release-admin .row.open .row-body pre{
  overflow-wrap:anywhere !important;
  word-break:break-all !important;
  white-space:normal !important;
}

/* =========================
   软件更新页
========================= */

.release-updates .head,
.release-updates .meta,
.release-updates .actions,
.release-updates .timeline-head{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
}

.release-updates .head,
.release-updates .timeline-head{
  justify-content:space-between;
  align-items:flex-start;
}

.release-updates .section{
  padding:16px;
}

.release-updates .section-title{
  font-weight:900;
  margin:0;
  color:#fff;
  font-size:24px;
}

.release-updates .section-sub{
  color:var(--txt2);
  font-size:13px;
  line-height:1.7;
  margin-top:6px;
}

.release-updates .rows{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-top:14px;
}

.release-updates .row{
  position:relative;
  padding:14px 16px;
}

.release-updates .row::before{
  content:'';
  position:absolute;
  left:10px;
  top:20px;
  bottom:-10px;
  width:2px;
  background:linear-gradient(180deg, rgba(88,166,255,.55), rgba(255,255,255,.06));
}

.release-updates .row:last-child::before{
  display:none;
}

.release-updates .row::after{
  content:'';
  position:absolute;
  left:4px;
  top:18px;
  width:14px;
  height:14px;
  border-radius:999px;
  background:#7aa2ff;
  box-shadow:0 0 0 4px rgba(122,162,255,.16);
}

.release-updates .row-wrap{
  display:block !important;
  width:100% !important;
  max-width:100% !important;
  box-sizing:border-box !important;
  padding-left:22px;
}

.release-updates .title2{
  font-size:22px;
  font-weight:900;
  color:#fff;
}

.release-updates .summary{
  margin-top:6px;
  color:var(--txt2);
  line-height:1.7;
  overflow-wrap:anywhere !important;
  word-break:break-word !important;
}

.release-updates .row-top{
  display:grid !important;
  grid-template-columns:minmax(0,1fr) 236px !important;
  gap:16px !important;
  align-items:start !important;
  width:100% !important;
}

.release-updates .row-top > div:first-child{
  min-width:0 !important;
  width:100% !important;
  max-width:100% !important;
}

.release-updates .row-top > .meta{
  min-width:236px !important;
  width:236px !important;
  max-width:236px !important;
  display:grid !important;
  grid-template-columns:1fr 1fr !important;
  gap:10px !important;
  align-self:start !important;
  justify-self:end !important;
  align-items:start !important;
  margin:0 !important;
}

.release-updates .row-top > .meta .btn2{
  width:100% !important;
  min-width:0 !important;
  max-width:none !important;
  padding-left:14px !important;
  padding-right:14px !important;
  white-space:nowrap !important;
  text-align:center !important;
  justify-content:center !important;
}

.release-updates .row-body{
  display:none;
  width:100% !important;
  max-width:100% !important;
  box-sizing:border-box !important;
  margin-top:14px;
  border-top:1px solid rgba(255,255,255,.08);
  padding-top:14px;
}

.release-updates .row.open .row-body{
  display:grid !important;
  grid-template-columns:minmax(0,1fr) 360px !important;
  gap:16px !important;
  align-items:stretch !important;
  width:100% !important;
  max-width:100% !important;
}

.release-updates .row.open .row-body > .box{
  min-width:0 !important;
  width:100% !important;
  max-width:100% !important;
  height:100% !important;
}

.release-updates .row.open .row-body > .box:last-child{
  width:360px !important;
  min-width:360px !important;
  max-width:360px !important;
  justify-self:stretch !important;
}

.release-updates .row.open .row-body ul,
.release-updates .row.open .row-body li{
  overflow-wrap:anywhere !important;
  word-break:break-word !important;
}

.release-updates .row.open .row-body a,
.release-updates .row.open .row-body code,
.release-updates .row.open .row-body pre{
  overflow-wrap:anywhere !important;
  word-break:break-all !important;
  white-space:normal !important;
}

/* =========================
   响应式
========================= */

@media (max-width:1280px){
  .release-admin .row.open .row-body{
    grid-template-columns:minmax(0,1fr) 320px !important;
  }

  .release-admin .row.open .row-body > .box:last-child{
    width:320px !important;
    min-width:320px !important;
    max-width:320px !important;
  }

  .release-updates .row-top{
    grid-template-columns:minmax(0,1fr) 220px !important;
  }

  .release-updates .row-top > .meta{
    min-width:220px !important;
    width:220px !important;
    max-width:220px !important;
  }

  .release-updates .row.open .row-body{
    grid-template-columns:minmax(0,1fr) 320px !important;
  }

  .release-updates .row.open .row-body > .box:last-child{
    width:320px !important;
    min-width:320px !important;
    max-width:320px !important;
  }
}

@media (max-width:1100px){
  .release-admin .two{
    grid-template-columns:1fr;
  }
}

@media (max-width:860px){
  .release-admin .toolbar{
    grid-template-columns:1fr;
  }

  .release-admin .row-hd,
  .release-updates .row-top{
    grid-template-columns:1fr !important;
  }

  .release-admin .ops{
    justify-content:flex-start;
    margin-left:0;
  }

  .release-admin .row.open .row-body,
  .release-updates .row.open .row-body{
    grid-template-columns:1fr !important;
  }

  .release-admin .row.open .row-body > .box:last-child,
  .release-updates .row.open .row-body > .box:last-child{
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
  }

  .release-updates .row-top > .meta{
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
    grid-template-columns:1fr 1fr !important;
    justify-self:start !important;
  }
}

@media (max-width:720px){
  .release-admin .hero h1{
    font-size:22px;
  }

  .release-admin .field{
    min-width:100%;
  }

  .release-updates h1{
    font-size:24px;
  }
}
/*禁用下载按钮样式*/
.release-updates .btn2.is-disabled{
  opacity:.42;
  cursor:not-allowed;
  pointer-events:none;
  filter:grayscale(.25);
  border-color:rgba(255,255,255,.10);
  color:rgba(255,255,255,.72);
}

/*上传进度*/
.upload-progress{
  width:100%;
  height:12px;
  border-radius:999px;
  overflow:hidden;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.10);
  margin-top:6px;
}
.upload-progress__bar{
  height:100%;
  width:0%;
  border-radius:999px;
  background:linear-gradient(90deg,#2f81f7,#58a6ff);
  transition:width .2s ease;
}
.upload-progress__meta{
  margin-top:8px;
  display:flex;
  justify-content:space-between;
  gap:12px;
  font-size:12px;
  color:rgba(255,255,255,.72);
}
.is-uploading{
  pointer-events:none;
  opacity:.75;
}