/* ============================================================
   陈子昂 · 个人网站 —— 手账剪贴簿（Scrapbook）风格
   纸面 / 手写体 / 拍立得 / 胶带 / 便利贴 / 马克笔高亮
   ============================================================ */

:root {
  --bg: #faf9f6;
  --paper: #fffdf8;
  --card: #fffdf8;
  --card-2: #f3f1e9;
  --fg: #1f2937;
  --muted: #64748b;
  --border: #e5dfd2;
  --primary: #f59e0b;
  --primary-deep: #d97706;
  --primary-2: #fb7185;
  --graffiti: #f472b6;
  --ok: #10b981;
  --tape-blue: rgba(191, 219, 254, 0.7);
  --tape-pink: rgba(251, 207, 232, 0.75);
  --tape-yellow: rgba(253, 230, 138, 0.75);
  --tape-white: rgba(255, 255, 255, 0.72);
  --ink-shadow: 0 1px 3px rgba(31, 41, 55, 0.1);
  --paper-shadow: 0 10px 30px -12px rgba(31, 41, 55, 0.18);
  --radius: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  /* 手写体栈：标题用「薯条少年」笨拙手写（中英文通吃） */
  --font-hand-title: "LuoRiShaTan", "Kalam", "Zhi Mang Xing", "LXGW WenKai", cursive;
  /* 英文手写正文 */
  --font-hand: "Caveat", "LXGW WenKai", cursive;
  /* 中文正文楷体 */
  --font-body: "LXGW WenKai", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "Caveat", "LXGW WenKai", cursive;
}

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

html {
  scroll-behavior: smooth;
  color-scheme: light;
}

body {
  margin: 0;
  background: var(--bg);
  /* 方格纸纹理 */
  background-image: linear-gradient(rgba(148, 163, 184, 0.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.13) 1px, transparent 1px);
  background-size: 20px 20px;
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: rgba(245, 158, 11, 0.35);
}

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

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

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-hand-title);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: 0.01em;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: 100%;
  max-width: 840px;
  margin: 0 auto;
  padding: 0 24px;
}

.mono {
  font-family: var(--font-hand);
  font-size: 17px;
  letter-spacing: 0.06em;
  text-transform: none;
  color: var(--muted);
}

.muted {
  color: var(--muted);
}

/* 马克笔划线强调（替代原渐变字） */
.gradient-text {
  color: inherit;
  background: linear-gradient(100deg, transparent 2%, rgba(245, 158, 11, 0.45) 5%, rgba(245, 158, 11, 0.38) 95%, transparent 98%);
  border-radius: 4px;
  padding: 0 0.12em;
}

/* ---------- 背景装饰 ---------- */
.bg-grid {
  display: none; /* 格纹已上移至 body 全局 */
}

.orb {
  position: absolute;
  left: 50%;
  top: 60px;
  z-index: -1;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: rgba(253, 230, 138, 0.4);
  filter: blur(130px);
  animation: float-orb 12s ease-in-out infinite;
}

@keyframes float-orb {
  0%,
  100% {
    transform: translate(-50%, 0) scale(1);
  }
  50% {
    transform: translate(-46%, -24px) scale(1.08);
  }
}

/* ---------- 胶带 ---------- */
.tape {
  position: absolute;
  z-index: 5;
  width: 92px;
  height: 26px;
  pointer-events: none;
  background: var(--tape-pink);
  box-shadow: var(--ink-shadow);
  clip-path: polygon(2% 14%, 5% 0, 95% 5%, 100% 10%, 98% 88%, 94% 100%, 6% 95%, 0 90%);
}

.tape--top {
  top: -13px;
  left: 50%;
  transform: translateX(-50%) rotate(-3deg);
}

.tape--tl {
  top: -10px;
  left: -24px;
  transform: rotate(-38deg);
}

.tape--tr {
  top: -10px;
  right: -24px;
  transform: rotate(38deg);
}

.tape--blue {
  background: var(--tape-blue);
}

.tape--yellow {
  background: var(--tape-yellow);
}

.tape--white {
  background: var(--tape-white);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-sizing: border-box;
}

/* ---------- 拍立得照片 ---------- */
.polaroid {
  position: relative;
  padding: 14px 14px 58px;
  background: #fff;
  border: 1px solid rgba(31, 41, 55, 0.06);
  box-shadow: var(--paper-shadow);
  transform: rotate(-3deg);
  transition: transform 0.45s var(--ease-bounce);
}

.polaroid:hover {
  transform: rotate(-1deg) translateY(-6px);
}

.polaroid img {
  width: 100%;
  border-radius: 2px;
}

.polaroid-caption {
  position: absolute;
  bottom: 14px;
  left: 0;
  right: 0;
  padding-left: 96px;
  text-align: right;
  font-family: var(--font-hand-title);
  font-size: 17px;
  color: #374151;
  letter-spacing: 0.04em;
}

/* 便利贴 */
.sticky-note {
  position: relative;
  display: inline-block;
  max-width: 220px;
  padding: 18px 20px;
  background: #fde68a;
  color: #78350f;
  font-family: var(--font-hand-title);
  font-size: 15px;
  line-height: 1.5;
  box-shadow: var(--ink-shadow);
  transform: rotate(4deg);
  transition: transform 0.35s var(--ease-bounce);
}

