﻿:root {
  color-scheme: light;
  --ink: #1f4770;
  --muted: #6f8dad;
  --line: rgba(255, 255, 255, 0.7);
  --paper: #c7e2f4;
  --glass: rgba(255, 255, 255, 0.74);
  --glass-strong: rgba(255, 255, 255, 0.86);
  --accent: #4aa3ff;
  --accent-deep: #2088f2;
  --shadow: 0 16px 42px rgba(76, 133, 177, 0.18);
  --content-width: min(1110px, calc(100vw - 40px));
  --section-gap: 22px;
}

* {
  box-sizing: border-box;
}

body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220' viewBox='0 0 220 220'%3E%3Cdefs%3E%3Cg id='pad' fill='%2324598B'%3E%3Cpath d='M11.5 6.027a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0m-1.5 1.5a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1m2.5-.5a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0m-1.5 1.5a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1m-6.5-3h1v1h1v1h-1v1h-1v-1h-1v-1h1z'/%3E%3Cpath d='M3.051 3.26a.5.5 0 0 1 .354-.613l1.932-.518a.5.5 0 0 1 .62.39c.655-.079 1.35-.117 2.043-.117.72 0 1.443.041 2.12.126a.5.5 0 0 1 .622-.399l1.932.518a.5.5 0 0 1 .306.729q.211.136.373.297c.408.408.78 1.05 1.095 1.772.32.733.599 1.591.805 2.466s.34 1.78.364 2.606c.024.816-.059 1.602-.328 2.21a1.42 1.42 0 0 1-1.445.83c-.636-.067-1.115-.394-1.513-.773-.245-.232-.496-.526-.739-.808-.126-.148-.25-.292-.368-.423-.728-.804-1.597-1.527-3.224-1.527s-2.496.723-3.224 1.527c-.119.131-.242.275-.368.423-.243.282-.494.575-.739.808-.398.38-.877.706-1.513.773a1.42 1.42 0 0 1-1.445-.83c-.27-.608-.352-1.395-.329-2.21.024-.826.16-1.73.365-2.606.206-.875.486-1.733.805-2.466.315-.722.687-1.364 1.094-1.772a2.3 2.3 0 0 1 .433-.335l-.028-.079zm2.036.412c-.877.185-1.469.443-1.733.708-.276.276-.587.783-.885 1.465a14 14 0 0 0-.748 2.295 12.4 12.4 0 0 0-.339 2.406c-.022.755.062 1.368.243 1.776a.42.42 0 0 0 .426.24c.327-.034.61-.199.929-.502.212-.202.4-.423.615-.674.133-.156.276-.323.44-.504C4.861 9.969 5.978 9.027 8 9.027s3.139.942 3.965 1.855c.164.181.307.348.44.504.214.251.403.472.615.674.318.303.601.468.929.503a.42.42 0 0 0 .426-.241c.18-.408.265-1.02.243-1.776a12.4 12.4 0 0 0-.339-2.406 14 14 0 0 0-.748-2.295c-.298-.682-.61-1.19-.885-1.465-.264-.265-.856-.523-1.733-.708-.85-.179-1.877-.27-2.913-.27s-2.063.091-2.913.27'/%3E%3C/g%3E%3C/defs%3E%3Cg opacity='0.12'%3E%3Cuse href='%23pad' transform='translate(34 34) rotate(-18 24 24) scale(3)'/%3E%3Cuse href='%23pad' transform='translate(132 124) rotate(-18 24 24) scale(2.65)'/%3E%3C/g%3E%3C/svg%3E"),
    radial-gradient(circle at 8% 12%, rgba(255, 255, 255, 0.82) 0 34px, transparent 35px),
    radial-gradient(circle at 88% 3%, rgba(255, 255, 255, 0.76) 0 28px, transparent 29px),
    linear-gradient(rgba(238, 206, 113, 0.2) 1px, transparent 1px),
    linear-gradient(90deg, rgba(238, 206, 113, 0.2) 1px, transparent 1px),
    linear-gradient(180deg, #eaf7ff 0, #d8efff 38%, #c0e3f8 100%);
  background-size: 220px 220px, auto, auto, 32px 32px, 32px 32px, auto;
  background-position: 26px 34px, 0 0, 0 0, 0 0, 0 0, 0 0;
  background-attachment: fixed;
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: auto 0 0;
  z-index: 0;
  height: 260px;
  pointer-events: none;
  background:
    radial-gradient(circle at 2% 100%, rgba(215, 239, 255, 0.82) 0 94px, transparent 95px),
    radial-gradient(circle at 8% 95%, rgba(197, 229, 250, 0.7) 0 116px, transparent 117px),
    radial-gradient(circle at 96% 78%, rgba(211, 236, 253, 0.8) 0 112px, transparent 113px),
    radial-gradient(circle at 88% 92%, rgba(191, 225, 247, 0.62) 0 132px, transparent 133px);
}

