/* TN personal portal — 布局旧站；动效/氛围按个人站加码（比中转更炫） */

:root {
  /* 近黑高级感：单色层级，无霓虹、无矩阵绿 */
  /* 暖黑 + 骨白：高级感靠色温与层级，不用死白/冷灰 */
  --bg: #0b0a09;
  --fg: #f3efe6;          /* 主字：骨白 */
  --ink: #f3efe6;
  --soft: #e6dfd2;        /* 正文：略沉一档 */
  --muted: #9c9488;       /* 辅文：暖灰，不脏 */
  --dim: rgba(243, 239, 230, 0.42);
  --line: rgba(243, 239, 230, 0.1);
  --line-strong: rgba(243, 239, 230, 0.16);
  --accent: #e8dcc6;      /* 强调：香槟骨色 */
  --accent-hot: #f7f1e6;
  --accent-dim: rgba(232, 220, 198, 0.1);
  --mint: #cfc6b6;
  --mint-hot: #f3efe6;
  --mint-dim: rgba(232, 220, 198, 0.08);
  --green: var(--accent);
  --green-hot: var(--accent-hot);
  --green-dim: var(--accent-dim);
  --cyan: #d2cbbd;
  --violet: #8a8278;
  --panel: rgba(16, 14, 12, 0.88);
  --card: rgba(15, 13, 12, 0.9);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1);
  --content-max: 1280px;
  --page-gutter: clamp(24px, 4vw, 48px);
  --mono: "SF Mono", "JetBrains Mono", "Cascadia Code", ui-monospace, monospace;
  --sans: "Inter", "PingFang SC", "Microsoft YaHei UI", "SF Pro Text", system-ui, sans-serif;
  --display: "Inter", "PingFang SC", "Microsoft YaHei UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html {
  background: var(--bg);
  color: var(--ink);
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: var(--sans);
  background: var(--bg);
  cursor: default;
}

a { color: inherit; text-decoration: none; }
a, button, .portal-card, .utility-launch { cursor: pointer; }

/* ========== STAGE ========== */
.fx-stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.aurora {
  position: absolute;
  inset: -25%;
  background:
    radial-gradient(ellipse 48% 38% at 18% 28%, rgba(232, 220, 198, 0.09) 0%, transparent 58%),
    radial-gradient(ellipse 42% 34% at 82% 18%, rgba(255, 248, 235, 0.05) 0%, transparent 55%),
    radial-gradient(ellipse 50% 42% at 58% 72%, rgba(180, 160, 130, 0.05) 0%, transparent 58%),
    radial-gradient(ellipse 36% 28% at 12% 78%, rgba(255, 255, 255, 0.03) 0%, transparent 55%);
  animation: auroraShift 12s ease-in-out infinite alternate;
  mix-blend-mode: screen;
  opacity: 1;
  filter: saturate(1.12);
}
@keyframes auroraShift {
  from { transform: translate3d(-3%, -2%, 0) scale(1) rotate(-1deg); opacity: 0.75; }
  to   { transform: translate3d(4%, 3%, 0) scale(1.08) rotate(1.5deg); opacity: 1; }
}

.grid-dots {
  position: absolute;
  inset: -80px;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.28) 1px, transparent 1.15px),
    radial-gradient(circle, rgba(255, 255, 255, 0.16) 1px, transparent 1.15px);
  background-size: 26px 26px, 26px 26px;
  background-position: 0 0, 13px 13px;
  animation: gridDrift 28s linear infinite;
  opacity: 0.5;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 20%, transparent 75%);
}
@keyframes gridDrift {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-26px, -26px, 0); }
}

.halo {
  position: absolute;
  left: 50%;
  top: 6%;
  width: min(1200px, 150vw);
  height: min(1200px, 150vw);
  margin: -32% 0 0 -50%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    rgba(255, 255, 255, 0.12) 40deg,
    transparent 90deg,
    rgba(255, 255, 255, 0.1) 160deg,
    transparent 210deg,
    rgba(255, 255, 255, 0.08) 280deg,
    transparent 330deg,
    rgba(255, 255, 255, 0.08) 360deg
  );
  animation: haloSpin 60s linear infinite;
  opacity: 0.85;
  mask-image: radial-gradient(circle, #000 0%, transparent 66%);
  -webkit-mask-image: radial-gradient(circle, #000 0%, transparent 66%);
}
@keyframes haloSpin { to { transform: rotate(360deg); } }

.breath {
  position: absolute;
  left: 50%;
  top: 20%;
  width: 78vw;
  height: 52vh;
  --bx: 0px;
  --by: 0px;
  transform: translate(calc(-50% + var(--bx)), calc(-30% + var(--by)));
  background: radial-gradient(
    ellipse at center,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.12) 28%,
    rgba(255, 255, 255, 0.08) 48%,
    transparent 68%
  );
  animation: breath 8s ease-in-out infinite;
}
@keyframes breath {
  0%, 100% {
    opacity: 0.55;
    transform: translate(calc(-50% + var(--bx)), calc(-30% + var(--by))) scale(1);
  }
  50% {
    opacity: 1;
    transform: translate(calc(-50% + var(--bx)), calc(-33% + var(--by))) scale(1.12);
  }
}

.orb-blob {
  --px: 0px;
  --py: 0px;
  position: absolute;
  border-radius: 50%;
  filter: blur(28px);
  opacity: 0.55;
  animation: orbFloat 18s var(--ease) infinite alternate;
}
.orb-a {
  width: 480px; height: 480px;
  left: -14%; top: -4%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.28), transparent 68%);
  animation-duration: 16s;
}
.orb-b {
  width: 420px; height: 420px;
  right: -12%; top: 24%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.22), transparent 70%);
  animation-duration: 20s;
  animation-delay: -4s;
}
.orb-c {
  width: 360px; height: 360px;
  left: 30%; bottom: -16%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.14), transparent 70%);
  animation-duration: 18s;
  animation-delay: -2s;
}
@keyframes orbFloat {
  from { transform: translate3d(var(--px), var(--py), 0) scale(1); }
  to   { transform: translate3d(calc(var(--px) + 40px), calc(var(--py) - 36px), 0) scale(1.14); }
}

