:root {
  color-scheme: dark;
  --scroll-progress: 0;
  --soot: #0d0d0b;
  --ink: #151310;
  --panel: #1c1914;
  --panel-soft: rgba(255, 250, 240, 0.055);
  --line: rgba(215, 197, 164, 0.18);
  --line-strong: rgba(184, 137, 59, 0.36);
  --paper: #d7c5a4;
  --paper-soft: rgba(215, 197, 164, 0.74);
  --white: #fffaf0;
  --muted: rgba(255, 250, 240, 0.64);
  --brass: #b8893b;
  --brass-glow: rgba(184, 137, 59, 0.22);
  --mineral: #2e5f78;
  --moss: #4e5a3b;
  --clay: #8d4630;
  --grain-opacity: 0.038;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  overflow-x: hidden;
  background: linear-gradient(180deg, #11100e, #0d0d0b 38rem);
  color: var(--white);
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.78;
  text-rendering: optimizeLegibility;
}

/* 极淡噪点纹理 — 高端纸张触感 */
body::after {
  position: fixed;
  inset: 0;
  z-index: 9999;
  content: "";
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
  opacity: var(--grain-opacity);
  pointer-events: none;
}

/* 暗色定制滚动条 */
html {
  scrollbar-width: thin;
  scrollbar-color: rgba(184, 137, 59, 0.28) rgba(13, 13, 11, 0.6);
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: rgba(13, 13, 11, 0.6);
}

::-webkit-scrollbar-thumb {
  background: rgba(184, 137, 59, 0.28);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(184, 137, 59, 0.48);
}

/* 选中文字 — 铜色质感 */
::selection {
  background: rgba(184, 137, 59, 0.38);
  color: #fffaf0;
}

/* 全局焦点环 — 克制但可辨识 */
:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
  border-radius: 2px;
}

img {
  display: block;
  max-width: 100%;
  width: 100%;
  height: auto;
}

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

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3,
.brand-mark span,
.identity-strip b,
.group-label b {
  font-family: "Songti SC", "Noto Serif SC", STSong, "SimSun", serif;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 76px;
  padding: 16px 34px;
  color: var(--white);
  background: rgba(13, 13, 11, 0.72);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  transition: background 360ms ease, border-color 360ms ease, box-shadow 360ms ease;
}

.site-header.is-scrolled {
  background: rgba(13, 13, 11, 0.88);
  border-bottom-color: rgba(184, 137, 59, 0.16);
  box-shadow: 0 1px 24px rgba(0, 0, 0, 0.32);
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 80;
  width: calc(var(--scroll-progress) * 100%);
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--brass), var(--paper));
  transform-origin: left center;
  pointer-events: none;
}

.quick-dock {
  position: fixed;
  top: 50%;
  right: 24px;
  z-index: 45;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 6px;
  border: 1px solid rgba(215, 197, 164, 0.22);
  border-radius: 999px;
  background: rgba(13, 13, 11, 0.58);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.28);
  transform: translateY(-50%);
}

.quick-dock a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  min-height: 58px;
  padding: 11px 6px;
  border-radius: 999px;
  color: var(--paper);
  font-size: 0.78rem;
  font-weight: 800;
  writing-mode: vertical-rl;
  transition: color 280ms ease, background 280ms ease, transform 280ms ease;
}

.quick-dock a:hover {
  color: var(--soot);
  background: var(--brass);
  transform: translateX(-2px);
}

.brand-mark {
  display: grid;
  gap: 1px;
}

.brand-mark span {
  font-size: 1.16rem;
  line-height: 1.15;
}

.brand-mark small {
  color: var(--paper-soft);
  font-size: 0.66rem;
}

.site-nav {
  display: flex;
  gap: 24px;
  color: rgba(255, 250, 240, 0.82);
  font-size: 0.92rem;
}

.site-nav a {
  position: relative;
  padding: 7px 0;
  border-bottom: 1px solid transparent;
  transition: color 260ms ease;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  content: "";
  background: var(--brass);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 320ms ease;
}

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

.site-nav a:hover::after {
  transform: scaleX(1);
}

.hero {
  position: relative;
  min-height: 96svh;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--soot);
}

.hero::after {
  position: absolute;
  inset: 0;
  z-index: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(255, 250, 240, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 250, 240, 0.028) 1px, transparent 1px);
  background-size: 96px 96px, 96px 96px;
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.6), transparent 72%);
  opacity: 0.34;
  pointer-events: none;
  animation: fieldDrift 18s linear infinite;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(13, 13, 11, 0.08), rgba(13, 13, 11, 0.36)),
    url("assets/landscape-yunnan-snow.jpg") center 42% / cover no-repeat;
  filter: saturate(0.72) contrast(1.08) brightness(0.74);
  transform: scale(1.03);
  animation: heroBreath 22s ease-in-out infinite alternate;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(13, 13, 11, 0.94), rgba(13, 13, 11, 0.62) 48%, rgba(13, 13, 11, 0.14)),
    linear-gradient(0deg, rgba(13, 13, 11, 0.9), rgba(13, 13, 11, 0.1) 60%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 52px;
  align-items: end;
  width: min(1240px, 100%);
  min-height: 96svh;
  margin: 0 auto;
  padding: 156px 34px 78px;
}

