/* =====================================================
   数据工作台 · Apple 风格
   设计语言：毛玻璃 / 大圆角 / 胶囊按钮 / 系统字体 / 柔和阴影
   ===================================================== */

:root {
  --apple-bg: #f5f5f7;
  --apple-card: #ffffff;
  --apple-text: #1d1d1f;
  --apple-sub: #6e6e73;
  --apple-blue: #0071e3;
  --apple-blue-deep: #0060c9;
  --apple-green: #34c759;
  --apple-red: #ff3b30;
  --apple-orange: #ff9f0a;
  --apple-purple: #af52de;
  --apple-fill: #f5f5f7;
  --apple-border: rgba(0, 0, 0, .08);
  --apple-radius-lg: 24px;
  --apple-radius-md: 16px;
  --apple-shadow: 0 8px 30px rgba(0, 0, 0, .06);
  --apple-shadow-lg: 0 24px 70px rgba(0, 0, 0, .12);
}

html { scroll-behavior: smooth; }

body {
  background: var(--apple-bg);
  color: var(--apple-text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.01em;
}

/* ---------- 顶部导航：毛玻璃 ---------- */
.apple-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--apple-border);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--apple-text);
  text-decoration: none;
  padding: 10px 0;
}

.brand:hover { color: var(--apple-text); }

.brand-icon {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: linear-gradient(135deg, #2997ff, #7d2aff);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 15px;
  box-shadow: 0 4px 12px rgba(41, 151, 255, .35);
}

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--apple-fill);
  border-radius: 980px;
  padding: 6px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--apple-text);
}

/* ---------- 页面主体 ---------- */
.apple-main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 2.5rem 1rem 4rem;
}

.page-head { margin-bottom: 1.8rem; }

.page-title {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
  background: linear-gradient(120deg, #1d1d1f 30%, #0071e3);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.page-sub { color: var(--apple-sub); font-size: 15px; margin-top: 4px; }

/* ---------- 卡片 ---------- */
.apple-card {
  background: var(--apple-card);
  border: none;
  border-radius: var(--apple-radius-lg);
  box-shadow: var(--apple-shadow);
}

.section-title { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.section-sub { color: var(--apple-sub); font-size: 14px; }

/* ---------- 按钮：胶囊渐变 ---------- */
.btn-apple {
  border: none;
  border-radius: 980px;
  padding: 12px 30px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #0071e3, #2997ff);
  box-shadow: 0 4px 16px rgba(0, 113, 227, .32);
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}

.btn-apple:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(0, 113, 227, .42); }
.btn-apple:active { transform: translateY(0) scale(.98); }
.btn-apple:disabled { opacity: .45; transform: none; box-shadow: none; }

.btn-outline-apple {
  border: 1px solid rgba(0, 0, 0, .12);
  border-radius: 980px;
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--apple-text);
  background: transparent;
  transition: background .18s ease;
  white-space: nowrap;
}

.btn-outline-apple:hover { color: var(--apple-text); background: var(--apple-fill); }
.btn-outline-apple:disabled { opacity: .45; }

/* ---------- 表单 ---------- */
.form-control-apple {
  border: 1px solid rgba(0, 0, 0, .1);
  border-radius: 12px;
  background: #fbfbfd;
  padding: 9px 14px;
  font-size: 14px;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.form-control-apple:focus {
  border-color: var(--apple-blue);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(0, 113, 227, .14);
}

/* ---------- 截图文件条 ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--apple-fill);
  border: none;
  border-radius: 12px;
  padding: 6px 12px;
  font-size: 13px;
  transition: background .18s ease, transform .18s ease;
}

.chip:hover { background: #e9e9ee; transform: translateY(-1px); }

.chip-name { max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--apple-text); }
.chip a { color: var(--apple-blue); text-decoration: none; transition: opacity .15s; }
.chip a:hover { opacity: .65; }

/* ---------- 进度步骤 ---------- */
.step-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 2px;
  border-bottom: 1px solid rgba(0, 0, 0, .05);
}

.step-row:last-child { border-bottom: none; }

.step-label { font-size: 14px; font-weight: 500; }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 980px;
  padding: 3px 12px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.status-ok { background: rgba(52, 199, 89, .13); color: #1d9e4d; }
.status-running { background: rgba(0, 113, 227, .12); color: var(--apple-blue); }
.status-err { background: rgba(255, 59, 48, .11); color: var(--apple-red); }
.status-wait { background: rgba(0, 0, 0, .05); color: var(--apple-sub); }

/* 运行中顶部横幅 */
.run-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 14px;
  margin-bottom: 10px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  background: linear-gradient(120deg, #0071e3, #2997ff, #7d2aff);
  background-size: 200% 200%;
  animation: gradientMove 3s ease infinite;
}

@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.run-banner .spinner-border { width: 16px; height: 16px; border-width: 2px; }

/* 分类色点 */
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: 0 0 auto; }

/* ---------- 登录页 ---------- */
.apple-login-bg {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f7;
  overflow: hidden;
  padding: 20px;
}

.blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; pointer-events: none; }
.blob-1 { width: 420px; height: 420px; background: #a7c7ff; top: -100px; left: -80px; }
.blob-2 { width: 380px; height: 380px; background: #c8b0ff; bottom: -120px; right: -60px; }
.blob-3 { width: 300px; height: 300px; background: #a6ffd0; top: 45%; left: 58%; opacity: .4; }

.login-card {
  position: relative;
  width: 400px;
  max-width: 100%;
  background: rgba(255, 255, 255, .82);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  backdrop-filter: blur(30px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, .6);
  border-radius: 28px;
  box-shadow: var(--apple-shadow-lg);
  padding: 40px 36px;
  text-align: center;
}

.login-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, #2997ff, #7d2aff);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 30px;
  box-shadow: 0 8px 24px rgba(41, 151, 255, .4);
}

.login-title { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; }
.login-sub { color: var(--apple-sub); font-size: 14px; margin-bottom: 26px; }

.login-form .form-control-apple { border-radius: 12px; }

.login-btn {
  width: 100%;
  border: none;
  border-radius: 980px;
  padding: 12px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #0071e3, #2997ff);
  box-shadow: 0 4px 16px rgba(0, 113, 227, .32);
  transition: transform .18s ease, box-shadow .18s ease;
}

.login-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(0, 113, 227, .42); }

/* ---------- 动画 ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

.fade-up { animation: fadeUp .5s ease both; }

/* 消息提示圆角化 */
.apple-card .alert { border: none; border-radius: 12px; }