#field {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.cursor-glow {
  position: absolute;
  width: 520px;
  height: 520px;
  margin: -260px 0 0 -260px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.16) 0%,
    rgba(255, 255, 255, 0.07) 34%,
    transparent 62%
  );
  transform: translate3d(-9999px, -9999px, 0);
  opacity: 0;
  transition: opacity 0.4s;
  will-change: transform;
}
body.has-pointer .cursor-glow { opacity: 1; }

.scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0, 0, 0, 0.03) 3px,
    rgba(0, 0, 0, 0.03) 4px
  );
  opacity: 0.25;
  pointer-events: none;
}
@keyframes scanFlicker {
  0%, 96%, 100% { opacity: 0.5; }
  97% { opacity: 0.7; }
  98% { opacity: 0.35; }
}

.grain {
  position: absolute;
  inset: 0;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
  mix-blend-mode: overlay;
  animation: none;
}
@keyframes grainShift {
  0% { transform: translate(0, 0); }
  33% { transform: translate(-1%, 1%); }
  66% { transform: translate(1%, -1%); }
  100% { transform: translate(0, 0); }
}

.vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 88% 68% at 50% 12%, transparent 30%, rgba(0, 0, 0, 0.62) 100%),
    linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.55));
}

/* ========== 布局（内容限宽居中，左右留边） ========== */
.stage {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding: clamp(18px, 3vw, 34px) var(--page-gutter);
  box-sizing: border-box;
}

.topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 44px;
  color: var(--muted);
  font: 600 12px/1 var(--mono);
  letter-spacing: 0.04em;
  margin-bottom: 8px;
  animation: riseIn 0.9s var(--ease-out) both;
  /* 顶栏三项都在内容壳内，不再 fixed 贴视口边 */
}

.visit-counter,
.contact-card {
  display: grid;
  gap: 6px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 14px 40px rgba(0, 0, 0, 0.32),
    0 0 24px rgba(255, 255, 255, 0.04);
  color: var(--muted);
  line-height: 1.2;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 12px;
  transition: border-color 0.3s, box-shadow 0.35s, transform 0.3s var(--ease);
}
.visit-counter:hover,
.contact-card:hover {
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 16px 44px rgba(0, 0, 0, 0.36),
    0 0 32px rgba(255, 255, 255, 0.1);
}

.visit-counter {
  position: relative;
  z-index: 4;
  flex: 0 0 auto;
  animation: riseIn 0.85s var(--ease-out) 0.05s both;
}

.mark {
  flex: 1 1 auto;
  text-align: center;
}

.contact-card {
  flex: 0 0 auto;
}

.visit-counter strong {
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  text-shadow: none;
  animation: none;
}
@keyframes numGlow {
  0%, 100% { text-shadow: 0 0 10px rgba(255, 255, 255, 0.25); }
  50% { text-shadow: 0 0 18px rgba(255, 255, 255, 0.55); }
}

