﻿:root {
  --ink: #101a25;
  --muted: #657080;
  --paper: #f4f6f3;
  --surface: #ffffff;
  --deep: #08131f;
  --navy: #17334f;
  --blue: #2e74b8;
  --teal: #249b91;
  --mint: #dceee6;
  --amber: #f5b946;
  --coral: #db6b58;
  --line: rgba(16, 26, 37, 0.13);
  --line-dark: rgba(255, 255, 255, 0.15);
  --title-fade-unified: linear-gradient(180deg, rgba(250, 253, 255, 0.98) 0%, rgba(209, 219, 226, 0.92) 48%, rgba(119, 134, 143, 0.72) 100%);
  --title-cn-metal: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(218, 226, 232, 0.94) 46%, rgba(135, 149, 158, 0.78) 100%);
  --title-fade-light: var(--title-fade-unified);
  --title-fade-dark: var(--title-fade-unified);
  --title-cn-light: #f2f4f4;
  --title-cn-dark: #303741;
  --section-tech-blue: #071522;
  --radius: 8px;
  --shadow: 0 28px 70px rgba(12, 32, 52, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--section-tech-blue);
  background-size: 48px 48px;
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", Arial, sans-serif;
  line-height: 1.68;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
  padding: 12px clamp(12px, 2.2vw, 34px);
  color: #f9fbf7;
  background: rgba(8, 19, 31, 0.82);
  border-bottom: 1px solid var(--line-dark);
  backdrop-filter: blur(18px);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-right: auto;
  overflow-x: auto;
  scrollbar-width: none;
}

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

.nav-button,
.filter-button,
.action-button,
.text-button {
  border-radius: var(--radius);
  transition:
    color 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease,
    font-size 180ms ease;
}

.nav-button {
  position: relative;
  flex: 0 0 auto;
  padding: 8px 12px;
  color: rgba(249, 251, 247, 0.72);
  border: 1px solid transparent;
  font-size: 0.92rem;
  font-weight: 760;
}

.auth-button,
.register-button,
.logout-button,
.modal-close,
.delete-button {
  border-radius: var(--radius);
  transition:
    color 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.auth-button,
.register-button {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 8px 15px;
  color: #f8fbf4;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.24);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.header-actions .logout-button {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 8px 15px;
  color: #f8fbf4;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.24);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.header-actions .logout-button:hover {
  color: var(--deep);
  background: #75e4ff;
  border-color: #75e4ff;
  box-shadow: 0 14px 28px rgba(117, 228, 255, 0.18);
  transform: translateY(-1px);
}

.header-actions .logout-button[hidden] {
  display: none;
}

.auth-button:hover,
.register-button:hover,
.auth-button.is-logged-in {
  color: var(--deep);
  background: var(--amber);
  border-color: var(--amber);
  box-shadow: 0 14px 28px rgba(245, 185, 70, 0.18);
  transform: translateY(-1px);
}

.register-button[hidden] {
  display: none;
}

.nav-button::after {
  content: "";
  position: absolute;
  right: 12px;
  bottom: 4px;
  left: 12px;
  height: 2px;
  background: var(--amber);
  border-radius: 999px;
  opacity: 0;
  transform: scaleX(0.4);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.nav-button:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.nav-button.is-active {
  color: var(--deep);
  background: var(--amber);
  border-color: var(--amber);
  font-size: 1.02rem;
  font-weight: 950;
  box-shadow: 0 14px 28px rgba(245, 185, 70, 0.18);
}

.nav-button.is-active::after {
  opacity: 1;
  transform: scaleX(1);
  background: rgba(8, 19, 31, 0.42);
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: calc(100vh - 72px);
  overflow: hidden;
  display: grid;
  align-items: center;
  padding: clamp(84px, 10vw, 128px) clamp(22px, 6vw, 92px) clamp(76px, 8vw, 96px);
  background: var(--deep);
  --hero-pan-x: 0px;
  --hero-pan-y: 0px;
  --poster-wash-x: 14%;
  --poster-wash-y: 18%;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero::before {
  z-index: 1;
  background:
    radial-gradient(circle at var(--poster-wash-x) var(--poster-wash-y), rgba(255, 92, 183, 0.42), transparent 30%),
    radial-gradient(circle at 82% 62%, rgba(69, 202, 255, 0.34), transparent 34%),
    linear-gradient(120deg, rgba(255, 188, 53, 0.18), transparent 42%, rgba(29, 148, 255, 0.16));
  mix-blend-mode: screen;
  opacity: 0.86;
  will-change: opacity, transform;
}

.hero::after {
  z-index: 2;
  background:
    linear-gradient(100deg, transparent 0%, rgba(255, 255, 255, 0.08) 45%, transparent 58%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 92px);
  opacity: 0.34;
  transform: translateX(-14%);
  will-change: transform, opacity;
}

.hero-art,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-art {
  z-index: 0;
  object-fit: cover;
  object-position: calc(54% + var(--hero-pan-x)) calc(50% + var(--hero-pan-y));
  transform: scale(1.025);
  transition: object-position 260ms ease-out;
}

.hero-shade {
  z-index: 3;
  background:
    linear-gradient(90deg, rgba(3, 9, 16, 0.96) 0%, rgba(6, 16, 27, 0.88) 37%, rgba(6, 16, 27, 0.54) 62%, rgba(6, 16, 27, 0.16) 88%),
    linear-gradient(180deg, rgba(3, 9, 16, 0.08), rgba(3, 9, 16, 0.54));
}

.hero-content {
  position: relative;
  z-index: 4;
  width: min(980px, 100%);
  color: #fff;
  opacity: 1;
  transform: translateY(0);
}

.admin-inline-form {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  gap: 12px;
  align-items: end;
  margin-top: 24px;
  padding: 18px;
  color: #f4f8f6;
  background: rgba(4, 12, 20, 0.72);
  border: 1px solid rgba(117, 228, 255, 0.22);
  border-radius: var(--radius);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.02),
    0 20px 58px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(14px);
}

.admin-inline-form[hidden] {
  display: none;
}

.hero-admin-form {
  grid-template-columns: minmax(420px, 1.08fr) minmax(320px, 0.92fr);
  width: min(1120px, calc(100% - clamp(44px, 12vw, 184px)));
  margin-right: auto;
  margin-left: clamp(22px, 6vw, 92px);
  gap: 18px;
  align-items: stretch;
  padding: 18px;
}

.hero-admin-form h3 {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-admin-form h3::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(117, 228, 255, 0.42), transparent);
}

.hero-admin-group {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(117, 228, 255, 0.08), transparent 46%),
    rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(117, 228, 255, 0.16);
  border-radius: var(--radius);
}

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

