/* ============================================
   个人主页 · 商务极简暖色风
   配色：奶油米黄 + 深棕墨 + 暖灰层次
   ============================================ */

:root {
  --bg: #FBF7F0;
  --bg-soft: #F5F0E8;
  --bg-section: #EFE9E0;

  --ink: #2C2520;
  --ink-2: #4A4035;
  --ink-3: #7A6E62;
  --ink-4: #9E9285;

  --line: rgba(44, 37, 32, 0.10);
  --line-strong: rgba(44, 37, 32, 0.18);

  --accent: #2C2520;

  --font-sans: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'SF Pro Display',
    'SF Pro Text', 'Helvetica Neue', Helvetica, 'PingFang SC',
    'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --font-display: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'SF Pro Display',
    'Helvetica Neue', 'PingFang SC', sans-serif;
  --font-mono: 'SF Mono', 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  letter-spacing: -0.003em;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; transition: opacity 0.2s var(--ease); }
a:hover { opacity: 0.6; }
button { cursor: pointer; font-family: inherit; border: none; background: none; color: inherit; padding: 0; }
img, svg { display: block; max-width: 100%; }
::selection { background: var(--ink); color: #FBF7F0; }

.paper-bg { display: none; }

/* ---------- 导航 ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 44px;
  background: rgba(251, 247, 240, 0.78);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.logo-bracket { display: none; }
.logo-text {
  background: transparent;
  padding: 0;
  border-radius: 0;
  transform: none;
}
.nav-links {
  display: flex;
  gap: 36px;
  font-size: 13px;
  font-weight: 400;
  color: var(--ink-2);
  letter-spacing: 0;
}
.nav-links a {
  position: relative;
  padding: 4px 0;
}
.nav-links a::after { display: none; }
.nav-links a:hover { color: var(--ink); opacity: 1; }

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  box-shadow: none;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.lang-toggle:hover {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
  transform: none;
  box-shadow: none;
}
.lang-toggle:active { transform: none; box-shadow: none; }
.lang-icon { font-size: 12px; opacity: 0.6; }

/* ---------- 通用布局 ---------- */
main { max-width: 1080px; margin: 0 auto; padding: 0 44px; }

.section {
  padding: 140px 0 100px;
  scroll-margin-top: 80px;
  border-top: 1px solid var(--line);
}
.section:first-of-type { border-top: none; }

.section-title {
  display: block;
  margin-bottom: 80px;
}
.section-title h2 {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 600;
  letter-spacing: -0.022em;
  color: var(--ink);
  line-height: 1.1;
}
.section-title h2::before { display: none; }
.title-deco { display: none; }

/* Eyebrow 标签：放在主标题上方的一行小字 */
.section-title::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--ink);
  margin-bottom: 20px;
}

/* ---------- Hero ---------- */
.hero {
  min-height: calc(100vh - 60px);
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  align-items: center;
  gap: 80px;
  padding: 120px 44px 80px;
  max-width: 1080px;
  margin: 0 auto;
  position: relative;
  border-top: none;
}

.hero-sticker {
  display: inline-block;
  margin-bottom: 32px;
  padding: 6px 14px;
  background: transparent;
  color: var(--ink-3);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  transform: none;
  box-shadow: none;
}
.tape::before, .tape::after { display: none; }

.hero-title {
  font-family: var(--font-display);
  font-size: 88px;
  line-height: 0.98;
  font-weight: 600;
  letter-spacing: -0.04em;
  margin-bottom: 28px;
  display: block;
  color: var(--ink);
}
.hero-hi {
  display: block;
  font-size: 88px;
  font-weight: 200;
  color: var(--ink-3);
  margin-bottom: 4px;
}
.hero-name {
  display: inline;
  background: none;
  padding: 0;
  transform: none;
  color: var(--ink);
  font-weight: 600;
}
.wave {
  display: inline-block;
  font-size: 72px;
  margin-left: 8px;
  animation: none;
  filter: grayscale(1);
  opacity: 0.95;
}

.hero-subtitle {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-3);
  margin-bottom: 24px;
  display: block;
  letter-spacing: 0.02em;
}
.code-tag {
  font-family: var(--font-mono);
  color: var(--ink-4);
  font-size: 13px;
}

