:root {
  --bg: #0e0f12;
  --bg-soft: #16171c;
  --card: #1a1b21;
  --line: #26272e;
  --text: #e9e7e2;
  --muted: #8f8b83;
  --accent: #d8a24a;
  --radius: 14px;
  --nav-h: 64px;
  --font: "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html {
  scrollbar-color: #3a3b42 var(--bg);
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.section-eyebrow {
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--accent);
}

h2 {
  margin: 0 0 40px;
  font-size: clamp(26px, 3.4vw, 36px);
  letter-spacing: 0.1em;
  font-weight: 700;
}

/* ---------- 顶部导航 ---------- */
.topnav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 4vw, 56px);
  transition: background 0.3s, box-shadow 0.3s, backdrop-filter 0.3s;
}
.topnav.scrolled {
  background: rgba(14, 15, 18, 0.78);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}
.topnav-logo {
  color: var(--text);
  text-decoration: none;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.14em;
}
.topnav-logo span {
  color: var(--accent);
  font-size: 13px;
  font-weight: 400;
  margin-left: 8px;
  letter-spacing: 0.22em;
}
.topnav-links { display: flex; gap: 6px; }
.topnav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.12em;
  padding: 8px 14px;
  border-radius: 999px;
  transition: color 0.2s, background 0.2s;
}
.topnav-links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
@media (max-width: 640px) {
  .topnav-links a { padding: 8px 8px; font-size: 13px; }
  .topnav-logo span { display: none; }
}

/* ---------- Hero：黑白杂志风排版 ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  background: #050506;
  overflow: hidden;
  display: flex;
}
.hero-media {
  position: absolute;
  top: 0;
  right: 0;
  width: 66%;
  height: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.35) 28%, #000 62%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.35) 28%, #000 62%);
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 0.92;
  animation: heroZoom 16s ease-out both;
}
@keyframes heroZoom { from { transform: scale(1.06); } to { transform: scale(1); } }
.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #050506 0%, #050506 22%, rgba(5,5,6,0.72) 42%, rgba(5,5,6,0.12) 68%, rgba(5,5,6,0.35) 100%),
    linear-gradient(180deg, rgba(5,5,6,0.55) 0%, transparent 30%, transparent 72%, rgba(5,5,6,0.85) 100%);
}
.hero-grid {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1560px;
  margin: 0 auto;
  padding: clamp(96px, 11vw, 150px) clamp(24px, 5vw, 72px) clamp(36px, 4vw, 56px);
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 24px;
}
.hero-year {
  margin: 0;
  font-size: clamp(18px, 2.2vw, 26px);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #f2f0ec;
}
.hero-title {
  align-self: center;
  margin: 0;
  display: flex;
  flex-direction: column;
  font-size: clamp(44px, 8.6vw, 132px);
  font-weight: 900;
  line-height: 0.94;
  letter-spacing: -0.022em;
  color: #fff;
  text-transform: uppercase;
}
.hero-title span { display: block; }
.hero-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.hero-name-cn {
  margin: 0 0 8px;
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #fff;
}
.hero-name-cn span {
  display: block;
  margin-top: 8px;
  font-size: clamp(15px, 1.6vw, 18px);
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.hero-contact {
  margin: 0 0 18px;
  font-size: clamp(16px, 1.7vw, 20px);
  letter-spacing: 0.03em;
  color: #c9c5bd;
}
.hero-contact a {
  color: #e9e7e2;
  text-decoration: none;
  border-bottom: 1px solid rgba(233, 231, 226, 0.35);
  padding-bottom: 1px;
  transition: color 0.2s, border-color 0.2s;
}
.hero-contact a:hover { color: var(--accent); border-color: var(--accent); }
.hero-contact .sep { margin: 0 10px; color: #56544c; }
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.btn {
  display: inline-block;
  padding: 13px 32px;
  border-radius: 999px;
  font-size: 14px;
  letter-spacing: 0.16em;
  text-decoration: none;
  transition: transform 0.2s, background 0.2s, border-color 0.2s, color 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--accent);
  color: #14120c;
  font-weight: 600;
}
.btn-primary:hover { background: #e5b25f; }
.btn-ghost {
  color: #f2f0ec;
  border: 1px solid rgba(233, 231, 226, 0.45);
}
.btn-ghost:hover { border-color: rgba(233, 231, 226, 0.9); background: rgba(255, 255, 255, 0.08); }
.hero-label {
  margin: 0;
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 900;
  letter-spacing: 0.02em;
  color: #fff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.75), 0 1px 3px rgba(0, 0, 0, 0.6);
}
.hero-label sup {
  font-size: 0.42em;
  font-weight: 600;
  vertical-align: super;
  margin-left: 2px;
}
.hero-cue {
  position: absolute;
  left: 50%;
  bottom: clamp(18px, 3vh, 28px);
  z-index: 3;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: rgba(233, 231, 226, 0.8);
  border: 1px solid rgba(233, 231, 226, 0.28);
  background: rgba(5, 5, 6, 0.35);
  backdrop-filter: blur(4px);
  text-decoration: none;
  transform: translateX(-50%);
  animation: cueFloat 2s ease-in-out infinite;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.hero-cue:hover {
  color: var(--accent);
  border-color: rgba(216, 162, 74, 0.7);
  background: rgba(216, 162, 74, 0.08);
}
.hero-cue svg { display: block; }
@keyframes cueFloat {
  0%, 100% { translate: 0 0; opacity: 0.75; }
  50% { translate: 0 7px; opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-cue { animation: none; }
}
@media (max-width: 860px) {
  .hero-cue { width: 40px; height: 40px; bottom: 16px; }
  .hero-cue svg { width: 19px; height: 19px; }
}
@media (max-width: 860px) {
  .hero-media { width: 100%; opacity: 0.75; }
  .hero-shade {
    background:
      linear-gradient(180deg, #050506 0%, rgba(5,5,6,0.55) 26%, rgba(5,5,6,0.35) 55%, #050506 100%);
  }
  .hero-grid { grid-template-rows: auto 1fr auto; }
  .hero-title { font-size: clamp(38px, 11.5vw, 60px); }
  .hero-label { width: 100%; text-align: right; }
}

/* ---------- 关于 ---------- */
.about {
  padding: 90px 24px 70px;
  max-width: 1200px;
  margin: 0 auto;
}
.about-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: start;
}
.about-lead {
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.9;
  color: var(--text);
  margin: 0 0 20px;
}
.about-lead b { color: var(--accent); font-weight: 600; }
.about-desc { color: var(--muted); margin: 0 0 24px; }

