/* 耕云客户视角 Demo · 样式
   设计令牌集中在 :root，视觉定稿后替换变量即可全局生效。 */

:root {
  --brand: #1677FF;
  --brand-hover: #4096ff;
  --brand-active: #0958d9;
  --brand-soft: #e6f4ff;
  --brand-soft-2: #f0f7ff;

  --ink: #1f2329;
  --ink-2: #4e5969;
  --ink-3: #86909c;
  --ink-4: #a9aeb8;

  --line: #e5e6eb;
  --line-2: #f0f0f2;
  --bg: #f5f7fa;
  --surface: #ffffff;
  --surface-2: #f7f8fa;

  --success: #00b42a;
  --success-soft: #e8ffea;
  --warning: #ff7d00;
  --warning-soft: #fff7e8;
  --danger: #f53f3f;
  --danger-soft: #ffece8;
  --info: #86909c;

  /* 云纹点缀金：只用于品牌云纹，不参与界面功能色 */
  --gold: #c99a3f;

  --radius: 8px;
  --radius-sm: 4px;
  --radius-lg: 12px;
  --shadow: 0 1px 3px rgba(0, 0, 0, .08);
  --shadow-lg: 0 4px 16px rgba(0, 0, 0, .12);

  --font: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Hiragino Sans GB", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "Cascadia Code", Consolas, monospace;
  --fs-xs: 12px;
  --fs-sm: 13px;
  --fs-base: 14px;
  --fs-md: 16px;
  --fs-lg: 20px;
  --fs-xl: 26px;
  --fs-2xl: 34px;

  --maxw: 1200px;
  --sidebar: 232px;
  --topbar: 56px;

  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  /* 数字等宽：金额、日期、编号在列表中纵向对齐 */
  font-variant-numeric: tabular-nums;
}
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-hover); }
h1, h2, h3, h4, h5, p, ul, ol, figure { margin: 0; }
ul, ol { padding-left: 0; list-style: none; }
button { font-family: inherit; font-size: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: inherit; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* ============ 布局 ============ */
.app-root { min-height: 100vh; }

/* 页面进场：路由切换时 innerHTML 生成新节点，动画随之重放 */
@keyframes page-in { from { opacity: 0; transform: translateY(6px); } }
#app > div { animation: page-in .18s ease; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--sp-5);
}

/* 官网 / 登录：全宽页面 */
.page-site { background: var(--surface); min-height: 100vh; display: flex; flex-direction: column; }

/* 工作台：侧边栏 + 内容 */
.layout {
  display: grid;
  grid-template-columns: var(--sidebar) 1fr;
  min-height: 100vh;
}
.sidebar {
  background: var(--surface);
  border-right: 1px solid var(--line);
  padding: var(--sp-4) 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.sidebar__brand {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 0 var(--sp-4) var(--sp-4);
  font-size: var(--fs-md);
  font-weight: 600;
  color: var(--ink);
}
.sidebar__section {
  padding: var(--sp-3) var(--sp-4) var(--sp-2);
  font-size: var(--fs-xs);
  color: var(--ink-4);
  letter-spacing: .5px;
}
.sidebar__item {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-4);
  color: var(--ink-2);
  border-left: 3px solid transparent;
  cursor: pointer;
}
.sidebar__item:hover { background: var(--surface-2); color: var(--ink); }
.sidebar__item.is-active {
  background: var(--brand-soft);
  color: var(--brand);
  border-left-color: var(--brand);
  font-weight: 600;
}
.sidebar__item.is-disabled { color: var(--ink-4); cursor: not-allowed; }
/* 侧边栏模块图标：随文字颜色，激活项不降透明度 */
.sidebar__item svg { flex-shrink: 0; opacity: .7; transition: opacity .15s; }
.sidebar__item:hover svg { opacity: 1; }
.sidebar__item.is-active svg { opacity: 1; }

.main { display: flex; flex-direction: column; min-width: 0; }
.topbar {
  height: var(--topbar);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--sp-5);
  position: sticky;
  top: 0;
  z-index: 20;
}
.topbar__left { display: flex; align-items: center; gap: var(--sp-3); min-width: 0; }
.topbar__right { display: flex; align-items: center; gap: var(--sp-3); }
/* 顶栏首字头像 */
.avatar {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: var(--fs-xs);
  font-weight: 600;
  flex-shrink: 0;
}
.content { padding: var(--sp-5); flex: 1; min-width: 0; }

/* 窄屏模拟容器 */
.is-mobile .content { max-width: 390px; margin: 0 auto; padding: var(--sp-3); }
.is-mobile .topbar { padding: 0 var(--sp-3); }
.is-mobile .sidebar { display: none; }
.is-mobile .layout { grid-template-columns: 1fr; }

