/* ==========================================================================
   秦海峰 / Leslie Qin 个人空间
   排版规范：Bejamas 顶级现代机构级排版系统 (PP Neue Montreal 级比例与字阶网格)
   视觉基调：昼夜智能时间响应系统 (07:00-19:00 白昼宣纸米白 / 19:00-07:00 黑夜相反色)
   精准锁定：左边距 134px · 底边距 95px · 屏幕实时位置红线指示器
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. 昼夜双模设计变量 (CSS TOKENS)
   -------------------------------------------------------------------------- */
:root, [data-theme="day"] {
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --font-display: "Songti SC", "Source Han Serif SC", "Noto Serif SC", "Playfair Display", Georgia, serif;
  --font-mono: "JetBrains Mono", "SF Mono", "Fira Code", Menlo, Monaco, Consolas, "Courier New", monospace;
  --font-western: -apple-system, BlinkMacSystemFont, "PP Neue Montreal", "Inter", "Helvetica Neue", Arial, sans-serif;

  /* 核心排版尺寸变量 */
  --hero-name-font-size: clamp(3.2rem, 6.4vw, 5.6rem);
  --hero-name-slot-width: calc(var(--hero-name-font-size) * 2.0);
  --two-spaces-gap: clamp(0.9rem, 1.8vw, 1.6rem);

  /* 动效延伸高度变量 (默认 145vh) */
  --anim-extend-height: 1233px;

  /* 白昼模式：宣纸米白基调 */
  --bg-page: #F6F4EE;
  --bg-card: #FFFFFF;
  --text-main: #181614; /* 纯正黑曜石深黑 */
  --text-body: #4E4840;
  --text-muted: #847E74;

  --nav-frosted-top: rgba(246, 244, 238, 0.96);
  --nav-frosted-mid: rgba(246, 244, 238, 0.75);
  --nav-frosted-low: rgba(246, 244, 238, 0);

  --brand-mark-bg: #181614;
  --brand-mark-text: #FFFFFF;

  --nav-link-hover-bg: rgba(255, 255, 255, 0.45);
  --nav-link-hover-border: rgba(255, 255, 255, 0.75);
  --nav-link-active-bg: rgba(255, 255, 255, 0.78);
  --nav-link-active-border: rgba(255, 255, 255, 0.95);
  --nav-link-active-shadow: 0 4px 16px -2px rgba(24, 22, 20, 0.07), 0 0 0 1px rgba(24, 22, 20, 0.04);

  --toggle-btn-bg: rgba(24, 22, 20, 0.04);
  --toggle-btn-border: rgba(24, 22, 20, 0.08);
  --toggle-btn-hover: rgba(24, 22, 20, 0.08);

  --card-glass-bg: rgba(255, 255, 255, 0.55);
  --card-glass-border: rgba(24, 22, 20, 0.06);
  --card-shadow: 0 8px 30px -4px rgba(24, 22, 20, 0.04);
  --card-hover-shadow: 0 16px 40px -6px rgba(24, 22, 20, 0.08);

  --cta-bg: #181614;
  --cta-text: #FFFFFF;
  --cta-hover: #2E2A26;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-fast: cubic-bezier(0.4, 0, 0.2, 1);
}

/* 黑夜模式：暗夜黑曜石极简深色调 */
[data-theme="night"] {
  --bg-page: #100F0D;
  --bg-card: #191815;
  --text-main: #F6F4EE;
  --text-body: #C2BBB0;
  --text-muted: #7E786E;

  --nav-frosted-top: rgba(16, 15, 13, 0.96);
  --nav-frosted-mid: rgba(16, 15, 13, 0.75);
  --nav-frosted-low: rgba(16, 15, 13, 0);

  --brand-mark-bg: #F6F4EE;
  --brand-mark-text: #100F0D;

  --nav-link-hover-bg: rgba(255, 255, 255, 0.08);
  --nav-link-hover-border: rgba(255, 255, 255, 0.14);
  --nav-link-active-bg: rgba(255, 255, 255, 0.15);
  --nav-link-active-border: rgba(255, 255, 255, 0.28);
  --nav-link-active-shadow: 0 4px 16px -2px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.08);

  --toggle-btn-bg: rgba(255, 255, 255, 0.06);
  --toggle-btn-border: rgba(255, 255, 255, 0.12);
  --toggle-btn-hover: rgba(255, 255, 255, 0.14);

  --card-glass-bg: rgba(25, 24, 21, 0.55);
  --card-glass-border: rgba(255, 255, 255, 0.08);
  --card-shadow: 0 8px 30px -4px rgba(0, 0, 0, 0.35);
  --card-hover-shadow: 0 16px 48px -6px rgba(0, 0, 0, 0.55);

  --cta-bg: #F6F4EE;
  --cta-text: #100F0D;
  --cta-hover: #FFFFFF;
}

