:root {
  --paper: #f4f1ea;
  --ink: #171614;
  --muted: #76716a;
  --line: rgba(23, 22, 20, 0.14);
  --panel: #fffaf1;
  --green: #1d5d48;
  --rose: #d56b63;
  --gold: #ddb15b;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, Arial, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 18px clamp(20px, 4vw, 56px);
  background: rgba(244, 241, 234, 0.82);
  border-bottom: 1px solid rgba(23, 22, 20, 0.08);
  backdrop-filter: blur(18px);
}

.brand,
.nav-links,
.intro-strip,
.availability,
.site-footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #fff;
  background: var(--ink);
  border-radius: 50%;
  font-size: 13px;
}

.nav-links {
  gap: 8px;
  padding: 5px;
  background: rgba(255, 250, 241, 0.72);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.nav-links a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.nav-links a:hover {
  color: var(--ink);
  background: #fff;
}

.section {
  width: min(100%, 1320px);
  margin: 0 auto;
  padding: clamp(42px, 7vw, 96px) clamp(20px, 4vw, 56px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  align-items: end;
  gap: 44px;
  min-height: calc(100vh - 76px);
  padding-top: clamp(72px, 9vw, 116px);
}

.eyebrow {
  margin: 0 0 22px;
  color: #1d5d48;
  font-size: 40px;
  font-weight: 800;
  /* text-transform: uppercase; */
}

.hero h1 {
  max-width: 980px;
  margin: 0;
  font-size: clamp(54px, 9.4vw, 136px);
  line-height: 0.92;
  letter-spacing: 0;
}

.hero-meta {
  display: grid;
  gap: 28px;
  padding-bottom: 100px;
}

.hero-meta p {
  margin: 0;
  color: #171614;
  font-size: clamp(20px, 2vw, 30px);
  line-height: 2;
}

.pill-link,
.email-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: fit-content;
  min-height: 54px;
  padding: 0 22px;
  color: #fff;
  background: var(--ink);
  border: 0;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
}

.intro-strip {
  justify-content: space-between;
  gap: 24px;
  padding-top: 28px;
  padding-bottom: 28px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.intro-strip p {
  margin: 0;
  color: rgb(71, 67, 67);
}

.availability {
  flex: 0 0 auto;
  gap: 10px;
  font-weight: 700;
}

.status-dot {
  width: 9px;
  height: 9px;
  background: #25a86a;
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(37, 168, 106, 0.15);
}

.section-heading {
  /* display: flex;  */
  justify-content: space-between;
  margin-bottom: 28px;
  padding-top: 8px;
  color: var(--muted);
  /* border-top: 1px solid var(--line); */
  font-size: 14px;
  font-weight: 800;
}

/* ① 第一个 section-heading（在作品集部分）—— 保留 flex */
#work .section-heading {
  display: flex;
  border-top: 1px solid var(--line);
  /* 覆盖为 flex */
}

/* ② 第二个 section-heading（在经历部分）—— 去掉 flex */
#about .section-heading {
  display: block;
  /* 覆盖为 block，让标题回到正常流 */
}

.section-heading span {
  color: black;
}

.work-section {
  padding-bottom: 40px;
}

.project {
  display: grid;
  gap: 18px;
}

.project-large {
  grid-template-columns: minmax(0, 1.55fr) minmax(260px, 0.45fr);
  align-items: end;
  gap: clamp(24px, 4vw, 56px);
  margin-bottom: 36px;
}

.project-visual {
  display: grid;
  min-height: 460px;
  overflow: hidden;
  place-items: center;
  border: 1px solid rgba(23, 22, 20, 0.1);
  border-radius: 8px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.project-visual:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 44px rgba(23, 22, 20, 0.12);
}