.top-fixed-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 18;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 28px 0 120px;
  border-bottom: 1px solid rgba(104, 163, 204, 0.34);
  background: rgba(234, 247, 255, 0.58);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.74) inset,
    0 10px 28px rgba(61, 116, 176, 0.1);
  backdrop-filter: blur(14px) saturate(1.12);
}

.decade-timeline {
  position: absolute;
  left: 16px;
  bottom: 9px;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 7px;
  width: 98px;
  justify-content: center;
  color: #5f83a8;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  pointer-events: none;
}

.decade-timeline strong {
  color: #24598b;
  font-size: 12px;
}

.timeline-rule {
  position: relative;
  width: 13px;
  height: 1px;
  background: rgba(104, 163, 204, 0.68);
}

.timeline-rule::before,
.timeline-rule::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(104, 163, 204, 0.82);
  transform: translateY(-50%);
}

.timeline-rule::before {
  left: -2px;
}

.timeline-rule::after {
  right: -2px;
}

.top-nav-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  min-width: 0;
}

.bili-home-link,
.contact-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #24598b;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(74, 130, 174, 0.12);
}

.contact-chip {
  gap: 7px;
  color: #365f86;
}

.contact-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  background: currentColor;
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: contain;
}

.contact-icon--wechat {
  color: #07c160;
  mask-image: url("https://cdn.simpleicons.org/wechat/07C160");
}

.contact-icon--qq {
  color: #1ebafc;
  mask-image: url("https://cdn.simpleicons.org/qq/1EBAFC");
}

.contact-icon--mail {
  color: #168de2;
  mask-image: url("https://cdn.simpleicons.org/maildotru/168DE2");
}

.contact-icon--bilibili {
  color: #00a1d6;
  mask-image: url("https://cdn.simpleicons.org/bilibili/00A1D6");
}

.bili-home-link:hover,
.bili-home-link:focus-visible,
.contact-chip[href]:hover,
.contact-chip[href]:focus-visible {
  background: linear-gradient(180deg, #5bb3ff, #258df5);
  color: #fff;
  outline: none;
}

.cloud-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.cloud {
  position: absolute;
  top: var(--cloud-top);
  left: -260px;
  width: var(--cloud-width);
  height: calc(var(--cloud-width) * 0.32);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.66);
  background:
    radial-gradient(circle at 28% 20%, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.3) 42%, transparent 68%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.58), rgba(219, 239, 248, 0.22));
  box-shadow:
    inset 0 1px 14px rgba(255, 255, 255, 0.58),
    inset 0 -10px 24px rgba(92, 139, 160, 0.08),
    0 18px 48px rgba(80, 128, 148, 0.12);
  backdrop-filter: blur(10px) saturate(1.25);
  filter: drop-shadow(0 16px 26px rgba(67, 111, 132, 0.08));
  opacity: var(--cloud-opacity);
  transform: translateX(var(--cloud-start)) scale(var(--cloud-scale));
  animation: cloudDrift var(--cloud-duration) linear infinite;
}

