:root {
  color-scheme: dark;
  --bg: #000;
  --bg-soft: #000;
  --panel: rgba(20, 20, 26, 0.78);
  --panel-2: rgba(14, 14, 18, 0.72);
  --panel-border: rgba(255, 255, 255, 0.08);
  --text: #f7f7fb;
  --muted: #b1b1bd;
  --accent: #ff5e5e;
  --accent-2: #ff9a3c;
  --accent-3: #ffd166;
  --radius: 22px;
  --max-width: 1160px;
  --shadow-lg: 0 24px 50px rgba(2, 6, 23, 0.55);
  --shadow-md: 0 14px 30px rgba(2, 6, 23, 0.4);
  font-family: "Poppins", "Noto Sans SC", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  scrollbar-width: none;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #000;
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
  scrollbar-width: none;
}

body::-webkit-scrollbar {
  width: 0;
  height: 0;
}

*::-webkit-scrollbar {
  width: 0;
  height: 0;
}

img {
  max-width: 100%;
  display: block;
}

.noise {
  position: fixed;
  inset: 0;
  background-image: url("https://www.transparenttextures.com/patterns/asfalt-dark.png");
  opacity: 0.18;
  pointer-events: none;
  z-index: -1;
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.dynamic-island {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(12, 12, 16, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px);
  z-index: 20;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.45);
}

.island-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 3px 7px 3px 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.brand-logo {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.35);
}

.brand-text {
  display: flex;
  flex-direction: column;
  font-size: 10px;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.brand-text span:first-child {
  color: #ff6a3d;
}

.brand-text span:last-child {
  color: #ffffff;
  opacity: 0.9;
}

.island-divider {
  width: 1px;
  height: 22px;
  background: rgba(255, 255, 255, 0.12);
}

.island-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.island-item {
  color: #b9b9c6;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.island-item i {
  font-size: 13px;
}

.island-item:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.island-active {
  color: #fff !important;
  background: #ff6a3d !important;
  box-shadow: 0 12px 22px rgba(255, 106, 61, 0.45);
}

main {
  padding-top: 0;
}

.section {
  padding: 110px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 140px 6vw 100px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: center;
  gap: 36px;
  position: relative;
  overflow: hidden;
  height: 100vh;
  background-image: url("https://cdn.tebex.io/store/1493633/templates/262799/assets/70d264d5bf7c4ccf0bd0c3b7f399d92d7286334e.png?updated=f93a0f250286621061c086f96c7cb931e357683f667d1c933fcc9038d22ff428");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(10, 10, 12, 0.98) 0%,
    rgba(12, 12, 16, 0.92) 48%,
    rgba(12, 12, 16, 0.72) 100%
  );
  z-index: 0;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 180px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, #000 100%);
  z-index: 0;
}

.hero-title {
  font-size: clamp(56px, 9vw, 104px);
  margin: 0;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -1px;
}

.hero-subtitle {
  margin: 14px 0 20px;
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 600;
}

.hero-desc {
  color: var(--muted);
  line-height: 1.8;
  max-width: 540px;
  font-size: 16px;
}

.hero-text,
.hero-media {
  position: relative;
  z-index: 1;
}

.hero-actions {
  margin-top: 32px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border 0.2s ease;
}

.btn-primary {
  color: #0a0a0c;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 16px 32px rgba(255, 94, 94, 0.4);
  border: none;
}

.btn-ghost {
  color: #fff;
  border: 1px solid var(--panel-border);
  background: rgba(255, 255, 255, 0.04);
}

.btn:hover {
  transform: translateY(-2px);
}

.hero-media {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  min-height: 420px;
}

.hero-glow {
  position: absolute;
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(255, 94, 94, 0.32), transparent 70%);
  filter: blur(50px);
  z-index: 0;
}

.hero-character {
  height: 72vh;
  max-height: 520px;
  width: auto;
  object-fit: contain;
  transform: translateY(6%);
  animation: hero-enter 1.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  opacity: 0;
  z-index: 1;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.45));
}

@keyframes hero-enter {
  to {
    opacity: 1;
  }
}

.section-head {
  text-align: center;
  margin-bottom: 56px;
}

.section-head h3 {
  margin: 16px 0 8px;
  font-size: 32px;
}

.section-head .en {
  color: var(--muted);
  letter-spacing: 3px;
  font-size: 12px;
}

.badge {
  width: 52px;
  height: 52px;
  margin: 0 auto;
  border-radius: 18px;
  background: rgba(255, 94, 94, 0.12);
  display: grid;
  place-items: center;
  color: var(--accent);
  border: 1px solid rgba(255, 94, 94, 0.4);
}


.about-grid {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 48px;
  align-items: center;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.avatar {
  position: relative;
  width: 96px;
}

.avatar::after {
  content: "";
  position: absolute;
  right: -6px;
  bottom: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #1fd874;
  border: 3px solid #0f0f12;
  box-shadow: 0 0 10px rgba(31, 216, 116, 0.55);
}

.avatar img {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.5);
}

.about-text {
  max-width: 760px;
}

.about-text h4 {
  margin: 0 0 26px;
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: 0.2px;
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.about-text .accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
}

.about-columns strong {
  color: #fff;
  font-weight: 700;
}

.accent {
  color: var(--accent);
}

.about-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 36px;
  color: rgba(190, 196, 210, 0.9);
  line-height: 1.9;
  font-size: 16px;
}

