/* ==================== 变量定义 ==================== */
:root {
  --bg-primary: #F7F7F7;
  --bg-secondary: #EDF2E8;
  --bg-card: rgba(255, 255, 255, 0.6);
  --bg-card-hover: rgba(255, 255, 255, 0.9);
  --color-primary: #C0B6FF;
  --color-secondary: #CDFE67;
  --color-accent: #A8E6CF;

  /* 纯色按钮颜色 - 浅色模式 */
  --btn-primary: #8B9FE8;      /* 主按钮 - 淡紫色 */
  --btn-secondary: #7ECFC0;    /* 次按钮 - 薄荷绿 */
  --btn-accent: #E8B88B;       /* 强调按钮 - 杏色 */
  --btn-ghost: #E8E8E8;        /* 幽灵按钮 - 浅灰 */

  --text-primary: #252726;
  --text-secondary: #5A6160;
  --text-tertiary: #9CA19F;
  --border-light: rgba(255, 255, 255, 0.8);
  --border-medium: rgba(192, 182, 255, 0.35);
  --shadow-sm: 0 2px 16px rgba(192, 182, 255, 0.12);
  --shadow-md: 0 8px 32px rgba(192, 182, 255, 0.18);
  --shadow-lg: 0 16px 48px rgba(192, 182, 255, 0.24);
  --glass-blur: 20px;
  --glass-bg: rgba(255, 255, 255, 0.6);
  --radius-sm: 16px;
  --radius-md: 22px;
  --radius-lg: 28px;
  --transition: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
[data-theme="dark"] {
  --bg-primary: #141825;
  --bg-secondary: #1E2233;
  --bg-card: rgba(40, 48, 72, 0.55);
  --bg-card-hover: rgba(55, 65, 95, 0.7);
  --color-primary: #8BC8D2;
  --color-secondary: #ACB2EC;
  --color-accent: #CAB09E;
  --text-primary: #F0F0F5;
  --text-secondary: #A0A8B8;
  --text-tertiary: #6B7280;
  --border-light: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(139, 200, 210, 0.3);
  --shadow-sm: 0 2px 16px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.55);
  --glass-blur: 20px;
  --glass-bg: rgba(40, 48, 72, 0.55);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  transition: background 0.5s ease, color 0.5s ease;
  overflow-x: hidden;
}
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: -1;
  background:
    radial-gradient(ellipse 100% 70% at 5% 10%, rgba(192, 182, 255, 0.2) 0%, transparent 50%),
    radial-gradient(ellipse 80% 50% at 95% 30%, rgba(205, 254, 103, 0.15) 0%, transparent 45%),
    radial-gradient(ellipse 60% 40% at 85% 85%, rgba(168, 230, 207, 0.15) 0%, transparent 40%);
  filter: blur(50px);
}
[data-theme="dark"] body::before {
  background:
    radial-gradient(ellipse 100% 70% at 10% 10%, rgba(139, 200, 210, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse 70% 50% at 90% 20%, rgba(172, 178, 236, 0.1) 0%, transparent 45%),
    radial-gradient(ellipse 50% 40% at 85% 80%, rgba(202, 176, 158, 0.08) 0%, transparent 40%);
}
.container { max-width: 1100px; margin: 0 auto; padding: 0 28px; }
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
  transition: all var(--transition);
}
.glass-card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

/* ==================== 滚动渐入动画 ==================== */
/* 基础渐入效果 */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 卡片渐入（带延迟实现交错效果） */
.glass-card {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out, box-shadow 0.35s ease, background 0.35s ease;
}
.glass-card.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 交错延迟 - 每个相邻卡片延迟 0.1s */
.glass-card:nth-child(1) { transition-delay: 0s; }
.glass-card:nth-child(2) { transition-delay: 0.08s; }
.glass-card:nth-child(3) { transition-delay: 0.16s; }
.glass-card:nth-child(4) { transition-delay: 0.24s; }
.glass-card:nth-child(5) { transition-delay: 0.32s; }
.glass-card:nth-child(6) { transition-delay: 0.40s; }
.glass-card:nth-child(7) { transition-delay: 0.48s; }
.glass-card:nth-child(8) { transition-delay: 0.56s; }

