/* 老友帖子列表美化 · 流光玻璃 v1.0.5 —— 仅作用于 body.lypl-on 下的 .posts-item.lypl */
body.lypl-on{--lypl-ink:#1d1640;--lypl-ink2:#6f6894;--lypl-ink3:#a49dc0;--lypl-b1:#a23cf0;--lypl-b2:#e040c8;--lypl-h:96px}

/* 流光底色：固定在视口后方，静态渐变（不动，保证滚动流畅） */
body.lypl-on::before{content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;
  background:radial-gradient(38% 30% at 0% 12%,rgba(246,166,232,.55),transparent 70%),
             radial-gradient(42% 32% at 100% 45%,rgba(169,198,255,.6),transparent 70%),
             radial-gradient(36% 28% at 10% 85%,rgba(201,179,255,.5),transparent 70%),
             radial-gradient(30% 24% at 95% 95%,rgba(255,201,168,.45),transparent 70%),#f1efff}
body.lypl-on.white-theme{background:transparent}

/* 首页标签栏：玻璃胶囊 */
body.lypl-on .home-tab-nav-box>ul{padding:4px!important;border-radius:16px;background:rgba(255,255,255,.55);
  -webkit-backdrop-filter:blur(20px) saturate(1.5);backdrop-filter:blur(20px) saturate(1.5);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.9),0 6px 20px -12px rgba(80,40,160,.4)}

/* ===== 卡片 ===== */
body.lypl-on .posts-item.lypl{
  --c1:#e07be6;--c2:#a23cf0;
  height:var(--lypl-h);margin:0 0 10px!important;padding:12px 14px 11px!important;position:relative;overflow:hidden;
  display:flex!important;border-radius:20px!important;color:var(--lypl-ink);
  background:linear-gradient(rgba(255,255,255,.68),rgba(255,255,255,.52)) padding-box,
             linear-gradient(150deg,rgba(255,255,255,.95),rgba(255,255,255,.25) 45%,rgba(255,255,255,.75)) border-box!important;
  border:1px solid transparent;
  -webkit-backdrop-filter:blur(22px) saturate(1.5);backdrop-filter:blur(22px) saturate(1.5);
  box-shadow:0 10px 28px -16px rgba(70,40,150,.45),inset 0 1px 0 rgba(255,255,255,.8)!important;
  contain:layout paint style;content-visibility:auto;contain-intrinsic-size:auto var(--lypl-h);
  transition:transform .14s ease,box-shadow .14s ease}
body.lypl-on .posts-item.lypl::before{content:"";position:absolute;width:120px;height:120px;left:-50px;top:-60px;border-radius:50%;
  background:radial-gradient(circle,var(--c1),transparent 70%);opacity:.28;pointer-events:none;z-index:-1}
body.lypl-on .posts-item.lypl:active{transform:scale(.975)}
body.lypl-on .posts-item.lypl:focus-within{outline:2px solid var(--lypl-b1);outline-offset:2px}

/* 置顶：渐变描边 + 流光 */
body.lypl-on .posts-item.lypl.is-top{
  background:linear-gradient(115deg,rgba(255,255,255,.9),rgba(255,238,251,.8)) padding-box,
             linear-gradient(120deg,#ff7ac6,#b06cff 50%,#7aa8ff) border-box!important;
  box-shadow:0 12px 30px -14px rgba(200,60,220,.5),inset 0 1px 0 #fff!important}
body.lypl-on .posts-item.lypl.is-top::after{content:"";position:absolute;top:0;bottom:0;width:60px;left:0;pointer-events:none;will-change:transform;
  background:linear-gradient(100deg,transparent,rgba(255,255,255,.85),transparent);transform:translateX(-80px) skewX(-20deg);animation:lypl-sweep 5s ease-in-out infinite}
@keyframes lypl-sweep{0%,70%{transform:translateX(-80px) skewX(-20deg)}100%{transform:translateX(110vw) skewX(-20deg)}}

/* 内部布局 */
body.lypl-on .posts-item.lypl>.item-body{display:flex;flex-direction:column;justify-content:flex-start!important;min-width:0;height:100%}
body.lypl-on .lypl-txt{height:44px;overflow:hidden;flex:none}
body.lypl-on .posts-item.lypl .item-heading{margin:0!important;font-size:15px!important;line-height:22px!important;max-height:44px!important;font-weight:600;letter-spacing:.2px;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;word-break:break-all}
body.lypl-on .posts-item.lypl .item-heading>a{color:var(--lypl-ink)}
body.lypl-on .posts-item.lypl .item-excerpt{display:block!important;height:22px!important;margin:0!important;font-size:13px;line-height:22px;color:var(--lypl-ink2)!important;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;-webkit-line-clamp:unset}
body.lypl-on .posts-item.lypl.is-top .item-heading>a{background:linear-gradient(90deg,#3a1670,#9b2fc9);-webkit-background-clip:text;background-clip:text;color:transparent}

/* 标记 */
body.lypl-on .lypl-flag{display:inline-flex;align-items:center;gap:2px;height:16px;font-size:10px;padding:0 5px;border-radius:5px;margin-right:5px;vertical-align:2px;
  font-weight:700;line-height:16px;color:#fff;-webkit-text-fill-color:#fff}
body.lypl-on .lypl-flag svg{width:10px;height:10px;fill:currentColor}
body.lypl-on .lypl-flag.f-top{background:linear-gradient(90deg,#ff6a3d,#ff3d8b)}
body.lypl-on .lypl-flag.f-hot{background:linear-gradient(90deg,#ff9a1f,#ff5e3a)}
body.lypl-on .lypl-flag.f-new{background:linear-gradient(90deg,#12b886,#2dd4bf)}
body.lypl-on .posts-item.lypl .lycr-list-badge{-webkit-text-fill-color:currentColor;height:16px;padding:0 5px!important;font-size:10px!important;line-height:16px!important}
body.lypl-on .posts-item.lypl .lycr-list-open{-webkit-text-fill-color:#fff;background:linear-gradient(90deg,var(--lypl-b1),var(--lypl-b2))!important}

/* 底栏：版块胶囊 + 作者 + 数据 一行 */
body.lypl-on .posts-item.lypl .lypl-txt+div,
body.lypl-on .posts-item.lypl .item-body>div:last-child{margin-top:auto;display:flex;align-items:center;gap:8px;min-width:0;height:20px}
body.lypl-on .posts-item.lypl .item-tags{margin:0!important;flex:none;display:flex;overflow:hidden;max-width:46%}
body.lypl-on .posts-item.lypl .item-tags>a{display:none!important}
body.lypl-on .posts-item.lypl .item-tags>a:first-child{display:inline-flex!important;align-items:center;gap:3px;height:20px;margin:0!important;padding:0 8px 0 6px!important;
  border-radius:10px!important;font-size:11px!important;font-weight:600;color:#fff!important;white-space:nowrap;border:0;
  background:linear-gradient(135deg,var(--c1),var(--c2))!important;box-shadow:0 3px 8px -3px var(--c2)}
body.lypl-on .posts-item.lypl .item-tags>a:first-child .fa{display:none}
body.lypl-on .posts-item.lypl .item-tags>a:first-child::before{content:"";width:11px;height:11px;background:#fff;flex:none;
  -webkit-mask:var(--ico) center/contain no-repeat;mask:var(--ico) center/contain no-repeat}
body.lypl-on .posts-item.lypl .item-meta{flex:1;min-width:0;margin:0!important;font-size:12px;color:var(--lypl-ink3)!important;flex-wrap:nowrap}
body.lypl-on .posts-item.lypl .meta-author{min-width:0;flex:1;overflow:hidden;white-space:nowrap;margin:0!important;font-size:12px!important}
body.lypl-on .posts-item.lypl .meta-author .avatar-mini,body.lypl-on .posts-item.lypl .meta-author .avatar-mini img{width:18px!important;height:18px!important;flex:none}
body.lypl-on .posts-item.lypl .meta-author .avatar-mini img{border-radius:50%;box-shadow:0 0 0 1.5px #fff}
body.lypl-on .posts-item.lypl .meta-author .hide-sm{display:inline-block!important;max-width:5.5em;overflow:hidden;text-overflow:ellipsis;vertical-align:middle;color:var(--lypl-ink2);margin-left:5px!important}
body.lypl-on .posts-item.lypl .meta-author .icon-circle{margin-left:6px}
body.lypl-on .posts-item.lypl .meta-author .icon-circle::before{display:none}
body.lypl-on .posts-item.lypl .meta-right{flex:none;display:flex!important;align-items:center;gap:8px;height:20px;padding:0 8px;border-radius:10px;
  background:rgba(255,255,255,.6);box-shadow:inset 0 0 0 1px rgba(255,255,255,.8);font-variant-numeric:tabular-nums}
body.lypl-on .posts-item.lypl .meta-right item{display:inline-flex!important;align-items:center;gap:3px;margin:0!important;font-size:12px!important;color:var(--lypl-ink3)}
body.lypl-on .posts-item.lypl .meta-right item a{color:inherit}
body.lypl-on .posts-item.lypl .meta-right .meta-like{display:none!important}
body.lypl-on .posts-item.lypl .meta-right .lypl-hot,body.lypl-on .posts-item.lypl .meta-right .lypl-hot a{color:#f0568c!important;font-weight:600}
body.lypl-on .posts-item.lypl .meta-right .icon{width:12px;height:12px}

/* 版块色 + 图标 */
body.lypl-on .posts-item.lypl.lypl-k0{--c1:#e07be6;--c2:#a23cf0;--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M4 6h16M4 12h16M4 18h10'/%3E%3C/svg%3E")}
body.lypl-on .posts-item.lypl.lypl-k1{--c1:#ff7b7b;--c2:#e5484d;--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4 3 20h18L12 4z'/%3E%3Cpath d='M12 10v4'/%3E%3C/svg%3E")}
body.lypl-on .posts-item.lypl.lypl-k2{--c1:#ffbe55;--c2:#f08a12;--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='9' width='16' height='11' rx='1.5'/%3E%3Cpath d='M12 9v11M4 13h16M12 9c-1.5-4-5-3-4-.5M12 9c1.5-4 5-3 4-.5'/%3E%3C/svg%3E")}
body.lypl-on .posts-item.lypl.lypl-k3{--c1:#43dd9c;--c2:#10a06a;--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linejoin='round'%3E%3Cpath d='M12 20c-4.5 0-7-3.5-7-7 2.5 0 4.5 1 5.5 2.5C10.5 11 11 7 12 4c1 3 1.5 7 1.5 11.5 1-1.5 3-2.5 5.5-2.5 0 3.5-2.5 7-7 7z'/%3E%3C/svg%3E")}
body.lypl-on .posts-item.lypl.lypl-k4{--c1:#b585ff;--c2:#7a4ae8;--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='9' cy='9' r='3'/%3E%3Ccircle cx='16' cy='10' r='2.5'/%3E%3Cpath d='M3.5 19c.5-3 2.7-5 5.5-5s5 2 5.5 5M14 15c3 0 5 1.5 6 4'/%3E%3C/svg%3E")}
body.lypl-on .posts-item.lypl.lypl-k5{--c1:#55cdf2;--c2:#0e93b8;--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 17l5-5 4 3 7-8'/%3E%3Cpath d='M15 7h5v5'/%3E%3C/svg%3E")}
body.lypl-on .posts-item.lypl.lypl-k6{--c1:#78acff;--c2:#3b6ff0;--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linejoin='round'%3E%3Cpath d='M20 12a7.5 7.5 0 0 1-11 6.6L4.5 19.5l1-4A7.5 7.5 0 1 1 20 12z'/%3E%3C/svg%3E")}

/* 骨架屏：与卡片同尺寸 */
body.lypl-on .posts-item.list:not(.ajax-item){height:var(--lypl-h);margin:0 0 10px!important;padding:14px!important;border-radius:20px!important;
  background:rgba(255,255,255,.5)!important;border:1px solid rgba(255,255,255,.8);box-shadow:none!important;
  -webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px)}
body.lypl-on .posts-item.list:not(.ajax-item) .post-graphic{display:none}
body.lypl-on .posts-item.list:not(.ajax-item) .placeholder{border-radius:6px;
  background:linear-gradient(90deg,rgba(180,170,220,.25),rgba(255,255,255,.8),rgba(180,170,220,.25))!important;background-size:200% 100%!important;animation:lypl-shine 1.3s linear infinite}
@keyframes lypl-shine{to{background-position:-200% 0}}

/* 电脑端：同样固定高度，留宽一些 */
@media (min-width:768px){
  body.lypl-on .posts-item.lypl{padding:14px 18px 12px!important}
  /* 子比电脑端无侧边栏时是双列，保持双列 */
  body.lypl-on.site-layout-1 .posts-item.lypl,body.lypl-on .fluid-widget-wrap .posts-item.lypl,
  body.lypl-on.site-layout-1 .posts-item.list:not(.ajax-item){margin:8px!important;width:calc(50% - 16px);display:inline-flex!important;vertical-align:top}
  body.lypl-on .posts-item.lypl .item-heading{font-size:16px!important}
}

/* 低端设备 / 不支持毛玻璃：改为不透明卡片、关闭动画 */
html.lypl-lite body.lypl-on .posts-item.lypl,html.lypl-lite body.lypl-on .home-tab-nav-box>ul{-webkit-backdrop-filter:none!important;backdrop-filter:none!important;background-color:#fff}
html.lypl-lite body.lypl-on .posts-item.lypl{background:#fff padding-box,linear-gradient(150deg,#fff,#ece8fb) border-box!important}
html.lypl-lite body.lypl-on .posts-item.lypl.is-top{background:linear-gradient(115deg,#fff,#fff0fb) padding-box,linear-gradient(120deg,#ff7ac6,#b06cff 50%,#7aa8ff) border-box!important}
html.lypl-lite body.lypl-on .posts-item.lypl.is-top::after{display:none}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
  body.lypl-on .posts-item.lypl{background:#fff padding-box,linear-gradient(150deg,#fff,#ece8fb) border-box!important}
}

/* 暗色模式 */
body.lypl-on.dark-theme::before{background:radial-gradient(40% 30% at 0% 12%,rgba(162,60,240,.25),transparent 70%),radial-gradient(42% 32% at 100% 45%,rgba(60,90,200,.25),transparent 70%),#15121f}
body.lypl-on.dark-theme{--lypl-ink:#efeaff;--lypl-ink2:#a9a1c8;--lypl-ink3:#7d7699}
body.lypl-on.dark-theme .posts-item.lypl{background:linear-gradient(rgba(40,34,62,.72),rgba(32,27,50,.62)) padding-box,linear-gradient(150deg,rgba(255,255,255,.18),rgba(255,255,255,.04)) border-box!important;box-shadow:0 10px 28px -16px #000!important}
body.lypl-on.dark-theme .posts-item.lypl.is-top{background:linear-gradient(115deg,rgba(60,36,80,.85),rgba(40,30,62,.8)) padding-box,linear-gradient(120deg,#ff7ac6,#b06cff 50%,#7aa8ff) border-box!important}
body.lypl-on.dark-theme .posts-item.lypl.is-top .item-heading>a{background:linear-gradient(90deg,#ffd1f3,#d9b8ff);-webkit-background-clip:text;background-clip:text}
body.lypl-on.dark-theme .posts-item.lypl .meta-right,body.lypl-on.dark-theme .home-tab-nav-box>ul{background:rgba(255,255,255,.08);box-shadow:none}

@media (prefers-reduced-motion:reduce){
  body.lypl-on .posts-item.lypl{transition:none}
  body.lypl-on .posts-item.lypl.is-top::after,body.lypl-on .posts-item.list:not(.ajax-item) .placeholder{animation:none}
}

/* ===== 整张卡片可点击 ===== */
/* 标题链接铺满整张卡片；版块、作者、评论等链接浮在上层，仍然各自可点 */
body.lypl-on .posts-item.lypl{cursor:pointer;-webkit-tap-highlight-color:transparent}
body.lypl-on .posts-item.lypl .item-heading>a::after{content:"";position:absolute;inset:0;z-index:1;border-radius:inherit}
body.lypl-on .posts-item.lypl .item-tags a,
body.lypl-on .posts-item.lypl .meta-author a,
body.lypl-on .posts-item.lypl .meta-right a{position:relative;z-index:2}
@media (hover:hover){
  body.lypl-on .posts-item.lypl:hover{transform:translateY(-2px);box-shadow:0 16px 34px -16px rgba(70,40,150,.55),inset 0 1px 0 rgba(255,255,255,.8)!important}
  body.lypl-on .posts-item.lypl:hover .item-heading>a{color:#8a2bd6}
}
/* 点下去后立刻给反馈：卡片底部出现一条流动的进度条，表示正在打开 */
body.lypl-on .posts-item.lypl .lypl-bar{position:absolute;left:0;right:0;bottom:0;height:3px;z-index:3;pointer-events:none;overflow:hidden}
body.lypl-on .posts-item.lypl .lypl-bar::before{content:"";position:absolute;top:0;bottom:0;left:0;width:40%;will-change:transform;border-radius:3px;
  background:linear-gradient(90deg,transparent,var(--c2),var(--lypl-b2),transparent);animation:lypl-load 1s ease-in-out infinite}
body.lypl-on .posts-item.lypl.lypl-going{transform:scale(.985);box-shadow:0 0 0 2px rgba(162,60,240,.35),0 10px 28px -16px rgba(70,40,150,.45)!important}
@keyframes lypl-load{from{transform:translateX(-100%)}to{transform:translateX(250%)}}
@media (prefers-reduced-motion:reduce){body.lypl-on .posts-item.lypl .lypl-bar::before{animation:none;transform:none;left:0;width:100%}body.lypl-on .posts-item.lypl:hover{transform:none}}

/* ===== v1.0.5 滚动性能：卡片与骨架屏不再实时毛玻璃（标签栏保留） ===== */
body.lypl-on .posts-item.lypl,
body.lypl-on .posts-item.list:not(.ajax-item){-webkit-backdrop-filter:none!important;backdrop-filter:none!important}
body.lypl-on .posts-item.lypl{
  background:linear-gradient(rgba(255,255,255,.92),rgba(255,255,255,.85)) padding-box,
             linear-gradient(150deg,#fff,rgba(255,255,255,.4) 45%,#fff) border-box!important}
body.lypl-on .posts-item.list:not(.ajax-item){background:rgba(255,255,255,.85)!important}
body.lypl-on.dark-theme .posts-item.lypl{
  background:linear-gradient(#2a2440,#221d36) padding-box,
             linear-gradient(150deg,rgba(255,255,255,.18),rgba(255,255,255,.04)) border-box!important}
body.lypl-on.dark-theme .posts-item.lypl.is-top{
  background:linear-gradient(115deg,#3c2450,#281e3e) padding-box,
             linear-gradient(120deg,#ff7ac6,#b06cff 50%,#7aa8ff) border-box!important}
body.lypl-on.dark-theme .posts-item.list:not(.ajax-item){background:rgba(40,34,62,.9)!important}
