/* ── 置顶文章 ── */
.sticky-wrap {
  display: grid; gap: 10px;
  margin-bottom: 12px;
}
.sticky-wrap.sticky-count-1 { grid-template-columns: 1fr; }
.sticky-wrap.sticky-count-2 { grid-template-columns: repeat(2, 1fr); }
.sticky-wrap.sticky-count-3 { grid-template-columns: repeat(3, 1fr); }

.sticky-card {
  text-decoration: none; color: inherit;
  display: block;
  margin-bottom: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--glass-bg-strong);
  border: 1px solid var(--glass-border);
  transition: box-shadow .25s, border-color .25s;
}
.sticky-card:hover {
  background: var(--glass-bg-strong);
  box-shadow: var(--shadow-md);
  border-color: rgba(255,255,255,0.7);
}
html.dark .sticky-card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(255,255,255,0.1);
}

/* 图片区域 */
.sticky-img {
  position: relative;
  overflow: hidden;
  background: rgba(0,0,0,0.04);
}
.sticky-img img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  display: block;
}
.sticky-img-fallback {
  width: 100%; height: 130px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: rgba(255,255,255,0.9);
  font-size: 36px; font-weight: 700;
}
/* 图片底部渐隐 */
.sticky-img::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 60px;
  background: linear-gradient(to top, var(--bg) 10%, transparent);
  pointer-events: none;
}
/* 置顶徽章 */
.sticky-badge {
  position: absolute;
  top: 10px; right: 10px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  letter-spacing: .5px;
  box-shadow: none;
}

/* 文字区域 */
.sticky-body {
  padding: 12px 14px 14px;
}
.sticky-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color .15s;
}
.sticky-card:hover .sticky-title {
  color: var(--accent);
}
/* 分隔线 */
.sticky-divider {
  width: 24px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
  margin: 8px 0;
  opacity: 0.5;
}
/* 底部信息 */
.sticky-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  color: var(--text-light);
}
.sticky-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.sticky-meta i {
  font-size: 11px;
  opacity: 0.7;
}

.post-card-simple {
  display: block;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur)) saturate(1.5);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 20px 22px; margin-bottom: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  transition: all .25s;
  position: relative; overflow: hidden;
  text-decoration: none; color: inherit;
  opacity: 0; transform: translateY(16px);
}
.post-card-simple.card-visible {
  animation: cardFadeIn 0.4s ease both;
}
.post-card-simple::before {
  content: ''; position: absolute; inset: 0;
  border-radius: inherit; pointer-events: none;
  background: var(--glass-highlight); z-index: 1;
}
.post-card-simple:hover {
  background: var(--glass-bg-strong);
  box-shadow: var(--shadow-md);
  border-color: rgba(255,255,255,0.7);
}
html.dark .post-card-simple { box-shadow: var(--shadow-sm); }
html.dark .post-card-simple:hover { box-shadow: var(--shadow-md); border-color: rgba(255,255,255,0.1); }

.pcs-body {
  flex: 1; min-width: 0; position: relative; z-index: 2;
}
.pcs-title {
  font-size: 16px; font-weight: 600; color: var(--text);
  line-height: 1.5; margin-bottom: 6px;
  overflow: hidden; text-overflow: ellipsis;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  transition: color .15s;
}
.post-card-simple:hover .pcs-title { color: var(--accent); }
.pcs-excerpt {
  font-size: 13px; color: var(--text-secondary); line-height: 1.7;
  margin-bottom: 10px;
  overflow: hidden; text-overflow: ellipsis;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.pcs-meta {
  display: flex; align-items: center; flex-wrap: wrap; gap: 12px;
  font-size: 12px; color: var(--text-light);
}
.pcs-meta-item { display: flex; align-items: center; gap: 4px; }
.pcs-meta-item i { font-size: 11px; }


.post-card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur)) saturate(1.5);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 20px 22px; margin-bottom: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  transition: background .25s, box-shadow .25s, border-color .25s;
  position: relative; overflow: hidden;
  opacity: 0; transform: translateY(16px);
}
@keyframes cardFadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.post-card, .friend-feed-card,
.cmt-card, .cmt-item, .photo-item {
  opacity: 0; transform: translateY(16px);
}
.post-card.card-visible, .friend-feed-card.card-visible,
.cmt-card.card-visible, .cmt-item.card-visible, .photo-item.card-visible {
  animation: cardFadeIn 0.4s ease both;
}


.post-card::before {
  content: ''; position: absolute; inset: 0;
  border-radius: inherit; pointer-events: none; -webkit-tap-highlight-color: transparent;
  background: var(--glass-highlight); z-index: 1;
}
.post-card:hover {
  background: var(--glass-bg-strong);
  box-shadow: var(--shadow-md);
  border-color: rgba(255,255,255,0.7);
}
html.dark .post-card { box-shadow: var(--shadow-sm); }
html.dark .post-card:hover { box-shadow: var(--shadow-md); border-color: rgba(255,255,255,0.1); }

