/* ============================================
   Design Tokens (来自 Figma)
   ============================================ */
:root {
  /* 文字 */
  --text-main: #1b1c1d;
  --text-primary: #4d4d5f;
  --icon-tertiary: #bbbdca;

  /* 强调色 */
  --accent-blue: #328efb;
  --accent-green: #48d096;
  --accent-yellow: #fbc768;
  --accent-orange: #e1663f;
  --text-secondary: #7c7f9a;

  /* 底色 */
  --bg: #ffffff;

  /* 字体 */
  --font-en: "Elms Sans", "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-cn: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB",
    "Noto Sans SC", sans-serif;
  --font-hand: "Caveat", "Kalam", "Comic Sans MS", cursive;

  /* 边框 / 卡片表面 */
  --border-primary: #e7e8ee;
  --card-violet-border: rgba(110, 80, 255, 0.08);
  --card-violet-tint: rgba(128, 101, 255, 0.08);
  --card-orange-border: rgba(255, 91, 0, 0.1);
  --card-orange-tint: rgba(255, 91, 0, 0.08);

  /* 表面色（贴纸卡片） */
  --surface-mint: #d8f3e0;
  --surface-yellow: #fff5b8;
  --surface-orange: #ffd6c2;
  --surface-blue: #d6e8ff;
  --surface-pink: #ffd6e0;
  --surface-cream: #fff8e8;

  /* 布局 */
  --container: 1200px;
  --border: rgba(27, 28, 29, 0.1);
  --nav-height: 64px;
}

/* ============================================
   Reset
   ============================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text-main);
  font-family: var(--font-en);
  font-size: 16px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

/* ============================================
   Page wrapper
   ============================================ */
