/* 地块图则 Web — 浅色产品风（对齐 qclawai.com / Qclaw 类：大留白、白卡片、柔和阴影、绿色主按钮） */
/* 不使用外网字体 CDN；正文以系统黑体栈为准 */

:root {
  --ink-950: #f1f5f9;
  --ink-900: #e8eef3;
  --ink-850: #ffffff;
  --slate-400: #64748b;
  --slate-200: #334155;
  --text: #0f172a;
  --muted: #64748b;
  --cyan-400: #16a34a;
  --cyan-500: #15803d;
  --cyan-glow: rgba(22, 163, 74, 0.28);
  --amber-400: #ea580c;
  --amber-500: #c2410c;
  --ok: #16a34a;
  --err: #e11d48;
  --card-bg: #ffffff;
  --card-border: #e2e8f0;
  --shadow-card: 0 1px 3px rgba(15, 23, 42, 0.06), 0 8px 24px rgba(15, 23, 42, 0.06);
  --shadow-float: 0 12px 40px rgba(15, 23, 42, 0.08);
  --radius-lg: 20px;
  --radius-md: 12px;
  --font-sans: "Microsoft YaHei UI", "PingFang SC", "Source Han Sans SC", "Noto Sans SC",
    "Segoe UI", sans-serif;
  --font-mono: "Cascadia Mono", "Consolas", "Sarasa Mono SC", "Microsoft YaHei Mono", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: light;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
  background: var(--ink-950);
  -webkit-font-smoothing: antialiased;
}

/* 背景：浅灰底 + 极淡青绿光晕（接近 Qclaw 落地页气质） */
.bg-atlas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 100% 70% at 50% -20%, rgba(34, 197, 94, 0.09), transparent 50%),
    radial-gradient(ellipse 60% 50% at 100% 0%, rgba(14, 165, 233, 0.06), transparent 45%),
    linear-gradient(180deg, #f8fafc 0%, var(--ink-950) 45%, #eef2f7 100%);
}

.bg-atlas::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(22, 163, 74, 0.04) 0%, transparent 42%),
    radial-gradient(circle at 80% 70%, rgba(14, 165, 233, 0.05) 0%, transparent 40%);
  opacity: 1;
}

.bg-atlas::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Ccircle cx='2' cy='2' r='1' fill='%2394a3b8' fill-opacity='0.12'/%3E%3C/svg%3E");
  background-size: 48px 48px;
  opacity: 0.55;
}

.site-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* 顶栏 */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 0.85rem 1.75rem;
  border-bottom: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: inherit;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: center / cover no-repeat url("/static/brand/updis-northwest-logo.png?v=20260422");
  border: 1px solid rgba(15, 23, 42, 0.08);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.brand-mark::before,
.brand-mark::after {
  content: none;
  display: none;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.brand-title {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
}

.brand-sub {
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: var(--font-mono);
}

nav.topnav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

nav.topnav a,
nav.topnav .nav-user {
  font-size: 0.88rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  text-decoration: none;
  color: var(--slate-200);
  border: 1px solid transparent;
  border-bottom: none;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

nav.topnav a:hover {
  background: #f0fdf4;
  border-color: rgba(22, 163, 74, 0.2);
  color: var(--cyan-500);
}

nav.topnav a.nav-active {
  background: #dcfce7;
  border-color: rgba(22, 163, 74, 0.35);
  color: var(--cyan-500);
  font-weight: 600;
}

.nav-user {
  color: var(--slate-400) !important;
  font-family: var(--font-mono);
  font-size: 0.8rem !important;
}

/* 主区 */
main {
  flex: 1;
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  padding: 1.75rem 1.5rem 3rem;
}

main.main--workspace {
  max-width: 1100px;
}

/* 出图页：双栏（窄屏自动叠为单列） */
.workspace-grid {
  display: grid;
  gap: 1.15rem;
}

@media (min-width: 900px) {
  .workspace-grid {
    grid-template-columns: 1fr 1.05fr;
    align-items: start;
  }
}

/* 流程步骤条 */
.flow-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-bottom: 1.25rem;
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-md);
  background: #f8fafc;
  border: 1px solid var(--card-border);
}

.flow-step {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.flow-step strong {
  display: inline-grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #22c55e, var(--cyan-500));
  box-shadow: 0 1px 4px rgba(22, 163, 74, 0.35);
}

.flow-step em {
  font-style: normal;
  color: var(--slate-200);
}

/* 空状态 / 提示条 */
.empty-hint {
  margin: 0;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-md);
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.alert-inline {
  margin: 0.75rem 0 0;
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  line-height: 1.45;
}

.alert-inline.err {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
}

.alert-inline.ok {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
}

.alert-inline.muted {
  background: #f8fafc;
  border: 1px solid var(--card-border);
  color: var(--muted);
}

/* 链接式顶栏按钮（退出） */
nav.topnav button.ghost {
  font-size: 0.88rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
}

/* about：入口卡片行 */
.entry-rows {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 0.75rem;
}

.entry-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 0.85rem;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-md);
  background: #f8fafc;
  border: 1px solid var(--card-border);
}

.entry-row .entry-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan-400);
  min-width: 5.5rem;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

.hero {
  margin-bottom: 1.75rem;
  padding: 1.25rem 0 0.5rem;
}

.hero-kicker {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--cyan-400);
  margin-bottom: 0.5rem;
}

.hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 4vw, 1.85rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  background: linear-gradient(105deg, #0f172a 0%, #334155 55%, var(--cyan-500) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  margin: 0;
  max-width: 52ch;
  color: var(--muted);
  font-size: 0.95rem;
}

/* 卡片 */
.card {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.5rem;
  margin-bottom: 1.15rem;
  backdrop-filter: none;
  box-shadow: var(--shadow-card);
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 1.5rem;
  right: 1.5rem;
  height: 3px;
  border-radius: 0 0 6px 6px;
  background: linear-gradient(90deg, transparent, #22c55e, #0ea5e9, transparent);
  opacity: 0.55;
}

.card h2,
.card h3 {
  margin: 0 0 0.65rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--slate-200);
  letter-spacing: 0.03em;
}

.card h1 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
}

.muted {
  color: var(--muted);
  font-size: 0.9rem;
}

a {
  color: var(--cyan-500);
  text-decoration: none;
  border-bottom: 1px solid rgba(22, 163, 74, 0.25);
  transition: color 0.15s, border-color 0.15s;
}

a:hover {
  color: #15803d;
  border-bottom-color: rgba(22, 163, 74, 0.45);
}

code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  padding: 0.12em 0.4em;
  border-radius: 6px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #475569;
}

ul.clean {
  margin: 0.5rem 0 0;
  padding-left: 1.15rem;
}

ul.clean li {
  margin-bottom: 0.55rem;
}

ul.clean li strong {
  color: var(--amber-400);
  font-weight: 600;
}

/* 表单 */
label {
  display: block;
  margin: 0.65rem 0 0.35rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--slate-400);
  letter-spacing: 0.04em;
}

input,
textarea,
select {
  width: 100%;
  max-width: 100%;
  font: inherit;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-md);
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}

input::placeholder,
textarea::placeholder {
  color: #94a3b8;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--cyan-400);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.12);
}

textarea {
  min-height: 130px;
  resize: vertical;
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

/* 按钮 */
.row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

button,
.btn {
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 0.12s, box-shadow 0.2s, background 0.2s;
}

button:active,
.btn:active {
  transform: scale(0.98);
}

button:not(.qw-btn):not(.secondary):not(.danger):not(.ghost):not(.app-job-dash__tab),
.btn-primary {
  background: linear-gradient(135deg, #22c55e, var(--cyan-500));
  color: #fff;
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.35);
}

button:not(.qw-btn):not(.secondary):not(.danger):not(.ghost):not(.app-job-dash__tab):hover,
.btn-primary:hover {
  box-shadow: 0 6px 22px rgba(22, 163, 74, 0.45);
}

button.secondary,
.btn-secondary {
  background: #ffffff;
  color: var(--slate-200);
  border-color: #cbd5e1;
}

button.secondary:hover,
.btn-secondary:hover {
  background: #f8fafc;
  border-color: var(--cyan-400);
  color: var(--cyan-500);
}

button.danger,
.btn-danger {
  background: #fef2f2;
  color: #b91c1c;
  border-color: #fecaca;
}

button.danger:hover,
.btn-danger:hover {
  background: #fee2e2;
}

button.ghost {
  background: transparent;
  color: var(--slate-400);
  border-color: #e2e8f0;
}

button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none !important;
}

/* Tab 组 */
.tab-group {
  display: inline-flex;
  padding: 0.2rem;
  border-radius: 999px;
  background: #f1f5f9;
  border: 1px solid var(--card-border);
  margin-bottom: 1rem;
}

.tab-group button {
  margin: 0;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent !important;
  color: var(--muted) !important;
  box-shadow: none !important;
}

.tab-group button.tab-on {
  background: #ffffff !important;
  color: var(--cyan-500) !important;
  border: 1px solid rgba(22, 163, 74, 0.35) !important;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.06) !important;
}

.tab-group button.secondary {
  border-color: transparent !important;
}

/* 任务块 */
.task-tile {
  position: relative;
  padding: 1rem 1.15rem;
  margin-bottom: 0.65rem;
  border-radius: var(--radius-md);
  background: #f8fafc;
  border: 1px solid var(--card-border);
  border-left: 3px solid rgba(22, 163, 74, 0.45);
}

.task-tile:has(.badge.done) {
  border-left-color: rgba(52, 211, 153, 0.45);
}

.task-tile:has(.badge.failed) {
  border-left-color: rgba(251, 113, 133, 0.45);
}

/* 邀请码申请列表：避免与「任务完成」绿条混淆，pending 用橙色提示待办 */
.task-tile--invite {
  border-left-color: rgba(148, 163, 184, 0.55);
}
.task-tile--invite-pending {
  border-left-color: rgba(249, 115, 22, 0.55);
}
.task-tile--invite-done {
  border-left-color: rgba(100, 116, 139, 0.45);
}

.task-tile strong {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  color: var(--text);
}

.task-actions {
  margin-top: 0.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.task-actions a {
  font-size: 0.85rem;
}

/* 徽章 */
.badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: #f1f5f9;
  color: var(--slate-200);
  border: 1px solid #e2e8f0;
}

.badge.running {
  background: #ecfdf5;
  color: #047857;
  border-color: #a7f3d0;
}

.badge.done {
  background: #d1fae5;
  color: #065f46;
  border-color: #6ee7b7;
}

.badge.failed {
  background: #fef2f2;
  color: #b91c1c;
  border-color: #fecaca;
}

.badge.queued {
  background: #eef2ff;
  color: #4338ca;
  border-color: #c7d2fe;
}

.badge.pending {
  background: #f8fafc;
  color: var(--slate-400);
  border-color: #e2e8f0;
}

/* 日志块 */
pre.log {
  margin: 0.75rem 0 0;
  padding: 1rem;
  border-radius: var(--radius-md);
  background: #0f172a;
  border: 1px solid #1e293b;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.45;
  overflow: auto;
  max-height: 320px;
  color: #e2e8f0;
}

