
:root{
  --bg:#f5f3ee;
  --card:#ffffff;
  --text:#1e1e1e;
  --muted:#666;
  --line:#e4dfd5;
  --accent:#8a6a22;
  --dark:#111;
  --max:1100px;
}
*{box-sizing:border-box}
html{
  scroll-behavior:smooth;
  -webkit-text-size-adjust:100%;
}
body{
  margin:0;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Hiragino Sans GB","Microsoft YaHei",Arial,sans-serif;
  background:var(--bg);
  color:var(--text);
  line-height:1.7;
}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}
.topbar{
  position:sticky;top:0;z-index:30;
  background:rgba(245,243,238,.92);
  backdrop-filter: blur(8px);
  border-bottom:1px solid var(--line);
}
.nav{
  max-width:var(--max);
  margin:0 auto;
  padding:14px 20px;
  display:flex;align-items:center;justify-content:space-between;gap:20px;
}
.brand{font-weight:800;letter-spacing:.04em}
.brand small{display:block;font-weight:500;color:var(--muted);letter-spacing:0}
.brand,
.menu{min-width:0}
.menu{display:flex;gap:14px;flex-wrap:wrap}
.menu a{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:4px 2px;
  font-size:15px;
  color:#333
}
.menu a.active{color:var(--accent);font-weight:700}
.lang-toggle{
  appearance:none;
  border:1px solid rgba(125,93,25,.45);
  background:#fffaf0;
  color:#4f3a10;
  border-radius:999px;
  padding:7px 12px;
  min-width:48px;
  min-height:36px;
  font:700 13px/1 -apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Hiragino Sans GB","Microsoft YaHei",Arial,sans-serif;
  cursor:pointer;
}
.menu .lang-toggle{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:7px 12px;
  color:#4f3a10;
  line-height:1;
}
.lang-toggle:hover,
.lang-toggle:focus-visible{
  background:#8a6a22;
  color:#fff;
  outline:none;
}
.hero{
  background:linear-gradient(180deg,#161616 0%,#202020 100%);
  color:#fff;
  padding:72px 20px 56px;
}
.hero-inner{
  max-width:var(--max);
  margin:0 auto;
  display:grid;grid-template-columns:1.15fr .85fr;gap:36px;align-items:center;
}
.kicker{color:#d2c29a;font-size:13px;letter-spacing:.18em;text-transform:uppercase}
h1{font-size:54px;line-height:1.08;margin:10px 0 16px}
.subhead{font-size:18px;color:#ddd;max-width:760px}
.cta{display:flex;gap:14px;flex-wrap:wrap;margin-top:28px}
.btn{
  display:inline-flex;align-items:center;justify-content:center;
  padding:12px 18px;border-radius:999px;border:1px solid rgba(255,255,255,.18);
  font-weight:700
}
.btn.primary{background:var(--accent);border-color:var(--accent);color:#111}
.btn.secondary{background:transparent;color:#fff}
.panel{
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.1);
  border-radius:8px;
  padding:22px;
}
.panel .meta{font-size:14px;color:#d9d9d9}
.panel .item .title{color:#fff}
.panel .item .desc{color:#d0d0d0}
.panel .item a{color:#e8c76a;text-decoration:underline}
.main{
  max-width:var(--max);
  margin:0 auto;
  padding:42px 20px 70px;
}
.section{margin:0 0 28px}
.card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:8px;
  padding:28px;
  box-shadow:0 12px 30px rgba(0,0,0,.03);
}
h2{font-size:30px;line-height:1.2;margin:0 0 16px}
h3{font-size:20px;margin:0 0 10px}
.lead{font-size:17px;color:#333}
.grid{
  display:grid;grid-template-columns:repeat(12,1fr);gap:20px
}
.col-7{grid-column:span 7}
.col-5{grid-column:span 5}
.col-6{grid-column:span 6}
.col-4{grid-column:span 4}
.badges{display:flex;flex-wrap:wrap;gap:10px}
.badge{
  display:inline-flex;align-items:center;gap:8px;
  padding:8px 12px;border-radius:999px;
  background:#f8f4e8;color:#775d1f;border:1px solid #e7d7a7;font-size:14px;font-weight:700
}
.list{display:grid;gap:14px}
.item{
  padding:18px 0;border-bottom:1px solid var(--line)
}
.item:last-child{border-bottom:none;padding-bottom:0}
.item .eyebrow{font-size:13px;text-transform:uppercase;letter-spacing:.12em;color:var(--muted)}
.item .title{font-size:19px;font-weight:800;margin:4px 0}
.item .desc{color:#444}
.note{
  font-size:14px;color:var(--muted)
}
.kv{display:grid;grid-template-columns:180px 1fr;gap:14px 16px}
.kv div{padding:10px 0;border-bottom:1px solid var(--line)}
.kv div:nth-last-child(-n+2){border-bottom:none}
.list-table{
  width:100%;border-collapse:collapse;font-size:15px
}
.list-table th,.list-table td{
  text-align:left;padding:14px 10px;border-bottom:1px solid var(--line);vertical-align:top
}
.list-table th{color:#666;font-weight:700;font-size:14px}
.list-table a,.project-links a{color:#5f4613;text-decoration:underline;text-underline-offset:2px}
.project-grid{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px
}
.project-card{
  border:1px solid var(--line);
  border-radius:8px;
  padding:22px;
  background:linear-gradient(180deg,#fffdfa 0%,#fcfbf8 100%);
  box-shadow:0 16px 34px rgba(0,0,0,.04)
}
.project-card h3{margin-bottom:12px;font-size:24px}
.project-cover{
  aspect-ratio:4/3;overflow:hidden;border-radius:8px;margin-bottom:16px;background:#ece6d8
}
.project-cover img{width:100%;height:100%;object-fit:contain;background:#f5f5f5}
.project-meta{display:flex;flex-wrap:wrap;gap:10px;margin:0 0 12px}
.project-links{display:flex;flex-wrap:wrap;gap:12px;margin-top:12px;font-size:14px}
.exhibition-frame{
  width:100%;
  margin:18px 0 22px;
  overflow:hidden;
  border:1px solid #e0d9cf;
  border-radius:8px;
  background:#171717;
}
.exhibition-frame iframe{
  display:block;
  width:100%;
  height:clamp(560px,72vh,780px);
  border:0;
  background:#111;
}

.exhibition-preview{
  position:relative;
  display:grid;
  place-items:center;
  min-height:clamp(460px,68vh,720px);
  isolation:isolate;
}

.exhibition-preview::after{
  content:"";
  position:absolute;
  inset:36% 0 0;
  z-index:1;
  pointer-events:none;
  background:linear-gradient(180deg,rgba(0,0,0,0),rgba(0,0,0,.78));
}

.exhibition-cover{
  width:100%;
  height:clamp(460px,68vh,720px);
  object-fit:contain;
  background:#111;
}

.exhibition-preview-action{
  position:absolute;
  left:50%;
  bottom:clamp(22px,4vw,42px);
  z-index:2;
  display:grid;
  justify-items:center;
  gap:10px;
  width:min(100% - 32px,420px);
  transform:translateX(-50%);
  text-align:center;
}

.exhibition-preview-label{
  color:rgba(255,255,255,.78);
  font-size:12px;
  font-weight:800;
  letter-spacing:.18em;
}

.exhibition-load{
  min-height:48px;
  padding:12px 22px;
  border:1px solid rgba(255,255,255,.5);
  border-radius:999px;
  background:rgba(255,255,255,.94);
  color:#211b10;
  font-family:inherit;
  font-size:15px;
  font-weight:800;
  line-height:1.2;
  cursor:pointer;
  box-shadow:0 12px 30px rgba(0,0,0,.28);
}

.exhibition-load:hover{
  background:#fff8e8;
  transform:translateY(-2px);
}

.exhibition-load:focus-visible{
  outline:3px solid #e8c76a;
  outline-offset:4px;
}

.exhibition-frame.is-loaded{
  min-height:0;
}

.exhibition-preview.is-loaded::after{
  display:none;
}
@media (max-width:760px){
  .exhibition-preview,
  .exhibition-cover{
    min-height:clamp(360px,62vh,520px);
    height:clamp(360px,62vh,520px);
  }

  .exhibition-frame iframe{
    height:clamp(420px,78vh,620px);
  }
}
.footer{
  border-top:1px solid var(--line);
  color:#666;
  padding:28px 20px 50px;
  text-align: center;
}
.footer-inner{max-width:var(--max);margin:0 auto}
.callout{
  background:#fff8ea;border:1px solid #ecd9a3;border-radius:8px;padding:18px 18px;color:#5b4a1a
}
.small{font-size:14px;color:var(--muted)}
.photo-gallery{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(200px,1fr));
  gap:20px;
  margin-top:24px
}
.photo-item{
  margin:0;
  background:var(--card);
  border:1px solid var(--line);
  border-radius:8px;
  overflow:hidden;
  box-shadow:0 4px 12px rgba(0,0,0,.04);
  transition:transform .2s ease,box-shadow .2s ease
}
.photo-item:hover{
  transform:translateY(-4px);
  box-shadow:0 12px 30px rgba(0,0,0,.08)
}
.photo-item img{
  width:100%;
  aspect-ratio:4/3;
  object-fit:contain;
  background:#f5f5f5
}
.photo-item a{
  display:block;
  text-decoration:none;
  color:inherit
}
.photo-item figcaption{
  padding:12px 14px;
  font-size:14px;
  color:var(--text);
  text-align:center;
  background:#fcfbf8;
  border-top:1px solid var(--line)
}

.section-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:20px;
  flex-wrap:wrap;
  margin-bottom:22px
}

.section-head .lead{
  margin:8px 0 0
}

.section-note{
  margin:0;
  max-width:360px;
  font-size:14px;
  color:var(--muted)
}

.video-note{
  margin:-6px 0 20px;
  font-size:14px;
  color:var(--muted)
}

.feature-gallery{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px;
  margin-top:24px
}

.feature-card{
  grid-column:span 1;
  position:relative;
  margin:0;
  border-radius:8px;
  overflow:hidden;
  background:#171717;
  border:1px solid rgba(0,0,0,.08);
  box-shadow:0 20px 44px rgba(0,0,0,.12)
}

.feature-card.feature-card-wide{
  grid-column:span 2
}

.feature-card img{
  width:100%;
  aspect-ratio:5/4;
  object-fit:cover;
  transition:transform .35s ease,filter .35s ease
}

.feature-card:hover img{
  transform:scale(1.04);
  filter:saturate(1.04)
}

.feature-card figcaption{
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  padding:18px 18px 20px;
  color:#fff;
  background:linear-gradient(180deg,rgba(0,0,0,0) 0%,rgba(0,0,0,.78) 100%);
  font-size:16px;
  font-weight:700;
  line-height:1.45
}

.feature-card figcaption span{
  display:block;
  margin-bottom:8px;
  font-size:12px;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:#ead6a0
}

.media-badge{
  display:inline-flex;
  align-items:center;
  margin-bottom:8px;
  padding:5px 10px;
  border-radius:999px;
  background:#f8f4e8;
  border:1px solid #e7d7a7;
  color:#5d4514;
  font-size:12px;
  font-weight:700
}

.page-title{
  margin:0 0 16px;
  font-size:clamp(32px,6vw,44px);
  line-height:1.08
}

.contact-hero{
  display:grid;
  grid-template-columns:1.15fr .85fr;
  gap:20px;
  padding:34px;
  border-radius:8px;
  background:linear-gradient(135deg,#15120d 0%,#32281c 52%,#584624 100%);
  color:#f6f0e4;
  box-shadow:0 24px 56px rgba(32,24,13,.16)
}

.contact-kicker{
  margin:0 0 12px;
  font-size:13px;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:#e6d0a0
}

.contact-hero .lead{
  color:#f0e6d4;
  max-width:620px
}

.contact-hero .update-stamp{
  color:#f2eadc
}

.contact-hero .breadcrumbs{
  color:#f2eadc
}

.contact-hero .breadcrumbs a{
  color:#ead8ad
}

.contact-hero .breadcrumbs li+li::before{
  color:#ead8ad
}

.contact-aside{
  display:grid;
  gap:14px
}

.contact-stat{
  padding:18px 18px 16px;
  border-radius:8px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.08)
}

.contact-stat span{
  display:block;
  margin-bottom:8px;
  font-size:12px;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:#ead8ad
}

.contact-stat strong{
  display:block;
  font-size:24px;
  line-height:1.15
}

.contact-stat p{
  margin:8px 0 0;
  color:#f2eadc;
  font-size:14px;
  line-height:1.7
}

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

.contact-panel{
  height:100%
}

.contact-panel-head{
  margin-bottom:18px
}

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

.contact-chip-grid-platform{
  grid-template-columns:repeat(3,minmax(0,1fr))
}

.contact-chip{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:78px;
  padding:16px 18px;
  border-radius:8px;
  border:1px solid var(--line);
  background:linear-gradient(180deg,#fffdfa 0%,#f8f4ea 100%);
  box-shadow:0 10px 24px rgba(0,0,0,.03);
  font-size:16px;
  line-height:1.45;
  color:#2f2a20;
  font-weight:700;
  text-align:center
}

@media (max-width: 900px){
  .hero-inner{grid-template-columns:1fr}
  h1{font-size:40px}
  .col-7,.col-5,.col-6,.col-4{grid-column:span 12}
  .kv{grid-template-columns:1fr}
  .photo-gallery{grid-template-columns:repeat(2,1fr);gap:12px}
  .project-grid{grid-template-columns:1fr}
  .feature-gallery{grid-template-columns:1fr}
  .feature-card,.feature-card.feature-card-wide{grid-column:span 1}
  .contact-hero,.contact-grid{grid-template-columns:1fr}
  .page-title{font-size:36px}
  .contact-chip-grid,.contact-chip-grid-platform{grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media (max-width: 760px){
  .nav{
    flex-direction:column;
    align-items:flex-start;
    gap:12px;
  }

  .menu{
    width:100%;
    gap:10px 16px;
  }

  .menu a{
    font-size:14px;
  }

  .lang-toggle{
    min-height:30px;
  }
}

.project-carousel {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 16px;
  background: #f5f5f5;
}

.project-carousel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: transparent;
}

.carousel-track {
  display: flex;
  transition: transform 0.3s ease;
  height: 100%;
}

.carousel-slide {
  min-width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-slide img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  -webkit-user-drag: none;
  user-select: none;
  -webkit-touch-callout: none;
  pointer-events: none;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.9);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  color: #333;
  opacity: 0.8;
  transition: opacity 0.2s;
  z-index: 3;
}

.carousel-btn:hover {
  opacity: 1;
}

.carousel-btn.prev {
  left: 8px;
}

.carousel-btn.next {
  right: 8px;
}

.carousel-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 1px;
  z-index: 3;
}

.carousel-dot {
  display:grid;
  place-items:center;
  width:24px;
  height:24px;
  padding:0;
  border:0;
  border-radius:50%;
  background:transparent;
  cursor: pointer;
}

.carousel-dot::before {
  content:"";
  width:6px;
  height:6px;
  border-radius:50%;
  background:rgba(255,255,255,.55);
  box-shadow:0 0 0 1px rgba(0,0,0,.18);
  transition:transform .2s ease,background .2s ease;
}

.carousel-dot.active::before,
.carousel-dot:hover::before {
  background: rgba(255,255,255,0.95);
  transform:scale(1.35);
}

.carousel-dot:focus-visible {
  outline:2px solid #fff;
  outline-offset:-2px;
}

/* 摄影项目页：用画册式编排取代等宽卡片墙 */
#project-gallery{
  margin-top:54px
}

#project-gallery>.card{
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none
}

#project-gallery>.card>h2{
  margin:0 0 78px;
  font-family:"Songti SC","STSong","Noto Serif CJK SC",serif;
  font-size:clamp(42px,6vw,68px);
  font-weight:500;
  line-height:1;
  letter-spacing:-.06em
}

#project-gallery .project-grid{
  counter-reset:project-number;
  grid-template-columns:repeat(12,minmax(0,1fr));
  column-gap:32px;
  row-gap:120px
}

#project-gallery .project-card{
  position:relative;
  min-width:0;
  padding:18px 0 0;
  border:0;
  border-top:1px solid #beb5a7;
  border-radius:0;
  background:transparent;
  box-shadow:none;
  counter-increment:project-number
}

#project-gallery .project-card::before{
  content:counter(project-number, decimal-leading-zero);
  position:absolute;
  top:-34px;
  right:0;
  color:#8a8173;
  font-family:Georgia,"Times New Roman",serif;
  font-size:13px;
  letter-spacing:.14em
}

#project-gallery .project-card h3{
  margin:22px 0 12px;
  font-family:"Songti SC","STSong","Noto Serif CJK SC",serif;
  font-size:clamp(30px,3.3vw,44px);
  font-weight:500;
  line-height:1.12;
  letter-spacing:-.04em
}

#project-gallery .project-card .small{
  margin:0 0 18px;
  color:#37332c;
  font-size:16px;
  line-height:1.85
}

#project-gallery .project-detail-text{
  margin:0;
  color:#6a645a;
  font-size:14px;
  line-height:1.95
}

#project-gallery .project-meta{
  gap:0;
  margin:22px 0 0;
  padding-top:13px;
  border-top:1px solid rgba(190,181,167,.7)
}

#project-gallery .project-meta .badge{
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  color:#796646;
  font-size:12px;
  font-weight:600;
  letter-spacing:.06em
}

