@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;500;600;700;800&family=Noto+Sans+SC:wght@400;500;600;700&display=swap');

/* ========== 默认：云蓝 Azure ========== */
:root,
html[data-theme="azure"] {
  --bg: #f5f7fb;
  --bg-2: #eef2f8;
  --card: #ffffff;
  --line: #e6ebf2;
  --line-2: #d9e0ea;
  --text: #1c2430;
  --muted: #6b778a;
  --accent: #2f6fed;
  --accent-2: #1f57c8;
  --accent-mid: #5b8ef7;
  --accent-soft: rgba(47, 111, 237, .10);
  --glow: rgba(47, 111, 237, .08);
  --glow-2: rgba(176, 137, 45, .06);
  --gold: #b0892d;
  --gold-soft: rgba(176, 137, 45, .12);
  --ok: #1f9d6a;
  --warn: #d4891a;
  --danger: #d45353;
  --side-bg: rgba(255,255,255,.90);
  --top-bg: rgba(255,255,255,.78);
  --menu-hover: #f3f6fb;
  --menu-text: #4d5b70;
  --menu-icon: #8a98ad;
  --menu-dir: #93a0b4;
  --surface-2: #fbfcfe;
  --table-head: #f5f8fc;
  --empty: #9aa8ba;
  --shadow: 0 8px 28px rgba(28, 36, 48, .06);
  --shadow-hover: 0 14px 36px rgba(28, 36, 48, .09);
  --radius: 16px;
  --side-w: 240px;
  --font: "Nunito", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --display: "Nunito", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

/* 竹青 Jade */
html[data-theme="jade"] {
  --bg: #f3f8f5;
  --bg-2: #e8f2ec;
  --card: #ffffff;
  --line: #dce8e1;
  --line-2: #cddcd4;
  --text: #163028;
  --muted: #5f756b;
  --accent: #0f8a6a;
  --accent-2: #0b6f55;
  --accent-mid: #24a882;
  --accent-soft: rgba(15, 138, 106, .12);
  --glow: rgba(15, 138, 106, .10);
  --glow-2: rgba(180, 140, 60, .06);
  --gold: #a8842a;
  --gold-soft: rgba(168, 132, 42, .12);
  --side-bg: rgba(255,255,255,.92);
  --top-bg: rgba(255,255,255,.80);
  --menu-hover: #eef6f2;
  --menu-text: #3d564c;
  --menu-icon: #7a9488;
  --menu-dir: #8aa398;
  --surface-2: #f7fbf9;
  --table-head: #eef6f2;
  --empty: #8fa89c;
}

/* 石墨 Graphite */
html[data-theme="graphite"] {
  --bg: #f4f5f7;
  --bg-2: #eceef2;
  --card: #ffffff;
  --line: #e2e5eb;
  --line-2: #d3d8e0;
  --text: #1a1f29;
  --muted: #6a7383;
  --accent: #4b5568;
  --accent-2: #334155;
  --accent-mid: #64748b;
  --accent-soft: rgba(75, 85, 104, .12);
  --glow: rgba(75, 85, 104, .08);
  --glow-2: rgba(148, 163, 184, .10);
  --gold: #9a7b3c;
  --gold-soft: rgba(154, 123, 60, .12);
  --side-bg: rgba(255,255,255,.92);
  --top-bg: rgba(255,255,255,.82);
  --menu-hover: #f1f3f6;
  --menu-text: #4a5568;
  --menu-icon: #8b95a5;
  --menu-dir: #97a1b0;
  --surface-2: #fafbfc;
  --table-head: #f1f3f6;
  --empty: #9aa3b0;
}

/* 香槟 Champagne */
html[data-theme="champagne"] {
  --bg: #f8f5f0;
  --bg-2: #f1ebe3;
  --card: #fffcf8;
  --line: #e8e0d4;
  --line-2: #dbd0c2;
  --text: #2a241c;
  --muted: #7a6f62;
  --accent: #9a7340;
  --accent-2: #7d5c32;
  --accent-mid: #b8925a;
  --accent-soft: rgba(154, 115, 64, .12);
  --glow: rgba(154, 115, 64, .10);
  --glow-2: rgba(180, 150, 100, .08);
  --gold: #b0892d;
  --gold-soft: rgba(176, 137, 45, .14);
  --side-bg: rgba(255,252,248,.94);
  --top-bg: rgba(255,252,248,.82);
  --menu-hover: #f4efe7;
  --menu-text: #5a4f42;
  --menu-icon: #9a8c7a;
  --menu-dir: #a89886;
  --surface-2: #fbf8f3;
  --table-head: #f4efe7;
  --empty: #a89886;
}

/* 暮夜 Midnight（可选深色） */
html[data-theme="midnight"] {
  --bg: #121820;
  --bg-2: #0e141b;
  --card: #1a222d;
  --line: #2a3442;
  --line-2: #364353;
  --text: #e8eef6;
  --muted: #9aa8ba;
  --accent: #5b9cff;
  --accent-2: #3d82f0;
  --accent-mid: #7eb0ff;
  --accent-soft: rgba(91, 156, 255, .16);
  --glow: rgba(91, 156, 255, .12);
  --glow-2: rgba(176, 137, 45, .08);
  --gold: #d4b45a;
  --gold-soft: rgba(212, 180, 90, .16);
  --ok: #3ecf8e;
  --warn: #e0a04a;
  --danger: #e06b6b;
  --side-bg: rgba(18, 24, 32, .96);
  --top-bg: rgba(22, 30, 40, .88);
  --menu-hover: #222c3a;
  --menu-text: #b8c4d4;
  --menu-icon: #8a9aaf;
  --menu-dir: #6f7f93;
  --surface-2: #1e2733;
  --table-head: #222c3a;
  --empty: #7a8a9c;
  --shadow: 0 10px 30px rgba(0, 0, 0, .28);
  --shadow-hover: 0 16px 40px rgba(0, 0, 0, .36);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background:
    radial-gradient(1000px 480px at 88% -8%, var(--glow), transparent 55%),
    radial-gradient(780px 420px at -8% 12%, var(--glow-2), transparent 50%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg) 45%, var(--bg-2) 100%);
  background-attachment: fixed;
  transition: background .25s ease, color .2s ease;
}
a { color: var(--accent); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--accent-2); }

