:root {
  --bg-start: #070504;
  --bg-mid: #180b08;
  --bg-end: #050608;
  --ink: #fff4df;
  --muted: #d9c7a3;
  --subtle: #ad9362;
  --line: rgba(255, 205, 96, 0.24);
  --card: rgba(19, 13, 10, 0.86);
  --card-solid: #18100c;
  --primary: #f7c64f;
  --primary-dark: #6e1c0f;
  --cyan: #6ce7ff;
  --violet: #c51d20;
  --soft-blue: rgba(247, 198, 79, 0.13);
  --soft-cyan: rgba(108, 231, 255, 0.1);
  --shadow: 0 28px 78px rgba(0, 0, 0, 0.46);
  --shadow-soft: 0 18px 52px rgba(0, 0, 0, 0.32);
  --radius-xl: 8px;
  --radius-lg: 8px;
  --radius-md: 6px;
  --space: 28px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 0;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  min-width: 0;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  background:
    linear-gradient(112deg, rgba(255, 198, 62, 0.16) 0 12%, transparent 12% 34%, rgba(189, 28, 31, 0.16) 34% 47%, transparent 47% 72%, rgba(108, 231, 255, 0.1) 72% 83%, transparent 83%),
    linear-gradient(180deg, rgba(255, 205, 96, 0.08), transparent 38%),
    linear-gradient(135deg, var(--bg-start), var(--bg-mid) 46%, var(--bg-end));
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(255, 205, 96, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 205, 96, 0.055) 1px, transparent 1px),
    linear-gradient(135deg, transparent 0 47%, rgba(255, 205, 96, 0.08) 47% 48%, transparent 48% 100%);
  background-size: 46px 46px, 46px 46px, 180px 180px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 88%);
}

img,
video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

p,
h1,
h2,
h3,
ul,
figure {
  margin: 0;
}

ul {
  padding: 0;
}

li,
p,
a,
span,
strong,
h1,
h2,
h3 {
  max-width: 100%;
  word-break: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

.resume-shell {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 40px 0 56px;
}

.profile-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 26px;
  align-items: stretch;
  margin-bottom: var(--space);
  padding: 34px;
  overflow: hidden;
  border: 1px solid rgba(255, 211, 100, 0.34);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(120deg, rgba(10, 7, 6, 0.98), rgba(82, 17, 12, 0.92) 48%, rgba(15, 11, 9, 0.96)),
    linear-gradient(135deg, #1a0e08, #4b130d);
  box-shadow: var(--shadow);
}

.profile-hero::after {
  position: absolute;
  right: -48px;
  bottom: -68px;
  width: 420px;
  height: 260px;
  content: "";
  background:
    linear-gradient(135deg, rgba(255, 226, 133, 0.46), transparent 42%),
    linear-gradient(45deg, transparent 0 30%, rgba(108, 231, 255, 0.2) 30% 34%, transparent 34% 100%);
  clip-path: polygon(24% 0, 100% 24%, 76% 100%, 0 70%);
  opacity: 0.72;
}

.hero-copy,
.hero-panel {
  position: relative;
  z-index: 1;
}

.eyebrow,
.section-heading p,
.panel-label,
.link-panel span {
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin-top: 8px;
  color: #fff7dd;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: 0;
  text-shadow: 0 0 22px rgba(255, 204, 84, 0.46), 0 3px 0 rgba(97, 20, 9, 0.55);
}

.hero-subtitle {
  max-width: 680px;
  margin-top: 18px;
  color: rgba(255, 244, 223, 0.84);
  font-size: 18px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-badges span {
  padding: 8px 13px;
  border: 1px solid rgba(255, 212, 98, 0.36);
  border-radius: 6px;
  color: #fff3ca;
  background: linear-gradient(135deg, rgba(247, 198, 79, 0.18), rgba(197, 29, 32, 0.18));
  backdrop-filter: blur(10px);
}

.hero-panel {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: 24px;
  border: 1px solid rgba(255, 212, 98, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 211, 100, 0.16), transparent 42%),
    rgba(8, 6, 5, 0.5);
  backdrop-filter: blur(14px);
}

.hero-panel strong {
  display: block;
  margin-top: 8px;
  color: #fff7dd;
  font-size: 22px;
  line-height: 1.45;
}

.hero-panel p {
  margin-top: 12px;
  color: rgba(255, 244, 223, 0.72);
}

.resume-card {
  position: relative;
  margin-top: var(--space);
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(255, 211, 100, 0.08), transparent 26%),
    linear-gradient(315deg, rgba(197, 29, 32, 0.09), transparent 34%),
    var(--card);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.resume-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 211, 100, 0.48);
  box-shadow: 0 28px 78px rgba(0, 0, 0, 0.45), 0 0 34px rgba(247, 198, 79, 0.12);
}

