:root {
  --resume-ink: #102027;
  --resume-deep: #073642;
  --resume-teal: #2f929f;
  --resume-mint: #dcebc2;
  --resume-paper: #f7f3ea;
  --resume-cream: #fff4c8;
  --resume-gold: #e3a72f;
  --resume-coral: #df4d3e;
  --resume-blue: #2c73b8;
  --resume-line: rgba(16, 32, 39, 0.14);
  --resume-shadow: 0 18px 45px rgba(16, 32, 39, 0.13);
}

.resume-page {
  --font-primary: "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --radius-md: 8px;
  --radius-lg: 8px;
  --radius-xl: 8px;
  background: var(--resume-paper);
  color: var(--resume-ink);
}

.resume-page .stars-container {
  display: none;
}

.resume-page .main-nav {
  background: rgba(7, 54, 66, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.resume-page .nav-link {
  border-radius: 8px;
}

.resume-main {
  position: relative;
  z-index: 1;
  padding-top: 76px;
  background:
    linear-gradient(90deg, rgba(47, 146, 159, 0.06) 1px, transparent 1px),
    linear-gradient(0deg, rgba(47, 146, 159, 0.05) 1px, transparent 1px),
    var(--resume-paper);
  background-size: 28px 28px;
}

.resume-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.resume-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(7, 54, 66, 0.98), rgba(22, 79, 85, 0.96)),
    var(--resume-deep);
}

.resume-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.55;
  pointer-events: none;
}

.resume-hero-grid,
.resume-stats {
  position: relative;
  z-index: 1;
}

.resume-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  gap: 42px;
  align-items: center;
  padding: 76px 0 38px;
}

.resume-kicker {
  margin: 0 0 12px;
  color: var(--resume-gold);
  font-size: 0.92rem;
  font-weight: 700;
}

.resume-hero h1,
.resume-section h2,
.resume-band h2,
.resume-contact h2 {
  margin: 0;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-weight: 900;
  letter-spacing: 0;
}

.resume-hero h1 {
  max-width: 760px;
  font-size: 3.2rem;
  line-height: 1.12;
}

.resume-lead {
  max-width: 760px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.12rem;
  line-height: 1.95;
}

.resume-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.resume-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  transition: transform 0.24s ease, background 0.24s ease, border-color 0.24s ease;
}

.resume-actions a:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.5);
}

.resume-portrait {
  margin: 0;
  padding: 16px;
  color: var(--resume-ink);
  background: #f7f3ea;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 8px;
  box-shadow: var(--resume-shadow);
}

.resume-portrait img {
  display: block;
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
  aspect-ratio: 262 / 337;
  object-fit: cover;
  border-radius: 8px;
}

.resume-portrait figcaption {
  margin-top: 14px;
  color: #40525a;
  font-size: 0.92rem;
  line-height: 1.7;
}

.resume-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding: 0 0 56px;
}

.resume-stats article {
  min-height: 120px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
}

.resume-stats article:nth-child(2) {
  background: rgba(220, 235, 194, 0.16);
}

.resume-stats article:nth-child(3) {
  background: rgba(255, 244, 200, 0.16);
}

.resume-stats article:nth-child(4) {
  background: rgba(223, 77, 62, 0.13);
}

.resume-stats strong {
  display: block;
  margin-bottom: 8px;
  color: #fff4c8;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 2.2rem;
  line-height: 1.1;
}

.resume-stats span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.95rem;
}

.resume-band {
  background: rgba(255, 255, 255, 0.66);
  border-top: 1px solid var(--resume-line);
  border-bottom: 1px solid var(--resume-line);
}

.resume-section,
.resume-band {
  padding: 74px 0;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.15fr);
  gap: 42px;
  align-items: start;
}

.resume-section h2,
.resume-band h2,
.resume-contact h2 {
  color: var(--resume-deep);
  font-size: 2.1rem;
  line-height: 1.28;
}