/* --------------------------------------------------------------------------
   1. 全局重置与昼夜对穿选中文本反转效果
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

::selection {
  background-color: #100F0D !important;
  color: #F6F4EE !important;
  text-shadow: none !important;
}

::-moz-selection {
  background-color: #100F0D !important;
  color: #F6F4EE !important;
  text-shadow: none !important;
}

[data-theme="night"] ::selection,
[data-theme="night"] *::selection {
  background-color: #F6F4EE !important;
  color: #181614 !important;
  text-shadow: none !important;
}

[data-theme="night"] ::-moz-selection,
[data-theme="night"] *::-moz-selection {
  background-color: #F6F4EE !important;
  color: #181614 !important;
  text-shadow: none !important;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg-page);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.75;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
  transition: background-color 0.4s var(--ease-spring), color 0.4s var(--ease-spring);
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s var(--ease-fast);
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  color: inherit;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1.5rem, 8.5vw, 134px);
  padding-right: clamp(1.5rem, 8.5vw, 134px);
}

/* --------------------------------------------------------------------------
   2. 渐变磨砂无线框导航栏 (BEJAMAS NAVBAR)
   -------------------------------------------------------------------------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  border: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
  background: transparent;
  pointer-events: auto;
}

.navbar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 140%;
  background: linear-gradient(
    to bottom,
    var(--nav-frosted-top) 0%,
    var(--nav-frosted-mid) 40%,
    var(--nav-frosted-low) 100%
  );
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  -webkit-mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 0.9) 35%,
    rgba(0, 0, 0, 0.4) 70%,
    rgba(0, 0, 0, 0) 100%
  );
  mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 0.9) 35%,
    rgba(0, 0, 0, 0.4) 70%,
    rgba(0, 0, 0, 0) 100%
  );
  pointer-events: none;
  z-index: -1;
  transition: all 0.4s var(--ease-spring);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 5.0rem;
  position: relative;
  z-index: 2;
  max-width: 100% !important;
  width: 100%;
  padding-left: 60px !important;
  padding-right: 60px !important;
  margin: 0;
}

/* 2.1 左侧品牌 LOGO (直接内联图片 · 完美自适应昼夜反色) */
.brand-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  cursor: pointer;
}

.brand-custom-logo-img {
  display: block;
  height: clamp(42px, 3.2vw, 50px);
  width: auto;
  object-fit: contain;
  transition: transform 0.25s var(--ease-spring), opacity 0.2s ease, filter 0.4s var(--ease-spring);
}

/* 白昼模式：默认纯黑 */
[data-theme="day"] .brand-custom-logo-img,
:root:not([data-theme="night"]) .brand-custom-logo-img {
  filter: brightness(0);
}

/* 黑夜模式：精准反转为亮白色/米白色 */
[data-theme="night"] .brand-custom-logo-img {
  filter: brightness(0) invert(1) drop-shadow(0 0 1px rgba(255, 255, 255, 0.4));
}

.brand-logo:hover .brand-custom-logo-img {
  opacity: 0.85;
  transform: scale(1.05);
}
/* 2.2 中间核心导航 */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: transparent;
  border: none;
  padding: 0;
}

.nav-link {
  position: relative;
  padding: 0.45rem 1.15rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-body);
  background: transparent;
  border: 1px solid transparent;
  letter-spacing: -0.01em;
  transition: all 0.25s var(--ease-spring);
  text-decoration: none;
}

.nav-link:hover {
  color: var(--text-main);
  background: var(--nav-link-hover-bg);
  border: 1px solid var(--nav-link-hover-border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.nav-link.active {
  color: var(--text-main);
  font-weight: 600;
  background: var(--nav-link-active-bg);
  border: 1px solid var(--nav-link-active-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--nav-link-active-shadow);
  transform: translateY(-1px);
}

/* 2.3 昼夜模式切换按钮 */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.nav-theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-full);
  background-color: var(--toggle-btn-bg);
  border: 1px solid var(--toggle-btn-border);
  color: var(--text-main);
  font-size: 0.8125rem;
  font-weight: 500;
  transition: all 0.25s var(--ease-spring);
  user-select: none;
}

.nav-theme-toggle:hover {
  background-color: var(--toggle-btn-hover);
  transform: translateY(-1px);
}

.theme-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

