.gongkao-header-section .container,
.gongkao-list-section .container {
  max-width: 1280px;
  width: 100%;
  padding: 0 12px;
}

.gongkao-header-section {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: #fff;
  padding: 15px 0 20px;
  position: relative;
  overflow: hidden;
}

.gongkao-header-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(77, 166, 255, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.gongkao-stats-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
}

@media (max-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  }
}

.stats-grid .stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  transition: all 0.2s ease;
  cursor: default;
}

.stats-grid .stat-item:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.stats-grid .stat-item.active {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.stat-name {
  font-size: 14px;
  font-weight: 600;
  color: #e2e8f0;
  margin-bottom: 6px;
  letter-spacing: 1px;
}

.stat-metrics {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
}

.stat-metric {
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.metric-label {
  font-size: 11px;
  color: #94a3b8;
  transform: scale(0.9);
}

.metric-value {
  font-family: var(--font-numeric, sans-serif);
  font-weight: 500;
}

.metric-value.today {
  color: #f87171;
  font-size: 13px;
  font-weight: 700;
}

.metric-value.week {
  color: #cbd5e1;
  font-size: 12px;
}

.metric-divider {
  width: 1px;
  height: 8px;
  background: #cbd5e1;
}

.stats-filter-row {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
  justify-content: flex-start;
}

.category-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
}

.category-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(77, 166, 255, 0.2);
  border-radius: 8px;
  transition: all 0.2s;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  min-width: fit-content;
}

.category-item:hover {
  background: rgba(77, 166, 255, 0.15);
  border-color: rgba(77, 166, 255, 0.5);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.category-item.active {
  background: rgba(77, 166, 255, 0.2);
  border-color: #60a5fa;
  box-shadow: 0 0 0 1px rgba(96, 165, 250, 0.3);
}

.category-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 3px;
  background: transparent;
  transition: background 0.2s;
  border-radius: 0 2px 2px 0;
}

.category-item.active::before {
  background: #f87171;
}

.category-name {
  font-size: 14px;
  color: #e0f2fe;
  font-weight: 500;
}

.category-count {
  font-size: 8px;
  color: #fff;
  background: #ef4444;
  padding: 2px 4px;
  border-radius: 2px;
  font-family: var(--font-numeric, sans-serif);
  min-width: 15px;
  text-align: center;
  font-weight: 700;
}

/* Filter Bar (Search + Count) */
.gongkao-filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 8px 12px;
  background: #f8fafc;
  border: 1px solid #eef2f7;
  border-radius: 8px;
  margin-bottom: 8px;
}

.filter-count {
  font-size: 13px;
  color: #64748b;
}

.filter-count .num {
  color: #ef4444;
  font-weight: 500;
  margin: 0 4px;
}

/* Search Box Style */
.gk-search-box {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  height: 32px;
  margin-left: 0;
  box-sizing: border-box;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.gk-search-input {
  background: transparent;
  border: none;
  outline: none;
  color: #334155;
  font-size: 13px;
  width: 140px;
}

.gk-search-input::placeholder {
  color: #94a3b8;
}

.gk-search-btn {
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  color: #64748b;
}

.gk-search-btn:hover {
  color: #334155;
}

.gk-search-icon {
  width: 22px;
  height: 22px;
  opacity: 0.6;
}

.gongkao-list-section {
  padding: 8px 0 60px;
  background-color: var(--bg);
  min-height: 320px;
}

.list-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  min-height: 160px;
}

.gongkao-list {
  display: flex;
  flex-direction: column;
}

.list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid #f1f5f9;
  transition: background-color 0.2s;
  text-decoration: none;
}

.list-item:hover {
  background-color: #f8fafc;
}

.list-item:last-child {
  border-bottom: none;
}

.list-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.list-meta-tag {
  font-size: 14px;
  color: #64748b;
  flex-shrink: 0;
}

.list-title {
  font-size: 14px;
  color: #334155;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.list-item:hover .list-title {
  color: #2563eb;
}

.list-divider {
  color: #cbd5e1;
  font-size: 12px;
}

.list-time {
  font-size: 14px;
  color: #94a3b8;
  font-family: var(--font-numeric, sans-serif);
  white-space: nowrap;
}

.list-right {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: 20px;
  flex-shrink: 0;
}

.list-status {
  font-size: 14px;
  color: #f56c6c;
  font-weight: 500;
  white-space: nowrap;
}

.list-status.pending {
  color: #0ea5e9;
}

.list-status.closed {
  color: #909399;
}

.list-reg-time {
  font-size: 13px;
  color: #64748b;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pager {
  margin-top: 24px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.pager button {
  padding: 6px 12px;
  border: 1px solid #e2e8f0;
  background: #fff;
  border-radius: 6px;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 13px;
}

.pager button:hover:not(:disabled) {
  border-color: #3b82f6;
  color: #3b82f6;
}

.pager button.active {
  background: #3b82f6;
  color: #fff;
  border-color: #3b82f6;
}

.pager button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: #f1f5f9;
}

/* Modals */
.gk-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.2s ease-out;
}