/* ============ 页头 ============ */
.page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-4);
  margin-bottom: var(--sp-5);
  flex-wrap: wrap;
}
.page-head__title { font-size: var(--fs-xl); font-weight: 600; letter-spacing: -.2px; }
.page-head__desc { margin-top: var(--sp-2); color: var(--ink-2); font-size: var(--fs-base); max-width: 720px; }
.page-head__actions { display: flex; gap: var(--sp-2); flex-shrink: 0; }

.section-title {
  font-size: var(--fs-md);
  font-weight: 600;
  margin: var(--sp-6) 0 var(--sp-3);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}
.section-title::before {
  content: "";
  width: 3px;
  height: 14px;
  background: var(--brand);
  border-radius: 2px;
}

/* ============ 按钮 ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  height: 34px;
  padding: 0 var(--sp-4);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font-size: var(--fs-base);
  transition: all .15s;
  white-space: nowrap;
}
.btn:hover { border-color: var(--brand); color: var(--brand); }
.btn:disabled { cursor: not-allowed; opacity: .5; border-color: var(--line); color: var(--ink-3); background: var(--surface-2); }
.btn:disabled:hover { border-color: var(--line); color: var(--ink-3); }

.btn--primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  box-shadow: 0 2px 8px rgba(22, 119, 255, .24);
}
.btn--primary:hover {
  background: var(--brand-hover);
  border-color: var(--brand-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(22, 119, 255, .32);
}
.btn--primary:disabled { background: var(--brand); border-color: var(--brand); color: #fff; opacity: .45; transform: none; box-shadow: none; }
.btn--primary:disabled:hover { background: var(--brand); border-color: var(--brand); color: #fff; }

.btn--danger { color: var(--danger); border-color: var(--danger); }
.btn--danger:hover { background: var(--danger); border-color: var(--danger); color: #fff; }

.btn--text { border-color: transparent; background: transparent; padding: 0 var(--sp-2); color: var(--brand); }
.btn--text:hover { background: var(--brand-soft); }

.btn--lg { height: 42px; padding: 0 var(--sp-6); font-size: var(--fs-md); }
.btn--sm { height: 28px; padding: 0 var(--sp-3); font-size: var(--fs-sm); }
.btn--block { width: 100%; }

.btn__spinner {
  width: 13px; height: 13px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin .6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============ 卡片 ============ */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--sp-5);
}
.card--flat { box-shadow: none; }
.card--pad-sm { padding: var(--sp-4); }
/* 可选项卡片被选中时的高亮（蓝色边框，兼容两种类名写法） */
.card--selected,
.card.is-selected {
  border-color: var(--brand);
  background: var(--brand-soft);
  box-shadow: 0 0 0 1px var(--brand) inset;
}
.card--selectable { cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.card--selectable:hover { border-color: var(--brand); }
.list__row.is-selected { background: var(--brand-soft); }
/* 平台模块卡片内的元信息行 */
.card__meta {
  margin-top: var(--sp-3);
  display: flex;
  gap: var(--sp-3);
  font-size: var(--fs-xs);
  color: var(--ink-3);
}
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: var(--fs-xs);
  background: var(--surface-2);
  color: var(--ink-2);
}
.badge--success { background: var(--success-soft); color: var(--success); }
.card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  margin-bottom: var(--sp-3);
}
.card__title { font-size: var(--fs-md); font-weight: 600; }
.card__desc { color: var(--ink-2); font-size: var(--fs-sm); margin-top: var(--sp-1); }

/* 卡片标题与右侧标签同排：标题允许换行但末字不落单，标签不压缩 */
.card__head .card__title { flex: 1; min-width: 0; text-wrap: pretty; }
.card__head .tag { flex: none; white-space: nowrap; }

