:root {
  --bg: #faf7ed;
  --paper: #fffdfa;
  --ink: #242525;
  --muted: #6f6c66;
  --soft: #dedbd2;
  --line: #e9e4db;
  --accent: #45646f;
  --accent-soft: #e8eff0;
  --jade: #5f8077;
  --rose: #9d5d63;
  --radius: 8px;
  --max: 1040px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  letter-spacing: 0;
}

/* 页面背景：底部水彩山丘场景（米色底 + 独立错落的灰绿/薄荷绿山丘） */
.bg-scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: url("./assets/bg.webp") no-repeat center bottom / cover;
  opacity: 0.72;
}

/* 整页毛玻璃：低模糊 + 轻微米色罩，让背景更通透 */
.bg-frost {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  background: rgba(250, 247, 237, 0.14);
}

main,
.site-footer {
  position: relative;
  z-index: 1;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.site-top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 28px;
  width: min(100% - 48px, 1180px);
  margin: 18px auto 0;
  padding: 14px 20px;
  border: 1px solid rgba(222, 219, 210, 0.84);
  border-radius: var(--radius);
  background: rgba(255, 253, 250, 0.82);
  backdrop-filter: blur(10px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.brand-mark {
  display: inline-grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  color: #f6fbfb;
  background: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
}

.brand-pill,
.kicker,
.tag-row span,
.filter,
.eyebrow,
.project-notes span {
  font-family: "Courier New", Consolas, monospace;
  text-transform: uppercase;
}

.brand-pill {
  padding: 4px 9px;
  border-radius: 999px;
  background: #e6efe9;
  color: var(--jade);
  font-size: 12px;
  font-weight: 700;
}

.brand-script {
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
}

.nav-links a {
  padding: 6px 12px;
  margin: -6px -12px;
  border-radius: 999px;
  transition: color 0.3s ease, background-color 0.3s ease, opacity 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--ink);
}

.nav-links a.active {
  background: rgba(244, 196, 185, 0.24);
}

.nav-links a:hover {
  background: rgba(244, 196, 185, 0.4);
}

.nav-hint {
  display: inline-flex;
  align-items: center;
  margin-left: 2px;
  animation: nav-hint-bounce 1.8s ease-in-out infinite;
}

.nav-hint svg {
  display: block;
  width: 17px;
  height: 26px;
  fill: #f4c4b9;
  image-rendering: pixelated;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.16));
}

@keyframes nav-hint-bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

@media (max-width: 820px) {
  .nav-hint {
    display: none;
  }
}

.icon-link,
.round-action {
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--soft);
  border-radius: 50%;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.icon-link {
  width: 34px;
  height: 34px;
  color: var(--accent);
}

.icon-link:hover,
.round-action:hover {
  color: var(--paper);
  background: var(--accent);
}

.section-shell {
  position: relative;
  width: min(100% - 48px, var(--max));
  margin: 0 auto;
}

.hero {
  min-height: clamp(680px, calc(100vh - 82px), 860px);
  display: flex;
  align-items: center;
  padding: 64px 0 86px;
}

.hero-scene {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  gap: clamp(36px, 5vw, 68px);
}

/* ── 左侧照片区 ── */
.hero-photo-area {
  flex: 0 0 34%;
  min-width: 260px;
}

/* ── 右侧文字区 ── */
.hero-text {
  flex: 1 1 auto;
  min-width: 0;
  overflow: visible;
}

.photo-placeholder {
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 253, 250, 0.38);
  transition: background-color 0.3s ease;
}

.photo-placeholder:hover {
  background: rgba(255, 253, 250, 0.58);
}

.photo-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
  display: block;
}

.photo-stack {
  position: relative;
  width: 100%;
  height: 100%;
}

.photo-stack img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
  display: block;
  cursor: pointer;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.photo-stack .photo-a {
  z-index: 2;
  box-shadow: 0 16px 34px rgba(36, 37, 37, 0.2);
}

.photo-stack .photo-b {
  z-index: 1;
  transform: translate(7%, 5%) rotate(1.4deg);
  box-shadow: 0 10px 24px rgba(36, 37, 37, 0.16);
}

.photo-stack.swapped .photo-a {
  z-index: 1;
  transform: translate(7%, 5%) rotate(1.4deg);
  box-shadow: 0 10px 24px rgba(36, 37, 37, 0.16);
}