/* ——— Theme Switcher ——— */
.theme-switch {
  position: relative;
}
.theme-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
  transition: border-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.theme-btn:hover {
  color: var(--accent);
  border-color: var(--accent-mid);
  box-shadow: 0 4px 14px rgba(28, 36, 48, .06);
}
.theme-btn .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-soft);
}
.theme-panel {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 248px;
  padding: 12px;
  border-radius: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-hover);
  z-index: 50;
}
.theme-panel.open { display: block; animation: rise .2s ease both; }
.theme-panel .tp-title {
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 10px;
  letter-spacing: .06em;
}
.theme-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.theme-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  cursor: pointer;
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.theme-item:hover {
  border-color: var(--accent-mid);
  transform: translateY(-1px);
}
.theme-item.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-soft);
}
.theme-item .swatch {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  flex-shrink: 0;
  border: 1px solid rgba(0,0,0,.06);
}
.theme-item[data-theme="azure"] .swatch { background: linear-gradient(135deg, #5b8ef7, #2f6fed); }
.theme-item[data-theme="jade"] .swatch { background: linear-gradient(135deg, #24a882, #0f8a6a); }
.theme-item[data-theme="graphite"] .swatch { background: linear-gradient(135deg, #94a3b8, #4b5568); }
.theme-item[data-theme="champagne"] .swatch { background: linear-gradient(135deg, #d4b45a, #9a7340); }
.theme-item[data-theme="midnight"] .swatch { background: linear-gradient(135deg, #5b9cff, #1a222d); }

/* ——— Login ——— */
.login-wrap {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  background: var(--card);
}
.login-hero {
  position: relative;
  overflow: hidden;
  padding: 56px 60px;
  color: var(--text);
  background:
    linear-gradient(145deg, var(--accent-soft), transparent 42%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  border-right: 1px solid var(--line);
}
.login-hero::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -80px;
  bottom: -60px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--glow), transparent 68%);
  pointer-events: none;
}
.login-hero::after {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  left: 12%;
  top: 28%;
  border-radius: 50%;
  border: 1px solid var(--accent-soft);
  pointer-events: none;
}
.login-hero .brand {
  position: relative;
  font-family: var(--display);
  font-size: 52px;
  font-weight: 700;
  letter-spacing: .02em;
  margin: 0 0 14px;
  color: var(--text);
}
.login-hero .brand span { color: var(--accent); }
.login-hero .lead {
  position: relative;
  max-width: 380px;
  margin: 0;
  font-size: 16px;
  line-height: 1.75;
  color: var(--muted);
}
.login-hero .chips {
  position: relative;
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.login-hero .chip {
  padding: 8px 14px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 13px;
  color: var(--text);
  background: var(--card);
  box-shadow: var(--shadow);
}
.login-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 28px;
  background: var(--card);
  position: relative;
}
.login-panel .theme-switch {
  position: absolute;
  top: 24px;
  right: 24px;
}
.login-card {
  width: 100%;
  max-width: 400px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 38px 34px 30px;
  box-shadow: var(--shadow);
  animation: rise .45s ease both;
}
.login-card h1 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: 34px;
  font-weight: 700;
  color: var(--text);
}
.login-card .sub {
  color: var(--muted);
  margin-bottom: 28px;
  font-size: 13px;
  line-height: 1.5;
}
.login-card .layui-input {
  height: 46px;
  border-radius: 12px;
  border-color: var(--line-2);
  background: var(--surface-2);
  color: var(--text);
}
.login-card .layui-input:focus {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.login-card .layui-btn {
  height: 46px;
  border-radius: 12px;
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  font-weight: 600;
  letter-spacing: .06em;
}
.login-card .layui-btn:hover { background: var(--accent-2) !important; }

/* ——— Shell ——— */
.oa-layout { display: flex; min-height: 100vh; }
.oa-side {
  width: var(--side-w);
  flex-shrink: 0;
  background: var(--side-bg);
  backdrop-filter: blur(14px);
  border-right: 1px solid var(--line);
  color: var(--text);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 20;
}
.oa-brand {
  height: 68px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 20px;
  border-bottom: 1px solid var(--line);
  font-family: var(--display);
  font-weight: 700;
  font-size: 28px;
  letter-spacing: .03em;
  color: var(--text);
}
.oa-brand .mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--accent-mid), var(--accent));
  color: #fff;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 8px 18px var(--accent-soft);
}
.oa-brand span { color: var(--accent); }
.oa-menu {
  padding: 16px 12px 28px;
  overflow-y: auto;
  flex: 1;
}
.oa-menu .menu-group {
  margin-bottom: 4px;
}
.oa-menu .dir {
  margin: 8px 0 4px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--menu-dir);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  transition: background .15s ease, color .15s ease;
}
.oa-menu .dir:hover {
  background: var(--menu-hover);
  color: var(--text);
}
.oa-menu .dir .dir-left {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.oa-menu .dir .dir-ico {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: inline-grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  flex-shrink: 0;
}
.oa-menu .dir .dir-arrow {
  font-size: 12px;
  color: var(--menu-icon);
  transition: transform .2s ease;
}
.oa-menu .menu-group.is-collapsed .dir .dir-arrow {
  transform: rotate(-90deg);
}
.oa-menu .menu-group-body {
  overflow: hidden;
  max-height: 800px;
  transition: max-height .25s ease, opacity .2s ease;
  opacity: 1;
}
.oa-menu .menu-group.is-collapsed .menu-group-body {
  max-height: 0;
  opacity: 0;
  pointer-events: none;
}
.oa-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 3px 0;
  padding: 11px 12px;
  border-radius: 12px;
  color: var(--menu-text);
  font-size: 14px;
  font-weight: 500;
  transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}
.oa-menu a .layui-icon {
  font-size: 16px;
  width: 20px;
  text-align: center;
  color: var(--menu-icon);
}
.oa-menu a:hover {
  background: var(--menu-hover);
  color: var(--text);
}
.oa-menu a:hover .layui-icon { color: var(--accent); }
.oa-menu a.active {
  background: linear-gradient(90deg, var(--accent-soft), transparent);
  color: var(--accent-2);
  box-shadow: inset 0 0 0 1px var(--accent-soft);
  font-weight: 600;
}
.oa-menu a.active .layui-icon { color: var(--accent); }
.oa-menu .child a { font-size: 13px; padding-left: 14px; }

.oa-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.oa-top {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 20px 0 16px;
  background: var(--top-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}
.oa-tabs-wrap {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.oa-tabs {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 0;
  scrollbar-width: thin;
}
.oa-tabs::-webkit-scrollbar { height: 4px; }
.oa-tabs::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 4px; }
.oa-tabs-close-all {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  padding: 0;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--muted);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background .15s, border-color .15s, color .15s;
}
.oa-tabs-close-all .layui-icon { font-size: 14px; line-height: 1; }
.oa-tabs-close-all:hover {
  color: var(--danger);
  border-color: rgba(212, 83, 83, .35);
  background: rgba(212, 83, 83, .08);
}
.oa-tab {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 180px;
  height: 34px;
  padding: 0 8px 0 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
  user-select: none;
  transition: background .15s, border-color .15s, color .15s, box-shadow .15s;
}
.oa-tab:hover {
  color: var(--text);
  border-color: var(--accent-mid);
  background: var(--card);
}
.oa-tab.is-active {
  color: var(--accent-2);
  background: var(--card);
  border-color: var(--accent-soft);
  box-shadow: 0 0 0 2px var(--accent-soft);
  font-weight: 600;
}
.oa-tab-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 140px;
}
.oa-tab-close {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--menu-icon);
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
  line-height: 1;
}
.oa-tab-close:hover {
  background: rgba(212, 83, 83, .12);
  color: var(--danger);
}
.oa-tab-close .layui-icon { font-size: 12px; }
.oa-top .crumb {
  font-size: 13px;
  color: var(--muted);
}
.oa-top .crumb strong {
  color: var(--text);
  font-weight: 600;
}
.oa-top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.oa-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px 6px 6px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.oa-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--accent-mid), var(--accent));
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}
.oa-user .meta { line-height: 1.2; }
.oa-user .name { font-size: 13px; font-weight: 600; color: var(--text); }
.oa-user .role { font-size: 11px; color: var(--muted); }
.oa-top-actions a.top-link {
  color: var(--muted);
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid transparent;
}
.oa-top-actions a.top-link:hover {
  background: var(--card);
  border-color: var(--line);
  color: var(--accent);
}