.sticky-note:hover {
  transform: rotate(1deg) scale(1.03);
}

.sticky-note--green {
  background: #d9f99d;
  color: #365314;
}

.sticky-note--pink {
  background: #fbcfe8;
  color: #9d174d;
}

.sticky-note--blue {
  background: #bfdbfe;
  color: #1e3a8a;
}

/* ---------- 导航 ---------- */
.nav-wrap {
  position: fixed;
  inset: 12px 0 auto;
  z-index: 50;
  display: flex;
  justify-content: center;
  padding: 0 16px;
  pointer-events: none;
}

.nav-wrap.is-scrolled .nav {
  box-shadow: 0 8px 30px -10px rgba(31, 41, 55, 0.25);
}

.nav {
  pointer-events: auto;
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  max-width: 840px;
  padding: 12px 20px;
  background: #fffdf8;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1.5px dashed #e0d9c8;
  border-radius: 4px;
  box-shadow: 0 6px 18px -8px rgba(31, 41, 55, 0.2), 0 1px 3px rgba(31, 41, 55, 0.07);
  transition: box-shadow 0.3s var(--ease);
}

.nav-links {
  grid-column: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 4vw, 44px);
}

.nav-link {
  position: relative;
  padding: 6px 4px;
  font-family: var(--font-hand-title);
  font-size: 18px;
  font-weight: 400;
  color: #3b4a6b;
  transition: color 0.2s;
}

/* 黄色马克笔弧线：hover 预览，当前页常显 */
.nav-link::after {
  content: "";
  position: absolute;
  left: 14%;
  right: 14%;
  bottom: -2px;
  height: 3px;
  background: #fbbf24;
  border-radius: 50% 50% 50% 50% / 100% 100% 0 0;
  transform: scaleX(0.4) rotate(-1.5deg);
  opacity: 0;
  transition: opacity 0.25s, transform 0.3s var(--ease-bounce);
}

.nav-link:hover {
  color: #1e293b;
}

.nav-link:hover::after {
  opacity: 0.65;
  transform: scaleX(0.85) rotate(-1.5deg);
}

.nav-link[aria-current="page"] {
  color: #111827;
}

.nav-link[aria-current="page"]::after {
  opacity: 1;
  transform: scaleX(1) rotate(-1.5deg);
}

/* 品牌标签 Hi, Span */
.nav-home {
  font-size: 24px;
  color: #1e293b;
}

.nav-cta {
  grid-column: 3;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 18px;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
  font-family: var(--font-hand-title);
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  border: 1px solid rgba(217, 119, 6, 0.6);
  box-shadow: var(--ink-shadow);
  transition: transform 0.3s var(--ease-bounce), background 0.2s;
}

.nav-cta svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.nav-cta:hover {
  background: var(--primary-deep);
  transform: scale(1.05);
}

@media (max-width: 720px) {
  .nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    padding: 10px 12px;
  }
  .nav-link {
    padding: 6px 2px;
    font-size: 16px;
  }
  .nav-cta {
    padding: 7px 12px;
    font-size: 16px;
  }
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1.5px solid #d6cfc0;
  border-radius: 14px;
  background: var(--paper);
  font-family: var(--font-hand-title);
  font-size: 15px;
  font-weight: 700;
  color: var(--fg);
  box-shadow: var(--ink-shadow);
  transform: rotate(-0.5deg);
  transition: transform 0.3s var(--ease-bounce), box-shadow 0.3s, background 0.2s;
}

.btn:hover {
  transform: rotate(0deg) translateY(-3px);
  box-shadow: 0 8px 20px -8px rgba(31, 41, 55, 0.3);
}

.btn-primary {
  border-color: rgba(217, 119, 6, 0.6);
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-deep);
}

.btn svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s var(--ease);
}

.btn:hover svg {
  transform: translate(2px, 2px);
}

.btn-arrow-right:hover svg {
  transform: translateX(3px);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 140px 0 96px;
}

.page-hero {
  padding: 140px 0 64px;
}

.hero-grid {
  display: grid;
  gap: 48px;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 0.85fr 1.15fr;
    gap: 64px;
  }
}

.hero-photo {
  position: relative;
  max-width: 380px;
  margin: 0 auto;
  width: 100%;
}

.hero-photo .polaroid {
  z-index: 1;
}

.hero-photo .sticky-note {
  position: absolute;
  bottom: -18px;
  left: -26px;
  z-index: 2;
}

.hero-copy {
  position: relative;
}

