
:root {
  --bg: #f2f1eb;
  --paper: #faf9f5;
  --ink: #242923;
  --green: #465848;
  --muted: #777b72;
  --line: #d5d5cb;
  --dark: #28342b;
  --content: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Helvetica Neue", Arial, "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.no-scroll {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid #788d70;
  outline-offset: 4px;
}

/* 顶部导航 */

.header {
  width: min(var(--content), calc(100% - 80px));
  min-height: 76px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex-shrink: 0;
}

.brand-name {
  font: 15px Georgia, serif;
  letter-spacing: 1.3px;
}

.brand-sub {
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 1.6px;
}

.header nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.header nav a {
  color: #62675f;
  font-size: 11px;
  transition: color .2s ease;
}

.header nav a:hover {
  color: var(--green);
}

.header-pdf {
  padding: 9px 13px;
  border: 1px solid var(--green);
  color: var(--green);
  font-size: 10px;
  flex-shrink: 0;
}

/* 首页：简介、经历、能力 */

.hero {
  position: relative;
  width: min(var(--content), calc(100% - 80px));
  min-height: min(720px, calc(100vh - 76px));
  margin: auto;
  padding: clamp(55px, 8vh, 88px) 0 54px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-top {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 90px;
  align-items: end;
}

.eyebrow,
.small-label {
  margin: 0;
  color: var(--green);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1.8px;
}

.hero-name h1 {
  margin: 20px 0 0;
  font-family: Georgia, "Microsoft YaHei", serif;
  font-size: clamp(65px, 7.5vw, 100px);
  font-weight: 400;
  letter-spacing: -4px;
  line-height: 1.05;
}

.english-name {
  margin: 12px 0 0;
  color: var(--green);
  font-size: 10px;
  letter-spacing: 4px;
}

.job-title {
  margin: 24px 0 0;
  font-size: 14px;
  letter-spacing: .3px;
}

.job-title span {
  color: var(--green);
  padding: 0 4px;
}

.profile {
  max-width: 450px;
  padding-bottom: 4px;
}

.profile > p:last-child {
  margin: 17px 0 0;
  color: #646960;
  font-size: 13px;
  line-height: 2.05;
}

.hero-bottom {
  margin-top: 58px;
  padding-top: 25px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 70px;
}

.experience {
  min-width: 0;
}

.experience-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 18px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}

.experience-row span:last-child {
  color: var(--muted);
  text-align: right;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.skill-tags span {
  padding: 8px 12px;
  border: 1px solid #c9ccc2;
  border-radius: 30px;
  color: #566153;
  font-size: 10px;
}

.scroll-link {
  align-self: flex-end;
  margin-top: 32px;
  color: var(--green);
  font-size: 9px;
  letter-spacing: 1.7px;
}

.scroll-link span {
  margin-left: 10px;
}

/* 通用区块标题 */

.section {
  width: min(var(--content), calc(100% - 80px));
  margin: auto;
  padding: 100px 0 80px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 48px;
  padding-bottom: 23px;
  border-bottom: 1px solid var(--line);
}

.section-heading h2,
.document-heading h2 {
  margin: 10px 0 0;
  font: 400 clamp(40px, 4.5vw, 58px)/1.1 Georgia, "Microsoft YaHei", serif;
  letter-spacing: -1.7px;
}

.section-note {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .8px;
}

/* 精选项目 */

.project-card {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 285px;
  align-items: start;
  gap: 22px;
  margin-bottom: 82px;
}

.card-index {
  padding-top: 8px;
  color: var(--green);
  font: 13px Georgia, serif;
}

.slider {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: #e5e5dd;
}

.slider-image {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.slider-image img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  background: #e7e7df;
  transition: transform .45s ease;
}

.slider-image:hover img {
  transform: scale(1.012);
}

.view-tag {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 8px 10px;
  background: rgba(37, 47, 38, .86);
  color: #fff;
  font-size: 8px;
  letter-spacing: 1.2px;
}

.slider-arrow {
  position: absolute;
  z-index: 3;
  top: 50%;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  padding: 0;
  transform: translateY(-50%);
  border: 0;
  background: rgba(249, 249, 244, .91);
  color: var(--green);
  font-size: 17px;
  cursor: pointer;
  transition: background .2s ease;
}

.slider-arrow:hover {
  background: #fff;
}

.slider-prev {
  left: 12px;
}

.slider-next {
  right: 12px;
}

.slider-meta {
  display: flex;
  align-items: center;
  gap: 17px;
  padding: 13px 1px 0;
}

.slider-count {
  flex-shrink: 0;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 1px;
}

.slider-count b {
  color: var(--ink);
  font-weight: 500;
}

.slider-progress {
  display: block;
  height: 2px;
  flex: 1;
  overflow: hidden;
  background: #d8d9d0;
}

.slider-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--green);
  transition: width .25s ease;
}

