/* ========== Hero ========== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 120px 60px 80px;
  isolation: isolate;
}
/* 单根细红线扫描 — 从下往上循环 */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: linear-gradient(
    180deg,
    transparent 0%,
    transparent 49.94%,
    rgba(230, 57, 70, 0.95) 50%,
    transparent 50.06%,
    transparent 100%
  );
  background-repeat: no-repeat;
  background-size: 100% 200%;
  background-position: 0 200%;
  /* 总周期 8s = 单次扫描 7s（速度同原 16s 版本约 60%）+ 1s 间隔；之前 16s/6s 是把 14s 单次扫描压缩了 */
  animation: heroScanLoop 8s 0.4s linear infinite;
  opacity: 0;
  z-index: -1;
}
@keyframes heroScanLoop {
  /* 单次扫描占 87.5%（7s/8s），剩 12.5%（1s）做下次扫描的间隔 */
  0%        { background-position: 0 200%; opacity: 0; }
  2%        { opacity: 1; }
  84%       { background-position: 0 -100%; opacity: 0.9; }
  87.5%, 100% { background-position: 0 -100%; opacity: 0; }
}
.hero > * { position: relative; z-index: 2; }

/* ===== Hero 入场动画 (stagger fade-in) ===== */
@keyframes heroFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero__top-mark,
.hero__case,
.hero__name,
.hero__sub,
.hero__deco-1,
.hero__deco-2,
.hero__log {
  animation: heroFadeIn 0.9s cubic-bezier(.2, .8, .25, 1) both;
}
.hero__top-mark { animation-delay: 0.15s; }
.hero__case     { animation: heroFadeUp 0.9s 0.35s cubic-bezier(.2, .8, .25, 1) both, casePulse 3s 1.6s infinite; }
.hero__name     { animation: heroFadeUp 1.2s 0.5s cubic-bezier(.2, .8, .25, 1) both; }
.hero__sub      { animation: heroFadeUp 0.9s 0.95s cubic-bezier(.2, .8, .25, 1) both; }
.hero__deco-1   { animation-delay: 1.1s; }
.hero__deco-2   { animation-delay: 1.2s; }
.hero__log      { animation-delay: 1.3s; }

/* hero__case 红框轻微脉冲 */
@keyframes casePulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(230, 57, 70, 0.45);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(230, 57, 70, 0);
  }
}