.hero-admin-copy label:last-child {
  grid-column: 1 / -1;
}

.hero-admin-media {
  align-content: start;
}

.hero-admin-actions {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(220px, 0.34fr);
  justify-content: end;
}

.admin-inline-form h3 {
  grid-column: 1 / -1;
  margin: 0;
  color: #f4f8f6;
  font-size: 1.18rem;
}

.admin-inline-form label {
  display: grid;
  gap: 7px;
  color: rgba(244, 248, 246, 0.78);
  font-weight: 850;
}

.form-hint {
  color: rgba(180, 205, 214, 0.72);
  font-size: 0.78rem;
  font-weight: 750;
  line-height: 1.45;
}

.admin-inline-form .checkbox-field {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 9px 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
}

.admin-inline-form .checkbox-field input {
  width: 16px;
  min-height: 16px;
  padding: 0;
  accent-color: #75e4ff;
}

.admin-inline-form input,
.admin-inline-form textarea,
.admin-inline-form select {
  width: 100%;
  min-height: 42px;
  padding: 8px 10px;
  color: #f4f7f5;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  font: inherit;
}

.document-edit-form label select,
.game-admin-form label select,
.admin-inline-form label select {
  color: #f8fbf4;
  background-color: #142230;
  border-color: rgba(117, 228, 255, 0.38);
  font-weight: 900;
  color-scheme: dark;
}

.document-edit-form label select:focus,
.game-admin-form label select:focus,
.admin-inline-form label select:focus {
  outline: 2px solid rgba(117, 228, 255, 0.32);
  outline-offset: 2px;
  border-color: #75e4ff;
}

.document-edit-form label select option,
.game-admin-form label select option,
.admin-inline-form label select option {
  color: #f8fbf4;
  background: #07131f;
  font-weight: 900;
}

.document-edit-form label select option:checked,
.game-admin-form label select option:checked,
.admin-inline-form label select option:checked {
  color: #02111e;
  background: #75e4ff;
}

.admin-inline-form textarea {
  resize: vertical;
}

.admin-inline-form .wide-field {
  grid-column: span 2;
}

.eyebrow,
.section-kicker,
.section-label span,
.work-topline,
.project-meta,
.skill-mark {
  font-family: Consolas, "SFMono-Regular", monospace;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 -0.08em;
  color: transparent;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.95rem, 3.5vw, 3.85rem);
  font-weight: 900;
  line-height: 0.9;
  background: var(--title-fade-light);
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: none;
  -webkit-text-stroke: 0;
  -webkit-text-fill-color: transparent;
}

.hero h1 {
  margin: 0;
  color: var(--title-cn-light);
  font-size: clamp(3.3rem, 7.4vw, 7.1rem);
  line-height: 1;
  font-weight: 950;
  word-break: keep-all;
  text-shadow:
    0 2px 0 rgba(0, 0, 0, 0.34),
    0 14px 36px rgba(0, 0, 0, 0.62);
  -webkit-text-fill-color: currentColor;
}

.hero-copy {
  width: min(830px, 100%);
  margin: 18px 0 0;
  color: rgba(244, 248, 246, 0.9);
  font-size: clamp(1.06rem, 1.6vw, 1.24rem);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.48);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.action-button {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 18px;
  border: 1px solid transparent;
  font-weight: 900;
}

.action-button.primary {
  color: var(--deep);
  background: var(--amber);
  box-shadow: 0 16px 32px rgba(245, 185, 70, 0.24);
}

.action-button.primary::after {
  content: "";
  position: absolute;
  top: -64%;
  left: -42%;
  width: 42%;
  height: 230%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.58), transparent);
  transform: rotate(18deg) translateX(-160%);
  transition: transform 520ms ease;
}

.action-button.primary:hover {
  color: #fff;
  background: var(--coral);
  transform: translateY(-2px);
  box-shadow: 0 20px 42px rgba(219, 107, 88, 0.28);
}

.action-button.primary:hover::after {
  transform: rotate(18deg) translateX(420%);
}

.action-button.secondary {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.36);
}

.action-button.secondary:hover {
  color: var(--deep);
  background: var(--mint);
  border-color: var(--mint);
  transform: translateY(-2px);
}

.action-button.danger {
  color: #ffd7d2;
  background: rgba(255, 93, 76, 0.1);
  border-color: rgba(255, 128, 112, 0.42);
}

.action-button.danger:hover {
  color: #1b0806;
  background: #ff8a7a;
  border-color: #ff8a7a;
  transform: translateY(-2px);
}

.action-button:disabled {
  color: rgba(244, 248, 246, 0.42);
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.section {
  position: relative;
  padding: clamp(70px, 9vw, 116px) clamp(20px, 6vw, 92px);
  color: #f4f7f5;
  background: var(--section-tech-blue);
}

.section-label {
  display: grid;
  gap: 0;
  align-items: start;
  margin-bottom: 34px;
  color: var(--muted);
}

.section-label span {
  margin-bottom: 0.02em;
  color: transparent;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.65rem, 3vw, 3.2rem);
  line-height: 0.92;
  background: var(--title-fade-dark);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-label strong {
  color: transparent;
  font-size: clamp(1.7rem, 3vw, 2.7rem);
  line-height: 1.1;
  background: var(--title-cn-metal);
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: none;
  -webkit-text-fill-color: transparent;
}

.section-label::before {
  content: none;
}

.works-title h2,
.works-head p,
.project-intro p,
.contact-section p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.04rem;
}

.section > p,
.works-head p {
  color: rgba(244, 248, 246, 0.76);
}