/* 涂鸦装饰 */
.doodle {
  position: absolute;
  pointer-events: none;
  color: var(--graffiti);
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border: 1.5px dashed #d6cfc0;
  border-radius: 999px;
  background: var(--paper);
  font-family: var(--font-hand-title);
  font-size: 15px;
  color: #4b5563;
  box-shadow: var(--ink-shadow);
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 7px rgba(16, 185, 129, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.hero-title {
  font-family: var(--font-hand-title);
  font-size: clamp(34px, 5.6vw, 56px);
  font-weight: 400;
  line-height: 1.2;
}

/* 挥手图标：白圆底，每 2 秒自动挥动一次 */
.hero-wave {
  display: inline-grid;
  place-items: center;
  width: 0.95em;
  height: 0.95em;
  margin-left: 16px;
  vertical-align: -0.06em;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 5px 12px -5px rgba(31, 41, 55, 0.3);
  font-size: 0.5em;
  transform-origin: 72% 75%;
  animation: hero-wave 2s ease-in-out infinite;
}

@keyframes hero-wave {
  0%, 55%, 100% { transform: rotate(0); }
  60% { transform: rotate(20deg); }
  70% { transform: rotate(-12deg); }
  80% { transform: rotate(16deg); }
  90% { transform: rotate(-8deg); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-wave { animation: none; }
}

/* 马克笔高亮 */
.marker {
  position: relative;
  display: inline-block;
  z-index: 0;
  color: #111827;
}

.marker::after {
  content: "";
  position: absolute;
  left: -0.15em;
  right: -0.15em;
  bottom: 0.06em;
  z-index: -1;
  height: 0.42em;
  background: linear-gradient(104deg, rgba(245, 158, 11, 0) 1%, rgba(245, 158, 11, 0.7) 3%, rgba(253, 224, 71, 0.65) 96%, rgba(245, 158, 11, 0) 98%);
  border-radius: 4px;
  transform: rotate(-1.2deg);
}

.hero-role {
  display: block;
  margin-top: 6px;
  font-size: clamp(19px, 2.6vw, 27px);
  font-weight: 700;
  color: #6b7280;
}

.page-title {
  font-size: clamp(34px, 6vw, 56px);
  font-weight: 700;
  line-height: 1.2;
}

.hero-tagline {
  max-width: 620px;
  margin-top: 26px;
  font-size: clamp(17px, 1.9vw, 21px);
  line-height: 1.65;
  color: #374151;
  text-wrap: pretty;
}

.hero-intro {
  max-width: 620px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 15px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 36px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding-left: 4px;
  font-size: 15px;
  color: var(--muted);
}

.hero-meta a:hover {
  color: var(--fg);
  text-decoration: underline wavy var(--graffiti) 1.5px;
  text-underline-offset: 5px;
}

/* pastel 标签：2×2 网格固定排列（不可拖拽） */
.chip-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, max-content));
  gap: 18px 20px;
  margin-top: 34px;
  justify-content: start;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px;
  border-radius: 12px;
  border: none;
  font-family: var(--font-hand-title);
  font-size: 17px;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(31, 41, 55, 0.08);
  transition: box-shadow 0.2s, transform 0.25s var(--ease-bounce);
  white-space: nowrap;
}

.chip-row .chip:nth-child(1) {
  transform: rotate(-2deg);
}

.chip-row .chip:nth-child(2) {
  transform: rotate(1.6deg);
}

.chip-row .chip:nth-child(3) {
  transform: rotate(1.2deg);
}

.chip-row .chip:nth-child(4) {
  transform: rotate(-1.4deg);
}

.chip:hover {
  transform: rotate(0) scale(1.04);
}

.chip--blue {
  background: #eff6ff;
  color: #2563eb;
}

.chip--yellow {
  background: #fefce8;
  color: #a16207;
}

.chip--green {
  background: #f0fdf4;
  color: #16a34a;
}

.chip--pink {
  background: #fdf2f8;
  color: #db2777;
}

@media (max-width: 560px) {
  .chip-row {
    grid-template-columns: 1fr;
  }
  .chip {
    padding: 11px 22px;
    font-size: 17px;
  }
}

@keyframes rise {
  to {
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(18px) rotate(-1.5deg);
  animation: fade-in 0.9s var(--ease-bounce) forwards;
}

@keyframes fade-in {
  to {
    opacity: 1;
    transform: translateY(0) rotate(0);
  }
}

/* ---------- 跑马灯 ---------- */
/* ---------- 区块 ---------- */
/* 底部 96px + section-badge 上边距 48px = 144px，与 hero→经历 的间隔统一 */
.section {
  padding: 144px 0 96px;
}

/* 锚点定位时给 fixed 导航留出空间 */
section[id],
footer[id],
article[id] {
  scroll-margin-top: 90px;
}

.section-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 56px;
}

.section-header h2 {
  font-size: clamp(24px, 3.4vw, 36px);
  font-weight: 700;
  text-wrap: balance;
}

.section-header p {
  max-width: 620px;
  color: var(--muted);
}

/* ---------- 纸片卡片 ---------- */
.card {
  position: relative;
  border: 1px solid rgba(31, 41, 55, 0.07);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--ink-shadow);
  transition: transform 0.4s var(--ease-bounce), box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 34px -14px rgba(31, 41, 55, 0.28);
}

.card > * {
  position: relative;
}

/* ---------- 首页 Journey 时间线（参考 My Journey 模块） ---------- */
/* 模块大标签：白底虚线边框长条 + 彩色胶带 + 右侧图标小方块 */
.section-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 48px auto 56px;
}

