/* ============================================================
   陈亦航 · AI 产品经理作品集 — v2 高级感增强版
   设计语言：「纸上实验室」— 浅色科技极简风
   暖白图纸底 × 衬线大标题 × 墨色文字 × 电光钴蓝 × 等宽档案感
   v2 新增：胶片颗粒 / 逐行遮罩动效 / 幽灵数字 / 跑马灯 /
           旋转徽章 / 计数动画 / 阅读进度条 / 实时时钟
   ============================================================ */

/* ---------- Design Tokens ---------- */
:root {
  --paper: #fafaf7;
  --paper-raised: #ffffff;
  --ink: #17191d;
  --ink-70: rgba(23, 25, 29, 0.72);
  --ink-50: rgba(23, 25, 29, 0.52);
  --ink-35: rgba(23, 25, 29, 0.36);
  --line: rgba(23, 25, 29, 0.14);
  --line-strong: rgba(23, 25, 29, 0.32);
  --grid-line: rgba(23, 25, 29, 0.045);
  --accent: #2e5cff;
  --accent-deep: #1d3fcc;
  --accent-soft: rgba(46, 92, 255, 0.07);
  --accent-line: rgba(46, 92, 255, 0.35);

  --font-sans: "IBM Plex Sans", "Noto Sans SC", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-serif: "Noto Serif SC", "Songti SC", "SimSun", serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas,
    monospace;

  --wrap-max: 1160px;
  --radius: 2px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* 阅读进度条（由 JS 驱动） */
  --sp: 0;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background-color: var(--paper);
  /* 图纸网格底纹 */
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 76px 76px;
  -webkit-font-smoothing: antialiased;
}

/* 胶片颗粒噪点 — 全屏覆盖，高级印刷质感 */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

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

/* 细致滚动条 */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--paper);
}
::-webkit-scrollbar-thumb {
  background: var(--line-strong);
  border-radius: 99px;
  border: 3px solid var(--paper);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

img {
  max-width: 100%;
  display: block;
}

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.wrap {
  max-width: var(--wrap-max);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 48px);
}

.mono {
  font-family: var(--font-mono);
}

/* ---------- 阅读进度条 ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 120;
  background: linear-gradient(90deg, var(--accent), #7c9bff);
  transform-origin: left;
  transform: scaleX(var(--sp));
  pointer-events: none;
}

/* ---------- 页首导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(250, 250, 247, 0.86);
  backdrop-filter: blur(12px) saturate(1.4);
  -webkit-backdrop-filter: blur(12px) saturate(1.4);
}

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

.brand {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 15px;
  letter-spacing: 0.04em;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  align-self: center;
  background: var(--ink);
  color: var(--paper);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  transition: background 0.25s var(--ease-out);
}

.brand:hover .brand-mark {
  background: var(--accent);
}

.brand-sub {
  font-size: 11px;
  color: var(--ink-35);
  letter-spacing: 0.14em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 34px);
}

.nav-link {
  position: relative;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--ink-70);
  padding-block: 6px;
  transition: color 0.2s;
}

.nav-link i {
  font-style: normal;
  font-size: 10px;
  color: var(--accent);
  margin-right: 5px;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease-out);
}

.nav-link:hover {
  color: var(--ink);
}

.nav-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-link.is-active {
  color: var(--ink);
  font-weight: 500;
}

.nav-link.is-active::before {
  content: "";
  position: absolute;
  left: -11px;
  top: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateY(-50%);
}

.nav-cta {
  border: 1px solid var(--line-strong);
  padding: 7px 16px;
  border-radius: 999px;
  transition: all 0.25s var(--ease-out);
}

.nav-cta::after {
  display: none;
}

.nav-cta:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-block: clamp(72px, 13vh, 150px) clamp(56px, 9vh, 110px);
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  pointer-events: none;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(46, 92, 255, 0.1) 0%,
    rgba(124, 155, 255, 0.06) 40%,
    transparent 68%
  );
  top: -200px;
  right: -160px;
  animation: drift 14s ease-in-out infinite alternate;
}

@keyframes drift {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(-60px, 36px) scale(1.08);
  }
}

/* 旋转徽章 — OPEN TO WORK 圆环印章 */
.hero-badge {
  position: absolute;
  top: clamp(48px, 9vh, 100px);
  right: clamp(4px, 4vw, 56px);
  width: clamp(96px, 11vw, 128px);
  aspect-ratio: 1;
}

