:root {
  --bg: hsl(222 84% 5%);
  --ink: #f2efe6;
  --ink-muted: #9b968a;
  --gold: #d4b45a;
  --gold-soft: rgba(212, 180, 90, 0.16);
  --line: rgba(242, 239, 230, 0.1);
  --font-display: "Instrument Serif", "Noto Serif SC", "Songti SC", serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --max: 1120px;
  --login-accent-glow: hsl(193 100% 43% / 0.22);
  --login-grid-line: hsl(0 0% 50% / 0.05);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  overflow-x: hidden;
}

a {
  color: var(--gold);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.login-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: var(--bg);
}

.orb {
  position: absolute;
  border-radius: 999px;
  will-change: transform;
}

.orb-a {
  left: 22%;
  top: 28%;
  width: 340px;
  height: 340px;
  margin-left: -170px;
  margin-top: -170px;
  background: var(--login-accent-glow);
  filter: blur(100px);
}

.orb-b {
  right: 12%;
  bottom: 8%;
  width: 380px;
  height: 380px;
  margin-right: -190px;
  margin-bottom: -190px;
  background: hsl(160 84% 39% / 0.10);
  filter: blur(120px);
}

.bg-glow {
  position: absolute;
  left: 32%;
  top: 48%;
  width: min(100vh, 90vw);
  height: min(100vh, 90vw);
  margin-left: calc(min(100vh, 90vw) / -2);
  margin-top: calc(min(100vh, 90vw) / -2);
  border-radius: 999px;
  border: 1px solid hsl(193 100% 43% / 0.12);
  background: radial-gradient(
    circle at 40% 35%,
    hsl(193 100% 43% / 0.12),
    hsl(214 100% 20% / 0.18) 58%,
    transparent 72%
  );
  box-shadow: inset 0 0 200px hsl(193 100% 43% / 0.16);
  filter: blur(4px);
  opacity: 0.9;
}

.grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--login-grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--login-grid-line) 1px, transparent 1px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse 80% 50% at 50% 50%, #000 70%, transparent 100%);
  mask-image: radial-gradient(ellipse 80% 50% at 50% 50%, #000 70%, transparent 100%);
}

.particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.shell-wide,
.site-header,
.site-footer {
  position: relative;
  z-index: 1;
}

.shell-wide {
  width: min(100% - 2.5rem, var(--max));
  margin: 0 auto;
}

.site-header {
  padding: 1.35rem 0 0.9rem;
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
  background: linear-gradient(to bottom, hsl(222 84% 5% / 0.65), hsl(222 84% 5% / 0.15));
}

.nav {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 400;
  font-style: italic;
  color: var(--ink);
  letter-spacing: 0.02em;
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
  color: var(--gold);
}

/* 左右两栏，同一视口内并排，不上下堆叠 */
main.stage {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 26.5rem);
  gap: clamp(1.75rem, 4vw, 3.75rem);
  align-items: center;
  min-height: calc(100vh - 8.5rem);
  min-height: calc(100dvh - 8.5rem);
  padding: 1.5rem 0 2rem;
}

.hero {
  animation: rise 0.7s ease both;
  max-width: 28rem;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4rem);
  font-weight: 400;
  font-style: italic;
  margin: 0 0 0.85rem;
  letter-spacing: 0.01em;
  line-height: 1.1;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.45);
}

.hero > p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.panel {
  animation: rise 0.75s 0.06s ease both;
  padding: 0.85rem 1.15rem 1rem;
  border: 1px solid hsl(0 0% 100% / 0.08);
  border-radius: 16px;
  background: hsl(222 34% 8% / 0.72);
  backdrop-filter: blur(16px);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 hsl(0 0% 100% / 0.04);
}

.list {
  display: flex;
  flex-direction: column;
}

.list-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.4rem 0.9rem;
  align-items: center;
  padding: 0.9rem 0.45rem;
  margin: 0 -0.45rem;
  border-top: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
  transition: background 0.25s ease, transform 0.25s ease;
  border-radius: 8px;
}

.list-item:first-child {
  border-top: none;
}

.list-item:hover {
  background: rgba(255, 255, 255, 0.04);
  text-decoration: none;
  transform: translateX(3px);
}

.list-item .title-row {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.list-item .name {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 400;
  font-style: italic;
}

.list-item .sub {
  grid-column: 1 / -1;
  font-size: 0.8rem;
  color: var(--ink-muted);
  line-height: 1.45;
}

.action-pill {
  display: inline-block;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--gold);
}

.disclaimer {
  margin: 0.65rem 0 0;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
  font-size: 0.72rem;
  color: var(--ink-muted);
  line-height: 1.5;
}

.site-footer {
  padding: 1rem 0 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.75rem;
  color: var(--ink-muted);
  background: hsl(222 84% 5% / 0.45);
  backdrop-filter: blur(8px);
}

.site-footer .shell-wide {
  display: flex;
  justify-content: flex-start;
}

/* 仅很窄屏才允许纵向；桌面/平板横屏保持左右 */
@media (max-width: 720px) {
  main.stage {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 1.5rem;
    padding-top: 1.5rem;
  }

  .hero {
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero,
  .panel { animation: none; }
  .list-item:hover { transform: none; }
}