.page {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ============================================
   背景圆点
   ============================================ */
.dots {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1920px;
  height: 965px;
  pointer-events: none;
  z-index: 0;
}

.dots__grid {
  position: absolute;
  inset: 0;
  background-image: url("./assets/shared/swatch.png");
  background-repeat: repeat;
  background-size: 486px 486px;
  background-position: top left;
  opacity: 0.24;
}

.dots__fade {
  position: absolute;
  left: 0;
  right: 0;
  top: 485px;
  height: 480px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, #ffffff 100%);
}

/* ============================================
   导航
   ============================================ */
.nav {
  position: relative;
  z-index: 10;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 24px;
}

.nav__inner {
  width: 100%;
  max-width: var(--container);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 20px;
  line-height: 1.4;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__links a {
  font-family: var(--font-en);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.4;
  color: var(--text-primary);
  transition: color 0.2s ease;
}

.nav__links a:hover {
  color: var(--text-main);
}

/* ============================================
   Hero（严格按 Figma 740:6032 还原 1000×257）
   ============================================ */
.hero {
  position: relative;
  z-index: 1;
  padding: 20px 24px 80px;
}

.hero__inner {
  position: relative;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 38px;
}

/* —— 左侧文案：723px 宽 —— */
.hero__copy {
  width: 723px;
  flex-shrink: 0;
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 36px; /* 标题块 → chips 间距 */
}

/* 标题：两行，使用 flex 列布局；上方装饰曲线绝对定位 */
.hero__title {
  position: relative;
  margin: 0;
  padding-top: 45px; /* 给 underline 留出空间 */
  display: flex;
  flex-direction: column;
  gap: 17px; /* 行间距：60+17+59 ≈ 136；外加 padding 45 ≈ 181 */
  font-family: var(--font-cn);
  font-weight: 500;
  font-size: 42px;
  line-height: 1.4;
  color: var(--text-main);
}

/* 标题上方装饰曲线：x=291, y=0, w=239.5, h=36.5 */
.hero__underline {
  position: absolute;
  top: 0;
  left: 291px;
  width: 239.5px;
  height: 36.54px;
  pointer-events: none;
}

/* 行 */
.hero__line {
  display: flex;
  gap: 8px;
  white-space: nowrap;
}

.hero__line--1 {
  align-items: center;
}

.hero__line--2 {
  align-items: baseline;
}

.hero__line .t {
  display: inline-block;
}

/* —— Emoji 风格图标：60×60 —— */
.hero__icon {
  width: 60px;
  height: 60px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hero__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Earth：保留 13.23° 倾斜，hover 时朝一个方向轻转，离开回到原位 */
.hero__icon--earth {
  transform: rotate(13.23deg);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.hero__icon--earth:hover {
  transform: rotate(33.23deg);
}

/* Sparkle：hover 时朝一个方向轻转，离开回到原位 */
.hero__icon--sparkle {
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.hero__icon--sparkle:hover {
  transform: rotate(20deg);
}

/* —— 大括号强调 —— */
.brace {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}

.brace__b {
  font-family: var(--font-cn);
  font-weight: 600;
  font-size: 46px;
  line-height: 46px;
}

.brace--green .brace__b {
  color: var(--accent-green);
}

.brace--yellow .brace__b {
  color: var(--accent-yellow);
}

/* —— 词切换：商品 ↔ AI（逐字 fade） —— */
.word-swap {
  position: relative;
  display: inline-block;
  vertical-align: baseline;
  line-height: 1.4;
  white-space: nowrap;
}

/* placeholder 撑开容器尺寸：用最宽的词「商品」固定宽度，避免 } 抖动 */
.word-swap__placeholder {
  visibility: hidden;
  display: inline-block;
}

.word-swap__display {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: baseline;
  white-space: nowrap;
}

.word-swap__char {
  display: inline-block;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.word-swap__char--visible {
  opacity: 1;
}

/* —— Hero · 身份 chips —— */
.hero__chips {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 16px;
  border: 1px solid var(--text-main);
  border-radius: 999px;
  background: #fff;
  font-family: var(--font-cn);
  font-weight: 400;
  font-size: 20px;
  line-height: 1.4;
  color: var(--text-main);
  white-space: nowrap;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.chip--cta {
  padding-right: 12px;
  cursor: pointer;
}

.chip--cta:hover {
  background: var(--text-main);
  color: #fff;
}

.chip__arrow {
  display: block;
  flex-shrink: 0;
}

/* —— 右侧 iMac 视觉区：440×340 —— */
.hero__visual {
  position: relative;
  width: 440px;
  height: 340px;
  flex-shrink: 0;
}

.hero__imac {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  user-select: none;
  -webkit-user-drag: none;
}

/* ============================================
   Section 2 · Selected Work
   ============================================ */
.works {
  position: relative;
  z-index: 1;
  padding: 100px 24px;
}

.works__inner {
  position: relative;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 120px;
}

/* —— 分组 —— */
.works__group {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.works__group-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.works__group-title {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-cn);
  font-weight: 500;
  font-size: 28px;
  line-height: 1.4;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.works__group-hash {
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 32px;
  line-height: 1.4;
  flex-shrink: 0;
}

.works__group-hash--ai {
  color: #6e50ff;
}

.works__group-hash--ecom {
  color: var(--accent-orange);
}

.works__group-desc {
  margin: 0;
  font-family: var(--font-cn);
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-secondary);
  white-space: nowrap;
}

/* —— 卡片网格 —— */
.works__grid {
  display: grid;
  gap: 40px;
}

.works__grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

/* —— 卡片：三层（背景 / 插图 / 文字浮层）—— */
.work-card {
  position: relative;
  border-radius: 16px;
  border: 1px solid var(--card-violet-border);
  overflow: hidden;
  aspect-ratio: 572 / 400;
  background:
    linear-gradient(
      -2.95deg,
      rgba(255, 255, 255, 0) 24.53%,
      var(--card-violet-tint) 99.55%
    ),
    #ffffff;
  isolation: isolate;
}

/* 跨境电商：橙色主题 */
.work-card--orange {
  border-color: var(--card-orange-border);
  background:
    linear-gradient(
      -2.8deg,
      rgba(255, 255, 255, 0) 26.86%,
      var(--card-orange-tint) 117.7%
    ),
    #ffffff;
}

.work-card__link {
  position: absolute;
  inset: 0;
  display: block;
  text-decoration: none;
  color: inherit;
}

/* 第二层：插图（截图 / 占位） */
.work-card__art {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.work-card__art-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.work-card__art-label {
  font-family: var(--font-en);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: 0.02em;
  color: rgba(27, 28, 29, 0.28);
}

/* 第三层：文字浮层（固定 140px 白色渐变蒙版常驻在最上层） */
.work-card__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 140px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  background: linear-gradient(
    178.19deg,
    rgba(255, 255, 255, 0) 3.65%,
    #ffffff 33%
  );
  pointer-events: none;
  z-index: 2;
}

.work-card__heading {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.work-card__title {
  margin: 0;
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  font-size: 20px;
  line-height: 1.4;
  color: var(--text-main);
  letter-spacing: 0;
}

.work-card__title-cn {
  font-family: var(--font-cn);
  font-weight: 400;
}

.work-card__title-en {
  font-family: var(--font-en);
  font-weight: 500;
}

/* 标签 */
.work-card__tag {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 24px;
  padding: 0 10px;
  background: #ffffff;
  border: 1px solid var(--border-primary);
  border-radius: 999px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--text-primary);
  white-space: nowrap;
}

.work-card__tag-en {
  font-family: var(--font-en);
  font-weight: 400;
}

.work-card__tag-cn {
  font-family: var(--font-cn);
  font-weight: 400;
}

/* 描述：默认收起，hover 时通过 max-height + margin-top 把标题向上推出来 */
.work-card__desc {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-cn);
  font-size: 14px;
  line-height: 1.4;
  color: var(--text-secondary);
  max-height: 0;
  margin-top: 0;
  overflow: hidden;
  transition:
    max-height 0.36s cubic-bezier(0.22, 1, 0.36, 1),
    margin-top 0.36s cubic-bezier(0.22, 1, 0.36, 1);
}

.work-card__desc-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.work-card:hover .work-card__desc,
.work-card:focus-within .work-card__desc {
  max-height: 24px;
  margin-top: 10px;
}

/* ============================================
   Section 2.5 · AI Native Workflow（左文 + 右切图）
   ============================================ */
.flow {
  position: relative;
  width: 100%;
  padding: 80px 24px;
  background: #fff;
}

.flow__inner {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
}

.flow__row {
  display: grid;
  grid-template-columns: 1fr 580px;
  gap: 64px;
  align-items: center;
}

/* —— 左侧文案 —— */
.flow__copy {
  display: flex;
  flex-direction: column;
  gap: 36px;
  align-self: stretch;
  justify-content: flex-start;
}

.flow__copy-head {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.flow__eyebrow {
  margin: 0;
  font-family: var(--font-en);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--text-secondary);
}

.flow__title {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-cn);
  font-weight: 500;
  font-size: 28px;
  line-height: 1.4;
  color: var(--text-main);
}

.flow__title-hash {
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 32px;
  line-height: 1.4;
  color: var(--accent-green);
  flex-shrink: 0;
}

.flow__body {
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-family: var(--font-cn);
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-primary);
}

.flow__body p {
  margin: 0;
}

/* —— 右侧工作流切图 —— */
.flow__visual {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
}

.flow__visual-img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 584px;
  user-select: none;
  -webkit-user-drag: none;
}

/* ============================================
   Section 3 · I design and ship（散落贴纸卡片墙）
   ============================================ */
.life {
  position: relative;
  width: 100%;
  padding: 80px 24px 120px;
  background: #f7f8fa;
  overflow: hidden;
}

.life__inner {
  position: relative;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  height: 880px;
}

/* 顶部小标签 */
.life__name {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-en);
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  z-index: 1;
}

.life__name-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-blue);
}

