/* 极简杂志风：大图、黑白、细字、错落网格 */

:root {
  --ink: #161616;
  --muted: #8f8f8f;
  --line: #e8e8e8;
  --paper: #fff;
  --night: #121212;
  --max: 1440px;
  --gutter: clamp(16px, 4vw, 56px);
  --gap: clamp(12px, 2.2vw, 32px);
  --font: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Source Han Sans SC",
          "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(.2, .6, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.7;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p { margin: 0; font-weight: inherit; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- 顶部 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.header-inner { display: flex; justify-content: space-between; align-items: center; height: 72px; }
.logo { font-size: 17px; font-weight: 300; letter-spacing: .22em; }
.nav { display: flex; gap: clamp(18px, 3vw, 40px); font-size: 13px; letter-spacing: .12em; }
.nav a { color: var(--muted); transition: color .3s; }
.nav a:hover { color: var(--ink); }

/* ---------- 头图 ---------- */
.hero { position: relative; display: block; overflow: hidden; background: #ddd; }
.hero img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; transition: transform 1.6s var(--ease); }
.hero:hover img { transform: scale(1.015); }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.42), rgba(0,0,0,0) 45%);
}
.hero-caption { position: absolute; left: clamp(20px, 3.5vw, 48px); bottom: clamp(20px, 3.5vw, 44px); z-index: 1; color: #fff; }
.hero-kicker { font-size: 12px; letter-spacing: .4em; opacity: .85; margin-bottom: 8px; }
.hero-title { font-size: clamp(30px, 4.2vw, 56px); font-weight: 200; letter-spacing: .18em; line-height: 1.2; }

/* ---------- 主题 8 格 ---------- */
.themes {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap);
  margin-top: var(--gap);
  margin-bottom: clamp(72px, 10vw, 140px);
}
.theme { position: relative; display: block; overflow: hidden; background: #eee; }
.theme img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; transition: transform 1s var(--ease), opacity .4s; }
.theme::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.28), rgba(0,0,0,0) 55%); }
.theme span {
  position: absolute; left: 14px; bottom: 10px; z-index: 1;
  color: #fff; font-size: 13px; letter-spacing: .3em;
}
.theme:hover img { transform: scale(1.04); }

/* ---------- 讲座：错落两列 ---------- */
.section-label {
  font-size: 12px; font-weight: 400; letter-spacing: .4em; color: var(--muted);
  margin-bottom: clamp(28px, 4vw, 48px);
}
.works { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 7vw, 120px); }
.col { display: flex; flex-direction: column; gap: clamp(56px, 8vw, 120px); }
.col-offset { padding-top: clamp(80px, 14vw, 220px); }
.work { display: block; }
.work-img { overflow: hidden; background: #eee; }
.work-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 1.2s var(--ease); }
.work-img.tall img { aspect-ratio: 3 / 4; }
.work:hover .work-img img { transform: scale(1.03); }
.work-meta { margin-top: 18px; font-size: 11px; letter-spacing: .3em; color: var(--muted); }
.work-title { margin-top: 6px; font-size: clamp(17px, 1.6vw, 21px); font-weight: 300; letter-spacing: .08em; }
.work:hover .work-title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }

.more { display: flex; justify-content: center; margin: clamp(72px, 9vw, 120px) 0 clamp(80px, 10vw, 140px); }
.button {
  display: inline-block; padding: 14px 44px;
  background: var(--ink); color: #fff;
  font-size: 12px; letter-spacing: .35em;
  transition: background .3s;
}
.button:hover { background: #444; }

/* ---------- 深色横幅 ---------- */
.band { position: relative; background: var(--night); overflow: hidden; }
.band img { width: 100%; height: clamp(260px, 34vw, 520px); object-fit: cover; opacity: .9; }
.band-text { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; text-align: center; }
.band-kicker { font-size: 12px; letter-spacing: .5em; opacity: .7; margin-bottom: 12px; }
.band-title { font-size: clamp(26px, 3.4vw, 44px); font-weight: 200; letter-spacing: .3em; }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--night); color: #cfcfcf; padding: clamp(56px, 8vw, 96px) 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.footer-logo { color: #fff; font-size: 22px; letter-spacing: .25em; margin-bottom: 14px; }
.footer-about { font-size: 13px; color: #8a8a8a; line-height: 1.9; }
.footer-head { font-size: 11px; letter-spacing: .35em; color: #6f6f6f; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; }
.site-footer a { transition: color .3s; }
.site-footer a:hover { color: #fff; }
.footer-bottom {
  display: flex; justify-content: space-between;
  margin-top: clamp(48px, 7vw, 80px); padding-top: 20px;
  border-top: 1px solid #2a2a2a;
  font-size: 11px; letter-spacing: .15em; color: #6f6f6f;
}

/* ---------- 平板 ---------- */
@media (max-width: 900px) {
  .themes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero img { aspect-ratio: 16 / 10; }
}

/* ---------- 手机 ---------- */
@media (max-width: 600px) {
  .header-inner { height: 60px; }
  .logo { font-size: 15px; }
  .nav { gap: 18px; font-size: 12px; }
  .hero img { aspect-ratio: 4 / 5; object-position: 60% 50%; }
  .theme img { aspect-ratio: 3 / 2; }
  .theme span { font-size: 12px; left: 10px; bottom: 6px; }
  .works { grid-template-columns: 1fr; gap: 56px; }
  .col { display: contents; }
  /* 手机上按 01–06 的顺序排 */
  .col:first-child .work:nth-child(1) { order: 1; }
  .col-offset .work:nth-child(1) { order: 2; }
  .col:first-child .work:nth-child(2) { order: 3; }
  .col-offset .work:nth-child(2) { order: 4; }
  .col:first-child .work:nth-child(3) { order: 5; }
  .col-offset .work:nth-child(3) { order: 6; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero img, .theme img, .work-img img { transition: none; }
}
