:root {
  color-scheme: light;
  --bg: #f4f7f4;
  --paper: #fffdf8;
  --paper-soft: #f9fbf3;
  --ink: #16283c;
  --muted: #51667a;
  --line: #d9dfd3;
  --teal: #27877d;
  --teal-deep: #11675f;
  --coral: #d46550;
  --blue: #345eaa;
  --blue-soft: #e9eefb;
  --glow: rgba(39, 135, 125, 0.14);
  --shadow: 0 18px 44px rgba(22, 40, 60, 0.1);
  --shadow-strong: 0 24px 70px rgba(22, 40, 60, 0.16);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 10% 0%, rgba(52, 94, 170, 0.1), transparent 32rem),
    radial-gradient(circle at 92% 8%, rgba(39, 135, 125, 0.12), transparent 30rem),
    linear-gradient(180deg, #fbfaf4 0%, var(--bg) 42%, #f7f1ec 100%);
  color: var(--ink);
  line-height: 1.7;
}

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

button {
  font: inherit;
}

::selection {
  background: rgba(212, 101, 80, 0.22);
}

.editor-toolbar {
  position: fixed;
  right: 18px;
  bottom: 76px;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: calc(100vw - 36px);
  padding: 8px;
  border: 1px solid rgba(23, 50, 77, 0.16);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.94);
  box-shadow: 0 14px 34px rgba(23, 50, 77, 0.16);
  backdrop-filter: blur(14px);
}

.editor-toolbar button {
  min-height: 36px;
  border: 0;
  border-radius: 8px;
  padding: 7px 12px;
  color: var(--paper);
  background: var(--ink);
  cursor: pointer;
  font-weight: 800;
}

.editor-toolbar a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  padding: 7px 12px;
  color: var(--ink);
  background: rgba(49, 95, 159, 0.12);
  font-weight: 800;
}

.editor-toolbar .editor-reset {
  color: var(--ink);
  background: rgba(216, 102, 79, 0.14);
}

.editor-toolbar .editor-save {
  background: var(--teal);
}

.editor-toolbar .editor-bold {
  min-width: 44px;
  font-weight: 900;
  background: var(--blue);
}

.editor-status {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

body.is-editing [data-editable="true"] {
  outline: 2px dashed rgba(216, 102, 79, 0.55);
  outline-offset: 4px;
  border-radius: 4px;
  cursor: text;
}

body.is-editing [data-editable="true"]:focus {
  outline-style: solid;
  background: rgba(255, 253, 247, 0.72);
}

[data-editable="true"] {
  white-space: pre-line;
}

.game-card [data-editable="true"] {
  white-space: break-spaces;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(255, 253, 248, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 34px rgba(22, 40, 60, 0.05);
}

.brand,
.nav,
.hero-actions,
.contact-strip,
.pill-list,
.contact-actions {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.nav {
  gap: clamp(12px, 2vw, 28px);
  color: var(--muted);
  font-size: 15px;
}

.nav a {
  position: relative;
  padding: 8px 0;
  transition: color 180ms ease;
}

.nav a::after {
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  content: "";
  opacity: 0;
  transform: scaleX(0.24);
  transform-origin: left center;
  transition: opacity 180ms ease, transform 180ms ease;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--teal-deep);
}

.nav a:hover::after,
.nav a:focus-visible::after {
  opacity: 1;
  transform: scaleX(1);
}

.hero {
  min-height: calc(100vh - 65px);
  display: grid;
  align-content: center;
  gap: 28px;
  padding: clamp(36px, 7vw, 84px) clamp(18px, 6vw, 84px);
}

.hero-profile {
  display: grid;
  grid-template-columns: minmax(240px, 320px) minmax(0, 720px);
  gap: clamp(36px, 5vw, 80px);
  align-items: center;
  justify-content: space-between;
  max-width: 1160px;
  width: 100%;
  margin-inline: auto;
}

.portrait {
  order: 1;
  aspect-ratio: 4 / 5;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(39, 135, 125, 0.18), transparent 45%),
    repeating-linear-gradient(90deg, rgba(52, 94, 170, 0.1) 0 1px, transparent 1px 18px),
    var(--paper);
  box-shadow: var(--shadow);
  overflow: hidden;
  transform: translateZ(0);
}

.portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 36%;
}

