/* ========================================
   自托管字体（Inter 拉丁子集）
   国内访问 Google Fonts 被墙，render-blocking 会导致首屏白屏数秒，
   故改为本地 woff2 + font-display: swap，并保留系统字体兜底。
   ======================================== */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/inter/inter-latin-400-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/inter/inter-latin-500-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/inter/inter-latin-600-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/inter/inter-latin-700-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ========================================
   郑占龙 - 产品经理个人网站
   设计理念：大面积留白 · 干净通透 · 专业克制
   ======================================== */

:root {
  /* 配色 - 极简干净 */
  --white: #ffffff;
  --off-white: #fafbfc;
  --light-gray: #f0f2f5;
  --gray: #c4c9d4;
  --text-primary: #111827;
  --text-secondary: #6b7280;
  --text-muted: #9ca3af;
  --accent: #111827;
  --accent-hover: #374151;
  --blue: #3b82f6;
  --blue-light: #eff6ff;
  --border: #e5e7eb;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.06);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.08);
  
  /* 字体 —— Inter 本地自托管，中文回落系统字体，避免国内加载阻塞 */
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --font-serif: 'Noto Serif SC', 'Songti SC', SimSun, Georgia, serif;
  
  /* 间距 */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 8rem;
  --space-2xl: 12rem;
  
  /* 过渡 */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   Reset & Base
   ======================================== */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--white);
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: var(--text-primary);
  color: var(--white);
}

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

/* ========================================
   Typography
   ======================================== */

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.75rem); }
h3 { font-size: clamp(1.125rem, 2vw, 1.375rem); }

p {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

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

/* ========================================
   Navigation - 极简透明
   ======================================== */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.5rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.4s var(--ease);
}

.nav.scrolled {
  padding: 1rem 3rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  padding: 0.5rem 0;
  position: relative;
}

.nav-logo::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--blue);
  transition: width 0.3s var(--ease);
}

.nav-logo:hover::after {
  width: 100%;
}

.nav-links {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  align-items: center;
}

.lang-toggle {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--light-gray);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.375rem 0.625rem;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  margin-left: 0.5rem;
  line-height: 1;
}

.lang-toggle:hover {
  color: var(--blue);
  border-color: var(--blue);
  background: var(--blue-light);
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.01em;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: all 0.25s var(--ease);
  position: relative;
}

.nav-link:hover {
  color: var(--text-primary);
  background: var(--light-gray);
}

.nav-link.active {
  color: var(--blue);
  background: var(--blue-light);
  font-weight: 600;
}

/* Focus state for accessibility */
.nav-link:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

/* Mobile */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: background 0.2s var(--ease);
}

.nav-toggle:hover {
  background: var(--light-gray);
}

.nav-toggle span {
  width: 22px;
  height: 1.5px;
  background: var(--text-primary);
  transition: all 0.3s var(--ease);
  transform-origin: center;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translateY(5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(-5px);
}

/* ========================================
   Hero Banner - 全屏视觉
   ======================================== */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--white);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-gradient {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse 80% 60% at 70% 40%, var(--blue-light) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 20% 80%, var(--light-gray) 0%, transparent 60%);
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.4;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 20%, transparent 70%);
}

.hero-bg-accent {
  position: absolute;
  top: 15%;
  right: 10%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: var(--blue);
  opacity: 0.04;
  filter: blur(80px);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 6rem 1.5rem var(--space-xl);
  display: grid;
  /* 左正文 / 右优势卡，按约 65:35 分配；minmax(0,…) 允许子项收缩，
     避免内容最小宽度把网格撑出容器导致右侧卡片被视口裁切 */
  grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr);
  gap: 5rem;
  align-items: center;
}

.hero-text {
  animation: heroFadeIn 1s var(--ease) forwards;
  /* Grid 子项默认 min-width:auto，内容最小宽度会撑破 0.45fr 列宽，
     导致右侧核心优势卡片溢出视口被裁切，必须显式允许收缩 */
  min-width: 0;
}

.hero-copy {
  min-width: 0;
}

@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  padding: 0.5rem 1rem;
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: 100px;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

.hero-portrait {
  margin-bottom: 1.5rem;
}

