/* ============================================================
   悲情游侠 · 个人主页
   单文件静态页 · 奶油纸暖橘 · 手绘风
   ============================================================ */

/* ---------- 1. 变量 ---------- */
:root{
  --paper:      #FAF3E8;
  --paper-2:    #F5EAD8;
  --paper-3:    #EFE1CA;
  --ink:        #4A3728;
  --ink-2:      #6B5443;
  --ink-3:      #9A8574;
  --terracotta: #D2764A;
  --ochre:      #E0A458;
  --sage:       #8A9A6B;
  --rose:       #C98B7E;

  /* 手绘不规则圆角 */
  --r-a: 255px 15px 225px 15px / 15px 225px 15px 255px;
  --r-b: 15px 225px 15px 255px / 255px 15px 225px 15px;
  --r-c: 185px 20px 160px 25px / 25px 190px 20px 175px;
  --r-d: 20px 180px 25px 165px / 175px 25px 185px 20px;

  --font-hand: "Kaiti SC","KaiTi","STKaiti","楷体","Kaiti",serif;
  --font-body: "PingFang SC","Microsoft YaHei","Hiragino Sans GB",
               system-ui,-apple-system,"Segoe UI",sans-serif;

  --shadow-sm: 0 2px 0 rgba(74,55,40,.10), 0 6px 18px -10px rgba(74,55,40,.35);
  --shadow-md: 0 3px 0 rgba(74,55,40,.12), 0 18px 34px -18px rgba(74,55,40,.45);
  --ease: cubic-bezier(.22,.61,.36,1);
  --nav-h: 68px;
}

/* ---------- 2. 基础 ---------- */
*,*::before,*::after{ box-sizing:border-box; }

html{
  scroll-behavior:smooth;
  -webkit-text-size-adjust:100%;
}

body{
  margin:0;
  background-color:var(--paper);
  color:var(--ink);
  font-family:var(--font-body);
  font-size:17px;
  line-height:1.85;
  letter-spacing:.01em;
  overflow-x:hidden;
  /* 纸张底纹：极淡的暖色晕染 */
  background-image:
    radial-gradient(circle at 12% 8%,  rgba(224,164,88,.13), transparent 42%),
    radial-gradient(circle at 88% 22%, rgba(201,139,126,.11), transparent 40%),
    radial-gradient(circle at 70% 88%, rgba(138,154,107,.10), transparent 45%);
  background-attachment:fixed;
}

