  /* ============================================================
   专利分级分类系统 — Tabler 风格样式
   设计语言：蓝白专业 / 微阴影 / 小圆角 / 克制扁平
   ============================================================ */

/* ===== CSS 变量（Tabler Design Tokens） ===== */
:root {
  /* 主色系 */
  --primary: #066fd1;
  --primary-rgb: 6, 111, 209;
  --primary-hover: #0556a8;
  --primary-light: #e8f4fd;
  --primary-border: #c2dff9;

  /* 语义色 */
  --success: #2fb344;
  --success-light: #e6f7e8;
  --success-dark: #1a7d28;
  --warning: #f59f00;
  --warning-light: #fff8e6;
  --warning-dark: #b87600;
  --danger: #d63939;
  --danger-light: #fce8e8;
  --danger-dark: #a12222;
  --info: #4299e1;

  /* 中性色 */
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;

  /* 背景 & 文字 */
  --body-bg: #f4f6f9;
  --body-color: #1f2937;
  --card-bg: #ffffff;
  --border-color: #e5e7eb;
  --text-muted: #6b7280;

  /* 字体 */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", "Consolas", "Monaco", monospace;
  --font-size-sm: 0.8125rem;
  --font-size-base: 0.875rem;
  --font-size-lg: 1rem;
  --font-size-xl: 1.25rem;

  /* 圆角 */
  --radius-sm: 4px;
  --radius: 6px;
  --radius-lg: 8px;
  --radius-xl: 12px;
  --radius-pill: 100rem;

  /* 阴影 */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);

  /* 间距 */
  --navbar-height: 56px;
  --content-max-width: 1400px;

  /* 过渡 */
  --transition: 0.15s ease;
}

/* ===== 重置和基础 ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  line-height: 1.5;
  color: var(--body-color);
  background: var(--body-bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

/* ===== 导航栏 ===== */
.navbar {
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--navbar-height);
}

.nav-container {
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-brand {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--gray-800);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.nav-brand:hover {
  color: var(--primary);
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  color: var(--gray-600);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: var(--radius);
  font-size: var(--font-size-sm);
  font-weight: 500;
  transition: all var(--transition);
}
.nav-link:hover {
  background: var(--gray-100);
  color: var(--gray-800);
  text-decoration: none;
}

.nav-user {
  color: var(--primary);
  font-weight: 600;
  padding: 5px 12px;
  background: var(--primary-light);
  border-radius: var(--radius-pill);
  font-size: var(--font-size-sm);
}

.nav-logout {
  color: var(--danger);
}
.nav-logout:hover {
  background: var(--danger-light);
  color: var(--danger-dark);
}

.nav-upload {
  background: var(--primary);
  color: #ffffff !important;
  border-radius: var(--radius);
  font-weight: 600;
}
.nav-upload:hover {
  background: var(--primary-hover) !important;
  color: #ffffff !important;
}

/* ===== 消息提示 ===== */
.messages {
  max-width: var(--content-max-width);
  margin: 12px auto 0;
  padding: 0 24px;
}

.alert {
  padding: 10px 16px;
  border-radius: var(--radius);
  margin-bottom: 8px;
  font-size: var(--font-size-sm);
  border: 1px solid transparent;
  animation: slideDown 0.2s ease;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.alert-success {
  background: var(--success-light);
  color: var(--success-dark);
  border-color: #b8e6c0;
}
.alert-error {
  background: var(--danger-light);
  color: var(--danger-dark);
  border-color: #f0b8b8;
}
.alert-info {
  background: #e6f2fc;
  color: #0b5ea8;
  border-color: #b8d8f5;
}
.alert-warning {
  background: var(--warning-light);
  color: var(--warning-dark);
  border-color: #f5d08a;
}

/* ===== 主体内容 ===== */
.main-content {
  max-width: var(--content-max-width);
  margin: 24px auto;
  padding: 0 24px;
  min-height: calc(100vh - var(--navbar-height) - 80px);
}

/* ===== 页脚 ===== */
.footer {
  text-align: center;
  padding: 20px;
  color: var(--text-muted);
  font-size: var(--font-size-sm);
  border-top: 1px solid var(--border-color);
}

/* ===== 认证页面 ===== */
.auth-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 200px);
}