.hero-portrait-img {
  width: clamp(96px, 10vw, 128px);
  height: clamp(96px, 10vw, 128px);
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  border: 3px solid var(--white);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ========================================
   能力跑马灯
   ======================================== */

.marquee-strip {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  background: var(--off-white);
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  white-space: nowrap;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 32s linear infinite;
  will-change: transform;
}

.marquee-strip:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-group {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: 0.02em;
  padding-right: 3rem;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.hero-title {
  margin-bottom: 1.5rem;
  font-size: clamp(2.25rem, 5vw, 3.75rem);
}

.hero-title .line {
  display: block;
}

.hero-title .line-sub {
  font-size: clamp(1.125rem, 2.25vw, 1.5rem);
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.hero-title .highlight {
  color: var(--blue);
}

.hero-description {
  font-size: 1.125rem;
  margin-bottom: 2.5rem;
  max-width: 560px;
}

/* 首屏求职信息条 —— HR 首屏 3 秒内要看到求职状态与目标岗位 */
/* 使用 flex + wrap 而非 grid：窄屏与长文案（如英文 Target Role）下更不易溢出 */
.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
  max-width: 640px;
}

.hero-fact {
  /* 桌面 4 列：每项约 25% 宽（减去 gap），随容器收缩换行 */
  flex: 1 1 calc(25% - 0.5625rem);
  min-width: 0;
  padding: 0.75rem 0.875rem;
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
}

.hero-fact-label {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.hero-fact-value {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-primary);
  word-break: break-word;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hero-stats {
  display: flex;
  gap: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.hero-stat {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  white-space: nowrap;
}

.hero-stat-value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
  letter-spacing: -0.03em;
}

.hero-stat-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 0;
}

/* Hero Visual - 右侧装饰 */
.hero-visual {
  animation: heroFadeIn 1s var(--ease) 0.2s both;
  min-width: 0;
}

.hero-visual-card {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: var(--shadow-lg);
}

.hero-visual-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.hero-visual-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gray);
}

.hero-visual-dot.active {
  background: var(--blue);
}

.hero-visual-title {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
}

.hero-visual-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.hero-metric-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
}

.hero-metric-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.hero-metric-value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.hero-metric-change {
  font-size: 0.75rem;
  color: #22c55e;
  margin-top: 0.25rem;
}

/* Hero Core Advantage Card */
.hero-core-card {
  width: 100%;
  padding: 2.5rem;
}

.hero-core-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.75rem;
}

.hero-core-title {
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--text-primary);
}

.hero-core-badge {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--blue);
  background: var(--blue-light);
  border-radius: 100px;
  padding: 0.35rem 0.8rem;
}