.badge-strip {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 60px;
  background: #fff;
  border: 2px dashed #c5cfdb;
  border-radius: 6px;
  box-shadow: 0 18px 36px -22px rgba(31, 41, 55, 0.4);
}

.badge-tape {
  width: 88px;
  height: 24px;
  top: -13px;
  left: 50%;
  transform: translateX(-50%) rotate(-2deg);
}

.badge-text {
  font-family: var(--font-hand-title);
  font-size: 24px;
  font-weight: 400;
  color: #2f3a4a;
  line-height: 1.2;
}

.badge-ico {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  background: #fff;
  border: 1px solid rgba(31, 41, 55, 0.06);
  border-radius: 15px;
  box-shadow: 0 10px 22px -12px rgba(31, 41, 55, 0.35);
  font-size: 24px;
  transform: rotate(6deg);
  transition: transform 0.3s var(--ease-bounce);
}

.badge-ico:hover {
  transform: rotate(0) scale(1.1);
}

.journey {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.j-item {
  position: relative;
  display: grid;
  grid-template-columns: 118px 44px 1fr;
  column-gap: 14px;
}

/* 竖虚线 */
.j-line {
  position: relative;
}

.j-line::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -24px;
  bottom: -72px;
  width: 0;
  border-left: 2px dashed #d0c9ba;
  transform: translateX(-50%);
}

.j-item:first-child .j-line::before {
  top: 10px;
}

.j-item:last-child .j-line::before {
  bottom: 48px;
}

/* 节点空心圆 */
.j-line i {
  position: absolute;
  left: 50%;
  top: 12px;
  width: 15px;
  height: 15px;
  transform: translateX(-50%);
  background: var(--bg);
  border: 3px solid #8a97ab;
  border-radius: 50%;
  z-index: 1;
}

/* 左侧时间 */
.j-time {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: right;
  padding-top: 4px;
}

.j-year {
  font-family: var(--font-hand-title);
  font-size: 36px;
  font-weight: 700;
  line-height: 1.1;
  color: #1e293b;
}

.j-span {
  font-family: var(--font-hand);
  font-size: 16px;
  color: var(--muted);
}

/* 右侧：信息卡 + 要点卡堆叠（两块分离） */
.j-body {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 18px;
  align-items: start;
}

.j-info {
  padding: 28px;
  transform: rotate(-0.6deg);
}

.j-info h3 {
  font-size: 26px;
  font-weight: 700;
}

.j-role {
  display: block;
  margin-top: 8px;
  font-size: 16px;
  color: var(--primary-deep);
}

.j-summary {
  margin-top: 12px;
  font-size: 14px;
  color: var(--muted);
}

.j-info .tags {
  margin-top: 14px;
  flex-wrap: wrap;
}

.j-info .tag {
  font-size: 13px;
  padding: 2px 10px;
  white-space: nowrap;
}

/* 三段经历：三种不同便利贴效果 */
/* ① 浅蓝便利贴（门店通，与其他段区分） */
.j-info--blue {
  background: #dbeafe;
  border-color: rgba(31, 41, 55, 0.05);
}

.j-info--blue h3 {
  color: #1e3a5f;
}

.j-info--blue .j-role {
  color: #2563eb;
}

.j-info--blue .j-summary {
  color: #47566f;
}

.j-info--blue .tag {
  background: #bfdbfe;
  border-color: transparent;
  color: #1e40af;
}

/* ② 亮黄标题条 + 横线便签纸（参考 University in Guangzhou） */
.j-info--lines {
  background: #fffef9;
}

.j-info--lines h3 {
  margin: -28px -28px 18px;
  padding: 14px 26px 15px;
  background: #fde047;
  border-radius: 3px 3px 0 0;
  font-size: 24px;
  color: #292524;
  box-shadow: 0 2px 6px rgba(31, 41, 55, 0.1);
  transform: rotate(-0.6deg);
}

.j-info--lines .j-role {
  color: #ca8a04;
}

.j-info--lines .j-summary {
  /* 横线便签纹理 */
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 30px, #ece4d2 30px, #ece4d2 31px);
  line-height: 31px;
  color: #44403c;
}

.j-info--lines .tag {
  background: #fef9c3;
  border-color: transparent;
  color: #854d0e;
}

/* ③ 粉色便利贴（参考 Frontend Engineer） */
.j-info--pink {
  background: #fbcfe8;
  border-color: rgba(31, 41, 55, 0.05);
}

.j-info--pink h3 {
  color: #701a43;
}

.j-info--pink .j-role {
  color: #be185d;
}

.j-info--pink .j-summary {
  color: #584a54;
}

.j-info--pink .tag {
  background: rgba(255, 255, 255, 0.55);
  border-color: transparent;
  color: #9d174d;
}

/* 要点：连体横线便签纸（不再单独小卡） */
.j-points {
  position: relative;
  margin: 0;
  padding: 24px 26px 12px;
  background: #fffef9;
  border: 1px solid rgba(31, 41, 55, 0.06);
  border-radius: 4px;
  box-shadow: 0 6px 18px -8px rgba(31, 41, 55, 0.18);
  list-style: none;
  transform: rotate(0.7deg);
  transition: transform 0.35s var(--ease-bounce);
}