[data-theme="day"] .moon-icon { display: none; }
[data-theme="day"] .sun-icon { display: flex; color: #E06010; }
[data-theme="night"] .sun-icon { display: none; }
[data-theme="night"] .moon-icon { display: flex; color: #FF7A00; }

.theme-text-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: -0.01em;
}

/* 2.4 右侧 Bejamas CTA 按钮 */
.nav-cta-bejamas {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 1.3rem;
  border-radius: var(--radius-full);
  background-color: var(--cta-bg);
  color: var(--cta-text);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  transition: all 0.25s var(--ease-spring);
}

.cta-arrow-icon {
  transition: transform 0.25s var(--ease-spring);
}

.nav-cta-bejamas:hover {
  background-color: var(--cta-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
}

.nav-cta-bejamas:hover .cta-arrow-icon {
  transform: translateX(3px);
}

/* 移动端汉堡切换键 */
.mobile-toggle-btn {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background-color: var(--toggle-btn-bg);
  border: 1px solid var(--toggle-btn-border);
  align-items: center;
  justify-content: center;
  position: relative;
}

.hamburger-line {
  display: block;
  width: 16px;
  height: 1.5px;
  background-color: var(--text-main);
  transition: all 0.25s var(--ease-spring);
  position: absolute;
}

.line-1 { transform: translateY(-3px); }
.line-2 { transform: translateY(3px); }

.mobile-toggle-btn.open .line-1 { transform: rotate(45deg); }
.mobile-toggle-btn.open .line-2 { transform: rotate(-45deg); }

.mobile-drawer {
  position: fixed;
  top: 4.5rem;
  left: 0;
  width: 100vw;
  height: calc(100vh - 4.5rem);
  background-color: var(--bg-page);
  border: none;
  display: flex;
  flex-direction: column;
  padding: 2rem 1.5rem;
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: all 0.3s var(--ease-spring);
  z-index: 999;
}

.mobile-drawer.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.mobile-drawer-inner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.mobile-drawer-links {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.mobile-drawer-link {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: baseline;
  gap: 0.85rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--toggle-btn-border);
}

.mobile-drawer-link span {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 500;
}

.mobile-drawer-footer {
  padding-top: 1.5rem;
  border-top: 1px solid var(--toggle-btn-border);
}

.drawer-info-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.drawer-email-link {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-main);
  display: block;
  margin-bottom: 0.25rem;
}

.drawer-wechat {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--text-body);
}

/* --------------------------------------------------------------------------
   3. HERO 首屏板块 — 随页面自然滚动延伸
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  width: 100vw;
  min-height: 1260px; height: 1260px; /* 页面向下延伸纯净留白空间 */
  margin: 0;
  padding: 0;
  display: block;
  background-color: var(--bg-page);
  cursor: none !important;
}

.ascii-scrolling-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: var(--anim-extend-height, 1233px);
  overflow: hidden;
  display: block;
  background-color: var(--bg-page);
  margin: 0;
  padding: 0;
  z-index: 0;
  pointer-events: none;
  cursor: none !important;
  transition: background-color 0.4s var(--ease-spring);
  /* 延伸边界精准淡出：0px ~ 1187px 完全不透明，1187px ~ 1233px 平滑淡出至透明 */
  -webkit-mask-image: linear-gradient(to bottom, #000 0px, #000 1187px, transparent 1233px);
  mask-image: linear-gradient(to bottom, #000 0px, #000 1187px, transparent 1233px);
}

.ascii-canvas-scrolling {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  cursor: none !important;
}

/* 3.1 首屏锁定视口容器：左边距 134px · 底边距 95px */
.hero-custom-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 10;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding-left: clamp(1.5rem, 8.5vw, 134px);
  padding-bottom: clamp(2rem, 6vh, 95px);
  padding-top: 6.0rem;
  cursor: none !important;
}

@media (min-width: 1024px) {
  .hero-custom-container {
    padding-left: 134px;
    padding-bottom: 95px;
  }
}

.hero-bejamas-layout {
  position: absolute;
  left: 134px;
  top: 500.6px; /* 0px~810px 黄金分割点位 (810 * 0.618 ≈ 500.6px) */
  bottom: auto;
  transform: translateY(-50%); /* 中心位置精准对齐黄金分割线 */
  pointer-events: auto;
  user-select: text !important;
  -webkit-user-select: text !important;
  max-width: 680px;
  display: flex;
  flex-direction: column;
  cursor: none !important;
}

/* 核心三段大标题排版 */
.hero-bejamas-title {
  margin: 0;
  display: flex;
  flex-direction: column;
  line-height: 0.94;
  user-select: text !important;
  -webkit-user-select: text !important;
}

/* 「欢迎来到」与「主页」：统一无衬线字体与统一字号 */
.font-sans-sync {
  display: block;
  font-family: var(--font-sans);
  font-size: clamp(2.4rem, 4.8vw, 4.3rem);
  font-weight: 600;
  color: var(--text-main);
  letter-spacing: -0.04em;
  line-height: 0.96;
  text-shadow: none !important;
  user-select: text !important;
  -webkit-user-select: text !important;
  transition: color 0.4s var(--ease-spring);
}