.about-skills {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.about-skills li {
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--text);
  border: 1px solid rgba(216, 162, 74, 0.35);
  background: rgba(216, 162, 74, 0.07);
  border-radius: 999px;
  padding: 6px 14px;
}

.about-timeline {
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-left: 2px;
  border-left: 1px solid var(--line);
  padding-left: 18px;
}
.tl-item { display: grid; grid-template-columns: 128px 1fr; gap: 14px; align-items: start; }
.tl-time {
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.04em;
  padding-top: 3px;
  white-space: nowrap;
}
.tl-body b { font-size: 15px; letter-spacing: 0.02em; }
.tl-role { margin-left: 10px; font-size: 12px; color: var(--muted); letter-spacing: 0.04em; }
.tl-body p { margin: 3px 0 0; font-size: 13px; color: var(--muted); }
@media (max-width: 640px) {
  .tl-item { grid-template-columns: 1fr; gap: 2px; }
}
.about-projects {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.about-projects li {
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  background: var(--bg-soft);
}

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.stat {
  border: 1px solid var(--line);
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 30px 20px;
  text-align: center;
}
.stat b {
  display: block;
  font-size: clamp(34px, 4vw, 46px);
  font-weight: 700;
  color: var(--accent);
  line-height: 1.1;
}
.stat span {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  letter-spacing: 0.16em;
  color: var(--muted);
}
@media (max-width: 860px) {
  .about-inner { grid-template-columns: 1fr; }
}

/* ---------- 分类入口卡片 ---------- */
.categories {
  padding: 80px 24px 40px;
  max-width: 1500px;
  margin: 0 auto;
}
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 860px) {
  .cat-grid { grid-template-columns: 1fr; }
}
.cat-card {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  border: 1px solid var(--line);
  color: var(--text);
}
.cat-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.cat-card:hover img { transform: scale(1.06); }
.cat-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(8, 8, 10, 0.88));
}
.cat-info {
  position: absolute;
  inset: auto 0 0 0;
  padding: 22px 24px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}