.hero-badge svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  animation: spin 24s linear infinite;
}

.hero-badge text {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.32em;
  fill: var(--ink-70);
  text-transform: uppercase;
}

.badge-core {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 26px;
  color: var(--accent);
}

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

@media (max-width: 900px) {
  .hero-badge {
    display: none;
  }
}

.hero-kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 26px;
}

.hero-kicker::before {
  content: "● ";
  animation: pulse 2.4s infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

.hero-name {
  position: relative;
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: 0.02em;
  font-size: clamp(52px, 10vw, 118px);
}

/* 中文主标题用衬线宋体 — 编辑级张力 */
.hero-name .line-mask:not(.hero-en) .lm-inner {
  font-family: var(--font-serif);
}

.hero-en {
  display: block;
  margin-top: 6px;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: clamp(22px, 4.6vw, 54px);
  letter-spacing: 0.18em;
  color: transparent;
  -webkit-text-stroke: 1px var(--line-strong);
  user-select: none;
}

.hero-tagline {
  margin-top: 34px;
  max-width: 580px;
  font-size: clamp(17px, 2vw, 20px);
  color: var(--ink-70);
}

.hero-tagline strong {
  color: var(--ink);
  font-weight: 600;
}

.hero-tagline em {
  font-style: normal;
  color: var(--accent);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-top: 40px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink-50);
  letter-spacing: 0.05em;
}

.hero-meta span::before {
  content: "/";
  margin-right: 10px;
  color: var(--accent);
}

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

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  letter-spacing: 0.05em;
  padding: 13px 26px;
  border-radius: var(--radius);
  border: 1px solid var(--ink);
  overflow: hidden;
  transition: all 0.3s var(--ease-out);
}

/* 流光扫过 */
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 32%,
    rgba(255, 255, 255, 0.28) 50%,
    transparent 68%
  );
  transform: translateX(-110%);
  transition: transform 0.65s var(--ease-out);
  pointer-events: none;
}

.btn:hover::before {
  transform: translateX(110%);
}

.btn-solid {
  background: var(--ink);
  color: var(--paper);
}

.btn-solid:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow:
    0 12px 32px rgba(46, 92, 255, 0.3),
    0 3px 10px rgba(46, 92, 255, 0.18);
}

.btn-ghost {
  border-color: var(--line-strong);
  color: var(--ink);
  background: transparent;
}

.btn-ghost:hover {
  border-color: var(--ink);
  background: var(--paper-raised);
  transform: translateY(-2px);
}

.btn > * {
  position: relative;
}

.btn .arrow {
  transition: transform 0.3s var(--ease-out);
}

.btn:hover .arrow {
  transform: translateX(4px);
}

/* ---------- 跑马灯横幅 ---------- */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--paper-raised);
  padding-block: 15px;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 38s linear infinite;
}

.marquee-track span {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-50);
  white-space: nowrap;
  padding-right: 2em;
}