.rush {
  background:
    radial-gradient(circle at 20% 20%, rgba(221, 177, 91, 0.55), transparent 28%),
    linear-gradient(135deg, #a9c7b2, #efe0bb 54%, #d58f77);
}

.ember {
  background:
    radial-gradient(circle at 78% 18%, rgba(255, 255, 255, 0.58), transparent 24%),
    linear-gradient(135deg, #e37f65, #f1c47c);
}

.atlas {
  background:
    radial-gradient(circle at 30% 70%, rgba(255, 255, 255, 0.52), transparent 28%),
    linear-gradient(135deg, #274e5c, #6aa180 55%, #ead587);
}

.browser-frame {
  width: min(82%, 760px);
  background: #fffaf4;
  border: 1px solid rgba(23, 22, 20, 0.16);
  border-radius: 8px;
  box-shadow: 0 28px 70px rgba(23, 22, 20, 0.22);
}

.browser-bar {
  display: flex;
  gap: 7px;
  height: 36px;
  align-items: center;
  padding: 0 14px;
  border-bottom: 1px solid rgba(23, 22, 20, 0.1);
}

.browser-bar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #d0c7b9;
}

.dashboard-preview {
  display: grid;
  grid-template-columns: 70px 1fr 190px;
  gap: 18px;
  min-height: 310px;
  padding: 22px;
}

.side-rail,
.chart-card,
.metric-stack,
.phone-mock,
.ai-panel {
  background: rgba(23, 22, 20, 0.05);
  border: 1px solid rgba(23, 22, 20, 0.08);
}

.side-rail {
  border-radius: 8px;
}

.chart-card {
  position: relative;
  min-height: 245px;
  border-radius: 8px;
}

.chart-line {
  position: absolute;
  inset: 34px 28px 96px;
  border-bottom: 4px solid var(--green);
  border-left: 4px solid var(--green);
  transform: skewY(-10deg);
}

.bars {
  position: absolute;
  inset: auto 28px 28px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  align-items: end;
  height: 90px;
}

.bars i {
  display: block;
  height: 42%;
  background: var(--gold);
  border-radius: 8px 8px 3px 3px;
}

.bars i:nth-child(2) {
  height: 72%;
}

.bars i:nth-child(3) {
  height: 54%;
}

.bars i:nth-child(4) {
  height: 88%;
}

.bars i:nth-child(5) {
  height: 66%;
}

.metric-stack {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  padding: 20px;
  border-radius: 8px;
}

.metric-stack b {
  font-size: 32px;
}

.metric-stack span {
  color: var(--muted);
  font-size: 13px;
}

.project-info h2 {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1;
}

.project-info p {
  max-width: 520px;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.45;
}

.project-info span {
  color: var(--green);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px 24px;
}

.project-grid .project-visual {
  min-height: 420px;
}

.phone-mock {
  width: 210px;
  height: 380px;
  padding: 28px 18px;
  background: #fffaf4;
  border-radius: 34px;
  box-shadow: 0 26px 62px rgba(23, 22, 20, 0.24);
}

.phone-top {
  width: 72px;
  height: 8px;
  margin: 0 auto 34px;
  background: rgba(23, 22, 20, 0.18);
  border-radius: 999px;
}

.phone-card {
  height: 142px;
  margin-bottom: 22px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--green), #93b486);
}

.phone-row {
  height: 18px;
  margin-bottom: 13px;
  background: rgba(23, 22, 20, 0.1);
  border-radius: 999px;
}

.phone-row.short {
  width: 68%;
}

.ai-panel {
  display: grid;
  place-items: center;
  width: min(72%, 420px);
  min-height: 300px;
  padding: 30px;
  background: rgba(255, 250, 244, 0.88);
  border-radius: 8px;
  box-shadow: 0 26px 62px rgba(23, 22, 20, 0.2);
}

.prompt-line {
  width: 100%;
  height: 18px;
  background: rgba(23, 22, 20, 0.12);
  border-radius: 999px;
}

.prompt-line.small {
  width: 60%;
}

.orbital {
  position: relative;
  width: 150px;
  height: 150px;
  margin: 24px 0;
  border: 1px solid rgba(23, 22, 20, 0.18);
  border-radius: 50%;
}

.orbital span {
  position: absolute;
  width: 38px;
  height: 38px;
  background: var(--rose);
  border-radius: 50%;
}

.orbital span:nth-child(1) {
  top: 18px;
  left: 54px;
}

.orbital span:nth-child(2) {
  right: 8px;
  bottom: 36px;
  background: var(--gold);
}

.orbital span:nth-child(3) {
  left: 12px;
  bottom: 30px;
  background: var(--green);
}

.services {
  padding-top: 52px;
}

.service-list {
  display: grid;
  /* border-top: 1px solid var(--line); */
}

/* .service-list>div {
  display: grid;
  grid-template-columns: 0.45fr 0.55fr;
  gap: 24px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
} */

/* .service-list h3 {
  margin: 0;
  font-size: clamp(28px, 4vw, 52px);
  line-height: 1;
} */

/* .service-list p {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.45;
} */

.contact {
  min-height: 70vh;
  display: grid;
  align-content: center;
  justify-items: start;
  border-top: 1px solid var(--line);
}

.contact h2 {
  /* max-width: 980px; */
  margin: 0 0 34px;
  font-size: clamp(48px, 9vw, 50px);
  line-height: 0.96;
  letter-spacing: 0;
}

.email-button small {
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.site-footer {
  justify-content: space-between;
  gap: 20px;
  padding: 24px clamp(20px, 4vw, 56px);
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 14px;
}

@media (max-width: 860px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
  }

  .hero,
  .project-large,
  .project-grid,
  .service-list>div {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 100vh;
  }

  .intro-strip,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .project-visual,
  .project-grid .project-visual {
    min-height: 340px;
  }

  .dashboard-preview {
    grid-template-columns: 1fr;
  }

  .side-rail,
  .metric-stack {
    display: none;
  }
}

@media (max-width: 520px) {
  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .nav-links a {
    padding: 9px 10px;
    font-size: 13px;
  }

  .hero h1 {
    font-size: 48px;
  }

  .browser-frame {
    width: 90%;
  }

  .phone-mock {
    transform: scale(0.86);
  }

  .email-button {
    width: 100%;
  }
}

/* --- 让 p5.js 动画固定在背景 --- */
canvas {
  position: fixed !important;
  /* 固定在视口 */
  top: 0;
  left: 0;
  width: 100vw !important;
  /* 强制占满宽 */
  height: 100vh !important;
  /* 强制占满高 */
  z-index: -1;
  /* 沉到最底层 */
  pointer-events: none;
  /* 让鼠标点击穿透，不影响你点击网页上的链接 */
  display: block;
}

/* === 强制把 hero 内容提上去 === */


.hero-section {
  height: auto !important;
  /* 【关键】强制去掉固定高度 */
  min-height: 0 !important;
  /* 去掉最小高度 */
  padding-top: 0 !important;
  /* 去掉顶部间距 */
  padding-bottom: 0 !important;
  /* 去掉底部间距 */
  position: relative;
}

/* 把个人档案 + 照片 + 文字 整体往上挪 */
.hero-copy {
  position: relative;
  top: -120px !important;
}

.portrait {
  width: 100%;
  /* 宽度适应容器 */
  max-width: 480px;
  /* 限制最大宽度（防止图片撑爆） */
  height: auto;
  /* 保持比例 */
  display: block;
  /* 独占一行 */
  margin: 100px 100px 0 100px;
  /* 水平居中 + 底部留点空隙 */
  border-radius: 10px;
  /* 加个圆角，更好看 */
}


.project-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* 关键：让视频铺满且不拉伸 */
  border-radius: 12px;
  /* 和卡片圆角保持一致 */
  display: block;
}