.cat-info h3 {
  margin: 0;
  font-size: 24px;
  letter-spacing: 0.12em;
}
.cat-info p {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--muted);
}
.cat-arrow {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(233, 231, 226, 0.4);
  color: var(--text);
  font-size: 18px;
  line-height: 38px;
  text-align: center;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.cat-card:hover .cat-arrow {
  background: var(--accent);
  border-color: var(--accent);
  color: #14120c;
  transform: translateX(4px);
}

/* ---------- 作品区 ---------- */
.works {
  padding: 60px 24px 40px;
  max-width: 1500px;
  margin: 0 auto;
}
.works-head { text-align: center; }
.works-head h2 { margin-bottom: 0; }

.filter-nav {
  position: sticky;
  top: calc(var(--nav-h) + 2px);
  z-index: 10;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 22px 16px 18px;
  background: linear-gradient(var(--bg) 72%, transparent);
}
.filter-btn {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  color: var(--muted);
  font-family: var(--font);
  font-size: 15px;
  letter-spacing: 0.06em;
  padding: 8px 20px;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.filter-btn:hover { color: var(--text); border-color: #3c3d46; }
.filter-btn.active {
  color: #14120c;
  background: var(--accent);
  border-color: var(--accent);
  font-weight: 600;
}
.filter-btn .count {
  margin-left: 6px;
  font-size: 12px;
  opacity: 0.75;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  padding-top: 6px;
}
/* 统一画幅网格（角色分类）：等比例卡片，行列对齐 */
.grid.uniform {
  display: grid;
  grid-template-columns: repeat(var(--ucols, 2), minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}
.grid.uniform .card-media {
  background: #0d0e12;
}
.grid.uniform .card-media img {
  position: relative;
  z-index: 1;
  object-fit: contain;
  object-position: 50% 50%;
}
/* 同图模糊底衬，填满统一画幅的空白，避免裁切作品 */
.grid.uniform .card-bg {
  position: absolute;
  inset: -10%;
  background-size: cover;
  background-position: center;
  filter: blur(26px) brightness(0.32) saturate(0.8);
  transform: scale(1.04);
}
@media (max-width: 900px) {
  .grid.uniform { gap: 16px; }
}
@media (max-width: 640px) {
  .grid.uniform {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* 分类自定义列数（角色两列 / 怪物单列）：不拉伸、不留空，按顺序交替填充 */
.grid.masonry-mode { display: block; }
.masonry {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}
.mcol {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
@media (max-width: 900px) {
  .masonry { gap: 14px; }
  .mcol { gap: 14px; }
}
@media (max-width: 640px) {
  .grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .masonry { gap: 10px; }
  .mcol { gap: 10px; }
  .works { padding: 40px 12px 32px; }
}

.card {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  cursor: zoom-in;
  animation: fadeUp 0.45s ease both;
}
.card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.card-media { position: relative; width: 100%; overflow: hidden; }
.card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.card:hover .card-media img { transform: scale(1.045); }

.card-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 40px 14px 12px;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  background: linear-gradient(transparent, rgba(8, 8, 10, 0.85));
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.card:hover .card-overlay,
.card:focus-visible .card-overlay { opacity: 1; transform: none; }
.card-title {
  font-size: 14px;
  letter-spacing: 0.02em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.badge {
  flex: none;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--accent);
  border: 1px solid rgba(216, 162, 74, 0.5);
  border-radius: 999px;
  padding: 2px 10px;
  background: rgba(14, 15, 18, 0.6);
}

/* 制作软件角标（Arnold / Unreal Engine 等），图片右下角，可多个并排 */
.soft-badges {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.soft-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px 5px 8px;
  border-radius: 8px;
  background: rgba(26, 27, 31, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(6px);
  color: #f4f2ee;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1;
  white-space: nowrap;
}
.soft-badge svg { display: block; flex: none; }
.soft-badge .soft-badge-icon { width: 20px; height: 20px; display: block; flex: none; }
.soft-badge .soft-badge-icon--marmoset { width: 17px; height: 17px; }
.card:hover .soft-badges { opacity: 0; }
@media (max-width: 640px) {
  .soft-badges { right: 8px; bottom: 8px; gap: 5px; }
  .soft-badge { padding: 4px 9px 4px 6px; font-size: 11px; border-radius: 7px; gap: 5px; }
  .soft-badge svg { width: 13px; height: 13px; }
  .soft-badge .soft-badge-icon { width: 17px; height: 17px; }
}

.video-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(8, 8, 10, 0.65);
  border: 1px solid var(--line);
  backdrop-filter: blur(4px);
}
.video-badge::before {
  content: "";
  width: 0; height: 0;
  border-left: 7px solid var(--text);
  border-top: 4.5px solid transparent;
  border-bottom: 4.5px solid transparent;
}

.empty { text-align: center; color: var(--muted); padding: 60px 0; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- 灯箱 ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(7, 7, 9, 0.95);
  backdrop-filter: blur(10px);
  animation: lbIn 0.25s ease;
}
.lightbox[hidden] { display: none; }
@keyframes lbIn { from { opacity: 0; } to { opacity: 1; } }

.lb-stage {
  margin: 0;
  max-width: min(92vw, 1600px);
  max-height: 78vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lb-stage img,
.lb-stage video {
  max-width: min(92vw, 1600px);
  max-height: 78vh;
  border-radius: 6px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
  background: #000;
}
.lb-stage img { object-fit: contain; cursor: zoom-in; user-select: none; -webkit-user-drag: none; }
.lb-stage img.zoomed { cursor: grab; }
.lb-stage img.dragging { cursor: grabbing; }
.lb-stage video { width: auto; }

.lb-caption {
  margin-top: 18px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.lb-title { font-size: 16px; letter-spacing: 0.04em; }
.lb-meta { font-size: 13px; color: var(--muted); }
.lb-counter {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 13px;
  color: #cfcac2;
  letter-spacing: 0.2em;
  padding: 3px 14px;
  border-radius: 999px;
  background: rgba(8, 8, 10, 0.55);
  border: 1px solid var(--line);
}

.lb-zoom {
  position: absolute;
  top: 20px;
  left: 20px;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 12px;
  background: rgba(8, 8, 10, 0.55);
  transition: color 0.2s, border-color 0.2s;
}
.lb-zoom.active { color: var(--accent); border-color: rgba(216, 162, 74, 0.5); }
.lb-zoom[hidden] { display: none; }

.lb-btn {
  position: absolute;
  z-index: 2;
  appearance: none;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 34px;
  width: 56px;
  height: 56px;
  line-height: 1;
  border-radius: 50%;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}
.lb-btn:hover { color: var(--text); background: rgba(255, 255, 255, 0.07); }
.lb-close { top: 14px; right: 18px; font-size: 40px; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }

/* ---------- 联系方式（点击复制） ---------- */
.contact-btn {
  appearance: none;
  background: none;
  border: none;
  border-bottom: 1px solid rgba(233, 231, 226, 0.35);
  border-radius: 0;
  margin: 0;
  padding: 0 0 1px;
  font: inherit;
  letter-spacing: inherit;
  color: #e9e7e2;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.contact-btn:hover { color: var(--accent); border-color: var(--accent); }
.contact-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.contact-btn.copied { color: var(--accent); border-color: var(--accent); }
.footer-contact .contact-btn { color: #e9e7e2; }
.footer-contact .contact-btn:hover { color: var(--accent); }

.toast {
  position: fixed;
  left: 50%;
  bottom: 92px;
  z-index: 120;
  transform: translate(-50%, 10px);
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid rgba(216, 162, 74, 0.5);
  background: rgba(18, 19, 22, 0.96);
  color: #f2f0ec;
  font-size: 13px;
  letter-spacing: 0.08em;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
}
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* ---------- 返回顶部 ---------- */
.to-top {
  position: fixed;
  right: clamp(16px, 3vw, 32px);
  bottom: clamp(16px, 3vw, 32px);
  z-index: 60;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: var(--accent);
  color: #14120c;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s, transform 0.25s, visibility 0.25s, background 0.2s;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: #e5b25f; }
.to-top:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
@media (max-width: 640px) {
  .to-top { width: 42px; height: 42px; right: 16px; bottom: 16px; }
  .to-top svg { width: 20px; height: 20px; }
}

/* ---------- 页脚 ---------- */
.site-footer {
  margin-top: 40px;
  border-top: 1px solid var(--line);
  text-align: center;
  padding: 44px 24px 56px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.08em;
}
.footer-contact {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 15px;
  margin-bottom: 10px;
}
.footer-contact a { color: var(--text); text-decoration: none; letter-spacing: 0.06em; }
.footer-contact a:hover { color: var(--accent); }
.footer-contact .sep { color: var(--muted); margin: 0 10px; }
.site-footer p { margin: 0; }