.err {
  color: var(--err);
}

.ok {
  color: var(--ok);
}

/* 分区标题条 */
.section-head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
}

.section-head::before {
  content: "";
  width: 4px;
  height: 1.1em;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--cyan-400), var(--amber-500));
}

.section-head h2 {
  margin: 0;
  flex: 1;
}

/* 弹窗 */
dialog.modal {
  border: none;
  border-radius: var(--radius-lg);
  padding: 0;
  max-width: min(720px, 92vw);
  width: 100%;
  background: #ffffff;
  color: var(--text);
  box-shadow: var(--shadow-float);
  border: 1px solid var(--card-border);
}

dialog.modal::backdrop {
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
}

.modal-inner {
  padding: 1.35rem 1.5rem 1.5rem;
}

.modal-inner h3 {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
}

/* 登录页居中布局 */
.layout-auth {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem 3rem;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-float);
}

.reg-gate {
  font-size: 0.82rem;
  line-height: 1.55;
  margin: 0 0 0.85rem;
  padding: 0.65rem 0.8rem;
  border-radius: var(--radius-md);
  background: #f8fafc;
  border: 1px solid var(--card-border);
  color: var(--muted);
}

.reg-gate strong {
  color: var(--slate-200);
  font-weight: 600;
}

.invite-apply-mount {
  margin-top: 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

/* 页脚理念条 */
.footer-strip {
  margin-top: auto;
  padding: 0.85rem 1.5rem;
  text-align: center;
  font-size: 0.72rem;
  color: var(--muted);
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  border-top: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.75);
}

/* 任务历史条 */
.job-history-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

button.job-history-btn {
  font-size: 0.78rem;
  padding: 0.4rem 0.75rem;
}

button.job-history-btn--active {
  border-color: rgba(22, 163, 74, 0.45) !important;
  background: #dcfce7 !important;
  color: var(--cyan-500) !important;
}

/* 出图控制台（长日志） */
.job-console-card pre.job-console {
  max-height: min(42vh, 520px);
  min-height: 10rem;
  white-space: pre-wrap;
  word-break: break-word;
  margin-top: 0.65rem;
}

/* 提交中 */
button.btn-loading {
  position: relative;
  pointer-events: none;
  opacity: 0.88;
}

/* QA 树形预览 */
.qa-tree-scroll {
  max-height: 55vh;
  overflow: auto;
  margin: 0;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-md);
  background: #f8fafc;
  border: 1px solid var(--card-border);
  font-size: 0.82rem;
  line-height: 1.45;
}

.qa-tree .qa-tree-node {
  margin: 0.2rem 0 0.2rem 0.35rem;
  border-left: 1px solid rgba(100, 140, 200, 0.18);
  padding-left: 0.55rem;
}

.qa-tree .qa-tree-node > summary {
  cursor: pointer;
  color: var(--slate-200);
  list-style: none;
}

.qa-tree .qa-tree-node > summary::-webkit-details-marker {
  display: none;
}

.qa-tree .qa-tree-children {
  margin-top: 0.25rem;
}

.qa-tree .qa-kv {
  margin: 0.12rem 0 0.12rem 0.35rem;
  font-size: 0.8rem;
}

.qa-tree .qa-kv strong {
  color: var(--amber-400);
  margin-right: 0.35rem;
}

.qa-tree .qa-val code {
  font-size: 0.78rem;
  color: var(--slate-200);
}

.qa-tree .qa-leaf {
  margin: 0.15rem 0 0.15rem 0.35rem;
}

/* —— 门户首页（home.html，Qclaw 式：大标题 + 能力卡片 + 步骤） —— */
.bg-atlas--soft::after {
  opacity: 0.28;
}

.topbar--landing {
  border-bottom-color: var(--card-border);
}

main.landing {
  flex: 1;
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem 2.5rem;
}

.landing-hero {
  text-align: center;
  padding: 2rem 0.5rem 1.5rem;
  max-width: 48rem;
  margin: 0 auto;
}

.landing-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  color: var(--cyan-400);
  margin: 0 0 0.75rem;
  text-transform: uppercase;
}

.landing-hero h1 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.45rem, 4.2vw, 2.05rem);
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: 0.02em;
  background: linear-gradient(115deg, #0f172a 0%, #334155 45%, var(--cyan-500) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.landing-lead {
  margin: 0 auto;
  max-width: 40rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.landing-notice {
  max-width: 52rem;
  margin: 0 auto 1.75rem;
  padding: 1rem 1.2rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 50%, #f8fafc 100%);
  border: 1px solid rgba(22, 163, 74, 0.2);
  box-shadow: var(--shadow-card);
}

.landing-notice__title {
  display: block;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  color: var(--amber-400);
  margin-bottom: 0.5rem;
}

.landing-notice__body {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--slate-200);
}

.landing-section {
  margin-top: 0.5rem;
}

.landing-section-title {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  text-align: center;
}

.landing-section-sub {
  text-align: center;
  margin: 0 0 1.35rem;
  font-size: 0.88rem;
}

.feature-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.feature-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 11.5rem;
  padding: 1.15rem 1.2rem 1.25rem;
  border-radius: var(--radius-lg);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, border-color 0.2s, box-shadow 0.2s;
  box-shadow: var(--shadow-card);
}

.feature-card--live {
  border-color: rgba(22, 163, 74, 0.35);
  cursor: pointer;
}

.feature-card--live:hover {
  transform: translateY(-2px);
  border-color: rgba(22, 163, 74, 0.55);
  box-shadow: 0 12px 36px rgba(22, 163, 74, 0.12);
}

.feature-card--soon {
  opacity: 0.48;
  filter: grayscale(0.35);
  pointer-events: none;
  user-select: none;
}

.feature-card__badge {
  align-self: flex-start;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  background: #f1f5f9;
  color: var(--slate-400);
  border: 1px solid #e2e8f0;
  margin-bottom: 0.65rem;
}

.feature-card__badge--ok {
  background: #dcfce7;
  color: var(--cyan-500);
  border-color: rgba(22, 163, 74, 0.35);
}

.feature-card__icon {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.feature-card__title {
  margin: 0 0 0.45rem;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
}

.feature-card__desc {
  margin: 0;
  flex: 1;
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--muted);
}

.feature-card__cta {
  margin-top: 0.85rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--cyan-500);
}

.feature-card--soon .feature-card__cta {
  display: none;
}

.landing-steps {
  margin-top: 2.25rem;
  padding: 1.35rem 1.25rem;
  border-radius: var(--radius-lg);
  background: #ffffff;
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-card);
}

.landing-step-list {
  margin: 0.75rem 0 0;
  padding-left: 1.25rem;
  color: var(--slate-200);
  font-size: 0.9rem;
  line-height: 1.7;
}

.landing-step-list li {
  margin-bottom: 0.45rem;
}

.landing-foot {
  text-align: center;
  margin: 1.75rem 0 0;
  font-size: 0.82rem;
}

/* 工作台：数据说明 + 功能入口 */
.notice-board-list {
  margin: 0.25rem 0 0;
  padding-left: 1.2rem;
  color: var(--slate-200);
  font-size: 0.88rem;
  line-height: 1.65;
}

.notice-board-list li {
  margin-bottom: 0.45rem;
}

.notice-board-list__muted {
  color: var(--muted);
  font-size: 0.84rem;
}

.feature-entry-card .feature-entry-hint {
  flex: 1;
  min-width: 12rem;
  font-size: 0.82rem;
  line-height: 1.5;
  margin: 0;
}

.feature-entry-row button[disabled] {
  opacity: 0.42;
  cursor: not-allowed;
}

/* ========== 首页 Qclaw 式长页（home.html） ========== */
html.qw-scroll-page {
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  scroll-padding-top: 4.75rem;
}

@media (prefers-reduced-motion: reduce) {
  html.qw-scroll-page {
    scroll-snap-type: none;
    scroll-behavior: auto;
  }

  .qw-snap-section--hero::before {
    animation: none;
    opacity: 0.5;
  }

  body.landing-page .bg-atlas::before {
    animation: none;
  }
}

body.landing-page {
  --qw-orange: #ea580c;
  --qw-orange-soft: #fff7ed;
  --qw-text: #0f172a;
  background-color: #ffffff;
  /* 门户浅底纹：方格 + 等高线（多区块复用，避免被白底盖住） */
  --qw-landing-deco-grid-h: linear-gradient(rgba(100, 116, 139, 0.09) 1px, transparent 1px);
  --qw-landing-deco-grid-v: linear-gradient(90deg, rgba(100, 116, 139, 0.075) 1px, transparent 1px);
  --qw-landing-deco-terrain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400' viewBox='0 0 400 400'%3E%3Cg fill='none' stroke='%2394a3b8' stroke-width='0.55' opacity='0.3'%3E%3Cpath d='M0 86 Q96 50 205 88 T400 92'/%3E%3Cpath d='M0 162 Q118 200 262 160 T400 170'/%3E%3Cpath d='M0 246 Q102 226 254 262'/%3E%3Cpath d='M0 318 Q136 296 296 332'/%3E%3C/g%3E%3Cg fill='none' stroke='%23cbd5e1' stroke-width='0.42' opacity='0.24'%3E%3Cpath d='M68 54 L152 48 L166 94 L74 100 Z'/%3E%3Cpath d='M248 228 L318 220 L328 272 L256 278 Z'/%3E%3C/g%3E%3C/svg%3E");
}

/* 纯白底页：关闭扫描线与暗角叠层（对齐参考图1） */
body.landing-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
}

/* 门户整页背景：纯白（图1 式无灰底） */
body.landing-page .bg-atlas {
  background: #ffffff;
}

body.landing-page .bg-atlas::before {
  transform-origin: center center;
  opacity: 0;
  visibility: hidden;
  animation: none;
}

@keyframes qwAtlasDrift {
  0% {
    opacity: 0.88;
    transform: scale(1);
  }
  100% {
    opacity: 1;
    transform: scale(1.03);
  }
}

/* 极淡方格 + 等高线（首屏透明区可见；白区块另叠一层见下） */
body.landing-page .bg-atlas.bg-atlas--soft::after {
  opacity: 0.55;
  visibility: visible;
  background-image: var(--qw-landing-deco-grid-h), var(--qw-landing-deco-grid-v), var(--qw-landing-deco-terrain);
  background-size: 44px 44px, 44px 44px, 400px 400px;
  background-position: 0 0, 0 0, 14px 22px;
  background-repeat: repeat, repeat, repeat;
  mask-image: radial-gradient(ellipse 125% 100% at 50% 48%, #000 0%, #000 62%, rgba(0, 0, 0, 0.55) 82%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 125% 100% at 50% 48%, #000 0%, #000 62%, rgba(0, 0, 0, 0.55) 82%, transparent 100%);
}

body.landing-page .qw-geo-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  mix-blend-mode: multiply;
  background:
    linear-gradient(118deg, transparent 0%, rgba(37, 99, 235, 0.09) 34%, transparent 66%),
    linear-gradient(12deg, transparent 48%, rgba(79, 70, 229, 0.065) 84%, transparent 100%),
    repeating-linear-gradient(
      0deg,
      transparent 0,
      transparent 46px,
      rgba(71, 85, 105, 0.085) 46px,
      rgba(71, 85, 105, 0.085) 47px
    ),
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 46px,
      rgba(51, 65, 85, 0.07) 46px,
      rgba(51, 65, 85, 0.07) 47px
    );
  mask-image: radial-gradient(ellipse 100% 92% at 50% 16%, #000 0%, rgba(0, 0, 0, 0.48) 48%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 100% 92% at 50% 16%, #000 0%, rgba(0, 0, 0, 0.48) 48%, transparent 80%);
}

