body {
  margin: 0;
  color: #172139;
  background: #eef3fb url("https://access.wwynb.cn/assets/page-bg.jpg") center top / cover fixed no-repeat;
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  font-size: 14px;
  line-height: 1.5;
}
a { color: #3a7ef0; text-decoration: none; }
a:hover { color: #2264d6; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid #8fb6f8; outline-offset: 2px; }

.layout { display: flex; align-items: flex-start; min-height: 100vh; }
.side {
  position: sticky;
  top: 0;
  width: 232px;
  height: 100vh;
  overflow: auto;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  padding: 22px 14px 16px;
  box-sizing: border-box;
  background: rgba(255, 255, 255, .62);
  border-right: 1px solid rgba(255, 255, 255, .86);
  backdrop-filter: blur(18px);
}
.brand { padding: 6px 10px 18px; }
.brand strong { display: block; font-size: 22px; letter-spacing: .04em; }
.brand span { display: block; margin-top: 4px; color: #8b93a6; font-size: 12px; }
.side nav { display: flex; flex-direction: column; gap: 4px; }
.side a {
  display: block;
  padding: 10px 14px;
  border-radius: 14px;
  color: #5f6b80;
  font-size: 14px;
}
.side a:hover { background: rgba(255, 255, 255, .72); color: #172139; }
.side a.active { background: #edf3ff; color: #2f7ef6; font-weight: 600; }
.side form { margin-top: auto; padding-top: 16px; }
.side .btn { width: 100%; }

.main { flex: 1; min-width: 0; padding: 28px 32px 48px; }
.main h1 { margin: 0 0 18px; font-size: 26px; font-weight: 700; letter-spacing: 0; }
.muted, .top p { margin: 0; color: #8b93a6; }

.card, .login-wrap {
  background: rgba(255, 255, 255, .62);
  border: 1px solid rgba(255, 255, 255, .88);
  border-radius: 22px;
  box-shadow: 0 12px 32px rgba(148, 168, 214, .12);
  backdrop-filter: blur(16px);
}
.card { padding: 18px 18px 8px; margin-bottom: 16px; }
.card p:first-child { margin-top: 0; }

.top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.stat, .stats .card { padding: 18px 18px 16px; }
.stats .card span, .stat span { color: #8b93a6; font-size: 13px; }
.stat strong, .stats .card strong { display: block; margin-top: 8px; color: #3a7ef0; font-size: 30px; line-height: 1; }

table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px 8px; text-align: left; vertical-align: middle; border-bottom: 1px solid rgba(24, 40, 72, .06); }
th { color: #8b93a6; font-size: 12px; font-weight: 600; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover, table tr:hover { background: rgba(255, 255, 255, .35); }

label { display: block; margin: 14px 0 6px; font-size: 13px; font-weight: 600; }
input, textarea, select {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, .82);
}
textarea { min-height: 110px; resize: vertical; }
input[type="checkbox"], input[type="radio"], input[type="file"] { width: auto; padding: 0; background: transparent; }
input[type="file"] { padding: 8px 0; }
.checks { display: flex; flex-wrap: wrap; gap: 10px 16px; margin-top: 8px; }
.checks label { display: flex; align-items: center; gap: 6px; margin: 0; font-weight: 500; color: #334155; }

button, .btn {
  border: 0;
  border-radius: 999px;
  padding: 9px 18px;
  color: #fff;
  background: linear-gradient(125deg, #519cfd 0%, #3783f7 65%, #3768eb 100%);
  box-shadow: 0 8px 18px rgba(54, 126, 240, .18);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
button:hover, .btn:hover { filter: brightness(1.04); color: #fff; }
.btn.gray, button.gray {
  background: #edf3ff;
  color: #3975bf;
  box-shadow: none;
}
.btn.gray:hover, button.gray:hover { color: #2264d6; }
.btn.danger { background: #e56b76; box-shadow: none; }
.row-actions { display: flex; gap: 10px; align-items: center; white-space: nowrap; }
.row-actions form { margin: 0; }
.row-actions button, .row-actions .btn { padding: 6px 12px; }

.flash { padding: 10px 14px; border-radius: 14px; margin-bottom: 14px; background: #e7f8ee; color: #1d7a45; }
.flash.error { background: #fdecee; color: #b42336; }
.thumb { width: 84px; height: 56px; object-fit: cover; border-radius: 10px; background: #eef3fb; margin-top: 6px; }
.module-row, .inline { display: grid; grid-template-columns: 1fr 180px auto; gap: 8px; margin-bottom: 8px; align-items: center; }
.card > p:last-child, form > p:last-child { margin-bottom: 16px; }

.login-body { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 32px 16px; box-sizing: border-box; }
.login-wrap { width: min(420px, 100%); padding: 36px 32px 28px; box-sizing: border-box; }
.login-wrap h1 { margin: 8px 0 6px; font-size: 28px; }
.login-mark { color: #3a7ef0; font-weight: 700; letter-spacing: .08em; }
.login-wrap .muted { margin-bottom: 8px; }
.login-wrap button { width: 100%; margin-top: 8px; min-height: 42px; }

@media (max-width: 900px) {
  .layout { display: block; }
  .side { position: static; width: auto; height: auto; border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, .86); }
  .side nav { flex-direction: row; flex-wrap: wrap; }
  .side form { margin-top: 12px; }
  .side .btn { width: auto; }
  .main { padding: 20px 16px 40px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .module-row, .inline { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