/* hero__top-mark 圆点呼吸 */
@keyframes topMarkPulse {
  0%, 100% {
    box-shadow: 0 0 14px rgba(255,255,255,0.6),
                0 0 0 0 rgba(255,255,255,0.4);
  }
  50% {
    box-shadow: 0 0 14px rgba(255,255,255,0.6),
                0 0 0 14px rgba(255,255,255,0);
  }
}
.hero__top-mark {
  animation: heroFadeIn 0.9s 0.15s cubic-bezier(.2, .8, .25, 1) both,
             topMarkPulse 2.6s 1s infinite;
}
.hero__scroll {
  margin-top: 60px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.25em;
  color: var(--text-faint);
  text-transform: uppercase;
}
.hero__scroll .arr-down {
  font-size: 14px;
  color: var(--accent);
  animation: arrDown 2.4s infinite;
}
@keyframes arrDown {
  0%, 100% { transform: translateY(0); opacity: 0.4; }
  50% { transform: translateY(6px); opacity: 1; }
}
.hero__top-mark {
  position: absolute;
  top: 64px; left: 50%; transform: translateX(-50%);
  width: 10px; height: 10px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 14px rgba(255,255,255,0.6);
}
.hero__case {
  margin-bottom: 38px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 8px 18px;
}
.hero__name {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(64px, 11vw, 168px);
  line-height: 0.86;
  letter-spacing: -0.02em;
  text-align: center;
  /* line-height 0.86 < 1，字形会溢出盒子约 0.2em；而 background-clip:text 的渐变
     只覆盖盒子范围，溢出的部分（J 的下伸部）拿不到颜色，看起来就是被切掉。
     用 padding-bottom 把盒子撑到下伸部之下，负 margin 抵消多出来的排版空间。 */
  padding-bottom: 0.2em;
  margin-bottom: -0.16em;
  background: linear-gradient(180deg, #ffffff 0%, #c9c9c9 52%, #6f6f6f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
  isolation: isolate;
}
/* 极轻微 glitch — 只在循环间歇触发 */
@keyframes heroGlitch {
  0%, 92%, 100% { transform: translate(0,0); filter: none; }
  93% { transform: translate(-1px, 0); filter: hue-rotate(8deg) contrast(1.06); }
  94% { transform: translate(1px, -1px); }
  95% { transform: translate(-2px, 1px); filter: hue-rotate(-6deg); }
  96% { transform: translate(0,0); }
}
.hero__name {
  animation: heroFadeUp 1.2s 0.5s cubic-bezier(.2, .8, .25, 1) both,
             heroGlitch 11s 5s infinite;
}
/* 让 hero__deco-2 portrait 框扫光改为复用 heroSweep（已删，重新定义） */
@keyframes heroSweep {
  0%   { background-position: 200% 0; }
  55%  { background-position: -120% 0; }
  100% { background-position: -120% 0; }
}
/* 红框跟在 GIGI 后面：内联块，随字号缩放，不用绝对定位 */
.hero__name .crosshair-mini {
  display: inline-block; vertical-align: 0.16em;
  position: relative;          /* 内部红点靠它定位，缺了就会跑到 h1 上去 */
  margin-left: 0.16em;
  width: 0.17em; height: 0.17em;
  border: 0.018em solid var(--accent);
  pointer-events: none;
}
.hero__name .crosshair-mini::after {
  content: '';
  position: absolute;
  width: 0.032em; height: 0.032em;
  background: var(--accent);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.hero__sub {
  /* 姓名标题 158px，副标题放大到 24px 后原来的 50px 间距显得挤。
     用 vh 跟着视口走，小屏不会把 hero 撑爆。 */
  margin-top: clamp(64px, 9vh, 110px);
  text-align: center;
  font-size: clamp(18px, 1.7vw, 25px);
  color: var(--text);
  line-height: 1.85;
  letter-spacing: 0.03em;
}
.hero__sub b { color: var(--accent); font-weight: 500; }
.hero__sub .muted { color: var(--text-dim); font-size: .74em; letter-spacing: .06em; }

.hero__deco-1 {
  position: absolute;
  top: 200px; left: 12%;
  transform: rotate(-2deg);
}
.hero__deco-1 .row { display: block; line-height: 1.6; }
.hero__deco-2 {
  position: absolute;
  top: 180px; right: 10%;
  width: 180px;
  background: linear-gradient(135deg, #1a1a1a, #0a0a0a);
  border: 1px solid var(--border-strong);
  transform: rotate(4deg);
  display: flex;
  flex-direction: column;
  padding: 10px;
}
.hero__deco-2 .photo-fake-bg {
  width: 100%;
  aspect-ratio: 1 / 0.85;        /* 占位斜纹时的默认比例 */
  background:
    repeating-linear-gradient(45deg, #1f1f1f 0 2px, #161616 2px 4px);
  margin-bottom: 6px;
  position: relative;
}
.hero__deco-2 .photo-fake-bg::after {
  content: '';
  position: absolute; inset: 8px;
  border: 1px dashed rgba(255,255,255,0.15);
}
.hero__deco-2 .photo-fake {
  display: block;
  width: 100%;
  height: auto;                  /* 按图片原比例自适应高度 */
  margin-bottom: 6px;
  position: relative;
  z-index: 1;
}
/* 没图时隐藏 img、显示占位；有图时反之 */
.hero__deco-2 .photo-fake:not([src]),
.hero__deco-2 .photo-fake[src=""] { display: none; }
.hero__deco-2.has-img .photo-fake-bg { display: none; }
.hero__deco-2 .photo-cap {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-dim);
  letter-spacing: 0.1em;
}
/* portrait 框 — 加扫光 + 边角红点装饰 */
.hero__deco-2::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    115deg,
    transparent 40%,
    rgba(230, 57, 70, 0.22) 50%,
    transparent 60%
  );
  background-size: 280% 100%;
  background-position: 200% 0;
  animation: heroSweep 8s 3s cubic-bezier(.4,.1,.25,1) infinite;
  z-index: 1;
}
.hero__deco-2::after {
  content: '';
  position: absolute;
  right: 6px; bottom: 22px;
  width: 6px; height: 6px;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  z-index: 2;
}
.hero__deco-2 .photo-fake-bg { z-index: 0; }

.hero__log {
  position: absolute;
  right: 8%; bottom: 26%;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  text-align: right;
  line-height: 1.9;
  opacity: 0.85;
}

.hero__3d {
  position: absolute;
  right: var(--hud-pad);
  bottom: 80px;
  width: 200px;
  border: 1px solid var(--border-strong);
  background: rgba(10,10,10,0.85);
  padding: 14px 16px;
  font-family: var(--font-mono);
}
.hero__3d .lab { font-size: 9px; color: var(--text-dim); letter-spacing: 0.2em; }
.hero__3d .big {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 600;
  margin: 4px 0 6px;
}
.hero__3d .avail { font-size: 10px; color: var(--accent); letter-spacing: 0.18em; }
.hero__3d .cube {
  position: absolute;
  left: 14px; bottom: 14px;
  width: 28px; height: 28px;
  border: 1.5px solid var(--accent);
  transform: rotate(45deg) skew(-10deg, -10deg);
}

/* ========== Section header (shared) ========== */
.section {
  position: relative;
  padding: 80px 60px 100px;
  border-top: 1px solid var(--border);
}
.section__head {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 40px;
  gap: 40px;
  flex-wrap: wrap;
}
.section__title {
  font-family: var(--font-serif);
  font-size: clamp(24px, 3.2vw, 48px);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1;
}
.section__title .slash {
  display: inline-block;
  width: 3px; height: 0.7em;
  background: var(--accent);
  margin: 0 0.4em -0.04em;
  transform: rotate(20deg);
}
.section__meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--text-dim);
  text-align: right;
  line-height: 1.9;
}
.section__meta .accent { color: var(--accent); }

/* ========== Projects：单列列表 + 就地展开 ==========
   原来的横向 slider、视图切换、跳二级页的 FLIP 过渡样式已整体移除。 */
.projects { position: relative; }

.projects__list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
}

.proj-item { border-bottom: 1px solid var(--border); }

/* 行本身现在是按钮（原来是 <a>），要清掉浏览器默认样式 */
.proj-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
  height: 108px;
  padding: 0 1.2rem 0 0;
  font: inherit;
  color: inherit;
  text-align: left;
  background: none;
  border: 0;
  cursor: pointer;
  transition: height .38s cubic-bezier(.4,.1,.25,1), background .3s;
}
.proj-row:hover { background: rgba(255,255,255,.025); }
.proj-item.is-open > .proj-row { background: rgba(255,255,255,.04); }

.proj-row__thumb {
  flex: none; width: 150px; height: 100%;
  overflow: hidden; background: #1a1a1a;
}
.proj-row__thumb-img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  background: linear-gradient(135deg, #232323, #141414);
  transition: transform .5s cubic-bezier(.4,.1,.25,1);
}
.proj-row:hover .proj-row__thumb-img { transform: scale(1.06); }

.proj-row__num {
  flex: none; width: 2.4rem;
  font-family: var(--mono, monospace);
  font-size: .78rem; letter-spacing: .06em;
  color: var(--muted, rgba(255,255,255,.4));
}

