:root {
  --accent: #e08324;
  --accent-d: #b9651a;
  --ok: #2e9d57;
  --warn: #c98a12;
  --err: #d0443a;
  --ink: #1f1f1f;
  --muted: #777;
  --line: #e7e1da;
  --card: #fff;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: linear-gradient(145deg, #0b0b0b 0%, #3a2414 48%, #1a120c 100%);
  background-attachment: fixed;
  color: var(--ink);
}
a { color: var(--accent-d); }
.hidden { display: none !important; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 14px 16px 60px; }
.nav { display: flex; justify-content: space-between; align-items: center; }
.nav a { color: rgba(255, 255, 255, .88); text-decoration: none; font-size: 14px; }
.nav a:hover { color: var(--accent); }
.logo { display: block; width: min(260px, 64vw); margin: 16px auto 8px; }
.hero { text-align: center; color: #fff; margin-bottom: 20px; }
.hero h1 { margin: 0 0 6px; font-size: clamp(1.4rem, 3vw, 1.9rem); }
.hero p { margin: 0; opacity: .75; font-size: 14px; }

.card {
  background: var(--card);
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .3);
  padding: 22px;
  margin-bottom: 18px;
}
.card h2 { margin: 0 0 14px; font-size: 18px; display: flex; align-items: center; gap: 8px; }
.card h2 .sub { font-size: 12px; font-weight: 400; color: var(--muted); }