.photo-stack.swapped .photo-b {
  z-index: 2;
  transform: none;
  box-shadow: 0 16px 34px rgba(36, 37, 37, 0.2);
}

.photo-hint {
  color: var(--muted);
  font-family: "Courier New", Consolas, monospace;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hero-intro {
  margin-top: 28px;
}

.intro-line {
  display: flex;
  flex-wrap: nowrap;
  align-items: baseline;
  gap: 0 10px;
  margin-bottom: 10px;
}

.intro-line-extend {
  flex-wrap: nowrap;
  white-space: nowrap;
  gap: 0 8px;
  margin-right: -72px;
}

.intro-line-extend span {
  white-space: nowrap;
}

.intro-line-extend .txt-lg {
  font-size: clamp(1.3rem, 2.2vw, 1.8rem);
}

.intro-desc {
  margin-top: 22px;
  color: var(--muted);
  font-size: 15px;
  line-height: 2;
}

/* ── 大小交替文字（使用作品集同款宋体） ── */
.txt-sm {
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--muted);
}

.txt-lg {
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  font-weight: 700;
  color: var(--ink);
  font-family: "STSong", "Songti SC", SimSun, Georgia, serif;
}

.txt-xl {
  font-size: clamp(2.6rem, 4.8vw, 3.8rem);
  font-weight: 800;
  color: var(--ink);
  font-family: "STSong", "Songti SC", SimSun, Georgia, serif;
  letter-spacing: 0.03em;
}

.txt-accent {
  color: var(--accent);
}

.txt-lg,
.txt-xl {
  -webkit-text-stroke: 1px rgba(255, 253, 250, 0.7);
  paint-order: stroke fill;
}

.section-gap {
  padding: 112px 0;
  border-top: 1px solid var(--line);
}

.kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 4px 14px;
  border: 1px solid var(--soft);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 253, 250, 0.52);
  font-size: 12px;
  letter-spacing: 0;
}

.page-title {
  margin: 20px 0 0;
  font-family: "STSong", "Songti SC", SimSun, Georgia, serif;
  font-size: clamp(64px, 11vw, 132px);
  font-weight: 500;
  line-height: 0.96;
}

.page-title.small {
  font-size: clamp(42px, 6vw, 76px);
}

.hero-copy {
  width: min(680px, 92%);
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 2;
}

.hero-copy span {
  color: var(--accent);
}

.social-row,
.hero-actions,
.filter-row,
.tag-row,
.about-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-text .social-row,
.hero-text .hero-actions {
  justify-content: flex-start;
}

.social-row {
  margin-top: 24px;
  color: var(--muted);
  font-size: 13px;
}

.social-row a {
  padding: 4px 8px;
  transition: color 0.3s ease, background-color 0.3s ease;
}

.social-row a:hover {
  color: var(--accent);
  background: var(--accent-soft);
}

.hero-actions {
  margin-top: 36px;
}

.btn,
.about-links a,
.filter,
.tag-row span {
  border: 1px solid var(--soft);
  border-radius: 999px;
  background: rgba(255, 253, 250, 0.62);
}