.oa-body {
  padding: 26px 28px 40px;
  flex: 1;
  animation: rise .35s ease both;
}

.page-title {
  margin: 0 0 6px;
  font-family: var(--display);
  font-size: 34px;
  font-weight: 700;
  letter-spacing: .01em;
  color: var(--text);
}
.page-sub {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 13px;
}

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow);
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.panel-head h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 18px;
}
.stat-card {
  position: relative;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 18px 18px;
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease;
}
.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}
.stat-card::after {
  content: "";
  position: absolute;
  right: -20px;
  top: -24px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--accent-soft);
}
.stat-card .ico {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}
.stat-card .n {
  position: relative;
  z-index: 1;
  font-family: var(--display);
  font-size: 36px;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}
.stat-card .t {
  position: relative;
  z-index: 1;
  color: var(--muted);
  font-size: 13px;
  margin-top: 10px;
}
.stat-card.tone-warn .ico { background: rgba(212, 137, 26, .12); color: var(--warn); }
.stat-card.tone-warn::after { background: rgba(212, 137, 26, .08); }
.stat-card.tone-ok .ico { background: rgba(31, 157, 106, .12); color: var(--ok); }
.stat-card.tone-ok::after { background: rgba(31, 157, 106, .08); }
.stat-card.tone-ink .ico { background: var(--gold-soft); color: var(--gold); }
.stat-card.tone-ink::after { background: var(--gold-soft); }

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}
.quick-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 16px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  color: var(--text);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.quick-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-mid);
  color: var(--text);
  box-shadow: var(--shadow-hover);
}
.quick-card .qi {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 18px;
  background: linear-gradient(145deg, var(--accent-mid), var(--accent));
  box-shadow: 0 8px 16px var(--accent-soft);
}
.quick-card.q2 .qi { filter: saturate(1.05); }
.quick-card.q3 .qi {
  background: linear-gradient(145deg, #d4a84b, var(--gold));
  box-shadow: 0 8px 16px var(--gold-soft);
}
.quick-card.q4 .qi {
  background: linear-gradient(145deg, #94a3b8, #64748b);
  box-shadow: 0 8px 16px rgba(100, 116, 139, .2);
}
.quick-card .qt { font-weight: 700; font-size: 14px; }
.quick-card .qs { font-size: 12px; color: var(--muted); margin-top: 3px; }

.notice-list { list-style: none; margin: 0; padding: 0; }
.notice-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 2px;
  border-bottom: 1px solid var(--line);
}
.notice-list li:last-child { border-bottom: 0; }
.notice-list a {
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
}
.notice-list a:hover { color: var(--accent); }
.notice-list .time { color: var(--muted); font-size: 12px; white-space: nowrap; }

.toolbar {
  margin-bottom: 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.muted { color: var(--muted); }
.tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  background: var(--accent-soft);
  color: var(--accent-2);
}
.tag.warn { background: rgba(212,137,26,.12); color: var(--warn); }
.tag.ok { background: rgba(31,157,106,.12); color: var(--ok); }
.tag.bad { background: rgba(212,83,83,.12); color: var(--danger); }
.tag.danger { background: rgba(212,83,83,.12); color: var(--danger); }
.empty {
  padding: 48px 20px;
  text-align: center;
  color: var(--empty);
}

.oa-body .layui-btn {
  border-radius: 10px;
  background: var(--accent);
  border-color: var(--accent);
}
.oa-body .layui-btn-normal { background: var(--accent); border-color: var(--accent); }
.oa-body .layui-btn-primary {
  background: var(--card);
  border-color: var(--line-2);
  color: var(--text);
}
.oa-body .layui-btn-warm { background: var(--warn); border-color: var(--warn); }
.oa-body .layui-btn-danger { background: var(--danger); border-color: var(--danger); }
.oa-body .layui-table thead tr { background: var(--table-head) !important; }
.oa-body .layui-table th { font-weight: 600; color: var(--muted); }
.oa-body .layui-table { color: var(--text); }
.oa-body .layui-input,
.oa-body .layui-textarea,
.oa-body .layui-select {
  border-radius: 10px;
  border-color: var(--line-2);
  background: var(--surface-2);
  color: var(--text);
}

@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1100px) {
  .stat-row, .quick-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .login-wrap { grid-template-columns: 1fr; }
  .login-hero { display: none; }
  .oa-side { width: 200px; }
}
@media (max-width: 720px) {
  .oa-layout { flex-direction: column; }
  .oa-side { width: 100%; height: auto; position: relative; }
  .stat-row, .quick-grid { grid-template-columns: 1fr; }
}
