/* ============================================================
   AI 视频作品集 — 彩色简约 · 可管理作品网格
   ============================================================ */

:root {
  --ink: #16161e;
  --ink-soft: #5a5a66;
  --bg: #fafaf9;
  --card: #ffffff;
  --primary: #6d5cff;
  --primary-2: #4f9cff;
  --cyan: #22d3ee;
  --pink: #ff5c8a;
  --danger: #e5484d;
  --grad: linear-gradient(120deg, #7c5cff 0%, #4f9cff 55%, #22d3ee 100%);
  --grad-warm: linear-gradient(120deg, #ff5c8a 0%, #ff9a5c 100%);
  --line: rgba(22, 22, 30, 0.1);
  --radius: 18px;
  --shadow-sm: 0 2px 12px rgba(22, 22, 30, 0.06);
  --shadow-md: 0 14px 40px rgba(22, 22, 30, 0.12);
  --shadow-glow: 0 12px 44px rgba(109, 92, 255, 0.32);
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC",
    "Microsoft YaHei", "Segoe UI", sans-serif;
  --header-h: 72px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
em { font-style: italic; }
button { font-family: inherit; }
::selection { background: var(--primary); color: #fff; }

/* ---------- 通用按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 999px;
  border: 0;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease,
    background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 6px 22px rgba(109, 92, 255, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-glow); }

.btn-ghost-dark { background: var(--bg); color: var(--ink); border: 1px solid var(--line); }
.btn-ghost-dark:hover { background: #fff; border-color: var(--ink-soft); }

.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(229, 72, 77, 0.35); }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 clamp(20px, 5vw, 64px);
  z-index: 100;
  transition: background 0.35s ease, box-shadow 0.35s ease;
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}

.brand {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #fff;
  transition: color 0.35s ease;
}
.brand em {
  display: block;
  font-size: 0.56rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-top: -2px;
}
.site-header.scrolled .brand { color: var(--ink); }

.site-nav {
  display: flex;
  gap: clamp(20px, 3vw, 40px);
}
.nav-link {
  position: relative;
  font-size: 0.92rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
  padding: 6px 2px;
  transition: color 0.3s ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  border-radius: 2px;
  background: var(--grad);
  transition: width 0.3s ease;
}
.nav-link:hover::after { width: 100%; }
.site-header.scrolled .nav-link { color: var(--ink-soft); }
.site-header.scrolled .nav-link:hover { color: var(--ink); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.btn-add { padding: 10px 20px; font-size: 0.85rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px; height: 42px;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  border-radius: 2px;
  background: #fff;
  transition: transform 0.3s ease, background 0.3s ease, opacity 0.3s ease;
}
.site-header.scrolled .nav-toggle span { background: var(--ink); }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
  background: #0d0e1c;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(58% 52% at 18% 22%, rgba(124, 92, 255, 0.5) 0%, transparent 62%),
    radial-gradient(52% 48% at 84% 26%, rgba(34, 211, 238, 0.38) 0%, transparent 60%),
    radial-gradient(64% 56% at 52% 88%, rgba(255, 92, 138, 0.34) 0%, transparent 62%),
    linear-gradient(160deg, #12132a 0%, #0d0e1c 55%, #0f1226 100%);
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(70% 62% at 50% 40%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(70% 62% at 50% 40%, #000 0%, transparent 78%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 24px;
  max-width: 880px;
  animation: fadeUp 1s 0.2s ease both;
}

.hero-kicker {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(3.2rem, 10vw, 6.4rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: 0.04em;
  background: linear-gradient(180deg, #fff 20%, rgba(255, 255, 255, 0.72) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  margin: 22px auto 40px;
  font-size: clamp(0.98rem, 1.7vw, 1.14rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.78);
  letter-spacing: 0.04em;
}

.hero-scroll {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.72);
  transition: color 0.3s ease;
}
.hero-scroll:hover { color: #fff; }
.hero-scroll-text {
  font-size: 0.6rem;
  letter-spacing: 0.5em;
  text-transform: uppercase;
}
.hero-scroll-icon {
  width: 22px;
  height: 34px;
  border: 1.5px solid currentColor;
  border-radius: 12px;
  position: relative;
  animation: scrollPulse 2.2s ease-in-out infinite;
}
.hero-scroll-icon::after {
  content: "";
  position: absolute;
  top: 7px;
  left: 50%;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: var(--pink);
  animation: scrollDot 1.6s ease-in-out infinite;
}
@keyframes scrollPulse { 0%, 100% { opacity: 0.4; } 50% { opacity: 1; } }
@keyframes scrollDot {
  0% { opacity: 1; transform: translateY(0); }
  70% { opacity: 0; transform: translateY(12px); }
  100% { opacity: 0; transform: translateY(12px); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- 通用 section ---------- */
.section {
  padding: clamp(84px, 11vw, 140px) clamp(20px, 6vw, 84px);
}

.section-head {
  display: flex;
  gap: 26px;
  align-items: flex-start;
  margin-bottom: clamp(40px, 5vw, 60px);
}
.section-index {
  font-weight: 800;
  font-size: 0.95rem;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: 0.14em;
  line-height: 1.6;
  flex-shrink: 0;
}
.section-title {
  font-size: clamp(1.9rem, 4.2vw, 2.8rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.01em;
}
.section-title em {
  display: block;
  font-size: 0.42em;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-top: 8px;
}
.section-desc {
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.section-desc b {
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- 作品网格 ---------- */
.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.work-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  cursor: pointer;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.work-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.work-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #e9e9f0;
}
video.work-media {
  object-fit: cover;
}

/* 视频播放角标 */
.work-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 58px; height: 58px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}
.work-play::before {
  content: "";
  width: 0; height: 0;
  margin-left: 4px;
  border-left: 16px solid var(--primary);
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
}
.work-card:hover .work-play { opacity: 1; }

.work-info {
  position: absolute;
  inset: auto 0 0 0;
  padding: 34px 18px 16px;
  color: #fff;
  background: linear-gradient(180deg, transparent 0%, rgba(10, 12, 24, 0.82) 74%);
  transition: transform 0.35s ease;
}
.work-info h3 {
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.work-info p {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.78);
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}
.work-type {
  position: absolute;
  top: 14px;
  left: 14px;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(12, 13, 28, 0.55);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

/* 删除按钮 */
.work-del {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 0;
  background: rgba(12, 13, 28, 0.6);
  color: #fff;
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.25s ease;
  z-index: 3;
  backdrop-filter: blur(6px);
}
.work-card:hover .work-del,
.work-del:focus-visible {
  opacity: 1;
  transform: scale(1);
}
.work-del:hover { background: var(--danger); }

.works-empty {
  text-align: center;
  padding: 70px 20px;
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  color: var(--ink-soft);
}
.works-empty p { font-size: 1.2rem; font-weight: 700; margin-bottom: 6px; }
.works-empty span { font-size: 0.9rem; }

/* ---------- 添加作品卡片（网格右下角入口） ---------- */
.add-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  aspect-ratio: 4 / 3;
  border: 2px dashed rgba(109, 92, 255, 0.45);
  border-radius: var(--radius);
  background: rgba(109, 92, 255, 0.035);
  color: var(--primary);
  cursor: pointer;
  transition: all 0.3s ease;
}
.add-tile:hover {
  border-color: transparent;
  background: var(--grad);
  color: #fff;
  transform: translateY(-5px);
  box-shadow: var(--shadow-glow);
}
.add-tile-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid currentColor;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  line-height: 1;
  font-weight: 500;
  transition: all 0.3s ease;
}
.add-tile:hover .add-tile-icon {
  background: rgba(255, 255, 255, 0.18);
  border-color: #fff;
}
.add-tile-label {
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

/* ---------- 关于 ---------- */
.about {
  background: #fff;
  border-top: 1px solid var(--line);
}
.about-inner {
  max-width: 720px;
  margin: 0 auto;
}
.about-title {
  font-size: clamp(1.9rem, 4.2vw, 2.8rem);
  font-weight: 800;
  margin: 22px 0 26px;
}
.about-title em {
  font-style: normal;
  font-size: 0.42em;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: block;
  margin-top: 8px;
}
.about-lead {
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  font-weight: 700;
  line-height: 1.6;
  background: linear-gradient(120deg, var(--primary), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 22px;
}
.about-text {
  color: var(--ink-soft);
  font-size: 1rem;
  margin-bottom: 16px;
  text-align: justify;
}

/* ---------- 联系 ---------- */
.contact-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  max-width: 980px;
}
.contact-item {
  display: block;
  padding: 26px 28px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: all 0.3s ease;
}
.contact-item:hover {
  border-color: transparent;
  background: var(--grad);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.contact-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 8px;
}
.contact-item:hover .contact-label {
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  color: rgba(255, 255, 255, 0.75);
}
.contact-value {
  font-size: 1.1rem;
  font-weight: 600;
  word-break: break-all;
}

/* ---------- 页脚 ---------- */
.site-footer {
  padding: 42px clamp(20px, 6vw, 84px);
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.84rem;
  color: var(--ink-soft);
}
.footer-note {
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: 0.1em;
}

/* ---------- 灯箱 ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: rgba(9, 10, 20, 0.93);
  padding: 40px 20px;
}
.lb-body {
  max-width: min(92vw, 1100px);
  max-height: 76vh;
}
.lb-body img,
.lb-body video {
  max-width: 100%;
  max-height: 76vh;
  border-radius: 14px;
  object-fit: contain;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.lb-meta {
  color: rgba(255, 255, 255, 0.88);
  text-align: center;
  max-width: 640px;
}
.lb-meta h3 {
  font-size: 1.25rem;
  font-weight: 700;
}
.lb-meta p {
  margin-top: 4px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.62);
}
.lb-close {
  position: absolute;
  top: 22px;
  right: 24px;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.25s ease;
}
.lb-close:hover { background: var(--danger); border-color: var(--danger); }

/* ---------- 模态框 ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(9, 10, 20, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.modal-card {
  width: min(560px, 100%);
  background: var(--card);
  border-radius: 22px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  animation: popIn 0.3s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}
.modal-sm { width: min(420px, 100%); }
@keyframes popIn {
  from { opacity: 0; transform: translateY(18px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}
.modal-head h3 { font-size: 1.1rem; font-weight: 800; }
.modal-close {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 0;
  background: var(--bg);
  color: var(--ink);
  font-size: 1.3rem;
  cursor: pointer;
  transition: all 0.2s ease;
}
.modal-close:hover { background: var(--danger); color: #fff; }
.modal-body {
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 24px 22px;
}
.confirm-text { font-size: 0.98rem; color: var(--ink-soft); }
.confirm-text b { color: var(--ink); }

/* ---------- 表单 ---------- */
.input {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--ink);
  background: #fff;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  resize: vertical;
}
.input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(109, 92, 255, 0.12);
}
.field-hint {
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin-top: -6px;
}

.tabs {
  display: flex;
  gap: 6px;
  background: var(--bg);
  border-radius: 12px;
  padding: 5px;
}
.tab {
  flex: 1;
  padding: 9px 0;
  border: 0;
  border-radius: 9px;
  background: transparent;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.25s ease;
}
.tab.active {
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 34px 20px;
  border: 2px dashed rgba(109, 92, 255, 0.4);
  border-radius: 14px;
  background: rgba(109, 92, 255, 0.04);
  cursor: pointer;
  text-align: center;
  transition: all 0.25s ease;
}
.dropzone:hover,
.dropzone.dragover {
  border-color: var(--primary);
  background: rgba(109, 92, 255, 0.09);
}
.dz-icon {
  font-size: 2rem;
  color: var(--primary);
  line-height: 1;
}
.dz-text { font-size: 0.95rem; font-weight: 600; }
.dropzone small { font-size: 0.76rem; color: var(--ink-soft); }

.file-preview {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
}
.file-preview img,
.file-preview video {
  width: 96px;
  height: 68px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}
.file-preview .fp-name {
  font-size: 0.85rem;
  font-weight: 600;
  word-break: break-all;
  line-height: 1.4;
}
.file-preview .fp-size {
  font-size: 0.75rem;
  color: var(--ink-soft);
}
.file-preview .fp-remove {
  position: absolute;
  top: 8px; right: 8px;
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 0;
  background: rgba(229, 72, 77, 0.12);
  color: var(--danger);
  font-size: 1rem;
  cursor: pointer;
  line-height: 1;
}
.file-preview .fp-remove:hover { background: var(--danger); color: #fff; }

/* ---------- 滚动显现 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .works-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  :root { --header-h: 64px; }

  .nav-toggle { display: flex; }
  .btn-add { display: none; }

  .site-nav {
    position: fixed;
    inset: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 34px;
    background: rgba(13, 14, 28, 0.97);
    backdrop-filter: blur(14px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
  }
  .site-nav.open { opacity: 1; visibility: visible; }
  .nav-link { font-size: 1.25rem; color: #fff !important; }

  .works-grid { grid-template-columns: 1fr; }
  .work-card { aspect-ratio: 4 / 3; }

  .section-head { flex-direction: column; gap: 10px; }
  .site-footer { flex-direction: column; text-align: center; }
}

/* ---------- 减弱动态偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