/* section 标题渐入 */
.section-header {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.section-header.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hero 区域元素渐进 */
.hero-greeting,
.hero-name,
.hero-title,
.hero-bio,
.attitude-tags,
.hero-actions,
.scroll-hint {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.hero-greeting { transition-delay: 0.1s; }
.hero-name { transition-delay: 0.2s; }
.hero-title { transition-delay: 0.3s; }
.hero-bio { transition-delay: 0.4s; }
.attitude-tags { transition-delay: 0.5s; }
.hero-actions { transition-delay: 0.6s; }
.scroll-hint { transition-delay: 0.7s; }
.hero-greeting.visible,
.hero-name.visible,
.hero-title.visible,
.hero-bio.visible,
.attitude-tags.visible,
.hero-actions.visible,
.scroll-hint.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 作品列表卡片渐入 */
.work-item-row {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.work-item-row.visible {
  opacity: 1;
  transform: translateX(0);
}
.work-item-row.reverse {
  transform: translateX(-30px);
}
.work-item-row.reverse.visible {
  transform: translateX(0);
}

/* 评价卡片组渐入 */
.testimonials-track {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.testimonials-track.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 联系区域 */
.footer-content {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.footer-content.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==================== 导航栏 ==================== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 14px 0; background: transparent; transition: all var(--transition);
}
.navbar.scrolled {
  background: var(--glass-bg); backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light); padding: 10px 0;
}
.nav-container {
  max-width: 1100px; margin: 0 auto; padding: 0 28px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  text-decoration: none; display: flex; flex-direction: column; line-height: 1.2;
  z-index: 1001;
}
.logo-zh { font-size: 18px; font-weight: 800; color: var(--text-primary); letter-spacing: 1px; }
.logo-en { font-size: 11px; font-weight: 600; color: var(--color-primary); letter-spacing: 3px; text-transform: uppercase; }
.nav-menu { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-link {
  color: var(--text-secondary); text-decoration: none; font-size: 13px; font-weight: 500;
  transition: color var(--transition); position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.link-zh { font-size: 13px; font-weight: 600; color: var(--text-primary); }
.link-en { font-size: 10px; font-weight: 500; color: var(--color-primary); letter-spacing: 1px; }
.nav-link::after {
  content: ''; position: absolute; bottom: -4px; left: 50%; transform: translateX(-50%);
  width: 0; height: 2px; background: var(--color-primary); border-radius: 2px;
  transition: width var(--transition);
}
.nav-link:hover::after, .nav-link.active::after { width: 70%; }
.theme-toggle {
  width: 42px; height: 42px; border-radius: 50%; border: none;
  background: var(--btn-primary);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all var(--transition); box-shadow: 0 4px 16px rgba(139, 159, 232, 0.3);
}
.theme-toggle:hover { transform: scale(1.1); }
.theme-toggle svg { width: 18px; height: 18px; color: #252726; }

/* 汉堡菜单按钮 */
.nav-toggle {
  display: none;
  position: fixed; top: 20px; left: 20px;
  width: 48px; height: 48px; z-index: 1001;
  background: var(--glass-bg); backdrop-filter: blur(12px);
  border: 1px solid var(--border-light); border-radius: 14px;
  cursor: pointer; box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}
.hamburger {
  display: block; width: 20px; height: 2px; background: var(--text-primary);
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  transition: background 0.3s ease;
}
.hamburger::before, .hamburger::after {
  content: ''; display: block; width: 20px; height: 2px; background: var(--text-primary);
  position: absolute; left: 0; transition: transform 0.3s ease;
}
.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }
.nav-toggle.active .hamburger { background: transparent; }
.nav-toggle.active .hamburger::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active .hamburger::after { transform: translateY(-7px) rotate(-45deg); }

.print-toggle {
  width: 42px; height: 42px; border-radius: 50%; border: none;
  background: var(--btn-secondary);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all var(--transition); box-shadow: 0 4px 16px rgba(126, 207, 192, 0.3);
}
.print-toggle:hover { transform: scale(1.1); }
.print-toggle svg { width: 18px; height: 18px; color: #252726; }
.mobile-toggle { display: none; }

/* ==================== Hero 区域 ==================== */
.hero {
  min-height: 100vh; display: flex; align-items: position: relative;
  padding: 120px 28px 60px; overflow: hidden;
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

/* 背景装饰 */
.hero-decorations { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.decor-circle {
  position: absolute; border-radius: 50%; opacity: 0.5;
  filter: blur(60px);
}
.decor-1 {
  width: 400px; height: 400px; background: var(--color-primary); opacity: 0.15;
  top: -100px; left: -100px; animation: float 8s ease-in-out infinite;
}
.decor-2 {
  width: 300px; height: 300px; background: var(--color-secondary); opacity: 0.2;
  bottom: -50px; right: -50px; animation: float 10s ease-in-out infinite reverse;
}
.decor-3 {
  width: 200px; height: 200px; background: var(--color-accent); opacity: 0.15;
  top: 40%; left: 50%; animation: float 12s ease-in-out infinite;
}
.decor-grain {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%' height='100%' filter='url(%23noise)'/%3E%3C/svg%3E");
  opacity: 0.03;
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
}

.hero-container {
  max-width: 1100px; margin: 0 auto; display: flex; align-items: center;
  gap: 80px; width: 100%; position: relative; z-index: 1;
}
.hero-left { flex-shrink: 0; }

/* 头像 - 无边框直接显示 */
.avatar-container {
  width: 380px; height: 380px; position: relative;
}
.avatar-large {
  width: 100%; height: 100%; border-radius: 50%;
  object-fit: cover; object-position: center top;
  box-shadow: 0 20px 60px rgba(192, 182, 255, 0.3);
  transition: transform 0.5s ease;
}
.avatar-large:hover { transform: scale(1.02); }

.hero-right { flex: 1; display: flex; flex-direction: column; align-items: center; }
.hero-greeting { font-size: 18px; color: var(--text-secondary); margin-bottom: 8px; }
.hero-name { font-size: 64px; font-weight: 800; letter-spacing: -2px; margin-bottom: 12px; background: linear-gradient(135deg, var(--text-primary), var(--color-primary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-title { font-size: 26px; font-weight: 600; color: var(--color-primary); margin-bottom: 24px; }
.hero-bio { font-size: 17px; color: var(--text-secondary); line-height: 1.9; margin-bottom: 28px; max-width: 560px; }

/* 态度标签 */
.attitude-tags { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 36px; }
.attitude-tag {
  padding: 12px 20px; font-size: 14px; font-weight: 500;
  background: var(--glass-bg); backdrop-filter: blur(10px);
  border: 1px solid var(--border-medium); border-radius: 24px;
  color: var(--text-primary); transition: all var(--transition);
}
.attitude-tag:hover {
  background: var(--color-secondary); transform: translateY(-2px);
  border-color: var(--color-secondary);
  color: #252726;
}
[data-theme="dark"] .attitude-tag:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #141825;
}

/* 行动按钮组 */
.hero-actions { display: flex; gap: 16px; margin-top: 32px; justify-content: center; }
.hero-cta {
  display: inline-flex; align-items: center; gap: 10px; padding: 16px 32px;
  text-decoration: none; border-radius: 28px; font-size: 16px; font-weight: 600;
  transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.hero-cta-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: #252726; box-shadow: 0 8px 24px rgba(192, 182, 255, 0.4);
}
.hero-cta-primary:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 12px 32px rgba(192, 182, 255, 0.5); }
.hero-cta-primary svg { transition: transform 0.3s ease; }
.hero-cta-primary:hover svg { transform: translateX(4px); }

.hero-cta-secondary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: #252726; box-shadow: 0 8px 24px rgba(192, 182, 255, 0.4);
}
.hero-cta-secondary:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 12px 32px rgba(192, 182, 255, 0.5); }

/* 滚动引导 */
.scroll-hint {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  margin-top: 60px; color: var(--text-tertiary); font-size: 13px;
  text-align: center;
  animation: bounce 2s ease-in-out infinite;
}
.scroll-icon { animation: scrollArrow 2s ease-in-out infinite; }
@keyframes bounce { 0%, 100% { opacity: 0.5; } 50% { opacity: 1; } }
@keyframes scrollArrow { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* 深色模式适配 */
[data-theme="dark"] .avatar-large { box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5); }
[data-theme="dark"] .attitude-tag { background: rgba(40, 48, 72, 0.6); }
.section { padding: 100px 28px; max-width: 1100px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-title { font-size: 42px; font-weight: 800; letter-spacing: -0.5px; margin-bottom: 8px; }
.section-subtitle { font-size: 16px; color: var(--text-tertiary); }

/* ==================== Resume 工作经历 ==================== */
.resume-grid { display: grid; grid-template-columns: 280px 1fr; gap: 32px; }
.resume-left { display: flex; flex-direction: column; gap: 24px; }
.info-card { padding: 28px; }
.info-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 20px; color: var(--text-primary); }
.info-item { display: flex; flex-direction: column; gap: 6px; }
.info-period { font-size: 13px; color: var(--color-primary); font-weight: 600; }
.info-title { font-size: 15px; font-weight: 600; color: var(--text-primary); }
.info-desc { font-size: 14px; color: var(--text-secondary); }
.skill-list { display: flex; flex-wrap: wrap; gap: 10px; }
.skill-tag { padding: 8px 16px; font-size: 13px; background: rgba(192, 182, 255, 0.15); border-radius: 18px; color: var(--text-secondary); }
.edu-courses { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.course-tag { padding: 6px 12px; font-size: 12px; background: rgba(205, 254, 103, 0.2); border-radius: 14px; color: var(--text-primary); }
.resume-right { display: flex; flex-direction: column; gap: 20px; }
.work-card { padding: 28px; }
.work-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.work-period { font-size: 12px; font-weight: 600; color: white; background: linear-gradient(135deg, var(--color-primary), var(--color-secondary)); padding: 5px 14px; border-radius: 16px; }
.work-title { font-size: 19px; font-weight: 700; }
.work-company { font-size: 14px; color: var(--color-primary); margin-bottom: 14px; }
.work-content { list-style: none; }
.work-content li { position: relative; padding-left: 18px; margin-bottom: 8px; font-size: 14px; color: var(--text-secondary); }
.work-content li::before { content: '•'; position: absolute; left: 0; color: var(--color-secondary); }

/* 工作经历 - 风琴式折叠展开 */
.work-detail {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.3s ease;
  opacity: 0;
}
.work-card[data-expanded="true"] .work-detail {
  max-height: 500px;
  opacity: 1;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-medium);
}
.work-detail-content {
  padding: 16px;
  background: rgba(192, 182, 255, 0.08);
  border-radius: var(--radius-sm);
}
.work-detail-content h4 {
  font-size: 14px; font-weight: 700; color: var(--color-primary); margin-bottom: 12px;
}
.work-detail-content p {
  font-size: 13px; color: var(--text-secondary); line-height: 1.8; margin-bottom: 8px;
}
.work-detail-content p:last-child { margin-bottom: 0; }
.work-detail-content strong {
  color: var(--text-primary); font-weight: 600;
}
.work-toggle-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 12px; margin-top: 12px;
  background: transparent; border: 1px dashed var(--border-medium);
  border-radius: var(--radius-sm); cursor: pointer;
  color: var(--color-primary); font-size: 13px; font-weight: 500;
  transition: all 0.3s ease;
}
.work-toggle-btn:hover {
  background: rgba(192, 182, 255, 0.1); border-style: solid;
}
.work-toggle-btn .toggle-icon {
  transition: transform 0.3s ease;
}
.work-card[data-expanded="true"] .work-toggle-btn .toggle-icon {
  transform: rotate(180deg);
}
.work-card[data-expanded="true"] .work-toggle-btn .toggle-text {
  color: var(--text-secondary);
}

/* ==================== Works 作品集 ==================== */
/* Uses 作品卡片 section styles below */

/* ==================== Testimonials 气泡弹幕 ==================== */
.testimonials-section { padding: 100px 0; background: var(--bg-secondary); overflow: visible; position: relative; }
.testimonials-section .section-header { padding: 0 28px; margin-bottom: 40px; position: relative; z-index: 3; }

/* 双行水平滚动容器 */
.testimonials-track {
  display: flex; flex-direction: column; gap: 24px;
  overflow-x: auto;
  overflow-y: visible;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
  margin-top: 20px;
}
.testimonials-track::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}
.testimonials-row {
  display: flex; gap: 24px; width: 300%;
  will-change: transform;
}
.testimonials-row:nth-child(1) { animation: scrollRow1 25s linear infinite; }
.testimonials-row:nth-child(2) { animation: scrollRow2 30s linear infinite; }

/* 水平左右平移，无上下飘动 */
@keyframes scrollRow1 {
  0% { transform: translateX(0); }
  100% { transform: translateX(-33.33%); }
}
@keyframes scrollRow2 {
  0% { transform: translateX(-16.66%); }
  100% { transform: translateX(-50%); }
}

/* 气泡卡片 */
.testimonial-item {
  flex-shrink: 0; width: 340px; padding: 0;
  background: var(--glass-bg); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-radius: 20px; border: 1px solid var(--border-light);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.testimonial-item:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 16px 40px rgba(192, 182, 255, 0.25);
  border-color: var(--color-primary);
  z-index: 10;
}
.testimonial-content { padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.testimonial-avatar {
  width: 72px; height: 72px; min-width: 72px; border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s ease;
  border: 2px solid var(--glass-border);
}
.testimonial-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.testimonial-item:hover .testimonial-avatar {
  transform: scale(1.08);
  border-color: var(--color-primary);
  box-shadow: 0 4px 20px rgba(139, 200, 210, 0.3);
}
.testimonial-role {
  font-size: 12px;
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: 6px;
}
.testimonial-body { flex: 1; min-width: 0; }
.testimonial-text { font-size: 14px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 16px; }
.testimonial-author { display: flex; flex-direction: column; gap: 4px; }
.author-name { font-size: 15px; font-weight: 700; color: var(--text-primary); }
.author-tag { font-size: 12px; color: var(--color-secondary); font-weight: 500; }

/* 气泡顶边装饰 */
.testimonial-item::before {
  content: ''; position: absolute; top: 0; left: 20px; right: 20px; height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  border-radius: 3px; opacity: 0; transition: opacity 0.3s ease;
}
.testimonial-item:hover::before { opacity: 1; }

/* 添加评价入口 */
.add-testimonial { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 40px; position: relative; z-index: 3; }
.add-label { font-size: 14px; color: var(--text-tertiary); }
.add-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 26px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: #252726; text-decoration: none; border-radius: 24px;
  font-size: 14px; font-weight: 600;
  transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 4px 16px rgba(192, 182, 255, 0.35);
}
.add-btn:hover { transform: translateY(-4px) scale(1.05); box-shadow: 0 10px 28px rgba(192, 182, 255, 0.5); }
.add-btn svg { transition: transform 0.3s ease; }
.add-btn:hover svg { transform: translate(3px, -3px); }

/* ==================== Life 生活 ==================== */
.life-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.life-card {
  aspect-ratio: 4/5; padding: 0; overflow: hidden;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.life-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-medium);
}
.life-placeholder {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 600;
  background: linear-gradient(145deg, rgba(192, 182, 255, 0.4) 0%, rgba(205, 254, 103, 0.35) 100%);
  color: var(--text-primary);
}
[data-theme="dark"] .life-placeholder {
  background: linear-gradient(145deg, rgba(139, 200, 210, 0.35) 0%, rgba(172, 178, 236, 0.3) 100%);
  color: var(--text-primary);
}

/* ==================== Life 生活 - 3D照片轮播 ==================== */
.photo-carousel {
  position: relative;
  width: 100%;
  height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1500px;
  overflow: hidden;
}
.carousel-stage {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.carousel-track {
  position: relative;
  width: 1400px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.carousel-card {
  position: absolute;
  width: 300px;
  height: 400px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  opacity: 0;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  flex-shrink: 0;
}
.carousel-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.carousel-card:hover img {
  transform: scale(1.05);
}
.carousel-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.35) 100%);
  z-index: 1;
  pointer-events: none;
}
/* 5张卡片位置：-2, -1, 0, 1, 2 */
.carousel-card.pos--2 { transform: translateX(-580px) scale(0.75); z-index: 1; opacity: 0.7; }
.carousel-card.pos--1 { transform: translateX(-290px) scale(0.85); z-index: 2; opacity: 0.85; }
.carousel-card.pos-0 { transform: translateX(0) scale(1); z-index: 5; opacity: 1; }
.carousel-card.pos-1 { transform: translateX(290px) scale(0.85); z-index: 2; opacity: 0.85; }
.carousel-card.pos-2 { transform: translateX(580px) scale(0.75); z-index: 1; opacity: 0.7; }
.carousel-card.active { z-index: 10; }
.carousel-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 20;
}
.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  border: 2px solid rgba(255,255,255,0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}
.carousel-dot.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  transform: scale(1.2);
}
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  cursor: pointer;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.carousel-btn:hover {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 8px 24px rgba(192, 182, 255, 0.4);
}
.carousel-prev { left: 60px; }
.carousel-next { right: 60px; }
@media (max-width: 1200px) {
  .carousel-track { width: 1100px; }
  .carousel-card { width: 250px; height: 340px; }
  .carousel-card.pos--2 { transform: translateX(-460px) scale(0.75); }
  .carousel-card.pos--1 { transform: translateX(-230px) scale(0.85); }
  .carousel-card.pos-0 { transform: translateX(0) scale(1); }
  .carousel-card.pos-1 { transform: translateX(230px) scale(0.85); }
  .carousel-card.pos-2 { transform: translateX(460px) scale(0.75); }
}
@media (max-width: 768px) {
  .photo-carousel { height: 380px; }
  .carousel-track { width: 320px; }
  .carousel-card { width: 200px; height: 280px; }
  .carousel-card.pos--2 { transform: translateX(-175px) scale(0.7); opacity: 0.5; }
  .carousel-card.pos--1 { transform: translateX(-100px) scale(0.8); opacity: 0.7; }
  .carousel-card.pos-0 { transform: translateX(0) scale(1); }
  .carousel-card.pos-1 { transform: translateX(100px) scale(0.8); opacity: 0.7; }
  .carousel-card.pos-2 { transform: translateX(175px) scale(0.7); opacity: 0.5; }
  .carousel-btn { width: 44px; height: 44px; }
  .carousel-prev { left: 15px; }
  .carousel-next { right: 15px; }
  .carousel-btn svg { width: 18px; height: 18px; }
}
[data-theme="dark"] .carousel-btn {
  background: rgba(30,30,35,0.8);
  border-color: rgba(255,255,255,0.1);
}

/* ==================== Footer ==================== */
.footer { padding: 60px 28px; background: var(--bg-secondary); border-top: 1px solid var(--border-light); }
.footer-content { max-width: 1100px; margin: 0 auto; text-align: center; }
.footer-info h3 { font-size: 18px; font-weight: 700; margin-bottom: 16px; }
.footer-info p { font-size: 14px; color: var(--text-secondary); margin-bottom: 8px; }
.footer-social { display: flex; justify-content: center; gap: 24px; margin: 28px 0; }
.social-link { font-size: 14px; color: var(--color-primary); text-decoration: none; font-weight: 500; transition: color var(--transition); }
.social-link:hover { color: var(--text-primary); }
.copyright { font-size: 13px; color: var(--text-tertiary); }

/* ==================== 联系方式 ==================== */
.contact-list { display: flex; flex-direction: row; gap: 20px; justify-content: center; flex-wrap: wrap; }
.contact-item {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 24px; background: var(--glass-bg); backdrop-filter: blur(12px);
  border-radius: 28px; border: 1px solid var(--border-light); color: var(--text-primary);
  text-decoration: none; font-size: 15px; font-weight: 500;
  transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
}
.contact-item:hover {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: #252726; transform: translateY(-4px); border-color: transparent;
  box-shadow: 0 8px 25px rgba(192, 182, 255, 0.35);
}
.contact-icon {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  transition: all 0.35s ease;
}
.contact-item:hover .contact-icon { background: rgba(255,255,255,0.3); }
.contact-icon svg { color: #252726; }

/* 微信二维码 */
.wechat-item { cursor: pointer; position: relative; }
.wechat-qr {
  position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%);
  margin-bottom: 16px; padding: 12px; background: white; border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2); opacity: 0; visibility: hidden;
  transition: all 0.3s ease; z-index: 100;
}
.wechat-qr::after {
  content: ''; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  border: 10px solid transparent; border-top-color: white;
}
.wechat-qr img { width: 140px; height: 140px; object-fit: contain; display: block; border-radius: 10px; }
.wechat-item:hover .wechat-qr,
.wechat-item.active .wechat-qr { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }

