:root {
  --green-900: #17402f;
  --green-700: #226249;
  --green-600: #2f7d5c;
  --green-500: #3d9470;
  --green-200: #cfe8dd;
  --green-100: #e9f5ef;

  --ink: #17251f;
  --muted: #5d6f68;
  --line: #e1ece6;
  --bg: #f4f8f6;
  --card: #ffffff;

  --radius: 24px;
  --shadow-sm: 0 1px 2px rgba(23, 37, 31, 0.04), 0 10px 30px rgba(23, 37, 31, 0.05);
  --shadow-md: 0 4px 10px rgba(23, 37, 31, 0.05), 0 24px 60px rgba(23, 37, 31, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  position: relative;
  margin: 0;
  color: var(--ink);
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 10% 6%, rgba(61, 148, 112, 0.1), transparent 40%),
    radial-gradient(circle at 92% 84%, rgba(169, 220, 197, 0.18), transparent 44%),
    linear-gradient(rgba(47, 125, 92, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47, 125, 92, 0.03) 1px, transparent 1px);
  background-size: auto, auto, 64px 64px, 64px 64px;
  background-attachment: fixed;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

/* ---------- 顶部 ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 84px 0 72px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(720px 380px at 78% 18%, rgba(61, 148, 112, 0.16), rgba(61, 148, 112, 0) 70%),
    radial-gradient(620px 340px at 8% 88%, rgba(169, 220, 197, 0.3), rgba(169, 220, 197, 0) 70%),
    linear-gradient(180deg, #fbfefc, var(--bg));
}

/* 装饰：右侧大圆环 */
.hero::before {
  content: "";
  position: absolute;
  right: -150px;
  top: 50%;
  width: 460px;
  height: 460px;
  transform: translateY(-50%);
  border: 1px solid rgba(61, 148, 112, 0.16);
  border-radius: 50%;
  box-shadow: inset 0 0 0 40px rgba(61, 148, 112, 0.025);
  pointer-events: none;
}

/* 装饰：底部超大淡字水印 */
.hero::after {
  content: "PORTFOLIO";
  position: absolute;
  left: 50%;
  bottom: -0.34em;
  transform: translateX(-50%);
  font-size: clamp(72px, 15vw, 190px);
  font-weight: 800;
  letter-spacing: 0.08em;
  white-space: nowrap;
  color: rgba(47, 125, 92, 0.05);
  pointer-events: none;
  user-select: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 64px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--green-600);
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--green-500);
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(46px, 6.4vw, 76px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: 0.01em;
  color: var(--green-900);
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero h1 {
    background: linear-gradient(115deg, var(--green-900) 8%, var(--green-600) 55%, var(--green-700) 92%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}

.tagline {
  max-width: 30em;
  margin: 0;
  font-size: 17px;
  color: var(--muted);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.hero-tags span {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  border: 1px solid var(--green-200);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--green-700);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-tags span::before {
  content: "";
  width: 5px;
  height: 5px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--green-500);
}

.hero-tags span:hover {
  background: #fff;
  transform: translateY(-1px);
}

.hero-avatar {
  position: relative;
}

.hero-avatar::before {
  content: "";
  position: absolute;
  inset: -14px;
  border-radius: 34px;
  background: linear-gradient(140deg, rgba(61, 148, 112, 0.22), rgba(169, 220, 197, 0.35));
  filter: blur(6px);
}

.avatar {
  position: relative;
  display: block;
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-md);
  background: var(--green-100);
}

/* ---------- 内容 ---------- */

main {
  padding: 28px 0 20px;
}

.card {
  position: relative;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 46px 52px;
  margin: 24px 0;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

/* 装饰：卡片右上角光斑 */
.card::before {
  content: "";
  position: absolute;
  top: -70px;
  right: -70px;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 32%, rgba(61, 148, 112, 0.1), transparent 66%);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--green-200);
}

.card:hover::before {
  transform: scale(1.12);
}

.card > * {
  position: relative;
  z-index: 1;
}

