/* ============================================================
   构成主义设计系统 · CONSTRUCTIVIST DESIGN SYSTEM
   黄子杰 HUANG ZIJIE — huang.zj.cn
   红 / 黑 / 纸 · 楔形 / 圆 / 对角线 · Montserrat · Futura
   ============================================================ */

/* ---------- Fonts (local, no external requests) ---------- */
@font-face {
  font-family: 'Mont Bold';
  src: url('../fonts/montserrat-bold-webfont.woff2') format('woff2'),
       url('../fonts/montserrat-bold-webfont.woff') format('woff');
  font-weight: 700 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Futura GD';
  src: url('../fonts/FuturaBT-Medium_gdi.woff') format('woff'),
       url('../fonts/FuturaBT-Medium_gdi.ttf') format('truetype');
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --red:        #c8281b;
  --red-deep:   #9c1d12;
  --red-bright: #e6392b;
  --ink:        #17140f;
  --ink-soft:   #26221b;
  --paper:      #f1ead9;
  --paper-dim:  #e6dcc5;
  --paper-dark: #d8cdb2;
  --grey:       #6f675a;
  --grey-light: #9b9182;
  --font-disp:  'Mont Bold', 'Futura GD', 'Arial Black', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-lat:   'Futura GD', 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-body:  'PingFang SC', 'Microsoft YaHei', 'Segoe UI', system-ui, sans-serif;
  --gutter:     clamp(20px, 4vw, 64px);
  --maxw:       1360px;
  --ease-out:   cubic-bezier(.16, 1, .3, 1);
  --ease-io:    cubic-bezier(.77, 0, .175, 1);
  --noise: 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'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
  --halftone: radial-gradient(currentColor 1.1px, transparent 1.6px);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  overflow-x: hidden;
  background-image: var(--noise);
}
img { max-width: 100%; display: block; }
a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-deep); }
::selection { background: var(--red); color: var(--paper); }

h1, h2, h3, h4, h5 { font-family: var(--font-body); font-weight: 900; line-height: 1.25; margin: 0 0 .5em; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--read { max-width: 980px; }

/* ---------- Utilities: constructivist textures ---------- */
.tx-halftone { background-image: var(--halftone); background-size: 9px 9px; }
.tx-stripes {
  background-image: repeating-linear-gradient(-45deg,
    var(--ink) 0 14px, transparent 14px 28px);
}
.tx-stripes--red {
  background-image: repeating-linear-gradient(-45deg,
    rgba(200,40,27,.28) 0 10px, transparent 10px 20px);
}

/* ============================================================
   PRELOADER 装载序幕
   ============================================================ */
.loader {
  position: fixed; inset: 0; z-index: 1000;
  background: var(--ink);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 18px;
  transition: transform .8s var(--ease-io);
}
.loader.done { transform: translateY(-100%); }
.loader__wedge {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none;
}
.loader__wedge::before { /* red wedge rising from bottom-left */
  content: ''; position: absolute; left: -12vw; bottom: -30vh;
  width: 0; height: 0;
  border-left: 62vw solid var(--red);
  border-top: 34vh solid transparent;
  border-bottom: 34vh solid transparent;
  transform: translateX(-140%) skewX(-8deg);
  animation: wedgeIn 1.1s var(--ease-io) .1s forwards;
}
.loader__star {
  width: 84px; height: 84px; color: var(--paper);
  animation: starSpin 3.2s linear infinite;
  position: relative; z-index: 2;
}
.loader__pct {
  position: relative; z-index: 2;
  font-family: var(--font-disp); font-weight: 900;
  font-size: clamp(40px, 8vw, 72px); color: var(--paper);
  letter-spacing: .04em; font-variant-numeric: tabular-nums;
}
.loader__pct::after { content: '%'; font-size: .45em; color: var(--red-bright); margin-left: 2px; }
.loader__bar {
  position: relative; z-index: 2; width: min(320px, 60vw); height: 8px;
  background: rgba(241,234,217,.14);
}
.loader__bar i {
  display: block; height: 100%; width: 0%;
  background: repeating-linear-gradient(-45deg, var(--red) 0 10px, var(--red-bright) 10px 20px);
  transition: width .18s linear;
}
@keyframes wedgeIn { to { transform: translateX(0) skewX(-8deg); } }
@keyframes starSpin { to { transform: rotate(360deg); } }

/* ============================================================
   CURSOR 红色光标（仅桌面精确指针）
   ============================================================ */
.cursor-dot, .cursor-ring { display: none; }
@media (hover: hover) and (pointer: fine) {
  .cursor-dot, .cursor-ring {
    display: block; position: fixed; top: 0; left: 0; z-index: 999;
    pointer-events: none; border-radius: 50%;
    transform: translate(-50%, -50%);
    will-change: transform;
  }
  .cursor-dot {
    width: 10px; height: 10px; background: var(--red);
    mix-blend-mode: normal;
  }
  .cursor-ring {
    width: 42px; height: 42px;
    border: 2px solid var(--red);
    transition: width .25s var(--ease-out), height .25s var(--ease-out),
                border-color .25s, background-color .25s, opacity .25s;
    mix-blend-mode: difference;
    border-color: #e6392b;
  }
  body.cursor-hover .cursor-ring {
    width: 70px; height: 70px;
    background: rgba(200, 40, 27, .12);
  }
  body.cursor-hover .cursor-dot { opacity: 0; }
}

/* ============================================================
   HEADER 头部
   ============================================================ */
.hd {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  background: var(--ink);
  color: var(--paper);
  border-bottom: 3px solid var(--red);
  transform: translateY(0);
  transition: transform .45s var(--ease-io);
}
.hd.hide { transform: translateY(-102%); }
.hd__in {
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter);
  display: flex; align-items: stretch; height: 64px;
}
.hd__logo {
  display: flex; align-items: center; gap: 14px;
  color: var(--paper); font-family: var(--font-disp);
  text-decoration: none;
}
.hd__logo:hover { color: #fff; }
.hd__logo-mark { width: 34px; height: 34px; color: var(--red-bright); flex: none; }
.hd__logo b { font-size: 22px; font-weight: 900; letter-spacing: .12em; }
.hd__logo span {
  font-family: var(--font-lat); font-size: 11px; letter-spacing: .32em;
  color: var(--grey-light); font-weight: 500;
}
.hd__nav { margin-left: auto; display: flex; align-items: stretch; }
.hd__nav a {
  position: relative; display: flex; align-items: center;
  padding: 0 clamp(14px, 2vw, 26px);
  color: var(--paper); font-weight: 700; font-size: 15px;
  letter-spacing: .18em; text-decoration: none;
  overflow: hidden;
}
.hd__nav a::before { /* red slab slides up on hover */
  content: ''; position: absolute; inset: auto 0 0 0; height: 0;
  background: var(--red); transition: height .28s var(--ease-out);
  z-index: -1;
}
.hd__nav a:hover::before, .hd__nav a.on::before { height: 100%; }
.hd__nav a.on { color: #fff; }
.hd__nav a i { /* index numeral */
  font-family: var(--font-disp); font-style: normal; font-size: 11px;
  color: var(--red-bright); margin-right: 7px; letter-spacing: 0;
}
.hd__en {
  display: flex; align-items: center; padding: 0 clamp(12px, 1.6vw, 22px);
  color: var(--grey-light); font-family: var(--font-lat);
  font-size: 11px; letter-spacing: .22em; border-left: 1px solid #2c2820;
}
.hd__en:hover { color: var(--paper); }

/* progress wedge */
.hd__prog {
  position: absolute; left: 0; bottom: -3px; height: 3px; width: 100%;
  transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--paper), var(--paper-dim));
}

