:root {
  color-scheme: dark;
  --bg: #070a0f;
  --surface: #0f151f;
  --surface-2: #151d28;
  --ink: #f8fbff;
  --muted: #a9b6c8;
  --line: rgba(255, 255, 255, 0.15);
  --cyan: #49d6ce;
  --blue: #58a6ff;
  --amber: #ffbf5c;
  --coral: #ff756b;
  --green: #74d17d;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
  overflow-x: hidden;
}

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

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 56px);
  background: rgba(7, 10, 15, 0.78);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: grid;
  gap: 2px;
  min-width: 190px;
}

.brand span {
  color: var(--cyan);
  font-size: 18px;
  font-weight: 900;
}

.brand small {
  color: #dce8f5;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: clamp(14px, 3vw, 34px);
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.nav-links a:hover {
  color: var(--ink);
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  padding: 126px clamp(20px, 6vw, 76px) 32px;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 10, 15, 0.94), rgba(7, 10, 15, 0.36) 55%, rgba(7, 10, 15, 0.84)),
    linear-gradient(0deg, rgba(7, 10, 15, 1), rgba(7, 10, 15, 0.08) 52%, rgba(7, 10, 15, 0.78)),
    url("背景.png") center / cover no-repeat;
  transform: scale(1.02);
}

.hero-content {
  position: relative;
  max-width: 900px;
  padding-bottom: 74px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--amber);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 18px;
  max-width: 880px;
  font-size: clamp(40px, 5.5vw, 72px);
  line-height: 1.06;
  overflow-wrap: anywhere;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.18;
  overflow-wrap: anywhere;
}

h3 {
  margin-bottom: 10px;
  font-size: 21px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

p {
  color: var(--muted);
  line-height: 1.78;
  overflow-wrap: anywhere;
}

.hero-copy {
  max-width: 800px;
  font-size: 19px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 900;
}

.button.primary {
  background: var(--cyan);
  color: #061014;
  border-color: var(--cyan);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.08);
}

.hero-strip {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: rgba(7, 10, 15, 0.74);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.hero-strip span {
  min-height: 58px;
  display: grid;
  place-items: center;
  padding: 12px;
  color: #dce8f5;
  text-align: center;
  font-weight: 800;
}

.hero-strip span + span {
  border-left: 1px solid var(--line);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  padding: 0 clamp(20px, 6vw, 76px) 42px;
}

.metrics div {
  min-height: 108px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  text-align: center;
}

.metrics div:first-child {
  border-left: 1px solid var(--line);
}

.metrics strong {
  display: block;
  margin-bottom: 8px;
  color: var(--green);
  font-size: 30px;
}

.metrics span {
  color: var(--muted);
}

.section {
  padding: 86px clamp(20px, 6vw, 76px);
}

.section-heading {
  max-width: 860px;
  margin-bottom: 34px;
}

.profile-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.54fr);
  gap: 34px;
  align-items: stretch;
}

.profile-copy,
.profile-visual,
.feature-card,
.case-grid article,
.skill-grid article,
.video-grid article {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.profile-copy {
  padding: clamp(26px, 4vw, 42px);
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.pill-list span {
  padding: 10px 12px;
  color: #dfeaf8;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 800;
}

.profile-visual {
  margin: 0;
  display: grid;
  grid-template-rows: 1fr auto;
}

.profile-visual img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

.profile-visual figcaption {
  padding: 16px 20px;
  color: #dfeaf8;
  border-top: 1px solid var(--line);
  font-weight: 900;
  text-align: center;
}

.projects-section,
.video-section {
  background: #0b1017;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  margin-bottom: 18px;
}

.feature-card.large {
  grid-row: span 2;
}

.feature-card img {
  width: 100%;
  height: 258px;
  object-fit: cover;
}

.feature-card.large img {
  height: 530px;
}

.feature-card div,
.case-grid article div {
  padding: 22px;
}

.feature-card span,
.case-grid article span {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--coral);
  font-size: 13px;
  font-weight: 900;
}

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

.case-grid img {
  width: 100%;
  height: 230px;
  object-fit: cover;
}

.skills-section {
  background: var(--bg);
}

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

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

.skill-grid span {
  display: block;
  margin-bottom: 28px;
  color: var(--blue);
  font-size: 30px;
  font-weight: 900;
}

.video-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 18px;
  align-items: start;
}