body.landing-page .qw-geo-layer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.78;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400' viewBox='0 0 400 400'%3E%3Cg fill='none' stroke='%232563eb' stroke-width='0.7' opacity='0.32'%3E%3Cpath d='M0 85 Q95 45 210 88 T400 92'/%3E%3Cpath d='M0 165 Q120 205 270 158 T400 168'/%3E%3Cpath d='M0 255 Q105 230 250 268'/%3E%3Cpath d='M0 335 Q140 310 290 345'/%3E%3C/g%3E%3Cg fill='none' stroke='%23334155' stroke-width='0.58' opacity='0.28'%3E%3Crect x='48' y='52' width='102' height='76' transform='rotate(-7 99 90)'/%3E%3Crect x='218' y='198' width='92' height='68' transform='rotate(9 264 232)'/%3E%3Cpath d='M280 48 L355 40 L368 95 L302 108 Z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 380px 380px;
  background-repeat: repeat;
}

body.landing-page .qw-geo-layer::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  mix-blend-mode: multiply;
  background:
    repeating-linear-gradient(122deg, transparent 0 72px, rgba(99, 102, 241, 0.055) 72px 73px),
    repeating-linear-gradient(0deg, transparent 0 52px, rgba(148, 163, 184, 0.032) 52px 53px),
    repeating-linear-gradient(90deg, transparent 0 120px, rgba(37, 99, 235, 0.025) 120px 121px),
    radial-gradient(ellipse 52% 42% at 88% 8%, rgba(249, 115, 22, 0.095), transparent 58%),
    radial-gradient(ellipse 46% 40% at 4% 90%, rgba(99, 102, 241, 0.13), transparent 56%),
    linear-gradient(205deg, rgba(30, 58, 138, 0.04) 0%, transparent 38%);
  opacity: 1;
}

body.landing-page .terminal-bg.terminal-bg--global {
  opacity: 0;
  visibility: hidden;
  color: #475569;
}

/* FAQ 已在上方重新定义，此处移除旧样式 */

body.landing-page .qw-section--changelog {
  background-color: #ffffff;
  background-image: var(--qw-landing-deco-grid-h), var(--qw-landing-deco-grid-v), var(--qw-landing-deco-terrain);
  background-size: 44px 44px, 44px 44px, 400px 400px;
  background-position: 0 0, 0 0, 22px 36px;
  background-repeat: repeat, repeat, repeat;
  border-top: 1px solid #f0f0f0;
  border-bottom: 1px solid #f0f0f0;
}

body.landing-page .landing-footer-qw {
  background-color: #fff;
  background-image: var(--qw-landing-deco-grid-h), var(--qw-landing-deco-grid-v), var(--qw-landing-deco-terrain);
  background-size: 44px 44px, 44px 44px, 400px 400px;
  background-position: 0 0, 0 0, 30px 18px;
  background-repeat: repeat, repeat, repeat;
  border-top: 1px solid #f0f0f0;
}

body.landing-page .topbar--landing {
  background: #ffffff;
  border-bottom: 1px solid #f0f0f0;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 1) inset;
  backdrop-filter: none;
}

.site-shell--landing > .topbar--landing {
  position: sticky;
  top: 0;
  z-index: 30;
}

.brand--nw {
  gap: 0.65rem;
}

.brand-title--nw {
  font-size: clamp(0.92rem, 2.4vw, 1.12rem);
  letter-spacing: 0.02em;
}

body.landing-page .brand-title--nw {
  color: #18181b;
  font-weight: 700;
}

body.landing-page .brand-sub {
  color: #a1a1aa;
}

body.landing-page .brand-pill {
  background: #fef3c7;
  color: #d97706;
  border-color: #fcd34d;
}

.qw-brand-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.14);
}

.qw-brand-logo img {
  display: block;
  object-fit: cover;
  border-radius: 12px;
  /* 不用 drop-shadow：透明 PNG 边缘易混出深色晕/黑渣 */
  filter: none;
}

body.landing-page .qw-brand-logo img {
  filter: none;
}

.qw-brand-logo--sm {
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(249, 115, 22, 0.12);
}

.qw-brand-logo--sm img {
  width: 40px;
  height: 40px;
}

body.landing-page .landing-footer-qw .qw-brand-logo--sm {
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(249, 115, 22, 0.1);
}

body.landing-page .landing-footer-qw .qw-brand-logo--sm img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}

.qw-brand-logo--lg {
  border-radius: clamp(0.85rem, 2.4vw, 1.05rem);
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.16);
}

.qw-brand-logo--lg img {
  width: clamp(3.85rem, 12vw, 5.1rem);
  height: clamp(3.85rem, 12vw, 5.1rem);
  border-radius: clamp(0.85rem, 2.4vw, 1.05rem);
}

.qw-hero-logo {
  margin-bottom: 0.55rem;
}

.qw-hero-line--type {
  margin-top: 0.2em;
}

.qw-type-inline {
  display: inline-flex;
  align-items: baseline;
  gap: 0.02em;
  margin-left: 0.12em;
  vertical-align: baseline;
}

.qw-type-line {
  display: inline-block;
  min-height: 1.15em;
  min-width: 0.35em;
  padding: 0.06em 0.28em 0.1em;
  border-radius: 0.25em;
  background: #fff7ed;
  color: #c2410c;
  font-weight: 700;
  font-size: 0.96em;
}

.qw-cursor {
  color: #f97316;
  font-weight: 700;
  animation: qw-cursor-blink 1s step-end infinite;
}

@keyframes qw-cursor-blink {
  50% {
    opacity: 0;
  }
}

main.landing--qw-snap {
  max-width: none;
  width: 100%;
  padding-left: 0;
  padding-right: 0;
}

.qw-snap-section {
  min-height: 100vh;
  min-height: 100dvh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  padding: 4.5rem 1.25rem 2.5rem;
}

body.landing-page .qw-snap-section:not(.qw-snap-section--hero) {
  padding-top: 3.25rem;
  padding-bottom: 2rem;
}

.qw-snap-section--hero {
  position: relative;
  overflow: visible;
  padding: 2rem 1rem 1.4rem;
}

/* 首屏：大面积橙色柔光，铺满标题与按钮区（参考 Qclaw 整段暖色氛围） */
.qw-snap-section--hero::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 52%;
  width: min(192vw, 112rem);
  height: min(132vh, 88rem);
  max-width: none;
  transform: translate(-50%, -50%);
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse 46% 38% at 50% 46%,
      rgba(255, 130, 60, 0.24) 0%,
      rgba(255, 160, 90, 0.15) 22%,
      rgba(255, 190, 130, 0.08) 42%,
      rgba(255, 210, 160, 0.034) 58%,
      rgba(244, 244, 245, 0) 76%
    ),
    radial-gradient(
      ellipse 68% 56% at 50% 62%,
      rgba(249, 115, 22, 0.069) 0%,
      transparent 55%
    );
  filter: blur(46px);
  animation: qwHeroAura 10s ease-in-out infinite alternate;
}

@keyframes qwHeroAura {
  0% {
    opacity: 0.5;
    transform: translate(-50%, -50%) scale(0.96);
  }
  100% {
    opacity: 0.58;
    transform: translate(-50%, -50%) scale(1.04);
  }
}

.qw-snap-section--hero .qw-snap-inner {
  position: relative;
  z-index: 1;
}

.qw-snap-section--footer {
  min-height: min(100vh, 36rem);
  min-height: min(100dvh, 36rem);
  justify-content: center;
}

.landing-footer-qw--compact.qw-snap-section--footer {
  min-height: auto;
  padding-top: 2rem;
  padding-bottom: 2.25rem;
}

.landing-footer-qw__inner--compact {
  max-width: 36rem;
}

.landing-footer-qw__row--compact {
  margin-bottom: 0.35rem;
  gap: 0.55rem;
}

.landing-footer-qw__name--compact {
  font-size: 1rem;
}

.landing-footer-qw__copy--compact {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.55;
}

.qw-snap-inner {
  width: 100%;
  max-width: 56rem;
  margin-left: auto;
  margin-right: auto;
}

.qw-snap-section.qw-section {
  margin-top: 0;
}

.terminal-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  opacity: 0.055;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.65;
  color: #64748b;
  white-space: pre;
  padding: 2rem;
  user-select: none;
}

.terminal-bg pre {
  margin: 0;
  transform: rotate(-3deg) scale(1.15);
  transform-origin: center top;
}

.terminal-bg--global {
  top: 4rem;
}

.terminal-bg--footer {
  position: absolute;
  inset: 0;
  opacity: 0.07;
  font-size: 10px;
}

.site-shell--landing {
  position: relative;
  z-index: 1;
}

.topbar--qw nav.topnav a {
  font-size: 0.84rem;
}

body.landing-page .topbar--qw nav.topnav a {
  color: #52525b;
  border-radius: 6px;
  padding: 0.35rem 0.55rem;
  transition: color 0.2s ease;
}

body.landing-page .topbar--qw nav.topnav a:hover {
  color: #f97316;
  background: #fff7ed;
  border-color: rgba(249, 115, 22, 0.22);
}

body.landing-page .topbar--qw nav.topnav a.nav-active {
  background: #ffedd5;
  border-color: rgba(249, 115, 22, 0.35);
  color: #ea580c;
}

/* 落地页正文链接：橙色（覆盖全局绿色 a） */
body.landing-page a:not(.brand) {
  color: #ea580c;
  border-bottom-color: rgba(234, 88, 12, 0.35);
}

body.landing-page a:not(.brand):hover {
  color: #c2410c;
  border-bottom-color: rgba(194, 65, 12, 0.5);
}

/* 首页登录弹窗：Tab 选中态与输入框焦点勿用绿色 */
body.landing-page .modal--auth .tab-group button.tab-on {
  color: #ea580c !important;
  border: 1px solid rgba(249, 115, 22, 0.4) !important;
}

body.landing-page .modal--auth input:focus,
body.landing-page .modal--auth textarea:focus,
body.landing-page .modal--auth select:focus {
  border-color: #fb923c;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.16);
}