.hero-core-cats {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-core-cat-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.hero-core-tags {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.625rem;
  white-space: nowrap;
}

.hero-core-tag {
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.45rem 0.7rem;
  border-radius: 8px;
}

.hero-core-cat-icon.c-blue { color: var(--blue); }
.hero-core-cat-icon.c-green { color: #059669; }
.hero-core-cat-icon.c-orange { color: #d97706; }
.hero-core-cat-icon.c-purple { color: #7c3aed; }

.hero-core-tag.c-blue { color: var(--blue); background: var(--blue-light); }
.hero-core-tag.c-green { color: #059669; background: #ecfdf5; }
.hero-core-tag.c-orange { color: #d97706; background: #fffbeb; }
.hero-core-tag.c-purple { color: #7c3aed; background: #f5f3ff; }

/* ========================================
   Buttons
   ======================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.875rem 1.75rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: currentColor;
  opacity: 0;
  transition: opacity 0.2s var(--ease);
}

.btn:active::before {
  opacity: 0.1;
}

.btn-dark {
  background: var(--accent);
  color: var(--white);
}

.btn-dark:hover {
  background: var(--accent-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.btn-dark:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

.btn-light {
  background: var(--white);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-light:hover {
  border-color: var(--text-primary);
  background: var(--off-white);
}

.btn-light:active {
  background: var(--light-gray);
}

.btn:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.btn-icon {
  transition: transform 0.25s var(--ease);
}

.btn:hover .btn-icon {
  transform: translateX(3px);
}

/* ========================================
   Sections
   ======================================== */

.section {
  padding: var(--space-xl) 1.5rem;
}

.section--gray {
  background: var(--off-white);
}

.section-header {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--space-lg);
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--blue);
  margin-bottom: 0.75rem;
}

.section-title {
  margin-bottom: 1rem;
}

.section-desc {
  color: var(--text-secondary);
}

.section-header--center {
  text-align: center;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ========================================
   Methodology Cards
   ======================================== */

.methodology-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  width: 100%;
}

.method-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  transition: all 0.3s var(--ease);
  cursor: default;
}

.method-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.method-card:hover .method-icon {
  background: var(--blue);
  color: var(--white);
  transform: scale(1.1);
}

.method-icon {
  width: 48px;
  height: 48px;
  background: var(--blue-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--blue);
  transition: all 0.3s var(--ease);
}

.method-title {
  font-size: 1.0625rem;
  margin-bottom: 0.75rem;
}

.method-desc {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ========================================
   Case Cards
   ======================================== */

.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  gap: 1.5rem;
}

/* 作品页板块分隔线 */
.works-divider {
  height: 2px;
  background: var(--border);
  max-width: 1120px;
  margin: 0 auto;
}

.case-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s var(--ease);
  cursor: pointer;
}

.case-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.case-cover {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--light-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  transition: background 0.3s var(--ease);
}

.case-card:hover .case-cover {
  background: var(--off-white);
}

.case-cover-icon {
  width: 56px;
  height: 56px;
  background: var(--white);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  color: var(--blue);
  z-index: 1;
  transition: all 0.3s var(--ease);
}

.case-card:hover .case-cover-icon {
  transform: scale(1.15);
  background: var(--blue);
  color: var(--white);
}

.case-cover-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  transition: opacity 0.3s var(--ease);
}

.case-card:hover .case-cover-pattern {
  opacity: 0.3;
}

.case-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  position: absolute;
  inset: 0;
  transition: transform 0.4s var(--ease);
}

.case-card:hover .case-cover-img {
  transform: scale(1.05);
}

.case-cover-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17,24,39,0.1) 0%, rgba(17,24,39,0.3) 100%);
  z-index: 1;
  transition: opacity 0.3s var(--ease);
}

.case-card:hover .case-cover-img-overlay {
  opacity: 0.7;
}

.case-body {
  padding: 1.75rem;
}

.case-tag {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue);
  background: var(--blue-light);
  padding: 0.25rem 0.625rem;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 0.75rem;
  transition: all 0.2s var(--ease);
}

.case-card:hover .case-tag {
  background: var(--blue);
  color: var(--white);
}

.case-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.case-desc {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

.case-data {
  display: flex;
  gap: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.case-data-value {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.case-data-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ========================================
   Insights
   ======================================== */

.insights-list {
  max-width: 100%;
}

.insights-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2.5rem;
  align-items: start;
}

.insight-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 2rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
  transition: all 0.3s var(--ease);
  cursor: pointer;
}

.insight-item:first-child {
  border-top: 1px solid var(--border);
}

.insight-item:hover {
  padding-left: 1rem;
  background: linear-gradient(90deg, var(--blue-light) 0%, transparent 100%);
}

.insight-item:hover .insight-title {
  color: var(--blue);
}

.insight-item:hover .insight-year {
  color: var(--blue);
}

.insight-year {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  padding-top: 0.25rem;
  transition: color 0.3s var(--ease);
}

.insight-title {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
  transition: color 0.3s var(--ease);
}

.insight-desc {
  font-size: 0.9375rem;
}

.insight-tags {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.insight-tag {
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  background: var(--light-gray);
  border-radius: 4px;
  color: var(--text-secondary);
}

/* Insights Sidebar */
.insights-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.insight-sidebar-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
}

.insight-sidebar-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.insight-tags-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.insight-tag-large {
  font-size: 0.8125rem;
  padding: 0.375rem 0.875rem;
  background: var(--blue-light);
  color: var(--blue);
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.2s var(--ease);
  cursor: default;
}

.insight-tag-large:hover {
  background: var(--blue);
  color: var(--white);
}

.insight-sidebar-text {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.insight-sidebar-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--blue);
  transition: color 0.2s var(--ease);
}

.insight-sidebar-link:hover {
  color: var(--accent);
}

/* ========================================
   About
   ======================================== */

.about-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 4rem;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 2rem;
  align-items: start;
}

.about-sidebar {
  position: sticky;
  top: 120px;
}

