:root{--gray-200:#fffaf0;--orange-500:#e5c15c;--gray-020:#ffffff;--red-230:#d64545;--gray-980:#e3def0;--gray-420:#fdf0ef;--red-060:#f3d2cf;--red-210:#d9534f;--gray-320:#fdf6e9;--orange-370:#efdfba;--orange-640:#b97e14;--gray-750:#edf7f1;--green-050:#cfe7d8;--green-280:#237a45;}
/* home.css - 我的论文首页（令牌见 base.css :root，与首页对齐） */
/* 资料待完善提醒条（可关闭、不挡操作；黄色只作提醒语义） */
.profile-reminder { display: flex; align-items: center; gap: 12px; margin: 0 20px 16px; padding: 12px 18px; background: var(--gray-200); border: 1px solid var(--orange-500); border-radius: 14px; color: var(--ink); font-size: 13.5px; }
.profile-reminder-text { flex: 1; line-height: 1.5; }
.profile-reminder-btn { border: 1px solid var(--dark); border-radius: 999px; padding: 7px 16px; font-size: 13px; font-weight: 600; color: var(--gray-020); background: var(--dark); cursor: pointer; white-space: nowrap; min-height: 40px; }
.profile-reminder-btn.ghost { background: var(--gray-020); color: var(--brand); border: 1px solid var(--brand); }
.profile-reminder-x { border: none; background: none; font-size: 18px; line-height: 1; color: var(--ink55); cursor: pointer; padding: 2px 4px; }
.dash-head-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-bottom: 24px; flex-wrap: wrap; }
.greet h1 { font-size: 26px; font-weight: 700; margin-bottom: 8px; }
.greet { flex: 1; min-width: 280px; }
.greet p { font-size: 14px; line-height: 1.8; color: var(--ink55); max-width: 560px; }
.head-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; flex-wrap: wrap; }
.btn-new { border: 1px solid var(--dark); border-radius: 999px; padding: 12px 28px; font-size: 15px; font-weight: 600; color: var(--gray-020); background: var(--dark); cursor: pointer; transition: transform .25s, box-shadow .25s; min-height: 48px; }
.btn-new:hover { transform: translateY(-2px); box-shadow: var(--shadow-s); }
.btn-import { border: 1px solid rgba(33,26,42,.16); border-radius: 999px; padding: 12px 24px; font-size: 15px; font-weight: 600; color: var(--ink); background: var(--gray-020); cursor: pointer; transition: border-color .25s, transform .25s; min-height: 48px; }
.btn-import:hover { border-color: var(--ink); transform: translateY(-2px); }
.import-hint { font-size: 12px; color: var(--ink40); white-space: nowrap; }
.stat-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stat-card { background: var(--gray-020); border-radius: 18px; padding: 22px; border: 1px solid var(--line); display: flex; align-items: center; gap: 16px; }
.stat-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; flex-shrink: 0; }
.stat-meta { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.stat-meta i { font-style: normal; font-size: 13px; color: var(--ink55); }
.stat-meta b { font-size: 24px; font-weight: 700; }
.docs-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.docs-head h2 { font-size: 20px; font-weight: 700; }
.docs-head a { font-size: 14px; color: var(--ink55); }
.docs-head a:hover { color: var(--brand); }
.doc-list { display: flex; flex-direction: column; gap: 14px; }
.doc-card { background: var(--gray-020); border-radius: 18px; padding: 20px 24px; display: flex; align-items: center; gap: 18px; border: 1px solid var(--line); transition: transform .2s, box-shadow .2s; }
.doc-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-s); }
.doc-icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 26px; flex-shrink: 0; }
.doc-main { flex: 1; min-width: 0; }
.doc-main h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.doc-desc { font-size: 13px; color: var(--ink55); margin-bottom: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.doc-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.doc-tags span { font-size: 12px; color: var(--brand); background: var(--brand-soft); border-radius: 999px; padding: 3px 12px; }
.doc-metrics { display: flex; gap: 16px; margin-top: 10px; font-size: 12px; color: var(--ink55); }
.doc-metrics b { color: var(--ink); font-weight: 700; }
.doc-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex-shrink: 0; }
.doc-time { font-size: 12px; color: var(--ink40); }
.doc-actions { display: flex; gap: 10px; flex-shrink: 0; position: relative; }
.btn-edit { border: 1px solid var(--dark); border-radius: 999px; padding: 10px 26px; font-size: 14px; font-weight: 600; color: var(--gray-020); background: var(--dark); cursor: pointer; min-height: 44px; }
.btn-edit:hover { opacity: .88; }
a.btn-edit { text-decoration: none; display: inline-flex; align-items: center; }
.btn-more { border: 1px solid var(--line); background: var(--gray-020); border-radius: 999px; padding: 10px 20px; font-size: 14px; color: var(--ink70); cursor: pointer; width: 108px; min-height: 44px; }
.btn-more:hover { border-color: var(--brand); color: var(--brand); }
.avatar-lg { width: 60px; height: 60px; border-radius: 50%; background: linear-gradient(135deg, var(--lav), var(--brand-soft)); display: grid; place-items: center; font-size: 30px; flex-shrink: 0; }