.advantage-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.advantage-card,
.work-card,
.skill-column {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.92);
  transform: translate3d(0, 0, 0);
  transition:
    background-color 220ms ease,
    box-shadow 220ms ease,
    transform 220ms ease;
}

.motion-ready .work-card::before,
.motion-ready .skill-column::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(112deg, transparent 0%, rgba(126, 228, 255, 0.18) 38%, rgba(255, 188, 53, 0.14) 52%, transparent 68%),
    radial-gradient(circle at 18% 12%, rgba(255, 92, 183, 0.12), transparent 36%);
  opacity: 0;
  transform: translateX(-24%) skewX(-8deg);
}

.motion-ready .work-card > *,
.motion-ready .skill-column > * {
  position: relative;
  z-index: 1;
}

.advantage-card::after,
.work-card::after,
.project-panel::after,
.skill-column::after {
  content: none;
}

.advantage-card:hover,
.work-card:hover,
.skill-column:hover {
  background: #fff;
  box-shadow: var(--shadow);
  transform: translateY(-5px);
}

.advantage-card {
  min-height: 235px;
  padding: 28px;
}

.card-icon {
  display: inline-flex;
  color: var(--teal);
  font-family: Consolas, "SFMono-Regular", monospace;
  font-weight: 950;
}

.advantage-card h3,
.work-card h3,
.skill-column h3,
.timeline-item strong {
  margin: 20px 0 8px;
  font-size: 1.26rem;
  line-height: 1.24;
}

.advantage-card p,
.work-card p,
.skill-column p,
.timeline-item span {
  margin: 0;
  color: var(--muted);
}

.works-section {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  color: #fff;
  background: var(--section-tech-blue);
}

.works-title {
  margin-top: 18px;
  margin-bottom: 16px;
  padding-top: 12px;
}

.works-title span {
  display: none;
}

.works-title h2 {
  display: inline-block;
  margin: 0;
  color: transparent;
  font-size: clamp(2.6rem, 5.2vw, 5rem);
  line-height: 1.02;
  background: var(--title-cn-metal);
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: none;
  -webkit-text-fill-color: transparent;
}

.works-head {
  width: min(920px, 100%);
  margin-bottom: 24px;
}

.works-head p {
  color: rgba(255, 255, 255, 0.7);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 22px;
}

.filter-button {
  min-height: 42px;
  padding: 8px 16px;
  color: rgba(255, 255, 255, 0.76);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.18);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.filter-button:hover {
  color: #fff;
  background: rgba(36, 155, 145, 0.22);
  border-color: rgba(36, 155, 145, 0.58);
}

.filter-button.is-active {
  color: var(--deep);
  background: var(--amber);
  border-color: var(--amber);
  font-size: 1.06rem;
  box-shadow: 0 14px 30px rgba(245, 185, 70, 0.2);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(268px, 318px));
  grid-auto-rows: 218px;
  gap: 14px;
  align-items: stretch;
  justify-content: center;
}

.document-admin-panel {
  display: grid;
  grid-template-columns: minmax(280px, min(720px, 100%));
  gap: 14px;
  justify-content: center;
  margin-top: 26px;
}

.document-admin-panel[hidden] {
  display: none;
}

.document-edit-form {
  display: grid;
  gap: 12px;
  padding: 18px;
  color: #f4f8f6;
  background: rgba(4, 12, 20, 0.58);
  border: 1px solid rgba(117, 228, 255, 0.22);
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.025);
}

.document-edit-form h3 {
  margin: 0;
  color: #f4f8f6;
  font-size: 1.18rem;
}

.document-edit-form label {
  display: grid;
  gap: 7px;
  color: rgba(244, 248, 246, 0.76);
  font-weight: 850;
}

.document-edit-form input,
.document-edit-form select {
  min-height: 42px;
  padding: 8px 10px;
  color: #f4f7f5;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  font: inherit;
}

.work-card {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  padding: 18px;
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
}

.work-card.featured {
  grid-row: auto;
  min-height: 0;
  background:
    linear-gradient(145deg, rgba(245, 185, 70, 0.12), transparent 42%),
    #fff;
}

.work-card.is-hidden {
  display: none;
}

.work-topline,
.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--blue);
  font-size: 0.98rem;
}

.work-topline {
  margin-bottom: 0;
}

.work-card ul {
  margin: 20px 0 24px;
  padding-left: 18px;
  color: var(--ink);
  overflow: hidden;
}

.work-card h3,
.work-summary,
.work-card > p:not(.file-meta):not(.empty-card-note):not(.work-summary) {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  word-break: break-all;
  overflow-wrap: anywhere;
}

.work-card h3 {
  max-width: 15em;
  margin: 2px 0 0;
  font-size: clamp(1.1rem, 1.12vw, 1.24rem);
  line-height: 1.2;
  -webkit-line-clamp: 1;
}

.work-summary {
  max-width: 15em;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
  -webkit-line-clamp: 3;
}

.work-card > p:not(.file-meta):not(.empty-card-note):not(.work-summary) {
  -webkit-line-clamp: 3;
}

.work-card .file-meta {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 8px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  word-break: break-all;
}

.work-card .empty-card-note {
  margin-top: auto;
}

.text-button {
  display: inline-flex;
  align-items: center;
  margin-top: auto;
  padding: 8px 0;
  color: var(--blue);
  border-bottom: 2px solid rgba(46, 116, 184, 0.24);
  font-weight: 900;
}

.text-button:hover {
  color: var(--teal);
  border-bottom-color: var(--teal);
  transform: translateX(3px);
}

.doc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: auto;
  padding-top: 10px;
}

.doc-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 7px 13px;
  color: var(--blue);
  background: rgba(46, 116, 184, 0.08);
  border: 1px solid rgba(46, 116, 184, 0.18);
  border-radius: var(--radius);
  cursor: pointer;
  font: inherit;
  font-size: 0.94rem;
  font-weight: 900;
  transition:
    color 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.doc-action:hover {
  color: var(--deep);
  background: var(--amber);
  border-color: var(--amber);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(245, 185, 70, 0.18);
}

.doc-action-download {
  color: #087f86;
  background: rgba(36, 155, 145, 0.1);
  border-color: rgba(36, 155, 145, 0.2);
}

