.site-main,
html,
body {
  scrollbar-width: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar,
.site-main::-webkit-scrollbar {
  display: none;
}

.site-header,
.site-footer {
  color: #ffffff;
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 20;
  background: transparent;
  transition: background-color 0.45s ease, box-shadow 0.45s ease;
}

.site-header.is-scrolled {
  background: rgba(10, 10, 10, 0.88);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.24);
}

.site-footer {
  background: #0f0f0f;
}

.site-header__inner,
.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
}

.site-logo {
  font-size: 0.95rem;
  letter-spacing: 0.32em;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 500;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  gap: 24px;
  font-size: 0.9rem;
}

.site-nav a {
  position: relative;
  padding-bottom: 8px;
  color: rgba(255, 255, 255, 0.72);
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.92);
  opacity: 0;
  transform: scaleX(0.4);
  transform-origin: center;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.site-nav a:hover,
.site-nav a.is-current {
  color: #ffffff;
  text-shadow: 0 0 14px rgba(255, 255, 255, 0.12);
}

.site-nav a:hover::after,
.site-nav a.is-current::after {
  opacity: 1;
  transform: scaleX(1);
}

.site-main {
  background: #f5f5f1;
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: #111111;
  color: #ffffff;
  overflow: hidden;
}

.hero__media,
.hero__frame,
.hero__frame img,
.hero__overlay {
  position: absolute;
  inset: 0;
}

.hero__overlay {
  z-index: 1;
  background:
    linear-gradient(to bottom, rgba(6, 6, 6, 0.24), rgba(6, 6, 6, 0.48)),
    radial-gradient(circle at center, rgba(255, 255, 255, 0.06), transparent 55%);
}

.hero__copy {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0 24px;
  text-align: center;
}

.hero__frame {
  display: none;
  margin: 0;
}

.hero__frame.is-active {
  display: block;
}

.hero__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
}

.hero__frame.is-active img {
  animation: heroImageDrift 14s ease-in-out infinite alternate;
}

.hero__title {
  margin: 0;
  font-size: clamp(4rem, 11vw, 8.2rem);
  line-height: 0.94;
  font-weight: 300;
  letter-spacing: 0.08em;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.hero__scroll-cue {
  position: absolute;
  bottom: 34px;
  left: 50%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  transform: translateX(-50%);
}

.hero__scroll-line {
  width: 1px;
  height: 26px;
  background: rgba(255, 255, 255, 0.45);
}

.hero__scroll-arrow {
  display: block;
  width: 12px;
  height: 12px;
  border-right: 1px solid rgba(255, 255, 255, 0.75);
  border-bottom: 1px solid rgba(255, 255, 255, 0.75);
  transform: rotate(45deg);
}

.hero__title,
.hero__scroll-cue,
.site-header {
  opacity: 0;
}

.is-ready .site-header {
  opacity: 1;
  animation: heroFadeIn 0.8s ease forwards;
}

.is-ready .hero__title {
  animation: heroTitleReveal 1.15s cubic-bezier(0.22, 1, 0.36, 1) 0.15s forwards;
}

.is-ready .hero__scroll-cue {
  animation:
    heroFadeIn 0.8s ease 0.8s forwards,
    scrollCueFloat 2.2s ease-in-out 1.2s infinite;
}

@keyframes heroFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes heroTitleReveal {
  from {
    opacity: 0;
    transform: translateY(26px) scale(0.985);
    letter-spacing: 0.16em;
    filter: blur(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    letter-spacing: 0.08em;
    filter: blur(0);
  }
}

@keyframes scrollCueFloat {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(8px);
  }
}

@keyframes heroImageDrift {
  0% {
    transform: scale(1.05) translate3d(0, 0, 0);
  }

  50% {
    transform: scale(1.08) translate3d(-1.2%, -0.8%, 0);
  }

  100% {
    transform: scale(1.1) translate3d(1.2%, 0.6%, 0);
  }
}

.portfolio-section,
.contact-section,
.gallery-placeholder {
  padding: 80px 0;
}

.about-section {
  padding: 0 0 80px;
}

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

.portfolio-item {
  display: grid;
  gap: 24px;
  align-content: start;
}

.portfolio-item__image-link {
  display: block;
  overflow: hidden;
  background: #e8e8e3;
}

.portfolio-item img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  transition: transform 0.7s ease, filter 0.5s ease;
}

.portfolio-item:hover img {
  transform: scale(1.02);
  filter: contrast(1.03);
}

.portfolio-item__content {
  display: grid;
  justify-items: start;
  align-content: start;
  height: 12rem;
  gap: 12px;
}

