:root {
  --bg: #f8f5ee;
  --bg-soft: #f1ece2;
  --surface: rgba(255, 255, 252, 0.44);
  --text: #2f2a26;
  --muted: #7a7269;
  --line: rgba(78, 69, 58, 0.045);
  --accent: #897f72;
  --accent-soft: #c2b5a5;
  --shadow: 0 10px 24px rgba(62, 53, 42, 0.03);
}

* {
  box-sizing: border-box;
}

.zh,
.en {
  display: none;
}

body.lang-zh .es,
body.lang-zh .en,
body.lang-en .es,
body.lang-en .zh {
  display: none !important;
}

body.lang-zh .zh,
body.lang-en .en,
body.lang-es .es {
  display: inline !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(214, 206, 192, 0.18), transparent 24%),
    radial-gradient(circle at bottom right, rgba(227, 221, 211, 0.16), transparent 28%),
    linear-gradient(180deg, #fcfbf7 0%, var(--bg) 100%);
  line-height: 1.85;
}

img {
  display: block;
  width: 100%;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 40px;
  background: rgba(252, 251, 247, 0.78);
  border-bottom: 1px solid rgba(78, 69, 58, 0.035);
  backdrop-filter: blur(12px);
}

.site-header-right {
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  font-size: 1.3rem;
  letter-spacing: 0.12em;
}

.site-nav {
  display: flex;
  gap: 28px;
}

