/* ============================================================
   🍬 塔菲资源总和 · 液态玻璃 · 卡通版 v4 (2026-11-06)
   液态玻璃 (Liquid Glass) + 卡通描边 + 糖果动效
   ============================================================ */

:root {
  --bg: #fff6fb;
  --card: rgba(255, 255, 255, .62);
  --text: #35262f;
  --muted: #9a8290;
  --primary: #ec4899;
  --primary-dark: #d6297f;
  --violet: #a855f7;
  --indigo: #6366f1;
  --mint: #34d399;
  --amber: #f59e0b;
  --primary-soft: rgba(236, 72, 153, .10);
  --border: rgba(255, 255, 255, .85);
  --radius: 26px;
  --radius-sm: 16px;
  --grad-candy: linear-gradient(100deg, #ff8ac4 0%, #ec4899 38%, #a855f7 74%, #6366f1 100%);
  --grad-soft: linear-gradient(135deg, rgba(255, 138, 196, .16), rgba(168, 85, 247, .10));
  --glass-bg: linear-gradient(150deg, rgba(255, 255, 255, .78), rgba(255, 255, 255, .42));
  --glass-edge: linear-gradient(140deg, rgba(255, 255, 255, 1), rgba(255, 255, 255, .18) 42%, rgba(255, 255, 255, .9));
  --shadow: 0 10px 30px rgba(236, 72, 153, .10), 0 2px 6px rgba(168, 85, 247, .06);
  --shadow-hover: 0 20px 46px rgba(236, 72, 153, .20), 0 4px 10px rgba(168, 85, 247, .10);
  --shadow-hard: 0 6px 0 rgba(236, 72, 153, .12);
  --ring: 0 0 0 4px rgba(236, 72, 153, .16);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

[hidden] { display: none !important; }

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

body {
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ============ 背景：糖果水波 + 光斑 ============ */
.bg-deco { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bg-deco::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(120% 80% at 12% 0%, #ffe3f2 0%, rgba(255, 227, 242, 0) 55%),
    radial-gradient(110% 70% at 92% 8%, #ead9ff 0%, rgba(234, 217, 255, 0) 58%),
    radial-gradient(120% 80% at 50% 108%, #ffe6d6 0%, rgba(255, 230, 214, 0) 60%),
    linear-gradient(170deg, #fff7fc 0%, #fdf3fb 40%, #f8f2ff 100%);
}
.bg-blob { position: absolute; border-radius: 50%; filter: blur(64px); opacity: .55; }
.blob-a { width: 46vw; height: 46vw; top: -16vw; left: -10vw; background: radial-gradient(circle, #ffb3da 0%, rgba(255, 179, 218, 0) 70%); animation: driftA 24s ease-in-out infinite alternate; }
.blob-b { width: 42vw; height: 42vw; top: 6vh; right: -14vw; background: radial-gradient(circle, #dcc0ff 0%, rgba(220, 192, 255, 0) 70%); animation: driftB 29s ease-in-out infinite alternate; }
.blob-c { width: 46vw; height: 46vw; bottom: -18vw; left: 20vw; background: radial-gradient(circle, #ffd3ba 0%, rgba(255, 211, 186, 0) 70%); animation: driftC 26s ease-in-out infinite alternate; }
@keyframes driftA { to { transform: translate(6vw, 5vh) scale(1.12); } }
@keyframes driftB { to { transform: translate(-5vw, 7vh) scale(.9); } }
@keyframes driftC { to { transform: translate(-4vw, -6vh) scale(1.08); } }
.bg-deco::after {
  content: ""; position: absolute; inset: 0; opacity: .55;
  background-image: radial-gradient(rgba(236, 72, 153, .06) 1.2px, transparent 1.8px);
  background-size: 28px 28px;
}

::selection { background: rgba(236, 72, 153, .26); }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #f7c3e0, #dcc2f5);
  border-radius: 99px; border: 3px solid rgba(255, 255, 255, .7);
}
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #f094c9, #c9a4ee); }

:focus-visible { outline: 3px solid rgba(236, 72, 153, .55); outline-offset: 3px; border-radius: 8px; }

main { flex: 1; position: relative; }
.container { width: min(820px, 94%); margin: 0 auto; }

/* ============ 液态玻璃通用件 ============ */
.glass, .card, .comment, .comment-form, .stat-pill, .search, .back, .chip {
  position: relative;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  backdrop-filter: blur(22px) saturate(180%);
  border: 1.5px solid rgba(255, 255, 255, .85);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .95),
    inset 0 -1px 0 rgba(255, 255, 255, .35),
    var(--shadow);
}
/* 玻璃折射高光边 */
.glass::before, .card::before, .comment::before, .comment-form::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px;
  background: var(--glass-edge);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none; z-index: 3;
}

/* ============ 头部 ============ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: linear-gradient(180deg, rgba(255, 255, 255, .72), rgba(255, 255, 255, .46));
  -webkit-backdrop-filter: blur(26px) saturate(190%);
  backdrop-filter: blur(26px) saturate(190%);
  border-bottom: 1.5px solid rgba(255, 255, 255, .8);
  box-shadow: 0 6px 22px rgba(236, 72, 153, .07);
}
.site-header::after {
  content: ""; display: block; height: 3px;
  background: linear-gradient(90deg, transparent, #ff8ac4 15%, #ec4899 36%, #a855f7 62%, #6366f1 84%, transparent);
  opacity: .5;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.site-title { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.logo-mark {
  width: 38px; height: 38px; border-radius: 13px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 20px; line-height: 1;
  background: var(--grad-candy);
  box-shadow: 0 5px 0 rgba(214, 41, 127, .55), 0 10px 20px rgba(236, 72, 153, .35), inset 0 2px 0 rgba(255, 255, 255, .55);
  animation: logoTilt 5s ease-in-out infinite;
}
@keyframes logoTilt { 0%, 100% { transform: rotate(-5deg); } 50% { transform: rotate(6deg) scale(1.06); } }
.logo-text {
  font-size: 18px; font-weight: 900; letter-spacing: .4px;
  background: linear-gradient(92deg, #ec4899 20%, #a855f7 90%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: #ec4899;
}
.logo-badge {
  font-size: 10.5px; font-weight: 900; letter-spacing: 1.2px; color: #fff;
  background: var(--grad-candy); border-radius: 999px; padding: 3px 11px;
  border: 1.5px solid rgba(255, 255, 255, .9);
  box-shadow: 0 3px 0 rgba(214, 41, 127, .4), 0 6px 14px rgba(236, 72, 153, .3);
  transform: rotate(-4deg);
}
.site-nav { display: flex; gap: 14px; align-items: center; }
.site-nav a { color: var(--muted); text-decoration: none; font-size: 13.5px; font-weight: 700; transition: color .15s; }
.site-nav a:hover { color: var(--primary); }
.header-search {
  border: 1.5px solid rgba(255, 255, 255, .9);
  background: rgba(255, 255, 255, .7);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-radius: 999px; width: 42px; height: 42px;
  font-size: 16px; cursor: pointer; line-height: 1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), 0 4px 12px rgba(236, 72, 153, .1);
  transition: all .18s ease;
}
.header-search:hover { background: #fff; transform: translateY(-2px) scale(1.04); box-shadow: 0 8px 18px rgba(236, 72, 153, .18); }

/* ============ Hero ============ */
.hero { text-align: center; padding: 44px 0 14px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 800; color: #c02670;
  background: rgba(255, 255, 255, .68);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border: 1.5px solid rgba(255, 255, 255, .95);
  border-radius: 999px; padding: 6px 17px; margin-bottom: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 1), 0 6px 16px rgba(236, 72, 153, .1);
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 0 rgba(52, 211, 153, .55); animation: pulse 2s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, .5); }
  70% { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}
.hero h1 {
  font-size: clamp(26px, 6vw, 38px);
  letter-spacing: .8px; margin-top: 4px;
  font-weight: 900;
  background: linear-gradient(92deg, #ff5fa8 8%, #ec4899 32%, #a855f7 66%, #6366f1 96%);
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: #ec4899;
  animation: shimmer 7s linear infinite;
  filter: drop-shadow(0 3px 0 rgba(255, 255, 255, .9)) drop-shadow(0 6px 14px rgba(236, 72, 153, .18));
}
@keyframes shimmer { to { background-position: 200% center; } }
.hero-sub { color: var(--muted); font-size: 13.5px; margin: 12px 0 8px; letter-spacing: .3px; font-weight: 600; }

.search {
  width: min(470px, 100%);
  padding: 14px 24px;
  font-size: 14.5px; font-family: inherit; font-weight: 600;
  border-radius: 999px;
  outline: none; color: var(--text);
  transition: border-color .2s, box-shadow .2s, transform .2s, background .2s;
}
.search::placeholder { color: #c9aebf; font-weight: 600; }
.search:focus {
  background: rgba(255, 255, 255, .92);
  border-color: rgba(236, 72, 153, .5);
  box-shadow: inset 0 1px 0 #fff, var(--ring), 0 12px 26px rgba(236, 72, 153, .14);
  transform: translateY(-2px);
}

/* ============ 统计胶囊 ============ */
.stat-row { display: flex; flex-wrap: wrap; gap: 9px; justify-content: center; margin: 20px 0 6px; }
.stat-pill {
  border-radius: 999px; padding: 8px 17px;
  font-size: 12.5px; font-weight: 700; color: #866a7c;
  white-space: nowrap;
  transition: transform .18s ease, box-shadow .18s ease;
}
.stat-pill:hover { transform: translateY(-3px) rotate(-.6deg); box-shadow: inset 0 1px 0 #fff, 0 12px 24px rgba(236, 72, 153, .16); }
.stat-pill.green { color: #0d9668; }

/* ============ 分类筛选 ============ */
.chips { display: flex; flex-wrap: wrap; gap: 9px; justify-content: center; margin-top: 20px; }
.chip {
  color: #8a7080; font-weight: 700;
  padding: 7px 17px; border-radius: 999px;
  font-size: 12.5px; font-family: inherit;
  cursor: pointer;
  transition: all .18s cubic-bezier(.2, .7, .3, 1);
}
.chip:hover { color: var(--primary); transform: translateY(-2px) rotate(-1deg); box-shadow: inset 0 1px 0 #fff, var(--shadow-hover); }
.chip.active {
  background: var(--grad-candy);
  background-size: 160% auto;
  border-color: rgba(255, 255, 255, .9);
  color: #fff;
  box-shadow: 0 4px 0 rgba(214, 41, 127, .45), 0 8px 20px rgba(236, 72, 153, .35), inset 0 2px 0 rgba(255, 255, 255, .4);
}

/* ============ 卡片 ============ */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(208px, 1fr));
  gap: 14px;
  padding: 18px 0 50px;
}
.card {
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
  transform: translateZ(0);            /* 强制独立图层：iOS 上圆角裁剪更稳 */
  transition: transform .24s cubic-bezier(.2, .8, .3, 1.1), box-shadow .24s ease, border-color .24s ease;
  /* 入场动画只动位移，不动 opacity：
     手机上动画被系统/后台暂停时，卡片也不会变成半透明或看不见 */
  animation: cardIn .42s cubic-bezier(.2, .7, .3, 1) both;
  opacity: 1;
}
.card:nth-child(2) { animation-delay: .04s; } .card:nth-child(3) { animation-delay: .08s; }
.card:nth-child(4) { animation-delay: .12s; } .card:nth-child(5) { animation-delay: .16s; }
.card:nth-child(6) { animation-delay: .2s; } .card:nth-child(7) { animation-delay: .24s; }
.card:nth-child(8) { animation-delay: .28s; }
@keyframes cardIn {
  from { transform: translateY(14px) translateZ(0); }
  to { transform: translateY(0) translateZ(0); }
}
/* 二次渲染（软路由返回、切分类）不再重播入场动画，避免闪一下 */
.grid.no-anim .card { animation: none !important; }
/* 卡通厚底 */
.card { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), var(--shadow-hard), var(--shadow); }
.card::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -75%; width: 45%; z-index: 1;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .65), transparent);
  transform: skewX(-18deg);
  transition: left .62s cubic-bezier(.3, .8, .4, 1);
  pointer-events: none;
}
.card:hover {
  transform: translateY(-7px) rotate(-.7deg) translateZ(0);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 1), 0 10px 0 rgba(236, 72, 153, .10), var(--shadow-hover);
}
.card:hover::after { left: 130%; }
.card:active { transform: translateY(-2px) scale(.99) translateZ(0); }
.card-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 10px; margin-right: 7px;
  font-size: 15px; vertical-align: -8px;
  background: var(--grad-soft);
  border: 1px solid rgba(255, 255, 255, .8);
}
.card-media { position: relative; display: block; aspect-ratio: 16 / 10; background: linear-gradient(135deg, #ffe6f3, #f0e4ff); overflow: hidden; text-decoration: none; }
/* 老内核不支持 aspect-ratio 时用 padding 撑高，图片位置不会塌 */
@supports not (aspect-ratio: 16 / 10) {
  .card-media { height: 0; padding-top: 0; }
  .card-media::before { content: ""; display: block; padding-top: 62.5%; }
  .card-media img { position: absolute; inset: 0; height: 100%; }
}
.card-media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  opacity: 0;                       /* 图没加载完先不显示，避免渐进式加载只露出上半张 */
  transition: transform .45s cubic-bezier(.2, .8, .3, 1), opacity .3s ease;
  background: linear-gradient(135deg, #ffe6f3, #f0e4ff);
}
.card-media img.ld { opacity: 1; }
/* 无配图帖子的渐变图标封面 */
.card-media-empty {
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(120% 120% at 20% 10%, rgba(255, 255, 255, .85) 0%, rgba(255, 255, 255, 0) 45%),
    linear-gradient(135deg, #ffe1f1 0%, #f0dcff 52%, #dff0ff 100%);
}
.card-media-empty .cme-icon {
  font-size: 32px; line-height: 1;
  filter: drop-shadow(0 5px 9px rgba(236, 72, 153, .26));
  transform: rotate(-5deg);
  transition: transform .4s cubic-bezier(.2, .8, .3, 1);
}
.card:hover .card-media-empty .cme-icon { transform: rotate(4deg) scale(1.12); }
.card:hover .card-media img { transform: scale(1.08) rotate(.6deg); }
.card-cat {
  position: absolute; top: 8px; left: 8px;
  background: rgba(236, 72, 153, .88);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  color: #fff; font-size: 10px; font-weight: 800; padding: 2px 9px;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, .7);
  box-shadow: 0 2px 0 rgba(214, 41, 127, .3), 0 4px 10px rgba(236, 72, 153, .26);
  transform: rotate(-2deg);
}
.card-body { padding: 11px 12px 10px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-title { font-size: 13.5px; line-height: 1.4; font-weight: 800; }
.card-title a { color: var(--text); text-decoration: none; transition: color .15s; }
.card-title a:hover { color: var(--primary); }
.card-desc {
  color: var(--muted); font-size: 11.5px; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.tag { font-size: 11px; color: var(--primary); background: var(--primary-soft); padding: 2px 10px; border-radius: 999px; font-weight: 700; }
.card-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 5px; padding-top: 7px; border-top: 1.5px dashed rgba(236, 72, 153, .16); }
.card-foot time { font-size: 10.5px; color: #bda7b8; font-weight: 600; }
.card-link {
  font-size: 11.5px; color: var(--primary); font-weight: 900; text-decoration: none;
  white-space: nowrap; transition: letter-spacing .2s, color .15s, transform .15s;
}
.card-link:hover { color: var(--primary-dark); letter-spacing: .6px; transform: translateX(2px); }
.card-top {
  display: inline-block; font-size: 9.5px; font-weight: 900; color: #b45309;
  background: #fef3c7; border: 1.5px solid #fcd34d;
  border-radius: 999px; padding: 0 7px; margin-right: 4px; vertical-align: 2px;
}
.card-views { color: #bda7b8; font-size: 10.5px; margin-left: auto; font-weight: 600; }

.empty { text-align: center; color: var(--muted); padding: 60px 0 80px; font-size: 15px; font-weight: 700; }
.empty a { color: var(--primary); }

/* ============ 详情页 ============ */
.post { max-width: 720px; padding: 32px 0 68px; }
.back {
  display: inline-flex; align-items: center; gap: 6px;
  color: #7d6373; text-decoration: none; font-size: 13px; font-weight: 800;
  border-radius: 999px; padding: 8px 17px;
  transition: all .18s ease;
}
.back:hover { color: var(--primary); transform: translateX(-4px); box-shadow: inset 0 1px 0 #fff, var(--shadow-hover); }
.post-head { margin: 22px 0 8px; }
.post-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; color: var(--muted); font-size: 12.5px; font-weight: 600; margin-bottom: 13px; }
.chip-static {
  background: var(--grad-candy); color: #fff;
  padding: 3px 13px; border-radius: 999px; font-size: 12px; font-weight: 900;
  border: 1.5px solid rgba(255, 255, 255, .8);
  box-shadow: 0 3px 0 rgba(214, 41, 127, .35), 0 6px 14px rgba(236, 72, 153, .28);
  transform: rotate(-1.5deg);
}
.post h1 { font-size: clamp(23px, 4.6vw, 32px); line-height: 1.32; letter-spacing: .3px; font-weight: 900; }
.post-summary { color: var(--muted); margin-top: 13px; font-size: 14.5px; font-weight: 600; }
.post-views { color: #bda7b8; font-size: 12px; font-weight: 600; }
.post-cover {
  width: 100%; border-radius: var(--radius); margin: 18px 0 8px;
  border: 2px solid rgba(255, 255, 255, .9);
  box-shadow: inset 0 1px 0 #fff, var(--shadow-hard), var(--shadow-hover);
}
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--grad-candy); background-size: 170% auto;
  color: #fff; padding: 13px 32px; border-radius: 999px;
  text-decoration: none; font-weight: 900; font-size: 14px;
  margin: 16px 0 8px;
  border: 1.5px solid rgba(255, 255, 255, .55);
  box-shadow: 0 5px 0 rgba(214, 41, 127, .5), 0 12px 26px rgba(236, 72, 153, .34), inset 0 2px 0 rgba(255, 255, 255, .4);
  transition: transform .18s ease, box-shadow .18s ease, background-position .4s ease;
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 8px 0 rgba(214, 41, 127, .45), 0 16px 32px rgba(236, 72, 153, .42), inset 0 2px 0 rgba(255, 255, 255, .4); background-position: right center; }
.btn:active { transform: translateY(2px); box-shadow: 0 2px 0 rgba(214, 41, 127, .5), 0 6px 14px rgba(236, 72, 153, .3); }
.post-content { color: #3f3040; margin-top: 8px; font-size: 14.8px; }
.post-content p { margin: 14px 0; }
.post-content img { max-width: 100%; border-radius: 16px; border: 2px solid rgba(255, 255, 255, .9); box-shadow: var(--shadow); }
.post-content a { color: var(--primary); text-decoration: none; border-bottom: 2px dashed rgba(236, 72, 153, .4); font-weight: 700; }
.post-content a:hover { border-bottom-style: solid; }
.post-content h1, .post-content h2, .post-content h3, .post-content h4 { margin: 28px 0 11px; letter-spacing: .3px; font-weight: 900; }
.post-content h2 { padding-left: 14px; border-left: 5px solid var(--primary); border-radius: 3px; }
.post-content h3 { color: #a82e73; }
.post-content ul, .post-content ol { padding-left: 22px; margin: 12px 0; }
.post-content li { margin: 6px 0; }
.post-content li::marker { color: var(--primary); font-weight: 900; }
.post-content blockquote {
  border-left: 5px solid var(--primary);
  background: linear-gradient(135deg, rgba(236, 72, 153, .08), rgba(168, 85, 247, .07));
  padding: 12px 17px; border-radius: 0 16px 16px 0; margin: 16px 0;
  color: #6d5566; font-weight: 600;
}
.post-content code { background: rgba(251, 238, 246, .9); color: #b03080; padding: 2px 8px; border-radius: 7px; font-size: .9em; font-family: "Cascadia Code", Consolas, "JetBrains Mono", monospace; font-weight: 600; }
.post-content pre {
  background: linear-gradient(160deg, #2d2233, #241d2c);
  color: #f4e6f1; padding: 18px 20px; border-radius: 18px;
  overflow-x: auto; margin: 16px 0;
  border: 1.5px solid rgba(255, 255, 255, .14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 10px 26px rgba(45, 34, 51, .3);
}
.post-content pre code { background: none; padding: 0; color: inherit; font-size: 13px; }

/* ============ 评论区 ============ */
.post-comments { margin-top: 38px; }
.post-comments h2 { font-size: 18px; margin-bottom: 16px; display: flex; align-items: center; gap: 9px; font-weight: 900; }
.comment {
  border-radius: var(--radius-sm);
  padding: 14px 18px; margin-bottom: 11px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.comment:hover { transform: translateX(4px) rotate(-.3deg); box-shadow: inset 0 1px 0 #fff, var(--shadow-hover); }
.comment-head { display: flex; align-items: center; gap: 9px; margin-bottom: 7px; }
.comment-head b { color: var(--primary); font-size: 13.5px; font-weight: 900; }
.comment-head time { color: #bda7b8; font-size: 12px; font-weight: 600; }
.comment-body { font-size: 14px; line-height: 1.75; color: #46363f; }
.comment-body a { color: var(--primary); }

/* ---- 评论表单 ---- */
.comment-form { border-radius: 20px; padding: 15px 17px; margin-top: 16px; }
.comment-form .cf-row { display: flex; gap: 9px; margin-bottom: 10px; }
.comment-form input {
  flex: 1; border: 1.5px solid rgba(255, 255, 255, .9);
  background: rgba(255, 255, 255, .8);
  border-radius: 999px;
  padding: 10px 17px; font-size: 14px; font-family: inherit; font-weight: 600;
  outline: none; color: var(--text); min-width: 0;
  box-shadow: inset 0 1px 0 #fff;
  transition: border-color .18s, box-shadow .18s, background .18s;
}
.comment-form input:focus { background: #fff; border-color: rgba(236, 72, 153, .5); box-shadow: inset 0 1px 0 #fff, var(--ring); }
.comment-form .cf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.comment-form textarea {
  width: 100%; box-sizing: border-box; min-height: 84px; resize: vertical;
  border: 1.5px solid rgba(255, 255, 255, .9);
  background: rgba(255, 255, 255, .8);
  border-radius: 16px;
  padding: 12px 15px; font-size: 14px; font-family: inherit; line-height: 1.65; font-weight: 600;
  outline: none; color: var(--text);
  box-shadow: inset 0 1px 0 #fff;
  transition: border-color .18s, box-shadow .18s, background .18s;
}
.comment-form textarea:focus { background: #fff; border-color: rgba(236, 72, 153, .5); box-shadow: inset 0 1px 0 #fff, var(--ring); }
.comment-form .cf-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 10px; }
.comment-form .cf-tip { font-size: 12.5px; color: var(--muted); flex: 1; min-height: 16px; font-weight: 700; }
.comment-form .cf-btn {
  background: var(--grad-candy); color: #fff; border: 1.5px solid rgba(255, 255, 255, .55);
  border-radius: 999px; padding: 10px 24px; font-size: 13.5px; font-weight: 900;
  cursor: pointer; font-family: inherit; white-space: nowrap;
  box-shadow: 0 4px 0 rgba(214, 41, 127, .5), 0 10px 22px rgba(236, 72, 153, .32), inset 0 2px 0 rgba(255, 255, 255, .4);
  transition: transform .18s, box-shadow .18s;
}
.comment-form .cf-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 rgba(214, 41, 127, .45), 0 14px 28px rgba(236, 72, 153, .4), inset 0 2px 0 rgba(255, 255, 255, .4); }
.comment-form .cf-btn:active { transform: translateY(2px); box-shadow: 0 2px 0 rgba(214, 41, 127, .5), 0 6px 14px rgba(236, 72, 153, .3); }
.comment-form .cf-btn:disabled { opacity: .65; cursor: wait; transform: none; }

/* ---- 评论配图：选图按钮 / 预览 / 大图 ---- */
.comment-form .cf-pick {
  border: 1.5px solid rgba(255, 255, 255, .95);
  background: linear-gradient(150deg, rgba(255, 255, 255, .95), rgba(255, 243, 250, .8));
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  width: 42px; height: 42px; flex: none;
  border-radius: 50%; font-size: 18px; line-height: 1; cursor: pointer;
  box-shadow: inset 0 1px 0 #fff, 0 4px 0 rgba(236, 72, 153, .14), 0 8px 18px rgba(236, 72, 153, .12);
  transition: transform .16s ease, box-shadow .16s ease;
}
.comment-form .cf-pick:hover { transform: translateY(-2px) rotate(-6deg); box-shadow: inset 0 1px 0 #fff, 0 6px 0 rgba(236, 72, 153, .16), 0 12px 24px rgba(236, 72, 153, .18); }
.comment-form .cf-pick:active { transform: translateY(1px) scale(.94); }

.comment-form .cf-photo { position: relative; margin: 4px 0 10px; display: inline-block; }
.comment-form .cf-photo[hidden] { display: none; }
.comment-form .cf-photo img {
  max-width: 150px; max-height: 150px; border-radius: 14px; display: block;
  border: 2px solid rgba(255, 255, 255, .95);
  box-shadow: 0 6px 0 rgba(236, 72, 153, .1), 0 10px 22px rgba(236, 72, 153, .16);
}
.comment-form .cf-photo-del {
  position: absolute; top: -8px; right: -8px;
  width: 26px; height: 26px; border-radius: 50%; cursor: pointer;
  border: 1.5px solid rgba(255, 255, 255, .95);
  background: linear-gradient(150deg, #ff8aa8, #ec4899); color: #fff;
  font-size: 12px; font-weight: 900; line-height: 1; font-family: inherit;
  box-shadow: 0 3px 0 rgba(214, 41, 127, .4), 0 6px 14px rgba(236, 72, 153, .3);
}
.comment-form .cf-photo-del:active { transform: scale(.9); }

.comment-img {
  max-width: 100%; border-radius: 14px; margin-top: 9px; display: block;
  border: 2px solid rgba(255, 255, 255, .9);
  box-shadow: 0 6px 0 rgba(236, 72, 153, .08), 0 10px 22px rgba(236, 72, 153, .14);
  cursor: zoom-in;
}
.post-content img { cursor: zoom-in; }

/* ---- 图片灯箱 ---- */
.img-lightbox {
  position: fixed; inset: 0; z-index: 999;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  background: rgba(40, 28, 38, .82);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  cursor: zoom-out;
  animation: lbIn .22s ease both;
}
.img-lightbox[hidden] { display: none !important; }
@keyframes lbIn { from { opacity: 0; } to { opacity: 1; } }
.img-lightbox img {
  max-width: 100%; max-height: 100%;
  border-radius: 18px;
  border: 2px solid rgba(255, 255, 255, .35);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
  animation: lbZoom .26s cubic-bezier(.2, .8, .3, 1.1) both;
}
@keyframes lbZoom { from { transform: scale(.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.empty-tip { color: var(--muted); font-size: 13px; padding: 12px 0; font-weight: 600; }

.page-title { padding-top: 30px; }

/* ============ 页脚 ============ */
.site-footer {
  position: relative;
  border-top: 1.5px solid rgba(255, 255, 255, .85);
  padding: 26px 0 28px; text-align: center;
  color: #b79fb2; font-size: 12.5px; font-weight: 700;
  background: linear-gradient(180deg, rgba(255, 255, 255, .42), rgba(255, 255, 255, .62));
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
}
.site-footer::before {
  content: ""; position: absolute; top: -2px; left: 50%; transform: translateX(-50%);
  width: 200px; height: 3px; border-radius: 99px;
  background: var(--grad-candy);
  box-shadow: 0 0 12px rgba(236, 72, 153, .4);
}
.site-footer .heart { display: inline-block; animation: heartbeat 1.6s ease-in-out infinite; }
@keyframes heartbeat { 0%, 100% { transform: scale(1); } 12% { transform: scale(1.3); } 24% { transform: scale(1); } 36% { transform: scale(1.2); } 48% { transform: scale(1); } }

/* ============ 下拉刷新 / 返回顶部 ============ */
.pull-tip {
  position: fixed; top: 14px; left: 50%; transform: translateX(-50%);
  background: rgba(53, 38, 47, .92); color: #fff; font-size: 12.5px; font-weight: 700;
  padding: 9px 20px; border-radius: 999px; z-index: 999;
  opacity: 0; transition: opacity .2s; pointer-events: none;
  border: 1.5px solid rgba(255, 255, 255, .25);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .25);
}
.back-top {
  position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  width: 48px; height: 48px; border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, .7);
  cursor: pointer; z-index: 90; font-family: inherit;
  background: var(--grad-candy); color: #fff; font-size: 20px; font-weight: 900; line-height: 1;
  box-shadow: 0 5px 0 rgba(214, 41, 127, .5), 0 12px 26px rgba(236, 72, 153, .45), inset 0 2px 0 rgba(255, 255, 255, .45);
  opacity: 0; visibility: hidden; transform: translateY(16px) scale(.85);
  transition: opacity .25s ease, visibility .25s ease, transform .25s ease, box-shadow .2s ease;
}
.back-top.show { opacity: 1; visibility: visible; transform: none; }
.back-top:active { transform: scale(.92); box-shadow: 0 2px 0 rgba(214, 41, 127, .5), 0 6px 14px rgba(236, 72, 153, .35); }

/* ============ 触屏增强：把电脑端的 hover 效果搬到点按上 ============ */
@media (hover: none) {
  .card:active {
    transform: scale(.972) rotate(-.5deg);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 1), 0 3px 0 rgba(236, 72, 153, .12), 0 8px 18px rgba(236, 72, 153, .16);
  }
  .card:active::after { left: 135%; }        /* 点按触发光泽扫过 */
  .card:active .card-media img { transform: scale(1.05); }
  .chip:active { transform: scale(.94); }
  .stat-pill:active { transform: scale(.95); }
  .btn:active, .comment-form .cf-btn:active { transform: translateY(2px); }
  .back:active { transform: translateX(-2px) scale(.97); }
  .comment:active { transform: scale(.985); }
  .header-search:active { transform: scale(.94); }
  .back-top:active { transform: scale(.9); }
}

/* ============ 手机端：贴近电脑端的玻璃与卡通质感 ============ */
@media (max-width: 560px) {
  /* 卡片给一条常驻糖果顶条（无 hover 也要有存在感） */
  .card {
    border-radius: 18px;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 1),
      inset 0 4px 0 -2px rgba(236, 72, 153, .34),
      0 4px 0 rgba(236, 72, 153, .12),
      0 10px 22px rgba(236, 72, 153, .12);
  }
  /* 玻璃底更"奶"，让磨砂质感在宽卡片上看得出来 */
  .comment, .comment-form, .stat-pill, .search, .chip, .back {
    background: linear-gradient(155deg, rgba(255, 255, 255, .84), rgba(255, 243, 250, .62));
    -webkit-backdrop-filter: blur(18px) saturate(190%);
    backdrop-filter: blur(18px) saturate(190%);
  }
  /* 卡片不用 backdrop-filter：iOS/部分安卓上「模糊 + 圆角裁剪」会渲染不全，
     表现为卡片只露出上半截，滑动或刷新才恢复。改用不透明渐变，观感几乎一样，还更省电 */
  .card {
    background: linear-gradient(155deg, rgba(255, 255, 255, .97), rgba(255, 244, 251, .94));
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  /* 标题更大更有卡通感 */
  .hero h1 { font-size: clamp(28px, 7.6vw, 34px); letter-spacing: 1px; }
  .hero-sub { font-size: 13px; }
  /* 手机两列小卡片，一屏能看到更多内容 */
  .card-body { gap: 6px; }
  .card-title { font-size: 13px; line-height: 1.38; }
  .card-desc { font-size: 11px; }
  .card-foot { padding-top: 7px; }
  .card-link { font-size: 11.5px; }
  .card-cat { font-size: 9.5px; padding: 2px 8px; top: 7px; left: 7px; }
  .card-media-empty .cme-icon { font-size: 26px; }
  .card-icon { width: 22px; height: 22px; font-size: 12px; border-radius: 8px; margin-right: 5px; vertical-align: -5px; }
  /* 分类胶囊更大更好点 */
  .chip { padding: 10px 19px; font-size: 13px; }
  .chip.active {
    box-shadow: 0 4px 0 rgba(214, 41, 127, .5), 0 10px 22px rgba(236, 72, 153, .4), inset 0 2px 0 rgba(255, 255, 255, .45);
  }
  /* 详情页正文与按钮 */
  .post-cover { border-radius: 26px; }
  .btn { padding: 14px 30px; font-size: 15px; }
  .comment { border-radius: 20px; }
  .comment-form { border-radius: 22px; }
  /* 页脚也走玻璃 */
  .site-footer {
    background: linear-gradient(180deg, rgba(255, 255, 255, .5), rgba(255, 255, 255, .72));
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    backdrop-filter: blur(18px) saturate(180%);
  }
  /* 返回顶部按钮更大 */
  .back-top { width: 52px; height: 52px; font-size: 22px; right: 16px; }
}

/* 平板 / 大屏手机：三列更饱满 */
@media (min-width: 561px) and (max-width: 760px) {
  .grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .card-title { font-size: 13.5px; }
}

/* ============ 动效偏好 ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ============ 手机端 ============ */
@media (max-width: 560px) {
  .header-inner { height: 58px; }
  .logo-mark { width: 34px; height: 34px; font-size: 18px; border-radius: 11px; }
  .logo-text { font-size: 16px; }

  .hero { padding: 28px 0 8px; }
  .hero-badge { margin-bottom: 14px; font-size: 11.5px; padding: 5px 14px; }
  .hero-sub { font-size: 12.5px; margin-bottom: 12px; }
  .search { padding: 14px 19px; font-size: 16px; }

  .stat-pill { padding: 8px 15px; font-size: 12px; }
  .chips { gap: 8px; margin-top: 16px; }
  .chip { padding: 9px 18px; font-size: 13px; }

  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 14px 0 40px; }
  .card-body { padding: 10px 11px 9px; }
  .card-title { font-size: 12.5px; }
  .card-desc { font-size: 11px; }
  .card-link { font-size: 11px; padding: 3px 0; }
  .card-foot time, .card-views { font-size: 10px; }
  .back-top { width: 44px; height: 44px; font-size: 18px; right: 12px; }

  .post { padding: 22px 0 48px; }
  .post h1 { font-size: clamp(21px, 5.8vw, 25px); }
  .post-content { font-size: 15px; }
  .post-content pre { padding: 14px 15px; font-size: 12.5px; }
  .btn { width: 100%; justify-content: center; box-sizing: border-box; text-align: center; }
  .comment-form input { font-size: 16px; padding: 12px 17px; }
  .comment-form textarea { font-size: 16px; }

  .site-footer { padding: 20px 0 22px; }
  .logo-badge { display: none; }
}

/* ============ 卡片「查看网页」按钮 ============ */
.card-btn {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  margin-top: 9px;
  padding: 9px 12px;
  border-radius: 999px;
  font-size: 12.5px; font-weight: 900; letter-spacing: .3px;
  color: #fff; text-decoration: none;
  background: var(--grad-candy); background-size: 160% auto;
  border: 1.5px solid rgba(255, 255, 255, .55);
  box-shadow: 0 3px 0 rgba(214, 41, 127, .38), 0 8px 18px rgba(236, 72, 153, .28), inset 0 1px 0 rgba(255, 255, 255, .45);
  transition: transform .16s ease, box-shadow .2s ease, background-position .4s ease;
}
.card-btn i { font-style: normal; transition: transform .2s ease; }
.card-btn:hover { background-position: right center; transform: translateY(-2px); box-shadow: 0 5px 0 rgba(214, 41, 127, .34), 0 12px 24px rgba(236, 72, 153, .34), inset 0 1px 0 rgba(255, 255, 255, .5); }
.card-btn:hover i { transform: translateX(4px); }
.card-btn:active { transform: translateY(1px) scale(.985); box-shadow: 0 2px 0 rgba(214, 41, 127, .4), 0 5px 12px rgba(236, 72, 153, .26); }

/* ============ 背景音乐播放器 ============ */
.bgm { position: fixed; left: 16px; bottom: 18px; z-index: 60; font-family: inherit; }
.bgm-fab {
  position: relative;
  width: 50px; height: 50px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(155deg, rgba(255, 255, 255, .92), rgba(255, 240, 249, .8));
  -webkit-backdrop-filter: blur(16px) saturate(180%); backdrop-filter: blur(16px) saturate(180%);
  border: 1.5px solid rgba(255, 255, 255, .9);
  box-shadow: 0 4px 0 rgba(236, 72, 153, .16), 0 10px 24px rgba(236, 72, 153, .2);
  cursor: pointer; padding: 0;
  transition: transform .18s ease, box-shadow .18s ease;
}
.bgm-fab:hover { transform: translateY(-2px) scale(1.04); box-shadow: 0 6px 0 rgba(236, 72, 153, .18), 0 14px 30px rgba(236, 72, 153, .26); }
.bgm-fab:active { transform: scale(.94); }
.bgm-fab .bgm-disc { font-size: 22px; line-height: 1; display: block; }
.bgm-fab .bgm-disc.spin { animation: bgmSpin 4.5s linear infinite; }
@keyframes bgmSpin { from { transform: rotate(0); } to { transform: rotate(360deg); } }
.bgm-hint {
  position: absolute; left: 58px; top: 50%; transform: translateY(-50%) scale(.9);
  white-space: nowrap; font-size: 12px; font-weight: 800; color: #fff;
  background: var(--grad-candy); padding: 6px 13px; border-radius: 999px;
  box-shadow: 0 4px 0 rgba(214, 41, 127, .3), 0 8px 18px rgba(236, 72, 153, .3);
  opacity: 0; pointer-events: none; transition: opacity .25s ease, transform .25s ease;
}
.bgm-hint.show { opacity: 1; transform: translateY(-50%) scale(1); animation: bgmPulse 1.8s ease-in-out infinite; }
@keyframes bgmPulse { 0%, 100% { box-shadow: 0 4px 0 rgba(214, 41, 127, .3), 0 8px 18px rgba(236, 72, 153, .3); } 50% { box-shadow: 0 4px 0 rgba(214, 41, 127, .3), 0 10px 26px rgba(236, 72, 153, .55); } }
.bgm-fab.shake { animation: bgmShake .45s ease; }
@keyframes bgmShake { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }

.bgm-panel {
  position: absolute; left: 0; bottom: 62px;
  width: 268px; padding: 14px 15px 13px;
  display: flex; gap: 11px; align-items: center;
  border-radius: 22px;
  background: linear-gradient(155deg, rgba(255, 255, 255, .95), rgba(255, 242, 251, .88));
  -webkit-backdrop-filter: blur(20px) saturate(190%); backdrop-filter: blur(20px) saturate(190%);
  border: 1.5px solid rgba(255, 255, 255, .95);
  box-shadow: 0 6px 0 rgba(236, 72, 153, .12), 0 16px 40px rgba(236, 72, 153, .24);
  animation: bgmIn .28s cubic-bezier(.2, .8, .3, 1.1) both;
}
@keyframes bgmIn { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }
.bgm-disc-big {
  width: 42px; height: 42px; border-radius: 50%; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center; font-size: 20px;
  background: var(--grad-candy);
  box-shadow: 0 4px 12px rgba(236, 72, 153, .4), inset 0 1px 0 rgba(255, 255, 255, .5);
}
.bgm-disc-big.spin { animation: bgmSpin 4.5s linear infinite; }
.bgm-info { flex: 1; min-width: 0; }
.bgm-title { font-size: 12.5px; font-weight: 900; color: #5d4a58; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bgm-sub { font-size: 10.5px; color: #a892a0; font-weight: 700; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bgm-bar { height: 4px; border-radius: 999px; background: rgba(236, 72, 153, .14); margin: 7px 0 6px; cursor: pointer; }
.bgm-bar i { display: block; height: 100%; width: 0; border-radius: 999px; background: var(--grad-candy); transition: width .2s linear; }
.bgm-row { display: flex; align-items: center; gap: 6px; }
.bgm-btn {
  border: none; background: rgba(255, 255, 255, .9); color: #a3678a;
  width: 26px; height: 26px; border-radius: 50%; font-size: 11px; line-height: 1;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  box-shadow: 0 2px 0 rgba(236, 72, 153, .12);
  transition: transform .15s ease, color .15s ease;
}
.bgm-btn:hover { color: var(--primary); transform: translateY(-1px); }
.bgm-btn-main { width: 34px; height: 34px; font-size: 13px; color: #fff; background: var(--grad-candy); box-shadow: 0 3px 0 rgba(214, 41, 127, .34), 0 6px 14px rgba(236, 72, 153, .3); }
.bgm-close {
  position: absolute; top: 6px; right: 8px;
  border: none; background: none; color: #c0aeba; font-size: 15px; cursor: pointer; line-height: 1;
}
.bgm-close:hover { color: var(--primary); }

@media (max-width: 560px) {
  .bgm { left: 12px; bottom: 14px; }
  .bgm-fab { width: 44px; height: 44px; }
  .bgm-fab .bgm-disc { font-size: 19px; }
  .bgm-hint { left: 50px; font-size: 11px; padding: 5px 11px; }
  .bgm-panel { width: min(238px, calc(100vw - 40px)); bottom: 54px; padding: 12px 13px 11px; }
  .bgm-disc-big { width: 38px; height: 38px; font-size: 18px; }
  .card-btn { font-size: 11.5px; padding: 8px 10px; margin-top: 7px; }
}

/* ============ 正文里的「查看链接」按钮 ============ */
.link-row { margin: 14px 0; }
.post-content .link-row { margin: 12px 0 14px; }
.link-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 11px 26px;
  border-radius: 999px;
  font-size: 14px; font-weight: 900; letter-spacing: .4px;
  color: #fff !important; text-decoration: none !important;
  background: var(--grad-candy); background-size: 160% auto;
  border: 1.5px solid rgba(255, 255, 255, .6);
  box-shadow: 0 4px 0 rgba(214, 41, 127, .38), 0 10px 22px rgba(236, 72, 153, .3), inset 0 1px 0 rgba(255, 255, 255, .5);
  transition: transform .16s ease, box-shadow .2s ease, background-position .4s ease;
  word-break: break-all;
}
.link-btn i { font-style: normal; font-size: 13px; transition: transform .2s ease; }
.link-btn:hover { background-position: right center; transform: translateY(-2px); box-shadow: 0 6px 0 rgba(214, 41, 127, .34), 0 14px 28px rgba(236, 72, 153, .36), inset 0 1px 0 rgba(255, 255, 255, .55); }
.link-btn:hover i { transform: translate(2px, -2px); }
.link-btn:active { transform: translateY(1px) scale(.985); box-shadow: 0 2px 0 rgba(214, 41, 127, .4), 0 6px 14px rgba(236, 72, 153, .26); }
.post-content .link-btn { margin: 2px 0; }

@media (max-width: 560px) {
  .link-btn { padding: 12px 22px; font-size: 14.5px; width: 100%; box-sizing: border-box; }
  .post-content .link-btn { width: 100%; }
  .link-row { margin: 12px 0; }
}
/* ============ 加载骨架（慢网络下的占位卡片） ============ */
.sk-card {
  border-radius: 18px; overflow: hidden;
  background: linear-gradient(155deg, rgba(255, 255, 255, .75), rgba(255, 243, 250, .55));
  border: 1px solid var(--border);
  padding-bottom: 12px;
  animation: skPulse 1.4s ease-in-out infinite;
}
@keyframes skPulse { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
.sk-media { aspect-ratio: 16 / 10; background: linear-gradient(100deg, #ffe3f1 25%, #f6e8ff 60%, #ffe3f1 85%); }
.sk-line { height: 9px; border-radius: 999px; margin: 9px 11px 0; background: linear-gradient(100deg, #f4dbe9, #efe2f8, #f4dbe9); }
.sk-line.w70 { width: 70%; }
.sk-line.w40 { width: 40%; }
.sk-btn { height: 26px; border-radius: 999px; margin: 11px 11px 0; background: linear-gradient(100deg, #f7d4e6, #efdcf9, #f7d4e6); }
@media (max-width: 560px) { .sk-card { border-radius: 16px; } .sk-line { margin: 7px 10px 0; height: 8px; } .sk-btn { margin: 9px 10px 0; height: 22px; } }