.video-grid article {
  display: grid;
  gap: 16px;
  padding: 22px;
}

.video-grid h3 {
  margin: 0;
}

.video-grid video {
  width: 100%;
  max-height: 660px;
  background: #000;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: contain;
}

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

.gallery-grid img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
  gap: 36px;
  padding: 68px clamp(20px, 6vw, 76px);
  background: #05070b;
  border-top: 1px solid var(--line);
}

.site-footer address {
  display: grid;
  gap: 12px;
  color: var(--muted);
  font-style: normal;
}

.site-footer a:hover {
  color: var(--cyan);
}

@media (max-width: 1080px) {
  .profile-section,
  .feature-grid,
  .video-grid,
  .site-footer {
    grid-template-columns: 1fr;
  }

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

  .feature-card.large {
    grid-row: auto;
  }

  .feature-card.large img,
  .feature-card img {
    height: 300px;
  }
}

@media (max-width: 720px) {
  .site-header {
    position: sticky;
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding: 14px 16px;
  }

  .brand {
    min-width: 0;
  }

  .brand span {
    font-size: 16px;
  }

  .nav-links {
    width: 100%;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
    font-size: 13px;
    scrollbar-width: none;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .nav-links a {
    flex: 0 0 auto;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid var(--line);
    border-radius: 8px;
    white-space: nowrap;
  }

  .hero {
    min-height: calc(100svh - 94px);
    align-items: end;
    padding: 42px 16px 20px;
  }

  .hero-media {
    background:
      linear-gradient(90deg, rgba(7, 10, 15, 0.94), rgba(7, 10, 15, 0.55)),
      linear-gradient(0deg, rgba(7, 10, 15, 1), rgba(7, 10, 15, 0.18) 58%, rgba(7, 10, 15, 0.76)),
      url("背景.png") center / cover no-repeat;
  }

  .hero-content {
    padding-bottom: 28px;
  }

  h1 {
    font-size: clamp(30px, 10vw, 38px);
    line-height: 1.12;
  }

  h2 {
    font-size: clamp(24px, 7vw, 30px);
  }

  h3 {
    font-size: 19px;
  }

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

  .button {
    width: 100%;
  }

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

  .hero-strip span {
    min-height: 52px;
    font-size: 13px;
  }

  .hero-strip span + span {
    border-left: 1px solid var(--line);
  }

  .hero-strip span:nth-child(odd) {
    border-left: 0;
  }

  .hero-strip span:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0 16px 34px;
  }

  .metrics div {
    min-height: 96px;
    padding: 18px 12px;
    border-left: 1px solid var(--line);
  }

  .metrics strong {
    font-size: 24px;
  }

  .case-grid,
  .skill-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .profile-visual img,
  .feature-card.large img,
  .feature-card img,
  .case-grid img {
    height: auto;
    aspect-ratio: 16 / 10;
    min-height: 0;
  }

  .section {
    padding-left: 16px;
    padding-right: 16px;
    padding-top: 62px;
    padding-bottom: 62px;
  }

  .profile-copy,
  .feature-card div,
  .case-grid article div,
  .skill-grid article,
  .video-grid article {
    padding: 18px;
  }

  .video-grid video {
    max-height: none;
    aspect-ratio: 16 / 9;
  }

  .site-footer {
    padding: 54px 16px;
  }
}

@media (max-width: 420px) {
  .hero {
    padding-top: 32px;
  }

  .hero-actions {
    margin-top: 24px;
  }

  .hero-strip,
  .metrics {
    grid-template-columns: 1fr;
  }

  .hero-strip span + span,
  .hero-strip span:nth-child(n + 3) {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .metrics div {
    min-height: 86px;
  }
}
