/* ============================================================
   只读展示站补充样式
   后台 CSS（list.css / detail.css）原样复制，这里只做前台特有部分
   ============================================================ */

/* ---------- 列表页品牌 ---------- */
.site-brand{
  display:flex;align-items:center;gap:10px;flex:none;
  text-decoration:none;color:inherit;
}
.site-brand-mark{
  display:inline-flex;align-items:center;justify-content:center;
  width:38px;height:38px;border-radius:11px;
  background:linear-gradient(135deg,#9061f9 0%,#7c3aed 55%,#6d28d9 100%);
  color:#fff;font-size:19px;font-weight:600;
  box-shadow:0 6px 16px rgba(124,58,237,.24);
}
.site-brand-text{display:flex;flex-direction:column;line-height:1.25;min-width:0}
.site-brand-text b{font-size:15px;font-weight:600;color:#3b3153;letter-spacing:.3px}
.site-brand-text em{font-style:normal;font-size:10.5px;color:#a79ec0;white-space:nowrap}

/* ---------- 页脚 ---------- */
.row{text-decoration:none}
.row .title,.row .summary,.row .meta,.row .tag{text-decoration:none}
.row-side{justify-content:center}

.site-foot{
  display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:7px;
  padding:0 16px 44px;color:#a9a1bb;font-size:11.5px;
}
.site-foot a{color:#8a7bab;text-decoration:none}
.site-foot a:hover{color:#7c3aed}
.site-foot .dot{color:#cdc5dc}

/* ---------- 文章页顶栏 ---------- */
.site-topbar{
  max-width:1410px;margin:18px auto 0;padding:0 16px;
  display:flex;align-items:center;justify-content:space-between;gap:12px;
}
.topbar-back{
  display:inline-flex;align-items:center;gap:5px;height:34px;padding:0 13px;
  border:1px solid var(--line-strong);border-radius:10px;background:rgba(255,255,255,.9);
  color:#63527f;font-size:12.5px;text-decoration:none;
  transition:background .15s,border-color .15s,color .15s;
}
.topbar-back:hover{background:var(--purple-soft);border-color:#d6c6f5;color:var(--purple-strong)}
.topbar-brand{font-size:12.5px;color:#a79ec0;letter-spacing:.4px}

/* ---------- 相邻文章 ---------- */
.adj-list{display:grid;gap:8px}
.adj-link{
  display:flex;flex-direction:column;gap:3px;padding:10px 11px;
  border:1px solid var(--line);border-radius:11px;background:#fff;
  text-decoration:none;color:#5d5473;font-size:12px;line-height:1.55;
  transition:background .15s,border-color .15s,color .15s;
}
.adj-link:hover{background:var(--purple-soft);border-color:#ded0f7;color:var(--purple-strong)}
.adj-link b{font-weight:600;display:block;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.adj-label{font-size:10.5px;color:#b0a6c4}

/* ---------- 图片放大 ---------- */
.lightbox{position:fixed;inset:0;z-index:90;display:flex;align-items:center;justify-content:center;padding:28px}
.lightbox-mask{position:absolute;inset:0;background:rgba(22,17,34,.86);backdrop-filter:blur(3px)}
.lightbox img{
  position:relative;max-width:min(100%,1400px);max-height:calc(100vh - 56px);
  width:auto;height:auto;border-radius:10px;background:#fff;
  box-shadow:0 20px 60px rgba(0,0,0,.45);
}
.lightbox-close{
  position:absolute;top:18px;right:18px;z-index:2;
  display:inline-flex;align-items:center;justify-content:center;
  width:38px;height:38px;border:1px solid rgba(255,255,255,.24);border-radius:50%;
  background:rgba(255,255,255,.12);color:#fff;cursor:pointer;
}
.lightbox-close:hover{background:rgba(255,255,255,.22)}
.content img{cursor:zoom-in}
.content img.is-missing{cursor:default}

/* ---------- 窄屏 ---------- */
@media (max-width:900px){
  .topbar{flex-wrap:wrap;gap:10px;padding:12px}
  .site-brand{flex:1 1 100%}
  .site-brand-text em{display:none}
  .topbar .tools{flex:1 1 100%;justify-content:space-between;flex-wrap:wrap;gap:10px}
  .panel-hint{display:none}
}

@media (max-width:640px){
  .site-topbar{margin-top:12px}
  .shell{grid-template-columns:minmax(0,1fr)}
  .side{position:static}
  .lightbox{padding:14px}
}

/* 窄屏列表：把日期和阅读数放到正文下方，不再占用右侧一列 */
@media (max-width:760px){
  .row{display:block;padding:16px 16px 18px}
  .row-cat{margin-bottom:7px}
  .row-side{margin-top:9px;align-items:flex-start}
  .meta{display:flex;font-size:11.5px;justify-content:flex-start}
}