.grid { display: grid; gap: var(--sp-4); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.is-mobile .grid--2,
.is-mobile .grid--3,
.is-mobile .grid--4 { grid-template-columns: 1fr; }

/* ============ 徽标 / 标签 ============ */
.tag {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  padding: 1px var(--sp-2);
  border-radius: var(--radius-sm);
  font-size: var(--fs-xs);
  line-height: 20px;
  border: 1px solid transparent;
  white-space: nowrap;
}
.tag--default { background: var(--surface-2); color: var(--ink-2); border-color: var(--line); }
.tag--brand { background: var(--brand-soft); color: var(--brand); border-color: #bae0ff; }
.tag--success { background: var(--success-soft); color: var(--success); border-color: #aff0b5; }
.tag--warning { background: var(--warning-soft); color: var(--warning); border-color: #ffd08a; }
.tag--danger { background: var(--danger-soft); color: var(--danger); border-color: #fbaca3; }
.tag--dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.badge-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  background: var(--brand);
  color: #fff;
  font-size: var(--fs-xs);
}

/* ============ 步骤条 ============ */
.steps { display: flex; align-items: flex-start; }
.steps__item { flex: 1; text-align: center; position: relative; }
.steps__item::before {
  content: "";
  position: absolute;
  top: 14px;
  left: -50%;
  width: 100%;
  height: 1px;
  background: var(--line);
  z-index: 0;
}
.steps__item:first-child::before { display: none; }
.steps__item.is-done::before, .steps__item.is-current::before { background: var(--brand); }
.steps__dot {
  position: relative;
  z-index: 1;
  width: 28px; height: 28px;
  margin: 0 auto var(--sp-2);
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink-3);
  display: flex; align-items: center; justify-content: center;
  font-size: var(--fs-xs);
}
.steps__item.is-done .steps__dot { background: var(--brand); border-color: var(--brand); color: #fff; }
.steps__item.is-current .steps__dot { border-color: var(--brand); color: var(--brand); font-weight: 600; }
.steps__label { font-size: var(--fs-sm); color: var(--ink-2); }
.steps__item.is-current .steps__label { color: var(--brand); font-weight: 600; }
.steps__item.is-done .steps__label { color: var(--ink); }

/* ============ 时间轴 ============ */
.timeline { position: relative; padding-left: var(--sp-6); }
.timeline::before {
  content: "";
  position: absolute;
  left: 9px; top: 6px; bottom: 6px;
  width: 1px;
  background: var(--line);
}
.timeline__item { position: relative; padding-bottom: var(--sp-5); }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__dot {
  position: absolute;
  left: calc(-1 * var(--sp-6) + 4px);
  top: 3px;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--line);
}
.timeline__item.is-done .timeline__dot { background: var(--brand); border-color: var(--brand); }
.timeline__item.is-current .timeline__dot { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.timeline__title { font-size: var(--fs-base); font-weight: 600; }
.timeline__item.is-todo .timeline__title { color: var(--ink-3); font-weight: 400; }
.timeline__desc { color: var(--ink-2); font-size: var(--fs-sm); margin-top: var(--sp-1); }
.timeline__meta { color: var(--ink-3); font-size: var(--fs-xs); margin-top: var(--sp-1); }

/* ============ 表单 ============ */
.form { display: grid; gap: var(--sp-4); }
.form__row { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-4); }
/* 三列 / 四列行：人名等短字段并排，压缩表单纵向长度 */
.form__row--3 { grid-template-columns: repeat(3, 1fr); }
.form__row--4 { grid-template-columns: repeat(4, 1fr); }
.is-mobile .form__row,
.is-mobile .form__row--3,
.is-mobile .form__row--4 { grid-template-columns: 1fr; }

.field { display: flex; flex-direction: column; gap: var(--sp-2); }
.field__label { font-size: var(--fs-sm); color: var(--ink-2); }
.field__label .req { color: var(--danger); margin-right: 2px; }
.field__control {
  height: 34px;
  padding: 0 var(--sp-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  width: 100%;
}
.field__control:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 2px var(--brand-soft); }
.field__control:disabled { background: var(--surface-2); color: var(--ink-3); }
textarea.field__control { height: auto; min-height: 76px; padding: var(--sp-2) var(--sp-3); line-height: 1.6; resize: vertical; }
.field--error .field__control { border-color: var(--danger); }
.field__error { color: var(--danger); font-size: var(--fs-xs); }
.field__hint { color: var(--ink-3); font-size: var(--fs-xs); }

.form-actions {
  display: flex;
  gap: var(--sp-3);
  justify-content: flex-end;
  margin-top: var(--sp-2);
}

/* ============ 列表 / 行 ============ */
.list { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.list__row {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  border-bottom: 1px solid var(--line-2);
}
.list__row:last-child { border-bottom: none; }
.list__row:hover { background: var(--surface-2); }
.list__main { flex: 1; min-width: 0; }
.list__name { font-weight: 500; }
.list__meta { color: var(--ink-3); font-size: var(--fs-xs); margin-top: 2px; }
.list__actions { display: flex; gap: var(--sp-2); flex-shrink: 0; }

/* 上传区 */
.dropzone {
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  padding: var(--sp-6) var(--sp-4);
  text-align: center;
  color: var(--ink-2);
}
.dropzone.is-over { border-color: var(--brand); background: var(--brand-soft); }
.dropzone__title { font-weight: 500; color: var(--ink); margin-bottom: var(--sp-1); }
.dropzone__hint { font-size: var(--fs-xs); color: var(--ink-3); }

/* 文件行 */
.file-row {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--line-2);
}
.file-row:last-child { border-bottom: none; }
.file-row__icon {
  width: 32px; height: 32px;
  border-radius: var(--radius-sm);
  background: var(--brand-soft);
  color: var(--brand);
  display: flex; align-items: center; justify-content: center;
  font-size: var(--fs-xs);
  flex-shrink: 0;
}
/* 按文件类型着色：PDF 红 / DOC 蓝 / XLS 绿 / 图片紫 */
.file-row__icon--pdf { background: #ffece8; color: #d4380d; }
.file-row__icon--doc { background: var(--brand-soft); color: var(--brand); }
.file-row__icon--xls { background: #e8ffea; color: #0a7a2a; }
.file-row__icon--img { background: #f9f0ff; color: #722ed1; }
.file-row__main { flex: 1; min-width: 0; }
.file-row__name { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-row__meta { color: var(--ink-3); font-size: var(--fs-xs); margin-top: 2px; display: flex; gap: var(--sp-3); flex-wrap: wrap; }
.file-row.is-failed .file-row__icon { background: var(--danger-soft); color: var(--danger); }

/* 检查项 */
.check-item {
  display: flex;
  gap: var(--sp-3);
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--line-2);
}
.check-item:last-child { border-bottom: none; }
.check-item__icon {
  width: 20px; height: 20px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: var(--fs-xs);
  flex-shrink: 0;
  margin-top: 2px;
}
.check-item__icon--pass { background: var(--success-soft); color: var(--success); }
.check-item__icon--missing { background: var(--warning-soft); color: var(--warning); }
.check-item__icon--pending { background: var(--surface-2); color: var(--ink-3); }
.check-item__main { flex: 1; min-width: 0; }
.check-item__name { font-weight: 500; }
.check-item__desc { color: var(--ink-2); font-size: var(--fs-sm); margin-top: 2px; }
.check-item__why { color: var(--ink-3); font-size: var(--fs-xs); margin-top: 2px; }

/* ============ 提示条 ============ */
.alert {
  display: flex;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-size: var(--fs-base);
}
.alert__icon { flex-shrink: 0; font-weight: 600; display: flex; margin-top: 3px; }
.alert--info { background: var(--brand-soft); border-color: #bae0ff; color: var(--brand-active); }
.alert--warning { background: var(--warning-soft); border-color: #ffd08a; color: #a35c00; }
.alert--success { background: var(--success-soft); border-color: #aff0b5; color: #0a7a2a; }
.alert--danger { background: var(--danger-soft); border-color: #fbaca3; color: #b01414; }
.alert__title { font-weight: 600; margin-bottom: 2px; }
.alert__body { font-size: var(--fs-sm); }

/* ============ 空状态 / 骨架 ============ */
.empty { text-align: center; padding: var(--sp-8) var(--sp-4); color: var(--ink-3); }
.empty__title { color: var(--ink-2); font-weight: 500; margin-bottom: var(--sp-2); }

.skeleton {
  background: linear-gradient(90deg, var(--surface-2) 25%, #eef0f3 37%, var(--surface-2) 63%);
  background-size: 400% 100%;
  animation: shimmer 1.2s ease-in-out infinite;
  border-radius: var(--radius-sm);
  height: 14px;
  margin-bottom: var(--sp-3);
}
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* ============ Toast ============ */
.toast-host {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  background: var(--ink);
  color: #fff;
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--radius);
  font-size: var(--fs-base);
  box-shadow: var(--shadow-lg);
  animation: toast-in .2s ease;
}
.toast svg { flex-shrink: 0; }
.toast--success { background: var(--success); }
.toast--error { background: var(--danger); }
.toast--warning { background: var(--warning); }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } }

/* ============ 演示控制条 ============ */
.dev-tools {
  position: fixed;
  right: var(--sp-4);
  bottom: var(--sp-4);
  z-index: 1500;
  font-family: var(--font);
}
.dev-tools__toggle {
  width: 46px; height: 46px;
  border-radius: 50%;
  border: none;
  background: var(--ink);
  color: #fff;
  font-size: var(--fs-sm);
  box-shadow: var(--shadow-lg);
  display: flex; align-items: center; justify-content: center;
}
.dev-tools__toggle:hover { background: #111; }
.dev-tools__panel {
  position: absolute;
  right: 0;
  bottom: 56px;
  width: 300px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: var(--sp-4);
  display: none;
}
.dev-tools.is-open .dev-tools__panel { display: block; }
.dev-tools__title { font-size: var(--fs-sm); font-weight: 600; margin-bottom: var(--sp-3); }
.dev-tools__group { margin-bottom: var(--sp-4); }
.dev-tools__label { font-size: var(--fs-xs); color: var(--ink-3); margin-bottom: var(--sp-2); }
.dev-tools__row { display: flex; gap: var(--sp-2); }
.dev-tools__row .field__control { height: 30px; font-size: var(--fs-sm); flex: 1; }
.dev-tools__state {
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  padding: var(--sp-2) var(--sp-3);
  font-size: var(--fs-sm);
  color: var(--ink-2);
}
.dev-tools__state b { color: var(--ink); }
.dev-tools__seg { display: flex; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.dev-tools__seg button {
  flex: 1;
  border: none;
  background: var(--surface);
  padding: var(--sp-2) 0;
  font-size: var(--fs-sm);
  color: var(--ink-2);
}
.dev-tools__seg button.is-active { background: var(--brand); color: #fff; }

/* ============ 官网 ============ */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-nav__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--sp-5);
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
}
.site-nav__links { display: flex; gap: var(--sp-5); }
.site-nav__links a { color: var(--ink-2); font-size: var(--fs-base); }
.site-nav__links a:hover { color: var(--brand); }

.logo { display: flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-md); font-weight: 600; color: var(--ink); }
.logo__mark {
  width: 28px; height: 28px;
  border-radius: var(--radius-sm);
  background: var(--brand);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: var(--fs-xs);
  font-weight: 700;
}
.logo__mark--lg { width: 36px; height: 36px; font-size: var(--fs-md); }

/* 首屏：背景图布满（cover），左侧渐白过渡到页面底色，文字区回到浅底深字 */
.hero {
  /* 内容区略增高：显示区域变大，无人机与建筑更完整 */
  padding: calc(var(--sp-8) * 1.5) 0;
  background:
    linear-gradient(90deg, var(--bg) 0%, var(--bg) 30%, rgba(251, 252, 254, .6) 48%, rgba(251, 252, 254, 0) 66%),
    url('hero-bg.jpg') center 40% / cover no-repeat;
}
/* 背景图底部渐隐，衔接下一屏 */
.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 90px;
  background: linear-gradient(180deg, transparent, var(--bg));
  pointer-events: none;
}
.hero { position: relative; }
.hero .wrap { position: relative; z-index: 2; }
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: var(--sp-6);
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 5px 14px;
  border: 1px solid #d8e4f8;
  border-radius: 999px;
  background: rgba(22, 119, 255, .05);
  font-size: var(--fs-xs);
  color: var(--brand-active);
}
.hero__badge i {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand);
  animation: badge-pulse 2.4s ease-in-out infinite;
}
@keyframes badge-pulse { 50% { opacity: .3; } }
.hero__title {
  margin-top: var(--sp-5);
  /* 两行结构：第二行 12 字，46px 内一行放下；左侧白底上用深色字 */
  font-size: clamp(32px, 4vw, 46px);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.5;
  color: var(--ink);
}
/* 「耕云智能」放大一档，品牌蓝强调 */
.hero__title em {
  font-style: normal;
  color: var(--brand);
  font-size: 1.25em;
  letter-spacing: -.02em;
}
/* 「耕云智能」四字逐字浮现：char 的 animation-delay 由视图内联给出 */
.hero__title .char {
  display: inline-block;
  opacity: 0;
  animation: char-in .8s ease forwards;
}
@keyframes char-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}
.hero__sub { margin-top: var(--sp-4); max-width: 480px; color: var(--ink-2); font-size: var(--fs-md); }
.hero__actions { margin-top: var(--sp-6); display: flex; gap: var(--sp-3); flex-wrap: wrap; }
.hero__note { margin-top: var(--sp-4); max-width: 480px; color: var(--ink-3); font-size: var(--fs-sm); line-height: 1.7; }
/* 首屏服务标签：年费覆盖的模块一目了然 */
.hero__tags {
  margin-top: var(--sp-6);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-3);
}
.hero__tag {
  /* 等宽胶囊：白底深字，文字居中，两行左右边缘对齐 */
  width: 104px;
  padding: 6px 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: var(--fs-sm);
  color: var(--ink-2);
}
/* 强制换行占位：撑满剩余空间把后续标签挤到下一行 */
.hero__tag-break { flex-basis: 100%; height: 0; }

/* 品牌云纹：等高线漂移动画（官网首屏与空状态共用实现） */
.cloud-art { display: block; width: 100%; height: auto; }
.cloud-ridges { animation: cloud-drift 16s ease-in-out infinite alternate; }
.cloud-ridges--slow { animation-duration: 22s; animation-delay: -7s; }
@keyframes cloud-drift {
  from { transform: translateX(-10px); }
  to   { transform: translateX(10px); }
}
.cloud-spark { animation: cloud-spark 3.2s ease-in-out infinite; }
.cloud-spark:nth-child(odd) { animation-delay: -1.6s; }
@keyframes cloud-spark { 0%, 100% { opacity: .25; } 50% { opacity: .9; } }
.is-mobile .hero__grid { grid-template-columns: 1fr; }
/* 窄屏下背景图裁切严重，回退为浅色底 */
.is-mobile .hero { background: var(--bg); }
@media (max-width: 900px) {
  .hero { background: var(--bg); }
}

/* 空状态云纹：小尺寸低透明度，仅作点缀 */
.empty__art { width: 110px; margin: 0 auto var(--sp-3); opacity: .55; }
/* 首页服务模块卡片可点击 */
.card--link { display: block; text-decoration: none; color: inherit; transition: border-color .15s, box-shadow .15s, transform .15s; }
.card--link:hover { border-color: var(--brand); box-shadow: var(--shadow-lg); transform: translateY(-1px); }
.site-section__subtitle { font-size: var(--fs-lg); margin-bottom: var(--sp-4); }

/* 四步合规循环：窄屏自动降为一列 */
.flow { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--sp-4); position: relative; }
.flow__card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--sp-5);
  position: relative;
}
.flow__no { font-size: var(--fs-xl); font-weight: 700; color: var(--brand-soft); line-height: 1; margin-bottom: var(--sp-3); }
.flow__title { font-size: var(--fs-md); font-weight: 600; margin-bottom: var(--sp-2); }
.flow__desc { color: var(--ink-2); font-size: var(--fs-sm); }
.is-mobile .flow { grid-template-columns: 1fr; }

