/* ==========================================================================
   list.css —— 汇总索引页版式（条目列表）
   适用：sop/index.html、process/index.html、reference/index.html
   依赖：必须先引入 base.css
   ========================================================================== */

.container { max-width: 960px; }

/* --- 页头 ---------------------------------------------------------------- */
header { text-align: center; margin-bottom: 32px; }
header h1 { font-size: 28px; color: var(--c-primary); margin-bottom: 8px; }
header p { color: var(--c-muted); font-size: 14px; }

/* 页头内的返回链接（注意：与 sop.css 的底部 .back 按钮不是同一个东西） */
.back-link {
  display: inline-block;
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--c-primary-3);
  text-decoration: none;
}
.back-link:hover { text-decoration: underline; }

/* --- 顶部说明块 ---------------------------------------------------------- */
.meta {
  background: var(--c-tint);
  border-left: 4px solid var(--c-primary);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 28px;
  font-size: 14px;
  color: var(--c-primary-3);
}

/* --- 分区与分区标题 ------------------------------------------------------ */
section { margin-bottom: 28px; }

section > h2 {
  font-size: 18px;
  color: var(--c-primary);
  border-bottom: 2px solid var(--c-line-2);
  padding-bottom: 8px;
  margin-bottom: 14px;
}

/* --- 条目行 --------------------------------------------------------------
   两类索引页共用：SOP 汇总页原用 .sop-item，流程/参考文档页用 .doc-item，
   版式完全相同，已统一为 .doc-item
   -------------------------------------------------------------------------- */
.doc-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  margin-bottom: 10px;
  transition: box-shadow .2s, transform .2s;
}
.doc-item:hover { box-shadow: var(--shadow-hover); transform: translateY(-1px); }

.doc-item .info { display: flex; align-items: center; gap: 14px; }
.doc-item .name { font-size: 16px; font-weight: 600; }
.doc-item .name a { color: var(--c-ink); text-decoration: none; }
.doc-item .name a:hover { color: var(--c-primary); text-decoration: underline; }
.doc-item .desc { font-size: 13px; color: var(--c-muted); }

/* --- 右侧状态标签 -------------------------------------------------------- */
.status {
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 12px;
  white-space: nowrap;
}
.status.draft    { background: #f0f0f0; color: #888;    border: 1px solid #ddd; }     /* 已定稿 */
.status.trial    { background: #fff7e0; color: #b8860b; border: 1px solid #f0d890; }  /* 试行中 */
.status.pending  { background: #fafafa; color: #aaa;    border: 1px dashed #ccc; }    /* 待编写 */
.status.external { background: var(--c-tint); color: var(--c-primary-3); border: 1px solid #c9d8ea; } /* 外部文档 */
.status.attach   { background: #eef8f1; color: #2f7d4f;    border: 1px solid #c6e3d0; } /* 附件 / 样例（可下载） */
.status.live     { background: #e2efda; color: #1e6b34;    border: 1px solid #c6e3d0; } /* 已生效 / 已发布 */