.home-page .project-video {
  cursor: pointer;
}

/* 默认隐藏索引页视频按钮，hover 时再显示播放控件 */
.home-page .project-video:hover {
  opacity: 0.99;
}

/* 如果你希望鼠标悬停时有缩放效果，可以去掉 video 的 pointer-events */
.project-video {
  /* pointer-events: none;  */
}

/* 整体布局：左侧标题 + 右侧列表 */
#about.section.services {
  display: flex;
  gap: 60px;
  padding: 80px 40px;
  align-items: flex-start;
  border-top: 1px solid var(--line);
}

/* 左侧：标题区域 */
#about .section-heading {
  flex: 1;
  max-width: 300px;
}

#about .section-heading h2 {
  font-size: 48px;
  /* 字体大小按你喜欢调整 */
  font-weight: 700;
  margin: 0;
  line-height: 2;
  color: black;
}

#about .section-number {
  display: block;
  margin-top: 10px;
  font-size: 24px;
  font-weight: 600;
  color: #666;
}

/* 右侧：列表区域 */
#about .service-list {
  flex: 2;
  /* border-top: 1px solid rgba(0, 0, 0, 0.1);
  padding-top: 20px; */
}

/* 单个列表项 */
.service-item {
  padding: 32px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  /* 分隔线 */
}

