/* ==========================================================================
   米娅 Miya · 粉色少女系设计系统
   Style: Claymorphism + Pastel Pink (ui-ux-pro-max: claymorphism / beauty-pink)
   Type:  Varela Round (display) + Nunito (body) + 系统中文柔黑
   ========================================================================== */

/* ---------- tokens ---------- */
:root {
  --pink-50: #fff6fb;
  --pink-100: #ffe9f5;
  --pink-200: #fbd5e8;
  --pink-300: #f9a8d4;
  --pink-400: #f472b6;
  --pink-500: #ec4899;
  --pink-600: #db2777;
  --pink-700: #be185d;
  --pink-900: #831843;
  --lav-300: #c4b5fd;
  --lav-500: #8b5cf6;
  --lav-700: #6d28d9;

  --bg: #fff6fb;
  --bg-tint: #fdf2f8;
  --card: #ffffff;
  --ink: #3d2a38;
  --ink-soft: #574050;
  --muted: #755768;
  --line: #f7d4e6;
  --line-soft: #fce7f3;

  --radius-sm: 14px;
  --radius: 22px;
  --radius-lg: 30px;
  --radius-pill: 999px;

  --shadow-1: 0 2px 8px rgba(190, 24, 93, 0.06);
  --shadow-2: 0 14px 32px -12px rgba(190, 24, 93, 0.28);
  --shadow-clay: 0 18px 38px -20px rgba(190, 24, 93, 0.45), inset 0 2px 0 #fff;
  --ring: 0 0 0 4px rgba(236, 72, 153, 0.28);

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 72px;

  --font-display: 'Varela Round', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --font-body: 'Nunito', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;

  --dur-fast: 160ms;
  --dur: 240ms;
  --ease: cubic-bezier(0.34, 1.2, 0.64, 1);
  --maxw: 1120px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

/* 内联图标默认跟随字号，避免 SVG 撑成 300×150 */
svg {
  display: inline-block;
  width: 1em;
  height: 1em;
  flex-shrink: 0;
  vertical-align: -0.125em;
}

a { color: var(--pink-600); text-decoration: none; transition: color var(--dur-fast) ease; }
a:hover { color: var(--pink-700); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.3;
  margin: 0 0 var(--space-3);
  letter-spacing: 0.01em;
}

p { margin: 0 0 var(--space-4); }
ul, ol { margin: 0 0 var(--space-4); padding-left: 1.35em; }
li { margin: 0.25em 0; }
li::marker { color: var(--pink-400); }
::selection { background: var(--pink-200); color: var(--pink-900); }

:focus-visible {
  outline: 3px solid var(--pink-500);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- 背景装饰 ---------- */
.bg-blobs {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.bg-blobs::before,
.bg-blobs::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
}
.bg-blobs::before {
  width: 620px; height: 620px;
  top: -260px; left: -180px;
  background: radial-gradient(circle at 30% 30%, #ffd1e8, #ffb6dd 45%, transparent 70%);
}
.bg-blobs::after {
  width: 720px; height: 720px;
  bottom: -320px; right: -220px;
  background: radial-gradient(circle at 60% 40%, #e0d4ff, #d8b4fe 40%, transparent 72%);
}
.bg-dots {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(rgba(236, 72, 153, 0.13) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.85), transparent 62%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.85), transparent 62%);
}

/* ---------- 布局 ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--space-5);
}
main { padding-bottom: var(--space-8); }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--pink-600);
  color: #fff;
  padding: 10px 18px;
  border-radius: 0 0 var(--radius-sm) 0;
  z-index: 100;
}
.skip-link:focus { left: 0; }

/* ---------- 顶栏 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  background: rgba(255, 246, 251, 0.82);
  border-bottom: 1px solid rgba(247, 212, 230, 0.9);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  min-height: 70px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 19px;
  color: var(--ink);
  flex-shrink: 0;
}
.brand:hover { color: var(--pink-700); }
.brand-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2.5px solid #fff;
  box-shadow: 0 4px 12px rgba(236, 72, 153, 0.3);
  background: var(--pink-100);
}
.brand-sub {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  line-height: 1;
  margin-top: 3px;
}

.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 15px;
  border-radius: var(--radius-pill);
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 15px;
  transition: background var(--dur-fast) ease, color var(--dur-fast) ease, transform var(--dur-fast) var(--ease);
}
.nav a:hover { background: var(--pink-100); color: var(--pink-700); }
.nav a.is-active {
  background: linear-gradient(135deg, var(--pink-600), #b21f8a);
  color: #fff;
  box-shadow: 0 8px 18px -8px rgba(190, 24, 93, 0.8), inset 0 1.5px 0 rgba(255, 255, 255, 0.35);
}
.nav a.is-active:hover { color: #fff; }
.nav svg { width: 17px; height: 17px; flex-shrink: 0; }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  border: 2px solid var(--line);
  background: #fff;
  color: var(--pink-700);
  cursor: pointer;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 26px;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  border: 0;
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) ease, background var(--dur-fast) ease;
  min-height: 46px;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--pink-600) 0%, #a21caf 100%);
  box-shadow: 0 14px 26px -12px rgba(190, 24, 93, 0.85), inset 0 2px 0 rgba(255, 255, 255, 0.28);
}
.btn-primary:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 18px 32px -12px rgba(190, 24, 93, 0.9), inset 0 2px 0 rgba(255, 255, 255, 0.28);
}
.btn-ghost {
  background: #fff;
  color: var(--pink-700);
  border: 2px solid var(--pink-200);
  box-shadow: var(--shadow-1);
}
.btn-ghost:hover { background: var(--pink-50); transform: translateY(-2px); color: var(--pink-700); }
.btn:active { transform: translateY(0) scale(0.985); }

/* ---------- 卡片 ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-1);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) ease, border-color var(--dur) ease;
}

/* ---------- Hero ---------- */
.hero {
  margin-top: var(--space-6);
  position: relative;
  overflow: hidden;
  border-radius: 36px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-2);
  background:
    linear-gradient(100deg, #fff 0%, #fff 42%, rgba(255, 255, 255, 0.55) 58%, rgba(255, 255, 255, 0.05) 78%),
    radial-gradient(circle at 88% 76%, #ffd9ec 0%, #ffe7f4 45%, #f6ecff 100%);
  min-height: 420px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
}
.hero-copy { padding: var(--space-7) var(--space-6) var(--space-7) var(--space-7); position: relative; z-index: 2; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.9);
  border: 1.5px solid var(--pink-200);
  color: var(--pink-700);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow: var(--shadow-1);
  margin-bottom: var(--space-4);
}
.hero-eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18);
}
.hero h1 {
  font-size: clamp(30px, 4.2vw, 46px);
  line-height: 1.18;
  margin-bottom: var(--space-4);
  /* 中文不能负字距：-0.01em 会让「是米娅」粘在一起 */
  letter-spacing: 0;
}
.hero h1 .hl {
  background: linear-gradient(120deg, var(--pink-600), #a21caf 55%, var(--lav-700));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lead {
  color: var(--ink-soft);
  font-size: 17px;
  max-width: 46ch;
  margin-bottom: var(--space-5);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.hero-art {
  position: relative;
  height: 100%;
  min-height: 380px;
  align-self: stretch;
}
.hero-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% 78%;
  transform: scale(1.12);
  transform-origin: 78% 82%;
  mix-blend-mode: multiply;
}
.hero-sparkle {
  position: absolute;
  color: var(--pink-400);
  opacity: 0.85;
  animation: floaty 6s ease-in-out infinite;
}
.hero-sparkle.s1 { top: 12%; right: 12%; width: 26px; animation-delay: -1s; }
.hero-sparkle.s2 { top: 34%; right: 30%; width: 16px; animation-delay: -3s; color: var(--lav-500); }
.hero-sparkle.s3 { bottom: 18%; right: 8%; width: 20px; animation-delay: -4.5s; }

@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-12px) rotate(8deg); }
}