.j-points:hover {
  transform: rotate(0);
}

.j-points::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 50%;
  width: 74px;
  height: 20px;
  transform: translateX(-50%) rotate(-2deg);
  background: var(--tape-white);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 1px 2px rgba(31, 41, 55, 0.08);
  clip-path: polygon(2% 14%, 5% 0, 95% 5%, 100% 10%, 98% 88%, 94% 100%, 6% 95%, 0 90%);
}

.j-points li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 13px 2px 15px;
  border-bottom: 1.5px solid #ece4d2;
  font-size: 14.5px;
  line-height: 1.8;
  color: #374151;
  transition: transform 0.25s var(--ease);
}

.j-points li:hover {
  transform: translateX(4px);
}

.j-points li:last-child {
  border-bottom: none;
}

.j-points .verb {
  flex-shrink: 0;
  margin-top: 3px;
  padding: 1px 10px;
  border-radius: 8px;
  background: #fef3c7;
  color: #92400e;
  font-size: 13.5px;
  font-weight: 700;
  font-family: var(--font-hand-title);
  transform: rotate(-1deg);
}

/* ---------- 我的能力：收藏卡牌（参考 AI NATIVE 卡） ---------- */
.caps-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  max-width: 780px;
  margin: 0 auto;
  justify-items: stretch;
}

@media (max-width: 680px) {
  .caps-header {
    margin: 64px 0 44px;
  }
}

/* 能力留言墙：软色底板 + 图钉/胶带便签（参考「留言墙」样式） */
.caps-wall {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  padding: 52px 40px 44px;
  border-radius: 26px;
  background: linear-gradient(180deg, #f4f3ec 0%, #eceada 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    0 20px 44px -26px rgba(31, 41, 55, 0.28);
}

.note {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 34px 20px 16px;
  border-radius: 6px;
  background: var(--paper);
  box-shadow:
    0 14px 22px -12px rgba(31, 41, 55, 0.32),
    0 2px 5px rgba(31, 41, 55, 0.08);
  transform: rotate(var(--tilt, 0deg));
  transition: transform 0.35s var(--ease-bounce), box-shadow 0.3s;
}

.note:hover {
  transform: rotate(0deg) translateY(-5px);
  box-shadow:
    0 22px 32px -14px rgba(31, 41, 55, 0.36),
    0 2px 5px rgba(31, 41, 55, 0.08);
}

.note--blue   { --paper: #dfeaf6; --ink: #2f5a8f; }
.note--cream  { --paper: #f8efce; --ink: #8a6d1f; }
.note--pink   { --paper: #f9e0e4; --ink: #a04f60; }
.note--purple { --paper: #eadff4; --ink: #6b4f8f; }

.note h3 {
  font-family: var(--font-hand-title);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--ink);
}

.note p {
  margin-top: 10px;
  flex: 1;
  font-size: 13px;
  line-height: 1.75;
  color: #6b7280;
}

/* 图钉：圆头 + 高光 + 针脚 */
.pin {
  position: absolute;
  left: 50%;
  top: -9px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle at 32% 30%, #e88a8a 0%, #c0453f 55%, #8f2c2a 100%);
  box-shadow: 0 4px 6px -2px rgba(31, 41, 55, 0.4);
}

.pin::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  width: 2px;
  height: 7px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(31, 41, 55, 0.5), rgba(31, 41, 55, 0.12));
}

.pin--blue {
  background: radial-gradient(circle at 32% 30%, #7fa8d9 0%, #3f6ea8 55%, #2a4d7e 100%);
}

/* 胶带款：红条纹胶带贴顶部（替代图钉） */
.note--tape .tape-strip {
  position: absolute;
  left: 50%;
  top: -12px;
  width: 74px;
  height: 24px;
  transform: translateX(-50%) rotate(-2deg);
  background: repeating-linear-gradient(
    90deg,
    rgba(224, 122, 116, 0.75) 0 5px,
    rgba(224, 122, 116, 0.28) 5px 10px
  );
  opacity: 0.85;
}

.note-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px dashed color-mix(in srgb, var(--ink) 28%, transparent);
}

.note-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--ink);
  opacity: 0.9;
}

.note-sticker {
  font-size: 16px;
  opacity: 0.75;
}

@media (max-width: 1020px) {
  .caps-wall {
    grid-template-columns: repeat(2, 1fr);
    padding: 44px 30px 36px;
  }
}

@media (max-width: 560px) {
  .caps-wall {
    grid-template-columns: 1fr;
    padding: 38px 24px 30px;
  }
}

/* 能力区标题（参考「随机抽取一张我的档案卡」左对齐样式） */
.caps-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 48px 0 48px;
}

.caps-header h2 {
  font-size: clamp(26px, 3.6vw, 38px);
  font-weight: 700;
  color: #1f2937;
  text-wrap: balance;
}

.caps-header p {
  font-size: 14px;
  color: var(--muted);
}

