@charset "UTF-8";

:root {
  --bg: #f3f0e7;
  --paper: #faf8f1;
  --paper-strong: #ffffff;
  --ink: #1d1d1b;
  --muted: #6f6c64;
  --line: rgba(29, 29, 27, 0.16);
  --orange: #f05a2a;
  --orange-dark: #c83d16;
  --blue: #3153c8;
  --yellow: #f3c94d;
  --shadow: 0 24px 70px rgba(64, 54, 38, 0.1);
  --radius-lg: 34px;
  --radius-md: 24px;
  --max-width: 1240px;
  --header-height: 92px;
}

[data-theme="dark"] {
  --bg: #181816;
  --paper: #22221f;
  --paper-strong: #292925;
  --ink: #f3f0e7;
  --muted: #aaa69c;
  --line: rgba(243, 240, 231, 0.15);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.25);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--bg);
  font-family: "Microsoft YaHei UI", "PingFang SC", "Noto Sans CJK SC", Arial, sans-serif;
  transition: color 0.35s ease, background-color 0.35s ease;
}

body.menu-open {
  overflow: hidden;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
  font: inherit;
}

::selection {
  color: #fff;
  background: var(--orange);
}

.noise {
  position: fixed;
  z-index: 30;
  inset: 0;
  opacity: 0.035;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.88' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.9'/%3E%3C/svg%3E");
}

.page-glow {
  position: fixed;
  z-index: -1;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.16;
  pointer-events: none;
}

.page-glow-one {
  top: -150px;
  right: -140px;
  background: var(--orange);
}

.page-glow-two {
  top: 48%;
  left: -240px;
  background: var(--blue);
}

.section-shell,
.site-header,
.site-footer {
  width: min(calc(100% - 56px), var(--max-width));
  margin-inline: auto;
}

/* 顶部导航在滚动时保持轻盈，不遮挡主体内容 */
.site-header {
  position: relative;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: var(--header-height);
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: #fff;
  background: var(--orange);
  border-radius: 50% 50% 48% 42%;
  font-size: 17px;
  box-shadow: 4px 4px 0 var(--ink);
  transform: rotate(-5deg);
}

.brand-name {
  font-size: 19px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 38px;
}

.desktop-nav a {
  position: relative;
  padding-block: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.desktop-nav a::after {
  position: absolute;
  bottom: 1px;
  left: 0;
  width: 100%;
  height: 2px;
  content: "";
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s ease;
}

.desktop-nav a:hover::after,
.desktop-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 10px;
}

.icon-button,
.menu-button {
  display: grid;
  width: 43px;
  height: 43px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: color-mix(in srgb, var(--paper) 78%, transparent);
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.icon-button:hover,
.menu-button:hover {
  border-color: var(--ink);
  transform: rotate(7deg);
}

.icon-button svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.8;
}

.moon-icon,
[data-theme="dark"] .sun-icon {
  display: none;
}

[data-theme="dark"] .moon-icon {
  display: block;
}

.menu-button {
  display: none;
  align-content: center;
  gap: 5px;
}

.menu-button span {
  display: block;
  width: 17px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.25s ease;
}

.menu-button[aria-expanded="true"] span:first-child {
  transform: translateY(3.25px) rotate(45deg);
}

