:root {
  color-scheme: dark;
  --bg: #05080d;
  --panel: rgba(10, 18, 29, 0.76);
  --panel-strong: rgba(13, 27, 43, 0.92);
  --text: #f4f8fb;
  --muted: #8fa1b5;
  --line: rgba(130, 236, 220, 0.2);
  --line-strong: rgba(130, 236, 220, 0.52);
  --accent: #5eead4;
  --accent-blue: #38bdf8;
  --shadow: rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at 18% 12%, rgba(56, 189, 248, 0.2), transparent 28rem),
    radial-gradient(circle at 82% 22%, rgba(94, 234, 212, 0.13), transparent 24rem),
    linear-gradient(135deg, #05080d 0%, #07111d 48%, #030609 100%);
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.92), transparent 82%);
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background: linear-gradient(115deg, transparent 0 42%, rgba(94, 234, 212, 0.08) 42.2%, transparent 42.7% 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

.page-shell {
  width: min(1120px, calc(100% - 40px));
  min-height: calc(100vh - 72px);
  margin: 0 auto;
  padding: 32px 0 40px;
}

.hero {
  position: relative;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fade-up 680ms ease both;
}

.brand-pill {
  display: inline-flex;
  padding: 8px 12px;
  border: 1px solid rgba(143, 161, 181, 0.22);
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.04em;
  background: rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(14px);
}

.title-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.hero-logo {
  height: 170px !important;
  width: auto;
  object-fit: contain;
  display: block;
}

.auth-pod {
  position: relative;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 4px 6px 4px 14px;
  border: 1px solid rgba(94, 234, 212, 0.22);
  border-radius: 999px;
  background: rgba(8, 14, 23, 0.7);
  backdrop-filter: blur(14px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
  font-size: 13px;
  color: var(--text);
  transition: border-color 200ms ease, transform 200ms ease;
}

.auth-pod:hover { border-color: rgba(94, 234, 212, 0.5); }

.auth-pod[data-state="loading"] { color: var(--muted); padding-right: 14px; }

.auth-pod .pod-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.auth-pod .pod-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted);
  box-shadow: 0 0 0 2px rgba(143, 161, 181, 0.18);
}
.auth-pod[data-state="member"] .pod-dot { background: var(--accent); box-shadow: 0 0 0 2px rgba(94, 234, 212, 0.25); }
.auth-pod[data-state="logged"] .pod-dot { background: var(--accent-blue); box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.25); }
.auth-pod[data-state="guest"] .pod-dot { background: rgba(143, 161, 181, 0.6); }

.auth-pod[data-state="member"] .pod-status,
.auth-pod[data-state="logged"] .pod-status { color: var(--text); }

.pod-btn {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: 180ms ease;
}

.pod-btn.ghost {
  border-color: rgba(143, 161, 181, 0.28);
  color: var(--text);
}
.pod-btn.ghost:hover { color: var(--accent); border-color: rgba(94, 234, 212, 0.45); }

.pod-btn.solid {
  border-color: rgba(94, 234, 212, 0.55);
  background: linear-gradient(135deg, #5eead4, #38bdf8);
  color: #052920;
}
.pod-btn.solid:hover { transform: translateY(-1px); }

.pod-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #5eead4, #38bdf8);
  color: #04131c;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0;
  cursor: pointer;
  user-select: none;
}

.auth-pod details {
  position: relative;
}
.auth-pod details > summary {
  list-style: none;
  cursor: pointer;
}
.auth-pod details > summary::-webkit-details-marker { display: none; }

.auth-pod .pod-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 240px;
  padding: 14px;
  border: 1px solid rgba(94, 234, 212, 0.22);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(13, 27, 43, 0.96), rgba(8, 14, 23, 0.92));
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.55);
  display: grid;
  gap: 10px;
}

