:root {
  --bg: #1a120e;
  --bg-2: #201612;
  --card: #261a15;
  --card-2: #2c1f18;
  --line: #3b2a22;
  --line-2: #4b362c;
  --text: #f8efe6;
  --muted: #b3a294;
  --green: #4cc26a;
  --green-2: #2f9e4f;
  --green-soft: rgba(76, 194, 106, .12);
  --red: #f85149;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);

  /* 玻璃 */
  --glass: rgba(38, 25, 19, .52);
  --glass-strong: rgba(30, 19, 14, .72);
  --glass-line: rgba(255, 214, 178, .13);
  --glass-highlight: inset 0 1px 0 rgba(255, 224, 196, .10);
  --blur: blur(22px) saturate(160%);
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html, body {
  margin: 0;
  padding: 0;
  background-color: #070a0e;
  color: var(--text);
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* 背景：模糊的暖色 MC 日落（放 public/assets/bg.jpg 会自动替换成你自己的截图） */
body {
  background: transparent;
  position: relative;
}
body::before {
  content: "";
  position: fixed;
  inset: -60px;
  z-index: -2;
  background-image: url(/assets/mc-sunset.svg?v=2);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  filter: blur(9px) saturate(1.08) brightness(1.02);
  transform: translateZ(0);
}
/* 放了 public/assets/bg.jpg 就自动换成你自己的截图 */
body.has-photo::before {
  background-image: url(/assets/bg.jpg);
  filter: blur(6px) saturate(1.1) brightness(.92);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(18, 10, 8, .62) 0%, rgba(18, 10, 8, .44) 42%, rgba(18, 10, 8, .78) 100%),
    radial-gradient(70% 50% at 50% 8%, rgba(255, 168, 92, .10), transparent 70%);
}

:root {
  --bg: #1a120e;
  --bg-2: #201612;
  --card: #261a15;
  --card-2: #2c1f18;
  --line: #3b2a22;
  --line-2: #4b362c;
  --text: #f8efe6;
  --muted: #b3a294;
  --green: #4cc26a;
  --green-2: #2f9e4f;
  --green-soft: rgba(76, 194, 106, .12);
  --red: #f85149;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);

  /* 玻璃 */
  --glass: rgba(38, 25, 19, .52);
  --glass-strong: rgba(30, 19, 14, .72);
  --glass-line: rgba(255, 214, 178, .13);
  --glass-highlight: inset 0 1px 0 rgba(255, 224, 196, .10);
  --blur: blur(22px) saturate(160%);
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html, body {
  margin: 0;
  padding: 0;
  background-color: #070a0e;
  color: var(--text);
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: #16100c;
  /* 第一层是压暗遮罩，第二层可以放你自己拍的截图（放 public/assets/bg.jpg 即自动生效），第三层是内置的像素日落图 */
  background-image:
    linear-gradient(180deg, rgba(20, 12, 9, .68) 0%, rgba(20, 12, 9, .45) 40%, rgba(20, 12, 9, .78) 100%),
    url(/assets/bg.jpg),
    url(/assets/mc-sunset.svg?v=2);
  background-repeat: no-repeat, no-repeat, no-repeat;
  background-position: center top, center center, center center;
  background-size: cover, cover, cover;
  background-attachment: fixed, fixed, fixed;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; letter-spacing: -.2px; }
p { margin: 0 0 1em; }
code { font-family: ui-monospace, Consolas, monospace; }

.wrap { width: min(1100px, calc(100% - 48px)); margin: 0 auto; }
.wrap.narrow { width: min(760px, calc(100% - 48px)); }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.nowrap { white-space: nowrap; }
.hidden { display: none !important; }

/* ---------- 顶部栏 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(26, 16, 12, .62);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border-bottom: 1px solid var(--glass-line);
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 16px; letter-spacing: .2px; }
.brand.small { font-size: 15px; padding: 0 6px 18px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.logo {
  display: grid; place-items: center;
  width: 32px; height: 32px; border-radius: 9px;
  background: linear-gradient(135deg, var(--green), var(--green-2));
  color: #06210f; font-size: 17px;
}
.topbar-right { display: flex; align-items: center; gap: 16px; }
.hi { color: var(--muted); font-size: 13px; }
.hi b { color: var(--text); }

.topnav { display: flex; align-items: center; gap: 20px; }
.topnav-link {
  font-size: 14px; color: var(--muted);
  background: none; border: 0; padding: 0; cursor: pointer; font-family: inherit;
}
.topnav-link:hover { color: var(--text); }
.topnav-user { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text); }
.topnav-user img {
  width: 26px; height: 26px; border-radius: 7px;
  image-rendering: pixelated; border: 1px solid var(--glass-line);
}
.topnav-form { margin: 0; }
.topnav-form button { padding: 0; }

.menu-btn {
  width: 42px; height: 42px; border-radius: 10px;
  background: transparent; border: 1px solid var(--line);
  display: grid; place-content: center; gap: 5px; cursor: pointer;
  transition: border-color .15s ease;
}
.menu-btn:hover { border-color: var(--green); }
.menu-btn span { display: block; width: 18px; height: 2px; background: var(--text); border-radius: 2px; }

/* ---------- 抽屉菜单 ---------- */
.drawer-backdrop {
  position: fixed; inset: 0; z-index: 45;
  background: rgba(0, 0, 0, .55);
  animation: fade .18s ease;
}
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 50;
  width: min(340px, 86vw);
  background: var(--glass-strong);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border-left: 1px solid var(--glass-line);
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  animation: slide .2s ease;
}
@keyframes slide { from { transform: translateX(24px); opacity: .4; } to { transform: none; opacity: 1; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px 12px; font-weight: 700; }
.drawer-close { background: none; border: 0; color: var(--muted); font-size: 26px; line-height: 1; cursor: pointer; }
.drawer-close:hover { color: var(--text); }
.drawer-body { padding: 10px 14px; display: flex; flex-direction: column; gap: 4px; overflow-y: auto; }
.drawer-user {
  display: flex; align-items: center; gap: 12px;
  padding: 12px; margin-bottom: 8px;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--glass-line); border-radius: 12px;
}
.drawer-avatar { width: 42px; height: 42px; border-radius: 10px; image-rendering: pixelated; }
.drawer-user b { display: block; font-size: 14px; }
.drawer-user span { font-size: 12px; }
.drawer-link {
  display: block; width: 100%; text-align: left;
  padding: 12px 14px; border-radius: 10px;
  color: var(--text); font-size: 14.5px;
  background: none; border: 0; cursor: pointer; font-family: inherit;
}
.drawer-link:hover { background: rgba(255, 255, 255, .06); }
.drawer-link.primary { background: linear-gradient(135deg, var(--green), var(--green-2)); color: #06210f; font-weight: 800; text-align: center; margin-top: 8px; }
.drawer-link.danger { color: #ff9c96; }
.drawer-form { margin: 0; }
.drawer-foot { margin-top: auto; padding: 18px 22px; color: var(--muted); font-size: 12px; border-top: 1px solid var(--line); }

/* ---------- 通用按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 11px 20px; border-radius: 10px; border: 1px solid transparent;
  background: linear-gradient(135deg, var(--green), var(--green-2));
  color: #06210f; font-weight: 800; font-size: 14.5px;
  cursor: pointer; font-family: inherit;
  transition: transform .12s ease, filter .12s ease, border-color .12s ease;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.06); }
.btn.ghost { background: transparent; border-color: var(--line-2); color: var(--text); }
.btn.ghost:hover { border-color: var(--green); color: var(--green); }
.btn.small { padding: 7px 14px; font-size: 13px; border-radius: 8px; }
.btn.tiny { padding: 4px 10px; font-size: 12px; border-radius: 7px; }
.btn.wide { width: 100%; }
.btn.danger { background: rgba(248, 81, 73, .14); border-color: rgba(248, 81, 73, .45); color: #ffb4ae; }
.btn.danger:hover { background: rgba(248, 81, 73, .22); }

/* ---------- 提示 ---------- */
.alert { padding: 11px 14px; border-radius: 10px; font-size: 13.5px; margin-bottom: 16px; }
.alert.ok { background: var(--green-soft); border: 1px solid rgba(76, 194, 106, .4); color: #b7f0c6; }
.alert.error { background: rgba(248, 81, 73, .12); border: 1px solid rgba(248, 81, 73, .4); color: #ffb4ae; }
.flash-wrap { padding-top: 18px; }

/* ---------- 首页 ---------- */
.hero {
  padding: 96px 0 80px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(60% 70% at 70% 0%, rgba(255, 176, 92, .16), transparent 70%),
    radial-gradient(45% 55% at 12% 22%, rgba(226, 112, 60, .12), transparent 72%);
}
.tag { color: var(--green); font-size: 13px; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 14px; }
.hero h1 { font-size: clamp(34px, 5.4vw, 58px); margin-bottom: 18px; }
.hero .sub { color: var(--muted); font-size: 16.5px; max-width: 620px; margin-bottom: 14px; }
.hero-note { color: var(--green); font-size: 14px; margin-bottom: 22px; }
.hero-row { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; margin: 26px 0 30px; }
.ipbox {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 10px 12px 10px 18px; border: 1px solid var(--glass-line); border-radius: 12px;
  background: var(--glass);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  box-shadow: var(--glass-highlight);
}
.iplabel { color: var(--muted); font-size: 12px; }
.ipbox code { font-size: 15px; color: var(--text); }
.online { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; }
.online b { font-size: 20px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #59677a; display: inline-block; }
.dot.on { background: var(--green); box-shadow: 0 0 0 4px rgba(76, 194, 106, .18); }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

.section { padding: 78px 0; border-bottom: 1px solid var(--line); }
.section.alt { background: rgba(255, 190, 140, .055); }
.section-head { margin-bottom: 30px; }
.section-head h2 { font-size: 28px; }
.section-head p { color: var(--muted); font-size: 14px; margin: 0; }

/* 标签页 */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.tab {
  padding: 9px 18px; border-radius: 999px;
  border: 1px solid var(--line-2); background: transparent; color: var(--muted);
  font-size: 14px; cursor: pointer; font-family: inherit;
  transition: all .15s ease;
}
.tab:hover { color: var(--text); border-color: var(--green); }
.tab.active { background: var(--green-soft); border-color: rgba(76, 194, 106, .5); color: var(--green); font-weight: 700; }
.tab-panel { display: none; color: #c8d3df; font-size: 15px; line-height: 1.9; }
.tab-panel.active { display: block; animation: fade .2s ease; }

/* 成员 */
.members-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.member {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 20px; background: var(--glass); border: 1px solid var(--glass-line); border-radius: var(--radius);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  box-shadow: var(--glass-highlight), 0 10px 26px rgba(0, 0, 0, .22);
  transition: border-color .15s ease, transform .15s ease;
}
.member:hover { border-color: rgba(76, 194, 106, .45); transform: translateY(-2px); }
.member-avatar {
  width: 52px; height: 52px; border-radius: 12px; image-rendering: pixelated;
  border: 1px solid var(--line-2); background: var(--bg);
}
.member-head { display: flex; align-items: baseline; flex-wrap: nowrap; gap: 8px; margin-bottom: 4px; min-width: 0; }
.member-head b { font-size: 15.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.member .role {
  font-size: 11.5px; color: var(--green); background: var(--green-soft);
  padding: 1px 8px; border-radius: 999px;
  white-space: nowrap; flex: 0 0 auto;
}
.member p { margin: 0; color: var(--muted); font-size: 13px; }

/* 反馈 */
.feedback-wrap { max-width: 760px; }
.feedback-form {
  padding: 26px; background: var(--glass); border: 1px solid var(--glass-line); border-radius: var(--radius);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  box-shadow: var(--glass-highlight), 0 14px 34px rgba(0, 0, 0, .28);
}
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 6px; }

/* 表单通用 */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.input, .field input, .field select, .field textarea, .feedback-form input, .feedback-form textarea {
  width: 100%; padding: 11px 13px; border-radius: 10px;
  border: 1px solid var(--line-2); background: var(--bg); color: var(--text);
  font-size: 14px; font-family: inherit; outline: none;
  transition: border-color .15s ease;
}
.input:focus, .field input:focus, .field select:focus, .field textarea:focus { border-color: var(--green); }
textarea { resize: vertical; min-height: 90px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-2.gap { gap: 18px; }
.check { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.check input { width: auto; }

/* 登录/注册 */
.auth-wrap { min-height: calc(100vh - 64px); display: grid; place-items: center; padding: 56px 0; }
.auth-card {
  width: min(420px, calc(100% - 40px));
  padding: 34px; background: var(--glass); border: 1px solid var(--glass-line);
  border-radius: 18px; box-shadow: var(--glass-highlight), var(--shadow);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
}
.auth-card h1 { font-size: 24px; margin-bottom: 6px; }
.auth-card > .muted { font-size: 13px; margin-bottom: 20px; }
.auth-alt { text-align: center; font-size: 13px; color: var(--muted); margin: 16px 0 0; }
.auth-alt a { color: var(--green); }

/* 用户中心 */
.page-head { padding: 48px 0 22px; }
.page-head h1 { font-size: 30px; }
.profile-card {
  display: flex; align-items: center; gap: 20px;
  padding: 24px; background: var(--glass); border: 1px solid var(--glass-line);
  border-radius: var(--radius); margin-bottom: 22px;
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  box-shadow: var(--glass-highlight), 0 12px 30px rgba(0, 0, 0, .22);
}
.profile-avatar { width: 72px; height: 72px; border-radius: 14px; image-rendering: pixelated; border: 1px solid var(--line-2); }
.profile-main h2 { margin: 0 0 4px; font-size: 20px; }
.profile-main p { margin: 0; font-size: 13px; }
.panel {
  background: var(--glass); border: 1px solid var(--glass-line); border-radius: var(--radius);
  padding: 22px; margin-bottom: 18px;
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  box-shadow: var(--glass-highlight), 0 12px 30px rgba(0, 0, 0, .22);
}
.panel h3 { font-size: 16px; margin-bottom: 12px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.panel-head h3 { margin: 0; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.mini-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.mini-list li { display: flex; flex-direction: column; gap: 2px; padding-bottom: 10px; border-bottom: 1px solid var(--line); font-size: 14px; }
.mini-list li:last-child { border-bottom: 0; padding-bottom: 0; }

/* ---------- 页脚 ---------- */
.foot { padding: 26px 0; color: var(--muted); font-size: 12.5px; }
.foot-inner { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }

/* ---------- 后台 ---------- */
.admin-body { background: transparent; }
.admin-shell { display: flex; min-height: 100vh; }
.sidebar {
  width: 232px; flex: 0 0 232px;
  overflow-x: clip;
  background: rgba(30, 19, 14, .78);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border-right: 1px solid var(--glass-line);
  padding: 20px 14px; display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh;
}
.side-nav {
  display: flex; flex-direction: column; gap: 3px;
  flex: 1 1 auto; min-height: 0;
  overflow-y: auto; overflow-x: clip;
  scrollbar-width: thin;
  scrollbar-color: rgba(76, 194, 106, .35) transparent;
  padding-right: 2px;
}
.side-group {
  margin: 14px 10px 4px;
  font-size: 11px;
  letter-spacing: 1.2px;
  color: var(--muted);
  text-transform: uppercase;
}
.side-group:first-child { margin-top: 2px; }

.side-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px; border-radius: 9px; font-size: 14px; color: #b6c2d0;
  background: none; border: 0; width: 100%; text-align: left; cursor: pointer; font-family: inherit;
}
.side-link:hover { background: rgba(255, 255, 255, .06); color: var(--text); }
.side-link.active { background: var(--green-soft); color: var(--green); font-weight: 700; }
.side-link.danger { color: #ff9c96; }
.badge {
  font-style: normal; font-size: 11px; font-weight: 800;
  background: var(--red); color: #fff; padding: 1px 7px; border-radius: 999px;
}
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 3px; border-top: 1px solid var(--line); padding-top: 12px; }

.admin-main { flex: 1; min-width: 0; }
.admin-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 32px; border-bottom: 1px solid var(--glass-line);
  background: rgba(10, 15, 20, .55);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
}
.admin-top h1 { font-size: 20px; margin: 0; }
.admin-user { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--muted); }
.admin-user img { width: 30px; height: 30px; border-radius: 8px; image-rendering: pixelated; }
.admin-content { padding: 26px 32px 60px; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 20px; }
.stat-card {
  background: var(--glass); border: 1px solid var(--glass-line); border-radius: var(--radius); padding: 18px 20px;
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  box-shadow: var(--glass-highlight), 0 10px 24px rgba(0, 0, 0, .2);
}
.stat-card span { display: block; color: var(--muted); font-size: 12.5px; margin-bottom: 4px; }
.stat-card b { font-size: 28px; letter-spacing: -.5px; }

.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; color: var(--muted); font-size: 12.5px; font-weight: 600; padding: 9px 10px; border-bottom: 1px solid var(--line); }
.table td { padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.feedback-table td { max-width: 640px; }
.fb-body { color: #b9c6d4; font-size: 13.5px; margin: 4px 0 6px; }
.pill { display: inline-block; font-size: 12px; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); }
.pill.new { background: rgba(248, 81, 73, .12); border-color: rgba(248, 81, 73, .4); color: #ffb4ae; }
.pill.read { background: rgba(210, 153, 34, .12); border-color: rgba(210, 153, 34, .4); color: #f0c96b; }
.pill.done { background: var(--green-soft); border-color: rgba(76, 194, 106, .4); color: var(--green); }
.pill.admin { background: var(--green-soft); border-color: rgba(76, 194, 106, .4); color: var(--green); }
.quick { display: flex; gap: 10px; flex-wrap: wrap; }
.link { color: var(--green); font-size: 13px; }

.editor { border: 1px solid var(--glass-line); border-radius: 12px; padding: 14px; margin-bottom: 14px; background: rgba(255, 255, 255, .03); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.editor-head { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.editor-foot { display: flex; gap: 10px; align-items: center; margin-top: 10px; }
.title-input { flex: 1; }
.name-input { flex: 0 0 160px; }
.role-input { flex: 0 0 140px; }
.sort-input { flex: 0 0 76px; }
.mini-avatar { width: 32px; height: 32px; border-radius: 8px; image-rendering: pixelated; }
.inline { display: inline; margin: 0; }
.inline-form { display: flex; gap: 10px; margin-bottom: 14px; align-items: center; }
.inline-form.search { margin-top: 8px; }
.inline-form .input { max-width: 260px; }
.input.tiny { width: auto; padding: 5px 8px; font-size: 12.5px; }

/* ---------- 响应式 ---------- */@media (max-width: 860px) {
  .topnav { gap: 12px; }
  .topnav-link { font-size: 13px; }
  .topnav-user { font-size: 12.5px; }
  .admin-shell { flex-direction: column; }
  .sidebar {
    width: 100%; flex: none; height: auto; position: static;
    flex-direction: column; gap: 8px;
    padding: 12px 14px; border-right: 0; border-bottom: 1px solid var(--glass-line);
    overflow: hidden;
  }
  .brand.small { border: 0; padding: 0; margin: 0; }
  .side-nav {
    flex-direction: row; flex-wrap: nowrap; align-items: center; gap: 6px;
    overflow-x: auto; overflow-y: hidden;
    padding-bottom: 4px;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }

  .side-group { display: none; }
  
.side-link { width: auto; white-space: nowrap; padding: 7px 11px; font-size: 13px; flex: none; }
  .side-foot { margin: 0; border: 0; padding: 0; flex-direction: row; flex-wrap: nowrap; gap: 6px; }
  .side-foot 
.side-link { white-space: nowrap; }
  .admin-top { padding: 16px 18px; flex-wrap: wrap; gap: 8px; }
  .admin-content { padding: 18px 18px 50px; }
  .panel { overflow-x: auto; }
  .table { min-width: 640px; }
  .grid-2 { grid-template-columns: 1fr; }
  .hero { padding: 64px 0 54px; }
  .section { padding: 56px 0; }
  .wrap { width: calc(100% - 32px); }
}

@media (max-width: 620px) {
  .topbar-inner { height: auto; padding: 10px 0; flex-wrap: wrap; gap: 10px; }
  .topnav { gap: 10px; flex-wrap: wrap; }
  .topnav-link { font-size: 12.5px; }
  .topnav-user { font-size: 12px; }
}

/* 玻璃高光：给所有玻璃面板加一层斜向反光 */
.panel, .member, .auth-card, .feedback-form, .profile-card, .stat-card, .ipbox, .editor {
  background-image: linear-gradient(152deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, 0) 46%);
  border-color: rgba(255, 255, 255, .12);
}

/* 不支持 backdrop-filter 时退回半透明实底 */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .topbar, .drawer, .sidebar, .admin-top { background: rgba(10, 15, 20, .96); }
  .panel, .member, .auth-card, .feedback-form, .profile-card, .stat-card, .ipbox { background: rgba(17, 24, 32, .96); }
  .editor { background: rgba(17, 24, 32, .96); }
}

.pager { display: flex; align-items: center; gap: 12px; justify-content: center; margin-top: 16px; }

.online.big { font-size: 17px; }
.online.big b { font-size: 30px; letter-spacing: -.5px; }

/* ---------- 商店 ---------- */
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.product {
  display: flex; flex-direction: column;
  background: var(--glass); border: 1px solid var(--glass-line); border-radius: var(--radius);
  overflow: hidden; backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  box-shadow: var(--glass-highlight), 0 10px 26px rgba(0,0,0,.22);
  transition: border-color .15s ease, transform .15s ease;
}
.product:hover { border-color: rgba(76,194,106,.45); transform: translateY(-2px); }
.product-img { width: 100%; height: 132px; object-fit: cover; background: rgba(255,255,255,.03); }
.product-img.placeholder { display: grid; place-items: center; font-size: 34px; color: var(--green); }
.product-body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-body h3 { margin: 0; font-size: 16px; }
.product-body p { margin: 0; flex: 1; }
.product-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; }
.price { color: var(--green); font-weight: 800; font-size: 18px; }
.price-input { flex: 0 0 100px; }
.pill.pending { background: rgba(248,81,73,.12); border-color: rgba(248,81,73,.4); color: #ffb4ae; }
.pill.shipped { background: rgba(210,153,34,.12); border-color: rgba(210,153,34,.4); color: #f0c96b; }
.pill.done { background: var(--green-soft); border-color: rgba(76,194,106,.4); color: var(--green); }
.pill.cancelled { color: var(--muted); }
/* ---------- 通知邮箱名单 ---------- */
.email-list { list-style: none; padding: 0; margin: 0 0 14px; display: flex; flex-direction: column; gap: 8px; }
.email-list li {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 9px 12px; border: 1px solid var(--glass-line); border-radius: 9px;
  background: rgba(255,255,255,.03);
}
.email-list li form { margin: 0; }
/* ---------- 滚动条主题（细、圆角、低饱和绿，无箭头） ---------- */
html { scrollbar-width: thin; scrollbar-color: rgba(140, 170, 150, .28) transparent; }
::-webkit-scrollbar { width: 7px; height: 7px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background-color: rgba(150, 180, 160, .26);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover { background-color: rgba(76, 194, 106, .55); }
::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
::-webkit-scrollbar-corner { background: transparent; }

/* 侧边菜单：完全隐藏原生滚动条（滚动仍然可用），避免默认灰条和箭头破坏观感 */
.side-nav {
  scrollbar-width: none;
  -ms-overflow-style: none;
  overflow-x: hidden;
}
.side-nav::-webkit-scrollbar { display: none; width: 0; height: 0; }

/* 面板内横向滚动（表格）也统一成细滚动条 */
.panel { scrollbar-width: thin; scrollbar-color: rgba(140, 170, 150, .25) transparent; }
/* ---------- 群精选图集 ---------- */
.gallery { max-width: 980px; }
.gallery-stage {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(30, 19, 14, .5);
  border: 1px solid var(--glass-line);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .32);
}
.gallery-item { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .35s ease; }
.gallery-item.active { position: relative; opacity: 1; }
.gallery-item img { display: block; width: 100%; max-height: 540px; object-fit: cover; }
.gallery-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 16px 18px;
  font-size: 13.5px; color: #f8efe6;
  background: linear-gradient(to top, rgba(16, 9, 6, .88), rgba(16, 9, 6, 0));
}
.gallery-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--glass-line);
  background: rgba(24, 14, 10, .55);
  color: #f8efe6; font-size: 22px; line-height: 1; cursor: pointer;
  display: grid; place-items: center;
  backdrop-filter: blur(6px);
  transition: background .15s ease;
}
.gallery-nav:hover { background: rgba(76, 194, 106, .7); color: #06210f; }
.gallery-nav.prev { left: 14px; }
.gallery-nav.next { right: 14px; }
.gallery-counter {
  position: absolute; right: 14px; bottom: 14px;
  padding: 4px 12px; border-radius: 999px;
  background: rgba(24, 14, 10, .6);
  border: 1px solid var(--glass-line);
  font-size: 12.5px; color: #e8d9cb;
}
.gallery-counter b { color: var(--green); }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 14px; overflow-x: auto; padding-bottom: 4px; }
.gallery-thumb {
  flex: 0 0 auto; width: 92px; height: 62px; padding: 0;
  border: 2px solid transparent; border-radius: 10px; overflow: hidden;
  background: rgba(30, 19, 14, .6); cursor: pointer; opacity: .6;
  transition: opacity .15s ease, border-color .15s ease;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-thumb:hover { opacity: 1; }
.gallery-thumb.active { opacity: 1; border-color: var(--green); }

/* 后台图集编辑 */
.gallery-row { display: flex; gap: 14px; align-items: flex-start; }
.gallery-thumb-img { width: 96px; height: 66px; object-fit: cover; border-radius: 8px; border: 1px solid var(--glass-line); }
.gallery-row-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }