*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
:root{--bg:#f5f3f7;--ink:#181528;--ink-2:#413a55;--muted:#8b859c;--line:rgba(24,21,40,.08);--line-strong:rgba(24,21,40,.14);
  --brand:#6c5ce7;--brand-deep:#4c3fd6;--brand-light:#8b7bff;--brand-soft:rgba(108,92,231,.10);
  --r-md:16px;--r-lg:22px;--r-xl:30px;
  --sh-1:0 1px 2px rgba(24,21,40,.04),0 4px 12px -6px rgba(24,21,40,.08);
  --sh-2:0 14px 34px -16px rgba(24,21,40,.22);
  --sh-3:0 40px 80px -32px rgba(24,21,40,.30);
  --ease:cubic-bezier(.22,1,.36,1);}
html{-webkit-text-size-adjust:100%}
body{font-family:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI','PingFang SC','Microsoft YaHei',sans-serif;
  color:var(--ink);line-height:1.65;min-height:100vh;
  background:radial-gradient(1200px 620px at 8% -12%, rgba(108,92,231,.16), transparent 62%),
    radial-gradient(900px 520px at 96% -4%, rgba(240,160,75,.14), transparent 58%),var(--bg);
  background-attachment:fixed;}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
.wrap{width:min(1200px,calc(100% - 2.5rem));margin-inline:auto}
.site-header{position:sticky;top:0;z-index:100;background:rgba(247,245,250,.72);backdrop-filter:blur(18px) saturate(180%);
  -webkit-backdrop-filter:blur(18px) saturate(180%);border-bottom:1px solid var(--line);}
.nav{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.8rem 0}
.logo{display:flex;align-items:center;gap:.65rem}
.logo-mark{width:38px;height:38px;border-radius:12px;flex:none;display:grid;place-items:center;color:#fff;
  background:linear-gradient(140deg,var(--brand),var(--brand-light));box-shadow:0 8px 18px -8px rgba(108,92,231,.9);}
.logo-mark svg{width:21px;height:21px}
.logo-text{display:flex;flex-direction:column;line-height:1.1}
.logo-text b{font-size:1rem;font-weight:650}
.logo-text small{font-size:.6rem;letter-spacing:.18em;text-transform:uppercase;color:var(--muted);font-weight:600}
.nav-actions{display:flex;gap:.7rem;align-items:center}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:.45rem;padding:.5rem .95rem;border-radius:10px;
  border:1px solid transparent;font-size:.82rem;font-weight:550;cursor:pointer;transition:all .2s var(--ease);}
