/* ============ 河南省能效技术协会 - 全站基础样式 ============ */
:root {
  --primary: #1e7e51;
  --primary-dark: #155f3d;
  --primary-light: #2da173;
  --accent: #c8a951;
  --bg: #f5f8f6;
  --bg-card: #ffffff;
  --text: #1f2d28;
  --text-muted: #6b7c75;
  --border: #dde8e1;
  --shadow-sm: 0 2px 6px rgba(30,126,81,.08);
  --shadow-md: 0 6px 20px rgba(30,126,81,.12);
  --shadow-lg: 0 14px 40px rgba(30,126,81,.18);
  --radius: 10px;
  --radius-sm: 6px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 15px;
}
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); text-decoration: underline; }
img { max-width: 100%; }

/* ===== 通用顶栏 ===== */
.topbar {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 0;
  z-index: 100;
}
.topbar .logo {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #fff;
  padding: 3px;
  flex-shrink: 0;
}
.topbar .title { flex: 1; }
.topbar .title h1 {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 1px;
}
.topbar .title .sub {
  font-size: 12px;
  opacity: .85;
  margin-top: 2px;
}
.topbar .actions {
  display: flex;
  gap: 10px;
  align-items: center;
}
.topbar .user-chip {
  background: rgba(255,255,255,.18);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
}
.topbar a.btn-link {
  color: #fff;
  background: rgba(255,255,255,.16);
  padding: 7px 16px;
  border-radius: 18px;
  font-size: 13px;
  transition: all .2s;
}
.topbar a.btn-link:hover { background: rgba(255,255,255,.32); text-decoration: none; }
.btn-linklike {
  color: #fff;
  background: rgba(255,255,255,.16);
  padding: 7px 16px;
  border: 0;
  border-radius: 18px;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
}
.btn-linklike:hover { background: rgba(255,255,255,.32); }

/* ===== 导航 Tab ===== */
.subnav {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 0 28px;
  display: flex;
  gap: 4px;
  overflow-x: auto;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 74px;
  z-index: 90;
}
.subnav button {
  background: transparent;
  border: none;
  padding: 14px 22px;
  font-size: 15px;
  color: var(--text-muted);
  cursor: pointer;
  position: relative;
  font-family: inherit;
  white-space: nowrap;
  transition: color .2s;
}
.subnav button:hover { color: var(--primary); }
.subnav button.active {
  color: var(--primary);
  font-weight: 600;
}
.subnav button.active::after {
  content: "";
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 0;
  height: 3px;
  background: var(--primary);
  border-radius: 3px 3px 0 0;
}

/* ===== 容器 ===== */
.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 28px;
}
.page-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary-dark);
  margin: 0 0 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.page-title::before {
  content: "";
  width: 5px;
  height: 22px;
  background: var(--primary);
  border-radius: 3px;
}
.page-desc { color: var(--text-muted); margin: 0 0 22px; }