.service-item:last-child {
  border-bottom: none;
}

.service-item h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 12px 0;
  display: flex;
  /* 开启 Flex 布局 */
  justify-content: space-between;
  /* 标题靠左，日期靠右 */
  align-items: center;
  /* 垂直居中对齐 */
  margin-bottom: 8px;
}

.service-item p {
  font-size: 18px;
  line-height: 1.6;
  color: #272525;
  margin: 0;
}

.service-item a {
  font-size: 20px;
  line-height: 1.6;
  color: #fc0000;
  margin: 0;
}

/* 响应式：手机屏幕变成一列 */
@media (max-width: 768px) {
  #about.section.services {
    flex-direction: column;
    padding: 40px 20px;
  }

  #about .section-heading {
    max-width: 100%;
  }
}

/* 专门给 See All 按钮用的样式 */
.see-all-wrapper {
  display: flex;
  /* 保持 flex 布局 */
  justify-content: flex-end;
  /* 让内部内容靠右 */
  width: 1208px;
  /* 占满整行宽度 */
  margin-left: auto;
  /* 【关键】自动靠右 */
}

.your-parent-container-class {
  display: flex;
  justify-content: space-between;
  /* 让左右两边的东西各自靠边 */
}

.see-all-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #000000;
  font-weight: 500;
  font-size: 16px;
  transition: opacity 0.2s;
}

.see-all-link:hover {
  opacity: 0.6;
}

.see-all-text {
  font-family: sans-serif;
  font-size: 16px;
  color: #000000;
  transition: color 0.3s ease;
  /* 加个过渡，变色更丝滑 */
}


/* 外框 */
.arrow-box {
  position: relative;
  /* 让子元素绝对定位 */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid #ddd;
  /* 原本的灰色边框 */
  border-radius: 4px;
  overflow: hidden;
  /* 【关键】防止黑色溢出去 */
  background-color: transparent;
  /* 清除任何背景色 */
  transition: border-color 0.3s ease;
}

/* 滑动黑色背景层（伪元素） */
.arrow-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  /* 初始宽度为 0 */
  height: 100%;
  background-color: #000;
  /* 纯黑色 */
  transition: width 0.3s ease;
  /* 滑动动画 */
  z-index: 0;
  /* 放在最底层 */
}

/* 让 SVG 箭头浮在黑色背景之上 */
.arrow-box svg {
  position: relative;
  z-index: 1;
  /* 箭头在黑色层上面 */
  transition: stroke 0.3s ease;
}

/* === 悬停效果 === */

/* 1. 悬停时，方框边框变黑 */
.see-all-link:hover .arrow-box {
  border-color: #000;
  /* 边框变黑 */
  background-size: 100% 100%;
  /* 黑色填充背景 */
  color: #ffffff !important;
  /* 【关键】强制所有文字和跟随 color 的元素变白 */
}

/* 2. 悬停时，黑色背景从左铺满到右 */
.see-all-link:hover .arrow-box::before {
  width: 100%;
}

/* 3. 悬停时，箭头变白 */
.see-all-link:hover .arrow-box svg {
  stroke: #ffffff;
}