.btn-primary{background:linear-gradient(140deg,var(--brand),var(--brand-light));color:#fff;box-shadow:0 10px 24px -12px rgba(108,92,231,.95)}
.btn-primary:hover{transform:translateY(-1px);box-shadow:0 16px 32px -14px rgba(108,92,231,1)}
.btn-ghost{background:rgba(255,255,255,.72);border-color:var(--line-strong);color:var(--ink-2)}
.btn-ghost:hover{background:#fff;border-color:rgba(108,92,231,.35);color:var(--brand-deep)}
.btn-sm{padding:.48rem .95rem;font-size:.82rem;border-radius:10px}

.detail-section{padding:1rem 0 2rem}
.detail-layout{display:grid;gap:1.75rem;align-items:start}
@media(min-width:1000px){.detail-layout{grid-template-columns:1fr 380px;gap:2.5rem}}

.stage{position:relative;border-radius:var(--r-xl);overflow:hidden;background:rgba(255,255,255,.72);
  backdrop-filter:blur(20px) saturate(165%);-webkit-backdrop-filter:blur(20px) saturate(165%);
  border:1px solid rgba(255,255,255,.9);box-shadow:var(--sh-2);
  display:flex;align-items:center;justify-content:center;padding:1rem;
  touch-action:pan-y;}
.stage::after{content:"🔍 点击放大";position:absolute;bottom:1rem;right:1rem;padding:.3rem .75rem;border-radius:8px;
  background:rgba(24,21,40,.72);color:#fff;font-size:.72rem;font-weight:600;opacity:0;transition:opacity .2s;
  pointer-events:none;backdrop-filter:blur(6px);z-index:2;}
.stage:hover::after{opacity:1}
.stage-img{max-width:100%;max-height:min(70vh,600px);width:auto;height:auto;object-fit:contain;display:block;margin:0 auto;
  border-radius:8px;background:linear-gradient(130deg,#ece6f5 30%,#ded4ee 55%,#ece6f5 80%);background-size:200% 200%;
  cursor:zoom-in;transition:opacity .25s ease, transform .3s var(--ease);}
.stage-img:hover{opacity:.97;transform:scale(1.005)}
@media(max-width:767px){.stage-img{max-height:60vh}.stage{padding:.5rem}}

/* 舞台上（非灯箱）的左右箭头 */
.stage-nav{
  position:absolute;top:50%;z-index:3;
  width:44px;height:44px;border-radius:50%;
  display:grid;place-items:center;
  color:#fff;cursor:pointer;
  background:rgba(24,21,40,.42);
  border:1px solid rgba(255,255,255,.28);
  backdrop-filter:blur(10px) saturate(160%);
  -webkit-backdrop-filter:blur(10px) saturate(160%);
  transform:translateY(-50%);
  opacity:0;
  transition:opacity .25s var(--ease),background .2s,transform .25s var(--ease);
  -webkit-tap-highlight-color:transparent;
  text-decoration:none;
  font-style:normal;
}
.stage:hover .stage-nav{opacity:1}
.stage-nav:hover{background:rgba(24,21,40,.78);transform:translateY(-50%) scale(1.08)}
.stage-nav:active{transform:translateY(-50%) scale(.95)}
.stage-nav svg{width:20px;height:20px}
.stage-nav.prev{left:.85rem}
.stage-nav.next{right:.85rem}
.stage-nav.is-hidden{display:none}
@media(hover:none){.stage-nav{opacity:.85}}
@media(max-width:767px){
  .stage-nav{width:38px;height:38px}
  .stage-nav svg{width:17px;height:17px}
  .stage-nav.prev{left:.45rem}
  .stage-nav.next{right:.45rem}
}

.stage-like{
  position:absolute;top:1rem;right:1rem;z-index:4;
  display:inline-flex;align-items:center;gap:.3rem;
  padding:.3rem .45rem;border:none;background:transparent;
  color:#fff;font-size:1rem;font-weight:800;font-family:inherit;
  cursor:pointer;transition:transform .2s var(--ease);
  filter:drop-shadow(0 2px 6px rgba(0,0,0,.55));
  text-shadow:0 1px 4px rgba(0,0,0,.65);
  -webkit-tap-highlight-color:transparent;
}
.stage-like:hover:not(:disabled){transform:scale(1.12)}
.stage-like:active:not(:disabled){transform:scale(.96)}
.stage-like .like-icon{width:26px;height:26px;color:#fff;fill:none;stroke:currentColor;stroke-width:2.2;
  transition:transform .25s var(--ease),fill .25s,stroke .25s,color .25s;}
.stage-like.is-liked .like-icon{fill:#ff3d63;stroke:#ff3d63;color:#ff3d63;transform:scale(1.05)}
.stage-like.is-liked{color:#ff3d63}
.stage-like .like-count{color:#fff;font-weight:800;font-variant-numeric:tabular-nums;min-width:1ch;font-size:1rem}
.stage-like.is-liked .like-count{color:#ff3d63}
.stage-like:disabled{cursor:not-allowed;opacity:.7}
@media(max-width:767px){
  .stage-like{top:.7rem;right:.7rem;font-size:.9rem}
  .stage-like .like-icon{width:22px;height:22px}
  .stage-like .like-count{font-size:.9rem}
}

.info-card{background:rgba(255,255,255,.72);backdrop-filter:blur(20px) saturate(165%);
  -webkit-backdrop-filter:blur(20px) saturate(165%);border:1px solid rgba(255,255,255,.9);border-radius:var(--r-lg);
  box-shadow:var(--sh-2);padding:clamp(1.35rem,3vw,1.75rem);
  position:sticky;top:5.5rem;}
@media(max-width:999px){.info-card{position:static}}

.info-title{font-size:clamp(1.35rem,3vw,1.7rem);font-weight:730;line-height:1.25;letter-spacing:-.02em;
  margin-bottom:1.1rem;word-break:break-word;}

.info-author{display:flex;align-items:center;gap:.55rem;margin-bottom:.9rem;font-size:.88rem;color:var(--ink-2);flex-wrap:wrap;}
.info-author .avatar{width:32px;height:32px;flex:none;border-radius:50%;display:grid;place-items:center;color:#fff;
  font-size:.8rem;font-weight:700;background:linear-gradient(140deg,var(--brand),var(--brand-light));
  box-shadow:0 4px 10px -4px rgba(108,92,231,.7);overflow:hidden;}
.info-author .avatar img{width:100%;height:100%;object-fit:cover;display:block;border-radius:inherit}
.info-author a{color:var(--brand-deep);font-weight:650}
.info-author a:hover{text-decoration:underline}

.author-like{
  display:inline-flex;align-items:center;gap:.3rem;
  margin-left:.15rem;
  padding:0;border:none;background:none;
  color:#e84a6f;
  font-family:inherit;font-size:.82rem;font-weight:750;
  cursor:pointer;transition:transform .2s var(--ease);
  flex:none;
  -webkit-tap-highlight-color:transparent;
}
.author-like:hover:not(:disabled){transform:scale(1.06)}
.author-like:hover:not(:disabled) .like-icon{transform:scale(1.15)}
.author-like .like-icon{
  width:14px;height:14px;color:#e84a6f;fill:none;stroke:currentColor;stroke-width:2.2;
  transition:transform .25s var(--ease),fill .25s,stroke .25s;
}
.author-like.is-liked .like-icon{fill:#e84a6f;stroke:#e84a6f}
.author-like.is-liked{color:#e84a6f}
.author-like:disabled{cursor:not-allowed;opacity:.6}
.author-like .like-count{min-width:1ch;font-variant-numeric:tabular-nums;color:#e84a6f;font-weight:800;}

.info-rows{display:flex;flex-direction:column;gap:.7rem;padding-top:1rem;border-top:1px dashed var(--line-strong);}
.info-row{display:flex;gap:.75rem;align-items:flex-start;font-size:.82rem}
.info-row .ik{flex:none;width:5.5rem;color:var(--muted);font-size:.78rem;font-weight:600}
.info-row .iv{flex:1;color:var(--ink-2);min-width:0;word-break:break-word}
.info-row .iv code{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.76rem;
  padding:.1rem .4rem;border-radius:6px;background:rgba(108,92,231,.09);color:var(--brand-deep);}
.badge-cat{display:inline-block;font-size:.72rem;font-weight:600;padding:.18rem .6rem;border-radius:10px;
  margin-right:.3rem;margin-bottom:.3rem;background:var(--brand-soft);color:var(--brand-deep);border:1px solid rgba(108,92,231,.18);}

.info-story{font-size:.88rem;color:var(--ink-2);line-height:1.85;padding:1rem 1.1rem;border-radius:12px;
  background:rgba(108,92,231,.05);border-left:3px solid var(--brand);margin-top:1.25rem;margin-bottom:1.25rem;
  white-space:pre-wrap;word-break:break-word;}

/* 图片淡入淡出（URL 不变，仅图片切换） */
.stage-img.is-loading{opacity:.25}

.related-section{margin-top:1.5rem}
.related-head{display:flex;align-items:center;gap:.6rem;margin-bottom:.8rem;padding-bottom:.5rem;
  border-bottom:1px dashed var(--line-strong);}
.related-head h2{font-size:1.1rem;font-weight:720}
.related-head .count{margin-left:auto;font-size:.76rem;color:var(--muted)}
.related-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:.9rem}
@media(min-width:640px){.related-grid{grid-template-columns:repeat(3,1fr);gap:1rem}}
@media(min-width:1000px){.related-grid{grid-template-columns:repeat(4,1fr);gap:1.1rem}}
.rcard{display:block;border-radius:var(--r-md);overflow:hidden;background:rgba(255,255,255,.85);
  border:1px solid rgba(255,255,255,.95);box-shadow:var(--sh-1);transition:transform .28s var(--ease),box-shadow .28s,border-color .2s;}
.rcard:hover{transform:translateY(-4px);box-shadow:var(--sh-2);border-color:rgba(108,92,231,.28)}
.rcard img{width:100%;aspect-ratio:4/3;object-fit:cover;display:block;background:linear-gradient(135deg,#d6c8ee,#b8a5e0)}
.rcard .rc-title{padding:.65rem .75rem .75rem;font-size:.78rem;font-weight:600;color:var(--ink);line-height:1.35;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;word-break:break-word;}

.pager{display:flex;align-items:center;justify-content:center;gap:.35rem;flex-wrap:wrap;margin-top:1.5rem;padding-top:1.25rem;border-top:1px dashed var(--line-strong);}
.pager-btn{display:inline-flex;align-items:center;padding:.45rem .9rem;border-radius:10px;
  border:1px solid var(--line-strong);background:rgba(255,255,255,.72);color:var(--ink-2);
  font-size:.82rem;font-weight:600;transition:all .2s var(--ease);}
.pager-btn:hover:not(.is-disabled){background:#fff;border-color:rgba(108,92,231,.4);color:var(--brand-deep);transform:translateY(-1px);}
.pager-btn.is-disabled{opacity:.4;cursor:not-allowed;pointer-events:none;}
.pager-num{display:inline-flex;align-items:center;justify-content:center;min-width:2.2rem;height:2.2rem;padding:0 .5rem;
  border-radius:10px;border:1px solid transparent;color:var(--ink-2);font-size:.84rem;font-weight:650;
  font-variant-numeric:tabular-nums;transition:all .2s var(--ease);}
.pager-num:hover{background:var(--brand-soft);color:var(--brand-deep);}
.pager-num.is-active{background:linear-gradient(140deg,var(--brand),var(--brand-light));color:#fff;box-shadow:0 8px 18px -10px rgba(108,92,231,.9);}
.pager-dots{color:var(--muted);padding:0 .3rem;user-select:none;}

.site-footer{border-top:1px solid var(--line);padding:1.25rem 0 1.75rem;text-align:center}
.footer-note{font-size:.82rem;color:var(--muted);margin-bottom:.55rem}
.copyright{font-size:.75rem;color:#a49eb4}

/* ===== 灯箱（含缩放 + 左右切换） ===== */
.lightbox{position:fixed;inset:0;z-index:400;background:rgba(12,8,22,.94);backdrop-filter:blur(6px);
  display:grid;place-items:center;opacity:0;visibility:hidden;
  transition:opacity .3s ease,visibility .3s;padding:1.5rem;
  overflow:hidden;
  touch-action:none;
  overscroll-behavior:contain;}
.lightbox.open{opacity:1;visibility:visible}
.lightbox img{
  max-width:100%;max-height:calc(100vh - 6rem);object-fit:contain;border-radius:12px;
  box-shadow:0 40px 80px -30px rgba(0,0,0,.8);
  transform-origin:center center;
  will-change:transform;
  touch-action:none;
  user-select:none;
  -webkit-user-select:none;
  -webkit-user-drag:none;
  cursor:zoom-in;
  transition:transform .22s cubic-bezier(.22,1,.36,1);
}
.lightbox-close{position:absolute;top:1.25rem;right:1.25rem;width:44px;height:44px;border-radius:50%;
  background:rgba(255,255,255,.15);border:1px solid rgba(255,255,255,.25);color:#fff;font-size:1.4rem;line-height:1;
  cursor:pointer;display:grid;place-items:center;z-index:5;
  transition:background .2s,transform .2s;}
.lightbox-close:hover{background:rgba(255,255,255,.25);transform:scale(1.06)}

/* 灯箱内的左右箭头 */
.lightbox-nav{
  position:absolute;top:50%;z-index:4;
  width:52px;height:52px;border-radius:50%;
  display:grid;place-items:center;
  color:#fff;cursor:pointer;padding:0;
  background:rgba(255,255,255,.14);
  border:1px solid rgba(255,255,255,.28);
  backdrop-filter:blur(10px) saturate(160%);
  -webkit-backdrop-filter:blur(10px) saturate(160%);
  transform:translateY(-50%);
  transition:background .2s,transform .2s,opacity .22s,visibility .22s;
  -webkit-tap-highlight-color:transparent;
  font:inherit;
}
.lightbox-nav:hover{background:rgba(255,255,255,.28);transform:translateY(-50%) scale(1.06)}
.lightbox-nav:active{transform:translateY(-50%) scale(.94)}
.lightbox-nav svg{width:24px;height:24px}
.lightbox-nav.prev{left:1.25rem}
.lightbox-nav.next{right:1.25rem}
.lightbox-nav.is-hidden{display:none}
.lightbox-nav.is-zoomed{opacity:0;visibility:hidden;pointer-events:none}
@media(max-width:767px){
  .lightbox-nav{width:42px;height:42px}
  .lightbox-nav svg{width:20px;height:20px}
  .lightbox-nav.prev{left:.5rem}
  .lightbox-nav.next{right:.5rem}
}
@media(hover:none){
  .lightbox-nav{background:rgba(255,255,255,.2)}
}

/* 缩放提示 */
.lightbox-hint{
  position:absolute;bottom:1.25rem;left:50%;transform:translateX(-50%);
  padding:.35rem .9rem;border-radius:999px;
  background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.2);
  color:rgba(255,255,255,.85);font-size:.72rem;letter-spacing:.02em;
  backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);
  pointer-events:none;white-space:nowrap;
  opacity:1;transition:opacity .3s;
  z-index:4;
}
.lightbox-hint.is-fading{opacity:0}
@media(max-width:767px){
  .lightbox{padding:.75rem}
  .lightbox-close{top:.75rem;right:.75rem;width:40px;height:40px}
  .lightbox-hint{font-size:.66rem;bottom:.85rem}
}

.toast{position:fixed;left:50%;bottom:2rem;z-index:300;transform:translate(-50%,140%);max-width:min(90vw,420px);
  padding:.8rem 1.3rem;border-radius:13px;background:var(--ink);color:#fff;font-size:.85rem;line-height:1.5;
  text-align:center;box-shadow:var(--sh-3);opacity:0;visibility:hidden;pointer-events:none;
  transition:transform .4s var(--ease),opacity .3s ease,visibility .3s;}
.toast.show{transform:translate(-50%,0);opacity:1;visibility:visible;pointer-events:auto}

main .ad-row{margin-top:1.5rem}
main .ad-row{gap:.4rem}
@media(max-width:1080px){ main .ad-row{gap:.35rem} }
main .ad-row img{box-shadow:0 4px 12px -8px rgba(24,21,40,.3)}

@media(max-width:767px){
  .wrap{width:calc(100% - 1.75rem)}
  .detail-section{padding:.75rem 0 1.5rem}
  .info-card{padding:1.1rem .95rem}
  .info-rows{gap:.5rem;padding-top:.75rem}
  .info-row{flex-direction:row;align-items:baseline;gap:.55rem;font-size:.8rem;}
  .info-row .ik{width:4.4rem;font-size:.72rem;flex:none;text-align:left;}
  .info-row .iv{font-size:.8rem;line-height:1.55;}
  .info-author{gap:.45rem;font-size:.82rem;margin-bottom:.7rem}
  .info-author .avatar{width:28px;height:28px;font-size:.72rem}
  .info-title{font-size:1.2rem;margin-bottom:.85rem}
  .related-section{margin-top:1rem}
}
@media(max-width:420px){
  .info-row.is-minor{display:none}
}