/* ---------- 数据条 ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-4);
  margin: var(--space-6) 0 0;
}
.stat {
  background: linear-gradient(180deg, #ffffff 0%, #fff7fc 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-4) var(--space-4);
  text-align: center;
  box-shadow: var(--shadow-1);
  position: relative;
  overflow: hidden;
}
.stat::after {
  content: '';
  position: absolute;
  inset: auto -20% -60% -20%;
  height: 80%;
  background: radial-gradient(ellipse at 50% 100%, rgba(236, 72, 153, 0.14), transparent 70%);
  pointer-events: none;
}
.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: 29px;
  line-height: 1.2;
  background: linear-gradient(135deg, var(--pink-600), var(--lav-700));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat span { font-size: 13px; color: var(--muted); font-weight: 700; letter-spacing: 0.03em; }

/* ---------- 区块标题 ---------- */
.section { margin-top: var(--space-8); }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}
.section-head h2 {
  font-size: clamp(22px, 2.6vw, 28px);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-head h2 .ico { color: var(--pink-500); width: 24px; height: 24px; }
.section-head p { margin: 6px 0 0; color: var(--muted); font-size: 15px; }
.section-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
  font-size: 15px;
  color: var(--pink-700);
  white-space: nowrap;
  padding: 8px 4px;
}
.section-more svg { width: 16px; height: 16px; transition: transform var(--dur-fast) var(--ease); }
.section-more:hover svg { transform: translateX(4px); }