.section-heading {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.heading-icon {
  display: inline-grid;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 6px;
  color: #180b07;
  font-weight: 800;
  background: linear-gradient(135deg, #fff4b7, var(--primary) 45%, #c51d20);
  box-shadow: 0 12px 30px rgba(247, 198, 79, 0.25);
}

.section-heading h2 {
  margin-top: 2px;
  font-size: 25px;
  line-height: 1.25;
  color: #fff4df;
}

.basic-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: 28px;
  align-items: center;
}

.info-grid {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.info-item {
  display: grid;
  min-width: 0;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 13px 14px;
  border: 1px solid rgba(255, 205, 96, 0.18);
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(255, 205, 96, 0.1), rgba(255, 255, 255, 0.035));
}

.info-label {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  padding: 4px 9px;
  border-radius: 4px;
  color: #261008;
  font-weight: 800;
  background: linear-gradient(135deg, #ffe8a4, var(--primary));
}

.info-value {
  min-width: 0;
  color: #f5e8cf;
}

.photo-card {
  display: grid;
  justify-items: center;
  gap: 12px;
}

.photo-card img {
  width: 210px;
  height: 254px;
  object-fit: cover;
  object-position: center top;
  border: 5px solid rgba(255, 219, 119, 0.88);
  border-radius: 8px;
  background: linear-gradient(135deg, #2b140b, #090605);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.42), 0 0 32px rgba(247, 198, 79, 0.22);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.photo-card img:hover {
  transform: scale(1.035);
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.5), 0 0 44px rgba(247, 198, 79, 0.3);
}

.photo-card figcaption {
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
}

.timeline-list,
.project-list,
.clean-list {
  display: grid;
  gap: 16px;
  list-style: none;
}

.timeline-list > li,
.project-list > li,
.clean-list > li {
  position: relative;
  min-width: 0;
  padding: 18px 18px 18px 24px;
  border: 1px solid rgba(48, 78, 122, 0.12);
  border-radius: var(--radius-lg);
  background: rgba(255, 244, 223, 0.055);
  transition: transform 0.24s ease, border-color 0.24s ease, background 0.24s ease;
}

.timeline-list > li::before,
.project-list > li::before,
.clean-list > li::before {
  position: absolute;
  top: 24px;
  left: 0;
  width: 5px;
  height: 28px;
  content: "";
  border-radius: 0 999px 999px 0;
  background: linear-gradient(180deg, #fff1aa, var(--primary), #c51d20);
}

.timeline-list > li:hover,
.project-list > li:hover,
.clean-list > li:hover {
  transform: translateX(3px);
  border-color: rgba(255, 211, 100, 0.35);
  background: rgba(255, 211, 100, 0.085);
}

.item-head {
  display: flex;
  min-width: 0;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 10px;
}

.item-head h3 {
  min-width: 0;
  color: #fff1ca;
  font-size: 18px;
  line-height: 1.45;
}

.item-head span {
  flex: 0 0 auto;
  padding: 4px 10px;
  border-radius: 4px;
  color: #241008;
  font-size: 13px;
  font-weight: 800;
  background: linear-gradient(135deg, #ffe7a1, #f7c64f);
}

.timeline-list p,
.project-list p,
.clean-list li {
  color: var(--muted);
}

.media-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
  gap: 18px;
  margin-top: 20px;
}

.video-wrap {
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(255, 205, 96, 0.2);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(12, 8, 6, 0.96), rgba(84, 18, 14, 0.86));
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
}

.video-wrap video {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  background: #080605;
}

.battle-frame {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border: 1px solid rgba(255, 205, 96, 0.28);
  border-radius: 8px;
  background: #080605;
  box-shadow: inset 0 0 46px rgba(247, 198, 79, 0.14), 0 18px 44px rgba(0, 0, 0, 0.34);
}

.battle-frame::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(180deg, rgba(5, 4, 3, 0.02), rgba(5, 4, 3, 0.58)),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 7px),
    linear-gradient(135deg, rgba(255, 205, 96, 0.22), transparent 34%, rgba(197, 29, 32, 0.18));
}

