:root {
  --bg: #fbfaf7;
  --ink: #050505;
  --muted: #52525b;
  --soft: #f3f1ec;
  --line: #e8e4dc;
  --mint: #bdf4e3;
  --mint-strong: #65c7a6;
  --lavender: #a78bfa;
  --blue: #2563eb;
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.09);
  --max: 1180px;
}

.agent-project-context {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 48px;
  padding: 8px max(24px, calc((100vw - 1180px) / 2 + 28px));
  border-bottom: 1px solid #d9dbe0;
  background: rgba(255, 255, 255, 0.96);
  color: #111;
  font-family: "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
}

.agent-project-context a {
  border-bottom: 1px solid #111;
  font-size: 12px;
  font-weight: 800;
}

.agent-project-context p {
  margin: 0;
  color: #60636b;
  font-size: 12px;
}

@media (max-width: 680px) {
  .agent-project-context {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
    padding: 10px 18px;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 80% 22%, rgba(189, 244, 227, 0.36), transparent 24rem),
    radial-gradient(circle at 18% 72%, rgba(167, 139, 250, 0.12), transparent 24rem),
    var(--bg);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC",
    "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}

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

svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  max-width: calc(var(--max) + 80px);
  margin: 0 auto;
  padding: 24px 40px 10px;
  background: linear-gradient(180deg, rgba(251, 250, 247, 0.92), rgba(251, 250, 247, 0));
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: max-content;
}

.brand-mark {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 999px;
  background: var(--mint);
  color: #2f9a7f;
  font-size: 13px;
  font-weight: 900;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 18px;
  line-height: 1.1;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.nav-links {
  display: inline-flex;
  align-items: center;
  justify-self: center;
  gap: 18px;
  font-size: 15px;
  font-weight: 700;
}

.nav-links a {
  min-width: 86px;
  padding: 14px 22px;
  border-radius: 999px;
  text-align: center;
  transition:
    background 180ms ease,
    transform 180ms ease;
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(189, 244, 227, 0.54);
}

.nav-links a:focus-visible {
  outline: 3px solid rgba(101, 199, 166, 0.34);
  outline-offset: 2px;
}

.hero {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.82fr);
  grid-template-areas:
    "copy visual";
  column-gap: 72px;
  row-gap: 16px;
  max-width: var(--max);
  min-height: calc(100vh - 86px);
  min-height: calc(100svh - 86px);
  margin: 0 auto;
  padding: clamp(12px, 2vh, 24px) 28px 24px;
}

.hero-copy {
  grid-area: copy;
  align-self: center;
  padding-top: clamp(10px, 2.5vh, 28px);
  padding-bottom: 24px;
}

h1 {
  margin: 0;
  max-width: 680px;
  font-size: clamp(48px, 6.1vw, 82px);
  font-weight: 950;
  line-height: 1.05;
  letter-spacing: 0;
}

.role {
  margin: 22px 0 0;
  width: max-content;
  max-width: 100%;
  background: linear-gradient(90deg, var(--lavender), var(--mint-strong));
  background-clip: text;
  color: transparent;
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 900;
  line-height: 1.18;
}

.accent-line {
  width: 46px;
  height: 3px;
  margin: 26px 0 0;
  border-radius: 999px;
  background: var(--mint-strong);
}

.intro {
  max-width: 600px;
  margin: 28px 0 0;
  color: #2f2f34;
  font-size: 18px;
  font-weight: 500;
  line-height: 2;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 42px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 146px;
  height: 58px;
  padding: 0 28px;
  border-radius: 8px;
  font-size: 17px;
  font-weight: 900;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  background: var(--ink);
  color: white;
  box-shadow: 0 16px 34px rgba(5, 5, 5, 0.16);
}

.button.secondary {
  border: 1px solid rgba(101, 199, 166, 0.55);
  background: rgba(255, 255, 255, 0.72);
}

.button.secondary:hover {
  border-color: var(--ink);
  box-shadow: 0 16px 34px rgba(5, 5, 5, 0.08);
}

.hero-visual {
  grid-area: visual;
  align-self: end;
  min-height: 560px;
}

.portrait-frame {
  position: relative;
  height: min(60vw, 630px);
  min-height: 535px;
}

.portrait-frame::before {
  content: "";
  position: absolute;
  right: 34px;
  bottom: 2px;
  width: min(470px, 88%);
  height: 82%;
  border-radius: 44% 46% 18% 18% / 28% 30% 8% 8%;
  background: rgba(189, 244, 227, 0.36);
  filter: blur(18px);
}