#project-gallery .project-meta .badge+.badge::before{
  content:"/";
  margin:0 10px;
  color:#b8ac99
}

#project-gallery .project-links{
  gap:10px 22px;
  margin-top:18px;
  font-size:14px
}

#project-gallery .project-links a{
  color:#5d4515;
  text-decoration:none;
  border-bottom:1px solid currentColor
}

#project-gallery .project-links a::after{
  content:"  ↗";
  font-size:12px
}

#project-gallery .project-carousel{
  margin:0 0 24px;
  border-radius:0;
  background:#171717;
  box-shadow:0 20px 50px rgba(24,20,14,.11)
}

#project-gallery .carousel-dots{
  width:calc(100% - 24px);
  max-width:432px;
  justify-content:center;
  flex-wrap:wrap;
  gap:0
}

#project-gallery .carousel-slide img{
  width:100%;
  height:100%;
  max-width:none;
  max-height:none;
  object-fit:contain
}

#project-gallery .carousel-btn{
  width:42px;
  height:42px;
  border:1px solid rgba(255,255,255,.52);
  border-radius:0;
  background:rgba(14,14,14,.52);
  color:#fff;
  font-family:Georgia,"Times New Roman",serif;
  font-size:22px;
  opacity:0;
  transition:opacity .2s ease,background .2s ease
}

