
/* 全站正文与配色 */
body {
  margin: 0;
  background-color: #141414;
  color: #f2ede6;
  font-family: "Manrope", "PingFang SC", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
}

header {
  box-sizing: border-box;
  height: 100px;
  flex-shrink: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2.2%;
}

/* 正文区域 */
main {
  width: 90%;
  max-width: 1120px;
  margin: 32px auto;
}

/* 左文字、右照片 */
.profile {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 72px;
  align-items: start;
}

/* 图片和说明的整体区域 */
.portrait {
  margin: 0;
  height: auto;
  background: transparent;
  overflow: visible;
}

/* 图片随所在栏缩放，保持原比例 */
.portrait img {
  display: block;
  width: 100%;
  height: auto;
}

/* 图片下方的小字 */
.portrait figcaption {
  margin-top: 6px;
  color: #beb8af;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

/* 下方内容的间距 */
.news {
  margin-top: 100px;
}

.collaborations {
  margin-top: 72px;
}

/* 窄屏幕改成上下排列 */
@media (max-width: 768px) {
  .profile {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* 英文姓名 */
.introduction h1 {
  font-family: "Montserrat", sans-serif;
  font-size: 30px;
  font-weight: 300;
  letter-spacing: 0;
  line-height: 1.3;
  margin: 0 0 6px;
}

/* 中文姓名 */
.introduction h2 {
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 28px;
  font-weight: 300;
  margin: 0 0 0px;
}

.introduction h3 {
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  font-weight: 300;
  margin: 0 0 28px;
  color: #beb8af;
}
/* 介绍正文 */
.introduction p {
  font-size: 16px;
  line-height: 1.5;
  margin: 0 0 16px;
}

/* NEWS 与 COLLABORATIONS */
.news h2,
.collaborations h2 {
  font-family: "Montserrat", sans-serif;
  font-size: 24px;
  font-weight: 300;
}
.logo {
  width: 40px;
  height: auto;
  display: block;
}

.portrait {
  overflow: hidden;
}

.portrait img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center right;
}

/* ===== 顶部导航 ===== */

nav {
  display: flex;
  align-items: center;
  gap: 40px;

  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: #aaaaaa;
}

nav a {
  color: #a4a19c;
  text-decoration: none;
  transition: color 0.2s;
}

nav a:hover,
nav a.active {
  color: #f2ede6;
}

/* 手机上缩小间距 */
@media (max-width: 600px) {
  nav {
    gap: 16px;
    font-size: 11px;
    letter-spacing: 0.04em;
  }
}

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;

  margin-top: 100px;
box-sizing: border-box;
flex-shrink: 0;
min-height: 68px;
padding: 8px 2.2%;

  font-family: "Montserrat", "PingFang SC", sans-serif;
  font-weight: 400;
}

/* 去掉段落自带的外边距 */
.site-footer p {
  margin: 0;
}

.footer-name {
  font-size: 16px;
  color: #f2ede6;
}

.copyright {
  font-size: 10px;
  color: #beb8af;
}

/* 手机上改成上下排列 */
@media (max-width: 600px) {
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
gap: 6px;
justify-content: center;
    margin-top: 64px;
  }
}

/* 管理整组链接的排列 */
.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 24px;
}

/* 每个链接的外观 */
.profile-links a {
  display: inline-block;
  padding: 12px 18px;

  background-color: #333333;
  color: #f2ede6;

  font-family: "Montserrat", "PingFang SC", sans-serif;
  font-size: 16px;
  text-decoration: none;

  transition: background-color 0.2s;
}

/* 鼠标移上去时 */
.profile-links a:hover {
  background-color: #484848;
}
/* ===== HOME：静态背景与首屏 ===== */

.home-page {
  height: 100dvh;
  display: flex;
  flex-direction: column;
  isolation: isolate;
}


.home-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
animation: photo-breathe 12s linear infinite;

  background-image:
linear-gradient(rgba(20, 20, 20, 0.65), rgba(20, 20, 20, 0.65)),
    var(--home-photo, url("images/home-01-2.jpg"));

  background-size: 100% 100%, cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* 首页正文占据剩余空间 */
.home-main {
  flex: 1;
  display: flex;

  width: 100%;
  max-width: none;
  margin: 0;
}

.home-hero {
  flex: 1;
  min-width: 0;
  box-sizing: border-box;

  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;

  padding: 60px max(5vw, calc((100vw - 1120px) / 2)) 140px;
}