.hero-desc {
  font-size: 21px;
  line-height: 1.5;
  color: var(--ink-2);
  margin-bottom: 40px;
  max-width: 540px;
  font-family: var(--font-sans);
  font-weight: 400;
  letter-spacing: -0.01em;
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  padding: 13px 26px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  border: 1px solid var(--ink);
  border-radius: 999px;
  box-shadow: none;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), opacity 0.2s var(--ease);
}
.btn:hover { transform: none; box-shadow: none; opacity: 1; }
.btn:active { transform: none; box-shadow: none; }
.btn-primary {
  background: var(--ink);
  color: #FBF7F0;
}
.btn-primary:hover {
  background: #1A1410;
  border-color: #1A1410;
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover {
  border-color: var(--ink);
  background: transparent;
}

/* 头像区 —— 极简风：纯圆形渐变 + 大写首字母 */
.hero-avatar {
  position: relative;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
}
.avatar-wrap {
  position: relative;
  width: 340px;
  height: 340px;
}
.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--ink-4);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.scroll-arrow { font-size: 12px; animation: bounce 1.8s infinite; }
@keyframes bounce {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50% { transform: translateY(6px); opacity: 1; }
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
.sticky-note,
.about-card {
  padding: 48px 36px 52px 36px;
  background: transparent !important;
  border: none;
  border-right: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
  transform: none !important;
  position: relative;
}
.about-card:last-child { border-right: none; }
.sticky-note::before { display: none; }
.sticky-note:hover, .about-card:hover { transform: none !important; }
.sticky-note h3,
.about-card h3 {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-4);
  margin-bottom: 24px;
}
.sticky-note p,
.about-card p {
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 400;
  letter-spacing: -0.01em;
}

/* ---------- Skills ---------- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.skill-card {
  background: transparent;
  border: none;
  border-right: 1px solid var(--line);
  border-radius: 0;
  padding: 56px 36px;
  box-shadow: none;
  transition: background 0.3s var(--ease);
}
.skill-card:last-child { border-right: none; }
.skill-card:hover {
  transform: none;
  box-shadow: none;
  background: var(--bg-section);
}
.skill-icon {
  font-size: 22px;
  margin-bottom: 28px;
  padding: 0;
  background: transparent !important;
  border: none;
  border-radius: 0;
  width: 40px; height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: grayscale(1);
  opacity: 0.7;
}
.skill-card h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 14px;
}
.skill-card p {
  margin-top: 0;
  margin-bottom: 24px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-3);
  font-family: var(--font-sans);
  font-weight: 400;
}
.skill-tags { display: flex; flex-wrap: wrap; gap: 6px 10px; }
.tag {
  display: inline-block;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 400;
  color: var(--ink-3);
  letter-spacing: 0;
  position: relative;
}
.tag:not(:last-child)::after {
  content: '·';
  margin-left: 10px;
  color: var(--ink-4);
  opacity: 0.5;
}
.skill-card:nth-child(1) .skill-icon,
.skill-card:nth-child(2) .skill-icon,
.skill-card:nth-child(3) .skill-icon { background: transparent; }

/* ---------- Timeline ---------- */
.timeline {
  position: relative;
  max-width: 100%;
  margin: 0;
  padding-left: 0;
}
.timeline::before { display: none; }

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 48px;
  padding: 36px 0;
  margin: 0;
  border-top: 1px solid var(--line);
  align-items: baseline;
  transition: padding 0.3s var(--ease);
}
.timeline-item:last-child { border-bottom: 1px solid var(--line); }

.timeline-dot { display: none; }

.timeline-date {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--ink-4);
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  padding-top: 3px;
}
.timeline-date span[data-i18n] {
  font-size: 15px;
  font-weight: 400;
  color: var(--ink-4);
}
.timeline-card {
  background: transparent;
  padding: 0;
  border: none;
  border-radius: 0;
  box-shadow: none;
}
.timeline-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 8px;
  line-height: 1.3;
}
.timeline-card p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-3);
  font-family: var(--font-sans);
  font-weight: 400;
  max-width: 560px;
}

/* ---------- Projects ---------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.project-card {
  background: #FFFCF7;
  border: none;
  border-radius: 0;
  box-shadow: none;
  transition: background 0.3s var(--ease);
  display: flex;
  flex-direction: column;
}
.project-card:hover {
  transform: none;
  box-shadow: none;
  background: var(--bg-section);
}
.project-cover {
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  border: none;
  border-bottom: 1px solid var(--line);
  position: relative;
  background: var(--bg-section);
}
.project-cover::after { display: none; }
.cover-1,
.cover-2,
.cover-3 {
  background: linear-gradient(135deg, #F5F0E8, #E6DDD1);
}
.project-emoji {
  position: relative;
  z-index: 1;
  filter: grayscale(1);
  opacity: 0.55;
  font-size: 40px;
}
.cover-icon {
  width: 80px;
  height: 80px;
  position: relative;
  z-index: 1;
}

.project-body {
  padding: 32px 28px 36px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.project-body h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 10px;
}
.project-body p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-3);
  font-family: var(--font-sans);
  font-weight: 400;
  margin-bottom: 20px;
  flex: 1;
}
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin-bottom: 20px;
}
.project-link {
  display: inline-block;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 14px;
  color: var(--ink);
  align-self: flex-start;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  transition: opacity 0.2s var(--ease);
}
.project-link:hover { transform: none; opacity: 0.55; }

/* ---------- Education ---------- */
.edu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  max-width: 100%;
  margin: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.edu-card {
  background: transparent;
  padding: 48px 36px;
  border: none;
  border-right: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
  position: relative;
  transition: background 0.3s var(--ease);
}
.edu-card:last-child { border-right: none; }
.edu-card:hover {
  transform: none;
  background: var(--bg-section);
}
.edu-badge {
  position: static;
  width: auto; height: auto;
  background: transparent;
  border: none;
  border-radius: 0;
  display: block;
  font-size: 11px;
  box-shadow: none;
  font-family: var(--font-sans);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--ink-4);
  margin-bottom: 20px;
}
.edu-badge::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 1px;
  background: var(--ink-4);
  vertical-align: middle;
  margin-right: 10px;
  transform: translateY(-2px);
}
.edu-card h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-top: 0;
  margin-bottom: 6px;
}
.edu-major {
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--ink-3);
  font-weight: 400;
  margin-bottom: 16px;
}
.edu-date {
  display: inline-block;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-4);
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}
.edu-desc {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-3);
  font-weight: 400;
}

