/* =========================================================
   知遇 · UI polish and readable content scale
   Loaded after module-sizes.css.
   ========================================================= */

:root {
  --heiti: "PingFang SC", "Heiti SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --text-body: 14px;
  --text-meta: 12px;
  --text-label: 10px;
  --surface-glow: 0 18px 48px rgba(38, 34, 24, 0.06);
}

body {
  font-family: var(--heiti);
  font-size: var(--text-body);
  line-height: 1.55;
  letter-spacing: 0.004em;
}

/* Page rhythm */
.page-head {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(227, 222, 210, 0.72);
}

.page-title {
  text-wrap: balance;
}

.page-subtitle {
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
}

.page-kicker,
.panel-eyebrow,
.modal-eyebrow,
.form-section-label {
  font-size: 10px !important;
  letter-spacing: 0.14em;
  line-height: 1.4;
}

/* General content */
p,
li,
.data-table td {
  font-size: 13px;
}

.data-table th {
  font-size: 11px;
  letter-spacing: 0.03em;
}

.toolbar input,
.toolbar select,
.field-search input {
  font-size: 12.5px;
}

.toolbar-inline-note,
.result-strip,
.form-note,
.import-note,
.field-hint {
  font-size: 11px;
  line-height: 1.55;
}

.tag,
.status-pill,
.phone-reveal,
.paper-count-link,
.author-direction-chip {
  font-size: 11px !important;
  line-height: 1.35;
}

.tag {
  padding: 2px 7px;
  border-radius: 999px;
}

.cell-muted,
.wl-date,
.exp-period,
.paper-card-foot,
.paper-card-source,
.company-name-cell span:not(.company-mark) {
  font-size: 11px !important;
}

/* Cards and panels */
.toolbar-card,
.table-card,
.report-panel,
.wb-panel,
.paper-card,
.paper-index-card,
.company-stat,
.report-kpi,
.time-analysis-cell,
.paper-stat {
  border-color: rgba(227, 222, 210, 0.9);
  box-shadow: 0 8px 24px rgba(38, 34, 24, 0.035);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.report-kpi:hover,
.time-analysis-cell:hover,
.company-stat:hover,
.paper-stat:hover {
  border-color: rgba(169, 133, 76, 0.55);
  box-shadow: 0 10px 26px rgba(38, 34, 24, 0.06);
}

.paper-card:hover,
.paper-index-card:hover {
  border-color: rgba(169, 133, 76, 0.38);
  box-shadow: var(--surface-glow);
  transform: translateY(-1px);
}

/* Buttons */
.btn {
  border-radius: 9px;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.btn-primary {
  box-shadow: 0 6px 16px rgba(23, 54, 46, 0.15);
}

.btn-primary:hover {
  box-shadow: 0 9px 22px rgba(23, 54, 46, 0.2);
  transform: translateY(-1px);
}

.btn-secondary:hover {
  border-color: var(--line-strong);
  box-shadow: 0 5px 14px rgba(38, 34, 24, 0.05);
}

/* Table polish */
.table-card {
  border-radius: 12px;
}

.table-scroll thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--card);
}

.table-scroll tbody tr {
  transition: background 0.15s ease;
}

.table-scroll tbody tr:hover td {
  background: rgba(241, 231, 211, 0.35);
}

/* Sidebar active state */
.nav-link.active {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
  box-shadow: inset 0 0 0 1px rgba(245, 234, 217, 0.08);
}

/* Paper / author content */
.paper-card-abstract {
  font-size: 10.5px !important;
  line-height: 1.7;
}

.paper-card-authors {
  font-size: 11px !important;
}

.paper-index-head > div > span {
  font-size: 12px !important;
}

.paper-index-head em {
  font-size: 10px !important;
}

.paper-index-tags .tag {
  font-size: 10px !important;
}

.paper-index-foot .text-link,
.paper-index-foot .btn {
  font-size: 10px !important;
}

.paper-stat span {
  font-size: 10px !important;
}

/* Drawer supporting text */
.drawer-summary {
  font-size: 12.5px !important;
  line-height: 1.8;
  color: var(--ink-soft);
}

.drawer-section-title small {
  font-size: 9px !important;
  letter-spacing: 0.08em;
}

.exp-copy strong {
  font-size: 12px !important;
}

.exp-title {
  font-size: 11px !important;
}

.exp-period {
  font-size: 10px !important;
}

.education-tag {
  font-size: 10px !important;
}

/* Modal / form polish */
.modal-title {
  text-wrap: balance;
}

.modal-sub {
  font-size: 11.5px !important;
  line-height: 1.65;
}

.field input,
.field select,
.field textarea {
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(169, 133, 76, 0.12);
}

/* Native scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(156, 152, 141, 0.5) transparent;
}

*::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

*::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: rgba(156, 152, 141, 0.5);
  background-clip: content-box;
}

*::-webkit-scrollbar-thumb:hover {
  background: rgba(124, 122, 112, 0.66);
  background-clip: content-box;
}

/* Stat labels and notes */
body .report-kpi span,
body .worklog-stat span,
body .company-stat span,
body .paper-stat span,
body .metric-unit {
  font-size: 10px !important;
  letter-spacing: 0.02em;
}

body .report-kpi em,
body .worklog-stat em,
body .company-stat em,
body .paper-stat em {
  font-size: 10px !important;
  line-height: 1.4;
}

body .wb-stat span { font-size: 10px !important; }
body .wb-stat em { font-size: 9px !important; }

/* Readability tune: keep hierarchy, give content a little more air. */
body {
  font-size: 14.5px;
  line-height: 1.6;
}

.page-subtitle {
  font-size: 14.5px;
  line-height: 1.75;
}

.panel-title {
  font-size: 21px;
  letter-spacing: -0.025em;
}

body .btn {
  font-size: 13px !important;
}

body .nav-link {
  font-size: 14px !important;
}

body .talent-table td {
  font-size: 12.5px !important;
  padding-top: 10px;
  padding-bottom: 10px;
}

body .reports-main .report-table td {
  font-size: 12.5px !important;
  padding-top: 9px;
  padding-bottom: 9px;
}

body .paper-card-abstract {
  font-size: 11px !important;
  line-height: 1.7;
}

body .paper-index-head strong {
  font-size: 12px !important;
}

body .info-value {
  font-size: 11.5px !important;
}

body .field input,
body .field select,
body .field textarea {
  font-size: 14px !important;
}

.page-head {
  margin-bottom: 24px;
  padding-bottom: 18px;
}

.paper-index-grid {
  gap: 12px;
}

.drawer-section {
  padding-top: 16px;
  padding-bottom: 16px;
}

.modal-body {
  line-height: 1.65;
}