/* 第二行外层包装器 */
.font-name-wrapper {
  position: relative;
  display: block;
  height: var(--hero-name-font-size);
  line-height: var(--hero-name-font-size);
  margin-top: clamp(0.55rem, 1.2vw, 0.95rem);
  margin-bottom: 0.15rem;
  user-select: text !important;
  -webkit-user-select: text !important;
}

/* 海峰二字的绝对定位锚点槽 */
.name-absolute-anchor {
  position: absolute;
  left: 0;
  bottom: 0;
  width: var(--hero-name-slot-width);
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  pointer-events: auto;
}

/* 「海峰」二字：心跳跳动与多字体轮换 (在自身绝对卡槽内跳动，零溢出) */
.font-heartbeat-morph {
  display: inline-block;
  font-size: var(--hero-name-font-size);
  font-weight: 900;
  color: var(--text-main);
  line-height: 1.0;
  text-shadow: none !important;
  user-select: text !important;
  -webkit-user-select: text !important;
  transform-origin: left bottom;
  will-change: transform, font-family;
  white-space: nowrap;
  transition: color 0.4s var(--ease-spring);
}

/* 16 种字体流派 */
.font-morph-1 { font-family: "Songti SC", "Source Han Serif SC", "Noto Serif SC", "Playfair Display", Georgia, serif !important; font-weight: 900 !important; letter-spacing: 0 !important; }
.font-morph-2 { font-family: "PingFang SC", "Hiragino Sans GB", "Druk Wide", "Impact", -apple-system, sans-serif !important; font-weight: 900 !important; letter-spacing: 0 !important; }
.font-morph-3 { font-family: "Kaiti SC", "STKaiti", "Baskerville", serif !important; font-weight: 800 !important; letter-spacing: 0 !important; }
.font-morph-4 { font-family: "STFangsong", "FangSong", "Courier New", monospace !important; font-weight: 800 !important; letter-spacing: 0 !important; }
.font-morph-5 { font-family: "JetBrains Mono", "SF Mono", "Fira Code", monospace !important; font-weight: 800 !important; letter-spacing: 0 !important; }
.font-morph-6 { font-family: "Yuanti SC", "Hiragino Maru Gothic Pro", "Avenir Next", sans-serif !important; font-weight: 900 !important; letter-spacing: 0 !important; }
.font-morph-7 { font-family: "Didot", "Bodoni MT", "Songti SC", serif !important; font-weight: 900 !important; letter-spacing: 0 !important; font-style: italic !important; }
.font-morph-8 { font-family: "Helvetica Neue", "Arial", "PingFang SC", sans-serif !important; font-weight: 800 !important; letter-spacing: 0 !important; }
.font-morph-9 { font-family: "Source Han Serif SC", "Noto Serif SC", "Songti SC", serif !important; font-weight: 700 !important; letter-spacing: 0 !important; }
.font-morph-10 { font-family: "Futura", "Trebuchet MS", "PingFang SC", sans-serif !important; font-weight: 800 !important; letter-spacing: 0 !important; }
.font-morph-11 { font-family: "STKaiti", "Kaiti SC", cursive, serif !important; font-weight: 700 !important; font-style: italic !important; letter-spacing: 0 !important; }
.font-morph-12 { font-family: "Courier New", "Menlo", monospace !important; font-weight: 900 !important; letter-spacing: 0 !important; }
.font-morph-13 { font-family: "Songti SC", "SimSun", serif !important; font-weight: 900 !important; letter-spacing: 0 !important; }
.font-morph-14 { font-family: "PingFang SC", "Arial Black", sans-serif !important; font-weight: 900 !important; letter-spacing: 0 !important; }
.font-morph-15 { font-family: "Optima", "Candara", "Noto Sans SC", sans-serif !important; font-weight: 800 !important; letter-spacing: 0 !important; }
.font-morph-16 { font-family: "Palatino", "Georgia", "Songti SC", serif !important; font-weight: 800 !important; letter-spacing: 0 !important; }

