/* 数据包管理平台 - 极简样式 */
* { box-sizing: border-box; }
body {
  margin: 0; font-family: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #f4f6f8; color: #24292f; font-size: 14px;
}
a { color: #0969da; text-decoration: none; }
h1 { font-size: 20px; margin: 0; }

.topnav { background: #1f2328; color: #fff; }
.nav-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 16px; height: 52px;
  display: flex; align-items: center; gap: 24px;
}
.brand { font-weight: 600; }
.nav-links { display: flex; gap: 16px; flex: 1; }
.nav-links a { color: #d0d7de; padding: 4px 2px; }
.nav-links a:hover { color: #fff; border-bottom: 2px solid #58a6ff; }
.nav-right { display: flex; align-items: center; gap: 10px; }
.who { color: #d0d7de; }
/* 深色导航栏内的幽灵按钮用浅色（否则深字深底不可见） */
.topnav .btn-ghost { color: #d0d7de; border-color: #d0d7de66; }
.topnav .btn-ghost:hover { background: #30363d; }
.inline { display: inline; }

.container { max-width: 1100px; margin: 24px auto; padding: 0 16px; }
.page-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }

.flash { padding: 10px 14px; border-radius: 6px; margin-bottom: 12px; }
.flash-error { background: #ffebe9; color: #cf222e; border: 1px solid #ff818266; }
.flash-message { background: #dafbe1; color: #1a7f37; border: 1px solid #4ac26b66; }

/* 登录 */
.login-card {
  max-width: 360px; margin: 10vh auto; background: #fff; padding: 32px;
  border-radius: 10px; box-shadow: 0 4px 16px rgba(0,0,0,.08);
}
.login-card h1 { text-align: center; margin-bottom: 24px; }
.login-card label { display: block; margin-bottom: 14px; font-weight: 500; }
.login-card input { width: 100%; }
.login-tip { color: #6e7781; font-size: 12px; text-align: center; margin-top: 16px; }

/* 表单 */
label { display: block; margin-bottom: 12px; }
input[type=text], input[type=password], input[type=number], input[type=date], select {
  width: 100%; padding: 8px 10px; margin-top: 4px; border: 1px solid #d0d7de;
  border-radius: 6px; background: #fff; font-size: 14px;
}
input:focus, select:focus { outline: 2px solid #0969da33; border-color: #0969da; }
.card { background: #fff; border-radius: 10px; padding: 20px; box-shadow: 0 1px 4px rgba(0,0,0,.06); margin-bottom: 16px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.biz-row { display: flex; gap: 8px; align-items: center; }
.biz-row input#biz-date { flex: 1; cursor: pointer; background: #fff; }
.biz-row select#biz-hour { width: 70px; margin-top: 4px; }
.muted { color: #6e7781; }
.tip { font-size: 12px; }
.target-card { background: #fff8c5; border: 1px solid #d4a72c66; padding: 10px 14px; border-radius: 8px; margin-bottom: 16px; }

/* 按钮 */
.btn {
  display: inline-block; padding: 7px 14px; border-radius: 6px; border: 1px solid #d0d7de;
  background: #f6f8fa; color: #24292f; cursor: pointer; font-size: 14px;
}
.btn:hover { background: #eef1f4; }
.btn-primary { background: #1f883d; border-color: #1f883d; color: #fff; }
.btn-primary:hover { background: #1a7f37; }
.btn-danger { color: #cf222e; border-color: #cf222e66; }
.btn-danger:hover { background: #ffebe9; }
.btn-ghost { background: transparent; }
.btn-sm { padding: 3px 8px; font-size: 12px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.actions { display: flex; gap: 10px; margin-top: 8px; }

/* 筛选与表格 */
.filter-bar { display: flex; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.filter-bar select, .filter-bar input { width: auto; min-width: 160px; margin-top: 0; }
.summary { color: #57606a; margin: 8px 0 12px; }
.table-wrap { background: #fff; border-radius: 10px; box-shadow: 0 1px 4px rgba(0,0,0,.06); overflow-x: auto; }
table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; padding: 9px 12px; border-bottom: 1px solid #d8dee4; white-space: nowrap; }
th { background: #f6f8fa; font-weight: 600; color: #57606a; }
td.fname { max-width: 280px; overflow: hidden; text-overflow: ellipsis; }
td.ops { display: flex; gap: 6px; }
.empty { background: #fff; border-radius: 10px; padding: 40px; text-align: center; color: #6e7781; }
.btn-warn { background: #fff8c5; border-color: #d4a72c66; }
.copy-link-btn.copied { background: #dafbe1; border-color: #4ac26b66; color: #1a7f37; }

/* 批次分组折叠 */
.batch-row td { background: #f0f3f6; cursor: pointer; }
.batch-row .toggle { display: inline-block; width: 18px; color: #57606a; font-size: 12px; }
.batch-row .batch-meta { margin-left: 10px; font-size: 13px; }
.batch-row .copy-link-btn { float: right; }
.file-row td:first-child { color: #57606a; }

/* 进度 */
.progress-wrap { margin: 12px 0; }
.progress { height: 10px; background: #d8dee4; border-radius: 5px; overflow: hidden; }
.progress-bar { height: 100%; width: 0; background: #1f883d; transition: width .2s; }
.progress-text { margin-top: 6px; color: #57606a; font-size: 13px; }
.result { margin-top: 14px; padding: 12px 14px; border-radius: 8px; background: #dafbe1; color: #1a7f37; word-break: break-all; }
.result.err { background: #ffebe9; color: #cf222e; }