.btn,
.about-links a {
  min-width: 104px;
  padding: 10px 18px;
  color: var(--ink);
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.btn.primary,
.btn:hover,
.about-links a:hover {
  color: var(--paper);
  border-color: var(--accent);
  background: var(--accent);
}

.section-head {
  width: min(640px, 100%);
  margin: 0 auto 68px;
  text-align: center;
}

.section-head p:last-child {
  margin: 22px auto 0;
  color: var(--muted);
  line-height: 1.9;
}

.skill-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.skill-card {
  min-height: 236px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 250, 0.58);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.skill-card:hover {
  border-color: var(--soft);
  background: rgba(255, 253, 250, 0.88);
}

.skill-index {
  color: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
}

.skill-card h3,
.project-meta h3,
.timeline-item h3 {
  margin: 18px 0 12px;
  font-size: 22px;
  line-height: 1.35;
}

.skill-card p,
.project-meta p,
.project-notes p,
.timeline-item p,
.about-copy p {
  color: var(--muted);
  line-height: 1.9;
}

.tag-row {
  justify-content: flex-start;
  margin-top: 22px;
}

.tag-row span,
.filter {
  padding: 6px 12px;
  color: var(--muted);
  font-size: 12px;
}

.filter {
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.filter:hover,
.filter.active {
  color: var(--paper);
  border-color: var(--accent);
  background: var(--accent);
}

.filter-row {
  margin: -24px 0 84px;
}

.project-item {
  padding: 0 0 88px;
  margin: 0 0 88px;
  border-bottom: 1px solid var(--line);
}

.project-item[hidden] {
  display: none;
}

.project-meta {
  display: grid;
  grid-template-columns: 1fr 42px;
  gap: 26px;
  align-items: start;
}

.eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.project-meta h3 {
  margin-top: 10px;
  font-size: clamp(26px, 3vw, 36px);
}

.round-action {
  width: 42px;
  height: 42px;
  margin-top: 10px;
  background: rgba(255, 253, 250, 0.46);
}

.project-body {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: center;
  margin-top: 34px;
  scroll-margin-top: 128px;
}

.project-image,
.process-board {
  overflow: hidden;
  min-height: 320px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.process-board {
  display: grid;
  align-content: center;
  gap: 16px;
  padding: 34px;
  background:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px),
    rgba(255, 253, 250, 0.64);
  background-size: 34px 34px;
}

.process-board span {
  color: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 42px;
}

.process-board h4 {
  margin: 0;
  font-size: 24px;
}

.process-board p {
  margin: 0;
  color: var(--muted);
  line-height: 1.9;
}

.project-image.wide {
  min-height: 430px;
}

.project-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
  filter: saturate(0.78) contrast(0.96);
  transition: opacity 0.3s ease, filter 0.3s ease;
}

.project-image:hover img {
  opacity: 0.92;
  filter: saturate(0.88) contrast(1);
}

.interaction-layout {
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: clamp(32px, 5vw, 72px);
  min-height: 520px;
}

.phone-cluster {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 40px);
  padding: 20px 0;
  row-gap: 52px;
}

.phone-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  justify-self: center;
  max-width: 220px;
}

/* 两行交错：第一行 高→低→中，第二行 低→高→中 */
.phone-unit:nth-child(1) { padding-top: 70px; }
.phone-unit:nth-child(2) { padding-top: 6px; }
.phone-unit:nth-child(3) { padding-top: 110px; }
.phone-unit:nth-child(4) { padding-top: 12px; }
.phone-unit:nth-child(5) { padding-top: 90px; }
.phone-unit:nth-child(6) { padding-top: 30px; }

.phone-demo {
  position: relative;
  width: 100%;
  aspect-ratio: 162 / 320;
  margin: 0;
  isolation: isolate;
}

.phone-label {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
  text-align: center;
}

.phone-screen,
.phone-frame {
  position: absolute;
  inset: 0;
}

.phone-screen {
  inset: 1.4% 5.8% 1.2%;
  overflow: hidden;
  border-radius: 13% / 8%;
  background: var(--paper);
}

.phone-media {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  opacity: 1;
  transition: opacity 0.25s ease;
}

.phone-demo.is-fading .phone-media {
  opacity: 0;
}