.project-card-info {
  padding-top: 5px;
}

.project-en {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 8px;
  letter-spacing: 1.3px;
  line-height: 1.6;
}

.project-card-info h3,
.other-card-info h3 {
  margin: 0;
  font: 400 23px/1.6 Georgia, "Microsoft YaHei", serif;
  overflow-wrap: anywhere;
}

.project-type {
  display: inline-block;
  margin-top: 18px;
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 1.4px;
}

/* 其他作品 */

.other-section {
  padding-top: 20px;
  padding-bottom: 105px;
}

.other-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 30px;
  row-gap: 56px;
}

.other-card {
  min-width: 0;
}

.other-card .card-index {
  margin-bottom: 9px;
  padding-top: 0;
}

.other-card .slider-image img {
  aspect-ratio: 4 / 3;
}

.other-card-info {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  padding-top: 16px;
}

.other-card-info h3 {
  font-size: 21px;
}

.image-total {
  flex-shrink: 0;
  padding-bottom: 5px;
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 1px;
}

/* 完整项目文本 / PDF */

.document-section {
  padding: 85px 0 65px;
  background: var(--dark);
  color: #f8f8f2;
}

.document-inner {
  width: min(var(--content), calc(100% - 80px));
  margin: auto;
}

.document-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 36px;
}

.eyebrow-light {
  color: #b9c5b5;
}

.document-heading h2 {
  margin-top: 12px;
}

.document-desc {
  margin: 15px 0 0;
  color: #c0c8bd;
  font-size: 12px;
  line-height: 1.8;
}

.document-button {
  display: inline-block;
  flex-shrink: 0;
  padding: 13px 17px;
  background: var(--bg);
  color: var(--dark);
  font-size: 10px;
  transition: opacity .2s ease;
}

.document-button:hover {
  opacity: .85;
}

.pdf-frame {
  height: 78vh;
  min-height: 520px;
  background: #fff;
}

.pdf-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

.pdf-fallback {
  margin: 15px 0 0;
  color: #c4ccc1;
  font-size: 10px;
  line-height: 1.8;
}

.pdf-fallback a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* 页脚 */

.footer {
  width: min(var(--content), calc(100% - 80px));
  min-height: 105px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer > div {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.footer-name {
  font: 14px Georgia, serif;
  letter-spacing: 1px;
}

.footer-sub,
.footer > a {
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 1.3px;
}

/* 全屏图片查看 */

.lightbox {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 55px 75px 70px;
  background: rgba(19, 23, 19, .97);
}

.lightbox.is-open {
  display: flex;
}

.lightbox > img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100vh - 145px);
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 13px;
  right: 24px;
  padding: 0 6px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 38px;
  line-height: 1.2;
  cursor: pointer;
}

.lightbox-arrow {
  position: absolute;
  top: 50%;
  padding: 12px;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
}

.lightbox-prev {
  left: 18px;
}

.lightbox-next {
  right: 18px;
}

.lightbox-caption {
  position: absolute;
  right: 24px;
  bottom: 22px;
  left: 24px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: #e1e5de;
  font-size: 10px;
  letter-spacing: .8px;
}

/* 平板和手机 */

@media (max-width: 850px) {
  .header,
  .hero,
  .section,
  .document-inner,
  .footer {
    width: calc(100% - 40px);
  }

  .header {
    flex-wrap: wrap;
    gap: 14px;
    padding: 15px 0;
  }

  .header nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
    gap: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
  }

  .header nav a {
    font-size: 10px;
  }

  .hero {
    min-height: auto;
    padding: 60px 0 50px;
  }

  .hero-top {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .hero-name h1 {
    font-size: clamp(58px, 12vw, 82px);
  }

  .profile {
    max-width: 580px;
  }

  .hero-bottom {
    grid-template-columns: 1fr;
    gap: 34px;
    margin-top: 42px;
  }

  .section {
    padding: 72px 0;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 34px;
  }

  .project-card {
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 14px;
    margin-bottom: 58px;
  }

  .project-card .slider {
    grid-column: 2;
  }

  .project-card-info {
    grid-column: 2;
    padding-top: 7px;
  }

  .project-card-info h3 {
    font-size: 21px;
  }

  .other-grid {
    gap: 42px 20px;
  }

  .other-card-info {
    align-items: start;
    flex-direction: column;
    gap: 8px;
  }

  .document-section {
    padding: 65px 0 48px;
  }

  .document-heading {
    align-items: start;
    flex-direction: column;
  }

  .pdf-frame {
    height: 70vh;
    min-height: 430px;
  }
}

