@charset "utf-8";

:root {
  --c-primary: #059669;
  --c-primary-d: #047857;
  --c-accent: #dc2626;
  --c-accent-d: #b91c1c;
  --c-bg: #f3f4f6;
  --c-card: #ffffff;
  --c-text: #111827;
  --c-muted: #6b7280;
  --c-border: #e5e7eb;
  --shadow: 0 4px 18px rgba(0, 0, 0, 0.10);
  --shadow-sm: 0 1px 6px rgba(0, 0, 0, 0.06);
  --radius: 10px;
  --c-header-bg: #064e3b;
  --c-footer-bg: #064e3b;
}

* { box-sizing: border-box; }

html, body, div, dl, dt, dd, ul, ol, li, h1, h2, h3, h4, h5, h6, pre, code, form, fieldset, legend, input, textarea, p, blockquote, th, td, hr, button, article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
  margin: 0;
  padding: 0;
}

body {
  font: 14px/1.5 "Microsoft YaHei", "Lantinghei SC", "PingFang SC", "Helvetica Neue", Arial, "Hiragino Sans GB", sans-serif;
  background: var(--c-bg);
  color: var(--c-text);
}

a, a:hover { text-decoration: none; color: inherit; }
ol, ul { list-style: none; }

.container { width: 1200px; margin: 0 auto; padding: 0; }
.pull-left { float: left; }
.pull-right { float: right; }
.clearfix::after { content: ""; display: table; clear: both; }
.text-right { text-align: right; }
.text-muted { color: var(--c-muted); }
.text-danger { color: var(--c-accent); }

/* bootstrap-like grid */
.row { margin-right: -15px; margin-left: -15px; }
.row::after { content: ""; display: table; clear: both; }
.col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12 { position: relative; min-height: 1px; padding-right: 15px; padding-left: 15px; float: left; }
.col-sm-12 { width: 100%; }
.col-sm-11 { width: 91.66666667%; }
.col-sm-10 { width: 83.33333333%; }
.col-sm-9 { width: 75%; }
.col-sm-8 { width: 66.66666667%; }
.col-sm-7 { width: 58.33333333%; }
.col-sm-6 { width: 50%; }
.col-sm-5 { width: 41.66666667%; }
.col-sm-4 { width: 33.33333333%; }
.col-sm-3 { width: 25%; }
.col-sm-2 { width: 16.66666667%; }
.col-sm-1 { width: 8.33333333%; }

/* topbar */
#topbar {
  background: #042f21;
  color: rgba(255, 255, 255, 0.52);
  height: 34px;
  line-height: 34px;
  font-size: 12px;
}
#topbar .left-name { color: rgba(255, 255, 255, 0.52); }
#topbar .links li { display: inline-block; padding-left: 12px; }
#topbar .links a { color: rgba(255, 255, 255, 0.52); }
#topbar .links a:hover { color: #fff; }
#topbar .links .color-text { color: var(--c-primary); }

/* header */
#header {
  background: linear-gradient(135deg, #064e3b 0%, #065f46 60%, #047857 100%);
  border: none;
  margin-bottom: 0;
  box-shadow: 0 4px 24px rgba(4, 47, 33, 0.45);
}
.in-head {
  display: flex;
  align-items: center;
  padding: 18px 0;
  gap: 24px;
}
#header .logo { flex-shrink: 0; }
#header .logo .logo-text {
  color: #fff;
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
  white-space: nowrap;
  max-width: 360px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-block;
}
#header div.search {
  flex: 1;
  max-width: 540px;
  margin: 0;
  background: rgba(255, 255, 255, 0.97);
  border-radius: 7px;
  box-shadow: 0 2px 18px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}
#header div.search .input-group { display: flex; }
#header div.search .form-control {
  flex: 1;
  height: 44px;
  line-height: 44px;
  border: none;
  background: transparent;
  padding-left: 16px;
  font-size: 14px;
  color: var(--c-text);
  outline: none;
}
#header div.search .form-control::placeholder { color: #9ca3af; }
#header div.search .input-group-btn .btn {
  color: #fff;
  background: var(--c-primary);
  border: none;
  height: 44px;
  line-height: 44px;
  padding: 0 24px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