.cloud::before,
.cloud::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: inherit;
  background:
    radial-gradient(circle at 34% 20%, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.34) 42%, transparent 70%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.5), rgba(218, 238, 248, 0.18));
  box-shadow: inherit;
  backdrop-filter: inherit;
}

.cloud::before {
  left: 16%;
  bottom: 20%;
  width: 36%;
  aspect-ratio: 1;
}

.cloud::after {
  right: 18%;
  bottom: 12%;
  width: 44%;
  aspect-ratio: 1;
}

.cloud--one {
  --cloud-top: 58px;
  --cloud-width: 210px;
  --cloud-opacity: 0.42;
  --cloud-scale: 1;
  --cloud-start: 8vw;
  --cloud-duration: 82s;
}

.cloud--two {
  --cloud-top: 118px;
  --cloud-width: 280px;
  --cloud-opacity: 0.34;
  --cloud-scale: 0.86;
  --cloud-start: 42vw;
  --cloud-duration: 110s;
  animation-delay: -38s;
}

.cloud--three {
  --cloud-top: 205px;
  --cloud-width: 240px;
  --cloud-opacity: 0.28;
  --cloud-scale: 0.74;
  --cloud-start: 72vw;
  --cloud-duration: 96s;
  animation-delay: -64s;
}

.cloud--four {
  --cloud-top: 18px;
  --cloud-width: 170px;
  --cloud-opacity: 0.3;
  --cloud-scale: 0.68;
  --cloud-start: 28vw;
  --cloud-duration: 128s;
  animation-delay: -22s;
}

.cloud--side {
  top: var(--cloud-top);
  width: var(--cloud-width);
  opacity: var(--cloud-opacity);
  animation-duration: var(--cloud-duration);
  animation-delay: 0s;
}

.cloud--side-left {
  left: -280px;
  animation-name: sideCloudLeft;
}

.cloud--side-right {
  right: -280px;
  left: auto;
  animation-name: sideCloudRight;
}

.top-banner {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 285px;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(234, 247, 255, 0.52), rgba(234, 247, 255, 0.62), rgba(234, 247, 255, 0.5)),
    linear-gradient(180deg, rgba(234, 247, 255, 0.12), rgba(234, 247, 255, 0.38)),
    url("images/banner.jpg"),
    radial-gradient(circle at 69% 84%, rgba(255, 255, 255, 0.78) 0 44px, transparent 45px),
    radial-gradient(circle at 92% 93%, rgba(214, 236, 252, 0.78) 0 72px, transparent 73px);
  background-position: center, center, 24% 32%, center, center;
  background-size: auto, auto, 145% auto, auto, auto;
}

.top-banner::after {
  content: "";
  display: none;
}

.banner-divider {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 14px;
  margin-top: -14px;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(204, 231, 248, 0.62));
  box-shadow:
    0 -1px 0 rgba(99, 160, 208, 0.2),
    0 10px 34px rgba(88, 145, 190, 0.16);
}

.banner-divider::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: rgba(89, 151, 203, 0.28);
}

.banner-cloud {
  position: absolute;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow:
    28px -18px 0 10px rgba(255, 255, 255, 0.62),
    62px 2px 0 2px rgba(255, 255, 255, 0.62);
  filter: blur(0.3px);
}

.banner-cloud--left {
  left: 48px;
  top: 72px;
  width: 78px;
  height: 32px;
}

.banner-cloud--right {
  right: 80px;
  top: 24px;
  width: 82px;
  height: 30px;
}

.banner-fish {
  position: absolute;
  color: rgba(57, 142, 216, 0.42);
  font-size: 22px;
  letter-spacing: 4px;
  transform: rotate(-8deg);
}

.banner-fish--one {
  top: 76px;
  right: 306px;
}

.banner-fish--two {
  top: 96px;
  right: 214px;
  font-size: 18px;
  opacity: 0.78;
}