/* ===== 卡片 ===== */
.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 22px;
  margin-bottom: 18px;
  border: 1px solid var(--border);
}
.card h3 { margin-top: 0; }
.form-section { margin-top: 22px; }
.form-section h3 { font-size: 16px; color: var(--primary-dark); margin: 0 0 12px; }
.empty-state { text-align: center; padding: 42px 22px; color: var(--text-muted); }
.empty-state h3 { color: var(--text); }
.action-field { justify-content: end; }
.admin-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.admin-tabs button {
  border: 1px solid var(--border); background: #fff; color: var(--text-muted);
  padding: 8px 15px; border-radius: var(--radius-sm); cursor: pointer; font-family: inherit;
}
.admin-tabs button.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.list-line { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.check-line { display: block; padding: 10px; border-bottom: 1px solid var(--border); cursor: pointer; }
.notice-content { white-space: normal; }
.active-tab { background: var(--primary) !important; color: #fff !important; }

/* ===== 表单 ===== */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.form-grid.cols-1 { grid-template-columns: 1fr; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}
.field label .req { color: #e25c5c; margin-left: 3px; }
input:not([type]), input[type=text], input[type=password], input[type=number], input[type=tel], input[type=email], input[type=date], select, textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  background: #fff;
  color: var(--text);
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(30,126,81,.12);
}
textarea { resize: vertical; min-height: 90px; }
.help { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

/* ===== 按钮 ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  transition: all .2s;
  background: var(--primary);
  color: #fff;
  font-weight: 500;
}
.btn:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn:active { transform: translateY(0); }
.btn.secondary { background: #fff; color: var(--primary); border: 1px solid var(--primary); }
.btn.secondary:hover { background: var(--primary); color: #fff; }
.btn.gold { background: var(--accent); color: #fff; }
.btn.gold:hover { background: #b29339; }
.btn.danger { background: #d85454; }
.btn.danger:hover { background: #b53f3f; }
.btn.sm { padding: 6px 12px; font-size: 12.5px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }

/* ===== 表格 ===== */
.table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--radius-sm);
  overflow: hidden;
  font-size: 13.5px;
}
.table th, .table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  text-align: center;
  vertical-align: middle;
}
.table th {
  background: linear-gradient(180deg, #f0f6f2, #e6efe9);
  color: var(--primary-dark);
  font-weight: 600;
  font-size: 13px;
}
.table tbody tr:hover { background: #f7fbf8; }
.table .left-align { text-align: left; }
.table-wrap { overflow-x: auto; border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); }
.tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 12px;
  background: #ecf3ef;
  color: var(--primary-dark);
}
.tag.pass { background: #d8efe0; color: #1e7e51; }
.tag.success { background: #d8efe0; color: #1e7e51; }
.tag.fail { background: #fde0e0; color: #b53f3f; }
.tag.pending { background: #fff5d9; color: #b58a18; }

.admin-filter-grid {
  display: grid;
  grid-template-columns: minmax(240px, 2fr) minmax(150px, 1fr) minmax(170px, 1fr);
  gap: 12px;
  align-items: end;
  margin: 14px 0;
}
.admin-filter-grid.two-cols { grid-template-columns: minmax(240px, 2fr) minmax(170px, 1fr); }
.admin-project-table-wrap { max-height: 68vh; overflow: auto; }
.compact-admin-table { min-width: 760px; table-layout: fixed; }
.compact-admin-table th:nth-child(1) { width: 30%; }
.compact-admin-table th:nth-child(2) { width: 23%; }
.compact-admin-table th:nth-child(3) { width: 14%; }
.compact-admin-table th:nth-child(4) { width: 15%; }
.compact-admin-table th:nth-child(5) { width: 7%; }
.compact-admin-table th:nth-child(6) { width: 11%; }
.compact-admin-table thead th { position: sticky; top: 0; z-index: 2; }
.compact-admin-table th,
.compact-admin-table td { padding: 7px 10px; }
.compact-achievement-table { min-width: 920px; table-layout: fixed; }
.compact-achievement-table th:nth-child(1) { width: 13%; }
.compact-achievement-table th:nth-child(2) { width: 31%; }
.compact-achievement-table th:nth-child(3) { width: 25%; }
.compact-achievement-table th:nth-child(4) { width: 8%; }
.compact-achievement-table th:nth-child(5) { width: 9%; }
.compact-achievement-table th:nth-child(6) { width: 14%; }
.compact-achievement-table th,
.compact-achievement-table td { padding: 7px 9px; }
.project-title-cell { text-align: left !important; }
.project-title-cell strong,
.project-title-cell span,
.cell-note { display: block; }
.project-title-cell strong,
.compact-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.project-title-cell span,
.cell-note { margin-top: 2px; color: var(--text-muted); font-size: 11.5px; font-weight: 400; }
.section-heading-row { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.section-heading-row h3 { margin-bottom: 2px; }
.project-detail-modal { max-width: 980px; }
.detail-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}
.detail-summary > div { background: #f5faf7; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px; }
.detail-summary span,
.detail-summary strong { display: block; }
.detail-summary > div > span:first-child { color: var(--text-muted); font-size: 12px; margin-bottom: 4px; }
.detail-section { margin-top: 20px; }
.detail-section h4 { margin: 0 0 10px; color: var(--primary-dark); }
.detail-list { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 8px 14px; margin: 0; }
.detail-list dt { color: var(--text-muted); }
.detail-list dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.detail-table th,
.detail-table td { padding: 8px 10px; }
.inline-upload { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.conclusion-input { min-height: 180px; line-height: 1.8; }
.modal-footer-split { display: flex; justify-content: space-between; gap: 12px; }
.btn:focus-visible,
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible { outline: 3px solid rgba(45, 156, 101, .35); outline-offset: 2px; }

/* ===== 弹窗 ===== */
.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(20,40,30,.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 20px;
  backdrop-filter: blur(2px);
}
.modal-mask.show { display: flex; animation: fadein .2s; }
@keyframes fadein { from { opacity: 0 } to { opacity: 1 } }
.modal {
  background: #fff;
  border-radius: var(--radius);
  max-width: 520px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: popin .25s ease;
}
.modal.large { max-width: 860px; }
.modal.project-detail-modal, .modal.assignment-modal {
  width: min(1440px, calc(100vw - 48px)); max-width: none;
  max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px);
  display: flex; flex-direction: column; overflow: hidden;
}
.modal.editor-modal { display: flex; flex-direction: column; overflow: hidden; }
.project-detail-modal > .modal-body, .assignment-modal .modal-body, .editor-modal .modal-body { overflow-y: auto; min-height: 0; }
.project-detail-modal > .modal-body { flex: 1; }
.assignment-modal > form, .editor-modal > form { display: flex; flex-direction: column; min-height: 0; }
.assignment-modal .modal-header, .editor-modal .modal-header, .project-detail-modal .modal-header,
.assignment-modal .modal-footer, .editor-modal .modal-footer, .project-detail-modal .modal-footer { flex-shrink: 0; }
.assignment-line { display: flex; align-items: flex-start; gap: 12px; padding: 14px 8px; }
.assignment-line[hidden] { display: none; }
.assignment-line input[type="checkbox"] { width: 18px; height: 18px; flex-shrink: 0; margin-top: 3px; }
.assignment-line span { min-width: 0; }
.assignment-line strong { display: block; overflow-wrap: anywhere; }
.assignment-line small { display: block; color: var(--text-muted); margin-top: 5px; }
.expert-row-actions { display: flex; flex-wrap: wrap; gap: 6px; min-width: 150px; }
.expert-management-table { min-width: 1100px; }
.review-metrics-table { min-width: 1500px; }
.metric-summary-table { min-width: 820px; }
.metric-header { min-width: 110px; max-width: 155px; white-space: normal; }
.metric-header small { display: block; font-weight: normal; color: var(--text-muted); margin-top: 5px; }
.numeric-cell { font-variant-numeric: tabular-nums; white-space: nowrap; }
.review-results-table { min-width: 905px; table-layout: fixed; overflow: visible; }
.review-results-table.has-metrics { min-width: 1355px; }
.review-summary-table { min-width: 1150px; }
.review-results-table th, .review-results-table td { padding: 9px 8px; overflow-wrap: anywhere; }
.review-results-table td:nth-child(4) { white-space: normal; text-overflow: clip; }
.review-results-table .metric-header { min-width: 0; max-width: none; }
.review-results-table th:nth-last-child(1), .review-results-table td:nth-last-child(1),
.review-results-table th:nth-last-child(2), .review-results-table td:nth-last-child(2) { position: sticky; z-index: 2; background: #f5faf7; }
.review-results-table th:nth-last-child(1), .review-results-table td:nth-last-child(1) { right: 0; }
.review-results-table th:nth-last-child(2), .review-results-table td:nth-last-child(2) { right: 100px; border-left: 1px solid var(--border); }
.review-summary-table th:nth-last-child(2), .review-summary-table td:nth-last-child(2) { right: 150px; }
.review-results-table thead th:nth-last-child(-n+2) { background: #e6efe9; z-index: 3; }
.review-results-wrap { max-width: 100%; }
.review-results-wrap::-webkit-scrollbar { height: 10px; }
.review-results-wrap::-webkit-scrollbar-track { background: #ecf3ef; }
.review-results-wrap::-webkit-scrollbar-thumb { background: #8bafa0; border-radius: 5px; }
.review-print-title { display: none; }
.review-results-wrap:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.review-scroll-hint { font-size: 12px; color: var(--text-muted); margin: 10px 0; }
.review-metric-legend { margin-top: 12px; font-size: 13px; }
.review-metric-legend summary, .review-result-card summary, .review-evaluation summary { cursor: pointer; color: var(--primary-dark); }
.review-metric-legend li { margin: 5px 0; }
.review-result-cards { display: none; }
.review-pending-table { table-layout: fixed; }
.review-pending-table td { overflow-wrap: anywhere; text-align: left; padding: 10px; }
.review-pending-table [data-score] { white-space: nowrap; padding: 7px 10px; }
.review-file-link { display: block; padding: 3px 0; font-size: 13px; }
.review-file-link span { display: none; }
.review-evaluation { padding-top: 16px; padding-bottom: 16px; }
.review-evaluation-heading { display: flex; gap: 12px; justify-content: space-between; align-items: center; margin: 8px 0; }
.review-evaluation-heading strong { min-width: 0; overflow-wrap: anywhere; }
.review-evaluation-heading .btn { flex-shrink: 0; }
.review-evaluation details { font-size: 13px; }
.score-dialog { max-height: calc(100dvh - 24px); }
.score-dialog > form { flex: 1; overflow: hidden; }
.score-dialog .modal-body { flex: 1; overscroll-behavior: contain; }
.score-dialog .modal-header h3 { font-size: 15px; }
.score-dialog .modal-footer { display: flex; justify-content: flex-end; gap: 10px; }
.score-table { table-layout: fixed; }
.score-table th, .score-table td { padding: 9px 7px; overflow-wrap: anywhere; }
.score-table input { width: 100%; min-width: 0; }
body:has(#score-modal.show) { overflow: hidden; }
@media (max-width: 760px) {
  .review-results-block .card, .review-pending, .review-evaluation { padding: 14px; }
  .review-results-wrap, .review-scroll-hint, .review-metric-legend { display: none; }
  .review-result-cards { display: block; }
  .review-result-card { padding: 14px 0; border-bottom: 1px solid var(--border); }
  .review-result-card:last-child { border-bottom: 0; }
  .review-result-card h3 { font-size: 15px; margin: 5px 0 10px; overflow-wrap: anywhere; }
  .review-card-status { display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; font-size: 13px; margin-bottom: 12px; }
  .review-card-status strong { flex-basis: 100%; }
  .review-result-card dl { font-size: 13px; margin: 12px 0 0; }
  .review-result-card dt { color: var(--text-muted); margin-top: 9px; }
  .review-result-card dd { margin: 3px 0 0; overflow-wrap: anywhere; }
  .review-pending-table, .review-pending-table tbody, .review-pending-table tr, .review-pending-table td { display: block; width: 100%; }
  .review-pending-table colgroup, .review-pending-table thead { display: none; }
  .review-pending-table tr { border-bottom: 1px solid var(--border); padding: 10px 0; }
  .review-pending-table td { border: 0; padding: 5px 2px; }
  .review-pending-table td::before { content: attr(data-label); display: block; color: var(--text-muted); font-size: 12px; margin-bottom: 3px; }
  .review-pending-table [data-score] { width: 100%; margin-top: 5px; }
  .review-file-link { padding: 5px 0; }
  .review-pending .table-wrap { box-shadow: none; }
  .score-dialog .modal-header, .score-dialog .modal-footer { padding: 12px 14px; }
  .score-dialog .modal-body { padding: 12px; }
}
@media (max-width: 760px) {
  .modal.project-detail-modal, .modal.assignment-modal { width: calc(100vw - 24px); max-height: calc(100dvh - 24px); }
  .project-detail-modal .modal-body, .assignment-modal .modal-body, .editor-modal .modal-body { padding: 14px; }
}
@keyframes popin { from { transform: scale(.92); opacity: 0 } to { transform: scale(1); opacity: 1 } }
.modal-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: var(--radius) var(--radius) 0 0;
}
.modal-header h3 { margin: 0 10px 0 0; font-size: 17px; flex: 1; min-width: 0; overflow-wrap: anywhere; }
.modal-close {
  background: rgba(255,255,255,.2);
  border: none;
  color: #fff;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}
.modal-close:hover { background: rgba(255,255,255,.35); }
.modal-body { padding: 22px; }
.modal-footer {
  padding: 14px 22px;
  border-top: 1px solid var(--border);
  text-align: right;
  background: #fafdfb;
  border-radius: 0 0 var(--radius) var(--radius);
}

/* ===== 上传 ===== */
.upload-zone {
  border: 2px dashed var(--border);
  background: #f7fbf8;
  border-radius: var(--radius-sm);
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: all .2s;
  color: var(--text-muted);
}
.upload-zone:hover { border-color: var(--primary); background: #ecf5ef; color: var(--primary); }
.upload-zone .icon { font-size: 32px; }
.upload-zone strong { color: var(--primary); }
.upload-list { margin-top: 10px; }
.upload-list .item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f0f6f2;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 6px;
  font-size: 13px;
}
.upload-list .item a { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ===== 通知列表 ===== */
.notice-list { display: flex; flex-direction: column; gap: 14px; }
.notice-item {
  display: flex;
  gap: 18px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-sm);
  transition: all .2s;
  cursor: pointer;
}
.notice-item:hover { border-left-color: var(--accent); transform: translateX(4px); box-shadow: var(--shadow-sm); }
.notice-date {
  flex-shrink: 0;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-sm);
  width: 64px;
  padding: 8px 0;
  text-align: center;
  font-size: 12px;
}
.notice-date .day { display: block; font-size: 22px; font-weight: 700; line-height: 1; }
.notice-body { flex: 1; }
.notice-body h4 { margin: 0 0 6px; color: var(--text); font-size: 15px; }
.notice-body .meta { font-size: 12px; color: var(--text-muted); }

/* ===== Toast ===== */
.toast {
  position: fixed;
  top: 100px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(31,45,40,.95);
  color: #fff;
  padding: 12px 22px;
  border-radius: 24px;
  z-index: 999;
  font-size: 14px;
  box-shadow: var(--shadow-lg);
  animation: slidedown .25s ease;
}
.toast.success { background: #1e7e51; }
.toast.error { background: #b53f3f; }
@keyframes slidedown { from { opacity: 0; transform: translate(-50%, -10px) } to { opacity: 1; transform: translate(-50%, 0) } }

/* ===== 统计 ===== */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
.stat {
  background: #fff;
  border-radius: var(--radius);
  padding: 18px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-sm);
}
.stat .icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}
.stat .num { font-size: 22px; font-weight: 700; color: var(--primary-dark); }
.stat .label { font-size: 12px; color: var(--text-muted); }

/* ===== 平台门户卡片 ===== */
.platform-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; margin-top: 18px; }
.platform-card {
  position: relative;
  background: linear-gradient(135deg, #fff 0%, #f3faf6 100%);
  border-radius: 16px;
  padding: 36px 30px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  overflow: hidden;
  transition: all .3s;
}
.platform-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.platform-card::before {
  content: "";
  position: absolute;
  top: -60px; right: -60px;
  width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(30,126,81,.16), transparent 70%);
  border-radius: 50%;
}
.platform-card .pc-icon {
  width: 70px; height: 70px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  font-size: 34px;
  color: #fff;
  margin-bottom: 18px;
  box-shadow: var(--shadow-md);
}
.platform-card h2 { margin: 0 0 10px; color: var(--primary-dark); font-size: 22px; }
.platform-card p { color: var(--text-muted); font-size: 14px; line-height: 1.7; margin: 0 0 18px; }
.platform-card .pc-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.platform-card .pc-tags span {
  background: #ecf3ef;
  color: var(--primary-dark);
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 12px;
}
.platform-card .pc-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-weight: 600;
}

/* ===== Hero ===== */
.hero {
  background:
    linear-gradient(120deg, rgba(21,95,61,.92), rgba(45,161,115,.82)),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 300'><path fill='%23ffffff' fill-opacity='.06' d='M0,150 C150,50 300,200 450,100 C600,0 750,150 900,80 L900,300 L0,300 Z'/></svg>");
  background-size: cover;
  color: #fff;
  padding: 64px 28px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='40' height='40'><circle cx='20' cy='20' r='1.2' fill='%23ffffff' fill-opacity='.25'/></svg>");
  opacity: .5;
}
.hero .hero-inner { position: relative; z-index: 1; max-width: 880px; margin: 0 auto; }
.hero .logo-lg { width: 88px; height: 88px; border-radius: 50%; background: #fff; padding: 5px; margin-bottom: 16px; box-shadow: 0 8px 30px rgba(0,0,0,.2); }
.hero h1 { margin: 0 0 8px; font-size: 32px; letter-spacing: 2px; }
.hero h1 .en { display: block; font-size: 13px; letter-spacing: 4px; opacity: .8; margin-top: 6px; font-weight: 400; }
.hero p { margin: 14px 0 26px; opacity: .92; font-size: 15px; line-height: 1.8; }

/* ===== Footer ===== */
.footer {
  text-align: center;
  padding: 24px;
  color: var(--text-muted);
  font-size: 12px;
  border-top: 1px solid var(--border);
  background: #fff;
  margin-top: 36px;
}

.compact-file { width: 170px; max-width: 100%; margin-bottom: 6px; font-size: 12px; }

/* ===== 成果查询详情 ===== */
.achievement-results { display: grid; gap: 18px; margin-top: 20px; }
.achievement-result-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.achievement-result-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.achievement-number { margin-left: 10px; color: var(--text-muted); font-size: 13px; }
.achievement-result-card section { padding: 14px 0; border-top: 1px solid var(--border); }
.achievement-result-card section:first-of-type { border-top: 0; }
.achievement-result-card h4 { display: inline-block; margin: 0 0 9px; padding-bottom: 5px; color: var(--primary-dark); border-bottom: 3px solid var(--primary-light); }
.achievement-result-card p { margin: 0; line-height: 1.85; overflow-wrap: anywhere; }
.achievement-result-card ol { margin: 0; padding-left: 1.7em; line-height: 1.9; }
.achievement-name { font-size: 18px; font-weight: 600; }
.achievement-conclusion { white-space: normal; line-height: 1.9; color: var(--text); }
.empty-result { margin-top: 18px; padding: 28px; text-align: center; color: var(--text-muted); background: #f7fbf8; border-radius: var(--radius-sm); }

/* ===== 响应式 ===== */
@media (max-width: 860px) {
  .form-grid, .platform-grid, .stats { grid-template-columns: 1fr; }
  .topbar { padding: 12px 16px; }
  .topbar .title h1 { font-size: 16px; }
  .container { padding: 18px; }
  .subnav { top: 72px; padding: 0 12px; }
  .hero { padding: 44px 16px 56px; }
  .hero h1 { font-size: 24px; }
  .hero .logo-lg { width: 70px; height: 70px; }
  .admin-filter-grid,
  .admin-filter-grid.two-cols { grid-template-columns: 1fr; }
  .detail-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-detail-modal { max-height: 94vh; }
}

@media (max-width: 520px) {
  .topbar { flex-wrap: wrap; position: static; }
  .topbar .title { flex: 1 1 calc(100% - 60px); min-width: 0; }
  .topbar .actions { flex: 1 1 100%; min-width: 0; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
  .topbar .user-chip { flex: 1 1 130px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .topbar .btn-link, .topbar .btn-linklike { flex-shrink: 0; padding: 7px 12px; white-space: nowrap; }
  .subnav { top: 0; }
  .detail-summary { grid-template-columns: 1fr; }
  .detail-list { grid-template-columns: 1fr; gap: 2px; }
  .detail-list dd { margin-bottom: 8px; }
  .modal-footer-split { align-items: stretch; flex-direction: column-reverse; }
  .modal-footer-split .btn { width: 100%; }
  .achievement-result-card { padding: 18px 16px; }
  .achievement-result-head { align-items: flex-start; flex-direction: column; }
}

/* ===== 打印样式（评审报告/签到表） ===== */
@media print {
  .topbar, .subnav, .footer, .btn-row, .no-print, .toast { display: none !important; }
  body { background: #fff; }
  .card { box-shadow: none; border: none; padding: 0; }
  .container { max-width: 100%; padding: 12px; }
  @page review-results { size: A4 landscape; margin: 10mm; }
  body.printing-review { page: review-results; }
  body.printing-review #view-review > :not(.review-results-block),
  body.printing-review .review-result-cards, body.printing-review .review-scroll-hint,
  body.printing-review .review-metric-legend { display: none !important; }
  body.printing-review .review-results-wrap { display: block; overflow: visible; box-shadow: none; }
  body.printing-review .review-print-title { display: block; }
  body.printing-review .modal-mask { display: none !important; }
  body.printing-review .review-results-table { width: 100%; min-width: 0; font-size: 9px; }
  body.printing-review .review-results-table col { width: auto !important; }
  body.printing-review .review-results-table col:nth-child(1) { width: 7% !important; }
  body.printing-review .review-results-table col:nth-child(2) { width: 18% !important; }
  body.printing-review .review-results-table col:nth-child(3) { width: 15% !important; }
  body.printing-review .review-results-table col:nth-child(4) { width: 12% !important; }
  body.printing-review .review-results-table th, body.printing-review .review-results-table td { position: static !important; padding: 5px 3px; font-size: 9px; }
  body.printing-review .review-results-table th small { font-size: 8px; }
  body.printing-review .review-results-table .metric-header > * { display: none; }
  body.printing-review .review-results-table .metric-header::before { content: attr(data-export-label); font-size: 8px; }
  body.printing-review .review-results-table .tag { padding: 0; font-size: 9px; }
  body.printing-review .review-results-table thead { display: table-header-group; }
  body.printing-review .review-results-table tr { break-inside: avoid; }
}