/* 大标题 */
.life__headline {
  position: absolute;
  top: 270px;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  font-family: var(--font-en);
  font-weight: 500;
  font-size: 80px;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--text-main);
  white-space: nowrap;
  z-index: 0;
}

.life__headline em {
  font-family: "Times New Roman", "Noto Serif SC", serif;
  font-style: italic;
  font-weight: 400;
}

/* —— 贴纸卡片基础 —— */
.life-card {
  position: absolute;
  background: #fff;
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow:
    0 1px 2px rgba(27, 28, 29, 0.04),
    0 8px 24px rgba(27, 28, 29, 0.08);
  transform: rotate(var(--rot, 0deg));
  transition:
    transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.35s ease;
  z-index: 2;
  font-family: var(--font-en);
  color: var(--text-main);
  text-decoration: none;
}

.life-card:hover {
  transform: rotate(0deg) translateY(-4px) scale(1.03);
  box-shadow:
    0 2px 4px rgba(27, 28, 29, 0.06),
    0 16px 40px rgba(27, 28, 29, 0.14);
  z-index: 5;
}

.life-card__eyebrow {
  margin: 0 0 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--icon-tertiary);
}

.life-card__eyebrow--light {
  color: rgba(255, 255, 255, 0.5);
}

.life-card__strong {
  margin: 0;
  font-family: var(--font-en);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.3;
}

.life-card__sub {
  margin: 4px 0 0;
  font-family: var(--font-en);
  font-size: 12px;
  color: var(--text-primary);
}

.life-card__list {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: var(--font-en);
  font-size: 13px;
  color: var(--text-main);
}

/* —— 头像 polaroid —— */
.life-card--avatar {
  top: 60px;
  left: 60px;
  width: 220px;
  padding: 16px;
}

