/* 阶段 4：UI/UX 体验增强样式 */

/* 1. 移动端抽屉导航 */
.mobile-nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 18px;
  line-height: 1;
  margin-right: 10px;
  flex-shrink: 0;
}
.topbar-left {
  display: flex;
  align-items: center;
  min-width: 0;
}
.mobile-nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(17, 43, 69, .42);
  z-index: 18;
  opacity: 0;
  transition: opacity .2s ease;
}

@media (max-width: 700px) {
  .mobile-nav-toggle { display: inline-flex; }
  .top-actions button:first-child { display: inline-flex; }
  .sidebar {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(272px, 82vw);
    z-index: 19;
    transform: translateX(-100%);
    transition: transform .22s ease;
    box-shadow: 0 12px 36px rgba(17, 43, 69, .24);
    overflow-y: auto;
  }
  .sidebar .brand { justify-content: flex-start; padding: 0 10px; }
  .sidebar .brand strong,
  .sidebar .brand small,
  .sidebar .nav-label,
  .sidebar .side-footer,
  .sidebar .project-nav .project-name { display: block; }
  .sidebar .nav-item { justify-content: space-between; padding: 11px 12px; }
  .sidebar .nav-item .count { display: inline; }
  body.mobile-nav-open { overflow: hidden; }
  body.mobile-nav-open .sidebar { transform: translateX(0); }
  body.mobile-nav-open .mobile-nav-backdrop { display: block; opacity: 1; }
}

/* 2. 项目概览步骤卡片直达 */
.step-card.is-interactive {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}
.step-card.is-interactive:hover,
.step-card.is-interactive:focus-visible {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(40, 87, 232, .1);
}
.step-card-cta {
  margin-top: auto;
  padding-top: 12px;
  color: var(--primary);
  font-size: 11px;
  font-weight: 600;
}

/* 3. 资料与目标附件管理列表 */
.brief-file-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}
.brief-file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfc;
}
.brief-file-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.brief-file-meta a,
.brief-file-meta strong {
  font-size: 12px;
  color: var(--ink);
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.brief-file-meta a:hover {
  color: var(--primary);
  text-decoration: underline;
}
.brief-file-meta span {
  font-size: 11px;
  color: var(--muted);
}
.brief-file-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
.brief-file-actions .button {
  padding: 6px 10px;
  font-size: 11px;
}
.brief-pending-files {
  margin-top: 8px;
  font-size: 11px;
  color: var(--primary);
}

/* 4. 2D 墙体编辑器撤销/重做与快捷键提示 */
.plan-editor-shortcuts {
  width: 100%;
  font-size: 11px;
  color: var(--muted);
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  padding-top: 8px;
  border-top: 1px dashed #e1e7ec;
}
.plan-editor-shortcuts kbd {
  font: 10px inherit;
  background: #f5f7f9;
  border: 1px solid #d4dde4;
  border-bottom-width: 2px;
  border-radius: 4px;
  padding: 1px 5px;
  color: #3f4f5c;
}