.marquee-track em {
  font-style: normal;
  color: var(--accent);
  padding-inline: 0.6em;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

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

/* ---------- 区块标题 ---------- */
.section {
  padding-block: clamp(56px, 9vh, 104px);
}

/* 幽灵数字水印 */
.section[data-ghost] {
  position: relative;
}

.section[data-ghost]::after {
  content: attr(data-ghost);
  position: absolute;
  top: -6px;
  right: 0;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: clamp(88px, 13vw, 170px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(23, 25, 29, 0.075);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.section[data-ghost] > * {
  position: relative;
  z-index: 1;
}

.section-head {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-bottom: clamp(32px, 5vh, 52px);
}

.section-index {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.1em;
}

.section-title {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.section-rule {
  flex: 1;
  height: 1px;
  background: var(--line);
  transform-origin: left;
}

.section-head-note {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-35);
  letter-spacing: 0.08em;
  white-space: nowrap;
}

/* ---------- 项目卡片（蓝图框） ---------- */
.cards {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.card {
  position: relative;
  display: block;
  background: var(--paper);
  padding: clamp(28px, 4vw, 46px);
  transition: background 0.3s;
}

.card:hover {
  background: var(--paper-raised);
}

.card:hover .card-title {
  color: var(--accent-deep);
}

.card-title {
  transition: color 0.3s;
}

/* 角落十字准星 — hover 出现，呼应制图主题 */
.card::before,
.card::after {
  content: "+";
  position: absolute;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--accent);
  opacity: 0;
  transition: opacity 0.3s;
  line-height: 1;
}

.card::before {
  top: 10px;
  left: 12px;
}

.card::after {
  bottom: 10px;
  right: 12px;
}

.card:hover::before,
.card:hover::after {
  opacity: 1;
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 22px;
}

.card-no {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--accent);
}

.card-year {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-35);
  letter-spacing: 0.08em;
}

.card-title {
  font-size: clamp(24px, 3.2vw, 34px);
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 8px;
}

.card-title-en {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-35);
  letter-spacing: 0.14em;
  margin-bottom: 18px;
}

.card-desc {
  max-width: 62ch;
  color: var(--ink-70);
  margin-bottom: 24px;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.tag {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.05em;
  color: var(--ink-70);
  border: 1px solid var(--line);
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--paper);
  transition: all 0.25s var(--ease-out);
}

.card:hover .tag {
  border-color: var(--accent-line);
  color: var(--accent-deep);
}

.card-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 36px;
  padding-top: 20px;
  border-top: 1px dashed var(--line);
}

.metric-item {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-50);
}

.metric-item b {
  display: block;
  font-size: 21px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.metric-item b em {
  font-style: normal;
  color: var(--accent);
}

.card-go {
  position: absolute;
  right: clamp(24px, 4vw, 46px);
  bottom: clamp(24px, 4vw, 42px);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-50);
  transition: all 0.3s var(--ease-out);
}

.card:hover .card-go {
  color: var(--accent);
  transform: translateX(6px);
}

/* 卡片横向变体（项目列表页） */
.card-row {
  display: grid;
  grid-template-columns: minmax(120px, 200px) 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}

.card-side-no {
  font-family: var(--font-mono);
  font-size: clamp(48px, 7vw, 84px);
  font-weight: 400;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--line-strong);
  user-select: none;
  transition: all 0.4s var(--ease-out);
}

.card:hover .card-side-no {
  -webkit-text-stroke: 1px var(--accent);
  transform: translateX(6px);
}

@media (max-width: 720px) {
  .card-row {
    grid-template-columns: 1fr;
  }
  .card-side-no {
    font-size: 44px;
  }
}

/* ---------- 能力矩阵 ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

@media (max-width: 900px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

.cell {
  background: var(--paper);
  padding: clamp(24px, 3vw, 36px);
  transition: background 0.3s;
}

.cell:hover {
  background: var(--paper-raised);
}

.cell-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 16px;
}

.cell h3 {
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 14px;
}

.cell ul {
  list-style: none;
}

.cell li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 9px;
  color: var(--ink-70);
  font-size: 14.5px;
}

.cell li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 12px;
  top: 3px;
}

/* ---------- 数据速览条 ---------- */
.stats-band {
  border-block: 1px solid var(--line);
  background: var(--paper-raised);
}

.stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 720px) {
  .stats-inner {
    grid-template-columns: repeat(2, 1fr);
  }
}

.stat {
  padding: clamp(22px, 3vw, 36px) clamp(16px, 2.5vw, 32px);
  border-left: 1px dashed var(--line);
}

.stat:first-child {
  border-left: none;
}

@media (max-width: 720px) {
  .stat:nth-child(odd) {
    border-left: none;
  }
  .stat:nth-child(n + 3) {
    border-top: 1px dashed var(--line);
  }
}

.stat-num {
  font-family: var(--font-mono);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
}

.stat-num em {
  font-style: normal;
  color: var(--accent);
  font-size: 0.55em;
}

.stat-label {
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--ink-50);
}

