/* ========================================
   全局变量 · 温暖文艺配色
   ======================================== */
:root {
  --bg-cream: #FBF7F2;
  --bg-warm: #F5EFE6;
  --bg-card: #FFFFFF;
  --text-main: #3D3530;
  --text-muted: #8A7E72;
  --text-light: #B5A99B;
  --accent: #C67B5C;
  --accent-hover: #B06A4D;
  --accent-light: #E8D5C4;
  --accent-bg: #F9E8DE;
  --brown: #8B6F47;
  --sage: #9CAF88;
  --border: #E8DDD0;
  --shadow-soft: 0 4px 20px rgba(139, 111, 71, 0.08);
  --shadow-hover: 0 12px 40px rgba(139, 111, 71, 0.15);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --font-serif: 'Noto Serif SC', 'Playfair Display', serif;
  --font-sans: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   重置 & 基础
   ======================================== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-cream);
  color: var(--text-main);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ========================================
   加载动画
   ======================================== */
.loader {
  position: fixed;
  inset: 0;
  background: var(--bg-cream);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.6s, visibility 0.6s;
}
.loader.hidden {
  opacity: 0;
  visibility: hidden;
}
.loader-circle {
  width: 48px;
  height: 48px;
  border: 3px solid var(--accent-light);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.loader-text {
  margin-top: 1rem;
  font-family: var(--font-serif);
  color: var(--text-muted);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ========================================
   导航栏
   ======================================== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: var(--transition);
  background: transparent;
}
.navbar.scrolled {
  background: rgba(251, 247, 242, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(232, 221, 208, 0.6);
  padding: 0.6rem 0;
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text-main);
}
.logo-mark {
  width: 36px;
  height: 36px;
  background: var(--accent);
  color: #fff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  transition: var(--transition);
}
.nav-logo:hover .logo-mark {
  border-radius: 50%;
  transform: rotate(-8deg);
}
.nav-menu {
  display: flex;
  gap: 2rem;
}
.nav-link {
  font-size: 0.92rem;
  color: var(--text-muted);
  position: relative;
  padding: 0.3rem 0;
  transition: var(--transition);
  font-weight: 500;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: var(--transition);
}
.nav-link:hover, .nav-link.active {
  color: var(--text-main);
}
.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
  transition: var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ========================================
   通用区块标题
   ======================================== */
.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
  position: relative;
}
.section-num {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  color: var(--accent);
  letter-spacing: 0.2em;
  font-weight: 600;
}
.section-title {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--text-main);
  margin-top: 0.4rem;
}
.section-subtitle {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  color: var(--text-light);
  font-size: 1rem;
  margin-top: 0.3rem;
}