/* 确保方框内的文字位于黑色背景之上并继承父级颜色 */
.arrow-box .see-all-text {
  position: relative;
  z-index: 1;
  color: inherit;
  transition: color 0.3s ease;
}

/* 当悬停时，方框内的文字变白（适用于嵌入在 .arrow-box 中的文本） */
.see-all-link:hover .arrow-box .see-all-text {
  color: #ffffff !important;
}

.service-item .see-all-link:hover .see-all-text {
  color: #ffffff !important;
  /* 强制文字变白（保留兼容规则） */
  transition: color 0.3s ease;
}

/* =====================================
   ⭐ 针对顶部“更多作品”按钮的专属设置（恢复原来的大小）
   ===================================== */
.see-all-wrapper .arrow-box {
  width: 170px;
  /* 确保方框保持原本的宽度 */
  height: 44px;
  /* 确保方框保持原本的高度 */
  padding: 0;
  /* 清除之前可能继承的 padding */
}

.see-all-wrapper .arrow-box svg {
  width: 24px;
  /* 恢复箭头的大小 */
  height: 24px;
  /* 恢复箭头的大小 */
}

/* =====================================
   ⭐ 针对底部“关于我”按钮的专属设置（保持方框样式）
   ===================================== */
.service-item .arrow-box {
  width: auto;
  /* 宽度自动适应文字长度 */
  height: 44px;
  /* 保持统一高度 */
  padding: 0 16px;
  /* 让方框包住文字和箭头 */
}

.service-item .arrow-box svg {
  width: 20px;
  /* 让底部箭头稍微小一点，与文字更协调 */
  height: 20px;
}

/* 关于我样式 */
.service-item .see-all-link {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: #1a1a1a;
}

.service-item .arrow-box {
  width: 300px;
  height: 50px;
}

/* === 新增：视频首次出现的闪进动画 === */
@keyframes videoFlashIn {
  0% {
    opacity: 0;
    transform: scale(0.9) rotate(-2deg);
    /* 初始：缩小、微斜、透明 */
  }

  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
    /* 结束：正常大小、清晰可见 */
  }
}

/* 视频初始状态：隐藏 */
.project-video {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.5s ease, transform 0.5s ease;
  /* 备用降级动画 */
}

/* 当 JS 给它加上 .visible 类时，播放闪进动画 */
.project-video.visible {
  animation: videoFlashIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  /* cubic-bezier 让动画有一点弹性效果，更生动 */
}

/* === 新增：服务/经历项逐个闪进效果 === */

/* 1. 初始状态：隐藏并稍微下移 */
.service-item {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  /* 平滑过渡 */
}

/* 2. 触发状态：完全显示并回到原位 */
.service-item.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 3. 可选：让每个项目之间有轻微的时间差，实现“逐个”出来的效果 */
.service-item:nth-child(1) {
  transition-delay: 0.0s;
}

.service-item:nth-child(2) {
  transition-delay: 0.1s;
}

.service-item:nth-child(3) {
  transition-delay: 0.2s;
}

.service-item:nth-child(4) {
  transition-delay: 0.3s;
}

/* 技能类别之间的间距 */
.skill-category {
  margin-bottom: 32px;
  /* 让每个类别之间空开一点 */
}

/* 类别标题（比如“数字体验”） */
.skill-category h3 {
  font-size: 17px;
  font-weight: 600;
  color: #888;
  /* 浅灰色，参考图1的效果 */
  margin-bottom: 12px;
  text-transform: capitalize;
}

/* 标签容器 - 让标签换行排列 */
.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  /* 标签之间的间距 */
}

/* 单个标签 */
.skill-tags span {
  display: inline-block;
  padding: 6px 14px;
  /* 标签内边距 */
  border: 1px solid #ddd;
  /* 细灰边框 */
  border-radius: 4px;
  /* 小圆角 */
  font-size: 14px;
  color: #333;
  /* 深色字体 */
  background-color: #fff;
  /* 白色背景 */
}

