/* 滨州市政协「三审三校」程序 · 视觉规范
   政务深蓝 + 香槟金，玻璃拟态卡片 */
:root {
  --navy: #0f2d5c;
  --navy-2: #1a5490;
  --navy-3: #2c6bb0;
  --gold: #c8a45c;
  --gold-2: #e6d3a8;
  --gold-soft: #f6efdd;
  --bg: #eef2f8;
  --bg-2: #e2e9f4;
  --card: rgba(255, 255, 255, .82);
  --card-solid: #ffffff;
  --line: #dbe3ef;
  --line-2: #eaf0f8;
  --text: #1f2733;
  --text-2: #4a5568;
  --muted: #8b95a5;
  --ok: #1e7a5a;
  --warn: #b8860b;
  --danger: #b03a2e;
  --info: #1a5490;
  --radius: 14px;
  --shadow: 0 8px 28px rgba(15, 45, 92, .08);
  --shadow-lg: 0 18px 48px rgba(15, 45, 92, .14);
  --font: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 12% -8%, rgba(26, 84, 144, .10), transparent 60%),
    radial-gradient(1000px 500px at 105% 0%, rgba(200, 164, 92, .14), transparent 55%),
    linear-gradient(160deg, var(--bg) 0%, var(--bg-2) 100%);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  font-size: 14px;
}
a { color: var(--navy-2); text-decoration: none; }
button, input, textarea, select { font-family: inherit; font-size: inherit; color: inherit; }

.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.center { text-align: center; }
.right { text-align: right; }
.mt8 { margin-top: 8px; } .mt16 { margin-top: 16px; } .mt24 { margin-top: 24px; }
.row { display: flex; gap: 10px; align-items: center; }
.row.wrap { flex-wrap: wrap; }
.col { display: flex; flex-direction: column; gap: 10px; }
.spacer { flex: 1; }
.gap6 { gap: 6px; }

/* ------------------------------------------------ 卡片 */
.card {
  background: var(--card);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}
.card.tight { padding: 12px 14px; }
.card-h {
  display: flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 700; color: var(--navy);
  padding-bottom: 10px; margin-bottom: 12px;
  border-bottom: 1px solid var(--line-2);
}
.card-h .bar {
  width: 4px; height: 16px; border-radius: 2px;
  background: linear-gradient(180deg, var(--gold), var(--navy-2));
}
.card-h .sub { font-weight: 400; font-size: 12px; color: var(--muted); }

/* ------------------------------------------------ 按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 16px; border-radius: 9px; cursor: pointer;
  border: 1px solid var(--line); background: #fff; color: var(--text-2);
  transition: .18s; font-size: 13px; white-space: nowrap;
}
.btn:hover { border-color: var(--navy-3); color: var(--navy-2); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn.primary {
  background: linear-gradient(135deg, var(--navy-2), var(--navy));
  color: #fff; border-color: transparent; box-shadow: 0 6px 16px rgba(26, 84, 144, .28);
}
.btn.primary:hover { color: #fff; box-shadow: 0 10px 22px rgba(26, 84, 144, .34); }
.btn.gold {
  background: linear-gradient(135deg, var(--gold), #b08d45);
  color: #3a2c0d; border-color: transparent;
}
.btn.gold:hover { color: #3a2c0d; }
.btn.danger { color: var(--danger); border-color: #e8cdc8; background: #fdf6f5; }
.btn.danger:hover { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn.ghost { background: rgba(255, 255, 255, .6); }
.btn.sm { padding: 5px 11px; font-size: 12px; border-radius: 7px; }
.btn.lg { padding: 11px 22px; font-size: 14px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* ------------------------------------------------ 标签 */
.tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 9px; border-radius: 20px; font-size: 11px;
  border: 1px solid transparent; white-space: nowrap; line-height: 18px;
}
.tag.navy { background: rgba(26, 84, 144, .10); color: var(--navy-2); border-color: rgba(26, 84, 144, .22); }
.tag.gold { background: var(--gold-soft); color: #8a6a20; border-color: rgba(200, 164, 92, .4); }
.tag.ok { background: rgba(30, 122, 90, .10); color: var(--ok); border-color: rgba(30, 122, 90, .25); }
.tag.warn { background: rgba(184, 134, 11, .10); color: var(--warn); border-color: rgba(184, 134, 11, .25); }
.tag.danger { background: rgba(176, 58, 46, .10); color: var(--danger); border-color: rgba(176, 58, 46, .25); }
.tag.gray { background: #eef1f6; color: var(--text-2); border-color: var(--line); }

/* ------------------------------------------------ 表单 */
.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }
.field > label { font-size: 12px; color: var(--text-2); font-weight: 600; }
.field > label .req { color: var(--danger); }
.input, .textarea, .select {
  width: 100%; padding: 9px 11px; border-radius: 9px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .9);
  outline: none; transition: .15s; font-size: 13px;
}
.input:focus, .textarea:focus, .select:focus {
  border-color: var(--navy-3); box-shadow: 0 0 0 3px rgba(26, 84, 144, .10);
}
.textarea { min-height: 120px; resize: vertical; line-height: 1.8; }
.textarea.body-edit { min-height: 380px; font-size: 14px; line-height: 2; font-family: "Microsoft YaHei", serif; }
.hint { font-size: 11px; color: var(--muted); }