.auth-pod .pod-menu .menu-info {
  display: grid;
  gap: 4px;
  padding: 4px 6px 8px;
  border-bottom: 1px solid rgba(143, 161, 181, 0.14);
}
.auth-pod .pod-menu .menu-info b {
  color: var(--text);
  font-size: 13px;
  word-break: break-all;
}
.auth-pod .pod-menu .menu-info span {
  color: var(--muted);
  font-size: 12px;
}

.auth-pod .pod-menu .menu-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.hero-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 24px;
}

.hero-top-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

h1 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(44px, 7vw, 92px);
  line-height: 0.98;
  letter-spacing: -0.08em;
  text-align: center;
}

.subtitle {
  margin: 24px auto 0;
  color: #dce8f0;
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 650;
  letter-spacing: -0.04em;
  text-align: center;
  
  /* 透明胶囊+发光渐变边框效果 */
  background: transparent;
  position: relative;
  border-radius: 999px; /* 极致圆角，形成胶囊 */
  padding: 0.75rem 1.5rem; /* 内边距撑开胶囊 */
  display: inline-block; /* 让胶囊紧贴文字宽度，而不是占满整行 */
}

/* 利用伪元素实现渐变边框 */
.subtitle::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 999px;
  padding: 1px; /* 边框的厚度 */
  background: linear-gradient(135deg, rgba(94, 234, 212, 0.12), rgba(56, 189, 248, 0.12), rgba(255, 255, 255, 0.02));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none; /* 防止遮挡点击 */
}

.intro {
  max-width: 560px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

.site-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 52px;
}

.site-card {
  position: relative;
  min-height: 180px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(145deg, var(--panel-strong), var(--panel));
  box-shadow: 0 22px 80px var(--shadow);
  overflow: hidden;
  animation: fade-up 680ms ease both;
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease, box-shadow 220ms ease;
}

.site-card:nth-child(2) {
  animation-delay: 80ms;
}

.site-card:nth-child(3) {
  animation-delay: 160ms;
}

.site-card:nth-child(4) {
  animation-delay: 240ms;
}

.site-card::before {
  position: absolute;
  top: -90px;
  right: -80px;
  width: 180px;
  height: 180px;
  border-radius: 999px;
  content: "";
  background: radial-gradient(circle, rgba(94, 234, 212, 0.22), transparent 68%);
  opacity: 0;
  transition: opacity 220ms ease;
}

.site-card:hover,
.site-card:focus-visible {
  transform: translateY(-6px);
  border-color: var(--line-strong);
  background: linear-gradient(145deg, rgba(16, 36, 55, 0.96), rgba(11, 22, 36, 0.82));
  box-shadow: 0 26px 90px rgba(4, 13, 22, 0.72);
  outline: none;
}

.site-card:hover::before,
.site-card:focus-visible::before {
  opacity: 1;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border: 1px solid rgba(94, 234, 212, 0.28);
  border-radius: 999px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(94, 234, 212, 0.07);
}

.site-card h2 {
  margin: 34px 0 0;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.18;
  letter-spacing: -0.05em;
}

.site-card p {
  max-width: 420px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.footer {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 0 0 28px;
  color: rgba(143, 161, 181, 0.7);
  font-size: 13px;
  letter-spacing: 0.04em;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1 !important; transform: translateY(0); }
}

@media (max-width: 760px) {
  .page-shell {
    width: min(100% - 28px, 560px);
    min-height: calc(100vh - 64px);
    padding-top: 24px;
  }

  .hero-logo {
    height: clamp(44px, 7vw, 92px) !important;
  }

  .hero-top-bar {
    align-self: center;
  }

  .auth-pod {
    height: 36px;
  }
  .auth-pod .pod-status { display: none; }

  h1 {
    letter-spacing: -0.07em;
  }

  .site-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 36px;
  }

  .site-card {
    min-height: 160px;
    padding: 22px;
    border-radius: 22px;
  }

  .site-card h2 {
    margin-top: 28px;
  }

  .footer {
    width: min(100% - 28px, 560px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}
