/* zhuji 站点 - 基础样式：变量 / 重置 / 通用组件 */
:root {
  --zj-primary: #1e6f9f;
  --zj-primary-dark: #17567c;
  --zj-primary-light: #e8f3fa;
  --zj-accent: #ff7a45;
  --zj-green: #17a673;
  --zj-text: #2c3e50;
  --zj-text-sub: #64748b;
  --zj-text-muted: #94a3b8;
  --zj-border: #e6e9f0;
  --zj-bg: #f4f6f9;
  --zj-white: #ffffff;
  --zj-radius: 12px;
  --zj-radius-sm: 8px;
  --zj-shadow: 0 2px 10px rgba(20, 40, 60, .06);
  --zj-shadow-hover: 0 8px 24px rgba(20, 40, 60, .12);
  --zj-container: 1200px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--zj-bg);
  color: var(--zj-text);
  font: 14px/1.7 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color .2s;
}

a:hover {
  color: var(--zj-primary);
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4,
h5 {
  margin: 0;
  font-weight: 600;
  line-height: 1.4;
}

p {
  margin: 0 0 12px;
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  outline: none;
}

table {
  width: 100%;
  border-collapse: collapse;
}

/* ---------- 布局容器 ---------- */
.zj-container {
  width: 100%;
  max-width: var(--zj-container);
  margin: 0 auto;
  padding: 0 15px;
}

.zj-main {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  max-width: var(--zj-container);
  margin: 0 auto;
  padding: 20px 0px 40px;
}

.zj-content {
  flex: 1;
  min-width: 0;
}

.zj-card {
  background: var(--zj-white);
  border: 1px solid var(--zj-border);
  border-radius: var(--zj-radius);
  box-shadow: var(--zj-shadow);
}

.zj-panel {
  background: var(--zj-white);
  border: 1px solid var(--zj-border);
  border-radius: var(--zj-radius);
  box-shadow: var(--zj-shadow);
  padding: 18px 20px;
  margin-bottom: 20px;
}

.zj-panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 16px;
  font-weight: 600;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--zj-border);
}

.zj-panel-title .more {
  font-size: 13px;
  font-weight: 400;
  color: var(--zj-text-muted);
}

/* ---------- 面包屑 ---------- */
.zj-breadcrumb {
  max-width: var(--zj-container);
  margin: 16px auto 0;
  padding: 10px 16px;
  background: var(--zj-white);
  border: 1px solid var(--zj-border);
  border-radius: var(--zj-radius);
  font-size: 13px;
  color: var(--zj-text-sub);
  box-shadow: var(--zj-shadow);
}

.zj-breadcrumb .sep {
  margin: 0 6px;
  color: var(--zj-text-muted);
}

/* ---------- 按钮 ---------- */
.zj-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  padding: 0 18px;
  border: 1px solid var(--zj-border);
  border-radius: var(--zj-radius-sm);
  background: var(--zj-white);
  color: var(--zj-text);
  font-size: 14px;
  cursor: pointer;
  transition: all .2s;
}

.zj-btn:hover {
  color: var(--zj-primary);
  border-color: var(--zj-primary);
}

.zj-btn-primary {
  background: var(--zj-primary);
  border-color: var(--zj-primary);
  color: #fff;
}

.zj-btn-primary:hover {
  background: var(--zj-primary-dark);
  border-color: var(--zj-primary-dark);
  color: #fff;
}

.zj-btn-accent {
  background: var(--zj-accent);
  border-color: var(--zj-accent);
  color: #fff;
}

.zj-btn-accent:hover {
  background: #f0662f;
  border-color: #f0662f;
  color: #fff;
}

.zj-btn-block {
  width: 100%;
}

.zj-btn-lg {
  height: 42px;
  font-size: 15px;
}

.zj-btn-sm {
  height: 30px;
  padding: 0 12px;
  font-size: 13px;
}

.zj-btn[disabled] {
  opacity: .6;
  cursor: not-allowed;
}

/* ---------- 标签 / 徽标 ---------- */
.zj-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--zj-primary-light);
  color: var(--zj-primary);
  font-size: 12px;
  line-height: 20px;
}

.zj-tag-gray {
  background: #f1f4f8;
  color: var(--zj-text-sub);
}

.zj-tag-hot {
  background: #fff1e8;
  color: var(--zj-accent);
}

.zj-tag-green {
  background: #e7f8f1;
  color: var(--zj-green);
}

