:root {
  --blue: #1467ff;
  --blue-dark: #0b1f5f;
  --yellow: #ffd426;
  --ink: #101522;
  --muted: #5c657a;
  --line: #dce4f2;
  --surface: #ffffff;
  --surface-soft: #f6f8fc;
  --green: #16a079;
  --shadow: 0 20px 60px rgba(16, 21, 34, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-synthesis-weight: none;
}

body {
  margin: 0;
  color: var(--ink);
  font-family:
    "Microsoft YaHei UI", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
  background:
    linear-gradient(rgba(220, 228, 242, 0.72) 1px, transparent 1px),
    linear-gradient(90deg, rgba(220, 228, 242, 0.72) 1px, transparent 1px),
    var(--surface);
  background-size: 56px 56px;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(110deg, rgba(20, 92, 255, 0.08) 0 18%, transparent 18% 100%),
    linear-gradient(250deg, transparent 0 78%, rgba(255, 212, 38, 0.18) 78% 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

img,
video {
  display: block;
  max-width: 100%;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 5vw;
  border-bottom: 1px solid rgba(220, 228, 242, 0.9);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
}

.brand,
.site-nav,
.hero-actions,
.site-footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  padding: 0;
  color: inherit;
  border: 0;
  background: transparent;
  font-weight: 700;
  cursor: pointer;
}

.brand-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.site-nav {
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.site-nav button,
.header-link {
  min-height: 38px;
  padding: 8px 14px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 650;
  cursor: pointer;
}

.site-nav button {
  border: 1px solid transparent;
  background: transparent;
}

.site-nav button:hover,
.site-nav button.is-active {
  color: var(--ink);
  border-color: var(--ink);
  background: var(--yellow);
}

.header-link {
  color: var(--surface);
  border: 1px solid var(--blue-dark);
  background: var(--blue-dark);
}

.hero-section {
  max-width: 1220px;
  min-height: calc(100svh - 72px);
  margin: 0 auto;
  padding: 46px 24px 56px;
  display: grid;
  align-items: center;
}

.hero-grid {
  display: grid;
  width: 100%;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 58px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 860px;
  margin-bottom: 60px;
  font-size: 4.2rem;
  line-height: 1.05;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: 2.4rem;
  line-height: 1.18;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.34rem;
  line-height: 1.28;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 620px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1rem;
}

.hero-lead span {
  display: block;
}

.hero-lead span + span {
  margin-top: 8px;
}

.hero-divider {
  width: 54px;
  height: 4px;
  margin-bottom: 34px;
  background: var(--yellow);
}

.education-list {
  display: grid;
  gap: 10px;
  margin-bottom: 58px;
}

.education-divider {
  width: 54px;
  height: 4px;
  margin-top: 45px;
  margin-bottom: 24px;
  background: var(--yellow);
}

.education-item {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 700;
}

.education-item span {
  width: 8px;
  height: 8px;
  background: var(--yellow);
}

.education-item p {
  min-width: 0;
  margin-bottom: 0;
  overflow-wrap: anywhere;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border: 2px solid var(--ink);
  font-weight: 800;
  box-shadow: 5px 5px 0 var(--ink);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background-color 160ms ease;
}

.button:hover {
  transform: translate(2px, 2px);
  box-shadow: 3px 3px 0 var(--ink);
}

.button.primary {
  color: var(--ink);
  background: var(--yellow);
}

.button.secondary {
  color: var(--surface);
  background: var(--blue);
}

.portrait-block {
  position: relative;
}

.portrait-media {
  display: block;
  overflow: hidden;
  width: min(100%, 470px);
  max-height: calc(100svh - 190px);
  aspect-ratio: 4 / 5;
  border: 2px solid var(--ink);
  box-shadow: 14px 14px 0 var(--blue);
  justify-self: end;
}

.portrait-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.section {
  max-width: 1220px;
  margin: 0 auto;
  padding: 74px 24px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-heading p:last-child {
  color: var(--muted);
}

.skill-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 2px solid var(--ink);
  border-left: 2px solid var(--ink);
  background: var(--surface);
}

.skill-card {
  min-height: 210px;
  padding: 22px;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  background: var(--surface);
  transition:
    transform 160ms ease,
    background-color 160ms ease;
}

.skill-card.is-tinted {
  background: #fffaf0;
}

.skill-card:hover {
  transform: translateY(-4px);
  background: var(--yellow);
}

.skill-card svg {
  width: 40px;
  height: 40px;
  margin-bottom: 28px;
  color: var(--blue);
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.skill-card h3 {
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.skill-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1rem;
}

.skill-card:hover p,
.skill-card:hover svg {
  color: var(--ink);
}

.projects-section {
  max-width: 1220px;
  padding-right: 24px;
  padding-left: 24px;
}

.project-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(520px, 2fr);
  gap: 34px;
  align-items: stretch;
  margin-top: 28px;
  padding: 34px;
  border: 2px solid var(--ink);
  background: var(--surface);
  box-shadow: 12px 12px 0 var(--yellow);
}

.project-row.alternate {
  margin-top: 56px;
  box-shadow: 12px 12px 0 var(--blue);
}

.project-copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  min-width: 0;
}

.project-heading {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin-bottom: 0;
}

.project-number {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: var(--surface);
  background: var(--blue-dark);
  font-weight: 900;
}

.project-heading h3 {
  margin: 0;
}

.project-copy > p {
  position: relative;
  margin-bottom: 0;
  padding-left: 27px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.72;
}

.project-copy > p::before {
  position: absolute;
  top: 10px;
  left: 0;
  width: 9px;
  height: 9px;
  content: "";
  background: var(--yellow);
}

.project-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 5px 0 8px;
}

.project-metrics div {
  min-width: 0;
}

.project-metrics strong {
  display: block;
  color: var(--blue);
  font-size: 1.5rem;
  line-height: 1;
}

.project-metrics span {
  display: block;
  margin-top: 10px;
  color: #929aaa;
  font-size: 0.94rem;
  font-weight: 600;
}

.project-points {
  display: grid;
  gap: 18px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.project-points li {
  position: relative;
  padding-left: 22px;
  color: #2d3445;
}

.project-points li::before {
  position: absolute;
  top: 10px;
  left: 0;
  width: 9px;
  height: 9px;
  content: "";
  background: var(--yellow);
}

.project-points li.project-demo {
  display: grid;
  gap: 6px;
  padding: 26px 0;
  font-size: 0.96rem;
  line-height: 1.55;
}

.project-points li.project-demo::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 116px;
  height: 0;
  border-top: 3px solid var(--yellow);
  content: "";
  background: none;
}

.project-points li.project-demo::after {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 116px;
  height: 0;
  border-top: 3px solid var(--yellow);
  content: "";
  background: none;
}

.project-demo span {
  color: #6b7280;
  font-weight: 600;
}

.project-demo a,
.project-demo strong {
  color: var(--blue);
  font-weight: 700;
}

.project-demo a {
  text-decoration: none;
}

.project-demo a:hover {
  text-decoration: underline;
}

.project-demo-code {
  display: flex;
  align-items: center;
  gap: 4px;
}

.copy-code-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-left: 4px;
  padding: 0;
  color: #929aaa;
  cursor: pointer;
  background: transparent;
  border: 0;
  border-radius: 6px;
}