.battle-frame img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  object-position: center top;
  filter: contrast(1.12) saturate(1.12);
}

.battle-overlay {
  position: absolute;
  right: 18px;
  bottom: 86px;
  left: 18px;
  z-index: 2;
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-left: 4px solid var(--primary);
  background: linear-gradient(90deg, rgba(8, 6, 5, 0.82), rgba(8, 6, 5, 0.24));
}

.battle-overlay span,
.battle-stats span {
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.battle-overlay strong {
  color: #fff5cf;
  font-size: 22px;
  line-height: 1.25;
  text-shadow: 0 0 18px rgba(247, 198, 79, 0.34);
}

.battle-stats {
  position: absolute;
  right: 16px;
  bottom: 16px;
  left: 16px;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.battle-stats div {
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(255, 205, 96, 0.24);
  border-radius: 6px;
  background: rgba(8, 6, 5, 0.72);
  backdrop-filter: blur(10px);
}

.battle-stats strong {
  display: block;
  color: #fff4df;
  font-size: 14px;
  line-height: 1.35;
}

.energy-map {
  position: relative;
  display: grid;
  min-height: 280px;
  overflow: hidden;
  place-items: center;
  border: 1px solid rgba(255, 205, 96, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 205, 96, 0.16), transparent 32%),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 18px),
    linear-gradient(135deg, rgba(8, 6, 5, 0.98), rgba(86, 18, 12, 0.72));
  box-shadow: inset 0 0 48px rgba(247, 198, 79, 0.12), 0 18px 44px rgba(0, 0, 0, 0.26);
}

.orb-core {
  position: relative;
  z-index: 2;
  display: grid;
  width: 116px;
  height: 116px;
  place-items: center;
  border: 2px solid rgba(255, 248, 208, 0.78);
  border-radius: 50%;
  color: #2a0e08;
  font-size: 54px;
  font-weight: 900;
  background:
    linear-gradient(135deg, #fff5bf, #f7c64f 42%, #c51d20 100%);
  box-shadow: 0 0 40px rgba(247, 198, 79, 0.45), 0 0 100px rgba(197, 29, 32, 0.28);
}

.ring {
  position: absolute;
  border: 1px solid rgba(255, 226, 137, 0.42);
  border-radius: 50%;
  animation: rotateRing 9s linear infinite;
}

.ring-one {
  width: 176px;
  height: 176px;
  border-style: dashed;
}

.ring-two {
  width: 232px;
  height: 232px;
  animation-duration: 14s;
  animation-direction: reverse;
}

.ring-three {
  width: 292px;
  height: 292px;
  border-color: rgba(108, 231, 255, 0.26);
  animation-duration: 18s;
}

@keyframes rotateRing {
  to {
    transform: rotate(360deg);
  }
}

.link-panel {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: 22px;
  border: 1px solid rgba(255, 205, 96, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 205, 96, 0.12), rgba(197, 29, 32, 0.11)),
    rgba(255, 244, 223, 0.055);
}

.link-panel h3 {
  margin-top: 8px;
  font-size: 20px;
  color: #fff1ca;
}

.link-panel p {
  margin-top: 8px;
  color: var(--muted);
}

.project-button {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  padding: 11px 18px;
  border-radius: 6px;
  color: #251008;
  font-weight: 800;
  text-decoration: none;
  background: linear-gradient(135deg, #fff1aa, var(--primary) 50%, #c51d20);
  box-shadow: 0 14px 30px rgba(247, 198, 79, 0.22);
  transition: transform 0.24s ease, box-shadow 0.24s ease, filter 0.24s ease;
}

.project-button:hover {
  transform: translateY(-2px);
  filter: saturate(1.08);
  box-shadow: 0 18px 42px rgba(247, 198, 79, 0.34);
}

.skills-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 20px;
}

