:root {
  --bg: #08111f;
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.68);
  --border: rgba(255, 255, 255, 0.16);
  --accent: #f4bd79;
  --radius: 22px;
  --width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);

  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;

  -webkit-font-smoothing: antialiased;
}

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


/* 顶部导航 */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;

  z-index: 100;

  background: rgba(7, 13, 24, 0.24);

  border-bottom:
    1px solid rgba(255, 255, 255, 0.08);

  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.nav-inner {
  width: min(var(--width), calc(100% - 48px));
  height: 70px;

  margin: auto;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 21px;
  font-weight: 700;
}

nav {
  display: flex;
  gap: 30px;
}

nav a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.74);

  transition: 0.2s;
}

nav a:hover {
  color: white;
}


/* 首页 */

.hero {
  min-height: 100vh;
  position: relative;

  background-image:
    url("/assets/images/hero.jpg");

  background-size: cover;

  background-position:
    center center;
}

.hero-shade {
  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      90deg,
      rgba(5, 10, 18, 0.02) 0%,
      rgba(5, 10, 18, 0.08) 38%,
      rgba(5, 10, 18, 0.40) 70%,
      rgba(5, 10, 18, 0.62) 100%
    );
}

.hero-content {
  width: min(var(--width), calc(100% - 48px));
  min-height: 100vh;

  margin: auto;

  position: relative;
  z-index: 2;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;

  text-align: right;
}

.hero-small {
  margin: 0 0 18px;

  font-size: 12px;
  letter-spacing: 0.18em;

  color: rgba(255, 255, 255, 0.66);
}

.hero h1 {
  margin: 0;

  font-size:
    clamp(72px, 9vw, 130px);

  line-height: 0.9;

  letter-spacing: -0.06em;

  text-shadow:
    0 10px 35px rgba(0, 0, 0, 0.2);
}

.hero-title {
  margin: 34px 0 0;

  font-size:
    clamp(20px, 2vw, 28px);

  font-weight: 500;
}

.hero-text {
  max-width: 500px;

  margin: 8px 0 0;

  color: var(--muted);
}

.hero-buttons {
  margin-top: 30px;

  display: flex;
  gap: 12px;
}

.button {
  min-width: 110px;

  padding: 11px 22px;

  border-radius: 999px;

  text-align: center;

  font-size: 14px;
  font-weight: 600;

  transition: 0.2s;
}

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

.primary {
  background: rgba(255, 255, 255, 0.92);
  color: #162031;
}

.glass-button {
  background:
    rgba(255, 255, 255, 0.08);

  border:
    1px solid rgba(255, 255, 255, 0.26);

  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.scroll-down {
  position: absolute;

  bottom: 24px;
  left: 50%;

  transform: translateX(-50%);

  z-index: 5;

  font-size: 24px;

  color:
    rgba(255, 255, 255, 0.7);
}


/* 正文区域 */

main {
  background:
    radial-gradient(
      circle at 20% 30%,
      rgba(59, 96, 150, 0.18),
      transparent 35%
    ),

    radial-gradient(
      circle at 80% 70%,
      rgba(226, 147, 69, 0.11),
      transparent 30%
    ),

    #08111f;
}

.section {
  width:
    min(var(--width), calc(100% - 48px));

  margin: auto;

  padding: 110px 0 10px;
}

.section-title {
  display: flex;
  gap: 20px;

  margin-bottom: 38px;
}

.section-title span {
  color: var(--accent);

  font-size: 13px;
  font-weight: 700;
}

.section-title h2 {
  margin: 0;

  font-size:
    clamp(34px, 4vw, 50px);

  letter-spacing: -0.04em;
}

.section-title p {
  margin: 8px 0 0;
  color: var(--muted);
}


/* 毛玻璃 */

.glass-card {
  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.11),
      rgba(255, 255, 255, 0.055)
    );

  border:
    1px solid var(--border);

  border-radius:
    var(--radius);

  backdrop-filter:
    blur(20px) saturate(120%);

  -webkit-backdrop-filter:
    blur(20px) saturate(120%);

  box-shadow:
    0 25px 70px
    rgba(0, 0, 0, 0.22);
}


/* Projects */

.cards {
  display: grid;

  grid-template-columns:
    repeat(3, 1fr);

  gap: 20px;
}

.cards article {
  min-height: 240px;

  padding: 28px;

  display: flex;
  flex-direction: column;

  transition: 0.22s;
}

.cards article:hover {
  transform: translateY(-5px);

  border-color:
    rgba(255, 255, 255, 0.28);
}

.glass-card small {
  color: var(--accent);

  font-size: 11px;
  font-weight: 700;

  letter-spacing: 0.14em;
}

.glass-card h3 {
  margin: 24px 0 10px;

  font-size: 25px;
}

.glass-card p {
  color: var(--muted);
}

.cards strong {
  margin-top: auto;

  padding-top: 20px;

  font-size: 12px;
}


/* About */

.about {
  padding: 26px;

  display: grid;

  grid-template-columns:
    minmax(260px, 0.8fr)
    minmax(320px, 1.2fr);

  gap: 42px;

  align-items: center;
}

.portrait-box {
  overflow: hidden;

  border-radius: 18px;

  aspect-ratio: 4 / 5;
}

.portrait-box img {
  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center top;
}

.about-text {
  padding-right: 20px;
}

.about-text h3 {
  margin: 12px 0 24px;

  font-size:
    clamp(30px, 4vw, 46px);

  line-height: 1.1;

  letter-spacing: -0.04em;
}


/* Server */

.server-grid {
  display: grid;

  grid-template-columns:
    repeat(4, 1fr);

  gap: 18px;
}

.server-card {
  min-height: 180px;

  padding: 25px;

  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.server-card small {
  margin-bottom: auto;
}

.server-card strong {
  font-size: 24px;
}

.server-card p {
  margin: 4px 0 0;
}


/* Footer */

footer {
  width:
    min(var(--width), calc(100% - 48px));

  margin: 110px auto 0;

  padding: 32px 0 45px;

  border-top:
    1px solid rgba(255, 255, 255, 0.1);

  display: flex;
  justify-content: space-between;

  font-size: 12px;

  color:
    rgba(255, 255, 255, 0.45);
}


/* 手机 */

@media (max-width: 800px) {

  .nav-inner {
    width: calc(100% - 30px);
  }

  nav {
    gap: 14px;
  }

  nav a {
    font-size: 12px;
  }

  .hero {
    background-position: 38% center;
  }

  .hero-shade {
    background:
      linear-gradient(
        180deg,
        rgba(5, 10, 18, 0.08),
        rgba(5, 10, 18, 0.16) 40%,
        rgba(5, 10, 18, 0.7)
      );
  }

  .hero-content {
    width: calc(100% - 30px);

    justify-content: flex-end;
    align-items: flex-start;

    padding-bottom: 100px;

    text-align: left;
  }

  .hero-buttons {
    justify-content: flex-start;
  }

  .section {
    width: calc(100% - 30px);

    padding-top: 80px;
  }

  .cards,
  .server-grid {
    grid-template-columns: 1fr;
  }

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

  footer {
    width: calc(100% - 30px);

    flex-direction: column;

    gap: 5px;
  }
}