@media (max-width: 760px) {
  .j-item {
    grid-template-columns: 1fr;
    row-gap: 10px;
  }
  .j-line {
    display: none;
  }
  .j-time {
    flex-direction: row;
    align-items: baseline;
    gap: 10px;
    text-align: left;
    padding-top: 0;
  }
  .j-year {
    font-size: 24px;
  }
  .j-body {
    grid-template-columns: 1fr;
  }
  .badge-text {
    font-size: 24px;
  }
  .section-badge {
    margin-bottom: 44px;
  }
}

/* ---------- 项目卡片（about 页仍用） ---------- */
.work-grid {
  display: grid;
  gap: 24px;
}

@media (min-width: 768px) {
  .work-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.work-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 30px 28px;
  min-height: 300px;
  transform: rotate(-1.2deg);
}

.work-card:nth-child(2) {
  transform: rotate(1deg);
}

.work-card:nth-child(3) {
  transform: rotate(-0.8deg);
}

.work-card:hover {
  transform: rotate(0) translateY(-6px);
}

.work-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.work-card h3 {
  font-size: 24px;
  font-weight: 700;
}

.work-card p {
  flex: 1;
  font-size: 14px;
  color: var(--muted);
}

.work-card .arrow {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1.5px dashed #d6cfc0;
  border-radius: 50%;
  transition: background 0.3s, color 0.3s, transform 0.3s var(--ease-bounce);
}

.work-card:hover .arrow {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: rotate(-45deg) scale(1.08);
}

.work-card .arrow svg {
  width: 14px;
  height: 14px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  padding: 3px 12px;
  border: 1px solid rgba(31, 41, 55, 0.08);
  border-radius: 999px;
  background: var(--card-2);
  font-family: var(--font-hand);
  font-size: 15px;
  color: #4b5563;
  transform: rotate(-1deg);
}

.tag:nth-child(even) {
  transform: rotate(1.2deg);
}

/* ---------- AI 助手区块 ---------- */
/* ---------- AI 助手：上介绍 + 下对话框（上下居中） ---------- */
.agent-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
}

.agent-intro {
  text-align: center;
  max-width: 760px;
}

.agent-intro .section-badge {
  margin-bottom: 24px;
}

.agent-intro .mono {
  color: var(--primary-deep);
}

.agent-intro h2 {
  margin-top: 14px;
  font-family: var(--font-hand-title);
  font-size: clamp(26px, 3.5vw, 38px);
  line-height: 1.3;
  color: #1f2937;
}

.hl-blue {
  position: relative;
  display: inline-block;
}

.hl-blue::after {
  content: "";
  position: absolute;
  left: -2%;
  right: -2%;
  bottom: 4px;
  height: 14px;
  background: linear-gradient(90deg, rgba(150, 182, 216, 0.55), rgba(150, 182, 216, 0.28));
  border-radius: 7px;
  transform: rotate(-0.6deg);
  z-index: -1;
}

.btn-agent-full {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 0;
  padding: 14px 26px;
  border-radius: 14px;
  background: #fffdf6;
  border: 1px solid rgba(31, 41, 55, 0.12);
  box-shadow: 0 10px 20px -12px rgba(31, 41, 55, 0.3);
  font-family: var(--font-hand-title);
  font-size: 16px;
  font-weight: 700;
  color: #1f2937;
  transform: rotate(-1deg);
  transition: transform 0.3s var(--ease-bounce), box-shadow 0.3s;
}

.btn-agent-full:hover {
  transform: rotate(0deg) translateY(-3px);
  box-shadow: 0 14px 26px -12px rgba(31, 41, 55, 0.35);
}

/* 对话框：奶油纸手账风 */
.chat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 840px;
  height: 960px;
  border-radius: 24px;
  background: linear-gradient(175deg, #fbf5e6 0%, #f7eeda 100%);
  border: 1px solid rgba(31, 41, 55, 0.07);
  box-shadow: var(--paper-shadow);
  overflow: hidden;
}

.chat-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 28px;
  border-bottom: 1.5px dashed #e0d5bd;
  font-family: var(--font-hand-title);
  font-size: 18px;
  font-weight: 700;
  color: #3f4a5a;
}

.chat-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #7fb069;
  box-shadow: 0 0 0 3px rgba(127, 176, 105, 0.18);
}