.phone-frame {
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.phone-demo::after {
  content: "";
  position: absolute;
  inset: 84% 14% 3%;
  z-index: -1;
  border-radius: 50%;
  background: rgba(36, 37, 37, 0.16);
  filter: blur(16px);
}

.project-notes {
  display: grid;
  align-content: center;
  gap: 18px;
  padding: 26px 0 26px 22px;
}

.project-notes.full {
  grid-column: 1 / -1;
  padding: 8px 0 0;
}

.interaction-copy {
  align-content: center;
  padding: 16px 0;
}

.project-notes span {
  color: var(--muted);
  font-size: 13px;
}

.project-notes strong {
  color: var(--accent);
  font-size: 20px;
  line-height: 1.7;
}

.note-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.note-list span {
  padding: 7px 11px;
  border: 1px solid var(--soft);
  border-radius: 999px;
  background: rgba(255, 253, 250, 0.62);
  color: var(--accent);
  font-family: "Courier New", Consolas, monospace;
  font-size: 12px;
}

/* ── 项目详情堆叠布局 ── */
.project-body-stack {
  display: block;
  margin-top: 34px;
  scroll-margin-top: 128px;
}

.project-section {
  margin-top: 64px;
}

.project-section:first-child {
  margin-top: 0;
}

.section-label {
  margin: 0 0 20px;
  font-family: "STSong", "Songti SC", SimSun, Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
}

.section-text {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 15px;
  line-height: 2;
}

/* ── 数据截图横排 ── */
.data-strip {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(16px, 2.5vw, 28px);
  flex-wrap: nowrap;
}

.data-unit {
  flex: 0 0 auto;
  width: clamp(180px, 19vw, 224px);
}

.data-shot {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

/* ── 三阶段卡片行 ── */
.stage-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.stage-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stage-label {
  margin: 0;
  color: var(--ink);
  font-family: "STSong", "Songti SC", SimSun, Georgia, serif;
  font-size: 18px;
  font-weight: 700;
}

.stage-desc {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

/* ── 图片占位符 ── */
.img-placeholder {
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed var(--soft);
  border-radius: var(--radius);
  background: rgba(255, 253, 250, 0.38);
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.img-placeholder:hover {
  border-color: var(--accent);
  background: rgba(255, 253, 250, 0.58);
}

.img-placeholder span {
  color: var(--muted);
  font-family: "Courier New", Consolas, monospace;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.img-caption {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

/* ── 项目内双栏布局 ── */
.project-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}

.project-row-2 .img-placeholder {
  min-height: 240px;
}

.project-row-text .section-text {
  margin-bottom: 0;
}

/* ── 项目分析组件 ── */
.comparison-card,
.feature-matrix,
.workflow-lane,
.process-grid,
.admin-showcase {
  display: grid;
  gap: 16px;
}

.comparison-card {
  grid-template-columns: 1fr;
}

.comparison-card div,
.feature-matrix div,
.workflow-lane div {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 250, 0.66);
}

.comparison-card span,
.feature-matrix span {
  display: block;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.5;
}

.comparison-card p,
.feature-matrix p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.workflow-lane {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 28px 0 16px;
}

.workflow-lane div {
  min-height: 142px;
  display: grid;
  align-content: center;
  gap: 14px;
}

.workflow-lane b {
  color: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  font-weight: 500;
}

.workflow-lane span {
  color: var(--ink);
  line-height: 1.65;
}

.process-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 28px;
}

.process-grid .process-board {
  min-height: 250px;
}

.feature-matrix {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 26px;
}

.chengshang-phone-row {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
  row-gap: 54px;
}

.chengshang-phone-row .phone-unit {
  width: 100%;
  max-width: 240px;
  padding-top: 0 !important;
}

.chengshang-phone-row .phone-label {
  font-size: 13px;
  line-height: 1.75;
}

.chengshang-phone-row .phone-unit:nth-child(-n + 3),
.chengshang-phone-row .phone-unit:nth-child(n + 8) {
  grid-column: span 4;
}

.chengshang-phone-row .phone-unit:nth-child(n + 4):nth-child(-n + 7) {
  grid-column: span 3;
  max-width: 220px;
}

.chengshang-phone-row .phone-unit:nth-child(2),
.chengshang-phone-row .phone-unit:nth-child(5),
.chengshang-phone-row .phone-unit:nth-child(9) {
  padding-top: 28px !important;
}

.chengshang-phone-row .phone-unit:nth-child(3),
.chengshang-phone-row .phone-unit:nth-child(7),
.chengshang-phone-row .phone-unit:nth-child(10) {
  padding-top: 12px !important;
}

.admin-showcase {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
  margin-top: 32px;
}

.admin-showcase figure {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 250, 0.64);
  margin: 0;
}

.admin-showcase figure:first-child {
  grid-column: auto;
}

.admin-showcase img {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9.45;
  object-fit: cover;
  object-position: left top;
  border: 1px solid rgba(222, 219, 210, 0.9);
  border-radius: 6px;
  background: var(--paper);
}

.admin-showcase figcaption {
  min-height: 48px;
  margin: 12px 2px 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
  text-align: left;
}

/* ── 双图网格 ── */
.img-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.img-grid-2 .img-placeholder {
  min-height: 260px;
}


.research-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin-top: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.research-strip div {
  min-height: 142px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  background: rgba(255, 253, 250, 0.68);
}

.research-strip b {
  color: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 48px;
  font-weight: 500;
}

.research-strip span {
  color: var(--muted);
  font-size: 13px;
}

.timeline {
  position: relative;
  width: min(760px, 100%);
  margin: 0 auto;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--soft);
  transform-origin: top;
  transform: scaleY(var(--timeline-progress, 0));
  transition: transform 0.2s linear;
}

.timeline-item {
  position: relative;
  padding: 0 0 54px 42px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 13px;
  height: 13px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  background: var(--bg);
}

.timeline-item time {
  color: var(--accent);
  font-family: "Courier New", Consolas, monospace;
  font-size: 13px;
}

.timeline-item h3 {
  margin-top: 8px;
}

.timeline-item span {
  display: inline-block;
  margin-top: 6px;
  color: var(--ink);
}

.about-copy {
  width: min(760px, 100%);
  margin: 0 auto;
  font-size: 17px;
}

.about-copy p + p {
  margin-top: 28px;
}

.about-links {
  margin-top: 46px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  width: min(100% - 48px, 1180px);
  margin: 0 auto 28px;
  padding: 26px 0 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  width: min(680px, 92%);
  margin: 0 auto;
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 250, 0.72);
  transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.contact-card:hover {
  border-color: var(--accent);
  background: var(--paper);
  transform: translateY(-2px);
}

.contact-label {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.contact-value {
  color: var(--ink);
  font-size: 18px;
  font-weight: 600;
  word-break: break-all;
}

@media (max-width: 520px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.85s ease, transform 0.85s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ── 打印导出：强制显示渐显内容、精简固定层、避免卡片跨页断裂 ── */
@page {
  size: A4;
  margin: 12mm;
}

@media print {
  * {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .bg-scene,
  .bg-frost,
  .site-top,
  .project-dotnav {
    display: none !important;
  }

  body {
    background: #ffffff;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  .hero {
    min-height: auto;
    padding: 20px 0;
  }

  .section-gap {
    padding: 24px 0;
    border-top: 1px solid #dedbd2;
  }

  .section-head {
    margin-bottom: 20px;
  }

  .section-head p:last-child {
    margin-top: 10px;
  }

  .project-section {
    margin-top: 32px;
  }

  .project-body-stack,
  .research-strip {
    margin-top: 18px;
  }

  .project-item {
    padding-bottom: 28px;
    margin-bottom: 28px;
  }

  .process-board {
    min-height: 0;
    padding: 20px;
  }

  .process-board span {
    font-size: 30px;
  }

  .process-board h4 {
    font-size: 19px;
  }

  .process-board p {
    font-size: 12px;
    line-height: 1.65;
  }

  .skill-card {
    min-height: 0;
    padding: 20px;
  }

  .research-strip div {
    min-height: 96px;
  }

  .research-strip b {
    font-size: 34px;
  }

  .phone-label {
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.6;
  }

  .section-shell {
    width: 100%;
  }

  img {
    max-width: 100%;
  }

  .project-item,
  .skill-card,
  .process-board,
  .contact-card,
  .phone-unit,
  .stage-card,
  .admin-showcase figure,
  .comparison-card,
  .feature-matrix > div {
    break-inside: avoid;
  }

  .phone-cluster,
  .admin-showcase,
  .data-strip,
  .stage-row,
  .process-grid,
  .skill-grid,
  .project-row-2,
  .feature-matrix {
    display: grid !important;
  }

  .phone-cluster {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }

  .phone-cluster.cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }

  .admin-showcase,
  .process-grid,
  .skill-grid,
  .feature-matrix,
  .project-row-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }

  .data-strip,
  .stage-row {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }

  .phone-unit {
    max-width: none !important;
    padding-top: 0 !important;
  }

  .feature-matrix > div {
    padding: 12px 0;
  }

  .feature-matrix span {
    font-size: 16px;
  }

  .feature-matrix p {
    font-size: 12px;
    line-height: 1.65;
  }

  .project-body,
  .project-meta {
    display: block;
  }

  a {
    text-decoration: none;
    color: inherit;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 820px) {
  .site-top {
    grid-template-columns: 1fr;
    width: min(100% - 28px, 1180px);
    gap: 14px;
  }

  .brand-script {
    display: none;
  }

  .nav-links {
    grid-column: 1 / -1;
    justify-content: space-between;
    gap: 12px;
    order: 3;
    font-size: 13px;
    width: 100%;
    min-width: 0;
    transform: none;
  }

  .section-shell {
    width: min(100% - 30px, var(--max));
  }

  .hero {
    min-height: auto;
    padding: 76px 0 92px;
  }

  .hero-scene {
    flex-direction: column;
    gap: 32px;
  }

  .hero-photo-area {
    flex: 0 0 auto;
    width: 100%;
    min-width: 0;
    max-width: 320px;
  }

  .hero-text {
    text-align: center;
  }

  .hero-text .social-row,
  .hero-text .hero-actions {
    justify-content: center;
  }

  .intro-line {
    justify-content: center;
    flex-wrap: wrap;
  }

  .intro-line-extend {
    margin-right: 0;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 0 5px;
  }

  .intro-line-extend .txt-lg {
    font-size: clamp(0.95rem, 3.9vw, 1.25rem);
  }

  .intro-line-extend .txt-sm {
    font-size: 0.8rem;
  }

  .uni-badge {
    font-size: 10px;
    padding: 1px 4px;
  }

  .txt-xl {
    font-size: 2.35rem;
  }

  .txt-lg {
    font-size: 1.75rem;
  }

  .page-title {
    font-size: clamp(58px, 18vw, 92px);
  }

  .hero-copy {
    font-size: 15px;
    line-height: 1.85;
  }

  .section-gap {
    padding: 82px 0;
  }

  .skill-grid,
  .project-body,
  .research-strip,
  .img-grid-2,
  .project-row-2,
  .stage-row,
  .workflow-lane,
  .process-grid,
  .feature-matrix,
  .chengshang-phone-row,
  .admin-showcase {
    grid-template-columns: 1fr;
  }

  .stage-card {
    gap: 8px;
  }

  .stage-label {
    font-size: 16px;
  }

  .project-row-2 .img-placeholder {
    min-height: 160px;
  }

  .img-grid-2 .img-placeholder {
    min-height: 200px;
  }

  .img-grid-2 {
    max-width: none;
  }

  .img-placeholder {
    min-height: 140px;
  }

  .project-section {
    margin-top: 48px;
  }

  .data-strip {
    flex-wrap: wrap;
  }

  .skill-card {
    min-height: auto;
  }

  .project-item {
    padding-bottom: 68px;
    margin-bottom: 68px;
  }

  .project-meta {
    grid-template-columns: 1fr 42px;
  }

  .project-image,
  .project-image.wide {
    min-height: 260px;
  }

  .interaction-layout {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .phone-cluster {
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(14px, 3vw, 24px);
    row-gap: 36px;
  }

  .chengshang-phone-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .chengshang-phone-row .phone-unit:nth-child(n) {
    grid-column: auto !important;
    max-width: 210px !important;
    padding-top: 0 !important;
  }

  .phone-unit {
    max-width: 200px;
  }

  .phone-unit:nth-child(1),
  .phone-unit:nth-child(2),
  .phone-unit:nth-child(3),
  .phone-unit:nth-child(4),
  .phone-unit:nth-child(5),
  .phone-unit:nth-child(6) {
    padding-top: 0;
  }

  .phone-unit:nth-child(odd) { padding-top: 24px; }

  .phone-label {
    font-size: 13px;
  }

  .project-notes {
    padding: 0;
  }

  .research-strip div {
    min-height: 116px;
  }

  .site-footer {
    width: min(100% - 30px, 1180px);
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .photo-stack .photo-b,
  .photo-stack.swapped .photo-a {
    transform: translate(3%, 3%) rotate(1.2deg);
  }

  .site-top {
    padding: 12px;
  }

  .brand-pill {
    font-size: 11px;
  }

  .nav-links {
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 2px;
  }

  .hero-actions .btn,
  .about-links a {
    flex: 1 1 0;
    min-width: 0;
    text-align: center;
  }

  .hero-actions,
  .about-links {
    width: 100%;
  }
}

/* ── 项目侧边圆点导航（DeepSeek 式） ── */
.project-dotnav {
  position: fixed;
  right: 26px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.project-dotnav.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.dotnav-item {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  text-decoration: none;
  pointer-events: auto;
}

.dotnav-dot {
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--soft);
  border: 1px solid var(--soft);
  transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.dotnav-item:hover .dotnav-dot {
  background: var(--accent);
  border-color: var(--accent);
}

.dotnav-item.active .dotnav-dot {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.3);
}

.dotnav-label {
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  opacity: 0;
  padding: 6px 0;
  font-size: 13px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(36, 37, 37, 0.08);
  transition: max-width 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
}

.project-dotnav:hover .dotnav-label {
  max-width: 240px;
  opacity: 1;
  padding: 6px 12px;
}

@media (max-width: 820px) {
  .project-dotnav {
    display: none;
  }
}
/* 项目标题块作为锚点时的滚动留白（避开吸顶导航） */
.project-meta {
  scroll-margin-top: 128px;
}

/* 悬浮信息卡片：轻度毛玻璃磨砂效果 */
.skill-card,
.comparison-card div,
.feature-matrix div,
.workflow-lane div,
.process-board,
.admin-showcase figure,
.research-strip div {
  -webkit-backdrop-filter: blur(8px) saturate(1.08);
  backdrop-filter: blur(8px) saturate(1.08);
}

@media (max-width: 820px) {
  .bg-scene,
  .bg-frost {
    display: none;
  }
}

/* 高校“双一流”徽标 */
.uni-badge {
  display: inline-flex;
  align-items: center;
  align-self: center;
  padding: 1px 7px;
  border-radius: 999px;
  border: 1px solid rgba(69, 100, 111, 0.32);
  background: rgba(232, 239, 240, 0.72);
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.5;
  white-space: nowrap;
}

/* projects section intro: left aligned */
#projects .section-head p:last-child {
  text-align: left;
}

/* 境读 V2：按任务链路组织新版小程序截图 */
.jingdu-showcase {
  align-items: start;
  margin-top: 30px;
  padding: 14px 0 6px;
}

.jingdu-showcase.cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.jingdu-showcase.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px;
}

.jingdu-showcase .phone-unit {
  width: 100%;
  padding-top: 0;
}

.jingdu-showcase.cols-4 .phone-unit {
  max-width: 238px;
}

.jingdu-showcase.cols-3 .phone-unit {
  max-width: 268px;
}

.jingdu-showcase.cols-4 .phone-unit:nth-child(1) { padding-top: 28px; }
.jingdu-showcase.cols-4 .phone-unit:nth-child(2) { padding-top: 0; }
.jingdu-showcase.cols-4 .phone-unit:nth-child(3) { padding-top: 36px; }
.jingdu-showcase.cols-4 .phone-unit:nth-child(4) { padding-top: 12px; }
.jingdu-showcase.cols-3 .phone-unit:nth-child(1) { padding-top: 30px; }
.jingdu-showcase.cols-3 .phone-unit:nth-child(2) { padding-top: 0; }
.jingdu-showcase.cols-3 .phone-unit:nth-child(3) { padding-top: 42px; }

.jingdu-showcase .phone-label {
  max-width: 260px;
  font-size: 13px;
  line-height: 1.75;
}

.section-figure {
  margin-top: 30px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 2px 10px rgba(35, 40, 36, 0.06);
}

.section-figure img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 820px) {
  .jingdu-showcase.cols-4,
  .jingdu-showcase.cols-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    row-gap: 42px;
  }

  .jingdu-showcase.cols-4 .phone-unit,
  .jingdu-showcase.cols-3 .phone-unit {
    max-width: 230px;
    padding-top: 0;
  }

  .jingdu-showcase .phone-unit:nth-child(odd) {
    padding-top: 22px;
  }
}

@media (max-width: 520px) {
  .jingdu-showcase.cols-4,
  .jingdu-showcase.cols-3 {
    grid-template-columns: 1fr;
    gap: 46px;
  }

  .jingdu-showcase.cols-4 .phone-unit,
  .jingdu-showcase.cols-3 .phone-unit,
  .jingdu-showcase .phone-unit:nth-child(odd) {
    max-width: 270px;
    padding-top: 0;
  }

  .jingdu-showcase .phone-label {
    max-width: 300px;
    font-size: 14px;
  }

  .section-figure {
    margin-top: 24px;
  }
}

/* 境读信息层级：主架构保留卡片，次级信息改为轻量列表 */
#project-jingdu .process-board {
  background: rgba(255, 253, 250, 0.7);
}