.portfolio-item__title {
  margin: 0;
  max-width: 12em;
  font-size: 2rem;
  line-height: 1.22;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.portfolio-item__summary,
.about-section__copy p,
.gallery-placeholder__copy {
  margin: 0;
  color: #4f4f4f;
}

.portfolio-item__summary {
  max-width: 24em;
  font-size: 0.95rem;
  line-height: 1.9;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
}

.portfolio-item__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 112px;
  min-height: 42px;
  padding: 0 20px;
  border: 1px solid #111111;
  color: #111111;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  transition: background-color 0.28s ease, color 0.28s ease, transform 0.28s ease;
}

.portfolio-item__button:hover {
  background: #111111;
  color: #ffffff;
  transform: translateY(-1px);
}

/* 置顶作品样式 */
.portfolio-item.is-pinned {
  position: relative;
}

.portfolio-item__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 4px 12px;
  background: rgba(100, 100, 100, 0.7);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.portfolio-item__pin-icon {
  display: inline-block;
  margin-left: 6px;
  font-size: 0.9rem;
}

/* 懒加载过渡效果 */
.portfolio-item__image--lazy {
  opacity: 0;
  transition: opacity 0.4s ease;
}

.portfolio-item__image--lazy.is-loaded {
  opacity: 1;
}

.about-section__stack {
  display: grid;
  gap: 40px;
}

.about-section__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 56px;
  align-items: start;
}

.about-section__visual {
  margin: 0;
  background: #e8e8e3;
}

.about-section__visual img {
  width: 100%;
  height: 720px;
  object-fit: cover;
}

.about-section__panel {
  display: grid;
  justify-items: start;
  gap: 24px;
  padding-top: 12px;
}

.about-section__profile-image {
  width: 172px;
  height: 172px;
  border-radius: 50%;
  object-fit: cover;
}

.about-section__identity {
  display: grid;
  gap: 8px;
}

.about-section__name {
  margin: 0;
  font-size: 2rem;
  font-weight: 400;
}

.about-section__role {
  margin: 0;
  color: #5e5e58;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.about-section__copy {
  display: grid;
  gap: 14px;
}

.about-section__contacts {
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid #d9d9d2;
}

.about-section__contacts li {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid #d9d9d2;
}

.about-section__contact-label {
  color: #7b7b74;
  letter-spacing: 0.08em;
}

.about-section__contacts a,
.about-section__contact-value {
  color: #111111;
  word-break: break-word;
}

.about-section__socials {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.about-section__social-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 10px 16px 10px 10px;
  border: 1px solid #d9d9d2;
  border-radius: 999px;
  background: #fbfbf8;
  color: #111111;
  transition: background-color 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.about-section__social-button:hover {
  background: #ffffff;
  border-color: #c8c8c0;
  transform: translateY(-1px);
}

.about-section__social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #ffffff;
}

.about-section__social-button img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.about-section__social-label {
  font-size: 0.94rem;
  line-height: 1;
  white-space: nowrap;
}

.contact-section__inner {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 32px;
}

.contact-section__heading {
  display: grid;
  gap: 10px;
  justify-items: center;
  text-align: center;
}

.contact-section__heading h2 {
  margin: 0;
}

.contact-section__intro {
  max-width: 28rem;
  margin: 0;
  color: #5e5e58;
  line-height: 1.9;
}

.contact-form {
  display: grid;
  width: min(100%, 640px);
  gap: 18px;
  padding: 32px;
  border: 1px solid #d9d9d2;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 20px 60px rgba(17, 17, 17, 0.05);
}

.contact-form label {
  display: grid;
  gap: 8px;
}

.contact-form label span {
  color: #66665f;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 16px 18px;
  border: 1px solid #cecec7;
  border-radius: 18px;
  background: #ffffff;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.contact-form textarea {
  min-height: 176px;
  resize: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #9e9e96;
  box-shadow: 0 0 0 4px rgba(17, 17, 17, 0.05);
}

.contact-form button,
.admin-login__form button,
.admin-toolbar button,
.admin-form button,
.admin-table button {
  border: 0;
  padding: 14px 20px;
  color: #ffffff;
  background: #111111;
}

.contact-form button {
  justify-self: center;
  min-width: 180px;
  border-radius: 999px;
  letter-spacing: 0.08em;
}

.contact-form__status {
  min-height: 24px;
  margin: 0;
  color: #333333;
  text-align: center;
}

.gallery-placeholder__back {
  display: inline-block;
  margin-bottom: 24px;
}

.gallery-placeholder__panel {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  border: 1px dashed #b8b8b2;
  background: #ffffff;
  color: #7c7c76;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .portfolio-grid,
  .about-section__layout,
  .contact-section__inner {
    grid-template-columns: 1fr;
  }

  .site-header__inner,
  .site-footer__inner {
    flex-direction: column;
    gap: 16px;
  }

  .site-nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero__title {
    font-size: clamp(3.5rem, 18vw, 5.6rem);
  }

  .about-section__visual img {
    height: 440px;
  }

  .about-section__contacts li {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}
