/* 作者、审稿人、管理员、公共视图与稿件详情页（views_c）。只用 styles.css 的设计令牌。 */

/* 登录 */
.vc-login { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); background: var(--bg); }
.vc-login-intro { background: var(--brand); color: #fff; padding: 48px 44px; display: flex; flex-direction: column; gap: 22px; }
.vc-login-intro h1 { font-size: 26px; margin: 0; color: #fff; }
.vc-login-intro p { margin: 0; opacity: .88; max-width: 520px; }
.vc-flow-mini { display: flex; flex-wrap: wrap; gap: 6px; font-size: 12px; }
.vc-flow-mini span { background: rgba(255,255,255,.12); border-radius: 12px; padding: 2px 10px; }
.vc-roles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.vc-role { display: flex; gap: 10px; align-items: flex-start; background: rgba(255,255,255,.08); border-radius: 8px; padding: 10px; font-size: 12px; line-height: 1.5; }
.vc-role svg { width: 20px; height: 20px; flex: none; margin-top: 2px; }
.vc-role b { display: block; font-size: 13px; }
.vc-login-main { padding: 48px 36px; display: flex; flex-direction: column; gap: 18px; justify-content: center; max-width: 520px; width: 100%; box-sizing: border-box; }

/* 环节全景 */
.vc-flow { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; counter-reset: node; }
.vc-node { position: relative; text-align: left; border: 1px solid var(--line); background: var(--panel); border-radius: var(--radius); padding: 10px 12px 10px 38px; cursor: pointer; color: var(--ink); font: inherit; opacity: 0; transform: translateY(6px); transition: opacity .35s ease, transform .35s ease, border-color .2s, box-shadow .2s; }
.vc-node.lit { opacity: 1; transform: none; }
.vc-node::before { counter-increment: node; content: counter(node); position: absolute; left: 10px; top: 11px; width: 20px; height: 20px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-size: 11px; display: grid; place-items: center; font-weight: 600; }
.vc-node:hover { border-color: var(--brand-2); }
.vc-node.on { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-soft); }
.vc-node b { display: block; font-size: 13px; }
.vc-node small { display: block; color: var(--ink-3); font-size: 11px; margin: 2px 0 6px; }
.vc-node .chip { font-size: 11px; }
.vc-detail { margin-top: 14px; }
.vc-detail h3 { margin: 0 0 8px; }
.vc-matrix td, .vc-matrix th { text-align: center; white-space: nowrap; }
.vc-matrix td:first-child, .vc-matrix th:first-child { text-align: left; white-space: normal; }
.vc-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--brand); }
.vc-dot.part { background: transparent; border: 2px solid var(--brand-2); width: 5px; height: 5px; }

/* 稿件卡片 */
.vc-cards { display: grid; gap: 12px; }
.vc-ms-card { display: flex; flex-direction: column; gap: 8px; }
.vc-ms-card .top-line { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 12px; color: var(--ink-3); }
.vc-ms-card h3 { margin: 0; font-size: 15px; overflow-wrap: anywhere; }
.vc-ms-card h3 a { color: var(--ink); }
.vc-prog { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.vc-prog span { height: 5px; border-radius: 3px; background: var(--line); }
.vc-prog span.done { background: var(--brand); }
.vc-prog span.cur { background: var(--accent); }
.vc-prog-l { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; font-size: 11px; color: var(--ink-3); }
.vc-cta { background: var(--accent-soft); border-left: 3px solid var(--accent); border-radius: 6px; padding: 8px 10px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 13px; }

/* 投稿向导 */
.vc-authors { display: grid; gap: 8px; }
.vc-author-row { display: grid; grid-template-columns: 1.1fr 1.2fr 1.6fr auto auto; gap: 8px; align-items: center; }
.vc-author-row .input { min-width: 0; }
.vc-inline { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--ink-2); white-space: nowrap; }
.vc-progress { height: 6px; border-radius: 3px; background: var(--panel-2); overflow: hidden; margin: 10px 0; }
.vc-progress span { display: block; height: 100%; background: var(--brand-2); transition: width .2s; }
.vc-foot { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.vc-sum dd { white-space: pre-wrap; }

/* 详情 */
.vc-head-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 12px; color: var(--ink-3); }
.vc-actions { display: flex; flex-direction: column; gap: 8px; }
.vc-actions .btn { justify-content: flex-start; width: 100%; box-sizing: border-box; }
.vc-pre { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; line-height: 1.7; background: var(--panel-2); border-radius: 8px; padding: 10px 12px; margin: 6px 0 0; }
.vc-review { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; margin-bottom: 10px; }
.vc-review .row { font-size: 12px; color: var(--ink-3); }
.vc-note { border-bottom: 1px solid var(--line); padding: 8px 0; }
.vc-note:last-child { border-bottom: 0; }

/* 审稿 */
.vc-score { display: grid; grid-template-columns: 110px 1fr; gap: 8px; align-items: center; margin-bottom: 10px; }
.vc-score .pill-toggle button { min-width: 36px; }
.vc-private { border: 1px dashed var(--warn); border-radius: 8px; padding: 10px 12px; background: var(--warn-soft); }
.vc-days { font-variant-numeric: tabular-nums; font-weight: 600; }
.vc-days.late { color: var(--bad); }

/* 专家库导入 */
.vc-map { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px 12px; }

@media (max-width: 960px) {
  .vc-login { grid-template-columns: minmax(0, 1fr); }
  .vc-login-main { order: -1; max-width: none; }
}
@media (max-width: 560px) {
  .vc-login-intro, .vc-login-main { padding: 24px 16px; }
  .vc-author-row { grid-template-columns: minmax(0, 1fr); border-bottom: 1px solid var(--line); padding-bottom: 8px; }
  .vc-score { grid-template-columns: minmax(0, 1fr); }
  .vc-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vc-prog-l { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) { .vc-node { opacity: 1; transform: none; transition: none; } }
/* V2：环节全景"当前环节"沿流程走一遍 */
.vc-node.passed::before { background: var(--brand); color: #fff; transition: background .3s; }
.vc-node.walk { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft), 0 6px 16px rgba(18,78,102,.14); transform: translateY(-2px); transition: transform .3s, box-shadow .3s, border-color .3s; }
.privacy-card .card-head h2 svg { width: 18px; height: 18px; flex: none; }
@media (prefers-reduced-motion: reduce) { .vc-node.walk { transform: none; transition: none; } }