#project-jingdu .plain-points {
  gap: 0 34px;
  margin-top: 28px;
}

#project-jingdu .plain-points div {
  padding: 20px 0 22px;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

#project-jingdu .contrast-list {
  border-top: 1px solid var(--line);
}

#project-jingdu .contrast-list div {
  padding: 18px 0 20px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

#project-jingdu .conversion-steps {
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

#project-jingdu .conversion-steps div {
  min-height: 0;
  padding: 22px 18px;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

#project-jingdu .conversion-steps div:last-child {
  border-right: 0;
}

#project-jingdu .conversion-steps b {
  font-size: 28px;
}

#project-jingdu .delivery-steps {
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

#project-jingdu .delivery-steps .process-board {
  min-height: 0;
  padding: 26px 24px;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

#project-jingdu .delivery-steps .process-board:last-child {
  border-right: 0;
}

#project-jingdu .delivery-steps .process-board span {
  font-size: 30px;
}

@media (max-width: 820px) {
  #project-jingdu .plain-points {
    grid-template-columns: 1fr;
  }

  #project-jingdu .delivery-steps .process-board {
    padding: 24px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  #project-jingdu .delivery-steps .process-board:last-child {
    border-bottom: 0;
  }

  #project-jingdu .conversion-steps div {
    padding: 22px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  #project-jingdu .conversion-steps div:last-child {
    border-bottom: 0;
  }
}