@media (max-width: 520px) {
  .header,
  .hero,
  .section,
  .document-inner,
  .footer {
    width: calc(100% - 32px);
  }

  .brand-name {
    font-size: 13px;
  }

  .brand-sub {
    font-size: 7px;
    letter-spacing: 1px;
  }

  .header-pdf {
    padding: 8px 10px;
  }

  .header nav a {
    font-size: 9px;
  }

  .hero {
    padding-top: 48px;
  }

  .hero-name h1 {
    font-size: 58px;
    letter-spacing: -2px;
  }

  .job-title {
    font-size: 13px;
  }

  .profile > p:last-child {
    font-size: 12px;
  }

  .experience-row {
    font-size: 11px;
  }

  .skill-tags {
    gap: 7px;
  }

  .skill-tags span {
    padding: 7px 10px;
    font-size: 9px;
  }

  .section-heading h2,
  .document-heading h2 {
    font-size: 43px;
  }

  .section-note {
    line-height: 1.8;
  }

  .project-card {
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 10px;
    margin-bottom: 48px;
  }

  .project-card-info h3 {
    font-size: 19px;
  }

  .slider-image img {
    aspect-ratio: 4 / 3;
  }

  .slider-arrow {
    width: 32px;
    height: 34px;
    font-size: 15px;
  }

  .slider-prev {
    left: 7px;
  }

  .slider-next {
    right: 7px;
  }

  .view-tag {
    top: 9px;
    right: 9px;
    padding: 6px 8px;
  }

  .other-grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .other-card-info {
    flex-direction: row;
    align-items: end;
  }

  .other-card-info h3 {
    font-size: 20px;
  }

  .pdf-frame {
    height: 65vh;
    min-height: 380px;
  }

  .lightbox {
    padding: 55px 8px 65px;
  }

  .lightbox > img {
    max-width: 100%;
    max-height: calc(100vh - 135px);
  }

  .lightbox-prev {
    left: 0;
  }

  .lightbox-next {
    right: 0;
  }

  .lightbox-arrow {
    padding: 8px;
    font-size: 23px;
  }

  .lightbox-caption {
    right: 12px;
    bottom: 16px;
    left: 12px;
    font-size: 9px;
  }

  .footer {
    min-height: 90px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
  }
}
/* ==================================================
   NEW EDITORIAL HOME
   参考杂志 / 设计师简历风格
================================================== */

.editorial-hero {
  width: min(var(--content), calc(100% - 80px));
  min-height: auto;
  padding: 48px 0 0;
  display: block;
}


/* ---------- 第一部分 ---------- */

.hero-intro {
  min-height: 500px;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 65px;
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero-kicker {
  margin: 0 0 22px;
  color: #d99728;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.8px;
}

.hello-title {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(62px, 7vw, 98px);
  font-weight: 400;
  letter-spacing: -5px;
  line-height: .87;
}

.hello-title em {
  color: var(--green);
  font-weight: 400;
}

.cn-name {
  margin-top: 27px;
  display: flex;
  align-items: center;
  gap: 17px;
}

.cn-name strong {
  font-family: Georgia, "Microsoft YaHei", serif;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 4px;
}

.cn-name span {
  padding-left: 17px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 2.5px;
}

.hero-summary {
  max-width: 460px;
  margin: 22px 0 0;
  color: #666b62;
  font-size: 12px;
  line-height: 2;
}

.hero-project-button {
  width: min(330px, 100%);
  margin-top: 26px;
  padding: 13px 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 30px;
  background: #e5a329;
  color: #20251f;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.2px;
  transition:
    transform .2s ease,
    background .2s ease;
}

.hero-project-button:hover {
  transform: translateX(4px);
  background: #edae39;
}

.hero-project-button span {
  font-size: 15px;
}


/* ---------- 首页右侧视觉 ---------- */

.hero-visual {
  position: relative;
  min-height: 455px;
}

.hero-photo {
  position: absolute;
  top: 20px;
  right: 50px;
  width: 72%;
  height: 355px;
  overflow: hidden;
  background: var(--green);
}

.hero-photo::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 78%;
  height: 78%;
  left: -38px;
  bottom: -30px;
  background: #405842;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-label {
  position: absolute;
  left: 15px;
  bottom: 14px;
  padding: 7px 10px;
  background: rgba(39, 50, 41, .88);
  color: white;
  font-size: 7px;
  letter-spacing: 1.5px;
  line-height: 1.5;
}

.visual-number {
  position: absolute;
  z-index: 3;
  top: 3px;
  left: 5px;
  color: var(--green);
  font-size: 7px;
  letter-spacing: 1.8px;
  line-height: 1.7;
}

.visual-number strong {
  font: 32px Georgia, serif;
  letter-spacing: -1px;
}

.experience-badge {
  position: absolute;
  z-index: 4;
  top: 80px;
  left: 0;
  min-width: 150px;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 30px;
  background: #e5a329;
}