#project-gallery .project-carousel:hover .carousel-btn,
#project-gallery .carousel-btn:focus-visible{
  opacity:1
}

#project-gallery .carousel-btn:hover{
  background:rgba(14,14,14,.82)
}

#project-gallery .carousel-btn.prev{left:14px}
#project-gallery .carousel-btn.next{right:14px}

@media (hover: none), (pointer: coarse){
  #project-gallery .carousel-btn{
    opacity:.88
  }
}

#project-gallery #visual-fengyuzhe,
#project-gallery #visual-silence{
  grid-column:1/-1;
  display:grid;
  align-items:start;
  column-gap:52px;
  row-gap:0
}

#project-gallery #visual-fengyuzhe{
  grid-template-columns:minmax(0,1.5fr) minmax(280px,.5fr)
}

#project-gallery #visual-fengyuzhe>.project-carousel{
  grid-column:1;
  grid-row:1 / span 6;
  aspect-ratio:16/10;
  margin:0
}

#project-gallery #visual-fengyuzhe>:not(.project-carousel){
  grid-column:2
}

#project-gallery #visual-silence{
  grid-template-columns:minmax(280px,.5fr) minmax(0,1.5fr)
}

#project-gallery #visual-silence>.project-carousel{
  grid-column:2;
  grid-row:1 / span 6;
  aspect-ratio:16/10;
  margin:0
}