.proj-row__main { flex: 1 1 auto; min-width: 0; }
.proj-row__title {
  font-size: var(--fs-lg, 1.4rem); line-height: 1.25;
  transition: font-size .38s cubic-bezier(.4,.1,.25,1);
}
.proj-row:hover .proj-row__title,
.proj-item.is-open .proj-row__title { font-size: var(--fs-xl, 1.75rem); }
.proj-row__sub {
  margin-top: .34rem; font-size: .82rem; line-height: 1.5;
  color: var(--muted, rgba(255,255,255,.42));
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.proj-row__cat {
  flex: none; font-size: .74rem; letter-spacing: .08em;
  color: var(--muted, rgba(255,255,255,.42));
}

/* 展开指示：一个会转 45° 的加号 */
.proj-row__toggle {
  flex: none; position: relative; width: 20px; height: 20px;
  transition: transform .38s cubic-bezier(.4,.1,.25,1);
}
.proj-row__toggle::before,
.proj-row__toggle::after {
  content: ''; position: absolute; left: 50%; top: 50%;
  background: currentColor; opacity: .55;
  transition: opacity .3s;
}
.proj-row__toggle::before { width: 15px; height: 1px; transform: translate(-50%, -50%); }
.proj-row__toggle::after  { width: 1px; height: 15px; transform: translate(-50%, -50%); }
.proj-row:hover .proj-row__toggle::before,
.proj-row:hover .proj-row__toggle::after { opacity: 1; }
.proj-item.is-open .proj-row__toggle { transform: rotate(135deg); color: var(--accent, #e2372f); }

/* ---- 展开面板 ---- */
.proj-panel {
  overflow: hidden;
  height: 0;
  transition: height .42s cubic-bezier(.4,.1,.25,1);
}
.proj-panel[hidden] { display: none; }
.proj-panel__inner { padding: 0 1.2rem 3rem; }

/* 面板里直接复用 project-intro.css 的结构，只改几处「整页」假设 */
.proj-panel .p-intro__main { min-height: 0; }          /* 原本 100vh，会把每个面板撑成一屏 */
.proj-panel .p-intro__evidence { margin-top: 8px; }
.proj-panel .p-intro__layout { margin-top: 34px; }     /* 原本 70px，面板里太空 */
.proj-panel .p-intro__sidebar { position: static; }    /* sticky 在折叠容器里会跳 */

@media (max-width: 900px) {
  .proj-row { height: 92px; gap: 1rem; }
  .proj-row__thumb { width: 96px; }
  .proj-row__cat { display: none; }
  .proj-row__sub { display: none; }
  .proj-panel__inner { padding: .6rem 1rem 2.6rem 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  .proj-row, .proj-panel, .proj-row__toggle, .proj-row__title { transition: none; }
}

/* ========== Profile (snapshot) ========== */
.profile {
  display: grid;
  grid-template-columns: 320px 1fr 280px;
  grid-template-areas:
    "avatar report skills"
    "thoughts thoughts thoughts";
  gap: 28px;
}
.profile__panel--avatar { grid-area: avatar; }
.profile__panel--report { grid-area: report; }
.profile__panel--skills { grid-area: skills; }
.profile__panel--thoughts {
  grid-area: thoughts;
  cursor: pointer;
  padding: 0;
  background: transparent;
  border: none;
}
.profile__panel {
  background: rgba(20, 20, 20, 0.85);
  border: 1px solid var(--border);
  padding: 22px;
  position: relative;
}
.profile__panel--avatar {
  display: flex;
  flex-direction: column;
}
.profile__name {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.25em;
  text-align: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 18px;
}
.profile__avatar {
  width: 100%;
  aspect-ratio: 1/1.15;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(255,255,255,0.1), transparent 60%),
    repeating-linear-gradient(180deg, #1c1c1c 0 4px, #131313 4px 8px);
  position: relative;
  margin-bottom: 18px;
  overflow: hidden;
  isolation: isolate;
}
.profile__avatar.has-img {
  background:
    radial-gradient(ellipse at 50% 30%, rgba(255,255,255,0.04), transparent 60%),
    #0d0d0d;
}
.profile__avatar__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--avatar-pos, 50% 50%);
  transform: scale(var(--avatar-zoom, 1));
  transform-origin: var(--avatar-pos, 50% 50%);
  filter: grayscale(0.45) contrast(1.05);
  z-index: 1;
}
.profile__avatar::before {
  content: 'ID_FACE_ID: 99.8%';
  position: absolute;
  bottom: 6px; left: 6px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--accent);
  z-index: 2;
}
.profile__avatar::after {
  content: '';
  position: absolute;
  left: 8px; right: 8px;
  top: 60%;
  height: 1px;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
  animation: scan 3.2s linear infinite;
  z-index: 2;
}
/* scan：从底部出现 → 上移到顶部 → 淡出 → 间隔 → 重新从底部出现循环 */
@keyframes scan {
  0%        { top: 92%; opacity: 0; }
  4%        { opacity: 1; }
  84%       { top: 8%; opacity: 0.95; }
  88%, 100% { top: 8%; opacity: 0; }
}
.profile__meta {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 14px 18px;
  font-family: var(--font-mono);
  font-size: 11px;
}
.profile__meta dt { color: var(--text-faint); font-size: 9px; letter-spacing: 0.18em; margin-bottom: 4px; }
.profile__meta dd { color: var(--text); }
.profile__open {
  margin-top: 22px;
  border: 1px solid var(--accent-line);
  padding: 14px;
  background: var(--accent-soft);
}
.profile__open .pulse {
  display: inline-block;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  margin-right: 8px;
  animation: blink 1.4s infinite;
}
.profile__open .small { font-size: 9px; letter-spacing: 0.2em; color: var(--accent); }
.profile__open .big { font-family: var(--font-serif); font-size: 22px; margin-top: 4px; line-height: 1; }
.profile__open .ctx {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--text-dim);
  display: flex; justify-content: space-between;
}