/* 心跳单次利落轻搏动画 */
.cardiac-beat-stroke {
  animation: single-cardiac-pulse 0.48s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes single-cardiac-pulse {
  0% { transform: scale(1.0); }
  30% { transform: scale(1.07); }
  70% { transform: scale(0.99); }
  100% { transform: scale(1.0); }
}

/* 3.4 ’和 s 双锚点精准对齐层级 */
.font-split-apostrophe {
  position: absolute;
  left: calc(var(--hero-name-slot-width) + var(--two-spaces-gap));
  top: 0;
  bottom: 0;
  height: 100%;
  display: flex;
  align-items: stretch;
  gap: 0.08em;
  user-select: text !important;
  -webkit-user-select: text !important;
  white-space: nowrap;
}

.apo-mark {
  font-family: var(--font-western) !important;
  font-size: clamp(2.4rem, 4.8vw, 4.3rem);
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.0;
  align-self: flex-start;
  margin-top: clamp(0.1rem, 0.25vw, 0.3rem);
  text-shadow: none !important;
  display: inline-block;
  transition: color 0.4s var(--ease-spring);
}

.apo-char-s {
  font-family: var(--font-western) !important;
  font-size: clamp(2.4rem, 4.8vw, 4.3rem);
  font-weight: 600;
  color: var(--text-main);
  line-height: 0.94;
  align-self: flex-end;
  text-shadow: none !important;
  display: inline-block;
  transition: color 0.4s var(--ease-spring);
}
/* 3.6 首页副文本小字 (绝对基准：顶部 Y 612px · 左边缘 X 134px 与“主”字左侧严格对齐) */
.hero-low-energy-subtitle {
  position: absolute;
  top: 650px;
  left: 134px;
  margin: 0;
  padding: 0;
  font-family: "DengXian", "PingFang SC", "Microsoft YaHei", -apple-system, sans-serif;
  font-style: italic;
  font-size: clamp(1.0rem, 1.35vw, 1.125rem);
  font-weight: 500;
  color: var(--text-main); /* 纯黑色 (白昼深黑 #181614 / 黑夜纯净亮白) */
  letter-spacing: 0.04em;
  line-height: 1;
  user-select: text !important;
  -webkit-user-select: text !important;
  pointer-events: auto;
  z-index: 12;
  transition: color 0.4s var(--ease-spring);
}

/* --------------------------------------------------------------------------
   3.7 个人自述纯文字排印 (严格锁定绝对坐标 X: 806px · Y: 855px · 固定字号 14.5px)
   -------------------------------------------------------------------------- */
.hero-locked-bio {
  position: absolute;
  top: 855px; /* Y 轴严格保持 855px 不变 */
  left: 1072px; /* 中心位置精准落于 X: 1072px (屏幕右 3/4 黄金轴线) */
  transform: translateX(-50%); /* 以 1072px 为几何对称中心 */
  width: 460px;
  max-width: calc(100vw - 80px);
  margin: 0;
  padding: 0;
  font-family: "DengXian", "PingFang SC", "Microsoft YaHei", -apple-system, sans-serif;
  font-style: normal !important;
  font-size: clamp(1.0rem, 1.35vw, 1.125rem); /* 字体大小与颜色完全保持不变 */
  font-weight: 500;
  color: var(--text-main);
  line-height: 1.85;
  letter-spacing: 0.04em;
  text-align: justify;
  user-select: text !important;
  -webkit-user-select: text !important;
  pointer-events: auto;
  z-index: 12;
  transition: color 0.4s var(--ease-spring);
}





/* --------------------------------------------------------------------------
   3.8 macOS 原生液态玻璃按钮与弹出菜单 (X: 1050px · Y: 1109px)
   -------------------------------------------------------------------------- */
.hero-liquid-talk-wrapper {
  position: absolute;
  top: 1109px; /* 严格锁定 Y: 1109px */
  left: 1072px; /* 中心位置精准对齐 X: 1072px (与自述文字中心完全居中重合) */
  transform: translateX(-50%);
  z-index: 25;
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* macOS 原生半透明液态毛玻璃按钮主体 */
.macos-liquid-glass-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 2.8rem;
  min-width: 200px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.45); /* 白昼模式通透半透明底 */
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: 
    0 6px 20px -2px rgba(0, 0, 0, 0.05),
    0 1px 3px rgba(0, 0, 0, 0.02),
    inset 0 1px 1.5px 0 rgba(255, 255, 255, 0.7);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  outline: none;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  transform: translateY(0);
  transition: 
    transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
    background 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.25s ease,
    color 0.4s var(--ease-spring);
}

[data-theme="night"] .macos-liquid-glass-btn {
  background: rgba(36, 33, 30, 0.45); /* 黑夜模式通透烟熏半透明底 */
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 
    0 8px 24px -2px rgba(0, 0, 0, 0.5),
    0 1px 3px rgba(0, 0, 0, 0.3),
    inset 0 1px 1px 0 rgba(255, 255, 255, 0.25);
}

.macos-liquid-glass-btn:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.65);
  border-color: rgba(255, 255, 255, 0.9);
  box-shadow: 
    0 10px 28px -2px rgba(0, 0, 0, 0.08),
    inset 0 1px 2px 0 rgba(255, 255, 255, 0.9);
}

[data-theme="night"] .macos-liquid-glass-btn:hover {
  background: rgba(50, 46, 42, 0.6);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 
    0 12px 32px -2px rgba(0, 0, 0, 0.7),
    inset 0 1px 1px 0 rgba(255, 255, 255, 0.35);
}