.auth-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  width: 100%;
  max-width: 480px;
  box-shadow: var(--shadow-md);
}

.auth-card h2 {
  text-align: center;
  color: var(--gray-800);
  margin-bottom: 4px;
  font-size: var(--font-size-xl);
  font-weight: 700;
}

.auth-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 28px;
  font-size: var(--font-size-sm);
}

.auth-form .form-group {
  margin-bottom: 18px;
}

.auth-form label {
  display: block;
  margin-bottom: 5px;
  color: var(--gray-700);
  font-weight: 600;
  font-size: var(--font-size-sm);
}

.auth-form .form-control {
  width: 100%;
  padding: 9px 13px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  font-size: var(--font-size-base);
  transition: border-color var(--transition), box-shadow var(--transition);
  background: #ffffff;
}
.auth-form .form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.12);
}

.auth-form .help-text {
  display: block;
  color: var(--text-muted);
  font-size: 0.75rem;
  margin-top: 4px;
}

.field-error {
  color: var(--danger);
  margin-top: 4px;
  font-size: var(--font-size-sm);
}

/* ===== 密码提示与校验 ===== */
.pw-hint {
  display: block;
  color: var(--text-muted);
  font-size: 0.75rem;
  margin-top: 4px;
  transition: opacity 0.2s ease;
}

.pw-hint.pw-error {
  color: var(--warning-dark);
}

.pw-format-error,
.pw-match-error {
  color: var(--danger);
  font-size: 0.8rem;
  margin-top: 6px;
  font-weight: 500;
  animation: slideDown 0.2s ease;
}

.auth-footer {
  text-align: center;
  margin-top: 20px;
  color: var(--text-muted);
  font-size: var(--font-size-sm);
}
.auth-footer a {
  color: var(--primary);
  font-weight: 600;
}

/* ===== 按钮 ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: var(--font-size-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  line-height: 1.25rem;
  white-space: nowrap;
  gap: 6px;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}
.btn-primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  text-decoration: none;
  color: #ffffff;
}

.btn-outline {
  background: #ffffff;
  color: var(--gray-700);
  border-color: var(--border-color);
}
.btn-outline:hover {
  background: var(--gray-50);
  border-color: var(--gray-300);
  color: var(--gray-800);
  text-decoration: none;
}

.btn-success {
  background: var(--success);
  color: #ffffff !important;
  border-color: var(--success);
}
.btn-success:hover {
  background: #26963a;
  border-color: #26963a;
}

.btn-sm {
  padding: 5px 12px;
  font-size: 0.75rem;
}

.btn-block {
  width: 100%;
  padding: 11px;
  font-size: var(--font-size-base);
  font-weight: 600;
}

.btn-back {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  background: #ffffff;
  color: var(--gray-600);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  font-size: var(--font-size-sm);
  text-decoration: none;
  transition: all var(--transition);
}
.btn-back:hover {
  background: var(--gray-50);
  color: var(--gray-800);
  text-decoration: none;
}

/* ===== 列表页面 ===== */
.list-container {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
}

.list-header h2 {
  color: var(--gray-800);
  font-size: var(--font-size-lg);
  font-weight: 700;
}

.list-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.list-count {
  background: var(--gray-100);
  color: var(--gray-600);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: var(--font-size-sm);
  font-weight: 600;
}

/* ===== 搜索工具栏 ===== */
.list-toolbar {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-color);
}

.search-form {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.search-input {
  flex: 1;
  min-width: 200px;
  padding: 8px 13px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  font-size: var(--font-size-sm);
  background: #ffffff;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.12);
}

.status-select {
  padding: 8px 13px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  font-size: var(--font-size-sm);
  background: #ffffff;
  cursor: pointer;
  color: var(--gray-700);
  transition: border-color var(--transition);
}
.status-select:focus {
  outline: none;
  border-color: var(--primary);
}

/* ===== 数据表格 ===== */
.table-wrapper {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--font-size-sm);
}

.data-table thead {
  background: var(--gray-50);
}

.data-table thead th {
  padding: 10px 12px;
  text-align: center;
  font-weight: 600;
  font-size: 0.75rem;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-bottom: 2px solid var(--border-color);
  white-space: nowrap;
}

.data-table tbody td {
  padding: 12px 12px;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
}