.post-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; position: relative; z-index: 2; }
.post-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(0,0,0,0.04); flex-shrink: 0;
  object-fit: cover;
}
.post-avatar-text {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 16px; font-weight: 700;
  flex-shrink: 0;
}
.post-meta { flex: 1; }
.post-nickname {
  font-size: 14px; font-weight: 600; color: var(--text);
  cursor: pointer; transition: color .15s;
}
.post-nickname:hover { color: var(--accent); }
.post-time { font-size: 12px; color: var(--text-light); margin-top: 3px; }
.post-nickname a { color: var(--text); text-decoration: none; transition: color .15s; }
.post-nickname a:hover { color: var(--accent); }

.post-content {
  font-size: 14px; line-height: 1.75; color: var(--text-secondary);
  margin-bottom: 16px; word-break: break-word; overflow-wrap: break-word;
  position: relative; z-index: 2;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
  text-overflow: ellipsis;
}

.img-grid {
  display: grid; gap: 5px; border-radius: var(--radius-sm); overflow: hidden;
  margin-bottom: 16px; position: relative; z-index: 2;
}
.img-grid.g1 { grid-template-columns: 1fr; max-width: 360px; }
.img-grid.g2 { grid-template-columns: 1fr 1fr; max-width: 400px; }
.img-grid.g3 { grid-template-columns: 1fr 1fr 1fr; max-width: 440px; }
.img-grid.g4 { grid-template-columns: 1fr 1fr; max-width: 400px; }
.img-grid.g5, .img-grid.g6 { grid-template-columns: 1fr 1fr 1fr; max-width: 440px; }
.img-grid.g7, .img-grid.g8, .img-grid.g9 { grid-template-columns: 1fr 1fr 1fr; max-width: 440px; }
.img-grid .img-cell {
  aspect-ratio: 1; overflow: hidden; background: rgba(0,0,0,0.04);
  cursor: pointer; position: relative;
}
.img-grid .img-cell img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .3s;
}
html.dark .img-grid .img-cell { background: rgba(255,255,255,0.04); }
.img-grid .img-cell .img-more {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 22px; font-weight: 600;
}

.post-actions {
  display: flex; align-items: center; gap: 8px; padding-top: 14px;
  position: relative; z-index: 2;
  border-top: 1px solid var(--border);
  margin-top: 12px;
}
.action-btn {
  display: inline-flex; align-items: center; gap: 5px;
  background: none; border: none;
  cursor: pointer; color: var(--text-light); font-size: 12px;
  transition: all .2s, transform .3s var(--spring); padding: 5px 10px; border-radius: var(--radius-xs);
  text-decoration: none;
  line-height: 1;
}
.action-btn i { vertical-align: middle; font-size: 13px; }
.action-btn:hover { color: var(--accent); background: var(--accent-soft); }
html.dark .action-btn:hover { color: var(--accent); background: var(--accent-soft); }
.action-btn.liked { color: var(--accent); }
.action-btn.liked:hover { background: var(--accent-soft); }

.action-btn .action-count { font-size: 12px; font-weight: 500; }
.action-btn:hover .action-count { color: var(--accent); }

.bottom-bar {
  height: 40px; min-height: 40px;
  display: flex; align-items: center; justify-content: center;
  gap: 12px; padding: 0 16px;
  color: var(--text-light); font-size: 11px; z-index: 2;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur)) saturate(1.6);
  border-top: 1px solid var(--glass-border);
  position: relative;
}
.bottom-bar::before {
  content: ''; position: absolute; inset: 0;
  border-radius: inherit; pointer-events: none;
  background: var(--glass-highlight);
}
.bottom-bar a { color: var(--text-secondary); text-decoration: none; transition: color .15s; }
.bottom-bar a:hover { color: var(--accent); }
.bottom-bar .dot { width: 2px; height: 2px; border-radius: 50%; background: var(--text-light); opacity: .5; }

.orb {
  position: fixed; border-radius: 50%; pointer-events: none; -webkit-tap-highlight-color: transparent;
  filter: blur(90px); opacity: 0.25; z-index: 0; transition: opacity .5s;
  will-change: transform;
}
html.dark .orb { opacity: 0.12; }
.orb-1 { width: 420px; height: 420px; background: #8B9CF7; top: -100px; left: -100px; animation: f1 16s ease-in-out infinite; }
.orb-2 { width: 380px; height: 380px; background: #C084FC; bottom: -80px; right: -80px; animation: f2 19s ease-in-out infinite; }
.orb-3 { width: 320px; height: 320px; background: #67E8F9; top: 40%; left: 55%; animation: f3 13s ease-in-out infinite; }
@keyframes f1 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(50px,35px); } }
@keyframes f2 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-45px,-30px); } }
@keyframes f3 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-35px,45px); } }

.hamburger {
  display: none; width: 36px; height: 36px; border: none;
  background: transparent; cursor: pointer; align-items: center;
  justify-content: center; color: var(--text-secondary); font-size: 18px;
  border-radius: var(--radius-xs); transition: all .15s; flex-shrink: 0;
  position: relative; z-index: 10;
}
.hamburger:hover { background: rgba(0,0,0,0.06); color: var(--text); }
html.dark .hamburger:hover { background: rgba(255,255,255,0.08); }