.doc-action-delete {
  color: #fff;
  background: rgba(219, 107, 88, 0.92);
  border-color: rgba(219, 107, 88, 0.95);
}

.doc-action-delete:hover {
  color: #fff;
  background: #c85242;
  border-color: #c85242;
  box-shadow: 0 12px 24px rgba(219, 107, 88, 0.22);
}

.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 44px;
  margin-top: auto;
  padding-top: clamp(58px, 7vw, 116px);
  padding-bottom: 8px;
}

.page-button {
  width: 40px;
  height: 40px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-size: 1.55rem;
  font-weight: 900;
  line-height: 1;
  transition:
    color 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    transform 180ms ease,
    opacity 180ms ease;
}

.page-button:hover:not(:disabled) {
  color: var(--deep);
  background: var(--amber);
  border-color: var(--amber);
  transform: translateY(-2px);
}

.page-button:disabled {
  cursor: default;
  opacity: 0.32;
}

.page-status {
  min-width: 64px;
  color: rgba(255, 255, 255, 0.72);
  text-align: center;
  font-weight: 850;
}

.upload-desk {
  display: grid;
  grid-template-columns: minmax(220px, 0.78fr) minmax(0, 1.6fr);
  gap: 18px;
  margin-top: 18px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.upload-desk h3 {
  margin: 8px 0 0;
  color: #fff;
  font-size: clamp(1.5rem, 2.4vw, 2.2rem);
}

.upload-desk p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.66);
}

.upload-list,
.admin-list {
  display: grid;
  gap: 10px;
}

.upload-item,
.admin-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 16px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
}

.upload-item h4,
.admin-item h4 {
  margin: 0;
  font-size: 1.05rem;
}

.upload-item p,
.admin-item p,
.file-meta {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.file-link {
  display: inline-flex;
  margin-top: 8px;
  color: var(--blue);
  font-weight: 900;
}

.file-link:hover {
  color: var(--teal);
}

.empty-state {
  padding: 18px;
  color: rgba(255, 255, 255, 0.68);
  border: 1px dashed rgba(255, 255, 255, 0.24);
  border-radius: var(--radius);
}

.item-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.edit-button,
.delete-button,
.logout-button {
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  font: inherit;
  font-weight: 850;
}

.edit-button {
  color: var(--deep);
  background: var(--mint);
}

.delete-button {
  color: #fff;
  background: var(--coral);
  border-color: var(--coral);
}

.edit-button:hover,
.delete-button:hover,
.logout-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(12, 32, 52, 0.12);
}

.project-section {
  background: var(--section-tech-blue);
}

.project-section .section-label {
  gap: 8px;
  margin-bottom: 18px;
}

.project-carousel {
  display: grid;
  gap: 16px;
}

.project-admin-form {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
  margin-top: 20px;
}

.project-edit-group,
.project-edit-cards {
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: 16px;
  background:
    linear-gradient(135deg, rgba(117, 228, 255, 0.08), transparent 42%),
    rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(117, 228, 255, 0.16);
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.project-edit-group h4,
.project-edit-cards h4 {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: #f4f8f6;
  font-size: 1.02rem;
  letter-spacing: 0.03em;
}

.project-edit-group h4::after,
.project-edit-cards h4::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(117, 228, 255, 0.34), transparent);
}

.project-edit-main {
  grid-column: span 8;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.project-edit-media {
  grid-column: span 4;
  align-content: start;
}

.project-edit-media label:not(.checkbox-field) {
  padding-bottom: 2px;
}

.project-edit-media input[type="file"] {
  min-height: 46px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(117, 228, 255, 0.22);
}

.project-admin-actions {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) repeat(4, minmax(132px, 0.28fr));
  gap: 12px;
  align-items: stretch;
}

.project-edit-cards {
  grid-column: 1 / -1;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.project-mini-card-edit {
  display: grid;
  gap: 11px;
  min-width: 0;
  padding: 12px;
  background: rgba(2, 12, 20, 0.42);
  border: 1px solid rgba(117, 228, 255, 0.13);
  border-radius: var(--radius);
}

.project-mini-card-edit textarea {
  min-height: 86px;
}

.project-viewport {
  display: grid;
  position: relative;
}

.project-switcher {
  display: grid;
  grid-auto-columns: minmax(120px, 1fr);
  grid-auto-flow: column;
  gap: 8px;
  width: min(760px, 74%);
  max-width: 100%;
  margin: 14px auto 0;
  padding: 0 0 4px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-color: rgba(117, 228, 255, 0.52) rgba(255, 255, 255, 0.06);
  scrollbar-width: thin;
}

.project-tab {
  height: 10px;
  padding: 0;
  background: rgba(126, 228, 255, 0.24);
  border: 1px solid rgba(126, 228, 255, 0.32);
  border-radius: 999px;
  cursor: pointer;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
  transform 180ms ease;
}

.project-tab:hover {
  background: rgba(126, 228, 255, 0.48);
  border-color: rgba(126, 228, 255, 0.76);
}

.project-tab.is-active {
  background: #7ee4ff;
  border-color: #7ee4ff;
  box-shadow: 0 0 18px rgba(126, 228, 255, 0.3);
}

.project-slide {
  grid-area: 1 / 1;
}

.project-slide:not(.is-active) {
  display: none;
}

.project-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(24px, 4vw, 56px);
  min-height: clamp(540px, 46vw, 680px);
  padding: clamp(42px, 6vw, 86px) clamp(34px, 6vw, 76px) clamp(34px, 5vw, 64px);
  color: #fff;
  background: var(--deep);
  border: 0;
  border-radius: var(--radius);
  box-shadow: none;
}

.project-panel-text-only {
  justify-content: space-between;
}

.project-panel-text-only .project-content {
  width: min(760px, 54%);
  flex-basis: 54%;
}

.project-panel-text-only .timeline-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.project-cover,
.project-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.project-cover {
  z-index: 0;
  object-fit: cover;
  object-position: center;
  background: #030910;
  will-change: transform;
}