.hero-copy {
  max-width: 820px;
}

.eyebrow,
.section-kicker,
.work-type {
  margin: 0 0 14px;
  color: var(--brass);
  font-size: 0.78rem;
  font-weight: 700;
}

h1 {
  display: grid;
  margin-bottom: 24px;
  color: var(--white);
  font-size: 5.05rem;
  line-height: 0.98;
}

h1 span {
  display: block;
}

.is-ready .hero .eyebrow,
.is-ready h1 span,
.is-ready .hero-line,
.is-ready .hero-actions,
.is-ready .hero-panel {
  animation: heroRise 900ms cubic-bezier(0.2, 0.65, 0.2, 1) both;
}

.is-ready .hero .eyebrow {
  animation-delay: 120ms;
}

.is-ready h1 span:nth-child(1) {
  animation-delay: 220ms;
}

.is-ready h1 span:nth-child(2) {
  animation-delay: 330ms;
}

.is-ready h1 span:nth-child(3) {
  animation-delay: 440ms;
}

.is-ready .hero-line {
  animation-delay: 560ms;
}

.is-ready .hero-actions {
  animation-delay: 680ms;
}

.is-ready .hero-panel {
  animation-delay: 780ms;
}

.is-ready .hero-panel {
  animation:
    heroRise 900ms cubic-bezier(0.2, 0.65, 0.2, 1) 780ms both,
    panelFloat 8s ease-in-out 1800ms infinite alternate;
}

.hero-line {
  max-width: 720px;
  margin-bottom: 30px;
  color: rgba(255, 250, 240, 0.82);
  font-size: 1.14rem;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-weight: 700;
  transition: border-color 260ms ease, background 260ms ease, color 260ms ease, transform 260ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #12100d;
  background: var(--brass);
  box-shadow: 0 18px 46px rgba(184, 137, 59, 0.16);
}

.button-ghost {
  color: var(--white);
  border-color: rgba(255, 250, 240, 0.28);
  background: rgba(255, 250, 240, 0.035);
}

.hero-panel {
  display: grid;
  gap: 12px;
  padding: 22px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: rgba(13, 13, 11, 0.44);
  backdrop-filter: blur(10px);
  animation: panelFloat 8s ease-in-out infinite alternate;
}

.hero-panel span {
  color: var(--paper-soft);
  font-size: 0.78rem;
}

.hero-panel b {
  color: var(--white);
  font-family: "Songti SC", "Noto Serif SC", STSong, "SimSun", serif;
  font-size: 1.55rem;
  line-height: 1.25;
}

.hero-panel p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.identity-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: #0a0a08;
  border-bottom: 1px solid var(--line);
}

.identity-strip div {
  position: relative;
  min-height: 126px;
  padding: 30px 34px;
  border-right: 1px solid var(--line);
  border-top: 2px solid transparent;
  transition: background 380ms ease, border-color 380ms ease, border-top-color 380ms ease;
}

.identity-strip div:hover {
  background: rgba(184, 137, 59, 0.048);
  border-color: var(--line-strong);
  border-top-color: var(--brass);
}

.identity-strip div:last-child {
  border-right: 0;
}

.identity-strip div:hover {
  background: rgba(184, 137, 59, 0.055);
  border-color: var(--line-strong);
}

.identity-strip b {
  display: block;
  margin-bottom: 8px;
  color: var(--white);
  font-size: 1.28rem;
}

.identity-strip span {
  color: var(--paper-soft);
  font-size: 0.94rem;
}

.section {
  padding: 112px 34px;
}

.section-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 48px;
}

.section h2 {
  margin-bottom: 20px;
  color: var(--white);
  font-size: 3rem;
  line-height: 1.15;
}

.section p {
  color: var(--muted);
}

.profile-section {
  background:
    linear-gradient(90deg, rgba(78, 90, 59, 0.08), transparent),
    var(--soot);
}

.profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 66px;
  align-items: center;
}

.profile-copy {
  max-width: 720px;
}

.contact-lines {
  display: grid;
  gap: 8px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--paper-soft);
}

.contact-lines a {
  color: var(--white);
  font-weight: 700;
}

.contact-lines span {
  color: var(--muted);
  font-size: 0.94rem;
}

