:root {
  --pink:       #F4B8C1;
  --pink-light: #FDEAEE;
  --mint:       #B5E5D8;
  --mint-light: #E0F5EF;
  --lav:        #C8B8E8;
  --lav-light:  #EDE7F9;
  --peach:      #FFD0A8;
  --peach-light:#FFF3E6;
  --sky:        #A8D4F5;
  --sky-light:  #DCF0FF;
  --text:       #3D3450;
  --muted:      #8A7E9A;
  --border:     #EAE0F5;
  --bg:         #FFF8F4;
  --bg-alt:     #FBF5FF;
  --white:      #FFFFFF;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'PingFang SC', 'Hiragino Sans GB', 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
  color: var(--text);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.75;
}

/* ── Nav ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,248,244,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
}

.nav-inner {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 54px;
}

.nav-name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.04em;
}

.nav-links {
  display: flex;
  gap: 1.8rem;
  list-style: none;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--text); }

/* ── Layout ── */
.container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 2rem;
}

section { padding: 4rem 0; }
section:nth-child(even) { background: var(--bg-alt); }

.section-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 2rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--lav);
  display: inline-block;
}

/* ── Hero ── */
#about { padding-top: 5rem; padding-bottom: 4rem; }

.hero {
  display: flex;
  gap: 3rem;
  align-items: flex-start;
}

.hero-text { flex: 1; }

.hero-text h1 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 0.25rem;
  letter-spacing: 0.06em;
}

.hero-text .subtitle {
  font-size: 0.92rem;
  color: var(--lav);
  font-weight: 600;
  margin-bottom: 1rem;
  filter: brightness(0.8);
}

.hero-text p {
  color: var(--muted);
  margin-bottom: 0.85rem;
  max-width: 520px;
  font-size: 0.9rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}

.badge {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-pink   { background: var(--pink-light);  color: #B5596A; }
.badge-mint   { background: var(--mint-light);  color: #3A8A72; }
.badge-lav    { background: var(--lav-light);   color: #6A52A8; }
.badge-peach  { background: var(--peach-light); color: #A86820; }
.badge-sky    { background: var(--sky-light);   color: #2A72B8; }

.hero-links {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 1.4rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 1rem;
  border-radius: 6px;
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--lav);
  color: var(--white);
}
.btn-primary:hover { filter: brightness(0.92); transform: translateY(-1px); }

.btn-outline {
  border: 1px solid var(--border);
  color: var(--text);
  background: var(--white);
}
.btn-outline:hover { border-color: var(--lav); color: var(--text); background: var(--lav-light); }

.hero-avatar {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 3px solid var(--border);
  flex-shrink: 0;
  overflow: hidden;
  background: var(--lav-light);
  box-shadow: 0 4px 20px rgba(200,184,232,0.3);
}

.hero-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* ── Education ── */
.edu-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.4rem 1.6rem;
  background: var(--white);
  border-left: 3px solid var(--mint);
}

.edu-school {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}

.edu-meta {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0.2rem 0 1.1rem;
}

.edu-stats {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.1rem;
}

.stat-pill {
  padding: 0.25rem 0.9rem;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
}
.stat-pill.pink  { background: var(--pink-light);  color: #B5596A; }
.stat-pill.mint  { background: var(--mint-light);  color: #3A8A72; }
.stat-pill.lav   { background: var(--lav-light);   color: #6A52A8; }

.course-row {
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 2;
}

.course-tag {
  display: inline-block;
  background: var(--peach-light);
  color: var(--text);
  padding: 0.15rem 0.6rem;
  border-radius: 5px;
  font-size: 0.78rem;
  margin: 0.1rem 0.15rem;
}

.score { font-weight: 700; color: #A86820; }

/* ── Research ── */
.research-list { display: flex; flex-direction: column; gap: 1.2rem; }

.research-item {
  padding: 1.3rem 1.6rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--white);
  border-left: 3px solid var(--lav);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.research-item:nth-child(2) { border-left-color: var(--pink); }
.research-item:nth-child(3) { border-left-color: var(--peach); }

.research-item:hover {
  border-color: var(--lav);
  box-shadow: 0 2px 14px rgba(200,184,232,0.15);
}

.research-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.4rem;
}

.research-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
}

.role-tag {
  font-size: 0.72rem;
  padding: 0.15rem 0.55rem;
  border-radius: 4px;
  font-weight: 600;
  background: var(--lav-light);
  color: #6A52A8;
  white-space: nowrap;
  flex-shrink: 0;
}

.research-date {
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 0.9rem;
}

.research-body dt {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text);
  margin-top: 0.6rem;
}

.research-body dd {
  font-size: 0.84rem;
  color: var(--muted);
  margin-left: 0;
  line-height: 1.65;
}

.result-box {
  margin-top: 0.75rem;
  padding: 0.6rem 1rem;
  background: var(--mint-light);
  border-radius: 6px;
  font-size: 0.83rem;
  color: var(--text);
  border-left: 2px solid var(--mint);
}

/* ── Competitions ── */
.comp-list { display: flex; flex-direction: column; gap: 1rem; }

.comp-item {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  padding: 1.2rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--white);
}

.comp-award {
  font-size: 0.72rem;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 0.1rem;
}
.comp-award.peach { background: var(--peach-light); color: #A86820; }
.comp-award.lav   { background: var(--lav-light);   color: #6A52A8; }

.comp-info h4 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.2rem;
}

.comp-date {
  font-size: 0.76rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.comp-info p {
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ── Awards ── */
.awards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.8rem;
}

.award-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  font-size: 0.85rem;
  transition: border-color 0.2s;
}

.award-item:hover { border-color: var(--pink); }

.award-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dot-pink   { background: var(--pink); }
.dot-lav    { background: var(--lav); }
.dot-mint   { background: var(--mint); }
.dot-peach  { background: var(--peach); }

.award-name { font-weight: 600; color: var(--text); }
.award-sub  { font-size: 0.75rem; color: var(--muted); }

/* ── Skills ── */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.skill-group {
  padding: 1rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
}

.skill-group h4 {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag {
  font-size: 0.73rem;
  padding: 0.18rem 0.55rem;
  border-radius: 4px;
  font-weight: 500;
}
.tag-pink   { background: var(--pink-light);  color: #B5596A; }
.tag-mint   { background: var(--mint-light);  color: #3A8A72; }
.tag-lav    { background: var(--lav-light);   color: #6A52A8; }
.tag-peach  { background: var(--peach-light); color: #A86820; }
.tag-sky    { background: var(--sky-light);   color: #2A72B8; }

.hobbies {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.hobby {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 0.83rem;
  color: var(--muted);
  background: var(--white);
}

/* ── Footer ── */
footer {
  background: var(--text);
  color: rgba(255,255,255,0.55);
  text-align: center;
  padding: 1.8rem 2rem;
  font-size: 0.8rem;
}

footer a { color: rgba(255,255,255,0.75); text-decoration: none; }
footer a:hover { color: #fff; }

/* ── Responsive ── */
@media (max-width: 640px) {
  .hero { flex-direction: column-reverse; gap: 1.5rem; }
  .hero-avatar { width: 100px; height: 100px; align-self: center; }
  .skills-grid { grid-template-columns: 1fr; }
  .nav-links { gap: 1rem; }
  .research-header { flex-direction: column; gap: 0.4rem; }
}
