/* ============ 自托管字体（国内可访问约束：不用 Google Fonts CDN） ============ */
@font-face {
  font-family: "Space Grotesk";
  src: url("/fonts/space-grotesk.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}

/* ============ 设计令牌（新野蛮主义 · 黑白 + 克莱因蓝） ============ */
:root {
  --bg: #f0f0f0;
  --card: #ffffff;
  --text: #000000;
  --muted: #4b5563;
  --blue: #002fa5;        /* 克莱因蓝：高亮块、按钮、大色块 */
  --blue-mid: #3d6bff;
  --blue-soft: #b5c9ff;   /* 浅蓝：次级高亮块 */
  --blue-pale: #dde6ff;   /* 极浅蓝：chip、底纹 */
  --container: 1280px;
  --pad-x: 32px;
  --r: 4px;
  --r-lg: 8px;
  --shadow-s: 3px 3px 0 0 #000;
  --shadow-m: 5px 5px 0 0 #000;
  --shadow-l: 8px 8px 0 0 #000;
  --shadow-xl: 11px 11px 0 0 #000;
  --font-display: "Space Grotesk", -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-sans: -apple-system, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SF Mono", Consolas, "Courier New", monospace;
}

/* ============ 基础 ============ */
* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

h1, h2, h3, .display {
  font-family: var(--font-display);
}

.mono {
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
}

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.section { padding: 130px 0 0; }

/* 上浮淡入 */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.in { opacity: 1; transform: none; }

/* ============ 野蛮主义基件：按钮 / 高亮块 / chip ============ */
.nbtn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  background: var(--card);
  color: var(--text);
  border: 2px solid #000;
  border-radius: var(--r);
  font-weight: 700;
  font-size: 16px;
  font-family: var(--font-display);
  box-shadow: var(--shadow-s);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
  cursor: pointer;
}
.nbtn:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-m);
}
.nbtn:active {
  transform: translate(1px, 1px);
  box-shadow: 2px 2px 0 0 #000;
}
.nbtn--blue {
  background: var(--blue);
  color: #fff;
}
.nbtn--big {
  padding: 18px 38px;
  font-size: 20px;
}

.mark {
  display: inline-block;
  padding: 2px 18px;
  border: 3px solid #000;
  border-radius: var(--r);
  box-shadow: var(--shadow-s);
  transform: rotate(-1deg);
  transition: transform 0.2s ease;
  cursor: default;
}
.mark:hover { transform: rotate(-3deg) scale(1.08); }
.mark--blue {
  background: var(--blue);
  color: #fff;
}
.mark--soft {
  background: var(--blue-soft);
  color: #000;
  transform: rotate(1deg);
}
.mark--soft:hover { transform: rotate(3deg) scale(1.08); }

