/* RuanZhuGen 红白商务风 */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  background: #f5f5f7; color: #333;
  min-height: 100vh;
}
.topbar {
  background: #fff; border-bottom: 2px solid #DC2626;
  padding: 14px 32px; display: flex; align-items: center; justify-content: space-between;
}
.topbar .logo { font-size: 20px; font-weight: 700; color: #DC2626; }
.topbar .logo span { color: #333; font-weight: 400; }
.topbar .user { font-size: 13px; color: #888; }
.container { max-width: 860px; margin: 36px auto; padding: 0 20px; }
.card {
  background: #fff; border-radius: 10px; padding: 28px 32px;
  box-shadow: 0 2px 10px rgba(0,0,0,.06); margin-bottom: 20px;
}
.card h2 { font-size: 18px; margin-bottom: 18px; color: #222; }
h1.title { font-size: 26px; text-align: center; margin-bottom: 8px; color: #222; }
.subtitle { text-align: center; color: #999; font-size: 13px; margin-bottom: 28px; }
label { display: block; font-size: 13px; color: #666; margin: 14px 0 6px; }
input[type=text], input[type=password], textarea, select {
  width: 100%; padding: 10px 12px; border: 1px solid #ddd; border-radius: 6px;
  font-size: 14px; outline: none; transition: border .2s;
}
input:focus, textarea:focus { border-color: #DC2626; }
textarea { min-height: 90px; resize: vertical; }
.btn {
  display: inline-block; padding: 10px 22px; border: none; border-radius: 6px;
  font-size: 14px; cursor: pointer; transition: all .2s; text-decoration: none;
}
.btn-primary { background: #DC2626; color: #fff; }
.btn-primary:hover { background: #b91c1c; }
.btn-primary:disabled { background: #e5a0a0; cursor: not-allowed; }
.btn-ghost { background: #fff; color: #666; border: 1px solid #ddd; }
.btn-ghost:hover { border-color: #DC2626; color: #DC2626; }
.btn-row { display: flex; gap: 12px; margin-top: 20px; align-items: center; }
.btn-row .hint { font-size: 12px; color: #999; margin-left: auto; }
.tabs { display: flex; gap: 0; border-bottom: 2px solid #eee; margin-bottom: 20px; }
.tab {
  padding: 10px 22px; cursor: pointer; font-size: 14px; color: #888;
  border-bottom: 2px solid transparent; margin-bottom: -2px;
}
.tab.active { color: #DC2626; border-bottom-color: #DC2626; font-weight: 600; }
.panel { display: none; }
.panel.active { display: block; }
.msg { padding: 10px 14px; border-radius: 6px; font-size: 13px; margin-top: 14px; display: none; }
.msg.error { display: block; background: #fee2e2; color: #b91c1c; }
.msg.ok { display: block; background: #dcfce7; color: #166534; }
.msg.warn { display: block; background: #fef3c7; color: #92400e; }
.stage-list { margin-top: 10px; }
.stage-item {
  display: flex; align-items: center; gap: 10px; padding: 8px 0;
  border-bottom: 1px dashed #eee; font-size: 13px;
}
.stage-item .dot { width: 10px; height: 10px; border-radius: 50%; background: #ddd; flex-shrink: 0; }
.stage-item.done .dot { background: #22c55e; }
.stage-item.running .dot { background: #DC2626; animation: pulse 1s infinite; }
.stage-item.failed .dot { background: #f59e0b; }
@keyframes pulse { 50% { opacity: .3; } }
.stage-item .pct { margin-left: auto; color: #999; font-size: 12px; }
.shots-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin-top: 14px; }
.shots-grid img { width: 100%; border: 1px solid #eee; border-radius: 6px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.field-grid .full { grid-column: 1 / -1; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 12px; font-size: 12px; margin-left: 8px; }
.badge.red { background: #fee2e2; color: #b91c1c; }
.badge.green { background: #dcfce7; color: #166534; }
.drop-zone {
  border: 2px dashed #ddd; border-radius: 8px; padding: 34px; text-align: center;
  color: #999; cursor: pointer; transition: all .2s; margin-top: 12px;
}
.drop-zone:hover, .drop-zone.drag { border-color: #DC2626; color: #DC2626; }
.drop-zone .fname { color: #333; font-size: 13px; margin-top: 6px; }
.spinner {
  display: inline-block; width: 14px; height: 14px; border: 2px solid #eee;
  border-top-color: #DC2626; border-radius: 50%; animation: spin .8s linear infinite;
  vertical-align: -2px; margin-right: 6px;
}
@keyframes spin { to { transform: rotate(360deg); } }
a.link { color: #DC2626; text-decoration: none; }