button,
a {
  font: inherit;
}

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

.site-shell {
  position: relative;
  z-index: 3;
  width: var(--content-width);
  margin: -225px auto 0;
  padding: 0 0 64px;
}

.filter-button {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  color: #4f6878;
  box-shadow: 0 8px 24px rgba(74, 109, 126, 0.08);
}

.profile {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  align-items: start;
  min-height: 86px;
  padding: 0 36px 18px 0;
}

.content-area {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  margin-top: 126px;
}

.latest-strip {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  min-height: 34px;
  margin: 0 0 var(--section-gap);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.latest-strip__lead {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 12px;
  color: #6f8dad;
  font-size: 12px;
}

.latest-strip__lead strong {
  color: #24598b;
  font-size: 17px;
  white-space: nowrap;
}

.latest-strip__icon {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  background: #24598b;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M11.5 6.027a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0m-1.5 1.5a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1m2.5-.5a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0m-1.5 1.5a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1m-6.5-3h1v1h1v1h-1v1h-1v-1h-1v-1h1z'/%3E%3Cpath d='M3.051 3.26a.5.5 0 0 1 .354-.613l1.932-.518a.5.5 0 0 1 .62.39c.655-.079 1.35-.117 2.043-.117.72 0 1.443.041 2.12.126a.5.5 0 0 1 .622-.399l1.932.518a.5.5 0 0 1 .306.729q.211.136.373.297c.408.408.78 1.05 1.095 1.772.32.733.599 1.591.805 2.466s.34 1.78.364 2.606c.024.816-.059 1.602-.328 2.21a1.42 1.42 0 0 1-1.445.83c-.636-.067-1.115-.394-1.513-.773-.245-.232-.496-.526-.739-.808-.126-.148-.25-.292-.368-.423-.728-.804-1.597-1.527-3.224-1.527s-2.496.723-3.224 1.527c-.119.131-.242.275-.368.423-.243.282-.494.575-.739.808-.398.38-.877.706-1.513.773a1.42 1.42 0 0 1-1.445-.83c-.27-.608-.352-1.395-.329-2.21.024-.826.16-1.73.365-2.606.206-.875.486-1.733.805-2.466.315-.722.687-1.364 1.094-1.772a2.3 2.3 0 0 1 .433-.335l-.028-.079zm2.036.412c-.877.185-1.469.443-1.733.708-.276.276-.587.783-.885 1.465a14 14 0 0 0-.748 2.295 12.4 12.4 0 0 0-.339 2.406c-.022.755.062 1.368.243 1.776a.42.42 0 0 0 .426.24c.327-.034.61-.199.929-.502.212-.202.4-.423.615-.674.133-.156.276-.323.44-.504C4.861 9.969 5.978 9.027 8 9.027s3.139.942 3.965 1.855c.164.181.307.348.44.504.214.251.403.472.615.674.318.303.601.468.929.503a.42.42 0 0 0 .426-.241c.18-.408.265-1.02.243-1.776a12.4 12.4 0 0 0-.339-2.406 14 14 0 0 0-.748-2.295c-.298-.682-.61-1.19-.885-1.465-.264-.265-.856-.523-1.733-.708-.85-.179-1.877-.27-2.913-.27s-2.063.091-2.913.27'/%3E%3C/svg%3E");
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: contain;
}

.latest-strip__link {
  flex: 0 0 auto;
  color: #2088f2;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.latest-strip__link::after {
  content: ">";
  margin-left: 6px;
}

.avatar-badge {
  position: fixed;
  top: 58px;
  left: 26px;
  z-index: 20;
  --badge-line: rgba(104, 163, 204, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 78px;
  height: 100px;
  padding-bottom: 14px;
  border: 0;
  background: rgba(247, 252, 255, 0.82);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 82%, 0 100%);
  filter: drop-shadow(0 10px 22px rgba(74, 130, 174, 0.16));
  backdrop-filter: blur(16px) saturate(1.12);
}

.avatar-badge::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 78 100' preserveAspectRatio='none'%3E%3Cpath d='M1.5 0 V98 L39 82 L76.5 98 V0' fill='none' stroke='rgba(104, 163, 204, 0.72)' stroke-width='3' stroke-linecap='square' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}

.avatar-badge::after {
  content: none;
}

.avatar {
  width: 54px;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 5px solid rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 28px rgba(52, 107, 151, 0.18);
  object-fit: cover;
}

.profile__copy {
  position: relative;
  min-width: 0;
}

h1 {
  margin-bottom: 6px;
  color: #24598b;
  font-size: clamp(38px, 5.2vw, 58px);
  line-height: 1;
  letter-spacing: 0;
  text-shadow: 0 4px 0 rgba(255, 255, 255, 0.5);
}

.hero__text {
  max-width: 560px;
  margin-bottom: 0;
  color: #365f86;
  font-size: 14px;
  line-height: 1.45;
}

.award-row {
  position: absolute;
  left: 0;
  top: 96px;
  display: flex;
  align-items: flex-end;
  gap: 18px;
  margin-top: 0;
  min-height: 76px;
  pointer-events: none;
}

.award-medal {
  position: relative;
  display: inline-flex;
  align-items: flex-end;
  justify-content: center;
  width: var(--award-size);
  height: var(--award-size);
  color: transparent;
  font-size: 0;
  filter: drop-shadow(0 12px 20px rgba(78, 123, 158, 0.18));
}

.award-medal::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.74), transparent 28%),
    linear-gradient(145deg, var(--award-light), var(--award-main) 52%, var(--award-deep));
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m8 0 1.18 2.39 2.64.38-1.91 1.86.45 2.63L8 6.02 5.64 7.26l.45-2.63-1.91-1.86 2.64-.38z'/%3E%3Cpath d='M4 7.1V16l4-2 4 2V7.1l-4 2z'/%3E%3C/svg%3E");
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: contain;
}