.feature { display: flex; gap: var(--sp-3); align-items: flex-start; }
.feature__icon {
  width: 36px; height: 36px;
  border-radius: var(--radius);
  background: var(--brand-soft);
  color: var(--brand);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.feature__title { font-weight: 600; margin-bottom: var(--sp-1); }
.feature__desc { color: var(--ink-2); font-size: var(--fs-sm); }

.doc-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--sp-4);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.doc-card__name { font-weight: 600; }
.doc-card__desc { color: var(--ink-2); font-size: var(--fs-sm); flex: 1; }
.doc-card__meta { color: var(--ink-3); font-size: var(--fs-xs); display: flex; gap: var(--sp-3); }

/* 版块间距放宽：96px 上下，避免内容挤在一起 */
.site-section { padding: calc(var(--sp-8) * 1.5) 0; }
.site-section--alt { background: var(--surface-2); }
.site-section__title { font-size: var(--fs-xl); font-weight: 600; text-align: center; margin-bottom: var(--sp-6); }
.site-section__lead { text-align: center; color: var(--ink-2); max-width: 640px; margin: 0 auto var(--sp-6); }

.site-footer {
  border-top: 1px solid var(--line);
  padding: var(--sp-5) 0;
  color: var(--ink-3);
  font-size: var(--fs-sm);
  background: var(--surface);
}
.site-footer__inner { display: flex; justify-content: space-between; gap: var(--sp-4); flex-wrap: wrap; }