.data-table tbody tr {
  transition: background var(--transition);
}

.data-table tbody tr:hover {
  background: var(--primary-light);
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

.text-center {
  text-align: center;
}

/* ===== 专利表格 ===== */
.patent-table {
  min-width: 1300px;
}

.text-mono {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 500;
}

.pub-link {
  color: var(--primary);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  transition: color var(--transition);
}
.pub-link:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

.title-link {
  color: var(--gray-800);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition);
}
.title-link:hover {
  color: var(--primary);
  text-decoration: none;
}

.title-cell {
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}


.limited-patent-table {
  min-width: 0;
  table-layout: fixed;
}

.limited-patent-table thead th:nth-child(3),
.limited-patent-table tbody td:nth-child(3) {
  text-align: left;
}

.limited-patent-table .title-cell {
  max-width: none;
}

.inventors-cell {
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.75rem;
}

/* ===== 标签 ===== */
.tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.tag-type {
  background: #e8eaf6;
  color: #4959c4;
}
.tag-有效 {
  background: var(--success-light);
  color: var(--success-dark);
}
.tag-失效 {
  background: var(--danger-light);
  color: var(--danger-dark);
}
.tag-审中 {
  background: var(--warning-light);
  color: var(--warning-dark);
}

/* 匹配度标签 */
.tag-high {
  background: var(--success-light);
  color: var(--success-dark);
  font-weight: 700;
}
.tag-low {
  background: var(--warning-light);
  color: var(--warning-dark);
  font-weight: 700;
}
.tag-none {
  background: var(--danger-light);
  color: var(--danger-dark);
}

/* ===== 查看按钮 ===== */
.btn-detail {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  background: var(--primary);
  color: #ffffff;
  border-radius: var(--radius);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 500;
  transition: background var(--transition);
}
.btn-detail:hover {
  background: var(--primary-hover);
  color: #ffffff;
  text-decoration: none;
}

/* ===== 评星/审核按钮 ===== */
.btn-rate,
.btn-confirm {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border: none;
  border-radius: var(--radius);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition);
  white-space: nowrap;
}

.btn-rate {
  background: var(--warning);
  color: #ffffff;
}
.btn-rate:hover {
  background: #e08f00;
}

.btn-confirm {
  background: var(--success);
  color: #ffffff;
}
.btn-confirm:hover {
  background: #26963a;
}

/* ===== 状态标签 ===== */
.status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
}

.status-pending {
  background: var(--warning-light);
  color: var(--warning-dark);
}
.status-in_progress {
  background: #e6f2fc;
  color: #0b5ea8;
}
.status-done {
  background: var(--success-light);
  color: var(--success-dark);
}

/* ===== 空状态 ===== */
.empty-state {
  text-align: center;
  padding: 60px 24px;
  color: var(--text-muted);
}
.empty-icon {
  font-size: 56px;
  margin-bottom: 16px;
  opacity: 0.6;
}
.empty-state h3 {
  font-size: var(--font-size-lg);
  color: var(--gray-600);
  margin-bottom: 8px;
}
.empty-state p {
  color: var(--text-muted);
  font-size: var(--font-size-sm);
}

/* ===== 星级显示 ===== */
.rating-display {
  font-size: 13px;
  white-space: nowrap;
  letter-spacing: 1px;
}
.no-rating {
  color: var(--gray-300);
  font-size: 0.75rem;
}

/* ===== 分数链接 ===== */
.score-link {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color var(--transition);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
}
.score-link:hover {
  background: var(--primary-light);
  color: var(--primary-hover);
}

/* ===== 院校标签 ===== */
.inst-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}
.inst-火炬职院 {
  background: #e6f2fc;
  color: #0c6bc1;
}
.inst-中山学院 {
  background: #fce8e8;
  color: #b82424;
}
.inst-中职院 {
  background: #e6f7e8;
  color: #1a7d28;
}

/* ===== 分类单元格 ===== */
.classification-cell {
  font-weight: 700;
  font-size: 0.75rem;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}
.class-优质型 {
  color: var(--success-dark);
  background: var(--success-light);
}
.class-储备型 {
  color: var(--warning-dark);
  background: var(--warning-light);
}
.class-休眠型 {
  color: var(--text-muted);
  background: var(--gray-100);
}
.class-培育型 {
  color: #6d3bb5;
  background: #f3edfa;
}

