/* 辉萱基地成员内部管理系统 · 轻量样式（无框架、无构建） */

:root {
  --bg: #f2f5fa;
  --card: rgba(255, 255, 255, 0.86);
  --line: rgba(15, 23, 42, 0.08);
  --text: #16233a;
  --muted: #6b7a90;
  --accent: #2b6ef2;
  --accent-soft: rgba(43, 110, 242, 0.10);
  --ok: #14855c;
  --err: #c0392b;
  --radius: 14px;
  --shadow: 0 8px 26px rgba(21, 44, 88, 0.07);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background:
    radial-gradient(1100px 620px at 12% -8%, rgba(43, 110, 242, 0.10), transparent 60%),
    radial-gradient(900px 520px at 92% 4%, rgba(20, 133, 92, 0.09), transparent 60%),
    var(--bg);
  color: var(--text);
  font: 14px/1.6 -apple-system, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  min-height: 100vh;
}

.shell {
  display: grid;
  grid-template-columns: 236px 1fr;
  min-height: 100vh;
}

/* 侧栏 */
.side {
  display: flex;
  flex-direction: column;
  padding: 20px 16px;
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(18px);
  border-right: 1px solid var(--line);
}

.brand { display: flex; gap: 10px; align-items: center; padding: 4px 6px 18px; }
.brand-logo {
  width: 34px; height: 34px; border-radius: 10px;
  object-fit: cover; background: #fff;
  box-shadow: 0 6px 14px rgba(43, 110, 242, 0.18);
}
.brand .dot {
  width: 34px; height: 34px; border-radius: 11px;
  background: linear-gradient(135deg, #2b6ef2, #14855c);
  box-shadow: 0 6px 14px rgba(43, 110, 242, 0.25);
}
.brand-name { font-size: 15px; font-weight: 650; letter-spacing: .5px; }
.brand-sub { font-size: 11.5px; color: var(--muted); }

.nav { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; }
.nav a {
  padding: 9px 12px;
  border-radius: 10px;
  color: var(--text);
  text-decoration: none;
  font-size: 13.5px;
  transition: background .16s ease, color .16s ease;
}
.nav a:hover { background: var(--accent-soft); }
.nav a.active { background: var(--accent); color: #fff; box-shadow: 0 6px 16px rgba(43, 110, 242, .22); }

.side-foot { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); }
.who { margin-bottom: 10px; }
.who-name { font-weight: 600; font-size: 13.5px; }
.who-role { font-size: 11.5px; color: var(--muted); }
.logout { font-size: 12.5px; color: var(--muted); text-decoration: none; }
.logout:hover { color: var(--err); }

/* 主区 */
.main { padding: 22px 28px 40px; min-width: 0; }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.topbar h1 { font-size: 19px; font-weight: 650; margin: 0; letter-spacing: .3px; }
.topbar-right { display: flex; gap: 8px; align-items: center; }

.flashes { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.flash {
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid rgba(43, 110, 242, .18);
}
.flash.ok { background: rgba(20, 133, 92, .10); color: var(--ok); border-color: rgba(20, 133, 92, .2); }
.flash.error { background: rgba(192, 57, 43, .09); color: var(--err); border-color: rgba(192, 57, 43, .2); }

/* 卡片 */
.card {
  background: var(--card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 18px;
  margin-bottom: 16px;
}
.card h2 { font-size: 14px; margin: 0 0 12px; font-weight: 650; color: var(--text); }

.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.stat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 16px;
  box-shadow: var(--shadow);
}
.stat .k { font-size: 12px; color: var(--muted); }
.stat .v { font-size: 26px; font-weight: 700; margin-top: 4px; letter-spacing: .5px; }

/* 表格 */
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 8px; font-size: 13px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 600; font-size: 12px; }
tr:last-child td { border-bottom: none; }
td .name { font-weight: 600; }
td .sub { color: var(--muted); font-size: 12px; }
.empty { padding: 26px; text-align: center; color: var(--muted); font-size: 13px; }

/* 表单 */
.form-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.field label { font-size: 12px; color: var(--muted); }
input[type=text], input[type=password], input[type=email], input[type=tel], textarea, select {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid rgba(15, 23, 42, .14);
  border-radius: 9px;
  background: rgba(255, 255, 255, .9);
  font: inherit;
  color: var(--text);
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
textarea { min-height: 110px; resize: vertical; }

.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  border: none;
  border-radius: 9px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 6px 14px rgba(43, 110, 242, .2);
}
.btn:hover { filter: brightness(1.06); }
.btn.ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
  box-shadow: none;
}
.btn.ghost:hover { color: var(--text); background: rgba(15, 23, 42, .04); }
.btn.danger { background: transparent; color: var(--err); border: 1px solid rgba(192, 57, 43, .25); box-shadow: none; }
.btn.sm { padding: 5px 10px; font-size: 12px; border-radius: 8px; }
.inline { display: inline; }