.profile-copy {
  order: 2;
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--teal-deep);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(48px, 7vw, 88px);
  line-height: 1;
}

.hero h1 {
  margin-bottom: 18px;
  color: var(--blue);
  font-size: clamp(58px, 8vw, 96px);
  line-height: 0.98;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.14;
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.3;
}

.positioning {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 18px;
}

.hero-greeting {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 16px;
  text-transform: none;
}

.hero-role {
  margin-bottom: 14px;
  color: var(--ink);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 900;
  line-height: 1.35;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.primary-action,
.secondary-action,
.contact-actions a,
.contact-actions button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 10px 18px;
  font-weight: 800;
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease, color 180ms ease, transform 180ms ease;
}

.primary-action {
  background: var(--teal);
  color: var(--paper);
  box-shadow: 0 12px 28px rgba(39, 135, 125, 0.2);
}

.secondary-action {
  border: 1px solid var(--ink);
  color: var(--ink);
}

.primary-action:hover,
.primary-action:focus-visible,
.secondary-action:hover,
.secondary-action:focus-visible,
.editor-toolbar button:hover,
.editor-toolbar a:hover {
  transform: translateY(-2px);
}

.primary-action:hover,
.primary-action:focus-visible {
  background: var(--teal-deep);
  box-shadow: 0 16px 34px rgba(17, 103, 95, 0.24);
}

.secondary-action:hover,
.secondary-action:focus-visible {
  border-color: var(--teal-deep);
  color: var(--teal-deep);
  box-shadow: 0 12px 28px rgba(17, 103, 95, 0.1);
}

.contact-strip {
  flex-wrap: wrap;
  gap: 12px;
  max-width: 980px;
  margin-inline: auto;
  padding-top: 8px;
  color: var(--muted);
}

.contact-strip a,
.contact-strip button {
  border: 1px solid rgba(216, 102, 79, 0.28);
  border-radius: 999px;
  padding: 6px 12px;
  background: rgba(255, 253, 247, 0.62);
  color: var(--muted);
  cursor: pointer;
}

.section,
.contact-section {
  padding: clamp(54px, 8vw, 104px) clamp(18px, 6vw, 84px);
}

.section.alt {
  background: linear-gradient(180deg, rgba(233, 238, 251, 0.58), rgba(238, 246, 240, 0.7));
}

.section-heading {
  max-width: 1080px;
  margin-inline: auto;
  margin-bottom: 36px;
}

.section-heading p:not(.eyebrow) {
  width: 100%;
  max-width: 1080px;
  color: var(--muted);
  font-size: 18px;
}

.experience-summary {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(0, 1.18fr);
  gap: 18px;
  max-width: 1080px;
  margin-inline: auto;
  margin-bottom: 22px;
  align-items: stretch;
}

.project-cover-slot {
  min-height: 280px;
  display: grid;
  place-items: center;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(52, 94, 170, 0.14), transparent 42%),
    linear-gradient(25deg, rgba(212, 101, 80, 0.16), transparent 46%),
    var(--paper);
  color: var(--blue);
  font-weight: 900;
  overflow: hidden;
}

.project-cover-slot img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
}

.experience-meta {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: clamp(20px, 3vw, 32px);
  box-shadow: 0 14px 38px rgba(22, 40, 60, 0.06);
}

.experience-meta dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0 0;
}

.experience-meta dl div {
  border: 1px solid rgba(39, 135, 125, 0.18);
  border-radius: 8px;
  padding: 12px 14px;
  background: rgba(39, 135, 125, 0.045);
}

.experience-meta dt {
  color: var(--teal-deep);
  font-size: 13px;
  font-weight: 900;
}

.experience-meta dd {
  margin: 4px 0 0;
  color: var(--ink);
  font-weight: 800;
}

.timeline {
  display: grid;
  gap: 18px;
  max-width: 1080px;
  margin-inline: auto;
}

.work-block {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 22px;
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 12px 36px rgba(22, 40, 60, 0.06);
}