.profile__panel--report {
  padding: 26px 30px;
}
.profile__report-head {
  display: flex; justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--accent);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--accent-line);
  margin-bottom: 22px;
}
.profile__report-head .ro { color: var(--text-faint); }
.profile__bio {
  font-size: var(--fs-base);   /* 14px：原 17 → 跟正文一致 */
  line-height: 1.75;
  color: var(--text);
  margin-bottom: 30px;
}
.profile__bio mark {
  background: var(--accent-soft);
  color: var(--accent);
  padding: 2px 6px;
  border: 1px solid var(--accent-line);
}
.profile__section { margin-top: 26px; }
.profile__section .lab {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--text-dim);
  margin-bottom: 14px;
}
.profile__entry {
  border-left: 2px solid var(--accent);
  padding: 4px 0 4px 16px;
  margin-bottom: 16px;
}
.profile__entry .top {
  display: flex; gap: 12px; align-items: center;
  margin-bottom: 6px;
}
.profile__entry .org {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.18em;
}
.profile__entry .yr {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  background: rgba(255,255,255,0.04);
  padding: 2px 8px;
  border: 1px solid var(--border);
}
.profile__entry .desc {
  color: var(--text);
  font-size: 14px;
}

.profile__panel--skills {
  padding: 22px;
}
.profile__skills-head {
  display: flex; justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--text-dim);
  margin-bottom: 18px;
}
.profile__skills-group { margin-bottom: 22px; }
.profile__skills-group .lab {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 12px;
}
.skill-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.skill-grid > span {
  border: 1px solid var(--border-strong);
  padding: 10px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-align: center;
  letter-spacing: 0.05em;
  transition: all .25s;
}
.skill-grid > span:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

.profile__more {
  margin-top: 30px;
  text-align: center;
}

/* ========== Thoughts card（参考 killianherzer "PROTOCOL_ALT" 卡） ========== */
.thoughts-card {
  position: relative;
  border: 1px solid var(--accent-line);
  background: linear-gradient(135deg, rgba(230, 57, 70, 0.05), rgba(15, 15, 15, 0.92));
  padding: 34px 34px 40px;
  min-height: 300px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 200px 1fr 200px;
  grid-template-rows: auto 1fr;
  grid-template-areas:
    "labrow labrow labrow"
    "cube   copy   meta";
  gap: 18px 36px;
  align-items: center;
  transition: border-color .35s, box-shadow .5s, background .35s;
}
/* 四角红框装饰 */
.thoughts-card::before,
.thoughts-card::after {
  content: '';
  position: absolute;
  width: 14px; height: 14px;
  border: 1.5px solid var(--accent);
  opacity: 0.85;
  pointer-events: none;
}
.thoughts-card::before {
  top: 10px; left: 10px;
  border-right: none; border-bottom: none;
}
.thoughts-card::after {
  bottom: 10px; right: 10px;
  border-left: none; border-top: none;
}
/* 顶部小标行 */
.thoughts-card__lab-row {
  grid-area: labrow;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.28em;
  color: var(--accent);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--accent-line);
  text-transform: uppercase;
}

/* ===== 3D 线框立方体（CSS 6 面） ===== */
.thoughts-card__cube {
  grid-area: cube;
  position: relative;
  width: 130px; height: 130px;
  perspective: 600px;
  /* 立方体是 3D 旋转的，六个面的投影会扑出盒子约 30px，
     布局只按 130px 算，转起来就会顶到卡片底线被 overflow 切掉。
     这里把溢出量当外边距留出来。 */
  margin: 14px auto 36px;
  transform-style: preserve-3d;
  --c-size: 130px;
}
.thoughts-card__cube .cf {
  position: absolute;
  left: 50%; top: 50%;
  width: var(--c-size); height: var(--c-size);
  margin-left: calc(var(--c-size) / -2);
  margin-top:  calc(var(--c-size) / -2);
  border: 1.5px solid var(--accent);
  background: rgba(230, 57, 70, 0.04);
  box-sizing: border-box;
  transform-style: preserve-3d;
  backface-visibility: visible;
}
.thoughts-card__cube {
  transform: rotateX(-22deg) rotateY(-32deg);
  transition: transform .8s cubic-bezier(.65,.02,.2,1);
}
.thoughts-card__cube .cf--front  { transform: translateZ(calc(var(--c-size) / 2)); }
.thoughts-card__cube .cf--back   { transform: translateZ(calc(var(--c-size) / -2)) rotateY(180deg); }
.thoughts-card__cube .cf--right  { transform: rotateY(90deg)  translateZ(calc(var(--c-size) / 2)); }
.thoughts-card__cube .cf--left   { transform: rotateY(-90deg) translateZ(calc(var(--c-size) / 2)); }
.thoughts-card__cube .cf--top    { transform: rotateX(90deg)  translateZ(calc(var(--c-size) / 2)); }
.thoughts-card__cube .cf--bottom { transform: rotateX(-90deg) translateZ(calc(var(--c-size) / 2)); }
/* 内部 + 字标记（让线框不显得空） */
.thoughts-card__cube .cf::after {
  content: '+';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--accent);
  opacity: 0.45;
}
.thoughts-card:hover .thoughts-card__cube {
  transform: rotateX(-18deg) rotateY(28deg);
}

/* ===== 中间文案 ===== */
.thoughts-card__copy { grid-area: copy; }
.thoughts-card__title {
  font-family: var(--font-serif);
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.005em;
  color: var(--text);
  margin-bottom: 10px;
}
.thoughts-card__desc {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.7;
  max-width: 540px;
  margin-bottom: 20px;
}
/* 链接列表（多条独立可点） */
.thoughts-card__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.thoughts-card__link,
.thoughts-card__cta {     /* 兼容旧 cta 单按钮的样式（fallback） */
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 11px 18px;
  text-transform: uppercase;
  text-decoration: none;
  transition: background .3s, color .3s, transform .3s, border-color .3s;
}
.thoughts-card__link .arr,
.thoughts-card__cta .arr { transition: transform .35s; }
.thoughts-card__link:hover {
  background: var(--accent);
  color: #fff;
}
.thoughts-card__link:hover .arr { transform: translateX(4px); }
.thoughts-card:hover { border-color: var(--accent); box-shadow: 0 0 32px rgba(230, 57, 70, 0.18); }