.site-nav a {
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.site-nav a.nav-secondary {
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  color: rgba(122, 114, 105, 0.72);
}

.site-nav a:hover {
  color: var(--accent);
}

.lang-switcher {
  display: flex;
  gap: 8px;
}

.lang-toggle {
  border: 1px solid rgba(78, 69, 58, 0.045);
  background: rgba(255, 255, 255, 0.44);
  color: var(--muted);
  padding: 6px 12px;
  cursor: pointer;
  font-family: inherit;
  border-radius: 999px;
}

.lang-toggle:hover,
.lang-toggle.is-active {
  color: #fffdfa;
  background: linear-gradient(135deg, var(--accent), var(--accent-soft));
  border-color: transparent;
}

main {
  padding: 28px;
}

.hero,
.section {
  width: min(1340px, calc(100vw - 56px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(520px, 1.22fr);
  gap: 28px;
  align-items: end;
  min-height: calc(100vh - 110px);
  padding: 36px 0 88px;
}

.hero-copy {
  padding: 16px 8px 16px 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.hero-kicker,
.section-kicker,
.series-label {
  margin: 0 0 12px;
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.6rem, 5.8vw, 5.3rem);
  line-height: 1.02;
  letter-spacing: 0.02em;
}

.hero-text {
  margin: 28px 0 0;
  max-width: 35rem;
  font-size: 1.02rem;
  color: var(--muted);
}

.hero-text span {
  color: var(--text);
}

.hero-note {
  margin: 18px 0 0;
  font-size: 0.9rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 164px;
  padding: 13px 18px;
  border: 1px solid var(--line);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.52);
  border-radius: 999px;
  color: rgba(47, 42, 38, 0.82);
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.button-primary {
  color: rgba(47, 42, 38, 0.88);
  background: rgba(255, 255, 255, 0.6);
  border-color: rgba(78, 69, 58, 0.08);
}

.button:hover {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(78, 69, 58, 0.12);
  transform: translateY(-1px);
}

.hero-figure {
  margin: 0;
  position: relative;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.hero-figure img {
  aspect-ratio: 4 / 4.75;
  object-fit: cover;
  background: #f1ede6;
}

.hero-figure figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.92rem;
}

.section {
  padding: 84px 0;
}

.trace-layout,
.cv-grid,
.contact-grid,
.works-grid,
.exhibition-grid {
  display: grid;
  gap: 22px;
}

.cv-block,
.contact-grid > div,
.work-card,
.feature-work {
  background: var(--surface);
  border: 0;
  box-shadow: none;
}

.cv-block,
.contact-grid > div {
  padding: 16px 0;
}

.section-head h2,
.cv-block h3,
.feature-copy h3,
.work-copy h3 {
  margin: 0 0 12px;
}

.section-head {
  margin-bottom: 28px;
}

.section-head h2 {
  font-size: clamp(2rem, 3vw, 3rem);
}

.trace-layout {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 0;
}

.trace-main {
  background: var(--surface);
  border: 0;
  box-shadow: none;
}

.trace-main {
  padding: 2px 0;
  font-size: 1.06rem;
  max-width: 44rem;
}

.trace-main p {
  margin: 0 0 20px;
}

.trace-main p:last-child {
  margin-bottom: 0;
}

.feature-work {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  overflow: hidden;
  margin-bottom: 48px;
  align-items: start;
  gap: 26px;
}

.feature-image img {
  height: 100%;
  aspect-ratio: 1 / 0.92;
  object-fit: contain;
  background: rgba(250, 247, 240, 0.72);
  padding: 18px;
}

.feature-copy {
  padding: 12px 0 2px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.feature-copy .meta {
  margin: 0 0 16px;
  color: rgba(122, 114, 105, 0.72);
  font-size: 0.9rem;
  letter-spacing: 0.03em;
}

.feature-copy > p:last-child {
  margin: 10px 0 0;
  color: rgba(122, 114, 105, 0.88);
  line-height: 1.72;
}

.works-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 62px 38px;
}

.exhibition-grid {
  grid-template-columns: 1.2fr 0.8fr;
  gap: 36px 26px;
}

.exhibition-card {
  margin: 0;
}

.exhibition-card--large {
  grid-row: span 2;
}

.exhibition-card img {
  aspect-ratio: 1 / 0.82;
  object-fit: cover;
  background: #f1ede6;
}

.exhibition-card--large img {
  aspect-ratio: 1 / 1.15;
}

.exhibition-card figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.94rem;
}

.work-card {
  overflow: hidden;
  background: transparent;
}

.work-card img {
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: rgba(250, 247, 240, 0.42);
  padding: 12px;
}

.work-copy {
  padding: 12px 0 0;
}

.work-copy h3 {
  min-height: 2.8em;
  margin-bottom: 5px;
  font-size: 0.98rem;
  font-weight: 400;
  line-height: 1.22;
}

.work-copy p {
  margin: 0;
}

.work-copy p:not(.work-note):not(.series-label) {
  color: rgba(122, 114, 105, 0.72);
  font-size: 0.88rem;
  letter-spacing: 0.03em;
}

.work-note {
  margin: 6px 0 0;
  color: rgba(122, 114, 105, 0.8);
  font-size: 0.84rem;
}

.work-copy p:last-child,
.cv-block p:last-child {
  margin-bottom: 0;
}

.cv-grid {
  grid-template-columns: 0.72fr 1.28fr;
  column-gap: 46px;
}

.cv-block ul {
  margin: 0;
  padding-left: 1.1rem;
}

.cv-block li + li {
  margin-top: 10px;
}

.contact-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 34px;
}

.contact-label {
  margin: 0 0 8px;
  color: rgba(122, 114, 105, 0.72);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-link {
  font-size: 1.08rem;
  text-decoration: none;
}

.link-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.link-list a {
  text-decoration: none;
  color: rgba(137, 127, 114, 0.86);
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.instagram-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  color: rgba(137, 127, 114, 0.72);
}

.instagram-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 20px;
  z-index: 30;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(78, 69, 58, 0.06);
  border-radius: 999px;
  background: rgba(252, 251, 247, 0.74);
  color: rgba(47, 42, 38, 0.58);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(62, 53, 42, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 180ms ease, transform 180ms ease, background 180ms ease, color 180ms ease;
}

.back-to-top span {
  font-size: 0.86rem;
  font-weight: 300;
  line-height: 1;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  background: rgba(255, 255, 255, 0.9);
  color: rgba(47, 42, 38, 0.76);
}

.cv .section-head,
.contact .section-head {
  margin-bottom: 16px;
}

.cv .section-head .section-kicker,
.contact .section-head .section-kicker {
  color: rgba(137, 127, 114, 0.68);
}

.cv .section-head h2,
.contact .section-head h2 {
  font-size: clamp(1.55rem, 2.4vw, 2.2rem);
}

.cv-block h3,
.contact-grid h3 {
  color: rgba(47, 42, 38, 0.84);
}

.cv-block p,
.cv-block li,
.contact-grid p,
.contact-grid a {
  color: rgba(47, 42, 38, 0.78);
}

.cv-block li {
  line-height: 1.72;
}

@media (max-width: 980px) {
  .hero,
  .trace-layout,
  .feature-work,
  .works-grid,
  .exhibition-grid,
  .cv-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .feature-copy,
  .trace-main {
    padding-left: 0;
    border-left: 0;
  }
}

@media (max-width: 680px) {
  .site-header {
    flex-direction: column;
    align-items: stretch;
    padding: 10px 12px 9px;
    gap: 6px;
  }

  .site-header-right {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
  }

  .site-nav {
    gap: 11px;
    flex-wrap: nowrap;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    max-width: none;
    min-width: 0;
    padding-bottom: 1px;
  }

  .site-nav::-webkit-scrollbar {
    display: none;
  }

  .site-nav a {
    font-size: 0.74rem;
    letter-spacing: 0.05em;
  }

  .site-nav a.nav-secondary {
    font-size: 0.68rem;
    letter-spacing: 0.07em;
  }

  .brand {
    font-size: 0.96rem;
    letter-spacing: 0.09em;
  }

  .lang-switcher {
    gap: 5px;
    flex: 0 0 auto;
  }

  .lang-toggle {
    padding: 4px 8px;
    font-size: 0.68rem;
  }

  main {
    padding: 14px;
  }

  .hero,
  .section {
    width: min(100%, calc(100vw - 28px));
  }

  .hero {
    gap: 22px;
    padding: 12px 0 42px;
  }

  .hero-kicker {
    margin-bottom: 10px;
    font-size: 0.72rem;
    letter-spacing: 0.18em;
  }

  .hero h1 {
    max-width: 8.2em;
    font-size: clamp(2.18rem, 12.4vw, 3.34rem);
    line-height: 1.03;
    letter-spacing: 0.01em;
    text-wrap: balance;
  }

  .hero-text {
    margin-top: 18px;
    max-width: 28rem;
    font-size: 0.9rem;
    line-height: 1.7;
  }

  .hero-note {
    margin-top: 14px;
    font-size: 0.76rem;
    letter-spacing: 0.1em;
  }

  .hero-actions {
    gap: 10px;
    margin-top: 22px;
  }

  .hero-figure {
    margin-top: 4px;
  }

  .hero-figure figcaption {
    margin-top: 10px;
    font-size: 0.84rem;
    line-height: 1.58;
  }

  .button {
    min-width: 0;
    padding: 9px 12px;
    font-size: 0.78rem;
    background: rgba(255, 255, 255, 0.42);
    border-color: rgba(78, 69, 58, 0.06);
  }

  .section {
    padding: 46px 0;
  }

  .section-head {
    margin-bottom: 18px;
  }

  .section-head h2 {
    font-size: clamp(1.8rem, 8vw, 2.6rem);
    line-height: 1.08;
  }

  .trace-main {
    font-size: 0.98rem;
    line-height: 1.8;
  }

  .trace-main p {
    margin-bottom: 16px;
  }

  .feature-work {
    gap: 14px;
    margin-bottom: 28px;
  }

  .feature-copy {
    padding-top: 2px;
  }

  .feature-copy h3 {
    margin-bottom: 8px;
    line-height: 1.12;
  }

  .feature-copy .meta {
    margin-bottom: 10px;
    font-size: 0.82rem;
  }

  .feature-copy > p:last-child {
    margin-top: 8px;
    font-size: 0.88rem;
    line-height: 1.66;
  }

  .feature-image img,
  .work-card img {
    padding: 6px;
  }

  .work-copy {
    padding-top: 9px;
  }

  .work-copy h3 {
    min-height: 0;
    margin-bottom: 4px;
    font-size: 0.9rem;
    line-height: 1.18;
  }

  .work-copy p:not(.work-note):not(.series-label) {
    font-size: 0.76rem;
  }

  .work-note {
    margin-top: 4px;
    font-size: 0.76rem;
    line-height: 1.55;
  }

  .series-label {
    margin-bottom: 7px;
    font-size: 0.66rem;
    letter-spacing: 0.16em;
  }

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

  .cv,
  .contact {
    opacity: 0.82;
  }

  .cv .section-head,
  .contact .section-head {
    margin-bottom: 12px;
  }

  .cv .section-head h2,
  .contact .section-head h2 {
    font-size: clamp(1.22rem, 5vw, 1.56rem);
  }

  .cv-block,
  .contact-grid > div {
    padding-top: 2px;
  }

  .cv-block h3 {
    margin-bottom: 8px;
    font-size: 0.92rem;
  }

  .cv-block p,
  .cv-block li {
    font-size: 0.84rem;
    line-height: 1.68;
  }

  .contact-link {
    font-size: 0.92rem;
    word-break: break-all;
  }

  .link-list {
    gap: 7px;
  }

  .social-link {
    gap: 7px;
  }

  .instagram-icon {
    width: 14px;
    height: 14px;
  }

  .back-to-top {
    right: 12px;
    bottom: 16px;
    width: 34px;
    height: 34px;
  }

  .back-to-top span {
    font-size: 0.78rem;
  }

  .hero-copy,
  .feature-copy,
  .cv-block,
  .contact-grid > div,
  .trace-main {
    padding: 0;
  }
}
