:root {
  --bg: #0a0e17;
  --bg-card: rgba(20, 27, 45, 0.7);
  --border: rgba(120, 140, 200, 0.15);
  --text: #e6ecff;
  --text-muted: #93a0c4;
  --accent-1: #22d3ee;
  --accent-2: #a78bfa;
  --accent-3: #f472b6;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(120, 140, 200, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 140, 200, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 75%);
}

.gradient-text {
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2), var(--accent-3));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: gradient-shift 6s ease infinite;
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.hero-inner {
  text-align: center;
  max-width: 720px;
  animation: fade-up 0.8s ease both;
}

.avatar-wrap {
  width: 120px;
  height: 120px;
  margin: 0 auto 28px;
  border-radius: 50%;
  padding: 3px;
  background: conic-gradient(
    from 0deg, var(--accent-1), var(--accent-2), var(--accent-3), var(--accent-1)
  );
  animation: spin-border 8s linear infinite;
}

.avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #121a2b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 2px;
}

@keyframes spin-border {
  to { transform: rotate(360deg); }
}

.hero-title {
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: 1px;
}

.hero-subtitle {
  color: var(--text-muted);
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  margin-bottom: 24px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 36px;
}

.tag {
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--accent-1);
  border: 1px solid rgba(34, 211, 238, 0.35);
  background: rgba(34, 211, 238, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tag:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(34, 211, 238, 0.2);
}

.btn-primary {
  display: inline-block;
  padding: 12px 32px;
  border-radius: 999px;
  text-decoration: none;
  color: #0a0e17;
  font-weight: 600;
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
  box-shadow: 0 4px 24px rgba(167, 139, 250, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(167, 139, 250, 0.5);
  filter: brightness(1.1);
}

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

/* ---------- Sections ---------- */
.section {
  max-width: 820px;
  margin: 0 auto;
  padding: 64px 20px;
}

.section-title {
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  margin-bottom: 28px;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  backdrop-filter: blur(10px);
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease, border-color 0.3s ease;
}

.card.visible {
  opacity: 1;
  transform: translateY(0);
}

.card:hover {
  border-color: rgba(34, 211, 238, 0.4);
}

.about-text {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* ---------- Contact ---------- */
.contact-card {
  text-align: center;
}

.contact-list {
  list-style: none;
  text-align: left;
  margin-bottom: 28px;
}

.contact-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 4px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.contact-list li:last-child {
  border-bottom: none;
}

.contact-label {
  color: var(--accent-2);
  font-weight: 600;
  min-width: 70px;
}

.contact-value {
  color: var(--text);
  text-decoration: none;
  word-break: break-all;
  transition: color 0.2s ease;
}

.contact-value:hover {
  color: var(--accent-1);
}

/* ---------- Footer ---------- */
.footer {
  text-align: center;
  padding: 32px 20px 40px;
  color: var(--text-muted);
  font-size: 0.9rem;
  border-top: 1px solid var(--border);
}

@media (max-width: 480px) {
  .card {
    padding: 24px;
  }
  .contact-list li {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}
