:root {
  /* 全站无衬线；中文优先系统黑体，避免出现宋体/衬线回退 */
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei",
    "Noto Sans SC", "Source Han Sans SC", "WenQuanYi Micro Hei", sans-serif;

  /* 淡蓝白阴影（统一色调、整体偏浅） */
  --shadow-xs: 0 1px 5px rgba(185, 210, 245, 0.1), 0 1px 2px rgba(230, 240, 255, 0.55);
  --shadow-sm: 0 4px 16px rgba(180, 206, 240, 0.09), 0 2px 8px rgba(225, 238, 255, 0.5);
  --shadow-md: 0 7px 22px rgba(175, 202, 238, 0.085), 0 3px 10px rgba(224, 236, 255, 0.48);
  --shadow-lg: 0 11px 28px rgba(172, 200, 238, 0.075), 0 4px 12px rgba(222, 234, 255, 0.42);
  --shadow-xl: 0 14px 36px rgba(168, 198, 236, 0.07), 0 6px 16px rgba(220, 235, 255, 0.38);
  --shadow-card: 0 3px 12px rgba(182, 210, 245, 0.08), 0 2px 6px rgba(228, 238, 255, 0.45);
  --shadow-card-hover: 0 12px 28px rgba(175, 205, 240, 0.09), 0 5px 14px rgba(226, 240, 255, 0.42);
}

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

html {
  font-family: var(--font-sans);
}

body {
  background-color: #f9fafb;
  color: #111827;
  line-height: 1.6;
  font-family: var(--font-sans);
}

button,
input,
textarea,
select {
  font: inherit;
}

/* 无边框浮动导航（左右各留页面宽度的 10%） */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: clamp(1rem, 3.5vw, 1.75rem) 10%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: transparent;
  pointer-events: none;
}

.navbar > * {
  pointer-events: auto;
}

/* 左侧个人信息：黑色胶囊，宽度随内容收紧 */
.nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.38rem 2rem 0.38rem 2rem;
  color: #fff;
  border-radius: 999px;
  text-decoration: none;
  background: #000;
  border: none;
  box-shadow: var(--shadow-md);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.nav-pill:hover {
  transform: translateY(-1px);
  background: #1a1a1a;
  box-shadow: var(--shadow-lg);
}

.nav-pill__avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.nav-pill__text {
  font-size: clamp(0.75rem, 2.4vw, 0.875rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.35;
  max-width: min(72vw, 20rem);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #fff;
}

.nav-right {
  position: relative;
}

/* 右侧白色圆形菜单 */
.menu-btn {
  width: 50px;
  height: 50px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.menu-btn:hover {
  box-shadow: var(--shadow-md);
}

.menu-btn:active {
  transform: scale(0.97);
}

/* 三条横线统一：固定宽高 + 不缩放，避免视觉粗细不一 */
.bar {
  display: block;
  width: 18px;
  height: 2px;
  min-height: 2px;
  flex-shrink: 0;
  background-color: #111;
  border: none;
  border-radius: 1px;
  transform-origin: center;
  transition: transform 0.3s ease, opacity 0.25s ease;
}

.menu-btn.active .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.menu-btn.active .bar:nth-child(2) {
  opacity: 0;
}
.menu-btn.active .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.menu-dropdown {
  position: absolute;
  top: calc(100% + 0.65rem);
  right: 0;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow-xl);
  padding: 0.5rem 0;
  min-width: 156px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
}

.menu-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.menu-dropdown a {
  display: block;
  padding: 0.5rem 1rem;
  text-decoration: none;
  color: #111;
  transition: background 0.2s;
}
.menu-dropdown a:hover {
  background: #f3f4f6;
}

/* 首页英雄区（为顶部浮动导航留出空间） */
.hero {
  margin-top: clamp(5.5rem, 18vw, 7rem);
  padding: 0 2rem;
  text-align: center;
}
.hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.tagline {
  font-size: 1.125rem;
  color: #6b7280;
  margin-bottom: 1.5rem;
}
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: white;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  box-shadow: var(--shadow-xs);
}
.green-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
}

/* 作品区 */
.projects {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}
.projects h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
  text-align: center;
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.project-card {
  background: #F5F5F5;
  border-radius: 55px;
  box-shadow: var(--shadow-card);
  transition: border-radius 0.35s ease;
  border: 8px solid white;
  position: relative;
}

.project-card__thumb {
  overflow: hidden;
  height: 200px;
  border-radius: 47px;
  transition: transform 0.33s ease, border-radius 0.35s ease, box-shadow 0.33s ease;
  position: relative;
  z-index: 1;
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.02), 0 2px 5px rgba(0, 0, 0, 0.1);
}
.project-card:hover {
  box-shadow: var(--shadow-card-hover);
}
/* 图片区域单独裁切 */
.project-card__thumb {
  overflow: hidden;
  height: 200px;
  border-radius: 47px;
  transition: transform 0.5s ease, border-radius 0.35s ease;
  position: relative; /* 建立定位上下文 */
}

.project-card__thumb::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 47px;
  box-shadow: inset 0 0 5px 4px rgba(255, 255, 255, 0.6), inset 0 -5px 5px 4px rgba(54, 54, 54, 0.3);
  pointer-events: none; /* 确保阴影不会影响点击事件 */
}

.project-card__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-card:hover .project-card__thumb {
  transform: translateY(-30px) scale(1.1);
}
.project-info {
  padding: 1.125rem 2rem 1.5rem;
}
.project-info h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.project-info p {
  color: #6b7280;
  font-size: 0.9rem;
}

/* 页脚 */
.footer {
  text-align: center;
  padding: 2rem;
  color: #6b7280;
  font-size: 0.875rem;
}

/* 响应式 */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }
  .projects-grid {
    grid-template-columns: 1fr;
  }
}