/* ------------------------------------------------ 表格 */
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th {
  text-align: left; padding: 10px 12px; background: rgba(26, 84, 144, .06);
  color: var(--navy); font-weight: 700; font-size: 12px;
  border-bottom: 1px solid var(--line); white-space: nowrap;
}
.table td { padding: 10px 12px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.table tr:hover td { background: rgba(26, 84, 144, .035); }
.table .num { font-variant-numeric: tabular-nums; }

/* ------------------------------------------------ 修订痕迹 */
.ins {
  color: var(--navy-2); text-decoration: underline; text-underline-offset: 3px;
  background: rgba(26, 84, 144, .08); border-radius: 2px;
}
.del {
  color: var(--danger); text-decoration: line-through;
  background: rgba(176, 58, 46, .07); opacity: .8; border-radius: 2px;
}
.trace-body { font-size: 14px; line-height: 2; white-space: pre-wrap; word-break: break-word; font-family: "Microsoft YaHei", serif; }

/* ------------------------------------------------ 正文内联图片（[[img:附件ID]]） */
.inline-img { display: block; margin: 12px 0; text-align: center; }
.inline-img img { max-width: 100%; border-radius: 8px; border: 1px solid var(--line); background: #fff; }
.inline-img em { display: block; font-size: 11px; color: var(--muted); font-style: normal; margin-top: 4px; }
.inline-img.miss { color: var(--muted); font-size: 12px; }
.img-mark { color: var(--navy); background: rgba(26, 84, 144, .08); border-radius: 3px; padding: 0 3px; font-size: 12px; }
.attach { position: relative; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.attach img { width: 100%; height: 92px; object-fit: cover; display: block; }
.attach .nm { font-size: 11px; padding: 4px 6px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.attach-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; margin-top: 10px; }
.attach .ib {
  position: absolute; left: 4px; top: 4px; background: rgba(26, 84, 144, .85); color: #fff;
  border-radius: 4px; padding: 1px 5px; font-size: 11px; cursor: pointer;
}
/* 已插入正文的图片：宽度调节按钮（右下角） */
.attach .ib.sz { left: auto; right: 4px; top: auto; bottom: 26px; background: rgba(184, 134, 11, .92); }
.rev-item { border: 1px solid var(--line); border-radius: 10px; margin-bottom: 10px; overflow: hidden; background: #fff; }
.rev-h {
  padding: 7px 12px; background: linear-gradient(90deg, rgba(26, 84, 144, .06), rgba(200, 164, 92, .08));
  font-size: 12px; color: var(--text-2); display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  border-bottom: 1px solid var(--line-2);
}
.rev-b { padding: 12px 14px; }

/* ------------------------------------------------ 时间轴 */
.timeline { position: relative; padding-left: 22px; }
.timeline::before {
  content: ''; position: absolute; left: 6px; top: 4px; bottom: 4px; width: 2px;
  background: linear-gradient(180deg, var(--navy-3), var(--gold-2)); opacity: .35;
}
.tl-item { position: relative; padding-bottom: 16px; }
.tl-item::before {
  content: ''; position: absolute; left: -20px; top: 4px; width: 10px; height: 10px;
  border-radius: 50%; background: #fff; border: 2px solid var(--navy-3);
}
.tl-item.done::before { background: var(--navy-3); }
.tl-item.now::before { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 0 4px rgba(200, 164, 92, .2); }
.tl-item.reject::before { background: var(--danger); border-color: var(--danger); }
.tl-t { font-weight: 700; color: var(--navy); font-size: 13px; }
.tl-m { font-size: 12px; color: var(--muted); margin-top: 2px; }
.tl-o { font-size: 12px; color: var(--text-2); background: var(--line-2); border-radius: 8px; padding: 7px 10px; margin-top: 6px; }
.tl-sign { height: 34px; margin-top: 6px; }

/* ------------------------------------------------ 遮罩/弹窗 */
.mask {
  position: fixed; inset: 0; background: rgba(15, 45, 92, .34);
  backdrop-filter: blur(3px); display: flex; align-items: center; justify-content: center;
  z-index: 90; padding: 20px;
}
.modal {
  background: var(--card-solid); border-radius: 16px; box-shadow: var(--shadow-lg);
  width: 100%; max-width: 560px; max-height: 88vh; overflow: auto;
  border: 1px solid var(--line);
}
.modal.wide { max-width: 900px; }
.modal-h {
  padding: 14px 18px; border-bottom: 1px solid var(--line-2);
  display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--navy);
}
.modal-b { padding: 18px; }
.modal-f { padding: 12px 18px; border-top: 1px solid var(--line-2); display: flex; gap: 10px; justify-content: flex-end; }
.x { cursor: pointer; color: var(--muted); font-size: 18px; line-height: 1; }
.x:hover { color: var(--danger); }

/* ------------------------------------------------ 提示条 */
.toast-wrap { position: fixed; top: 18px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; }
.toast {
  background: rgba(15, 45, 92, .94); color: #fff; padding: 10px 18px; border-radius: 10px;
  box-shadow: var(--shadow-lg); font-size: 13px; display: flex; align-items: center; gap: 8px;
  animation: slideDown .25s ease;
}
.toast.ok { background: rgba(30, 122, 90, .95); }
.toast.err { background: rgba(176, 58, 46, .95); }
@keyframes slideDown { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }

/* ------------------------------------------------ 空状态 */
.empty { text-align: center; padding: 42px 16px; color: var(--muted); }
.empty .ico { font-size: 34px; opacity: .5; margin-bottom: 8px; }

/* ------------------------------------------------ 统计卡 */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.stat {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px;
  backdrop-filter: blur(12px); position: relative; overflow: hidden;
}
.stat::after {
  content: ''; position: absolute; right: -18px; top: -18px; width: 60px; height: 60px;
  border-radius: 50%; background: radial-gradient(circle, rgba(200, 164, 92, .22), transparent 70%);
}
.stat .n { font-size: 26px; font-weight: 800; color: var(--navy); font-variant-numeric: tabular-nums; }
.stat .l { font-size: 12px; color: var(--muted); margin-top: 2px; }
.stat.hot .n { color: var(--danger); }
.stat.gold .n { color: #8a6a20; }

/* ------------------------------------------------ 登录（电脑端） */
.login-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px;
  background:
    radial-gradient(560px 380px at 12% 8%, rgba(26, 84, 144, .10), transparent 65%),
    radial-gradient(620px 420px at 88% 92%, rgba(200, 164, 92, .14), transparent 65%),
    linear-gradient(180deg, #f4f7fb 0%, #eef2f8 100%);
}
.login-card {
  width: 100%; max-width: 940px; display: grid; grid-template-columns: 1.08fr 1fr;
  background: var(--card-solid); border-radius: 22px; overflow: hidden;
  box-shadow: 0 24px 70px -22px rgba(16, 42, 74, .38), 0 4px 18px rgba(16, 42, 74, .08);
  border: 1px solid var(--line);
}
.login-side {
  background:
    radial-gradient(420px 300px at 85% -10%, rgba(200, 164, 92, .16), transparent 60%),
    linear-gradient(150deg, #14395f 0%, var(--navy) 55%, #1f5488 100%);
  color: #fff; padding: 42px 38px 30px; position: relative; overflow: hidden;
  display: flex; flex-direction: column;
}
.login-side::before {
  content: ''; position: absolute; right: -70px; bottom: -70px; width: 250px; height: 250px;
  border: 1px solid rgba(200, 164, 92, .38); border-radius: 50%;
}
.login-side::after {
  content: ''; position: absolute; right: -24px; bottom: -24px; width: 158px; height: 158px;
  border: 1px solid rgba(200, 164, 92, .28); border-radius: 50%;
}
.login-brand { margin-bottom: 22px; }
.logo-ring {
  display: inline-flex; align-items: center; justify-content: center;
  width: 54px; height: 54px; border-radius: 50%;
  border: 1px solid rgba(200, 164, 92, .65); color: var(--gold-2);
  font-size: 16px; font-weight: 700; letter-spacing: 2px;
  background: rgba(200, 164, 92, .10); box-shadow: 0 0 0 5px rgba(200, 164, 92, .08);
}
.login-side h1 { font-size: 23px; margin: 6px 0 0; letter-spacing: 1.5px; line-height: 1.55; }
.login-side .en { font-size: 11px; letter-spacing: 2.2px; color: var(--gold-2); text-transform: uppercase; margin-top: 4px; }
.login-side .login-sub { margin: 12px 0 0; font-size: 13px; color: rgba(255, 255, 255, .78); letter-spacing: 2px; }
.login-side ul {
  list-style: none; padding: 0; margin: 26px 0 0; font-size: 13px; line-height: 2.15; opacity: .94;
  border-top: 1px solid rgba(255, 255, 255, .14); padding-top: 20px;
}
.login-side li::before { content: '▸'; color: var(--gold); margin-right: 8px; }
.login-side .login-foot { margin-top: auto; padding-top: 22px; font-size: 11px; color: rgba(255, 255, 255, .55); }
.login-main { padding: 44px 42px 34px; display: flex; flex-direction: column; }
.login-badge {
  display: inline-flex; align-items: center; gap: 7px; align-self: flex-start;
  font-size: 11.5px; color: #1e5c31; background: rgba(30, 122, 90, .09);
  border: 1px solid rgba(30, 122, 90, .22); border-radius: 999px; padding: 4px 11px;
}
.login-badge i { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
.login-main h2 { margin: 16px 0 18px; font-size: 21px; color: var(--navy); letter-spacing: 1px; }
.icon-field { position: relative; }
.icon-field svg {
  position: absolute; left: 11px; top: 50%; transform: translateY(-50%);
  width: 17px; height: 17px; color: var(--muted); pointer-events: none;
}
.icon-field .input { padding-left: 37px; height: 42px; border-radius: 10px; }
.icon-field .input:focus { border-color: var(--navy-3); box-shadow: 0 0 0 3px rgba(26, 84, 144, .12); }
.login-main .btn.lg {
  height: 44px; font-size: 15px; letter-spacing: 6px; border-radius: 10px; margin-top: 6px;
  background: linear-gradient(135deg, var(--navy) 0%, #24578f 100%);
  border: none; box-shadow: 0 8px 18px -8px rgba(20, 57, 95, .55);
  transition: .18s;
}
.login-main .btn.lg:hover { transform: translateY(-1px); box-shadow: 0 12px 22px -8px rgba(20, 57, 95, .6); }
.login-main .btn.lg:disabled { opacity: .7; transform: none; }
@media (max-width: 760px) {
  .login-card { grid-template-columns: 1fr; }
  .login-side { padding: 30px 26px 24px; }
  .login-main { padding: 30px 26px; }
}

/* ------------------------------------------------ 门户 */
.gate { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 28px; }
.gate-title { text-align: center; margin-bottom: 30px; }
.gate-title h1 {
  font-size: 26px; color: var(--navy); margin: 0 0 6px; letter-spacing: 3px; font-weight: 800;
}
.gate-title .sub { color: var(--muted); font-size: 13px; letter-spacing: 1px; }
.gate-title .line {
  width: 90px; height: 3px; margin: 12px auto 0; border-radius: 2px;
  background: linear-gradient(90deg, var(--gold), var(--navy-2));
}
.gate-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; max-width: 780px; width: 100%; }
.gate-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 26px 22px;
  text-align: center; cursor: pointer; transition: .22s; backdrop-filter: blur(14px); box-shadow: var(--shadow);
}
.gate-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--gold); }
.gate-card .ico { font-size: 38px; margin-bottom: 10px; }
.gate-card h3 { margin: 6px 0; color: var(--navy); font-size: 17px; }
.gate-card p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.8; }

/* ------------------------------------------------ 签名板 */
.sig-pad {
  border: 1px dashed var(--navy-3); border-radius: 10px; background: #fff;
  position: relative; touch-action: none; cursor: crosshair;
}
.sig-pad canvas { display: block; width: 100%; height: 100%; border-radius: 10px; }
.sig-placeholder {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 13px; pointer-events: none;
}

/* 登录页「记住登录」勾选项 */
.remember{display:flex;align-items:center;gap:6px;margin:12px 0 10px;font-size:13px;color:#6b7684;cursor:pointer;user-select:none;}
.remember input{width:15px;height:15px;accent-color:#1a5490;cursor:pointer;}