/* ---------- 关于速览（首页） ---------- */
.about-brief {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

@media (max-width: 760px) {
  .about-brief {
    grid-template-columns: 1fr;
  }
}

.portrait-frame {
  position: relative;
  aspect-ratio: 3 / 3.6;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px),
    var(--paper-raised);
  background-size: 28px 28px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out);
}

.portrait-frame:hover img {
  transform: scale(1.04);
}

.portrait-placeholder {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-35);
  letter-spacing: 0.1em;
  line-height: 2;
  padding: 20px;
}

.portrait-placeholder::before {
  content: "◎";
  display: block;
  font-size: 34px;
  margin-bottom: 10px;
  color: var(--accent);
}

.portrait-frame figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  color: var(--ink-35);
  padding: 8px 12px;
  border-top: 1px dashed var(--line);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(4px);
}

.brief-text p {
  color: var(--ink-70);
  max-width: 60ch;
  margin-bottom: 16px;
}

.brief-text p strong {
  color: var(--ink);
}

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--accent);
  margin-top: 8px;
}

.link-more .arrow {
  transition: transform 0.3s var(--ease-out);
}

.link-more:hover .arrow {
  transform: translateX(5px);
}

/* ---------- 详情页：案例研究 ---------- */
.case-header {
  padding-block: clamp(48px, 8vh, 88px) clamp(32px, 5vh, 56px);
}

.crumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: var(--ink-50);
  margin-bottom: 34px;
  transition: color 0.2s;
}

.crumb:hover {
  color: var(--accent);
}

.case-no {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 16px;
}

.case-title {
  font-size: clamp(34px, 6vw, 64px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: 0.01em;
  max-width: 22ch;
  font-family: var(--font-serif);
}

.case-subtitle {
  margin-top: 18px;
  font-size: clamp(16px, 2vw, 19px);
  color: var(--ink-70);
  max-width: 58ch;
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}

@media (max-width: 800px) {
  .meta-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.meta-cell {
  background: var(--paper);
  padding: 20px 24px;
}

.meta-cell dt {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--ink-35);
  margin-bottom: 6px;
}

.meta-cell dd {
  font-size: 15px;
  font-weight: 500;
}

.case-figure {
  margin-block: clamp(36px, 6vh, 64px);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  overflow: hidden;
}

.case-figure .frame-inner {
  aspect-ratio: 2 / 1;
  display: grid;
  place-items: center;
  background:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px),
    var(--paper-raised);
  background-size: 30px 30px;
  overflow: hidden;
}

.case-figure .frame-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out);
}

.case-figure:hover .frame-inner img {
  transform: scale(1.03);
}

.case-figure figcaption {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--ink-35);
  padding: 10px 16px;
  border-top: 1px dashed var(--line);
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

/* 成果指标条 */
.results-band {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-block: clamp(32px, 5vh, 52px);
}

.result-cell {
  background: var(--paper-raised);
  padding: clamp(22px, 3vw, 34px);
}

.result-cell:hover {
  background: #fff;
}

.result-num {
  font-family: var(--font-mono);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
}

.result-desc {
  margin-top: 6px;
  font-size: 13.5px;
  color: var(--ink-70);
}

/* 正文排版 */
.prose {
  max-width: 74ch;
}

.prose section {
  padding-block: clamp(30px, 5vh, 52px);
  border-bottom: 1px dashed var(--line);
}

.prose section:last-of-type {
  border-bottom: none;
}

.prose h2 {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-size: clamp(21px, 3vw, 27px);
  font-weight: 700;
  margin-bottom: 20px;
}

.prose h2 .h-no {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 400;
  color: var(--accent);
  letter-spacing: 0.1em;
}

.prose p {
  color: var(--ink-70);
  margin-bottom: 14px;
}

.prose p strong {
  color: var(--ink);
  font-weight: 600;
}

.prose ul {
  list-style: none;
  margin: 14px 0;
}

.prose li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
  color: var(--ink-70);
}

.prose li::before {
  content: counter(list-item, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--accent);
}

.callout {
  margin-block: 30px;
  padding: 24px 28px;
  border-left: 2px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.85;
  color: var(--ink);
  font-family: var(--font-serif);
}

.callout::before {
  content: "METHOD NOTE";
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 10px;
  font-weight: 400;
}