/* 登录 */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-2);
  padding: var(--sp-5);
}
.login-card { width: 100%; max-width: 380px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--sp-6); }
.login-card__head { text-align: center; margin-bottom: var(--sp-5); }
.login-card__title { font-size: var(--fs-lg); font-weight: 600; }
.login-card__desc { color: var(--ink-2); font-size: var(--fs-sm); margin-top: var(--sp-2); }

/* ============ 工作台卡片 ============ */
.todo-card {
  border: 1px solid var(--brand);
  background: var(--brand-soft-2);
  border-radius: var(--radius);
  padding: var(--sp-4);
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}
.todo-card__main { flex: 1; min-width: 0; }
.todo-card__title { font-weight: 600; }
.todo-card__desc { color: var(--ink-2); font-size: var(--fs-sm); margin-top: 2px; }

.task-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: var(--sp-4);
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
}
.task-card:hover { border-color: var(--brand); box-shadow: var(--shadow-lg); }
.task-card__main { flex: 1; min-width: 0; }
.task-card__title { font-weight: 600; }
.task-card__meta { color: var(--ink-3); font-size: var(--fs-xs); margin-top: 2px; display: flex; gap: var(--sp-3); flex-wrap: wrap; align-items: center; }

.stat { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: var(--sp-4); }
.stat__value { font-size: var(--fs-xl); font-weight: 700; line-height: 1.2; }
.stat__label { color: var(--ink-2); font-size: var(--fs-sm); margin-top: var(--sp-1); }