/* ========================================
   按钮
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  font-family: var(--font-sans);
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(198, 123, 92, 0.3);
}
.btn-ghost {
  background: transparent;
  color: var(--text-main);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}
.btn-sm { padding: 0.6rem 1.4rem; font-size: 0.85rem; }
.btn-full { width: 100%; }

/* ========================================
   Hero 区域
   ======================================== */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: #F5EDE2;
  animation: heroGradient 8s ease-in-out infinite alternate;
}
@keyframes heroGradient {
  0%   { background-color: #FBF7F2; }
  20%  { background-color: #FDF2E5; }
  40%  { background-color: #F5EEE4; }
  60%  { background-color: #FDF6F0; }
  80%  { background-color: #F2EBE0; }
  100% { background-color: #FBF7F2; }
}
.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(55px);
  opacity: 0.6;
}
/* ---- 6 个光斑，大幅漂移 ---- */
.blob-1 {
  width: 600px; height: 600px;
  background: #E8B896;
  top: -20%; right: -10%;
  animation: drift1 10s ease-in-out infinite;
}
.blob-2 {
  width: 440px; height: 440px;
  background: #8CA87A;
  bottom: -15%; left: -10%;
  animation: drift2 12s ease-in-out infinite;
}
.blob-3 {
  width: 360px; height: 360px;
  background: #F0C8A8;
  top: 45%; left: 20%;
  animation: drift3 11s ease-in-out infinite;
}
.blob-4 {
  width: 300px; height: 300px;
  background: #D4945C;
  top: 10%; left: 55%;
  animation: drift4 9s ease-in-out infinite;
}
.blob-5 {
  width: 400px; height: 400px;
  background: #B8A590;
  bottom: 15%; right: 10%;
  animation: drift5 13s ease-in-out infinite;
}
.blob-6 {
  width: 280px; height: 280px;
  background: #F0D89C;
  top: 65%; left: 45%;
  animation: drift6 10s ease-in-out infinite;
}

/* ---- 大幅漂移动画：位移 ±120~200px + 膨胀收缩 0.6~1.5 倍 ---- */
@keyframes drift1 {
  0%   { transform: translate(0, 0) scale(0.9); }
  25%  { transform: translate(130px, -80px) scale(1.4); }
  50%  { transform: translate(-60px, 100px) scale(0.7); }
  75%  { transform: translate(-100px, -40px) scale(1.25); }
  100% { transform: translate(0, 0) scale(0.9); }
}
@keyframes drift2 {
  0%   { transform: translate(0, 0) scale(0.85); }
  25%  { transform: translate(-120px, 80px) scale(1.35); }
  50%  { transform: translate(80px, -90px) scale(0.65); }
  75%  { transform: translate(100px, 30px) scale(1.2); }
  100% { transform: translate(0, 0) scale(0.85); }
}
@keyframes drift3 {
  0%   { transform: translate(0, 0) scale(1.1); }
  25%  { transform: translate(-90px, -70px) scale(0.7); }
  50%  { transform: translate(110px, 60px) scale(1.45); }
  75%  { transform: translate(40px, -100px) scale(0.8); }
  100% { transform: translate(0, 0) scale(1.1); }
}
@keyframes drift4 {
  0%   { transform: translate(0, 0) scale(0.8); }
  25%  { transform: translate(100px, 90px) scale(1.4); }
  50%  { transform: translate(-80px, -60px) scale(0.6); }
  75%  { transform: translate(60px, -80px) scale(1.3); }
  100% { transform: translate(0, 0) scale(0.8); }
}
@keyframes drift5 {
  0%   { transform: translate(0, 0) scale(1.05); }
  25%  { transform: translate(-110px, -90px) scale(0.7); }
  50%  { transform: translate(90px, 70px) scale(1.4); }
  75%  { transform: translate(-50px, 100px) scale(0.8); }
  100% { transform: translate(0, 0) scale(1.05); }
}
@keyframes drift6 {
  0%   { transform: translate(0, 0) scale(0.9); }
  25%  { transform: translate(80px, -100px) scale(1.35); }
  50%  { transform: translate(-100px, 40px) scale(0.65); }
  75%  { transform: translate(50px, 80px) scale(1.25); }
  100% { transform: translate(0, 0) scale(0.9); }
}

/* ---- 光斑变色闪烁 ---- */
.blob-1 { animation: drift1 10s ease-in-out infinite, blobPulse1 5s ease-in-out infinite; }
.blob-2 { animation: drift2 12s ease-in-out infinite, blobPulse2 6s ease-in-out infinite; }
.blob-3 { animation: drift3 11s ease-in-out infinite, blobPulse3 5.5s ease-in-out infinite; }
.blob-4 { animation: drift4 9s  ease-in-out infinite, blobPulse4 4.5s ease-in-out infinite; }
.blob-5 { animation: drift5 13s ease-in-out infinite, blobPulse5 6.5s ease-in-out infinite; }
.blob-6 { animation: drift6 10s ease-in-out infinite, blobPulse6 5s ease-in-out infinite; }
@keyframes blobPulse1 {
  0%,100% { opacity: 0.55; filter: blur(55px); }
  50%     { opacity: 0.75; filter: blur(40px); }
}
@keyframes blobPulse2 {
  0%,100% { opacity: 0.60; filter: blur(55px); }
  50%     { opacity: 0.80; filter: blur(38px); }
}
@keyframes blobPulse3 {
  0%,100% { opacity: 0.50; filter: blur(60px); }
  50%     { opacity: 0.72; filter: blur(42px); }
}
@keyframes blobPulse4 {
  0%,100% { opacity: 0.58; filter: blur(50px); }
  50%     { opacity: 0.78; filter: blur(35px); }
}
@keyframes blobPulse5 {
  0%,100% { opacity: 0.52; filter: blur(58px); }
  50%     { opacity: 0.70; filter: blur(44px); }
}
@keyframes blobPulse6 {
  0%,100% { opacity: 0.55; filter: blur(52px); }
  50%     { opacity: 0.75; filter: blur(38px); }
}

/* ---- 漂浮粒子 ---- */
.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}
.hero-particle {
  position: absolute;
  border-radius: 50%;
  opacity: 0;
  box-shadow: 0 0 12px currentColor;
  animation: particleRise linear infinite;
}
.particle-1  { width: 10px; height: 10px; bottom: 8%;  left: 12%;  animation-duration: 9s;  animation-delay: 0s;   background: #E8B896; }
.particle-2  { width: 8px;  height: 8px;  bottom: 3%;  left: 30%;  animation-duration: 11s; animation-delay: 2s;   background: #C4B5A8; }
.particle-3  { width: 12px; height: 12px; bottom: 12%; left: 50%;  animation-duration: 8s;  animation-delay: 1s;   background: #F0D89C; }
.particle-4  { width: 7px;  height: 7px;  bottom: 5%;  left: 72%;  animation-duration: 10s; animation-delay: 4s;   background: #D4945C; }
.particle-5  { width: 9px;  height: 9px;  bottom: 10%; left: 88%;  animation-duration: 12s; animation-delay: 1s;   background: #F0C8A8; }
.particle-6  { width: 8px;  height: 8px;  bottom: 18%; left: 22%;  animation-duration: 9s;  animation-delay: 5s;   background: #8CA87A; }
.particle-7  { width: 6px;  height: 6px;  bottom: 4%;  left: 62%;  animation-duration: 13s; animation-delay: 3s;   background: #D4A06C; }
.particle-8  { width: 11px; height: 11px; bottom: 15%; left: 42%;  animation-duration: 10s; animation-delay: 2s;   background: #C4A77D; }
.particle-9  { width: 7px;  height: 7px;  bottom: 20%; left: 80%;  animation-duration: 11s; animation-delay: 6s;   background: #E8C0A0; }
.particle-10 { width: 9px;  height: 9px;  bottom: 7%;  left: 38%;  animation-duration: 8s;  animation-delay: 0s;   background: #D4A88C; }
.particle-11 { width: 6px;  height: 6px;  bottom: 14%; left: 68%;  animation-duration: 14s; animation-delay: 4s;   background: #B8A590; }
.particle-12 { width: 10px; height: 10px; bottom: 2%;  left: 16%;  animation-duration: 10s; animation-delay: 7s;   background: #F0C898; }
@keyframes particleRise {
  0%   { opacity: 0;   transform: translateY(0) translateX(0) scale(0); }
  3%   { opacity: 0.9; }
  10%  { opacity: 0.7; transform: translateY(-15vh) translateX(40px) scale(1.1); }
  25%  { opacity: 0.5; transform: translateY(-35vh) translateX(-30px) scale(1.3); }
  50%  { opacity: 0.3; transform: translateY(-60vh) translateX(50px) scale(0.9); }
  75%  { opacity: 0.1; transform: translateY(-80vh) translateX(-40px) scale(1.1); }
  100% { opacity: 0;   transform: translateY(-100vh) translateX(20px) scale(0.3); }
}
.hero-content {
  text-align: center;
  position: relative;
  z-index: 2;
  padding: 0 2rem;
  max-width: 700px;
}
.hero-tagline {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.2s forwards;
}
.hero-name {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.6rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.4s forwards;
}
.hero-role {
  font-size: 1.2rem;
  color: var(--brown);
  font-weight: 500;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.6s forwards;
}
.hero-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.9;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.8s forwards;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  opacity: 0;
  animation: fadeUp 0.8s 1s forwards;
}
.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  animation: fadeUp 0.8s 1.4s forwards;
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: var(--text-light);
  position: relative;
  overflow: hidden;
}
.scroll-line::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 50%;
  background: var(--accent);
  animation: scrollDown 2s ease-in-out infinite;
}
@keyframes scrollDown {
  0% { top: -50%; }
  100% { top: 100%; }
}
.scroll-text {
  font-size: 0.75rem;
  color: var(--text-light);
  letter-spacing: 0.1em;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ========================================
   互动形象（纯 CSS 浮层，右下角，不改变原布局）
   ======================================== */
.avatar-mascot {
  position: absolute;
  right: 2%;
  bottom: 4%;
  z-index: 3;
  cursor: pointer;
  user-select: none;
  -webkit-user-drag: none;

  /* 立体投影（放在容器上，不与图片滤镜冲突） */
  filter: drop-shadow(0 8px 20px rgba(160,110,70,0.30))
          drop-shadow(0 3px 8px rgba(160,110,70,0.15));

  /* 入场弹跳 + 持续漂浮散步（锁定右下角安全区） */
  opacity: 0;
  animation:
    mascotIn 1s 0.4s cubic-bezier(.34,1.56,.64,1) forwards,
    mascotFloat 7s ease-in-out infinite 1.4s;
}
@keyframes mascotIn {
  from { opacity: 0; transform: translateY(50px) scale(0.3); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
/* 漂浮 + 在右下角小范围散步（水平位移 < 22px，绝不碰中间文字） */
@keyframes mascotFloat {
  0%   { transform: translate(0, 0); }
  18%  { transform: translate(-16px, -12px); }
  38%  { transform: translate(10px, -20px); }
  58%  { transform: translate(-10px, -8px); }
  78%  { transform: translate(14px, -16px); }
  100% { transform: translate(0, 0); }
}

.mascot-img {
  width: clamp(90px, 11vw, 150px);
  height: auto;
  display: block;
  /* 支点设在抬起手臂的右肩膀处——绕这里转，手划大弧线=挥手，脸几乎不动 */
  transform-origin: 66% 39%;
  /* 平时自动"玩耍"：挥手 → 转圈 → 跳跃 → 摇摆，循环不停 */
  animation: mascotPlay 17s ease-in-out infinite 2.5s;
  transition: transform 0.45s cubic-bezier(.34,1.56,.64,1);
}
/* 自动生活动作序列——招手段改为绕肩大幅挥手 */
@keyframes mascotPlay {
  0%, 5%   { transform: rotate(0deg) scale(1); }
  8%       { transform: rotate(-20deg) scale(1.03); }   /* 挥手 ← */
  11%      { transform: rotate(16deg) scale(1.04); }     /* 挥手 → */
  14%      { transform: rotate(-14deg) scale(1.03); }    /* 挥手 ← */
  17%      { transform: rotate(12deg) scale(1.02); }     /* 挥手 → */
  20%      { transform: rotate(-8deg) scale(1.01); }     /* 收势 */
  24%, 36% { transform: rotate(0deg) scale(1); }
  42%      { transform: scale(1.08) rotate(160deg); }   /* 转圈 */
  48%      { transform: scale(1.04) rotate(360deg); }
  52%, 64% { transform: rotate(0deg) scale(1); }
  70%      { transform: translateY(-26px) scale(1.12); } /* 跳跃 */
  76%      { transform: translateY(-4px) scale(1.04); }
  82%      { transform: translateY(-18px) scale(1.08); }
  88%, 100%{ transform: translateY(0) scale(1); }
}
/* hover：快速大幅挥手——绕肩膀支点，手来回划弧线 */
.avatar-mascot:hover .mascot-img {
  animation: mascotWaveHand 0.38s ease-in-out infinite alternate;
}
/* hover 时容器阴影加深 */
.avatar-mascot:hover {
  filter: drop-shadow(0 14px 28px rgba(180,120,80,0.38))
          drop-shadow(0 4px 12px rgba(180,120,80,0.18));
}
/* 快速挥手：手来回大幅摆动（像真人挥手打招呼） */
@keyframes mascotWaveHand {
  from { transform: rotate(-22deg) scale(1.04); }   /* 手向左挥 */
  to   { transform: rotate(18deg) scale(1.05); }    /* 手向右挥 */
}
/* 点击：开心转圈 */
.avatar-mascot.spinning .mascot-img {
  animation: mascotSpin 0.9s cubic-bezier(.34,1.56,.64,1);
}
@keyframes mascotSpin {
  0%   { transform: scale(1) rotate(0deg); }
  40%  { transform: scale(1.18) rotate(200deg); }
  70%  { transform: scale(1.08) rotate(320deg); }
  85%  { transform: scale(1.14) rotate(350deg); }
  100% { transform: scale(1) rotate(360deg); }
}
/* 点击后跳跃 */
.avatar-mascot.bouncing .mascot-img {
  animation: mascotBounce 0.65s ease;
}
@keyframes mascotBounce {
  0%   { transform: translateY(0) scale(1); }
  30%  { transform: translateY(-22px) scale(1.12); }
  55%  { transform: translateY(-6px) scale(1.05); }
  80%  { transform: translateY(-16px) scale(1.08); }
  100% { transform: translateY(0) scale(1); }
}

/* 气泡 */
.mascot-bubble {
  position: absolute;
  top: -44px;
  left: 50%;
  transform: translateX(-50%) scale(0.8);
  background: #fff;
  color: #8B6F5C;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 16px;
  white-space: nowrap;
  box-shadow: 0 4px 18px rgba(140,100,60,0.18), 0 1px 4px rgba(0,0,0,0.06);
  opacity: 0;
  pointer-events: none;
  transition: all 0.38s cubic-bezier(.34,1.56,.64,1);
  z-index: 10;
}
.mascot-bubble::after {
  content: '';
  position: absolute;
  bottom: -7px; left: 50%;
  transform: translateX(-50%);
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 9px solid #fff;
}
.mascot-bubble.show {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

/* 中屏：更小更贴边 */
@media (max-width: 1024px) {
  .avatar-mascot { right: 1.5%; bottom: 3%; }
  .mascot-img { width: clamp(78px, 10vw, 115px); }
  .mascot-bubble { top: -38px; padding: 6px 11px; font-size: 0.75rem; }
}
/* 手机端：保持小尺寸右下角，隐藏气泡 */
@media (max-width: 768px) {
  .avatar-mascot { right: 2%; bottom: 2%; }
  .mascot-img { width: clamp(72px, 20vw, 105px); }
  .mascot-bubble { display: none; }
}

/* ========================================
   关于
   ======================================== */
.about {
  padding: 6rem 0;
  background: var(--bg-cream);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.about-text p {
  margin-bottom: 1.2rem;
  color: var(--text-muted);
  font-size: 1.02rem;
}
.about-lead {
  font-family: var(--font-serif) !important;
  font-size: 1.25rem !important;
  color: var(--text-main) !important;
  line-height: 1.8 !important;
  margin-bottom: 1.5rem !important;
}
.about-skills {
  background: var(--bg-card);
  padding: 2.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}
.skills-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: var(--text-main);
}
.skill-row {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 0.8rem;
}
.skill-row + .skill-row { transform: translateX(2rem); }
.skill-item {
  display: inline-block;
  padding: 0.5rem 1.6rem;
  background: var(--bg-warm);
  border: 1px solid var(--border);
  border-radius: 28px / 18px;
  font-size: 0.92rem;
  color: var(--text-main);
  font-weight: 500;
}
.skills-title { margin-bottom: 1.4rem; }
.tools-list {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.tools-list h4 {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
  font-weight: 500;
}
.tools-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.tools-tags span {
  padding: 0.35rem 0.9rem;
  background: var(--bg-warm);
  border-radius: 20px;
  font-size: 0.82rem;
  color: var(--brown);
  transition: var(--transition);
}
.tools-tags span:hover {
  background: var(--accent-bg);
  color: var(--accent);
}

/* ========================================
   作品集
   ======================================== */
.works {
  padding: 6rem 0;
  background: var(--bg-warm);
}
.works-filter {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}
.filter-btn {
  padding: 0.5rem 1.4rem;
  border: 1.5px solid var(--border);
  border-radius: 24px;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.88rem;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-sans);
}
.filter-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}
.work-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition: var(--transition);
}
.work-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}
.work-card.hidden {
  display: none;
}
/* 板块分隔标题：跨满整行，分隔各版块 */
.work-cat-heading {
  grid-column: 1 / -1;
  display: flex;
  align-items: baseline;
  gap: .8rem;
  margin: 2.2rem 0 .4rem;
  padding-bottom: .9rem;
  border-bottom: 2px solid rgba(166,120,91,.28);
}
.work-cat-heading:first-child {
  margin-top: 0;
}
.work-cat-heading .cat-index {
  font-family: 'Noto Serif SC', serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent, #A6785B);
  letter-spacing: .04em;
}
.work-cat-heading .cat-name {
  font-family: 'Noto Serif SC', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-main, #3D3530);
  letter-spacing: .02em;
}
.work-cat-heading.hidden {
  display: none;
}
.work-thumb {
  height: 240px;
  position: relative;
  overflow: hidden;
  /* 图片未加载/加载失败时的兜底底色，避免封面留白 */
  background-color: #e8e1d6;
}
/* 图片多次重试仍失败时的兜底渐变（img-retry.js 会加 .img-failed） */
img.img-failed {
  background: linear-gradient(135deg, #e9e2d8, #d6cab8);
  min-height: 1px;
}
.work-overlay {
  position: absolute;
  inset: 0;
  background: rgba(61, 53, 48, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}
.work-card:hover .work-overlay {
  opacity: 1;
}
.work-view {
  color: #fff;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  transform: translateY(10px);
  transition: var(--transition);
}
.work-card:hover .work-view {
  transform: translateY(0);
}
/* TVC 卡片悬停自动播放预览 */
.work-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
  pointer-events: none;
}
.work-card:hover .work-video {
  opacity: 1;
}

/* 作品缩略图渐变背景 */
.work-thumb-3 { background: linear-gradient(135deg, #8B6F47, #C4A77D); }
.work-thumb-4 { background: linear-gradient(135deg, #D4926E, #F5C6A0); }
.work-thumb-5 { background: linear-gradient(135deg, #7B8B6F, #A8B89C); }
.work-thumb-6 { background: linear-gradient(135deg, #6B5B4A, #9C8870); }

/* 新增板块缩略图 */
.work-thumb-grad-1 { background: linear-gradient(135deg, #5B4A8A, #8A7CB8); }
.work-thumb-grad-2 { background: linear-gradient(135deg, #3A5068, #6B8CA8); }
.work-thumb-grad-3 { background: linear-gradient(135deg, #C4A45A, #E8D59E); }
.work-thumb-grad-4 { background: linear-gradient(135deg, #D4688C, #F0A0B8); }
/* 电商封面改为 <img> 标签加载（可触发自动重试），
   以下类仅作为加载中/失败时的兜底渐变，不再引用图片 URL，避免重复请求 */
.work-thumb-grad-5 { background: linear-gradient(135deg, #7B8B6F, #A8B89C); }
.work-jewelry-thumb { background: linear-gradient(135deg, #C9A24B, #E8D2A0); }
.work-naked-dance-thumb { background: linear-gradient(135deg, #B06A8A, #E0A8C0); }
.work-babrea-powder-thumb { background: linear-gradient(135deg, #6E8B9C, #A8C4D0); }
.work-huatian-coffee-thumb { background: linear-gradient(135deg, #8B5A3C, #C49A78); }
.work-cat-tree-thumb { background: linear-gradient(135deg, #5B7A6B, #9CB8A8); }
/* IP形象设计缩略图 */
.work-ip-staria-thumb,.work-ip-huatian-thumb,.work-ip-momo-thumb,.work-ip-bobo-thumb,.work-ip-noodle-thumb{position:relative}
.work-ip-staria-thumb img,.work-ip-huatian-thumb img,.work-ip-momo-thumb img,.work-ip-bobo-thumb img,.work-ip-noodle-thumb img{width:100%;height:100%;object-fit:cover;display:block}
/* 品牌设计缩略图 */
.work-brand-xubei-thumb{position:relative}
.work-brand-xubei-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.work-brand-shanlingzhu-thumb{position:relative}
.work-brand-shanlingzhu-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.work-thumb-grad-7 { background: linear-gradient(135deg, #D4A06C, #F0C898); }
.work-thumb-grad-8 { background: linear-gradient(135deg, #A0B4C8, #C8D8E4); }
.work-thumb-grad-9 { background: linear-gradient(135deg, #C8A4A0, #E4D0C8); }
.work-tvc-bracelet-thumb,.work-tvc-bag-thumb{position:relative}
.work-thumb-grad-10 { background: linear-gradient(135deg, #8BA0B4, #B0C4D0); }
.work-thumb-grad-11 { background: linear-gradient(135deg, #C4A894, #D8C8B8); }
.work-thumb-grad-12 { background: linear-gradient(135deg, #9CB4A4, #C0D4C8); }

.work-info {
  padding: 1.4rem;
}
.work-cat {
  font-size: 0.75rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}
.work-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  margin: 0.4rem 0 0.5rem;
  color: var(--text-main);
}
.work-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ========================================
   视频展示
   ======================================== */
.videos {
  padding: 6rem 0;
  background: var(--bg-cream);
}
.video-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1.5rem;
}
.video-main {
  cursor: pointer;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
}
.video-main:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.video-cover {
  position: relative;
  overflow: hidden;
}
.video-cover-main {
  height: 380px;
  background: linear-gradient(135deg, #8B6F47, #C67B5C, #E8A87C);
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-play-btn {
  width: 72px;
  height: 72px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: var(--transition);
}
.video-main:hover .video-play-btn {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.1);
}
.video-meta {
  padding: 1.4rem;
  background: var(--bg-card);
}
.video-meta h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--text-main);
  margin-bottom: 0.3rem;
}
.video-meta p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.video-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.video-item {
  display: flex;
  gap: 1rem;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
  align-items: center;
  padding: 0.8rem;
}
.video-item:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-hover);
}
.video-thumb {
  width: 100px;
  height: 64px;
  border-radius: var(--radius-sm);
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-thumb-a { background: linear-gradient(135deg, #C67B5C, #E8A87C); }
.video-thumb-b { background: linear-gradient(135deg, #9CAF88, #C4D4B5); }
.video-thumb-c { background: linear-gradient(135deg, #D4926E, #F5C6A0); }
.video-thumb-d { background: linear-gradient(135deg, #8B6F47, #C4A77D); }
.video-play-mini {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(4px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: var(--transition);
}
.video-item:hover .video-play-mini {
  background: rgba(255, 255, 255, 0.4);
  transform: scale(1.1);
}
.video-item-info {
  flex: 1;
}
.video-item-info h4 {
  font-size: 0.92rem;
  color: var(--text-main);
  margin-bottom: 0.2rem;
}
.video-item-info span {
  font-size: 0.8rem;
  color: var(--text-light);
}
.video-hint {
  text-align: center;
  margin-top: 2rem;
  color: var(--text-light);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

/* ========================================
   简历
   ======================================== */
.resume {
  padding: 6rem 0;
  background: var(--bg-warm);
}
.resume-layout {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 3rem;
  align-items: start;
}
.timeline-heading {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--text-main);
  margin-bottom: 1.5rem;
  position: relative;
  padding-left: 1.5rem;
}
.timeline-heading::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  width: 4px; height: 20px;
  background: var(--accent);
  border-radius: 2px;
  transform: translateY(-50%);
}
.timeline-item {
  position: relative;
  padding-left: 2rem;
  padding-bottom: 2rem;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: 5px; top: 8px;
  bottom: 0;
  width: 2px;
  background: var(--border);
}
.timeline-item:last-child::before {
  display: none;
}
.timeline-dot {
  position: absolute;
  left: 0; top: 6px;
  width: 12px; height: 12px;
  background: var(--bg-warm);
  border: 3px solid var(--accent);
  border-radius: 50%;
  z-index: 1;
}
.timeline-content {
  background: var(--bg-card);
  padding: 1.5rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
}
.timeline-content:hover {
  box-shadow: var(--shadow-hover);
  transform: translateX(4px);
}
.timeline-date {
  font-size: 0.82rem;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.05em;
}
.timeline-content h4 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--text-main);
  margin: 0.4rem 0 0.2rem;
}
.timeline-org {
  font-size: 0.88rem;
  color: var(--brown);
  margin-bottom: 0.8rem;
}
.timeline-content ul {
  padding-left: 1.2rem;
}
.timeline-content ul li {
  list-style: disc;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
  line-height: 1.6;
}

.resume-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.resume-card {
  background: var(--bg-card);
  padding: 1.8rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}
.resume-card h3 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--text-main);
  margin-bottom: 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--border);
}
/* 基本信息：标题 + 方形头像（右上角） */
.resume-basic-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--border);
}
.resume-basic-head h3 {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}
.resume-photo {
  width: 150px;
  height: auto;
  border-radius: 8px;
  border: 2.5px solid rgba(166,120,91,.22);
  box-shadow: 0 4px 16px rgba(61,53,48,.14);
  flex-shrink: 0;
}
.info-list li {
  display: flex;
  justify-content: space-between;
  padding: 0.6rem 0;
  font-size: 0.9rem;
  border-bottom: 1px dashed var(--border);
}
.info-list li:last-child { border-bottom: none; }
.info-label { color: var(--text-muted); }
.info-val { color: var(--text-main); font-weight: 500; }

.resume-download-card {
  text-align: center;
  background: linear-gradient(135deg, var(--accent-bg), var(--bg-card));
}
.resume-download-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

/* ========================================
   联系
   ======================================== */
.contact {
  padding: 6rem 0;
  background: var(--bg-cream);
}
.contact-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2.5rem;
}
.contact-lead {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--text-main);
  line-height: 1.5;
  margin-bottom: 0;
}
.contact-desc {
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 1rem;
}
.contact-methods {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 260px));
  gap: 1.2rem;
  justify-content: center;
}
.contact-method {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  padding: 1.5rem 1.2rem;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
  text-align: center;
}
.contact-method:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.contact-icon {
  width: 44px;
  height: 44px;
  background: var(--accent-bg);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}
.cm-label {
  display: block;
  font-size: 0.78rem;
  color: var(--text-light);
  margin-bottom: 0.1rem;
}
.cm-value {
  display: block;
  font-size: 0.92rem;
  color: var(--text-main);
  font-weight: 500;
}

.contact-form {
  background: var(--bg-card);
  padding: 2.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}
.form-group {
  margin-bottom: 1.3rem;
}
.form-group label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  font-weight: 500;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-cream);
  font-size: 0.92rem;
  color: var(--text-main);
  font-family: var(--font-sans);
  transition: var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(198, 123, 92, 0.1);
}
.form-group textarea {
  resize: vertical;
}

/* ========================================
   页脚
   ======================================== */
.footer {
  padding: 2.5rem 0;
  background: var(--text-main);
  color: var(--bg-cream);
}
.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-logo {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--bg-cream);
}
.footer-left p {
  font-size: 0.82rem;
  color: rgba(251, 247, 242, 0.5);
  margin-top: 0.3rem;
}
.footer-right a {
  font-size: 0.88rem;
  color: rgba(251, 247, 242, 0.7);
  transition: var(--transition);
}
.footer-right a:hover {
  color: var(--accent);
}

/* ========================================
   模态框
   ======================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(61, 53, 48, 0.75);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  padding: 2rem;
}
.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}
.modal-content {
  position: relative;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.9);
  transition: var(--transition);
}
.modal-overlay.active .modal-content {
  transform: scale(1);
}
.modal-video {
  max-width: 800px;
  background: #1a1a1a;
  padding: 0;
}
.modal-close {
  position: absolute;
  top: 0.8rem; right: 0.8rem;
  width: 36px; height: 36px;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.4rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 10;
}
.modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}
.video-wrapper {
  width: 100%;
  position: relative;
}
.video-wrapper video,
.video-wrapper iframe {
  width: 100%;
  height: 450px;
  border: none;
  display: block;
  border-radius: var(--radius-md);
}

/* 作品详情模态框内容 */
.work-modal-header {
  height: 280px;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--font-serif);
  font-size: 1.5rem;
}
.work-modal-body {
  padding: 2rem;
}
.work-modal-body h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}
.work-modal-body .wm-cat {
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.work-modal-body .wm-desc {
  margin-top: 1rem;
  color: var(--text-muted);
  line-height: 1.8;
}
.work-modal-body .wm-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.wm-detail-item span {
  display: block;
}
.wm-detail-item .label {
  font-size: 0.78rem;
  color: var(--text-light);
  margin-bottom: 0.2rem;
}
.wm-detail-item .value {
  font-size: 0.92rem;
  color: var(--text-main);
  font-weight: 500;
}

/* ========================================
   微信二维码弹窗
   ======================================== */
.qr-modal {
  display: none;
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(0,0,0,0.55);
  align-items: center; justify-content: center;
}
.qr-modal-box {
  background: #fff;
  border-radius: 20px;
  padding: 36px 32px 28px;
  text-align: center;
  max-width: 340px;
  width: 90%;
  position: relative;
  box-shadow: 0 30px 80px rgba(0,0,0,0.25);
  animation: qrPop .3s ease-out;
}
@keyframes qrPop {
  from { opacity: 0; transform: scale(0.9) translateY(20px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.qr-modal-close {
  position: absolute; top: 12px; right: 16px;
  font-size: 26px; color: #bbb; cursor: pointer;
  line-height: 1;
  transition: color .2s;
}
.qr-modal-close:hover { color: #333; }
.qr-modal-box h3 {
  margin: 0 0 18px; font-size: 1.2rem; color: var(--text-dark);
}
.qr-modal-box img {
  width: 240px; height: 240px; object-fit: contain;
  border-radius: 12px; display: block; margin: 0 auto 14px;
  border: 1px solid #eee;
}
.qr-modal-box p {
  margin: 0; font-size: 0.9rem; color: var(--text-soft);
}

/* ========================================
   Toast
   ======================================== */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--text-main);
  color: var(--bg-cream);
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  z-index: 3000;
  opacity: 0;
  transition: var(--transition);
  pointer-events: none;
}
.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ========================================
   滚动动画
   ======================================== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s, transform 0.8s;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   响应式
   ======================================== */
@media (max-width: 968px) {
  .about-grid,
  .contact-grid,
  .resume-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .resume-photo {
    width: 120px;
    height: auto;
  }
  .video-grid {
    grid-template-columns: 1fr;
  }
  .works-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .video-cover-main {
    height: 280px;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 0; right: -100%;
    width: 70%;
    max-width: 300px;
    height: 100vh;
    background: var(--bg-card);
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    gap: 1.5rem;
    transition: right 0.4s;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
  }
  .nav-menu.open {
    right: 0;
  }
  .nav-toggle {
    display: flex;
    z-index: 1001;
  }
  .section-title {
    font-size: 1.8rem;
  }
  .hero-name {
    font-size: 2.5rem;
  }
  .hero-tagline {
    font-size: 1rem;
  }
  .hero-role {
    font-size: 1rem;
  }
  .hero-desc {
    font-size: 0.95rem;
  }
  .hero-blob {
    opacity: 0.4;
  }
  .container {
    padding: 0 1.2rem;
  }
  .works-grid {
    grid-template-columns: 1fr;
  }
  .contact-lead {
    font-size: 1.4rem;
  }
  .contact-methods {
    grid-template-columns: 1fr;
    max-width: 320px;
  }
  .footer-content {
    flex-direction: column;
    gap: 0.8rem;
    text-align: center;
  }
  .work-modal-body .wm-details {
    grid-template-columns: 1fr;
  }
  .video-wrapper video,
  .video-wrapper iframe {
    height: 260px;
  }
  .about, .works, .videos, .resume, .contact {
    padding: 4rem 0;
  }
}

@media (max-width: 480px) {
  .hero-tagline {
    font-size: 0.9rem;
  }
  .hero-role {
    font-size: 0.85rem;
  }
  .hero-desc {
    font-size: 0.9rem;
  }
  .hero-content {
    padding: 0 1.2rem;
  }
  .hero-scroll {
    bottom: 1.2rem;
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  .resume-photo {
    width: 100px;
    height: auto;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .works-filter {
    gap: 0.4rem;
  }
  .filter-btn {
    padding: 0.4rem 1rem;
    font-size: 0.82rem;
  }
}
