/* 智勤合同管理系统 样式表 */

:root {
  --navy: #0f2c46;
  --navy-2: #0a2036;
  --primary: #0d63a8;
  --primary-d: #0a4f87;
  --primary-l: #e7f1fb;
  --bg: #f4f6fa;
  --card: #ffffff;
  --line: #e6ecf3;
  --line-2: #eff3f8;
  --text: #1e2a36;
  --muted: #6b7a8a;
  --ok: #147a45;
  --warn: #a8620a;
  --danger: #b42318;
  --shadow: 0 1px 2px rgba(16, 42, 67, .04), 0 8px 20px rgba(16, 42, 67, .05);
}

* { box-sizing: border-box; }

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.mono { font-family: Consolas, "Courier New", monospace; font-size: 12.5px; letter-spacing: .2px; }
.tiny { color: var(--muted); font-size: 12px; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.center { justify-content: center; }

/* ---------------------------------------------------------------- 布局 */

.shell { display: flex; min-height: 100vh; }

.sidebar {
  width: 232px;
  flex: 0 0 232px;
  background: var(--navy);
  background-image: linear-gradient(170deg, #123a5b 0%, #0c2740 55%, #08202f 100%);
  color: #c8d8e6;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 22px 20px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: linear-gradient(135deg, #2f8fd0, #0d63a8);
  color: #fff;
  font-size: 19px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0;
}

.brand-text b { display: block; color: #fff; font-size: 14.5px; letter-spacing: .5px; }
.brand-text span { display: block; font-size: 10px; color: #7f9ab2; letter-spacing: 1.6px; }

.nav { padding: 12px 0; flex: 1; overflow-y: auto; }

.nav-item {
  display: block;
  padding: 11px 22px;
  color: #a9bfd3;
  font-size: 14px;
  border-left: 3px solid transparent;
  transition: background .15s, color .15s;
}

.nav-item:hover { background: rgba(255, 255, 255, .06); color: #fff; text-decoration: none; }
.nav-item.on { background: rgba(47, 143, 208, .16); color: #fff; border-left-color: #3fa0de; font-weight: 600; }

.side-foot { padding: 14px 18px 18px; border-top: 1px solid rgba(255, 255, 255, .08); }

.side-copy { padding: 15px 20px 18px; }
.side-company { color: #9bb2c5; font-size: 11.5px; line-height: 1.5; }
.side-version { color: #6f8ea6; font-size: 10.5px; line-height: 1.5; margin-top: 3px; }

.me { display: flex; align-items: center; gap: 10px; }

.avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  color: #fff; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}

.me-text b { display: block; color: #e8f1f9; font-size: 13px; font-weight: 600; }
.me-text span { display: block; font-size: 11px; color: #86a2b8; }

.logout {
  display: block; margin-top: 10px; padding: 6px 0;
  color: #8fa9bf; font-size: 12.5px;
}
.logout:hover { color: #fff; text-decoration: none; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; padding: 0 26px 10px; }

.topbar {
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
}

.crumb { color: var(--muted); font-size: 13px; letter-spacing: .3px; }
.topbar-meta { color: var(--muted); font-size: 12.5px; }

.page { flex: 1; }

.foot { color: #9aa8b6; font-size: 11.5px; padding: 18px 0 8px; }

/* ---------------------------------------------------------------- 页头 */

.page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.page-head h1 { margin: 0 0 2px; font-size: 20px; font-weight: 700; letter-spacing: .3px; }
.page-head .sub { margin: 0; color: var(--muted); font-size: 13px; }

/* 工作台页头：标题 + 品牌口号 + 当前时间/操作 */
.dash-head { align-items: center; flex-wrap: nowrap; gap: 24px; }
.dash-id { flex: 0 0 auto; }
.dash-motto {
  flex: 1 1 auto;
  text-align: center;
  color: #2f8ed6;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 4px;
  white-space: nowrap;
}
.dash-meta { display: flex; align-items: center; gap: 16px; margin-left: auto; flex: 0 0 auto; }
.dash-clock {
  color: #64717f;
  font-size: 13px;
  line-height: 1.2;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f8fafc;
}
.dash-clock #dash-clock { font-weight: 600; color: #33414f; }

.dash-filter { gap: 6px 8px; padding: 8px 10px; margin-bottom: 12px; box-shadow: none; }
.dash-filter .df-label { color: #64717f; font-size: 12px; white-space: nowrap; }
.dash-filter .input { min-width: 96px; }
.dash-filter input[type="date"] { width: 132px; min-width: 132px; }
.dash-filter .df-sep { color: #9aa8b6; font-size: 11.5px; }
.dash-filter .df-sum { margin-left: auto; color: #64717f; font-size: 12px; white-space: nowrap; }

.head-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------------------------------------------------------------- 按钮 */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 34px;
  padding: 0 14px;
  border: 1px solid #d5dfe9;
  border-radius: 7px;
  background: #fff;
  color: #26323d;
  font-size: 13.5px;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: all .15s;
}
.btn:hover { border-color: var(--primary); color: var(--primary); text-decoration: none; }

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

.btn.danger { border-color: #ecc8c3; color: var(--danger); background: #fff; }
.btn.danger:hover { background: #fbeaea; border-color: #dfa9a1; color: var(--danger); }

.btn.small { height: 29px; padding: 0 10px; font-size: 12.5px; }
.btn-block { width: 100%; height: 40px; font-size: 15px; letter-spacing: 2px; }

/* ---------------------------------------------------------------- 卡片 / 统计 */

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 11px;
  box-shadow: var(--shadow);
  padding: 18px 20px;
  margin-bottom: 16px;
}

.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.card-head h2, .card-title { margin: 0; font-size: 15px; font-weight: 700; color: #17232e; }
.card-title { margin-bottom: 14px; }
.card-head .hint, .hint { color: var(--muted); font-size: 12px; font-weight: 400; }
.sub-title { font-size: 13.5px; margin: 18px 0 8px; color: #33414f; }

.card-foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); }
.card-foot form { margin: 0; }

.stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 13px; margin-bottom: 16px; }

.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid #1c7fc4;
  border-radius: 10px;
  padding: 14px 16px 13px;
  box-shadow: var(--shadow);
}
.stat:nth-child(3) { border-top-color: #17925a; }
.stat:nth-child(4) { border-top-color: #d18b1e; }
.stat:nth-child(5) { border-top-color: #b4453c; }

.stat-k { color: var(--muted); font-size: 12.5px; }
.stat-v { font-size: 23px; font-weight: 700; margin: 4px 0 2px; font-variant-numeric: tabular-nums; letter-spacing: -.3px; }
.stat-v.ok { color: var(--ok); }
.stat-v.warn { color: var(--warn); }
.stat-s { color: #8b98a6; font-size: 11.5px; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; align-items: start; }

/* ---------------------------------------------------------------- 提示 */

.alert {
  padding: 9px 14px;
  border-radius: 8px;
  margin-bottom: 14px;
  font-size: 13px;
  border: 1px solid transparent;
}
.alert-ok { background: #eaf7ef; border-color: #c5e7d3; color: #17683c; }
.alert-err { background: #fcecea; border-color: #f0c8c2; color: #a4241b; }

.notice {
  background: #fff9ea;
  border: 1px solid #f0dfae;
  color: #7a5a13;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  margin-bottom: 14px;
}
.notice a { color: #7a5a13; text-decoration: underline; }

.empty { text-align: center; color: #93a1b0; font-size: 13px; padding: 22px 0; }
.empty.big { padding: 46px 0; }
.empty p { margin: 4px 0; }

/* ---------------------------------------------------------------- 表格 */

.table { width: 100%; border-collapse: collapse; }
.table th {
  text-align: left;
  background: #f8fafc;
  color: #566474;
  font-size: 12.5px;
  font-weight: 600;
  padding: 9px 10px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.table td {
  padding: 10px;
  border-bottom: 1px solid var(--line-2);
  font-size: 13px;
  vertical-align: top;
}
.table tbody tr:hover { background: #fafcfe; }
.table.compact td { padding: 8px 10px; font-size: 12.5px; }
.table.compact th { padding: 7px 10px; }
.table .op { white-space: nowrap; }
.table .op a { margin-right: 10px; }
.table .op form { display: inline; margin: 0; }
.table .op-wide { white-space: nowrap; }
.table .op-wide form { display: inline-flex; align-items: center; gap: 4px; margin-right: 8px; }
.table .op-wide button { background: none; border: 0; padding: 0; }

.link { color: var(--primary); }
.danger-text { color: var(--danger); }
button.link { background: none; border: 0; padding: 0; color: var(--primary); cursor: pointer; font: inherit; }
button.link.danger-text { color: var(--danger); }

/* ---------------------------------------------------------------- 标签 / 徽章 */

.badge, .tag {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 20px;
  font-size: 11.5px;
  line-height: 18px;
  white-space: nowrap;
  vertical-align: middle;
}
.badge.blue, .tag.blue { background: #e7f1fb; color: #0d63a8; }
.badge.green, .tag.green { background: #e8f6ee; color: #147a45; }
.badge.orange, .tag.orange { background: #fdf0dd; color: #a8620a; }
.badge.red, .tag.red { background: #fbeaea; color: #b42318; }
.badge.yellow, .tag.yellow { background: #fff6d9; color: #8a6d0b; }
.badge.gray, .tag.gray { background: #eef1f5; color: #5b6875; }
.badge.dark, .tag.dark { background: #e9ecf2; color: #3b4756; }

/* ---------------------------------------------------------------- 表单 */

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

.input {
  width: 100%;
  height: 35px;
  padding: 0 10px;
  border: 1px solid #d5dfe9;
  border-radius: 7px;
  background: #fff;
  color: var(--text);
  font-size: 13.5px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(13, 99, 168, .12); }
.input:disabled { background: #f5f7fa; color: #8b98a6; }
.input[type="file"] { height: auto; min-height: 35px; padding: 5px 10px; line-height: 1.8; }
textarea.input { height: auto; padding: 8px 10px; line-height: 1.6; resize: vertical; }
.input.small { height: 30px; font-size: 12.5px; padding: 0 8px; }
.input.mini { width: 94px; height: 29px; font-size: 12px; }

.field { display: block; margin-bottom: 12px; }
.field > span { display: block; font-size: 12.5px; color: #5a6875; margin-bottom: 5px; }
.field > span b.req { color: var(--danger); font-weight: 400; }
.field em.hint { display: block; font-style: normal; color: #93a1b0; font-size: 11.5px; margin-top: 4px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 18px; }
.form-grid .span-2 { grid-column: span 2; }

.form-card { padding: 20px 22px 14px; }
.section-title {
  font-size: 13px;
  font-weight: 700;
  color: #2c3a48;
  margin: 8px 0 12px;
  padding-left: 9px;
  border-left: 3px solid var(--primary);
  line-height: 1.2;
}

.form-actions { display: flex; gap: 8px; margin-top: 16px; }

/* 合同表单：分区分卡片，字段按三列排布 */
.contract-form { display: flex; flex-direction: column; gap: 10px; }
.form-sec {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 16px 2px;
  box-shadow: 0 1px 2px rgba(23, 35, 46, .04);
}
.form-sec-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--line-2); }
.sec-no {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #eaf4fd;
  color: #1f7ab8;
  font-size: 12px;
  font-weight: 700;
  line-height: 22px;
  text-align: center;
}
.form-sec-head h2 { margin: 0; font-size: 15px; color: #17232e; }
.form-sec-head p { margin: 0; color: #8493a2; font-size: 12px; line-height: 1.5; }
.form-sec-head p b.req { color: var(--danger); font-weight: 400; }
.contract-form .field { margin-bottom: 9px; }
.contract-form .field > span { margin-bottom: 4px; }
.contract-form .field em.hint { margin-top: 3px; font-size: 11px; line-height: 1.5; }
.form-sec-slim { padding-bottom: 12px; }
.form-sec-slim .form-sec-head { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
.form-sec-slim .flow-steps { margin-left: auto; }
.form-sec-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px 18px; }
.form-grid.cols-3 .col-2 { grid-column: span 2; }
.field-note > span { visibility: hidden; }
.note-box {
  min-height: 38px;
  display: flex;
  align-items: center;
  padding: 7px 10px;
  background: #f8fafc;
  border: 1px dashed #d8e2ec;
  border-radius: 8px;
  color: #7d8b99;
  font-size: 12px;
  line-height: 1.55;
}
.money-input {
  display: flex;
  align-items: center;
  height: 38px;
  padding-left: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.money-input:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(13, 99, 168, .12); }
.money-input > span { color: #8b98a6; font-size: 15px; line-height: 1; }
.money-input input {
  width: 100%;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 0 10px 0 7px;
  color: #17232e;
  font-size: 17px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.pay-empty {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 15px 16px;
  background: #f8fbfd;
  border: 1px dashed #cfdde9;
  border-radius: 9px;
  margin-bottom: 14px;
}
.pay-icon {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #eaf4fd;
  color: #1f7ab8;
  font-size: 18px;
  font-weight: 700;
  line-height: 38px;
  text-align: center;
}
.pay-copy b { display: block; color: #2c3a48; font-size: 13.5px; }
.pay-copy p { margin: 4px 0 9px; color: #7d8b99; font-size: 12px; line-height: 1.7; }
.flow-steps { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.flow-steps span { padding: 3px 9px; background: #fff; border: 1px solid var(--line); border-radius: 999px; color: #52606d; font-size: 11.5px; }
.flow-steps i { color: #aab7c4; font-style: normal; font-size: 11px; }
.contract-actions {
  margin: 0;
  padding: 4px 2px 12px;
  background: transparent;
  border-top: 0;
}
.actions-tip { align-self: center; color: #8b98a6; font-size: 11.5px; margin-left: 4px; }

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
}
.filters .input { width: auto; min-width: 130px; }
.filters input[type="search"] { min-width: 240px; flex: 1 1 240px; }

.row-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.row-form .input { width: auto; }
.row-form.tight { border: 0; padding: 0; margin: 0; }
.mini-form { display: inline-flex; gap: 4px; align-items: center; }
.input.tiny-input { width: 100px; padding: 3px 6px; font-size: 12px; }

.inline-form { display: inline-flex; gap: 6px; align-items: center; margin: 0; }

.upload-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.upload-form .input { width: auto; }
.upload-form input[type="file"] { padding: 4px 8px; height: auto; max-width: 320px; }

/* ---------------------------------------------------------------- 详情 */

.detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.detail-code { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.detail-code .mono { color: var(--muted); font-size: 13px; }
.detail-title h1 { margin: 0 0 4px; font-size: 21px; }
.detail-title .sub { margin: 0; color: var(--muted); font-size: 13px; }

.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 22px; margin: 0; }
.kv > div { display: flex; gap: 10px; align-items: baseline; }
.kv dt { flex: 0 0 72px; color: var(--muted); font-size: 12.5px; }
.kv dd { margin: 0; font-size: 13px; word-break: break-all; }
.kv .span-2 { grid-column: span 2; }
.kv.two-col { grid-template-columns: 1fr 1fr; }

.money-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 10px; }
.money-grid > div { background: #f8fafc; border: 1px solid var(--line-2); border-radius: 8px; padding: 10px 12px; }
.money-k { display: block; color: var(--muted); font-size: 11.5px; }
.money-v { display: block; font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }
.money-v.ok { color: var(--ok); }
.money-v.warn { color: var(--warn); }

.bar { height: 8px; background: #e9eeF5; border-radius: 6px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: linear-gradient(90deg, #0d63a8, #34a0e0); border-radius: 6px; }
.bar.big { height: 11px; margin: 8px 0 4px; }

/* ---------------------------------------------------------------- 工作台图形 */

.pay-list { display: flex; flex-direction: column; gap: 14px; }
.pay-item .pay-top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.pay-item .pay-top a { font-size: 13px; }
.pay-amt { color: var(--warn); font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pay-meta { color: var(--muted); font-size: 11.5px; margin-top: 4px; }

.type-row { display: grid; grid-template-columns: 118px 1fr 96px; gap: 10px; align-items: center; margin-bottom: 11px; }
.type-name { font-size: 13px; }
.type-name .tiny { display: block; }
.type-bar { height: 9px; background: #eef2f7; border-radius: 5px; overflow: hidden; }
.type-bar > i { display: block; height: 100%; background: linear-gradient(90deg, #1b7fc0, #63b3e6); border-radius: 5px; }
.type-amt { text-align: right; font-size: 12.5px; color: #33414f; font-variant-numeric: tabular-nums; }

.chart { display: flex; align-items: flex-end; gap: 10px; height: 168px; padding-top: 8px; }
.chart-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; min-width: 0; }
.chart-val { font-size: 10.5px; color: var(--muted); margin-bottom: 3px; white-space: nowrap; }
.chart-bar-wrap { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; }
.chart-bar { width: 56%; max-width: 34px; background: linear-gradient(180deg, #4da6df, #0d63a8); border-radius: 4px 4px 0 0; }
.chart-label { font-size: 11.5px; color: var(--muted); margin-top: 6px; }

/* ---------------------------------------------------------------- 分页 */

.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.pager-info { color: var(--muted); font-size: 12.5px; }
.pager-links { display: flex; gap: 5px; align-items: center; }
.page-btn {
  min-width: 30px; height: 30px; padding: 0 9px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid #dde4ec; border-radius: 6px;
  background: #fff; color: #33414f; font-size: 12.5px;
}
.page-btn:hover { border-color: var(--primary); color: var(--primary); text-decoration: none; }
.page-btn.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.page-gap { color: #a4b0bd; padding: 0 2px; }

/* ---------------------------------------------------------------- 登录页 */

.login-body {
  min-height: 100vh;
  background-color: #eef4f9;
  background-image:
    linear-gradient(rgba(43, 96, 133, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(43, 96, 133, .055) 1px, transparent 1px),
    radial-gradient(ellipse 900px 620px at 50% -10%, rgba(126, 183, 222, .24), transparent 68%),
    radial-gradient(ellipse 700px 500px at 86% 106%, rgba(117, 174, 211, .18), transparent 66%),
    linear-gradient(160deg, #f6fafd 0%, #edf3f8 52%, #e2ecf4 100%);
  background-size: 64px 64px, 64px 64px, auto, auto, auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 34px 16px;
  position: relative;
  overflow: hidden;
}

.login-body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 0 42%, rgba(50, 112, 153, .06) 42%, rgba(50, 112, 153, .06) 42.6%, transparent 42.6%),
    linear-gradient(115deg, transparent 0 59%, rgba(50, 112, 153, .04) 59%, rgba(50, 112, 153, .04) 59.5%, transparent 59.5%);
}

.login-body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 46%, transparent 35%, rgba(43, 86, 116, .12) 100%);
}

.login-wrap { width: 100%; max-width: 392px; position: relative; z-index: 1; }

.login-slogan { text-align: center; margin: 0 0 27px; }
.slogan-cn {
  color: #194a68; font-size: 24px; font-weight: 600; letter-spacing: .2em;
  text-indent: .2em; text-shadow: 0 2px 18px rgba(255, 255, 255, .7);
}
.slogan-cn i { color: #2f8fd0; font-style: normal; margin: 0 2px; }
.slogan-en {
  color: #6e8ca2; font-size: 10px; letter-spacing: .3em; text-indent: .3em;
  margin-top: 7px;
}

.login-card {
  background: #fff;
  border-radius: 14px;
  padding: 28px 30px 26px;
  box-shadow: 0 22px 58px rgba(31, 73, 102, .17), 0 0 0 1px rgba(61, 107, 138, .1);
  position: relative;
  overflow: hidden;
}
.login-card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, #1f6f9f, #56aad3 52%, rgba(86, 170, 211, 0));
}

.login-brand { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 22px; }
.login-brand .brand-mark { width: 44px; height: 44px; font-size: 22px; border-radius: 10px; }
.login-brand-text { text-align: left; }
.login-brand-text b { display: block; font-size: 17.5px; color: #14202b; letter-spacing: .3px; }
.login-brand-text span { display: block; font-size: 11.5px; color: #7d8b99; letter-spacing: .55px; margin-top: 3px; }

.login-form { margin-top: 6px; }
.login-form .field { margin-bottom: 14px; }
.login-form .field > span { font-size: 12.5px; }

.login-foot {
  text-align: center; color: #6f8598; font-size: 11px; line-height: 1.7;
  letter-spacing: .2px; margin-top: 18px;
}

@media (max-width: 520px) {
  .login-body { padding: 24px 16px; }
  .login-slogan { margin-bottom: 19px; }
  .slogan-cn { font-size: 20px; letter-spacing: .14em; text-indent: .14em; }
  .slogan-en { font-size: 8.5px; letter-spacing: .22em; text-indent: .22em; }
  .login-card { padding: 24px 22px 22px; }
  .login-brand-text b { font-size: 16px; }
}

.error-box {
  background: #fff;
  border-radius: 14px;
  padding: 38px 30px 30px;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .28);
}
.error-code { font-size: 40px; font-weight: 700; color: #c9d5e1; letter-spacing: 2px; }
.error-msg { font-size: 14.5px; color: #33414f; margin: 8px 0 22px; line-height: 1.8; }

/* ---------------------------------------------------------------- 帮助页 */

.help h2 { font-size: 15px; margin: 20px 0 6px; color: #1b2937; }
.help h2:first-of-type { margin-top: 2px; }
.help p { font-size: 13.5px; color: #38586e; color: #3f4c5a; line-height: 1.95; margin: 0 0 4px; }
.help b { color: #0d63a8; }

/* ---------------------------------------------------------------- 关于我们 */

.about-tabs {
  display: flex;
  gap: 2px;
  margin: 0 0 16px;
  border-bottom: 1px solid var(--line);
}
.about-tab {
  border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  padding: 10px 18px;
  background: transparent;
  color: #6a7c8d;
  font-size: 14px;
  cursor: pointer;
}
.about-tab:hover { color: #1b7fc0; }
.about-tab.on {
  color: #0d63a8;
  font-weight: 700;
  border-bottom-color: #1b7fc0;
}
.about-panel .page-head { display: none; }

.about-hero {
  position: relative;
  overflow: hidden;
  padding: 32px 30px 28px;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #f2f8fd 0%, #ffffff 62%, #f8fbfe 100%);
  border: 1px solid #dbe9f5;
}
.about-hero::after {
  content: "";
  position: absolute;
  right: -48px;
  top: -62px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, #dcecf9 0%, rgba(220, 236, 249, 0) 70%);
}
.about-brand {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 16px;
}
.about-logo-img {
  display: block;
  height: 42px;
  width: auto;
  mix-blend-mode: multiply;
}
.about-company {
  color: #1e2330;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 1px;
}
.about-brand-sub {
  margin-top: 2px;
  color: #8b98a6;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2.6px;
}
.about-slogan {
  position: relative;
  z-index: 1;
  margin-top: 10px;
  color: #145c91;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 4px;
}
.about-slogan span { color: #2f8ed6; }
.about-rule {
  position: relative;
  z-index: 1;
  width: 52px;
  height: 3px;
  margin-top: 18px;
  border-radius: 2px;
  background: #2f8ed6;
}

.about-values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.about-value {
  position: relative;
  min-height: 132px;
  padding: 18px 18px 16px;
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(31, 91, 138, .05);
}
.about-no {
  position: absolute;
  right: 16px;
  top: 14px;
  color: #b5d2e4;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
}
.about-label {
  margin-bottom: 9px;
  color: #1b5f91;
  font-size: 15px;
  font-weight: 700;
}
.about-text {
  color: #3f4c5a;
  font-size: 13.5px;
  line-height: 1.9;
}

@media (max-width: 900px) {
  .about-values { grid-template-columns: 1fr; }
  .about-slogan { font-size: 24px; letter-spacing: 2px; }
}

/* ---------------------------------------------------------------- 响应式 */

.invoice-strip { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; margin: 8px 0 2px; padding: 8px 11px; background: #f8fafc; border: 1px solid var(--line-2); border-radius: 8px; font-size: 13px; color: #445465; }
.invoice-strip .sep { color: #b6c2ce; }
.invoice-strip b { color: #1f6f9f; }
.file-inline { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: #5b6b7b; }
.file-inline input[type="file"] { max-width: 200px; font-size: 12px; }
.hint-line { margin-top: 6px; color: #8194a6; }
.invoice-mini { display: inline; margin: 0; }
.file-hidden { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.invoice-mini label { cursor: pointer; }
table tfoot td { background: #f8fafc; font-weight: 600; color: #445465; }

/* ---------------------------------------------------------------- 多标签工作区 */

.ws-shell { height: 100vh; overflow: hidden; }

.ws-main { flex: 1; min-width: 0; display: flex; flex-direction: column; height: 100vh; background: var(--bg); }

.ws-tabbar {
  display: flex; align-items: stretch; gap: 0; padding: 0;
  height: 40px; background: #f3f5f7; border-bottom: 1px solid #d7dde4;
  box-shadow: none; z-index: 3;
}

.ws-tabs { display: flex; align-items: stretch; gap: 0; flex: 1; min-width: 0; overflow-x: auto; padding: 0; }

.ws-user {
  display: flex; align-items: center; gap: 7px; padding: 0 13px;
  flex: 0 0 auto; background: #f3f5f7; border-left: 1px solid #dde3e9;
}
.ws-avatar {
  width: 24px; height: 24px; border-radius: 50%; flex: 0 0 24px;
  display: flex; align-items: center; justify-content: center;
  background: #2f8ed6; color: #fff; font-size: 12px;
}
.ws-user-text b { display: block; color: #33404d; font-size: 12px; line-height: 1.2; }
.ws-user-text span { display: block; color: #8b98a6; font-size: 10px; line-height: 1.2; }
.ws-user-link { color: #4e6d86; font-size: 12px; white-space: nowrap; }
.ws-user-link:hover { color: #1f6fa5; text-decoration: none; }

.ws-tab {
  display: inline-flex; align-items: center; gap: 10px; padding: 0 14px;
  border: 0; border-right: 1px solid #dde3e9; border-radius: 0;
  background: #f8f9fb; color: #33404d; font-size: 13.5px; cursor: pointer;
  white-space: nowrap; flex: 0 0 auto; box-shadow: none;
  position: relative;
}

.ws-tab:hover { background: #eef5fb; }
.ws-tab.on { background: #2f8ed6; border-right-color: #2f8ed6; color: #fff; font-weight: 500; box-shadow: none; }
.ws-tab.on:hover { background: #2f8ed6; }

.ws-tab-x {
  border: 0; background: transparent; color: #8d99a5; font-size: 15px; line-height: 1;
  cursor: pointer; padding: 0 2px; border-radius: 0;
}
.ws-tab-x:hover { background: transparent; color: var(--danger); }
.ws-tab.on .ws-tab-x { color: #eaf4fd; }
.ws-tab.on .ws-tab-x:hover { color: #fff; }

.ws-frames { position: relative; flex: 1; min-height: 0; }

.ws-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #fff; display: block; }
.ws-frame[hidden] { display: none; }

.ws-empty {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; color: var(--muted);
}
.ws-empty[hidden] { display: none; }

.ws-tip { padding: 5px 14px; color: #8b9aa9; font-size: 11.5px; background: #fff; border-top: 1px solid var(--line-2); }

.embed-body { background: #fff; }
.embed-main { min-height: 100vh; display: flex; flex-direction: column; padding: 18px 26px 10px; }
.embed-main .page-head { border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.embed-main .page { flex: none; }

@media (max-width: 900px) {
  .ws-shell { height: auto; overflow: visible; flex-direction: column; }
  .ws-main { height: auto; }
  .ws-frames { height: 70vh; }
  .ws-user-text { display: none; }
  .ws-user { padding: 0 8px; gap: 5px; }
  .ws-user-link { font-size: 11px; }
  .embed-main { padding: 14px 14px 10px; }
  .ws-tip { display: none; }
  .dash-head { flex-wrap: wrap; gap: 12px; }
  .dash-motto { order: 3; flex-basis: 100%; text-align: left; letter-spacing: 2px; font-size: 15px; }
  .dash-meta { width: 100%; justify-content: space-between; }
}

@media (max-width: 1180px) {
  .stats { grid-template-columns: repeat(3, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .shell { flex-direction: column; }
  .sidebar { width: 100%; flex: none; height: auto; position: static; }
  .brand { padding: 14px 16px; }
  .nav { display: flex; overflow-x: auto; padding: 6px 8px; gap: 4px; }
  .nav-item { border-left: 0; border-bottom: 3px solid transparent; white-space: nowrap; padding: 8px 12px; border-radius: 6px 6px 0 0; }
  .nav-item.on { border-bottom-color: #3fa0de; border-left-color: transparent; }
  .side-foot { display: flex; align-items: center; justify-content: space-between; padding: 8px 16px; }
  .logout { margin-top: 0; }
  .main { padding: 0 14px 10px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: span 1; }
  .form-grid.cols-3 { grid-template-columns: 1fr; }
  .form-grid.cols-3 .col-2 { grid-column: span 1; }
  .form-sec { padding: 14px 14px 4px; }
  .form-sec-pair { grid-template-columns: 1fr; }
  .form-sec-slim .flow-steps { margin-left: 0; flex-basis: 100%; }
  .contract-actions { flex-wrap: wrap; }
  .actions-tip { flex-basis: 100%; margin: 2px 0 0; }
  .kv { grid-template-columns: 1fr; }
  .kv .span-2 { grid-column: span 1; }
  .money-grid { grid-template-columns: 1fr; }
  .table { display: block; overflow-x: auto; white-space: nowrap; }
  .filters .input { min-width: 0; flex: 1 1 45%; }
}