/* 手机端点击提示 */
.wechat-item::after {
  content: '点击扫码'; position: absolute; top: -8px; right: -8px;
  font-size: 10px; padding: 2px 6px; background: var(--color-primary);
  color: #252726; border-radius: 8px; opacity: 0; transition: opacity 0.3s;
}
@media (max-width: 900px) {
  .wechat-item::after { opacity: 1; }
}

/* ==================== 响应式 ==================== */
@media (max-width: 900px) {
  .hero { padding: 100px 20px 40px; }
  .hero-container { flex-direction: column; text-align: center; gap: 40px; }
  .hero-left { order: -1; }
  .avatar-container { width: 280px; height: 280px; }
  .hero-name { font-size: 48px; }
  .hero-title { font-size: 20px; }
  .hero-bio { margin-left: auto; margin-right: auto; }
  .attitude-tags { justify-content: center; }
  .hero-actions { justify-content: center; flex-direction: column; }
  .scroll-hint { margin-top: 40px; }
  .resume-grid { grid-template-columns: 1fr; }
  .resume-left { flex-direction: row; }
  .info-card { flex: 1; }
  .works-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
  .life-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial-item { width: 260px; }
}

@media (max-width: 600px) {
  /* ---------- 通用：手机端横向滑动卡片容器 ---------- */
  .section { padding: 60px 0; }

  /* ---------- 手机端：简历模块横向滑动 ---------- */
  .resume-grid { gap: 0; }

  /* 左侧信息卡片（教育背景、技能、AI工具等）改为横向滑动 */
  .resume-left {
    flex-direction: row !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    gap: 12px;
    padding: 0 16px 12px;
    margin-bottom: 16px;
    position: relative;
  }
  .resume-left::-webkit-scrollbar { display: none; }
  .resume-left > .info-card {
    flex: 0 0 85vw;
    scroll-snap-align: start;
    max-width: 85vw;
  }

  /* 右侧工作经历卡片改为横向滑动 */
  .resume-right {
    flex-direction: row !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    gap: 12px;
    padding: 0 16px 12px;
    position: relative;
  }
  .resume-right::-webkit-scrollbar { display: none; }
  .resume-right > .work-card {
    flex: 0 0 88vw;
    scroll-snap-align: start;
    max-width: 88vw;
  }
  /* 工作卡片内的展开内容在横向滑动时需要特殊处理 */
  .work-card[data-expanded="true"] .work-detail {
    max-height: none;
    overflow: visible;
  }

  /* ---------- 手机端：作品集横向滑动 ---------- */
  .works-list {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    flex-direction: row;
    display: flex;
    gap: 16px;
    padding: 0 16px 12px;
    max-width: 100%;
    position: relative;
  }
  .works-list::-webkit-scrollbar { display: none; }
  .work-item-row {
    flex: 0 0 88vw;
    max-width: 88vw;
    scroll-snap-align: start;
    flex-direction: column !important;
    max-width: 88vw;
  }
  .work-item-row .work-image {
    flex: 0 0 auto !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 3 / 4 !important;
  }
  .work-item-row .work-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
  .work-item-row .work-info {
    flex: 1;
    padding: 16px 0;
  }
  .work-item-row:hover {
    transform: none;
  }

  /* ---------- 手机端：滑动引导提示 ---------- */
  /* 把提示词放在父级容器上，这样不会随滚动移走 */
  .resume-section .resume-grid {
    position: relative;
  }
  .resume-section .resume-grid::before {
    content: '滑动查看更多 →';
    position: absolute;
    right: 16px;
    bottom: -20px;
    font-size: 11px;
    color: var(--text-tertiary);
    white-space: nowrap;
    pointer-events: none;
    z-index: 10;
    animation: pulse-hint 2s ease-in-out infinite;
  }

  .works-section .section-header {
    position: relative;
  }
  .works-section .section-header::after {
    content: '滑动查看更多 →';
    position: absolute;
    right: 16px;
    bottom: -20px;
    font-size: 11px;
    color: var(--text-tertiary);
    white-space: nowrap;
    pointer-events: none;
    z-index: 10;
    animation: pulse-hint 2s ease-in-out infinite;
  }

  .testimonials-section .section-header {
    position: relative;
  }
  .testimonials-section .section-header::after {
    content: '滑动查看更多 →';
    position: absolute;
    right: 16px;
    bottom: -20px;
    font-size: 11px;
    color: var(--text-tertiary);
    white-space: nowrap;
    pointer-events: none;
    z-index: 10;
    animation: pulse-hint 2s ease-in-out infinite;
  }

  @keyframes pulse-hint {
    0%, 100% { opacity: 0.5; transform: translateX(0); }
    50% { opacity: 1; transform: translateX(4px); }
  }

  /* ---------- 手机端：评价区域 ---------- */
  .testimonials-section { padding: 60px 0; }
  .testimonial-item { width: 75vw; }

  /* ---------- 手机端：生活照片轮播已支持触摸滑动 ---------- */
  .photo-carousel { height: 380px; }
  .carousel-track { width: 320px; }
  .carousel-card { width: 200px; height: 280px; }
  .carousel-card.pos--2 { transform: translateX(-175px) scale(0.7); opacity: 0.5; }
  .carousel-card.pos--1 { transform: translateX(-100px) scale(0.8); opacity: 0.7; }
  .carousel-card.pos-0 { transform: translateX(0) scale(1); }
  .carousel-card.pos-1 { transform: translateX(100px) scale(0.8); opacity: 0.7; }
  .carousel-card.pos-2 { transform: translateX(175px) scale(0.7); opacity: 0.5; }
  .carousel-btn { width: 44px; height: 44px; }
  .carousel-prev { left: 15px; }
  .carousel-next { right: 15px; }
  .carousel-btn svg { width: 18px; height: 18px; }

  /* ---------- 手机端：其他通用 ---------- */
  .navbar { padding: 0; background: transparent; }
  .navbar.scrolled { background: transparent; border-bottom: none; }
  .nav-container { justify-content: flex-start; }
  .nav-toggle { display: flex; align-items: center; justify-content: center; }
  .nav-logo { display: none; }
  .theme-toggle { position: fixed; top: 20px; right: 20px; z-index: 1002; }
  .nav-menu {
    position: fixed; top: 0; left: -100%; width: 280px; height: 100vh;
    background: var(--glass-bg); backdrop-filter: blur(24px);
    flex-direction: column; justify-content: center; gap: 24px;
    transition: left 0.4s ease; z-index: 1000;
    border-right: 1px solid var(--border-light); padding: 80px 40px;
  }
  .nav-menu.active { left: 0; }
  .nav-menu .nav-link { font-size: 16px; }
  .hero { padding-top: 80px; }
  .hero-name { font-size: 38px; }
  .hero-title { font-size: 18px; }
  .avatar-container { width: 220px; height: 220px; }
  .attitude-tags { gap: 8px; }
  .attitude-tag { padding: 10px 14px; font-size: 12px; }
  .section-title { font-size: 32px; }
  .life-grid { grid-template-columns: 1fr; }
  .resume-left { flex-direction: column; }
  .info-card { width: 100%; }
  .testimonials-row { width: 200%; }
}
@media (max-width: 600px) {
  .navbar { padding: 0; background: transparent; }
  .navbar.scrolled { background: transparent; border-bottom: none; }
  .nav-container { justify-content: flex-start; }
  .nav-toggle { display: flex; align-items: center; justify-content: center; }
  .nav-logo { display: none; }
  .theme-toggle { position: fixed; top: 20px; right: 20px; z-index: 1002; }
  .nav-menu {
    position: fixed; top: 0; left: -100%; width: 280px; height: 100vh;
    background: var(--glass-bg); backdrop-filter: blur(24px);
    flex-direction: column; justify-content: center; gap: 24px;
    transition: left 0.4s ease; z-index: 1000;
    border-right: 1px solid var(--border-light); padding: 80px 40px;
  }
  .nav-menu.active { left: 0; }
  .nav-menu .nav-link { font-size: 16px; }
  .hero { padding-top: 80px; }
  .hero-name { font-size: 38px; }
  .hero-title { font-size: 18px; }
  .avatar-container { width: 220px; height: 220px; }
  .attitude-tags { gap: 8px; }
  .attitude-tag { padding: 10px 14px; font-size: 12px; }
  .section-title { font-size: 32px; }
  .life-grid { grid-template-columns: 1fr; }
  .resume-left { flex-direction: column; }
  .info-card { width: 100%; }
  .testimonial-item { width: 280px; }
  .testimonials-row { width: 200%; }
}