.award-medal::after {
  content: attr(aria-label);
  position: absolute;
  left: 50%;
  bottom: -20px;
  transform: translateX(-50%);
  min-width: max-content;
  color: #24598b;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  opacity: 0.92;
}

.award-medal--large {
  --award-size: 76px;
  --award-light: #ffe89a;
  --award-main: #f6b832;
  --award-deep: #d88912;
}

.award-medal--medium {
  --award-size: 58px;
  --award-light: #eff8ff;
  --award-main: #9bc7e6;
  --award-deep: #5d95bd;
}

.award-medal--small {
  --award-size: 42px;
  --award-light: #c8f1ff;
  --award-main: #4aa3ff;
  --award-deep: #24598b;
}

.page {
  position: relative;
  grid-area: 1 / 1;
  display: block;
  padding: 54px 30px 38px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 30px 30px 0 0;
  background: rgba(247, 252, 255, 0.72);
  box-shadow: 0 20px 64px rgba(74, 130, 174, 0.16);
  backdrop-filter: blur(18px) saturate(1.12);
}

.page::before {
  content: none;
}

.toolbar {
  position: sticky;
  top: 72px;
  grid-area: 1 / 1;
  justify-self: start;
  align-self: start;
  margin-left: calc(100% + 24px);
  width: 190px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  min-height: 0;
  margin-bottom: 0;
  padding: 16px 14px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 22px;
  background: rgba(247, 252, 255, 0.66);
  box-shadow: 0 16px 42px rgba(74, 130, 174, 0.13);
  backdrop-filter: blur(16px) saturate(1.12);
}

.toolbar::before {
  content: "\6807\7B7E\7B5B\9009";
  display: block;
}

.toolbar::before {
  content: "标签筛选";
  position: static;
  margin: 0 0 12px;
  color: #6d91b4;
  font-size: 13px;
  font-weight: 700;
}

