/* ============================================================
   张睿 · AI 产品作品集
   设计语言：暖白底 + 墨色文字 + 靛蓝点缀，极简专业风
   ============================================================ */

:root {
  --bg: #FAFAF7;
  --surface: #FFFFFF;
  --ink: #17181C;
  --ink-soft: #3D4048;
  --muted: #71757E;
  --line: #E9E9E2;
  --accent: #4F46E5;
  --accent-deep: #3B3AC6;
  --accent-soft: #EEF0FE;
  --dark-bg: #14151A;
  --dark-card: #1D1F27;
  --dark-line: #2C2F3A;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(23, 24, 28, .04), 0 8px 24px rgba(23, 24, 28, .06);
  --shadow-lift: 0 2px 4px rgba(23, 24, 28, .05), 0 16px 40px rgba(23, 24, 28, .10);
  --font: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", "Segoe UI", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

.container { width: min(1120px, 92%); margin: 0 auto; }

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
strong { font-weight: 650; color: var(--ink); }

::selection { background: var(--accent); color: #fff; }

/* ---------- 导航 ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(250, 250, 247, .82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.nav.scrolled { border-bottom-color: var(--line); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: .02em;
}
.nav-logo-dot { color: var(--accent); }

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a:not(.nav-cta) {
  font-size: 14.5px;
  color: var(--ink-soft);
  transition: color .2s;
}
.nav-links a:not(.nav-cta):hover { color: var(--accent); }
.nav-links a.active { color: var(--accent); font-weight: 600; }

.nav-cta {
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff !important;
  font-size: 14px;
  font-weight: 600;
  transition: background .2s, transform .2s;
}
.nav-cta:hover { background: var(--accent); transform: translateY(-1px); }

.nav-progress {
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--accent), #8B85F1);
  transition: width .1s linear;
}

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-burger span {
  width: 22px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  padding: 176px 0 96px;
  overflow: hidden;
}

.hero-kicker {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .28em;
  color: var(--accent);
  margin-bottom: 18px;
}

.hero-title {
  font-size: clamp(52px, 8vw, 88px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: .01em;
}

.hero-sub {
  margin-top: 14px;
  font-size: clamp(18px, 2.4vw, 24px);
  font-weight: 600;
  color: var(--ink-soft);
}
.hero-sep { color: var(--line); margin: 0 6px; font-weight: 400; }

.hero-desc {
  margin-top: 26px;
  max-width: 640px;
  font-size: 17px;
  color: var(--muted);
}
.hero-desc strong { color: var(--ink); }

.hero-actions { display: flex; gap: 14px; margin-top: 36px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 28px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  transition: transform .2s, box-shadow .2s, background .2s, color .2s;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 20px rgba(79, 70, 229, .28);
}
.btn-primary:hover {
  background: var(--accent-deep);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(79, 70, 229, .34);
}
.btn-ghost {
  border: 1.5px solid var(--line);
  color: var(--ink);
  background: var(--surface);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 72px;
}
.stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px 18px;
  transition: transform .25s, box-shadow .25s;
}
.stat:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.stat-num {
  display: block;
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -.01em;
  white-space: nowrap;
}
.stat-unit { font-size: .55em; font-weight: 600; margin-left: 2px; }
.stat-label {
  display: block;
  margin-top: 8px;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--muted);
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: -1;
}
.hero-glow-a {
  width: 480px; height: 480px;
  right: -140px; top: -80px;
  background: rgba(79, 70, 229, .10);
}
.hero-glow-b {
  width: 380px; height: 380px;
  left: -160px; bottom: -60px;
  background: rgba(139, 133, 241, .08);
}

/* ---------- 区块通用 ---------- */
.section { padding: 96px 0; }
.section-alt { background: #F3F3EE; }
.section-dark { background: var(--dark-bg); color: #E8E9ED; }

.section-head { margin-bottom: 48px; }
.section-tag {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .26em;
  color: var(--accent);
}
.section-dark .section-tag { color: #8B85F1; }
.section-title {
  margin-top: 10px;
  font-size: clamp(30px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: .01em;
}
.section-note {
  margin-top: 10px;
  color: var(--muted);
  font-size: 15px;
}
.section-dark .section-note { color: #9A9DA8; }

/* ---------- 简介 ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.65fr 1fr;
  gap: 40px;
  align-items: start;
}
.about-lede {
  font-size: 19px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.85;
}
.about-text {
  margin-top: 18px;
  color: var(--muted);
  font-size: 15.5px;
}
.about-points {
  margin-top: 24px;
  display: grid;
  gap: 12px;
}
.about-points li {
  position: relative;
  padding-left: 26px;
  font-size: 15px;
  color: var(--ink-soft);
}
.about-points li::before {
  content: "";
  position: absolute;
  left: 2px; top: 9px;
  width: 8px; height: 8px;
  border-radius: 3px;
  background: var(--accent);
  opacity: .85;
}

.about-side { display: grid; gap: 20px; }
.side-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.side-card-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--muted);
  margin-bottom: 16px;
}
.edu-item { display: grid; gap: 3px; }
.edu-item strong { font-size: 16.5px; }
.edu-item span { color: var(--ink-soft); font-size: 14px; }
.edu-item em { font-style: normal; color: var(--muted); font-size: 13px; margin-top: 2px; }
.side-list { display: grid; gap: 10px; }
.side-list li {
  position: relative;
  padding-left: 22px;
  font-size: 14.5px;
  color: var(--ink-soft);
}
.side-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* ---------- 项目 ---------- */
.project-feature {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 40px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  padding: 36px;
  box-shadow: var(--shadow);
  margin-bottom: 28px;
  align-items: center;
}

.project-feature-media {
  min-height: 380px;
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* 占位视觉：按项目类型区分的渐变面板，替换真实截图时删除 data-placeholder 样式即可 */
.project-feature-media[data-placeholder="agent"],
.project-card-media[data-placeholder="agent"] {
  background: linear-gradient(135deg, #EEF0FE 0%, #DDE1FC 55%, #C7CDFB 100%);
}
.project-feature-media[data-placeholder="extension"],
.project-card-media[data-placeholder="extension"] {
  background: linear-gradient(135deg, #FEF3EE 0%, #F9E3D7 55%, #F2CFBE 100%);
}
.project-feature-media[data-placeholder="game"],
.project-card-media[data-placeholder="game"] {
  background: linear-gradient(135deg, #EDF7EF 0%, #D9EEDD 55%, #BFE3C6 100%);
}
.project-feature-media[data-placeholder="audio"],
.project-card-media[data-placeholder="audio"] {
  background: linear-gradient(135deg, #EDF3FB 0%, #D9E6F6 55%, #C2D8EF 100%);
}
.project-feature-media[data-placeholder="papercut"],
.project-card-media[data-placeholder="papercut"] {
  background: linear-gradient(135deg, #FBEEEE 0%, #F5D9D9 55%, #EBBBBB 100%);
}

.ph-icon { font-size: 64px; line-height: 1; filter: drop-shadow(0 6px 14px rgba(23,24,28,.12)); }
.ph-text {
  margin-top: 18px;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.7;
}
.ph-text span { font-size: 12px; color: var(--muted); }

.project-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.badge {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  border: 1px solid #DDE0FB;
}
.badge-accent { background: var(--accent); color: #fff; border-color: var(--accent); }
.badge-award { background: #FFF7E8; color: #A16207; border-color: #F3E3BC; }
.badge-demo { background: #E9F9F0; color: #16794C; border-color: #C6EDD8; }

.project-title {
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 750;
  letter-spacing: .01em;
  margin-bottom: 12px;
}
.project-desc { color: var(--muted); font-size: 15px; }
.project-desc strong { color: var(--ink); }

.project-points { margin-top: 16px; display: grid; gap: 10px; }
.project-points li {
  position: relative;
  padding-left: 20px;
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.65;
}
.project-points li::before {
  content: "";
  position: absolute;
  left: 2px; top: 10px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  opacity: .7;
}
.project-points strong { color: var(--accent-deep); }
.section-dark .project-points strong { color: #A5A0F5; }

.project-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.project-tags span {
  font-size: 12.5px;
  padding: 5px 13px;
  border-radius: 8px;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--muted);
  transition: color .2s, border-color .2s;
}
.project-tags span:hover { color: var(--accent); border-color: var(--accent); }

.project-link {
  display: inline-block;
  margin-top: 18px;
  font-size: 14px;
  font-weight: 650;
  color: var(--accent);
  transition: transform .2s;
}
.project-link:hover { transform: translateX(3px); }

.project-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 2px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .25s, box-shadow .25s;
}
.project-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); }

.project-card-media {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.project-card-media .ph-icon { font-size: 52px; }
.project-card-body { padding: 26px 28px 28px; display: flex; flex-direction: column; flex: 1; }
.project-card .project-title { font-size: 21px; margin-bottom: 10px; }
.project-card .project-points { margin-top: 14px; }
.project-card .project-link { margin-top: auto; padding-top: 18px; }

/* ---------- 项目截图展示 ---------- */
/* 横版截图 2×2 网格（育儿专家智能体） */
.project-feature-media.shot-grid { min-height: 0; }
.shot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 10px;
}
.shot-grid .shot { aspect-ratio: 16 / 10; }

/* 竖屏截图并排（扩展 / 游戏） */
.project-card-media.shot-pair {
  height: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 12px;
}
.shot-pair .shot { height: 300px; }

.shot {
  position: relative;
  margin: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid rgba(23, 24, 28, .08);
  box-shadow: 0 2px 10px rgba(23, 24, 28, .10);
  background: #fff;
  cursor: zoom-in;
}
.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 25%;
  display: block;
  transition: transform .35s ease;
}
.shot:hover img { transform: scale(1.045); }
.shot figcaption {
  position: absolute;
  left: 8px;
  bottom: 8px;
  max-width: calc(100% - 16px);
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(23, 24, 28, .72);
  color: #fff;
  font-size: 11.5px;
  line-height: 1.6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  pointer-events: none;
}

/* ---------- 灯箱 ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4vmin;
  background: rgba(15, 16, 20, .84);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox figure {
  margin: 0;
  max-width: min(1100px, 94vw);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transform: scale(.96);
  transition: transform .25s ease;
}
.lightbox.open figure { transform: scale(1); }
.lightbox img {
  max-width: 100%;
  max-height: 82vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  background: #fff;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .5);
}
.lightbox figcaption {
  color: #D8D9DE;
  font-size: 13.5px;
  text-align: center;
}
.lightbox-close {
  position: absolute;
  top: 18px;
  right: 22px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  transition: background .2s;
}
.lightbox-close:hover { background: rgba(255, 255, 255, .26); }
body.lightbox-open { overflow: hidden; }

/* ---------- 经历（深色时间线） ---------- */
.timeline { position: relative; display: grid; gap: 44px; padding-left: 28px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 5px; top: 8px; bottom: 8px;
  width: 2px;
  background: var(--dark-line);
}
.timeline-item { position: relative; }
.timeline-dot {
  position: absolute;
  left: -28px; top: 8px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(79, 70, 229, .22);
}
.timeline-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}
.timeline-head h3 { font-size: 19px; font-weight: 700; color: #F0F1F4; }
.timeline-time {
  font-size: 13px;
  font-weight: 600;
  color: #8B85F1;
  letter-spacing: .04em;
  white-space: nowrap;
}
.timeline-role { margin-top: 8px; color: #9A9DA8; font-size: 14.5px; }
.timeline-body .project-points { margin-top: 16px; }
.timeline-body .project-points li { color: #C6C8D0; }
.timeline-body .project-points li::before { background: #8B85F1; }

/* ---------- 技能 ---------- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.skill-group {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform .25s, box-shadow .25s;
}
.skill-group:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.skill-group-title {
  font-size: 15px;
  font-weight: 750;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.skill-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.skill-chips span {
  font-size: 13.5px;
  padding: 7px 15px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  border: 1px solid #DDE0FB;
  transition: background .2s;
}
.skill-chips span:hover { background: #E2E5FC; }

/* ---------- 联系 ---------- */
.section-contact { padding: 120px 0; }
.contact-inner { text-align: center; }
.contact-title {
  margin-top: 14px;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: .01em;
}
.contact-desc { margin-top: 14px; color: var(--muted); }
.contact-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 34px;
  flex-wrap: wrap;
}

/* ---------- 页脚 ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 30px 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13.5px;
  color: var(--muted);
  flex-wrap: wrap;
  gap: 8px;
}
.footer-note { font-style: italic; }

/* ---------- 入场动画 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .project-feature { grid-template-columns: 1fr; padding: 26px; }
  .project-feature-media { min-height: 260px; }
  .project-feature-media.shot-grid { min-height: 0; }
  .project-duo { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr; }
  .shot-pair .shot { height: 320px; }
}

@media (max-width: 720px) {
  .section { padding: 72px 0; }
  .hero { padding: 140px 0 72px; }
  .nav-links {
    position: fixed;
    top: 64px; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 0 0 0 var(--radius-sm);
    padding: 16px 22px;
    margin-right: 4%;
    box-shadow: var(--shadow-lift);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a:not(.nav-cta) { padding: 8px 0; font-size: 15px; width: 100%; }
  .nav-burger { display: flex; }
  .hero-actions .btn { flex: 1; }
}