.row-优质型 { background: #f9fdf9; }
.row-储备型 { background: #fffdf7; }
.row-休眠型 { background: #fdfdfd; }
.row-培育型 { background: #fdfaff; }

/* 分类徽章 */
.classification-badge {
  display: inline-block;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.85rem;
}
.classification-badge.class-优质型 {
  background: var(--success-light);
  color: var(--success-dark);
  border: 1px solid #b8e6c0;
}
.classification-badge.class-储备型 {
  background: var(--warning-light);
  color: var(--warning-dark);
  border: 1px solid #f5d08a;
}
.classification-badge.class-休眠型 {
  background: var(--gray-100);
  color: var(--gray-600);
  border: 1px solid var(--gray-300);
}
.classification-badge.class-培育型 {
  background: #f3edfa;
  color: #6d3bb5;
  border: 1px solid #dac6f2;
}

/* ===== 分类统计条 ===== */
.stats-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}
.stat-item {
  flex: 1;
  text-align: center;
  padding: 14px 10px;
  border-radius: var(--radius-lg);
  color: #ffffff;
}
.stat-core { background: var(--success); }
.stat-defense { background: var(--primary); }
.stat-reserve { background: var(--warning); }
.stat-dormant { background: var(--gray-400); }
.stat-num {
  font-size: 1.5rem;
  font-weight: 700;
  display: block;
}
.stat-label {
  font-size: 0.75rem;
  opacity: 0.9;
  margin-top: 2px;
}

/* ===== 详情页 ===== */
.detail-container {
  max-width: 1100px;
}
.detail-topbar {
  margin-bottom: 16px;
}

/* 头部卡片 */
.detail-hero {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}

.hero-left {
  flex: 1;
  min-width: 0;
}

.hero-title-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.hero-title-row h2 {
  font-size: var(--font-size-lg);
  color: var(--gray-800);
  line-height: 1.4;
  margin: 0;
  font-weight: 700;
}

.hero-classification {
  flex-shrink: 0;
  padding: 3px 12px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.75rem;
  white-space: nowrap;
}
.hero-classification.class-优质型 { background: var(--success-light); color: var(--success-dark); }
.hero-classification.class-储备型 { background: var(--warning-light); color: var(--warning-dark); }
.hero-classification.class-休眠型 { background: var(--gray-100); color: var(--gray-600); }
.hero-classification.class-培育型 { background: #f3edfa; color: #6d3bb5; }

.hero-match-level {
  flex-shrink: 0;
  padding: 3px 12px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.75rem;
  text-decoration: none;
  cursor: pointer;
  transition: opacity var(--transition);
  white-space: nowrap;
}
.hero-match-level:hover {
  opacity: 0.85;
  text-decoration: none;
}
.hero-match-level.match-高匹配 { background: var(--success-light); color: var(--success-dark); }
.hero-match-level.match-低匹配 { background: var(--warning-light); color: var(--warning-dark); }
.hero-match-level.match-不匹配 { background: var(--danger-light); color: var(--danger-dark); }

.hero-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  flex-wrap: wrap;
}
.meta-dot {
  color: var(--gray-300);
}

.review-flag-tag {
  background: var(--warning-light);
  color: var(--warning-dark);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-size: 0.7rem;
  font-weight: 600;
}

/* 分数 */
.hero-scores {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.hero-score-item {
  text-align: center;
  padding: 10px 14px;
  background: var(--gray-50);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  min-width: 64px;
  transition: box-shadow var(--transition);
}
.hero-score-link {
  text-decoration: none;
  color: inherit;
  display: block;
  border-radius: var(--radius);
}
.hero-score-link:hover {
  text-decoration: none;
}
.hero-score-link:hover .hero-score-item {
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.15);
  border-color: var(--primary-border);
}

.hero-score-star {
  background: var(--primary);
  border-color: var(--primary);
}
.hero-score-star .hs-label {
  color: rgba(255, 255, 255, 0.8);
}
.hero-score-item .hs-val {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gray-800);
  line-height: 1.2;
}
.hero-score-star .hs-val {
  color: #ffffff;
}
.hero-score-item .hs-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  margin-top: 2px;
}

/* 双栏 */
.detail-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.detail-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* 信息块 */
.detail-block {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  box-shadow: var(--shadow-sm);
}
.block-title {
  font-size: var(--font-size-sm);
  color: var(--gray-700);
  font-weight: 700;
  margin: 0 0 14px 0;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
}

/* 信息列表 */
.info-list { margin: 0; }
.info-row {
  display: flex;
  padding: 8px 0;
  border-bottom: 1px solid var(--gray-50);
  font-size: var(--font-size-sm);
  line-height: 1.5;
}
.info-row:last-child { border-bottom: none; }
.info-row dt {
  width: 100px;
  flex-shrink: 0;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.75rem;
}
.info-row dd {
  flex: 1;
  color: var(--gray-800);
  word-break: break-all;
}
.info-row .info-small {
  font-size: 0.75rem;
  color: var(--gray-600);
}
.info-row-block {
  flex-direction: column;
}
.info-row-block dt {
  margin-bottom: 4px;
}
.info-text {
  font-size: var(--font-size-sm);
  color: var(--gray-700);
  line-height: 1.7;
  white-space: pre-wrap;
}

/* 全宽块 */
.full-block {
  margin-bottom: 16px;
}

/* 产业匹配大标签 */
.match-big {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.match-industry-name {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--gray-800);
}
.match-level-tag {
  padding: 3px 12px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.75rem;
}
.match-高匹配 { background: var(--success-light); color: var(--success-dark); }
.match-低匹配 { background: var(--warning-light); color: var(--warning-dark); }
.match-不匹配 { background: var(--danger-light); color: var(--danger-dark); }

.no-match-hint {
  color: var(--text-muted);
  font-size: var(--font-size-base);
  margin: 0;
}

/* 技术内容 */
.tech-sections { display: flex; flex-direction: column; gap: 14px; }
.tech-item label {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.tech-item p {
  font-size: var(--font-size-base);
  color: var(--gray-700);
  line-height: 1.8;
  margin: 0;
}

/* ===== 匹配结果独立页面 ===== */
.match-hero {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}
.match-hero h2 {
  font-size: var(--font-size-xl);
  color: var(--gray-800);
  margin: 0 0 10px 0;
  line-height: 1.4;
}
.match-hero-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  flex-wrap: wrap;
}
.match-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 40px;
}
.match-result-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  box-shadow: var(--shadow-sm);
  border-left: 3px solid var(--primary);
}
.match-result-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.match-result-header h3 {
  font-size: var(--font-size-lg);
  color: var(--gray-800);
  margin: 0;
}
.match-industry-display {
  text-align: center;
  padding: 20px;
  margin-bottom: 16px;
  background: var(--primary-light);
  border-radius: var(--radius);
}
.industry-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
}
.match-reason-text {
  font-size: var(--font-size-base);
  color: var(--gray-700);
  line-height: 1.8;
  white-space: pre-wrap;
}
.match-ref-card {
  border-left-color: var(--gray-300);
}
.match-ref-card h3 {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  margin: 0 0 12px 0;
}
.no-match-message {
  text-align: center;
  padding: 40px;
}
.no-match-icon {
  font-size: 48px;
  margin-bottom: 10px;
}
.no-match-message h3 {
  font-size: var(--font-size-lg);
  color: var(--gray-600);
  margin-bottom: 6px;
}
.no-match-message p {
  color: var(--text-muted);
  font-size: var(--font-size-sm);
}