.profile-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(255, 250, 240, 0.07), rgba(255, 250, 240, 0.025)),
    var(--panel);
}

.profile-avatar {
  margin: 0;
  border-bottom: 1px solid var(--line);
  background: #11100e;
}

.profile-avatar img {
  aspect-ratio: 1 / 0.9;
  object-fit: cover;
  transition: transform 900ms ease, filter 900ms ease;
}

.profile-card:hover .profile-avatar img {
  filter: saturate(1.1) contrast(1.04);
  transform: scale(1.035);
}

.profile-meta {
  padding: 22px 22px 16px;
}

.profile-meta span {
  color: var(--brass);
  font-size: 0.78rem;
  font-weight: 700;
}

.profile-meta b {
  display: block;
  margin-top: 8px;
  color: var(--white);
  font-family: "Songti SC", "Noto Serif SC", STSong, "SimSun", serif;
  font-size: 1.8rem;
}

.profile-meta p {
  margin-bottom: 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  border-top: 1px solid var(--line);
}

.stats-grid div {
  padding: 18px;
  border-right: 1px solid var(--line);
}

.stats-grid div:last-child {
  border-right: 0;
}

.stats-grid dt {
  color: var(--brass);
  font-family: "Songti SC", "Noto Serif SC", STSong, "SimSun", serif;
  font-size: 2rem;
  line-height: 1;
}

.stats-grid dd {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.works-section {
  background:
    linear-gradient(180deg, rgba(46, 95, 120, 0.08), transparent 34rem),
    #11100e;
}

.work-group {
  display: grid;
  grid-template-columns: 176px minmax(0, 1fr);
  gap: 34px;
  padding: 40px 0;
  border-top: 1px solid var(--line);
}

.work-group:last-child {
  border-bottom: 1px solid var(--line);
}

.group-label {
  display: grid;
  align-content: start;
  gap: 10px;
}

.group-label span {
  color: var(--brass);
  font-size: 0.78rem;
  font-weight: 700;
}

.group-label b {
  color: var(--paper);
  font-size: 1.28rem;
  line-height: 1.2;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.work-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel-soft);
  transition: border-color 420ms ease, background 420ms ease, transform 420ms ease, box-shadow 420ms ease;
}

.work-card:hover {
  border-color: var(--line-strong);
  background: rgba(255, 250, 240, 0.075);
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.28),
    0 1px 0 var(--brass-glow) inset;
  transform: translateY(-4px);
}

.work-card-large {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(330px, 0.9fr);
  align-items: stretch;
}

.work-card figure {
  position: relative;
  overflow: hidden;
  margin: 0;
  background: #090908;
}

.work-card figure::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(110deg, transparent 18%, rgba(255, 250, 240, 0.14), transparent 42%);
  opacity: 0;
  transform: translateX(-65%);
  transition: opacity 420ms ease, transform 900ms ease;
  pointer-events: none;
}

.work-card:hover figure::after {
  opacity: 1;
  transform: translateX(68%);
}

.work-card img {
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  filter: saturate(0.86) contrast(1.04);
  transition: transform 1100ms ease, filter 900ms ease;
}

.work-card:hover img {
  filter: saturate(1.02) contrast(1.08);
  transform: scale(1.045);
}

.work-grid .work-card img {
  aspect-ratio: 4 / 3;
  min-height: 0;
}

.work-content {
  padding: 28px;
}

.work-content h3 {
  margin-bottom: 12px;
  color: var(--white);
  font-size: 1.8rem;
  line-height: 1.2;
}

.work-content p {
  margin-bottom: 0;
}

.work-content ul {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 24px 0 0;
  color: var(--paper-soft);
  font-size: 0.92rem;
  list-style: none;
}

.work-content li {
  padding-left: 14px;
  border-left: 2px solid var(--brass);
}

.method-section {
  position: relative;
  overflow: hidden;
  background: var(--soot);
}

.method-section::before {
  position: absolute;
  inset: 0;
  content: "";
  background: url("assets/landscape-clouds.jpg") center / cover no-repeat;
  filter: saturate(0.52) brightness(0.42) contrast(1.05);
  opacity: 0.28;
  transform: scale(1.04);
  animation: cloudDrift 24s ease-in-out infinite alternate;
}

.method-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 54px;
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.method-grid article {
  position: relative;
  min-height: 230px;
  padding: 24px;
  border: 1px solid var(--line);
  border-left: 2px solid transparent;
  border-radius: 6px;
  background: rgba(13, 13, 11, 0.56);
  backdrop-filter: blur(8px);
  transition: border-color 360ms ease, background 360ms ease, transform 360ms ease, border-left-color 360ms ease;
}

.method-grid article:hover {
  border-color: var(--line-strong);
  border-left-color: var(--brass);
  background: rgba(13, 13, 11, 0.68);
  transform: translateY(-3px);
}