#project-gallery #visual-silence>:not(.project-carousel){
  grid-column:1
}

#project-gallery #visual-fengyuzhe>h3,
#project-gallery #visual-silence>h3{
  margin-top:0
}

#project-gallery #visual-muxinji{
  grid-column:1 / span 5
}

#project-gallery #visual-muxinji .project-carousel,
#project-gallery #visual-portrait .project-carousel{
  aspect-ratio:3/4
}

#project-gallery #visual-abandoned{
  grid-column:6/-1;
  margin-top:112px
}

#project-gallery #visual-landscape{
  grid-column:1 / span 7
}

#project-gallery #visual-landscape .project-carousel,
#project-gallery #visual-wall .project-carousel{
  aspect-ratio:16/10
}

#project-gallery #visual-portrait{
  grid-column:8/-1;
  margin-top:92px
}

#project-gallery #visual-humanity{
  grid-column:1 / span 5
}

#project-gallery #visual-humanity .project-carousel{
  aspect-ratio:4/5
}

#project-gallery #visual-wall{
  grid-column:6/-1;
  margin-top:116px
}

#project-gallery #visual-emptynest{
  grid-column:3 / span 8
}

@media (max-width: 900px){
  #project-gallery{
    margin-top:36px
  }

  #project-gallery>.card>h2{
    margin-bottom:64px
  }

  #project-gallery .project-grid{
    grid-template-columns:1fr;
    row-gap:88px
  }

  #project-gallery .project-card,
  #project-gallery #visual-fengyuzhe,
  #project-gallery #visual-muxinji,
  #project-gallery #visual-abandoned,
  #project-gallery #visual-landscape,
  #project-gallery #visual-portrait,
  #project-gallery #visual-humanity,
  #project-gallery #visual-wall,
  #project-gallery #visual-silence,
  #project-gallery #visual-emptynest{
    grid-column:1;
    display:block;
    margin-top:0
  }

  #project-gallery #visual-fengyuzhe>.project-carousel,
  #project-gallery #visual-silence>.project-carousel{
    aspect-ratio:4/3;
    margin-bottom:24px
  }

  #project-gallery .carousel-btn{
    opacity:.88
  }
}

@media (max-width: 560px){
  #project-gallery>.card>h2{
    font-size:40px
  }

  #project-gallery .project-grid{
    row-gap:76px
  }

  #project-gallery .project-card h3{
    font-size:32px
  }

  #project-gallery .project-detail-text{
    font-size:13px
  }
}

.page-intro{
  padding:34px;
  border-radius:8px;
  background:linear-gradient(135deg,#fffdfa 0%,#f6f0e4 100%);
  border:1px solid var(--line);
  box-shadow:0 18px 40px rgba(0,0,0,.04)
}

.resume-profile-hero{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(220px,280px);
  gap:32px;
  align-items:start
}

.resume-profile-copy{
  min-width:0
}

.resume-profile-copy .lead{
  max-width:none
}

.resume-profile-photo{
  margin:0
}

.resume-profile-photo img{
  width:100%;
  height:auto;
  aspect-ratio:2/3;
  object-fit:contain;
  border-radius:4px;
  background:#171717;
  box-shadow:0 18px 40px rgba(32,26,17,.12)
}

.resume-profile-photo figcaption{
  display:flex;
  justify-content:space-between;
  gap:16px;
  margin-top:10px;
  color:#777064;
  font-size:12px;
  line-height:1.5
}

@media (max-width: 900px){
  .resume-profile-hero{
    grid-template-columns:1fr;
  }

  .resume-profile-photo{
    width:min(100%,300px)
  }
}

.page-kicker{
  margin:0 0 12px;
  font-size:13px;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:#6f5419
}

.page-intro .lead{
  max-width:760px;
  margin:0
}

.update-stamp{
  margin:14px 0 0;
  font-size:14px;
  color:var(--muted)
}

.breadcrumbs{
  margin:0 0 18px;
  font-size:14px;
  color:var(--muted)
}

.breadcrumbs ol{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:0;
  padding:0;
  list-style:none
}

.breadcrumbs li{
  display:flex;
  align-items:center;
  gap:8px
}

.breadcrumbs li+li::before{
  content:"/";
  color:#ad9562
}

.breadcrumbs a{
  color:#7b5f21;
  text-decoration:underline;
  text-underline-offset:2px
}

.page-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px 12px;
  margin-top:20px
}

.page-actions a,
.quick-anchor-list a{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:9px 14px;
  border-radius:999px;
  border:1px solid #e7d7a7;
  background:#f8f4e8;
  color:#543f12;
  font-size:14px;
  font-weight:700
}

.quick-anchor-list{
  display:flex;
  flex-wrap:wrap;
  gap:10px 12px;
  margin-top:20px
}

.page-intro .badges{
  margin-top:18px
}

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

.evidence-card{
  display:grid;
  gap:10px;
  padding:22px;
  border-radius:8px;
  border:1px solid var(--line);
  background:linear-gradient(180deg,#fff 0%,#fcfbf8 100%);
  box-shadow:0 14px 30px rgba(0,0,0,.04)
}

.evidence-card .eyebrow{
  font-size:12px;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:#8b7648
}

.evidence-card .title{
  font-size:20px;
  line-height:1.35;
  font-weight:800
}

.evidence-card .desc{
  color:#444;
  margin:0
}

.evidence-card .meta{
  font-size:14px;
  color:var(--muted)
}

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

.resume-stack{
  display:grid;
  gap:20px
}

.resume-points{
  display:grid;
  gap:12px;
  margin:0;
  padding:0;
  list-style:none
}

.resume-points li{
  padding:14px 16px;
  border-radius:8px;
  background:#fcfbf8;
  border:1px solid var(--line)
}

.resume-points strong{
  display:block;
  margin-bottom:4px
}

.stat-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:16px;
  margin-top:24px
}

.stat-card{
  padding:22px;
  border-radius:8px;
  border:1px solid #eadfbe;
  background:rgba(255,255,255,.76);
  box-shadow:0 14px 30px rgba(0,0,0,.04);
  backdrop-filter:blur(6px)
}

.stat-card .label{
  font-size:12px;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:#8b7648
}

.stat-card .value{
  margin:10px 0 0;
  font-size:32px;
  line-height:1;
  font-weight:800;
  color:#20180c
}

.stat-card p{
  margin:10px 0 0;
  font-size:14px;
  line-height:1.65;
  color:#564b36
}

.summary-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
  margin-bottom:20px
}