.contact-card {
  min-width: 168px;
  text-align: right;
  border-color: rgba(255, 255, 255, 0.1);
  animation: riseIn 0.85s var(--ease-out) 0.12s both;
}
.contact-card span { white-space: nowrap; }
.contact-card b {
  color: var(--soft);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.mark {
  color: var(--fg);
  font-size: 15px;
  text-transform: none;
  letter-spacing: 0.06em;
  font-weight: 650;
  position: relative;
  animation: riseIn 0.85s var(--ease-out) 0.08s both;
  display: inline-block;
}
.mark span {
  color: var(--soft);
  font-weight: 650;
}
.mark::after {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: -6px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  transform: scaleX(0);
  transition: transform 0.4s var(--ease);
}
.mark:hover::after { transform: scaleX(1); }

/* Hero */
.hero {
  position: relative;
  min-height: min(62vh, 560px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(180px, 22vw, 280px);
  grid-template-rows: 1fr auto;
  column-gap: clamp(28px, 5vw, 80px);
  row-gap: clamp(22px, 3.5vh, 40px);
  align-items: center;
  isolation: isolate;
  margin-bottom: clamp(28px, 4vh, 48px);
}

.hero-copy {
  max-width: 100%;
  transform: translateY(-3vh);
  grid-column: 1;
  grid-row: 1;
  z-index: 2;
}

h1 {
  margin: 0;
  max-width: 18ch;
  display: grid;
  gap: clamp(12px, 1.4vw, 20px);
  font: 650 clamp(42px, 5.8vw, 76px) / 1.05 var(--display);
  letter-spacing: -0.03em;
  text-wrap: balance;
  perspective: 900px;
}

/*
  金属大标题：
  - 竖向 volume + 斜向拉丝
  - 骨白/暖银/香槟高光（贴合站点暖黑）
  - 慢扫光 + 入场上浮
*/
h1 > span {
  position: relative;
  width: fit-content;
  display: inline-block;
  padding: 0.04em 0.02em 0.08em;
  font-weight: 650;
  background-image:
    linear-gradient(
      185deg,
      rgba(255, 248, 235, 0.65) 0%,
      rgba(255, 255, 255, 0.14) 28%,
      rgba(0, 0, 0, 0) 48%,
      rgba(0, 0, 0, 0.2) 72%,
      rgba(0, 0, 0, 0.35) 100%
    ),
    linear-gradient(
      118deg,
      #3a3530 0%,
      #6a6258 8%,
      #a89f90 14%,
      #e8dfd0 20%,
      #fff8ee 24%,
      #ffffff 26%,
      #d8cfc0 30%,
      #7a7268 38%,
      #4a443c 42%,
      #c4b8a4 48%,
      #fff6e8 52%,
      #ffffff 54%,
      #e8dcc6 58%,
      #8a8278 66%,
      #4e483f 72%,
      #cfc4b4 80%,
      #f5efe4 86%,
      #ffffff 90%,
      #6a635a 96%,
      #3a3530 100%
    );
  background-size: 100% 100%, 280% 100%;
  background-position: 0 0, 100% 50%;
  background-blend-mode: soft-light, normal;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  /*
    阴影用 box-shadow 替代 filter:drop-shadow：
    filter 与 background-clip:text 叠在一起，iOS/微信会把大字渲糊。
    入场动画也禁止动 filter（blur↔drop-shadow 无法插值，易卡在糊态）。
  */
  filter: none;
  /* 轻投影：不进 filter 合成层，手机更稳 */
  text-shadow: 0 10px 28px rgba(0, 0, 0, 0.42);
  animation:
    titleIn 1.05s var(--ease-out) both,
    metalSheen 20s cubic-bezier(0.4, 0, 0.2, 1) 1.6s infinite;
  transform-origin: left center;
  will-change: background-position;
  backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
}

h1 > span:nth-child(1) { animation-delay: 0.12s, 1.6s; }
h1 > span:nth-child(2) { animation-delay: 0.28s, 2.1s; }

h1 > span + span {
  margin-left: clamp(20px, 3.5vw, 64px);
}

/* 去掉快速刷光层，只保留金属面慢扫 */
h1 > span::after {
  content: none !important;
  display: none !important;
}

/* 只动 opacity/transform，绝不碰 filter */
@keyframes titleIn {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* 金属慢扫：约 20s 一圈，大半时间静止 */
@keyframes metalSheen {
  0%, 22% { background-position: 0 0, 100% 50%; }
  48% { background-position: 0 0, 0% 50%; }
  58%, 100% { background-position: 0 0, 0% 50%; }
}

.tagline {
  margin: clamp(18px, 2.4vh, 26px) 0 0;
  max-width: 36em;
  font-size: clamp(14px, 1.4vw, 17px);
  line-height: 1.55;
  letter-spacing: 0.04em;
  color: var(--soft);
  opacity: 0;
  animation: riseIn 1s var(--ease-out) 0.55s both;
}
.tagline::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 10px;
  margin-bottom: 1px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(232, 220, 198, 0.25);
  vertical-align: middle;
  animation: none;
  opacity: 0.85;
}
@keyframes liveDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.25); opacity: 0.75; }
}
@keyframes riseIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* 3D 网络地球舞台（在「开始连接」后方/下方区域） */
.globe-stage {
  position: absolute;
  right: clamp(0px, 3vw, 40px);
  top: 50%;
  width: clamp(320px, 42vw, 580px);
  aspect-ratio: 1;
  transform: translateY(-40%);
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  animation: globeIn 1.2s var(--ease-out) 0.35s both;
  --gx: 0px;
  --gy: 0px;
}
@keyframes globeIn {
  from { opacity: 0; transform: translateY(-34%) scale(0.92); filter: blur(8px); }
  to { opacity: 1; transform: translateY(-40%) scale(1); filter: blur(0); }
}
.globe-stage canvas#globe {
  position: absolute;
  inset: 8%;
  width: 84%;
  height: 84%;
  border-radius: 50%;
  z-index: 2;
}
.globe-glow {
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%,
      rgba(255, 248, 235, 0.16) 0%,
      rgba(232, 220, 198, 0.08) 28%,
      transparent 62%);
  filter: blur(6px);
  z-index: 1;
  animation: globeBreath 5.5s ease-in-out infinite;
}
.globe-halo {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(232, 220, 198, 0.08) 0%,
    transparent 58%);
  z-index: 0;
}
.globe-core-soft {
  position: absolute;
  inset: 28%;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%,
    rgba(255, 248, 235, 0.12),
    rgba(20, 18, 16, 0.15) 55%,
    transparent 70%);
  z-index: 1;
  pointer-events: none;
}
.globe-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(232, 220, 198, 0.16);
  z-index: 3;
  left: 50%;
  top: 50%;
  transform-style: preserve-3d;
}
.globe-ring-a {
  width: 92%;
  height: 92%;
  margin: -46% 0 0 -46%;
  border-color: rgba(232, 220, 198, 0.2);
  animation: ringTiltA 18s linear infinite;
  box-shadow: 0 0 24px rgba(232, 220, 198, 0.05);
}
.globe-ring-b {
  width: 78%;
  height: 78%;
  margin: -39% 0 0 -39%;
  border-style: dashed;
  border-color: rgba(232, 220, 198, 0.14);
  animation: ringTiltB 12s linear infinite reverse;
}
.globe-ring-c {
  width: 104%;
  height: 42%;
  margin: -21% 0 0 -52%;
  border-color: rgba(232, 220, 198, 0.12);
  transform: rotateX(68deg);
  animation: ringOrbit 22s linear infinite;
}
@keyframes ringTiltA {
  from { transform: rotateX(66deg) rotateZ(0deg); }
  to { transform: rotateX(66deg) rotateZ(360deg); }
}
@keyframes ringTiltB {
  from { transform: rotateX(72deg) rotateY(12deg) rotateZ(0deg); }
  to { transform: rotateX(72deg) rotateY(12deg) rotateZ(360deg); }
}
@keyframes ringOrbit {
  from { transform: rotateX(68deg) rotateZ(0deg); }
  to { transform: rotateX(68deg) rotateZ(360deg); }
}
@keyframes globeBreath {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.04); }
}

/* 旧 orbit 样式保留兼容，页面已改用 globe-stage */
.orbit {
  display: none;
}

.ring,
.core {
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

.ring-c {
  inset: -6%;
  border: 1px solid rgba(184, 160, 255, 0.12);
  animation: spin 28s linear infinite;
  box-shadow: 0 0 40px rgba(184, 160, 255, 0.06) inset;
}
.ring-c::before {
  content: "";
  position: absolute;
  top: 18%;
  left: 8%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--violet);
  box-shadow: 0 0 16px var(--violet);
}

.ring-a {
  border: 1px solid rgba(255, 255, 255, 0.28);
  animation: spin 16s linear infinite;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.06) inset;
}
.ring-a::before,
.ring-b::before {
  content: "";
  position: absolute;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 22px var(--green), 0 0 40px rgba(255, 255, 255, 0.35);
}
.ring-a::before {
  top: 10%;
  left: 62%;
  animation: satPulse 2s ease-in-out infinite;
}
.ring-b {
  inset: 14%;
  border: 1px dashed rgba(126, 200, 255, 0.28);
  animation: spin 10s linear infinite reverse;
}
.ring-b::before {
  right: 4%;
  bottom: 24%;
  background: var(--cyan);
  box-shadow: 0 0 20px var(--cyan);
  animation: satPulse 2.4s ease-in-out infinite 0.4s;
}
@keyframes satPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.7; }
}

