/* Robes Halo port: small additions kept outside the original Typecho styles */

.friends-page-intro,
.article-content.friends-page-intro {
  margin-bottom: 14px;
}

.btn,
.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background .2s, color .2s, border-color .2s, transform .15s;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 18px var(--accent-glow);
}
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost {
  background: var(--glass-bg-strong);
  border-color: var(--glass-border);
  color: var(--text-secondary);
}
.btn-ghost:hover { color: var(--accent); border-color: var(--accent); }

/* Archive */
.pg-arch-panel { margin-bottom: 18px; }
.pg-arch-year {
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
  margin: 12px 0 4px;
  letter-spacing: .02em;
}
.pg-arch-month {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-light);
  margin: 12px 0 6px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.pg-arch-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: inherit;
  transition: background .2s;
}
.pg-arch-row:hover { background: var(--glass-bg-strong); }
.pg-arch-row-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent); flex: none; opacity: .7;
}
.pg-arch-row-date {
  flex: none; font-size: 12px; color: var(--text-light);
  font-variant-numeric: tabular-nums; width: 44px;
}
.pg-arch-row-title {
  flex: 1; min-width: 0; font-size: 14px; color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pg-arch-row-meta {
  flex: none; font-size: 11px; color: var(--text-light);
  display: inline-flex; align-items: center; gap: 3px;
}

/* Moments */
.robes-moments { display: flex; flex-direction: column; gap: 12px; }
.robes-moment {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 16px 18px 12px;
  position: relative;
}
.robes-moment::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  background: var(--glass-highlight); pointer-events: none;
}
.robes-moment > * { position: relative; z-index: 1; }
.rm-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.rm-avatar {
  width: 38px; height: 38px; border-radius: 50%; overflow: hidden; flex: none;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 14px; font-weight: 700;
  border: 2px solid rgba(255,255,255,.8);
}
.rm-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rm-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rm-name { font-size: 13px; font-weight: 600; color: var(--text); }
.rm-date { font-size: 11px; color: var(--text-light); }
.rm-link {
  width: 26px; height: 26px; border-radius: 50%; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text-light); text-decoration: none;
  background: var(--glass-bg-strong); border: 1px solid var(--glass-border);
}
.rm-link:hover { color: #fff; background: var(--accent); border-color: transparent; }
.rm-content { font-size: 14px; line-height: 1.85; color: var(--text); }
.rm-content img { max-width: 100%; border-radius: var(--radius-sm); margin: 8px 0; }
.rm-content a { color: var(--accent-strong); }
.rm-detail { font-size: 15px; }
.rm-foot {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin-top: 10px; padding-top: 9px; border-top: 1px solid var(--border);
}
.rm-tag { font-size: 11px; color: var(--accent-strong); text-decoration: none; }
.rm-tag:hover { text-decoration: underline; }
.rm-stat { margin-left: auto; font-size: 11px; color: var(--text-light); display: inline-flex; align-items: center; gap: 4px; }

/* Small screens */
@media (max-width: 720px) {
  .pg-arch-year { font-size: 21px; }
  .pg-arch-row-date { width: 38px; }
  .robes-moment { padding: 14px 14px 10px; }
}

/* Interaction state fallbacks (some are provided by the original theme, kept explicit here) */
.notice-pop.active { opacity: 1; visibility: visible; transform: none; filter: none; pointer-events: auto; }
.notice-list { padding: 10px 14px 14px; overflow: auto; }
.notice-item { padding: 10px 2px; font-size: 13px; line-height: 1.6; color: var(--text-secondary); border-bottom: 1px dashed var(--border); }
.notice-item:last-child { border-bottom: 0; }
.notice-empty { text-align: center; padding: 26px 10px; color: var(--text-light); font-size: 12px; display: flex; flex-direction: column; gap: 8px; }
.notice-empty i { font-size: 24px; }
.notice-head-title { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--text); }

.site-info-pop.active { opacity: 1; transform: none; pointer-events: auto; }
.m-search-pop.is-open { opacity: 1; transform: none; pointer-events: auto; }
#mtabMorePanel.open, .mtab-more-panel.open { display: flex; }
a.mtab.active, .mtab.active { color: var(--accent); }

.scroll-progress-btn.is-visible { opacity: 1; visibility: visible; pointer-events: auto; }
.like-btn.liked { background: rgba(239,68,68,.1); border-color: rgba(239,68,68,.3); color: #ef4444; }
.like-btn.liked i { color: #ef4444; }

.sidebar.open {
  display: flex !important;
}
@media (max-width: 900px) {
  .sidebar {
    position: fixed; top: 0; left: 0; bottom: 0;
    z-index: 120;
    width: min(290px, 86vw); min-width: 0;
    background: var(--glass-bg-strong);
    backdrop-filter: blur(var(--glass-blur)) saturate(1.4);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.4);
    border-right: 1px solid var(--glass-border);
    transform: translateX(-104%);
    transition: transform .3s cubic-bezier(.2,.9,.3,1);
    padding-bottom: 24px;
  }
  .sidebar.open { transform: none; }
  .sidebar-mobile-header { display: flex; justify-content: flex-end; padding: 12px 10px 0; }
}


/* 首页文章 / 瞬间混排卡片 */
.moment-mix-card {
  display: flex; gap: 14px; padding: 18px 22px; margin-bottom: 14px;
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  border-radius: var(--radius); text-decoration: none; color: inherit;
}
.mmc-avatar {
  flex: 0 0 46px; width: 46px; height: 46px; border-radius: 50%; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-strong));
}
.mmc-avatar img { width: 100%; height: 100%; object-fit: cover; }
.mmc-body { flex: 1; min-width: 0; }
.mmc-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mmc-name { font-weight: 700; font-size: 14px; }
.mmc-badge {
  font-size: 11px; padding: 1px 7px; border-radius: 999px;
  color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent);
}
.mmc-date { font-size: 12px; color: var(--text-light); }
.mmc-text {
  display: block; margin: 8px 0 10px; color: var(--text); line-height: 1.75;
  font-size: 15px; white-space: pre-line; text-decoration: none;
}
.mmc-text:hover { color: var(--accent); }
.mmc-foot { display: flex; gap: 18px; font-size: 12px; color: var(--text-light); }
.mmc-foot a { color: var(--text-light); text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }


/* 友链申请：内容区内嵌样式（原样式为弹窗） */
.content-scroll .apply-card {
  width: auto; max-height: none; overflow: visible;
  margin: 26px 0 10px; padding: 26px 28px 24px;
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  border-radius: var(--radius);
}
.content-scroll .apply-head { text-align: center; margin-bottom: 20px; }
.content-scroll .apply-badge { margin: 0 auto 10px; }
.content-scroll .apply-title { margin: 0 0 6px; }
.content-scroll .apply-sub { max-width: 560px; margin: 0 auto; }