.portrait-frame img {
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(500px, 94%);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 26px 44px rgba(5, 5, 5, 0.06));
}

.hand-note {
  position: absolute;
  right: -2px;
  top: 34%;
  z-index: 2;
  margin: 0;
  color: rgba(76, 187, 154, 0.86);
  font-family: "Comic Sans MS", "Bradley Hand", cursive;
  font-size: 25px;
  font-style: italic;
  font-weight: 700;
  line-height: 1.08;
  transform: rotate(-7deg);
  pointer-events: none;
}.section-kicker {
  margin: 0 0 18px;
  color: var(--mint-strong);
  font-size: 15px;
  font-weight: 900;
}

.section-heading h2,
.contact-section h2 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.12;
}

.overview-section,
.internship-section,
.projects-section,
.contact-section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 96px 28px;
  scroll-margin-top: 92px;
}

.split-section {
  min-height: 88vh;
}

.overview-section .section-heading h2 {
  max-width: none;
  font-size: 42px;
  white-space: nowrap;
}

.overview-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.86fr) minmax(0, 1.14fr);
  gap: 28px;
  margin-top: 42px;
}

.education-panel,
.skill-panel article,
.internship-summary,
.internship-points article,
.project-card,
.contact-section {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.06);
}

.education-panel {
  padding: 32px;
}

.panel-label,
.date {
  margin: 0 0 14px;
  color: var(--mint-strong);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.education-panel h3,
.skill-panel h3,
.internship-points h3,
.project-card h3 {
  margin: 0;
  font-size: 21px;
  line-height: 1.25;
}

.muted,
.education-panel li,
.skill-panel p,
.internship-summary p,
.internship-points p,
.project-card span,
.projects-heading p,
.contact-section p {
  color: var(--muted);
  line-height: 1.75;
}

.education-panel ul {
  margin: 24px 0 0;
  padding-left: 18px;
}

.education-panel li + li {
  margin-top: 12px;
}

.skill-panel {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.skill-panel article.wide {
  grid-column: 1 / -1;
}

.skill-panel article.wide {
  grid-column: 1 / -1;
}

.skill-panel article {
  padding: 24px;
}

.skill-panel span {
  display: inline-flex;
  margin-bottom: 20px;
  color: var(--mint-strong);
  font-size: 13px;
  font-weight: 950;
}

.skill-panel p,
.internship-points p,
.project-card span {
  display: block;
  margin: 12px 0 0;
}

.internship-section,
.projects-section {
  min-height: 100vh;
}

.internship-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr);
  gap: 28px;
  margin-top: 44px;
}

.internship-summary {
  padding: 32px;
  align-self: center;
}

.internship-summary p:last-child {
  margin-bottom: 0;
  font-size: 18px;
}

.internship-points {
  display: grid;
  gap: 18px;
}

.internship-points article {
  padding: 28px;
}

.projects-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
}

.projects-heading p {
  max-width: 330px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 44px;
}

.project-card {
  display: grid;
  overflow: hidden;
  min-height: 430px;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.project-card:hover {
  border-color: rgba(101, 199, 166, 0.72);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.1);
  transform: translateY(-4px);
}

.project-card img,
.project-visual {
  width: 100%;
  height: 170px;
  border-bottom: 1px solid var(--line);
}

.project-card img {
  object-fit: cover;
}

.dashboard-preview {
  object-position: center top;
}

.datalink-preview {
  object-position: center;
}

.project-visual {
  position: relative;
  overflow: hidden;
}

.spu-workflow {
  display: grid;
  align-content: center;
  gap: 13px;
  padding: 24px 22px;
  background:
    linear-gradient(135deg, rgba(189, 244, 227, 0.72), rgba(244, 240, 255, 0.88)),
    white;
}

.spu-input,
.spu-stages span,
.spu-workflow strong {
  position: relative;
  z-index: 1;
}

.spu-input {
  color: #247f68;
  font-size: 12px;
  font-weight: 900;
}

.spu-stages {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.spu-flow-line {
  position: absolute;
  top: 86px;
  right: 34px;
  left: 34px;
  height: 1px;
  background: rgba(101, 199, 166, 0.48);
}

.spu-stages span {
  display: grid;
  min-height: 38px;
  padding: 7px 6px;
  place-items: center;
  border: 1px solid rgba(101, 199, 166, 0.42);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.74);
  color: #34343a;
  font-size: 9px;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
}

.spu-workflow strong {
  font-size: 13px;
  line-height: 1.35;
}

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

.project-card p {
  margin: 0 0 14px;
  color: var(--mint-strong);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.5;
}

.project-card h3 {
  min-height: 54px;
}