.copy-code-button svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.copy-code-button:hover,
.copy-code-button:focus-visible {
  color: var(--blue);
  background: rgba(37, 99, 235, 0.08);
}

.copy-code-button.is-copied,
.copy-code-button.is-copied:hover,
.copy-code-button.is-copied:focus-visible {
  color: #929aaa;
  background: transparent;
}

.copy-code-button::after {
  position: absolute;
  left: calc(100% + 6px);
  top: 50%;
  color: #929aaa;
  content: "已复制";
  font-size: 0.82rem;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  transform: translateY(-50%);
  transition: opacity 0.18s ease;
}

.copy-code-button.is-copied::after {
  opacity: 1;
}

.project-demo p {
  margin: 2px 0 0;
  color: #6b7280;
  font-size: 0.88rem;
}

.project-media {
  min-width: 0;
}

.video-media {
  position: relative;
  aspect-ratio: var(--video-ratio, 16 / 9);
  border: 2px solid var(--ink);
  background: var(--surface);
  overflow: hidden;
}

.video-media-planpal {
  --video-ratio: 1830 / 1080;
}

.video-media-biweek {
  --video-ratio: 1920 / 1140;
}

.video-media video {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  background: #000;
  object-fit: cover;
  transform: scale(1.004);
  transform-origin: center;
}

.video-media.is-loading::after {
  position: absolute;
  top: calc(50% + 48px);
  left: 50%;
  z-index: 2;
  content: "正在缓冲...";
  pointer-events: none;
  color: #ffffff;
  font-size: 0.9rem;
  line-height: 1;
  text-shadow: 0 0px 3px rgba(0, 0, 0, 0.6);
  white-space: nowrap;
  transform: translateX(-50%);
  animation: video-loading-breathe 1.25s ease-in-out infinite;
}

@keyframes video-loading-breathe {
  0%,
  100% {
    opacity: 0.42;
  }

  50% {
    opacity: 1;
  }
}