.resume-summary p:last-child,
.resume-contact p {
  margin: 0;
  color: #3e4c51;
  font-size: 1.04rem;
  line-height: 1.9;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 30px;
}

.skill-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.skill-grid article,
.timeline-list article,
.project-grid article,
.gallery-grid figure,
.wechat-card {
  opacity: 1;
  transform: translateY(0);
  transition: box-shadow 0.24s ease, border-color 0.24s ease;
}

.skill-grid article {
  min-height: 260px;
  padding: 24px;
  border: 1px solid var(--resume-line);
  border-top: 5px solid var(--accent, var(--resume-teal));
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 10px 26px rgba(16, 32, 39, 0.06);
}

.skill-grid article:nth-child(1) {
  --accent: var(--resume-teal);
}

.skill-grid article:nth-child(2) {
  --accent: var(--resume-blue);
}

.skill-grid article:nth-child(3) {
  --accent: var(--resume-gold);
}

.skill-grid article:nth-child(4) {
  --accent: var(--resume-coral);
}

.skill-grid article:hover,
.project-grid article:hover,
.gallery-grid figure:hover {
  border-color: rgba(47, 146, 159, 0.38);
  box-shadow: var(--resume-shadow);
}

.skill-grid span,
.project-grid span,
.timeline-list span {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--resume-teal);
  font-size: 0.88rem;
  font-weight: 700;
}

.skill-grid h3,
.project-grid h3,
.timeline-list h3 {
  margin: 0 0 12px;
  color: var(--resume-ink);
  font-size: 1.18rem;
  line-height: 1.45;
}

.skill-grid p,
.project-grid p,
.timeline-list p {
  margin: 0;
  color: #4d5b60;
  line-height: 1.82;
}

.timeline-list {
  display: grid;
  gap: 16px;
}

.timeline-list article {
  position: relative;
  padding: 24px 26px 24px 36px;
  border: 1px solid var(--resume-line);
  border-radius: 8px;
  background: rgba(247, 243, 234, 0.82);
}

.timeline-list article::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 29px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--resume-coral);
  box-shadow: 0 0 0 5px rgba(223, 77, 62, 0.12);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.project-grid article {
  overflow: hidden;
  border: 1px solid var(--resume-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(16, 32, 39, 0.06);
}

.project-grid img,
.gallery-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #e8e4d9;
}

.project-grid div {
  padding: 22px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.gallery-grid figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--resume-line);
  border-radius: 8px;
  background: #fff;
}

.gallery-grid figcaption {
  padding: 14px 16px;
  color: #3d4a50;
  font-weight: 600;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 42px;
  align-items: center;
}

.wechat-card {
  margin: 0;
  padding: 18px;
  text-align: center;
  border: 1px solid var(--resume-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(16, 32, 39, 0.06);
}

.wechat-card img {
  display: block;
  width: 100%;
  max-width: 220px;
  margin: 0 auto;
  border-radius: 8px;
}

.wechat-card figcaption {
  margin-top: 12px;
  color: #4d5b60;
  font-weight: 600;
}

.resume-page .main-footer {
  margin-top: 0;
  background: var(--resume-deep);
}

.resume-original-page {
  background: #e9ecef;
}

.resume-original-main {
  min-height: 100vh;
  padding: 92px 20px 56px;
  background:
    radial-gradient(circle at top left, rgba(47, 146, 159, 0.16), transparent 30%),
    #e9ecef;
}

.resume-slide-stack {
  display: grid;
  gap: 28px;
  width: min(1280px, 100%);
  margin: 0 auto;
}

.resume-slide-page {
  scroll-margin-top: 92px;
}

.slide-label {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 7px 12px;
  color: #fff;
  border-radius: 8px;
  background: var(--resume-deep);
  font-size: 0.9rem;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(16, 32, 39, 0.14);
}

.ppt-slide-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  border-radius: 0;
  background: #fff;
  box-shadow: 0 18px 45px rgba(16, 32, 39, 0.18);
}