/* 工作台服务入口卡：图标 + 文案 + 悬浮箭头 */
.quick { display: flex; align-items: flex-start; gap: var(--sp-3); }
.quick__icon {
  width: 36px; height: 36px;
  border-radius: var(--radius);
  background: var(--brand-soft);
  color: var(--brand);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.quick__main { flex: 1; min-width: 0; }
.quick__arrow {
  align-self: center;
  color: var(--brand);
  opacity: 0;
  transform: translateX(-2px);
  transition: opacity .15s, transform .15s;
}
.quick:hover .quick__arrow { opacity: 1; transform: none; }

/* 到期时间：等宽突出，即将到期转警告色 */
.due { font-family: var(--font-mono); font-weight: 600; font-size: var(--fs-xs); }
.due--warn { color: var(--warning); }

/* 配额使用进度条 */
.quota-progress { max-width: 220px; margin-top: var(--sp-2); }
.progress__bar--warn { background: var(--warning); }

/* 资料版本分组 */
.file-group { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); margin-bottom: var(--sp-3); overflow: hidden; }
.file-group__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--sp-3) var(--sp-4);
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}
.file-group__name { font-weight: 500; }
.file-group__body { padding: 0 var(--sp-4); }

/* 工作台企业列表：多家时出滚动条 */
.ent-scroll { max-height: 264px; overflow-y: auto; }