.summary-card{
  padding:22px;
  border-radius:8px;
  border:1px solid var(--line);
  background:linear-gradient(180deg,#fff 0%,#fcfbf8 100%);
  box-shadow:0 14px 30px rgba(0,0,0,.04)
}

.summary-card h3{
  margin:0 0 10px;
  font-size:20px
}

.summary-card p{
  margin:0;
  color:#444
}

.timeline-list{
  display:grid;
  gap:12px;
  margin-top:18px
}

.timeline-item{
  padding:18px;
  border-radius:8px;
  border:1px solid var(--line);
  background:#fcfbf8
}

.timeline-time{
  font-size:12px;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:#8b7648
}

.timeline-item h3{
  margin:8px 0 6px;
  font-size:18px;
  line-height:1.4
}

.timeline-item p{
  margin:0;
  color:#444
}

.brand-cloud{
  display:flex;
  flex-wrap:wrap;
  gap:10px
}

.brand-pill{
  display:inline-flex;
  align-items:center;
  padding:10px 14px;
  border-radius:999px;
  border:1px solid #e7d7a7;
  background:#f8f4e8;
  color:#543f12;
  font-size:14px;
  font-weight:700
}

.inline-links{
  display:flex;
  flex-wrap:wrap;
  gap:12px 16px;
  margin-top:14px
}

.inline-links a{
  display:inline-flex;
  align-items:center;
  min-height:36px;
  color:#5f4613;
  text-decoration:underline;
  text-underline-offset:2px
}

.article-groups{
  display:grid;
  gap:26px
}

.article-group{
  display:grid;
  gap:16px
}

.article-group-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:18px;
  flex-wrap:wrap
}

.article-group-head p{
  margin:0;
  max-width:560px;
  color:var(--muted)
}

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

.article-card{
  display:grid;
  gap:12px;
  padding:22px;
  border-radius:8px;
  border:1px solid var(--line);
  background:linear-gradient(180deg,#fffdfa 0%,#fcfbf8 100%);
  box-shadow:0 12px 28px rgba(0,0,0,.03)
}

.article-card h3,
.article-card h4{
  margin:0;
  font-size:21px;
  line-height:1.35
}

.article-tags{
  display:flex;
  flex-wrap:wrap;
  gap:8px
}

.article-tag{
  display:inline-flex;
  align-items:center;
  padding:6px 10px;
  border-radius:999px;
  font-size:13px;
  font-weight:700;
  color:#543f12;
  background:#f7f1e4;
  border:1px solid #ead8ad
}

.article-summary{
  margin:0;
  color:#444
}

.article-link{
  display:inline-flex;
  align-items:center;
  min-height:36px;
  font-size:14px;
  font-weight:700;
  color:#5f4613;
  text-decoration:underline;
  text-underline-offset:2px
}

.archive-text{
  display:grid;
  gap:18px
}

.archive-page-images p{
  margin:0 0 18px;
  color:#444
}

.archive-page-grid{
  display:grid;
  gap:18px
}

.archive-page-figure{
  margin:0 auto;
  width:min(100%,920px);
  border:1px solid var(--line);
  border-radius:8px;
  overflow:hidden;
  background:#f6f3ec;
  box-shadow:0 12px 28px rgba(0,0,0,.04)
}

.archive-page-figure img{
  width:100%;
  height:auto;
  background:#fff
}

.archive-page-figure figcaption{
  padding:10px 14px;
  border-top:1px solid var(--line);
  color:var(--muted);
  font-size:14px;
  text-align:center;
  background:#fcfbf8
}

.article-text-block{
  overflow-wrap:anywhere
}

.article-text-block p{
  margin:0 0 14px;
  color:#333
}

.article-text-block p:last-child{
  margin-bottom:0
}

.project-card{
  scroll-margin-top:96px
}

.project-guide{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
  margin-top:20px
}

.project-guide .stat-card{
  height:100%
}

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

.project-detail{
  display:grid;
  gap:14px;
  height:100%
}

.project-detail p{
  margin:0;
  color:#444
}

.meta-list{
  display:grid;
  grid-template-columns:120px 1fr;
  gap:10px 14px;
  margin:0
}

.meta-list dt,
.meta-list dd{
  margin:0;
  padding:10px 0;
  border-bottom:1px solid var(--line)
}

.meta-list dt{
  color:#6d5a32;
  font-weight:700
}

.meta-list dt:nth-last-of-type(1),
.meta-list dd:nth-last-of-type(1){
  border-bottom:none
}

.work-hero{
  display:grid;
  grid-template-columns:minmax(280px,420px) 1fr;
  gap:24px;
  align-items:start
}

.work-hero-media{
  margin:0;
  border-radius:8px;
  overflow:hidden;
  border:1px solid var(--line);
  background:#f7f5ef;
  box-shadow:0 18px 40px rgba(0,0,0,.04)
}

.work-hero-media img{
  width:100%;
  height:auto;
  object-fit:contain;
  background:#f5f5f5
}

.work-hero-media figcaption{
  padding:14px 16px;
  font-size:14px;
  color:var(--muted);
  border-top:1px solid var(--line);
  background:#fcfbf8
}

.work-hero-copy{
  display:grid;
  gap:18px
}

.image-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
  margin-top:20px
}

.image-grid figure{
  margin:0;
  border-radius:8px;
  overflow:hidden;
  border:1px solid var(--line);
  background:#fff;
  box-shadow:0 12px 28px rgba(0,0,0,.03)
}

.image-grid img{
  width:100%;
  aspect-ratio:2/3;
  object-fit:contain;
  background:#f5f5f5
}

.image-grid figcaption{
  padding:12px 14px;
  font-size:14px;
  color:#444;
  border-top:1px solid var(--line);
  background:#fcfbf8
}

.footer-rich{
  padding:36px 20px 50px
}

.footer-grid{
  display:grid;
  grid-template-columns:1.4fr 1fr 1fr;
  gap:20px;
  text-align:left
}

.footer-title{
  margin:0 0 12px;
  font-size:13px;
  font-weight:800;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:#6d5a32
}

.footer-list{
  display:grid;
  gap:8px;
  margin:0;
  padding:0;
  list-style:none
}

.footer-list a{
  display:inline-flex;
  align-items:center;
  min-height:36px;
  color:#5f4613;
  text-decoration:underline;
  text-underline-offset:2px
}

.footer-meta{
  margin-top:24px;
  padding-top:18px;
  border-top:1px solid var(--line);
  font-size:14px;
  text-align:left
}

#writing-archive{
  scroll-margin-top:96px
}

.wechat-display{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:10px
}

.wechat-value{
  display:inline-flex;
  align-items:center;
  min-height:42px;
  padding:8px 12px;
  border-radius:12px;
  background:rgba(255,255,255,.08);
  border:1px dashed rgba(255,255,255,.28);
  font-size:20px;
  letter-spacing:.04em
}