/* 下一项目 */
.next-case {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-top: clamp(40px, 7vh, 80px);
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--paper-raised);
  transition: all 0.35s var(--ease-out);
}

.next-case:hover {
  border-color: var(--accent);
  box-shadow:
    0 24px 56px rgba(23, 25, 29, 0.09),
    0 6px 18px rgba(46, 92, 255, 0.1);
  transform: translateY(-3px);
}

.next-case .nc-label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.18em;
  color: var(--ink-35);
  margin-bottom: 8px;
}

.next-case .nc-title {
  font-size: clamp(19px, 3vw, 26px);
  font-weight: 700;
  font-family: var(--font-serif);
}

.next-case .nc-arrow {
  font-family: var(--font-mono);
  font-size: 26px;
  color: var(--ink-35);
  transition: all 0.3s var(--ease-out);
  flex-shrink: 0;
}

.next-case:hover .nc-arrow {
  color: var(--accent);
  transform: translateX(8px);
}

/* ---------- 时间线（关于页） ---------- */
.timeline {
  list-style: none;
  position: relative;
  padding-left: 30px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: repeating-linear-gradient(
    to bottom,
    var(--line-strong) 0 4px,
    transparent 4px 10px
  );
}

.timeline li {
  position: relative;
  padding-bottom: clamp(28px, 4vh, 44px);
}

.timeline li:last-child {
  padding-bottom: 0;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -30px;
  top: 9px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--accent);
}

.t-date {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 6px;
}

.t-title {
  font-size: 17.5px;
  font-weight: 600;
}

.t-org {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink-50);
  margin: 2px 0 10px;
  letter-spacing: 0.04em;
}

.t-desc {
  color: var(--ink-70);
  font-size: 14.5px;
  max-width: 66ch;
}

/* ---------- 论文列表 ---------- */
.pub-list {
  list-style: none;
}

.pub-list li {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 16px;
  padding-block: 18px;
  border-bottom: 1px dashed var(--line);
  transition: background 0.25s;
}

.pub-list li:hover {
  background: var(--accent-soft);
}

.pub-list li:last-child {
  border-bottom: none;
}

.pub-no {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  padding-top: 4px;
  letter-spacing: 0.06em;
}

.pub-title {
  font-weight: 600;
  font-size: 15.5px;
  line-height: 1.55;
}

.pub-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-50);
  margin-top: 4px;
  letter-spacing: 0.03em;
}

.pub-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--accent);
  border: 1px solid var(--accent-line);
  border-radius: 999px;
  padding: 1px 8px;
  margin-left: 8px;
  vertical-align: 2px;
}

/* ---------- 技能 Chips ---------- */
.skill-group {
  margin-bottom: 30px;
}

.skill-group h3 {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--ink-35);
  font-weight: 400;
  margin-bottom: 14px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  font-size: 13.5px;
  padding: 7px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--paper-raised);
  transition: all 0.25s var(--ease-out);
}

.chip:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(46, 92, 255, 0.12);
}

/* ---------- 页脚 ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--paper-raised);
  margin-top: clamp(48px, 8vh, 96px);
}

.footer-cta {
  padding-block: clamp(56px, 9vh, 100px) clamp(40px, 6vh, 64px);
  text-align: center;
}

.footer-cta .fc-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.24em;
  color: var(--accent);
  margin-bottom: 20px;
}

.footer-mail {
  display: inline-block;
  position: relative;
  font-size: clamp(26px, 5vw, 52px);
  font-weight: 700;
  letter-spacing: 0.01em;
}

.footer-mail::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease-out);
}

.footer-mail:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.footer-note {
  margin-top: 22px;
  color: var(--ink-50);
  font-size: 14.5px;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 30px;
  margin-top: 34px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.05em;
}

.footer-links a {
  color: var(--ink-70);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-bar {
  border-top: 1px dashed var(--line);
  padding-block: 20px;
}

.footer-bar .fb-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--ink-35);
}

.fb-clock {
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

/* ---------- 动效系统 ---------- */

/* 通用渐显上浮 */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.8s var(--ease-out),
    transform 0.8s var(--ease-out);
  transition-delay: var(--d, 0s);
}