/* 创建任务服务选择弹层 */
.picker-mask {
  position: fixed; inset: 0;
  background: rgba(13, 20, 34, .45);
  z-index: 3000;
  display: flex; align-items: center; justify-content: center;
}
.picker {
  width: 380px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
  box-shadow: 0 20px 60px rgba(9, 15, 30, .3);
  animation: page-in .18s ease;
}
.picker__opts { display: grid; gap: var(--sp-2); }
.picker__opt {
  display: flex; align-items: center; gap: var(--sp-3);
  width: 100%; text-align: left;
  padding: var(--sp-3) var(--sp-4);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.picker__opt:hover { border-color: var(--brand); background: var(--brand-soft-2); }
.picker__icon {
  width: 34px; height: 34px;
  border-radius: var(--radius);
  background: var(--brand-soft);
  color: var(--brand);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.picker__main { flex: 1; min-width: 0; }
.picker__main b { display: block; font-size: var(--fs-base); }
.picker__main small { color: var(--ink-3); font-size: var(--fs-xs); }
.picker__arrow { color: var(--brand); opacity: 0; transform: translateX(-2px); transition: opacity .15s, transform .15s; }
.picker__opt:hover .picker__arrow { opacity: 1; transform: none; }
.is-mobile .picker { width: calc(100% - 32px); }

/* 交付成果 */
.delivery-head {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: var(--sp-5);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-4);
  flex-wrap: wrap;
}
.delivery-head__title { font-size: var(--fs-lg); font-weight: 600; }
.delivery-head__meta { color: var(--ink-2); font-size: var(--fs-sm); margin-top: var(--sp-2); display: flex; gap: var(--sp-4); flex-wrap: wrap; }

/* 文档阅读 */
.doc-reader { display: grid; grid-template-columns: 200px 1fr; gap: var(--sp-5); align-items: start; }
.is-mobile .doc-reader { grid-template-columns: 1fr; }
.doc-toc { position: sticky; top: calc(var(--topbar) + var(--sp-4)); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: var(--sp-4); }
.doc-toc__title { font-size: var(--fs-sm); font-weight: 600; margin-bottom: var(--sp-3); }
.doc-toc__item { padding: var(--sp-1) 0; color: var(--ink-2); font-size: var(--fs-sm); cursor: pointer; }
.doc-toc__item:hover { color: var(--brand); }
.doc-body { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: var(--sp-6); }
.doc-body h3 { font-size: var(--fs-md); font-weight: 600; margin: var(--sp-5) 0 var(--sp-3); }
.doc-body h3:first-child { margin-top: 0; }
.doc-body p { color: var(--ink-2); margin-bottom: var(--sp-3); line-height: 1.8; }
.doc-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); margin-bottom: var(--sp-4); }
.doc-table th, .doc-table td { border: 1px solid var(--line); padding: var(--sp-2) var(--sp-3); text-align: left; }
.doc-table th { background: var(--surface-2); font-weight: 600; color: var(--ink); }

/* 结果页（审核中 / 已提交） */
.result-page {
  max-width: 520px;
  margin: var(--sp-8) auto;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--sp-7) var(--sp-5);
}
.result-page__icon {
  width: 56px; height: 56px;
  margin: 0 auto var(--sp-4);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
}
.result-page__icon--info { background: var(--brand-soft); color: var(--brand); }
.result-page__icon--warning { background: var(--warning-soft); color: var(--warning); }
.result-page__icon--success { background: var(--success-soft); color: var(--success); }
.result-page__title { font-size: var(--fs-lg); font-weight: 600; }
.result-page__desc { color: var(--ink-2); margin-top: var(--sp-3); }
.result-page__rules { text-align: left; margin: var(--sp-5) 0; }
.result-page__actions { display: flex; gap: var(--sp-3); justify-content: center; flex-wrap: wrap; }

.rule-list { display: grid; gap: var(--sp-2); }
.rule-list__item {
  display: flex;
  gap: var(--sp-2);
  font-size: var(--fs-sm);
  color: var(--ink-2);
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  padding: var(--sp-2) var(--sp-3);
}
.rule-list__item b { color: var(--ink); font-weight: 600; }
/* 条目圆点：替代字符 · */
.rule-list__bullet {
  flex-shrink: 0;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ink-4);
  margin-top: 8px;
}

/* 资料版本确认表 */
.confirm-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.confirm-table th, .confirm-table td { border: 1px solid var(--line); padding: var(--sp-2) var(--sp-3); text-align: left; }
.confirm-table th { background: var(--surface-2); font-weight: 600; }
.confirm-table td { color: var(--ink-2); }

/* AI 助手面板已下线，就地答疑由悬浮智能顾问承担（样式见 modules/advisor/advisor.css） */

/* ============ 安全台账 ============ */

/* 生成信息收起态：键值对清单 */
.kv { display: flex; flex-direction: column; gap: var(--sp-2); }
.kv__row { display: flex; gap: var(--sp-3); align-items: baseline; }
.kv__k {
  flex: 0 0 132px;
  color: var(--ink-3);
  font-size: var(--fs-sm);
}
.kv__v { flex: 1; min-width: 0; color: var(--ink); }