.menu-button[aria-expanded="true"] span:last-child {
  transform: translateY(-3.25px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  z-index: 40;
  inset: 0;
  display: none;
  flex-direction: column;
  justify-content: center;
  padding: 100px 28px 40px;
  visibility: hidden;
  background: var(--bg);
  opacity: 0;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.mobile-menu.is-open {
  visibility: visible;
  opacity: 1;
}

.mobile-menu nav {
  display: grid;
}

.mobile-menu a {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  font-size: clamp(30px, 9vw, 50px);
  font-weight: 900;
  letter-spacing: -0.06em;
}

.mobile-menu a span {
  color: var(--orange);
  font-size: 12px;
  letter-spacing: 0;
}

.mobile-menu > p {
  margin-top: 30px;
  color: var(--muted);
  font-size: 13px;
}

/* 首屏使用左右错位构图，让昵称成为视觉焦点 */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(380px, 0.92fr);
  min-height: calc(100svh - var(--header-height));
  align-items: center;
  gap: 70px;
  padding: 52px 0 105px;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 100px;
  color: var(--muted);
  background: color-mix(in srgb, var(--paper) 74%, transparent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #55ad67;
  box-shadow: 0 0 0 5px rgba(85, 173, 103, 0.13);
  animation: breathe 2s ease-in-out infinite;
}

@keyframes breathe {
  50% { box-shadow: 0 0 0 8px rgba(85, 173, 103, 0.04); }
}

.hero h1 {
  margin: 0;
  font-size: clamp(66px, 8.3vw, 125px);
  font-weight: 950;
  line-height: 0.95;
  letter-spacing: -0.095em;
}

.name-line {
  position: relative;
  display: block;
  width: max-content;
  color: var(--orange);
  font-family: KaiTi, STKaiti, "Microsoft YaHei UI", sans-serif;
  font-weight: 900;
  transform: translateX(-0.04em) rotate(-2deg);
}

.name-line::after {
  position: absolute;
  right: 0.08em;
  bottom: -0.08em;
  width: 78%;
  height: 13px;
  content: "";
  border-top: 4px solid currentColor;
  border-radius: 50%;
  transform: rotate(-1deg);
}

.hand-dot {
  position: absolute;
  top: -0.06em;
  right: -0.55em;
  color: var(--yellow);
  font-family: sans-serif;
  font-size: 0.26em;
  animation: spin 7s linear infinite;
}

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

.hero-intro {
  max-width: 590px;
  margin: 37px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-top: 38px;
}

.primary-button {
  display: inline-flex;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 0 25px;
  color: #fff;
  border-radius: 100px;
  background: var(--ink);
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 10px 25px rgba(29, 29, 27, 0.16);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

[data-theme="dark"] .primary-button {
  color: #1d1d1b;
}

.primary-button:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 30px rgba(29, 29, 27, 0.22);
}

.primary-button svg {
  width: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.7;
  transition: transform 0.2s ease;
}

.primary-button:hover svg {
  transform: translateX(4px);
}

.text-link {
  position: relative;
  font-size: 14px;
  font-weight: 800;
}

.text-link::after {
  position: absolute;
  bottom: -7px;
  left: 0;
  width: 100%;
  height: 1px;
  content: "";
  background: currentColor;
  transition: width 0.2s ease;
}

.text-link:hover::after {
  width: 38%;
}

.hero-visual {
  position: relative;
  display: grid;
  min-height: 540px;
  place-items: center;
}

.visual-card {
  position: relative;
  z-index: 2;
  width: min(390px, 82%);
  aspect-ratio: 0.78;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 48% 48% 30px 30px;
  background: var(--yellow);
  box-shadow: 15px 17px 0 var(--ink);
  transform: rotate(3deg);
}

.visual-card::before {
  position: absolute;
  inset: 0;
  content: "";
  background-image: radial-gradient(rgba(29, 29, 27, 0.13) 1.1px, transparent 1.1px);
  background-size: 15px 15px;
}

.visual-label {
  position: absolute;
  z-index: 3;
  top: 25px;
  left: 31px;
  padding: 8px 13px;
  color: #fff;
  border: 1.5px solid #1d1d1b;
  border-radius: 5px;
  background: var(--blue);
  font-family: Georgia, serif;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.11em;
  box-shadow: 3px 3px 0 #1d1d1b;
  transform: rotate(-6deg);
}

.portrait {
  position: absolute;
  right: 0;
  bottom: -5%;
  left: 0;
  height: 88%;
}

.portrait-face {
  position: absolute;
  z-index: 2;
  top: 20%;
  left: 50%;
  width: 46%;
  height: 38%;
  border: 2px solid #1d1d1b;
  border-radius: 48% 48% 43% 43%;
  background: #f4b793;
  transform: translateX(-50%);
}

.portrait-hair {
  position: absolute;
  z-index: 3;
  top: 11%;
  left: 50%;
  width: 55%;
  height: 30%;
  border: 2px solid #1d1d1b;
  border-radius: 56% 48% 30% 28%;
  background: #29221f;
  transform: translateX(-50%) rotate(-3deg);
}

.portrait-hair::after {
  position: absolute;
  right: 6%;
  bottom: -49%;
  width: 34%;
  height: 92%;
  content: "";
  border-right: 2px solid #1d1d1b;
  border-radius: 50%;
  background: #29221f;
  transform: rotate(-8deg);
}

.eye {
  position: absolute;
  top: 50%;
  width: 8px;
  height: 11px;
  border-radius: 50%;
  background: #1d1d1b;
}

.eye-left { left: 27%; }
.eye-right { right: 27%; }

.smile {
  position: absolute;
  bottom: 23%;
  left: 50%;
  width: 28px;
  height: 13px;
  border-bottom: 2px solid #1d1d1b;
  border-radius: 50%;
  transform: translateX(-50%);
}

.portrait-body {
  position: absolute;
  bottom: -7%;
  left: 50%;
  width: 79%;
  height: 53%;
  border: 2px solid #1d1d1b;
  border-radius: 48% 48% 10% 10%;
  background: var(--orange);
  transform: translateX(-50%);
}

.portrait-body::after {
  position: absolute;
  top: 18%;
  left: 50%;
  content: "跟";
  color: #fff;
  font-size: 52px;
  font-weight: 900;
  transform: translateX(-50%) rotate(-6deg);
}

.visual-signature {
  position: absolute;
  z-index: 5;
  right: 21px;
  bottom: 22px;
  color: #fff;
  font-family: KaiTi, STKaiti, serif;
  font-size: 23px;
  font-weight: 900;
  text-shadow: 1px 1px #1d1d1b;
  transform: rotate(-8deg);
}

.orbit {
  position: absolute;
  border: 1px dashed color-mix(in srgb, var(--ink) 35%, transparent);
  border-radius: 50%;
}

.orbit-one {
  width: 510px;
  height: 510px;
}

.orbit-two {
  width: 610px;
  height: 390px;
  transform: rotate(-25deg);
}

.floating-note {
  position: absolute;
  z-index: 5;
  padding: 12px 16px;
  border: 1.5px solid #1d1d1b;
  color: #1d1d1b;
  background: var(--paper-strong);
  border-radius: 3px;
  font-family: KaiTi, STKaiti, serif;
  font-size: 16px;
  font-weight: 900;
  box-shadow: 5px 5px 0 #1d1d1b;
}

[data-theme="dark"] .floating-note {
  color: #1d1d1b;
  background: #faf8f1;
}

.note-one {
  top: 22%;
  right: -1%;
  transform: rotate(9deg);
}

.note-two {
  bottom: 16%;
  left: -3%;
  background: #a9d9dd;
  transform: rotate(-8deg);
}

.floating-star {
  position: absolute;
  top: 10%;
  left: 5%;
  color: var(--orange);
  font-size: 42px;
  animation: spin 8s linear infinite reverse;
}

.scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  writing-mode: vertical-rl;
}

.scroll-line {
  position: relative;
  width: 1px;
  height: 55px;
  overflow: hidden;
  background: var(--line);
}

.scroll-line::after {
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 70%;
  content: "";
  background: var(--ink);
  animation: scrollDown 2.2s ease-in-out infinite;
}

@keyframes scrollDown {
  to { top: 130%; }
}

.marquee {
  overflow: hidden;
  color: #fff;
  border-block: 2px solid var(--ink);
  background: var(--orange);
  transform: rotate(-1.4deg) scale(1.02);
}

.marquee-track {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 30px;
  padding: 14px 0;
  font-family: KaiTi, STKaiti, serif;
  font-size: 20px;
  font-weight: 900;
  animation: marqueeMove 26s linear infinite;
}

.marquee-track i {
  color: var(--yellow);
  font-style: normal;
}

@keyframes marqueeMove {
  to { transform: translateX(-50%); }
}

.section-index,
.card-kicker {
  display: block;
  color: var(--orange);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.about,
.projects,
.notes {
  padding-block: 150px;
}

.section-heading {
  display: grid;
  grid-template-columns: 0.65fr 1.35fr;
  align-items: start;
  margin-bottom: 66px;
}

.section-heading h2,
.projects-heading h2,
.contact h2 {
  margin: 13px 0 0;
  font-size: clamp(48px, 6.8vw, 94px);
  line-height: 1.04;
  letter-spacing: -0.075em;
}

.section-heading h2 {
  grid-column: 2;
}

.section-heading .section-index {
  padding-top: 28px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 18px;
}

.card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.about-main {
  display: flex;
  min-height: 400px;
  flex-direction: column;
  justify-content: space-between;
  padding: 52px;
}

.about-main::before {
  position: absolute;
  right: -90px;
  bottom: -130px;
  width: 330px;
  height: 330px;
  content: "";
  border: 60px solid var(--orange);
  border-radius: 50%;
  opacity: 0.12;
}

.about-copy {
  position: relative;
  z-index: 1;
  max-width: 650px;
}

.about-copy p {
  margin: 30px 0 0;
  font-size: clamp(19px, 2vw, 28px);
  font-weight: 800;
  line-height: 1.65;
  letter-spacing: -0.03em;
}

.about-copy p + p {
  margin-top: 10px;
  color: var(--muted);
  font-size: clamp(16px, 1.5vw, 20px);
  font-weight: 500;
}

.doodle-arrow {
  position: absolute;
  right: 145px;
  bottom: 42px;
  color: var(--orange);
  font-family: KaiTi, STKaiti, serif;
  font-size: 75px;
  transform: rotate(18deg);
}

.mini-stamp {
  display: grid;
  width: 92px;
  height: 92px;
  place-items: center;
  align-self: flex-end;
  border: 2px solid var(--ink);
  border-radius: 50%;
  font-family: Georgia, serif;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.5;
  text-align: center;
  letter-spacing: 0.08em;
  transform: rotate(9deg);
}

.stat-card {
  display: flex;
  min-height: 400px;
  flex-direction: column;
  justify-content: center;
  padding: 38px;
  color: #1d1d1b;
  border-color: #1d1d1b;
  background: var(--yellow);
}

.stat-card .card-kicker {
  position: absolute;
  top: 34px;
  left: 38px;
  color: rgba(29, 29, 27, 0.62);
}

.big-emoji {
  margin-bottom: 20px;
  font-family: Georgia, serif;
  font-size: 87px;
  line-height: 1;
}

.stat-card strong {
  font-size: 28px;
  letter-spacing: -0.05em;
}

.stat-card p {
  margin: 12px 0 0;
  color: rgba(29, 29, 27, 0.64);
  font-size: 14px;
  line-height: 1.7;
}

.list-card {
  grid-column: 1 / -1;
  padding: 44px 52px;
}

.list-card ul {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 35px 0 0;
  padding: 0;
  list-style: none;
}

.list-card li {
  display: grid;
  gap: 20px;
  min-height: 120px;
  padding: 10px 26px;
  align-content: center;
  border-left: 1px solid var(--line);
  font-size: 17px;
  font-weight: 800;
}

.list-card li:first-child {
  padding-left: 0;
  border-left: 0;
}

.list-card li span {
  color: var(--orange);
  font-family: Georgia, serif;
  font-size: 12px;
}

.projects {
  width: 100%;
  max-width: none;
  padding-inline: max(28px, calc((100% - var(--max-width)) / 2));
  color: #f5f2e9;
  background: #1d1d1b;
}

.projects-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 65px;
}

.projects-heading h2 {
  font-size: clamp(48px, 6vw, 82px);
}

.projects-heading p {
  margin: 0 0 5px;
  color: #a7a49d;
  font-size: 14px;
  line-height: 1.8;
}

.project-list {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 22px;
}

.project-card {
  position: relative;
  display: flex;
  min-height: 610px;
  flex-direction: column;
  overflow: hidden;
  color: #1d1d1b;
  border-radius: var(--radius-lg);
  transition: transform 0.35s cubic-bezier(.2,.7,.2,1), box-shadow 0.35s ease;
}

.project-card:hover {
  z-index: 2;
  transform: translateY(-10px) rotate(-0.7deg);
  box-shadow: 0 28px 50px rgba(0, 0, 0, 0.3);
}

.project-card:nth-child(1),
.project-card:nth-child(2) {
  grid-column: span 6;
}

.project-card:nth-child(3) {
  grid-column: 3 / span 8;
  min-height: 570px;
}

.project-orange { background: var(--orange); }
.project-blue { color: #fff; background: var(--blue); }
.project-cream { background: #e5dfd0; }

.project-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 25px 28px;
  border-bottom: 1px solid currentColor;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  opacity: 0.78;
}

.project-art {
  position: relative;
  display: grid;
  flex: 1;
  min-height: 390px;
  place-items: center;
  overflow: hidden;
}

.notebook {
  position: relative;
  z-index: 2;
  display: grid;
  width: 235px;
  height: 300px;
  place-items: center;
  color: #1d1d1b;
  border: 2px solid #1d1d1b;
  border-radius: 8px 22px 22px 8px;
  background: #f6e6bd;
  box-shadow: 13px 15px 0 rgba(29, 29, 27, 0.9);
  transform: rotate(-9deg);
  transition: transform 0.4s ease;
}

.project-card:hover .notebook {
  transform: rotate(-3deg) translateY(-4px);
}

.notebook::before {
  position: absolute;
  top: 0;
  left: 22px;
  width: 2px;
  height: 100%;
  content: "";
  background: #1d1d1b;
}

.notebook strong {
  font-family: Georgia, serif;
  font-size: 35px;
  line-height: 0.95;
  letter-spacing: -0.06em;
  text-align: center;
}

.notebook i {
  position: absolute;
  right: 22px;
  bottom: 25px;
  color: var(--orange);
  font-size: 33px;
  font-style: normal;
}

.notebook-ring {
  position: absolute;
  top: 15px;
  bottom: 15px;
  left: -9px;
  width: 18px;
  background: repeating-linear-gradient(to bottom, #1d1d1b 0 3px, transparent 3px 18px);
}

.art-shape {
  position: absolute;
  border: 2px solid #1d1d1b;
}

.art-shape-one {
  top: 38px;
  left: 40px;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--yellow);
}

.art-shape-two {
  right: 40px;
  bottom: 45px;
  width: 85px;
  height: 85px;
  background: #8ec9d0;
  transform: rotate(14deg);
}

.camera-art {
  background-image: radial-gradient(rgba(255, 255, 255, 0.14) 1.5px, transparent 1.5px);
  background-size: 18px 18px;
}

.camera {
  position: relative;
  z-index: 2;
  width: 290px;
  height: 195px;
  border: 3px solid #1d1d1b;
  border-radius: 24px;
  background: #f4c94d;
  box-shadow: 15px 15px 0 rgba(29, 29, 27, 0.9);
  transform: rotate(5deg);
  transition: transform 0.4s ease;
}

.project-card:hover .camera {
  transform: rotate(0deg) scale(1.03);
}

.camera::before {
  position: absolute;
  top: -34px;
  left: 38px;
  width: 75px;
  height: 34px;
  content: "";
  border: 3px solid #1d1d1b;
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
  background: var(--orange);
}

.camera-lens {
  position: absolute;
  top: 50%;
  left: 53%;
  display: grid;
  width: 120px;
  height: 120px;
  place-items: center;
  border: 3px solid #1d1d1b;
  border-radius: 50%;
  background: #eee9dd;
  transform: translate(-50%, -50%);
}

.camera-lens i {
  display: block;
  width: 74px;
  height: 74px;
  border: 12px solid #1d1d1b;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: inset 11px 11px 0 rgba(255, 255, 255, 0.2);
}

.camera-flash {
  position: absolute;
  top: 24px;
  left: 20px;
  width: 37px;
  height: 20px;
  border: 2px solid #1d1d1b;
  border-radius: 5px;
  background: #f5f0e5;
}

.camera-button {
  position: absolute;
  top: 26px;
  right: 20px;
  width: 17px;
  height: 17px;
  border: 2px solid #1d1d1b;
  border-radius: 50%;
  background: var(--orange);
}

.photo-spark {
  position: absolute;
  color: var(--yellow);
  font-size: 55px;
  font-weight: 900;
}

.spark-one { top: 38px; right: 50px; }
.spark-two { bottom: 39px; left: 53px; transform: rotate(15deg); }

.window-art {
  background-image: linear-gradient(rgba(29, 29, 27, 0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(29, 29, 27, 0.08) 1px, transparent 1px);
  background-size: 28px 28px;
}

.browser-window {
  width: min(550px, 78%);
  overflow: hidden;
  border: 2px solid #1d1d1b;
  border-radius: 15px;
  background: #faf8f1;
  box-shadow: 15px 17px 0 #1d1d1b;
  transform: rotate(-3deg);
  transition: transform 0.4s ease;
}

.project-card:hover .browser-window {
  transform: rotate(0deg) translateY(-3px);
}

.browser-bar {
  display: flex;
  gap: 7px;
  padding: 12px 15px;
  border-bottom: 2px solid #1d1d1b;
  background: #f1c94f;
}

.browser-bar i {
  width: 9px;
  height: 9px;
  border: 1px solid #1d1d1b;
  border-radius: 50%;
  background: var(--orange);
}

.browser-content {
  position: relative;
  display: grid;
  min-height: 230px;
  place-items: center;
  padding: 30px;
  text-align: center;
}

.browser-content::before,
.browser-content::after {
  position: absolute;
  content: "✦";
  color: var(--orange);
  font-size: 28px;
}

.browser-content::before { top: 25px; left: 30px; }
.browser-content::after { right: 30px; bottom: 22px; }

.browser-content span {
  position: absolute;
  top: 24px;
  color: var(--blue);
  font-family: Georgia, serif;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.browser-content strong {
  font-size: clamp(27px, 3vw, 43px);
  line-height: 1.1;
  letter-spacing: -0.06em;
}

.project-info {
  display: flex;
  min-height: 132px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 25px 28px;
  border-top: 1px solid currentColor;
}

.project-info h3 {
  margin: 0;
  font-size: clamp(22px, 2vw, 29px);
  letter-spacing: -0.05em;
}

.project-info p {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.5;
  opacity: 0.72;
}

.project-arrow {
  display: grid;
  width: 50px;
  height: 50px;
  flex: 0 0 auto;
  place-items: center;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  font-size: 22px;
  transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.project-card:hover .project-arrow {
  color: #fff;
  background: #1d1d1b;
  transform: rotate(45deg);
}

.notes-heading {
  margin-bottom: 75px;
}

.notes-board {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  min-height: 600px;
  padding: 65px;
  gap: 30px;
  border: 13px solid #a6754d;
  background: #c29a6d;
  box-shadow: inset 0 0 0 2px #865b36, 0 30px 70px rgba(53, 36, 20, 0.18);
}

.notes-board::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0.25;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 120 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='f'%3E%3CfeTurbulence baseFrequency='.08' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)' opacity='.35'/%3E%3C/svg%3E");
  pointer-events: none;
}

.note-card {
  position: relative;
  z-index: 1;
  min-height: 210px;
  padding: 30px;
  color: #1d1d1b;
  box-shadow: 9px 11px 22px rgba(45, 28, 13, 0.2);
  transition: transform 0.3s ease;
}

.note-card:hover {
  z-index: 2;
  transform: rotate(0deg) translateY(-8px);
}

.note-yellow {
  grid-column: span 4;
  background: #f5d765;
  transform: rotate(-3deg);
}

.note-white {
  grid-column: span 4;
  align-self: start;
  background: #f7f3e8;
  transform: rotate(2deg) translateY(20px);
}

.note-photo {
  grid-column: span 4;
  padding: 14px 14px 24px;
  background: #faf8f1;
  transform: rotate(4deg) translateY(-10px);
}

.note-blue {
  grid-column: 3 / span 8;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 170px;
  color: #fff;
  background: var(--blue);
  transform: rotate(-1.5deg);
}

.tape {
  position: absolute;
  top: -16px;
  left: 50%;
  width: 87px;
  height: 30px;
  background: rgba(245, 237, 206, 0.73);
  transform: translateX(-50%) rotate(3deg);
}

.pin {
  position: absolute;
  top: 14px;
  left: 50%;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 2px 3px 3px rgba(0, 0, 0, 0.25);
  transform: translateX(-50%);
}

.note-date {
  display: block;
  margin-bottom: 18px;
  font-family: Georgia, serif;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  opacity: 0.65;
}

.note-icon {
  font-size: 44px;
}

.note-card h3 {
  margin: 12px 0 7px;
  font-size: 20px;
  letter-spacing: -0.04em;
}

.note-card p {
  margin: 0;
  font-family: KaiTi, STKaiti, serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.65;
}

.quote-mark {
  color: var(--orange);
  font-family: Georgia, serif;
  font-size: 60px;
  line-height: 0.8;
}

.note-white blockquote {
  margin: 12px 0 0;
  font-family: KaiTi, STKaiti, serif;
  font-size: clamp(24px, 2.4vw, 34px);
  font-weight: 900;
  line-height: 1.35;
}

.sunset {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: linear-gradient(#f2a965, #ef6952 62%, #564779);
}

.sun {
  position: absolute;
  top: 45px;
  left: 50%;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #f9db77;
  transform: translateX(-50%);
}

.mountain {
  position: absolute;
  right: -10%;
  bottom: -70px;
  left: -10%;
  height: 170px;
  background: #504166;
  clip-path: polygon(0 64%, 19% 34%, 34% 58%, 54% 14%, 72% 50%, 87% 28%, 100% 61%, 100% 100%, 0 100%);
}

.mountain-front {
  bottom: -90px;
  background: #29243b;
  transform: scale(1.2) translateX(9%);
}

.note-photo p {
  margin-top: 16px;
  text-align: center;
}

.record {
  position: relative;
  display: grid;
  width: 88px;
  height: 88px;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 50%;
  background: repeating-radial-gradient(circle, #222 0 3px, #333 3px 6px);
  animation: spin 8s linear infinite;
}

.record span {
  width: 28px;
  height: 28px;
  border: 6px solid var(--yellow);
  border-radius: 50%;
  background: var(--orange);
}

.song-info {
  display: grid;
  gap: 6px;
}

.song-info strong {
  font-size: 21px;
}

.song-info span {
  color: rgba(255, 255, 255, 0.65);
  font-size: 12px;
}

.equalizer {
  display: flex;
  height: 38px;
  align-items: end;
  gap: 4px;
}

.equalizer i {
  display: block;
  width: 4px;
  height: 40%;
  border-radius: 2px;
  background: var(--yellow);
  animation: equalize 1s ease-in-out infinite alternate;
}

.equalizer i:nth-child(2) { animation-delay: -0.7s; }
.equalizer i:nth-child(3) { animation-delay: -0.25s; }
.equalizer i:nth-child(4) { animation-delay: -0.9s; }
.equalizer i:nth-child(5) { animation-delay: -0.45s; }

@keyframes equalize {
  from { height: 25%; }
  to { height: 100%; }
}

.contact {
  width: 100%;
  max-width: none;
  padding: 150px max(28px, calc((100% - var(--max-width)) / 2));
  color: #1d1d1b;
  background: var(--yellow);
}

.contact-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.contact .section-index {
  color: rgba(29, 29, 27, 0.58);
}

.contact h2 {
  max-width: 920px;
  margin-top: 28px;
}

.contact h2 em {
  color: var(--orange);
  font-family: KaiTi, STKaiti, serif;
  font-style: normal;
}

.contact-inner > p {
  margin: 28px 0 37px;
  color: rgba(29, 29, 27, 0.62);
  font-size: 15px;
}

.contact-sticker {
  position: absolute;
  top: 30px;
  right: 3%;
  display: grid;
  width: 105px;
  height: 105px;
  place-items: center;
  color: #fff;
  border: 2px solid #1d1d1b;
  border-radius: 50%;
  background: var(--blue);
  font-family: Georgia, serif;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  box-shadow: 6px 7px 0 #1d1d1b;
  transform: rotate(11deg);
}

.email-button {
  display: flex;
  width: min(620px, 100%);
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 8px 10px 8px 29px;
  color: #fff;
  border-radius: 100px;
  background: #1d1d1b;
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 800;
  box-shadow: 0 15px 30px rgba(29, 29, 27, 0.18);
  transition: transform 0.25s ease;
}

.email-button:hover {
  transform: translateY(-5px);
}

.mail-arrow {
  display: grid;
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  place-items: center;
  color: #1d1d1b;
  border-radius: 50%;
  background: var(--orange);
  font-size: 24px;
  transition: transform 0.25s ease;
}

.email-button:hover .mail-arrow {
  transform: rotate(45deg);
}

.contact-inner .email-tip {
  margin: 15px 0 0;
  font-size: 11px;
  font-weight: 700;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  min-height: 140px;
  align-items: center;
  gap: 30px;
}

.footer-brand {
  justify-self: start;
}

.site-footer > p {
  color: var(--muted);
  font-family: KaiTi, STKaiti, serif;
  font-size: 14px;
  font-weight: 700;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  justify-self: end;
  gap: 20px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.footer-meta a:hover {
  color: var(--orange);
}

/* 进入视口后再显示，未启用脚本时内容保持可见 */
.js-ready .reveal {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.75s ease, transform 0.75s cubic-bezier(.2,.65,.2,1);
}

.js-ready .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1040px) {
  .hero {
    grid-template-columns: 1fr 0.85fr;
    gap: 25px;
  }

  .hero-visual {
    min-height: 500px;
    transform: scale(0.9);
  }

  .list-card ul {
    grid-template-columns: repeat(2, 1fr);
  }

  .list-card li:nth-child(3) {
    border-left: 0;
  }

  .notes-board {
    padding: 45px;
  }

  .note-yellow,
  .note-white {
    grid-column: span 6;
  }

  .note-photo {
    grid-column: 2 / span 5;
  }

  .note-blue {
    grid-column: 7 / span 5;
  }
}

@media (max-width: 820px) {
  :root {
    --header-height: 76px;
  }

  .section-shell,
  .site-header,
  .site-footer {
    width: min(calc(100% - 36px), var(--max-width));
  }

  .site-header {
    grid-template-columns: 1fr auto;
  }

  .desktop-nav {
    display: none;
  }

  .menu-button,
  .mobile-menu {
    display: flex;
  }

  .menu-button {
    display: grid;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 60px;
  }

  .hero h1 {
    font-size: clamp(65px, 17vw, 108px);
  }

  .hero-intro {
    max-width: 630px;
  }

  .hero-visual {
    min-height: 590px;
    transform: none;
  }

  .visual-card {
    width: min(390px, 75%);
  }

  .scroll-cue {
    display: none;
  }

  .about,
  .projects,
  .notes {
    padding-block: 100px;
  }

  .section-heading {
    grid-template-columns: 1fr;
  }

  .section-heading h2 {
    grid-column: auto;
  }

  .section-heading .section-index {
    padding-top: 0;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .list-card {
    grid-column: auto;
  }

  .project-card:nth-child(1),
  .project-card:nth-child(2),
  .project-card:nth-child(3) {
    grid-column: 1 / -1;
  }

  .project-card:nth-child(3) {
    min-height: 550px;
  }

  .notes-board {
    padding: 42px;
  }

  .note-yellow,
  .note-white,
  .note-photo,
  .note-blue {
    grid-column: 1 / -1;
    transform: rotate(-1.5deg);
  }

  .note-white,
  .note-photo {
    transform: rotate(1.5deg);
  }

  .contact {
    padding-block: 110px;
  }

  .contact-sticker {
    top: -68px;
    right: 0;
    width: 82px;
    height: 82px;
    font-size: 9px;
  }

  .site-footer {
    grid-template-columns: 1fr 1fr;
    padding: 35px 0;
  }

  .site-footer > p {
    display: none;
  }
}

@media (max-width: 560px) {
  .hero {
    padding-top: 44px;
  }

  .hero h1 {
    font-size: clamp(58px, 19vw, 86px);
  }

  .hero-intro {
    font-size: 15px;
  }

  .hero-intro br {
    display: none;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 22px;
  }

  .hero-visual {
    min-height: 470px;
    margin-inline: -15px;
  }

  .visual-card {
    width: min(300px, 72%);
    border-radius: 47% 47% 22px 22px;
    box-shadow: 10px 12px 0 var(--ink);
  }

  .orbit-one {
    width: 380px;
    height: 380px;
  }

  .orbit-two {
    width: 430px;
    height: 300px;
  }

  .floating-note {
    padding: 9px 11px;
    font-size: 13px;
    box-shadow: 3px 3px 0 #1d1d1b;
  }

  .note-one { right: 3%; }
  .note-two { left: 2%; }
  .floating-star { left: 9%; font-size: 30px; }

  .visual-label {
    top: 19px;
    left: 24px;
    font-size: 8px;
  }

  .portrait-body::after {
    font-size: 38px;
  }

  .section-heading,
  .projects-heading {
    margin-bottom: 44px;
  }

  .section-heading h2,
  .projects-heading h2,
  .contact h2 {
    font-size: clamp(43px, 14vw, 67px);
  }

  .about-main,
  .stat-card,
  .list-card {
    min-height: auto;
    padding: 34px 27px;
  }

  .about-main {
    min-height: 420px;
  }

  .doodle-arrow {
    right: 105px;
    bottom: 32px;
  }

  .list-card ul {
    grid-template-columns: 1fr;
  }

  .list-card li,
  .list-card li:first-child {
    min-height: 88px;
    padding: 16px 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .projects {
    padding-inline: 18px;
  }

  .projects-heading {
    align-items: start;
    flex-direction: column;
  }

  .project-card,
  .project-card:nth-child(3) {
    min-height: 510px;
  }

  .project-art {
    min-height: 310px;
  }

  .notebook {
    width: 175px;
    height: 230px;
  }

  .notebook strong {
    font-size: 27px;
  }

  .camera {
    width: 225px;
    height: 155px;
  }

  .camera-lens {
    width: 92px;
    height: 92px;
  }

  .camera-lens i {
    width: 58px;
    height: 58px;
    border-width: 9px;
  }

  .browser-window {
    width: 85%;
  }

  .browser-content {
    min-height: 190px;
  }

  .project-info {
    min-height: 122px;
    padding: 22px;
  }

  .project-arrow {
    width: 44px;
    height: 44px;
  }

  .notes-board {
    margin-inline: -8px;
    padding: 34px 25px;
    border-width: 9px;
  }

  .note-card {
    padding: 25px;
  }

  .note-blue {
    grid-template-columns: auto 1fr;
  }

  .note-blue .note-date {
    grid-column: 1 / -1;
    margin: 0;
  }

  .record {
    width: 68px;
    height: 68px;
  }

  .equalizer {
    display: none;
  }

  .email-button {
    min-height: 65px;
    padding-left: 22px;
  }

  .mail-arrow {
    width: 49px;
    height: 49px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-meta {
    width: 100%;
    justify-content: space-between;
    justify-self: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