/* 境读主章节与子章节层级 */
#project-jingdu .project-section:not(.subsection) {
  margin-top: 78px;
}

#project-jingdu .project-section:not(.subsection) > .section-label {
  padding-top: 24px;
  border-top: 1px solid var(--soft);
  font-size: 25px;
}

#project-jingdu .project-section.subsection {
  margin-top: 42px;
}

.subsection-label {
  margin: 0 0 18px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
}

@media (max-width: 820px) {
  #project-jingdu .project-section:not(.subsection) {
    margin-top: 62px;
  }

  #project-jingdu .project-section.subsection {
    margin-top: 34px;
  }
}

/* 成商未来：主次层级与轻量信息列表 */
#project-chengshang .project-section:not(.subsection) {
  margin-top: 78px;
}

#project-chengshang .project-section:not(.subsection) > .section-label {
  padding-top: 24px;
  border-top: 1px solid var(--soft);
  font-size: 25px;
}

#project-chengshang .project-section.subsection {
  margin-top: 42px;
}

#project-chengshang .plain-points {
  gap: 0 34px;
  margin-top: 28px;
}

#project-chengshang .plain-points div {
  padding: 20px 0 22px;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

@media (max-width: 820px) {
  #project-chengshang .project-section:not(.subsection) {
    margin-top: 62px;
  }

  #project-chengshang .project-section.subsection {
    margin-top: 34px;
  }

  #project-chengshang .plain-points {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .chengshang-phone-row {
    grid-template-columns: 1fr;
    gap: 46px;
  }

  .chengshang-phone-row .phone-unit:nth-child(n) {
    grid-column: auto !important;
    max-width: 270px !important;
    padding-top: 0 !important;
  }
}