.split {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

.split-head h2,
.section-head h2 {
  margin: 10px 0 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--green-900);
}

.idx {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--green-500);
}

.idx::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green-500);
  box-shadow: 0 0 0 4px rgba(61, 148, 112, 0.12);
}

.split-body p {
  margin: 0 0 12px;
  font-size: 16px;
}

.split-body p:last-child {
  margin-bottom: 0;
}

.section-head {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-bottom: 28px;
}

.section-head h2 {
  margin: 0;
}

/* ---------- 作品 ---------- */

.works {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.works li {
  position: relative;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: start;
  column-gap: 12px;
  row-gap: 4px;
  padding: 24px 30px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fbfdfc;
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease,
    background 0.28s ease;
}

/* 装饰：hover 时左侧渐变竖条 */
.works li::after {
  content: "";
  position: absolute;
  left: -1px;
  top: 22px;
  bottom: 22px;
  width: 3px;
  border-radius: 0 99px 99px 0;
  background: linear-gradient(180deg, var(--green-500), var(--green-200));
  opacity: 0;
  transform: scaleY(0.4);
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.works li:hover {
  transform: translateX(4px);
  border-color: var(--green-200);
  background: #ffffff;
  box-shadow: 0 14px 36px rgba(23, 37, 31, 0.07);
}

.works li:hover::after {
  opacity: 1;
  transform: scaleY(1);
}

.work-no {
  grid-row: 1 / span 2;
  padding-top: 3px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--green-500);
}

.works strong {
  display: block;
  font-size: 17px;
  font-weight: 700;
  color: var(--green-900);
  letter-spacing: 0.01em;
}

.work-desc {
  display: block;
  margin-top: 2px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

/* ---------- 联系 ---------- */

.mail {
  display: inline-flex;
  align-items: center;
  margin-top: 6px;
  padding: 12px 24px;
  border-radius: 999px;
  background: var(--green-100);
  border: 1px solid transparent;
  color: var(--green-700);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.mail:hover {
  background: var(--green-200);
  border-color: var(--green-200);
  transform: translateY(-1px);
}

/* ---------- 页脚 ---------- */

footer {
  padding: 40px 0 64px;
  margin-top: 16px;
  border-top: 1px solid var(--line);
}

footer::before {
  content: "◆";
  display: block;
  margin-bottom: 16px;
  text-align: center;
  font-size: 10px;
  color: var(--green-200);
  letter-spacing: 0;
}

footer p {
  margin: 0;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.02em;
}

/* ---------- 动效 ---------- */

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero-inner {
  animation: fadeUp 0.7s cubic-bezier(0.2, 0.7, 0.3, 1) both;
}

.card:nth-of-type(1) {
  animation: fadeUp 0.7s cubic-bezier(0.2, 0.7, 0.3, 1) 0.08s both;
}

.card:nth-of-type(2) {
  animation: fadeUp 0.7s cubic-bezier(0.2, 0.7, 0.3, 1) 0.16s both;
}

.card:nth-of-type(3) {
  animation: fadeUp 0.7s cubic-bezier(0.2, 0.7, 0.3, 1) 0.24s both;
}

.card:nth-of-type(4) {
  animation: fadeUp 0.7s cubic-bezier(0.2, 0.7, 0.3, 1) 0.32s both;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- 平板 ---------- */

@media (max-width: 980px) {
  .hero {
    padding: 68px 0 56px;
  }

  .hero::before {
    right: -220px;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }

  .hero-avatar {
    max-width: 320px;
  }

  .avatar {
    height: 260px;
  }

  .split {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .card {
    padding: 34px 28px;
  }
}

/* ---------- 手机 ---------- */

@media (max-width: 600px) {
  .wrap {
    width: calc(100% - 32px);
  }

  .hero {
    padding: 52px 0 44px;
  }

  .hero h1 {
    font-size: clamp(38px, 11vw, 50px);
  }

  .hero::after {
    font-size: clamp(56px, 18vw, 80px);
  }

  .tagline {
    font-size: 15px;
  }

  .card {
    padding: 26px 20px;
    margin: 16px 0;
    border-radius: 18px;
  }

  .split-head h2,
  .section-head h2 {
    font-size: 19px;
  }

  .works li {
    grid-template-columns: 44px minmax(0, 1fr);
    padding: 22px 20px;
  }

  footer {
    padding: 30px 0 48px;
  }
}

/* ---------- 装饰增强 ---------- */

/* 顶部渐变细条 */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 50;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--green-500) 30%, var(--green-200) 70%, transparent);
}

/* 背景加斜纹 */
body {
  background-image:
    repeating-linear-gradient(45deg, rgba(47, 125, 92, 0.018) 0 1px, transparent 1px 14px),
    radial-gradient(circle at 10% 6%, rgba(61, 148, 112, 0.1), transparent 40%),
    radial-gradient(circle at 92% 84%, rgba(169, 220, 197, 0.18), transparent 44%),
    linear-gradient(rgba(47, 125, 92, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47, 125, 92, 0.03) 1px, transparent 1px);
  background-size: auto, auto, auto, 64px 64px, 64px 64px;
  background-attachment: fixed;
}

/* 顶部点阵装饰 */
.hero-inner::before {
  content: "";
  position: absolute;
  left: -22px;
  top: -48px;
  width: 130px;
  height: 130px;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(61, 148, 112, 0.28) 1.5px, transparent 1.5px);
  background-size: 14px 14px;
  opacity: 0.55;
}

/* 简介上方装饰线 */
.tagline::before {
  content: "";
  display: block;
  width: 52px;
  height: 2px;
  margin-bottom: 16px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--green-500), rgba(61, 148, 112, 0));
}