.wechat-button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:42px;
  padding:10px 14px;
  border:none;
  border-radius:12px;
  background:#e6d0a0;
  color:#231b10;
  font-size:14px;
  font-weight:800;
  cursor:pointer
}

.wechat-button:hover{
  background:#eddcb7
}

.wechat-hint{
  margin:8px 0 0;
  font-size:13px;
  color:#f2eadc
}

.hero-v2 .update-stamp{
  color:#d6d6d6
}

@media (max-width: 900px){
  .stat-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))
  }

  .evidence-grid,
  .resume-layout,
  .article-grid,
  .summary-grid,
  .project-guide,
  .project-detail-grid,
  .footer-grid,
  .work-hero,
  .image-grid{
    grid-template-columns:1fr
  }

  .page-intro{
    padding:26px
  }
}

@media (max-width: 560px){
  .stat-grid{
    grid-template-columns:1fr
  }

  .meta-list{
    grid-template-columns:1fr
  }
}

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

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

/* V2 shared visual overrides */
:root {
  --v2-ink: #151411;
  --v2-paper: #f3f0e9;
  --v2-paper-strong: #fbfaf6;
  --v2-white: #fffdf8;
  --v2-muted: #6a665e;
  --v2-line: #d7d0c4;
  --v2-gold: #e2c579;
  --v2-gold-deep: #70551a;
  --v2-wide: 1180px;
  --v2-reading: 720px;
}