.filters {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-content: flex-start;
  gap: 10px;
  max-height: 520px;
  overflow-y: auto;
  padding-right: 0;
}

.toolbar::before {
  content: "\6807\7B7E\7B5B\9009" !important;
}

.filter-button {
  border: 0;
  cursor: pointer;
  font-size: 12px;
  width: 100%;
  min-width: 0;
  min-height: 30px;
  padding: 0 16px;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.filter-button:hover,
.filter-button:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.filter-button.is-active {
  background: linear-gradient(180deg, #5bb3ff, #258df5);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(38, 142, 245, 0.3);
}

@media (max-width: 1360px) {
  .content-area {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  .page {
    grid-area: auto;
  }

  .toolbar {
    order: -1;
    margin-left: 0;
  }
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px 24px;
  width: min(1050px, 100%);
  margin: 0 auto;
}

.game-card {
  display: grid;
  grid-template-rows: 150px 1fr;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 32px rgba(75, 132, 176, 0.16);
  cursor: pointer;
  opacity: 1;
  transform: none;
  backdrop-filter: blur(14px);
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.game-grid-end {
  grid-column: 1 / -1;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 32px rgba(75, 132, 176, 0.12);
  color: #5f83a8;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
  backdrop-filter: blur(14px);
}

.game-card.is-visible {
  animation: none;
}

.game-card:nth-child(odd) {
  --fly-direction: -1;
}

.game-card:nth-child(even) {
  --fly-direction: 1;
}

.game-card:hover,
.game-card:focus-visible {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 42px rgba(75, 132, 176, 0.22);
  outline: none;
}

.game-card--steam {
  border-color: rgba(102, 192, 244, 0.42);
  background:
    linear-gradient(145deg, rgba(23, 40, 56, 0.82), rgba(27, 40, 56, 0.64)),
    rgba(27, 40, 56, 0.72);
  box-shadow: 0 18px 46px rgba(13, 28, 43, 0.28);
}

.game-card--steam:hover,
.game-card--steam:focus-visible {
  background:
    linear-gradient(145deg, rgba(23, 40, 56, 0.9), rgba(42, 71, 94, 0.72)),
    rgba(27, 40, 56, 0.78);
  box-shadow: 0 22px 56px rgba(13, 28, 43, 0.34);
}

.game-cover {
  position: relative;
  margin: 8px 8px 0;
  overflow: hidden;
  border-radius: 9px;
  background:
    linear-gradient(135deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.16)),
    var(--cover-image),
    var(--cover);
  background-position: center;
  background-size: cover;
}

.game-cover::after {
  content: "试玩";
  position: absolute;
  left: 10px;
  bottom: 9px;
  min-height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(39, 54, 66, 0.62);
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  line-height: 22px;
}

.game-cover span {
  display: none;
}

.game-cover::after {
  content: "试玩";
}

.game-card--steam .game-cover::after {
  content: "Steam";
  background: rgba(27, 40, 56, 0.82);
  color: #66c0f4;
}

.game-info {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  min-width: 0;
  padding: 12px 14px 13px;
}

.game-info h3 {
  grid-column: 1 / -1;
  display: -webkit-box;
  min-height: 38px;
  margin: 0;
  overflow: hidden;
  color: #1f4770;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.28;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.game-card--steam .game-info h3 {
  color: #f5f7fa;
}

.game-summary {
  grid-column: 1 / -1;
  display: -webkit-box;
  min-height: 18px;
  margin: 0;
  overflow: hidden;
  color: #7895b4;
  font-size: 12px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.game-card--steam .game-summary {
  color: rgba(199, 213, 224, 0.86);
}

.game-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 22px;
  min-width: 0;
}

.game-tag {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  max-width: 100%;
  padding: 0 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: 999px;
  background: rgba(235, 247, 255, 0.82);
  color: #4194e8;
  font-size: 11px;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.game-card--steam .game-tag {
  border-color: rgba(102, 192, 244, 0.38);
  background: rgba(102, 192, 244, 0.14);
  color: #c7d5e0;
}

.game-card--steam .game-tag--steam {
  background: rgba(102, 192, 244, 0.22);
  color: #66c0f4;
  font-weight: 700;
}

.game-meta {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 0;
  min-height: 20px;
  color: #8aa8c6;
  font-size: 11px;
}

.game-meta__tag {
  display: none;
  align-items: center;
  min-height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(235, 247, 255, 0.95);
  color: #2f95ef;
}

.game-meta__date::before {
  content: "▣";
  margin-right: 5px;
  color: #a7bfd6;
  font-size: 10px;
}

.game-card-actions {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: auto;
}

.game-meta__date::before {
  content: "📅" !important;
  font-size: 12px;
}

.card-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(230, 244, 255, 0.94);
  color: #228cf2;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.card-action:only-child {
  grid-column: 1 / -1;
}

.card-action:hover,
.card-action:focus-visible {
  transform: translateY(-1px);
  outline: none;
  background: rgba(49, 95, 122, 0.2);
}

.card-action--primary {
  background: linear-gradient(180deg, #55b1ff, #1f8df6);
  color: #fff;
  box-shadow: 0 8px 16px rgba(31, 141, 246, 0.28);
}

.card-action--primary:hover,
.card-action--primary:focus-visible {
  background: #244e66;
  color: #fff;
}

.game-card--steam .card-action {
  background: rgba(102, 192, 244, 0.16);
  color: #c7d5e0;
}

.game-card--steam .card-action:hover,
.game-card--steam .card-action:focus-visible {
  background: rgba(102, 192, 244, 0.26);
  color: #ffffff;
}

.game-card--steam .card-action--primary {
  background: linear-gradient(90deg, #66c0f4, #2a475e);
  color: #ffffff;
}

.game-card--steam .card-action--primary:hover,
.game-card--steam .card-action--primary:focus-visible {
  background: linear-gradient(90deg, #7ccbf7, #1b2838);
}

.game-dialog {
  z-index: 3;
  width: min(850px, calc(100% - 28px));
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 18px;
  background: rgba(248, 253, 255, 0.9);
  box-shadow: var(--shadow);
}

.game-dialog::backdrop {
  background: rgba(37, 60, 72, 0.45);
  backdrop-filter: blur(5px);
}

.dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.dialog-media {
  height: 320px;
  background:
    linear-gradient(135deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.16)),
    var(--cover-image),
    var(--cover);
  background-position: center;
  background-size: cover;
}

.dialog-body {
  padding: 28px 32px 32px;
}

.dialog-status {
  margin-bottom: 8px;
  color: var(--accent-deep);
  font-size: 14px;
  font-weight: 700;
}

.dialog-body h2 {
  margin-bottom: 12px;
  color: #172b38;
  font-size: 32px;
  line-height: 1.25;
}

.dialog-body p {
  color: #5f7683;
  line-height: 1.85;
}

.dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--accent-deep);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.video-link {
  background: rgba(49, 95, 122, 0.12);
  color: var(--accent-deep);
}

.primary-link.is-hidden {
  display: none;
}

@media (max-width: 980px) {
  :root {
    --content-width: min(100vw - 28px, 960px);
  }

  .site-shell {
    width: var(--content-width);
  }

  .profile {
    padding-left: 0;
  }

  .game-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    width: 100%;
  }

  .page {
    grid-area: auto;
    padding-top: 30px;
  }

  .toolbar {
    position: sticky;
    top: 72px;
    left: auto;
    right: auto;
    order: -1;
    margin-left: 0;
    width: 190px;
    min-height: auto;
  }

  .toolbar::before {
    right: auto;
    left: 30px;
  }

  .filters {
    padding-top: 0;
    max-height: none;
  }
}

@media (max-width: 760px) {
  :root {
    --content-width: min(100vw - 22px, 856px);
  }

  .top-fixed-bar {
    height: 50px;
    padding: 0 12px 0 92px;
    overflow-x: auto;
  }

  .decade-timeline {
    left: 6px;
    bottom: 7px;
    width: 82px;
    gap: 5px;
    font-size: 10px;
  }

  .decade-timeline strong {
    font-size: 11px;
  }

  .timeline-rule {
    width: 9px;
  }

  .bili-home-link {
    min-height: 30px;
    padding: 0 12px;
    font-size: 12px;
  }

  .top-nav-actions {
    gap: 8px;
  }

  .contact-chip {
    min-height: 30px;
    padding: 0 10px;
    font-size: 12px;
  }

  .site-shell {
    width: var(--content-width);
    padding-top: 22px;
  }

  .profile {
    align-items: flex-start;
  }

  .profile {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    min-height: 0;
    padding: 0 0 18px;
  }

  .award-row {
    top: 66px;
    gap: 10px;
    min-height: 42px;
  }

  .award-medal--large {
    --award-size: 42px;
  }

  .award-medal--medium {
    --award-size: 34px;
  }

  .award-medal--small {
    --award-size: 28px;
  }

  .award-medal::after {
    display: none;
  }

  .latest-strip {
    flex-direction: column;
    align-items: flex-start;
    min-height: 0;
    padding: 14px;
    margin-top: var(--section-gap);
  }

  .latest-strip__lead {
    flex-wrap: wrap;
    gap: 8px;
  }

  .avatar-badge {
    top: 50px;
    left: 16px;
    width: 62px;
    height: 82px;
    padding-bottom: 12px;
  }

  .avatar {
    width: 48px;
    border-width: 4px;
  }

  h1 {
    font-size: 28px;
    line-height: 1.08;
    overflow-wrap: anywhere;
  }

  .hero__text {
    font-size: 12px;
  }

  .page {
    grid-area: auto;
    padding: 30px 14px 32px;
    border-radius: 24px 24px 0 0;
  }

  .content-area {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 64px;
  }

  .toolbar {
    position: sticky;
    order: -1;
    top: 62px;
    left: auto;
    right: auto;
    align-items: flex-start;
    width: min(176px, calc(100vw - 24px));
    margin-left: 0;
    padding-right: 14px;
  }
  .game-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

@media (max-width: 520px) {
  .game-card {
    grid-template-rows: 170px 1fr;
  }

  .game-card-actions {
    grid-template-columns: 1fr;
  }

  .dialog-media {
    height: 210px;
  }
}

@keyframes cardFlyIn {
  0% {
    opacity: 0;
    transform: translateX(calc(var(--fly-direction, 1) * 72px)) rotate(calc(var(--fly-direction, 1) * 9deg)) scale(0.96);
  }

  72% {
    opacity: 1;
    transform: translateX(calc(var(--fly-direction, 1) * -6px)) rotate(calc(var(--fly-direction, 1) * -1.2deg)) scale(1.01);
  }

  100% {
    opacity: 1;
    transform: translateX(0) rotate(0deg) scale(1);
  }
}

@keyframes cloudDrift {
  0% {
    transform: translateX(calc(var(--cloud-start) - 260px)) scale(var(--cloud-scale));
  }

  100% {
    transform: translateX(calc(100vw + 300px)) scale(var(--cloud-scale));
  }
}

@keyframes sideCloudLeft {
  0% {
    transform: translateX(-40px) translateY(18px) scale(var(--cloud-scale));
  }

  100% {
    transform: translateX(42vw) translateY(-18px) scale(var(--cloud-scale));
  }
}

@keyframes sideCloudRight {
  0% {
    transform: translateX(40px) translateY(18px) scale(var(--cloud-scale));
  }

  100% {
    transform: translateX(-42vw) translateY(-18px) scale(var(--cloud-scale));
  }
}

@media (prefers-reduced-motion: reduce) {
  .cloud {
    animation: none;
  }

  .game-card {
    opacity: 1;
    transform: none;
    animation: none;
  }
}
