* { box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  margin: 0;
  background: #f4f7f6;
  color: #1a1a1a;
  line-height: 1.5;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background: #fff;
  border-bottom: 1px solid #e2e8e6;
}
.topbar h1 {
  font-size: 18px;
  margin: 0;
  font-weight: 600;
}
.dim { color: #94a3a0; font-weight: 400; margin-left: 6px; }
.btn-ghost {
  color: #1a1a1a;
  text-decoration: none;
  font-size: 13px;
  padding: 6px 12px;
  border: 1px solid #e2e8e6;
  border-radius: 6px;
  background: #fff;
}
.btn-ghost:hover { background: #f4f7f6; }
.layout {
  display: grid;
  /* 3 列：下载端 (1.2fr, 多控件) | 本地缓存 (0.9fr, 主要是文件树) | 上传端 (1.2fr) */
  grid-template-columns: 1.2fr 0.9fr 1.2fr;
  gap: 14px;
  padding: 18px 24px;
  max-width: 1500px;
  margin: 0 auto;
}
.panel {
  background: #fff;
  border-radius: 10px;
  padding: 18px;
  border: 1px solid #e2e8e6;
}
.panel h2 {
  font-size: 15px;
  margin: 0 0 14px;
  font-weight: 600;
}
.field { margin-bottom: 12px; }
.field label {
  display: block;
  font-size: 12px;
  color: #4b5754;
  margin-bottom: 4px;
  font-weight: 500;
}
.field input, .field textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #d4dcda;
  border-radius: 6px;
  font-size: 13px;
  font-family: inherit;
  background: #fff;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: #ff6b00;
  box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.1);
}
.field textarea { resize: vertical; min-height: 80px; }
.actions {
  display: flex;
  gap: 8px;
  margin: 14px 0;
  flex-wrap: wrap;
}
.btn {
  background: #fff;
  border: 1px solid #d4dcda;
  border-radius: 6px;
  padding: 8px 14px;
  cursor: pointer;
  font-size: 13px;
  font-family: inherit;
  color: #1a1a1a;
  transition: all 0.15s ease;
}
.btn:hover { background: #f4f7f6; }
.btn.primary {
  background: #ff6b00;
  border-color: #ff6b00;
  color: #fff;
}
.btn.primary:hover { background: #e55a00; }
.progress-block { margin-top: 14px; }
.progress-label {
  font-size: 12px;
  color: #4b5754;
  margin-bottom: 6px;
}
.progress-bar {
  width: 100%;
  height: 10px;
  background: #f4f7f6;
  border-radius: 5px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #ff6b00, #ff8533);
  transition: width 0.3s ease;
}
.progress-meta {
  margin-top: 4px;
  font-size: 11px;
  color: #94a3a0;
  font-family: ui-monospace, "SF Mono", Consolas, monospace;
}
.settings { max-width: 720px; margin: 24px auto; padding: 0 24px; }
.status {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 8px 24px;
  background: #fff;
  border-top: 1px solid #e2e8e6;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
}
.status a { color: #94a3a0; text-decoration: none; }
.status a:hover { color: #ff6b00; }
@media (max-width: 800px) {
  .layout { grid-template-columns: 1fr; }
}