/* ===== 右侧 metadata 列表 ===== */
.thoughts-card__meta {
  grid-area: meta;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  display: flex; flex-direction: column; gap: 14px;
  padding-left: 24px;
  border-left: 1px solid var(--border);
}
.thoughts-card__meta div { display: flex; justify-content: space-between; gap: 12px; }
.thoughts-card__meta dt { color: var(--text-faint); }
.thoughts-card__meta dd { color: var(--text); }
.thoughts-card__meta dd.t-online { color: var(--accent); }

@media (max-width: 1100px) {
  .profile {
    grid-template-areas: "avatar" "report" "skills" "thoughts" !important;
  }
  .thoughts-card {
    grid-template-columns: 130px 1fr;
    grid-template-areas:
      "labrow labrow"
      "cube copy"
      "meta meta";
    gap: 18px 24px;
  }
  .thoughts-card__cube { width: 110px; height: 110px; --c-size: 110px; margin: 12px auto 30px; }
  .thoughts-card__meta {
    flex-direction: row;
    border-left: none;
    border-top: 1px solid var(--border);
    padding: 16px 0 0;
    justify-content: space-between;
    flex-wrap: wrap;
  }
}
@media (max-width: 720px) {
  .thoughts-card {
    grid-template-columns: 1fr;
    grid-template-areas:
      "labrow"
      "cube"
      "copy"
      "meta";
    padding: 24px 22px;
    gap: 22px;
  }
  .thoughts-card__cube { width: 96px; height: 96px; --c-size: 96px; margin: 10px auto 26px; }
  .thoughts-card__title { font-size: 22px; }
}

/* ========== Footer ========== */
.site-foot {
  border-top: 1px solid var(--border);
  padding: 40px 60px 80px;
  display: flex; justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--text-faint);
}

@media (max-width: 1100px) {
  .profile { grid-template-columns: 1fr; }
  .hero__deco-1, .hero__deco-2, .hero__log, .hero__3d { display: none; }
}
@media (max-width: 720px) {
  /* 左边距按 --rail-w 让开固定左栏（32px），否则正文左边 14px 会压在它底下 */
  .section { padding: 56px 18px 72px calc(var(--rail-w) + 8px); }
  .section__head { gap: 18px; margin-bottom: 26px; }
  .section__title { font-size: clamp(24px, 7vw, 36px); }
  .section__meta { font-size: 9px; letter-spacing: 0.16em; line-height: 1.7; }

  .hero { padding: 92px 18px 60px calc(var(--rail-w) + 8px); }
  .hero::after { display: none; }
  .hero__top-mark { top: 50px; width: 8px; height: 8px; }
  .hero__case { margin-bottom: 22px; font-size: 10px; padding: 6px 14px; letter-spacing: 0.22em; }
  .hero__name {
    font-size: clamp(46px, 16vw, 96px);
    line-height: 0.9;
  }
  .hero__sub { margin-top: 28px; font-size: 17px; line-height: 1.8; padding: 0 4px; }
  .hero__scroll { margin-top: 38px; font-size: 9px; letter-spacing: 0.2em; }

  /* 原来这里有 max-height:70vh —— 横向滑动布局的残留。现在是纵向手风琴，
     它会把展开后 5000+px 的面板裁到 590px，溢出内容跑到区块外，
     后面的区块就压上来了。 */
  .proj-row {
    grid-template-columns: 80px 44px 1fr;
    gap: 14px;
    height: 76px;
    padding: 0 14px 0 0;
  }
  .proj-row:hover { height: 76px; background: transparent; }
  .proj-row__thumb { width: 80px; }
  .proj-row__cat, .proj-row__cta { display: none; }
  .proj-row__title { font-size: 16px; }

  /* Profile 三栏 → 单栏在 1100px 已处理；这里再优化字号与内边距 */
  .profile { gap: 18px; }
  .profile__panel { padding: 18px 16px; }
  .profile__panel--report { padding: 22px 18px; }
  .profile__avatar { aspect-ratio: 1/1.05; }
  .profile__bio { font-size: 13px; line-height: 1.7; margin-bottom: 22px; }
  .profile__open .big { font-size: 18px; }

  .skill-grid { grid-template-columns: 1fr 1fr; gap: 6px; }
  .skill-grid > span { padding: 8px 10px; font-size: 10px; }

  .site-foot {
    padding: 28px 18px 48px;
    flex-direction: column;
    gap: 6px;
    font-size: 9px;
    letter-spacing: 0.16em;
  }
}
@media (max-width: 420px) {
  .hero__name { font-size: 14vw; }
  .hero__sub { font-size: 15px; }
}


/* 实习条目下的公司定位（简历里每段都有，之前网站上丢了） */
.profile__entry .note {
  margin-top: .34rem;
  font-size: .72rem; line-height: 1.6;
  color: var(--muted, rgba(255,255,255,.45));
}


/* ============================================================
   SLOGAN —— 项目与关于之间的一段留白，用大字收一下节奏
   ============================================================ */
