:root {
  color-scheme: light;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Arial,
    sans-serif;

  color: #1f2937;
  background: #f3f4f6;
}


* {
  box-sizing: border-box;
}


body {
  margin: 0;
  min-height: 100vh;

  background:
    linear-gradient(
      135deg,
      #f8fafc 0%,
      #eef2f7 100%
    );
}


button,
input {
  font: inherit;
}


button {
  padding: 8px 16px;
  border: none;
  border-radius: 8px;
  background: #2563eb;
  color: #ffffff;
  cursor: pointer;
  font-size: 14px;
}

button:hover {
  background: #1d4ed8;
}

button:disabled {
  opacity: 0.65;
  cursor: wait;
}


/* ================================
   页面容器
================================ */

.page {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 36px 0 60px;

  display: flex;
  flex-direction: column;
  gap: 24px;
}


/* ================================
   添加区域
================================ */

.query-panel {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 28px;

  box-shadow: 0 8px 30px rgba(15, 23, 42, .06);
}

.query-panel h1 {
  margin: 0 0 18px;
  font-size: 24px;
  color: #111827;
}

.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.page-head h1 {
  margin: 0;
  font-size: 24px;
  color: #111827;
}


.add-box {
  display: flex;
  gap: 15px;
}

.add-box input {
  flex: 1;
  min-width: 0;
  padding: 15px 14px;

  border: 1px solid #d1d5db;
  border-radius: 10px;
  outline: none;
}

.add-box input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}


.message {
  min-height: 20px;
  margin-top: 15px;
  font-size: 14px;
  color: #6b7280;
}

.message.error {
  color: #dc2626;
}

.message.success {
  color: #15803d;
}


/* ================================
   统计面板
================================ */

.stats-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.stat-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 18px 20px;
  text-align: center;

  box-shadow: 0 4px 14px rgba(15, 23, 42, .05);

  transition:
    transform .15s ease,
    box-shadow .15s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, .08);
}

.stat-number {
  display: block;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
}

.stat-label {
  display: block;
  margin-top: 8px;
  font-size: 15px;
  color: #6b7280;
}

/* 三种评审状态 + 总数 */
.stat-total {
  color: #2563eb;
}

.stat-under-review {
  color: #7f0cc2;
}

.stat-required {
  color: #eb7821;
}

.stat-complete {
  color: #0ec253;
}


/* ================================
   稿件列表
================================ */

.list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.list-header h2 {
  margin: 0;
  font-size: 18px;
  color: #374151;
}

.list-hint {
  margin-left: 10px;
  font-size: 13px;
  font-weight: 400;
  color: #9ca3af;
}

.btn-refresh-all {
  background: #2563eb;
  color: #ffffff;
  white-space: nowrap;
}

.btn-refresh-all:hover {
  background: #1d4ed8;
}

#manuscript-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 16px;
}

.empty-hint {
  grid-column: 1 / -1;
  margin: 0;
  padding: 28px;

  text-align: center;
  color: #6b7280;

  background: #ffffff;
  border: 1px dashed #d1d5db;
  border-radius: 16px;
}


/* ================================
   稿件卡片
================================ */

.manuscript-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 20px;

  display: flex;
  flex-direction: column;
  min-height: 300px;

  box-shadow: 0 2px 10px rgba(15, 23, 42, .05);

  transition:
    transform .15s,
    box-shadow .15s;
}

.manuscript-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, .10);
}


.card-top-row {
  display: block;
}

.card-journal {
  display: block;
  margin-bottom: 8px;

  font-size: 22px;
  font-weight: 700;
  color: #2563eb;
}

.card-meta-line {
  display: flex;
  flex-direction: column;   /* 改为纵向 */
  align-items: flex-start;  /* 左对齐 */
  gap: 6px;                 /* 行间距，按需调整 */
}

.card-pubnum {
  display: inline-block;
  font-size: 20px;
  color: #cf1956;

  font-family:
    "SFMono-Regular",
    Consolas,
    monospace;
}