.chat-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.chat-welcome {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.chat-welcome[hidden] {
  display: none;
}

.chat-welcome h3 {
  font-family: var(--font-hand-title);
  font-size: 24px;
  font-weight: 700;
  color: #2f3a4a;
  padding-bottom: 6px;
  background: linear-gradient(90deg, rgba(150, 182, 216, 0.5), rgba(150, 182, 216, 0.22)) left bottom / 62% 10px no-repeat;
}

.chat-welcome > p {
  font-size: 13.5px;
  line-height: 1.7;
  color: #6b7686;
}

.chat-sugs {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-top: 10px;
}

.chat-sugs button {
  width: fit-content;
  padding: 9px 16px;
  border-radius: 12px;
  background: #fffdf6;
  border: 1px solid #e3d9c2;
  font-family: var(--font-body);
  font-size: 13.5px;
  color: #4b5563;
  cursor: pointer;
  transition: transform 0.25s var(--ease-bounce), box-shadow 0.25s, border-color 0.25s;
}

.chat-sugs button:hover {
  transform: translateY(-2px);
  border-color: #cbbc98;
  box-shadow: 0 8px 16px -10px rgba(31, 41, 55, 0.28);
}

/* 对话气泡 */
.msg {
  max-width: 86%;
  padding: 14px 18px;
  border-radius: 16px;
  font-size: 15px;
  line-height: 1.75;
  white-space: pre-wrap;
  word-break: break-word;
}

.msg.user {
  align-self: flex-end;
  background: #dce9f5;
  color: #2f4a66;
  border-bottom-right-radius: 4px;
}

.msg.assistant {
  align-self: flex-start;
  background: #fffdf6;
  border: 1px solid #ece2ca;
  color: #3f4a5a;
  border-bottom-left-radius: 4px;
}

.msg.thinking {
  color: #b3a98f;
}

.typing {
  display: inline-flex;
  gap: 5px;
  align-items: center;
}

.typing i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #b9ac8d;
  animation: chat-typing 1.2s infinite ease-in-out;
}

.typing i:nth-child(2) {
  animation-delay: 0.15s;
}

.typing i:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes chat-typing {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30% { transform: translateY(-4px); opacity: 1; }
}

/* 输入区 */
.chat-composer {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 22px;
  padding: 9px 12px;
  border-radius: 16px;
  background: #fffdf6;
  border: 1px solid #e3d9c2;
  box-shadow: inset 0 2px 6px rgba(31, 41, 55, 0.04);
}

.chat-composer textarea {
  flex: 1;
  border: 0;
  outline: 0;
  resize: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 13.5px;
  line-height: 1.6;
  color: #3f4a5a;
  max-height: 170px;
}

.chat-composer textarea::placeholder {
  color: #b3a98f;
}

.chat-composer button {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 0;
  background: linear-gradient(170deg, #dce9f5 0%, #c8dcee 100%);
  color: #2f4a66;
  cursor: pointer;
  box-shadow: 0 6px 12px -6px rgba(47, 74, 102, 0.35);
  transition: transform 0.25s var(--ease-bounce), filter 0.25s;
}

.chat-composer button:hover {
  transform: translateY(-2px);
  filter: brightness(1.03);
}

.chat-composer button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.chat-composer button svg {
  width: 17px;
  height: 17px;
}

.chat-note {
  padding: 14px 24px 18px;
  font-size: 14px;
  color: #b3a98f;
  text-align: center;
}

@media (max-width: 960px) {
  .chat-card {
    height: 600px;
  }
}

/* ---------- About：个人简介 ---------- */
.profile-grid {
  display: grid;
  gap: 24px;
}

@media (min-width: 860px) {
  .profile-grid {
    grid-template-columns: 1.4fr 1fr;
  }
}

.profile-text {
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-size: 15px;
  color: #374151;
}

.info-list {
  margin: 0;
  padding: 24px;
}

.info-list div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1.5px dashed #e5dfd2;
}

.info-list div:last-child {
  border-bottom: 0;
}

.info-list dt {
  color: var(--muted);
}

.info-list dd {
  margin: 0;
  font-weight: 700;
  font-family: var(--font-hand-title);
}

/* ---------- About：经历时间线 ---------- */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.exp {
  display: grid;
  gap: 24px;
  padding: 34px 32px;
  scroll-margin-top: 110px;
  transform: rotate(-0.5deg);
}

.exp:nth-child(even) {
  transform: rotate(0.7deg);
}

@media (min-width: 860px) {
  .exp {
    grid-template-columns: 260px 1fr;
    gap: 40px;
  }
}

.exp-index {
  font-family: var(--font-hand-title);
  font-size: 58px;
  font-weight: 700;
  line-height: 1;
  color: rgba(245, 158, 11, 0.55);
  text-shadow: 2px 2px 0 rgba(31, 41, 55, 0.08);
}

.exp-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.exp-head h3 {
  font-size: 26px;
  font-weight: 700;
}

.exp-summary {
  margin-bottom: 20px;
  color: var(--muted);
}

.exp-group + .exp-group {
  margin-top: 24px;
}

.exp-group-title {
  margin-bottom: 8px;
  font-size: 16px;
  font-weight: 700;
  font-family: var(--font-hand-title);
  color: var(--primary-deep);
}

.exp-items {
  margin: 0;
  padding: 0;
  list-style: none;
}

.exp-items li {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-top: 1.5px dashed #e5dfd2;
  font-size: 14px;
  color: #374151;
}

.exp-items .verb {
  flex-shrink: 0;
  height: fit-content;
  padding: 1px 10px;
  border-radius: 8px;
  background: #fef3c7;
  color: #92400e;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font-hand-title);
  transform: rotate(-1deg);
}

/* ---------- 核心能力 ---------- */
.cap-grid {
  display: grid;
  gap: 24px;
}

