/* 律序团队版 · 登录 / 我的账号 / 管理后台 共用样式。视觉与工作台一致：藏青（职业）+ 朱红印章（只用在关键处）+ 干净的白。 */
:root {
  --ink: #13213a; --ink2: #1d2f4f; --ink3: #2c4168; --ink-soft: #eef1f6; --ink-line: #d8dfea;
  --red: #c8302a; --red2: #a9251f; --red-soft: #fcefed;
  --bg: #f4f5f7; --paper: #ffffff; --line: #e3e6eb; --line2: #eef0f3;
  --text: #18212f; --sub: #586273; --faint: #8a93a2;
  --ok: #1f7a55; --ok-bg: #e8f5ee; --warn: #93600a; --warn-bg: #fdf5e4; --bad: #b42318; --bad-bg: #fdeeec;
  --sans: "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  --seal: "Kaiti SC", "STKaiti", "KaiTi", "楷体", serif;
  --num: "DIN Alternate", "DIN Pro", "Bahnschrift", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --r: 14px; --r2: 10px;
  --sh: 0 1px 2px rgba(19,33,58,.04), 0 1px 6px rgba(19,33,58,.04);
  --sh2: 0 6px 16px rgba(19,33,58,.08), 0 24px 48px rgba(19,33,58,.10);
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { font-family: var(--sans); font-size: 15px; line-height: 1.7; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }
::selection { background: #fbe0dc; }

/* 印章 logo */
.seal { width: 44px; height: 44px; display: grid; place-items: center; flex: none; border-radius: 10px; background: var(--red); color: #fff; font: 700 26px/1 var(--seal); box-shadow: 0 4px 12px rgba(200,48,42,.28), inset 0 0 0 2px rgba(255,255,255,.18); }
.seal.sm { width: 34px; height: 34px; font-size: 20px; border-radius: 8px; }
.brand { display: flex; gap: 12px; align-items: center; }
.brand b { display: block; font-size: 20px; font-weight: 800; line-height: 1.25; letter-spacing: 3px; color: var(--ink); }
.brand small { display: block; font-size: 12.5px; color: var(--faint); letter-spacing: 1px; }

/* 表单 */
.field { margin-top: 18px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; color: var(--sub); margin-bottom: 7px; }
.input { width: 100%; height: 46px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--r2); background: #fff; font-size: 15.5px; transition: border-color .2s, box-shadow .2s; }
select.input { padding-right: 34px; appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23586273' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center; }
.input:hover { border-color: var(--ink-line); }
.input:focus { outline: none; border-color: var(--ink3); box-shadow: 0 0 0 3px rgba(44,65,104,.12); }
.input[readonly] { background: var(--line2); color: var(--sub); }
.input + .input { margin-top: 8px; }
.hint { font-size: 13px; color: var(--faint); margin: 6px 0 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 42px; padding: 0 18px; border-radius: var(--r2); border: 1px solid var(--line); background: var(--paper); cursor: pointer; font-size: 15px; font-weight: 600; white-space: nowrap; color: var(--ink); transition: background .2s, border-color .2s, transform .15s; }
.btn:hover { border-color: var(--ink-line); background: #f7f8fa; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.primary:hover { background: var(--ink2); }
.btn.block { width: 100%; height: 48px; font-size: 16px; margin-top: 26px; }
.btn:disabled { opacity: .55; cursor: default; }
.link { background: none; border: 0; padding: 0; cursor: pointer; color: var(--ink3); font-size: 14px; font-weight: 600; }
.link:hover { color: var(--red); }
.msg { font-size: 13.5px; min-height: 22px; margin-top: 12px; }
.msg.err { color: var(--bad); } .msg.ok { color: var(--ok); }
.note { margin-top: 18px; padding: 13px 15px; border-radius: var(--r2); background: var(--ink-soft); color: var(--ink2); font-size: 14px; line-height: 1.75; }
.note b { color: var(--ink); }
.note.red { background: var(--red-soft); color: #7a2420; }

/* ===== 登录页：左侧藏青品牌面，右侧表单 ===== */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(360px, 44%) 1fr; }
.aside { position: relative; overflow: hidden; background: var(--ink); color: #dfe5ef; padding: 56px 56px 40px; display: flex; flex-direction: column; }
.aside::after { content: "律"; position: absolute; right: -40px; bottom: -90px; font: 700 420px/1 var(--seal); color: rgba(255,255,255,.035); pointer-events: none; }
.aside .brand b { color: #fff; } .aside .brand small { color: #93a0b6; }
.aside h1 { margin: auto 0 0; font-size: 34px; line-height: 1.35; font-weight: 800; color: #fff; letter-spacing: 1px; }
.aside h1 em { font-style: normal; color: #f2b9b3; }
.aside p.lead { margin: 14px 0 0; font-size: 15.5px; color: #b9c3d3; max-width: 26em; }
.aside ul { list-style: none; margin: 32px 0 auto; padding: 0; display: grid; gap: 14px; }
.aside li { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; color: #cfd7e3; }
.aside li i { flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); font-style: normal; font-size: 12px; color: #fff; }
.aside .credit { font-size: 12.5px; color: #7f8ca3; letter-spacing: 1px; }
.main { display: grid; place-items: center; padding: 40px 24px; }
.panel { width: 100%; max-width: 392px; }
.panel h2 { margin: 0; font-size: 26px; font-weight: 800; color: var(--ink); letter-spacing: 1px; }
.panel .sub { margin: 6px 0 0; color: var(--sub); font-size: 14.5px; }
.row { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; }
.foot { margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13px; color: var(--faint); }
.mobile-brand { display: none; }
@media (max-width: 860px) {
  .auth { grid-template-columns: 1fr; }
  .aside { display: none; }
  .mobile-brand { display: flex; margin-bottom: 30px; }
  .main { place-items: start center; padding-top: 48px; }
}

/* ===== 单卡页面（我的账号） ===== */
.page { min-height: 100vh; display: grid; place-items: start center; padding: 48px 16px; }
.sheet { width: 100%; max-width: 520px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh); padding: 30px 32px 26px; }
.sheet h1 { margin: 22px 0 2px; font-size: 22px; font-weight: 800; color: var(--ink); }
.sheet .who { color: var(--sub); font-size: 14px; margin: 0; }
.sheet h2 { margin: 28px 0 0; padding-top: 22px; border-top: 1px solid var(--line2); font-size: 16px; font-weight: 800; color: var(--ink); }
.sheet .bar { display: flex; justify-content: space-between; margin-top: 16px; font-size: 14px; }
.q { margin-top: 16px; padding: 14px; border: 1px solid var(--line2); border-radius: var(--r2); background: #fafbfc; }
.q label { display: block; font-size: 13px; font-weight: 700; color: var(--faint); letter-spacing: 1px; margin-bottom: 8px; }
@media (max-width: 560px) { .sheet { padding: 24px 18px; } }

/* ===== 管理后台 ===== */
.top { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top .in { max-width: 1120px; margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; gap: 18px; }
.top .brand b { font-size: 17px; letter-spacing: 2px; }
.top nav { margin-left: auto; display: flex; gap: 6px; }
.top nav a { padding: 7px 12px; border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--sub); }
.top nav a:hover { background: var(--line2); color: var(--ink); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 28px 20px 64px; }
.wrap > h1 { margin: 0; font-size: 26px; font-weight: 800; color: var(--ink); letter-spacing: 1px; }
.wrap > .sub { margin: 4px 0 22px; color: var(--sub); font-size: 14.5px; }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.tile { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh); padding: 18px 20px; }
.tile small { display: block; font-size: 13px; color: var(--sub); font-weight: 600; }
.tile b { display: block; margin-top: 6px; font: 700 30px/1.1 var(--num); color: var(--ink); font-variant-numeric: tabular-nums; }
.tile b span { font-size: 15px; color: var(--faint); font-weight: 600; margin-left: 2px; }
.tile.hot b { color: var(--red); }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh); margin-bottom: 18px; }
.card > header { display: flex; align-items: center; gap: 10px; padding: 18px 22px 0; }
.card > header h2 { margin: 0; font-size: 16px; font-weight: 800; color: var(--ink); }
.card > header .meta { margin-left: auto; font-size: 13px; color: var(--faint); }
.card .body { padding: 14px 22px 20px; }
.scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
th { text-align: left; padding: 10px 12px; font-size: 12.5px; font-weight: 700; color: var(--faint); letter-spacing: .5px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 12px; border-bottom: 1px solid var(--line2); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #fafbfc; }
.num { text-align: right; font-family: var(--num); }
.name b { color: var(--ink); } .name small { display: block; color: var(--faint); font-size: 12.5px; }
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 2px 10px; border-radius: 99px; font-size: 12.5px; font-weight: 700; }
.pill.ok { background: var(--ok-bg); color: var(--ok); } .pill.wait { background: var(--warn-bg); color: var(--warn); } .pill.off { background: var(--line2); color: var(--faint); } .pill.bad { background: var(--bad-bg); color: var(--bad); } .pill.ink { background: var(--ink-soft); color: var(--ink3); }
.acts { display: flex; gap: 14px; justify-content: flex-end; }
.acts .link { font-size: 13.5px; }
.running { display: grid; gap: 10px; }
.run { display: flex; align-items: center; gap: 10px; font-size: 14.5px; }
.run .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px var(--ok-bg); animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.empty { color: var(--faint); font-size: 14px; padding: 6px 0; }
.addform { display: grid; grid-template-columns: 1.2fr 1fr 1fr auto; gap: 10px; align-items: end; }
.addform .field { margin: 0; }
.addform .btn { height: 46px; }
.result { margin-top: 14px; padding: 14px 16px; border-radius: var(--r2); background: var(--ok-bg); color: #14523a; font-size: 14px; }
.result code { font: 700 15px var(--num); background: #fff; padding: 2px 8px; border-radius: 6px; border: 1px solid #cbe6d8; user-select: all; }
.result.err { background: var(--bad-bg); color: var(--bad); }
.foot-note { color: var(--faint); font-size: 13px; margin: 12px 0 0; }
@media (max-width: 900px) { .tiles { grid-template-columns: repeat(2, 1fr); } .addform { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .top nav a { padding: 6px 8px; } .top .brand small { display: none; } .addform { grid-template-columns: 1fr; } .tile b { font-size: 24px; } }
