:root {
  --bg: #0f172a;
  --bg-soft: #111827;
  --text: #e5e7eb;
  --text-soft: #94a3b8;
  --primary: #38bdf8;
  --card: #1f2937;
  --shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

body.light {
  --bg: #f8fafc;
  --bg-soft: #e2e8f0;
  --text: #0f172a;
  --text-soft: #334155;
  --primary: #0284c7;
  --card: #ffffff;
  --shadow: 0 8px 24px rgba(2, 132, 199, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}

.container {
  width: min(1080px, 92vw);
  margin: 0 auto;
}

.header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(8px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--text-soft) 20%, transparent);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}

.logo {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
  padding: 0;
  margin: 0;
}

.nav-links a {
  text-decoration: none;
  color: var(--text);
  transition: opacity 0.2s ease;
}

.nav-links a:hover {
  opacity: 0.75;
}

.theme-btn {
  border: none;
  border-radius: 999px;
  width: 38px;
  height: 38px;
  cursor: pointer;
  background: var(--card);
  color: var(--text);
  box-shadow: var(--shadow);
}

.hero {
  padding: 88px 0 70px;
  background: radial-gradient(circle at 20% 20%, rgba(56, 189, 248, 0.2), transparent 45%);
}

.profile-card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 20px;
  background: var(--card);
  border-radius: 16px;
  padding: 22px;
  box-shadow: var(--shadow);
}

.tag {
  color: var(--primary);
  font-weight: 600;
}

h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin: 8px 0 6px;
}

.subtitle {
  color: var(--text-soft);
  margin: 0 0 14px;
}

.profile-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.profile-list li {
  margin: 6px 0;
}

.btn {
  display: inline-block;
  margin-top: 16px;
  padding: 10px 18px;
  border-radius: 10px;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, #0284c7, #0ea5e9);
  box-shadow: var(--shadow);
}

.profile-image-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-image {
  width: 100%;
  max-width: 340px;
  border-radius: 12px;
  border: 2px solid color-mix(in srgb, var(--primary) 40%, transparent);
  object-fit: cover;
}

.section {
  padding: 64px 0;
}

.section-alt {
  background: var(--bg-soft);
}

h2 {
  font-size: 1.7rem;
  margin-top: 0;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.card {
  background: var(--card);
  padding: 18px;
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.card h3 {
  margin-top: 0;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer {
  padding: 26px 0;
  text-align: center;
  color: var(--text-soft);
}

@media (max-width: 860px) {
  .nav-links {
    display: none;
  }

  .profile-card {
    grid-template-columns: 1fr;
  }

  .profile-image {
    max-width: 100%;
  }

  .grid {
    grid-template-columns: 1fr;
  }
}