/* 首页各弹窗底部主操作：与首屏主按钮同色（避免仍走全局绿色 button） */
body.landing-page .modal .row button:not(.secondary):not(.danger):not(.ghost):not(.qw-btn) {
  background: linear-gradient(145deg, #f59e0b 0%, #f97316 45%, #ea580c 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.35);
}

body.landing-page .modal .row button:not(.secondary):not(.danger):not(.ghost):not(.qw-btn):hover {
  box-shadow: 0 6px 22px rgba(249, 115, 22, 0.45);
}

body.landing-page .modal .alert-inline.ok {
  background: #fff7ed;
  border: 1px solid #fdba74;
  color: #9a3412;
}

.brand-pill {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.08rem 0.4rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  border-radius: 4px;
  background: var(--qw-orange-soft);
  color: var(--qw-orange);
  border: 1px solid rgba(234, 88, 12, 0.25);
  vertical-align: middle;
}

main.landing--qw:not(.landing--qw-snap) {
  max-width: 880px;
  padding-top: 0.5rem;
}

.qw-hero {
  text-align: center;
  padding: 0.5rem 0.75rem 1rem;
}

.qw-snap-section--hero .qw-hero {
  padding: 0.1rem 0.35rem 0.2rem;
}

.qw-hero-title {
  margin: 0 0 0.65rem;
  font-weight: 800;
  line-height: 1.18;
  font-size: clamp(1.45rem, 4.6vw, 2.45rem);
  color: #18181b;
  letter-spacing: -0.01em;
}

.qw-hero-line {
  display: block;
}

.qw-mark {
  display: inline-block;
  margin: 0 0.04em;
  padding: 0.08em 0.22em;
  border-radius: 0.25em;
  background: #fff7ed;
  color: #c2410c;
  font-weight: 700;
}

.qw-hero-sub {
  max-width: 36rem;
  margin: 0 auto 0.5rem;
  font-size: clamp(0.92rem, 1.75vw, 1.05rem);
  line-height: 1.55;
  color: #52525b;
}

.qw-hero-note {
  max-width: 34rem;
  margin: 0 auto 1.1rem;
  font-size: clamp(0.82rem, 1.45vw, 0.92rem);
  line-height: 1.55;
}

.qw-feature-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem 0.65rem;
  max-width: 52rem;
  margin: 0 auto;
}

/* 首屏行动区：对齐 Qclaw — 圆角矩形（非全圆角胶囊）、主按钮饱和橙 + 悬停加深 */
.qw-hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.15rem;
  margin-top: 0.35rem;
}

.qw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.85rem 2.4rem;
  border-radius: 9999px;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  box-shadow: 0 8px 25px -4px rgb(0 0 0 / 0.1);
  white-space: nowrap;
}

body.landing-page .qw-hero-actions .qw-btn {
  border-radius: 14px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
}