.life-card__photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(135deg, #f0e8ff 0%, #d8c8fb 100%);
}

.life-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.life-card__caption {
  margin: 14px 0 0;
  text-align: center;
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--text-primary);
}

/* —— 时钟 —— */
.life-card--clock {
  top: 350px;
  left: 80px;
  width: 220px;
  padding: 18px 22px;
}

.life-card__meta {
  margin: 0;
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--icon-tertiary);
}

.life-card__clock {
  margin: 4px 0 2px;
  font-family: var(--font-en);
  font-size: 30px;
  font-weight: 500;
  color: var(--text-main);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.life-card__ampm {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: 0;
}

/* —— 音乐播放器 —— */
.life-card--music {
  top: 60px;
  left: 50%;
  transform: translateX(-50%) rotate(var(--rot, 0deg));
  margin-left: -50px;
  width: 320px;
  background: #1b1c1d;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
}

.life-card--music:hover {
  transform: translateX(-50%) rotate(0deg) translateY(-4px) scale(1.03);
}

.life-card__cover {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  background: linear-gradient(135deg, #ff8b8b 0%, #ffd1aa 50%, #88c5ff 100%);
  flex-shrink: 0;
}

.life-card__music-info {
  flex: 1;
  min-width: 0;
}

.life-card__music-title {
  margin: 0;
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 500;
  color: #fff;
}

.life-card__music-artist {
  margin: 1px 0 6px;
  font-family: var(--font-en);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
}

.life-card__progress {
  display: flex;
  align-items: center;
  gap: 8px;
}

.life-card__bar {
  flex: 1;
  height: 3px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}

.life-card__bar-inner {
  position: absolute;
  inset: 0;
  width: var(--p, 24%);
  background: rgba(255, 255, 255, 0.7);
  border-radius: 999px;
}

.life-card__time {
  font-family: var(--font-en);
  font-size: 10px;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.life-card__play {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff;
  color: #1b1c1d;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.life-card__play svg {
  width: 16px;
  height: 16px;
}

/* —— Open to chat 黑卡 —— */
.life-card--chat {
  top: 90px;
  right: 280px;
  width: 200px;
  background: #1b1c1d;
  color: #fff;
}

.life-card--chat .life-card__cta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  font-family: var(--font-en);
  color: #fff;
  text-decoration: none;
}

.life-card--chat .life-card__cta svg {
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.7);
}

.life-card--chat .life-card__cta span {
  display: flex;
  flex-direction: column;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
}

.life-card--chat .life-card__cta small {
  font-size: 11px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 2px;
}

/* —— Available now 绿卡 —— */
.life-card--available {
  top: 50px;
  right: 50px;
  width: 200px;
  background: var(--surface-mint);
}

.life-card__pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #16a34a;
  box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.5);
  animation: pulse 1.6s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.5);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(22, 163, 74, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(22, 163, 74, 0);
  }
}

/* —— Currently learning 黄色便签 —— */
.life-card--learning {
  top: 350px;
  right: 360px;
  width: 180px;
  background: var(--surface-yellow);
}

.life-card--learning .life-card__strong {
  font-size: 15px;
  margin-top: 4px;
}

/* —— Lifestyle 橙色便签 —— */
.life-card--vibes {
  top: 240px;
  right: 50px;
  width: 220px;
  padding: 18px 20px;
  background: var(--surface-orange);
  font-family: var(--font-cn);
  font-size: 14px;
  line-height: 1.7;
  color: #5a3220;
}

/* —— Rate this portfolio —— */
.life-card--rate {
  top: 380px;
  left: 380px;
  padding: 14px 18px;
  width: auto;
}

.life-card__stars {
  margin-top: 4px;
  display: flex;
  gap: 2px;
  font-size: 16px;
  letter-spacing: 2px;
}

.life-card__stars span {
  color: #fbbf24;
}

/* —— Currently reading —— */
.life-card--reading {
  top: 480px;
  left: 50%;
  transform: translateX(-50%) rotate(var(--rot, 0deg));
  margin-left: 30px;
  width: 240px;
  padding: 16px 18px 18px;
}

.life-card--reading:hover {
  transform: translateX(-50%) rotate(0deg) translateY(-4px) scale(1.03);
}

.life-card__book {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 8px;
}

.life-card__book-cover {
  width: 50px;
  height: 70px;
  flex-shrink: 0;
  border-radius: 4px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, transparent 60%),
    linear-gradient(180deg, #f8e8d8 0%, #d8b88a 100%);
  box-shadow: 0 2px 6px rgba(27, 28, 29, 0.12);
  position: relative;
}