body:has(.site-header) {
  margin: 0;
  background: var(--v2-paper);
  color: var(--v2-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

body:has(.site-header) :focus-visible {
  outline: 3px solid var(--v2-gold-deep);
  outline-offset: 3px;
}

body:has(.site-header) :is(.contact-hero, .site-footer, .footer) :focus-visible {
  outline-color: var(--v2-gold);
}

body:has(.site-header) img {
  max-width: 100%;
}

body:has(.site-header) [id] {
  scroll-margin-top: 92px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  min-height: 72px;
  background: rgba(243, 240, 233, 0.96);
  border-bottom: 1px solid var(--v2-line);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.header-inner {
  width: min(calc(100% - 48px), var(--v2-wide));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.site-header .brand {
  min-width: 0;
  display: inline-flex;
  flex-direction: column;
  color: var(--v2-ink);
  text-decoration: none;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.08em;
}

.site-header .brand small {
  margin-top: 4px;
  color: var(--v2-muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.7vw, 24px);
  font-size: 14px;
}

.desktop-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--v2-ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.desktop-nav a:hover,
.desktop-nav a:focus-visible,
.desktop-nav a[aria-current="page"],
.desktop-nav a.active {
  border-bottom-color: currentColor;
}

.desktop-nav .lang-link {
  min-width: 44px;
  justify-content: center;
  border: 1px solid #8f7640;
  border-radius: 999px;
}

.desktop-nav .lang-link:hover,
.desktop-nav .lang-link:focus-visible {
  background: var(--v2-ink);
  border-color: var(--v2-ink);
  color: var(--v2-white);
}

.site-header .header-home-link {
  min-height: 40px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid var(--v2-line);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.56);
  color: var(--v2-ink);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.site-header .header-home-link:hover,
.site-header .header-home-link:focus-visible {
  border-color: var(--v2-ink);
  background: var(--v2-ink);
  color: var(--v2-white);
}

.site-header .header-home-link span:first-child {
  font-size: 16px;
  line-height: 1;
  transition: transform 160ms ease;
}

.site-header .header-home-link:hover span:first-child,
.site-header .header-home-link:focus-visible span:first-child {
  transform: translateX(-2px);
}

.header-home-link-mobile {
  display: none !important;
}

.mobile-menu {
  display: none;
}

body:has(.site-header) .main {
  width: auto;
  max-width: none;
  margin: 0;
  padding: 0;
}

body:has(.site-header) .section {
  margin: 0;
  padding: clamp(54px, 6.6vw, 78px) 24px;
}

body:has(.site-header) .main > .section:first-child {
  padding-top: clamp(44px, 4.8vw, 58px);
  padding-bottom: 30px;
}

body:has(.site-header) .section + .section {
  border-top: 1px solid color-mix(in srgb, var(--v2-line) 62%, transparent);
}

body:has(.site-header) .section > :where(div, article, header) {
  width: min(100%, var(--v2-wide));
  margin-inline: auto;
}

body:has(.site-header) :is(.page-title, .section-title, .main h2, .main h3) {
  font-family: "Songti SC", "STSong", "SimSun", Georgia, serif;
}

body:has(.site-header) .page-title {
  max-width: 15em;
  margin: 0;
  font-size: clamp(44px, 5.2vw, 64px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.045em;
}

body:has(.site-header) .main h2 {
  font-size: clamp(30px, 3.2vw, 42px);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: -0.025em;
}

body:has(.site-header) .main h3 {
  font-size: clamp(21px, 2vw, 28px);
  font-weight: 600;
  line-height: 1.35;
}

body:has(.site-header) .page-intro {
  position: relative;
  overflow: visible;
  padding: 0 0 clamp(26px, 3vw, 36px);
  border: 0;
  border-bottom: 1px solid var(--v2-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body:has(.site-header) .page-intro::before,
body:has(.site-header) .page-intro::after {
  display: none;
}

body:has(.site-header) .page-kicker {
  margin: 0 0 14px;
  color: var(--v2-gold-deep);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

body:has(.site-header) .page-intro .lead,
body:has(.site-header) .section-head .lead {
  max-width: var(--v2-reading);
  margin: 22px 0 0;
  color: #3e3a34;
  font-size: 17px;
  line-height: 1.85;
}

body:has(.site-header) .breadcrumbs {
  margin: 0 0 24px;
  color: var(--v2-muted);
  font-size: 13px;
}

body:has(.site-header) .breadcrumbs a {
  color: inherit;
  text-decoration-color: #a89c83;
}

body:has(.site-header) .section-head {
  margin-bottom: clamp(28px, 4vw, 44px);
}

body:has(.site-header) .section-note,
body:has(.site-header) .section-intro {
  max-width: 38em;
  color: var(--v2-muted);
  font-size: 14px;
  line-height: 1.75;
}

body:has(.site-header) .badges {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}

body:has(.site-header) :is(.badge, .article-tag, .media-badge) {
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--v2-gold-deep);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.7;
}

body:has(.site-header) :is(.badge, .article-tag):not(:last-child)::after {
  content: "·";
  margin-left: 18px;
  color: #aaa294;
}

body:has(.site-header) :is(.page-actions, .quick-anchor-list, .quick-links, .inline-links) {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

body:has(.site-header) :is(.page-actions, .quick-anchor-list, .quick-links, .inline-links) a {
  min-height: 44px;
  padding: 7px 0;
  display: inline-flex;
  align-items: center;
  border: 0;
  border-bottom: 1px solid #a88c4f;
  border-radius: 0;
  background: transparent;
  color: var(--v2-gold-deep);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}

body:has(.site-header) :is(.page-actions, .quick-anchor-list, .quick-links, .inline-links) a:hover,
body:has(.site-header) :is(.page-actions, .quick-anchor-list, .quick-links, .inline-links) a:focus-visible {
  color: var(--v2-ink);
  border-bottom-color: var(--v2-ink);
}

body:has(.site-header) .update-stamp {
  margin-top: 18px;
  color: var(--v2-muted);
  font-size: 13px;
}

body:has(.site-header) .card {
  padding: 30px 0 0;
  border: 0;
  border-top: 1px solid var(--v2-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body:has(.site-header) .card > :first-child {
  margin-top: 0;
}

body:has(.site-header) :is(.summary-card, .stat-card, .evidence-card, .article-card, .contact-panel, .project-detail) {
  min-height: 0;
  height: auto;
  padding: 22px 0 0;
  border: 0;
  border-top: 1px solid var(--v2-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

body:has(.site-header) :is(.summary-grid, .stat-grid, .evidence-grid, .article-grid, .resume-layout, .project-detail-grid, .contact-grid) {
  gap: clamp(24px, 3vw, 38px);
  align-items: start;
}

body:has(.site-header) .stat-grid {
  margin-top: 34px;
}

body:has(.site-header) .stat-card .label {
  color: var(--v2-gold-deep);
  font-size: 11px;
  letter-spacing: 0.12em;
}

body:has(.site-header) .stat-card .value {
  margin-top: 10px;
  font-family: "Songti SC", "STSong", "SimSun", Georgia, serif;
  font-size: clamp(23px, 2.5vw, 32px);
  line-height: 1.2;
}

body:has(.site-header) .stat-card p {
  color: var(--v2-muted);
  font-size: 14px;
  line-height: 1.75;
}

body:has(.site-header) :is(.callout, .contact-hero, .contact-stat) {
  border-radius: 4px;
}

body:has(.site-header) .callout {
  border: 1px solid #d9c58e;
  background: #fbf5e7;
  box-shadow: none;
}

body:has(.site-header) .contact-hero {
  padding: clamp(28px, 4vw, 46px);
  background: var(--v2-ink);
  color: var(--v2-white);
  box-shadow: none;
}

body:has(.site-header) .contact-hero .lead,
body:has(.site-header) .contact-hero .update-stamp {
  color: #d8d1c5;
}

body:has(.site-header) .contact-stat {
  border: 1px solid #4a463f;
  background: #1e1d1a;
}

body:has(.site-header) :is(.contact-chip-grid, .contact-chip-grid-platform) {
  gap: 0 24px;
}

body:has(.site-header) .contact-chip {
  min-height: 44px;
  padding: 9px 0;
  justify-content: flex-start;
  border: 0;
  border-bottom: 1px solid var(--v2-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #37332d;
  font-size: 15px;
  font-weight: 600;
  text-align: left;
}

body:has(.site-header) .wechat-button {
  min-height: 44px;
  border-radius: 4px;
}

body:has(.site-header).faq-page .faq-summary {
  gap: clamp(20px, 3vw, 34px);
}

body:has(.site-header).faq-page .faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}

body:has(.site-header).faq-page .faq-item {
  padding: clamp(24px, 3vw, 34px) 0;
  border: 0;
  border-top: 1px solid var(--v2-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body:has(.site-header).faq-page .faq-item h3 {
  max-width: 34em;
  font-size: clamp(22px, 2.4vw, 30px);
}

body:has(.site-header).faq-page .faq-item .article-summary {
  max-width: var(--v2-reading);
  margin-top: 14px;
  color: #403d37;
  line-height: 1.85;
}

body:has(.site-header) .list-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: auto;
  font-size: 15px;
}

body:has(.site-header) .list-table th {
  padding: 12px 12px 14px 0;
  border-top: 1px solid var(--v2-line);
  border-bottom: 1px solid var(--v2-line);
  color: var(--v2-muted);
  font-size: 12px;
  letter-spacing: 0.08em;
}

body:has(.site-header) .list-table td {
  padding: 18px 16px 18px 0;
  border-bottom: 1px solid var(--v2-line);
  line-height: 1.65;
}

body:has(.site-header) :is(.feature-card, .photo-item, .image-grid figure) {
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body:has(.site-header) :is(.feature-card img, .photo-item img, .image-grid img, .project-cover img) {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  background: transparent;
  filter: none;
}

body:has(.site-header) .feature-card:hover img {
  transform: none;
  filter: none;
}

body:has(.site-header) .feature-card figcaption {
  position: static;
  padding: 14px 0 0;
  border: 0;
  background: transparent;
  color: var(--v2-ink);
  font-size: 14px;
  font-weight: 600;
}

body:has(.site-header) .feature-card figcaption span {
  color: var(--v2-gold-deep);
}

body:has(.site-header) .photo-item figcaption,
body:has(.site-header) .image-grid figcaption {
  padding: 12px 0 0;
  border: 0;
  background: transparent;
  color: var(--v2-muted);
}

body:has(.site-header) .image-grid {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: clamp(24px, 3vw, 38px);
  align-items: start;
}

body:has(.site-header) .work-hero-media {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body:has(.site-header) .work-hero-media figcaption {
  padding: 14px 0 0;
  border: 0;
  background: transparent;
}

body:has(.site-header) :is(.article-body, .article-content, .topic-body, .prose, .archive-text > .card) {
  max-width: var(--v2-reading);
  margin-inline: auto;
}

body:has(.site-header) :is(.article-body, .article-content, .topic-body, .prose) p {
  line-height: 1.95;
}

body:has(.site-header) :is(.carousel-btn, .wechat-button, .copy-button, .mobile-menu summary, .lang-toggle) {
  min-width: 44px;
  min-height: 44px;
}

body:has(.site-header) .carousel-btn {
  width: 44px;
  height: 44px;
}

body:has(.site-header) .carousel-dot {
  width: 34px;
  height: 44px;
  min-width: 34px;
  min-height: 44px;
}

.v2-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

body:has(.site-header) .project-carousel[data-v2-complete] {
  touch-action: pan-y;
}

body:has(.site-header) .project-carousel[data-v2-complete] .carousel-current-image {
  opacity: 1;
  transition: opacity 180ms ease;
}

body:has(.site-header) .project-carousel[data-v2-complete] .carousel-current-image.is-loading {
  opacity: .42;
}

body:has(.site-header) .project-carousel[data-v2-complete] .carousel-sequence {
  position: absolute;
  right: 18px;
  bottom: 16px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 11px;
  color: rgba(255, 255, 255, .88);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  letter-spacing: .14em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .7);
}

body:has(.site-header) .project-carousel[data-v2-complete] .carousel-progress {
  display: block;
  width: 64px;
  height: 1px;
  overflow: hidden;
  background: rgba(255, 255, 255, .32);
}

body:has(.site-header) .project-carousel[data-v2-complete] .carousel-progress > span {
  display: block;
  width: 0;
  height: 100%;
  background: rgba(255, 255, 255, .95);
  transition: width 220ms ease;
}

@media (prefers-reduced-motion: reduce) {
  body:has(.site-header) .project-carousel[data-v2-complete] .carousel-current-image,
  body:has(.site-header) .project-carousel[data-v2-complete] .carousel-progress > span {
    transition: none;
  }
}

body:has(.site-header) :is(.site-footer, .footer.footer-rich) {
  padding: 56px 24px 44px;
  border: 0;
  background: #0d0d0c;
  color: #b5afa5;
  text-align: left;
}

body:has(.site-header) :is(.footer-inner, .site-footer .footer-inner) {
  width: min(100%, var(--v2-wide));
  max-width: var(--v2-wide);
  margin-inline: auto;
}

body:has(.site-header) .footer-title {
  color: var(--v2-white);
}

body:has(.site-header) .footer-list a,
body:has(.site-header) .footer-meta a {
  color: #ddd5c7;
}

@media (max-width: 960px) {
  .desktop-nav {
    display: none;
  }

  .mobile-menu {
    display: block;
    position: relative;
    z-index: 2;
  }

  .header-home-link-mobile {
    margin-left: auto;
    display: inline-flex !important;
  }

  .mobile-menu summary {
    padding: 8px 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #766f63;
    border-radius: 4px;
    color: var(--v2-ink);
    cursor: pointer;
    list-style: none;
    font-size: 14px;
    font-weight: 700;
  }

  .mobile-menu summary::-webkit-details-marker {
    display: none;
  }

  .mobile-menu nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: min(78vw, 300px);
    padding: 10px;
    display: grid;
    background: var(--v2-paper-strong);
    border: 1px solid var(--v2-line);
    box-shadow: 0 16px 38px rgba(21, 20, 17, 0.18);
  }

  .mobile-menu nav a {
    min-height: 44px;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    color: var(--v2-ink);
    text-decoration: none;
  }

  .mobile-menu nav a + a {
    border-top: 1px solid color-mix(in srgb, var(--v2-line) 62%, transparent);
  }

  body:has(.site-header) :is(.resume-layout, .summary-grid, .evidence-grid, .article-grid, .project-detail-grid, .contact-grid, .work-hero) {
    grid-template-columns: minmax(0, 1fr);
  }

  body:has(.site-header) .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  body:has(.site-header) .list-table,
  body:has(.site-header) .list-table tbody,
  body:has(.site-header) .list-table tr,
  body:has(.site-header) .list-table td {
    display: block;
    width: 100%;
  }

  body:has(.site-header) .list-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  body:has(.site-header) .list-table tr {
    padding: 16px 0;
    border-top: 1px solid var(--v2-line);
  }

  body:has(.site-header) .list-table tr:last-child {
    border-bottom: 1px solid var(--v2-line);
  }

  body:has(.site-header) .list-table td {
    padding: 4px 0;
    border: 0;
  }

  body:has(.site-header) .list-table td:first-child {
    margin-bottom: 6px;
    font-family: "Songti SC", "STSong", "SimSun", Georgia, serif;
    font-size: 19px;
    font-weight: 600;
  }

  body:has(.site-header) .list-table td[data-label]::before,
  body:has(.site-header) .list-table td:nth-child(n + 2)::before {
    display: inline-block;
    min-width: 4.8em;
    margin-right: 8px;
    color: var(--v2-muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
  }

  body:has(.site-header) .list-table td[data-label]::before {
    content: attr(data-label);
  }

  html[lang^="zh"] body:has(.site-header) .list-table td:nth-child(2):not([data-label])::before {
    content: "角色";
  }

  html[lang^="zh"] body:has(.site-header) .list-table td:nth-child(3):not([data-label])::before {
    content: "说明";
  }

  html[lang^="en"] body:has(.site-header) .list-table td:nth-child(2):not([data-label])::before {
    content: "Role";
  }

  html[lang^="en"] body:has(.site-header) .list-table td:nth-child(3):not([data-label])::before {
    content: "Notes";
  }
}

@media (max-width: 640px) {
  .site-header,
  .header-inner {
    min-height: 60px;
    height: 60px;
  }

  .header-inner {
    width: calc(100% - 32px);
    gap: 16px;
  }

  .site-header .brand {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .site-header .brand small {
    display: none;
  }

  .site-header .header-home-link {
    min-height: 44px;
    padding-inline: 11px;
  }

  body:has(.site-header) {
    font-size: 16px;
  }

  body:has(.site-header) .section {
    padding: 46px 16px;
  }

  body:has(.site-header) .section > :where(div, article, header) {
    width: 100%;
  }

  body:has(.site-header) .page-title {
    font-size: clamp(38px, 11.5vw, 50px);
    letter-spacing: -0.035em;
  }

  body:has(.site-header) .main h2 {
    font-size: clamp(28px, 8.4vw, 38px);
  }

  body:has(.site-header) .page-intro {
    padding-bottom: 32px;
  }

  body:has(.site-header) .page-intro .lead,
  body:has(.site-header) .section-head .lead {
    font-size: 16px;
  }

  body:has(.site-header) .section-head {
    display: block;
  }

  body:has(.site-header) .section-note,
  body:has(.site-header) .section-intro {
    margin-top: 12px;
  }

  body:has(.site-header) .stat-grid,
  body:has(.site-header).faq-page .faq-summary {
    grid-template-columns: minmax(0, 1fr);
  }

  body:has(.site-header) :is(.contact-chip-grid, .contact-chip-grid-platform) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 18px;
  }

  body:has(.site-header) :is(.site-footer, .footer.footer-rich) {
    padding: 48px 16px 38px;
  }

  body:has(.site-header) .footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
  }
}

@media (max-width: 460px) {
  body:has(.site-header) .carousel-dot {
    width: 28px;
    min-width: 28px;
  }

  body:has(.site-header) :is(.contact-chip-grid, .contact-chip-grid-platform) {
    grid-template-columns: minmax(0, 1fr);
  }

  body:has(.site-header) :is(.page-actions, .quick-anchor-list, .quick-links, .inline-links) a {
    flex: 1 1 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  body:has(.site-header) *,
  body:has(.site-header) *::before,
  body:has(.site-header) *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
