* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #07111f;
  --bg-soft: #0d1b2d;
  --panel: rgba(12, 31, 54, 0.78);
  --panel-light: rgba(20, 49, 82, 0.9);
  --blue: #27a7ff;
  --blue-deep: #1268d8;
  --cyan: #76e6ff;
  --text: #eef7ff;
  --muted: #a9bdd3;
  --line: rgba(118, 230, 255, 0.18);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  --radius: 8px;
}

body {
  min-height: 100vh;
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(39, 167, 255, 0.28), transparent 34%),
    linear-gradient(135deg, #06101d 0%, #081829 48%, #0b2138 100%);
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
}

.page {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

header {
  position: sticky;
  top: 0;
  z-index: 10;
  margin-bottom: 50px;
  backdrop-filter: blur(18px);
  background: rgba(7, 17, 31, 0.82);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--muted);
  font-size: 15px;
}

.nav-links a:hover {
  color: var(--cyan);
}

main {
  padding: 28px 0 36px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  align-items: center;
  gap: 56px;
  min-height: auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  color: var(--cyan);
  font-size: 18px;
  font-weight: 600;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--cyan);
}

h1 {
  max-width: none;
  font-size: clamp(42px, 5.1vw, 60px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
}

h1 span {
  color: var(--blue);
}

.intro {
  max-width: 620px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 18px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 132px;
  height: 46px;
  padding: 0 22px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.button.primary {
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  color: #fff;
  box-shadow: 0 14px 32px rgba(18, 104, 216, 0.35);
}

.button.secondary {
  border: 1px solid var(--line);
  color: var(--cyan);
  background: rgba(255, 255, 255, 0.03);
}

.button:hover {
  transform: translateY(-2px);
}

.profile-card {
  position: relative;
  overflow: hidden;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel-light), var(--panel));
  box-shadow: var(--shadow);
}

.avatar {
  display: grid;
  place-items: center;
  width: 128px;
  height: 128px;
  margin-bottom: 28px;
  border-radius: 50%;
  border: 1px solid rgba(118, 230, 255, 0.36);
  background:
    linear-gradient(135deg, rgba(39, 167, 255, 0.32), rgba(118, 230, 255, 0.08)),
    #10253d;
  color: #dff8ff;
  font-size: 42px;
  font-weight: 800;
}

.profile-card h2 {
  margin-bottom: 8px;
  font-size: 28px;
  letter-spacing: 0;
}

.role {
  color: var(--cyan);
  font-weight: 600;
}

.info-list {
  display: grid;
  gap: 14px;
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.info-item {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  font-size: 15px;
}

.info-item strong {
  color: var(--text);
  font-weight: 600;
  text-align: right;
}

.section {
  padding: 72px 0 0;
}

.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 28px;
}

.section-title h2 {
  font-size: 30px;
  letter-spacing: 0;
}

.section-title p {
  max-width: 520px;
  color: var(--muted);
  font-size: 15px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card {
  min-height: 180px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(12, 31, 54, 0.66);
}

.card .number {
  margin-bottom: 18px;
  color: var(--cyan);
  font-size: 14px;
  font-weight: 700;
}

.card h3 {
  margin-bottom: 10px;
  font-size: 20px;
}

.card p {
  color: var(--muted);
  font-size: 15px;
}

.error-page {
  min-height: calc(100vh - 292px);
  display: grid;
  align-items: center;
}

.error-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
  align-items: center;
  gap: 56px;
}

.error-content h1 {
  margin-top: 8px;
}

.error-code {
  color: var(--blue);
  font-size: clamp(84px, 13vw, 150px);
  line-height: 0.9;
  font-weight: 800;
}

.error-panel {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel-light), var(--panel));
  box-shadow: var(--shadow);
}

.error-ring {
  display: grid;
  place-items: center;
  width: min(100%, 300px);
  aspect-ratio: 1;
  margin: 0 auto 28px;
  border: 1px solid rgba(118, 230, 255, 0.32);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(39, 167, 255, 0.24), transparent 58%),
    linear-gradient(135deg, rgba(39, 167, 255, 0.18), rgba(118, 230, 255, 0.05));
}

.error-ring span {
  color: #dff8ff;
  font-size: clamp(48px, 8vw, 86px);
  font-weight: 800;
}

.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.skill {
  padding: 10px 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: #d9f6ff;
  font-size: 14px;
}

footer {
  margin-top: 72px;
  border-top: 1px solid var(--line);
  background: rgba(7, 17, 31, 0.56);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 94px;
  color: var(--muted);
  font-size: 14px;
}

.footer-links {
  display: flex;
  gap: 18px;
}

.footer-links a:hover {
  color: var(--cyan);
}

@media (max-width: 860px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
    padding: 18px 0;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
  }

  main {
    padding-top: 32px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 34px;
    min-height: auto;
  }

  .error-page {
    min-height: auto;
  }

  .error-hero {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .section-title {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .page {
    width: min(100% - 28px, 1120px);
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  h1 {
    font-size: 40px;
    white-space: normal;
  }

  .intro {
    font-size: 16px;
  }

  .profile-card,
  .card,
  .error-panel {
    padding: 22px;
  }

  .info-item,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .info-item strong {
    text-align: left;
  }
}