.project-overlay {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(3, 9, 16, 0.94) 0%, rgba(3, 9, 16, 0.82) 34%, rgba(3, 9, 16, 0.46) 58%, rgba(3, 9, 16, 0.12) 100%),
    linear-gradient(180deg, rgba(3, 9, 16, 0.18), rgba(3, 9, 16, 0.58));
}

.project-content {
  position: relative;
  z-index: 2;
  display: grid;
  align-content: start;
  gap: clamp(20px, 3.2vw, 34px);
  flex: 1 1 54%;
  width: min(760px, 54%);
  margin-top: 0;
}

.project-side {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 14px;
  flex: 0 1 42%;
  width: min(640px, 42%);
  min-width: 320px;
  align-content: center;
}

.project-side[hidden],
.project-media-card[hidden],
.bilibili-qr[hidden] {
  display: none;
}

.project-media-card {
  position: relative;
  margin: 0;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: rgba(4, 12, 20, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.36);
  will-change: clip-path, transform;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.project-media-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(3, 9, 16, 0.28), rgba(3, 9, 16, 0));
}

.project-media-card::after {
  content: none;
}

.project-media-card:hover {
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow:
    0 28px 78px rgba(0, 0, 0, 0.42),
    0 0 26px rgba(0, 0, 0, 0.2);
}

.project-media-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #030910;
  will-change: transform;
}