.core {
  inset: 30%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.22), transparent 58%),
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.12), transparent 50%),
    rgba(10, 10, 14, 0.78);
  backdrop-filter: blur(12px);
  box-shadow:
    0 0 80px rgba(255, 255, 255, 0.2),
    0 0 120px rgba(255, 255, 255, 0.08),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  animation: coreBreath 3.2s ease-in-out infinite;
  overflow: hidden;
}
.core-pulse {
  position: absolute;
  inset: -20%;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  animation: coreRing 2.8s ease-out infinite;
}
.core-txt {
  position: relative;
  z-index: 1;
  color: var(--fg);
  font: 650 clamp(28px, 4.5vw, 56px) / 1 var(--mono);
  letter-spacing: 0.06em;
  text-shadow:
    0 0 20px rgba(255, 255, 255, 0.45),
    0 0 40px rgba(255, 255, 255, 0.18);
  animation: coreText 3.2s ease-in-out infinite;
}
@keyframes coreBreath {
  0%, 100% {
    box-shadow:
      0 0 70px rgba(255, 255, 255, 0.16),
      0 0 100px rgba(255, 255, 255, 0.06),
      0 0 0 1px rgba(255, 255, 255, 0.04) inset;
    transform: scale(1);
  }
  50% {
    box-shadow:
      0 0 100px rgba(255, 255, 255, 0.32),
      0 0 140px rgba(255, 255, 255, 0.12),
      0 0 0 1px rgba(255, 255, 255, 0.06) inset;
    transform: scale(1.04);
  }
}
@keyframes coreRing {
  0% { transform: scale(0.7); opacity: 0.7; }
  100% { transform: scale(1.35); opacity: 0; }
}
@keyframes coreText {
  0%, 100% { opacity: 0.88; }
  50% { opacity: 1; }
}

/* 圆形主入口 */
.utility-strip {
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  align-self: center;
  display: grid;
  place-items: center;
  z-index: 3;
  animation: riseIn 1s var(--ease-out) 0.35s both;
}

.utility-launch {
  position: relative;
  width: clamp(118px, 13.5vw, 168px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  color: var(--fg);
  background:
    radial-gradient(circle at 50% 40%, rgba(255, 255, 255, 0.22), transparent 42%),
    radial-gradient(circle at 60% 70%, rgba(255, 255, 255, 0.12), transparent 45%),
    rgba(10, 10, 14, 0.78);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    0 0 48px rgba(255, 255, 255, 0.2),
    0 20px 56px rgba(0, 0, 0, 0.45);
  font: 600 12px/1 var(--mono);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  animation: launch-breathe 4.5s ease-in-out infinite;
  transition:
    border-color 0.25s,
    box-shadow 0.35s,
    transform 0.35s var(--ease-spring);
}
.utility-launch::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px dashed rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  animation: spin 12s linear infinite;
  pointer-events: none;
}
.utility-launch::after {
  content: "";
  position: absolute;
  inset: -14px;
  border: 1px solid rgba(126, 200, 255, 0.18);
  border-radius: 50%;
  animation: pulse-ring 2.2s ease-in-out infinite;
  pointer-events: none;
}
.utility-launch .ring-outer {
  position: absolute;
  inset: -28px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  animation: pulse-ring 2.8s ease-in-out infinite 0.4s;
  pointer-events: none;
}
.utility-launch strong {
  position: relative;
  z-index: 1;
  color: var(--fg);
  width: 5em;
  min-height: 2.2em;
  text-align: center;
  font: 650 clamp(13px, 1.1vw, 16px) / 1.15 var(--display);
  display: grid;
  place-items: center;
  letter-spacing: 0.04em;
  text-shadow: 0 0 14px rgba(255, 248, 235, 0.2);
}
.utility-arrow {
  position: absolute;
  right: 50%;
  bottom: 12%;
  transform: translateX(50%);
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  color: var(--accent-hot);
  font: 650 14px/1 var(--mono);
  background: rgba(8, 8, 12, 0.55);
  box-shadow: 0 0 14px rgba(255, 248, 235, 0.12);
  z-index: 1;
  transition: transform 0.3s var(--ease-spring), box-shadow 0.25s;
}
.utility-launch:hover,
.utility-launch:focus-visible {
  transform: translateY(-4px) scale(1.03);
  border-color: rgba(255, 255, 255, 0.65);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 0 72px rgba(255, 255, 255, 0.32),
    0 0 100px rgba(255, 255, 255, 0.12),
    0 24px 60px rgba(0, 0, 0, 0.5);
  outline: none;
}
.utility-launch:hover .utility-arrow {
  transform: translateX(50%) scale(1.08) rotate(-12deg);
  box-shadow: 0 0 28px rgba(255, 255, 255, 0.4);
}
.utility-launch:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 6px;
}

/* 快捷入口（略缩小，后续可加更多卡） */
.portal-section {
  grid-column: 1 / -1;
  grid-row: 2;
  align-self: end;
}
.portal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: clamp(10px, 1.5vw, 14px);
  perspective: 1200px;
  max-width: 720px;
}

/* 玻璃三卡：半透 + 轻磨砂 + 顶缘高光 */
.portal-card {
  position: relative;
  min-height: clamp(96px, 12vh, 128px);
  padding: clamp(12px, 1.4vw, 16px);
  border: 1px solid rgba(243, 239, 230, 0.14);
  border-radius: 16px;
  overflow: hidden;
  background:
    linear-gradient(
      155deg,
      rgba(255, 248, 235, 0.1) 0%,
      rgba(255, 255, 255, 0.03) 38%,
      rgba(12, 10, 9, 0.28) 100%
    ),
    rgba(18, 16, 14, 0.38);
  /* 三卡面积小，轻 blur 可接受；大模块不用这套 */
  backdrop-filter: blur(12px) saturate(1.08);
  -webkit-backdrop-filter: blur(12px) saturate(1.08);
  box-shadow:
    0 0 0 1px rgba(255, 248, 235, 0.05) inset,
    0 1px 0 rgba(255, 248, 235, 0.1) inset,
    0 14px 36px rgba(0, 0, 0, 0.28);
  transition:
    transform 0.35s var(--ease),
    border-color 0.3s,
    box-shadow 0.4s var(--ease),
    background 0.35s;
  color: inherit;
  font: inherit;
  text-align: left;
  width: 100%;
  appearance: none;
  opacity: 0;
  transform: translateY(28px) scale(0.97);
  animation: cardIn 0.85s var(--ease-out) both;
  transform-style: preserve-3d;
}
.portal-card:nth-child(1) { animation-delay: 0.55s; }
.portal-card:nth-child(2) { animation-delay: 0.68s; }
.portal-card:nth-child(3) { animation-delay: 0.81s; }