/* 状态徽章：只有三种文本 */
.status-badge {
  display: inline-block;
  font-size: 20px;
  border-radius: 999px;
  color: #374151;

  font-family:
    "SFMono-Regular",
    Consolas,
    monospace;
}

.status-under-review {
  color: #7f0cc2;
}

.status-required-reviews {
  color: #eb7821;
}

.status-review-complete {
  color: #0ec253;
}


.card-title {
  margin-bottom: 8px;

  font-size: 15px;
  font-weight: 650;
  line-height: 1.45;
  color: #111827;
}


.card-info-grid {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 8px 15px;
  padding: 14px;
  margin-bottom: 16px;

  background: #f9fafb;
  border: 1px solid #f0f0f0;
  border-radius: 15px;
}

.ci-label {
  font-size: 15px;
  font-weight: 600;
  color: #9ca3af;
}

.ci-value {
  font-size: 15px;
  color: #1f2937;
  overflow-wrap: anywhere;
}


/* ================================
   审稿人统计
================================ */

.card-counters {
  display: flex;
  margin-top: auto;
  margin-bottom: 16px;

  border: 1px solid #e5e7eb;
  border-radius: 15px;
  overflow: hidden;
}

.counter-item {
  flex: 1;
  text-align: center;
  padding: 15px 6px;
  border-right: 1px solid #e5e7eb;
}

.counter-item:last-child {
  border-right: none;
}

.counter-num {
  font-size: 24px;
  font-weight: 700;
}

.counter-label {
  font-size: 15px;
  color: #9ca3af;
}

.count-invited {
  color: #e0bc18;
}

.count-accepted {
  color: #2563eb;
}

.count-completed {
  color: #0ec253;
}


/* ================================
   操作按钮
================================ */

.card-actions {
  display: flex;
  gap: 8px;
}

.btn-secondary {
  background: #f3f4f6;
  color: #374151;
  border: 1px solid #d1d5db;
}

.btn-secondary:hover {
  background: #e5e7eb;
}

.btn-danger {
  background: #fee2e2;
  color: #dc2626;
}

.btn-danger:hover {
  background: #fecaca;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 13px;
}


/* ================================
   状态历史（折叠区）
================================ */

.hidden {
  display: none;
}

.card-history {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #f0f0f0;
}

.history-inner {
  font-size: 13px;
  color: #4b5563;
}

.history-title {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
}

.history-row {
  padding: 4px 0;
  border-bottom: 1px dashed #f3f4f6;

  font-family:
    "SFMono-Regular",
    Consolas,
    monospace;
  font-size: 13px;
}

.history-row:last-child {
  border-bottom: none;
}


::selection {
  background: #cbe2c0;
}


/* ================================
   登录页
================================ */

.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.login-card {
  width: min(360px, 100%);
  padding: 32px 28px;

  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;

  box-shadow: 0 12px 40px rgba(15, 23, 42, .08);
}

.login-card h1 {
  margin: 0 0 6px;
  font-size: 20px;
  color: #111827;
}

.login-hint {
  margin: 0 0 22px;
  font-size: 13px;
  color: #6b7280;
}

.login-field {
  display: block;
  margin-bottom: 14px;
}

.login-field span {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #4b5563;
}

.login-field input {
  width: 100%;
  padding: 11px 12px;

  border: 1px solid #d1d5db;
  border-radius: 10px;
  outline: none;

  font-size: 15px;
}

.login-field input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}

.login-card button {
  width: 100%;
  margin-top: 6px;
  padding: 11px 16px;
}

.login-card .message {
  margin-top: 12px;
  min-height: 18px;
}


/* ================================
   手机端
================================ */

@media (max-width: 700px) {

  .page {
    width: calc(100% - 24px);
    padding-top: 20px;
  }

  .add-box {
    flex-direction: column;
  }

  #manuscript-list {
    grid-template-columns: 1fr;
  }

  .card-info-grid {
    grid-template-columns: 70px 1fr;
  }
}