.step {
  min-width: 0;
  color: var(--coral);
  font-size: 24px;
  font-weight: 900;
  line-height: 1.2;
  white-space: nowrap;
}

.feature-list,
.skill-grid ul {
  padding-left: 20px;
  margin: 14px 0 0;
  color: var(--muted);
}

.pricing-grid,
.skill-grid,
.game-grid,
.project-showcase {
  display: grid;
  gap: 16px;
}

.pricing-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pricing-grid div,
.skill-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.82);
  padding: 18px;
  box-shadow: 0 10px 28px rgba(22, 40, 60, 0.045);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease, background 180ms ease;
}

.pricing-grid div:hover,
.skill-grid article:hover,
.game-card:hover,
.project-point-action:hover,
.contact-method:hover {
  border-color: rgba(39, 135, 125, 0.38);
  background: var(--paper);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.pricing-grid > div > strong,
.pricing-grid > div > span {
  display: block;
}

.pricing-grid > div > strong {
  color: var(--blue);
  font-size: 18px;
}

.pricing-grid > div > span {
  color: var(--muted);
}

.pricing-grid > div > span strong {
  color: inherit;
  font-size: inherit;
  font-weight: 900;
}

.pill-list {
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 16px 0 0;
  list-style: none;
}

.pill-list li {
  border: 1px solid var(--teal);
  border-radius: 999px;
  padding: 8px 14px;
  color: var(--teal-deep);
  font-weight: 800;
}

.project-showcase {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: clamp(18px, 2.6vw, 28px);
  max-width: 1120px;
  padding: clamp(16px, 2.4vw, 26px);
  margin-inline: auto;
  border: 1px solid rgba(206, 194, 170, 0.86);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.94), rgba(244, 247, 244, 0.88)),
    var(--paper);
  box-shadow: 0 18px 50px rgba(22, 40, 60, 0.075);
}

.project-media {
  position: relative;
  min-height: 0;
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background:
    linear-gradient(160deg, rgba(212, 101, 80, 0.2), transparent 44%),
    linear-gradient(25deg, rgba(39, 135, 125, 0.22), transparent 46%),
    var(--paper-soft);
  border: 1px solid var(--line);
  color: var(--blue);
  font-weight: 900;
  box-shadow: 0 14px 34px rgba(22, 40, 60, 0.1);
  cursor: pointer;
  overflow: hidden;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.project-media:hover,
.project-media:focus-visible {
  border-color: rgba(39, 135, 125, 0.5);
  box-shadow: 0 18px 42px rgba(22, 40, 60, 0.14);
  transform: translateY(-2px);
}

.gallery-stage {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: grid;
  place-items: center;
}

.gallery-stage img {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: block;
  object-fit: contain;
  background: rgba(255, 253, 248, 0.72);
}

.gallery-stage span {
  padding: 18px;
  text-align: center;
}

.gallery-controls {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  z-index: 2;
}

.gallery-controls[hidden] {
  display: none;
}

.gallery-controls button,
.gallery-controls span {
  min-width: 38px;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(22, 40, 60, 0.18);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.9);
  color: var(--ink);
  box-shadow: 0 10px 24px rgba(22, 40, 60, 0.12);
  backdrop-filter: blur(10px);
}

.gallery-controls button {
  cursor: pointer;
  font-size: 22px;
  font-weight: 900;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.gallery-controls button:hover,
.gallery-controls button:focus-visible {
  background: var(--teal);
  color: var(--paper);
  transform: translateY(-2px);
}

.gallery-controls span {
  min-width: 58px;
  font-size: 13px;
  font-weight: 900;
}

.project-detail {
  padding: 0 clamp(4px, 1vw, 10px);
}

.project-intro {
  max-width: 100%;
}

.project-detail h3 {
  margin-bottom: 8px;
}

.project-detail p {
  max-width: 100%;
  margin-bottom: 0;
}

.project-video-hint {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(22, 40, 60, 0.16);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.92);
  color: var(--blue);
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(22, 40, 60, 0.12);
  backdrop-filter: blur(10px);
}

.project-media:hover .project-video-hint,
.project-media:focus-visible .project-video-hint {
  background: var(--teal);
  color: var(--paper);
}