@keyframes cardIn {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* 顶缘玻璃高光条 */
.portal-card::before {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  top: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 248, 235, 0.45),
    transparent
  );
  opacity: 0.7;
  pointer-events: none;
  z-index: 2;
}

/* 鼠标跟随光斑 + 斜向玻璃层 */
.portal-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0.55;
  background:
    radial-gradient(
      220px circle at var(--mx, 50%) var(--my, 20%),
      rgba(255, 248, 235, 0.14),
      transparent 55%
    ),
    linear-gradient(
      125deg,
      rgba(255, 248, 235, 0.08) 0%,
      transparent 42%,
      transparent 100%
    );
  transition: opacity 0.3s;
  pointer-events: none;
  z-index: 0;
}
.portal-card:hover::after {
  opacity: 1;
}

.portal-card .card-inner {
  position: relative;
  z-index: 1;
}

.portal-card:hover,
.portal-card:focus-visible {
  border-color: rgba(232, 220, 198, 0.28);
  background:
    linear-gradient(
      155deg,
      rgba(255, 248, 235, 0.14) 0%,
      rgba(255, 255, 255, 0.05) 40%,
      rgba(14, 12, 11, 0.32) 100%
    ),
    rgba(22, 20, 18, 0.42);
  box-shadow:
    0 0 0 1px rgba(255, 248, 235, 0.08) inset,
    0 1px 0 rgba(255, 248, 235, 0.16) inset,
    0 22px 48px rgba(0, 0, 0, 0.38),
    0 0 32px rgba(232, 220, 198, 0.06);
  outline: none;
}
.portal-card:hover::before,
.portal-card:focus-visible::before {
  opacity: 1;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 248, 235, 0.65),
    transparent
  );
}

.card-inner {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: inherit;
}

.card-code {
  color: rgba(232, 220, 198, 0.45);
  font: 600 11px/1 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.portal-card h2 {
  margin: 8px 0 0;
  color: var(--fg);
  font: 550 clamp(16px, 1.5vw, 20px) / 1.15 var(--display);
  letter-spacing: -0.02em;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
  transition: transform 0.3s var(--ease), color 0.25s;
}
.portal-card:hover h2 {
  transform: translateX(2px);
  color: #fff8ee;
}

.card-foot {
  display: flex;
  justify-content: flex-end;
  align-items: end;
  gap: 12px;
  margin-top: 14px;
}

.launch {
  width: 30px;
  height: 30px;
  border: 1px solid rgba(232, 220, 198, 0.28);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--accent);
  font: 600 14px/1 var(--mono);
  background: rgba(255, 248, 235, 0.06);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: transform 0.35s var(--ease-spring), border-color 0.2s, box-shadow 0.3s, background 0.2s;
}
.portal-card:hover .launch {
  transform: translateX(3px) scale(1.06);
  border-color: rgba(232, 220, 198, 0.5);
  background: rgba(255, 248, 235, 0.1);
  box-shadow: 0 0 16px rgba(232, 220, 198, 0.12);
  background: rgba(255, 255, 255, 0.08);
}

.badge-local {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 6;
  font-size: 11px;
  color: var(--muted);
  border: 1px solid var(--line);
  background: rgba(12, 12, 16, 0.9);
  padding: 5px 9px;
  border-radius: 8px;
  opacity: 0.7;
  pointer-events: none;
}

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse-ring {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.04); }
}
@keyframes launch-breathe {
  0%, 100% {
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.05) inset,
      0 0 40px rgba(255, 255, 255, 0.16),
      0 20px 56px rgba(0, 0, 0, 0.45);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.08) inset,
      0 0 70px rgba(255, 255, 255, 0.32),
      0 0 90px rgba(255, 255, 255, 0.1),
      0 20px 56px rgba(0, 0, 0, 0.45);
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .grid-dots, .aurora, .halo, .grain, .scanlines { animation: none !important; }
  h1 > span {
    animation: none !important;
    -webkit-text-fill-color: #f2f2f4;
    color: #f2f2f4;
    background: none;
    filter: none;
    text-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
  }
  h1 > span::before,
  h1 > span::after { display: none; }
  .portal-card {
    opacity: 1;
    transform: none;
  }
}

/* ========== 下方内容区块 ==========
   大面积模块：不用 backdrop-filter（贵），用渐变/内高光/微噪做质感
*/
.block {
  position: relative;
  margin: 0 0 clamp(36px, 5vh, 56px);
  padding: clamp(22px, 2.5vw, 32px);
  border: 1px solid rgba(243, 239, 230, 0.1);
  border-radius: 20px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(255, 248, 235, 0.055), transparent 42%),
    radial-gradient(90% 70% at 100% 100%, rgba(232, 220, 198, 0.03), transparent 48%),
    linear-gradient(165deg, rgba(28, 25, 22, 0.92) 0%, rgba(12, 11, 10, 0.88) 55%, rgba(10, 9, 8, 0.9) 100%);
  /* 故意不加大面积 blur：一块模块的 backdrop 比三张小卡贵得多 */
  box-shadow:
    0 0 0 1px rgba(255, 248, 235, 0.04) inset,
    0 1px 0 rgba(255, 248, 235, 0.07) inset,
    0 22px 52px rgba(0, 0, 0, 0.32);
  animation: riseIn 0.9s var(--ease-out) both;
  transition: border-color 0.35s, box-shadow 0.4s var(--ease), transform 0.4s var(--ease);
}
/* 顶缘细亮线 */
.block::before {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  top: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 248, 235, 0.35),
    transparent
  );
  opacity: 0.75;
  pointer-events: none;
  z-index: 1;
}
/* 角落环境光 */
.block::after {
  content: "";
  position: absolute;
  width: 42%;
  height: 55%;
  right: -8%;
  top: -20%;
  background: radial-gradient(circle, rgba(232, 220, 198, 0.06), transparent 68%);
  pointer-events: none;
  z-index: 0;
}
.block > * {
  position: relative;
  z-index: 1;
}
.block:nth-of-type(2) { animation-delay: 0.15s; }
.block:nth-of-type(3) { animation-delay: 0.22s; }
.block:nth-of-type(4) { animation-delay: 0.28s; }
.block:nth-of-type(5) { animation-delay: 0.34s; }