/* ---------- 登录页（辉萱主站同款版式） ---------- */
.lg-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  background: #0d2340;
}
.lg-scene { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.lg-scene svg { width: 100%; height: 100%; display: block; }

.lg-top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 28px;
  background: rgba(255, 255, 255, .10);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, .16);
}
.lg-brand { display: flex; align-items: center; gap: 10px; color: #fff; }
.lg-brand img { width: 30px; height: 30px; border-radius: 9px; background: #fff; }
.lg-brand-name { font-size: 16px; font-weight: 700; letter-spacing: .3px; }
.lg-brand-tag {
  font-size: 11.5px;
  color: rgba(255, 255, 255, .75);
  padding: 2px 8px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px;
}
.lg-top-right { display: flex; align-items: center; gap: 18px; font-size: 13px; }
.lg-top-right a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.lg-top-right a:hover { color: #fff; text-decoration: underline; }

.lg-main {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 16px;
}
.lg-card {
  width: 100%;
  max-width: 1020px;
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 440px;
  background: #fff;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(4, 18, 36, .38);
}

.lg-visual {
  min-width: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: linear-gradient(140deg, #e8f0ff 0%, #f4f8ff 45%, #ffffff 100%);
}
.lg-mascot {
  width: 300px;
  max-width: 78%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 18px 36px rgba(60, 90, 160, .18));
  user-select: none;
}
.lg-bubble {
  position: absolute;
  top: 12%;
  left: 9%;
  background: #fff;
  border-radius: 16px;
  padding: 10px 18px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .12);
  font-size: 14px;
  font-weight: 600;
  color: #334155;
}

.lg-panel {
  width: 100%;
  min-width: 0;
  padding: 44px 44px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.lg-title { margin: 0 0 6px; font-size: 25px; font-weight: 700; letter-spacing: .2px; color: #0f172a; }
.lg-sub { margin: 0 0 18px; font-size: 13px; color: #64748b; }

.lg-tabs { display: flex; gap: 8px; margin-bottom: 24px; }
.lg-tab {
  flex: 1 1 0;
  min-height: 36px;
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  color: #64748b;
  background: #f1f5f9;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  transition: background .18s ease, color .18s ease;
}
.lg-tab:hover { background: #e6ecf5; }
.lg-tab.active {
  color: #fff;
  background: #2563eb;
  box-shadow: 0 6px 16px rgba(37, 99, 235, .26);
}

.lg-alerts { margin-bottom: 16px; }
.lg-alert {
  font-size: 13px;
  padding: 9px 12px;
  border-radius: 10px;
  margin-bottom: 8px;
  background: #fef3f2;
  color: #b42318;
  border: 1px solid #fecdca;
}
.lg-alert.success { background: #ecfdf3; color: #067647; border-color: #abefc6; }

.lg-field { margin-bottom: 18px; }
.lg-field label { display: block; margin-bottom: 7px; font-size: 13px; font-weight: 600; color: #334155; }
.lg-input {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  font: inherit;
  font-size: 14px;
  color: #0f172a;
  background: #f1f5ff;
  border: 1px solid #dbe4f5;
  border-radius: 10px;
  outline: none;
  transition: background .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.lg-input::placeholder { color: #98a4b8; }
.lg-input:focus {
  background: #fff;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .16);
}

.lg-meta { display: flex; align-items: center; justify-content: space-between; margin: 2px 0 20px; }
.lg-check { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #475569; cursor: pointer; }
.lg-check input { width: 15px; height: 15px; accent-color: #2563eb; }
.lg-link { font-size: 13px; color: #2563eb; text-decoration: none; }
.lg-link:hover { text-decoration: underline; }

.lg-btn {
  width: 100%;
  min-height: 46px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: #2563eb;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(37, 99, 235, .28);
  transition: background .18s ease, box-shadow .18s ease;
}
.lg-btn:hover { background: #1d4ed8; box-shadow: 0 12px 26px rgba(37, 99, 235, .34); }
.lg-btn:active { background: #1e40af; }

.lg-note { margin-top: 24px; text-align: center; font-size: 13px; color: #64748b; }
.lg-note a { color: #2563eb; text-decoration: none; font-weight: 600; }
.lg-note a:hover { text-decoration: underline; }

.lg-sitefoot {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 28px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, .72);
  border-top: 1px solid rgba(255, 255, 255, .12);
  background: rgba(6, 20, 36, .35);
  backdrop-filter: blur(10px);
}
.lg-sitefoot-links { display: flex; gap: 18px; }
.lg-sitefoot-links a { color: rgba(255, 255, 255, .8); text-decoration: none; }
.lg-sitefoot-links a:hover { color: #fff; text-decoration: underline; }

@media (max-width: 880px) {
  .lg-card { grid-template-columns: 1fr; max-width: 460px; min-height: auto; }
  .lg-visual { display: none; }
  .lg-panel { padding: 32px 24px 28px; }
  .lg-top { padding: 10px 16px; }
  .lg-top-right { gap: 12px; }
  .lg-brand-tag { display: none; }
}




/* 头像 */
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  object-fit: cover;
  background: rgba(15, 23, 42, .05);
  color: var(--muted);
  font-weight: 650;
  overflow: hidden;
  flex: 0 0 auto;
}
.avatar.sm { width: 34px; height: 34px; font-size: 13px; }
.avatar.lg { width: 76px; height: 76px; font-size: 26px; }
.avatar.ph {
  background: linear-gradient(135deg, rgba(43, 110, 242, .18), rgba(20, 133, 92, .18));
  color: var(--accent);
}

.profile-head { display: flex; align-items: center; gap: 16px; }
.profile-meta h2 { font-size: 18px; font-weight: 650; }
.avatar-tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 14px; }
.inline-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* 公告 */
.notice { padding: 12px 0; border-bottom: 1px solid var(--line); }
.notice:last-child { border-bottom: none; }
.notice-head { display: flex; align-items: center; gap: 8px; }
.notice-title { font-weight: 600; font-size: 13.5px; }
.badge {
  font-size: 11px; padding: 2px 7px; border-radius: 20px;
  background: var(--accent-soft); color: var(--accent);
}
.badge.off { background: rgba(15, 23, 42, .06); color: var(--muted); }
.notice-body { white-space: pre-wrap; color: #3c4a60; font-size: 13px; margin-top: 6px; }
.notice-meta { color: var(--muted); font-size: 11.5px; margin-top: 6px; }

.toggle-form { display: inline; }
details.editor { margin-top: 4px; }
details.editor summary {
  cursor: pointer;
  font-size: 12.5px;
  color: var(--muted);
  padding: 6px 0;
  list-style: none;
}
details.editor summary::-webkit-details-marker { display: none; }
details.editor summary:hover { color: var(--accent); }

@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .side { flex-direction: row; align-items: center; padding: 12px 14px; border-right: none; border-bottom: 1px solid var(--line); overflow-x: auto; }
  .brand { padding: 0 14px 0 0; }
  .brand-sub { display: none; }
  .nav { flex-direction: row; margin-top: 0; }
  .side-foot { margin-top: 0; border-top: none; padding-top: 0; padding-left: 12px; display: flex; align-items: center; gap: 10px; }
  .who { display: none; }
  .main { padding: 16px 14px 30px; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-row { grid-template-columns: 1fr; }
}
