﻿:root {
  --page-bg: #f5f1eb;
  --panel: #f7f3ed;
  --ink: #242321;
  --muted: #8a8279;
  --warm: #b28a6d;
  --line: #ded7cd;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--page-bg);
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", "Heiti SC", "Noto Sans SC", Arial, sans-serif;
  font-weight: 300;
}

button {
  color: inherit;
  font: inherit;
}
.work-top-nav {
  align-items: center;
  display: flex;
  gap: 10px;
  position: fixed;
  right: 30px;
  top: 28px;
  z-index: 20;
}

.work-top-nav a {
  color: #3d322b;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  padding: 8px 4px;
  text-decoration: none;
  text-shadow: 0 1px 8px rgba(255, 255, 255, 0.62);
  transition: color 0.2s ease;
}

.work-top-nav a:hover {
  color: #171412;
}

.work-sidebar {
  align-items: center;
  background: rgba(248, 245, 239, 0.92);
  bottom: 0;
  display: grid;
  grid-template-rows: auto 1fr;
  left: 0;
  padding: 42px 24px 48px;
  position: fixed;
  top: 0;
  width: 176px;
  z-index: 5;
}

.sidebar-avatar {
  border-radius: 50%;
  display: block;
  height: 88px;
  justify-self: center;
  overflow: hidden;
  width: 88px;
}

.sidebar-avatar img {
  display: block;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  width: 100%;
}

.sidebar-copy {
  align-self: start;
  color: #8d8881;
  display: grid;
  gap: 15px;
  justify-self: start;
  line-height: 1.5;
  padding-top: 86px;
}

.sidebar-copy strong {
  color: #4f4944;
  display: flex;
  font-size: 12px;
  font-weight: 600;
  gap: 9px;
  margin-bottom: 16px;
}

.sidebar-copy strong span {
  background: #a27e62;
  border-radius: 50%;
  height: 5px;
  margin-top: 7px;
  width: 5px;
}

.sidebar-copy p {
  font-size: 11px;
  margin: 0;
}

.sidebar-line {
  display: none;
}

.activity-page {
  margin-left: 176px;
  min-height: 100vh;
}

.activity-hero {
  background: #f6f1ea;
  overflow: hidden;
  position: relative;
}

.activity-hero img {
  display: block;
  height: auto;
  width: 100%;
}

.works-section {
  background: #fbfaf7;
  padding: 52px 56px 96px;
}

.section-heading {
  align-items: baseline;
  display: flex;
  justify-content: space-between;
  margin: 0 0 36px;
}

.section-title {
  align-items: baseline;
  display: flex;
  gap: 16px;
}

.section-heading h2 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin: 0;
}

.section-heading span {
  color: #8f8982;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.section-heading p {
  color: #8f8982;
  font-size: 12px;
  letter-spacing: 0.08em;
  margin: 0;
}

.gallery-grid {
  display: grid;
  gap: 40px 24px;
  grid-template-columns: repeat(3, 1fr);
}

.gallery-card {
  min-width: 0;
}

.gallery-card > button {
  background: transparent;
  border: 0;
  cursor: zoom-in;
  display: block;
  height: 238px;
  overflow: hidden;
  padding: 0;
  width: 100%;
}

.gallery-card img {
  display: block;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  width: 100%;
}

.gallery-card > button:hover img {
  transform: scale(1.035);
}

.card-meta {
  align-items: center;
  display: flex;
  justify-content: space-between;
  padding-top: 16px;
}

.card-meta h3 {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  margin: 0 0 4px;
}

.card-meta p {
  color: #8b857e;
  font-size: 13px;
  margin: 0;
}

.card-meta button {
  background: transparent;
  border: 1px solid #cbc4bb;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  height: 42px;
  line-height: 1;
  width: 42px;
}

.lightbox {
  align-items: center;
  background: rgba(26, 24, 22, 0.86);
  display: none;
  inset: 0;
  justify-content: center;
  padding: 50px 78px;
  position: fixed;
  z-index: 50;
}

.lightbox.is-open {
  display: flex;
}

.lightbox figure {
  margin: 0;
  max-width: min(1060px, 82vw);
}

.lightbox img {
  display: block;
  max-height: 78vh;
  max-width: 100%;
  object-fit: contain;
}

.lightbox figcaption {
  color: #f3eee8;
  font-size: 14px;
  margin-top: 14px;
  text-align: center;
}

.lightbox-close,
.lightbox-nav {
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: flex;
  justify-content: center;
  line-height: 1;
  padding: 0;
  position: absolute;
}

.lightbox-close {
  font-size: 34px;
  height: 48px;
  right: 30px;
  top: 28px;
  width: 48px;
}

.lightbox-nav {
  font-size: 48px;
  height: 58px;
  top: 50%;
  transform: translateY(-50%);
  width: 58px;
}

.lightbox-prev {
  left: 26px;
}

.lightbox-next {
  right: 26px;
}

@media (max-width: 980px) {
  .work-top-nav {
    left: 24px;
    right: 24px;
    top: 18px;
    justify-content: flex-end;
  }

  .work-sidebar {
    align-items: center;
    display: flex;
    gap: 18px;
    height: auto;
    padding: 18px 24px;
    position: static;
    width: auto;
  }

  .sidebar-avatar {
    height: 58px;
    width: 58px;
  }

  .sidebar-copy {
    display: block;
  }

  .sidebar-copy p,
  .sidebar-line {
    display: none;
  }

  .sidebar-copy strong {
    margin: 0;
  }

  .activity-page {
    margin-left: 0;
  }

  .activity-hero {
    height: auto;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .work-top-nav {
    gap: 6px;
    left: 12px;
    right: 12px;
    top: 12px;
  }

  .work-top-nav a {
    font-size: 11px;
    padding: 8px 9px;
  }

  .activity-hero {
    min-height: 0;
  }

  .works-section {
    padding: 36px 20px 70px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .lightbox {
    padding: 54px 18px;
  }
}




