﻿/* ============================================================
   周振宇 · 建筑作品集 & 简历
   Editorial style · olive green accent · anti-copy built-in
   ============================================================ */

:root {
  --green: #a4bb2c;
  --green-dark: #8ca322;
  --green-ink: #7d9420;
  --ink: #171712;
  --ink-2: #44443c;
  --gray: #77776c;
  --paper: #fafaf6;
  --card: #ffffff;
  --line: #e6e6dc;
  --sans: "Helvetica Neue", Helvetica, Arial, "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --shadow: 0 20px 60px rgba(23, 23, 18, 0.10);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.75;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  /* 文字可正常选中复制（图片区域单独禁用） */
  -webkit-user-select: text;
  user-select: text;
}

img { display: block; max-width: 100%; -webkit-user-drag: none; user-drag: none; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* 选中高亮：深色底白字，在白色和绿色背景上都清晰可见 */
::selection { background: var(--ink); color: #fff; }

/* ---------- image guard (anti save / anti drag, images only) ---------- */
.img-guard {
  position: relative;
  overflow: hidden;
  display: block;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
.img-guard::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: transparent;
}
.img-guard img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  transition: transform 0.8s cubic-bezier(0.2, 0.6, 0.2, 1);
}
.img-guard:hover img { transform: scale(1.03); }

/* ---------- nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 5vw, 64px);
  height: 64px;
  background: rgba(250, 250, 246, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-brand { display: flex; align-items: center; font-weight: 600; letter-spacing: 0.08em; }
.nav-brand .en { font-weight: 300; color: var(--gray); font-size: 12px; letter-spacing: 0.22em; }
.nav-links { display: flex; gap: clamp(16px, 3vw, 40px); font-size: 13px; letter-spacing: 0.14em; }
.nav-links a { position: relative; padding: 4px 0; color: var(--ink-2); }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--green);
  transition: width 0.3s;
}
.nav-links a:hover::after { width: 100%; }

/* ---------- hero ---------- */
.hero {
  min-height: 100vh;
  position: relative;
  display: grid;
  grid-template-columns: 1fr minmax(120px, 22vw);
  overflow: hidden;
}
.hero-main {
  padding: clamp(90px, 14vh, 160px) clamp(20px, 6vw, 90px) 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 2;
}
.hero-title {
  font-size: clamp(64px, 11vw, 150px);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: 0.02em;
  margin: clamp(24px, 5vh, 60px) 0;
}
.hero-title .thin { font-weight: 200; }
.hero-year {
  display: inline-block;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  padding: 4px 28px;
  font-size: clamp(16px, 2vw, 24px);
  letter-spacing: 0.5em;
  text-indent: 0.5em;
  font-weight: 300;
  margin-bottom: clamp(28px, 6vh, 72px);
}
.hero-meta .name-cn { font-size: clamp(26px, 3.4vw, 44px); font-weight: 700; letter-spacing: 0.12em; }
.hero-meta .badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 20px; }
.badge {
  font-size: 13px;
  padding: 3px 14px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  letter-spacing: 0.06em;
}
.badge.solid { background: var(--ink); color: #fff; border-color: var(--ink); }
.hero-meta .en { color: var(--gray); font-size: 13px; letter-spacing: 0.12em; }
.hero-contact { margin-top: 26px; font-size: 13.5px; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 8px 28px; letter-spacing: 0.04em; }
.hero-side {
  background: var(--green);
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
.hero-side .vertical {
  writing-mode: vertical-rl;
  font-size: clamp(40px, 6vw, 84px);
  font-weight: 200;
  letter-spacing: 0.32em;
  color: #fff;
  padding-top: clamp(70px, 12vh, 150px);
}
.hero-dots {
  position: absolute;
  top: clamp(70px, 12vh, 150px);
  left: clamp(24px, 5vw, 80px);
  display: grid;
  grid-template-columns: repeat(4, 12px);
  gap: 16px;
  opacity: 0.9;
}
.hero-dots i {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #d9d9d9;
}
.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--gray);
  z-index: 3;
  animation: bob 2s infinite;
}
@keyframes bob { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

/* ---------- sections shared ---------- */
.section { padding: clamp(70px, 10vw, 130px) clamp(20px, 6vw, 90px); }
.section-head { display: flex; align-items: baseline; gap: 22px; margin-bottom: clamp(36px, 6vw, 70px); }
.section-head h2 { font-size: clamp(26px, 3.4vw, 42px); font-weight: 700; letter-spacing: 0.1em; }
.section-head .en { color: var(--gray); font-size: 12px; letter-spacing: 0.3em; font-weight: 300; }

/* ---------- project blocks ---------- */
.project { border-top: 1px solid var(--line); }
.project-inner { max-width: 1240px; margin: 0 auto; }
.proj-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}
.proj-head .left { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; }
.proj-no { font-size: clamp(48px, 6vw, 84px); font-weight: 200; line-height: 0.9; color: var(--ink); }
.proj-title h3 { font-size: clamp(22px, 2.8vw, 34px); font-weight: 700; letter-spacing: 0.06em; }
.proj-title .en { color: var(--gray); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; }
.proj-type {
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--green-ink);
  border: 1px solid var(--green);
  padding: 4px 14px;
  border-radius: 999px;
  white-space: nowrap;
}
.proj-grid {
  display: grid;
  grid-template-columns: minmax(280px, 4fr) minmax(300px, 6fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}
.proj-grid.flip { grid-template-columns: minmax(300px, 6fr) minmax(280px, 4fr); }
.proj-grid.flip .proj-side { order: 2; }
.proj-side { position: sticky; top: 90px; }
.info-title { font-weight: 700; letter-spacing: 0.1em; margin-bottom: 14px; font-size: 16px; }
.info-title span { color: var(--green-ink); font-weight: 300; font-size: 12px; letter-spacing: 0.2em; margin-left: 10px; }
.info-list { margin-bottom: 30px; }
.info-list li {
  display: flex;
  gap: 14px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14px;
}
.info-list .k { color: var(--gray); flex: 0 0 3.2em; letter-spacing: 0.2em; }
.info-list .v { color: var(--ink-2); }
.role-title { font-weight: 700; letter-spacing: 0.1em; margin-bottom: 14px; font-size: 16px; }
.role-title span { color: var(--green-ink); font-weight: 300; font-size: 12px; letter-spacing: 0.2em; margin-left: 10px; }
.role-list li {
  position: relative;
  padding: 7px 0 7px 22px;
  font-size: 14px;
  color: var(--ink-2);
}
.role-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 16px;
  width: 12px; height: 2px;
  background: var(--green);
}
.proj-gallery {
  margin-top: clamp(20px, 3vw, 36px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.proj-gallery .img-guard {
  aspect-ratio: 4 / 3;
  border-radius: 4px;
  box-shadow: var(--shadow);
}
.proj-gallery .img-guard:first-child {
  grid-column: span 2;
  grid-row: span 2;
  aspect-ratio: auto;
}
/* 3-image variant: 1 tall left + 2 stacked right */
.proj-gallery.g-3 { grid-template-columns: repeat(2, 1fr); }
.proj-gallery.g-3 .img-guard:first-child { grid-column: span 1; grid-row: span 2; }
/* full-width variant: single banner image (e.g. 四宫格对比图) */
.proj-gallery.g-full { grid-template-columns: 1fr; }
.proj-gallery.g-full .img-guard { aspect-ratio: auto; }
.proj-gallery.g-full .img-guard img { height: auto; object-fit: contain; background: #171712; }
/* two-tall variant: 双对比图并排 */
.proj-gallery.g-2 { grid-template-columns: repeat(2, 1fr); }
.proj-gallery.g-2 .img-guard,
.proj-gallery.g-2 .img-guard:first-child { grid-column: auto; grid-row: auto; aspect-ratio: auto; }
.proj-gallery.g-2 .img-guard img { height: auto; object-fit: contain; background: #171712; }
.proj-note {
  margin-top: 22px;
  font-size: 13px;
  color: var(--gray);
  letter-spacing: 0.04em;
}

/* ---------- about ---------- */
.about-wrap { max-width: 1240px; margin: 0 auto; }
.about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: clamp(40px, 6vw, 72px);
}
.stat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 26px 22px;
}
.stat .num { font-size: clamp(30px, 3.6vw, 46px); font-weight: 200; line-height: 1.1; }
.stat .num b { font-weight: 600; color: var(--green-ink); }
.stat .label { font-size: 12.5px; color: var(--gray); letter-spacing: 0.12em; margin-top: 6px; }
.about-cols {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: clamp(28px, 5vw, 70px);
}
.about-text p { margin-bottom: 16px; color: var(--ink-2); font-size: 15px; }
.about-text .lead { font-size: 18px; color: var(--ink); font-weight: 500; }
.timeline { border-left: 2px solid var(--line); padding-left: 26px; display: flex; flex-direction: column; gap: 22px; }
.timeline .tl-item { position: relative; }
.timeline .tl-item::before {
  content: "";
  position: absolute;
  left: -33px; top: 7px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--green);
  border: 3px solid var(--paper);
}
.timeline .tl-year { font-size: 13px; color: var(--green-ink); letter-spacing: 0.14em; font-weight: 600; }
.timeline .tl-role { font-weight: 600; margin: 2px 0 4px; }
.timeline .tl-desc { font-size: 13.5px; color: var(--gray); }
.skills { margin-top: 34px; }
.skills .skill-row { margin-bottom: 16px; }
.skills .skill-k { font-size: 12px; letter-spacing: 0.18em; color: var(--gray); margin-bottom: 8px; }
.skills .tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-size: 12.5px;
  background: #fff;
  border: 1px solid var(--line);
  padding: 4px 12px;
  border-radius: 999px;
  color: var(--ink-2);
}
.tag.hl { background: var(--green); border-color: var(--green); color: #fff; font-weight: 600; }

/* ---------- other projects (09) ---------- */
.other-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 30px 0; }
.other-grid .img-guard { aspect-ratio: 16/10; border-radius: 4px; }
.other-list {
  columns: 2;
  column-gap: 60px;
  font-size: 14.5px;
  color: var(--ink-2);
}
.other-list li {
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
  break-inside: avoid;
  position: relative;
  padding-left: 20px;
}
.other-list li::before {
  content: "/";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}