/* ==================== 打印 ==================== */
@media print {
  .navbar, .theme-toggle, .footer, .copyright, .testimonials-section, .add-testimonial { display: none !important; }
  body { background: white !important; color: #222 !important; }
  body::before { display: none; }
  .glass-card { background: white !important; box-shadow: none !important; border: 1px solid #ddd !important; }
  .hero { min-height: auto; padding: 40px 20px; }
}

/* ==================== 作品弹窗 ==================== */
.work-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
}
.work-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}
.work-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
}
.work-modal-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  padding: 24px;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-medium);
  box-shadow: var(--shadow-lg);
  overflow: auto;
  animation: modalIn 0.3s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}
.work-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: none;
  background: var(--bg-card);
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-primary);
  transition: var(--transition);
}
.work-modal-close:hover {
  background: var(--color-primary);
  color: white;
}
.work-modal-image {
  margin-bottom: 16px;
  text-align: center;
}
.work-modal-image img {
  max-width: 100%;
  max-height: 70vh;
  border-radius: var(--radius-md);
  object-fit: contain;
}
.work-modal-info h3 {
  margin-bottom: 8px;
  color: var(--text-primary);
}
.work-modal-info p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==================== 作品列表（横版卡片） ==================== */
.works-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 0 28px;
  max-width: 1100px;
  margin: 0 auto;
}
.work-item-row {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 24px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.work-item-row:hover {
  transform: translateX(8px);
  box-shadow: var(--shadow-lg);
}
.work-item-row.reverse {
  flex-direction: row-reverse;
}
.work-item-row .work-image {
  flex: 0 0 300px;
  width: 300px;
  height: 400px;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  margin-bottom: 0;
}
.work-item-row .work-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.work-item-row .work-info {
  flex: 1;
  padding: 8px 0;
}
.work-item-row .work-info h4 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
  transition: color 0.3s ease;
}
.work-item-row:hover .work-info h4 {
  color: var(--color-primary);
}
.work-item-row .work-subtitle {
  font-size: 15px;
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: 16px;
  transition: color 0.3s ease;
}
.work-item-row:hover .work-subtitle {
  color: var(--color-secondary);
}
.work-item-row .work-desc {
  font-size: 14px;
  color: var(--text-tertiary);
  line-height: 1.8;
  transition: color 0.3s ease;
}
.work-item-row:hover .work-desc {
  color: var(--text-secondary);
}

/* 响应式：平板 */
@media (max-width: 900px) {
  .work-item-row {
    flex-direction: row !important;
    gap: 20px;
  }
  .work-item-row .work-image {
    flex: 0 0 240px;
    width: 240px;
    height: 320px;
  }
  .work-item-row .work-info h4 {
    font-size: 17px;
  }
}

/* 响应式：手机 */
@media (max-width: 600px) {
  .works-list {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    flex-direction: row;
    display: flex;
    gap: 16px;
    padding: 0 16px 20px;
    max-width: 100%;
  }
  .works-list::-webkit-scrollbar { display: none; }
  .work-item-row,
  .work-item-row.reverse {
    flex: 0 0 88vw;
    max-width: 88vw;
    scroll-snap-align: start;
    flex-direction: column !important;
    gap: 16px;
  }
  .work-item-row:hover {
    transform: translateY(-4px);
  }
  .work-item-row .work-image {
    flex: 0 0 auto;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
  }
  .work-item-row .work-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
  .work-item-row .work-info h4 {
    font-size: 16px;
  }
  .work-item-row .work-subtitle {
    font-size: 14px;
  }
  .work-item-row .work-desc {
    font-size: 13px;
  }
}