.contact-section {
  margin-bottom: 90px;
}

.contact-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 32px;
  font-style: normal;
}

.contact-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px;
  width: 100%;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  appearance: none;
  transition:
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.contact-detail:hover,
.contact-detail:focus-visible {
  border-color: rgba(101, 199, 166, 0.72);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
  transform: translateY(-2px);
}

.contact-detail:focus-visible {
  outline: 3px solid rgba(101, 199, 166, 0.24);
  outline-offset: 3px;
}

.contact-detail.is-copied {
  border-color: rgba(101, 199, 166, 0.88);
  background: rgba(189, 244, 227, 0.3);
}

.contact-detail-label {
  grid-column: 1;
  color: var(--mint-strong);
  font-size: 12px;
  font-weight: 900;
}

.contact-detail strong {
  grid-column: 1;
  min-width: 0;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.contact-detail-action {
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.contact-detail.is-copied .contact-detail-action {
  color: #268c70;
}

.copy-toast {
  position: fixed;
  z-index: 50;
  right: 24px;
  bottom: 24px;
  max-width: min(320px, calc(100vw - 40px));
  padding: 11px 15px;
  border: 1px solid rgba(101, 199, 166, 0.55);
  border-radius: 9px;
  background: rgba(20, 30, 27, 0.92);
  color: white;
  font-size: 14px;
  font-weight: 750;
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.18);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.copy-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.detail-page {
  background: var(--bg);
}

.detail-shell {
  max-width: 1080px;
  margin: 0 auto;
  padding: 96px 28px;
}

.detail-hero {
  padding: 72px 0 58px;
  border-bottom: 1px solid var(--line);
}

.detail-hero h1 {
  max-width: 920px;
  margin: 0;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.08;
}

.detail-lead,
.detail-section p,
.detail-section li {
  color: var(--muted);
  line-height: 1.78;
}

.detail-lead {
  max-width: 820px;
  margin: 28px 0 0;
  font-size: 19px;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 30px;
}

.detail-tags span {
  padding: 8px 12px;
  border: 1px solid rgba(101, 199, 166, 0.4);
  border-radius: 999px;
  background: rgba(189, 244, 227, 0.22);
  color: #268c70;
  font-size: 13px;
  font-weight: 850;
}

.detail-actions {
  margin-top: 30px;
}

.demo-link:disabled {
  color: var(--muted);
  cursor: not-allowed;
  opacity: 0.72;
}

.demo-link:disabled:hover {
  border-color: rgba(101, 199, 166, 0.55);
  box-shadow: none;
  transform: none;
}

.detail-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
}

.detail-stat-grid article {
  min-width: 0;
  padding: 34px 24px 38px;
  border-right: 1px solid var(--line);
}

.detail-stat-grid article:first-child {
  padding-left: 0;
}

.detail-stat-grid article:last-child {
  border-right: 0;
}

.detail-stat-grid strong,
.detail-stat-grid span {
  display: block;
}

.detail-stat-grid strong {
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.1;
}

.detail-stat-grid span {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.detail-section {
  padding: 82px 0;
  border-bottom: 1px solid var(--line);
}

.detail-section:last-child {
  border-bottom: 0;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1.25fr);
  gap: 72px;
}

.detail-label {
  margin: 0 0 16px;
  color: var(--mint-strong) !important;
  font-size: 13px;
  font-weight: 900;
}

.detail-section h2 {
  max-width: 760px;
  margin: 0 0 28px;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.16;
}

.detail-grid h2 {
  margin-bottom: 0;
}

.detail-section p {
  margin: 0;
  font-size: 17px;
}

.detail-section p + p {
  margin-top: 18px;
}

.detail-wide-copy {
  max-width: 850px;
}

.detail-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.detail-card-grid article {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
}

.detail-card-grid h3 {
  margin: 0 0 14px;
  font-size: 20px;
}

.detail-card-grid p {
  font-size: 15px;
}

.dashboard-portfolio-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  align-items: end;
  gap: 48px;
}

.dashboard-portfolio-heading h2 {
  margin-bottom: 0;
}

.dashboard-portfolio-heading > p {
  max-width: 460px;
  padding-bottom: 4px;
  font-size: 15px;
}

.dashboard-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.dashboard-shot {
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.06);
}

.dashboard-shot-link {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  padding: 0;
  aspect-ratio: 16 / 10;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: #edf4f5;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.dashboard-shot-link:focus-visible {
  outline: 3px solid rgba(101, 199, 166, 0.44);
  outline-offset: -3px;
}

.dashboard-shot-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 260ms ease;
}