.slogan {
  position: relative;
  padding: 12vh 0 11vh;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.slogan__mark {
  font-family: var(--font-mono); font-size: 1.2rem;
  color: var(--accent); letter-spacing: .1em; margin-bottom: 1.6rem;
}
.slogan__line {
  /* 中文一个字约 1em，18 字需要 18em；ch 单位按「0」宽算，对中文只有一半，会误伤 */
  margin: 0 auto; max-width: 19em;
  font-family: var(--font-serif);
  font-size: clamp(26px, 3.6vw, 50px);
  line-height: 1.34; letter-spacing: -.01em;
  text-wrap: balance;
}
.slogan__line em { font-style: normal; color: var(--accent); }
.slogan__sub {
  margin: 1.7rem auto 0; max-width: none;      /* 一行放得下就别断 */
  font-size: clamp(13px, 1.25vw, 17px); line-height: 1.9;
  color: var(--text-dim); letter-spacing: .01em;
  white-space: nowrap;
}
@media (max-width: 860px) {
  .slogan__sub { white-space: normal; max-width: 34em; text-wrap: pretty; }
}



/* ============================================================
   能力图谱 —— 中心档案卡 + 六节点 + SVG 连线
   ============================================================ */
.cap { grid-column: 1 / -1; margin-top: 2.6rem; }





.atlas {
  position: relative; margin-top: 1px;
  min-height: 660px; padding: 2rem 1.8rem;
  border: 1px solid var(--border);
  background:
    linear-gradient(var(--border) 1px, transparent 1px) 0 0 / 100% 56px,
    linear-gradient(90deg, var(--border) 1px, transparent 1px) 0 0 / 56px 100%;
  overflow: hidden;
}
/* 四角定位角标 */
.atlas__corner { position: absolute; width: 18px; height: 18px; border: 1px solid var(--accent); }
.atlas__corner.tl { top: 12px; left: 12px; border-right: 0; border-bottom: 0; }
.atlas__corner.tr { top: 12px; right: 12px; border-left: 0; border-bottom: 0; }
.atlas__corner.bl { bottom: 12px; left: 12px; border-right: 0; border-top: 0; }
.atlas__corner.br { bottom: 12px; right: 12px; border-left: 0; border-top: 0; }

.atlas__hud, .atlas__coord {
  position: absolute; font-family: var(--font-mono); font-size: 10px;
  letter-spacing: .1em; color: var(--text-faint);
}
.atlas__hud { top: 14px; left: 40px; display: flex; gap: .4rem; align-items: center; }
.atlas__hud .accent { color: var(--accent); }
.atlas__coord { bottom: 14px; right: 40px; }

.atlas__wires { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.atlas__wires path {
  fill: none; stroke: var(--accent); stroke-width: 1.8;
  stroke-dasharray: 5 6; opacity: .55;
}
.atlas__wires circle { fill: var(--accent); opacity: .9; }

/* 中心档案卡 */
.atlas__center {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  z-index: 2;
}
.atlas__tag {
  display: flex; gap: 1rem; align-items: center;
  padding: 1rem 1.15rem; min-width: min(310px, 100%)   /* 写死 310px 时，加上图谱内边距正好 344，
                                    在 360px 屏上会把整个区块撑出 20px */;
  background: var(--bg-2); border: 1px solid var(--border-strong);
}
.atlas__tag-photo { flex: none; width: 72px; height: 88px; overflow: hidden; background: #1a1a1a; }
.atlas__tag-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.atlas__tag-info { display: flex; flex-direction: column; gap: .18rem; }
.atlas__tag-id { font-family: var(--font-mono); font-size: .62rem; letter-spacing: .12em; color: var(--accent); }
.atlas__tag-name { font-size: 1.32rem; letter-spacing: .02em; line-height: 1.2; }
.atlas__tag-role { font-size: .72rem; color: var(--text-dim); letter-spacing: .04em; }
.atlas__tag-bars {
  display: block; height: 9px; margin-top: .35rem;
  background: repeating-linear-gradient(90deg,
    var(--text-dim) 0 1px, transparent 1px 3px,
    var(--text-dim) 3px 5px, transparent 5px 6px,
    var(--text-dim) 6px 7px, transparent 7px 10px);
  opacity: .45;
}

/* 六个节点：绕中心分布 */
.atlas__node {
  position: absolute; z-index: 2; width: 168px;
  display: flex; flex-direction: column; gap: .2rem;
  padding: .6rem .7rem;
  background: var(--bg); border: 1px solid var(--border-strong);
  transition: border-color .25s, transform .25s;
}
.atlas__node:hover { border-color: var(--accent-line); transform: translateY(-2px); }
.atlas__node-code {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; color: var(--text-faint);
}
.atlas__node-code i { font-style: normal; color: var(--accent); margin-left: .35rem; }
.atlas__node-name { font-size: .86rem; font-weight: 600; letter-spacing: .01em; }
.atlas__node-sub { font-size: .7rem; line-height: 1.55; color: var(--text-dim); text-wrap: pretty; }

/* 悬停：卡片抬起、描边点亮、序号变强调色 */
.atlas__node {
  /* 位置和 transform 由 atlas.js 每帧写入，这里不能再加 transform 过渡 */
  transition: border-color .28s, box-shadow .28s, background .28s;
  will-change: transform, opacity;
}
.atlas__node:hover {
  border-color: var(--accent);
  background: var(--bg-2);
  box-shadow: 0 10px 30px rgba(0,0,0,.45), 0 0 0 1px rgba(230,57,70,.25);
  z-index: 4;
}
.atlas__node:hover .atlas__node-code i { color: var(--text); }
.atlas__node:hover .atlas__node-sub { color: var(--text); }
/* 悬停某个节点时，它那条连线变亮变粗 */
.atlas__wires line { stroke: var(--accent); stroke-width: 1.4; }
.atlas__wires line, .atlas__wires circle { transition: stroke-width .25s; }
.atlas__wires line.is-hot { stroke-width: 3; opacity: 1 !important; }
.atlas__wires circle.is-hot { r: 5; opacity: 1 !important; }

/* 图谱窄屏分档：卡片固定 206px，容器一窄就放不下同一个环，按宽度收 */
@media (max-width: 1340px) {
  .atlas__node { width: 160px; }
}
@media (max-width: 1180px) {
  .atlas { min-height: 700px; }
  .atlas__node { width: 152px; }
  .atlas__node-sub { font-size: .7rem; }
}
@media (max-width: 1000px) {
  .atlas { min-height: 860px; }  /* 轨道有地方长，卡片才不用缩太多 */
  .atlas__node { width: 160px; }
}

@media (max-width: 900px) {
  .atlas { min-height: 0; padding: 1.4rem 1rem; }
  .atlas__wires, .atlas__hud, .atlas__coord, .atlas__corner { display: none; }
  .atlas__center { position: static; transform: none; margin-bottom: 1rem; }
  .atlas__node { position: static; width: auto; margin-bottom: .5rem; }
}


/* ============================================================
   预约单 —— 填空式选择句，选完一键生成邮件
   ============================================================ */
.section--booking { padding: 10vh 0 8vh; text-align: center; }
.section--booking .section__kicker {
  font-family: var(--font-mono); font-size: .6rem; letter-spacing: .18em;
  color: var(--accent); margin-bottom: 1.1rem;
}
.slip-lead {
  font-family: var(--font-serif); font-weight: 400;
  font-size: clamp(26px, 3.4vw, 46px); line-height: 1.3;
  margin-bottom: 2.4rem;
}
.slip-lead em { font-style: normal; color: var(--accent); }

.slip {
  position: relative;
  max-width: 880px; margin: 0 auto; padding: 2rem 2.2rem 1.4rem;
  background: var(--panel-solid);
  border: 1px solid var(--border);
  text-align: left;
}
.slip__tag {
  font-family: var(--font-mono); font-size: .58rem; letter-spacing: .14em;
  color: var(--text-faint); margin-bottom: 1.5rem;
}
.slip__tag i { font-style: normal; color: var(--accent); }
/* 加急印章：微微倾斜，红框 */
.slip__stamp {
  position: absolute; top: 1.4rem; right: 2rem;
  padding: .35rem .7rem;
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .16em;
  color: var(--accent);
  border: 1px solid rgba(230, 57, 70, .5);
  transform: rotate(-6deg);
}

.slip__line {
  margin: 0 0 1.6rem;
  font-size: clamp(15px, 1.4vw, 19px); line-height: 2.6;
  color: var(--text);
}
/* 内嵌下拉：看着像句子里的填空，不像表单控件 */
.slip__sel { display: inline-block; position: relative; }
.slip__sel::after {
  content: '▾'; position: absolute; right: .45rem; top: 50%;
  transform: translateY(-50%); pointer-events: none;
  font-size: .6em; color: var(--accent);
}
.slip__sel select {
  appearance: none; -webkit-appearance: none;
  padding: .12em 1.5em .12em .55em;
  font: inherit; font-size: 1em;
  color: var(--accent); background: transparent;
  border: 0; border-bottom: 1px dashed var(--accent-line);
  cursor: pointer; outline: none;
}
.slip__sel select:hover { border-bottom-style: solid; }
.slip__sel select:focus-visible { background: var(--accent-soft); }
.slip__sel option { background: var(--bg-2); color: var(--text); }

.slip__foot {
  display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap;
  padding-top: 1.2rem; border-top: 1px solid var(--border);
}
.slip__cta {
  padding: .7rem 1.2rem;
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .12em;
  color: var(--accent); text-decoration: none;
  border: 1px solid rgba(230, 57, 70, .45);
  transition: background .25s, color .25s;
}
.slip__cta:hover { background: var(--accent); color: var(--bg); }
.slip__note { font-size: .66rem; letter-spacing: .06em; color: var(--text-faint); }

@media (max-width: 720px) {
  .slip { padding: 1.6rem 1.2rem 1.1rem; }
  .slip__stamp { top: 1rem; right: 1rem; }
  .slip__line { line-height: 2.4; }
}


/* thread 退到背景后，内容需要自己的层叠上下文才盖得住它。
   只提 .page 和板块本身，不碰 .rail/.hud 那些 fixed 元素（上次就是这么翻车的）。 */
.page { position: relative; z-index: 1; }
.thoughts-card, .atlas, .slip, .proj-item, .profile__panel { position: relative; z-index: 1; }


/* 最后一屏：编号标签 + 开放方向与回复时效 */
.section__kicker--center { text-align: center; }
.contact-end .section__kicker--center {
  font-family: var(--font-mono); font-size: .62rem; letter-spacing: .22em;
  color: var(--text-faint); margin-bottom: 1.1rem;
}
.contact-end__open {
  display: flex; align-items: center; justify-content: center;
  gap: .7rem; flex-wrap: wrap;
  margin-top: 1.6rem;
  font-family: var(--font-mono); font-size: .64rem; letter-spacing: .14em;
  color: var(--text-faint);
}
.contact-end__open .sep { color: var(--accent-line); }


/* 左栏 logo 光学对齐：「G.」按盒子居中时，句点会把重心拽右、G 反而偏左 3.4px，
   跟下方竖排的「关于」对不齐。让句点绝对定位、不参与居中，改按 G 的字形对齐。 */
/* 左栏 logo：行高必须锁死，否则「有没有包 <a>」会让 G 上下差 8px，切页面时跳 */
.rail__logo { text-align: center; line-height: 1; }
.rail__logo-g { line-height: 1; }
.rail__logo a { display: inline-block; text-decoration: none; color: inherit; }
.rail__logo-g { position: relative; display: inline-block; }
.rail__logo-g i {
  position: absolute; left: 100%; bottom: 0;
  font-style: normal;
}


/* 能力图谱标题改用通用 section__head，和「精选作品/关于」同一层级 */
.cap__head { margin-bottom: .6rem; }



/* 随手记条目：还没有链接的先只列标题，不能做出可点的样子 */
.thoughts-card__link.is-soon {
  cursor: default;
  border-style: dashed;
  opacity: .82;
}
.thoughts-card__link.is-soon:hover {
  background: transparent;
  color: var(--accent);
}
.thoughts-card__link.is-soon .arr { opacity: .5; }


/* ===== 联系方式里的二维码按钮 ===== */
.contact-end__qr-btn {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  letter-spacing: inherit;
}

/* ===== 二维码弹窗 ===== */
.qr-modal { position: fixed; inset: 0; z-index: 9200; display: flex;
  align-items: center; justify-content: center; opacity: 0; transition: opacity .2s; }
.qr-modal.is-on { opacity: 1; }
.qr-modal__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .82);
  backdrop-filter: blur(6px); }
.qr-modal__box {
  position: relative;
  background: #0f0f0f;
  border: 1px solid var(--accent-line);
  padding: 26px 26px 22px;
  text-align: center;
  transform: scale(.96);
  transition: transform .22s cubic-bezier(.2, .8, .3, 1);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .6);
}
.qr-modal.is-on .qr-modal__box { transform: scale(1); }
.qr-modal__tag { font-family: var(--font-mono); font-size: 10px; letter-spacing: .2em;
  color: var(--text-faint); margin-bottom: 14px; }