/* ===== PDF 原文档 ===== */
.pdf-block {
  margin-bottom: 16px;
}
.pdf-viewer {
  width: 100%;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  overflow-y: auto;
  overflow-x: hidden;
  max-height: 700px;
  padding: 10px;
  background: var(--gray-50);
  text-align: center;
}
#pdfCanvas {
  display: block;
  margin: 0 auto;
  box-shadow: var(--shadow);
}
.pdf-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 10px 0 4px;
  position: sticky;
  bottom: 0;
  background: #ffffff;
  border-top: 1px solid var(--border-color);
  margin-top: 10px;
}
.pdf-controls .btn-sm {
  padding: 5px 14px;
  font-size: 0.75rem;
}
#pdfPageInfo {
  font-size: var(--font-size-sm);
  color: var(--gray-600);
  min-width: 120px;
  text-align: center;
}
.pdf-placeholder {
  text-align: center;
  padding: 40px;
  color: var(--gray-400);
  border: 2px dashed var(--border-color);
  border-radius: var(--radius);
}
.pdf-placeholder p {
  margin: 0;
  font-size: var(--font-size-sm);
}

/* ===== 复核块（详情页） ===== */
.review-block {
  margin-bottom: 40px;
}
.review-current {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  margin-bottom: 14px;
}
.review-inline-form { margin-bottom: 10px; }
.review-fields {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}
.review-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.review-field label {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
}
.review-field-reason {
  flex: 1;
  min-width: 150px;
}
.review-field .form-control {
  padding: 7px 11px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  font-size: var(--font-size-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.review-field .form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.12);
}