/* burger */
.burger {
  display: none; margin-left: auto; border: 0; background: none;
  padding: 10px 14px; cursor: pointer; color: var(--paper);
}
.burger svg { width: 30px; height: 30px; display: block; }
.burger span { display: block; width: 30px; height: 3px; margin: 5px 0; background: var(--paper); transition: .3s; }
.burger span:nth-child(2) { width: 20px; margin-left: auto; background: var(--red-bright); }
body.nav-open .burger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
body.nav-open .burger span:nth-child(2) { opacity: 0; }
body.nav-open .burger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* fullscreen mobile menu */
.mnav {
  position: fixed; inset: 0; z-index: 890;
  background: var(--ink);
  color: var(--paper);
  padding: 110px var(--gutter) 40px;
  display: flex; flex-direction: column;
  clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
  visibility: hidden;
  transition: clip-path .55s var(--ease-io), visibility 0s .55s;
}
body.nav-open .mnav {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  visibility: visible; transition: clip-path .55s var(--ease-io);
}
.mnav::before {
  content: ''; position: absolute; right: -80px; top: -60px;
  width: 320px; height: 320px; border-radius: 50%;
  border: 40px solid var(--red); opacity: .22;
}
.mnav a {
  display: flex; align-items: baseline; gap: 16px;
  color: var(--paper); text-decoration: none;
  font-weight: 900; font-size: clamp(30px, 8vw, 44px);
  padding: 12px 0; border-bottom: 1px solid #2b271f;
  opacity: 0; transform: translateX(-26px);
}
body.nav-open .mnav a {
  opacity: 1; transform: none;
  transition: opacity .5s var(--ease-out), transform .5s var(--ease-out);
}
body.nav-open .mnav a:nth-child(1) { transition-delay: .12s; }
body.nav-open .mnav a:nth-child(2) { transition-delay: .18s; }
body.nav-open .mnav a:nth-child(3) { transition-delay: .24s; }
body.nav-open .mnav a:nth-child(4) { transition-delay: .30s; }
body.nav-open .mnav a:nth-child(5) { transition-delay: .36s; }
.mnav a i { font-family: var(--font-disp); font-style: normal; font-size: 15px; color: var(--red-bright); }
.mnav__foot { margin-top: auto; font-family: var(--font-lat); font-size: 12px; letter-spacing: .2em; color: var(--grey-light); }

/* ============================================================
   HERO 主视觉
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column;
  background: var(--paper);
  overflow: hidden;
  padding-top: 64px;
}
/* rotating circle + halftone field */
.hero__circle {
  position: absolute; right: -8vw; top: -6vh;
  width: 52vw; height: 52vw; max-width: 820px; max-height: 820px;
  border-radius: 50%;
  background: var(--halftone); background-size: 11px 11px;
  color: rgba(23,20,15,.26);
  animation: slowspin 70s linear infinite;
  pointer-events: none;
}
.hero__art {
  position: absolute; right: -4vw; top: 4vh;
  width: clamp(320px, 48vw, 720px); aspect-ratio: 1/1;
  pointer-events: none; z-index: 1;
}
.hero__art svg { width: 100%; height: 100%; overflow: hidden; display: block; }
.hero__art .art-moon { transform-box: view-box; transform-origin: 390px 246px; animation: moonDrift 14s ease-in-out infinite; }
.hero__art .art-axis { transform-box: view-box; transform-origin: 390px 246px; animation: axisDrift 14s ease-in-out infinite; }
@keyframes moonDrift { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes axisDrift { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(8px); } }
@keyframes slowspin { to { transform: rotate(360deg); } }