.home-label {
  font-family: "Montserrat", sans-serif;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: #beb8af;
  margin: 0 0 20px;
}

.home-hero h1 {
  font-family: "Montserrat", sans-serif;
  font-size: 72px;
  font-weight: 300;
  line-height: 1.1;
  margin: 0;
}


.home-page .site-footer {
  position: static;
  flex-shrink: 0;
  box-sizing: border-box;
  min-height: 68px;
  margin: 0;
  padding: 8px 2.2%;
  row-gap: 6px;
  background-color: transparent;
}

@media (max-width: 600px) {
  .home-page .site-footer {
    justify-content: center;
  }
}

/* 两组照片一起移动 */
.photo-track {
  display: flex;
  width: max-content;
  animation: photo-scroll 30s linear infinite;
}

/* 每组照片横向排列 */
.photo-group {
  display: flex;
  flex-shrink: 0;
  gap: 20px;
  padding-right: 20px;
}

.photo-group img {
  display: block;
  width: 320px;
  height: 240px;
  flex-shrink: 0;
  object-fit: cover;
}

/* 从起点移到第二组的起点 */
@keyframes photo-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* 鼠标经过或键盘聚焦时暂停 */
.photo-strip:hover .photo-track,
.photo-strip:focus-within .photo-track {
  animation-play-state: paused;
}

/* 手机上的照片尺寸 */
@media (max-width: 600px) {
  .photo-group img {
    width: 260px;
    height: 195px;
  }
}

/* 系统设置为减少动态时，改成手动横向浏览 */
@media (prefers-reduced-motion: reduce) {
  .photo-track {
    animation: none;
  }

  .photo-strip {
    overflow-x: auto;
  }

  .photo-group[aria-hidden="true"] {
    display: none;
  }
}
/* 首页背景区域铺满页面宽度 */
.home-main {
  flex: 1;
  min-height: 0;
  width: 100%;
  max-width: none;
  margin: 0;
  overflow-y: auto;
}

/* 首屏：建立背景与文字的层次 */
.home-hero {
  position: relative;
  isolation: isolate;
  min-height: 100%;
  box-sizing: border-box;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;

  padding: 40px max(5vw, calc((100vw - 1120px) / 2));
padding-left: clamp(24px, 6vw, 104px);
}

/* 照片带变成背景层 */
.home-hero .photo-strip {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;

  z-index: -2;
  pointer-events: none;
}

/* 移动轨道填满背景高度 */
.home-hero .photo-track {
  height: 100%;
  animation-duration: 60s;
}

/* 两组照片各自占据足够宽度 */
.home-hero .photo-group {
  width: max(100vw, 1500px);
  height: 100%;
  gap: 0;
  padding-right: 0;
}

/* 每张照片均分宽度，填满背景高度 */
.home-hero .photo-group img {
  flex: 1 1 0;
  width: 0;
  min-width: 0;
  height: 100%;

  object-fit: cover;
  object-position: center;
}


.home-photo-controls {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.home-photo-controls button {
  padding: 8px 12px;
  border: 1px solid #beb8af;
  background: rgba(20, 20, 20, 0.6);
  color: #f2ede6;
  font: inherit;
  cursor: pointer;
}
@keyframes photo-breathe {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(var(--photo-zoom, 1.08));
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-page {
    --photo-zoom: 1;
  }
}
.home-copy {
  transform: translateY(min(8vh, 80px));
}
.stories-intro {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  align-items: start;
  gap: clamp(24px, 4vw, 64px);
  padding: 48px 0 64px;
}

.stories-intro img {
  display: block;
  width: 100%;
  height: auto;
}

.stories .stories-intro h1 {
  font-size: 28px;
  margin: 0 0 16px;
}

.stories-intro-copy p {
  margin: 0;
  font-size: 17px;
  line-height: 1.7;
}

.stories-list-title {
  font: 300 26px/1.2 "Montserrat", sans-serif;
  margin: 0 0 24px;
}

@media (max-width: 768px) {
  .stories-intro {
    grid-template-columns: 1fr;
    padding: 24px 0 48px;
  }

  .stories-intro-copy {
    order: -1;
  }
}
main.stories {
  width: calc(100% - 96px);
  max-width: 1400px;
  margin-inline: auto;
}

.stories h1 {
  font: 300 36px/1.2 "Montserrat", sans-serif;
  margin: 0 0 30px;
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 22px;
}

.story-grid + .stories-list-title {
  margin-top: 56px;
}

.story-stack {
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  gap: 22px;
}

.story-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid #3b3936;
  background: #1b1b1b;
  color: inherit;
  text-decoration: none;
}