.stack-scroll {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 16px 0;
  mask-image: linear-gradient(90deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
}

.stack-scroll::before,
.stack-scroll::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}

.stack-scroll::before {
  left: 0;
  background: linear-gradient(90deg, #07070a 0%, transparent 100%);
}

.stack-scroll::after {
  right: 0;
  background: linear-gradient(270deg, #07070a 0%, transparent 100%);
}

.stack-track {
  display: flex;
  gap: 18px;
  width: max-content;
  animation: scroll-track 40s linear infinite;
}

.stack-track:hover {
  animation-play-state: paused;
}

.stack-item {
  background: rgba(20, 20, 26, 0.9);
  border-radius: 999px;
  padding: 12px 22px;
  border: 1px solid rgba(255, 94, 94, 0.25);
  color: #e4e4f5;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 190px;
  box-shadow: 0 12px 24px rgba(6, 8, 18, 0.45);
}

.stack-item i {
  color: var(--accent-2);
  font-size: 16px;
}

.stack-item small {
  color: var(--muted);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.project-card {
  background: var(--panel);
  border-radius: var(--radius);
  padding: 26px;
  border: 1px solid rgba(255, 94, 94, 0.15);
  box-shadow: var(--shadow-md);
  transition: transform 0.2s ease, border 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 94, 94, 0.5);
  box-shadow: var(--shadow-lg);
}

.project-card p {
  color: var(--muted);
  line-height: 1.6;
}

.tags {
  margin-top: 18px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.tags span {
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  background: rgba(255, 94, 94, 0.12);
  border: 1px solid rgba(255, 94, 94, 0.35);
  color: #ffe2d5;
}

.timeline {
  display: grid;
  gap: 28px;
}

.timeline-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 18px;
  align-items: center;
  padding: 8px 0;
}

.timeline-row p {
  margin: 0;
  font-weight: 500;
  color: var(--text);
}

.timeline-row .year {
  color: rgba(255, 255, 255, 0.35);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 1px;
}

.timeline-row .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.04);
}

.timeline-row.reverse {
  text-align: left;
}

.timeline-row.reverse p {
  justify-self: end;
}

.timeline-row:not(.reverse) p {
  justify-self: start;
}

.timeline-row:not(.reverse) .year {
  justify-self: end;
}

.timeline-row.reverse .year {
  justify-self: start;
}

.contact {
  text-align: center;
}

.contact-desc {
  color: var(--muted);
  margin-bottom: 30px;
}

.contact-icons {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.contact-link {
  text-decoration: none;
  color: inherit;
}

.contact-item {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--panel);
  padding: 18px 24px;
  border-radius: 18px;
  border: 1px solid var(--panel-border);
  min-width: 120px;
  display: grid;
  gap: 8px;
  place-items: center;
  box-shadow: var(--shadow-md);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border 0.25s ease,
    background 0.25s ease;
}

.contact-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(255, 94, 94, 0.3), transparent 70%);
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: -1;
}

.contact-item .icon {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.contact-item span {
  transition: color 0.25s ease, transform 0.25s ease;
}

.contact-link:hover .contact-item {
  transform: translateY(-6px) scale(1.02);
  border-color: rgba(255, 94, 94, 0.6);
  box-shadow: 0 18px 34px rgba(255, 94, 94, 0.25);
  background: rgba(24, 24, 30, 0.95);
}

.contact-link:hover .contact-item::before {
  opacity: 1;
  transform: scale(1);
}

.contact-link:hover .contact-item .icon {
  transform: translateY(-2px) scale(1.08);
  box-shadow: 0 10px 18px rgba(255, 94, 94, 0.35);
}

.contact-link:hover .contact-item span {
  color: #fff;
  transform: translateY(-1px);
}

.contact-item .icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: rgba(255, 94, 94, 0.18);
  display: grid;
  place-items: center;
  font-size: 20px;
}

.site-footer {
  padding: 32px 20px 48px;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
}

.site-footer p {
  margin: 6px 0;
}

.site-footer .heart {
  color: #ff5e5e;
  margin: 0 6px;
}

.site-footer .footer-divider {
  margin: 0 10px;
  color: rgba(255, 255, 255, 0.25);
}

.site-footer .beian-link {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
}

.site-footer .beian-link:hover {
  color: #fff;
}

.scroll-top {
  position: fixed;
  right: 26px;
  bottom: 24px;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: rgba(18, 18, 22, 0.9);
  border: 1px solid var(--panel-border);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.4);
  opacity: 0;
  transform: translateY(10px);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border 0.25s ease,
    background 0.25s ease;
}

.scroll-top i {
  transition: transform 0.25s ease;
}

.scroll-top:hover {
  transform: translateY(-2px) scale(1.05);
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(26, 26, 32, 0.95);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.55);
}

.scroll-top:hover i {
  transform: translateY(-2px);
}

.scroll-top.show {
  opacity: 1;
  transform: translateY(0);
}

@keyframes scroll-track {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 1s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 880px) {
  .dynamic-island {
    flex-wrap: wrap;
    justify-content: center;
    padding: 12px 14px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .avatar {
    display: flex;
    justify-content: center;
  }

  .hero-character {
    height: auto;
    max-height: 420px;
    transform: scale(1);
  }

  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .island-label {
    display: none;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .section {
    padding: 90px 20px;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }
}