.hero__in {
  position: relative; z-index: 2;
  flex: 1; display: flex; flex-direction: column; justify-content: center;
  max-width: var(--maxw); width: 100%; margin: 0 auto; padding: 40px var(--gutter) 90px;
}
.hero__kicker {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-lat); font-size: clamp(11px, 1.3vw, 14px);
  letter-spacing: .34em; color: var(--grey); font-weight: 600;
  margin-bottom: clamp(16px, 3vh, 30px);
}
.hero__kicker::before { content: ''; width: 46px; height: 12px; background: var(--red); transform: skewX(-24deg); }

.hero__name {
  font-family: var(--font-disp);
  font-weight: 900;
  font-size: clamp(64px, 15.5vw, 218px);
  line-height: .95;
  letter-spacing: .02em;
  margin: 0;
  display: flex; flex-wrap: wrap;
}
.hero__name .ch {
  display: inline-block; position: relative;
  transform: translateY(110%) rotate(4deg); opacity: 0;
}
.hero.in .hero__name .ch {
  transform: none; opacity: 1;
  transition: transform .9s var(--ease-out), opacity .6s;
}
.hero__name .ch:nth-child(1) { transition-delay: .05s; }
.hero__name .ch:nth-child(2) { transition-delay: .15s; }
.hero__name .ch:nth-child(3) { transition-delay: .25s; }
.hero__name .ch::after { /* hard offset print shadow */
  content: attr(data-ch);
  position: absolute; left: .055em; top: .055em; z-index: -1;
  color: var(--red);
}
/* 英文版姓名：整词呈现，单行不换行 */
.hero__name--en {
  font-size: clamp(38px, 7.4vw, 116px);
  letter-spacing: .01em;
  text-transform: uppercase;
  flex-wrap: nowrap;
}
.hero__name--en .ch--w { white-space: nowrap; }
.hero__name--en .sp { display: inline-block; }
.hero__latin--cn {
  font-family: var(--font-body); font-weight: 900;
  font-size: clamp(15px, 2.2vw, 26px); letter-spacing: .5em;
}
.hero__latin {
  font-family: var(--font-disp); font-weight: 900;
  font-size: clamp(15px, 2.6vw, 34px);
  letter-spacing: clamp(.18em, 2.6vw, .42em);
  color: var(--ink);
  margin: clamp(10px, 2vh, 22px) 0 0;
}
.hero__latin::after {
  content: ''; display: inline-block; width: .9em; height: .16em;
  background: var(--red); margin-left: .4em; vertical-align: middle;
  transform: skewX(-24deg);
}
.hero__role {
  display: inline-block; margin-top: clamp(14px, 2.4vh, 26px);
  background: var(--ink); color: var(--paper);
  font-weight: 700; font-size: clamp(13px, 1.6vw, 17px);
  letter-spacing: .3em; padding: 10px 22px 10px 26px;
  transform: skewX(-12deg); width: fit-content;
}
.hero__role > span { display: inline-block; transform: skewX(12deg); }
.hero__cta { display: flex; gap: 18px; margin-top: clamp(26px, 5vh, 54px); flex-wrap: wrap; }

/* vertical side label */
.hero__side {
  position: absolute; right: clamp(8px, 2vw, 30px); bottom: 120px; z-index: 3;
  writing-mode: vertical-rl;
  font-family: var(--font-lat); font-size: 11px; letter-spacing: .5em;
  color: var(--grey); font-weight: 600;
}
.hero__side b { color: var(--red); }

/* ============================================================
   MARQUEE 跑马灯横幅
   ============================================================ */