.block-head {
  margin-bottom: clamp(16px, 2vw, 22px);
}
.block-kicker {
  margin: 0 0 8px;
  font: 600 11px/1 var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.9;
  text-shadow: none;
}
.block-title {
  margin: 0;
  font: 550 clamp(22px, 2.2vw, 28px) / 1.25 var(--display);
  letter-spacing: -0.02em;
  color: var(--fg);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(180px, 0.7fr);
  gap: clamp(18px, 3vw, 32px);
  align-items: start;
}
.about-copy p {
  margin: 0 0 14px;
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--soft);
  max-width: 38em;
}
.about-copy p:last-child { margin-bottom: 0; }
.about-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}
.chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(243, 239, 230, 0.12);
  background: linear-gradient(180deg, rgba(255,248,235,0.07), rgba(255,255,255,0.02));
  box-shadow: 0 1px 0 rgba(255,248,235,0.06) inset;
  font-size: 12.5px;
  color: var(--soft);
  letter-spacing: 0.02em;
  transition: border-color 0.25s, background 0.25s, color 0.25s, box-shadow 0.25s;
}
.chip:hover {
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--fg);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.08);
}

.focus-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.focus-card {
  position: relative;
  padding: 18px 16px;
  border-radius: 14px;
  border: 1px solid rgba(243, 239, 230, 0.1);
  background:
    linear-gradient(160deg, rgba(255, 248, 235, 0.06), transparent 45%),
    rgba(14, 12, 11, 0.55);
  box-shadow:
    0 1px 0 rgba(255, 248, 235, 0.06) inset,
    0 10px 28px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s var(--ease), border-color 0.25s, box-shadow 0.35s, background 0.3s;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: block;
}
.focus-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    240px circle at var(--mx, 50%) var(--my, 0%),
    rgba(255, 248, 235, 0.1),
    transparent 55%
  );
  opacity: 0;
  transition: opacity 0.25s;
  pointer-events: none;
}
.focus-card:hover {
  transform: translateY(-3px);
  border-color: rgba(232, 220, 198, 0.24);
  background:
    linear-gradient(160deg, rgba(255, 248, 235, 0.1), transparent 48%),
    rgba(18, 16, 14, 0.62);
  box-shadow:
    0 1px 0 rgba(255, 248, 235, 0.1) inset,
    0 16px 36px rgba(0, 0, 0, 0.32);
}
.focus-card:hover::before { opacity: 1; }
.focus-card .tag {
  display: inline-flex;
  font: 600 10px/1 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(232, 220, 198, 0.22);
  background: rgba(232, 220, 198, 0.08);
  padding: 3px 8px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.focus-card h3 {
  position: relative;
  margin: 0 0 8px;
  font: 550 17px/1.25 var(--display);
  color: var(--fg);
}
.focus-card p {
  position: relative;
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: rgba(243,239,230,0.78);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.project-empty {
  grid-column: 1 / -1;
  padding: 36px 20px;
  text-align: center;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--dim);
  border: 1px dashed rgba(255, 255, 255, 0.22);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.05), transparent 50%),
    rgba(8, 8, 10, 0.4);
}
.block.is-empty {
  opacity: 0.92;
}
.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 18px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 8, 12, 0.6);
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s var(--ease), border-color 0.25s, box-shadow 0.35s;
  overflow: hidden;
  min-height: 132px;
}
.project-card::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 17px;
  padding: 1px;
  background: conic-gradient(
    from var(--border-angle, 0deg),
    transparent 0%,
    transparent 40%,
    rgba(255, 255, 255, 0.4) 50%,
    rgba(126, 200, 255, 0.3) 55%,
    transparent 65%
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
  animation: none;
}
.project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(232, 220, 198, 0.22);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.38);
}
.project-card:hover::after {
  opacity: 1;
  animation: borderSpin 4.5s linear infinite;
}
.project-card .pid {
  font: 600 11px/1 var(--mono);
  letter-spacing: 0.1em;
  color: var(--dim);
}
.project-card h3 {
  margin: 0;
  font: 550 18px/1.2 var(--display);
  color: var(--fg);
}
.project-card p {
  margin: 0;
  flex: 1;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--muted);
}
.project-card .meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 4px;
}
.project-card .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.project-card .tags span {
  font-size: 11px;
  color: var(--soft);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}
.project-card .go {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  display: grid;
  place-items: center;
  color: var(--accent);
  font-size: 15px;
  flex-shrink: 0;
  transition: transform 0.3s var(--ease-spring), box-shadow 0.25s;
}
.project-card:hover .go {
  transform: translateX(3px) rotate(-10deg);
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.25);
}