.macos-liquid-glass-btn:active,
.hero-liquid-talk-wrapper.is-menu-open .macos-liquid-glass-btn {
  transform: translateY(0);
  background: rgba(255, 255, 255, 0.75);
}

[data-theme="night"] .macos-liquid-glass-btn:active,
[data-theme="night"] .hero-liquid-talk-wrapper.is-menu-open .macos-liquid-glass-btn {
  background: rgba(60, 56, 50, 0.75);
}

/* 文字绝对位于按钮正中央 */
.liquid-btn-text {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1.0625rem;
  text-align: center;
  margin: 0 auto;
}

/* 向下箭头：靠右独立布局 + 纯中心轴自旋平滑动画 (解决中心抖动奇怪的问题) */
.liquid-btn-chevron {
  position: absolute;
  right: 1.25rem;
  top: 50%;
  margin-top: -7px; /* 14px 图标高度的一半，精准物理垂直居中 */
  width: 14px;
  height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-origin: center center; /* 严格围绕自身图标中心纯旋转 */
  transform: rotate(0deg);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
  opacity: 0.65;
}

.hero-liquid-talk-wrapper.is-menu-open .liquid-btn-chevron {
  transform: rotate(180deg);
  opacity: 1;
}

.liquid-btn-chevron {
  display: flex;
  align-items: center;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0.6;
}

.hero-liquid-talk-wrapper.is-menu-open .liquid-btn-chevron {
  transform: rotate(180deg);
  opacity: 1;
}

/* --------------------------------------------------------------------------
   3.9 macOS 原生液态毛玻璃弹出菜单 (POPOVER MENU)
   -------------------------------------------------------------------------- */
.macos-liquid-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px) scale(0.96);
  width: 260px;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(30px) saturate(190%);
  -webkit-backdrop-filter: blur(30px) saturate(190%);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-lg);
  box-shadow: 
    0 16px 40px -8px rgba(0, 0, 0, 0.15),
    0 4px 12px rgba(0, 0, 0, 0.05),
    inset 0 1px 1px 0 rgba(255, 255, 255, 0.9);
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.96);
  transform-origin: top center;
  transition: 
    opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0.22s ease;
  z-index: 50;
  pointer-events: none;
}

[data-theme="night"] .macos-liquid-menu {
  background: rgba(26, 24, 22, 0.75);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 
    0 20px 48px -6px rgba(0, 0, 0, 0.7),
    0 6px 16px rgba(0, 0, 0, 0.5),
    inset 0 1px 1px 0 rgba(255, 255, 255, 0.25);
}

.hero-liquid-talk-wrapper.is-menu-open .macos-liquid-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0) scale(1.0);
  pointer-events: auto;
}

/* 菜单项 */
.liquid-menu-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text-main);
  cursor: pointer;
  outline: none;
  transition: background 0.18s ease, transform 0.15s ease;
}

.liquid-menu-item:hover,
.liquid-menu-item:focus {
  background: rgba(24, 22, 20, 0.07);
  transform: translateX(2px);
}

[data-theme="night"] .liquid-menu-item:hover,
[data-theme="night"] .liquid-menu-item:focus {
  background: rgba(255, 255, 255, 0.1);
}

.liquid-item-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-wechat {
  background: rgba(7, 193, 96, 0.15);
  color: #07C160;
}

.icon-email {
  background: rgba(0, 122, 255, 0.15);
  color: #007AFF;
}

[data-theme="night"] .icon-wechat {
  background: rgba(7, 193, 96, 0.25);
  color: #10D870;
}

[data-theme="night"] .icon-email {
  background: rgba(10, 132, 255, 0.25);
  color: #409CFF;
}

.liquid-item-info {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.liquid-item-title {
  font-family: var(--font-sans);
  font-size: 0.84375rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.2;
}

.liquid-item-sub {
  font-family: var(--font-mono);
  font-size: 0.71875rem;
  color: var(--text-muted);
  line-height: 1.2;
}

.copy-hint {
  font-size: 0.6875rem;
  color: #07C160;
  font-weight: 600;
  margin-left: 0.2rem;
}

.liquid-menu-divider {
  height: 1px;
  background: rgba(24, 22, 20, 0.06);
  margin: 0.15rem 0.35rem;
}

[data-theme="night"] .liquid-menu-divider {
  background: rgba(255, 255, 255, 0.08);
}



/* --------------------------------------------------------------------------
   4. 关于我板块 (ABOUT SECTION) — 盐系极简编辑部排版
   -------------------------------------------------------------------------- */
.about-section {
  position: relative;
  width: 100vw;
  min-height: 800px;
  background-color: var(--bg-page);
  padding: clamp(5rem, 10vh, 8rem) 0 clamp(6rem, 12vh, 10rem);
  z-index: 10;
  border-top: none !important;
  transition: background-color 0.4s var(--ease-spring), border-color 0.4s ease;
}



.about-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 60px);
  display: flex;
  flex-direction: column;
  gap: clamp(2.5rem, 5vh, 4rem);
}