.chip {
  display: inline-flex;
  align-items: center;
  padding: 2px 12px;
  background: var(--blue-pale);
  border: 2px solid #000;
  border-radius: var(--r);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

/* ============ 导航 ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 2px solid #000;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-mark {
  width: 14px;
  height: 14px;
  background: var(--blue);
  border: 2px solid #000;
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.1em;
  font-size: 16px;
}

.nav-links {
  display: flex;
  gap: 34px;
}
.nav-link {
  font-weight: 700;
  font-size: 16px;
  transition: color 0.15s ease;
}
.nav-link:hover {
  color: var(--blue);
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 6px;
}
.nav-link--active {
  color: var(--blue);
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 6px;
}

.nav .nbtn { padding: 9px 22px; font-size: 15px; }

/* ============ Hero ============ */
.hero {
  position: relative;
  padding: 110px 0 140px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 56px;
  align-items: center;
}

/* 头像贴纸卡 */
.avatar-card {
  width: clamp(340px, 30vw, 460px);
  background: var(--card);
  border: 3px solid #000;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-l);
  padding: 14px;
  transform: rotate(3deg);
  transition: transform 0.2s ease;
}
.avatar-card:hover {
  transform: rotate(1deg) scale(1.02);
}
.avatar-card img {
  width: 100%;
  aspect-ratio: 28 / 23;
  object-fit: cover;
  object-position: center;
  border: 2px solid #000;
  border-radius: var(--r);
}
.avatar-caption {
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

.hero-id {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 30px;
}

.hero-title {
  font-size: clamp(52px, 6vw, 84px);
  font-weight: 900;
  line-height: 1.14;
  letter-spacing: -0.02em;
}
.hero-title .mark {
  font-size: 0.92em;
  margin: 0.06em 0;
}

.hero-shout {
  margin-top: 34px;
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 24px;
  letter-spacing: 0.02em;
  border-bottom: 6px solid var(--blue);
}

.hero-actions {
  margin-top: 44px;
  display: flex;
  gap: 16px;
}

/* 贴纸 */
.sticker {
  position: absolute;
  padding: 8px 14px;
  background: var(--card);
  border: 2px solid #000;
  border-radius: var(--r);
  box-shadow: var(--shadow-s);
  font-weight: 700;
  font-size: 14px;
  pointer-events: none;
}
.sticker--1 {
  top: 84px;
  right: 5%;
  background: var(--blue);
  color: #fff;
  transform: rotate(8deg);
}
.sticker--2 {
  top: 66%;
  right: 25%;
  transform: rotate(-5deg);
  z-index: 2;
}
.sticker--3 {
  bottom: 96px;
  right: 6%;
  background: var(--blue-soft);
  transform: rotate(4deg);
}

/* ============ 区块头 ============ */
.section-head { margin-bottom: 54px; }
.section-head--row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.section-title {
  font-size: clamp(44px, 5vw, 72px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.section-note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 17px;
}
.section-more {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  white-space: nowrap;
  padding-bottom: 10px;
  border-bottom: 3px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.section-more:hover {
  color: var(--blue);
  border-color: var(--blue);
}

/* ============ 作品 ============ */
.work {
  display: block;
  background: var(--card);
  border: 2px solid #000;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-l);
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.work:hover {
  transform: translate(-3px, -3px);
  box-shadow: var(--shadow-xl);
}

.work-media {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-bottom: 2px solid #000;
}
.work--feature .work-media { aspect-ratio: 21 / 9; }
.work-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.eat-what-cover {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  overflow: hidden;
  background:
    linear-gradient(rgba(17, 17, 17, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 17, 17, 0.08) 1px, transparent 1px),
    #fffbeb;
  background-size: 24px 24px;
}
.eat-what-cover::before,
.eat-what-cover::after {
  content: "";
  position: absolute;
  border: 3px solid #000;
  border-radius: 50%;
}
.eat-what-cover::before {
  width: 150px;
  height: 150px;
  top: -80px;
  right: -45px;
  background: #ffd600;
}
.eat-what-cover::after {
  width: 90px;
  height: 90px;
  bottom: -52px;
  left: -28px;
  background: #00c853;
}
.eat-what-cover strong {
  position: relative;
  z-index: 1;
  color: #ff3d00;
  font-family: var(--font-display);
  font-size: clamp(30px, 3.5vw, 52px);
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.06em;
  text-shadow: 4px 4px 0 #ffd600;
  transform: rotate(-1deg);
}
.eat-cover-kicker {
  position: relative;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
}
.eat-cover-button {
  position: relative;
  z-index: 1;
  padding: 8px 18px;
  color: #fff;
  background: #ff3d00;
  border: 2px solid #000;
  border-radius: 8px;
  box-shadow: 3px 3px 0 #000;
  font-size: 13px;
  font-weight: 900;
}

.work-body {
  position: relative;
  padding: 20px 20px 22px;
  padding-right: 66px;
}
.work-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.work-title {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.01em;
}
.work-desc {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
  max-width: 720px;
}
.work-arrow {
  position: absolute;
  right: 18px;
  top: 20px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: var(--blue-pale);
  border: 2px solid #000;
  border-radius: var(--r);
  font-size: 16px;
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.work:hover .work-arrow {
  background: var(--blue);
  color: #fff;
  transform: translate(2px, -2px);
}

.work--feature { margin-bottom: 28px; }
.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* COMING SOON 卡 */
.work-coming {
  grid-column: 1 / -1;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 22px;
  padding: 44px 20px;
  border: 2px dashed #000;
  border-radius: var(--r-lg);
}
.work-coming-big {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(26px, 2.4vw, 40px);
  letter-spacing: 0.06em;
  color: rgba(0, 0, 0, 0.32);
}
.work-coming-sub {
  color: var(--muted);
  font-size: 16px;
}

/* ============ 文章 ============ */
.art-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.art-row {
  display: grid;
  grid-template-columns: auto 130px 1fr 46px;
  align-items: center;
  gap: 26px;
  background: var(--card);
  border: 2px solid #000;
  border-radius: var(--r);
  box-shadow: var(--shadow-s);
  padding: 24px 30px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.art-row:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-m);
}

.art-tag { justify-self: start; }
.art-date {
  font-size: 13px;
  color: var(--muted);
}
.art-title {
  display: block;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.01em;
  transition: color 0.15s ease;
}
.art-row:hover .art-title { color: var(--blue); }
.art-summary {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
}
.art-arrow {
  font-size: 22px;
  transition: transform 0.15s ease, color 0.15s ease;
}
.art-row:hover .art-arrow {
  color: var(--blue);
  transform: translateX(4px);
}

/* ============ 资源入口 ============ */
.res-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.res-card {
  position: relative;
  background: var(--card);
  border: 2px solid #000;
  border-radius: var(--r);
  box-shadow: var(--shadow-s);
  padding: 24px 22px 20px;
  min-height: 210px;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.res-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-m);
  background: var(--blue-pale);
}
.res-en {
  font-size: 11px;
  color: var(--muted);
}
.res-name {
  margin-top: 12px;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 900;
}
.res-desc {
  margin-top: 6px;
  font-size: 14px;
  color: var(--muted);
}
.res-chip {
  margin-top: auto;
  align-self: flex-start;
  background: var(--card);
}
.res-arrow {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 2px solid #000;
  border-radius: var(--r);
  background: var(--card);
  font-size: 16px;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.res-card:hover .res-arrow {
  background: var(--blue);
  color: #fff;
}

/* ============ 联系收尾 ============ */
.contact { padding-bottom: 0; }

.contact-box {
  background: var(--blue);
  color: #fff;
  border: 2px solid #000;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-l);
  padding: clamp(30px, 4vw, 50px);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 36px;
}
.contact-box .section-title { color: #fff; }
.contact-box .nbtn {
  background: #fff;
  color: #000;
}
.contact-kicker {
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
}

.contact-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.contact-socials .nbtn {
  padding: 10px 22px;
  font-size: 15px;
}

.footer {
  margin-top: 130px;
  background: #000;
  color: #fff;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  padding-bottom: 32px;
  font-size: 14px;
}
.footer-inner .mono {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}

/* ============ 关于我 ============ */
.about-page {
  overflow: hidden;
}

.about-hero {
  padding: 105px 0 90px;
}

.about-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.8fr);
  align-items: center;
  gap: clamp(54px, 7vw, 96px);
}

.about-kicker {
  margin-bottom: 26px;
  color: var(--muted);
  font-size: 13px;
}

.about-title {
  font-size: clamp(58px, 7vw, 94px);
  font-weight: 900;
  line-height: 1.03;
  letter-spacing: -0.04em;
}

.about-title .mark {
  margin-top: 12px;
  padding-inline: 20px;
}

.about-copy {
  max-width: 700px;
  margin-top: 42px;
  display: grid;
  gap: 18px;
  color: #30343b;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.85;
}

.id-card {
  position: relative;
  background: #fff;
  border: 3px solid #000;
  border-radius: 18px;
  box-shadow: var(--shadow-xl);
  transform: rotate(1.5deg);
  overflow: hidden;
}

.id-card-image {
  width: min(100%, 430px);
  justify-self: center;
  filter: drop-shadow(10px 10px 0 #000);
  transform: rotate(1.5deg);
  transition: transform 0.2s ease;
}

.id-card-image:hover {
  transform: rotate(0deg) translate(-2px, -2px);
}

.id-card-image img {
  width: 100%;
  height: auto;
}

.id-card-head {
  padding: 20px 22px;
  background: var(--blue-soft);
  border-bottom: 3px solid #000;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.id-card-head strong {
  display: block;
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1;
}

.id-card-head .mono {
  display: block;
  margin-top: 8px;
  color: rgba(0, 0, 0, 0.62);
  font-size: 9px;
}

.id-valid {
  padding: 5px 10px;
  background: #fff;
  border: 2px solid #000;
  border-radius: var(--r);
  box-shadow: var(--shadow-s);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 900;
}

.id-card-body {
  padding: 22px;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 18px;
}

.id-photo {
  overflow: hidden;
  border: 2px solid #000;
  border-radius: 10px;
  box-shadow: var(--shadow-s);
  background: #f4f0e7;
}

.id-photo img {
  width: 100%;
  height: 100%;
  min-height: 245px;
  object-fit: cover;
  object-position: center;
}

.id-fields {
  display: grid;
  gap: 12px;
}

.id-fields div {
  padding: 13px 14px;
  border: 2px solid #000;
  border-radius: 10px;
  box-shadow: var(--shadow-s);
}

.id-fields div:nth-child(1) { background: #fff2a8; }
.id-fields div:nth-child(2) { background: var(--blue-pale); }
.id-fields div:nth-child(3) { background: #eadcff; }

.id-fields dt {
  color: rgba(0, 0, 0, 0.58);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.id-fields dd {
  margin-top: 3px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 900;
  line-height: 1.25;
}

.id-card-foot {
  padding: 0 22px 22px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.id-card-foot .mono {
  color: var(--muted);
  font-size: 9px;
}

.id-card-foot strong {
  padding: 13px;
  background: var(--blue);
  color: #fff;
  border: 2px solid #000;
  border-radius: 50%;
  box-shadow: var(--shadow-s);
  font-family: var(--font-display);
  font-size: 10px;
  line-height: 1.1;
  text-align: center;
  transform: rotate(8deg);
}

.about-section {
  padding: 105px 0 20px;
}

.about-section-head {
  margin-bottom: 42px;
}

.about-section-head > p {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
}

.about-section-head h2 {
  font-size: clamp(44px, 5vw, 68px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.about-section-head--center {
  text-align: center;
}

.now-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.now-card {
  min-height: 250px;
  padding: 26px;
  background: #fff;
  border: 2px solid #000;
  border-radius: 14px;
  box-shadow: var(--shadow-m);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.now-card:nth-child(2) { background: var(--blue-pale); }
.now-card:nth-child(3) { background: #fff2a8; }

.now-card:hover {
  transform: translate(-3px, -3px) rotate(-0.5deg);
  box-shadow: var(--shadow-l);
}

.now-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.now-card-top .mono {
  color: var(--muted);
  font-size: 12px;
}

.now-card h3 {
  margin-top: 42px;
  font-size: 27px;
  font-weight: 900;
  line-height: 1.15;
}

.now-card p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 15px;
}

.about-path-section {
  margin-top: 90px;
  padding-bottom: 80px;
  background:
    linear-gradient(rgba(0, 0, 0, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.055) 1px, transparent 1px),
    #f8f8f8;
  background-size: 32px 32px;
  border-block: 2px solid #000;
}

.life-map-placeholder {
  min-height: 320px;
}

.about-footer {
  margin-top: 0;
}

/* ============ 窄屏兜底（站点以 PC 为主） ============ */
@media (max-width: 1080px) {
  :root { --pad-x: 20px; }
  .nav-links { display: none; }
  .works-grid { grid-template-columns: 1fr 1fr; }
  .res-grid { grid-template-columns: 1fr 1fr; }
  .art-row { grid-template-columns: 1fr; gap: 10px; }
  .sticker { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .avatar-card { display: none; }
  .contact-box {
    align-items: flex-start;
    flex-direction: column;
  }
  .about-hero-grid {
    grid-template-columns: 1fr;
  }
  .id-card,
  .id-card-image {
    width: min(100%, 560px);
    margin-inline: auto;
  }
  .now-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .section { padding-top: 92px; }
  .hero { padding: 76px 0 96px; }
  .hero-title { font-size: clamp(42px, 13vw, 60px); }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .works-grid { grid-template-columns: 1fr; }
  .res-grid { grid-template-columns: 1fr; }
  .section-head--row { align-items: flex-start; flex-direction: column; }
  .footer-inner { align-items: flex-start; flex-direction: column; gap: 8px; }
  .about-hero { padding: 72px 0 50px; }
  .about-title { font-size: clamp(48px, 15vw, 68px); }
  .about-copy { margin-top: 32px; font-size: 16px; }
  .id-card-body { grid-template-columns: 1fr; }
  .id-photo img { min-height: 0; }
  .about-section { padding-top: 82px; }
  .life-map-placeholder { min-height: 220px; }
}