/* 二维码本身要留白才扫得到 —— 底色是黑的，这里给它一块白底 */
.qr-modal__img { display: block; width: 260px; height: auto; background: #fff; padding: 10px; }
.qr-modal__cap { margin-top: 14px; font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .14em; color: var(--accent); }
.qr-modal__x { position: absolute; top: 6px; right: 10px; background: none; border: 0;
  color: var(--text-dim); font-size: 20px; line-height: 1; cursor: pointer; padding: 4px; }
.qr-modal__x:hover { color: var(--accent); }

/* 预约单的备选入口：次要，别抢主按钮 */
.slip__alt { display: inline-block; margin-left: 18px; font-family: var(--font-mono);
  font-size: 11px; letter-spacing: .12em; color: var(--text-faint); text-decoration: none;
  border-bottom: 1px dotted var(--border); }
.slip__alt:hover { color: var(--accent); border-bottom-color: var(--accent); }

@media (max-width: 560px) {
  .qr-modal__img { width: 210px; }
  .slip__alt { display: block; margin: 12px 0 0; }
}


/* ===== 关于区：卡片按自身内容收边，不强行拉到同高 =====
   之前用 justify-content: space-between 把空白均摊，但那有个前提是子元素够多。
   技能栏只有两个子元素（标题 + 内容），行高一旦被更高的履历栏拉大，
   多出来的高度就全塞进那一个空隙 —— 英文模式 1200px 宽下能空出 308px。
   改成 align-self: start：卡片到内容为止，既没有中间的大洞，
   也没有底部的空框。三栏不再等高，但那是刻意的。 */
.profile__panel--avatar,
.profile__panel--skills { align-self: start; }
.profile__panel--skills { display: flex; flex-direction: column; }
.profile__panel--skills .profile__skills-group:last-child { margin-bottom: 0; }


/* ===== 预约卡片底部并进来的联系方式（原独立的最后一屏） ===== */
.slip__contact {
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px dashed var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
}
.slip__open {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--text-dim);
}
.slip__open .sep { color: var(--text-faint); margin: 0 .6em; }
/* 并进卡片后就不该再按整屏居中排版了 */
.slip__contact .contact-end__links {
  margin-top: 0;
  justify-content: flex-end;
  gap: 26px;
}