/* 论文列表：加载 / 空状态 */
.docs-state { background: var(--gray-020); border-radius: 18px; padding: 44px 20px; text-align: center; color: var(--ink55); font-size: 14px; border: 1px solid var(--line); }
.docs-state p { margin: 0 0 16px; }
.docs-state .btn-new { margin: 0 auto; }
.doc-menu { position: absolute; top: 52px; right: 0; background: var(--gray-020); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-s); padding: 4px; z-index: 30; width: 108px; display: flex; flex-direction: column; }
.doc-menu button { border: none; background: none; text-align: left; padding: 10px; border-radius: 8px; font-size: 13px; cursor: pointer; color: var(--ink); min-height: 40px; }
.doc-menu button:hover { background: var(--soft2); }
.doc-menu button.danger { color: var(--red-230); }
.doc-menu button .mi { display: inline-block; width: 22px; text-align: center; margin-right: 2px; }

/* 标题旁 AI 率徽章（异步填充：汇总未到/未检测显示 —） */
.doc-ai-badge { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 2px 9px; border-radius: 999px; margin-left: 8px; vertical-align: 2px; border: 1px solid var(--gray-980); background: var(--soft2); color: var(--ink55); white-space: nowrap; }
.doc-ai-badge.ai-high { background: var(--gray-420); border-color: var(--red-060); color: var(--red-210); }
.doc-ai-badge.ai-mid { background: var(--gray-320); border-color: var(--orange-370); color: var(--orange-640); }
.doc-ai-badge.ai-low { background: var(--gray-750); border-color: var(--green-050); color: var(--green-280); }

@media (max-width: 900px) {
  .stat-cards { grid-template-columns: 1fr; }
  .doc-card { flex-wrap: wrap; padding: 16px; }
  .doc-side { flex-direction: row; align-items: center; }
  .head-actions { width: 100%; }
}

