/* ==================== 基础重置 start ==================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family:
    "PingFang SC",
    "Hiragino Sans GB",
    "Microsoft YaHei",
    "Noto Sans SC",
    "Noto Sans CJK SC",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    "Apple Color Emoji",
    "Segoe UI Emoji",
    "Segoe UI Symbol",
    sans-serif;
  color: #fff;
  background:
    linear-gradient(120deg, rgba(16, 10, 26, 0.82), rgba(43, 25, 57, 0.64), rgba(16, 10, 26, 0.88)),
    #100a1a;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}
/* ==================== 基础重置 end ==================== */

/* ==================== 背景装饰 start ==================== */
.page-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 20% 18%, rgba(255, 129, 163, 0.28), transparent 32%),
    radial-gradient(circle at 80% 10%, rgba(180, 132, 255, 0.25), transparent 34%),
    radial-gradient(circle at 55% 88%, rgba(255, 214, 143, 0.16), transparent 34%);
}

.page-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent 75%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent 75%);
}
/* ==================== 背景装饰 end ==================== */

/* ==================== 布局 start ==================== */
.site-wrap {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 42px 0 34px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 42px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
  font-size: 15px;
}

.topnav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.topnav a {
  padding: 9px 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}

.topnav a:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.44);
}
/* ==================== 布局 end ==================== */

/* ==================== 首屏 start ==================== */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.88fr);
  align-items: end;
  gap: 28px;
  margin-bottom: 28px;
}

.hero-copy {
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 34px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.07));
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  letter-spacing: 0.08em;
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f7a7c4;
  box-shadow: 0 0 20px rgba(247, 167, 196, 0.8);
}

h1 {
  margin: 0;
  font-size: clamp(44px, 7vw, 92px);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.hero-subtitle {
  max-width: 650px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(15px, 1.8vw, 19px);
  line-height: 1.8;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.hero-tags span {
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
}

.profile-card {
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.profile-label {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
  letter-spacing: 0.12em;
}

.profile-name {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.4;
}

.profile-meta {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
}

.profile-meta div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.profile-meta strong {
  color: #fff;
  font-weight: 600;
  text-align: right;
}
/* ==================== 首屏 end ==================== */

/* ==================== 分区 start ==================== */
.section {
  margin-top: 28px;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 34px;
  background: rgba(12, 8, 20, 0.42);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.section-title {
  margin: 0;
  font-size: clamp(22px, 3vw, 32px);
  letter-spacing: -0.02em;
}

.section-desc {
  max-width: 520px;
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
  line-height: 1.7;
}

.section-badge {
  flex: 0 0 auto;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}
/* ==================== 分区 end ==================== */

/* ==================== 链接卡片 start ==================== */
.link-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.link-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 156px;
  padding: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.055));
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.link-card::after {
  content: "";
  position: absolute;
  width: 110px;
  height: 110px;
  right: -42px;
  top: -42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.link-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.36);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.075));
}

.link-card:hover::after {
  transform: scale(1.18);
  opacity: 0.9;
}

.link-type {
  position: relative;
  z-index: 1;
  width: fit-content;
  margin-bottom: 22px;
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.64);
  font-size: 12px;
  letter-spacing: 0.06em;
}

.link-title {
  position: relative;
  z-index: 1;
  margin: auto 0 8px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.4;
}

.link-url {
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
  word-break: break-all;
}
/* ==================== 链接卡片 end ==================== */

/* ==================== 页脚 start ==================== */
.footer {
  margin-top: 28px;
  padding: 22px 6px 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
  line-height: 1.75;
  text-align: center;
}
/* ==================== 页脚 end ==================== */

/* ==================== 响应式 start ==================== */
@media (max-width: 980px) {
  .site-wrap {
    width: min(100% - 28px, 760px);
    padding-top: 24px;
  }

  .topbar,
  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .topnav {
    justify-content: flex-start;
  }

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

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

/* 移动端：如果配置了 mobileImage，js 会注入 body::before 背景 */
@media (max-width: 980px), (hover: none) and (pointer: coarse) {
  body {
    min-height: 100vh;
    min-height: 100dvh;
  }

  .page-noise {
    display: none;
  }

  .page-glow {
    z-index: 1;
    opacity: 0.55;
  }

  .site-wrap {
    z-index: 2;
  }

  .hero-copy,
  .profile-card,
  .section {
    background: rgba(12, 8, 20, 0.42);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

@media (max-width: 620px) {
  .site-wrap {
    width: calc(100% - 22px);
  }

  .hero-copy,
  .profile-card,
  .section {
    border-radius: 24px;
    padding: 22px;
  }

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

  .link-card {
    min-height: 136px;
  }

  .profile-meta div {
    flex-direction: column;
    gap: 4px;
  }

  .profile-meta strong {
    text-align: left;
  }
}
/* ==================== 响应式 end ==================== */