/* 星星选择器 */
.star-selector { display: flex; gap: 2px; }
.star-btn {
  font-size: 22px;
  cursor: pointer;
  opacity: 0.25;
  filter: grayscale(1);
  transition: all var(--transition);
  user-select: none;
}
.star-btn:hover,
.star-btn.active {
  opacity: 1;
  filter: grayscale(0);
  transform: scale(1.12);
}

.review-msg {
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: var(--radius);
  font-size: var(--font-size-sm);
}

/* 复核历史 */
.review-history {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid var(--border-color);
}
.review-history h5 {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  margin: 0 0 10px 0;
}
.review-history-item {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid var(--gray-50);
  font-size: 0.75rem;
  color: var(--gray-600);
}
.rh-status {
  font-size: 0.68rem;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-weight: 600;
}
.rh-pending { background: var(--warning-light); color: var(--warning-dark); }
.rh-approved { background: var(--success-light); color: var(--success-dark); }
.rh-rejected { background: var(--danger-light); color: var(--danger-dark); }
.rh-reason { color: var(--text-muted); font-style: italic; flex: 1; }
.rh-time { color: var(--gray-400); font-size: 0.7rem; white-space: nowrap; }

/* ===== 弹窗遮罩 ===== */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  padding: 16px;
  overflow-y: auto;
}
.modal-overlay.show {
  display: flex;
}

/* 弹窗卡片 */
.modal-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  width: 500px;
  max-width: calc(100vw - 32px);
  max-height: min(760px, calc(100vh - 32px));
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: modalIn 0.2s ease;
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(-20px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* 弹窗头部 */
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
}
.modal-header h3 {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--gray-800);
  margin: 0;
}

.modal-close {
  width: 30px;
  height: 30px;
  border: none;
  background: none;
  color: var(--gray-400);
  border-radius: var(--radius);
  font-size: 16px;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-close:hover {
  background: var(--gray-100);
  color: var(--gray-700);
}

/* 弹窗主体 */
.modal-body {
  padding: 24px;
  min-height: 0;
  overflow-y: auto;
  flex: 1 1 auto;
}

.modal-patent-title {
  font-size: var(--font-size-sm);
  color: var(--gray-800);
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 20px;
  padding: 10px 14px;
  background: var(--primary-light);
  border-radius: var(--radius);
  border-left: 3px solid var(--primary);
}

.modal-field {
  margin-bottom: 18px;
}
.modal-field label {
  display: block;
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 7px;
}

.modal-textarea {
  width: 100%;
  padding: 9px 13px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  font-size: var(--font-size-sm);
  resize: vertical;
  font-family: inherit;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.modal-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.12);
}

/* 弹窗星级 */
.rate-stars {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 4px;
}
.rate-star {
  font-size: 28px;
  cursor: pointer;
  opacity: 0.25;
  filter: grayscale(1);
  transition: all var(--transition);
  user-select: none;
}
.rate-star:hover,
.rate-star.active {
  opacity: 1;
  filter: grayscale(0);
  transform: scale(1.1);
}
.rate-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* 弹窗底部 */
.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 16px 24px;
  background: var(--gray-50);
  border-top: 1px solid var(--border-color);
}

/* 弹窗复选框 */
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: var(--font-size-sm);
  color: var(--gray-700);
  font-weight: 500;
}
.checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
}