.skill-block,
.evaluation-block {
  min-width: 0;
  padding: 20px;
  border: 1px solid rgba(255, 205, 96, 0.18);
  border-radius: var(--radius-lg);
  background: rgba(255, 244, 223, 0.055);
}

.skill-block h3,
.evaluation-block h3 {
  margin-bottom: 14px;
  font-size: 19px;
  color: #fff1ca;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
}

.skill-tags li {
  max-width: 100%;
  padding: 9px 14px;
  border: 1px solid rgba(255, 205, 96, 0.22);
  border-radius: 6px;
  color: #fff4df;
  font-weight: 800;
  background: linear-gradient(135deg, rgba(247, 198, 79, 0.16), rgba(197, 29, 32, 0.13));
  transition: transform 0.2s ease, background 0.2s ease;
}

.skill-tags li:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, rgba(247, 198, 79, 0.24), rgba(197, 29, 32, 0.2));
}

.clean-list {
  gap: 12px;
}

.clean-list > li {
  padding-top: 14px;
  padding-bottom: 14px;
}

.fade-in {
  animation: fadeUp 0.7s ease both;
}

.fade-in:nth-of-type(2) {
  animation-delay: 0.05s;
}

.fade-in:nth-of-type(3) {
  animation-delay: 0.1s;
}

.fade-in:nth-of-type(4) {
  animation-delay: 0.15s;
}

.fade-in:nth-of-type(5) {
  animation-delay: 0.2s;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1024px) {
  :root {
    --space: 24px;
  }

  .resume-shell {
    width: min(100% - 32px, 960px);
    padding-top: 28px;
  }

  .profile-hero {
    grid-template-columns: 1fr;
    padding: 30px;
  }

  .hero-panel {
    max-width: 680px;
  }

  .basic-layout {
    grid-template-columns: minmax(0, 1fr) 205px;
    gap: 22px;
  }

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

  .info-item {
    grid-template-columns: 82px minmax(0, 1fr);
  }

  .media-showcase,
  .skills-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  body {
    font-size: 15px;
  }

  .resume-shell {
    width: min(100% - 24px, 720px);
    padding: 20px 0 36px;
  }

  .profile-hero,
  .resume-card {
    border-radius: 8px;
  }

  .profile-hero {
    padding: 24px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .resume-card {
    padding: 22px;
  }

  .section-heading {
    align-items: flex-start;
  }

  .section-heading h2 {
    font-size: 22px;
  }

  .basic-layout {
    grid-template-columns: 1fr;
  }

  .photo-card {
    order: -1;
  }

  .photo-card img {
    width: 150px;
    height: 188px;
    border-radius: 8px;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .item-head {
    flex-direction: column;
  }

  .item-head span {
    flex: 0 1 auto;
  }

  .project-button {
    width: 100%;
  }

  .energy-map {
    min-height: 230px;
  }

  .battle-frame {
    min-height: 330px;
  }

  .battle-frame img {
    height: 330px;
  }

  .battle-stats {
    grid-template-columns: 1fr;
  }

  .battle-overlay {
    bottom: 170px;
  }
}

@media (max-width: 480px) {
  :root {
    --space: 18px;
  }

  body {
    font-size: 14px;
  }

  .resume-shell {
    width: 100%;
    padding: 12px 10px 28px;
  }

  .profile-hero {
    padding: 20px;
  }

  .hero-copy h1 {
    font-size: 32px;
  }

  .hero-badges span {
    padding: 7px 10px;
  }

  .hero-panel {
    padding: 18px;
  }

  .resume-card {
    padding: 18px;
  }

  .heading-icon {
    width: 42px;
    height: 42px;
    border-radius: 6px;
  }

  .section-heading {
    gap: 12px;
    margin-bottom: 18px;
  }

  .info-item {
    grid-template-columns: 1fr;
    gap: 8px;
    align-items: start;
  }

  .info-label {
    width: fit-content;
    justify-content: flex-start;
  }

  .timeline-list > li,
  .project-list > li,
  .clean-list > li {
    padding: 16px 14px 16px 18px;
  }

  .link-panel,
  .skill-block,
  .evaluation-block {
    padding: 16px;
  }
}
