@charset "utf-8";

:root {
  --c-primary: #2563eb;
  --c-primary-d: #1d4ed8;
  --c-accent: #ea580c;
  --c-accent-d: #c2410c;
  --c-bg: #eef3fb;
  --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: #1e3a8a;
  --c-footer-bg: #1e3a8a;
}

* { 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);
  padding-left: 210px;
}

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: #101c46;
  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, #172554 0%, #1e3a8a 60%, #2563eb 100%);
  border: none;
  margin-bottom: 0;
  box-shadow: 0 4px 24px rgba(15, 30, 80, 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); }

/* side navigation (fixed left) */
.category-strip {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 210px;
  margin: 0;
  background: linear-gradient(180deg, #172554 0%, #1e3a8a 100%);
  z-index: 300;
  box-shadow: 2px 0 16px rgba(15, 23, 64, 0.35);
}
.category-strip-inner {
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 100%;
  padding: 22px 14px;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  overflow-y: auto;
}
.side-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  padding: 4px 8px 18px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}
.category-strip-item {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 13px 16px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.07);
  transition: background 0.2s;
}
.category-strip-item:hover { background: rgba(255, 255, 255, 0.16); transform: none; color: #fff; }
.category-strip-item.active { background: #3b82f6; color: #fff; box-shadow: 0 3px 10px rgba(59, 130, 246, 0.4); }
.category-strip-item i { font-size: 15px; width: 18px; text-align: center; }
.side-publish { margin-top: auto; }

/* 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: #1d4ed8; }
.info-grid .info-group:nth-child(2) { border-top-color: #2563eb; }
.info-grid .info-group:nth-child(3) { border-top-color: #3b82f6; }
.info-grid .info-group:nth-child(4) { border-top-color: #0ea5e9; }
.info-grid .info-group:nth-child(5) { border-top-color: #6366f1; }
.info-grid .info-group:nth-child(6) { border-top-color: #0e7490; }

.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: #eff6ff; }
.list-dot { flex-shrink: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--c-primary); 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-primary); }

/* 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: linear-gradient(135deg, #172554 0%, #1e3a8a 100%);
  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: #93c5fd; }
.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%;
  right: 24px;
  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; }

/* detail contact phone */
.detail-phone { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px; padding: 10px 18px; background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 8px; color: var(--c-primary); font-size: 15px; }
.detail-phone strong { font-size: 20px; letter-spacing: 1px; }

/* job list thumb */
.job .item h2 .job-thumb { flex-shrink: 0; margin-right: 12px; }
.job .item h2 .job-thumb img { width: 56px; height: 42px; object-fit: cover; border-radius: 4px; display: block; }

/* cargo list thumb */
.cargo-list .item .cargo-thumb { flex-shrink: 0; margin-right: 14px; }
.cargo-list .item .cargo-thumb img { width: 80px; height: 60px; object-fit: cover; border-radius: 4px; display: block; }

/* about page */
.about-body { display: flex; gap: 24px; flex-wrap: wrap; }
.about-intro { flex: 1; min-width: 300px; }
.about-intro h3 { font-size: 18px; margin-bottom: 12px; }
.about-intro p { line-height: 1.9; color: var(--c-text); margin-bottom: 12px; }
.about-contact { width: 340px; max-width: 100%; flex-shrink: 0; background: #f8fafc; border: 1px solid var(--c-border); border-radius: 8px; padding: 20px; }
.about-contact h4 { font-size: 16px; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--c-border); }
.about-contact li { display: flex; align-items: flex-start; line-height: 2; color: var(--c-muted); font-size: 13px; }
.about-contact li i { width: 20px; margin-right: 8px; margin-top: 6px; color: var(--c-primary); }
.about-contact li span { flex: 1; color: var(--c-text); word-break: break-all; }

/* publish form */
.publish-form .form-row { margin-bottom: 16px; }
.publish-form label { display: block; font-weight: 600; margin-bottom: 6px; }
.publish-form label.required::after { content: " *"; color: var(--c-accent); }
.publish-form .form-control, .publish-form select.form-control, .publish-form textarea.form-control { width: 100%; max-width: 560px; height: 42px; border: 1px solid var(--c-border); border-radius: 6px; padding: 0 12px; font-size: 14px; font-family: inherit; background: #fff; }
.publish-form textarea.form-control { height: auto; padding: 10px 12px; resize: vertical; }
.publish-form .form-control:focus { border-color: var(--c-primary); outline: none; }
.publish-form .btn { min-width: 160px; height: 44px; background: var(--c-primary); color: #fff; border: none; border-radius: 6px; font-size: 16px; cursor: pointer; }
.publish-form .btn:hover { background: var(--c-primary-d); }
.publish-form .form-error { display: none; margin-bottom: 16px; padding: 8px 12px; max-width: 560px; background: #fef0f0; border: 1px solid #fbc4c4; border-radius: 6px; color: #f56c6c; font-size: 13px; }

/* 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; }
