/* ====== Less is More · 极简风格 ====== */

html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }

/* 桌面端内容使用更宽的画布，避免大屏两侧留下过多空白；移动端恢复紧凑边距。 */
.page-wide {
  width: min(100%, 108rem);
  margin-inline: auto;
}
@media (max-width: 767px) {
  .page-wide { width: 100%; }
}

/* 其他页面仍使用 Tailwind 的 max-w 容器名，这里统一放宽桌面端画布。 */
@media (min-width: 768px) {
  .max-w-5xl,
  .max-w-6xl,
  .max-w-7xl {
    max-width: 108rem !important;
  }
}

/* 章节标题 */
.section-title {
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  line-height: 1.2;
}

/* 导航链接下划线动效 */
.nav-link { position: relative; transition: color 0.3s ease; }
.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: -4px;
  width: 0; height: 1px; background: #111111; transition: width 0.3s ease;
}
.nav-link:hover { color: #111111; }
.nav-link:hover::after { width: 100%; }

/* 滚动进入动画 */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.in { opacity: 1; transform: none; }

/* 通用图片灰度悬停 */
.img-hover { filter: grayscale(100%); transition: filter 0.6s ease, transform 0.6s ease; cursor: pointer; }
.img-hover:hover { filter: grayscale(0%); }

/* 文本链接 */
.link-underline {
  border-bottom: 1px solid #111111; padding-bottom: 1px;
  transition: color 0.3s ease, border-color 0.3s ease;
}
.link-underline:hover { color: #8a8a8a; border-color: #8a8a8a; }

/* 游戏作品胶片样式统一维护于 editorial.css。 */

/* ===== 数据统计数字 ===== */
.stat-num { font-family: 'Inter', sans-serif; font-weight: 300; line-height: 1; }

/* ===== 自定义光标 ===== */
#cursor {
  position: fixed; top: 0; left: 0; width: 8px; height: 8px;
  border-radius: 50%; background: #777777; pointer-events: none; z-index: 60;
  transform: translate(-50%, -50%); transition: width .25s ease, height .25s ease, background .25s ease, opacity .25s ease;
  mix-blend-mode: difference; opacity: 0;
}
#cursor.active { width: 48px; height: 48px; background: #ffffff; }
@media (hover: hover) and (pointer: fine) {
  body { cursor: none; }
  a, button, [data-cursor], .img-hover { cursor: none; }
}

/* 列表行悬停 */
.row-hover { transition: padding-left 0.3s ease, color 0.3s ease; }
.row-hover:hover { padding-left: 0.5rem; }
.award-row { min-width: 0; }
.award-name { min-width: 0; line-height: 1.6; }
.award-category {
  display: inline-block;
  margin-left: .45rem;
  color: #999;
  font-family: 'Inter', 'Noto Serif SC', sans-serif;
  font-size: .68rem;
  letter-spacing: .08em;
  white-space: nowrap;
}
@media (max-width: 640px) {
  .award-row { align-items: flex-start; gap: .75rem; }
  .award-row > span:last-child { gap: .6rem; }
  .award-row > span:last-child .w-24 { width: auto; }
}

/* Lightbox */
#lightbox.open { display: flex; }

/* ===== 本地预览编辑模式（只在 localhost 且带 ?edit=1 时出现） ===== */
#localEditorBar {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 70;
  display: flex;
  align-items: center;
  gap: .45rem;
  max-width: calc(100vw - 2rem);
  padding: .55rem .65rem;
  border: 1px solid #cfcfcf;
  background: rgba(250,250,250,.96);
  box-shadow: 0 14px 36px -22px rgba(0,0,0,.4);
  color: #333;
  font-family: 'Inter', 'Noto Serif SC', sans-serif;
  font-size: .66rem;
}
#localEditorBar::after {
  content: attr(data-message);
  color: #777;
  margin-left: .25rem;
}
.local-editor-title {
  padding-right: .35rem;
  color: #111;
  letter-spacing: .08em;
  white-space: nowrap;
}
#localEditorBar button {
  border: 1px solid #cfcfcf;
  background: #fff;
  padding: .35rem .55rem;
  color: #333;
  cursor: pointer;
  white-space: nowrap;
}
#localEditorBar button:hover { border-color: #111; color: #111; }
.local-editor-tip { color: #999; white-space: nowrap; }
.local-editing [contenteditable="true"] {
  outline: 1px dashed rgba(110,110,110,.55);
  outline-offset: 3px;
}
@media (max-width: 640px) {
  #localEditorBar { left: 1rem; right: 1rem; flex-wrap: wrap; }
  .local-editor-tip { width: 100%; }
}

/* 减少动态偏好 */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  * { scroll-behavior: auto; }
}