.about-avatar {
  width: 180px;
  height: 180px;
  background: var(--light-gray);
  border-radius: 50%;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 3.5rem;
  color: var(--text-muted);
  border: 2px solid var(--border);
}

.about-name {
  font-size: 1.375rem;
  margin-bottom: 0.25rem;
}

.about-role {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.about-links {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.about-link {
  font-size: 0.875rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.about-link:hover {
  color: var(--blue);
}

.about-main h2 {
  margin-bottom: 1.5rem;
}

.about-main p {
  margin-bottom: 1.25rem;
}

.about-divider {
  border-top: 1px solid var(--border);
  margin: 1.75rem 0 2rem;
}

.experience-list {
  margin-top: 0;
}

.experience-list .exp-item:first-child {
  padding-top: 0;
}

.exp-item {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}

.exp-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.25rem;
}

.exp-company {
  font-weight: 600;
  font-size: 1rem;
}

.exp-period {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.exp-role {
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.exp-desc {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* 待补充经历占位（2018-2021）—— 虚线边框 + 淡化处理，避免看起来像已确认内容 */
.exp-item--pending {
  border: 1px dashed var(--gray);
  border-radius: 10px;
  padding: 1.25rem;
  margin-bottom: 0.5rem;
  background: var(--off-white);
  opacity: 0.72;
}

.exp-item--pending .exp-company,
.exp-item--pending .exp-role,
.exp-item--pending .exp-desc {
  color: var(--text-muted);
}

.exp-item--pending .exp-company {
  font-weight: 500;
}

.exp-pending-tag {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.0625rem 0.5rem;
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--light-gray);
  border-radius: 100px;
  vertical-align: middle;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 0;
}

.skill-chip {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.875rem 1rem;
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.25s var(--ease);
  cursor: default;
}

.skill-chip:hover {
  border-color: var(--blue);
  background: var(--blue-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.skill-chip:hover .skill-emoji {
  transform: scale(1.2);
}

.skill-emoji {
  font-size: 1.25rem;
  transition: transform 0.25s var(--ease);
}

/* ========================================
   Quote
   ======================================== */

.quote-section {
  background: var(--text-primary);
  color: var(--white);
  padding: var(--space-xl) 3rem;
}

.quote-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.quote-text {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  font-weight: 400;
}

.quote-author {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.05em;
}

/* ========================================
   Footer
   ======================================== */

.footer {
  padding: 3rem;
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo {
  font-weight: 600;
  font-size: 1rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-link {
  font-size: 0.875rem;
  color: var(--text-secondary);
  padding: 0.375rem 0.75rem;
  border-radius: 6px;
  transition: all 0.2s var(--ease);
}

.footer-link:hover {
  color: var(--blue);
  background: var(--blue-light);
}

.footer-link:hover {
  color: var(--text-primary);
}

.footer-copy {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* ========================================
   Animations
   ======================================== */

.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.nowrap { white-space: nowrap; }

/* ========================================
   Contact Modal
   ======================================== */

.contact-trigger {
  font: inherit;
  border: 0;
  background: none;
  cursor: pointer;
  text-align: left;
}

.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
}

.contact-modal.show {
  opacity: 1;
  visibility: visible;
}

.contact-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.contact-modal-card {
  position: relative;
  width: 100%;
  max-width: 26rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  padding: 2rem 1.75rem 1.75rem;
  transform: translateY(12px) scale(0.98);
  transition: transform 0.3s var(--ease);
}

.contact-modal.show .contact-modal-card {
  transform: translateY(0) scale(1);
}

.contact-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: var(--light-gray);
  color: var(--text-secondary);
  border-radius: 6px;
  font-size: 1.125rem;
  line-height: 1;
  cursor: pointer;
  transition: all 0.25s var(--ease);
}

.contact-modal-close:hover {
  color: var(--white);
  background: var(--text-primary);
}

.contact-modal-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  padding-right: 2rem;
}

.contact-modal-list {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.875rem 1rem;
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: all 0.25s var(--ease);
}

a.contact-row:hover {
  border-color: var(--blue);
  background: var(--blue-light);
}

.contact-row-icon {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--blue);
}

.contact-row-label {
  flex-shrink: 0;
  min-width: 3.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.contact-row-value {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-primary);
  word-break: break-all;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .animate-on-scroll { opacity: 1; transform: none; }
}

/* ========================================
   Responsive
   ======================================== */

/* Tablet */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .methodology-grid { grid-template-columns: repeat(2, 1fr); }
  .about-layout { grid-template-columns: 1fr; }
  .about-sidebar { position: static; text-align: center; }
  .about-avatar { margin: 0 auto 1.5rem; }
  .about-links { align-items: center; }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .insights-layout { grid-template-columns: 1fr; gap: 2rem; }
  .hero-fact { flex: 1 1 calc(50% - 0.375rem); }
}

/* Mobile */
@media (max-width: 768px) {
  /* Navigation */
  .nav { 
    padding: 1rem 1.25rem; 
  }
  .nav.scrolled { 
    padding: 0.75rem 1.25rem; 
  }
  .nav-toggle { 
    display: flex; 
    z-index: 1002;
  }
  .nav-links {
    position: fixed; 
    inset: 0;
    top: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transform: translateX(100%);
    transition: transform 0.4s var(--ease);
    z-index: 1001;
    padding-top: 60px;
  }
  .nav-links.active { 
    transform: translateX(0); 
  }
  .nav-link {
    font-size: 1.25rem;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    transition: all 0.2s var(--ease);
  }
  .nav-link:hover {
    background: var(--light-gray);
  }
  
  /* Sections */
  .section { 
    padding: var(--space-lg) 1.25rem; 
  }
  
  /* Hero */
  .hero {
    min-height: auto;
    padding-top: 100px;
    padding-bottom: var(--space-lg);
  }
  .hero-bg-grid {
    background-size: 40px 40px;
    opacity: 0.3;
  }
  .hero-bg-accent {
    width: 150px;
    height: 150px;
    top: 10%;
    right: 5%;
  }
  .hero-content { 
    padding: var(--space-md) 1.25rem; 
  }
  .hero-badge {
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
    margin-bottom: 1.25rem;
  }
  .hero-title {
    font-size: clamp(2rem, 8vw, 2.75rem);
    margin-bottom: 1rem;
  }
  .hero-description {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  .hero-actions {
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
  }
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
  .hero-stats { 
    flex-direction: column; 
    gap: 1.25rem; 
    align-items: flex-start;
  }
  .hero-facts {
    gap: 0.625rem;
    margin-bottom: 2rem;
  }
  .hero-fact { flex: 1 1 calc(50% - 0.3125rem); }
  .hero-text {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }
  .hero-portrait {
    margin-top: 0;
  }
  .hero-portrait-img {
    width: 168px;
    height: 168px;
  }
  .marquee-strip {
    position: static;
  }
  .hero-core-card {
    padding: 1.5rem;
  }
  .hero-stat {
    width: 100%;
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
  }
  .hero-stat-value {
    font-size: 1.5rem;
  }
  .hero-stat-label {
    margin-top: 0;
  }
  
  /* Section Headers */
  .section-header {
    margin-bottom: var(--space-md);
  }
  .section-title {
    font-size: clamp(1.5rem, 5vw, 2rem);
  }
  
  /* Method Cards */
  .methodology-grid { 
    grid-template-columns: 1fr; 
    gap: 1rem;
  }
  .method-card {
    padding: 1.5rem;
  }
  .method-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 1rem;
  }
  
  /* Case Cards */
  .cases-grid { 
    gap: 1.25rem;
  }
  .case-body {
    padding: 1.25rem;
  }
  .case-title {
    font-size: 1.125rem;
  }
  .case-data {
    flex-direction: column;
    gap: 1rem;
  }
  
  /* Insights */
  .insights-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .insight-item { 
    grid-template-columns: 1fr; 
    gap: 0.5rem;
    padding: 1.25rem 0;
  }
  .insight-year {
    font-size: 0.75rem;
  }
  .insight-title {
    font-size: 1rem;
  }
  .insight-tags {
    flex-wrap: wrap;
  }
  
  /* About Page */
  .about-avatar {
    width: 140px;
    height: 140px;
    font-size: 2.5rem;
  }
  .about-name {
    font-size: 1.25rem;
  }
  .about-main h2 {
    font-size: 1.375rem;
    margin-bottom: 1rem;
  }
  .about-main p {
    font-size: 0.9375rem;
  }
  .exp-header {
    flex-direction: column;
    gap: 0.25rem;
  }
  .exp-period {
    order: -1;
  }
  .skills-grid { 
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }
  .skill-chip {
    padding: 0.75rem;
    font-size: 0.8125rem;
  }
  
  /* Quote Section */
  .quote-section {
    padding: var(--space-lg) 1.25rem;
  }
  .quote-text {
    font-size: 1.25rem;
  }
  
  /* Footer */
  .footer { 
    padding: 2rem 1.25rem; 
  }
  .footer-inner { 
    flex-direction: column; 
    gap: 1.25rem; 
    text-align: center; 
  }
  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem 1.5rem;
  }
}

/* ========================================
   Article Page
   ======================================== */

.article-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 8rem 2rem 4rem;
}

.article-header {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.article-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  color: var(--text-tertiary);
}

.article-title {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.article-summary {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.article-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.article-tag {
  font-size: 0.75rem;
  padding: 0.375rem 0.75rem;
  background: var(--blue-light);
  color: var(--blue);
  border-radius: 4px;
  font-weight: 500;
}

.article-source {
  margin-top: 1rem;
  font-size: 0.875rem;
}

.article-source a {
  color: var(--blue);
  text-decoration: none;
  font-weight: 500;
}

.article-source a:hover {
  text-decoration: underline;
}

.article-author {
  font-weight: 500;
  color: var(--text-primary);
}

.article-content {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--text-primary);
}

.article-content h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 2.5rem 0 1rem;
  color: var(--text-primary);
}

.article-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 2rem 0 0.75rem;
  color: var(--text-primary);
}

.article-content h4 {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 1.5rem 0 0.5rem;
  color: var(--text-primary);
}

.article-content p {
  margin-bottom: 1.25rem;
}

.article-content ul,
.article-content ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.article-content li {
  margin-bottom: 0.5rem;
}

.article-content blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.5rem;
  background: var(--light-gray);
  border-left: 4px solid var(--blue);
  border-radius: 0 8px 8px 0;
}