.project-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding-top: 0;
}

.project-point-action {
  width: 100%;
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  border: 1px solid rgba(39, 135, 125, 0.46);
  border-radius: 8px;
  padding: 14px 18px;
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.98), rgba(238, 246, 240, 0.92));
  color: var(--blue);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(22, 40, 60, 0.07);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease, background 180ms ease, color 180ms ease;
}

.project-point-action:hover,
.project-point-action:focus-visible {
  border-color: rgba(39, 135, 125, 0.5);
  background: var(--teal);
  color: var(--paper);
  box-shadow: 0 14px 30px rgba(17, 103, 95, 0.18);
  transform: translateY(-2px);
}

.project-point-action strong {
  font-size: 17px;
  font-weight: 900;
}

.project-point-action span {
  display: none;
}

body.dialog-open {
  overflow: hidden;
}

.image-dialog[hidden] {
  display: none;
}

.image-dialog {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 40px);
}

.image-dialog-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(22, 40, 60, 0.48);
  backdrop-filter: blur(8px);
}

.image-dialog-panel {
  position: relative;
  width: min(1040px, 100%);
  height: min(86vh, 780px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  border: 1px solid rgba(255, 253, 248, 0.58);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 28px 80px rgba(22, 40, 60, 0.32);
}

.image-dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 20px clamp(18px, 3vw, 28px);
  border-bottom: 1px solid var(--line);
}

.image-dialog-header h3 {
  margin: 3px 0 0;
}

.dialog-close {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border: 1px solid rgba(22, 40, 60, 0.14);
  border-radius: 8px;
  background: var(--paper-soft);
  color: var(--ink);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.image-dialog-stage {
  min-height: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(238, 246, 240, 0.7), rgba(255, 253, 248, 0.96)),
    var(--paper-soft);
}

.image-dialog-stage img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  display: block;
  object-fit: contain;
}

.image-dialog-stage video {
  width: 100%;
  height: 100%;
  max-height: 100%;
  display: block;
  background: #000;
}

.image-dialog-stage span {
  padding: 24px;
  color: var(--muted);
  text-align: center;
}

.image-dialog-controls {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 18px 18px;
  border-top: 1px solid var(--line);
}

.image-dialog-controls button,
.image-dialog-controls span,
.dialog-download {
  min-width: 42px;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(22, 40, 60, 0.16);
  border-radius: 8px;
  background: var(--paper-soft);
  color: var(--ink);
  font-weight: 900;
  text-decoration: none;
}

.image-dialog-controls button {
  cursor: pointer;
  font-size: 24px;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.image-dialog-controls button:hover:not(:disabled),
.image-dialog-controls button:focus-visible,
.dialog-download:hover,
.dialog-download:focus-visible {
  background: var(--teal);
  color: var(--paper);
  transform: translateY(-2px);
}

.dialog-download[hidden] {
  display: none;
}

.dialog-download {
  position: absolute;
  right: 18px;
  margin-left: 0;
  padding: 0 18px;
  border-color: var(--teal);
  background: var(--teal);
  color: var(--paper);
  box-shadow: 0 12px 26px rgba(17, 103, 95, 0.2);
}

.dialog-download:hover,
.dialog-download:focus-visible {
  background: var(--teal-deep);
  box-shadow: 0 16px 32px rgba(17, 103, 95, 0.26);
}

.image-dialog-controls button:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.image-dialog-controls span {
  min-width: 72px;
  font-size: 13px;
}

.skill-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 1120px;
  margin-inline: auto;
}

.game-section {
  background:
    linear-gradient(180deg, rgba(244, 247, 244, 0.84), rgba(248, 241, 235, 0.9)),
    radial-gradient(circle at 86% 0%, rgba(212, 101, 80, 0.1), transparent 28rem);
}

.game-grid {
  grid-template-columns: minmax(0, 1fr);
  max-width: 1120px;
  margin-inline: auto;
}

.game-card,
.analysis-entry {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: clamp(20px, 3vw, 28px);
  box-shadow: 0 12px 34px rgba(22, 40, 60, 0.055);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease, background 180ms ease;
}