.sidebar-overlay {
  display: none; position: fixed; inset: 0; z-index: 199;
  background: rgba(0,0,0,0.3);
  opacity: 0; pointer-events: none;
  transition: opacity .3s cubic-bezier(.4,0,.2,1);
  -webkit-tap-highlight-color: transparent;
}

.sidebar-mobile-header { display: none; }

/* ══════════════════════════════════════
   首页图片位（随机大图 + 天气 + 推荐阅读）
   ══════════════════════════════════════ */
.hero {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 16px;
  isolation: isolate;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  box-shadow: 0 6px 22px rgba(0,0,0,.10);
  animation: cardFadeIn 0.4s ease both;
}
.hero-small { height: 220px; }
.hero-standard { height: 300px; }
.hero-large { height: 380px; }

.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  opacity: 0; transform: scale(1.04);
  transition: opacity .5s ease, transform .8s ease;
}
.hero-bg.loaded { opacity: 1; transform: scale(1); }
.hero:hover .hero-bg.loaded { transform: scale(1.045); }

.hero-scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,.34) 0%, rgba(0,0,0,.05) 42%, rgba(0,0,0,.58) 100%);
}
.hero-content {
  position: absolute; inset: 0; z-index: 2;
  padding: 18px 20px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 12px;
}
.hero-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
}
.hero-greeting {
  order: 1; margin: 0;
  font-size: 20px; font-weight: 700; line-height: 1.4; color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,.5);
}

/* 天气胶囊 */
.hero-weather {
  order: 2; margin-left: auto; flex-shrink: 0;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 12px; white-space: nowrap;
  border-radius: var(--radius-pill);
  background: rgba(0,0,0,.3);
  border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(10px) saturate(1.4);
  -webkit-backdrop-filter: blur(10px) saturate(1.4);
  color: #fff; font-size: 12.5px; line-height: 1;
  transition: background .2s;
}
.hero-weather .hw-icon { font-size: 14px; }
.hero-weather .hw-temp { font-size: 14px; font-weight: 700; }
.hero-weather .hw-desc { color: rgba(255,255,255,.82); }
.hero-weather.is-loading .hw-icon { opacity: .6; }
.hero-weather.is-error { opacity: .75; }

/* 推荐阅读 */
.hero-rec {
  align-self: flex-start;
  width: min(460px, 100%);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: rgba(0,0,0,.32);
  border: 1px solid rgba(255,255,255,.16);
  backdrop-filter: blur(14px) saturate(1.5);
  -webkit-backdrop-filter: blur(14px) saturate(1.5);
  animation: cardFadeIn .55s ease both;
}
.hero-rec-head {
  display: flex; align-items: center; gap: 6px;
  margin-bottom: 7px;
  font-size: 11.5px; font-weight: 600; letter-spacing: .5px;
  color: rgba(255,255,255,.75);
}
.hero-rec-head i { color: #ffb454; font-size: 11px; }
.hero-rec-list { list-style: none; margin: 0; padding: 0; }
.hero-rec-list li { margin: 0; }
.hero-rec-list a {
  display: flex; align-items: center; gap: 9px;
  padding: 5px 0;
  color: rgba(255,255,255,.92); text-decoration: none;
  font-size: 13px; line-height: 1.5;
  transition: color .2s, transform .2s;
}
.hero-rec-list a:hover { color: #fff; transform: translateX(3px); }
.hero-rec-list .hr-index {
  flex-shrink: 0; width: 17px; height: 17px; border-radius: 5px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 10.5px; font-weight: 700; color: #fff;
  background: rgba(255,255,255,.18);
}
.hero-rec-list li:nth-child(1) .hr-index { background: linear-gradient(135deg, #ff9d5c, #ff6b6b); }
.hero-rec-list li:nth-child(2) .hr-index { background: linear-gradient(135deg, #7fc5ff, #5c8cff); }
.hero-rec-list li:nth-child(3) .hr-index { background: linear-gradient(135deg, #8ee6b0, #4bc98a); }
.hero-rec-list .hr-title {
  flex: 1; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.hero-rec-list .hr-views {
  flex-shrink: 0; font-size: 11px; color: rgba(255,255,255,.6);
  display: inline-flex; align-items: center; gap: 4px;
}

@media (max-width: 920px) {
  .hero-small { height: 190px; }
  .hero-standard { height: 250px; }
  .hero-large { height: 300px; }
  .hero-content { padding: 15px 16px; }
  .hero-greeting { font-size: 17px; }
  .hero-rec { width: 100%; padding: 10px 12px; }
  .hero-rec-list a { font-size: 12.5px; }
}
@media (max-width: 640px) {
  .hero { margin-bottom: 12px; }
  .hero-small { height: 170px; }
  .hero-standard { height: 215px; }
  .hero-large { height: 245px; }
  .hero-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .hero-weather { order: 0; margin-left: 0; padding: 5px 10px; font-size: 12px; }
  .hero-greeting { order: 1; font-size: 16px; }
  .hero-rec-list li:nth-child(n+3) { display: none; }
}



