:root {
  --bg: #ffffff;.about-text
  --text: #111111;
  --muted: #888888;
  --line: #ececec;
  --accent: #111111;
}

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

html, body { background: var(--bg); }

body {
  color: var(--text);
  font-family: "Catamaran", "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 16px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--text);
  color: #fff;
  padding: 8px 16px;
  z-index: 1000;
}
.skip-link:focus { left: 8px; top: 8px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.header-inner {
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: inline-flex;
  align-items: center;
}
.logo-img {
  height: 60px;
  width: auto;
  display: block;
}

/* Nav */
.nav { display: flex; align-items: center; }

.nav-menu {
  list-style: none;
  position: fixed;
  top: 89px;
  right: 0;
  bottom: 0;
  width: min(520px, 100vw);
  flex-direction: column;
  gap: 0;
  background: #fff;
  padding: 32px 56px;
  transform: translateY(-12px);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
}
.nav-menu.is-open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}
.nav-menu li { border-bottom: 1px solid var(--line); }
.nav-menu a {
  display: block;
  padding: 16px 4px;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: var(--text);
  transition: opacity 0.2s ease;
}
.nav-menu a:hover { opacity: 0.55; }

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: var(--accent);
  border: none;
  cursor: pointer;
  padding: 11px;
  transition: background 0.3s ease;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: #fff;
  transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease;
}
.nav-toggle.is-open {
  background: transparent;
  padding: 9px;
}
.nav-toggle.is-open span { background: var(--muted); }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* 作品栏目导航 */
.category-nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 1400px;
  padding: 40px 0 4px;
  margin: 0px auto;
}
.category-link {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 14px 8px;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 1px;
  color: var(--text);
  transition: color 0.2s ease;
}
.category-link:hover { color: var(--muted); }

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 24px 0 40px;
  max-width: 1400px;
  margin: 0px auto;
}

.gallery-item {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f3f3f3;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}
.gallery-item:hover img { transform: scale(1.06); }

.gallery-item::after {
  content: attr(data-label);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(17, 17, 17, 0.45);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.gallery-item:hover::after { opacity: 1; }

/* About page */
.about { padding: 56px 0 80px; }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 72px;
  row-gap: 64px;
  align-items: start;
}
.about-eyebrow {
  font-size: 30px;
  font-weight: 400;
  letter-spacing: 2px;
  color: var(--text);
  margin-bottom: 28px;
}
.about-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 22px;
}
.about-text {
  font-size: 15px;
  line-height: 2;
  color: var(--muted);
  max-width: 560px;
  text-wrap: wrap !important;
  white-space: normal !important;
}
.about-text p {
  text-wrap: wrap !important;
  white-space: normal !important;
}
.about-text--spaced { margin-top: 48px; }
.about-figure {
  margin-top: 40px;
  overflow: hidden;
}
.about-figure img {
  width: 100%;
  height: auto;
  display: block;
}

/* 联系我们 */
.about-contact { padding-top: 8px; }
.contact-email {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 28px;
}
.contact-email strong { color: var(--text); font-weight: 700; }
.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.contact-link-text {
  font-size: 14px;
  color: var(--muted);
  transition: color 0.2s ease;
}
.contact-link:hover .contact-link-text { color: var(--text); }
.contact-zcool {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  font-style: italic;
}

/* 二维码黑色面板 */
.qr-panel {
  background: #0a0a0a;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  min-height: 100%;
  padding: 80px 32px;
}
.qr-item { text-align: center; }
.qr-item img {
  width: 150px;
  height: 150px;
  display: block;
  background: #fff;
}
.qr-item figcaption {
  margin-top: 16px;
  color: #fff;
  font-size: 14px;
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 32px 16px;
  color: var(--muted);
  font-size: 13px;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.9);
  padding: 24px;
}
.lightbox[hidden] { display: none; }
.lightbox-img {
  max-width: 90vw;
  max-height: 86vh;
  object-fit: contain;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 28px;
  font-size: 40px;
  line-height: 1;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s ease;
}
.lightbox-close:hover { opacity: 0.6; }

/* 左右切换箭头 */
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
  opacity: 0.75;
  transition: opacity 0.2s ease;
}
.lightbox-nav:hover { opacity: 1; }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

/* 计数器 */
.lightbox-counter {
  position: absolute;
  bottom: 22px;
  right: 28px;
  color: #fff;
  font-size: 15px;
  letter-spacing: 1px;
}

/* Responsive */
@media (max-width: 1024px) {
  .gallery { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; row-gap: 48px; column-gap: 0; }
  .qr-panel { padding: 56px 24px; gap: 32px; }
}

@media (max-width: 768px) {
  .header-inner { height: 70px; }
  .logo-img { height: 45px; }
  .nav-menu { top: 71px; padding: 24px 28px; }
  .nav-menu a { font-size: 20px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .about { padding: 40px 0 56px; }
  .qr-item img { width: 120px; height: 120px; }
}

@media (max-width: 460px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
}