.marquee {
  position: relative; z-index: 3;
  background: var(--red); color: var(--paper);
  overflow: hidden;
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
  transform: rotate(-1.2deg) scale(1.02);
  margin: -26px 0 0;
}
.marquee--ink { background: var(--ink); }
.marquee__track {
  display: flex; width: max-content;
  animation: marquee 26s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__seg {
  display: flex; align-items: center; gap: 34px;
  padding: 12px 17px 12px 17px;
  font-family: var(--font-disp); font-weight: 900;
  font-size: clamp(15px, 2vw, 21px); letter-spacing: .14em;
  white-space: nowrap;
}
.marquee__seg svg { width: 16px; height: 16px; color: var(--paper); flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============================================================
   SECTIONS 通用板块
   ============================================================ */
.sec { position: relative; padding: clamp(64px, 9vw, 120px) 0; }
.sec--ink {
  background-color: var(--ink); color: var(--paper);
  background-image: repeating-linear-gradient(115deg, rgba(230, 57, 43, .055) 0 2px, transparent 2px 26px);
}
.sec--ink a { color: var(--red-bright); }
.sec--red { background: var(--red); color: var(--paper); }
.sec--paper2 {
  background-color: var(--paper-dim);
  background-image: repeating-linear-gradient(115deg, rgba(23, 20, 15, .04) 0 2px, transparent 2px 26px);
}

/* diagonal divider */
.diag { position: relative; z-index: 1; }
.diag--tr { clip-path: polygon(0 0, 100% 4vw, 100% 100%, 0 100%); margin-top: -4vw; padding-top: calc(4vw + clamp(64px, 9vw, 120px)); }
.diag--tl { clip-path: polygon(0 4vw, 100% 0, 100% 100%, 0 100%); margin-top: -4vw; padding-top: calc(4vw + clamp(64px, 9vw, 120px)); }

/* section header */
.sec__head { display: flex; align-items: flex-end; gap: clamp(16px, 3vw, 34px); margin-bottom: clamp(34px, 5vw, 60px); flex-wrap: wrap; }
.sec__idx {
  font-family: var(--font-disp); font-weight: 900;
  font-size: clamp(44px, 6vw, 84px); line-height: .85;
  color: transparent; -webkit-text-stroke: 2px var(--red);
}
.sec--ink .sec__idx { -webkit-text-stroke: 2px var(--red-bright); }
.sec__title { font-size: clamp(26px, 4.4vw, 48px); font-weight: 900; margin: 0; letter-spacing: .06em; }
.sec__sub {
  font-family: var(--font-lat); font-size: clamp(11px, 1.4vw, 13px);
  letter-spacing: .3em; color: var(--grey); font-weight: 600; margin: 0 0 6px;
}
.sec--ink .sec__sub { color: var(--grey-light); }
.sec__rule {
  flex: 1 1 120px; height: 10px; min-width: 80px; margin-bottom: 14px;
  background: repeating-linear-gradient(-55deg, var(--ink) 0 8px, transparent 8px 16px);
}
.sec--ink .sec__rule { background: repeating-linear-gradient(-55deg, var(--red) 0 8px, transparent 8px 16px); }

/* ============================================================
   BUTTONS 构成主义按钮
   ============================================================ */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body); font-weight: 800;
  font-size: 15px; letter-spacing: .22em;
  padding: 15px 30px 15px 34px;
  border: 3px solid var(--ink);
  color: var(--ink); background: var(--paper);
  transform: skewX(-12deg);
  box-shadow: 6px 6px 0 var(--ink);
  transition: transform .22s var(--ease-out), box-shadow .22s var(--ease-out), background .22s, color .22s;
  cursor: pointer; text-decoration: none; user-select: none;
}
.btn > * { transform: skewX(12deg); display: inline-flex; align-items: center; gap: 10px; }
.btn:hover { transform: skewX(-12deg) translate(-3px, -3px); box-shadow: 9px 9px 0 var(--ink); color: var(--ink); }
.btn:active { transform: skewX(-12deg) translate(2px, 2px); box-shadow: 3px 3px 0 var(--ink); }
.btn--red { background: var(--red); color: var(--paper); border-color: var(--ink); }
.btn--red:hover { background: var(--red-deep); color: var(--paper); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: var(--red); color: var(--paper); }
.btn--ghost { background: transparent; }

.btn--sm { padding: 8px 16px 8px 20px; font-size: 12.5px; box-shadow: 4px 4px 0 var(--ink); border-width: 2px; }
.btn--sm:hover { box-shadow: 6px 6px 0 var(--ink); }

/* inline text link with red underline slab */
.tlink {
  position: relative; font-weight: 700; color: inherit;
  background-image: linear-gradient(var(--red), var(--red));
  background-size: 100% 2px; background-position: 0 100%; background-repeat: no-repeat;
  transition: background-size .25s var(--ease-out), color .2s;
  padding-bottom: 1px;
}
.tlink:hover { background-size: 100% 100%; color: var(--paper); }

/* ============================================================
   STATS 数据横带
   ============================================================ */
.stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px; background: var(--ink); border: 3px solid var(--ink);
}
.stat { background: var(--paper); padding: 26px 20px 20px; position: relative; overflow: hidden; }
.stat:nth-child(even) {
  background-image: radial-gradient(rgba(23, 20, 15, .13) 1px, transparent 1.5px);
  background-size: 8px 8px;
}
.stat::after { content: ''; position: absolute; right: -22px; top: -22px; width: 44px; height: 44px; background: var(--red); transform: rotate(45deg); }
.stat__num {
  font-family: var(--font-disp); font-weight: 900;
  font-size: clamp(40px, 5vw, 64px); line-height: 1; color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.stat__num em { font-style: normal; font-size: .4em; color: var(--red); margin-left: 4px; letter-spacing: .08em; }
.stat__label { margin-top: 8px; font-size: 13px; font-weight: 700; letter-spacing: .12em; color: var(--grey); }

/* ============================================================
   PROFILE 简介
   ============================================================ */
.profile { display: grid; grid-template-columns: 210px 1fr; gap: clamp(30px, 5vw, 70px); align-items: start; }
.profile__photo { position: relative; }
.profile__photo img {
  border: 3px solid var(--ink);
  box-shadow: 9px 9px 0 var(--red);
  transition: transform .4s var(--ease-out);
}
.profile__photo:hover img { transform: translate(-3px, -3px); }
.profile__photo::before {
  content: 'PORTRAIT'; position: absolute; left: -14px; top: -30px;
  background: var(--ink); color: var(--paper);
  font-family: var(--font-lat); font-size: 11px; letter-spacing: .3em;
  padding: 5px 14px; transform: rotate(-2deg); z-index: 2;
}
.profile__pos { font-size: clamp(17px, 2vw, 21px); font-weight: 800; margin-bottom: 14px; }
.profile__mail { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 14px 0 20px; }
.profile__mail span {
  font-family: var(--font-lat); font-size: 14px; font-weight: 600;
  background: var(--paper-dim); border-left: 4px solid var(--red);
  padding: 6px 14px;
}
.tags { display: flex; flex-wrap: wrap; gap: 12px; }
.tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ink); color: var(--paper);
  font-weight: 700; font-size: 14px; letter-spacing: .1em;
  padding: 8px 18px; transform: skewX(-12deg);
}
.tag > span { transform: skewX(12deg); display: inline-block; }
.tag::before { content: ''; width: 8px; height: 8px; background: var(--red-bright); transform: rotate(45deg); }
.profile__bio { margin-top: 22px; max-width: 72ch; color: #3d372d; }

/* ============================================================
   NEWS 动态
   ============================================================ */
.news { border: 3px solid var(--ink); background: var(--paper); }
.news__item { display: flex; gap: 20px; padding: 16px 22px; align-items: baseline; }
.news__item + .news__item { border-top: 2px dashed var(--paper-dark); }
.news__date {
  flex: none; font-family: var(--font-disp); font-weight: 900;
  color: var(--red); font-size: 17px; letter-spacing: .04em; min-width: 84px;
  border-bottom: 3px solid var(--red);
}

/* ============================================================
   PUB CARDS 论文卡片
   ============================================================ */
.pubs { display: grid; gap: clamp(18px, 2.6vw, 30px); }
.pubcard {
  position: relative;
  background: var(--paper);
  color: var(--ink); /* 黑底板块内的卡片需覆盖继承的米白文字色 */
  border: 3px solid var(--ink);
  padding: clamp(20px, 3vw, 34px) clamp(22px, 3.4vw, 40px) clamp(20px, 3vw, 30px);
  display: grid; grid-template-columns: clamp(92px, 10vw, 132px) 1fr; gap: clamp(14px, 2.4vw, 30px);
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.pubcard:hover { transform: translate(-5px, -5px); box-shadow: 10px 10px 0 var(--red); }
/* 印刷裁切角标（构成主义印刷品格） */
.pubcard::before, .pubcard::after {
  content: ''; position: absolute; width: 15px; height: 15px;
  border: 0 solid var(--red); opacity: .85; pointer-events: none;
}
.pubcard::before { top: 9px; left: 9px; border-left-width: 2.5px; border-top-width: 2.5px; }
.pubcard::after { bottom: 9px; right: 9px; border-right-width: 2.5px; border-bottom-width: 2.5px; }
.pubcard__no {
  font-family: var(--font-disp); font-weight: 900;
  font-size: clamp(22px, 2.9vw, 36px); line-height: 1;
  color: var(--red); letter-spacing: 0;
  border-right: 3px solid var(--ink);
  display: flex; flex-direction: column; justify-content: space-between;
  padding-right: clamp(10px, 1.6vw, 20px);
  white-space: nowrap;
}
.pubcard__no small { font-size: 12px; letter-spacing: .2em; color: var(--grey); margin-top: 10px; }
.pubcard__body { min-width: 0; }
.pubcard__title { font-size: clamp(17px, 2vw, 21px); font-weight: 900; margin: 0 0 8px; line-height: 1.5; }
.pubcard__title a { color: inherit; }
.pubcard__title a:hover { color: var(--red); }
.pubcard__html { color: #3d372d; }
.pubcard__html strong { font-weight: 800; }
.pubcard__html em { font-family: var(--font-lat); font-style: italic; color: var(--ink); }
.pubcard__html a { font-weight: 700; white-space: nowrap; }
.pubcard__html br + br { display: none; }

.badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; align-items: center; }
.badge {
  font-family: var(--font-lat); font-size: 11px; font-weight: 700;
  letter-spacing: .12em; padding: 3px 10px;
  border: 2px solid currentColor; color: var(--grey);
}
.pubcard__tagno {
  font-family: var(--font-lat); font-size: 11.5px; font-weight: 700;
  letter-spacing: .08em; color: var(--paper);
  background: var(--ink); padding: 2px 9px; margin-left: 2px;
}
.badge--a { background: var(--red); border-color: var(--red); color: var(--paper); }
.badge--b { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.badge--t1 { background: var(--ink); border-color: var(--ink); color: var(--paper); box-shadow: inset 0 0 0 2px var(--paper), inset 0 0 0 4px var(--ink); }

/* ============================================================
   WORK 技术路线 / 代表作
   ============================================================ */
.routes { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 28px); }
.route {
  position: relative; border: 3px solid var(--ink); background: var(--paper);
  padding: clamp(22px, 3vw, 36px); overflow: hidden;
  transition: transform .3s var(--ease-out), box-shadow .3s;
}
.route:hover { transform: translate(-4px, -4px); box-shadow: 8px 8px 0 var(--ink); }
.route__no {
  position: absolute; right: -10px; bottom: -26px;
  font-family: var(--font-disp); font-weight: 900; font-size: 110px; line-height: 1;
  color: transparent; -webkit-text-stroke: 2px rgba(200,40,27,.5);
}
.route__no::after { content: ''; }
.route h3 { font-size: clamp(18px, 2.2vw, 24px); margin: 14px 0 10px; }
.route p { margin: 0; color: #3d372d; position: relative; z-index: 1; }
.route__bar { width: 52px; height: 12px; background: var(--red); transform: skewX(-24deg); }
.route::after {
  content: ''; position: absolute; top: 12px; right: 12px; width: 46px; height: 13px;
  background: repeating-linear-gradient(-45deg, var(--red) 0 6px, transparent 6px 12px);
}

/* accordion works */
.works { display: grid; gap: clamp(16px, 2.4vw, 26px); }
.work { border: 3px solid var(--ink); background: var(--paper); }
.work__head {
  display: flex; align-items: center; gap: clamp(14px, 2vw, 26px);
  padding: clamp(16px, 2.4vw, 26px) clamp(18px, 3vw, 34px);
  cursor: pointer; user-select: none;
  color: var(--ink); /* 黑底板块内收起状态的卡片头部需覆盖继承色 */
  transition: background .25s, color .25s;
}
.work__head:hover { background: var(--paper-dim); }
.work.open .work__head { background: var(--ink); color: var(--paper); }
.work__no {
  flex: none; width: 54px; height: 54px; background: var(--red); color: var(--paper);
  font-family: var(--font-disp); font-weight: 900; font-size: 24px;
  display: flex; align-items: center; justify-content: center;
  transform: rotate(45deg);
}
.work__no > span { transform: rotate(-45deg); }
.work__tw { flex: 1; min-width: 0; }
.work__title { margin: 0; font-size: clamp(16px, 2vw, 21px); font-weight: 900; }
.work__venue { font-family: var(--font-lat); font-size: 12px; letter-spacing: .2em; color: var(--red); font-weight: 700; }
.work.open .work__venue { color: var(--red-bright); }
.work__x {
  flex: none; width: 30px; height: 30px; position: relative;
}
.work__x::before, .work__x::after {
  content: ''; position: absolute; left: 50%; top: 50%;
  width: 22px; height: 3px; background: currentColor;
  transition: transform .35s var(--ease-io);
}
.work__x::before { transform: translate(-50%, -50%); }
.work__x::after { transform: translate(-50%, -50%) rotate(90deg); }
.work.open .work__x::after { transform: translate(-50%, -50%) rotate(0deg); }
.work__body {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .5s var(--ease-io);
  color: var(--ink); /* 覆盖 sec--ink 的米白文字，正文落在米白卡片上 */
}
.work.open .work__body { grid-template-rows: 1fr; }
.work__bodyin { overflow: hidden; }
.work__content {
  padding: clamp(18px, 3vw, 34px) clamp(18px, 3vw, 34px) clamp(24px, 3vw, 40px);
  border-top: 3px solid var(--ink);
}
.work__en { font-family: var(--font-lat); font-style: italic; color: var(--grey); margin: 0 0 12px; }
.work__meta { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 12px 0 6px; font-size: 15px; }
.work__meta b { color: var(--red-deep); }
.wsec { margin-top: 22px; }
.wsec__t {
  display: inline-block; background: var(--ink); color: var(--paper);
  font-weight: 800; font-size: 14px; letter-spacing: .2em;
  padding: 4px 14px; margin-bottom: 10px; transform: skewX(-12deg);
}
.wsec__t > span { display: inline-block; transform: skewX(12deg); }
.wsec p { margin: 0; color: #3d372d; }

/* ============================================================
   TIMELINE 教育经历
   ============================================================ */
.edu { position: relative; padding-left: clamp(28px, 4vw, 56px); }
.edu::before {
  content: ''; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 4px;
  background: repeating-linear-gradient(var(--red) 0 14px, transparent 14px 24px);
}
.edu__item { position: relative; padding: 0 0 clamp(22px, 3vw, 36px); }
.edu__item::before {
  content: ''; position: absolute; left: calc(-1 * clamp(28px, 4vw, 56px) + 1px); top: 8px;
  width: 18px; height: 18px; background: var(--ink);
  transform: rotate(45deg); border: 3px solid var(--paper);
}
.edu__item::after {
  content: ''; position: absolute; left: calc(-1 * clamp(28px, 4vw, 56px) + 7px); top: 14px;
  width: 6px; height: 6px; background: var(--red); transform: rotate(45deg);
}
.edu__period {
  font-family: var(--font-disp); font-weight: 900; color: var(--red-bright);
  font-size: clamp(17px, 2vw, 21px); letter-spacing: .04em;
}
.edu__school { font-size: clamp(18px, 2.2vw, 23px); font-weight: 900; margin: 4px 0 2px; }
.edu__major { color: var(--grey); }
.edu__degree {
  display: inline-block; margin-top: 8px;
  background: var(--red); color: var(--paper);
  font-size: 12.5px; font-weight: 700; letter-spacing: .18em;
  padding: 3px 12px;
}

/* 列表小标签（工作经历 / 教育经历） */
.listlab { margin: clamp(40px, 5vw, 60px) 0 clamp(18px, 2.6vw, 28px); }
.listlab:first-child { margin-top: 0; }
.listlab__t {
  display: inline-block; background: var(--ink); color: var(--paper);
  font-weight: 800; font-size: 14px; letter-spacing: .22em;
  padding: 6px 18px; transform: skewX(-12deg);
}
.listlab__t > span { display: inline-block; transform: skewX(12deg); }
.listlab::after { content: ''; display: block; height: 3px; background: var(--ink); margin-top: -2px; }

/* ============================================================
   SERVICE 学术服务
   ============================================================ */
.svc { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 36px); }
.svc__col { border-top: 6px solid var(--red); background: var(--ink-soft); padding: clamp(18px, 2.6vw, 30px); }
.svc__col h4 {
  font-size: 14px; letter-spacing: .3em; color: var(--red-bright);
  margin: 0 0 14px; font-weight: 800;
}
.svc__col p { margin: 0; font-size: 14.5px; line-height: 2; color: #cfc8b8; }

/* ============================================================
   LINKS 友链
   ============================================================ */
.links { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: clamp(18px, 2.6vw, 30px); }
.linkcard {
  position: relative; display: block;
  border: 3px solid var(--ink); background: var(--paper);
  padding: clamp(24px, 3vw, 38px) clamp(22px, 3vw, 34px);
  color: var(--ink); overflow: hidden;
  transition: transform .3s var(--ease-out), box-shadow .3s;
}
.linkcard:hover { transform: translate(-5px, -5px); box-shadow: 10px 10px 0 var(--red); color: var(--ink); }
.linkcard__arrow {
  position: absolute; right: 18px; top: 18px;
  font-family: var(--font-disp); font-weight: 900; font-size: 26px; color: var(--red);
  transition: transform .3s var(--ease-out);
}
.linkcard:hover .linkcard__arrow { transform: translate(4px, -4px); }
.linkcard__name { font-size: clamp(19px, 2.4vw, 24px); font-weight: 900; margin: 0 0 6px; }
.linkcard__field { font-family: var(--font-lat); font-size: 12px; letter-spacing: .2em; color: var(--grey); font-weight: 600; }
.linkcard::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 8px; width: 100%;
  background: repeating-linear-gradient(-45deg, var(--ink) 0 12px, transparent 12px 24px);
}

/* ============================================================
   FILTER PANEL 成果筛选控制台
   ============================================================ */
.filters {
  border: 3px solid var(--ink); background: var(--paper);
  box-shadow: 10px 10px 0 var(--ink);
  margin-bottom: clamp(30px, 4vw, 50px);
  position: sticky; top: 78px; z-index: 50;
}
.filters__bar {
  display: flex; align-items: center; gap: 14px;
  background: var(--ink); color: var(--paper);
  padding: 12px 20px; cursor: pointer; user-select: none;
}
.filters__bar b { font-family: var(--font-disp); letter-spacing: .14em; font-size: 15px; }
.filters__count { margin-left: auto; font-family: var(--font-disp); font-weight: 900; color: var(--red-bright); font-size: 18px; font-variant-numeric: tabular-nums; }
.filters__count small { color: var(--grey-light); font-size: 12px; font-weight: 600; margin-right: 4px; }
.filters__body { padding: clamp(16px, 2.4vw, 26px); display: none; }
.filters.open .filters__body {
  display: block;
  max-height: min(62vh, 560px);
  overflow-y: auto;
}
.filters__arrow { transition: transform .3s; }
.filters.open .filters__arrow { transform: rotate(180deg); }
.fgroup { margin-bottom: 16px; }
.fgroup__t {
  font-size: 12.5px; font-weight: 800; letter-spacing: .26em;
  color: var(--grey); margin-bottom: 10px;
  display: flex; align-items: center; gap: 10px;
}
.fgroup__t::after { content: ''; flex: 1; height: 2px; background: var(--paper-dark); }
.fchips { display: flex; flex-wrap: wrap; gap: 8px 10px; }
.fchip {
  display: inline-flex; align-items: center; gap: 8px;
  border: 2px solid var(--ink); padding: 6px 14px;
  font-size: 13.5px; font-weight: 700; cursor: pointer;
  user-select: none; transition: all .18s;
  background: var(--paper);
}
.fchip::before {
  content: ''; width: 10px; height: 10px; border: 2px solid var(--ink);
  background: transparent; transition: background .15s;
}
.fchip:hover { transform: translateY(-2px); box-shadow: 0 4px 0 var(--ink); }
.fchip.on { background: var(--red); border-color: var(--red); color: var(--paper); }
.fchip.on::before { border-color: var(--paper); background: var(--paper); }
.fyear select {
  font-family: var(--font-disp); font-weight: 900; font-size: 15px;
  border: 2px solid var(--ink); background: var(--paper);
  padding: 8px 14px; cursor: pointer; appearance: none;
}
.freset { margin-top: 6px; }

/* pub list groups */
.pubgroup__t {
  display: flex; align-items: center; gap: 16px;
  margin: clamp(34px, 4vw, 50px) 0 clamp(16px, 2vw, 24px);
}
.pubgroup__t h3 { margin: 0; font-size: clamp(19px, 2.6vw, 26px); letter-spacing: .1em; }
.pubgroup__t .n {
  font-family: var(--font-disp); font-weight: 900; font-size: 15px;
  background: var(--red); color: var(--paper); padding: 2px 12px;
}
.pubgroup__t::after { content: ''; flex: 1; height: 3px; background: var(--ink); }
.pubnote { font-size: 13.5px; color: var(--grey); }

/* ============================================================
   FOOTER 页脚
   ============================================================ */
.ft { background: var(--ink); color: var(--paper); position: relative; overflow: hidden; }
.ft::before {
  content: ''; position: absolute; right: -60px; bottom: -80px;
  width: 260px; height: 260px;
  background: var(--halftone); background-size: 10px 10px;
  color: rgba(241,234,217,.2);
}
.ft__top { clip-path: polygon(0 3vw, 100% 0, 100% 100%, 0 100%); background: var(--paper); height: 3vw; margin-bottom: -1px; }
.ft__in {
  max-width: var(--maxw); margin: 0 auto; padding: clamp(40px, 6vw, 80px) var(--gutter) 30px;
  display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: end; position: relative; z-index: 1;
}
.ft__name { font-family: var(--font-disp); font-weight: 900; font-size: clamp(34px, 6vw, 64px); line-height: 1; letter-spacing: .06em; }
.ft__name span { color: var(--red-bright); }
.ft__meta { font-family: var(--font-lat); font-size: 12px; letter-spacing: .22em; color: var(--grey-light); margin-top: 12px; }
.ft__star { width: clamp(70px, 9vw, 120px); height: clamp(70px, 9vw, 120px); color: var(--red); animation: slowspin 60s linear infinite; }
.ft__bot {
  border-top: 1px solid #2b271f; margin-top: 30px; padding-top: 20px;
  display: flex; flex-wrap: wrap; gap: 12px 30px; justify-content: space-between;
  font-size: 13px; color: var(--grey-light);
  position: relative; z-index: 1;
}
.ft__bot a { color: var(--grey-light); }
.ft__bot a:hover { color: var(--paper); }

/* ============================================================
   PAGE WIPE 页面转场（超尺寸斜切面板，无缺口）
   ============================================================ */
.pgwipe {
  position: fixed; inset: -25% -30%; z-index: 1200;
  pointer-events: none;
  transform: translateX(-125%) skewX(-9deg);
}
.pgwipe--ink { background: var(--ink); z-index: 1200; }
.pgwipe--red { background: var(--red); z-index: 1201; }
.pgwipe.in { transform: translateX(0) skewX(-9deg); }
.pgwipe--red { transition: transform .5s var(--ease-io); }
.pgwipe--ink { transition: transform .5s var(--ease-io) .09s; }

/* ============================================================
   REVEAL 滚动显现
   ============================================================ */
.rv { opacity: 0; transform: translateY(46px) rotate(-.6deg); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.rv.in { opacity: 1; transform: none; }
.rv[data-rvd="1"] { transition-delay: .08s; }
.rv[data-rvd="2"] { transition-delay: .16s; }
.rv[data-rvd="3"] { transition-delay: .24s; }
.rv[data-rvd="4"] { transition-delay: .32s; }
.rv[data-rvd="5"] { transition-delay: .40s; }
.rv-x { opacity: 0; transform: translateX(-56px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.rv-x.in { opacity: 1; transform: none; }

/* page banner (sub pages) */
.pgb {
  position: relative; padding: calc(64px + clamp(50px, 10vw, 110px)) 0 clamp(40px, 6vw, 70px);
  background: var(--red); color: var(--paper); overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 3vw), 0 100%);
}
.pgb::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 20px;
  background: repeating-linear-gradient(-45deg, rgba(23, 20, 15, .85) 0 11px, transparent 11px 22px);
}
.pgb__circle {
  position: absolute; right: -8vw; top: -10vw; width: 34vw; height: 34vw;
  border-radius: 50%; border: 3px solid rgba(241,234,217,.4);
}
.pgb__circle2 {
  position: absolute; right: 4vw; bottom: -14vw; width: 26vw; height: 26vw; max-width: 380px; max-height: 380px;
  background: var(--halftone); background-size: 10px 10px; color: rgba(241,234,217,.3);
}
.pgb__crumb { font-family: var(--font-lat); letter-spacing: .3em; font-size: 12px; font-weight: 600; margin-bottom: 14px; color: rgba(241,234,217,.75); }
.pgb__crumb a { color: var(--paper); }
.pgb__t { font-family: var(--font-disp); font-weight: 900; font-size: clamp(38px, 8vw, 84px); margin: 0; line-height: 1; letter-spacing: .04em; text-shadow: 5px 5px 0 rgba(23,20,15,.9); }
.pgb__d { margin-top: 14px; max-width: 640px; color: rgba(241,234,217,.85); }

/* ============================================================
   RESPONSIVE 响应式
   ============================================================ */
@media (max-width: 1080px) {
  .hd__nav a { padding: 0 14px; letter-spacing: .1em; font-size: 14px; }
  .profile { grid-template-columns: 180px 1fr; }
}
@media (max-width: 900px) {
  .hd__nav, .hd__en { display: none; }
  .burger { display: block; }
  .routes { grid-template-columns: 1fr; }
  .svc { grid-template-columns: 1fr; }
  .profile { grid-template-columns: 1fr; }
  .profile__photo { max-width: 180px; }
  .pubcard { grid-template-columns: 1fr; gap: 10px; }
  .pubcard__no { border-right: 0; border-bottom: 3px solid var(--ink); flex-direction: row; align-items: baseline; gap: 12px; padding: 0 0 10px; }
  .pubcard__no small { margin-top: 0; }
    .hero__art { width: 76vw; right: -34vw; top: 1vh; opacity: .6; }
  .hero__side { display: none; }
  .filters { position: static; }
  .ft__in { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 15px; }
  .hero__name { font-size: clamp(56px, 21vw, 90px); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .news__item { flex-direction: column; gap: 4px; padding: 14px 16px; }
  .btn { padding: 12px 20px 12px 24px; font-size: 13.5px; }
  .marquee { transform: rotate(-1.2deg) scale(1.06); }
  .pubcard { padding: 18px 16px; }
  .work__no { width: 42px; height: 42px; font-size: 18px; }
}

/* ============================================================
   MOTION SAFETY 无障碍
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01s !important; transition-duration: .01s !important; }
  .rv, .rv-x { opacity: 1; transform: none; }
  .hero__name .ch { transform: none; opacity: 1; }
  html { scroll-behavior: auto; }
}