/* ---------- Contact ---------- */
.contact-card {
  max-width: 100%;
  margin: 0;
  background: transparent;
  border: none;
  border-top: 1px solid var(--line);
  border-radius: 0;
  padding: 60px 0;
  box-shadow: none;
  text-align: left;
  position: relative;
}
.contact-card::before { display: none; }
.contact-intro {
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1.35;
  color: var(--ink);
  margin-bottom: 48px;
  margin-top: 0;
  font-weight: 400;
  letter-spacing: -0.015em;
  max-width: 640px;
}
.contact-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  transition: opacity 0.2s var(--ease);
  text-align: left;
  flex-wrap: nowrap;
}
.contact-item:nth-child(odd) { padding-right: 24px; }
.contact-item:nth-child(even) {
  padding-left: 24px;
  border-left: 1px solid var(--line);
}
.contact-item:hover {
  transform: none;
  box-shadow: none;
  opacity: 0.55;
}
.contact-icon {
  font-size: 16px;
  flex-shrink: 0;
  filter: grayscale(1);
  opacity: 0.55;
  width: 20px;
  text-align: center;
}
.contact-label {
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--ink-4);
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  flex: none !important;
  width: 70px;
}
.contact-value {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  color: var(--ink);
  display: block;
  letter-spacing: -0.005em;
  flex: 1 !important;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------- Footer ---------- */
.footer {
  margin-top: 0;
  padding: 40px 44px 24px;
  text-align: center;
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--ink-4);
  border-top: 1px solid var(--line);
  letter-spacing: 0.02em;
}
.icp {
  margin-top: 12px;
  font-size: 12px;
  color: var(--ink-4);
  letter-spacing: 0.01em;
  padding-bottom: 24px;
}
.icp a {
  color: var(--ink-4);
  transition: color 0.2s;
}
.icp a:hover {
  color: var(--ink-3);
  opacity: 1;
}

/* ---------- 入场过渡 ---------- */
.section,
.hero-content,
.hero-avatar {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.section.in-view,
.hero-content.in-view,
.hero-avatar.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after { animation: none !important; transition: none !important; }
  .section, .hero-content, .hero-avatar { opacity: 1; transform: none; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .nav { padding: 14px 24px; }
  .nav-links { display: none; }
  main { padding: 0 24px; }

  .hero {
    grid-template-columns: 1fr;
    text-align: left;
    gap: 48px;
    padding: 80px 24px 60px;
  }
  .hero-title, .hero-hi { font-size: 56px; }
  .hero-desc { font-size: 18px; }
  .hero-actions { justify-content: flex-start; }
  .avatar-wrap { width: 220px; height: 220px; margin: 0; }

  .section { padding: 100px 0 60px; }
  .section-title { margin-bottom: 48px; }
  .section-title h2 { font-size: 34px; }

  .about-grid,
  .skills-grid,
  .edu-grid,
  .projects-grid {
    grid-template-columns: 1fr;
  }
  .about-card,
  .skill-card,
  .edu-card {
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding: 36px 0;
  }
  .skill-card { padding: 36px 0; }
  .about-card:last-child,
  .skill-card:last-child,
  .edu-card:last-child { border-bottom: none; }

  .projects-grid { border: none; gap: 0; background: transparent; }
  .project-card { border-bottom: 1px solid var(--line); }
  .project-card:last-child { border-bottom: none; }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 32px 0;
  }
  .timeline-item {
    grid-template-columns: 120px 1fr;
    gap: 24px;
  }
  .timeline-date,
  .timeline-date span[data-i18n] { font-size: 14px; }

  .contact-list {
    grid-template-columns: 1fr;
  }
  .contact-item {
    padding: 22px 0 !important;
    border-left: none !important;
  }
  .contact-intro { font-size: 22px; }
}

@media (max-width: 520px) {
  .hero-title, .hero-hi { font-size: 44px; }
  .hero-desc { font-size: 17px; }
  .section-title h2 { font-size: 28px; }
  .btn { font-size: 13px; padding: 11px 22px; }
  .timeline-item {
    grid-template-columns: 100px 1fr;
    gap: 16px;
  }
  .timeline-date,
  .timeline-date span[data-i18n] { font-size: 13px; }
  .timeline-card h3 { font-size: 18px; }
  .wave { font-size: 48px; }
  .contact-intro { font-size: 19px; }
}