/* ===== V1 改版第 2 批：主区（问候去白带/去横线 + 4 状态卡 + 继续处理 + 行表） ===== */
.home-head { background: transparent; border-bottom: none; padding-bottom: 2px; }
.stat-cards.v1-cards { grid-template-columns: repeat(4, 1fr); }
.v1-card { border-radius: 16px; padding: 18px 20px; display: flex; justify-content: space-between; gap: 12px; align-items: stretch; }
.v1-card.clickable { cursor: pointer; }
.v1-card-main { display: flex; flex-direction: column; min-width: 0; }
.v1-lab { font-size: 12.5px; color: var(--ink55); font-weight: 600; }
.v1-big { font-size: 30px; font-weight: 800; line-height: 1.15; margin: 5px 0 3px; }
.v1-big small { font-size: 13px; color: var(--ink55); font-weight: 600; }
.v1-note { font-size: 12.5px; color: var(--ink55); }
.v1-note .dotg { color: var(--green); font-weight: 700; }
.v1-mini { display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: 8px; flex: none; }
.v1-cap { font-size: 11.5px; color: var(--ink40); }
.stage-dots { display: flex; gap: 6px; }
.stage-dots i { width: 10px; height: 10px; border-radius: 50%; background: #ddd8ec; }
.stage-dots i.on { background: var(--brand); }
.pbar { width: 86px; height: 6px; background: #e9e5f6; border-radius: 99px; overflow: hidden; }
.pbar i { display: block; height: 100%; background: var(--brand); }
.seg { display: flex; gap: 4px; }
.seg i { width: 22px; height: 8px; border-radius: 99px; background: #e9e5f6; }
.seg i.on { background: var(--brand); }
.seg i.on-g { background: var(--green); }

.hero { display: grid; grid-template-columns: 1fr 372px; gap: 16px; padding: 20px 36px 0; }
.focus-card { background: var(--gray-020); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 10px 30px rgba(33,26,42,.08); padding: 20px 22px; min-width: 0; }
.sec-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.sec-head h2 { font-size: 17px; font-weight: 700; }
.sec-head .tag { font-size: 12px; color: var(--ink55); }
.focus-body { display: grid; grid-template-columns: 292px 1fr; gap: 22px; }
.docpage { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px 12px; box-shadow: 0 4px 14px rgba(33,26,42,.05); }
.docpage .school { text-align: center; font-size: 12px; color: var(--ink55); letter-spacing: 2px; border-bottom: 2px solid var(--ink); padding-bottom: 8px; }
.docpage .ttl { font-size: 16.5px; font-weight: 800; text-align: center; line-height: 1.5; margin: 11px 0 4px; }
.docpage .auth { text-align: center; font-size: 12px; color: var(--ink55); margin-bottom: 12px; }
.pline { height: 7px; border-radius: 4px; background: #e8e5f0; margin: 6px 0; }
.pline.s { width: 62%; margin-left: auto; margin-right: auto; }
.pline.m { width: 84%; }
.chap { font-size: 13px; font-weight: 700; margin: 10px 0 2px; }
.stages { display: flex; flex-direction: column; }
.srow { display: flex; align-items: center; gap: 11px; padding: 10px 2px; border-bottom: 1px dashed var(--line); }
.srow.clickable { cursor: pointer; }
.srow:last-of-type { border-bottom: none; }
.srow .ic { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; font-size: 14px; flex: none; font-weight: 800; }
.ic-g { background: var(--green-bg); color: var(--green); } .ic-a { background: var(--amber-bg); color: var(--amber); }
.ic-n { background: #f1effa; color: var(--ink55); } .ic-b { background: var(--blue-bg); color: var(--blue); }
.ic-r { background: var(--red-bg); color: var(--red); }
.srow b { font-size: 14px; white-space: nowrap; }
.srow .d { font-size: 12.5px; color: var(--ink55); margin-left: auto; text-align: right; }
.pill { font-size: 12px; font-weight: 700; border-radius: 999px; padding: 3px 11px; white-space: nowrap; }
.pill-g { background: var(--green-bg); color: var(--green); } .pill-a { background: var(--amber-bg); color: var(--amber); }
.pill-n { background: #f1effa; color: var(--ink55); } .pill-b { background: var(--blue-bg); color: var(--blue); }
.pill-r { background: var(--red-bg); color: var(--red); }
.focus-cta { display: flex; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.btn-dark-v1 { border-radius: 999px; font-size: 14px; font-weight: 600; cursor: pointer; min-height: 44px; padding: 0 24px; border: 1px solid var(--dark); background: var(--dark); color: #fff; }
.btn-ghost-v1 { border-radius: 999px; font-size: 14px; font-weight: 600; cursor: pointer; min-height: 44px; padding: 0 24px; border: 1px solid rgba(33,26,42,.16); background: #fff; color: var(--ink); }
.verdict { font-size: 12.5px; color: var(--ink55); line-height: 1.65; margin-top: 12px; }
.focus-empty p { font-size: 14px; color: var(--ink55); line-height: 1.7; }
.side-col { min-width: 0; display: flex; flex-direction: column; }
.tools { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.tool { background: var(--gray-020); border: 1px solid var(--line); border-radius: 16px; padding: 15px 16px; cursor: pointer; }
.tool:hover { border-color: var(--brand); }
.tool .tic { width: 36px; height: 36px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; margin-bottom: 9px; }
.tool .tic svg { width: 19px; height: 19px; }
.tool b { font-size: 14.5px; display: block; }
.tool p { font-size: 11.5px; white-space: nowrap; color: var(--ink55); margin-top: 3px; }
.tool p em { font-style: normal; font-weight: 700; }
.em-g { color: var(--green); } .em-a { color: var(--amber); }
.tpl-card { background: var(--gray-020); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; flex: 1; }
.tpl-card .t-row { display: flex; align-items: center; gap: 10px; }
.tpl-card .t-row b { font-size: 14.5px; }
.tpl-card .t-row .link { margin-left: auto; }
.tpl-card .t-sub { font-size: 12.5px; color: var(--ink55); margin-top: 8px; line-height: 1.6; }
.tpl-card .t-sub b { color: var(--brand); font-size: 12.5px; }
.link { color: var(--brand); font-weight: 600; font-size: 13px; text-decoration: none; }

.papers-head { display: flex; align-items: center; gap: 18px; margin-bottom: 12px; flex-wrap: wrap; }
.papers-head h2 { font-size: 17px; font-weight: 700; }
.tabs { display: flex; gap: 8px; margin-left: 6px; flex-wrap: wrap; }
.tab { font-size: 13px; font-weight: 600; color: var(--ink55); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; cursor: pointer; min-height: 32px; }
.tab.on { background: var(--dark); color: #fff; border-color: var(--dark); }
.tab b { font-weight: 800; }
.table-card { background: var(--gray-020); border: 1px solid var(--line); border-radius: 16px; padding: 6px 20px; }
.prow { display: grid; grid-template-columns: 44px 1fr 118px 118px 92px 138px; align-items: center; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.prow:last-child { border-bottom: none; }
.prow.focused { background: #faf9ff; }
.thumb { width: 40px; height: 52px; border: 1px solid var(--line); border-radius: 6px; background: #fff; padding: 6px 6px 4px; box-shadow: 0 2px 6px rgba(33,26,42,.05); }
.thumb i { display: block; height: 3px; border-radius: 2px; background: #ddd8ec; margin: 3.5px 0; }
.thumb i:first-child { background: var(--brand); height: 4px; width: 70%; margin: 1px auto 5px; }
.prow-main { min-width: 0; }
.prow .ttl2 { font-size: 14.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prow .meta { font-size: 12px; color: var(--ink55); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prow .cell { font-size: 12.5px; color: var(--ink55); white-space: nowrap; }
.prow .cell b { color: var(--ink); font-size: 13px; }
.rowbtns { display: flex; align-items: center; gap: 8px; justify-content: flex-end; }
.btn-s { white-space: nowrap; border-radius: 999px; font-size: 13px; font-weight: 600; min-height: 38px; padding: 0 20px; border: 1px solid transparent; cursor: pointer; display: inline-flex; align-items: center; text-decoration: none; }
.btn-s-dark { background: var(--dark); color: #fff; }
.btn-s-red { background: #fff; border-color: var(--red); color: var(--red); }
.more { border: none; background: none; font-size: 17px; color: var(--ink40); cursor: pointer; padding: 4px 6px; letter-spacing: 1px; }
.docs-state.plain { background: none; border: none; padding: 18px 20px 4px; }
.pager { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 16px 20px 6px; }
.btn-pager { border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 999px; padding: 8px 20px; font-size: 13px; font-weight: 600; cursor: pointer; min-height: 38px; }
.btn-pager:hover:not(:disabled) { border-color: var(--brand); color: var(--brand); }
.btn-pager:disabled { opacity: .45; cursor: default; }
.pager-info { font-size: 13px; color: var(--ink55); }

@media (max-width: 1280px) {
  .hero { grid-template-columns: 1fr; }
  .stat-cards.v1-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .hero { padding: 16px 16px 0; }
  .focus-body { grid-template-columns: 1fr; }
  .prow { display: flex; flex-wrap: wrap; }
  .prow-main { flex: 1; min-width: 200px; }
  .prow .cell.words-cell, .prow .cell.time-cell { display: none; }
  .prow .rowbtns { margin-left: auto; }
  .stat-cards.v1-cards { grid-template-columns: 1fr; }
}