/* 生成进度条 */
.progress {
  height: 6px;
  background: var(--line-2);
  border-radius: 3px;
  overflow: hidden;
}
.progress__bar {
  height: 100%;
  background: var(--brand);
  border-radius: 3px;
  transition: width .3s ease;
}

/* 消防设施 / 生产设备可编辑行 */
.entry-list { display: flex; flex-direction: column; gap: var(--sp-2); }
.entry-row {
  display: grid;
  grid-template-columns: 1.6fr .7fr 1.6fr 1fr auto;
  gap: var(--sp-2);
  align-items: center;
}
.entry-row--equip { grid-template-columns: 1.4fr 1fr .6fr 1.4fr auto; }
.entry-row--tenant { grid-template-columns: 1.4fr 1.1fr .5fr .9fr .9fr .9fr auto; }
.entry-row--chem { grid-template-columns: 1.2fr .9fr 1fr 1fr 1fr auto; }
.entry-row--dept { grid-template-columns: 1.4fr 1fr auto; }
.entry-row .field__control { height: 32px; font-size: var(--fs-sm); }
/* 录入行表头：与数据行同网格对齐；表头文字不换行 */
.entry-head {
  display: grid;
  grid-template-columns: 1.6fr .7fr 1.6fr 1fr auto;
  gap: var(--sp-2);
  font-size: var(--fs-xs);
  color: var(--ink-3);
  padding: 0 2px;
}
.entry-head span { white-space: nowrap; }
.entry-head--equip { grid-template-columns: 1.4fr 1fr .6fr 1.4fr auto; }
.entry-head--tenant { grid-template-columns: 1.4fr 1.1fr .5fr .9fr .9fr .9fr auto; }
.entry-head--chem { grid-template-columns: 1.2fr .9fr 1fr 1fr 1fr auto; }
.entry-head--dept { grid-template-columns: 1.4fr 1fr auto; }

/* 应急小组：两列组块，两组的组员行对齐；组名可改可增删 */
.et-groups { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); align-items: start; }
.et-group { display: flex; flex-direction: column; gap: var(--sp-2); }
.et-group__row { display: grid; grid-template-columns: 1.2fr 1fr auto; gap: var(--sp-2); align-items: center; }
.is-mobile .et-groups { grid-template-columns: 1fr; }

/* 生成提示可能较多，限高滚动 */
.scroll-box {
  max-height: 160px;
  overflow-y: auto;
  line-height: 1.7;
}

/* 失败时的技术详情 */
.err-pre {
  margin: var(--sp-2) 0 0;
  padding: var(--sp-3);
  max-height: 180px;
  overflow: auto;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: var(--fs-xs);
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-all;
  color: var(--ink-2);
}

@media (max-width: 900px) {
  .entry-row,
  .entry-row--equip,
  .entry-row--tenant,
  .entry-row--chem { grid-template-columns: 1fr 1fr; }
  .entry-head { display: none; }
  .kv__row { flex-direction: column; gap: 2px; }
  .kv__k { flex: none; }
}

/* 通用工具类 */
.mt-1 { margin-top: var(--sp-1); }
.mt-2 { margin-top: var(--sp-2); }
.mt-3 { margin-top: var(--sp-3); }
.mt-4 { margin-top: var(--sp-4); }
.mt-5 { margin-top: var(--sp-5); }
.mt-6 { margin-top: var(--sp-6); }
.mb-2 { margin-bottom: var(--sp-2); }
.mb-3 { margin-bottom: var(--sp-3); }
.mb-4 { margin-bottom: var(--sp-4); }
.text-muted { color: var(--ink-2); }
.text-sm { font-size: var(--fs-sm); }
.text-xs { font-size: var(--fs-xs); }
.text-lg { font-size: var(--fs-lg); }
.text-danger { color: var(--danger); }
.text-success { color: var(--success); }
.text-brand { color: var(--brand); }
.flex { display: flex; }
.flex-gap { display: flex; gap: var(--sp-3); }
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); }
.flex-wrap { flex-wrap: wrap; }
.divider { height: 1px; background: var(--line); margin: var(--sp-5) 0; }
.hide { display: none !important; }

/* 悬浮智能顾问样式已拆分至 modules/advisor/advisor.css */

/* ============ 首次登录协议确认遮罩 ============ */
.agree-mask {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(15, 23, 42, .55);
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
}
.agree-card {
  background: var(--surface, #fff); border-radius: 12px;
  box-shadow: 0 16px 48px rgba(15, 23, 42, .25);
  max-width: 420px; width: 100%;
  padding: 24px;
}

/* ============ 协议与隐私政策静态页 ============ */
.legal-page { min-height: 100vh; background: var(--bg, #f5f7fa); }
.legal-body p { color: var(--ink-2, #475569); }
