:root {
  --bg: #f5f2e9;
  --surface: rgba(255, 253, 249, 0.9);
  --green: #6fae95;
  --green-deep: #426d5c;
  --accent: #e8a87c;
  --text: #24342e;
  --muted: #6b7671;
  --line: rgba(54, 79, 70, 0.08);
  --shadow: 0 18px 40px rgba(60, 82, 73, 0.1);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(232, 168, 124, 0.16), transparent 22%),
    radial-gradient(circle at bottom right, rgba(111, 174, 149, 0.14), transparent 28%),
    linear-gradient(180deg, #f6f1e8, #e6f0eb);
}
.hidden { display: none !important; }

.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}
.auth-card {
  width: min(460px, 100%);
  padding: 32px;
  border-radius: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.auth-mark,
.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--green), #5d9580);
  color: white;
  font-weight: 700;
  font-size: 22px;
}
.auth-card h1 { margin: 18px 0 10px; font-size: 28px; }
.auth-card p { color: var(--muted); line-height: 1.8; }
.auth-form,
.form-grid {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}
.auth-form label,
.form-grid label {
  display: grid;
  gap: 8px;
  font-size: 14px;
}
.auth-form input,
.form-grid input,
.form-grid textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.86);
  font: inherit;
}
.form-grid {
  grid-template-columns: repeat(2, 1fr);
}
.form-grid .full,
.form-actions { grid-column: 1 / -1; }
.checkbox { display: flex !important; align-items: center; gap: 10px; }
.form-grid textarea { min-height: 96px; resize: vertical; }
.block-btn { width: 100%; justify-content: center; }
.error-text { margin-top: 12px; color: #bb4d4d; font-size: 14px; }

.shell { display: grid; grid-template-columns: 280px 1fr; min-height: 100vh; }
.sidebar {
  padding: 28px 20px;
  background: rgba(255,255,255,.38);
  border-right: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand-title { font-size: 20px; font-weight: 700; }
.brand-subtitle { margin-top: 4px; color: var(--muted); font-size: 13px; }
.nav { display: grid; gap: 10px; margin-top: 28px; }
.nav-item {
  padding: 14px 16px;
  border: 0;
  border-radius: 16px;
  background: transparent;
  text-align: left;
  color: var(--muted);
  font-size: 15px;
  cursor: pointer;
}
.nav-item.active { background: rgba(111,174,149,.14); color: var(--green-deep); font-weight: 700; }

.main { padding: 28px; }
.topbar { display:flex; justify-content:space-between; align-items:flex-start; gap:16px; margin-bottom:24px; }
.topbar-title { font-size: 34px; font-weight: 700; }
.topbar-subtitle { margin-top:8px; color: var(--muted); line-height:1.8; }
.topbar-actions { display:flex; gap:12px; }

.ghost-btn, .primary-btn, .mini-btn {
  padding: 12px 18px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  font-size: 14px;
}
.ghost-btn { background: rgba(255,255,255,.7); color: var(--green-deep); }
.primary-btn { background: linear-gradient(135deg, var(--green), #5c927c); color:white; }
.mini-btn { background: rgba(111,174,149,.12); color: var(--green-deep); padding: 8px 12px; font-size: 12px; }

.tab-panel { display:none; }
.tab-panel.active { display:block; }
.hero, .panel, .stat-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
}
.hero {
  display:flex; justify-content:space-between; gap:24px;
  padding: 28px; margin-bottom: 20px;
  background: linear-gradient(135deg, rgba(111,174,149,.96), rgba(92,146,124,.92));
  color: white;
}
.hero-title { margin-top: 10px; max-width: 760px; font-size: 28px; line-height: 1.6; }
.hero-tags { display:flex; gap:10px; flex-wrap:wrap; margin-top: 18px; }
.hero-tags span { padding:8px 12px; border-radius:999px; background: rgba(255,255,255,.14); font-size: 13px; }
.hero-side { min-width:180px; padding:18px; border-radius:22px; background: rgba(255,255,255,.14); }
.hero-side-value { font-size: 42px; font-weight: 700; }
.hero-side-label { margin-top:10px; line-height:1.7; opacity:.9; }

.stats-grid, .grid.two-cols { display:grid; gap:20px; }
.stats-grid { grid-template-columns: repeat(4, 1fr); margin-bottom: 20px; }
.stat-card { padding: 22px; }
.stat-label { color: var(--muted); font-size:13px; }
.stat-value { margin-top:10px; font-size: 34px; font-weight:700; }
.stat-change { margin-top:10px; color: var(--green-deep); font-size:13px; }
.grid.two-cols { grid-template-columns: 1.12fr .88fr; }
.panel { padding: 24px; }
.panel-head { display:flex; justify-content:space-between; align-items:flex-start; gap:16px; margin-bottom:18px; }
.panel-title { font-size:20px; font-weight:700; }
.panel-note { margin-top:8px; color: var(--muted); font-size:14px; }

.chart-list, .rank-list, .content-list, .user-list { display:grid; gap:14px; }
.chart-item, .rank-item, .content-item, .user-item {
  padding: 18px; border-radius:20px; background: rgba(255,255,255,.72); border:1px solid var(--line);
}
.chart-top, .content-top { display:flex; justify-content:space-between; align-items:center; gap:12px; }
.bar-track { width:100%; height:10px; margin-top:12px; border-radius:999px; background: rgba(111,174,149,.12); overflow:hidden; }
.bar-fill { height:100%; background: linear-gradient(90deg, var(--green), var(--accent)); }
.rank-meta, .content-meta { margin-top:8px; color: var(--muted); line-height:1.7; font-size:14px; }
.content-tag-row { display:flex; gap:8px; flex-wrap:wrap; margin-top: 14px; }
.tag, .status-chip {
  display:inline-flex; align-items:center; padding:6px 10px; border-radius:999px; font-size:12px;
}
.tag, .status-chip.on { background: rgba(111,174,149,.12); color: var(--green-deep); }
.status-chip.warn { background: rgba(232,168,124,.18); color: #9b643d; }

.table-wrap { overflow:auto; }
table { width:100%; border-collapse:collapse; }
th, td { padding: 14px 10px; border-bottom: 1px solid var(--line); text-align:left; font-size:14px; vertical-align: top; }
th { color: var(--muted); font-weight:600; }
.action-row { display:flex; gap:8px; flex-wrap:wrap; }

.user-item { display:flex; justify-content:space-between; gap:16px; }
.user-info { display:flex; gap:14px; }
.user-avatar { position:relative; }
.user-avatar img { width:52px; height:52px; border-radius:50%; object-fit:cover; background:#eef5f1; }
.user-avatar.online::after {
  content:""; position:absolute; right:3px; bottom:3px; width:10px; height:10px; border-radius:50%;
  background:#62c28b; border:2px solid white;
}
.user-meta { margin-top:6px; color: var(--muted); font-size:14px; line-height:1.7; }

@media (max-width: 1100px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { border-right:0; border-bottom:1px solid var(--line); }
  .stats-grid, .grid.two-cols, .form-grid { grid-template-columns: 1fr; }
}