.bilibili-card {
  --tilt-x: 50%;
  --tilt-y: 50%;
  --edge-x: 50%;
  --edge-y: 50%;
  --edge-opacity: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  overflow: hidden;
  padding: 16px;
  color: #f4f7f5;
  background: linear-gradient(135deg, rgba(7, 18, 30, 0.86), rgba(7, 18, 30, 0.62));
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(14px);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.bilibili-card[hidden] {
  display: none;
}

.bilibili-card.is-single {
  justify-content: center;
  min-height: 124px;
  text-align: center;
}

.bilibili-card.is-single.has-bv {
  justify-content: flex-start;
  text-align: left;
}

.bilibili-card.is-single.has-qr {
  justify-content: center;
}

.bilibili-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  padding: 2px;
  pointer-events: none;
  background: radial-gradient(
    circle at var(--edge-x) var(--edge-y),
    rgba(255, 255, 255, 1) 0%,
    rgba(117, 228, 255, 0.95) 14%,
    rgba(29, 148, 255, 0.72) 32%,
    rgba(12, 72, 150, 0.26) 58%,
    transparent 76%
  );
  border-radius: inherit;
  opacity: var(--edge-opacity);
  transition: opacity 180ms ease;
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.bilibili-card:hover {
  border-color: rgba(126, 228, 255, 0.62);
  box-shadow:
    0 22px 54px rgba(0, 0, 0, 0.34),
    0 0 22px rgba(117, 228, 255, 0.24),
    0 0 44px rgba(29, 148, 255, 0.18);
  transform: translateY(-5px);
}

.bilibili-copy {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 6px;
  min-width: 0;
}

.bilibili-copy span {
  color: rgba(244, 248, 246, 0.58);
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.bilibili-copy strong {
  color: #fff;
  font-size: clamp(1.05rem, 1.35vw, 1.22rem);
  line-height: 1.15;
}

.bilibili-copy a {
  width: fit-content;
  color: #8fe7ff;
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 0.94rem;
  font-weight: 900;
  text-decoration: none;
  transition: color 180ms ease;
}

.bilibili-copy a:hover {
  color: var(--gold);
}

.bilibili-qr {
  position: relative;
  z-index: 2;
  width: clamp(76px, 7vw, 98px);
  aspect-ratio: 1;
  padding: 6px;
  object-fit: contain;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.project-meta span {
  padding: 8px 14px;
  color: #f4f7f5;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  backdrop-filter: blur(10px);
  font-size: 0.92rem;
  letter-spacing: 0.02em;
}

.project-intro h2 {
  margin: 20px 0 0;
  color: var(--title-cn-light);
  font-size: clamp(1.85rem, 3.05vw, 3rem);
  line-height: 1.06;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  -webkit-text-fill-color: currentColor;
}

.project-intro p {
  width: min(100%, 880px);
  max-width: none;
  margin: 0;
  padding-left: 0;
  color: rgba(244, 248, 246, 0.82);
  font-size: clamp(1rem, 1.35vw, 1.16rem);
  line-height: 1.78;
  text-align: justify;
  text-align-last: left;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  text-wrap: auto;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.42);
}

.timeline-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  background: transparent;
  border: 0;
}

.timeline-item {
  --edge-x: 50%;
  --edge-y: 50%;
  --edge-opacity: 0;
  position: relative;
  overflow: hidden;
  min-height: 142px;
  padding: 20px 22px;
  background: rgba(4, 12, 20, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(10px);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.timeline-item::before {
  content: none;
}

.timeline-item::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  padding: 2px;
  pointer-events: none;
  background: radial-gradient(
    circle at var(--edge-x) var(--edge-y),
    rgba(255, 255, 255, 1) 0%,
    rgba(117, 228, 255, 0.95) 14%,
    rgba(29, 148, 255, 0.72) 32%,
    rgba(12, 72, 150, 0.26) 58%,
    transparent 76%
  );
  border-radius: inherit;
  opacity: var(--edge-opacity);
  transition: opacity 180ms ease;
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.timeline-item:hover {
  border-color: rgba(126, 228, 255, 0.62);
  box-shadow:
    0 20px 48px rgba(0, 0, 0, 0.3),
    0 0 22px rgba(117, 228, 255, 0.24),
    0 0 44px rgba(29, 148, 255, 0.18);
  transform: translateY(-5px);
}

.timeline-item strong {
  position: relative;
  z-index: 2;
  display: block;
  margin-top: 0;
  color: #f4f7f5;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.timeline-item span {
  position: relative;
  z-index: 2;
  color: rgba(244, 248, 246, 0.76);
  font-size: 0.98rem;
  line-height: 1.72;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

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

.skills-section .section-label {
  margin-bottom: 14px;
}

.skill-layout {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  background: transparent;
  border: 0;
}

.skill-column {
  --edge-x: 50%;
  --edge-y: 50%;
  --edge-opacity: 0;
  position: relative;
  overflow: hidden;
  min-height: 346px;
  height: 100%;
  padding: 24px;
  color: #f4f7f5;
  background: rgba(4, 12, 20, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(10px);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease,
    background-color 180ms ease;
}

.skill-column::before {
  content: none;
}

.skill-column::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  padding: 2px;
  pointer-events: none;
  background: radial-gradient(
    circle at var(--edge-x) var(--edge-y),
    rgba(255, 255, 255, 1) 0%,
    rgba(117, 228, 255, 0.95) 14%,
    rgba(29, 148, 255, 0.72) 32%,
    rgba(12, 72, 150, 0.26) 58%,
    transparent 76%
  );
  border-radius: inherit;
  opacity: var(--edge-opacity);
  transition: opacity 180ms ease;
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.skill-column:hover {
  background: rgba(4, 12, 20, 0.68);
  border-color: rgba(126, 228, 255, 0.62);
  box-shadow:
    0 20px 48px rgba(0, 0, 0, 0.3),
    0 0 22px rgba(117, 228, 255, 0.24),
    0 0 44px rgba(29, 148, 255, 0.18);
  transform: translateY(-5px);
}

.skill-mark {
  position: relative;
  z-index: 2;
  display: block;
  color: rgba(117, 228, 255, 0.92);
  font-size: clamp(1.18rem, 1.45vw, 1.62rem);
  line-height: 0.96;
}

.skill-column:nth-child(2) .skill-mark {
  color: rgba(117, 228, 255, 0.92);
}

.skill-column:nth-child(3) .skill-mark {
  color: rgba(117, 228, 255, 0.92);
}

.skill-column:nth-child(4) .skill-mark {
  color: rgba(117, 228, 255, 0.92);
}

.skill-column h3 {
  position: relative;
  z-index: 2;
  margin: 8px 0 12px;
  color: #f4f7f5;
  font-size: clamp(1.48rem, 1.78vw, 1.94rem);
  line-height: 1.18;
  font-weight: 950;
  text-shadow:
    0 2px 0 rgba(0, 0, 0, 0.3),
    0 12px 30px rgba(0, 0, 0, 0.5);
}

.skill-column p {
  position: relative;
  z-index: 2;
  color: rgba(244, 248, 246, 0.76);
  font-size: 1rem;
  line-height: 1.74;
}

.skill-card-actions {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.skill-card-actions button {
  min-height: 30px;
  padding: 5px 10px;
  color: rgba(244, 248, 246, 0.9);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(117, 228, 255, 0.2);
  border-radius: 6px;
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 900;
}

.skill-card-actions button:hover {
  color: var(--deep);
  background: #75e4ff;
  border-color: #75e4ff;
}

.skill-card-actions .skill-delete-button:hover {
  color: #fff;
  background: rgba(219, 107, 88, 0.84);
  border-color: rgba(219, 107, 88, 0.95);
}

.skill-edit-form {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 10px;
}

.skill-edit-form input,
.skill-edit-form textarea {
  width: 100%;
  min-height: 40px;
  padding: 9px 10px;
  color: #f4f7f5;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  font: inherit;
}

.skill-edit-form textarea {
  resize: vertical;
  line-height: 1.55;
}

.section-kicker {
  margin: 0 0 -0.12em;
  color: transparent;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.15rem, 2vw, 2.05rem);
  font-weight: 900;
  line-height: 0.92;
  background: var(--title-fade-dark);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.works-section .section-kicker,
.contact-section .section-kicker {
  background: var(--title-fade-light);
  -webkit-background-clip: text;
  background-clip: text;
}

.games-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  background: var(--section-tech-blue);
}

.games-section .section-label {
  margin-bottom: 0;
}

.games-board {
  display: grid;
  gap: 18px;
  margin-top: 0;
}

.game-category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.game-tab {
  min-height: 42px;
  padding: 8px 18px;
  color: rgba(255, 255, 255, 0.76);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  transition:
    color 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.game-tab:hover,
.game-tab.is-active {
  color: var(--deep);
  background: var(--amber);
  border-color: var(--amber);
  box-shadow: 0 14px 30px rgba(245, 185, 70, 0.2);
  transform: translateY(-2px);
}

.game-preview {
  min-height: 112px;
}

.game-card-grid {
  display: grid;
  grid-template-columns: repeat(10, minmax(86px, 1fr));
  gap: 10px;
}

.game-card {
  --edge-x: 50%;
  --edge-y: 50%;
  --edge-opacity: 0;
  position: relative;
  overflow: hidden;
  display: grid;
  align-items: center;
  min-height: 74px;
  padding: 12px;
  color: #fff;
  background: rgba(4, 12, 20, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease,
    background-color 180ms ease;
}

.game-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  padding: 2px;
  pointer-events: none;
  background: radial-gradient(
    circle at var(--edge-x) var(--edge-y),
    rgba(255, 255, 255, 1) 0%,
    rgba(117, 228, 255, 0.95) 14%,
    rgba(29, 148, 255, 0.72) 32%,
    rgba(12, 72, 150, 0.26) 58%,
    transparent 76%
  );
  border-radius: inherit;
  opacity: var(--edge-opacity);
  transition: opacity 180ms ease;
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.game-card:hover {
  background: rgba(4, 12, 20, 0.68);
  border-color: rgba(126, 228, 255, 0.62);
  box-shadow:
    0 16px 38px rgba(0, 0, 0, 0.26),
    0 0 20px rgba(117, 228, 255, 0.22),
    0 0 38px rgba(29, 148, 255, 0.16);
  transform: translateY(-3px);
}

.game-card > * {
  position: relative;
  z-index: 2;
}

.game-card strong {
  font-size: 0.94rem;
  line-height: 1.32;
  word-break: break-word;
}

.game-add-card {
  cursor: pointer;
  text-align: left;
  border-style: dashed;
  background: rgba(117, 228, 255, 0.08);
}

.game-add-card strong {
  color: #75e4ff;
}

.game-hours {
  margin-top: 2px;
  color: rgba(117, 228, 255, 0.9);
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0;
}

.game-card-actions {
  display: flex;
  gap: 6px;
  margin-top: 10px;
}

.game-card-actions button {
  min-height: 28px;
  padding: 4px 8px;
  color: rgba(244, 248, 246, 0.9);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 850;
}

.game-card-actions button:hover {
  color: var(--deep);
  background: var(--amber);
  border-color: var(--amber);
}

.game-card-actions .game-card-delete {
  color: rgba(255, 215, 210, 0.95);
  border-color: rgba(219, 107, 88, 0.42);
}

.game-card-actions .game-card-delete:hover {
  color: #fff;
  background: rgba(219, 107, 88, 0.78);
  border-color: rgba(219, 107, 88, 0.95);
}

.game-admin-form {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(150px, 0.7fr) minmax(150px, 0.7fr) auto;
  gap: 12px;
  align-items: end;
  padding: 16px;
  background: rgba(4, 12, 20, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
}

.game-admin-form[hidden],
.login-panel[hidden],
.admin-panel[hidden] {
  display: none;
}

.game-admin-form label {
  display: grid;
  gap: 6px;
  color: rgba(244, 248, 246, 0.76);
  font-weight: 850;
}

.game-admin-form input,
.game-admin-form select {
  min-height: 42px;
  padding: 8px 10px;
  color: #f4f7f5;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  font: inherit;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(240px, 0.44fr) minmax(520px, 1fr);
  align-content: center;
  align-items: center;
  gap: clamp(32px, 6vw, 86px);
  min-height: min(620px, calc(100vh - 72px));
  color: #fff;
  background: var(--section-tech-blue);
}

.contact-section h2 {
  margin: 0;
  color: transparent;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.08;
  background: var(--title-cn-metal);
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: none;
  -webkit-text-fill-color: transparent;
}

.contact-section p {
  color: rgba(255, 255, 255, 0.72);
}

.contact-section .section-kicker {
  margin-bottom: -0.08em;
  font-size: clamp(1.65rem, 3.2vw, 3.7rem);
}

.contact-copy {
  display: grid;
  gap: 12px;
}

.contact-info-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.5vw, 34px);
  width: 100%;
  margin-top: 0;
}

.contact-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-height: 0;
  padding: 8px 0;
  color: #f4f8f6;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.contact-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: #75e4ff;
  background: transparent;
  border: 0;
  border-radius: 0;
  filter: drop-shadow(0 0 12px rgba(117, 228, 255, 0.42));
}

.contact-icon svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-card small {
  display: block;
  color: rgba(117, 228, 255, 0.82);
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.contact-card strong {
  display: block;
  margin-top: 2px;
  color: #f4f8f6;
  font-size: clamp(0.95rem, 1.2vw, 1.18rem);
  line-height: 1.35;
  word-break: break-all;
}

.profile-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 12px;
  align-items: end;
  padding: 16px;
  background: rgba(8, 19, 31, 0.055);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.profile-form h3 {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--title-cn-dark);
  font-size: 1.15rem;
}

.profile-form label {
  display: grid;
  gap: 8px;
  font-weight: 850;
}

.profile-form input {
  width: 100%;
  padding: 12px 13px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
}

.profile-form[hidden] {
  display: none;
}

.contact-edit-form {
  grid-column: 1 / -1;
  width: 100%;
  margin-top: 8px;
  color: #f4f8f6;
  background: rgba(4, 12, 20, 0.46);
  border-color: rgba(117, 228, 255, 0.22);
}

.contact-edit-form h3 {
  color: #f4f8f6;
}

.contact-edit-form label {
  color: rgba(244, 248, 246, 0.78);
}

.contact-edit-form input {
  color: #f4f7f5;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.back-top-button {
  position: fixed;
  right: clamp(18px, 3vw, 38px);
  bottom: clamp(18px, 3vw, 38px);
  z-index: 45;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: var(--deep);
  background: var(--amber);
  border: 1px solid rgba(245, 185, 70, 0.88);
  border-radius: 999px;
  box-shadow: 0 18px 44px rgba(245, 185, 70, 0.22);
  cursor: pointer;
  font: inherit;
  font-size: 1.45rem;
  font-weight: 950;
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px) scale(0.92);
  transition:
    opacity 220ms ease,
    transform 220ms ease,
    background-color 180ms ease;
}

.back-top-button.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.back-top-button:hover {
  background: #75e4ff;
  border-color: #75e4ff;
  transform: translateY(-2px) scale(1.04);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(4, 10, 18, 0.72);
  backdrop-filter: blur(14px);
}

.modal-backdrop[hidden] {
  display: none;
}

.auth-modal {
  position: relative;
  width: min(880px, 100%);
  max-height: min(760px, 88vh);
  overflow: auto;
  padding: clamp(24px, 4vw, 38px);
  color: var(--ink);
  background: #f9fbf7;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.36);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  cursor: pointer;
  font-size: 1.35rem;
  line-height: 1;
}

.modal-close:hover {
  color: #fff;
  background: var(--deep);
  border-color: var(--deep);
}

.login-panel,
.admin-panel {
  display: grid;
  gap: 16px;
}

.login-panel h2,
.admin-panel h2 {
  margin: 0;
  color: var(--title-cn-dark);
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: 1.1;
  -webkit-text-fill-color: currentColor;
}

.auth-mode-switch {
  display: inline-flex;
  width: fit-content;
  padding: 4px;
  background: rgba(3, 15, 24, 0.08);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.auth-mode-button {
  min-width: 76px;
  padding: 8px 14px;
  color: rgba(25, 36, 47, 0.7);
  background: transparent;
  border: 0;
  border-radius: calc(var(--radius) - 3px);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  transition:
    color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.auth-mode-button:hover,
.auth-mode-button.is-active {
  color: var(--deep);
  background: var(--amber);
  box-shadow: 0 12px 26px rgba(245, 185, 70, 0.18);
}

.auth-helper {
  margin: -4px 0 2px;
  color: rgba(43, 56, 71, 0.72);
  font-weight: 720;
  line-height: 1.7;
}

.login-panel label,
.admin-form label {
  display: grid;
  gap: 8px;
  font-weight: 850;
}

.login-panel input,
.admin-form input,
.admin-form select,
.admin-form textarea {
  width: 100%;
  padding: 12px 13px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
}

.login-panel input:focus,
.admin-form input:focus,
.admin-form select:focus,
.admin-form textarea:focus {
  outline: 2px solid rgba(245, 185, 70, 0.42);
  border-color: var(--amber);
}

.login-error {
  min-height: 1.5em;
  margin: 0;
  color: var(--coral);
  font-weight: 850;
}

.admin-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.admin-form {
  display: grid;
  gap: 14px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.admin-list {
  margin-top: 4px;
}

.logout-button {
  color: var(--deep);
  background: var(--mint);
}

.motion-mask {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}

.motion-mask > span {
  display: inline-block;
  color: inherit;
  -webkit-text-fill-color: inherit;
}


.motion-ready .section-label span,
.motion-ready .section-label strong,
.motion-ready .works-title span,
.motion-ready .works-title h2,
.motion-ready .filter-bar,
.motion-ready .filter-button,
.motion-ready .work-card,
.motion-ready .project-panel,
.motion-ready .project-admin-form,
.motion-ready .hero-admin-form,
.motion-ready .document-admin-panel,
.motion-ready .document-edit-form,
.motion-ready .skill-column,
.motion-ready .games-board,
.motion-ready .game-tab,
.motion-ready .game-card,
.motion-ready .game-admin-form,
.motion-ready .contact-section > *,
.motion-ready .contact-card,
.motion-ready .contact-edit-form,
.motion-ready .upload-desk {
  will-change: transform, opacity, clip-path;
}

.reveal-ready {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 660ms ease,
    transform 660ms cubic-bezier(0.19, 1, 0.22, 1);
}

.reveal-ready.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1080px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .nav-actions {
    width: 100%;
  }

  .project-panel,
  .games-section {
    grid-template-columns: 1fr;
  }

  .project-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .project-content {
    width: min(760px, 100%);
    margin-top: 0;
  }

  .project-side {
    width: min(760px, 100%);
    max-width: none;
    min-width: 0;
  }

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

  .work-grid {
    grid-template-columns: repeat(2, minmax(268px, 318px));
    grid-auto-rows: 218px;
    justify-content: center;
  }

  .game-card-grid {
    grid-template-columns: repeat(5, minmax(86px, 1fr));
  }

  .game-admin-form {
    grid-template-columns: 1fr 1fr;
  }

  .admin-inline-form,
  .document-admin-panel,
  .project-admin-form {
    grid-template-columns: 1fr 1fr;
  }

  .project-edit-main,
  .project-edit-media,
  .project-edit-cards,
  .project-admin-actions {
    grid-column: 1 / -1;
  }

  .project-edit-main,
  .project-edit-cards {
    grid-template-columns: 1fr 1fr;
  }

  .project-edit-media {
    grid-template-columns: 1fr;
  }

  .project-admin-actions {
    grid-template-columns: 1fr 1fr;
  }

  .hero-admin-form {
    width: calc(100% - 44px);
    margin-left: 22px;
  }

  .admin-inline-form .wide-field {
    grid-column: 1 / -1;
  }

  .contact-section,
  .profile-form {
    grid-template-columns: 1fr;
  }

  .contact-info-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  body {
    background-size: 34px 34px;
  }

  .hero {
    min-height: 78vh;
    padding-top: 72px;
  }

  .hero-art {
    object-position: 63% center;
  }

  .hero-shade {
    background:
      linear-gradient(180deg, rgba(3, 9, 16, 0.96) 0%, rgba(6, 16, 27, 0.86) 58%, rgba(6, 16, 27, 0.42) 100%),
      linear-gradient(90deg, rgba(3, 9, 16, 0.68), rgba(3, 9, 16, 0.1));
  }

  .hero h1 {
    font-size: clamp(2.75rem, 13vw, 4.3rem);
  }

  .eyebrow {
    margin-bottom: -2px;
    font-size: clamp(1.55rem, 7.2vw, 2.25rem);
  }

  .section-label,
  .advantage-grid,
  .work-grid,
  .timeline-grid,
  .skill-layout {
    grid-template-columns: 1fr;
  }

  .upload-desk,
  .upload-item,
  .admin-item,
  .contact-info-list {
    grid-template-columns: 1fr;
  }

  .item-actions {
    justify-content: flex-start;
  }

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

  .game-admin-form {
    grid-template-columns: 1fr;
  }

  .admin-inline-form,
  .document-admin-panel,
  .project-admin-form,
  .project-edit-main,
  .project-edit-media,
  .project-edit-cards,
  .project-admin-actions {
    grid-template-columns: 1fr;
  }

  .project-panel-text-only .timeline-grid {
    grid-template-columns: 1fr;
  }

  .section-label {
    gap: 4px;
  }

  .section-label span,
  .section-label strong {
    grid-column: 1;
    grid-row: auto;
  }

  .work-card.featured {
    grid-row: auto;
    min-height: 0;
  }

  .work-grid {
    grid-template-columns: minmax(268px, 318px);
    grid-auto-rows: 218px;
    gap: 12px;
    justify-content: center;
  }

  .work-card {
    padding: 18px;
  }

  .pager {
    padding-top: 54px;
  }

  .project-panel {
    min-height: auto;
    padding-top: 40px;
  }

  .project-meta span {
    padding: 7px 11px;
    font-size: 0.82rem;
  }

  .bilibili-card {
    align-items: flex-start;
    padding: 14px;
  }

  .bilibili-qr {
    width: 78px;
    flex: 0 0 auto;
  }

  .project-overlay {
    background:
      linear-gradient(180deg, rgba(3, 9, 16, 0.9) 0%, rgba(3, 9, 16, 0.76) 62%, rgba(3, 9, 16, 0.42) 100%),
      linear-gradient(90deg, rgba(3, 9, 16, 0.8), rgba(3, 9, 16, 0.28));
  }

  .contact-section {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

.site-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 18px 20px 28px;
  color: rgba(229, 237, 244, 0.68);
  background: #061724;
  font-size: 0.9rem;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
  transition: color 180ms ease;
}

.site-footer a:hover {
  color: #4fc3e8;
}

