﻿:root {
  --bg: #eaf0f3;
  --panel: rgba(255, 255, 255, 0.9);
  --line: rgba(210, 222, 230, 0.9);
  --soft: rgba(237, 244, 242, 0.85);
  --text: #17202a;
  --muted: #5b6b78;
  --brand: #0f766e;
  --brand-2: #0b5f59;
  --danger: #b42318;
  --warn: #9a6700;
  --ok: #147a45;
  --shadow: 0 18px 45px rgba(20, 32, 45, 0.1);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(245, 247, 250, 0.38), rgba(245, 247, 250, 0.66)),
    url("https://v2.xxapi.cn/api/random4kPic?type=wallpaper&return=302") center / cover fixed no-repeat,
    var(--bg);
  color: var(--text);
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", Arial, sans-serif;
}
button, input, textarea, select { font: inherit; }
button { border: 0; cursor: pointer; }
.login-page { min-height: 100vh; display: grid; grid-template-columns: minmax(320px, .85fr) minmax(480px, 1.15fr); }
.brand-side {
  background:
    linear-gradient(145deg, rgba(8, 27, 30, 0.64), rgba(15, 68, 66, 0.42)),
    url("https://v2.xxapi.cn/api/random4kPic?type=wallpaper&return=302") center / cover no-repeat;
  color: #f8fbfc;
  padding: 56px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.brand-mark { width: 46px; height: 46px; display: grid; place-items: center; background: var(--brand); border-radius: 8px; font-weight: 800; font-size: 26px; }
h1 { margin: 42px 0 18px; font-size: 42px; line-height: 1.08; }
.brand-side p { color: #c8d6d9; max-width: 560px; }
.policy-note { border-top: 1px solid rgba(255,255,255,.16); padding-top: 18px; color: #adc3c7; font-size: 13px; }
.login-panel { display: grid; align-content: center; padding: 48px; }
.auth-box, .panel, .metric {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255,255,255,.74);
  border-radius: 10px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}
.auth-box { max-width: 580px; width: 100%; padding: 28px; }
.tabs { display: flex; gap: 6px; padding: 5px; border: 1px solid var(--line); border-radius: 8px; background: var(--soft); }
.tabs button { flex: 1; min-height: 40px; border-radius: 6px; color: var(--muted); background: transparent; }
.tabs button.active { color: var(--text); background: white; box-shadow: 0 1px 4px rgba(15,23,42,.12); }
.form-grid { display: grid; gap: 14px; margin-top: 18px; }
label { display: grid; gap: 7px; color: #334155; font-size: 13px; font-weight: 700; }
input, textarea, select { width: 100%; border: 1px solid var(--line); border-radius: 7px; min-height: 42px; padding: 10px 12px; background: white; color: var(--text); }
textarea { min-height: 120px; resize: vertical; }
.layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.82), rgba(12, 33, 37, 0.78));
  color: white;
  padding: 22px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 22px;
  border-right: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(18px);
}
.side-title { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 18px; }
.nav { display: grid; align-content: start; gap: 8px; }
.nav button { text-align: left; min-height: 42px; border-radius: 7px; padding: 0 12px; color: #cbd5e1; background: transparent; }
.nav button.active, .nav button:hover { background: rgba(255,255,255,.1); color: white; }
.session-card { border: 1px solid rgba(255,255,255,.16); border-radius: 8px; padding: 12px; color: #dbeafe; font-size: 13px; }
.content { padding: 28px; display: grid; gap: 18px; align-content: start; }
.topbar { display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.topbar h2 { margin: 0; font-size: 25px; }
.toolbar, .row-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.panel { padding: 18px; box-shadow: 0 8px 25px rgba(16,24,40,.05); }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 1fr); gap: 18px; }
.three-col { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.metric { padding: 16px; }
.metric strong { display: block; font-size: 30px; }
.hint { color: var(--muted); font-size: 13px; line-height: 1.5; }
.primary, .secondary, .ghost, .danger { min-height: 40px; border-radius: 7px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; }
.primary { background: linear-gradient(180deg, #109184, var(--brand)); color: white; box-shadow: 0 8px 20px rgba(15, 118, 110, .24); }
.primary:hover { background: var(--brand-2); }
.secondary { background: rgba(230, 242, 239, .95); color: var(--brand-2); }
.ghost { background: rgba(255,255,255,.82); color: #334155; border: 1px solid var(--line); }
.danger { background: #fee4e2; color: var(--danger); }
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; min-width: 980px; }
th, td { text-align: left; border-bottom: 1px solid var(--line); padding: 12px 10px; vertical-align: middle; }
th { color: var(--muted); font-size: 12px; background: rgba(248, 250, 252, .52); position: sticky; top: 0; z-index: 1; }
tr:hover td { background: rgba(240, 247, 247, .42); }
.pill { display: inline-flex; align-items: center; min-height: 25px; border-radius: 999px; padding: 0 10px; font-size: 12px; font-weight: 800; }
.pill.ok { color: var(--ok); background: #dcfae6; }
.pill.warn { color: var(--warn); background: #fef0c7; }
.pill.muted { color: var(--muted); background: #eef2f6; }
.notice { border: 1px solid #b8d9d4; background: #edf8f6; color: #0b5f59; border-radius: 8px; padding: 12px 14px; }
.notice.warn { border-color: #f7d583; background: #fff8e6; color: #7a4f00; }
.empty { min-height: 160px; display: grid; place-items: center; border: 1px dashed var(--line); border-radius: 8px; color: var(--muted); text-align: center; }
.modal-backdrop { position: fixed; inset: 0; z-index: 20; background: rgba(15,23,42,.45); display: grid; place-items: center; padding: 22px; }
.modal { width: min(760px, 100%); max-height: 92vh; overflow: auto; background: white; border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); padding: 20px; }
.kbd { display: inline-flex; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; padding: 1px 6px; background: white; color: #334155; font-size: 12px; }
@media (max-width: 980px) { .login-page, .layout, .two-col, .three-col { grid-template-columns: 1fr; } .brand-side, .login-panel, .content { padding: 24px; } .nav { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .topbar { align-items: stretch; flex-direction: column; } .toolbar, .row-actions { flex-direction: column; align-items: stretch; } .primary, .secondary, .ghost, .danger { width: 100%; } }

.auth-tabs { display: flex; gap: 6px; width: min(580px, 100%); padding: 5px; border: 1px solid var(--line); border-radius: 8px; background: var(--soft); margin-bottom: 14px; }
.auth-tabs button { flex: 1; min-height: 40px; border-radius: 6px; color: var(--muted); background: transparent; }
.auth-tabs button.active { color: var(--text); background: white; box-shadow: 0 1px 4px rgba(15,23,42,.12); }
.auth-card { max-width: 580px; width: 100%; padding: 28px; display: grid; gap: 16px; background: rgba(255, 255, 255, 0.78); border: 1px solid rgba(255,255,255,.74); border-radius: 10px; box-shadow: var(--shadow); backdrop-filter: blur(18px); }
.auth-card h2, .panel h2 { margin: 0 0 8px; }
.shell { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: 100vh; }
.main { padding: 28px; display: grid; gap: 18px; align-content: start; }
.brand-line { display: flex; align-items: center; gap: 10px; font-size: 18px; }
.brand-line span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 8px; background: var(--brand); }
.shell .sidebar { grid-template-rows: auto repeat(5, auto) 1fr auto; align-content: start; }
.shell .nav { display: block; width: 100%; text-align: left; min-height: 42px; border-radius: 7px; padding: 0 12px; color: #cbd5e1; background: transparent; }
.shell .nav.active, .shell .nav:hover { background: rgba(255,255,255,.1); color: white; }
.logout { align-self: end; }
.topbar h1 { margin: 0; font-size: 28px; line-height: 1.2; }
.topbar p { margin: 6px 0 0; color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.stat { padding: 18px; background: rgba(255, 255, 255, 0.78); border: 1px solid rgba(255,255,255,.74); border-radius: 10px; box-shadow: var(--shadow); backdrop-filter: blur(18px); }
.stat b { display: block; font-size: 32px; }
.stat span { color: var(--muted); }
.grid-form { display: grid; gap: 12px; }
.inline-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; align-items: end; }
.stack-form { display: grid; gap: 12px; }
.import-form { border-top: 1px solid var(--line); padding-top: 12px; }
.mail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }
.mail-card { background: rgba(255, 255, 255, 0.8); border: 1px solid rgba(255,255,255,.75); border-radius: 10px; box-shadow: var(--shadow); padding: 18px; display: grid; gap: 14px; backdrop-filter: blur(18px); }
.mail-head { display: flex; justify-content: space-between; gap: 12px; align-items: start; }
.mail-head h3 { margin: 0; font-size: 18px; overflow-wrap: anywhere; }
.mail-head p { margin: 5px 0 0; color: var(--muted); }
.badge { display: inline-flex; align-items: center; min-height: 25px; border-radius: 999px; padding: 0 10px; font-size: 12px; font-weight: 800; color: var(--brand-2); background: rgba(230, 242, 239, .95); }
.mail-meta { display: grid; gap: 6px; color: #334155; font-size: 13px; overflow-wrap: anywhere; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.message-list { display: grid; gap: 8px; border-top: 1px solid var(--line); padding-top: 12px; }
.message-row, .preview-row { display: grid; gap: 4px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.7); overflow-wrap: anywhere; }
.message-row span, .message-row small, .preview-row span { color: var(--muted); }
.table-panel { overflow: auto; }
code { background: rgba(15, 118, 110, .08); color: var(--brand-2); padding: 2px 6px; border-radius: 5px; }

@media (max-width: 980px) {
  .shell, .stats { grid-template-columns: 1fr; }
  .shell .sidebar { position: static; grid-template-rows: none; }
  .main { padding: 22px; }
}