.dashboard-shot-link > span {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  background: rgba(25, 30, 31, 0.8);
  color: white;
  font-size: 12px;
  font-weight: 850;
  backdrop-filter: blur(8px);
}

.dashboard-shot-link:hover img {
  transform: scale(1.018);
}

.dashboard-shot figcaption {
  display: grid;
  gap: 9px;
  padding: 22px 24px 24px;
}

.dashboard-shot figcaption strong {
  font-size: 20px;
  line-height: 1.3;
}

.dashboard-shot figcaption span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.dashboard-privacy-note {
  margin-top: 18px !important;
  font-size: 13px !important;
}

.dashboard-viewer {
  width: min(1180px, calc(100vw - 40px));
  max-width: none;
  height: min(92dvh, 920px);
  max-height: none;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 20px;
  background: transparent;
  box-shadow: 0 28px 90px rgba(18, 32, 29, 0.28);
}

.dashboard-viewer::backdrop {
  background: rgba(20, 31, 29, 0.72);
  backdrop-filter: blur(8px);
}

.dashboard-viewer-shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  height: 100%;
  background: #f7faf8;
}

.dashboard-viewer-header,
.dashboard-viewer-controls {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: rgba(247, 250, 248, 0.96);
  backdrop-filter: blur(12px);
}

.dashboard-viewer-header {
  padding: 18px 20px 16px 24px;
  border-bottom: 1px solid var(--line);
}

.dashboard-viewer-header span {
  display: block;
  margin-bottom: 3px;
  color: var(--mint-deep);
  font-size: 12px;
  font-weight: 850;
}

.dashboard-viewer-header h2 {
  margin: 0;
  font-size: clamp(18px, 2vw, 24px);
}

.dashboard-viewer-close {
  display: grid;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}

.dashboard-viewer-close svg {
  width: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.8;
}

.dashboard-viewer-close:hover,
.dashboard-viewer-close:focus-visible {
  border-color: var(--mint-strong);
  background: var(--mint-soft);
}

.dashboard-viewer-canvas {
  overflow: auto;
  overscroll-behavior: contain;
  padding: 22px;
  background: #e8f0ed;
}

.dashboard-viewer-canvas img {
  display: block;
  width: min(100%, 1060px);
  height: auto;
  margin: 0 auto;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 14px 46px rgba(31, 54, 48, 0.12);
}

.dashboard-viewer-controls {
  padding: 14px 20px;
  border-top: 1px solid var(--line);
}

.dashboard-viewer-controls button {
  min-width: 92px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
}

.dashboard-viewer-controls button:hover,
.dashboard-viewer-controls button:focus-visible {
  border-color: var(--mint-strong);
  background: var(--mint-soft);
}

.dashboard-viewer-controls p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.detail-flow {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  margin: 40px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  list-style: none;
}

.detail-flow.three-step {
  grid-template-columns: repeat(2, 1fr);
}

.detail-flow li {
  min-width: 0;
  padding: 28px 22px;
  border-right: 1px solid var(--line);
}

.detail-flow li:last-child {
  border-right: 0;
}

.detail-flow strong,
.detail-flow span {
  display: block;
}

.detail-flow strong {
  margin-bottom: 12px;
  color: var(--ink);
  font-size: 17px;
}

.detail-flow span {
  font-size: 14px;
}

.detail-callout {
  padding-left: 28px;
  border-left: 3px solid var(--mint-strong);
}