/* 红线终点白点：原来在最后一屏正中，现在落在预约区下方 */
.section--booking .thread__dot--bottom { margin: 56px auto 0; }

.site-foot {
  margin-top: 40px;
  padding-bottom: 60px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .22em;
  color: var(--text-faint);
  line-height: 2;
}

@media (max-width: 720px) {
  .slip__contact { flex-direction: column; align-items: flex-start; }
  .slip__contact .contact-end__links { justify-content: flex-start; gap: 18px; }
}


/* ===== 预约按钮：备选链接和时间备注删掉后，主按钮居中放大 ===== */
.slip__foot {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}
.slip__cta {
  font-size: 15px;
  letter-spacing: .2em;
  padding: 18px 46px;
}
@media (max-width: 560px) {
  .slip__cta { font-size: 13px; padding: 15px 26px; letter-spacing: .14em; }
}


/* ===== 触摸目标 =====
   这几个链接原来只有 17~23px 高，手机上点不准。
   撑到 44px 的可点区域，再用负外边距把占位抵消回去，视觉不变。 */
@media (hover: none), (max-width: 900px) {
  .thoughts-card__link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
  /* 不能用「内边距 + 负外边距」：这些链接在换行的 flex 里，
     负外边距会把两行拉到一起，44px 的命中区互相重叠。改用伪元素扩大。 */
  .contact-end__links a,
  .contact-end__links button,
  .btn-decrypt { position: relative; }
  .contact-end__links a::after,
  .contact-end__links button::after,
  .btn-decrypt::after {
    content: '';
    position: absolute;
    inset: -13px -6px;
  }
}


/* 左栏 / 语言切换 / 关闭键：同样点不准，但它们的位置是逐像素对过的
   （G 跨页对齐），加内边距会把对齐推掉。用伪元素扩大命中区，布局零影响。 */
@media (hover: none), (max-width: 900px) {
  .rail__logo a,
  .rail__honors,
  .lang-toggle button,
  .cv__close,
  .resume__back,
  .p-intro__close { position: relative; }
  .rail__logo a::after,
  .rail__honors::after,
  .lang-toggle button::after,
  .cv__close::after,
  .resume__back::after,
  .p-intro__close::after {
    content: '';
    position: absolute;
    inset: -14px -16px;
  }
}


/* 手机端「AI 产品经理 · 作品集」是要读的内容，不是 HUD 装饰标签，10px 偏小 */
@media (max-width: 900px) {
  .hero__case { font-size: 12px; }
}