.experience-badge strong {
  font: 26px Georgia, serif;
}

.experience-badge span {
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1.4;
}

.profile-card {
  position: absolute;
  z-index: 5;
  right: 0;
  bottom: 0;
  width: 285px;
  padding: 23px 26px;
  background: #202820;
  color: white;
}

.profile-card > p {
  margin: 0 0 12px;
  color: #e6aa37;
  font: italic 22px Georgia, serif;
}

.profile-card > strong {
  display: block;
  font-size: 14px;
  font-weight: 500;
}

.profile-card > span {
  display: block;
  margin-top: 4px;
  color: #c6cec3;
  font-size: 9px;
}

.profile-line {
  height: 1px;
  margin: 15px 0;
  background: rgba(255,255,255,.18);
}

.profile-card small {
  color: #aeb8ac;
  font-size: 7px;
  letter-spacing: 1.1px;
  line-height: 1.8;
}


/* ---------- 工作经历 + 专业能力 ---------- */

.career-panel {
  margin-top: 45px;
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  background: #354d3a;
  color: white;
}

.career-column {
  min-height: 220px;
  padding: 28px 35px 30px;
}

.career-column + .career-column {
  border-left: 1px solid rgba(255,255,255,.15);
}

.panel-title {
  display: grid;
  grid-template-columns: 24px auto 1fr;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 24px;
}

.panel-title > span {
  color: #e9a72f;
  font-size: 8px;
}

.panel-title h2 {
  margin: 0;
  color: #e9a72f;
  font: italic 27px Georgia, serif;
}

.panel-title small {
  color: #b8c4b8;
  font-size: 8px;
  letter-spacing: 1px;
}

.career-item {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid rgba(255,255,255,.13);
}

.career-index {
  color: #e9a72f;
  font: 13px Georgia, serif;
}

.career-item strong {
  font-size: 13px;
  font-weight: 500;
}

.career-item p {
  margin: 3px 0 0;
  color: #bdc7bd;
  font-size: 9px;
}

.editorial-skills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}

.editorial-skills span {
  padding: 9px 10px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 25px;
  color: #eef1ec;
  font-size: 9px;
  text-align: center;
  transition:
    background .2s ease,
    color .2s ease;
}

.editorial-skills span:hover {
  background: #e9a72f;
  border-color: #e9a72f;
  color: #20251f;
}


/* ---------- 首页与项目区衔接 ---------- */

.editorial-hero + .section {
  padding-top: 85px;
}


/* ---------- 平板 ---------- */

@media (max-width: 850px) {

  .editorial-hero {
    width: calc(100% - 40px);
    padding-top: 45px;
  }

  .hero-intro {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .hello-title {
    font-size: clamp(65px, 13vw, 90px);
  }

  .hero-visual {
    min-height: 430px;
  }

  .hero-photo {
    width: 78%;
    right: 25px;
  }

  .career-panel {
    grid-template-columns: 1fr;
  }

  .career-column + .career-column {
    border-left: 0;
    border-top: 1px solid rgba(255,255,255,.15);
  }

}


/* ---------- 手机 ---------- */

@media (max-width: 520px) {

  .editorial-hero {
    width: calc(100% - 32px);
    padding-top: 40px;
  }

  .hero-kicker {
    margin-bottom: 17px;
  }

  .hello-title {
    font-size: 58px;
    letter-spacing: -3px;
  }

  .cn-name {
    margin-top: 23px;
  }

  .cn-name strong {
    font-size: 19px;
  }

  .hero-summary {
    font-size: 11px;
  }

  .hero-visual {
    min-height: 355px;
    margin-top: 5px;
  }

  .hero-photo {
    top: 15px;
    right: 0;
    width: 82%;
    height: 275px;
  }

  .visual-number {
    display: none;
  }

  .experience-badge {
    top: 60px;
    min-width: 125px;
    padding: 8px 13px;
  }

  .experience-badge strong {
    font-size: 21px;
  }

  .profile-card {
    width: 235px;
    padding: 18px 20px;
  }

  .profile-card > p {
    font-size: 19px;
  }

  .career-panel {
    margin-top: 28px;
  }

  .career-column {
    min-height: auto;
    padding: 25px 20px;
  }

  .panel-title {
    grid-template-columns: 20px auto 1fr;
  }

  .panel-title h2 {
    font-size: 23px;
  }

  .editorial-skills {
    grid-template-columns: repeat(2, 1fr);
  }

  .editorial-hero + .section {
    padding-top: 65px;
  }

}
/* ==========================================
   PROFILE PHOTO
========================================== */

.profile-photo {
  background: #405842;
}

.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* 降低首页照片前方墨绿色装饰块的透明度 */
.profile-card {
  background: rgba(53, 77, 58, 0.65);
}
