/* ============================================================
   石头的作品集展示 — 1:1 静态还原样式
   字体 / 颜色 / 间距全部取自原站 computed style
   ============================================================ */

/* ---------- 仿宋_GB2312 字体 ---------- */
/* 字体文件来自公开下载（长城仿宋 / GreatWall FangSong_GB2312），
   放在本地 assets/fonts/ 下，浏览器直接加载，无需联网 */
@font-face {
  font-family: "FangSong_GB2312";
  src: url("../fonts/FangSong_GB2312.ttf") format("truetype");
  /* font-weight: 600; */
  font-style: normal;
  font-display: swap;
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: "FangSong_GB2312", "Fangsong Gbk", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Arial, Helvetica, sans-serif;
  color: #1f1f1f;
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}
img, svg, video { display: block; max-width: 100%; }

/* ---------- Intro loading screen ---------- */
.intro-screen {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 600ms ease;
}
.intro-screen.is-hidden { opacity: 0; pointer-events: none; }
.intro-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  border-radius: 16px;
}
.intro-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.intro-copy p {
  font-size: 18px;
  font-weight: 600;
  color: #1f1f1f;
  display: flex;
  align-items: center;
  gap: 6px;
}
.intro-subcopy {
  font-size: 13px;
  font-weight: 600;
  color: #8b8985;
  margin-top: 2px;
}
.intro-inline-icon-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 22px;
  height: 22px;
}
.intro-inline-icon {
  width: 22px;
  height: 22px;
  position: absolute;
  inset: 0;
  transition: opacity 200ms ease;
}
.intro-inline-icon-wink { opacity: 0; }
.intro-screen:hover .intro-inline-icon-wink { opacity: 1; }
.intro-screen:hover .intro-inline-icon:not(.intro-inline-icon-wink) { opacity: 0; }

/* ---------- Common: site footer (filing) ---------- */
.site-footer {
  position: fixed;
  bottom: 18px;
  left: 0;
  right: 0;
  display: flex;
  gap: 6px 12px;
  justify-content: center;
  align-items: center;
  font-size: 13px;
  color: #8b8985;
  z-index: 20;
  pointer-events: auto;
}
.site-footer a:hover { color: #1f1f1f; }
.site-footer img {
  width: 16px;
  height: 16px;
  display: inline-block;
  vertical-align: middle;
  margin-right: 4px;
}
.site-footer .sep { color: #c4c1bd; }

/* ============================================================
   HOMEPAGE
   ============================================================ */
.home-shell {
  min-height: 100vh;
  padding: 172px 0 72px;
}
.home-stage {
  max-width: 1184px;
  margin: 0 auto;
  padding: 0 48px;
  display: grid;
  gap: 120px;
}
.home-logo-button {
  display: block;
  width: 78px;
  height: 78px;
  padding: 0;
  margin: 0;
  background: transparent;
  border-radius: 50%;
  overflow: hidden;
  cursor: pointer;
}
.home-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%; 
  border: 3px solid #EB3331;
}
.home-grid {
  display: grid;
  grid-template-columns: minmax(0, 554px) minmax(0, 560px);
  gap: 118px;
  align-items: center;
  justify-content: start;
}

/* home menu */
.home-menu {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  width: 100%;
}
.home-menu-item {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  height: 58px;
  padding: 0 15px 0 24px;
  border-radius: 16px;
  background: transparent;
  font-size: 20px;
  font-weight: 600;
  color: #222;
  text-align: left;
  transition: background 180ms ease;
}
.home-menu-item:hover { background: #f0efed; }
.home-menu-item.is-active {
  background: #f0efed;
  /* border-bottom: 1.5px dashed #EB3331; */
  color: #222;
}
.home-menu-item .category-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

/* summary */
.home-summary {
  display: grid;
  gap: 30px;
  justify-items: center;
  width: 100%;
}
.summary-line {
  width: 510px;
  max-width: 100%;
  height: 1px;
  background-image: linear-gradient(to right, #c8c4bd 50%, transparent 0);
  background-size: 8px 1px;
  background-repeat: repeat-x;
}
.home-summary p {
  font-size: 20px;
  line-height: 38px;
  color: #565452;
  letter-spacing: 0.01em;
  text-align: center;
  text-transform: capitalize;
  font-weight: 600;
}

/* ============================================================
   CATEGORY PAGE
   ============================================================ */
.cat-shell { min-height: 100vh; padding-bottom: 72px; margin-top: 72px; }

/* top nav */
.top-nav {
  position: sticky;
  top: 28px;
  z-index: 15;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 16px;
}
.top-nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  width: 46px;
  padding: 0 13px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.3);
  font-size: 16px;
  font-weight: 600;
  color: #242424;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 180ms ease, color 180ms ease, width 220ms ease;
  white-space: nowrap;
  overflow: hidden;
  justify-content: center;
}
.top-nav-item > span:not(.nav-bubbles) {
  max-width: 0;
  opacity: 0;
  transition: max-width 220ms ease, opacity 200ms ease;
  overflow: hidden;
}
.top-nav-item:hover {
  background: rgba(255, 255, 255, 0.55);
  width: auto;
  justify-content: flex-start;
}
.top-nav-item:hover > span:not(.nav-bubbles) {
  max-width: 360px;
  opacity: 1;
}
.top-nav-item.is-selected {
  background: rgba(240, 238, 238, 0.6);
  color: #242424;
  width: auto;
  gap: 8px;
  justify-content: flex-start;
}
.top-nav-item.is-selected > span:not(.nav-bubbles) {
  max-width: 360px;
  opacity: 1;
}
.top-nav-item.is-selected::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  /* border: 1.5px solid #155eef; */
  border-radius: 15px;
  pointer-events: none;
}
.top-nav-home {
  width: 46px;
  height: 46px;
  padding: 0 13px;
  justify-content: center;
  /* border: 1px solid #155eef; */
}
.top-nav-home:hover {
  width: 46px;
  justify-content: center;
}
.top-nav-home img {
  width: 26px;
  /* height: 26px; */
  object-fit: cover;
  border-radius: 50%;
}
.top-nav-item .category-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex-shrink: 0;
}