/* 纸张颗粒 */
body::after{
  content:"";
  position:fixed; inset:0;
  z-index:9998;
  pointer-events:none;
  opacity:.055;
  mix-blend-mode:multiply;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

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

h1,h2,h3,h4{
  font-family:var(--font-hand);
  font-weight:400;
  line-height:1.3;
  margin:0;
  letter-spacing:.02em;
}

p{ margin:0 0 1.05em; }
p:last-child{ margin-bottom:0; }

::selection{ background:rgba(224,164,88,.4); color:var(--ink); }

:focus-visible{
  outline:2.5px dashed var(--terracotta);
  outline-offset:3px;
  border-radius:4px;
}

/* ---------- 3. 通用容器 ---------- */
.wrap{
  width:min(1120px, 100% - 48px);
  margin-inline:auto;
}

section{ scroll-margin-top:calc(var(--nav-h) + 24px); }

.band{ padding:104px 0; position:relative; }

/* 分区标题 */
.sec-head{ margin-bottom:52px; }

.sec-kicker{
  display:inline-block;
  font-size:13px;
  letter-spacing:.22em;
  text-transform:uppercase;
  color:var(--terracotta);
  margin-bottom:10px;
  font-family:var(--font-body);
  font-weight:600;
}

.sec-title{
  font-size:clamp(30px, 4.4vw, 44px);
  position:relative;
  display:inline-block;
}

/* 标题下的手绘波浪线 */
.sec-title::after{
  content:"";
  display:block;
  height:12px;
  margin-top:6px;
  background-repeat:no-repeat;
  background-size:100% 100%;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12' preserveAspectRatio='none'%3E%3Cpath d='M2 8 C 30 2, 52 11, 82 6 S 138 1, 168 7 S 192 5, 198 6' fill='none' stroke='%23D2764A' stroke-width='3' stroke-linecap='round' opacity='.85'/%3E%3C/svg%3E");
}

.sec-desc{
  margin-top:20px;
  max-width:56ch;
  color:var(--ink-2);
}

/* 手绘卡片 */
.sketch{
  border:2.5px solid var(--ink);
  border-radius:var(--r-a);
  background:var(--paper-2);
  box-shadow:var(--shadow-sm);
}
.sketch.alt{ border-radius:var(--r-b); }
.sketch.alt2{ border-radius:var(--r-c); }

/* ---------- 4. 顶部导航 ---------- */
.nav{
  position:fixed;
  top:0; left:0; right:0;
  height:var(--nav-h);
  z-index:100;
  display:flex;
  align-items:center;
  transition:background .35s var(--ease), box-shadow .35s var(--ease),
             backdrop-filter .35s var(--ease);
}

.nav.scrolled{
  background:rgba(250,243,232,.86);
  -webkit-backdrop-filter:blur(12px) saturate(1.2);
  backdrop-filter:blur(12px) saturate(1.2);
  box-shadow:0 1px 0 rgba(74,55,40,.12), 0 10px 26px -22px rgba(74,55,40,.7);
}

.nav-inner{
  width:min(1120px, 100% - 48px);
  margin-inline:auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
}

.brand{
  font-family:var(--font-hand);
  font-size:23px;
  display:flex;
  align-items:center;
  gap:9px;
  white-space:nowrap;
}

.brand-dot{
  width:11px; height:11px;
  border-radius:50%;
  background:var(--terracotta);
  box-shadow:0 0 0 3px rgba(210,118,74,.22);
  flex:none;
}

.nav-links{
  display:flex;
  align-items:center;
  gap:4px;
  list-style:none;
  margin:0; padding:0;
}

.nav-links a{
  position:relative;
  display:block;
  padding:8px 14px;
  font-size:15.5px;
  color:var(--ink-2);
  border-radius:12px;
  transition:color .25s var(--ease), background .25s var(--ease);
}

.nav-links a:hover{ color:var(--ink); background:rgba(224,164,88,.16); }

.nav-links a.active{ color:var(--terracotta); font-weight:600; }

.nav-links a.active::after{
  content:"";
  position:absolute;
  left:14px; right:14px; bottom:2px;
  height:6px;
  background-repeat:no-repeat;
  background-size:100% 100%;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 6' preserveAspectRatio='none'%3E%3Cpath d='M1 4 C 18 1, 34 6, 52 3 S 82 1, 99 3' fill='none' stroke='%23D2764A' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* ---------- 5. 首屏 ---------- */
.hero{
  padding:calc(var(--nav-h) + 76px) 0 96px;
  position:relative;
}

.hero-grid{
  display:grid;
  grid-template-columns:1.02fr .98fr;
  gap:64px;
  align-items:center;
}

.hero-tag{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:7px 16px;
  font-size:13.5px;
  letter-spacing:.08em;
  color:var(--ink-2);
  border:2px solid var(--ink);
  border-radius:var(--r-d);
  background:var(--paper-2);
  margin-bottom:26px;
}

.hero-tag i{
  width:7px; height:7px; border-radius:50%;
  background:var(--sage);
  display:block;
}

.hero h1{
  font-size:clamp(38px, 6.2vw, 64px);
  line-height:1.22;
  margin-bottom:22px;
}

.hero h1 .hl{
  position:relative;
  display:inline-block;
  color:var(--terracotta);
}

/* 高亮词下的手绘圈线 */
.hero h1 .hl::after{
  content:"";
  position:absolute;
  left:-6%; right:-6%; bottom:-2px;
  height:14px;
  background-repeat:no-repeat;
  background-size:100% 100%;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 14' preserveAspectRatio='none'%3E%3Cpath d='M3 9 C 40 3, 74 12, 112 7 S 168 2, 197 8' fill='none' stroke='%23E0A458' stroke-width='4' stroke-linecap='round' opacity='.9'/%3E%3C/svg%3E");
}

.hero-lede{
  font-size:18px;
  color:var(--ink-2);
  max-width:44ch;
  margin-bottom:34px;
}

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

.btn{
  display:inline-flex;
  align-items:center;
  gap:9px;
  padding:13px 28px;
  font-size:16px;
  font-family:var(--font-body);
  color:var(--ink);
  background:var(--paper-2);
  border:2.5px solid var(--ink);
  border-radius:var(--r-a);
  cursor:pointer;
  transition:transform .28s var(--ease), box-shadow .28s var(--ease),
             background .28s var(--ease);
  box-shadow:var(--shadow-sm);
}

.btn:hover{
  transform:translate(-2px,-3px) rotate(-.6deg);
  box-shadow:var(--shadow-md);
  background:#fff8ec;
}

.btn:active{ transform:translate(0,0) rotate(0); }

.btn.primary{
  background:var(--terracotta);
  color:#FFF6EA;
  border-color:var(--ink);
}
.btn.primary:hover{ background:#C96A3E; }

/* 首屏插画 */
.hero-art{
  position:relative;
  transform:rotate(1.6deg);
}

.hero-art .frame{
  position:relative;
  padding:12px;
  background:var(--paper-2);
  border:2.5px solid var(--ink);
  border-radius:var(--r-c);
  box-shadow:var(--shadow-md);
}

.hero-art img{
  width:100%;
  aspect-ratio:4/3;
  object-fit:cover;
  border-radius:150px 12px 130px 14px / 14px 150px 12px 140px;
}

/* 胶带 */
.tape{
  position:absolute;
  width:88px; height:28px;
  background:rgba(224,164,88,.42);
  border-left:1px dashed rgba(74,55,40,.20);
  border-right:1px dashed rgba(74,55,40,.20);
  box-shadow:0 2px 6px -3px rgba(74,55,40,.5);
  z-index:3;
}
.tape.tl{ top:-14px; left:34px; transform:rotate(-6deg); }
.tape.br{ bottom:-14px; right:34px; transform:rotate(4deg); }

/* 漂浮涂鸦 */
.doodle{ position:absolute; pointer-events:none; opacity:.9; }
.doodle.sun{
  width:78px; top:-30px; right:-18px;
  animation:spin 46s linear infinite;
}
.doodle.birds{ width:96px; top:34px; left:-30px; opacity:.75; }

@keyframes spin{ to{ transform:rotate(360deg); } }

/* 首屏下方手绘分隔 */
.divider{
  width:min(1120px, 100% - 48px);
  margin:0 auto;
  height:26px;
  background-repeat:no-repeat;
  background-size:100% 100%;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 26' preserveAspectRatio='none'%3E%3Cpath d='M4 15 C 160 4, 300 24, 470 13 S 760 3, 930 16 S 1120 8, 1196 14' fill='none' stroke='%234A3728' stroke-width='2.4' stroke-linecap='round' opacity='.32'/%3E%3C/svg%3E");
}

/* ---------- 6. 关于 ---------- */
.about-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:64px;
  align-items:center;
}

.about-art{ transform:rotate(-1.5deg); }

.about-art .frame{
  padding:12px;
  background:var(--paper-2);
  border:2.5px solid var(--ink);
  border-radius:var(--r-d);
  box-shadow:var(--shadow-md);
  position:relative;
}

.about-art img{
  width:100%;
  aspect-ratio:4/3;
  object-fit:cover;
  border-radius:12px 150px 14px 130px / 140px 12px 150px 14px;
}

.about-body p{ color:var(--ink-2); }

.about-facts{
  list-style:none;
  margin:30px 0 0;
  padding:0;
  display:grid;
  gap:12px;
}

.about-facts li{
  display:flex;
  align-items:flex-start;
  gap:12px;
  font-size:16px;
  color:var(--ink-2);
}

.about-facts .mark{
  flex:none;
  width:22px; height:22px;
  margin-top:5px;
  border-radius:50%;
  border:2px solid var(--ink);
  display:grid;
  place-items:center;
  font-size:12px;
  font-family:var(--font-hand);
  color:var(--terracotta);
  background:var(--paper);
}

/* ---------- 7. 作品 ---------- */
.works-grid{
  display:grid;
  grid-template-columns:repeat(2, 1fr);
  gap:30px;
}

/* 只有一张卡片时居中，避免右侧大片留白 */
.works-grid:has(> .card:only-child){
  grid-template-columns:minmax(0, 640px);
  justify-content:center;
}

.card{
  position:relative;
  padding:30px 30px 28px;
  background:var(--paper-2);
  border:2.5px solid var(--ink);
  box-shadow:var(--shadow-sm);
  transition:transform .38s var(--ease), box-shadow .38s var(--ease);
  display:flex;
  flex-direction:column;
  min-height:230px;
}

.card:nth-child(4n+1){ border-radius:var(--r-a); transform:rotate(-.7deg); }
.card:nth-child(4n+2){ border-radius:var(--r-b); transform:rotate(.6deg); }
.card:nth-child(4n+3){ border-radius:var(--r-c); transform:rotate(.5deg); }
.card:nth-child(4n+4){ border-radius:var(--r-d); transform:rotate(-.5deg); }

.card:hover{
  transform:rotate(0) translateY(-7px);
  box-shadow:var(--shadow-md);
}

.card-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin-bottom:18px;
}

.card-num{
  font-family:var(--font-hand);
  font-size:30px;
  line-height:1;
  color:var(--terracotta);
  opacity:.85;
}

.card-year{
  font-size:13px;
  letter-spacing:.1em;
  color:var(--ink-3);
  border:1.5px dashed rgba(74,55,40,.32);
  border-radius:999px;
  padding:3px 12px;
}

.card h3{
  font-size:25px;
  margin-bottom:10px;
}

.card p{
  color:var(--ink-2);
  font-size:15.5px;
  flex:1;
}

.tags{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:20px;
  padding:0;
  list-style:none;
}

.tags li{
  font-size:12.5px;
  padding:4px 12px;
  border-radius:999px;
  background:rgba(224,164,88,.22);
  color:var(--ink-2);
  border:1.5px solid rgba(74,55,40,.16);
}

/* 卡片左侧色条 */
.card::before{
  content:"";
  position:absolute;
  left:-2.5px; top:26px; bottom:26px;
  width:7px;
  border-radius:6px;
}
.card:nth-child(4n+1)::before{ background:var(--sage); }
.card:nth-child(4n+2)::before{ background:var(--terracotta); }
.card:nth-child(4n+3)::before{ background:var(--ochre); }
.card:nth-child(4n+4)::before{ background:var(--rose); }

/* 整卡可点：链接覆盖全卡，文字仍可选中 */
.card-link{
  position:absolute;
  inset:0;
  z-index:2;
  border-radius:inherit;
}

/* 「查看详情」提示 */
.card-more{
  display:inline-block;
  margin-top:16px;
  font-size:14.5px;
  color:var(--terracotta);
  opacity:0;
  transform:translateX(-6px);
  transition:opacity .3s var(--ease), transform .3s var(--ease);
}
.card:hover .card-more,
.card:focus-within .card-more{
  opacity:1;
  transform:none;
}

.card-link:focus-visible{
  outline:2.5px dashed var(--terracotta);
  outline-offset:4px;
}

/* ---------- 8. 旅程 ---------- */
.journey-grid{
  display:grid;
  grid-template-columns:.92fr 1.08fr;
  gap:64px;
  align-items:center;
}

.journey-art{ transform:rotate(1.4deg); }

.journey-art .frame{
  padding:12px;
  background:var(--paper-2);
  border:2.5px solid var(--ink);
  border-radius:var(--r-a);
  box-shadow:var(--shadow-md);
}

.journey-art img{
  width:100%;
  aspect-ratio:4/3;
  object-fit:cover;
  border-radius:170px 14px 150px 16px / 16px 160px 14px 170px;
}

.timeline{
  list-style:none;
  margin:0; padding:0 0 0 34px;
  position:relative;
}

/* 手绘竖线 */
.timeline::before{
  content:"";
  position:absolute;
  left:9px; top:8px; bottom:8px;
  width:5px;
  background-repeat:no-repeat;
  background-size:100% 100%;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 5 400' preserveAspectRatio='none'%3E%3Cpath d='M2.5 2 C 0.6 70, 4.4 140, 2.4 210 S 0.8 330, 2.6 398' fill='none' stroke='%234A3728' stroke-width='2.4' stroke-linecap='round' opacity='.42'/%3E%3C/svg%3E");
}

.timeline li{
  position:relative;
  padding-bottom:34px;
}
.timeline li:last-child{ padding-bottom:0; }

.timeline li::before{
  content:"";
  position:absolute;
  left:-34px; top:9px;
  width:15px; height:15px;
  border-radius:50%;
  background:var(--paper);
  border:2.5px solid var(--terracotta);
  box-shadow:0 0 0 4px rgba(210,118,74,.14);
}

.tl-year{
  font-family:var(--font-hand);
  font-size:20px;
  color:var(--terracotta);
  display:block;
  margin-bottom:3px;
}

.tl-title{
  font-family:var(--font-hand);
  font-size:21px;
  margin-bottom:6px;
}

.timeline p{
  color:var(--ink-2);
  font-size:15.5px;
  margin:0;
}

/* ---------- 9. 联系 ---------- */
.contact{
  text-align:center;
  padding:112px 0 120px;
}

.contact .sec-title::after{ margin-inline:auto; }

.contact-lede{
  color:var(--ink-2);
  max-width:46ch;
  margin:22px auto 38px;
}

.mail-box{
  display:inline-flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:center;
  gap:16px;
  padding:20px 26px;
  background:var(--paper-2);
  border:2.5px solid var(--ink);
  border-radius:var(--r-c);
  box-shadow:var(--shadow-sm);
}

.mail-addr{
  font-family:var(--font-hand);
  font-size:clamp(19px, 2.6vw, 26px);
  color:var(--ink);
  word-break:break-all;
  transition:color .25s var(--ease);
}
a.mail-addr:hover{ color:var(--terracotta); }

.copy-btn{
  padding:10px 22px;
  font-size:15px;
  font-family:var(--font-body);
  color:var(--ink);
  background:var(--paper);
  border:2.5px solid var(--ink);
  border-radius:var(--r-b);
  cursor:pointer;
  transition:transform .25s var(--ease), background .25s var(--ease);
}
.copy-btn:hover{ transform:translateY(-2px); background:rgba(224,164,88,.28); }
.copy-btn.done{ background:var(--sage); color:#F7F5EC; border-color:var(--ink); }

.contact-note{
  margin-top:26px;
  font-size:14px;
  color:var(--ink-3);
}

/* ---------- 10. 页脚 ---------- */
.footer{
  padding:34px 0 44px;
  text-align:center;
  font-size:14px;
  color:var(--ink-3);
  border-top:2px dashed rgba(74,55,40,.20);
}

.footer span{ color:var(--terracotta); }

/* ---------- 11. 回顶部 ---------- */
.totop{
  position:fixed;
  right:26px; bottom:26px;
  width:50px; height:50px;
  display:grid;
  place-items:center;
  font-size:20px;
  color:var(--ink);
  background:var(--paper-2);
  border:2.5px solid var(--ink);
  border-radius:var(--r-b);
  cursor:pointer;
  box-shadow:var(--shadow-sm);
  opacity:0;
  visibility:hidden;
  transform:translateY(14px);
  transition:opacity .32s var(--ease), transform .32s var(--ease),
             visibility .32s var(--ease), background .25s var(--ease);
  z-index:90;
}
.totop.show{ opacity:1; visibility:visible; transform:none; }
.totop:hover{ background:#fff8ec; transform:translateY(-3px); }

/* ---------- 12. 滚动入场 ---------- */
.reveal{
  opacity:0;
  transform:translateY(26px);
  transition:opacity .78s var(--ease), transform .78s var(--ease);
  will-change:opacity, transform;
}
.reveal.in{ opacity:1; transform:none; }

/* ---------- 13. 跳转链接（无障碍） ---------- */
.skip{
  position:absolute;
  left:-9999px;
  top:0;
  padding:12px 20px;
  background:var(--paper);
  border:2.5px solid var(--ink);
  border-radius:var(--r-b);
  z-index:200;
}
.skip:focus{ left:16px; top:12px; }

/* ---------- 14. 响应式 ---------- */
@media (max-width: 980px){
  .hero-grid,
  .about-grid,
  .journey-grid{
    grid-template-columns:1fr;
    gap:48px;
  }
  .hero-art{ order:-1; max-width:560px; }
  .about-art{ max-width:560px; }
  .journey-art{ max-width:560px; }
  .band{ padding:82px 0; }
}

@media (max-width: 760px){
  body{ font-size:16px; }
  .nav-links{ display:none; }
  .works-grid{ grid-template-columns:1fr; }
  .card{ min-height:0; }
  .hero{ padding-top:calc(var(--nav-h) + 48px); }
  .hero-actions .btn{ flex:1 1 auto; justify-content:center; }
  .mail-box{ width:100%; }
  .doodle.sun{ width:58px; right:-6px; }
  .doodle.birds{ display:none; }
  .totop{ right:16px; bottom:16px; }
  .band{ padding:70px 0; }
}

/* ---------- 15. 降低动效偏好 ---------- */
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *,*::before,*::after{
    animation-duration:.001ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.001ms !important;
  }
  .reveal{ opacity:1; transform:none; }
}

/* ============================================================
   16. 作品详情页
   ============================================================ */

/* 详情页顶部留白（导航是 fixed 的） */
.detail{
  padding:calc(var(--nav-h) + 56px) 0 96px;
}

/* 返回链接 */
.back-link{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size:15px;
  color:var(--ink-2);
  margin-bottom:34px;
  padding:7px 16px;
  border:2px solid rgba(74,55,40,.28);
  border-radius:var(--r-b);
  background:var(--paper-2);
  transition:transform .25s var(--ease), background .25s var(--ease),
             color .25s var(--ease);
}
.back-link:hover{
  color:var(--ink);
  background:#fff8ec;
  transform:translateX(-3px);
}

/* 标题区 */
.detail-head{ margin-bottom:44px; }

.detail-head h1{
  font-size:clamp(32px, 5vw, 50px);
  line-height:1.24;
  margin-bottom:16px;
}

.detail-meta{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:10px 14px;
  margin-bottom:22px;
}

.detail-meta .card-year{ font-size:13.5px; }

.detail-lede{
  font-size:18px;
  color:var(--ink-2);
  max-width:60ch;
}

/* 主图 */
.detail-hero{
  position:relative;
  margin:44px 0 56px;
}

/* 竖构图照片：限高并居中，避免被裁掉头脚 */
.detail-hero .frame{
  padding:12px;
  background:var(--paper-2);
  border:2.5px solid var(--ink);
  border-radius:var(--r-c);
  box-shadow:var(--shadow-md);
  transform:rotate(-.8deg);
  max-width:620px;
  margin-inline:auto;
}

.detail-hero img{
  width:100%;
  height:auto;
  max-height:76vh;
  object-fit:contain;
  border-radius:14px;
  background:var(--paper-3);
}

.detail-hero figcaption{
  margin-top:16px;
  text-align:center;
  font-size:14px;
  color:var(--ink-3);
}

/* 正文分栏 */
.detail-body{
  display:grid;
  grid-template-columns:1.55fr 1fr;
  gap:56px;
  align-items:start;
}

.detail-body h2{
  font-size:26px;
  margin:34px 0 14px;
}
.detail-body h2:first-child{ margin-top:0; }

.detail-body p{ color:var(--ink-2); }

/* 侧栏信息卡 */
.detail-aside{
  position:sticky;
  top:calc(var(--nav-h) + 24px);
  padding:26px 26px 24px;
  background:var(--paper-2);
  border:2.5px solid var(--ink);
  border-radius:var(--r-b);
  box-shadow:var(--shadow-sm);
}

.detail-aside h3{
  font-size:20px;
  margin-bottom:18px;
}

.spec{
  list-style:none;
  margin:0 0 22px;
  padding:0;
  display:grid;
  gap:13px;
}

.spec li{
  display:grid;
  grid-template-columns:76px 1fr;
  gap:12px;
  font-size:15px;
  align-items:baseline;
}

.spec dt,
.spec .k{
  color:var(--ink-3);
  font-size:13.5px;
  letter-spacing:.04em;
}

.spec .v{ color:var(--ink); }

/* 图集 */
.gallery{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(220px, 1fr));
  gap:22px;
  margin-top:22px;
}

.gallery figure{
  margin:0;
  padding:9px;
  background:var(--paper-2);
  border:2.5px solid var(--ink);
  box-shadow:var(--shadow-sm);
  transition:transform .35s var(--ease), box-shadow .35s var(--ease);
}
.gallery figure:nth-child(4n+1){ border-radius:var(--r-a); transform:rotate(-1deg); }
.gallery figure:nth-child(4n+2){ border-radius:var(--r-b); transform:rotate(.9deg); }
.gallery figure:nth-child(4n+3){ border-radius:var(--r-c); transform:rotate(.7deg); }
.gallery figure:nth-child(4n+4){ border-radius:var(--r-d); transform:rotate(-.8deg); }

.gallery figure:hover{
  transform:rotate(0) translateY(-5px);
  box-shadow:var(--shadow-md);
}

/* 图集：竖构图照片，按 3:4 展示，不裁头脚 */
.gallery img{
  width:100%;
  aspect-ratio:3/4;
  object-fit:cover;
  object-position:center top;
  border-radius:8px;
  background:var(--paper-3);
}

.gallery figcaption{
  margin-top:11px;
  font-size:13.5px;
  color:var(--ink-3);
  text-align:center;
}

/* 占位框（等真实图片时用） */
.ph{
  display:grid;
  place-items:center;
  gap:8px;
  aspect-ratio:1/1;
  border:2.5px dashed rgba(74,55,40,.34);
  border-radius:8px;
  background:rgba(224,164,88,.10);
  color:var(--ink-3);
  font-size:14px;
  text-align:center;
  padding:18px;
}
.ph b{ font-weight:600; color:var(--ink-2); }

/* 底部导航（上一个 / 下一个） */
.detail-nav{
  display:flex;
  flex-wrap:wrap;
  gap:14px;
  justify-content:space-between;
  margin-top:72px;
  padding-top:34px;
  border-top:2px dashed rgba(74,55,40,.20);
}

@media (max-width: 980px){
  .detail-body{
    grid-template-columns:1fr;
    gap:40px;
  }
  .detail-aside{
    position:static;
  }
}

@media (max-width: 760px){
  .detail{ padding-top:calc(var(--nav-h) + 34px); }
  .detail-hero .frame{ transform:none; }
  .gallery{ grid-template-columns:repeat(auto-fit, minmax(150px, 1fr)); gap:16px; }
  .detail-nav{ flex-direction:column; }
  .detail-nav .btn{ width:100%; justify-content:center; }
}