.back-link {
  display: inline-flex;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  font-weight: 850;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr;
    padding: 18px 20px 8px;
  }

  .nav-links {
    justify-self: start;
    width: 100%;
    overflow-x: auto;
    gap: 6px;
    padding-bottom: 4px;
  }

  .nav-links a {
    min-width: auto;
    white-space: nowrap;
    padding: 11px 17px;
  }

  .hero {
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "visual";
    min-height: auto;
    padding: 70px 22px 34px;
  }

  .hero-copy {
    padding-top: 0;
  }

  .hero-visual {
    min-height: 500px;
  }

  .portrait-frame {
    height: 525px;
    min-height: 480px;
    max-width: 520px;
    margin: 0 auto;
  }

    .overview-section .section-heading h2 {
    font-size: 36px;
    white-space: normal;
  }

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

  .detail-stat-grid article:nth-child(2) {
    border-right: 0;
  }

  .detail-stat-grid article:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .detail-stat-grid article:nth-child(3) {
    padding-left: 0;
  }

  .detail-grid {
    gap: 40px;
  }

  .detail-flow {
    grid-template-columns: 1fr;
    border-bottom: 0;
  }

  .detail-flow li {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

@media (min-width: 981px) and (max-width: 1180px) {
  .site-header {
    gap: 16px;
    padding-right: 24px;
    padding-left: 24px;
  }

  .nav-links {
    gap: 8px;
    font-size: 14px;
  }

  .nav-links a {
    min-width: 76px;
    padding: 12px 13px;
  }
}

@media (max-width: 640px) {
  .brand small {
    display: none;
  }

  .site-header {
    gap: 12px;
  }

  .nav-links {
    gap: 4px;
    font-size: 14px;
  }

  .nav-links a {
    padding: 9px 8px;
  }

  .hero {
    padding-top: 44px;
  }

  .intro {
    font-size: 16px;
    line-height: 1.82;
  }

  .hero-actions {
    gap: 12px;
    margin-top: 30px;
  }

  .button {
    min-width: 132px;
    height: 52px;
    padding: 0 20px;
    font-size: 15px;
  }

  .hero-visual {
    min-height: 410px;
    overflow: hidden;
  }

  .portrait-frame {
    height: 420px;
    min-height: 400px;
  }

  .portrait-frame img {
    right: 0;
    width: 100%;
  }

  .hand-note {
    right: -4px;
    top: 29%;
    font-size: 18px;
  }

          .overview-section,
  .internship-section,
  .projects-section,
  .contact-section {
    padding: 72px 22px;
  }

  .overview-grid,
  .internship-layout,
  .projects-heading {
    grid-template-columns: 1fr;
  }

  .projects-heading {
    display: grid;
  }

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

  .detail-shell {
    padding: 48px 22px 70px;
  }

  .detail-hero {
    padding: 54px 0 44px;
  }

  .detail-stat-grid,
  .detail-grid,
  .detail-card-grid,
  .detail-flow.three-step,
  .dashboard-portfolio-heading,
  .dashboard-gallery,
  .contact-details {
    grid-template-columns: 1fr;
  }

  .dashboard-portfolio-heading {
    gap: 22px;
  }

  .detail-stat-grid article,
  .detail-stat-grid article:first-child,
  .detail-stat-grid article:nth-child(3) {
    padding: 26px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .detail-stat-grid article:last-child {
    border-bottom: 0;
  }

  .detail-section {
    padding: 58px 0;
  }

  .dashboard-viewer {
    width: calc(100vw - 16px);
    height: 94dvh;
    border-radius: 16px;
  }

  .dashboard-viewer-header {
    padding: 14px 12px 13px 16px;
  }

  .dashboard-viewer-canvas {
    padding: 10px;
  }

  .dashboard-viewer-controls {
    gap: 8px;
    padding: 10px;
  }

  .dashboard-viewer-controls button {
    min-width: 78px;
    padding: 9px 12px;
  }

  .detail-callout {
    padding-left: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (max-width: 720px) {
  .overview-grid,
  .skill-panel,
  .internship-layout,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .project-card {
    min-height: auto;
  }
}

html.motion-ready .reveal-item {
  opacity: 0;
}

html.motion-ready .reveal-item.is-visible {
  animation: reveal-item-in 720ms cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: var(--reveal-delay, 0ms);
}

@keyframes reveal-item-in {
  from {
    opacity: 0;
    translate: 0 26px;
  }

  to {
    opacity: 1;
    translate: 0 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html.motion-ready .reveal-item,
  html.motion-ready .reveal-item.is-visible {
    opacity: 1;
    animation: none;
    translate: none;
  }
}

/* 技能区紧凑化：保证五张卡在一屏内可见 */
#skills {
  padding: 44px 28px 52px;
}

#skills .section-heading h2 {
  font-size: 36px;
}

#skills .skill-panel {
  gap: 14px;
  margin-top: 30px;
}

#skills .skill-panel article {
  padding: 16px 20px;
}

#skills .skill-panel span {
  margin-bottom: 8px;
}

#education .overview-grid {
  grid-template-columns: 1fr;
}

#education .education-panel ul {
  columns: 2;
  column-gap: 40px;
}

@media (max-width: 980px) {
  #education .education-panel ul {
    columns: 1;
  }
}

/* 技能区紧凑化 */
#skills { padding: 44px 28px 52px; }
#skills .section-heading h2 { font-size: 36px; }
#skills .skill-panel { gap: 14px; margin-top: 30px; }
#skills .skill-panel article { padding: 16px 20px; }
#skills .skill-panel span { margin-bottom: 8px; }
#education .overview-grid { grid-template-columns: 1fr; }
#education .education-panel ul { columns: 2; column-gap: 40px; }
@media (max-width: 980px) { #education .education-panel ul { columns: 1; } }