/* 主按钮：常态 ≈ 参考站「免费使用」亮橙；悬停 ≈ 更深橙红 */
.qw-btn--primary {
  background: linear-gradient(180deg, #ff8f40 0%, #ff7a00 42%, #ff6a00 100%);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 6px 22px rgba(255, 107, 0, 0.38), 0 0 0 1px rgba(255, 255, 255, 0.12) inset;
  font-weight: 700;
}

.qw-btn--primary:hover {
  background: linear-gradient(180deg, #f97316 0%, #e85d00 48%, #e65a00 100%);
  box-shadow: 0 8px 28px rgba(230, 90, 0, 0.48), 0 0 0 1px rgba(255, 255, 255, 0.14) inset;
}

/* 双保险：避免其它全局 button 规则抢色 */
/* 主按钮：常态白底黑字（同系列弱按钮）；悬停再变为橙底白字 */
body.landing-page .qw-hero-actions .qw-btn--primary {
  padding: 0.78rem 1.65rem;
  font-size: 0.94rem;
  background: #fff;
  color: #0a0a0a;
  border: 1px solid #e4e4e7;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

body.landing-page .qw-hero-actions .qw-btn--primary:hover {
  background: linear-gradient(180deg, #ff8f40 0%, #ff7a00 42%, #ff6a00 100%);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 8px 28px rgba(230, 90, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.12) inset;
}

body.landing-page .qw-hero-actions .qw-btn--primary .qw-btn-line {
  display: inline;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: inherit;
}

body.landing-page .qw-hero-actions .qw-btn--primary .qw-btn-note {
  display: inline;
  margin-left: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  opacity: 1;
  color: inherit;
}

.qw-btn--secondary {
  background: white;
  color: #374151;
  border: 1px solid #e5e7eb;
  font-weight: 500;
  padding: 0.75rem 1.35rem;
  font-size: 0.85rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  cursor: default;
  opacity: 0.85;
}

.qw-btn--secondary .qw-btn-note {
  font-size: 0.68rem;
  color: #6b7280;
  margin-left: 0.45rem;
  font-weight: 400;
}

.qw-btn-line {
  display: block;
}

.qw-btn-note {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  opacity: 0.9;
  margin-left: 0.45rem;
}

.qw-secondary-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  max-width: 48rem;
}

/* 次要入口：半透明白底（与主按钮实白区分）+ 黑粗字；悬停略提亮 */
body.landing-page .qw-hero-actions .qw-btn--secondary[aria-disabled="true"],
body.landing-page .qw-hero-actions .qw-btn--ellipsis[aria-disabled="true"] {
  opacity: 1;
  cursor: default;
  padding: 0.72rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: rgba(10, 10, 10, 0.92);
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(228, 228, 231, 0.85);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

body.landing-page .qw-hero-actions .qw-btn--ellipsis[aria-disabled="true"] {
  padding: 0.62rem 1.65rem;
  font-size: 1.05rem;
  letter-spacing: 0.14em;
}

body.landing-page .qw-hero-actions .qw-btn--secondary[aria-disabled="true"]:hover,
body.landing-page .qw-hero-actions .qw-btn--ellipsis[aria-disabled="true"]:hover {
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(212, 212, 216, 0.95);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

/* 悬停约 0.45s 后再显示 data-tip 文案 */
.qw-hero-hint-wrap {
  position: relative;
  display: inline-flex;
  max-width: 100%;
  vertical-align: middle;
}

.qw-hero-hint-wrap::after {
  content: attr(data-tip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%) translateY(4px);
  padding: 0.38rem 0.6rem;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
  color: #fafafa;
  background: rgba(24, 24, 27, 0.92);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  opacity: 0;
  pointer-events: none;
  z-index: 30;
  transition: opacity 0.2s ease, transform 0.2s ease;
  transition-delay: 0s;
}

.qw-hero-hint-wrap--multiline::after {
  white-space: normal;
  max-width: 15rem;
  width: max-content;
  text-align: center;
  line-height: 1.45;
}

.qw-hero-hint-wrap:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  transition-delay: 0.45s;
}

@media (prefers-reduced-motion: reduce) {
  .qw-hero-hint-wrap:hover::after {
    transition-delay: 0.08s;
  }
}

/* 第二行两枚居中：占第 1、3 列 → 改为跨中间列合并，视觉居中 */
.qw-feature-row--2 > :nth-child(1) {
  grid-column: 1 / span 1;
  justify-self: end;
  width: 100%;
  max-width: calc((100% - 0.5rem) / 3);
}

.qw-feature-row--2 > :nth-child(2) {
  grid-column: 3 / span 1;
  justify-self: start;
  width: 100%;
  max-width: calc((100% - 0.5rem) / 3);
}

/* 更推荐的居中写法：两枚合并到中间列，左右留空 */
.qw-feature-row--2.qw-feature-row--center {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.qw-feature-row--center > :nth-child(1) {
  grid-column: 1;
  visibility: hidden;
  pointer-events: none;
}

.qw-feature-row--center > :nth-child(2) {
  grid-column: 2 / span 1;
}

.qw-feature-row--center > :nth-child(3) {
  grid-column: 3;
  visibility: hidden;
  pointer-events: none;
}

.qw-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #334155;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

.qw-pill-inner {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
  line-height: 1.15;
  text-align: center;
}

.qw-pill-line {
  font-size: inherit;
  font-weight: inherit;
}

.qw-pill-note {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.qw-pill--primary .qw-pill-note {
  color: rgba(255, 255, 255, 0.92);
}

.qw-pill--soon .qw-pill-note {
  color: #475569;
}

.qw-pill--primary {
  background: linear-gradient(145deg, #f59e0b 0%, #f97316 45%, #ea580c 100%);
  color: #fff;
  border-color: transparent;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(249, 115, 22, 0.35);
}

.qw-pill--primary:hover {
  filter: brightness(1.05);
}

/* 落地页主按钮：深色强对比（对齐 Qclaw 主按钮气质） */
/* 主按钮已在 .qw-btn--primary 中定义，此处移除旧样式 */

.qw-pill--soon {
  opacity: 0.48;
  filter: grayscale(0.2);
  cursor: default;
  user-select: none;
}

.qw-pill--ghost {
  background: #f8fafc;
  cursor: pointer;
}

.qw-pill--ghost:hover {
  border-color: #cbd5e1;
  background: #f1f5f9;
}

/* 占位入口：与其它「敬请期待」一致暗化，并弱化幽灵按钮的 hover */
.qw-pill--ghost.qw-pill--soon {
  opacity: 0.42;
  filter: grayscale(0.45);
  color: #64748b;
  background: #e2e8f0;
  border-color: #cbd5e1;
  box-shadow: none;
  cursor: default;
}

.qw-pill--ghost.qw-pill--soon:hover {
  border-color: #cbd5e1;
  background: #e2e8f0;
  filter: grayscale(0.45);
}

.qw-section {
  margin-top: 3.25rem;
  padding-bottom: 0.5rem;
}

.qw-section-intro {
  position: relative;
  text-align: center;
  margin-bottom: 1.35rem;
}

.qw-deco-dot {
  position: absolute;
  left: 12%;
  top: 0.35rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--qw-orange);
  opacity: 0.85;
}

@media (max-width: 720px) {
  .qw-deco-dot {
    display: none;
  }
}

.qw-section-title {
  margin: 0 0 0.4rem;
  font-size: clamp(1.55rem, 3.5vw, 2.35rem);
  font-weight: 800;
  color: var(--qw-text);
  text-align: center;
}

.qw-section-lead {
  text-align: center;
  margin: 0 auto;
  max-width: 40rem;
  font-size: clamp(0.95rem, 1.9vw, 1.08rem);
}

.qw-changelog-card {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 0;
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.qw-changelog-days {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.qw-changelog-card--day .qw-changelog-h {
  font-size: 1.08rem;
  margin-bottom: 0.65rem;
}

@media (max-width: 720px) {
  .qw-changelog-card {
    grid-template-columns: 1fr;
  }
}

.qw-changelog-side {
  padding: 1.35rem 1.1rem;
  background: linear-gradient(180deg, #fff7ed 0%, #fff 100%);
  border-right: 1px solid var(--card-border);
}

@media (max-width: 720px) {
  .qw-changelog-side {
    border-right: none;
    border-bottom: 1px solid var(--card-border);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
  }
}

.qw-changelog-ver {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--qw-orange);
  line-height: 1.1;
}

.qw-changelog-date {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0.25rem 0 0.85rem;
}

.qw-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.qw-tag {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.2rem 0.45rem;
  border-radius: 6px;
  background: #fff;
  color: var(--qw-orange);
  border: 1px solid rgba(234, 88, 12, 0.3);
}

.qw-tag--major {
  background: var(--qw-orange-soft);
}

.qw-changelog-main {
  padding: 1.35rem 1.5rem 1.5rem;
}

.qw-changelog-h {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--qw-text);
}

.qw-changelog-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

@media (max-width: 720px) {
  .qw-changelog-cols {
    grid-template-columns: 1fr;
  }
}

.qw-changelog-subh {
  margin: 0 0 0.5rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #475569;
  letter-spacing: 0.06em;
}

.qw-changelog-list {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.86rem;
  line-height: 1.65;
  color: #475569;
}

.qw-changelog-list--icons {
  list-style: none;
  padding-left: 0.15rem;
  font-size: 0.88rem;
}

.qw-changelog-list li {
  margin-bottom: 0.4rem;
}

.qw-changelog-notes {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.86rem;
}

.qw-changelog-notes li {
  margin-bottom: 0.75rem;
  padding-left: 0.5rem;
  border-left: 3px solid rgba(234, 88, 12, 0.35);
}

.qw-changelog-notes strong {
  display: block;
  color: var(--qw-text);
  margin-bottom: 0.15rem;
}

.qw-changelog-notes span {
  color: var(--muted);
  line-height: 1.55;
}

/* —— 功能示意区：对齐 Qclaw 类落地页的浅灰底 + 白框叠卡轮播 —— */
.qw-showcase.qw-snap-section.qw-section {
  margin-top: 2.75rem;
}

.qw-showcase {
  padding: 2.75rem 0 3.25rem;
  background: #ffffff;
  border-top: 1px solid #f0f0f0;
  border-bottom: 1px solid #f0f0f0;
  box-shadow: none;
}

body.landing-page .qw-showcase {
  background-color: #ffffff;
  background-image: var(--qw-landing-deco-grid-h), var(--qw-landing-deco-grid-v), var(--qw-landing-deco-terrain);
  background-size: 44px 44px, 44px 44px, 400px 400px;
  background-position: 0 0, 0 0, 8px 28px;
  background-repeat: repeat, repeat, repeat;
}

.qw-showcase .qw-snap-inner {
  max-width: 56rem;
}

.qw-showcase .qw-section-title {
  margin-top: 0.35rem;
  color: #18181b;
}

.qw-showcase .qw-section-lead {
  color: #52525b;
}

.qw-snap-inner--wide {
  max-width: 62rem;
}

.qw-changelog-card--rich .qw-changelog-main {
  padding: 1.5rem 1.65rem 1.65rem;
}

.qw-changelog-list--icons .qw-li-ico {
  color: var(--qw-orange);
  margin-right: 0.35rem;
  font-weight: 700;
}

.qw-changelog-notes--cards > li {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  margin-bottom: 0.75rem;
  padding: 0.75rem 0.85rem;
  border-radius: var(--radius-md);
  background: #f8fafc;
  border: 1px solid var(--card-border);
  list-style: none;
  border-left: none;
  padding-left: 0.85rem;
}

.qw-changelog-notes--cards strong {
  display: inline;
  margin-bottom: 0;
  margin-right: 0.2rem;
}

.qw-changelog-notes--cards .qw-note-ico {
  flex-shrink: 0;
  width: 1.65rem;
  height: 1.65rem;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--qw-orange-soft);
  color: var(--qw-orange);
  font-size: 0.85rem;
  font-weight: 800;
}

.qw-show-carousel {
  margin-top: 2.15rem;
}

/* 仅作布局容器，不要白底描边（叠窗直接落在分区背景上） */
.qw-show-carousel__bezel {
  max-width: 960px;
  margin: 0 auto;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.qw-show-carousel__stage {
  position: relative;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  min-height: clamp(300px, 52vh, 520px);
  padding-bottom: 1.25rem;
  isolation: isolate;
}

/* 中心柔光（对标 Qclaw 图架背后的光晕） */
.qw-show-carousel__stage::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 44%;
  transform: translate(-50%, -50%);
  width: min(94%, 760px);
  height: min(82%, 440px);
  border-radius: 32px;
  background: radial-gradient(
    ellipse at center,
    rgba(249, 115, 22, 0.16) 0%,
    rgba(254, 215, 170, 0.08) 42%,
    transparent 72%
  );
  pointer-events: none;
  z-index: 0;
}

/* 一前二后：中间全尺寸清晰，左右略缩进 + 虚化（参考 Qclaw 叠窗轮播） */
.qw-wb-card {
  --qw-carousel-side: clamp(100px, 17vw, 198px);
  position: absolute;
  left: 50%;
  top: 0;
  width: calc(100% - 28px);
  max-width: 860px;
  margin: 0;
  transform: translateX(-50%) translateY(12px) scale(0.82);
  transform-origin: center top;
  opacity: 0;
  z-index: 5;
  transition:
    opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.5s ease;
  pointer-events: none;
  filter: blur(6px) saturate(0.7) brightness(0.86);
  visibility: hidden;
}

.qw-wb-card[data-carousel-pos="center"] {
  transform: translateX(-50%) translateY(0) scale(1);
  opacity: 1;
  z-index: 20;
  /* 示意图为静态内容；设为 none 便于点击穿透到两侧缩略窗（叠层区域） */
  pointer-events: none;
  filter: none;
  visibility: visible;
}

.qw-wb-card[data-carousel-pos="left"] {
  transform: translateX(calc(-50% - var(--qw-carousel-side))) translateY(26px) scale(0.76);
  opacity: 0.68;
  z-index: 10;
  filter: blur(4px) saturate(0.68) brightness(0.87);
  visibility: visible;
  pointer-events: auto;
  cursor: pointer;
}

.qw-wb-card[data-carousel-pos="right"] {
  transform: translateX(calc(-50% + var(--qw-carousel-side))) translateY(26px) scale(0.76);
  opacity: 0.68;
  z-index: 11;
  filter: blur(4px) saturate(0.68) brightness(0.87);
  visibility: visible;
  pointer-events: auto;
  cursor: pointer;
}

.qw-wb-card[data-carousel-pos="hidden"] {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  filter: blur(8px);
}

.qw-wb-shell {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: clamp(268px, 47vh, 452px);
  border-radius: 14px;
  overflow: hidden;
  background: #0f172a;
  border: 4px solid #f97316;
  box-shadow:
    0 20px 50px rgba(15, 23, 42, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    0 0 32px rgba(249, 115, 22, 0.12);
}

.qw-wb-card[data-carousel-pos="center"] .qw-wb-shell {
  box-shadow:
    0 28px 64px rgba(15, 23, 42, 0.32),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 0 48px rgba(249, 115, 22, 0.18);
}

.qw-wb-chrome {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0.48rem 0.75rem;
  background: #020617;
  border-bottom: 1px solid #1e293b;
  flex-shrink: 0;
}

.qw-wb-chrome span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.qw-wb-chrome span:nth-child(1) {
  background: #f87171;
}

.qw-wb-chrome span:nth-child(2) {
  background: #fbbf24;
}

.qw-wb-chrome span:nth-child(3) {
  background: #38bdf8;
}

.qw-wb-body {
  display: flex;
  flex: 1;
  min-height: 0;
  min-width: 0;
}

.qw-wb-side {
  width: 7.25rem;
  flex-shrink: 0;
  padding: 0.7rem 0.45rem;
  background: #020617;
  color: #94a3b8;
  font-size: 0.74rem;
  font-weight: 600;
  border-right: 1px solid #1e293b;
}

.qw-wb-side__item {
  padding: 0.48rem 0.42rem;
  border-radius: 8px;
  margin-bottom: 0.2rem;
  cursor: default;
}

.qw-wb-side__item.is-on {
  background: rgba(249, 115, 22, 0.14);
  color: #fffbeb;
  border: 1px solid rgba(249, 115, 22, 0.28);
}

.qw-wb-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #0f172a;
}

.qw-wb-toolbar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid #1e293b;
  font-size: 0.72rem;
}

.qw-wb-pill {
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.68rem;
  background: rgba(56, 189, 248, 0.22);
  color: #bae6fd;
}

.qw-wb-pill--soft {
  background: rgba(56, 189, 248, 0.15);
  color: #7dd3fc;
}

.qw-wb-muted {
  color: #64748b;
  font-family: var(--font-mono);
  font-size: 0.68rem;
}

.qw-wb-table {
  padding: 0.85rem 0.75rem 1rem;
  font-size: 0.74rem;
}

.qw-wb-tr {
  display: grid;
  grid-template-columns: 1fr 4.5rem 3.5rem;
  gap: 0.35rem;
  padding: 0.42rem 0.35rem;
  border-radius: 6px;
  color: #cbd5e1;
}

.qw-wb-tr--head {
  color: #64748b;
  font-weight: 700;
  font-size: 0.68rem;
  border-bottom: 1px solid #1e293b;
  margin-bottom: 0.35rem;
}

.qw-wb-ok {
  color: #fcd34d;
}
.qw-wb-run {
  color: #7dd3fc;
}
.qw-wb-done {
  color: #fdba74;
}

.qw-wb-log {
  margin: 0;
  flex: 1;
  padding: 0.75rem 0.85rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  line-height: 1.55;
  color: #a5b4fc;
  background: #020617;
  overflow: hidden;
}

.qw-wb-files {
  padding: 0.85rem 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.qw-wb-file {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.6rem;
  border-radius: 8px;
  background: #1e293b;
  color: #e2e8f0;
  font-size: 0.74rem;
  font-family: var(--font-mono);
}

.qw-wb-file--dim {
  opacity: 0.65;
}

.qw-wb-file__icon {
  color: #38bdf8;
  font-size: 0.65rem;
}

@media (prefers-reduced-motion: reduce) {
  .qw-wb-card:not([data-carousel-pos="center"]) {
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateX(-50%) translateY(0) scale(0.98) !important;
    pointer-events: none !important;
    filter: none !important;
  }

  .qw-wb-card[data-carousel-pos="center"] {
    visibility: visible !important;
    filter: none !important;
  }
}

.qw-section--faq .qw-section-title {
  margin-bottom: 0.35rem;
}

.qw-faq-list {
  max-width: 560px;
  margin: 1.25rem auto 0;
}

.qw-faq-item {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  margin-bottom: 0.55rem;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.qw-faq-item:hover {
  border-color: #d4d4d8;
}

.qw-faq-item > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.95rem 1.05rem;
  font-weight: 700;
  color: #18181b;
  font-size: 0.9rem;
}

.qw-faq-item > summary::-webkit-details-marker {
  display: none;
}

.qw-faq-item > summary::after {
  content: "+";
  flex-shrink: 0;
  font-size: 1.1rem;
  font-weight: 400;
  color: #f97316;
  line-height: 1;
  width: 1.5rem;
  height: 1.5rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
}

.qw-faq-item[open] > summary::after {
  content: "\2212";
}

.qw-faq-item > p {
  margin: 0;
  padding: 0 1.05rem 0.95rem;
  font-size: 0.85rem;
  line-height: 1.6;
  color: #52525b;
}

.landing-footer-qw {
  position: relative;
  margin-top: 0;
  padding: 2.25rem 1.5rem 2rem;
  border-top: 1px solid var(--card-border);
  background: #fff;
  overflow: hidden;
}

.landing-footer-qw.qw-snap-section {
  margin-top: 0;
}

.landing-footer-qw__inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.landing-footer-qw__row {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 0.85rem;
}

.landing-footer-qw__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.brand-mark--sm {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.landing-footer-qw__name {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--qw-text);
}

.landing-footer-qw__copy {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.6;
}

.modal--auth {
  max-width: min(440px, 94vw);
}

.modal-auth-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.25rem;
}

.modal-auth-head h2 {
  margin: 0;
  font-size: 1.1rem;
}

.modal-close-btn {
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  nav.topnav {
    width: 100%;
    justify-content: flex-start;
    gap: 0.5rem;
  }

  nav.topnav a,
  nav.topnav .nav-user,
  nav.topnav button.ghost {
    padding: 0.55rem 1rem;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  main {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .hero h1 {
    font-size: 1.35rem;
  }

  .qw-hero-title {
    font-size: clamp(1.35rem, 6vw, 1.85rem);
  }

  .qw-snap-section {
    padding-left: 1rem;
    padding-right: 1rem;
    scroll-snap-stop: normal;
  }

  .brand-title--nw {
    font-size: 0.88rem;
  }

  .qw-actions-row {
    flex-direction: column;
    align-items: center;
  }

  .qw-chip {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  .qw-showcase {
    padding: 2rem 0 2.5rem;
  }

  .qw-show-carousel__stage {
    min-height: clamp(260px, 52vh, 420px);
    padding-bottom: 1rem;
  }

  .qw-wb-card {
    --qw-carousel-side: clamp(64px, 13vw, 120px);
  }

  .qw-wb-shell {
    min-height: clamp(240px, 49vh, 380px);
  }
}

/* ========== 工作台 app.html + 登录 login.html：与门户首页同系（:is 共用） ========== */
body:is(.app-workspace, .auth-page) {
  --qw-orange: #ea580c;
  --qw-orange-soft: #fff7ed;
  --qw-text: #0f172a;
  background-color: #ffffff;
  --qw-landing-deco-grid-h: linear-gradient(rgba(100, 116, 139, 0.09) 1px, transparent 1px);
  --qw-landing-deco-grid-v: linear-gradient(90deg, rgba(100, 116, 139, 0.075) 1px, transparent 1px);
  --qw-landing-deco-terrain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400' viewBox='0 0 400 400'%3E%3Cg fill='none' stroke='%2394a3b8' stroke-width='0.55' opacity='0.3'%3E%3Cpath d='M0 86 Q96 50 205 88 T400 92'/%3E%3Cpath d='M0 162 Q118 200 262 160 T400 170'/%3E%3Cpath d='M0 246 Q102 226 254 262'/%3E%3Cpath d='M0 318 Q136 296 296 332'/%3E%3C/g%3E%3Cg fill='none' stroke='%23cbd5e1' stroke-width='0.42' opacity='0.24'%3E%3Cpath d='M68 54 L152 48 L166 94 L74 100 Z'/%3E%3Cpath d='M248 228 L318 220 L328 272 L256 278 Z'/%3E%3C/g%3E%3C/svg%3E");
}

body:is(.app-workspace, .auth-page)::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
}

body:is(.app-workspace, .auth-page) .bg-atlas {
  background: #ffffff;
}

body:is(.app-workspace, .auth-page) .bg-atlas::before {
  transform-origin: center center;
  opacity: 0;
  visibility: hidden;
  animation: none;
}

body:is(.app-workspace, .auth-page) .bg-atlas.bg-atlas--soft::after {
  opacity: 0.55;
  visibility: visible;
  background-image: var(--qw-landing-deco-grid-h), var(--qw-landing-deco-grid-v), var(--qw-landing-deco-terrain);
  background-size: 44px 44px, 44px 44px, 400px 400px;
  background-position: 0 0, 0 0, 14px 22px;
  background-repeat: repeat, repeat, repeat;
  mask-image: radial-gradient(ellipse 125% 100% at 50% 48%, #000 0%, #000 62%, rgba(0, 0, 0, 0.55) 82%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 125% 100% at 50% 48%, #000 0%, #000 62%, rgba(0, 0, 0, 0.55) 82%, transparent 100%);
}

body:is(.app-workspace, .auth-page) .topbar--landing {
  background: #ffffff;
  border-bottom: 1px solid #f0f0f0;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 1) inset;
  backdrop-filter: none;
}

body:is(.app-workspace, .auth-page) .brand-title--nw {
  color: #18181b;
  font-weight: 700;
}

body:is(.app-workspace, .auth-page) .brand-sub {
  color: #a1a1aa;
}

body:is(.app-workspace, .auth-page) .brand-pill {
  background: #fef3c7;
  color: #d97706;
  border-color: #fcd34d;
}

body:is(.app-workspace, .auth-page) .qw-brand-logo {
  box-shadow: 0 3px 12px rgba(249, 115, 22, 0.12);
}

body:is(.app-workspace, .auth-page) .qw-brand-logo img {
  filter: none;
}

body:is(.app-workspace, .auth-page) .topbar--qw nav.topnav a {
  color: #52525b;
  border-radius: 6px;
  padding: 0.35rem 0.55rem;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

body:is(.app-workspace, .auth-page) .topbar--qw nav.topnav a:hover {
  color: #f97316;
  background: #fff7ed;
  border-color: rgba(249, 115, 22, 0.22);
}

body:is(.app-workspace, .auth-page) .topbar--qw nav.topnav a.nav-active {
  background: #ffedd5;
  border-color: rgba(249, 115, 22, 0.35);
  color: #ea580c;
}

body:is(.app-workspace, .auth-page) .topbar--qw nav.topnav .nav-user {
  color: #71717a !important;
  border: 1px solid transparent;
}

body:is(.app-workspace, .auth-page) .topbar--qw nav.topnav button.ghost {
  color: #52525b;
  border: 1px solid #e4e4e7;
  background: #fafafa;
}

body:is(.app-workspace, .auth-page) .topbar--qw nav.topnav button.ghost:hover {
  color: #ea580c;
  border-color: rgba(249, 115, 22, 0.35);
  background: #fff7ed;
}

body:is(.app-workspace, .auth-page) a:not(.brand) {
  color: #ea580c;
  border-bottom-color: rgba(234, 88, 12, 0.35);
}

body:is(.app-workspace, .auth-page) a:not(.brand):hover {
  color: #c2410c;
  border-bottom-color: rgba(194, 65, 12, 0.5);
}

body:is(.app-workspace, .auth-page) main.landing--qw.app-workspace-main {
  max-width: 1040px;
  margin: 0 auto;
  padding: 1.35rem 1.5rem 3rem;
}

body:is(.app-workspace, .auth-page) .hero {
  margin-bottom: 1.65rem;
  padding: 0.85rem 0 0.35rem;
  text-align: center;
}

body:is(.app-workspace, .auth-page) .hero-kicker {
  color: var(--qw-orange);
  letter-spacing: 0.2em;
  font-weight: 600;
}

body:is(.app-workspace, .auth-page) .hero h1 {
  margin-bottom: 0.65rem;
  background: linear-gradient(105deg, #0f172a 0%, #334155 42%, #ea580c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

body:is(.app-workspace, .auth-page) .app-invite-hero-line {
  margin: 0 auto 0.85rem;
  max-width: 52rem;
  font-size: clamp(1.12rem, 2.6vw, 1.48rem);
  font-weight: 700;
  line-height: 1.45;
  color: #c2410c;
  letter-spacing: 0.02em;
}

body:is(.app-workspace, .auth-page) .app-invite-hero-line .invite-hero-code {
  font-family: var(--font-mono);
  font-size: 0.95em;
  font-weight: 700;
  padding: 0.12em 0.35em;
  border-radius: 6px;
  background: rgba(234, 88, 12, 0.1);
  color: #9a3412;
}

/* 与 .app-invite-hero-line 主色一致（图1「正在加载…」同款橙红；侧栏失败块略小字号见下） */
body:is(.app-workspace, .auth-page) .hero-invite-fallback {
  display: block;
  font-size: clamp(0.98rem, 2.1vw, 1.2rem);
  font-weight: 700;
  line-height: 1.55;
  color: #c2410c;
  letter-spacing: 0.01em;
}

/* 顶栏 #inviteHeroLine：字号/行高/字距与「正在加载…」完全一致（避免失败态看起来是另一档样式） */
body:is(.app-workspace, .auth-page) .app-invite-hero-line .hero-invite-fallback {
  font-size: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  color: inherit;
}

/* 覆盖全局 body… a:not(.brand)（#ea580c），保证失败文案内链接与 invite 色系一致 */
body:is(.app-workspace, .auth-page) .hero-invite-fallback a.hero-invite-fallback__link {
  color: #9a3412;
  text-decoration: underline;
  font-weight: 700;
  border-bottom-color: transparent;
}

body:is(.app-workspace, .auth-page) .hero-invite-fallback a.hero-invite-fallback__link:hover {
  color: #7c2d12;
  border-bottom-color: transparent;
}

/* 失败提示里的 code：与 .invite-hero-code 同系，避免被全局 code 灰字打断一行色调 */
body:is(.app-workspace, .auth-page) .app-invite-hero-line .hero-invite-fallback code {
  color: #9a3412;
  background: rgba(234, 88, 12, 0.1);
  border-color: rgba(234, 88, 12, 0.22);
}

body:is(.app-workspace, .auth-page) .hero-lead {
  margin-left: auto;
  margin-right: auto;
  max-width: 44rem;
  color: #52525b;
}

body:is(.app-workspace, .auth-page) .section-head::before {
  background: linear-gradient(180deg, #fb923c, #ea580c);
}

body:is(.app-workspace, .auth-page) .card h2 {
  color: #18181b;
  font-weight: 700;
}

body:is(.app-workspace, .auth-page) .card {
  border-color: #f0f0f0;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.045), 0 12px 32px rgba(15, 23, 42, 0.045);
}

body:is(.app-workspace, .auth-page) .card::before {
  background: linear-gradient(90deg, transparent, rgba(249, 115, 22, 0.85), rgba(251, 146, 60, 0.45), transparent);
  opacity: 0.48;
}

body:is(.app-workspace, .auth-page) .flow-strip {
  background: #ffffff;
  border: 1px solid #f0f0f0;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

body:is(.app-workspace, .auth-page) .flow-step strong {
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  box-shadow: 0 2px 8px rgba(249, 115, 22, 0.3);
}

body:is(.app-workspace, .auth-page) .flow-step em {
  color: #3f3f46;
}

body:is(.app-workspace, .auth-page) .notice-board-list {
  color: #3f3f46;
}

body:is(.app-workspace, .auth-page) .notice-board-list__muted {
  color: #71717a;
}

body:is(.app-workspace, .auth-page) .empty-hint {
  background: #fafafa;
  border-color: #e4e4e7;
}

body:is(.app-workspace, .auth-page) .footer-strip {
  background: #ffffff;
  border-top: 1px solid #f0f0f0;
  color: #71717a;
  letter-spacing: 0.05em;
}

/* 排除任务工作台侧栏分区按钮（.app-job-dash__tab），否则其类名含 ghost 但并非 .ghost，会被误判成主按钮橙色 */
body:is(.app-workspace, .auth-page)
  button:not(.qw-btn):not(.secondary):not(.danger):not(.ghost):not(.app-job-dash__tab):not(:disabled) {
  background: linear-gradient(145deg, #f59e0b 0%, #f97316 45%, #ea580c 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.35);
}

body:is(.app-workspace, .auth-page)
  button:not(.qw-btn):not(.secondary):not(.danger):not(.ghost):not(.app-job-dash__tab):not(:disabled):hover {
  box-shadow: 0 6px 22px rgba(249, 115, 22, 0.45);
}

body:is(.app-workspace, .auth-page) button.secondary:hover {
  border-color: rgba(249, 115, 22, 0.35);
  color: #ea580c;
}

body:is(.app-workspace, .auth-page) dialog.modal .row button:not(.secondary):not(.danger):not(.ghost):not(.qw-btn) {
  background: linear-gradient(145deg, #f59e0b 0%, #f97316 45%, #ea580c 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.35);
}

body:is(.app-workspace, .auth-page) dialog.modal .row button:not(.secondary):not(.danger):not(.ghost):not(.qw-btn):hover {
  box-shadow: 0 6px 22px rgba(249, 115, 22, 0.45);
}

body:is(.app-workspace, .auth-page) input:focus,
body:is(.app-workspace, .auth-page) textarea:focus,
body:is(.app-workspace, .auth-page) select:focus {
  border-color: #fb923c;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.16);
}

body:is(.app-workspace, .auth-page) label {
  color: #64748b;
}

body:is(.app-workspace, .auth-page) button.job-history-btn--active {
  border-color: rgba(249, 115, 22, 0.45) !important;
  background: #ffedd5 !important;
  color: #c2410c !important;
}

body:is(.app-workspace, .auth-page) pre.log,
body:is(.app-workspace, .auth-page) .job-console-card pre.job-console {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #0f172a;
}

body:is(.app-workspace, .auth-page) .muted {
  color: #71717a;
}

/* 登录页：卡片内标题区与 Tab（覆盖全局 Tab 绿色） */
body.auth-page .auth-hero {
  margin-bottom: 1rem;
  padding-top: 0;
  text-align: center;
}

body.auth-page .auth-hero-lead {
  font-size: 0.9rem;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

body.auth-page .auth-card.card {
  width: 100%;
  max-width: min(440px, 94vw);
  margin-left: auto;
  margin-right: auto;
}

body.auth-page .tab-group {
  background: #fffbeb;
  border-color: #fde68a;
}

body.auth-page .tab-group button.tab-on {
  color: #ea580c !important;
  border: 1px solid rgba(249, 115, 22, 0.42) !important;
  background: #fff7ed !important;
  box-shadow: 0 1px 5px rgba(249, 115, 22, 0.12) !important;
}

body.auth-page .reg-gate {
  background: #fffbeb;
  border-color: #fde68a;
}

body.auth-page .reg-gate strong {
  color: #9a3412;
}

body.auth-page .alert-inline.ok {
  background: #fff7ed;
  border: 1px solid #fdba74;
  color: #9a3412;
}

/* 工作台：使用须知弹窗 + 三栏概览（对齐门户叠卡气质） */
body.app-workspace .modal--notice {
  max-width: min(520px, 94vw);
}

body.app-workspace .modal-inner--notice {
  padding: 1.35rem 1.45rem 1.5rem;
}

body.app-workspace .modal--notice h2 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
  color: #18181b;
}

body.app-workspace .app-notice-intro {
  margin: 0 0 0.85rem;
  font-size: 0.88rem;
  line-height: 1.55;
}

body.app-workspace .app-notice-list {
  margin: 0 0 0.85rem;
  padding-left: 1.2rem;
  color: #3f3f46;
  font-size: 0.88rem;
  line-height: 1.65;
}

body.app-workspace .app-notice-list li {
  margin-bottom: 0.45rem;
}

body.app-workspace .app-notice-stats {
  margin: 0 0 1rem;
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-md);
  background: #fffbeb;
  border: 1px solid #fde68a;
  font-size: 0.84rem;
  line-height: 1.55;
}

body.app-workspace .app-notice-stats code {
  font-size: 0.82rem;
}

body.app-workspace .row--notice-actions {
  justify-content: flex-end;
}

body.app-workspace .app-section--gen .section-head {
  flex-wrap: wrap;
}

body.app-workspace .app-section--gen .section-head .secondary {
  margin-left: auto;
}

/* 「提交生成图则」：默认银白底黑字，悬停橙底白字（覆盖工作台页主按钮橙色全局规则） */
body.app-workspace .app-section--gen button#btnGen:not(:disabled) {
  background: linear-gradient(180deg, #ffffff 0%, #e8ecf1 100%);
  color: #0f172a;
  border: 1px solid #cbd5e1;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.07);
}

body.app-workspace .app-section--gen button#btnGen:not(:disabled):hover {
  background: linear-gradient(145deg, #f59e0b 0%, #f97316 45%, #ea580c 100%);
  color: #ffffff;
  border-color: rgba(124, 45, 18, 0.35);
  box-shadow: 0 6px 22px rgba(249, 115, 22, 0.42);
}

body.app-workspace .app-section--gen button#btnGen:not(:disabled):focus-visible {
  outline: 2px solid rgba(249, 115, 22, 0.55);
  outline-offset: 2px;
}

body.app-workspace .app-section--gen button#btnGen.btn-loading:not(:disabled) {
  opacity: 0.88;
  cursor: wait;
}

body.app-workspace .app-triplet {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  margin-top: 1.35rem;
}

@media (min-width: 900px) {
  body.app-workspace .app-triplet {
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
  }
}

body.app-workspace .app-triplet__panel {
  border-radius: 14px;
  border: 1px solid #f0f0f0;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 11rem;
}

body.app-workspace .app-triplet__title {
  margin: 0;
  padding: 0.55rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ea580c;
  background: linear-gradient(180deg, #fff7ed 0%, #ffffff 100%);
  border-bottom: 1px solid #ffedd5;
}

body.app-workspace .app-triplet__body {
  flex: 1;
  padding: 0.65rem 0.75rem 0.85rem;
  font-size: 0.86rem;
  line-height: 1.55;
}

body.app-workspace .app-triplet__body--scroll {
  max-height: 14rem;
  overflow: auto;
}

body.app-workspace .app-triplet__panel--detail {
  min-height: 12rem;
}

body.app-workspace .app-triplet__panel--detail > .app-triplet__title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin: 0;
  padding: 0.55rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ea580c;
  background: linear-gradient(180deg, #fff7ed 0%, #ffffff 100%);
  border-bottom: 1px solid #ffedd5;
}

body.app-workspace .app-triplet__panel--detail .app-triplet__title {
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
}

body.app-workspace .app-triplet__body--job-detail {
  max-height: 20rem;
}

body.app-workspace .empty-hint--triplet {
  font-size: 0.82rem;
  line-height: 1.55;
  margin: 0;
}

/* —— 任务工作台（深色队列示意） —— */
body.app-workspace .app-job-dash-wrap {
  margin-top: 0.5rem;
}

body.app-workspace .app-job-dash {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 0.35rem;
  padding: 0.9rem 1rem 1.15rem;
  border-radius: 14px;
  background: linear-gradient(165deg, #0b1120 0%, #1e293b 45%, #0f172a 100%);
  border: 1px solid #334155;
  color: #e2e8f0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

@media (min-width: 720px) {
  body.app-workspace .app-job-dash {
    flex-direction: row;
    align-items: flex-start;
    gap: 1rem;
  }
}

body.app-workspace .app-job-dash__tabs {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.45rem;
}

@media (min-width: 720px) {
  body.app-workspace .app-job-dash__tabs {
    flex-direction: column;
    min-width: 7.25rem;
    flex-shrink: 0;
  }
}

body.app-workspace button.app-job-dash__tab {
  display: block;
  width: 100%;
  padding: 0.48rem 0.72rem;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  font-family: inherit;
  text-align: center;
  border: 1px solid #cbd5e1;
  color: #1e293b;
  background: linear-gradient(180deg, #ffffff 0%, #e2e8f0 100%);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

@media (max-width: 719px) {
  body.app-workspace button.app-job-dash__tab {
    width: auto;
    min-width: 6.5rem;
  }
}

/* 未选中：悬停与选中一致，橙底白字，提示可点 */
body.app-workspace button.app-job-dash__tab:not(.app-job-dash__tab--active):hover {
  color: #ffffff !important;
  border-color: rgba(124, 45, 18, 0.88) !important;
  background: linear-gradient(180deg, #fb923c 0%, #ea580c 100%) !important;
  box-shadow: 0 6px 18px rgba(234, 88, 12, 0.38);
}

body.app-workspace button.app-job-dash__tab--active,
body.app-workspace button.app-job-dash__tab.app-job-dash__tab--active {
  color: #ffffff !important;
  border-color: rgba(124, 45, 18, 0.88) !important;
  background: linear-gradient(180deg, #fb923c 0%, #ea580c 100%) !important;
  box-shadow: 0 6px 18px rgba(234, 88, 12, 0.38);
}

body.app-workspace button.app-job-dash__tab--active:hover,
body.app-workspace button.app-job-dash__tab.app-job-dash__tab--active:hover {
  color: #ffffff !important;
  border-color: rgba(124, 45, 18, 0.88) !important;
  background: linear-gradient(180deg, #fb923c 0%, #ea580c 100%) !important;
  box-shadow: 0 6px 18px rgba(234, 88, 12, 0.42);
}

body.app-workspace button.app-job-dash__tab--ghost {
  text-align: center;
}

body.app-workspace .app-job-dash__main {
  flex: 1;
  min-width: 0;
}

body.app-workspace .app-job-dash__banner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem 0.75rem;
  margin-bottom: 0.85rem;
}

body.app-workspace .app-job-dash__pill {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: rgba(148, 163, 184, 0.2);
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, 0.35);
}

body.app-workspace .app-job-dash__pill.is-running {
  background: rgba(56, 189, 248, 0.18);
  color: #bae6fd;
  border-color: rgba(56, 189, 248, 0.45);
}

body.app-workspace .app-job-dash__pill.is-done {
  background: rgba(34, 197, 94, 0.2);
  color: #86efac;
  border-color: rgba(34, 197, 94, 0.48);
}

body.app-workspace .app-job-dash__pill.is-failed {
  background: rgba(244, 63, 94, 0.15);
  color: #fecdd3;
  border-color: rgba(244, 63, 94, 0.4);
}

body.app-workspace .app-job-dash__queue-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: #f8fafc;
  letter-spacing: 0.02em;
}

body.app-workspace .app-job-dash__banner-meta {
  font-size: 0.82rem;
  color: #cbd5e1;
}

body.app-workspace .app-job-dash__sections {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

body.app-workspace .app-job-dash__h {
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fb923c;
}

body.app-workspace .app-job-dash__hint {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  color: #cbd5e1;
  line-height: 1.45;
}

body.app-workspace .app-job-dash__block-body {
  font-size: 0.88rem;
  line-height: 1.55;
}

body.app-workspace .app-job-dash__brief-label {
  margin: 0.55rem 0 0.25rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

body.app-workspace .app-job-dash__brief {
  margin: 0;
  padding: 0.5rem 0.6rem;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid #334155;
  color: #cbd5e1;
  max-height: 7.5rem;
  overflow: auto;
}

body.app-workspace .app-job-dash__tablewrap {
  border-radius: 10px;
  border: 1px solid #334155;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.35);
}

body.app-workspace .app-job-dash__tablewrap--scroll {
  max-height: 14rem;
  overflow: auto;
}

body.app-workspace #dash-sec-history .app-job-dash__table--wide {
  min-width: 44rem;
}

body.app-workspace .tri-progress-owner {
  font-weight: 600;
  color: #fde68a;
}

body.app-workspace .app-job-dash__hist-user {
  font-weight: 600;
  color: #e2e8f0;
}

body.app-workspace .app-job-dash__hist-unit {
  color: #94a3b8;
  font-size: 0.92em;
}

body.app-workspace .app-job-dash__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

body.app-workspace .app-job-dash__table th {
  text-align: left;
  padding: 0.45rem 0.65rem;
  font-weight: 700;
  color: #cbd5e1;
  background: rgba(30, 41, 59, 0.9);
  border-bottom: 1px solid #334155;
}

body.app-workspace .app-job-dash__table td {
  padding: 0.5rem 0.65rem;
  border-bottom: 1px solid rgba(51, 65, 85, 0.85);
  vertical-align: top;
}

body.app-workspace .app-job-dash__table tr:last-child td {
  border-bottom: none;
}

body.app-workspace .app-job-dash__mono {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #f1f5f9;
}

body.app-workspace .app-job-dash__pct {
  font-weight: 700;
  color: #e2e8f0;
}

body.app-workspace .app-job-dash__time {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: #b8c6d9;
  white-space: nowrap;
}

body.app-workspace .app-job-dash__st {
  font-weight: 600;
}

body.app-workspace .app-job-dash__table tr.is-queued .app-job-dash__st {
  color: #fb923c;
}

body.app-workspace .app-job-dash__table tr.is-running .app-job-dash__st {
  color: #38bdf8;
}

body.app-workspace .app-job-dash__table tr.is-done .app-job-dash__st {
  color: #86efac;
}

/* 进程表状态列：整格着色，与 span 规则双保险（避免 DevTools 选 td 时仍见继承色） */
body.app-workspace #dashProcessTbody tr.is-done > td:nth-child(2) {
  color: #86efac;
}

body.app-workspace .app-job-dash__table tr.is-failed .app-job-dash__st {
  color: #fb7185;
}

body.app-workspace .app-job-dash__td-muted {
  padding: 0.65rem;
  color: #a1b4cf;
  font-size: 0.84rem;
}

body.app-workspace .app-job-dash__td-links {
  font-size: 0.76rem;
}

body.app-workspace .app-job-dash__links {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

body.app-workspace .app-job-dash__links a {
  color: #fdba74;
  text-decoration: none;
}

body.app-workspace .app-job-dash__links a:hover {
  text-decoration: underline;
}

body.app-workspace .app-job-dash__mini-btn {
  padding: 0.2rem 0.45rem;
  font-size: 0.72rem;
}

body.app-workspace .app-job-dash__muted-inline {
  color: #64748b;
}

body.app-workspace .app-job-dash__results .task-tile {
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid #475569;
  border-radius: 10px;
  padding: 0.55rem 0.65rem;
  margin-bottom: 0.5rem;
}

body.app-workspace .app-job-dash__results .task-tile:last-child {
  margin-bottom: 0;
}

body.app-workspace .app-job-dash__results .task-tile strong {
  color: #f8fafc;
}

body.app-workspace .app-job-dash__results a {
  color: #fdba74;
}

body.app-workspace .app-job-dash__results .muted {
  color: #94a3b8 !important;
}

body.app-workspace .app-job-dash__results-history .task-tile {
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid #475569;
  border-radius: 10px;
  padding: 0.55rem 0.65rem;
  margin-top: 0.45rem;
}

body.app-workspace .app-job-dash__results-history .task-tile strong {
  color: #f8fafc;
}

body.app-workspace .app-job-dash__results-history a {
  color: #fdba74;
}

body.app-workspace .app-job-dash__hist-results-card {
  border: 1px solid #334155;
  border-radius: 12px;
  padding: 0.65rem 0.75rem;
  margin-bottom: 0.75rem;
  background: rgba(15, 23, 42, 0.35);
}

body.app-workspace .app-job-dash__hist-results-card:last-child {
  margin-bottom: 0;
}

body.app-workspace .app-job-dash__hist-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.82rem;
}

body.app-workspace .app-job-dash__hist-body {
  border-top: 1px solid rgba(51, 65, 85, 0.75);
  padding-top: 0.5rem;
}

body.app-workspace .app-job-dash__invite-body {
  font-size: 0.9rem;
  line-height: 1.6;
}

/* 侧栏「我的邀请码」失败提示：与上方 .app-job-dash__hint 同档灰字、小字号（不沿用顶栏 hero 橙红） */
body.app-workspace #dashInviteBody.app-job-dash__invite-body > .hero-invite-fallback {
  display: block;
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.45;
  font-weight: 400;
  letter-spacing: 0;
  color: #cbd5e1;
}

body.app-workspace #dashInviteBody.app-job-dash__invite-body > .hero-invite-fallback a.hero-invite-fallback__link {
  color: #94a3b8;
  font-weight: 500;
}

body.app-workspace #dashInviteBody.app-job-dash__invite-body > .hero-invite-fallback a.hero-invite-fallback__link:hover {
  color: #e2e8f0;
}

body.app-workspace #dashInviteBody.app-job-dash__invite-body > .hero-invite-fallback code {
  color: #94a3b8;
  background: rgba(148, 163, 184, 0.12);
  border-color: rgba(148, 163, 184, 0.28);
}

body.app-workspace #dashInviteBody.app-job-dash__invite-body > .hero-invite-fallback strong {
  color: #e2e8f0;
  font-weight: 600;
}

body.app-workspace .app-job-dash__invite-line {
  margin: 0 0 0.5rem;
}

body.app-workspace .app-job-dash__invite-code {
  font-size: 1.05rem !important;
  padding: 0.15em 0.4em !important;
}

@media (min-width: 720px) {
  body.app-workspace .app-job-dash__tab--ghost {
    width: 100%;
  }
}

body.app-workspace .app-job-dash__console-full-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-top: 0.5rem;
}

body.app-workspace .app-job-dash__full-console {
  margin-top: 0.45rem;
  max-height: min(48vh, 560px);
  min-height: 10rem;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
  background: rgba(2, 6, 23, 0.65);
  border: 1px solid #334155;
  color: #cbd5e1;
  overflow: auto;
}

body.app-workspace .app-job-dash__pct-cell {
  min-width: 7.5rem;
  vertical-align: middle;
}

body.app-workspace .app-job-dash__prog {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

body.app-workspace .app-job-dash__prog-track {
  flex: 1;
  height: 0.48rem;
  border-radius: 999px;
  background: rgba(30, 41, 59, 0.95);
  overflow: hidden;
  min-width: 2.5rem;
}

body.app-workspace .app-job-dash__prog-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #38bdf8, #22c55e);
  transition: width 0.65s ease;
}

body.app-workspace .app-job-dash__table tr.is-done .app-job-dash__prog-fill {
  background: linear-gradient(90deg, #4ade80, #16a34a);
}

body.app-workspace .app-job-dash__table tr.is-queued .app-job-dash__prog-fill {
  background: linear-gradient(90deg, #fb923c, #f97316);
}

body.app-workspace .app-job-dash__prog-fill--busy {
  position: relative;
  overflow: hidden;
}

body.app-workspace .app-job-dash__prog-fill--busy::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  animation: appDashBarSweep 1.35s ease-in-out infinite;
}

@keyframes appDashBarSweep {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

body.app-workspace .app-job-dash__prog-label {
  font-weight: 800;
  font-size: 0.75rem;
  color: #e2e8f0;
  min-width: 2.35rem;
  text-align: right;
}

/* 当前进度卡片：整体进度条 */
body.app-workspace .tri-progress {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

body.app-workspace .tri-progress-bar {
  flex: 1;
  height: 0.55rem;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
  min-width: 0;
}

body.app-workspace .tri-progress-bar__fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #22c55e, #16a34a);
  transition: width 0.7s cubic-bezier(0.33, 1, 0.68, 1);
}

body.app-workspace .tri-progress--busy .tri-progress-bar__fill {
  background: linear-gradient(90deg, #38bdf8, #22c55e);
}

body.app-workspace .tri-progress-bar__fill--busy {
  position: relative;
  overflow: hidden;
}

body.app-workspace .tri-progress-bar__fill--busy::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  animation: triBarSweep 1.4s ease-in-out infinite;
}

@keyframes triBarSweep {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

body.app-workspace .tri-progress-pct {
  font-weight: 800;
  font-size: 0.84rem;
  color: #0f172a;
  min-width: 2.6rem;
  text-align: right;
}

body.app-workspace .job-history-bar--compact {
  flex-direction: column;
  align-items: stretch;
}

body.app-workspace .job-history-bar--compact .job-history-btn {
  width: 100%;
  text-align: left;
  justify-content: flex-start;
  white-space: normal;
  line-height: 1.45;
  word-break: break-word;
}

body.app-workspace .app-console-preview {
  display: block;
  margin: 0;
  max-height: 12rem;
  overflow: auto;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 8px;
  padding: 0.5rem 0.55rem;
  border: 1px solid #334155;
}

body.app-workspace .task-actions--3 {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.65rem;
  align-items: center;
  margin-top: 0.55rem;
}

/* 管理员：邀请码注册占用总览表 */
body.app-workspace .admin-invite-overview {
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  background: var(--card-bg);
}

body.app-workspace .admin-invite-overview__scroll {
  max-height: 22rem;
  overflow: auto;
  margin: 0;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

body.app-workspace .admin-invite-overview__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}

body.app-workspace .admin-invite-overview__table th,
body.app-workspace .admin-invite-overview__table td {
  padding: 0.45rem 0.55rem;
  text-align: left;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: top;
}

body.app-workspace .admin-invite-overview__table th {
  background: #f8fafc;
  font-weight: 700;
  position: sticky;
  top: 0;
  z-index: 1;
  box-shadow: 0 1px 0 #e2e8f0;
}
