:root {
  --fg: #111;
  --muted: #757575;
  --line: #e8e8e8;
  --bg: #fff;
  --soft: #fafafa;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 165px; }
body {
  font-family: "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--fg);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }

/* 顶部多级吸顶导航 */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  z-index: 30;
}
.header-main {
  max-width: 1360px;
  margin: 0 auto;
  padding: 16px 5vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.logo {
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.05em;
  font-size: 1.02rem;
  white-space: nowrap;
}

/* 四个平行的一级导航：HOME / WORK / ABOUT / CONTACT */
.primary-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-item {
  text-decoration: none;
  font-size: 0.86rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  padding: 6px 0;
  border-bottom: 1.5px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.nav-item:hover { color: var(--fg); }
.nav-item.active {
  color: var(--fg);
  font-weight: 500;
  border-bottom-color: var(--fg);
}

/* 右上角二级 (1 2 3 4) 与三级 (1.1 1.2...) 角标组 */
.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.corner-group {
  display: flex;
  align-items: center;
  gap: 10px;
}
.corner-units, .corner-subunits {
  display: flex;
  align-items: center;
  gap: 5px;
}
.corner-subunits[hidden] { display: none; }
.corner-subunits {
  padding-left: 10px;
  border-left: 1px solid var(--line);
}
.unit-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--line);
  text-decoration: none;
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--muted);
  transition: all 0.2s;
}
.unit-num:hover { border-color: var(--fg); color: var(--fg); }
.unit-num.active {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}
.subunit-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 24px;
  padding: 0 7px;
  border-radius: 99px;
  border: 1px solid var(--line);
  text-decoration: none;
  font-size: 0.72rem;
  color: var(--muted);
  background: var(--soft);
  transition: all 0.2s;
}
.subunit-num:hover { border-color: var(--fg); color: var(--fg); }
.subunit-num.active {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}

#lang {
  border: 1px solid #d0d0d0;
  background: none;
  padding: 4px 12px;
  border-radius: 99px;
  cursor: pointer;
  font-size: 0.78rem;
  color: var(--fg);
}
#lang:hover { border-color: var(--fg); }

/* WORK 分类导航条（All Categories + 1、2、3、4） */
.subnav-bar {
  border-top: 1px solid var(--line);
  background: rgba(250, 250, 250, 0.96);
  padding: 9px 5vw;
}
.subnav-bar[hidden] { display: none; }
.subnav-inner {
  max-width: 1260px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.subnav-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 4px 13px;
  border-radius: 99px;
  font-size: 0.79rem;
  color: var(--muted);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
}
.subnav-pill:hover { border-color: var(--fg); color: var(--fg); }
.subnav-pill.active {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}

/* 页面通用容器 */
section { padding: 64px 5vw; max-width: 1360px; margin: 0 auto; }
.hero { padding-top: 72px; padding-bottom: 32px; }
.eyebrow {
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin-bottom: 12px;
  text-transform: uppercase;
}
h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.6rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.hero-tagline {
  font-size: clamp(1.1rem, 1.8vw, 1.38rem);
  font-weight: 400;
  color: var(--fg);
  margin-top: 14px;
  font-style: italic;
}
.hero-sub {
  color: var(--muted);
  margin-top: 10px;
  font-size: 1.02rem;
  max-width: 680px;
}

/* 作品网格：6列自适应 */
.grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 36px 26px;
  align-items: start;
}
.card { cursor: pointer; grid-column: span 2; }      /* 默认一排 3 张（竖幅） */
.card.half { grid-column: span 3; }                  /* 一排 2 张（横向） */
.card.wide { grid-column: 1 / -1; }                  /* 通栏大图 */
.card img {
  width: 100%;
  display: block;
  border: 1px solid var(--line);
  background: var(--soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover img {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.07);
}
.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-top: 10px;
  font-size: 0.84rem;
}
.card-title { font-weight: 500; }
.card-sub { color: var(--muted); font-size: 0.78rem; margin-top: 2px; }