/* 顶部标签栏 */
.section-tag-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.section-tag-pill {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

.section-tag-line { display: none !important; }



/* 主网格布局：左头像卡片，右长叙事 */
.about-content-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: flex-start;
}

/* 左侧：头像卡片 */
.about-avatar-card {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: sticky;
  top: 6.5rem;
}

.avatar-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 
    0 12px 32px -4px rgba(0, 0, 0, 0.08),
    0 2px 6px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(24, 22, 20, 0.08);
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s var(--ease-spring);
}

[data-theme="night"] .avatar-frame {
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 40px -4px rgba(0, 0, 0, 0.6);
}

.avatar-frame:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 18px 40px -6px rgba(0, 0, 0, 0.12);
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.avatar-caption {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.caption-name {
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: 0.04em;
}

.caption-desc {
  font-family: "DengXian", var(--font-sans);
  font-size: 0.84375rem;
  color: var(--text-muted);
}

/* 右侧：叙事文案 */
.about-text-narrative {
  display: flex;
  flex-direction: column;
  gap: 2.2rem;
}

.about-headline {
  font-family: var(--font-sans);
  font-size: clamp(1.8rem, 3.2vw, 2.75rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.03em;
  color: var(--text-main);
  margin: 0;
  transition: color 0.4s var(--ease-spring);
}

.about-paragraphs {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.about-paragraphs p {
  margin: 0;
  font-family: "DengXian", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: clamp(1.0rem, 1.25vw, 1.0625rem);
  line-height: 1.95;
  color: var(--text-body);
  letter-spacing: 0.02em;
  text-align: justify;
  transition: color 0.4s var(--ease-spring);
}

.about-paragraphs strong {
  color: var(--text-main);
  font-weight: 700;
}

/* 标签阵列 */
.about-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  padding-top: 0.5rem;
}

.about-tag {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(24, 22, 20, 0.04);
  border: 1px solid rgba(24, 22, 20, 0.07);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  transition: all 0.2s ease;
}

[data-theme="night"] .about-tag {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
}

.about-tag:hover {
  color: var(--text-main);
  border-color: var(--text-main);
  background: rgba(24, 22, 20, 0.08);
}

/* 响应式断点 */


/* --------------------------------------------------------------------------
   5. 兴趣爱好板块 (INTERESTS: CINEMA & TRAVEL) — 盐系极简双栏卡片
   -------------------------------------------------------------------------- */
.interests-section {
  position: relative;
  width: 100vw;
  min-height: 600px;
  background-color: var(--bg-page);
  padding: clamp(3rem, 6vh, 5rem) 0 clamp(6rem, 10vh, 8rem);
  z-index: 10;
  border-top: none !important;
  transition: background-color 0.4s var(--ease-spring);
}

.interests-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 60px);
  display: flex;
  flex-direction: column;
  gap: clamp(2.5rem, 4vh, 3.5rem);
}

.interests-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.75rem, 3vw, 2.5rem);
}

/* 兴趣卡片主体 */
.interest-card {
  position: relative;
  border-radius: var(--radius-lg);
  background: var(--card-glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--card-glass-border);
  box-shadow: var(--card-shadow);
  padding: clamp(2.2rem, 4vw, 3.2rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 380px;
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s var(--ease-spring), border-color 0.3s ease;
}

.interest-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-hover-shadow);
  border-color: rgba(24, 22, 20, 0.18);
}

[data-theme="night"] .interest-card:hover {
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 16px 40px -4px rgba(0, 0, 0, 0.7);
}

.interest-card-inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  height: 100%;
  justify-content: space-between;
}

/* 卡片顶部徽标与编号 */
.interest-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.interest-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--text-main);
  opacity: 0.6;
}

.interest-num {
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-muted);
  opacity: 0.45;
}

/* 卡片内容区域 */
.interest-card-body {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.interest-title {
  font-family: var(--font-sans);
  font-size: clamp(1.5rem, 2.2vw, 1.85rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--text-main);
  margin: 0;
  transition: color 0.4s var(--ease-spring);
}

.interest-desc {
  font-family: "DengXian", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: clamp(0.9375rem, 1.15vw, 1.0rem);
  line-height: 1.85;
  color: var(--text-body);
  letter-spacing: 0.02em;
  margin: 0;
  text-align: justify;
  transition: color 0.4s var(--ease-spring);
}

/* 标签小药丸 */
.interest-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  padding-top: 0.75rem;
}

.interest-pill {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(24, 22, 20, 0.04);
  border: 1px solid rgba(24, 22, 20, 0.07);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  transition: all 0.2s ease;
}