.block-contact .contact-note {
  margin: -4px 0 16px;
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.6;
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}
.contact-item {
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid rgba(243, 239, 230, 0.1);
  background:
    linear-gradient(155deg, rgba(255, 248, 235, 0.07), transparent 50%),
    rgba(14, 12, 11, 0.55);
  box-shadow: 0 1px 0 rgba(255, 248, 235, 0.06) inset;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.25s, box-shadow 0.3s, transform 0.3s var(--ease);
}
.contact-item:hover {
  border-color: rgba(232, 220, 198, 0.24);
  transform: translateY(-2px);
  box-shadow:
    0 1px 0 rgba(255, 248, 235, 0.1) inset,
    0 12px 32px rgba(0, 0, 0, 0.3);
  background:
    linear-gradient(155deg, rgba(255, 248, 235, 0.1), transparent 50%),
    rgba(18, 16, 14, 0.6);
}
.contact-item span {
  font: 600 11px/1 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-item b {
  font: 550 17px/1.25 var(--display);
  color: var(--fg);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.site-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 0 32px;
  font-size: 12px;
  color: var(--dim);
  letter-spacing: 0.06em;
  opacity: 0.75;
}
.site-foot .sep { opacity: 0.5; }

@media (max-width: 1100px) {
  :root {
    --content-max: 1080px;
  }
  .hero {
    grid-template-columns: minmax(0, 1fr) clamp(150px, 26vw, 220px);
    column-gap: 24px;
  }
  .focus-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .about-chips { justify-content: flex-start; }
}

@media (max-width: 640px) {
  :root {
    --page-gutter: 16px;
    --content-max: 100%;
  }
  .stage {
    padding: 14px var(--page-gutter) 28px;
  }
  .topline {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: start;
    gap: 10px;
  }
  .mark {
    grid-column: 1 / -1;
    grid-row: 1;
    text-align: center;
    order: 0;
    flex: none;
  }
  .visit-counter {
    grid-column: 1;
    grid-row: 2;
    padding: 9px 10px;
    font-size: 10px;
    justify-self: start;
  }
  .contact-card {
    grid-column: 2;
    grid-row: 2;
    min-width: 0;
    padding: 8px 10px;
    font-size: 10px;
    justify-self: end;
  }
  .hero {
    min-height: auto;
    padding-bottom: 8px;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    align-content: start;
  }
  .project-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .block { padding: 18px 16px; }
  .utility-strip {
    grid-column: 1;
    grid-row: 2;
    justify-self: end;
    margin: 12px 8px 12px 0;
  }
  .hero-copy {
    transform: none;
    grid-column: 1;
    grid-row: 1;
  }
  h1 {
    font-size: clamp(34px, 10.5vw, 50px);
    gap: 8px;
    perspective: none; /* 3d 透视在手机上易触发额外合成糊字 */
  }
  h1 > span {
    /* 手机/微信：金属渐变保留，彻底去掉会糊字的合成滤镜 */
    filter: none !important;
    text-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
    will-change: auto;
    /* 入场更短，避免卡在中间态 */
    animation:
      titleIn 0.7s var(--ease-out) both,
      metalSheen 20s cubic-bezier(0.4, 0, 0.2, 1) 1.2s infinite;
  }
  h1 > span:nth-child(1) { animation-delay: 0.06s, 1.2s; }
  h1 > span:nth-child(2) { animation-delay: 0.14s, 1.6s; }
  h1 > span + span { margin-left: 18px; }
  .portal-section {
    grid-column: 1;
    grid-row: 3;
  }
  .portal-grid {
    max-width: none;
    gap: 8px;
  }
  .utility-launch { width: min(30vw, 120px); }
  .portal-card { min-height: 88px; padding: 12px; }
  .portal-card h2 { font-size: clamp(15px, 4.5vw, 18px); }
  .halo, .orb-blob, .scanlines { display: none; }
  .globe-stage {
    width: min(280px, 72vw);
    right: -28px;
    opacity: 0.62;
  }
  .badge-local { display: none; }
}

/* ========== 身份主层级 + 快捷入口缩小 ========== */
.status-strip { display: none !important; /* 身份改由关于区承担 */

  margin: 4px 0 18px;
  font: 500 12px/1.2 var(--sans);
  letter-spacing: 0.08em;
  color: var(--muted);
  animation: riseIn 0.8s var(--ease-out) 0.1s both;
}

.role-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  margin: 0 0 14px;
  animation: riseIn 0.85s var(--ease-out) 0.08s both;
}
.role-main {
  font: 600 clamp(14px, 1.35vw, 16px)/1 var(--display);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.vibe-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(232, 220, 198, 0.22);
  background: rgba(232, 220, 198, 0.06);
  font: 600 11px/1 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.role-sub {
  margin: 0 0 16px;
  font-size: 13.5px;
  color: var(--muted);
  letter-spacing: 0.04em;
  animation: riseIn 0.85s var(--ease-out) 0.14s both;
}

.portal-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  max-width: 720px;
  font: 600 11px/1 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.portal-label-hint {
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--dim);
  text-transform: none;
}

.methods-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.method-card {
  padding: 16px 16px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.28);
  transition: border-color 0.25s, transform 0.3s var(--ease);
}
.method-card:hover {
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-2px);
}
.method-card h3 {
  margin: 0 0 8px;
  font: 550 15px/1.25 var(--display);
  color: var(--fg);
}
.method-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(243,239,230,0.72);
}

/* 开屏：默认必须真正不占层；display 不能压过 [hidden] */
.boot {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  place-items: center;
  background: #0b0a09;
  opacity: 1;
  visibility: visible;
  pointer-events: none;
  transition: opacity 0.55s cubic-bezier(0.16,1,0.3,1), visibility 0.55s;
}
.boot.is-active {
  display: grid;
  pointer-events: auto;
}
.boot.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.boot[hidden],
.boot.is-done {
  display: none !important;
}
.boot-rain { display: none; }
.boot-panel {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 28px 24px;
  max-width: min(480px, calc(100vw - 40px));
}
.boot-brand {
  margin: 0 0 18px;
  font: 650 13px/1 var(--mono);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(243,239,230,0.55);
}
.boot-brand span { color: rgba(236,236,236,0.28); font-weight: 500; letter-spacing: 0.2em; }
.boot-log {
  margin: 0;
  font: 550 clamp(28px, 5vw, 40px)/1.15 var(--display);
  letter-spacing: -0.03em;
  color: var(--fg);
  white-space: normal;
  min-height: 1.2em;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  animation: bootIn 0.9s cubic-bezier(0.16,1,0.3,1) both;
}
.boot-title { display: block; }
.boot-sub {
  display: block;
  font: 500 14px/1 var(--mono);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(243,239,230,0.5);
  animation: bootIn 0.9s cubic-bezier(0.16,1,0.3,1) 0.15s both;
}
@keyframes bootIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.boot-hint {
  margin: 22px 0 0;
  font-size: 12px;
  color: rgba(243,239,230,0.35);
  letter-spacing: 0.08em;
}
.boot-skip {
  position: absolute;
  right: 20px;
  bottom: 20px;
  z-index: 2;
  appearance: none;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(14,14,14,0.8);
  color: rgba(255,255,255,0.75);
  font: 500 11px/1 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 10px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.boot-skip:hover {
  border-color: rgba(255,255,255,0.28);
  color: var(--fg);
}

@media (max-width: 640px) {
  .methods-grid { grid-template-columns: 1fr; }
  .portal-label { margin-top: 4px; }
}


/* 数字条 + 轨迹（简历提炼） */
.highlights { display: none !important; }
.hi-item {
  padding: 18px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.03);
  text-align: left;
}
.hi-item .num {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 6px;
  font: 600 clamp(28px, 3vw, 36px)/1 var(--display);
  letter-spacing: -0.04em;
  color: var(--fg);
}
.hi-item .num em {
  font-style: normal;
  font-size: 0.45em;
  color: rgba(243,239,230,0.55);
  letter-spacing: 0;
}
.hi-item .label {
  font-size: 13px;
  color: rgba(243,239,230,0.55);
}