.story-stack .story-card {
  justify-content: center;
}

.story-grid > .story-card img {
  flex-grow: 1;
}

.story-card:hover,
.story-card:focus-visible {
  border-color: #c2b9ae;
  background: #242323;
}

.story-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.story-card-text {
  padding: 24px;
}

.story-card h2 {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(18px, 1.2vw, 26px);
  line-height: 1.3;
  font-weight: 100;
  margin: 0 0 10px;
}

.story-card p {
  margin: 0;
  color: #beb8af;
  font-size: 14px;
}

main.story-detail {
  max-width: 720px;
}

.story-detail img {
  display: block;
  max-width: 100%;
  height: auto;
}
@media (max-width: 900px) {
  .story-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  main.stories {
    width: 90%;
  }

  .story-grid {
    grid-template-columns: 1fr;
  }
}
/* ABOUT 页面入场动画 */
@keyframes about-enter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .about-page .introduction > *,
  .about-page .portrait,
  .about-page .news,
  .about-page .collaborations {
    animation: about-enter 400ms ease-out both;
  }

  .about-page .introduction > p:nth-of-type(1) {
    animation-delay: 100ms;
  }

  .about-page .introduction > p:nth-of-type(2) {
    animation-delay: 200ms;
  }

  .about-page .introduction > p:nth-of-type(3) {
    animation-delay: 300ms;
  }

  .about-page .profile-links {
    animation-delay: 400ms;
  }

  .about-page .news {
    animation-delay: 500ms;
  }

  .about-page .collaborations {
    animation-delay: 600ms;
  }
}
/* 除 HOME 外，让页面至少铺满一屏 */
body:not(.home-page) {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* 正文填满剩余空间，把页脚推到底部 */
body:not(.home-page) > main {
  flex-grow: 1;
}
.news-item {
  margin: 0 0 4px;
  color: #f2ede6;
}

.news-date {
  color: #beb8af;
}
.people-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.person h3 {
  margin: 0 0 4px;
  font-family: "Montserrat", "PingFang SC", sans-serif;
  font-size: 16px;
  font-weight: 400;
}

.person h3 a {
  color: #f2ede6;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.person h3 a:hover {
  color: #beb8af;
}

.person p {
  margin: 0;
  color: #beb8af;
  font-size: 14px;
  line-height: 1.4;
}

@media (max-width: 800px) {
  .people-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .people-grid {
    grid-template-columns: 1fr;
  }
}
.stories-intro-media {
  margin: 0;
}

.stories-references {
  margin-top: 14px;
  color: #beb8af;
  font-size: 13px;
  line-height: 1.5;
}

.stories-references p {
  margin: 0 0 6px;
  letter-spacing: 0.08em;
}
.stories-references ul {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: reference;
}

.stories-references li {
  counter-increment: reference;
}

.stories-references li::before {
  content: "[" counter(reference) "] ";
}
.stories-references .stories-photo-caption {
  margin-bottom: 12px;
  letter-spacing: normal;
}
.stories-references a:link,
.stories-references a:visited {
  color: #beb8af;
  text-decoration: underline;
  text-underline-offset: 2px;
}
/* 题目与语言按钮 */
.story-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 18px;
}

.story-title-row h1 {
  margin: 0;
}

.story-byline {
  margin: 8px 0 24px;
  color: #beb8af;
}

/* 意大利语和释义各占一列 */
.story-vocab {
  padding: 18px 20px;
  margin: 0 0 28px;
  border: 1px solid #3b3936;
  background: #1b1b1b;
}

.story-vocab h2 {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 500;
}

.story-vocab dl {
  margin: 0;
}

.story-vocab dl > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 6px 0;
}

.story-vocab dd {
  margin: 0;
  color: #beb8af;
}

/* 正文中的照片与图注 */
.story-figure {
  margin: 24px 0;
}

.story-figure img {
  width: 100%;
}

.story-figure figcaption {
  margin-top: 8px;
  color: #beb8af;
  font-size: 13px;
}