/* --- 技能标签超链接样式 --- */
.skill-tags a {
  display: inline-block;
  padding: 6px 14px;
  /* 标签内边距 */
  border: 1px solid #ddd;
  /* 细灰边框 */
  border-radius: 4px;
  /* 小圆角 */
  font-size: 14px;
  color: #333;
  /* 深色字体 */
  background-color: #fff;
  /* 白色背景 */
  text-decoration: none;
  /* 【关键】去掉下划线 */
  transition: all 0.2s ease;
  /* 让悬停效果更丝滑 */
}

/* --- 鼠标悬停时的效果 --- */
.skill-tags a:hover {
  color: #000;
  /* 鼠标放上去变深色 */
}

/* ===== 统一手机端布局 ===== */
@media (max-width: 860px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 20px;
    gap: 16px;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
  }

  .hero {
    grid-template-columns: 1fr;
    align-items: start;
    min-height: auto;
    padding-top: 48px;
    padding-bottom: 32px;
  }

  .hero-copy {
    position: static !important;
    top: 0 !important;
    margin: 0 auto 24px;
    width: 100%;
  }

  .eyebrow {
    font-size: clamp(28px, 6vw, 38px);
    padding-bottom: 16px;
  }

  .hero-meta {
    width: 100% !important;
    max-width: 100%;
    padding-bottom: 40px;
  }

  .hero-meta p {
    font-size: clamp(18px, 3.2vw, 22px);
    line-height: 1.75;
  }

  .portrait {
    margin: 0 auto 28px;
    max-width: 100%;
    width: 100%;
  }

  .project-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .project-grid .project-visual {
    min-height: 300px;
  }

  .project-info h2 {
    font-size: clamp(24px, 5vw, 32px);
  }

  .project-info p {
    max-width: 100%;
    font-size: 16px;
  }

  #about.section.services {
    display: block;
    padding: 40px 20px;
    gap: 0;
  }

  #about .section-heading {
    max-width: 100%;
    margin-bottom: 24px;
  }

  .service-item {
    padding: 20px 0;
  }

  .see-all-wrapper {
    width: 100%;
    justify-content: center;
  }

  .see-all-wrapper .arrow-box {
    width: auto;
  }
}

@media (max-width: 520px) {
  .site-header {
    padding: 14px 16px;
  }

  .hero {
    padding-top: 32px;
  }

  .hero-meta {
    padding-bottom: 28px;
  }

  .nav-links a {
    padding: 8px 10px;
    font-size: 13px;
  }

  .project-info h2 {
    font-size: 22px;
  }

  .project-info p {
    font-size: 15px;
  }

  .see-all-wrapper {
    justify-content: flex-start;
  }
}

  background-color: #f5f5f5;
  /* 背景变浅灰色，增加交互感 */
  border-color: #999;
  /* 边框加深 */
  transform: scale(1.05);
  /* 微微放大，更有按钮感 */
  cursor: pointer;
  /* 鼠标变成小手 */
}

/* === 新增：技能与工具部分 下滑闪入效果 === */

/* 初始状态：隐藏并稍微下移 */
.skill-category {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* 触发状态：完全显示并回到原位 */
.skill-category.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 可选：让每个类别之间有轻微的时间差，实现“逐个”出来的效果 */
.skill-category:nth-child(1) {
  transition-delay: 0.0s;
}

.skill-category:nth-child(2) {
  transition-delay: 0.1s;
}

.skill-category:nth-child(3) {
  transition-delay: 0.2s;
}

.skill-category:nth-child(4) {
  transition-delay: 0.3s;
}

/* === 新增：更多作品按钮 下滑闪入效果 === */

/* 初始状态：隐藏并稍微下移 */
.see-all-wrapper {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* 触发状态：完全显示并回到原位 */
.see-all-wrapper.visible {
  opacity: 1;
  transform: translateY(0);
}

/* .section contact h2 {
    font-size: 20px;
    font-weight: 200;
    margin: 0 0 34px 0;
    line-height: 0.96;
    letter-spacing: 0;
    color: #1d5d48; 
} */