.other-note { margin-top: 16px; color: var(--gray); font-size: 13.5px; }

/* ---------- contact ---------- */
.contact { background: var(--green); color: #fff; }
.contact .section-head h2 { color: #fff; }
.contact .section-head .en { color: rgba(255,255,255,0.75); }
.contact-grid {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(30px, 6vw, 90px);
  align-items: center;
}
.contact-line { font-size: clamp(18px, 2.4vw, 28px); font-weight: 300; letter-spacing: 0.06em; margin-bottom: 14px; }
.contact-line b { font-weight: 700; letter-spacing: 0.04em; }
.contact-sub { color: rgba(255,255,255,0.85); font-size: 14px; margin-top: 22px; letter-spacing: 0.08em; }
.qr-card {
  background: #fff;
  padding: 18px;
  border-radius: 8px;
  text-align: center;
  box-shadow: var(--shadow);
}
.qr-card img { width: 170px; height: 170px; }
.qr-card p { font-size: 12.5px; color: var(--ink-2); margin-top: 10px; letter-spacing: 0.1em; }

/* ---------- footer ---------- */
.footer {
  background: var(--ink);
  color: #b9b9ae;
  padding: 34px clamp(20px, 6vw, 90px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12.5px;
  letter-spacing: 0.12em;
}
.footer .brand { color: #fff; font-weight: 600; }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(15, 15, 10, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 4vmin;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 92vw;
  max-height: 88vh;
  border-radius: 4px;
  pointer-events: none;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}
.lightbox .lb-close {
  position: absolute;
  top: 18px; right: 26px;
  font-size: 34px;
  color: #fff;
  cursor: pointer;
  line-height: 1;
  font-weight: 200;
}
.lightbox .lb-hint {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.5);
  font-size: 12px;
  letter-spacing: 0.2em;
}

/* ---------- reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.6, 0.2, 1); }
.reveal.visible { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.1s; }
.reveal.d2 { transition-delay: 0.2s; }
.reveal.d3 { transition-delay: 0.3s; }


/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-side { display: none; }
  .proj-grid, .proj-grid.flip { grid-template-columns: 1fr; }
  .proj-grid.flip .proj-side { order: 0; }
  .proj-side { position: static; }
  .proj-gallery { grid-template-columns: repeat(2, 1fr); }
  .proj-gallery .img-guard:first-child { grid-column: span 2; grid-row: span 1; aspect-ratio: 16 / 9; }
  .proj-gallery .img-guard.portrait:first-child { aspect-ratio: auto; }
  .proj-gallery .img-guard.portrait:first-child img { height: auto; }
  .proj-gallery.g-full { grid-template-columns: 1fr; }
  .proj-gallery.g-2 { grid-template-columns: 1fr; }
  .about-cols { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: repeat(2, 1fr); }
  .other-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .other-list { columns: 1; }
}
@media (max-width: 560px) {
  .nav-links { gap: 14px; font-size: 12px; }
  .proj-gallery { grid-template-columns: 1fr 1fr; }
}

/* ---------- print ---------- */
@media print {
  .nav, .scroll-hint, .lightbox { display: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .proj-gallery, .other-grid { break-inside: avoid; }
  .project { break-inside: avoid-page; }
}

@page { size: A4; margin: 12mm; }