@media (max-width: 640px) {
  .video-media.is-loading::after {
    top: calc(50% + 36px);
    font-size: 0.84rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .video-media.is-loading::after {
    animation: none;
  }
}

.video-media video:fullscreen,
.video-media:fullscreen video {
  width: 100vw;
  height: 100vh;
  object-fit: contain;
  transform: none;
}

.video-media video:-webkit-full-screen,
.video-media:-webkit-full-screen video {
  width: 100vw;
  height: 100vh;
  object-fit: contain;
  transform: none;
}

.video-chapters {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  padding: 0;
  margin: 10px 0 0;
  list-style: none;
}

.video-chapters li {
  min-width: 0;
}

.video-chapters button {
  display: grid;
  width: 100%;
  min-height: 44px;
  gap: 2px;
  padding: 7px 8px;
  place-items: center;
  align-content: center;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  color: inherit;
  font: inherit;
  text-align: center;
  cursor: pointer;
}

.video-chapters button:hover,
.video-chapters button:focus-visible {
  border-color: var(--ink);
  background: var(--yellow);
  outline: none;
}

.video-chapters time {
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 700;
}

.video-chapters span {
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 750;
  line-height: 1.25;
}

.highlights-section {
  padding-bottom: 96px;
}

.achievement-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.34fr) minmax(0, 1fr);
  gap: 34px;
  align-items: stretch;
}

.achievement-copy {
  align-self: stretch;
  width: calc(100% + 10px);
  padding: 34px;
  color: var(--surface);
  border: 2px solid var(--ink);
  background: var(--blue-dark);
  box-shadow: 12px 12px 0 var(--yellow);
}

.achievement-list {
  display: grid;
  gap: 21px;
  padding: 0;
  margin: 0;
  font-size: 0.99rem;
  list-style: none;
}

.achievement-list li {
  position: relative;
  padding-left: 20px;
  color: #d8e3ff;
  font-weight: 700;
  line-height: 1.7;
}

.achievement-list li::before {
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 8px;
  height: 8px;
  content: "";
  background: var(--yellow);
}

.achievement-number {
  color: var(--yellow);
  font-size: 1.22em;
  font-weight: 900;
  line-height: 1;
}

.achievement-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.achievement-column {
  display: grid;
  gap: 18px;
}

.achievement-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.achievement-shot {
  margin: 0;
  overflow: hidden;
  border: 2px solid var(--ink);
  background: var(--surface);
  box-shadow: 8px 8px 0 var(--blue);
}

.achievement-shot img {
  width: 100%;
  height: auto;
  display: block;
}

.achievement-shot-mspa {
  width: 100%;
}

.site-footer {
  justify-content: space-between;
  gap: 18px;
  padding: 28px 5vw;
  color: var(--surface);
  background: var(--ink);
}

.site-footer p {
  margin-bottom: 0;
  font-weight: 800;
}

.footer-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 40px;
}

.contact-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--yellow);
  font-weight: 800;
}

.contact-item svg {
  width: 20px;
  height: 20px;
  color: currentColor;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

@media (max-width: 1080px) {
  .skill-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .project-row,
  .achievement-layout {
    grid-template-columns: 1fr;
  }

  .video-chapters {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .site-header {
    position: static;
    flex-wrap: wrap;
    gap: 14px;
    padding: 18px 20px;
  }

  .site-nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
  }

  .site-nav button {
    flex: 1;
    text-align: center;
  }

  .header-link {
    display: none;
  }

  .hero-section {
    min-height: auto;
    padding: 58px 20px 40px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 2.7rem;
  }

  h2 {
    font-size: 2rem;
  }

  .hero-lead {
    font-size: 1rem;
  }

  .button {
    width: 100%;
    min-width: 0;
    padding-right: 12px;
    padding-left: 12px;
    overflow-wrap: anywhere;
  }

  .skill-grid,
  .achievement-gallery {
    grid-template-columns: 1fr;
  }

  .achievement-pair {
    grid-template-columns: 1fr;
  }

  .achievement-copy {
    width: 100%;
  }

  .achievement-shot-mspa {
    width: 100%;
    height: auto;
  }

  .achievement-shot-mspa img {
    height: auto;
    object-fit: initial;
  }

  .section {
    padding: 56px 20px;
  }

  .projects-section {
    padding-right: 20px;
    padding-left: 20px;
  }

  .project-row {
    padding: 24px;
    box-shadow: 8px 8px 0 var(--yellow);
  }

  .project-row.alternate {
    box-shadow: 8px 8px 0 var(--blue);
  }

  .project-heading {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .project-metrics,
  .video-chapters {
    grid-template-columns: 1fr;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-contact {
    align-items: flex-start;
    justify-content: flex-start;
  }
}

@media (max-width: 420px) {
  .brand {
    width: 100%;
  }

  .site-nav {
    gap: 0;
  }

  .site-nav button {
    padding-right: 8px;
    padding-left: 8px;
    font-size: 0.86rem;
  }

  h1 {
    font-size: 2.25rem;
  }

}