.track-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.track-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
  background: #111;
  transition: transform 0.3s var(--ease), border-color 0.25s, box-shadow 0.35s;
}
.track-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255,255,255,0.2);
  box-shadow: 0 18px 40px rgba(0,0,0,0.4);
}
.track-cover {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #141414;
}
.track-cover-fallback {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #141414, #242424);
}
.track-name {
  padding: 12px 14px 14px;
  font: 550 15px/1.3 var(--display);
  color: var(--fg);
  letter-spacing: 0.04em;
}

.block-title { color: var(--fg); }
.tagline { color: rgba(243,239,230,0.78); }
.role-sub { color: rgba(243,239,230,0.5); }

@media (max-width: 640px) {
  .highlights { grid-template-columns: 1fr; }
  .track-grid { grid-template-columns: 1fr; }
}

/* 成果展示：图优先 */
.block-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.block-more {
  font: 500 13px/1 var(--sans);
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.02em;
  opacity: 0.85;
  transition: opacity 0.2s, color 0.2s;
  white-space: nowrap;
  padding-bottom: 4px;
}
.block-more:hover { opacity: 1; color: var(--accent-hot); }

.block-showcase {
  padding: clamp(16px, 2vw, 22px);
  overflow: hidden;
}

/* 一排横向轮播 */
.showcase-rail {
  position: relative;
  overflow: hidden;
  margin: 0 -4px;
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.showcase-track {
  display: flex;
  width: max-content;
  gap: 12px;
  padding: 4px 0 2px;
  animation: showcaseMarquee 56s linear infinite;
}
.showcase-rail:hover .showcase-track {
  animation-play-state: paused;
}
@keyframes showcaseMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.showcase-card {
  position: relative;
  flex: 0 0 auto;
  width: clamp(148px, 16vw, 200px);
  height: clamp(148px, 16vw, 200px);
  display: block;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(243, 239, 230, 0.1);
  background: #12110f;
  transition: border-color 0.25s, box-shadow 0.3s, transform 0.3s var(--ease);
}
.showcase-card:hover {
  border-color: rgba(232, 220, 198, 0.28);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
  transform: translateY(-2px);
  z-index: 1;
}
.showcase-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  user-select: none;
}

@media (prefers-reduced-motion: reduce) {
  .showcase-track {
    animation: none;
    overflow-x: auto;
    max-width: 100%;
    width: 100%;
    -webkit-overflow-scrolling: touch;
  }
}
@media (max-width: 560px) {
  .showcase-card {
    width: 132px;
    height: 132px;
  }
  .showcase-track { gap: 8px; animation-duration: 36s; }
}

.contact-item-wide {
  grid-column: 1 / -1;
  max-width: 360px;
}
.contact-card {
  text-align: right;
}


/* 项目列表：一行 3 个 · 不含 fork */
.project-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.project-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  min-height: 128px;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid rgba(243, 239, 230, 0.1);
  background:
    linear-gradient(160deg, rgba(255,248,235,0.06), transparent 50%),
    rgba(12, 11, 10, 0.55);
  box-shadow: 0 1px 0 rgba(255,248,235,0.05) inset;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.25s, background 0.25s, transform 0.25s var(--ease), box-shadow 0.3s;
}
a.project-row:hover {
  border-color: rgba(232, 220, 198, 0.28);
  background:
    linear-gradient(160deg, rgba(255,248,235,0.1), transparent 52%),
    rgba(16, 14, 12, 0.62);
  box-shadow:
    0 1px 0 rgba(255,248,235,0.1) inset,
    0 14px 32px rgba(0,0,0,0.28);
  transform: translateY(-2px);
}
.project-row-main { min-width: 0; width: 100%; flex: 1; }
.project-row h3 {
  margin: 0 0 6px;
  font: 550 15px/1.3 var(--display);
  color: var(--fg);
  letter-spacing: 0.01em;
}
.project-row-desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
}
.project-row-side {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  flex-shrink: 0;
}
.project-badge {
  font: 600 11px/1 var(--mono);
  letter-spacing: 0.08em;
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid rgba(243, 239, 230, 0.12);
  color: var(--soft);
  background: rgba(243, 239, 230, 0.04);
}
.project-row.is-public .project-badge {
  border-color: rgba(232, 220, 198, 0.28);
  color: var(--accent);
  background: rgba(232, 220, 198, 0.08);
}
.project-row.is-live .project-badge {
  border-color: rgba(154, 230, 180, 0.28);
  color: #9ae6b4;
  background: rgba(154, 230, 180, 0.08);
}
.project-row.is-wip .project-badge {
  border-color: rgba(243, 239, 230, 0.1);
  color: var(--muted);
  opacity: 0.9;
}
.project-go {
  color: var(--accent);
  font-size: 14px;
  opacity: 0.75;
  margin-left: auto;
}
a.project-row:hover .project-go { opacity: 1; }
@media (max-width: 900px) {
  .project-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .project-list { grid-template-columns: 1fr; }
}


/* 区块进场 */
.block.is-inview {
  animation: blockRise 0.8s var(--ease-out) both;
}
@keyframes blockRise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}
.block:hover {
  border-color: rgba(232, 220, 198, 0.18);
  box-shadow:
    0 0 0 1px rgba(255, 248, 235, 0.06) inset,
    0 1px 0 rgba(255, 248, 235, 0.1) inset,
    0 26px 58px rgba(0, 0, 0, 0.36);
}
.block:hover::before {
  opacity: 1;
  background: linear-gradient(90deg, transparent, rgba(255,248,235,0.5), transparent);
}

.utility-launch {
  z-index: 3;
}
.utility-strip {
  z-index: 4;
  position: relative;
}

@media (prefers-reduced-motion: reduce) {
  h1 > span {
    animation: none !important;
    -webkit-text-fill-color: var(--fg);
    color: var(--fg);
    background: none;
    filter: drop-shadow(0 6px 18px rgba(0,0,0,0.45));
  }
  h1 > span::after { display: none !important; }
  .globe-stage,
  .globe-ring-a,
  .globe-ring-b,
  .globe-ring-c,
  .globe-glow { animation: none !important; }
}