/* 头像内虚框 */
.hero-avatar::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.55);
  border-radius: 18px;
  pointer-events: none;
}

/* 卡片左下角 L 形角标 */
.card::after {
  content: "";
  position: absolute;
  left: -1px;
  bottom: -1px;
  width: 66px;
  height: 66px;
  border-left: 1px solid var(--green-200);
  border-bottom: 1px solid var(--green-200);
  border-radius: 0 0 0 var(--radius);
  opacity: 0.55;
  pointer-events: none;
}

/* 小节标题下短线 */
.split-head h2::after {
  content: "";
  display: block;
  width: 34px;
  height: 2px;
  margin-top: 12px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--green-500), rgba(61, 148, 112, 0));
}

/* 作品标题右侧延伸线 */
.section-head::after {
  content: "";
  flex: 1;
  height: 1px;
  margin-left: 6px;
  background: linear-gradient(90deg, var(--line), rgba(225, 236, 230, 0));
}

/* 作品编号 hover */
.work-no {
  transition: color 0.28s ease, transform 0.28s ease;
}

.works li:hover .work-no {
  color: var(--green-600);
  transform: translateX(2px) scale(1.12);
}

/* 作品 hover 右侧箭头 */
.works li::before {
  content: "→";
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translate(-4px, -50%);
  font-size: 18px;
  color: var(--green-200);
  opacity: 0;
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.works li:hover::before {
  opacity: 1;
  transform: translate(0, -50%);
}

/* 邮箱箭头 */
.mail::after {
  content: "→";
  margin-left: 10px;
  transition: transform 0.2s ease;
}

.mail:hover::after {
  transform: translateX(4px);
}

/* 页脚底线 */
footer::after {
  content: "";
  display: block;
  width: 64px;
  height: 1px;
  margin: 18px auto 0;
  background: linear-gradient(90deg, rgba(207, 232, 221, 0), var(--green-200), rgba(207, 232, 221, 0));
}
/* ---------- 更新提示 ---------- */

.update-note {
  width: min(1180px, calc(100% - 48px));
  margin: 28px auto 0;
  text-align: center;
  font-size: 14px;
  color: var(--green-700);
  letter-spacing: 0.02em;
}

@media (max-width: 600px) {
  .update-note {
    width: calc(100% - 32px);
    font-size: 13px;
  }
}