/* nav-bubbles 动画（选中按钮的气泡效果）*/
.nav-bubbles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  border-radius: inherit;
}
.nav-bubble {
  position: absolute;
  width: var(--bubble-size, 4px);
  height: var(--bubble-size, 4px);
  border-radius: 50%;
  background: #f52c04;
  left: var(--bubble-x, 50%);
  top: var(--bubble-y, 50%);
  opacity: 0;
  animation: bubble-rise var(--bubble-duration, 1500ms) ease-out forwards;
}
@keyframes bubble-rise {
  0% {
    opacity: 0;
    transform: translate(0, 0) scale(0.4);
  }
  20% {
    opacity: var(--bubble-opacity, 0.7);
    transform: translate(calc(var(--bubble-drift, 0px) * 0.2), calc(var(--bubble-rise, 30px) * -0.2)) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(var(--bubble-drift, 0px), calc(var(--bubble-rise, 30px) * -1)) scale(0.4);
  }
}

/* right-side anchor rail */
.anchor-rail {
  position: fixed;
  right: 64px;
  top: 162px;
  z-index: 14;
  width: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
/* 纵向导引线，缩放时让锚点栏有清晰的视觉轨道 */
/* .anchor-rail::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 8px;
  bottom: 8px;
  width: 2px;
  transform: translateX(-50%);
  background: rgba(36, 36, 36, 0.08);
  border-radius: 1px;
  pointer-events: none;
  z-index: -1;
} */
.anchor-item {
  position: relative;
  width: 11px;
  height: 5px;
  background: rgba(36, 36, 36, 0.25);
  border-radius: 2.5px;
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: background 180ms ease, transform 180ms ease;
}
.anchor-item:hover,
.anchor-item.is-active {
  background: #242424;
  transform: scale(1.2);
}
.anchor-popover {
  position: absolute;
  right: calc(100% + 14px);
  top: 50%;
  transform: translateY(-50%);
  background: rgba(31, 31, 31, 0.95);
  color: #fff;
  font-size: 12px;
  line-height: 18px;
  padding: 8px 12px;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.anchor-item:hover .anchor-popover { opacity: 1; }

/* main article */
.cat-article {
  max-width: 1120px;
  margin: 38px auto 0;
  padding: 0;
}
.project-block {
  scroll-margin-top: 110px;
}
.project-block + .project-block { margin-top: 24px; }
.project-block h1 {
  font-size: 28px;
  font-weight: 600;
  line-height: 1.38;
  color: #080808;
  margin-top: 32px;
  margin-bottom: 16px;
  border-radius: 12px;
  padding: 4px;
  letter-spacing: -0.005em;
  background: rgba(240, 238, 238, 0.3);
}
.project-block p {
  font-size: 24px;
  font-weight: 500;
  line-height: 1.72;
  color: #5a5753;
  margin-bottom: 24px;
  letter-spacing: 0.005em;
}
.project-block p + p { margin-top: 0; }
.project-block figure {
  margin: 42px 0 0;
}
.project-block figure + figure { margin-top: 18px; }
.project-block figure img,
.project-block figure video {
  max-width: 100%;
  width: 100%;
  height: auto;
  object-fit: contain;
  background: #f6f5f3;
  border-radius: 4px;
}
.project-block figure .placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #f6f5f3, #ece9e2);
  color: #8b8985;
  font-size: 14px;
  border-radius: 4px;
  letter-spacing: 0.02em;
}

/* ============================================================
   Resume Work Experience embedded in category page
   ============================================================ */
.resume-work-experience {
  margin-top: 16px;
}
.resume-job {
  margin-bottom: 36px;
  padding-bottom: 30px;
  border-bottom: 1px solid #e8e6e3;
}
/* .resume-job:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
} */
.resume-job-title {
  font-size: 21px;
  font-weight: 700;
  color: #1f1f1f;
  margin: 0 0 14px;
  line-height: 1.5;
}
.resume-job-position {
  font-weight: 600;
  color: #555;
  margin-left: 6px;
}
.resume-job-date {
  font-weight: 400;
  color: #888;
  margin-left: 8px;
  font-size: 17px;
}
.resume-job-section h4 {
  font-size: 18px;
  font-weight: 700;
  color: #333;
  margin: 18px 0 8px;
}
.resume-job-section p {
  font-size: 18px;
  line-height: 1.8;
  color: #555;
  margin-bottom: 10px;
  letter-spacing: 0.005em;
}
.resume-job-section p strong {
  color: #1f1f1f;
  font-weight: 700;
}
.resume-job-section ul {
  margin: 0 0 14px 22px;
  padding: 0;
}
.resume-job-section li {
  font-size: 18px;
  line-height: 1.8;
  color: #555;
  margin-bottom: 8px;
  letter-spacing: 0.005em;
}
.resume-job-section li strong {
  color: #1f1f1f;
  font-weight: 700;
}
.resume-job-section a {
  color: #c95a3a;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.resume-job-section a:hover {
  color: #a8472d;
}

/* empty state when no project */
.cat-empty {
  margin: 120px 180px;
  text-align: center;
  color: #8b8985;
  font-size: 16px;
}

/* ============================================================
   Growth Map Dialog
   ============================================================ */
.gm-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  display: none;
  overflow: auto;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.gm-overlay.is-open { display: block; }
.gm-card {
  position: relative;
  max-width: 1200px;
  margin: 36px auto 100px;
  background: #fff;
  border-radius: 16px;
  padding: 36px 56px 40px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 36px;
  min-height: 720px;
}
.gm-close {
  position: absolute;
  top: 14px;
  right: 18px;
  width: 32px;
  height: 32px;
  font-size: 24px;
  line-height: 32px;
  color: #5a5753;
  background: rgba(0, 0, 0, 0.04);
  border-radius: 50%;
  z-index: 5;
}
.gm-close:hover { background: rgba(0, 0, 0, 0.08); color: #1f1f1f; }
.gm-left { padding-top: 4px; }
.gm-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 14px;
}
.gm-line {
  font-size: 14px;
  line-height: 22px;
  color: #5a5753;
  margin-top: 4px;
}
.gm-email {
  display: inline-block;
  margin-top: 8px;
  color: #c95a3a;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.gm-right { position: relative; }
.gm-timeline {
  position: relative;
  padding: 18px 0;
  min-height: 680px;
}
.gm-timeline::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: rgba(0, 0, 0, 0.05);
}
.gm-timeline-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.gm-event {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 220px;
}
.gm-event .gm-when {
  font-size: 14px;
  font-weight: 600;
  color: #1f1f1f;
}
.gm-event .gm-what {
  font-size: 13px;
  color: #5a5753;
  line-height: 1.55;
}
.gm-event a { color: #155eef; text-decoration: underline; }
.gm-event .gm-icon {
  width: 18px;
  height: 18px;
  margin-bottom: 2px;
  display: inline-block;
}

/* event positions roughly match the source site */
.gm-event-e1 { left: 0%;   top: 0%; }
.gm-event-e2 { left: 18%;  top: 75%; }
.gm-event-e3 { left: 24%;  top: 22%; }
.gm-event-e4 { left: 33%;  top: 78%; }
.gm-event-e5 { left: 50%;  top: 38%; }
.gm-event-e6 { left: 60%;  top: 80%; }
.gm-event-e7 { left: 72%;  top: 18%; }
.gm-event-e8 { left: 84%;  top: 56%; }
.gm-event-e9 { left: 90%;  top: 4%; }
.gm-event-e10 { left: 96%; top: 50%; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .cat-article { margin: 38px 80px 0; }
  .anchor-rail { right: 24px; }
  .home-grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 720px) {
  .top-nav { gap: 8px; padding: 0 12px; top: 12px; flex-wrap: nowrap; height: auto; }
  .top-nav-item {
    width: 40px;
    height: 40px;
    padding: 0;
    font-size: 0;
    justify-content: center;
    border-radius: 12px;
  }
  .top-nav-item > span:not(.nav-bubbles) { display: none; }
  .top-nav-item.is-selected {
    width: 40px;
    gap: 0;
    justify-content: center;
    background: rgba(240, 238, 238, 0.95);
  }
  .top-nav-item.is-selected > span:not(.nav-bubbles) { display: none; }
  .top-nav-item:hover { width: 40px; justify-content: center; }
  .top-nav-home { width: 40px; padding: 0; }
  .cat-article { margin: 24px 44px 0 16px; }
  .anchor-rail { right: 8px; top: 120px; gap: 12px; }
  .anchor-rail::before { width: 1.5px; top: 6px; bottom: 6px; }
  .anchor-item { width: 9px; height: 4px; }
  .anchor-popover { right: calc(100% + 10px); font-size: 11px; padding: 6px 10px; max-width: 180px; }
  .project-block h1 { font-size: 22px; }
  .project-block p { font-size: 17px; line-height: 1.65; }
  .resume-job { margin-bottom: 28px; padding-bottom: 24px; }
  .resume-job-title { font-size: 15.5px; margin-bottom: 12px; }
  .resume-job-date { display: block; margin: 4px 0 0; font-size: 13px; }
  .resume-job-section h4 { font-size: 14px; margin: 14px 0 6px; }
  .resume-job-section p { font-size: 14px; line-height: 1.7; margin-bottom: 8px; }
  .resume-job-section ul { margin: 0 0 12px 18px; }
  .resume-job-section li { font-size: 14px; line-height: 1.7; margin-bottom: 6px; }
  .home-stage { padding: 0 16px; }
  .home-menu-item { height: 50px; padding: 0 12px 0 18px; font-size: 15px; }
  .home-summary p { font-size: 15px; line-height: 25px; }
  .gm-card { grid-template-columns: 1fr; padding: 24px; }
  .gm-card { grid-template-columns: 1fr; padding: 24px; }
  .gm-event { position: static; max-width: none; margin: 12px 0; }
  .gm-timeline { min-height: 0; }
  .gm-timeline::before, .gm-timeline-svg { display: none; }
}

/* Embedded work experience timeline (opinions category) */
.work-timeline-embed {
  width: 100%;
  padding: 18px 18px 18px 8px;
  background: #fff;
  border: 1px solid #f2f2f2;
  border-radius: 8px;
  overflow-x: auto;
}
.work-timeline-embed h4 {
  font-size: 20px;
  font-weight: 500;
  color: #EB3331;
  margin-bottom: 24px;
  letter-spacing: 1px;
}
.work-timeline-embed .wt-inner {
  position: relative;
  min-width: 1070px;
  height: 430px;
}
.work-timeline-embed .wt-line {
  position: absolute;
  left: 100px;
  right: 100px;
  top: 200px;
  height: 2px;
  background: #EB3331;
}
.work-timeline-embed .wt-dot {
  position: absolute;
  top: 200px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #EB3331;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 3px rgba(235, 51, 49, 0.12);
}
.work-timeline-embed .wt-card {
  position: absolute;
  top: 68px;
  width: 125px;
  padding: 7px 9px;
  background: #fff;
  border-radius: 5px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  transform-origin: left bottom;
  transform: rotate(-38deg);
  text-align: left;
  line-height: 1.28;
}
.work-timeline-embed .wt-card .c-date {
  font-size: 9px;
  color: #EB3331;
  font-weight: 600;
  margin-bottom: 1px;
}
.work-timeline-embed .wt-card .c-company {
  font-size: 11px;
  font-weight: 600;
  color: #222;
  margin-bottom: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.work-timeline-embed .wt-card .c-position {
  font-size: 9px;
  color: #555;
}
.work-timeline-embed .wt-detail {
  position: absolute;
  top: 240px;
  width: 200px;
  text-align: center;
}
.work-timeline-embed .wt-detail .num {
  display: block;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1.5px solid #EB3331;
  color: #EB3331;
  font-size: 11px;
  line-height: 21px;
  text-align: center;
  margin: 0 auto 9px;
  background: #fff;
  font-weight: 600;
}
.work-timeline-embed .wt-detail .date {
  font-size: 11px;
  color: #EB3331;
  font-weight: 600;
  margin-bottom: 3px;
}
.work-timeline-embed .wt-detail .company {
  font-size: 11.5px;
  font-weight: 600;
  color: #222;
  line-height: 1.35;
  margin-bottom: 2px;
}
.work-timeline-embed .wt-detail .position {
  font-size: 12px;
  font-weight: 600;
  color: #666;
  margin-bottom: 6px;
}
.work-timeline-embed .wt-detail .desc {
  font-size: 10px;
  font-weight: 600;
  text-align: justify;
  color: #888;
  line-height: 1.65;
  /* text-align: left; */
}
.work-timeline-embed .n1 { left: 100px; }
.work-timeline-embed .n2 { left: 330px; }
.work-timeline-embed .n3 { left: 550px; }
.work-timeline-embed .n4 { left: 770px; }
.work-timeline-embed .n5 { left: 990px; }
.work-timeline-embed .c1 { left: 38px; }
.work-timeline-embed .c2 { left: 258px; }
.work-timeline-embed .c3 { left: 478px; }
.work-timeline-embed .c4 { left: 698px; }
.work-timeline-embed .c5 { left: 918px; }
.work-timeline-embed .d1 { left: 10px; }
.work-timeline-embed .d2 { left: 230px; }
.work-timeline-embed .d3 { left: 450px; }
.work-timeline-embed .d4 { left: 670px; }
.work-timeline-embed .d5 { left: 890px; }
.work-timeline-embed .n5 { box-shadow: 0 0 0 5px rgba(235, 51, 49, 0.18); }
.work-timeline-embed .d5 .num { background: #EB3331; color: #fff; }
.work-timeline-embed .d5 .company { color: #EB3331; }
@media (max-width: 720px) {
  .work-timeline-embed { padding: 16px 12px; }
  .work-timeline-embed h4 { font-size: 16px; }
  .work-timeline-embed .wt-inner { min-width: 980px; height: 360px; }
}
.line-tb{
  margin: 24px 0;
  padding-top: 12px; 
  border-top: 1px solid #e8e6e3;
  padding-bottom: 12px; 
  border-bottom: 1px solid #e8e6e3;
}