:root {
  --bg: #0b1020;
  --bg-soft: #111831;
  --card: rgba(17, 24, 49, 0.72);
  --card-border: rgba(255, 255, 255, 0.08);
  --text: #eef2ff;
  --muted: #a7b0d6;
  --accent: #7c9cff;
  --accent-2: #67e8f9;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top, #16203f 0%, #0b1020 48%, #070b16 100%);
  color: var(--text);
  min-height: 100%;
}

body {
  position: relative;
  overflow-x: hidden;
}

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

code {
  font-family: "SFMono-Regular", Consolas, Monaco, monospace;
  color: var(--accent-2);
}

.page {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0 80px;
  position: relative;
  z-index: 2;
}

.hero {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
}

.avatar {
  width: 72px;
  height: 72px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  font-size: 28px;
  font-weight: 800;
  color: white;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 12px 30px rgba(103, 232, 249, 0.18);
  flex-shrink: 0;
}

.hero-text h1 {
  margin: 6px 0 8px;
  font-size: clamp(32px, 6vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.eyebrow {
  margin: 0;
  color: var(--accent-2);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 24px;
}

.intro {
  padding: 22px 22px;
  margin-bottom: 34px;
}

.intro p {
  margin: 0;
  color: #d8def8;
  line-height: 1.9;
  font-size: 15px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 16px;
}

.section-header h2 {
  margin: 0;
  font-size: 22px;
}

.section-header p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.section-header-small {
  margin-top: 34px;
}

.nav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}

.nav-card {
  display: block;
  padding: 20px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(18, 25, 49, 0.9), rgba(12, 18, 36, 0.92));
  border: 1px solid rgba(124, 156, 255, 0.14);
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.nav-card:hover {
  transform: translateY(-4px);
  border-color: rgba(103, 232, 249, 0.34);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
}

.nav-card-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}

.nav-card-desc {
  color: var(--muted);
  line-height: 1.7;
  min-height: 52px;
  font-size: 14px;
  margin-bottom: 14px;
}

.nav-card-link {
  color: var(--accent-2);
  font-size: 13px;
  word-break: break-all;
}

.tip-card {
  padding: 20px 22px;
}

.tip-card ol {
  margin: 0;
  padding-left: 20px;
  color: #d8def8;
  line-height: 1.9;
}

.footer {
  margin-top: 42px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

.bg-glow {
  position: fixed;
  border-radius: 999px;
  filter: blur(90px);
  opacity: 0.18;
  z-index: 0;
  pointer-events: none;
}

.bg-glow-1 {
  top: 40px;
  left: -40px;
  width: 240px;
  height: 240px;
  background: #67e8f9;
}

.bg-glow-2 {
  right: -20px;
  top: 180px;
  width: 280px;
  height: 280px;
  background: #7c9cff;
}

.update-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(4, 8, 18, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.update-modal.hidden {
  display: none;
}

.update-modal-content {
  width: min(100%, 440px);
  padding: 28px 24px;
  border-radius: 24px;
  position: relative;
  z-index: 1;
  text-align: center;
  animation: updateModalIn 0.22s ease;
}

.update-badge {
  margin: 0 0 10px;
  color: var(--accent-2);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
}

.update-modal-content h2 {
  margin: 0 0 12px;
  font-size: 28px;
  line-height: 1.2;
  text-align: center;
}

.update-modal-text {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
  text-align: center;
}

.update-actions {
  margin-top: 22px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.update-btn {
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 10px 18px;
  min-width: 120px;
  font: inherit;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.update-btn:hover {
  transform: translateY(-1px);
}

.update-btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #08111f;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(103, 232, 249, 0.22);
}

.update-btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--card-border);
  color: var(--text);
}

@keyframes updateModalIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 720px) {
  .page {
    width: min(100% - 20px, 1100px);
    padding-top: 34px;
    padding-bottom: 56px;
  }

  .hero {
    align-items: flex-start;
    gap: 16px;
  }

  .avatar {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    font-size: 24px;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-card-desc {
    min-height: auto;
  }

  .avatar-image {
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.12);
  }

  .update-modal-content {
    padding: 20px;
    border-radius: 20px;
  }

  .update-modal-content h2 {
    font-size: 24px;
  }

  .update-actions {
    justify-content: center;
  }

  .update-btn {
    width: 100%;
  }
}