.zj-badge {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 12px;
  background: var(--zj-accent);
  color: #fff;
}

/* ---------- 表单 ---------- */
.zj-field {
  margin-bottom: 16px;
}

.zj-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  color: var(--zj-text-sub);
}

.zj-input,
.zj-select,
.zj-textarea {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--zj-border);
  border-radius: var(--zj-radius-sm);
  background: #fff;
  color: var(--zj-text);
  transition: border-color .2s;
}

.zj-textarea {
  height: auto;
  min-height: 96px;
  padding: 10px 12px;
  line-height: 1.6;
  resize: vertical;
}

.zj-input:focus,
.zj-select:focus,
.zj-textarea:focus {
  border-color: var(--zj-primary);
}

.zj-input-group {
  display: flex;
  gap: 8px;
}

.zj-checkbox {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--zj-text-sub);
  cursor: pointer;
}

/* ---------- 分页 ---------- */
.zj-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: nowrap;
  padding: 22px 20px 20px;
  color: var(--zj-text-sub);
}

.zj-pagination a,
.zj-pagination span {
  min-width: 30px;
  height: 30px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 4px;
  background: #f4f6f8;
  font-size: 13px;
  color: var(--zj-text-sub);
}

.zj-pagination a:hover {
  color: var(--zj-primary);
  background: var(--zj-primary-light);
}

.zj-pagination .active {
  background: var(--zj-primary);
  border-color: var(--zj-primary);
  color: #fff;
}

.zj-pagination .dots,
.zj-pagination .total {
  min-width: 22px;
  padding: 0 2px;
  background: transparent;
}

.zj-pagination .zj-page-arrow {
  background: transparent;
  font-size: 22px;
  font-weight: 300;
}

.zj-pagination .zj-page-arrow.is-disabled {
  color: #cbd5e1;
  cursor: not-allowed;
}

.zj-page-size {
  display: inline-flex;
  margin-right: 4px;
}

.zj-page-size-select,
.zj-page-jump-input {
  height: 30px;
  border: 1px solid var(--zj-border);
  border-radius: 5px;
  background: #fff;
  color: var(--zj-text-sub);
  font-size: 13px;
  transition: border-color .2s, box-shadow .2s;
}

.zj-page-size-select {
  min-width: 82px;
  padding: 0 26px 0 10px;
  cursor: pointer;
}

.zj-page-size-select:focus,
.zj-page-jump-input:focus {
  border-color: var(--zj-primary);
  box-shadow: 0 0 0 2px rgba(30, 111, 159, .1);
}

.zj-page-jumper {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 2px;
  white-space: nowrap;
  font-size: 13px;
}

.zj-page-jump-input {
  width: 48px;
  padding: 0 5px;
  text-align: center;
  -moz-appearance: textfield;
}

.zj-page-jump-input::-webkit-inner-spin-button,
.zj-page-jump-input::-webkit-outer-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (max-width: 700px) {
  .zj-pagination {
    justify-content: flex-start;
    overflow-x: auto;
    padding-right: 14px;
    padding-left: 14px;
    scrollbar-width: thin;
  }

  .zj-pagination a,
  .zj-pagination span,
  .zj-page-size,
  .zj-page-jumper {
    flex: 0 0 auto;
  }
}

/* ---------- 提示 ---------- */
.zj-empty {
  padding: 60px 20px;
  text-align: center;
  color: var(--zj-text-muted);
}

.zj-empty .icon {
  font-size: 40px;
  margin-bottom: 10px;
  opacity: .5;
}

.zj-toast {
  position: fixed;
  left: 50%;
  top: 80px;
  transform: translateX(-50%);
  z-index: 9999;
  width: auto;
  height: auto;
  white-space: nowrap;
  line-height: 1.4;
  padding: 10px 20px;
  border-radius: 20px;
  background: rgba(30, 41, 59, .92);
  color: #fff;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s, top .25s;
}

.zj-toast.show {
  opacity: 1;
  top: 100px;
}

/* ---------- 工具 ---------- */
.zj-text-center {
  text-align: center;
}

.zj-text-muted {
  color: var(--zj-text-muted);
}

.zj-mt-20 {
  margin-top: 20px;
}

.zj-ellipsis {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.zj-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.zj-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 992px) {
  .zj-main {
    flex-direction: column;
  }

  .zj-content {
    width: 100%;
  }
}
