/* jisu theme entry — front.css 由 header / enqueue 单独加载，避免 @import 瀑布与重复请求 */

/* 信息流卡片间距：ai_hub 用 .ah-stream-feed；本主题曾用 .ah-stream-list，补齐 gap */
.ah-stream-card {
  content-visibility: auto;
  contain-intrinsic-size: auto 220px;
}
.ah-stream-feed,
.ah-stream-list,
[data-ah-feed] {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ah-stream-feed > .ah-stream-card,
.ah-stream-list > .ah-stream-card,
[data-ah-feed] > .ah-stream-card {
  margin: 0;
}

/* 小幅适配：侧栏卡片与空态在 Z-Blog 下的兜底 */
.ah-side-card {
  background: var(--ah-surface, #fff);
  border: 1px solid var(--ah-line, #e4ebe7);
  border-radius: var(--ah-radius, 16px);
  box-shadow: var(--ah-shadow);
  padding: 14px 16px;
}
.ah-side-card h3 {
  margin: 0 0 10px;
  font-size: 0.95rem;
}
.ah-stream-empty {
  padding: 48px 20px;
  text-align: center;
  color: var(--ah-muted, #66736d);
  background: var(--ah-surface, #fff);
  border-radius: var(--ah-radius, 16px);
  border: 1px solid var(--ah-line, #e4ebe7);
}
.ah-detail .content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}
.ah-detail .content pre {
  overflow: auto;
  padding: 12px;
  border-radius: 10px;
  background: #0f172a0a;
}

/* 发布条：未登录/已登录入口 */
.ah-composer {
  margin: 0 0 14px;
}
.ah-composer .ah-composer-send {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.ah-composer-text[readonly] {
  cursor: pointer;
}

/* 加载更多 */
.ah-feed-more-wrap {
  display: flex;
  justify-content: center;
  margin: 12px 0 4px;
  padding: 8px 0 16px;
}
.ah-feed-more-btn {
  border: 1px solid var(--ah-line, #e4ebe7);
  background: var(--ah-surface, #fff);
  color: var(--ah-accent-deep, #0b5f59);
  border-radius: 999px;
  padding: 10px 22px;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}
.ah-feed-more-btn:hover {
  border-color: var(--ah-accent, #0f766e);
}

/* 详情标题 */
.ah-stream-detail-title {
  margin: 0 0 14px;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.3;
}
.ah-stream-detail-hd {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
}
.ah-stream-detail-body {
  line-height: 1.75;
  margin-bottom: 16px;
}
.ah-stream-detail-body img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

.ah-comments {
  background: var(--ah-surface, #fff);
  border: 1px solid var(--ah-line, #e4ebe7);
  border-radius: 18px;
  padding: 16px 18px;
  box-shadow: var(--ah-shadow);
}
.ah-comments-hd h2 {
  margin: 0 0 12px;
  font-size: 1.05rem;
}

/* 探索样式以 front.css 为准，避免此处后加载覆盖导致手机端套卡片/截断 */
.ah-profile-follow {
  flex: 0 0 auto;
  border: 1px solid var(--ah-accent, #0f766e);
  background: var(--ah-accent, #0f766e);
  color: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}
.ah-profile-follow.is-on {
  background: transparent;
  color: var(--ah-accent-deep, #0b5f59);
}

.ah-profile { margin-bottom: 8px; }
.ah-profile-banner {
  height: 120px; border-radius: 18px 18px 0 0;
  background: linear-gradient(135deg, #0f766e, #14b8a6);
}
.ah-profile-card {
  background: var(--ah-surface, #fff);
  border: 1px solid var(--ah-line, #e4ebe7);
  border-top: 0;
  border-radius: 0 0 18px 18px;
  padding: 0 18px 18px;
  margin-top: -28px;
  position: relative;
}
.ah-profile-top { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 10px; }
.ah-profile-avatar {
  width: 72px; height: 72px; border-radius: 50%; object-fit: cover;
  border: 3px solid #fff; background: var(--ah-accent-soft);
}
.ah-profile-avatar-ph {
  display: grid; place-items: center; font-weight: 800; color: var(--ah-accent-deep);
}
.ah-profile-name { margin: 0; font-size: 1.25rem; font-weight: 800; }
.ah-profile-handle { color: var(--ah-muted); font-size: 0.9rem; margin: 2px 0 8px; }
.ah-profile-bio { margin: 0 0 8px; line-height: 1.5; }
.ah-profile-joined { color: var(--ah-muted); font-size: 12px; margin-bottom: 10px; }
.ah-profile-stats { display: flex; gap: 16px; font-size: 0.9rem; }
.ah-profile-stats em { font-style: normal; font-weight: 800; margin-right: 4px; }

.ah-composer-tip {
  margin-top: 8px;
  font-size: 12px;
}
.ah-composer-previews {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0;
}
.ah-composer-preview {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--ah-line, #e4ebe7);
}
.ah-composer-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ah-composer-preview button {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 20px;
  height: 20px;
  border: 0;
  border-radius: 50%;
  background: rgba(0,0,0,.55);
  color: #fff;
  cursor: pointer;
  line-height: 1;
}
.ah-composer-preview.is-uploading::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .28);
}
.ah-composer-preview-status {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  transform: translate(-50%, -50%);
  margin: 0;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(15, 23, 42, .78);
  color: #fff;
  font-size: 11px;
  font-style: normal;
  white-space: nowrap;
  pointer-events: none;
}
.ah-composer-upload {
  cursor: pointer;
}
.ah-auth-form { display: flex; flex-direction: column; gap: 12px; }
.ah-auth-field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.ah-auth-field input {
  border: 1px solid var(--ah-line, #e4ebe7);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
}
.ah-auth-remember { font-size: 13px; color: var(--ah-muted); display: flex; gap: 6px; align-items: center; }
.ah-auth-error { margin: 0; color: #b91c1c; font-size: 13px; }
.ah-auth-submit { width: 100%; border: 0; cursor: pointer; }

.ah-lightbox[hidden] { display: none !important; }
.ah-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(8, 12, 18, .92);
  display: grid;
  place-items: center;
}
body.ah-lightbox-open { overflow: hidden; }
.ah-lightbox-layout {
  display: flex;
  gap: 0;
  width: min(1100px, 96vw);
  max-height: 86vh;
  background: #0b1220;
  border-radius: 14px;
  overflow: hidden;
}
.ah-lightbox-stage {
  flex: 1;
  min-width: 0;
  display: grid;
  place-items: center;
  background: #000;
}
.ah-lightbox-stage img {
  max-width: 100%;
  max-height: 86vh;
  object-fit: contain;
  display: block;
}
.ah-lightbox-side {
  width: 280px;
  flex-shrink: 0;
  padding: 18px 16px;
  background: #111827;
  color: #e5e7eb;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ah-lightbox-side strong { font-size: 1rem; line-height: 1.4; }
.ah-lightbox-side p { margin: 0; color: #9ca3af; font-size: 13px; }
.ah-lightbox-side .ah-btn {
  margin-top: auto;
  text-align: center;
  text-decoration: none;
  background: var(--ah-accent, #0f766e);
  color: #fff;
  border-radius: 10px;
  padding: 10px 12px;
}
@media (max-width: 800px) {
  .ah-lightbox-layout { flex-direction: column; max-height: 92vh; }
  .ah-lightbox-side { width: auto; }
  .ah-lightbox-stage img { max-height: 58vh; }
}
#ah-stream-main.is-loading { opacity: .55; pointer-events: none; transition: opacity .15s; }
.ah-stream-brand-text em {
  display: block;
  font-style: normal;
  font-size: 12px;
  color: var(--ah-muted);
  font-weight: 500;
}
.ah-lightbox-close,
.ah-lightbox-nav {
  position: absolute;
  border: 0;
  background: rgba(255,255,255,.12);
  color: #fff;
  cursor: pointer;
  border-radius: 999px;
}
.ah-lightbox-close {
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  font-size: 24px;
}
.ah-lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  font-size: 28px;
}
.ah-lightbox-nav.prev { left: 16px; }
.ah-lightbox-nav.next { right: 16px; }
.ah-lightbox-counter {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 13px;
  opacity: .85;
}
.ah-zoomable img { cursor: zoom-in; }
.ah-flash .ah-works-hero { margin-bottom: 14px; }
.ah-flash .ah-works-hero h1 { margin: 0 0 4px; font-size: 1.35rem; font-weight: 800; }
.ah-flash .ah-works-hero p { margin: 0; color: var(--ah-muted); }
.ah-pager {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  margin: 16px 0 8px;
}
.ah-pager .current { font-weight: 700; }