.article-content blockquote p {
  margin-bottom: 0.5rem;
  font-style: italic;
}

.article-content blockquote footer {
  font-size: 0.875rem;
  color: var(--text-tertiary);
}

.article-figure {
  margin: 2rem 0;
  text-align: center;
}

.article-figure img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.article-content strong {
  font-weight: 600;
  color: var(--text-primary);
}

.article-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

/* Insight title link style */
.insight-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.insight-title a:hover {
  color: var(--blue);
}

/* Article responsive */
@media (max-width: 768px) {
  .article-page {
    padding: 6rem 1.25rem 3rem;
  }
  
  .article-title {
    font-size: 1.75rem;
  }
  
  .article-summary {
    font-size: 1rem;
  }
  
  .article-content {
    font-size: 1rem;
  }
  
  .article-content h2 {
    font-size: 1.375rem;
  }
  
  .article-content h3 {
    font-size: 1.25rem;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .hero-title {
    font-size: 1.75rem;
  }
  .hero-stats {
    gap: 1rem;
  }
  .hero-stat-value {
    font-size: 1.25rem;
  }
  .skills-grid {
    grid-template-columns: 1fr;
  }
  .case-data {
    flex-direction: row;
    justify-content: space-between;
  }
  .case-data > div {
    flex: 1;
  }
}

/* ========================================
   Utilities
   ======================================== */

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.text-center { text-align: center; }

.skip-link {
  position: absolute; top: -100px; left: 0;
  background: var(--accent); color: var(--white);
  padding: 0.75rem 1.5rem; z-index: 9999;
  transition: top 0.3s;
}
.skip-link:focus { top: 0; }


/* 统一返回按钮 */
.xh-back-btn{position:fixed;top:18px;left:18px;z-index:9999;display:inline-flex;align-items:center;gap:6px;font-size:0.8125rem;font-weight:600;color:#3b82f6;background:#eff6ff;border:1px solid #e5e7eb;border-radius:6px;padding:0.375rem 0.75rem;text-decoration:none;transition:all .25s;cursor:pointer;box-shadow:0 2px 8px rgba(0,0,0,0.08);}
.xh-back-btn:hover{background:#dbeafe;border-color:#3b82f6;box-shadow:0 4px 12px rgba(59,130,246,0.15);}