/* ---------- 文章卡片 ---------- */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-5);
}
.post-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}
.post-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-2);
  border-color: var(--pink-300);
}
.post-cover {
  height: 138px;
  background: linear-gradient(135deg, #ffd9ec, #ffe7f4 40%, #ede0ff);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.post-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.75) 1.5px, transparent 1.5px);
  background-size: 18px 18px;
  opacity: 0.6;
}
.post-cover img { width: 100%; height: 100%; object-fit: cover; }
.post-cover .glyph {
  font-family: var(--font-display);
  font-size: 46px;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 6px 18px rgba(190, 24, 93, 0.35);
  z-index: 1;
}
.post-body { padding: var(--space-4) var(--space-5) var(--space-5); display: flex; flex-direction: column; flex: 1; }
.post-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.post-meta svg { width: 14px; height: 14px; color: var(--pink-400); }
.post-meta .sep { width: 4px; height: 4px; border-radius: 50%; background: var(--pink-200); }
.post-card h3 { font-size: 19px; margin-bottom: 8px; }
.post-card h3 a { color: var(--ink); }
.post-card h3 a:hover { color: var(--pink-700); }
.post-card p { color: var(--ink-soft); font-size: 14.5px; margin-bottom: var(--space-4); flex: 1; }

/* ---------- 标签 ---------- */
.tags { display: flex; flex-wrap: wrap; gap: 7px; }
.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  background: var(--pink-50);
  color: var(--pink-700);
  border: 1px solid var(--pink-200);
  letter-spacing: 0.02em;
}
.tag.lav { background: #f5f3ff; color: var(--lav-700); border-color: #ddd6fe; }

/* ---------- 项目卡片 ---------- */
.project-grid {
  display: grid;
  /* 用 1fr 而不是固定上限：先前的 minmax(288px, 344px) 在 1072px 内容宽下
     3 列需要 1080px，差 8px 就掉成 2 列，第三个项目被挤到第二行、右边留一大片空白 */
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  justify-content: stretch;
  gap: var(--space-5);
}
/* 只有一两个作品时，收窄并居中，显得是「刻意留白」而不是「还没加载完」 */
.project-grid.is-sparse {
  grid-template-columns: minmax(0, 360px);
  justify-content: center;
}
.project-card { overflow: hidden; display: flex; flex-direction: column; }
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-2); border-color: var(--pink-300); }
.project-thumb {
  height: 152px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.project-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 22% 26%, rgba(255, 255, 255, 0.7), transparent 42%),
    radial-gradient(circle at 78% 74%, rgba(255, 255, 255, 0.35), transparent 46%);
}
.project-thumb .glyph {
  font-family: var(--font-display);
  font-size: 44px;
  color: #fff;
  text-shadow: 0 2px 4px rgba(90, 0, 40, 0.45), 0 8px 22px rgba(90, 0, 40, 0.35);
  letter-spacing: 0.02em;
  z-index: 1;
}
.project-body { padding: var(--space-4) var(--space-5) var(--space-5); display: flex; flex-direction: column; flex: 1; }
.project-card h3 { font-size: 18px; margin-bottom: 6px; }
.project-card h3 a { color: var(--ink); }
.project-card h3 a:hover { color: var(--pink-700); }
.project-card p { color: var(--ink-soft); font-size: 14px; flex: 1; margin-bottom: var(--space-4); }
.project-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.project-live {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 800; color: var(--pink-700);
}
.project-live svg { width: 15px; height: 15px; }