.form-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ===== 分类单选选项（专家审核弹窗） ===== */
.classify-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.classify-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
}
.classify-option:hover {
  border-color: var(--primary-border);
  background: var(--primary-light);
}
.classify-option input[type="radio"] {
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--primary);
}
.classify-option:has(input:checked) {
  border-color: var(--primary);
  background: var(--primary-light);
  box-shadow: 0 0 0 1px var(--primary);
}
.classify-content strong {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 3px;
  color: var(--gray-800);
}
.classify-content p {
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ===== 列表角色标识 ===== */
.expert-badge {
  background: var(--warning);
  color: #ffffff;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
}
.manager-badge {
  background: var(--primary);
}
.reviewer-badge {
  background: var(--success);
}

/* ===== 审核员工具栏 ===== */
.reviewer-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-color);
}

.reviewer-tabs {
  display: flex;
  gap: 2px;
}

.review-tab {
  padding: 7px 16px;
  border: none;
  background: transparent;
  border-bottom: 2px solid transparent;
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
}
.review-tab:hover {
  color: var(--gray-800);
  border-bottom-color: var(--gray-300);
}
.review-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.tab-badge {
  display: inline-block;
  min-width: 20px;
  padding: 1px 7px;
  border-radius: var(--radius-pill);
  font-size: 0.7rem;
  font-weight: 700;
  background: var(--gray-100);
  color: var(--gray-600);
  margin-left: 4px;
}
.review-tab.active .tab-badge {
  background: var(--primary-light);
  color: var(--primary);
}
.badge-pending {
  background: var(--warning-light);
  color: var(--warning-dark);
}
.badge-done {
  background: var(--success-light);
  color: var(--success-dark);
}

.batch-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.select-all-label {
  font-size: var(--font-size-sm);
  color: var(--gray-600);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ===== 管理者操作栏 ===== */
.manager-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

/* ===== 审核通知栏 ===== */
.review-notification-bar {
  padding: 0 0 16px 0;
}
.notification-inner {
  background: var(--warning-light);
  border: 1px solid #f5d08a;
  border-radius: var(--radius-lg);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: slideDown 0.2s ease;
}
.notification-icon {
  font-size: 22px;
}
.notification-text {
  flex: 1;
  font-size: var(--font-size-sm);
  color: var(--warning-dark);
}
.notification-text strong {
  color: var(--warning-dark);
  font-size: var(--font-size-lg);
}

.btn-notification {
  padding: 7px 16px;
  background: var(--warning);
  color: #ffffff;
  border: none;
  border-radius: var(--radius);
  font-size: var(--font-size-sm);
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition);
}
.btn-notification:hover {
  background: #e08f00;
}

/* ===== 审核面板 ===== */
.review-panel {
  margin-bottom: 16px;
}
.review-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.review-panel-header h3 {
  font-size: var(--font-size-base);
  font-weight: 700;
  color: var(--gray-800);
  margin: 0;
}
.review-panel-body {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-top: none;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  padding: 16px;
  max-height: 420px;
  overflow-y: auto;
}

.review-item {
  padding: 14px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  margin-bottom: 10px;
  transition: background var(--transition);
}
.review-item:hover {
  background: var(--gray-50);
}
.review-item:last-child {
  margin-bottom: 0;
}

.review-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.review-patent-title {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--gray-800);
}

.review-badge {
  font-size: 0.7rem;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  background: var(--warning-light);
  color: var(--warning-dark);
  white-space: nowrap;
}
.review-badge.approved {
  background: var(--success-light);
  color: var(--success-dark);
}
.review-badge.rejected {
  background: var(--danger-light);
  color: var(--danger-dark);
}

