:root {
  --bg: #0b0f14;
  --paper: #ffffff;
  --line: #e4eaf2;
  --ink: #182638;
  --muted: #5e6e84;
  --blue: #245ec8;
  --font: "PingFang SC", "HarmonyOS Sans SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
}
* { box-sizing: border-box; }
html, body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.g-app {
  width: 100%;
  height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
main {
  flex: 1;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  max-width: none;
  position: relative;
}

/* —— /g/{key} 全屏互动 —— */
.g-pure {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #000;
}
.g-pure .g-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #fff;
}
.g-wm {
  position: fixed;
  right: 10px;
  bottom: 8px;
  z-index: 50;
  pointer-events: none;
  user-select: none;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.55);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

/* —— /g 列表（极简） —— */
.g-list {
  height: 100%;
  overflow: auto;
  background: #f4f7fb;
  padding: 20px;
}
.g-list-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: end;
  margin-bottom: 14px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
.g-list-head h1 { margin: 0; font-size: 20px; }
.g-list-head p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.g-card {
  max-width: 900px;
  margin: 0 auto;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.g-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.g-table th, .g-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.g-table th { color: var(--muted); font-weight: 600; font-size: 12px; }
.g-table tr:hover td { background: #f8fbff; }

/* —— 404 / 错误 —— */
.g-error {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
  background: #f4f7fb;
  color: #334155;
  font-size: 15px;
  line-height: 1.6;
}