.game-card ul {
  padding-left: 20px;
  margin: 14px 0 0;
  color: var(--muted);
}

.analysis-entry {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.analysis-entry p:not(.eyebrow) {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--muted);
}

.analysis-entry .secondary-action {
  flex: 0 0 auto;
}

.end-section {
  display: flex;
  justify-content: center;
  padding: 28px clamp(18px, 6vw, 84px) clamp(58px, 8vw, 96px);
}

.contact-panel-section {
  background:
    linear-gradient(180deg, rgba(238, 246, 240, 0.86), rgba(233, 238, 251, 0.62)),
    radial-gradient(circle at 8% 20%, rgba(39, 135, 125, 0.12), transparent 28rem);
  padding: clamp(54px, 8vw, 104px) clamp(18px, 6vw, 84px);
}

.contact-panel {
  max-width: 1120px;
  margin-inline: auto;
}

.contact-panel-heading {
  max-width: 1080px;
  margin-bottom: 36px;
}

.contact-panel-heading h2 {
  margin-bottom: 12px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.14;
}

.contact-panel-heading p:not(.eyebrow) {
  width: 100%;
  max-width: 1080px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 18px;
}

.contact-methods {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  max-width: 860px;
}

.contact-method {
  width: 100%;
  min-height: 96px;
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  background: var(--paper);
  color: var(--ink);
  text-align: left;
  box-shadow: 0 12px 34px rgba(22, 40, 60, 0.055);
  cursor: pointer;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease, background 180ms ease;
}

.contact-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.contact-method strong {
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
}

.contact-method span span {
  color: var(--muted);
  font-size: 17px;
  overflow-wrap: anywhere;
}

.contact-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 8px;
  background: rgba(39, 135, 125, 0.1);
  color: var(--teal-deep);
  font-weight: 900;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.contact-method:hover .contact-icon,
.contact-method:focus-visible .contact-icon {
  background: var(--teal);
  color: var(--paper);
  transform: scale(1.05);
}

.contact-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.contact-icon svg path:first-child:last-child {
  fill: currentColor;
  stroke: none;
}

.contact-icon svg circle {
  fill: currentColor;
  stroke: none;
}

.contact-method[data-copied="true"] {
  border-color: rgba(47, 143, 131, 0.58);
  background: rgba(47, 143, 131, 0.08);
}

.contact-method[data-copied="true"]::after {
  margin-left: auto;
  color: var(--teal-deep);
  content: "已复制";
  font-size: 13px;
  font-weight: 900;
}

.back-home {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: var(--coral);
  color: var(--paper);
  font-size: 22px;
  font-weight: 900;
  box-shadow: 0 10px 28px rgba(23, 50, 77, 0.2);
  transition: background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.back-home:hover,
.back-home:focus-visible {
  background: var(--teal-deep);
  box-shadow: 0 16px 34px rgba(22, 40, 60, 0.22);
  transform: translateY(-3px);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease, transform 520ms ease;
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero-profile,
  .project-showcase,
  .experience-summary {
    grid-template-columns: 1fr;
  }

  .portrait {
    max-width: 260px;
    order: 1;
  }

  .pricing-grid,
  .skill-grid,
  .game-grid,
  .project-points,
  .contact-methods,
  .experience-meta dl {
    grid-template-columns: 1fr;
  }

  .project-showcase {
    padding: 16px;
  }

  .project-media {
    aspect-ratio: 16 / 10;
  }

  .project-points {
    margin-top: 0;
    padding-top: 20px;
  }

  .project-point-action {
    min-height: auto;
  }

  .analysis-entry {
    grid-column: auto;
  }

  .analysis-entry {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .editor-toolbar {
    left: 12px;
    right: 12px;
    bottom: 72px;
    justify-content: center;
  }

  .editor-status {
    display: none;
  }

  .hero {
    min-height: auto;
  }

  h1 {
    font-size: 46px;
  }

  .positioning {
    font-size: 18px;
  }

  .work-block {
    grid-template-columns: 1fr;
  }

  .primary-action,
  .secondary-action {
    width: 100%;
  }
}