/* ---------- 空状态 ---------- */
.empty {
  text-align: center;
  padding: var(--space-7) var(--space-5);
  border: 2px dashed var(--pink-200);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.6);
  color: var(--muted);
}
.empty .glyph { font-size: 40px; margin-bottom: 10px; color: var(--pink-300); }
.empty strong { display: block; color: var(--ink); font-family: var(--font-display); font-size: 18px; margin-bottom: 6px; }
.empty code {
  font-family: var(--font-mono);
  background: var(--pink-50);
  border: 1px solid var(--pink-200);
  border-radius: 8px;
  padding: 3px 8px;
  font-size: 13px;
  color: var(--pink-700);
}

/* ---------- 页头（内页） ---------- */
.page-head { padding: var(--space-7) 0 var(--space-5); }
.page-head h1 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 10px; }
.page-head h1 .hl {
  background: linear-gradient(120deg, var(--pink-600), #a21caf);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.page-head p { color: var(--ink-soft); font-size: 16.5px; max-width: 60ch; margin: 0; }
.crumb { font-size: 13.5px; font-weight: 700; color: var(--muted); margin-bottom: 14px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.crumb a { color: var(--pink-700); }

/* ---------- 文章正文 ---------- */
.article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-1);
  padding: var(--space-7) var(--space-7);
  max-width: 820px;
  margin: 0 auto;
}
.article-head { margin-bottom: var(--space-6); padding-bottom: var(--space-5); border-bottom: 2px dashed var(--line-soft); }
.article-head h1 { font-size: clamp(26px, 3.4vw, 36px); line-height: 1.25; margin-bottom: var(--space-3); }
.prose { font-size: 16.5px; color: var(--ink-soft); }
.prose > *:first-child { margin-top: 0; }
.prose h2 {
  font-size: 23px;
  margin: var(--space-6) 0 var(--space-3);
  padding-left: 14px;
  border-left: 5px solid var(--pink-300);
  scroll-margin-top: 90px;
}
.prose h3 { font-size: 19px; margin: var(--space-5) 0 var(--space-2); color: var(--ink); }
.prose h4 { font-size: 17px; margin: var(--space-4) 0 var(--space-2); }
.prose a { border-bottom: 2px solid var(--pink-200); }
.prose a:hover { border-bottom-color: var(--pink-500); }
.prose strong { color: var(--ink); font-weight: 800; }
.prose img { border-radius: var(--radius); box-shadow: var(--shadow-1); margin: var(--space-4) 0; }
.prose blockquote {
  margin: var(--space-4) 0;
  padding: var(--space-3) var(--space-5);
  border-left: 5px solid var(--pink-300);
  background: linear-gradient(90deg, var(--pink-50), rgba(255, 246, 251, 0.2));
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--ink-soft);
}
.prose blockquote p:last-child { margin-bottom: 0; }
.prose code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--pink-50);
  border: 1px solid var(--pink-200);
  border-radius: 7px;
  padding: 2px 6px;
  color: var(--pink-700);
}
.prose pre {
  background: #2b1b26;
  color: #ffe9f5;
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius);
  overflow-x: auto;
  margin: var(--space-4) 0;
  box-shadow: var(--shadow-1);
  line-height: 1.6;
}
.prose pre code { background: none; border: 0; padding: 0; color: inherit; font-size: 13.5px; }
.prose hr { border: 0; border-top: 2px dashed var(--line); margin: var(--space-6) 0; }
.prose mark { background: var(--pink-100); color: var(--pink-900); padding: 0 4px; border-radius: 4px; }
.prose .table-wrap { overflow-x: auto; margin: var(--space-4) 0; }
.prose table { border-collapse: collapse; width: 100%; font-size: 15px; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; }
.prose th { background: var(--pink-50); color: var(--pink-900); font-weight: 800; }
.prose tr:nth-child(even) td { background: #fffcfe; }

/* ---------- 项目详情 ---------- */
.project-hero {
  display: flex;
  gap: var(--space-5);
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-5);
}
.project-badge {
  width: 84px; height: 84px;
  border-radius: 26px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 34px;
  color: #fff;
  text-shadow: 0 6px 16px rgba(120, 0, 60, 0.3);
  box-shadow: var(--shadow-clay);
  flex-shrink: 0;
}
.preview-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-2);
  background: #fff;
}
.preview-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--pink-50);
  border-bottom: 1px solid var(--line);
}
.preview-bar .dots { display: flex; gap: 6px; }
.preview-bar .dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--pink-300); display: block; }
.preview-bar .dots i:nth-child(2) { background: #fbcfe8; }
.preview-bar .dots i:nth-child(3) { background: #ddd6fe; }
.preview-bar .url {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.preview-frame iframe {
  width: 100%;
  height: 620px;
  border: 0;
  display: block;
  background: #fff;
}

/* ---------- 关于页 ---------- */
.about-grid { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: var(--space-6); align-items: start; }
.about-card { text-align: center; padding: var(--space-5); }
.about-card img {
  width: 150px; height: 150px;
  border-radius: 50%;
  margin: 0 auto var(--space-4);
  border: 4px solid #fff;
  box-shadow: 0 14px 30px -12px rgba(190, 24, 93, 0.6);
  background: var(--pink-100);
}
.about-card h2 { font-size: 21px; margin-bottom: 4px; }
.about-card .role { color: var(--pink-700); font-weight: 800; font-size: 14px; margin-bottom: var(--space-4); }
.about-card .tags { justify-content: center; }
.fact-list { list-style: none; padding: 0; margin: var(--space-5) 0 0; text-align: left; }
.fact-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  color: var(--ink-soft);
  padding: 9px 0;
  border-bottom: 1px dashed var(--line-soft);
}
.fact-list li:last-child { border-bottom: 0; }
.fact-list svg { width: 17px; height: 17px; color: var(--pink-500); flex-shrink: 0; margin-top: 4px; }
.fact-list b { color: var(--ink); font-weight: 800; }

/* ---------- 页脚 ---------- */
.site-footer {
  margin-top: var(--space-8);
  padding: var(--space-7) 0 var(--space-6);
  border-top: 2px dashed var(--line);
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.7));
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { width: 44px; height: 44px; border-radius: 50%; border: 2.5px solid #fff; box-shadow: var(--shadow-1); }
.footer-brand b { font-family: var(--font-display); font-size: 17px; display: block; color: var(--ink); }
.footer-brand span { font-size: 12.5px; color: var(--muted); }
.footer-links { display: flex; gap: var(--space-4); flex-wrap: wrap; font-size: 14px; font-weight: 700; }
.footer-links a { color: var(--ink-soft); }
.footer-links a:hover { color: var(--pink-700); }
.copyright { margin-top: var(--space-5); padding-top: var(--space-4); border-top: 1px solid var(--line-soft); font-size: 13px; color: var(--muted); text-align: center; }
.copyright .heart { color: var(--pink-500); }

/* ---------- 动效 ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 620ms ease, transform 620ms var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-copy { padding: var(--space-6) var(--space-5) var(--space-3); }
  .hero-art { min-height: 260px; }
  .about-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .wrap { padding: 0 18px; }
  .site-header .wrap { min-height: 62px; }
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 14px 18px 20px;
    background: rgba(255, 246, 251, 0.98);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-2);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 13px 16px; font-size: 16px; justify-content: flex-start; }
  .hero { border-radius: 26px; margin-top: var(--space-4); }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 10px; }
  .hero-actions .btn { width: 100%; }
  .hero-art { min-height: 220px; }
  .hero-art img { transform: scale(1.06); transform-origin: 72% 84%; }
  .section { margin-top: var(--space-7); }
  .section-head { flex-direction: column; align-items: flex-start; gap: 6px; }
  .article { padding: var(--space-5) var(--space-4); border-radius: var(--radius); }
  .preview-frame iframe { height: 460px; }
  .post-grid, .project-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 400px) {
  .hero h1 { font-size: 27px; }
  .stat b { font-size: 22px; }
}

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

@media print {
  .site-header, .site-footer, .hero-art, .bg-blobs, .bg-dots { display: none; }
  body { background: #fff; }
}