/* ===== 作品详情页 · 阅读排版 ===== */
.prose-reader { font-weight: 300; color: #333; }
.prose-reader h1 {
  font-family: 'Noto Serif SC', serif; font-weight: 300;
  font-size: 1.9rem; line-height: 1.3; margin: 2.5rem 0 1rem; color: #111;
}
.prose-reader h2 {
  font-family: 'Noto Serif SC', serif; font-weight: 400;
  font-size: 1.3rem; margin: 2.5rem 0 1rem; color: #111;
  padding-left: 0.9rem; border-left: 2px solid #111;
}
.prose-reader h3 {
  font-weight: 500; font-size: 1.05rem; margin: 1.8rem 0 0.6rem; color: #111;
}
.prose-reader p { font-size: 0.95rem; line-height: 1.9; margin: 1rem 0; color: #555; }
.prose-reader strong { color: #111; font-weight: 500; }
.prose-reader ul, .prose-reader ol { margin: 1rem 0; padding-left: 1.3rem; }
.prose-reader li { font-size: 0.95rem; line-height: 1.9; margin: 0.3rem 0; color: #555; }
.prose-reader ul li { list-style: none; position: relative; padding-left: 1rem; }
.prose-reader ul li::before {
  content: ""; position: absolute; left: 0; top: 0.85em;
  width: 6px; height: 1px; background: #111;
}
.prose-reader ol { list-style: decimal; }
.prose-reader blockquote {
  margin: 1.5rem 0; padding: 0.2rem 0 0.2rem 1.2rem;
  border-left: 2px solid #e2e2e2; color: #8a8a8a; font-style: normal;
}
.prose-reader hr { border: none; border-top: 1px solid #e2e2e2; margin: 2.5rem 0; }
.prose-reader a { color: #111; border-bottom: 1px solid #c4c4c4; }
.prose-reader a:hover { border-color: #111; }
.prose-reader img { width: 100%; margin: 1.5rem 0; filter: grayscale(100%); }
.prose-reader code {
  font-family: 'Inter', monospace; font-size: 0.85em;
  background: #f0f0f0; padding: 0.1em 0.4em; border-radius: 2px;
}

/* ===== 首页 · 三大分类入口卡片 ===== */
.entry-card {
  display: block; text-decoration: none; color: inherit;
  border: 1px solid #e2e2e2; background: #fff;
  transition: transform .5s cubic-bezier(.2,.8,.2,1), box-shadow .5s ease;
}
.entry-card:hover { transform: translateY(-8px); box-shadow: 0 24px 48px -28px rgba(0,0,0,.28); }
.entry-cover { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #e2e2e2; }
.entry-cover img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(100%); transition: filter .6s ease, transform .8s ease;
}
.entry-card:hover .entry-cover img { filter: grayscale(0%); transform: scale(1.05); }
.entry-index {
  position: absolute; top: 1rem; left: 1rem;
  font-family: 'Inter', sans-serif; font-size: 2rem; font-weight: 300;
  color: #fff; mix-blend-mode: difference;
}
.entry-body { padding: 1.75rem; }
.entry-more {
  display: inline-block; margin-top: 1.5rem;
  font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: #111;
  opacity: 0; transform: translateX(-6px); transition: opacity .4s ease, transform .4s ease;
}
.entry-card:hover .entry-more { opacity: 1; transform: none; }

/* ===== 运动 · 主项大卡片 ===== */
.sport-main {
  display: grid; grid-template-columns: 1fr; border: 1px solid #e2e2e2; background: #fff;
  overflow: hidden;
}
@media (min-width: 768px) { .sport-main { grid-template-columns: 1.3fr 1fr; } }
.sport-main-img { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #e2e2e2; }
.sport-main-img img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(100%); transition: filter .6s ease, transform .8s ease;
}
.sport-main:hover .sport-main-img img { filter: grayscale(0%); transform: scale(1.04); }
.sport-badge {
  position: absolute; top: 1rem; left: 1rem;
  font-size: .6rem; letter-spacing: .2em; text-transform: uppercase;
  background: #111; color: #fff; padding: .35rem .7rem;
}
.sport-main-body { padding: 2.5rem; display: flex; flex-direction: column; justify-content: center; }

/* ===== 运动 · 并列卡片 ===== */
.sport-card { border: 1px solid #e2e2e2; background: #fff; overflow: hidden; display: flex; flex-direction: column; }
.sport-card-img { aspect-ratio: 16 / 9; overflow: hidden; background: #e2e2e2; }
.sport-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(100%); transition: filter .6s ease, transform .8s ease;
}
.sport-card:hover .sport-card-img img { filter: grayscale(0%); transform: scale(1.05); }
.sport-card-body { padding: 1.75rem; }

/* ===== 建筑项目详情页 ===== */
.architecture-list { display: grid; gap: 4rem; }
.architecture-card { position: relative; }
.architecture-card-row {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(280px, .85fr);
  gap: 3.5rem;
  align-items: center;
  padding-bottom: 4rem;
  border-bottom: 1px solid #e2e2e2;
}
.architecture-cover {
  display: grid;
  width: 100%;
  align-items: start;
  background: transparent;
}
.architecture-cover-pair { grid-template-columns: .72fr 1.8fr; gap: 1rem; align-items: start; background: transparent; }
.architecture-cover-pair img:first-child { aspect-ratio: 3 / 4; object-fit: cover; }
.architecture-cover-pair img:last-child { aspect-ratio: 1.9 / 1; object-fit: cover; }
.architecture-cover img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  background: transparent;
}
.architecture-card-content { max-width: 34rem; }
.architecture-card-content h3 { line-height: 1.3; }
.architecture-more {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin-top: 1rem;
  color: #111;
  font-size: .65rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  transition: gap .3s ease, color .3s ease;
}
.architecture-more:hover { gap: .85rem; color: #777; }
.project-hero-section { border-bottom: 1px solid #e2e2e2; }
.project-cover-pair {
  display: grid;
  grid-template-columns: .72fr 1.8fr;
  gap: 1rem;
  align-items: start;
}
.project-cover-frame {
  margin: 0;
  background: transparent;
  overflow: hidden;
  border: 1px solid #e2e2e2;
}
.project-cover-frame figcaption {
  padding: .7rem .8rem;
  color: #8a8a8a;
  font-family: 'Inter', sans-serif;
  font-size: .55rem;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.project-cover-image {
  display: block;
  width: 100%;
  height: auto;
  cursor: pointer;
  filter: grayscale(12%);
  transition: filter .5s ease, transform .8s ease;
}
.project-cover-secondary .project-cover-image { aspect-ratio: 3 / 4; object-fit: cover; }
.project-cover-primary .project-cover-image { aspect-ratio: 1.9 / 1; object-fit: cover; }
.project-cover-image:hover { filter: grayscale(0%); transform: scale(1.015); }
.project-facts {
  border-top: 1px solid #e2e2e2;
}
.project-facts div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .7rem 0;
  border-bottom: 1px solid #e2e2e2;
  font-size: .72rem;
  line-height: 1.5;
}
.project-facts dt { color: #8a8a8a; }
.project-facts dd { text-align: right; color: #333; }
.project-board-section { background: #fafafa; }
.project-board-section-alt { background: #f0f0ee; }
.project-board-frame {
  margin: 0;
  background: #fff;
  border: 1px solid #e2e2e2;
  box-shadow: 0 24px 60px -42px rgba(0,0,0,.36);
  overflow: hidden;
}
.project-board-image {
  display: block;
  width: 100%;
  height: auto;
  cursor: pointer;
  filter: saturate(.92);
  transition: filter .5s ease, transform .8s ease;
}
.project-board-image:hover { filter: saturate(1); transform: scale(1.008); }
.project-board-frame figcaption {
  padding: .85rem 1rem;
  color: #8a8a8a;
  font-family: 'Inter', sans-serif;
  font-size: .58rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}
@media (max-width: 767px) {
  .architecture-card-row { grid-template-columns: 1fr; gap: 1.75rem; padding-bottom: 3rem; }
  .architecture-card-content { max-width: none; }
  .architecture-cover-pair { grid-template-columns: 1fr; }
  .project-cover-pair { grid-template-columns: 1fr; }
  .project-cover-secondary { margin-top: 0; }
}

/* ===== 手绘 · 自动识别横竖构图的错落卡片墙 ===== */
.sketch-wall {
  column-count: 1;
  column-gap: 1rem;
}
@media (min-width: 640px) { .sketch-wall { column-count: 2; } }
@media (min-width: 1024px) { .sketch-wall { column-count: 3; } }

.sketch-card {
  position: relative;
  display: inline-block;
  width: 100%;
  margin: 0 0 1rem;
  overflow: hidden;
  break-inside: avoid;
  background: #fff;
  border: 1px solid #e2e2e2;
  box-shadow: 0 10px 28px -24px rgba(0,0,0,.45);
  transition: transform .45s cubic-bezier(.2,.8,.2,1), box-shadow .45s ease;
}
.sketch-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 34px -24px rgba(0,0,0,.35);
}
.sketch-card-image {
  overflow: hidden;
  background: #f0f0f0;
}
.sketch-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
}
.sketch-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .7rem .8rem .75rem;
  color: #8a8a8a;
  font-family: 'Inter', sans-serif;
  font-size: .56rem;
  letter-spacing: .16em;
  line-height: 1.4;
  text-transform: uppercase;
}
.sketch-card.is-landscape .sketch-meta { border-top: 1px solid #ededed; }
.sketch-card.is-portrait .sketch-meta { border-top: 1px solid #ededed; }
.sketch-card.is-square .sketch-meta { border-top: 1px solid #ededed; }
@media (prefers-reduced-motion: reduce) {
  .sketch-card { transition: none; }
}