.resume-ppt-page .section-grid > div:last-child p {
  margin: 0 0 18px;
  color: #3e4c51;
  line-height: 1.9;
}

.ppt-page-nav {
  display: grid;
  grid-template-columns: repeat(13, minmax(0, 1fr));
  gap: 8px;
}

.ppt-page-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  color: var(--resume-deep);
  text-decoration: none;
  border: 1px solid rgba(47, 146, 159, 0.3);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.ppt-page-nav a:hover {
  transform: translateY(-2px);
  background: var(--resume-cream);
  border-color: rgba(227, 167, 47, 0.72);
}

.ppt-page-stack {
  display: grid;
  gap: 18px;
}

.ppt-page-card {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--resume-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 24px rgba(16, 32, 39, 0.06);
  scroll-margin-top: 96px;
}

.ppt-page-meta {
  padding: 22px 20px;
  color: #fff;
  background: linear-gradient(135deg, var(--resume-deep), var(--resume-teal));
}

.ppt-page-meta span {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 6px 10px;
  color: var(--resume-deep);
  border-radius: 8px;
  background: var(--resume-cream);
  font-size: 0.84rem;
  font-weight: 800;
}

.ppt-page-meta strong {
  display: block;
  font-size: 1.08rem;
  line-height: 1.55;
}

.ppt-page-body {
  padding: 24px 28px;
}

.ppt-page-body h3 {
  margin: 0 0 14px;
  color: var(--resume-deep);
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 1.45rem;
  line-height: 1.4;
}

.ppt-page-body ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ppt-page-body li {
  position: relative;
  padding-left: 18px;
  color: #435156;
  line-height: 1.82;
}

.ppt-page-body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.78em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--resume-coral);
}

@media (max-width: 1080px) {
  .skill-grid,
  .project-grid,
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ppt-page-nav {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }

  .resume-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .resume-main {
    padding-top: 64px;
  }

  .resume-hero-grid,
  .section-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .resume-hero-grid {
    gap: 28px;
    padding: 48px 0 32px;
  }

  .resume-hero h1 {
    font-size: 2.4rem;
  }

  .resume-lead {
    font-size: 1rem;
  }

  .resume-stats,
  .skill-grid,
  .project-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .ppt-page-nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .resume-original-main {
    padding: 76px 10px 36px;
  }

  .resume-slide-stack {
    gap: 18px;
  }

  .ppt-page-card {
    grid-template-columns: 1fr;
  }

  .ppt-page-meta,
  .ppt-page-body {
    padding: 18px;
  }

  .resume-section,
  .resume-band {
    padding: 54px 0;
  }

  .resume-section h2,
  .resume-band h2,
  .resume-contact h2 {
    font-size: 1.7rem;
  }
}

@media (max-width: 480px) {
  .resume-shell {
    width: min(100% - 22px, 1180px);
  }

  .resume-actions a {
    width: 100%;
    justify-content: center;
  }

  .resume-stats article,
  .skill-grid article,
  .timeline-list article,
  .project-grid div {
    padding: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .skill-grid article,
  .timeline-list article,
  .project-grid article,
  .gallery-grid figure,
  .wechat-card,
  .resume-actions a {
    transition: none;
  }
}

@media print {
  .resume-page .main-nav,
  .resume-page .mobile-menu-toggle,
  .resume-actions,
  .resume-gallery,
  .wechat-card {
    display: none !important;
  }

  .resume-main {
    padding-top: 0;
    background: #fff;
  }

  .resume-hero,
  .resume-band,
  .resume-section {
    color: #111;
    background: #fff;
  }

  .skill-grid,
  .project-grid,
  .timeline-list,
  .resume-stats {
    display: block;
  }

  .skill-grid article,
  .project-grid article,
  .timeline-list article,
  .resume-stats article {
    break-inside: avoid;
    margin-bottom: 14px;
    box-shadow: none;
  }
}