[data-theme="night"] .interest-pill {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
}

.interest-card:hover .interest-pill {
  border-color: rgba(24, 22, 20, 0.14);
}

[data-theme="night"] .interest-card:hover .interest-pill {
  border-color: rgba(255, 255, 255, 0.2);
}



/* --------------------------------------------------------------------------
   6. 响应式适配
   -------------------------------------------------------------------------- */



/* ==========================================================================
   6. 全端响应式自适应系统 (MOBILE & TABLET RESPONSIVE ENGINE)
   ========================================================================== */

/* 平板与移动端通用断点 (<= 960px) */
@media (max-width: 960px) {
  :root {
    --hero-name-font-size: clamp(2.4rem, 9.5vw, 3.6rem);
    --two-spaces-gap: clamp(0.6rem, 2vw, 1.0rem);
  }

  /* 1. 导航栏适配 */
  .nav-container {
    height: 4.25rem;
    padding-left: clamp(1.25rem, 4vw, 2rem) !important;
    padding-right: clamp(1.25rem, 4vw, 2rem) !important;
  }

  .nav-links {
    display: none;
  }

  .mobile-toggle-btn {
    display: flex;
  }

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

  .brand-custom-logo-img {
    height: clamp(34px, 6vw, 42px);
  }

  /* 2. 首屏 HERO 板块重构为自然纵向流式排版 */
  .hero-section {
    min-height: 100vh;
    height: auto;
    padding: 5.5rem clamp(1.25rem, 4vw, 2rem) 4rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 1.25rem;
    cursor: auto !important;
  }

  .ascii-scrolling-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 75%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 0%, #000 75%, transparent 100%);
  }

  .hero-custom-container {
    position: static;
    width: 100%;
    height: auto;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
  }

  .hero-bejamas-layout {
    position: static;
    top: auto;
    left: auto;
    transform: none;
    max-width: 100%;
    width: 100%;
    gap: 0.65rem;
  }

  .font-sans-sync {
    font-size: clamp(1.85rem, 7.5vw, 2.6rem);
    line-height: 1.05;
  }

  .font-name-wrapper {
    margin-top: 0.35rem;
    margin-bottom: 0.1rem;
  }

  .apo-mark, .apo-char-s {
    font-size: clamp(1.85rem, 7.5vw, 2.6rem);
  }

  .hero-low-energy-subtitle {
    position: static;
    top: auto;
    left: auto;
    margin: 0;
    font-size: clamp(0.9375rem, 3.5vw, 1.0rem);
    line-height: 1.5;
  }

  /* 自述文字：自适应宽度与自然流 */
  .hero-locked-bio {
    position: static !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    width: 100%;
    max-width: 100%;
    margin: 0.5rem 0 0 0;
    font-size: clamp(0.9375rem, 3.5vw, 1.0rem);
    line-height: 1.85;
  }

  /* 按钮适配 */
  .hero-liquid-talk-wrapper {
    position: static !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    width: 100%;
    margin: 0.75rem 0 0 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .macos-liquid-glass-btn {
    min-width: 180px;
    padding: 0.75rem 2.2rem;
    font-size: 0.9375rem;
  }

  .macos-liquid-menu {
    left: 0 !important;
    transform: translateY(-8px) scale(0.96) !important;
    transform-origin: top left !important;
    width: 100%;
    max-width: 290px;
  }

  .hero-liquid-talk-wrapper.is-menu-open .macos-liquid-menu {
    transform: translateY(0) scale(1.0) !important;
  }

  /* 3. 关于我板块适配 */
  .about-section {
    padding: 4rem 0;
  }

  .about-container {
    padding: 0 clamp(1.25rem, 4vw, 2rem);
    gap: 2.25rem;
  }

  .about-content-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-avatar-card {
    max-width: 260px;
    position: static;
  }

  .about-headline {
    font-size: clamp(1.5rem, 5.5vw, 2.0rem);
    line-height: 1.3;
  }

  /* 4. 兴趣爱好板块适配 */
  .interests-section {
    padding: 2.5rem 0 5rem;
  }

  .interests-container {
    padding: 0 clamp(1.25rem, 4vw, 2rem);
    gap: 2rem;
  }

  .interests-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .interest-card {
    min-height: auto;
    padding: 1.75rem 1.35rem;
  }

  .interest-title {
    font-size: clamp(1.25rem, 4.5vw, 1.5rem);
  }
}

/* 极窄屏手机适配 (<= 480px) */
@media (max-width: 480px) {
  .theme-text-badge {
    display: none;
  }

  .nav-theme-toggle {
    padding: 0.45rem 0.55rem;
    gap: 0;
  }

  .hero-section {
    padding-top: 5.0rem;
    padding-bottom: 3.5rem;
  }
}