@media (min-width: 768px) {
  .cap-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.cap {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 32px;
  min-height: 220px;
  transform: rotate(-0.8deg);
}

.cap:nth-child(even) {
  transform: rotate(0.9deg);
  background: #fefce8;
}

.cap:hover {
  transform: rotate(0) translateY(-5px);
}

.cap-key {
  font-family: var(--font-hand-title);
  font-size: 42px;
  font-weight: 700;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px #d6cfc0;
  transition: color 0.4s var(--ease), -webkit-text-stroke-color 0.4s;
}

.cap:hover .cap-key {
  color: var(--primary);
  -webkit-text-stroke-color: var(--primary);
}

.cap h3 {
  margin-top: auto;
  font-size: 22px;
  font-weight: 700;
}

.cap p {
  font-size: 14px;
  color: var(--muted);
}

/* ---------- 联系 / 页脚 ---------- */
.contact {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 0 0 144px;
  text-align: center;
}

.contact .orb {
  top: auto;
  bottom: -320px;
  background: rgba(251, 207, 232, 0.5);
}

.contact h2 {
  font-size: clamp(30px, 5vw, 50px);
  font-weight: 400;
  line-height: 1.2;
}

/* 黄色便利贴联系卡（参考手绘描边按钮样式） */
.contact-card {
  position: relative;
  margin: 56px auto 0;
  max-width: 500px;
  padding: 64px 48px 56px;
  background: linear-gradient(175deg, #fdf6c8 0%, #faf0b4 100%);
  border-radius: 14px 5px 15px 6px / 6px 14px 5px 13px;
  box-shadow: 0 26px 50px -22px rgba(31, 41, 55, 0.32);
  transform: rotate(-1.2deg);
  transition: transform 0.4s var(--ease-bounce);
}

.contact-card:hover {
  transform: rotate(0deg);
}

.contact-card h2 {
  font-family: var(--font-hand-title);
  font-size: clamp(20px, 3vw, 28px);
  line-height: 1.35;
  color: #2f2e1f;
}

.contact-card p {
  margin-top: 16px;
  color: #8a8163;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
  margin-top: 44px;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  background: transparent;
  border: 2px solid #3a382a;
  border-radius: 6px;
  box-shadow: 3px 3px 0 rgba(58, 56, 42, 0.85);
  font-family: var(--font-hand-title);
  font-size: 17px;
  font-weight: 700;
  color: #2f2e1f;
  transition: transform 0.25s var(--ease-bounce), box-shadow 0.25s;
}

.contact-btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 rgba(58, 56, 42, 0.85);
}

.contact-btn svg {
  width: 20px;
  height: 20px;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 96px;
  padding-top: 24px;
  border-top: 1.5px dashed #e5dfd2;
  font-size: 15px;
  color: var(--muted);
}

/* ---------- 滚动进场：贴纸落下 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(-22px) rotate(-4deg) scale(0.96);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease-bounce);
  transition-delay: var(--delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: rotate(var(--tilt, 0deg)) translateY(0) scale(1);
}

.no-js .reveal {
  opacity: 1;
  transform: none;
}

/* ---------- 滚动进度 ---------- */
.progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  height: 3px;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--primary), var(--graffiti));
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}


/* ---------- 移动端字号全局缩小 ---------- */
@media (max-width: 720px) {
  body { font-size: 14px; }
  .nav-link { font-size: 15px; }
  .hero-title { font-size: clamp(28px, 9vw, 38px); }
  .hero-role { font-size: 17px; }
  .hero-tagline { font-size: 15px; }
  .hero-intro { font-size: 13.5px; }
  .chip { font-size: 15px; padding: 10px 18px; }
  .badge-text { font-size: 20px; }
  .badge-ico { width: 46px; height: 46px; font-size: 20px; }
  /* 移动端对话框：整体更紧凑 */
  .chat-bar { padding: 13px 18px; font-size: 16px; }
  .chat-body { padding: 16px 14px; gap: 12px; }
  .chat-welcome { gap: 8px; }
  .chat-welcome h3 { font-size: 18px; padding-bottom: 5px; }
  .chat-welcome > p { font-size: 12.5px; }
  .chat-sugs { gap: 8px; margin-top: 8px; }
  .chat-sugs button { font-size: 12.5px; padding: 7px 12px; border-radius: 10px; }
  .msg { font-size: 13px; padding: 10px 13px; }
  .chat-composer { margin: 0 14px; padding: 4px 8px; gap: 8px; border-radius: 13px; }
  .chat-composer textarea { font-size: 12.5px; }
  .chat-composer button { width: 30px; height: 30px; border-radius: 9px; }
  .chat-composer button svg { width: 14px; height: 14px; }
  .chat-note { padding: 10px 16px 13px; font-size: 12px; }
  .contact-card h2 { font-size: 18px; }
  .contact-card h2 { font-size: 18px; }
  .contact-actions { gap: 12px; margin-top: 30px; }
  .contact-btn { font-size: 13px; padding: 9px 15px; gap: 7px; }
  .contact-btn svg { width: 16px; height: 16px; }
  .footer { font-size: 13px; }
  .hero-photo { max-width: 58%; }
  .hero-photo .sticky-note { max-width: 160px; padding: 12px 14px; left: -14px; bottom: -14px; }
  .sticky-note { font-size: 13px; }
}