/* 两个上传区 */
.zones { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 760px) { .zones { grid-template-columns: 1fr; } }
.zone {
  border: 2px dashed #e6b98c;
  border-radius: 14px;
  padding: 14px;
  background: #fffaf5;
  transition: border-color .15s, background .15s;
  display: flex;
  flex-direction: column;
  min-height: 210px;
}
.zone.drag { border-color: var(--accent); background: #fdf0e3; }
.zone-head { display: flex; align-items: center; gap: 12px; cursor: pointer; padding: 6px 4px 10px; }
.zone-head .ic {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center; font-size: 20px; color: #fff; flex: none;
}
.zone.gcs .ic { background: #3b7dd8; }
.zone.fc .ic { background: var(--accent); }
.zone-head h3 { margin: 0; font-size: 16px; }
.zone-head p { margin: 2px 0 0; font-size: 12px; color: var(--muted); }
.zone-head .pick {
  margin-left: auto; border: 1px solid var(--accent); color: var(--accent-d); background: #fff;
  border-radius: 8px; padding: 6px 10px; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.zone-empty { flex: 1; display: grid; place-items: center; color: #b8a592; font-size: 13px; text-align: center; cursor: pointer; padding: 18px 0; }
.flist { display: flex; flex-direction: column; gap: 8px; }

.fitem {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 34px 9px 11px;
  font-size: 13px;
}
.fitem.err { border-color: #f0b6b1; background: #fff6f5; }
.fitem.skip { opacity: .6; }
.fitem .fname { font-weight: 600; word-break: break-all; }
.fitem .fsize { color: var(--muted); font-weight: 400; margin-left: 6px; font-size: 12px; }
.fitem .fmeta { margin-top: 4px; color: #555; line-height: 1.6; font-size: 12px; }
.fitem .fmeta b { color: #333; font-weight: 600; }
.fitem .rm {
  position: absolute; right: 6px; top: 6px; width: 24px; height: 24px; border: 0; background: transparent;
  color: #aaa; cursor: pointer; border-radius: 6px; font-size: 14px;
}
.fitem .rm:hover { background: #f3ece5; color: var(--err); }
.fitem .bar { height: 4px; background: #eee; border-radius: 4px; overflow: hidden; margin-top: 6px; }
.fitem .bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .2s; }
.fitem.done .bar i { background: var(--ok); }
.fitem .fstate { font-size: 12px; margin-top: 4px; }

.chip {
  display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: 600;
  background: #f1ece6; color: #6b5a4a; margin-right: 4px; vertical-align: 1px;
}
.chip.ok { background: #e3f4ea; color: var(--ok); }
.chip.warn { background: #fdf1d9; color: #9a6a06; }
.chip.err { background: #fbe4e2; color: var(--err); }
.chip.blue { background: #e4eefb; color: #2d64b3; }
.mono { font-family: Consolas, "SFMono-Regular", Menlo, monospace; }

.pair-box {
  margin-top: 14px; border-radius: 12px; background: #f6f9fe; border: 1px solid #d8e4f6; padding: 10px 14px; font-size: 13px;
}
.pair-box h4 { margin: 0 0 6px; font-size: 14px; color: #2d64b3; }
.pair-box ul { margin: 0; padding-left: 18px; line-height: 1.8; }

.field { margin-top: 16px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.field label .opt { font-weight: 400; color: var(--muted); font-size: 12px; margin-left: 6px; }
.field input, .field textarea {
  width: 100%; border: 1px solid #d9d2ca; border-radius: 10px; padding: 10px 12px; font-size: 14px; font-family: inherit;
  background: #fff; outline: none;
}
.field input:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(224, 131, 36, .15); }
.field .hint { font-size: 12px; color: var(--muted); margin-top: 4px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 760px) { .row2 { grid-template-columns: 1fr; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 12px; padding: 13px 18px; font-size: 16px; font-weight: 700; cursor: pointer;
  background: var(--accent); color: #fff; transition: background .15s, transform .1s;
}
.btn:hover { background: var(--accent-d); }
.btn:active { transform: scale(.99); }
.btn:disabled { background: #cbbfb3; cursor: not-allowed; }
.btn.block { width: 100%; margin-top: 18px; }
.btn.ghost { background: #fff; color: var(--accent-d); border: 1px solid var(--accent); }
.btn.small { padding: 7px 12px; font-size: 13px; border-radius: 8px; }

.progress { margin-top: 14px; }
.progress .bar { height: 10px; background: #eee; border-radius: 6px; overflow: hidden; }
.progress .bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), #f0a45a); transition: width .25s; }
.progress .txt { display: flex; justify-content: space-between; font-size: 13px; color: #555; margin-top: 6px; }

.msg { margin-top: 14px; border-radius: 10px; padding: 12px 14px; font-size: 14px; line-height: 1.6; }
.msg.err { background: #fdecea; color: #a4281f; border: 1px solid #f5c2bd; }
.msg.warn { background: #fff6e0; color: #7a5600; border: 1px solid #f2dca4; }

/* 上传结果 */
.result-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.result-head .big { font-size: 34px; }
.result-head.ok .big { color: var(--ok); }
.result-head.partial .big { color: var(--warn); }
.result-head.failed .big { color: var(--err); }
.result-head h3 { margin: 0; font-size: 18px; }
.result-head p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.rtable { width: 100%; border-collapse: collapse; font-size: 13px; }
.rtable th, .rtable td { text-align: left; padding: 8px 6px; border-bottom: 1px solid #f0ebe5; vertical-align: top; }
.rtable th { color: var(--muted); font-weight: 600; font-size: 12px; }
.rtable td .dir { color: var(--muted); font-size: 11px; word-break: break-all; }
@media (max-width: 760px) { .rtable .hide-m { display: none; } }

/* 最近上传 */
.recent { display: flex; flex-direction: column; gap: 10px; }
.ritem { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.ritem .top { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline; }
.ritem .code { font-weight: 700; }
.ritem .time { color: var(--muted); font-size: 12px; }
.ritem .fault { margin: 6px 0 0; font-size: 13px; color: #555; white-space: pre-wrap; word-break: break-all; max-height: 3.2em; overflow: hidden; }
.ritem .files { margin-top: 6px; font-size: 12px; color: #555; line-height: 1.8; }
.ritem .files a { margin-left: 6px; }
.empty { color: var(--muted); font-size: 13px; text-align: center; padding: 14px; }
.foot { text-align: center; color: rgba(255, 255, 255, .5); font-size: 12px; margin-top: 26px; }
