:root{
  --bg: #f6f7fb;
  --text: #0b1220;
  --muted: rgba(11,18,32,.6);
  --card: rgba(255,255,255,.58);
  --stroke: rgba(10,20,40,.12);
  --shadow: 0 20px 60px rgba(10,20,40,.14);
  --shadow2: 0 10px 30px rgba(10,20,40,.10);
  --primary: #2f6bff;
  --primary2: #4fd1ff;
  --radius: 22px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body{
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

.bg{ position: fixed; inset: 0; pointer-events: none; }
.noise{
  position:absolute; inset:0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.16'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
  opacity: .35;
}
.blob{
  position:absolute; width: 520px; height: 520px; border-radius: 50%;
  filter: blur(45px);
  opacity: .55;
}
.b1{ background: radial-gradient(circle at 30% 30%, #8aa7ff, transparent 60%); left: -140px; top: -120px; }
.b2{ background: radial-gradient(circle at 40% 40%, #7ef0ff, transparent 60%); right: -180px; top: 40px; }
.b3{ background: radial-gradient(circle at 35% 35%, #ffd6f3, transparent 60%); left: 20%; bottom: -220px; }

.layout{
  width: min(1120px, 92vw);
  margin: 42px auto;
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 18px;
  align-items: start;
}
@media (max-width: 900px){
  .layout{ grid-template-columns: 1fr; }
}

.card{
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow2);
  padding: 18px;
  background: rgba(255,255,255,.35);
}

.glass{
  background: var(--card);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: var(--shadow);
}

.header{ padding: 6px 6px 10px; }
h1{ margin: 0; font-size: 22px; letter-spacing: .2px; }
.sub{ margin: 6px 0 0; color: var(--muted); font-size: 13px; }

.form{ display:grid; gap: 14px; padding: 6px; }
.field{ display:grid; gap: 8px; }
.label{ font-weight: 650; font-size: 14px; }
.label em{ font-style: normal; font-weight: 550; color: rgba(11,18,32,.55); }

.help{ font-size: 12px; color: rgba(11,18,32,.55); }

input[type="text"]{
  width: 100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.55);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
  color: var(--text);
  outline: none;
}
input[type="text"]:focus{
  border-color: rgba(47,107,255,.35);
  box-shadow: 0 0 0 4px rgba(47,107,255,.12);
}

/* 拖拽区 */
.dropzone{
  position: relative;
  border-radius: 18px;
  border: 1.5px dashed rgba(10,20,40,.18);
  background: rgba(255,255,255,.42);
  padding: 22px 16px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 14px;
  min-height: 140px;
  cursor: pointer;
  user-select: none;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.dropzone:hover{
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(10,20,40,.10);
}
.dropzone.drag{
  border-color: rgba(47,107,255,.40);
  box-shadow: 0 0 0 4px rgba(47,107,255,.12), 0 16px 30px rgba(10,20,40,.10);
}

.dzIcon{
  font-size: 44px;
  line-height: 1;
  color: rgba(47,107,255,.55);
}
.dzMain{ font-weight: 700; }
.dzSub{ margin-top: 4px; font-size: 12px; color: rgba(11,18,32,.55); }

.fileInput{
  position:absolute;
  inset:0;
  opacity: 0;
  cursor: pointer;
}

/* 文件列表 */
.fileListWrap{
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.42);
  border-radius: 18px;
  padding: 12px;
}
.fileListHeader{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 2px 2px 10px;
  font-weight: 650;
}
.fileList{
  list-style: none;
  padding: 0;
  margin: 0;
  display:grid;
  gap: 10px;
}
.fileEmpty{
  color: rgba(11,18,32,.55);
  padding: 10px 6px;
}
.fileItem{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  padding: 10px 10px;
  border-radius: 16px;
  border: 1px solid rgba(10,20,40,.10);
  background: rgba(255,255,255,.55);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
}
.fileMeta{ min-width: 0; }
.fileName{
  font-weight: 650;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 520px;
}
.fileSize{ margin-top: 2px; font-size: 12px; color: rgba(11,18,32,.55); }

/* 按钮 */
.btn{
  padding: 12px 14px;
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 720;
  background: linear-gradient(135deg, var(--primary), var(--primary2));
  color: white;
  box-shadow: 0 16px 30px rgba(47,107,255,.22);
}
.btn:disabled{ opacity: .6; cursor:not-allowed; }
.btn.ghost{
  background: rgba(255,255,255,.62);
  color: rgba(11,18,32,.78);
  border: 1px solid var(--stroke);
  box-shadow: none;
}
.btn.sm{
  padding: 8px 10px;
  border-radius: 12px;
  font-weight: 650;
  font-size: 12px;
}

/* 状态 */
.status{
  margin: 6px 6px 0;
  font-size: 13px;
  line-height: 1.4;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid transparent;
  min-height: 20px;
  white-space: pre-wrap;
}
.status.ok{
  background: rgba(40,180,120,.10);
  border-color: rgba(40,180,120,.22);
}
.status.bad{
  background: rgba(255,80,100,.10);
  border-color: rgba(255,80,100,.22);
}

.names{ margin: 10px 6px 0; }
.list{ margin: 10px 0 0; padding-left: 18px; color: rgba(11,18,32,.75); }

.noticeHeader{
  display:flex; align-items: baseline; justify-content: space-between;
  gap: 10px; padding: 4px 4px 10px;
}
.noticeHeader h2{ margin:0; font-size: 16px; }
.noticeBody{
  padding: 12px;
  border-radius: 16px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.42);
  color: rgba(11,18,32,.82);
  line-height: 1.55;
}
.noticeList{ margin: 0; padding-left: 18px; display:grid; gap: 8px; }
.muted{ color: rgba(11,18,32,.55); }
.small{ font-size: 12px; }