#header .action { margin-left: auto; flex-shrink: 0; }
#header .action a.add {
  display: inline-block;
  background: var(--c-accent);
  color: #fff;
  border-radius: 7px;
  height: 44px;
  line-height: 44px;
  padding: 0 28px;
  font-size: 15px;
  font-weight: 700;
  transition: background 0.2s, transform 0.15s;
}
#header .action a.add:hover { background: var(--c-accent-d); transform: translateY(-1px); }

/* category strip */
.category-strip { margin: 20px 0; }
.category-strip-inner {
  display: flex;
  gap: 10px;
  background: var(--c-card);
  border-radius: var(--radius);
  padding: 14px 18px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--c-border);
}
.category-strip-item {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 11px 14px;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  transition: opacity 0.2s, transform 0.15s;
}
.category-strip-item:hover, .category-strip-item.active { opacity: 0.88; transform: translateY(-2px); color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,0.5); }
.category-strip-item i { font-size: 15px; }

.category-strip-item:nth-child(1) { background: #059669; box-shadow: 0 3px 10px rgba(5, 150, 105, 0.32); }
.category-strip-item:nth-child(2) { background: #2563eb; box-shadow: 0 3px 10px rgba(37, 99, 235, 0.32); }
.category-strip-item:nth-child(3) { background: #dc2626; box-shadow: 0 3px 10px rgba(220, 38, 38, 0.32); }
.category-strip-item:nth-child(4) { background: #d97706; box-shadow: 0 3px 10px rgba(217, 119, 6, 0.32); }
.category-strip-item:nth-child(5) { background: #7c3aed; box-shadow: 0 3px 10px rgba(124, 58, 237, 0.32); }
.category-strip-item:nth-child(6) { background: #0891b2; box-shadow: 0 3px 10px rgba(8, 145, 178, 0.32); }

/* main layout */
#main { min-height: 500px; padding-bottom: 20px; }

/* homepage info grid */
.info-grid { display: flex; flex-direction: column; gap: 20px; margin-bottom: 30px; }
.info-group {
  background: var(--c-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  border: 1px solid var(--c-border);
  border-top: 4px solid var(--c-primary);
}
.info-grid .info-group:nth-child(1) { border-top-color: #059669; }
.info-grid .info-group:nth-child(2) { border-top-color: #2563eb; }
.info-grid .info-group:nth-child(3) { border-top-color: #dc2626; }
.info-grid .info-group:nth-child(4) { border-top-color: #d97706; }
.info-grid .info-group:nth-child(5) { border-top-color: #7c3aed; }
.info-grid .info-group:nth-child(6) { border-top-color: #0891b2; }

.info-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid var(--c-border);
  background: #fafafa;
}
.info-title .info-name { font-size: 16px; font-weight: 700; color: var(--c-text); }
.info-title .info-more {
  color: var(--c-muted);
  font-size: 12px;
  padding: 3px 12px;
  border: 1px solid var(--c-border);
  border-radius: 20px;
  transition: all 0.2s;
}
.info-title .info-more:hover { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }

.info-1 .info-content {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
}
.info-1 .info-content > li { display: block; min-width: 0; overflow: hidden; }

.info-card {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--c-border);
  background: var(--c-card);
  transition: box-shadow 0.2s, transform 0.2s;
}
.info-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.card-thumb { width: 100%; height: 130px; background: #e9ecef; overflow: hidden; }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s; }
.info-card:hover .card-thumb img { transform: scale(1.05); }
.card-info { padding: 10px 12px; }
.card-name { font-size: 13px; color: var(--c-text); font-weight: 500; line-height: 1.4; margin-bottom: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-meta { display: flex; justify-content: space-between; align-items: center; }
.card-unit { font-size: 11px; color: var(--c-primary); font-weight: 500; }
.card-time { font-size: 11px; color: #aaa; }
.info-card:hover .card-name { color: var(--c-primary); }

/* recruit list */
.info-recruit .info-content {
  display: flex;
  flex-wrap: wrap;
  padding: 6px 0;
}
.info-recruit .info-content > li { width: 50%; box-sizing: border-box; }
.info-list {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  border-bottom: 1px solid #f3f4f6;
  transition: background 0.15s;
}
.info-list:hover { background: #fef2f2; }
.list-dot { flex-shrink: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--c-accent); opacity: 0.65; }
.info-list .list-name { flex: 1; font-size: 13px; color: var(--c-text); min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.info-list .list-unit { font-size: 11px; color: var(--c-muted); flex-shrink: 0; max-width: 100px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.info-list .list-time { font-size: 11px; color: #bbb; flex-shrink: 0; }
.info-list:hover .list-name { color: var(--c-accent); }

/* cargo preview (same list style) */
.info-cargo .info-content { display: block; padding: 0; }
.info-cargo .info-list { width: 100%; }
.cargo-route { color: var(--c-muted); font-size: 12px; flex-shrink: 0; }
.cargo-route strong { color: var(--c-text); margin: 0 4px; }

/* breadcrumb */
.breadcrumb { background: var(--c-card); border-radius: var(--radius); padding: 12px 20px; margin-bottom: 16px; box-shadow: var(--shadow-sm); }
.breadcrumb li { display: inline-block; color: var(--c-muted); }
.breadcrumb li + li::before { content: ">"; margin: 0 8px; color: var(--c-muted); }
.breadcrumb a { color: var(--c-text); }
.breadcrumb li.active a { color: var(--c-primary); font-weight: 600; }

/* panel / filter */
.panel {
  background: var(--c-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--c-border);
  margin-bottom: 16px;
}
.p-md { padding: 20px; }
.filter dl { display: flex; line-height: 36px; margin-bottom: 10px; }
.filter dl:last-child { margin-bottom: 0; }
.filter dt { width: 70px; font-weight: 700; color: var(--c-text); flex-shrink: 0; }
.filter dd { flex: 1; }
.filter dd a {
  display: inline-block;
  padding: 0 12px;
  margin-right: 6px;
  border-radius: 4px;
  color: var(--c-muted);
  line-height: 26px;
  margin-top: 5px;
}
.filter dd a:hover, .filter dd a.active { background-color: var(--c-primary); color: #fff; }

/* list pages */
.list-1 .row.title { height: 40px; line-height: 40px; border-bottom: 1px solid #eee; font-weight: 700; }
.list-1 .item { line-height: 40px; min-height: 90px; overflow: hidden; display: flex; padding: 15px 0; }
.list-1 .item .thumb { margin-right: 15px; flex-shrink: 0; }
.list-1 .item .thumb img { width: 80px; height: 60px; object-fit: cover; border-radius: 4px; }
.list-1 .item h2 a { font-size: 16px; color: var(--c-text); }
.list-1 .item h2 a:hover { color: var(--c-primary); }
.list-1 .item .sorts { color: var(--c-muted); font-size: 12px; }
.list-1 .item strong.price { color: #ff6600; font-size: 16px; }
.list-1 hr { border: 0; border-top: 1px solid #f0f0f0; margin: 0; }

.list-2 .item { display: flex; padding: 18px 0; }
.list-2 .item .thumb { flex-shrink: 0; margin-right: 18px; }
.list-2 .item .thumb img { width: 150px; height: 100px; object-fit: cover; border-radius: 4px; }
.list-2 .item .middle { flex: 1; padding-left: 6px; }
.list-2 .item .middle h2 { margin-bottom: 8px; }
.list-2 .item .middle p { color: var(--c-muted); font-size: 13px; }
.list-2 .item .text-right { width: 140px; flex-shrink: 0; }
.list-2 .item .price { color: #ff6600; font-size: 20px; }
.list-2 .item .price small { font-size: 14px; }

/* job list */
.job .item { padding: 14px 0; border-bottom: 1px solid #f0f0f0; }
.job .item h2 { line-height: 36px; font-size: 18px; display: flex; align-items: center; }
.job .item h2 .name { color: var(--c-text); }
.job .item h2 .name:hover { color: var(--c-primary); }
.job .item h2 .salary { margin-left: auto; color: #ff6600; font-size: 16px; }
.job .item .company { color: var(--c-muted); font-size: 13px; }
.job .item .company img { vertical-align: middle; margin: 0 4px; }
.job .item .welfare { display: inline-flex; gap: 6px; margin-left: 12px; }
.job .item .welfare .label { color: #7b929f; background: #eef7fd; padding: 2px 8px; border-radius: 4px; font-size: 12px; }

/* cargo list page */
.cargo-list .item { display: flex; padding: 18px 0; border-bottom: 1px solid #f0f0f0; }
.cargo-list .item .cargo-main { flex: 1; }
.cargo-list .item h2 { font-size: 16px; margin-bottom: 8px; }
.cargo-list .item h2 a { color: var(--c-text); }
.cargo-list .item h2 a:hover { color: var(--c-primary); }
.cargo-list .item .cargo-tags { display: flex; gap: 16px; color: var(--c-muted); font-size: 13px; }
.cargo-list .item .cargo-tags span strong { color: var(--c-text); font-weight: 500; }
.cargo-list .item .cargo-time { width: 120px; text-align: right; color: #aaa; font-size: 12px; flex-shrink: 0; }

/* pagination */
.pagination { display: inline-flex; gap: 4px; margin-top: 12px; }
.pagination li a {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid var(--c-border);
  border-radius: 4px;
  color: var(--c-text);
  background: #fff;
}
.pagination li a:hover { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.pagination li.active a { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.pagination li.disabled a { color: #ccc; cursor: not-allowed; }

/* footer */
#footer {
  background: var(--c-footer-bg);
  margin-top: 40px;
  padding: 36px 0;
}
.footer-inner { text-align: center; }
.footer-nav { margin-bottom: 18px; }
.footer-nav a {
  display: inline-block;
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
  padding: 0 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
  line-height: 1;
}
.footer-nav a:last-child { border-right: none; }
.footer-nav a:hover { color: #6ee7b7; }
.footer-copy { color: rgba(255, 255, 255, 0.36); font-size: 12px; }
.footer-copy a { color: rgba(255, 255, 255, 0.36); }
.footer-copy a:hover { color: rgba(255, 255, 255, 0.68); }

/* toolbar */
#toolbar {
  position: fixed;
  top: 58%;
  left: 50%;
  margin-left: 600px;
  z-index: 99;
}
#toolbar > a {
  display: block;
  width: 48px;
  height: 48px;
  background: var(--c-primary);
  margin-top: 1px;
  text-align: center;
  line-height: 48px;
  color: #fff;
  font-size: 20px;
}
#toolbar > a:hover { background: var(--c-primary-d); }

/* detail page */
.detail-wrap { background: var(--c-card); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.detail-wrap h1 { font-size: 22px; margin-bottom: 16px; }
.detail-meta { color: var(--c-muted); font-size: 13px; margin-bottom: 20px; }
.detail-meta span { margin-right: 20px; }
.detail-fields { margin-bottom: 20px; }
.detail-fields dl { display: flex; line-height: 32px; border-bottom: 1px dashed var(--c-border); }
.detail-fields dt { width: 90px; color: var(--c-muted); }
.detail-fields dd { flex: 1; color: var(--c-text); }
.detail-body { line-height: 1.8; color: var(--c-text); }
.detail-body img { max-width: 100%; border-radius: 4px; margin: 10px 0; }
.detail-price { color: #ff6600; font-size: 28px; font-weight: 700; }

/* utility */
.overflow { white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
.mb-xs { margin-bottom: 5px; }
.mb-sm { margin-bottom: 10px; }
.mb-md { margin-bottom: 20px; }
.mt-xs { margin-top: 5px; }
.mt-sm { margin-top: 10px; }
.mt-md { margin-top: 20px; }
.ml-sm { margin-left: 10px; }