.review-item-meta {
  display: flex;
  gap: 16px;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.review-classify-change,
.review-star-change {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-size: var(--font-size-sm);
}
.classify-before,
.star-before {
  background: var(--gray-100);
  color: var(--text-muted);
  padding: 3px 12px;
  border-radius: var(--radius-sm);
  text-decoration: line-through;
}
.classify-arrow {
  color: var(--primary);
  font-weight: bold;
  font-size: 1rem;
}
.classify-after,
.star-after {
  background: var(--primary-light);
  color: var(--primary);
  padding: 3px 12px;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.review-item-publish {
  font-size: 0.75rem;
  color: var(--success-dark);
  background: var(--success-light);
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  display: inline-block;
  margin-bottom: 8px;
}

.review-item-reason {
  font-size: var(--font-size-sm);
  color: var(--gray-600);
  margin-bottom: 10px;
  padding: 8px 12px;
  background: var(--warning-light);
  border-radius: var(--radius);
  border-left: 3px solid var(--warning);
}

.review-item-actions {
  display: flex;
  gap: 8px;
}

.btn-approve,
.btn-reject {
  padding: 5px 14px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-approve {
  background: var(--success);
  color: #ffffff;
}
.btn-approve:hover {
  background: #26963a;
}

.btn-reject {
  background: #ffffff;
  color: var(--danger);
  border-color: var(--danger);
}
.btn-reject:hover {
  background: var(--danger);
  color: #ffffff;
}

.review-empty {
  text-align: center;
  padding: 30px;
  color: var(--text-muted);
  font-size: var(--font-size-sm);
}

/* ===== 复核标记 ===== */
.review-flag {
  font-size: 14px;
  margin-left: 4px;
  cursor: help;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ===== 上传页面 ===== */
.upload-dropzone {
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px;
  text-align: center;
  transition: all var(--transition);
  cursor: pointer;
  position: relative;
  margin-bottom: 20px;
  background: #ffffff;
}
.upload-dropzone:hover,
.upload-dropzone.dragover {
  border-color: var(--primary);
  background: var(--primary-light);
}
.upload-icon { font-size: 44px; margin-bottom: 10px; }
.upload-text { font-size: var(--font-size-base); color: var(--gray-700); margin-bottom: 5px; }
.upload-hint { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 12px; }
.upload-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.file-info {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--primary-light);
  border-radius: var(--radius);
  margin-bottom: 20px;
}
.file-name {
  font-size: var(--font-size-sm);
  color: var(--primary);
  font-weight: 600;
  flex: 1;
}
.btn-remove {
  width: 26px; height: 26px;
  border: none;
  border-radius: 50%;
  background: var(--danger);
  color: #ffffff;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn-remove:hover {
  background: var(--danger-dark);
}

.upload-notes {
  background: var(--gray-50);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 20px;
}
.upload-notes h4 {
  font-size: var(--font-size-sm);
  margin-bottom: 10px;
  color: var(--gray-700);
}
.upload-requirement-table {
  width: 100%;
  font-size: 0.75rem;
  border-collapse: collapse;
}
.upload-requirement-table th,
.upload-requirement-table td {
  padding: 6px 10px;
  border-bottom: 1px solid var(--border-color);
  text-align: left;
}
.upload-requirement-table th {
  color: var(--text-muted);
  font-weight: 600;
}
.upload-note-text {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 10px;
}
.upload-progress { text-align: center; margin-top: 10px; }
.progress-bar {
  height: 6px;
  background: var(--border-color);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 5px;
}
.progress-fill {
  height: 100%;
  width: 60%;
  background: var(--primary);
  border-radius: 3px;
  animation: progressStripes 1.5s linear infinite;
  background-size: 30px 30px;
  background-image: linear-gradient(
    45deg,
    rgba(255,255,255,0.15) 25%,
    transparent 25%,
    transparent 50%,
    rgba(255,255,255,0.15) 50%,
    rgba(255,255,255,0.15) 75%,
    transparent 75%,
    transparent
  );
}
@keyframes progressStripes {
  0% { background-position: 0 0; }
  100% { background-position: 30px 0; }
}
.progress-text { font-size: 0.75rem; color: var(--text-muted); }

/* ===== 响应式 ===== */
@media (max-width: 768px) {
  .list-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .list-header-right {
    flex-wrap: wrap;
  }
  .search-form {
    flex-direction: column;
  }
  .search-input {
    min-width: 0;
  }

  .detail-hero {
    flex-direction: column;
  }
  .hero-scores {
    width: 100%;
    flex-wrap: wrap;
  }
  .hero-score-item {
    min-width: 55px;
    flex: 1;
  }

  .detail-body {
    grid-template-columns: 1fr;
  }

  .review-fields {
    flex-direction: column;
  }

  .reviewer-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .batch-actions {
    flex-wrap: wrap;
  }
  .reviewer-tabs {
    flex-wrap: wrap;
  }
}