[data-reveal].revealed {
  opacity: 1;
  transform: none;
}

/* 逐行遮罩升起 — 标题专用，更有"排版感" */
.line-mask {
  display: block;
  overflow: hidden;
}

.lm-inner[data-reveal] {
  opacity: 1;
  transform: translateY(112%);
  transition: transform 1s var(--ease-out);
  transition-delay: var(--d, 0s);
}

.lm-inner[data-reveal].revealed {
  transform: translateY(0);
}

/* ---------- v3：个人照片横幅 ---------- */
.profile-grid {
  display: grid;
  grid-template-columns: minmax(230px, 330px) 1fr;
  gap: clamp(32px, 6vw, 84px);
  align-items: center;
}

@media (max-width: 820px) {
  .profile-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
  }
}

.profile-photo {
  aspect-ratio: 4 / 5;
  width: 100%;
  position: relative;
}

/* 角落十字准星常显 — 档案感 */
.profile-photo .portrait-placeholder {
  position: absolute;
  inset: 18px;
  display: grid;
  place-items: center;
  text-align: center;
}

.profile-photo img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(92%) contrast(1.05);
  transition:
    filter 0.65s var(--ease-out),
    transform 0.8s var(--ease-out);
}

.profile-photo:hover img {
  filter: grayscale(0%) contrast(1);
  transform: scale(1.035);
}

.profile-kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

.profile-title {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: clamp(27px, 3.6vw, 44px);
  line-height: 1.32;
  margin-bottom: 22px;
}

.profile-text p {
  color: var(--ink-70);
  max-width: 56ch;
  margin-bottom: 14px;
}

.profile-text p strong {
  color: var(--ink);
}

/* ---------- v3：自定义光标 ---------- */
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 300;
  pointer-events: none;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s;
}

.cursor-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  transform: translate(-50%, -50%);
}

.cursor-ring {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(46, 92, 255, 0.55);
  transform: translate(-50%, -50%);
  transition:
    opacity 0.3s,
    width 0.3s var(--ease-out),
    height 0.3s var(--ease-out),
    background-color 0.3s,
    border-color 0.3s;
}

.cursor-ring.is-hover {
  width: 58px;
  height: 58px;
  background: rgba(46, 92, 255, 0.07);
  border-color: var(--accent);
}

html.custom-cursor,
html.custom-cursor * {
  cursor: none !important;
}

/* ---------- v3：视差与导航收起 ---------- */
.hero-glow {
  translate: calc(var(--mx, 0) * 34px) calc(var(--my, 0) * 22px);
  will-change: translate;
}

.hero-badge {
  translate: calc(var(--mx, 0) * 12px) calc(var(--my, 0) * 10px);
}

.site-header {
  transition:
    transform 0.4s var(--ease-out),
    background 0.3s,
    backdrop-filter 0.3s;
}

.site-header.is-hidden {
  transform: translateY(-100%);
}

/* ---------- v3：页面切换过渡 ---------- */
body.page-enter {
  animation: pageIn 0.55s var(--ease-out) both;
}

@keyframes pageIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

body.page-exit {
  opacity: 0;
  transition: opacity 0.2s ease;
}

/* ---------- v3：案例章节导航点 ---------- */
.case-dots {
  position: fixed;
  right: 26px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 60;
  display: none;
  flex-direction: column;
  gap: 16px;
}

@media (min-width: 1150px) {
  .case-dots.on {
    display: flex;
  }
}

.case-dots a {
  position: relative;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  transition:
    border-color 0.3s,
    background 0.3s,
    transform 0.3s var(--ease-out),
    box-shadow 0.3s;
}

.case-dots a:hover {
  border-color: var(--accent);
  transform: scale(1.3);
}

.case-dots a.active {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 5px var(--accent-soft);
}

.case-dots a .tip {
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-70);
  background: var(--paper-raised);
  border: 1px solid var(--line);
  padding: 4px 10px;
  border-radius: 2px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s var(--ease-out);
}

.case-dots a:hover .tip,
.case-dots a.active .tip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  [data-reveal],
  .lm-inner[data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
  }
  .marquee-track {
    animation: none !important;
  }
}