/* ── 实习经历：与项目板块共用版式，指标条按三项展示 ── */
#internship .research-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 820px) {
  #internship .research-strip {
    grid-template-columns: 1fr;
  }
}

/* 实习板块：收紧章节间距，避免 01 与 02 之间留白过大 */
#internship .project-section {
  margin-top: 36px;
}

@media (max-width: 820px) {
  #internship .project-section {
    margin-top: 28px;
  }
}

/* 板块末位项目不再绘制底部隔离线与留白，避免与下一板块顶线形成双线 */
#projects .project-item:last-of-type,
#internship .project-item {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: 0;
}

/* ── 小标题统一楷体：保留与大标题相近的古风质感，字重更细 ── */
.section-label,
.subsection-label,
.stage-label,
.skill-card h3,
.project-meta h3,
.timeline-item h3,
.process-board h4,
.workflow-lane span,
.comparison-card span,
.feature-matrix span {
  font-family: "STKaiti", "KaiTi", "KaiTi_GB2312", "DFKai-SB", "Kaiti SC", serif;
  font-weight: 500;
  letter-spacing: 0.03em;
}

/* 小节标题（与正文字号接近）：加粗，与正文明显区分 */
.subsection-label {
  font-weight: 700;
}

/* 卡片内小标题：字号大于正文、字重适中 */
.stage-label {
  font-weight: 500;
}

.workflow-lane span {
  font-size: 17px;
  font-weight: 600;
}

.comparison-card span,
.feature-matrix span {
  font-size: 18px;
  font-weight: 600;
}