.method-grid span {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--brass);
  font-weight: 700;
}

.method-grid h3 {
  margin-bottom: 12px;
  color: var(--white);
  font-size: 1.32rem;
}

.method-grid p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

.contact-section {
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(13, 13, 11, 0.98), rgba(13, 13, 11, 0.68)),
    url("assets/landscape-dark-valley.jpg") center / cover no-repeat,
    var(--soot);
}

.contact-panel {
  max-width: 900px;
}

.contact-panel p {
  max-width: 760px;
}

.contact-actions span {
  max-width: 520px;
  color: var(--muted);
  font-size: 0.94rem;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 32px 34px 36px;
  color: rgba(255, 250, 240, 0.48);
  background: #090908;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}

.site-footer span:first-child {
  color: var(--paper-soft);
  font-weight: 700;
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 820ms cubic-bezier(0.2, 0.65, 0.2, 1),
    transform 820ms cubic-bezier(0.2, 0.65, 0.2, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.profile-card.reveal {
  transform: translateY(34px) scale(0.985);
}

.profile-card.reveal.is-visible {
  transform: translateY(0) scale(1);
}

.work-card.reveal.is-visible:hover {
  transform: translateY(-4px);
}

.method-grid article.reveal.is-visible:hover {
  transform: translateY(-3px);
}

@keyframes heroBreath {
  from {
    transform: scale(1.03) translate3d(0, 0, 0);
  }

  to {
    transform: scale(1.075) translate3d(-1.2%, -1%, 0);
  }
}

@keyframes heroRise {
  from {
    opacity: 0;
    filter: blur(10px);
    transform: translateY(28px);
  }

  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

@keyframes panelFloat {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(-10px);
  }
}

@keyframes fieldDrift {
  to {
    background-position: 96px 0, 0 96px;
  }
}

@keyframes cloudDrift {
  from {
    transform: scale(1.04) translate3d(-1%, 0, 0);
  }

  to {
    transform: scale(1.09) translate3d(1.2%, -0.8%, 0);
  }
}

@media (max-width: 980px) {
  .site-header {
    padding: 14px 22px;
  }

  .site-nav {
    gap: 16px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 136px 22px 64px;
  }

  h1 {
    font-size: 4rem;
  }

  .hero-panel {
    max-width: 520px;
  }

  .work-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .identity-strip,
  .profile-grid,
  .work-group,
  .work-card-large,
  .method-layout {
    grid-template-columns: 1fr;
  }

  .identity-strip div {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .section {
    padding: 82px 22px;
  }

  .section h2 {
    font-size: 2.35rem;
  }

  .profile-card {
    max-width: 520px;
  }

  .work-group {
    gap: 18px;
  }

  .quick-dock {
    right: 18px;
  }
}

@media (max-width: 640px) {
  .site-header {
    align-items: flex-start;
    min-height: 98px;
    padding: 18px;
  }

  .site-nav {
    flex-wrap: wrap;
    justify-content: flex-end;
    max-width: 188px;
    gap: 4px 14px;
    font-size: 0.82rem;
  }

  .hero,
  .hero-inner {
    min-height: 88svh;
  }

  .hero-bg {
    background-position: 58% 38%;
  }

  .hero::after {
    background-size: 72px 72px, 72px 72px;
    opacity: 0.22;
  }

  .hero-inner {
    padding: 130px 18px 54px;
  }

  h1 {
    font-size: 3rem;
  }

  .hero-line {
    font-size: 1rem;
  }

  .button {
    width: 100%;
  }

  .quick-dock {
    top: auto;
    right: 12px;
    bottom: 12px;
    flex-direction: row;
    gap: 5px;
    padding: 5px;
    transform: none;
  }

  .quick-dock a {
    min-width: 54px;
    min-height: 32px;
    padding: 6px 9px;
    font-size: 0.7rem;
    writing-mode: horizontal-tb;
  }

  .quick-dock a:hover {
    transform: translateY(-2px);
  }

  .identity-strip div,
  .section {
    padding-right: 18px;
    padding-left: 18px;
  }

  .section h2 {
    font-size: 1.95rem;
  }

  .profile-grid {
    gap: 34px;
  }

  .stats-grid,
  .work-grid,
  .method-grid {
    grid-template-columns: 1fr;
  }

  .work-card img {
    min-height: 260px;
  }

  .work-content {
    padding: 22px;
  }

  .work-content h3 {
    font-size: 1.45rem;
  }

  .method-grid article {
    min-height: auto;
  }

  .site-footer {
    flex-direction: column;
    padding: 24px 18px;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }

  .reveal,
  .reveal.is-visible {
    opacity: 1;
    filter: none;
    transform: none;
  }
}
