:root {
  --bg: #0a0e1a;
  --bg-2: #10162a;
  --card: rgba(20, 28, 52, 0.72);
  --card-strong: rgba(28, 38, 70, 0.88);
  --line: rgba(140, 155, 255, 0.18);
  --text: #eef2ff;
  --muted: #9aa6c4;
  --soft: #cdd5f1;
  --purple: #8d7cff;
  --pink: #ff65c8;
  --cyan: #54d6ff;
  --green: #65e6a4;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(circle at 18% 18%, rgba(141, 124, 255, 0.18), transparent 26%),
    radial-gradient(circle at 74% 16%, rgba(255, 101, 200, 0.13), transparent 24%),
    radial-gradient(circle at 52% 72%, rgba(84, 214, 255, 0.12), transparent 26%),
    linear-gradient(180deg, #070b15 0%, #0a0e1a 44%, #101426 100%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  opacity: 0.55;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.55) 1px, transparent 1.4px),
    radial-gradient(circle, rgba(141, 124, 255, 0.65) 1px, transparent 1.4px);
  background-position: 0 0, 38px 72px;
  background-size: 150px 150px, 220px 220px;
}

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

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.glow {
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 999px;
  filter: blur(80px);
  opacity: 0.22;
}

.glow-a {
  top: 12%;
  left: 14%;
  background: var(--purple);
}

.glow-b {
  top: 18%;
  right: 12%;
  background: var(--pink);
}

.glow-c {
  bottom: 5%;
  left: 46%;
  background: var(--cyan);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  height: 60px;
  padding: 0 max(24px, calc((100vw - 980px) / 2));
  border-bottom: 1px solid rgba(140, 155, 255, 0.12);
  background: rgba(7, 11, 21, 0.72);
  backdrop-filter: blur(18px);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #c7c4ff;
  font-size: 22px;
  font-weight: 900;
}

.logo span {
  color: var(--purple);
  text-shadow: 0 0 18px rgba(141, 124, 255, 0.8);
}

.logo-right {
  justify-self: end;
}

nav {
  display: flex;
  justify-content: center;
  gap: 34px;
  color: var(--soft);
  font-size: 14px;
}

nav a {
  transition: color 0.2s ease;
}

nav a:hover {
  color: #fff;
}

main {
  width: min(1060px, calc(100% - 36px));
  margin: 0 auto;
}

.hero {
  min-height: calc(100vh - 60px);
  display: grid;
  place-items: center;
  padding: 80px 0 60px;
  text-align: center;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 18px;
  margin-bottom: 28px;
  border: 1px solid rgba(141, 124, 255, 0.4);
  border-radius: 999px;
  background: rgba(141, 124, 255, 0.16);
  color: #d7d2ff;
  font-size: 14px;
  box-shadow: 0 0 30px rgba(141, 124, 255, 0.16);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 100%;
  margin-bottom: 18px;
  font-size: clamp(48px, 7vw, 78px);
  line-height: 1;
  letter-spacing: 0;
  background: linear-gradient(90deg, #7aa7ff 0%, #9f79ff 42%, #ff6ad5 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 18px 60px rgba(141, 124, 255, 0.18);
}

.hero-subtitle {
  max-width: 760px;
  margin: 0 auto 40px;
  color: var(--muted);
  font-size: 20px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px;
  width: min(430px, 100%);
  margin: 0 auto 38px;
}

.stats div {
  display: grid;
  gap: 6px;
}

.stats strong {
  color: #e8eaff;
  font-size: 30px;
  line-height: 1;
}

.stats span {
  color: #7f8bad;
  font-size: 14px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.primary-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  min-height: 58px;
  padding: 0 24px;
  border-radius: 14px;
  font-weight: 800;
}

.primary-btn {
  background: linear-gradient(135deg, #76a7ff, #8d62ff 55%, #b94dff);
  box-shadow: 0 18px 45px rgba(106, 102, 255, 0.36);
}

.ghost-btn {
  border: 1px solid rgba(141, 124, 255, 0.32);
  background: rgba(10, 14, 26, 0.52);
  color: #dce2ff;
}

.scroll-mark {
  margin-top: 70px;
  color: #6f7896;
  font-size: 24px;
}

.section {
  padding: 82px 0;
}

.section-heading {
  margin-bottom: 34px;
  text-align: center;
}

.section-heading p {
  margin-bottom: 10px;
  color: #bfc8ff;
  font-weight: 800;
}

h2 {
  max-width: 820px;
  margin: 0 auto;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.14;
  letter-spacing: 0;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.wide-card {
  grid-column: span 3;
}

.feature-card,
.skill-card,
.command-panel,
.likes-grid article {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(180deg, var(--card-strong), var(--card));
  box-shadow: var(--shadow);
}

.feature-card {
  padding: 26px;
}

.feature-card h3,
.skill-card h3,
.likes-grid h3 {
  margin-bottom: 12px;
  font-size: 21px;
}

.feature-card p,
.skill-card p,
.likes-grid p {
  margin-bottom: 0;
  color: var(--muted);
}

.skill-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.skill-card {
  min-height: 210px;
  padding: 24px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.skill-card:hover {
  transform: translateY(-4px);
  border-color: rgba(141, 124, 255, 0.55);
}

.skill-card span {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  border-radius: 16px;
  background: rgba(141, 124, 255, 0.16);
  font-size: 24px;
}

.command-panel {
  width: min(820px, 100%);
  margin: 0 auto;
  overflow: hidden;
}

.command-row {
  display: grid;
  grid-template-columns: minmax(180px, 260px) 1fr;
  gap: 22px;
  align-items: center;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}

.command-row:last-child {
  border-bottom: 0;
}

code {
  color: #b9b0ff;
  font-family: "Cascadia Mono", "Consolas", monospace;
  font-weight: 800;
}

.command-row span {
  color: var(--muted);
}

.likes-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.likes-grid article {
  padding: 24px;
}

.site-footer {
  width: min(1060px, calc(100% - 36px));
  margin: 0 auto;
  padding: 54px 0 46px;
  border-top: 1px solid var(--line);
  text-align: center;
  color: #7f8bad;
}

.site-footer p {
  margin-bottom: 6px;
}

@media (max-width: 820px) {
  .site-header {
    grid-template-columns: 1fr auto;
    padding: 0 18px;
  }

  .logo-right {
    display: none;
  }

  nav {
    gap: 16px;
    font-size: 13px;
  }

  main {
    width: min(100% - 28px, 1060px);
  }

  .hero {
    min-height: auto;
    padding: 88px 0 70px;
  }

  .hero-subtitle {
    font-size: 17px;
  }

  .stats {
    gap: 18px;
  }

  .about-grid,
  .skill-grid,
  .likes-grid {
    grid-template-columns: 1fr;
  }

  .wide-card {
    grid-column: auto;
  }

  .command-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

@media (max-width: 520px) {
  .site-header {
    height: 56px;
  }

  nav {
    gap: 10px;
  }

  .logo {
    font-size: 20px;
  }

  h1 {
    font-size: 54px;
  }

  .stats strong {
    font-size: 24px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .primary-btn,
  .ghost-btn {
    width: 100%;
  }
}