/* HOME 12 专辑封面画廊 */
.home-albums-section {
  padding-top: 24px;
  padding-bottom: 96px;
}
.home-albums-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.home-albums-title {
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.home-albums-count {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--muted);
  text-transform: uppercase;
}
.albums-grid {
  display: flex;
  flex-direction: column;
  gap: 36px;
}
.home-layout-row-top {
  display: grid;
  grid-template-columns: 0.6311fr 0.6985fr 0.6893fr;
  gap: 32px;
  align-items: start;
}
.home-layout-row-top .album-card-still-we-grow .album-cover-wrap {
  aspect-ratio: 1668 / 2643;
}
.home-layout-row-top .album-card-starry-night .album-cover-wrap {
  aspect-ratio: 1800 / 2577;
}
.home-layout-row-top .album-card-imagination-grows .album-cover-wrap {
  aspect-ratio: 1668 / 2420;
}
.home-layout-row-top .album-cover-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.home-layout-main {
  display: grid;
  grid-template-columns: calc(((100% - 2 * 32px) / 3) * 2 + 32px) calc((100% - 2 * 32px) / 3);
  gap: 32px;
  align-items: start;
}
.home-layout-left {
  display: flex;
  flex-direction: column;
  gap: 36px;
}
.home-layout-subgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}
.home-subcol {
  display: flex;
  flex-direction: column;
  gap: 36px;
}
.home-layout-right {
  display: flex;
  flex-direction: column;
  gap: 36px;
}
.home-layout-row-bottom {
  display: grid;
  grid-template-columns: 1.4328fr 1.7735fr;
  gap: 32px;
  align-items: start;
}
.home-layout-row-bottom .album-card-book-cover .album-cover-wrap {
  aspect-ratio: 2731 / 1906;
}
.home-layout-row-bottom .album-card-album-artwork .album-cover-wrap {
  aspect-ratio: 2561 / 1444;
}
.home-layout-row-bottom .album-cover-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.album-card {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease;
}
.album-card:hover {
  transform: translateY(-4px);
}
.album-cover-wrap {
  position: relative;
  width: 100%;
  background: var(--soft);
  border: 1px solid var(--line);
  overflow: hidden;
}
.album-cover-wrap img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}
.album-card:hover .album-cover-wrap img {
  transform: scale(1.025);
}
.album-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(17, 17, 17, 0.88);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 500;
  padding: 3px 9px;
  border-radius: 99px;
  letter-spacing: 0.05em;
  backdrop-filter: blur(6px);
}
.album-meta {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.album-title {
  font-size: 1rem;
  font-weight: 500;
  color: var(--fg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.album-arrow {
  font-size: 0.88rem;
  color: var(--muted);
  transition: transform 0.2s ease, color 0.2s ease;
}
.album-card:hover .album-arrow {
  transform: translateX(4px);
  color: var(--fg);
}
.album-sub {
  font-size: 0.78rem;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.album-count {
  font-variant-numeric: tabular-nums;
}
.album-view-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* HOME 底部进入 WORK 四个二级分类的入口卡片 */
.home-work-entry { border-top: 1px solid var(--line); }
.section-head h2 {
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 28px;
}
.category-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.cat-card {
  border: 1px solid var(--line);
  padding: 24px 20px;
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}
.cat-card:hover {
  border-color: var(--fg);
  transform: translateY(-2px);
}
.cat-card-num { font-size: 0.75rem; color: var(--muted); letter-spacing: 0.14em; }
.cat-card-title { font-size: 1.05rem; font-weight: 500; }
.cat-card-desc { font-size: 0.82rem; color: var(--muted); }

/* WORK 二级单元与三级系列标题 */
.work-unit { border-bottom: 1px solid var(--line); }
.unit-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 44px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.unit-index { font-size: 0.78rem; letter-spacing: 0.14em; color: var(--muted); margin-bottom: 6px; }
.unit-title { font-size: clamp(1.5rem, 2.6vw, 2.2rem); font-weight: 400; }
.unit-desc { color: var(--muted); font-size: 0.92rem; max-width: 480px; }

.series-block { scroll-margin-top: 170px; }
.series-block + .series-block { margin-top: 68px; }
.series-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}
.series-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 9px;
  border-radius: 99px;
  background: var(--fg);
  color: var(--bg);
  font-size: 0.74rem;
  font-weight: 500;
}
.series-title {
  font-size: 1.08rem;
  font-weight: 500;
}
.series-summary {
  margin-top: 38px;
  padding: 28px 0 8px;
  border-top: 1px solid var(--line);
  max-width: 780px;
}
.series-summary p {
  font-size: 0.98rem;
  line-height: 1.85;
  color: #333;
}

/* ABOUT & CONTACT 独立一级页面 */
.info-page { padding-top: 84px; padding-bottom: 120px; max-width: 860px; }
.page-title { margin-bottom: 32px; }
.about-body p, .contact-body p {
  font-size: 1.02rem;
  color: #333;
  margin-bottom: 18px;
  line-height: 1.85;
}
.cv-section {
  margin-top: 52px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}
.cv-heading {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 22px;
}
.cv-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cv-list li {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  font-size: 0.96rem;
  line-height: 1.65;
  color: #222;
}
.cv-year {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.edu-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.edu-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.edu-degree {
  font-size: 1rem;
  font-weight: 500;
  color: var(--fg);
}
.edu-school {
  font-size: 0.95rem;
  color: #333;
}
.edu-year {
  font-size: 0.84rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.contact-lead {
  max-width: 560px;
}
.contact-links {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contact-item { font-size: 1.05rem; margin-bottom: 0 !important; }
.contact-label { color: var(--muted); margin-right: 6px; }
.contact-item a { border-bottom: 1px solid var(--fg); padding-bottom: 2px; text-decoration: none; }

footer {
  text-align: center;
  color: var(--muted);
  font-size: 0.82rem;
  padding: 48px 5vw;
  border-top: 1px solid var(--line);
}

/* 灯箱放大预览 */
#lightbox {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.97);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 50;
  padding: 24px 3vw;
}
#lightbox[hidden] { display: none; }
.lb-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}
#lightbox img { max-width: 84vw; max-height: 82vh; object-fit: contain; }
#lightbox p { margin-top: 14px; color: var(--muted); font-size: 0.9rem; text-align: center; }
.lb-btn {
  border: 1px solid var(--line);
  background: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--fg);
  display: flex;
  align-items: center;
  justify-content: center;
}
.lb-btn:hover { border-color: var(--fg); }

@media (max-width: 960px) {
  .card { grid-column: span 3; }
  .albums-grid { gap: 28px; }
  .home-layout-row-top { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .home-layout-main { grid-template-columns: 1fr; gap: 28px; }
  .home-layout-left, .home-layout-right, .home-subcol { gap: 28px; }
  .home-layout-subgrid { gap: 24px; }
  .home-layout-row-bottom { grid-template-columns: 1.4328fr 1.7735fr; gap: 24px; }
  .category-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .header-main { flex-wrap: wrap; padding: 12px 4vw; }
  .primary-nav { gap: 18px; order: 3; width: 100%; justify-content: flex-start; padding-top: 8px; border-top: 1px solid var(--line); }
  .albums-grid { gap: 24px; }
  .home-layout-row-top { grid-template-columns: 1fr; gap: 24px; }
  .home-layout-subgrid { grid-template-columns: 1fr; gap: 24px; }
  .home-layout-left, .home-layout-right, .home-subcol { gap: 24px; }
  .home-layout-row-bottom { grid-template-columns: 1fr; gap: 24px; }
  .grid { grid-template-columns: 1fr; gap: 28px; }
  .card, .card.half, .card.wide { grid-column: 1 / -1; }
  .category-cards { grid-template-columns: 1fr; }
  .lb-btn { display: none; }
}