.life-card__book-cover::after {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 2px;
}

.life-card__book-info {
  flex: 1;
  min-width: 0;
}

.life-card__book-info .life-card__strong {
  font-family: var(--font-cn);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 2px;
}

.life-card__book-info .life-card__sub {
  margin: 0 0 8px;
  font-family: var(--font-cn);
  font-size: 11px;
  color: var(--text-primary);
}

.life-card__book-info .life-card__bar {
  background: rgba(0, 0, 0, 0.08);
  margin-bottom: 4px;
}

.life-card__book-info .life-card__bar-inner {
  background: var(--text-main);
}

.life-card__book-info .life-card__time {
  color: var(--text-primary);
  font-size: 10px;
}

/* —— CV / Resume —— */
.life-card--cv {
  top: 460px;
  right: 320px;
  width: 130px;
  background: var(--surface-yellow);
  padding: 14px 16px;
}

.life-card--cv .life-card__strong {
  font-size: 15px;
}

/* —— Interests —— */
.life-card--interests {
  top: 580px;
  left: 70px;
  width: 280px;
  padding: 16px 18px 18px;
}

.life-card__tags {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.life-card__tags li {
  display: inline-block;
  padding: 4px 10px;
  border: 1px solid rgba(27, 28, 29, 0.12);
  border-radius: 999px;
  font-family: var(--font-en);
  font-size: 12px;
  color: var(--text-main);
  background: #fff;
}

/* —— Find me online 蓝卡 —— */
.life-card--social {
  top: 620px;
  right: 70px;
  width: 200px;
  background: var(--surface-blue);
  padding: 14px 18px;
}

.life-card--social .life-card__strong {
  font-size: 15px;
}

/* ============================================
   自定义光标
   ============================================ */

.work-card, .work-card * { cursor: none !important; }

.cur {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  pointer-events: none;
  /* 默认：24px 实心圆 */
  min-width: 24px;
  height: 24px;
  max-width: 24px;
  border-radius: 50%;
  border: none;
  background: rgba(27, 28, 29, 0.15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  opacity: 0;
  padding: 0;
  gap: 0;
  white-space: nowrap;
  transition:
    opacity 0.15s ease,
    max-width 0.36s cubic-bezier(0.16, 1, 0.3, 1),
    height    0.36s cubic-bezier(0.16, 1, 0.3, 1),
    padding   0.36s cubic-bezier(0.16, 1, 0.3, 1),
    gap       0.36s cubic-bezier(0.16, 1, 0.3, 1),
    border-radius 0.36s cubic-bezier(0.16, 1, 0.3, 1),
    background 0.3s ease;
  will-change: transform;
}

.cur--on { opacity: 1; }

/* hover 卡片：展开成「查看案例」胶囊（Figma 934:265） */
.cur--card {
  max-width: 140px;
  height: 32px;
  padding: 6px 10px 6px 16px;
  gap: 2px;
  border-radius: 999px;
  background: rgba(27, 28, 29, 0.6);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.cur__label {
  font-family: var(--font-cn);
  font-size: 14px;
  line-height: 1.4;
  color: #fff;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.cur--card .cur__label {
  opacity: 1;
  transition-delay: 0.12s;
}


/* ============================================
   响应式
   ============================================ */
/* 中等屏：避免 723 + 277 总宽超过容器 */
@media (max-width: 1080px) {
  .hero__copy {
    width: auto;
    flex: 1 1 auto;
    min-width: 0;
  }
  .hero__title {
    font-size: 36px;
  }
  .hero__line {
    flex-wrap: wrap;
    white-space: normal;
  }
  .brace__b {
    font-size: 40px;
    line-height: 40px;
  }
  .hero__icon {
    width: 52px;
    height: 52px;
  }
  .hero__underline {
    width: 200px;
    left: 240px;
  }
  .hero__visual {
    width: 380px;
    height: 290px;
  }

  /* Section 2 中屏 */
  .works {
    padding: 80px 24px;
  }
  .works__inner {
    gap: 96px;
  }
  .works__group {
    gap: 28px;
  }
  .works__grid {
    gap: 24px;
  }
  .work-card__title {
    font-size: 22px;
  }
  .works__group-title {
    font-size: 24px;
  }

  /* Section 2.5 中屏 */
  .flow {
    padding: 96px 24px;
  }
  .flow__row {
    grid-template-columns: 1fr 460px;
    gap: 48px;
  }
  .flow__visual-img {
    max-width: 460px;
  }

  /* Section 3 中屏：缩小画布 + 头条 */
  .life {
    padding: 60px 24px 100px;
  }
  .life__inner {
    height: 760px;
  }
  .life__headline {
    font-size: 64px;
    top: 240px;
  }
  .life-card--avatar {
    left: 24px;
    width: 180px;
  }
  .life-card--clock {
    left: 40px;
    top: 320px;
    width: 200px;
  }
  .life-card--music {
    margin-left: -40px;
    width: 280px;
  }
  .life-card--chat {
    right: 240px;
    width: 180px;
  }
  .life-card--available {
    right: 24px;
    width: 180px;
  }
  .life-card--learning {
    right: 300px;
    width: 160px;
  }
  .life-card--vibes {
    right: 24px;
    width: 200px;
  }
  .life-card--reading {
    margin-left: 40px;
    width: 220px;
  }
  .life-card--cv {
    right: 280px;
  }
  .life-card--interests {
    left: 32px;
    width: 240px;
  }
  .life-card--social {
    right: 32px;
    width: 180px;
  }
}

/* 小屏：单列堆叠 */
@media (max-width: 768px) {
  .nav {
    padding: 18px 20px;
  }
  .nav__links {
    gap: 20px;
  }
  .nav__links a {
    font-size: 14px;
  }
  .hero {
    padding: 32px 20px 0;
  }
  .hero__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
  }
  .hero__copy {
    width: 100%;
    gap: 24px;
  }
  .hero__title {
    font-size: 26px;
    padding-top: 0;
    gap: 12px;
  }
  .brace__b {
    font-size: 30px;
    line-height: 30px;
  }
  .hero__icon {
    width: 38px;
    height: 38px;
  }
  .hero__underline {
    display: none;
  }
  .hero__chips {
    gap: 8px;
  }
  .chip {
    font-size: 14px;
    padding: 4px 12px;
  }
  .chip--cta {
    padding-right: 8px;
  }
  .chip__arrow {
    width: 16px;
    height: 16px;
  }
  .hero__visual {
    width: 100%;
    max-width: 360px;
    height: 280px;
    align-self: center;
    margin: 0 auto;
  }

  /* Section 2 小屏 */
  .works {
    padding: 64px 20px;
  }
  .works__inner {
    gap: 72px;
  }
  .works__group {
    gap: 24px;
  }
  .works__group-header {
    gap: 8px;
  }
  .works__group-title {
    font-size: 22px;
  }
  .works__group-desc {
    font-size: 14px;
    white-space: normal;
  }
  .works__grid--2 {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .work-card {
    aspect-ratio: 4 / 3;
    border-radius: 12px;
  }
  .work-card__overlay {
    padding: 20px;
  }
  .work-card__title {
    font-size: 18px;
  }

  /* Section 2.5 小屏 */
  .flow {
    padding: 64px 20px;
  }
  .flow__row {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .flow__copy {
    padding-top: 0;
  }
  .flow__title {
    font-size: 26px;
  }
  .flow__visual-img {
    max-width: 100%;
  }

  /* Section 3 小屏：网格化堆叠（保留贴纸感但放弃绝对定位） */
  .life {
    padding: 48px 20px 80px;
  }
  .life__inner {
    height: auto;
  }
  .life__name {
    position: relative;
    transform: none;
    margin: 0 auto 16px;
    display: flex;
    justify-content: center;
  }
  .life__headline {
    position: relative;
    transform: none;
    top: auto;
    left: auto;
    margin: 0 auto 32px;
    text-align: center;
    font-size: 48px;
    white-space: normal;
  }
  .life-card,
  .life-card--avatar,
  .life-card--clock,
  .life-card--music,
  .life-card--chat,
  .life-card--available,
  .life-card--learning,
  .life-card--vibes,
  .life-card--rate,
  .life-card--reading,
  .life-card--cv,
  .life-card--interests,
  .life-card--social {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    margin: 0 !important;
    width: 100% !important;
    transform: rotate(var(--rot, 0deg));
  }
  .life__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
  .life__name,
  .life__headline {
    grid-column: 1 / -1;
  }
  .life-card--avatar,
  .life-card--reading {
    grid-column: 1 / -1;
  }
  .life-card--music {
    grid-column: 1 / -1;
  }
  .life-card--vibes,
  .life-card--interests {
    grid-column: 1 / -1;
  }
}