.gk-modal {
  width: 960px;
  max-width: 90vw;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: visible;
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.gk-modal-inner {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  max-height: 85vh;
}

.gk-modal-header {
  padding: 24px;
  border-bottom: 1px solid #f1f5f9;
  position: relative;
  background: #fafafa;
}

.gk-modal-close {
  position: absolute;
  top: -13px;
  right: -13px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  border: 0.5px solid #e6e8eb;
  color: #606266;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  display: grid;
  place-items: center;
  z-index: 20;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  font-size: 18px;
  transition: all 0.2s;
}

.gk-modal-close:hover {
  background-color: #f0f2f5;
  color: #303133;
}

.gk-modal-title-row {
  display: block;
  margin-bottom: 12px;
  padding-right: 30px;
  line-height: 1.6;
}

.gk-modal-title {
  font-size: 18px;
  font-weight: 600;
  color: #1e293b;
  display: inline;
}

.gk-view-announcement-btn {
  font-size: 12px;
  color: #3b82f6;
  background: transparent;
  padding: 1px 10px;
  border-radius: 100px;
  border: 1px solid #3b82f6;
  text-decoration: none;
  white-space: nowrap;
  display: inline-block;
  vertical-align: middle;
  margin-left: 4px;
  line-height: 1.4;
  position: relative;
  top: -2px;
}

.gk-view-announcement-btn:hover {
  background: #eff6ff;
}

.gk-view-detail-btn {
  font-size: 13px;
  color: #3b82f6;
  background: #eff6ff;
  padding: 5px 6px;
  border-radius: 4px;
  text-decoration: none;
  white-space: nowrap;
}

.gk-view-detail-btn:hover {
  background: #dbeafe;
}

.gk-company-link {
  color: #334155;
  text-decoration: none;
  transition: color 0.2s;
}

.gk-company-link:hover {
  color: #3b82f6;
  text-decoration: underline;
}

.gk-external-link {
  color: #3b82f6;
  text-decoration: none;
}

.gk-external-link:hover {
  text-decoration: underline;
}

.gk-modal-meta-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 12px;
}

.gk-modal-meta-row {
  display: flex;
  align-items: center;
  gap: 35px;
}

.gk-modal-meta-row>.gk-modal-meta-item:first-child {
  width: 140px;
  min-width: 140px;
}

.gk-modal-status-row {
  align-items: flex-start;
}

.gk-modal-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #64748b;
  white-space: nowrap;
  flex-shrink: 0;
}

.gk-modal-apply-time-item {
  white-space: normal;
  flex-shrink: 1;
  line-height: 1.5;
}

.gk-modal-meta-item svg {
  color: #94a3b8;
  width: 13px;
  height: 13px;
  min-width: 13px;
  flex-shrink: 0;
}

.gk-modal-status {
  color: #f56c6c;
}

.gk-modal-status.closed {
  color: #909399;
}

.gk-modal-status.pending {
  color: #0ea5e9;
}

.gk-modal-stats-bar {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 16px;
  border-top: 1px dashed #e2e8f0;
}

.gk-modal-stat {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.gk-modal-stat-label {
  font-size: 13px;
  color: #64748b;
}

.gk-modal-stats-highlight {
  font-size: 18px;
  font-weight: 700;
  color: #3b82f6;
  font-family: var(--font-numeric, sans-serif);
}

.gk-modal-stat-unit {
  font-size: 12px;
  color: #94a3b8;
}

.gk-modal-body {
  flex: 1;
  overflow-y: auto;
  overflow-x: auto;
  padding: 0 0 24px 0;
  background: #fff;
}

.gk-job-table {
  width: 100%;
  border-collapse: collapse;
}

.gk-job-table th {
  background: #f8fafc;
  padding: 12px 16px;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  border-bottom: 1px solid #f1f5f9;
  white-space: nowrap;
}

.gk-job-table th:first-child,
.gk-job-table td:first-child {
  padding-left: 24px;
}

.gk-job-table td {
  padding: 12px 16px;
  font-size: 13px;
  color: #334155;
  border-bottom: 1px solid #f1f5f9;
}

.gk-job-table th:nth-child(4),
.gk-job-table th:nth-child(5),
.gk-job-table td:nth-child(4),
.gk-job-table td:nth-child(5) {
  text-align: center;
}

.gk-job-table th:nth-child(3),
.gk-job-table td:nth-child(3) {
  min-width: 120px;
}

.gk-job-table tr:hover td {
  background: #f8fafc;
}

.gk-hidden {
  display: none !important;
}

.gk-list-message {
  text-align: center;
  padding: 40px;
  color: #909399;
}

.gk-list-message.error {
  color: #f56c6c;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 0;
  color: #94a3b8;
}

/* Login Guard styles moved to styles.css */

body.require-login.logged-out .gongkao-header-section,
body.require-login.logged-out .gongkao-list-section {
  display: none !important;
}

.gk-job-detail-row td {
  padding: 0;
  border-bottom: 1px solid #f1f5f9;
  background: #f8fafc;
}

.gk-job-detail-content {
  padding: 16px 24px 24px;
  background: #f8fafc;
}

.gk-detail-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid #e8ebf0;
  margin-top: 8px;
}

.gk-detail-table td {
  padding: 12px 16px;
  border: 1px solid #e8ebf0;
  font-size: 13px;
  line-height: 1.5;
}

.gk-detail-table .gk-dt-label {
  background-color: #f7f8fa !important;
  color: #606266;
  width: 110px;
  font-weight: normal;
  white-space: nowrap;
  vertical-align: middle;
  text-align: center;
}

.gk-detail-table .gk-dt-value {
  background-color: #fff !important;
  color: #334155;
  padding: 12px 16px;
  line-height: 1.6;
  vertical-align: middle;
}

.gk-desc-content {
  white-space: pre-wrap;
  color: #475569;
  max-height: 300px;
  overflow-y: auto;
}

.gk-expanded-row>td {
  border-bottom: none;
  background: #f8fafc;
  font-weight: 700;
}

@media (max-width: 1000px) {
  .list-right {
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 4px !important;
    margin-left: 10px !important;
  }

  .list-reg-time,
  .list-status {
    display: none !important;
  }

  .list-left {
    flex-wrap: wrap;
    height: auto;
  }

  .list-title {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    height: auto;
  }

  .list-divider {
    display: none;
  }

  .list-time {
    width: 100%;
    margin-top: 4px;
  }

  .list-time::before {
    content: "/ ";
  }
}