:root {
  --ah-bg: #f3f5f4;
  --ah-surface: #ffffff;
  --ah-text: #14201c;
  --ah-muted: #66736d;
  --ah-line: #e4ebe7;
  --ah-accent: #0f766e;
  --ah-accent-soft: #d8f3ee;
  --ah-accent-deep: #0b5f59;
  --ah-warm: #c2410c;
  --ah-radius: 16px;
  --ah-shadow: 0 1px 2px rgba(20, 32, 28, 0.04), 0 10px 28px rgba(20, 32, 28, 0.05);
  --ah-font: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --ah-left: 248px;
  --ah-right: 296px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body.ah-body {
  font-family: var(--ah-font);
  color: var(--ah-text);
  background: var(--ah-bg);
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.ah-wrap { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }

/* ===== inner pages ===== */
.ah-header {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(12px);
  background: rgba(255,255,255,0.92);
  border-bottom: 1px solid var(--ah-line);
}
.ah-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 14px 0;
}
.ah-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.15rem; }
.ah-brand-mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, var(--ah-accent), #14b8a6);
  color: #fff; display: grid; place-items: center; font-size: 14px;
  overflow: hidden;
}
.ah-brand-mark.ah-brand-has-icon,
.ah-stream-logo.ah-brand-has-icon {
  background: transparent;
  padding: 0;
}
.ah-brand-mark img,
.ah-stream-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ah-nav { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.ah-nav a {
  color: var(--ah-muted); font-size: 0.95rem; padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.ah-nav a:hover, .ah-nav a.is-active { color: var(--ah-text); border-bottom-color: var(--ah-accent); }

.ah-hero { padding: 36px 0 18px; }
.ah-hero h1 { margin: 0 0 10px; font-size: clamp(1.6rem, 3vw, 2.3rem); letter-spacing: -0.02em; }
.ah-hero p { margin: 0; color: var(--ah-muted); max-width: 52ch; line-height: 1.6; }
.ah-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 22px 0 8px; }
.ah-tabs a, .ah-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 999px;
  background: var(--ah-surface); border: 1px solid var(--ah-line);
  color: var(--ah-muted); font-size: 0.9rem;
}
.ah-tabs a.is-active, .ah-chip.is-active {
  background: var(--ah-accent); border-color: var(--ah-accent); color: #fff;
}
.ah-section { padding: 18px 0 28px; }
.ah-section-head {
  display: flex; align-items: end; justify-content: space-between;
  gap: 12px; margin-bottom: 14px;
}
.ah-section-head h2 { margin: 0; font-size: 1.25rem; }
.ah-section-head a { color: var(--ah-accent); font-size: 0.9rem; }
.ah-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}
.ah-card {
  background: var(--ah-surface);
  border: 1px solid var(--ah-line);
  border-radius: var(--ah-radius);
  padding: 16px;
  box-shadow: var(--ah-shadow);
  transition: transform .18s ease, box-shadow .18s ease;
  min-height: 148px;
  display: flex; flex-direction: column; gap: 10px;
}
.ah-card:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(20,32,28,.1); }
.ah-card-top { display: flex; gap: 12px; align-items: flex-start; }
.ah-logo {
  width: 48px; height: 48px; border-radius: 12px; object-fit: cover;
  background: var(--ah-accent-soft); flex-shrink: 0;
}
.ah-logo.placeholder {
  display: grid; place-items: center; color: var(--ah-accent); font-weight: 700; font-size: 1rem;
}
.ah-card h3 { margin: 0; font-size: 1rem; line-height: 1.35; }
.ah-card p { margin: 0; color: var(--ah-muted); font-size: 0.88rem; line-height: 1.5; flex: 1; }
.ah-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ah-tag {
  font-size: 0.75rem; color: var(--ah-accent-deep); background: var(--ah-accent-soft);
  padding: 2px 8px; border-radius: 999px;
}
.ah-muted { color: var(--ah-muted); font-size: 0.8rem; }
.ah-layout { display: grid; grid-template-columns: 220px 1fr; gap: 20px; }
@media (max-width: 860px) {
  .ah-layout { grid-template-columns: 1fr; }
  .ah-nav { display: none; }
  .ah-nav-mobile { display: flex !important; }
}
.ah-nav-mobile { display: none; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.ah-side {
  background: var(--ah-surface); border: 1px solid var(--ah-line);
  border-radius: var(--ah-radius); padding: 14px; height: fit-content;
}
.ah-side h3 { margin: 0 0 10px; font-size: 0.95rem; }
.ah-side a {
  display: block; padding: 8px 10px; border-radius: 8px; color: var(--ah-muted); font-size: 0.9rem;
}
.ah-side a:hover, .ah-side a.is-active { background: var(--ah-accent-soft); color: var(--ah-accent); }
.ah-toolbar {
  display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; align-items: center;
}
.ah-toolbar input, .ah-toolbar select {
  border: 1px solid var(--ah-line); border-radius: 10px; padding: 9px 12px;
  background: #fff; font: inherit;
}
.ah-toolbar input { min-width: 200px; flex: 1; }
.ah-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 16px; border-radius: 10px; border: none; cursor: pointer;
  background: var(--ah-accent); color: #fff; font: inherit; font-weight: 600;
}
.ah-btn.ghost { background: #fff; color: var(--ah-text); border: 1px solid var(--ah-line); }
.ah-feed { display: flex; flex-direction: column; gap: 12px; }
.ah-feed-item {
  background: var(--ah-surface); border: 1px solid var(--ah-line);
  border-radius: var(--ah-radius); padding: 16px 18px;
}
.ah-feed-item .type {
  display: inline-block; font-size: 0.72rem; letter-spacing: .04em;
  color: var(--ah-accent); margin-bottom: 6px;
}
.ah-feed-item h3 { margin: 0 0 6px; font-size: 1.05rem; }
.ah-feed-item .body { color: var(--ah-muted); font-size: 0.92rem; line-height: 1.55; }
.ah-feed-item .foot { margin-top: 8px; font-size: 0.8rem; color: var(--ah-muted); }
.ah-work-card .cover {
  width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 10px;
  background: linear-gradient(135deg, #d8f3ee, #ffedd5);
}
.ah-work-card h3 { margin-top: 4px; }

/* Works / 写文章：只藏默认右侧栏，其它页面不受影响 */
.ah-stream-page.ah-mode-works .ah-stream,
.ah-stream-page.ah-mode-work .ah-stream,
.ah-stream-page.ah-mode-write .ah-stream {
  grid-template-columns: var(--ah-left) minmax(0, 1fr);
}
.ah-stream-page.ah-mode-works .ah-stream-right,
.ah-stream-page.ah-mode-work .ah-stream-right,
.ah-stream-page.ah-mode-write .ah-stream-right {
  display: none !important;
}
/* 无站点右侧栏时，用底部页脚兜底 */
.ah-stream-page.ah-mode-works .ah-stream-foot-mobile,
.ah-stream-page.ah-mode-work .ah-stream-foot-mobile,
.ah-stream-page.ah-mode-write .ah-stream-foot-mobile {
  display: flex;
}
.ah-stream-search-btn {
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; background: transparent; color: var(--ah-muted); cursor: pointer; padding: 0 4px;
}
.ah-stream-search-btn .ah-stream-ico { width: 18px; height: 18px; display: inline-flex; }
.ah-stream-search-btn .ah-stream-ico svg { width: 18px; height: 18px; display: block; }
.ah-works-publish-page .ah-works-publish-shell {
  max-width: 720px; margin: 0 auto;
  padding: 8px 4px 32px;
}
.ah-works-publish-hd {
  display: flex; align-items: center; gap: 10px; margin-bottom: 16px;
}
.ah-works-publish-hd h1 {
  flex: 1; margin: 0; font-size: 1.15rem; font-weight: 700; text-align: center;
}
.ah-works-publish-back {
  width: 36px; height: 36px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  color: #334155; background: #fff; border: 1px solid var(--ah-line); text-decoration: none;
}
.ah-works-publish-back .ah-stream-ico,
.ah-works-publish-back .ah-stream-ico svg { width: 18px; height: 18px; display: block; }
.ah-works-publish-hd-spacer { width: 36px; flex-shrink: 0; }
.ah-works-publish-page .ah-works-form,
.ah-works-publish-page .ah-works-pick {
  background: linear-gradient(180deg, #eef6ff 0%, #f7fbff 36%, #ffffff 100%);
  border-radius: 18px; padding: 18px; border: 1px solid #e2e8f0;
}
.ah-works-plaza .ah-works-grid {
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 12px;
}
.ah-works-plaza .ah-work-card {
  padding: 10px;
  gap: 6px;
  min-height: 0;
  border-radius: 12px;
}
.ah-works-plaza .ah-work-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(20, 32, 28, .08);
}
.ah-works-plaza .ah-work-card .cover {
  aspect-ratio: 4/3;
  border-radius: 8px;
}
.ah-works-plaza .ah-work-card h3 {
  margin: 2px 0 0;
  font-size: 0.88rem;
  line-height: 1.3;
  font-weight: 700;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ah-works-plaza .ah-work-card > p {
  font-size: 0.75rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ah-works-plaza .ah-work-card .ah-meta {
  gap: 4px;
  margin-top: 2px;
}
.ah-works-plaza .ah-work-card .ah-tag {
  font-size: 0.68rem;
  padding: 1px 6px;
}
.ah-works-plaza .ah-work-card .ah-muted {
  font-size: 0.7rem;
}
.ah-works-plaza .ah-works-hero h1 { font-size: 1.2rem; }
.ah-works-plaza .ah-works-hero p { font-size: 0.85rem; margin-bottom: 10px; }
.ah-detail {
  background: var(--ah-surface); border: 1px solid var(--ah-line);
  border-radius: var(--ah-radius); padding: 28px; box-shadow: var(--ah-shadow);
}
.ah-detail-head { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; }
.ah-detail-head .ah-logo { width: 72px; height: 72px; border-radius: 16px; }
.ah-detail h1 { margin: 0 0 8px; font-size: 1.6rem; }
.ah-detail .summary { color: var(--ah-muted); line-height: 1.6; margin: 0 0 16px; }
.ah-detail .content { line-height: 1.7; margin-top: 18px; }
.ah-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.ah-empty {
  text-align: center; padding: 48px 20px; color: var(--ah-muted);
  background: var(--ah-surface); border: 1px dashed var(--ah-line); border-radius: var(--ah-radius);
}
.ah-footer {
  margin-top: 40px; padding: 28px 0 40px; border-top: 1px solid var(--ah-line);
  color: var(--ah-muted); font-size: 0.85rem; text-align: center;
}
.ah-pager { display: flex; gap: 8px; justify-content: center; margin-top: 20px; flex-wrap: wrap; }
.ah-pager a, .ah-pager span {
  padding: 8px 12px; border-radius: 8px; border: 1px solid var(--ah-line); background: #fff;
}
.ah-pager .current { background: var(--ah-accent); color: #fff; border-color: var(--ah-accent); }
.ah-feed-more-wrap {
  display: flex; justify-content: center; margin: 8px 0 4px; padding: 8px 0 16px;
}
.ah-feed-more-wrap[hidden] { display: none !important; }
.ah-feed-more-btn {
  appearance: none; border: 1px solid var(--ah-line);
  background: #fff; color: #334155; cursor: pointer;
  min-width: 140px; padding: 10px 22px; border-radius: 999px;
  font: inherit; font-size: .92rem; font-weight: 600;
  transition: background .12s ease, border-color .12s ease, color .12s ease;
}
.ah-feed-more-btn:hover {
  border-color: var(--ah-accent); color: var(--ah-accent-deep); background: var(--ah-accent-soft);
}
.ah-feed-more-btn:disabled,
.ah-feed-more-btn.is-loading {
  opacity: .65; cursor: wait;
}

/* =========================================================
   Homepage stream
   ========================================================= */
body.ah-stream-page {
  background:
    radial-gradient(900px 420px at 0% -10%, rgba(20, 184, 166, 0.12), transparent 55%),
    radial-gradient(700px 360px at 100% 0%, rgba(251, 146, 60, 0.10), transparent 50%),
    #f3f5f4;
}

.ah-stream {
  width: min(1220px, calc(100% - 24px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: var(--ah-left) minmax(0, 1fr) var(--ah-right);
  gap: 18px;
  padding: 18px 0 28px;
  align-items: start;
}

.ah-stream-left {
  position: sticky;
  top: 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: calc(100vh - 24px);
  padding: 4px 0 3.5cm;
  box-sizing: border-box;
}

.ah-stream-brand {
  display: flex;
  gap: 10px;
  align-items: center;
  width: fit-content;
  padding: 8px 10px;
  margin-bottom: 4px;
  border-radius: 999px;
  color: inherit;
  text-decoration: none;
}
.ah-stream-brand:hover { background: rgba(15, 23, 42, 0.06); }
.ah-stream-logo {
  width: 42px; height: 42px; border-radius: 50%;
  background: #0f172a;
  color: #fff; font-weight: 800; display: grid; place-items: center;
  flex-shrink: 0; font-size: 0.85rem; letter-spacing: 0.02em;
  overflow: hidden;
}
.ah-stream-brand-text { display: flex; flex-direction: column; min-width: 0; }
.ah-stream-brand-text strong {
  font-size: 1.05rem; line-height: 1.2; font-weight: 800;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ah-stream-brand-text em { display: none; }

.ah-stream-menu {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
}
.ah-stream-menu-item {
  display: flex; align-items: center; gap: 16px;
  width: fit-content; max-width: 100%;
  padding: 11px 16px 11px 10px;
  border-radius: 999px;
  color: #0f172a;
  font-weight: 500;
  font-size: 1.18rem;
  line-height: 1.2;
  transition: background .12s ease;
}
.ah-stream-menu-item:hover {
  background: rgba(15, 23, 42, 0.06);
}
.ah-stream-menu-item.is-active {
  font-weight: 800;
  color: #0f172a;
  background: transparent;
}
.ah-stream-menu-item.is-active:hover {
  background: rgba(15, 23, 42, 0.06);
}
.ah-stream-menu-item.is-active .ah-stream-menu-label {
  font-weight: 800;
}
.ah-stream-ico {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  color: inherit; flex-shrink: 0;
  background: transparent; border-radius: 0;
}
.ah-stream-menu-item.is-active .ah-stream-ico {
  background: transparent; color: inherit; box-shadow: none;
}
.ah-stream-ico svg { display: block; }
.ah-stream-menu-label { padding-right: 4px; }

/* X-style Post CTA */
.ah-stream-post {
  position: relative;
  margin: 12px 8px 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ah-stream-post-btn {
  appearance: none; border: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  width: 100%;
  min-height: 50px;
  border-radius: 999px;
  background: #0f172a;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.18);
  transition: background .12s ease, transform .12s ease;
}
.ah-stream-post-btn:hover { background: #1e293b; }
.ah-stream-post-secondary {
  display: block;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 600;
  color: #64748b;
  text-decoration: none;
  padding: 2px 0;
}
.ah-stream-post-secondary:hover { color: #0f172a; }

.ah-stream-login {
  margin-top: auto;
  margin-bottom: 0;
  display: flex; gap: 10px; align-items: center;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  flex-shrink: 0;
  text-align: left;
  color: inherit;
  font: inherit;
  cursor: pointer;
  text-decoration: none;
}
.ah-stream-login:hover { background: rgba(15, 23, 42, 0.06); }
.ah-stream-login-mark {
  width: 40px; height: 40px; border-radius: 50%;
  background: #0f172a;
  color: #fff; display: grid; place-items: center; font-weight: 700;
}
.ah-stream-login strong { display: block; font-size: 0.95rem; color: #0f172a; }
.ah-stream-login em { display: block; font-style: normal; color: #64748b; font-size: 0.75rem; }
.ah-modal-hd-spacer { width: 36px; flex-shrink: 0; }
.ah-auth-alert {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fef2f2;
  color: #b91c1c;
  font-size: 0.88rem;
}
.ah-auth-alert.is-ok {
  background: #ecfdf5;
  color: #047857;
}
.ah-auth-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
  padding: 4px;
  border-radius: 12px;
  background: #f1f5f4;
}
.ah-auth-tab {
  flex: 1;
  border: 0;
  background: transparent;
  border-radius: 10px;
  padding: 8px 10px;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ah-muted);
  cursor: pointer;
}
.ah-auth-tab.is-active {
  background: #fff;
  color: var(--ah-text);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}
.ah-auth-form .ah-modal-field { margin-bottom: 12px; }
.ah-auth-captcha {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}
.ah-auth-captcha input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--ah-line);
  border-radius: 10px;
  padding: 9px 12px;
  font: inherit;
}
.ah-auth-captcha-img {
  height: 36px;
  border-radius: 8px;
  cursor: pointer;
  flex-shrink: 0;
}
.ah-auth-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  font-size: 0.88rem;
  color: var(--ah-muted);
  cursor: pointer;
}
.ah-auth-submit {
  width: 100%;
  justify-content: center;
  border-radius: 999px;
  padding: 10px 16px;
}
.ah-auth-foot {
  margin: 14px 0 0;
  text-align: center;
  font-size: 0.84rem;
}
.ah-auth-foot a { color: var(--ah-muted); }
.ah-auth-foot a:hover { color: var(--ah-accent); }
.ah-auth-ext {
  margin-top: 14px;
}
.ah-auth-ext .clogin-buttons {
  margin-top: 4px;
}
.ah-auth-ext .clogin-buttons__divider {
  display: flex;
  align-items: center;
  margin: 0 0 12px;
  color: var(--ah-muted);
  font-size: 0.78rem;
}
.ah-auth-ext .clogin-buttons__divider::before,
.ah-auth-ext .clogin-buttons__divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e8efeb;
}
.ah-auth-ext .clogin-buttons__divider span {
  padding: 0 10px;
}
.ah-auth-ext #clogin-login-ext-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

/* X-style account card — pinned to sidebar bottom */
.ah-stream-user {
  margin-top: auto;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 8px 10px 10px;
  border-radius: 999px;
  position: relative;
  flex-shrink: 0;
}
.ah-stream-user:hover { background: rgba(15, 23, 42, 0.06); }
.ah-stream-user-main {
  display: flex; gap: 10px; align-items: center;
  color: inherit; text-decoration: none;
  min-width: 0; flex: 0 1 auto;
}
.ah-stream-user-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
  background: #e2e8f0;
}
.ah-stream-user-avatar-ph {
  display: grid; place-items: center;
  color: #0f172a; font-weight: 800; background: #e2e8f0;
}
.ah-stream-user-text { min-width: 0; flex: 1; }
.ah-stream-user-text strong {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.92rem; font-weight: 800; color: #0f172a;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ah-stream-user-text em {
  display: block; font-style: normal; color: #64748b;
  font-size: 0.82rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ah-stream-user-more {
  position: relative;
  flex-shrink: 0;
}
.ah-stream-user-more > summary {
  list-style: none;
  cursor: pointer;
  width: 34px; height: 34px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: #0f172a;
}
.ah-stream-user-more > summary::-webkit-details-marker { display: none; }
.ah-stream-user-more > summary:hover { background: rgba(15, 23, 42, 0.08); }
.ah-stream-user-more-menu {
  position: absolute;
  right: 0; bottom: calc(100% + 8px);
  min-width: 180px;
  z-index: 50;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.16);
  overflow: hidden;
  padding: 6px;
}
.ah-stream-user-more-menu a,
.ah-stream-user-more-menu .ah-menu-btn {
  display: block;
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  color: #0f172a;
  font-weight: 600;
  font-size: 0.92rem;
  text-align: left;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
}
.ah-stream-user-more-menu a:hover,
.ah-stream-user-more-menu .ah-menu-btn:hover { background: rgba(15, 23, 42, 0.06); }

#ah-stream-main { min-width: 0; }
#ah-stream-main.is-loading { opacity: 0.55; pointer-events: none; transition: opacity .15s ease; }
.ah-stream-center { min-width: 0; }
.ah-stream-right {
  position: sticky; top: 18px;
  display: flex; flex-direction: column; gap: 14px;
  max-height: calc(100vh - 36px);
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
}
.ah-side-foot {
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  color: #8590a6;
  font-size: 0.75rem;
  line-height: 1.65;
  text-align: left;
}
.ah-side-foot-inner {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ah-side-foot-link,
.ah-side-foot a {
  color: #8590a6;
  text-decoration: none;
  word-break: break-all;
}
.ah-side-foot-link:hover,
.ah-side-foot a:hover {
  color: #646464;
}
.ah-side-foot-info {
  color: #8590a6;
  word-break: break-word;
}
.ah-side-foot-info p { margin: 0 0 4px; }
.ah-side-foot-info p:last-child { margin-bottom: 0; }
.ah-side-foot-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 0;
  align-items: center;
  line-height: 1.7;
}
.ah-side-foot-nav a { margin-right: 0; }
.ah-side-foot-sep {
  margin: 0 6px;
  color: #c5ccd6;
}

/* 帮助中心 / 站点主体 */
.ah-stream-page.ah-mode-about .ah-stream {
  grid-template-columns: var(--ah-left) minmax(0, 1fr);
}
.ah-stream-page.ah-mode-about .ah-stream-right,
.ah-stream-page.ah-mode-about .ah-stream-foot-mobile {
  display: none !important;
}
.ah-help {
  --ah-help-gap: 14px;
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr) 232px;
  grid-template-areas:
    "hero hero hero"
    "cats main side";
  gap: var(--ah-help-gap);
  align-items: start;
  width: 100%;
  padding-bottom: 28px;
}
.ah-help.ah-help-no-side {
  grid-template-columns: 168px minmax(0, 1fr);
  grid-template-areas:
    "hero hero"
    "cats main";
}
.ah-help:not(:has(.ah-help-cats)) {
  grid-template-columns: minmax(0, 1fr) 232px;
  grid-template-areas:
    "hero hero"
    "main side";
}
.ah-help.ah-help-no-side:not(:has(.ah-help-cats)) {
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "hero"
    "main";
}
.ah-help-empty-box {
  padding: 28px 20px 32px;
}
.ah-help-empty-title {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 650;
}
.ah-help-hero {
  grid-area: hero;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  min-height: 132px;
  padding: 22px 26px;
  border-radius: 18px;
  border: 1px solid rgba(15, 118, 110, 0.12);
  background:
    radial-gradient(1200px 180px at 12% -40%, rgba(20, 184, 166, 0.28), transparent 55%),
    radial-gradient(800px 160px at 88% 120%, rgba(15, 118, 110, 0.16), transparent 50%),
    linear-gradient(135deg, #0f766e 0%, #0d9488 48%, #115e59 100%);
  color: #fff;
  box-shadow: 0 12px 32px rgba(15, 118, 110, 0.18);
  overflow: hidden;
  position: relative;
}
.ah-help-hero::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -50px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  pointer-events: none;
}
.ah-help-kicker {
  margin: 0 0 6px;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.78;
  font-weight: 600;
}
.ah-help-hero h1 {
  margin: 0;
  font-size: clamp(1.45rem, 2.2vw, 1.85rem);
  letter-spacing: -0.03em;
  font-weight: 720;
  line-height: 1.2;
}
.ah-help-lead {
  margin: 8px 0 0;
  font-size: 0.92rem;
  opacity: 0.88;
  max-width: 42ch;
  line-height: 1.5;
}
.ah-help-hero-contact {
  text-align: right;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.ah-help-hero-phone {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}
.ah-help-hero-hours,
.ah-help-hero-mail {
  margin-top: 4px;
  font-size: 0.82rem;
  opacity: 0.85;
}
.ah-help-hero-mail { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.35); }
.ah-help-hero-mail:hover { opacity: 1; }

.ah-help-cats { grid-area: cats; }
.ah-help-main { grid-area: main; }
.ah-help-side { grid-area: side; }

.ah-help-cats,
.ah-help-main,
.ah-help-side-card {
  background: var(--ah-surface);
  border: 1px solid var(--ah-line);
  border-radius: 16px;
  box-shadow: var(--ah-shadow);
}
.ah-help-cats {
  padding: 14px 10px;
  position: sticky;
  top: 72px;
}
.ah-help-cats-hd {
  font-size: 0.75rem;
  font-weight: 650;
  color: var(--ah-muted);
  letter-spacing: 0.08em;
  padding: 2px 12px 12px;
}
.ah-help-cat-list { display: flex; flex-direction: column; gap: 3px; }
.ah-help-cat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 11px;
  color: var(--ah-text);
  text-decoration: none;
  font-size: 0.92rem;
  transition: background .15s ease, color .15s ease;
}
.ah-help-cat:hover { background: #f3faf8; }
.ah-help-cat.is-on {
  background: var(--ah-accent-soft);
  color: var(--ah-accent-deep);
  font-weight: 650;
  box-shadow: inset 3px 0 0 var(--ah-accent);
}
.ah-help-cat-count {
  font-size: 0.72rem;
  color: var(--ah-muted);
  background: #eef3f1;
  border-radius: 999px;
  min-width: 1.4em;
  padding: 1px 6px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.ah-help-cat.is-on .ah-help-cat-count {
  background: rgba(15, 118, 110, 0.12);
  color: var(--ah-accent-deep);
}

.ah-help-main {
  padding: 8px 4px 10px;
  min-height: 420px;
}
.ah-help-main-hd {
  padding: 14px 20px 10px;
  border-bottom: 1px solid var(--ah-line);
}
.ah-help-main-hd h2 {
  margin: 0;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}
.ah-help-main-hd p {
  margin: 6px 0 0;
  color: var(--ah-muted);
  font-size: 0.86rem;
}
.ah-help-back {
  display: inline-flex;
  align-items: center;
  margin-bottom: 8px;
  font-size: 0.84rem;
  color: var(--ah-muted);
  text-decoration: none;
}
.ah-help-back:hover { color: var(--ah-accent-deep); }

.ah-help-list {
  list-style: none;
  margin: 0;
  padding: 4px 8px 8px;
}
.ah-help-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 12px;
  margin: 2px 0;
  border-radius: 12px;
  color: var(--ah-text);
  text-decoration: none;
  font-size: 0.98rem;
  transition: background .15s ease, color .15s ease;
}
.ah-help-list a:hover {
  background: #f4faf8;
  color: var(--ah-accent-deep);
}
.ah-help-chev { flex-shrink: 0; opacity: 0.35; }
.ah-help-list a:hover .ah-help-chev { opacity: 0.7; color: var(--ah-accent); }

.ah-help-demo { padding: 6px 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.ah-help-demo-item {
  border: 1px solid var(--ah-line);
  border-radius: 12px;
  background: #fbfcfc;
  overflow: hidden;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.ah-help-demo-item[open] {
  border-color: rgba(15, 118, 110, 0.28);
  box-shadow: 0 6px 18px rgba(15, 118, 110, 0.06);
  background: #fff;
}
.ah-help-demo-item summary {
  list-style: none;
  cursor: pointer;
  padding: 13px 16px;
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
  padding-right: 36px;
}
.ah-help-demo-item summary::-webkit-details-marker { display: none; }
.ah-help-demo-item summary::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--ah-muted);
  border-bottom: 2px solid var(--ah-muted);
  transform: translateY(-65%) rotate(45deg);
  transition: transform .15s ease;
}
.ah-help-demo-item[open] summary::after {
  transform: translateY(-20%) rotate(225deg);
  border-color: var(--ah-accent);
}
.ah-help-demo-body {
  padding: 0 16px 14px;
  color: var(--ah-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

.ah-help-article {
  padding: 16px 20px 22px;
  line-height: 1.75;
  font-size: 0.96rem;
}
.ah-help-article p { margin: 0 0 12px; }

.ah-help-side {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: sticky;
  top: 72px;
}
.ah-help-side-card { padding: 16px; }
.ah-help-side-card h2 {
  margin: 0 0 12px;
  font-size: 0.92rem;
  letter-spacing: -0.01em;
}
.ah-help-svc {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ah-help-svc a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 11px;
  background: #f4f7f6;
  color: var(--ah-text);
  text-decoration: none;
  font-size: 0.88rem;
  transition: background .15s ease, color .15s ease;
}
.ah-help-svc a svg { opacity: 0.35; flex-shrink: 0; }
.ah-help-svc a:hover {
  background: var(--ah-accent-soft);
  color: var(--ah-accent-deep);
}
.ah-help-svc a:hover svg { opacity: 0.7; }
.ah-help-side-contact {
  background:
    linear-gradient(180deg, #f7fbfa 0%, #fff 42%);
}
.ah-help-hotline {
  margin: 0 0 4px;
  font-size: 1.2rem;
  font-weight: 720;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--ah-accent-deep);
}
.ah-help-hours {
  margin: 0;
  font-size: 0.8rem;
  color: var(--ah-muted);
  line-height: 1.45;
}
.ah-help-mail {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.88rem;
  color: var(--ah-accent-deep);
  text-decoration: none;
  word-break: break-all;
}
.ah-help-mail:hover { text-decoration: underline; }
.ah-help-org-line {
  margin: 12px 0 0;
  padding-top: 10px;
  border-top: 1px dashed var(--ah-line);
  font-size: 0.78rem;
  color: var(--ah-muted);
  line-height: 1.45;
}

@media (max-width: 1100px) {
  .ah-help {
    grid-template-columns: 150px minmax(0, 1fr);
    grid-template-areas:
      "hero hero"
      "cats main"
      "side side";
  }
  .ah-help.ah-help-no-side {
    grid-template-areas:
      "hero hero"
      "cats main";
  }
  .ah-help:not(:has(.ah-help-cats)) {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "hero"
      "main"
      "side";
  }
  .ah-help-side {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
}
@media (max-width: 720px) {
  .ah-help,
  .ah-help.ah-help-no-side,
  .ah-help:not(:has(.ah-help-cats)) {
    grid-template-columns: 1fr;
    grid-template-areas:
      "hero"
      "cats"
      "main"
      "side";
  }
  .ah-help-hero {
    flex-direction: column;
    align-items: flex-start;
    min-height: 0;
    padding: 18px;
  }
  .ah-help-hero-contact { text-align: left; }
  .ah-help-cats { position: static; padding-bottom: 10px; }
  .ah-help-cat-list { flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .ah-help-cat { padding: 8px 12px; }
  .ah-help-cat.is-on { box-shadow: none; }
  .ah-help-cat-count { display: none; }
  .ah-help-main { min-height: 0; }
  .ah-help-side { grid-template-columns: 1fr; }
}
.ah-emlog-widgets {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ah-emlog-widget-bd { font-size: 0.88rem; color: var(--ah-text); }
.ah-emlog-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ah-emlog-list li { display: flex; gap: 6px; align-items: baseline; line-height: 1.4; }
.ah-emlog-list a { color: var(--ah-text); text-decoration: none; flex: 1; min-width: 0; }
.ah-emlog-list a:hover { color: var(--ah-accent); }
.ah-emlog-list em { color: var(--ah-muted); font-style: normal; font-size: 0.78rem; }
.ah-emlog-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.ah-emlog-tags a {
  display: inline-block; padding: 3px 8px; border-radius: 999px;
  background: var(--ah-accent-soft); color: var(--ah-accent-deep); font-size: 0.78rem; text-decoration: none;
}
.ah-post-tags {
  margin: 16px 0 4px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ah-post-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  min-height: 0;
}
.ah-post-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--ah-line, #e2e8f0);
  background: #f8fafc;
  color: var(--ah-accent-deep, #0f766e);
  font-size: 0.82rem;
  line-height: 1.3;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
}
a.ah-post-tag:hover { border-color: #b7e4db; background: var(--ah-accent-soft, #ecfdf5); }
button.ah-post-tag.is-edit:hover {
  border-color: #fecaca;
  background: #fef2f2;
  color: #b91c1c;
}
.ah-post-tag-input {
  width: 100%;
  max-width: 280px;
  border: 1px dashed var(--ah-line, #e2e8f0);
  border-radius: 12px;
  padding: 8px 12px;
  font: inherit;
  font-size: 0.88rem;
  background: #fff;
  color: var(--ah-text, #0f172a);
}
.ah-post-tag-input:focus {
  outline: 0;
  border-color: var(--ah-accent, #14b8a6);
  border-style: solid;
}
.ah-post-tags-hint {
  margin: 0;
  font-size: 0.75rem;
  color: var(--ah-muted, #64748b);
}
.ah-emlog-blogger { text-align: center; }
.ah-emlog-blogger img {
  width: 64px; height: 64px; border-radius: 50%; object-fit: cover; margin-bottom: 8px;
}
.ah-emlog-blogger strong { display: block; }
.ah-emlog-blogger p { margin: 6px 0 0; color: var(--ah-muted); font-size: 0.82rem; }
.ah-emlog-search { display: flex; gap: 6px; }
.ah-emlog-search input {
  flex: 1; min-width: 0; border: 1px solid var(--ah-line); border-radius: 10px; padding: 8px 10px; font: inherit;
}
.ah-emlog-search button {
  border: 0; border-radius: 10px; background: var(--ah-accent); color: #fff; padding: 8px 12px; cursor: pointer; font: inherit;
}
.ah-emlog-archive {
  width: 100%; border: 1px solid var(--ah-line); border-radius: 10px; padding: 8px 10px; font: inherit; background: #fff;
}
.ah-emlog-widget.is-theme .widget { margin: 0; box-shadow: none; border: 0; background: transparent; }
.ah-emlog-widget.is-theme .widget-title { display: none; }
.ah-side-promos {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ah-side-promo {
  display: block;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--ah-line);
  background: #fff;
  box-shadow: var(--ah-shadow);
  line-height: 0;
}
.ah-side-promo:hover {
  border-color: #b7e4db;
}
.ah-side-promo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 600 / 340;
  object-fit: cover;
}

.ah-stream-more-link {
  display: inline-block;
  margin-top: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ah-accent);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
}
.ah-stream-more-link:hover { color: var(--ah-accent-deep); }
/* 展开后隐藏「查看更多」（覆盖 display:inline-block，避免 [hidden] 失效） */
.ah-stream-more-link[hidden],
.ah-stream-more-link[data-ah-expanded="1"] {
  display: none !important;
}
.ah-stream-type {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ah-muted, #64748b);
  background: rgba(15, 23, 42, 0.05);
  vertical-align: middle;
}
.ah-stream-card-meta time + .ah-stream-type { margin-left: 8px; }

.ah-detail-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  padding: 2px 0 10px;
  border-bottom: 1px solid var(--ah-line);
}
.ah-detail-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ah-text);
  font-size: 1.02rem;
  font-weight: 700;
  text-decoration: none;
}
.ah-detail-back-ico {
  font-size: 1.1rem;
  line-height: 1;
  color: var(--ah-muted);
}
.ah-detail-back:hover { color: var(--ah-accent); }
.ah-detail-back:hover .ah-detail-back-ico { color: var(--ah-accent); }
.ah-detail-edit {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 14px;
  border: 1px solid var(--ah-line);
  border-radius: 999px;
  background: #fff;
  color: var(--ah-text);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  line-height: 1;
}
.ah-detail-edit:hover {
  color: var(--ah-accent);
  border-color: var(--ah-accent);
  background: rgba(15, 118, 110, 0.04);
}

.ah-stream-detail {
  background: #fff;
  border: 1px solid var(--ah-line);
  border-radius: 18px;
  padding: 20px 22px 18px;
  box-shadow: var(--ah-shadow);
}
.ah-stream-detail-hd {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
  position: relative;
}
.ah-stream-detail-hd > div {
  min-width: 0;
  flex: 1;
}
.ah-stream-detail-hd .ah-card-more {
  margin-left: auto;
  flex-shrink: 0;
}
.ah-stream-detail-title {
  margin: 0 0 10px;
  font-size: 1.35rem;
  line-height: 1.4;
}
.ah-stream-detail-summary {
  margin: 0 0 14px;
  color: var(--ah-muted);
  line-height: 1.65;
}
.ah-stream-detail-body {
  color: #33403b;
  font-size: 0.98rem;
  line-height: 1.8;
  word-break: break-word;
}
.ah-stream-detail-body p { margin: 0 0 0.9em; }
.ah-stream-detail-body img { border-radius: 12px; margin: 10px 0; max-width: 100%; height: auto; }
.ah-stream-detail-body .ah-flash-quote-card img { margin: 0; max-width: none; }

/* Markdown 表格 · 样式 A 线框清爽 */
.ah-stream-detail-body.markdown,
.ah-stream-detail-body {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.ah-stream-detail-body table,
.markdown table {
  width: 100%;
  min-width: 320px;
  border-collapse: collapse;
  margin: 1em 0 1.25em;
  font-size: 0.92em;
  line-height: 1.5;
  color: var(--ah-text);
}
.ah-stream-detail-body th,
.ah-stream-detail-body td,
.markdown th,
.markdown td {
  padding: 10px 12px;
  border: 1px solid var(--ah-line);
  text-align: left;
  vertical-align: top;
  word-break: break-word;
}
.ah-stream-detail-body th,
.markdown th {
  background: #f3f6f4;
  color: var(--ah-text);
  font-weight: 650;
  white-space: nowrap;
}
.ah-stream-detail-body td,
.markdown td { background: var(--ah-surface); }

/* Markdown 代码块 · 样式 A 深色终端 + 横向滚动 + 复制 */
.ah-stream-detail-body :not(pre) > code,
.markdown :not(pre) > code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.88em;
  padding: 0.15em 0.42em;
  border-radius: 6px;
  background: #f3f6f4;
  color: var(--ah-accent-deep);
  border: 1px solid var(--ah-line);
}
.ah-stream-detail-body pre,
.markdown pre {
  margin: 1em 0 1.25em;
  padding: 14px 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.88em;
  line-height: 1.65;
  white-space: pre;
  word-break: normal;
  overflow-wrap: normal;
  tab-size: 4;
}
.ah-stream-detail-body pre code,
.markdown pre code {
  display: block;
  padding: 0;
  margin: 0;
  background: transparent;
  color: inherit;
  border: 0;
  border-radius: 0;
  font-size: inherit;
  white-space: inherit;
}
.ah-codeblock {
  position: relative;
  margin: 1em 0 1.25em;
  border-radius: 12px;
  background: #0f172a;
  overflow: hidden;
}
.ah-codeblock > pre {
  margin: 0;
  padding: 42px 16px 14px;
  border-radius: 0;
  background: transparent;
}
.ah-codeblock-copy {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  appearance: none;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.72);
  color: #e2e8f0;
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 12px;
  line-height: 1.3;
  font-family: inherit;
  cursor: pointer;
  backdrop-filter: blur(4px);
}
.ah-codeblock-copy:hover {
  background: rgba(30, 41, 59, 0.92);
  border-color: rgba(148, 163, 184, 0.55);
}
.ah-codeblock-copy.is-ok {
  color: #a7f3d0;
  border-color: rgba(45, 212, 191, 0.45);
}
.ah-zoomable img {
  cursor: zoom-in;
  transition: opacity .15s ease;
}
.ah-zoomable img:hover { opacity: .92; }

html.ah-media-open,
html.ah-media-open body {
  overflow: hidden !important;
}

/* 图片灯箱：滚轮缩放 + 拖拽平移 */
.ah-img-viewer[hidden] { display: none !important; }
.ah-img-viewer {
  position: fixed; inset: 0; z-index: 12000;
  display: flex; flex-direction: column;
  background: rgba(2, 6, 23, .88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  touch-action: none;
  user-select: none;
}
.ah-img-viewer-bar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding: 12px 14px;
  color: #e2e8f0; font-size: .85rem;
  pointer-events: none;
}
.ah-img-viewer-bar button {
  pointer-events: auto;
  width: 40px; height: 40px; border: 0; border-radius: 12px;
  background: rgba(255,255,255,.12); color: #fff;
  font-size: 22px; line-height: 1; cursor: pointer;
}
.ah-img-viewer-bar button:hover { background: rgba(255,255,255,.2); }
.ah-img-viewer-tools {
  pointer-events: auto;
  display: flex; align-items: center; gap: 6px;
}
.ah-img-viewer-tools button {
  width: 36px; height: 36px; font-size: 18px;
}
.ah-img-viewer-scale {
  min-width: 52px; text-align: center;
  font-variant-numeric: tabular-nums; opacity: .85;
}
.ah-img-viewer-stage {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: grab;
  min-height: 0;
}
.ah-img-viewer-stage.is-dragging { cursor: grabbing; }
.ah-img-viewer-img {
  max-width: min(96vw, 1400px);
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center center;
  border-radius: 4px;
  transform-origin: center center;
  will-change: transform;
  box-shadow: 0 20px 60px rgba(0,0,0,.45);
  pointer-events: none;
}
.ah-img-viewer-hint {
  position: absolute; bottom: 16px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(15, 23, 42, .55);
  color: #cbd5e1; font-size: .78rem;
  white-space: nowrap;
  pointer-events: none;
}
@media (max-width: 640px) {
  .ah-img-viewer-hint { font-size: .7rem; bottom: 10px; }
}

/* 快讯左右媒体页：左图右文 + 底部分段进度 + 抖音式竖滑切条 */
.ah-media-sheet[hidden] { display: none !important; }
.ah-media-sheet {
  --ah-media-right: min(420px, 42vw);
  position: fixed; inset: 0; z-index: 12100;
  background: rgba(2, 6, 23, .92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  overflow: hidden;
}
.ah-media-sheet-viewport {
  position: absolute; inset: 0;
  overflow: hidden;
}
.ah-media-sheet-neighbor,
.ah-media-sheet-page {
  position: absolute; inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--ah-media-right);
  will-change: transform;
}
.ah-media-sheet-neighbor {
  z-index: 0;
  pointer-events: none;
  visibility: hidden;
}
.ah-media-sheet-neighbor.is-on { visibility: visible; }
.ah-media-sheet-page { z-index: 1; }
.ah-media-sheet-page.is-animating,
.ah-media-sheet-neighbor.is-animating {
  transition: transform .34s cubic-bezier(0.22, 1, 0.36, 1);
}
.ah-media-sheet-neighbor-media {
  background: #020617;
  display: grid; place-items: center;
  overflow: hidden;
}
.ah-media-sheet-neighbor-media img {
  max-width: 96%;
  max-height: 86%;
  width: auto;
  height: auto;
  margin: auto;
  object-fit: contain;
  object-position: center center;
}
.ah-media-sheet-neighbor-side {
  background: var(--ah-surface, #fff);
  border-left: 1px solid rgba(255,255,255,.06);
  display: flex; flex-direction: column; justify-content: center;
  padding: 24px 20px;
  color: var(--ah-text, #0f172a);
}
.ah-media-sheet-neighbor-side strong {
  font-size: 1rem; margin-bottom: 8px;
}
.ah-media-sheet-neighbor-side p {
  margin: 0; color: var(--ah-muted, #64748b); font-size: .86rem; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.ah-media-sheet-media {
  position: relative;
  min-width: 0; min-height: 0;
  background: #020617;
  overflow: hidden;
  touch-action: none;
}
/* 信息流点开：左栏舞台铺满，图片在舞台内水平+垂直居中（对齐常见 Z-Blog 灯箱） */
.ah-media-sheet-media .ah-img-viewer {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.ah-media-sheet-media .ah-img-viewer-stage {
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ah-media-sheet-media .ah-img-viewer-img {
  max-width: 92%;
  max-height: 92%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center center;
  pointer-events: none;
  box-shadow: none;
}
.ah-media-sheet-media .ah-img-viewer-nav { font-size: 22px; }
/* 多图计数：左上，避开关闭钮 */
.ah-media-sheet-media .ah-img-viewer-counter {
  position: absolute;
  top: 14px;
  left: 56px;
  z-index: 5;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .42);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  pointer-events: none;
}
.ah-media-sheet-media .ah-img-viewer-counter[hidden] { display: none !important; }
/* 缩放条：PC 顶右（关钮对面），仅放大后出现；移动端隐藏 */
.ah-media-sheet-zoom {
  position: absolute;
  right: 14px;
  top: 58px;
  bottom: auto;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(15, 23, 42, .58);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .28);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity .22s ease, transform .22s ease;
}
.ah-media-sheet-media.is-gallery .ah-media-sheet-zoom { top: 58px; bottom: auto; }
.ah-media-sheet-media.is-zoomed .ah-media-sheet-zoom,
.ah-media-sheet-zoom.is-temp {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}
.ah-media-sheet-zoom button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.ah-media-sheet-zoom button:hover { background: rgba(255, 255, 255, .14); }
.ah-media-sheet-zoom .ah-img-viewer-scale {
  min-width: 44px;
  padding: 0 2px;
  text-align: center;
  color: #e2e8f0;
  font-size: .78rem;
  font-variant-numeric: tabular-nums;
  opacity: .9;
  pointer-events: none;
}
.ah-media-sheet-close {
  position: absolute; top: 12px; left: 12px; z-index: 4;
  width: 40px; height: 40px; border: 0; border-radius: 12px;
  background: rgba(255,255,255,.12); color: #fff;
  font-size: 22px; line-height: 1; cursor: pointer;
}
.ah-media-sheet-close:hover { background: rgba(255,255,255,.22); }
.ah-media-sheet-progress {
  position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 4;
  display: none; gap: 4px;
  pointer-events: none;
}
.ah-media-sheet-media.is-gallery .ah-media-sheet-progress { display: flex; }
.ah-media-sheet-progress-seg {
  flex: 1; height: 3px; border-radius: 999px;
  background: rgba(255,255,255,.28);
  overflow: hidden;
}
.ah-media-sheet-progress-seg > i {
  display: block; height: 100%; width: 0;
  border-radius: inherit;
  background: #fff;
}
.ah-media-sheet-progress-seg.is-done > i { width: 100%; }
.ah-media-sheet-progress-seg.is-active > i {
  width: 0;
  animation: ah-media-progress-fill var(--ah-media-auto-ms, 2000ms) linear forwards;
}
.ah-media-sheet-progress-seg.is-active.is-paused > i {
  animation-play-state: paused;
}
@keyframes ah-media-progress-fill {
  from { width: 0; }
  to { width: 100%; }
}
.ah-media-sheet-text .ah-stream-more-link,
.ah-media-sheet-text [data-ah-expand] {
  display: none !important;
}
/* A：抖音式居中短 toast（仅移动端进预览闪一下） */
.ah-media-sheet .ah-img-viewer-hint {
  position: absolute;
  left: 50%;
  top: 46%;
  bottom: auto;
  z-index: 12;
  transform: translate(-50%, -50%);
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(0, 0, 0, .45);
  color: #fff;
  font-size: .875rem;
  font-weight: 500;
  letter-spacing: .02em;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .45);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .25s ease, visibility .25s;
}
.ah-media-sheet .ah-img-viewer-hint.is-on {
  opacity: 1;
  visibility: visible;
}
.ah-media-sheet .ah-img-viewer-hint[hidden] { display: none !important; }
/* C：本机首次蒙层引导 */
.ah-media-sheet-coach {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: rgba(0, 0, 0, .42);
  color: #fff;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.ah-media-sheet-coach.is-on { display: flex; }
.ah-media-sheet-coach[hidden] { display: none !important; }
.ah-media-sheet-coach-hand {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .85);
  position: relative;
  animation: ah-ms-coach-hand 1.4s ease-in-out infinite;
}
.ah-media-sheet-coach-hand::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: #fff;
}
.ah-media-sheet-coach-txt {
  font-size: .95rem;
  font-weight: 650;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .5);
}
@keyframes ah-ms-coach-hand {
  0% { transform: translateY(18px); opacity: .35; }
  45% { transform: translateY(-18px); opacity: 1; }
  100% { transform: translateY(-28px); opacity: 0; }
}
@media (min-width: 861px) {
  .ah-media-sheet .ah-img-viewer-hint,
  .ah-media-sheet-coach { display: none !important; }
}
.ah-media-sheet-feed-idx {
  position: absolute; right: 14px; top: 14px; z-index: 5;
  padding: 4px 10px; border-radius: 999px;
  background: rgba(0,0,0,.42); color: #fff;
  font-size: .72rem; font-weight: 700;
  pointer-events: none;
}
.ah-media-sheet-side {
  min-width: 0; min-height: 0;
  display: flex; flex-direction: column;
  background: var(--ah-surface, #fff);
  color: var(--ah-text, #0f172a);
  border-left: 1px solid rgba(255,255,255,.06);
}
.ah-media-sheet-side-hd {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--ah-line, #eef3f0);
  flex-shrink: 0;
}
.ah-media-sheet-side-hd .ah-stream-avatar,
.ah-media-sheet-side-hd .ah-stream-avatar-ph {
  width: 44px; height: 44px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
}
.ah-media-sheet-side-hd .ah-stream-avatar-ph {
  display: grid; place-items: center;
  background: linear-gradient(145deg, #14b8a6, #0f766e);
  color: #fff; font-weight: 800;
}
.ah-media-sheet-user { min-width: 0; flex: 1; }
.ah-media-sheet-user strong,
.ah-media-sheet-author {
  display: inline-flex; align-items: center; gap: 4px; font-size: .98rem;
}
.ah-media-sheet-author .ah-author-link { color: inherit; text-decoration: none; }
.ah-media-sheet-author .ah-author-link:hover strong { color: var(--ah-accent, #0f766e); }
.ah-media-sheet-user time {
  display: block; color: var(--ah-muted, #64748b); font-size: .78rem; margin-top: 2px;
}
.ah-media-sheet-side-bd {
  flex: 1; min-height: 0; overflow: auto;
  padding: 14px 16px 8px;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}
.ah-media-sheet-text {
  font-size: .95rem; line-height: 1.65;
  word-break: break-word;
  margin: 0 0 12px;
}
.ah-media-sheet-text .ah-stream-card-preview,
.ah-media-sheet-text .ah-stream-card-full { margin: 0; }
.ah-media-sheet-text .ah-flash-topic {
  color: var(--ah-accent-deep, #0b5f59);
  text-decoration: none;
  margin-right: .35em;
}
.ah-media-sheet-text .ah-flash-topic:hover { text-decoration: underline; }
.ah-media-sheet-text .ah-flash-quote-wrap { margin-top: 12px; }
.ah-media-sheet-side .ah-engage {
  margin-top: 8px; padding-top: 12px;
  border-top: 1px solid var(--ah-line, #eef3f0);
}
.ah-media-sheet-side button.ah-engage-item[data-ah-like],
.ah-media-sheet-side button.ah-engage-item[data-ah-like]:hover,
.ah-media-sheet-side button.ah-engage-item[data-ah-like].is-on,
.ah-media-sheet-side button.ah-engage-item[data-ah-like].is-on:hover {
  background: transparent !important;
  box-shadow: none !important;
}
.ah-media-sheet-cmt[hidden] { display: none !important; }
.ah-media-sheet-cmt-title {
  margin: 16px 0 10px;
  font-size: .88rem; font-weight: 700; color: var(--ah-muted, #64748b);
}
.ah-media-sheet-side .ah-flash-cmt-list { margin-bottom: 8px; }
.ah-media-sheet-side-ft {
  display: none; /* 评论改在侧栏内容区内，不再贴底弹出 */
}
.ah-media-sheet-cmt-form-host {
  margin-top: 12px;
  margin-bottom: 4px;
  padding-top: 12px;
  border-top: 1px solid var(--ah-line, #eef3f0);
}
.ah-media-sheet-cmt-form-host .ah-card-cmt { display: block !important; }
.ah-media-sheet-cmt-form-host .ah-card-cmt[hidden] { display: block !important; }
.ah-media-sheet-cmt-form-host .ah-flash-cmt-list { display: none; }
/* 移动端：沉浸大图 + 底部渐变叠字（非白底切屏）；点「全文」拉高暗色面板 */
.ah-media-sheet-sheet-handle {
  display: none;
}
@media (max-width: 860px) {
  .ah-media-sheet { --ah-media-right: 100%; }
  .ah-media-sheet-neighbor,
  .ah-media-sheet-page {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
  }
  .ah-media-sheet-media,
  .ah-media-sheet-neighbor-media {
    grid-area: 1 / 1;
    min-height: 0;
  }
  .ah-media-sheet-side,
  .ah-media-sheet-neighbor-side {
    grid-area: 1 / 1;
    align-self: end;
    z-index: 6;
    width: 100%;
    max-height: 38%;
    border: 0;
    border-radius: 0;
    overflow: hidden;
    color: #f8fafc;
    background: linear-gradient(
      to top,
      rgba(2, 6, 23, .92) 0%,
      rgba(2, 6, 23, .72) 55%,
      rgba(2, 6, 23, .28) 82%,
      transparent 100%
    );
    box-shadow: none;
  }
  .ah-media-sheet.is-text-expand .ah-media-sheet-side,
  .ah-media-sheet.is-text-expand .ah-media-sheet-neighbor-side {
    max-height: min(78vh, 78dvh);
    border-radius: 18px 18px 0 0;
    background: rgba(2, 6, 23, .94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 -12px 40px rgba(0, 0, 0, .35);
  }
  .ah-media-sheet-sheet-handle {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-shrink: 0;
    width: 100%;
    margin: 0;
    padding: 10px 16px 2px;
    border: 0;
    background: transparent;
    color: rgba(248, 250, 252, .55);
    font: inherit;
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .04em;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .ah-media-sheet-sheet-handle-bar {
    width: 40px;
    height: 4px;
    border-radius: 999px;
    background: rgba(248, 250, 252, .35);
  }
  .ah-media-sheet-sheet-handle-label {
    position: absolute;
    right: 16px;
    top: 10px;
    color: rgba(248, 250, 252, .72);
    font-size: .75rem;
    font-weight: 650;
  }
  .ah-media-sheet-side {
    position: relative;
  }
  .ah-media-sheet.is-text-expand .ah-media-sheet-sheet-handle-bar {
    background: rgba(45, 212, 191, .85);
  }
  .ah-media-sheet-side-hd {
    padding: 4px 16px 6px;
    border-bottom: 0;
  }
  .ah-media-sheet-side-hd .ah-stream-avatar,
  .ah-media-sheet-side-hd .ah-stream-avatar-ph {
    width: 36px;
    height: 36px;
  }
  .ah-media-sheet-user strong,
  .ah-media-sheet-author {
    color: #f8fafc;
    font-size: .92rem;
  }
  .ah-media-sheet-user time {
    color: rgba(226, 232, 240, .62);
  }
  .ah-media-sheet-side-bd {
    padding: 0 16px calc(12px + env(safe-area-inset-bottom, 0px));
  }
  .ah-media-sheet-text {
    color: rgba(248, 250, 252, .92);
    font-size: .9rem;
    line-height: 1.55;
    margin: 0 0 10px;
  }
  .ah-media-sheet:not(.is-text-expand) .ah-media-sheet-text {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .ah-media-sheet:not(.is-text-expand) .ah-media-sheet-cmt {
    display: none !important;
  }
  .ah-media-sheet-side .ah-engage {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
  }
  .ah-media-sheet-side .ah-engage-card .ah-engage-item {
    color: rgba(226, 232, 240, .72);
    padding: 4px 8px;
  }
  .ah-media-sheet-side .ah-engage-card .ah-engage-item:hover {
    background: rgba(255, 255, 255, .08);
    color: #fff;
  }
  .ah-media-sheet-side .ah-engage-card .ah-engage-item.is-on:not([data-ah-collect]) {
    background: rgba(251, 146, 60, .18);
    color: #fdba74;
  }
  .ah-media-sheet-cmt-title {
    color: rgba(226, 232, 240, .55);
  }
  .ah-media-sheet-cmt-form-host {
    border-top-color: rgba(255, 255, 255, .1);
  }
  .ah-media-sheet-text .ah-flash-topic {
    color: #5eead4;
  }
  .ah-media-sheet-neighbor-side {
    padding: 16px;
    justify-content: flex-end;
  }
  .ah-media-sheet-neighbor-side strong { color: #f8fafc; }
  .ah-media-sheet-neighbor-side p { color: rgba(226, 232, 240, .7); }
  .ah-media-sheet-progress {
    bottom: auto;
    top: 58px;
    left: 14px;
    right: 14px;
  }
  .ah-media-sheet-zoom {
    display: none !important;
  }
  .ah-media-sheet-media .ah-img-viewer-img {
    max-width: 100%;
    max-height: 100%;
  }
}

.ah-stream-detail-cover {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 14px;
}
/* 文章详情不展示封面（封面只给信息流卡片） */
.ah-post-detail .ah-stream-detail-cover {
  display: none !important;
}

.ah-stream-detail-full .ah-stream-detail-body {
  margin-bottom: 8px;
}

.ah-log-related {
  margin: 16px 0 4px;
}
.ah-log-related .cw-don-card {
  margin: 0;
}

/* 快讯详情 · 相关推荐（对齐信息流卡片质感） */
.ah-detail-related {
  margin: 22px 0 8px;
  padding: 18px 0 4px;
  border-top: 1px solid var(--ah-line, #eef3f0);
}
.ah-detail-related-hd {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.ah-detail-related-hd h2 {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 800;
  color: #0f172a;
}
.ah-detail-related-hd a {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ah-accent, #0f766e);
  text-decoration: none;
}
.ah-detail-related-hd a:hover { text-decoration: underline; }
.ah-detail-related-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ah-detail-related-card {
  display: flex;
  gap: 14px;
  align-items: stretch;
  padding: 14px 16px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--ah-line, #eef3f0);
  box-shadow: var(--ah-shadow, 0 1px 2px rgba(15, 23, 42, 0.04));
  text-decoration: none;
  color: inherit;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.ah-detail-related-card:hover {
  border-color: #cfe8e1;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  transform: translateY(-1px);
}
.ah-detail-related-cover {
  flex: 0 0 88px;
  width: 88px;
  height: 88px;
  min-width: 88px;
  min-height: 88px;
  max-height: 88px;
  align-self: center;
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: var(--ah-accent-soft, #e7f5f1);
}
.ah-detail-related-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: center center;
  display: block;
}
.ah-detail-related-body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  justify-content: center;
}
.ah-detail-related-badge {
  display: inline-block;
  vertical-align: middle;
  margin-left: 8px;
  font-size: 0.72rem;
  line-height: 1;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--ah-accent-soft, #dff3ec);
  color: var(--ah-accent-deep, #0b5f59);
  font-weight: 700;
  white-space: nowrap;
}
.ah-detail-related-body strong {
  font-size: 1.02rem;
  font-weight: 750;
  line-height: 1.4;
  color: #0f172a;
  display: block;
}
.ah-detail-related-body em {
  font-style: normal;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--ah-muted, #64748b);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (max-width: 640px) {
  .ah-detail-related-cover {
    flex-basis: 56px;
    width: 56px;
    height: 56px;
    min-width: 56px;
    min-height: 56px;
    max-height: 56px;
  }
  .ah-detail-related-card {
    padding: 10px;
  }
}

.ah-engage {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 4px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #eef3f0;
}
@media (max-width: 640px) {
  .ah-post-detail > .ah-engage {
    flex-wrap: nowrap;
    gap: 4px;
    align-items: stretch;
  }
  .ah-post-detail > .ah-engage .ah-engage-item {
    flex: 1 1 0;
    min-width: 0;
    justify-content: center;
    padding: 8px 4px;
    font-size: 0.78rem;
    gap: 4px;
    white-space: nowrap;
  }
  .ah-post-detail > .ah-engage .ah-engage-item em {
    font-size: 0.78rem;
  }
}
.ah-engage-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 0;
  background: #f5f8f6;
  color: #4b5c55;
  border-radius: 999px;
  padding: 8px 12px;
  font: inherit;
  font-size: 0.86rem;
  cursor: pointer;
  text-decoration: none;
}
/* 图标 + 数字（无文字标签） */
.ah-engage-item > .ah-ico:only-child {
  margin: 0;
}
a.ah-engage-item:hover,
button.ah-engage-item:hover {
  background: var(--ah-accent-soft);
  color: var(--ah-accent-deep);
}
/* 点赞：无色底，仅图标变色 + 数字 */
.ah-engage-item.is-on:not([data-ah-collect]) {
  background: transparent;
  color: #c2410c;
}
.ah-engage .ah-engage-item[data-ah-like].is-on,
.ah-engage-card .ah-engage-item[data-ah-like].is-on,
.ah-post-detail .ah-engage-item[data-ah-like].is-on,
button.ah-engage-item[data-ah-like].is-on,
.ah-media-sheet-side .ah-engage-item[data-ah-like].is-on {
  background: transparent !important;
}
/* 收藏：全站一律无色底，仅图标+数字 */
.ah-engage .ah-engage-item[data-ah-collect],
.ah-engage .ah-engage-item[data-ah-collect].is-on,
.ah-engage-card .ah-engage-item[data-ah-collect],
.ah-engage-card .ah-engage-item[data-ah-collect].is-on,
.ah-post-detail .ah-engage-item[data-ah-collect],
.ah-post-detail .ah-engage-item[data-ah-collect].is-on,
button.ah-engage-item[data-ah-collect].is-on {
  background: transparent !important;
  color: var(--ah-muted, #4b5c55) !important;
  box-shadow: none !important;
}
.ah-engage .ah-engage-item[data-ah-collect]:hover,
.ah-engage-card .ah-engage-item[data-ah-collect]:hover,
.ah-post-detail .ah-engage-item[data-ah-collect]:hover {
  background: var(--ah-accent-soft) !important;
  color: var(--ah-accent-deep) !important;
}
.ah-engage-item.is-disabled,
.ah-engage-item.is-disabled:hover {
  opacity: 0.55;
  cursor: default;
  background: #f5f8f6;
  color: #8a9690;
}
.ah-engage-item.is-open {
  background: var(--ah-accent-soft);
  color: var(--ah-accent-deep);
}
.ah-engage-item em { font-style: normal; font-weight: 700; }
.ah-card-cmt[hidden],
.ah-card-cmt:not(.is-open) {
  display: none !important;
}
.ah-card-cmt.is-open {
  display: block !important;
  width: 100%;
  box-sizing: border-box;
  flex: 0 0 auto;
  margin: 10px 0 0;
  padding: 12px 0 4px;
  border-radius: 0;
  background: transparent;
  border: 0;
  border-top: 1px solid #eef3f0;
}
.ah-card-cmt-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.ah-card-cmt-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: #eef3f0;
}
.ah-card-cmt-avatar-ph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #7a8a83;
  font-size: 0.85rem;
  font-weight: 700;
}
.ah-card-cmt-main {
  flex: 1;
  min-width: 0;
}
.ah-card-cmt .ah-comment-form textarea,
.ah-card-cmt-main textarea {
  width: 100%;
  min-height: 64px;
  border: 1px solid var(--ah-line);
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  font-size: 0.92rem;
  resize: vertical;
  background: #f7faf8;
  box-sizing: border-box;
}
.ah-card-cmt .ah-comment-form textarea:focus,
.ah-card-cmt-main textarea:focus {
  outline: none;
  border-color: var(--ah-accent);
  background: #fff;
}
.ah-card-cmt .ah-comment-login-tip {
  padding: 8px 2px;
}
.ah-card-cmt .ah-comment-form-ft,
.ah-card-cmt-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.ah-card-cmt .ah-comment-tip {
  margin-right: auto;
}
.ah-card-cmt .ah-btn {
  min-width: 72px;
  border-radius: 999px;
  padding: 7px 16px;
}
.ah-flash-cmt-list {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ah-flash-cmt-item {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.ah-flash-cmt-body {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  line-height: 1.45;
  color: #334155;
}
.ah-flash-cmt-body strong {
  color: #0f172a;
  font-weight: 600;
  margin-right: 6px;
}
.ah-flash-cmt-body time {
  color: #94a3b8;
  font-size: 12px;
}
.ah-flash-cmt-body p {
  margin: 4px 0 0;
  word-break: break-word;
}
.ah-flash-cmt-reply {
  color: #64748b;
}
.ah-card-cmt .ah-comment-guest {
  margin-top: 8px;
}
.ah-card-captcha {
  height: 30px;
  border-radius: 6px;
  cursor: pointer;
  vertical-align: middle;
}
.ah-ico {
  display: inline-block;
  width: 1.05em;
  height: 1.05em;
  flex-shrink: 0;
  background-color: currentColor;
  -webkit-mask: center / contain no-repeat;
  mask: center / contain no-repeat;
}
.ah-ico-view {
  -webkit-mask-image: url(icons/view.svg);
  mask-image: url(icons/view.svg);
}
.ah-ico-like {
  -webkit-mask-image: url(icons/like.svg);
  mask-image: url(icons/like.svg);
}
.ah-ico-collect {
  -webkit-mask-image: url(icons/collect.svg);
  mask-image: url(icons/collect.svg);
}
.ah-ico-com {
  -webkit-mask-image: url(icons/comment.svg);
  mask-image: url(icons/comment.svg);
}
.ah-ico-share {
  -webkit-mask-image: url(icons/share.svg);
  mask-image: url(icons/share.svg);
}
.ah-engage-item.is-on .ah-ico-like {
  background-color: #c2410c;
}
.ah-engage-item[data-ah-collect] .ah-ico-collect,
.ah-engage-item[data-ah-collect].is-on .ah-ico-collect {
  background-color: currentColor !important;
}

.ah-linkish {
  border: 0; background: transparent; color: var(--ah-muted);
  font: inherit; font-size: 0.82rem; cursor: pointer; padding: 0;
}
.ah-linkish:hover { color: var(--ah-accent); }

.ah-detail-cmt[hidden],
.ah-detail-cmt:not(.is-open) {
  display: none !important;
}
.ah-detail-cmt.is-open {
  display: block !important;
  width: 100%;
  box-sizing: border-box;
  margin: 12px 0 0;
  padding: 12px 0 4px;
  border-top: 1px solid #eef3f0;
}
.ah-detail-cmt .ah-card-cmt-main textarea {
  width: 100%;
  min-height: 64px;
  border: 1px solid var(--ah-line);
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  font-size: 0.92rem;
  resize: vertical;
  background: #f7faf8;
  box-sizing: border-box;
}
.ah-detail-cmt .ah-card-cmt-main textarea:focus {
  outline: none;
  border-color: var(--ah-accent);
  background: #fff;
}
.ah-detail-cmt .ah-btn {
  min-width: 72px;
  border-radius: 999px;
  padding: 7px 16px;
}
.ah-comments {
  margin-top: 22px;
  padding-top: 8px;
  border-top: 1px solid #eef3f0;
}
.ah-comments-hd h2 {
  margin: 0 0 14px;
  font-size: 1.05rem;
}
.ah-comment-login-tip {
  color: var(--ah-muted);
  font-size: 0.92rem;
  padding: 12px 0;
}
.ah-comment-form textarea {
  width: 100%;
  border: 1px solid var(--ah-line);
  border-radius: 14px;
  padding: 12px 14px;
  font: inherit;
  resize: vertical;
  background: #fff;
  box-sizing: border-box;
}
.ah-comment-guest {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}
.ah-comment-guest input {
  border: 1px solid var(--ah-line);
  border-radius: 10px;
  padding: 9px 12px;
  font: inherit;
}
.ah-comment-captcha {
  grid-column: 1 / -1;
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
}
.ah-captcha { height: 36px; border-radius: 8px; cursor: pointer; }
.ah-captcha-input {
  border: 1px solid var(--ah-line); border-radius: 10px; padding: 8px 10px; width: 120px; font: inherit;
}
.ah-comment-form-ft {
  display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 12px; flex-wrap: wrap;
}
.ah-comment-tip { color: var(--ah-muted); font-size: 0.86rem; margin-right: auto; }
.ah-comment-list { margin-top: 18px; display: flex; flex-direction: column; gap: 14px; }

.ah-cmt {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 10px;
}
.ah-cmt.is-child {
  margin-top: 12px;
  margin-left: 12px;
  padding-left: 12px;
  border-left: 2px solid #e8efeb;
}
.ah-cmt-avatar {
  width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: #eef3f0;
}
.ah-cmt-meta {
  display: flex; gap: 10px; align-items: baseline; margin-bottom: 4px;
}
.ah-cmt-meta time { color: var(--ah-muted); font-size: 0.78rem; }
.ah-cmt-content {
  line-height: 1.65; font-size: 0.92rem; color: #33403b; word-break: break-word;
}
.ah-cmt-reply {
  border: 0; background: transparent; color: var(--ah-muted);
  font: inherit; font-size: 0.8rem; cursor: pointer; padding: 4px 0; margin-top: 4px;
}
.ah-cmt-reply:hover { color: var(--ah-accent); }

@media (max-width: 640px) {
  .ah-comment-guest { grid-template-columns: 1fr; }
  .ah-cmt.is-child { margin-left: 0; }
}

/* hot product rail */
.ah-home-rail {
  background: #fff;
  border: 1px solid var(--ah-line);
  border-radius: 18px;
  padding: 14px 16px 12px;
  box-shadow: var(--ah-shadow);
  margin-bottom: 14px;
}
.ah-home-rail-hd {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px; gap: 10px;
}
.ah-home-rail-hd h2 { margin: 0; font-size: 1rem; }
.ah-home-rail-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.ah-home-rail-hd a { color: var(--ah-accent); font-size: 0.84rem; font-weight: 600; }
.ah-home-rail-swap {
  appearance: none; border: 0; background: transparent; cursor: pointer;
  color: var(--ah-muted); font-size: 0.84rem; font-weight: 600; padding: 0;
}
.ah-home-rail-swap:hover { color: var(--ah-accent); }
.ah-home-rail-swap.is-loading { opacity: 0.55; pointer-events: none; }
.ah-home-rail-track {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.ah-home-rail-card {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid transparent;
  background: #f8faf9;
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
  min-height: 76px;
}
.ah-home-rail-card:hover {
  border-color: #b7e4db;
  background: #fff;
  transform: translateY(-1px);
}
.ah-home-rail-card img,
.ah-home-rail-ph {
  width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0;
  object-fit: cover;
}
.ah-home-rail-ph {
  display: grid; place-items: center;
  background: var(--ah-accent-soft); color: var(--ah-accent-deep); font-weight: 800;
}
.ah-home-rail-card strong {
  display: block; font-size: 0.88rem; line-height: 1.3; margin-bottom: 4px;
}
.ah-home-rail-card em {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-style: normal; color: var(--ah-muted); font-size: 0.76rem; line-height: 1.4;
}

/* 首页 H1 默认屏幕隐藏（SEO 仍保留唯一 H1）；.is-visible 才占版面 */
.ah-home-h1 {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.ah-home-h1.is-visible {
  position: static !important;
  width: auto !important;
  height: auto !important;
  margin: 0 0 6px !important;
  padding: 2px 2px 0 !important;
  overflow: visible !important;
  clip: auto !important;
  white-space: normal !important;
  border: 0 !important;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ah-text);
  letter-spacing: 0.01em;
}
.ah-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.ah-stream-tabs {
  display: flex; justify-content: center; gap: 28px;
  padding: 4px 0 12px; margin-bottom: 8px;
}
.ah-stream-tabs a {
  position: relative;
  color: var(--ah-muted);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 8px 4px 12px;
}
.ah-stream-tabs a.is-active { color: var(--ah-text); }
.ah-stream-tabs a.is-active::after {
  content: "";
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 28px; height: 3px; border-radius: 999px;
  background: var(--ah-accent);
}

/* 最新 Tab：有新内容浮层（X 风格） */
.ah-new-content-pill {
  position: sticky;
  top: 10px;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  max-width: calc(100% - 24px);
  margin: -4px auto 12px;
  padding: 8px 16px 8px 10px;
  border: 0;
  border-radius: 999px;
  background: var(--ah-accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 6px 20px rgba(15, 118, 110, 0.28);
  cursor: pointer;
  animation: ah-new-pill-in 0.28s ease-out;
}
.ah-new-content-pill[hidden] {
  display: none !important;
}
.ah-new-content-pill:hover {
  background: var(--ah-accent-deep);
}
.ah-new-content-avs {
  display: inline-flex;
  align-items: center;
}
.ah-new-content-avs img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  margin-left: -8px;
  background: #fff;
}
.ah-new-content-avs img:first-child {
  margin-left: 0;
}
@keyframes ah-new-pill-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* X-style inline flash composer */
.ah-composer {
  display: flex; gap: 12px; align-items: flex-start;
  background: #fff; border: 1px solid var(--ah-line); border-radius: 18px;
  padding: 14px 16px 12px; box-shadow: var(--ah-shadow); margin-bottom: 14px;
}
.ah-composer.is-focus {
  border-color: rgba(15, 118, 110, 0.35);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.12), var(--ah-shadow);
}
.ah-composer-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.ah-composer-text-wrap {
  position: relative;
  width: 100%;
  min-height: 72px;
}
.ah-composer-highlight {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 4px 5.5rem 22px 0;
  border: 0;
  overflow: hidden;
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-wrap: break-word;
  font: inherit;
  font-size: 1.15rem;
  line-height: 1.45;
  font-weight: 400;
  letter-spacing: normal;
  color: var(--ah-ink, #0f172a);
  pointer-events: none;
  z-index: 0;
  box-sizing: border-box;
}
/* 话题仅改颜色，字重/字距必须与 textarea 一致，否则光标会偏到话题中间 */
.ah-composer-highlight .ah-composer-topic {
  color: #2563eb;
  font-weight: inherit;
  letter-spacing: inherit;
}
.ah-composer-text {
  position: relative;
  z-index: 1;
  width: 100%; border: 0; outline: none; resize: none;
  font: inherit; font-size: 1.15rem; line-height: 1.45; font-weight: 400;
  color: transparent;
  caret-color: var(--ah-ink, #0f172a);
  -webkit-text-fill-color: transparent;
  background: transparent; min-height: 52px; max-height: none;
  overflow-y: hidden; padding: 4px 5.5rem 22px 0;
  box-sizing: border-box;
  field-sizing: content; /* 支持的浏览器原生随内容增高 */
}
/* 昵称单独一行；内容声明回到输入框右下角（微博式） */
.ah-composer-who {
  display: flex;
  align-items: center;
  min-width: 0;
}
.ah-composer-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ah-text);
  line-height: 1.3;
}
.ah-composer-text-wrap .ah-ai-declare {
  position: absolute;
  right: 0;
  bottom: 2px;
  z-index: 3;
}
.ah-ai-declare {
  position: relative;
  z-index: 2;
}
.ah-ai-declare-trigger {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  border: 0;
  background: transparent;
  color: #8b9590;
  font: inherit;
  font-size: 0.75rem;
  padding: 2px 4px;
  cursor: pointer;
  border-radius: 6px;
  line-height: 1.3;
}
.ah-ai-declare-trigger:hover,
.ah-ai-declare.is-active .ah-ai-declare-trigger {
  color: #5f6b66;
}
.ah-ai-declare-caret {
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 3.5px solid transparent;
  border-right: 3.5px solid transparent;
  border-top: 4px solid currentColor;
  opacity: 0.75;
  margin-top: 1px;
}
.ah-ai-declare-menu {
  position: absolute;
  right: 0;
  left: auto;
  bottom: calc(100% + 6px);
  top: auto;
  min-width: 132px;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--ah-line);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(20, 32, 28, 0.12);
  display: flex;
  flex-direction: column;
  gap: 2px;
  z-index: 5;
}
.ah-ai-declare-menu[hidden] { display: none !important; }
.ah-ai-declare-opt {
  border: 0;
  background: transparent;
  text-align: left;
  padding: 7px 10px;
  border-radius: 7px;
  font: inherit;
  font-size: 0.82rem;
  color: var(--ah-text);
  cursor: pointer;
}
.ah-ai-declare-opt:hover,
.ah-ai-declare-opt.is-on {
  background: var(--ah-accent-soft);
  color: var(--ah-accent-deep);
}
.ah-ai-declare.is-inline {
  position: static;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.ah-ai-declare-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.ah-ai-declare-chip {
  border: 1px solid var(--ah-line);
  background: #fff;
  border-radius: 999px;
  padding: 5px 12px;
  font: inherit;
  font-size: 0.82rem;
  color: var(--ah-muted);
  cursor: pointer;
}
.ah-ai-declare-chip.is-on {
  border-color: rgba(15, 118, 110, 0.35);
  background: var(--ah-accent-soft);
  color: var(--ah-accent-deep);
  font-weight: 600;
}
/* 快讯昵称下：声明 + 时间同一行 */
.ah-stream-submeta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0 6px;
  margin-top: 1px;
  line-height: 1.3;
  color: var(--ah-muted);
  font-size: 0.78rem;
}
.ah-stream-submeta time {
  color: inherit;
  font-size: inherit;
}
.ah-stream-submeta .ah-ai-mark + time::before {
  content: '·';
  margin-right: 6px;
  color: #c5ccd6;
}
.ah-ai-mark-row {
  margin: 1px 0 2px;
  line-height: 1.2;
}
.ah-ai-mark {
  display: inline-block;
  font-size: 0.72rem;
  color: #9aa5a0;
  letter-spacing: 0.02em;
  padding: 0;
  background: transparent;
  border: 0;
}
.ah-stream-submeta .ah-ai-mark {
  font-size: inherit;
}
/* 文章底部声明 */
.ah-ai-notice {
  margin: 18px 0 4px;
  padding: 10px 0 0;
  border-top: 1px dashed var(--ah-line);
  color: #8b9690;
  font-size: 0.8rem;
  line-height: 1.55;
}
.ah-ai-notice-text { display: block; }

/* 前台写文章（左宽编辑 / 右窄发布设置，站点侧栏保留） */
.ah-write-page { width: 100%; position: relative; }
.ah-write-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 12px;
  align-items: start;
  min-height: min(78vh, 820px);
}
.ah-write-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.ah-write-shell {
  background: #fff;
  border: 1px solid var(--ah-line);
  border-radius: 16px;
  box-shadow: var(--ah-shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: min(78vh, 820px);
}
.ah-write-hd {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--ah-line);
  flex-shrink: 0;
}
.ah-write-hd h1 {
  margin: 0;
  flex: 1;
  font-size: 1.05rem;
}
.ah-write-hd-spacer { flex: 1; }
.ah-write-back {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: var(--ah-muted);
  text-decoration: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
}
.ah-write-back:hover { background: #f3f6f5; color: var(--ah-text); }
.ah-write-body {
  padding: 8px 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  min-height: 0;
}
.ah-write-title {
  width: 100%;
  border: 0;
  padding: 10px 6px 4px;
  font: inherit;
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  outline: none;
}
.ah-write-md {
  border: 1px solid var(--ah-line);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  min-height: 420px;
}
.ah-write-page .editormd {
  margin: 0;
  border-radius: 12px;
  border-color: var(--ah-line);
}
.ah-write-page .editormd .CodeMirror,
.ah-write-page .editormd .editormd-preview {
  border-radius: 0 0 12px 12px;
}
/* 去掉 CodeMirror 当前行蓝色底 */
.ah-write-page .CodeMirror-activeline-background,
.ah-write-page .CodeMirror-activeline .CodeMirror-linebackground {
  background: transparent !important;
}
.ah-write-page .editormd-image-medialib-btn { display: none !important; }
.ah-write-page #editor-md-dialog { position: relative; z-index: 10050; }
.ah-write-content {
  width: 100%;
  min-height: 360px;
  border: 0;
  resize: vertical;
  font: inherit;
  font-size: 1rem;
  line-height: 1.8;
  outline: none;
  padding: 8px 2px 16px;
}
.ah-write-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  border-top: 1px solid var(--ah-line);
  background: #fbfcfc;
  flex-shrink: 0;
}
.ah-write-foot-left { color: var(--ah-muted); font-size: 0.82rem; }
.ah-write-foot-right { display: flex; align-items: center; gap: 8px; }
.ah-write-btn {
  border: 0;
  border-radius: 8px;
  padding: 8px 16px;
  font: inherit;
  font-size: 0.88rem;
  cursor: pointer;
}
.ah-write-btn-ghost {
  background: #eef1f0;
  color: var(--ah-text);
}
.ah-write-btn-ghost:hover { background: #e4e9e7; }
.ah-write-btn-primary {
  background: var(--ah-accent);
  color: #fff;
  font-weight: 650;
}
.ah-write-btn-primary:hover { filter: brightness(0.96); }
.ah-write-btn-primary:disabled { opacity: 0.55; cursor: wait; }
.ah-write-tip {
  margin: 0;
  padding: 0 16px 10px;
  font-size: 0.84rem;
  color: #dc2626;
}
.ah-write-tip.is-ok { color: var(--ah-accent-deep); }

/* 右侧窄栏发布设置（创作声明为下拉） */
.ah-write-pub-panel {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  background: #fff;
  border: 1px solid var(--ah-line);
  border-radius: 16px;
  box-shadow: var(--ah-shadow);
  overflow: visible;
  position: sticky;
  top: 18px;
  max-height: calc(100vh - 36px);
  z-index: 6;
}
.ah-write-pub-panel.is-flash {
  box-shadow: 0 0 0 2px var(--ah-accent), var(--ah-shadow);
}
.ah-write-pub-panel.is-ai-open {
  z-index: 40;
}
.ah-write-pub-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 14px 12px;
  border-bottom: 1px solid var(--ah-line);
  flex-shrink: 0;
}
.ah-write-pub-hd h2 {
  margin: 0;
  font-size: 1rem;
}
.ah-write-pub-bd {
  flex: 1;
  overflow: visible;
  padding: 4px 0 8px;
  min-height: 0;
}
.ah-write-pub-section {
  padding: 14px;
  border-bottom: 1px solid #f0f3f2;
}
.ah-write-side-cover {
  margin-top: 8px;
  border-radius: 12px;
  overflow: hidden;
  background: #f4f7f6;
  border: 1px dashed #c9d4cf;
}
.ah-write-side-cover.has-cover {
  border-style: solid;
  border-color: var(--ah-line);
  background: #0f172a;
}
.ah-write-side-cover-add {
  display: flex;
  width: 100%;
  min-height: 110px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  background: transparent;
  color: #6b7872;
  font: inherit;
  font-size: 0.86rem;
  cursor: pointer;
}
.ah-write-side-cover-add:hover { color: var(--ah-accent-deep); background: #eef4f2; }
.ah-write-cover-add-ico {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #e4ebe8;
  font-size: 1.1rem;
  line-height: 1;
}
.ah-write-side-cover-preview {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #0f172a;
}
.ah-write-side-cover-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ah-write-side-cover-actions {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  display: flex;
  gap: 6px;
}
.ah-write-side-cover-actions .ah-write-btn {
  flex: 1;
  padding: 6px 8px;
  font-size: 0.78rem;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
}
.ah-write-pub-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px;
  border-bottom: 1px solid #f0f3f2;
}
.ah-write-pub-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--ah-text);
  flex-shrink: 0;
  margin: 0;
}
.ah-write-pub-section > .ah-write-pub-label {
  margin-bottom: 0;
}
.ah-write-pub-help {
  display: inline-flex;
  width: 15px;
  height: 15px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid #c5cec9;
  color: #8b9690;
  font-size: 0.65rem;
  cursor: help;
}
.ah-write-pub-ctrl { position: relative; min-width: 0; z-index: 2; }
.ah-write-pub-select {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  color: #64706b;
  font: inherit;
  font-size: 0.88rem;
  cursor: pointer;
  padding: 4px 2px;
  max-width: 140px;
}
.ah-write-pub-select:hover { color: var(--ah-text); }
.ah-write-pub-menu {
  position: absolute;
  right: 0;
  bottom: calc(100% + 6px);
  top: auto;
  min-width: 132px;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--ah-line);
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(20, 32, 28, 0.12);
  display: flex;
  flex-direction: column;
  gap: 2px;
  z-index: 50;
}
.ah-write-pub-menu[hidden] { display: none !important; }
.ah-write-pub-opt {
  border: 0;
  background: transparent;
  text-align: left;
  padding: 8px 10px;
  border-radius: 8px;
  font: inherit;
  font-size: 0.88rem;
  color: var(--ah-text);
  cursor: pointer;
}
.ah-write-pub-opt:hover,
.ah-write-pub-opt.is-on {
  background: var(--ah-accent-soft);
  color: var(--ah-accent-deep);
}
.ah-write-pub-hint {
  margin: 10px 14px 0;
  font-size: 0.75rem;
  color: var(--ah-muted);
  line-height: 1.5;
}
.ah-write-pub-ft {
  display: flex;
  justify-content: stretch;
  gap: 8px;
  padding: 12px 14px;
  border-top: 1px solid var(--ah-line);
  background: #fbfcfc;
  flex-shrink: 0;
  border-radius: 0 0 16px 16px;
  position: relative;
  z-index: 1;
}
.ah-write-btn-block {
  width: 100%;
  text-align: center;
}
@media (max-width: 1100px) {
  .ah-write-layout {
    grid-template-columns: minmax(0, 1fr) 220px;
  }
}
@media (max-width: 980px) {
  .ah-write-layout {
    grid-template-columns: 1fr;
  }
  .ah-write-pub-panel {
    position: static;
    max-height: none;
  }
}
@media (max-width: 720px) {
  .ah-write-body { padding: 6px 10px; }
  .ah-write-md { min-height: 320px; }
}
.ah-composer-text::placeholder {
  color: #94a3b8;
  -webkit-text-fill-color: #94a3b8;
}
.ah-composer-quote {
  position: relative;
  display: block;
  margin: 4px 0 2px;
}
.ah-composer-quote[hidden] { display: none !important; }
.ah-composer-quote-clear {
  position: absolute; top: 8px; right: 8px; z-index: 2;
  border: 0; background: rgba(255,255,255,.92); color: #94a3b8; cursor: pointer;
  width: 28px; height: 28px; border-radius: 999px;
  font-size: 1.05rem; line-height: 1; padding: 0;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .08);
}
.ah-composer-quote-clear:hover { color: #0f172a; background: #fff; }
/* 引用卡片：发布框预览 + 发出后信息流 */
.ah-flash-quote-card {
  display: block;
  text-decoration: none !important;
  color: inherit;
  border: 1px solid var(--ah-line, #e2e8f0);
  border-radius: 14px;
  background: #fff;
  padding: 12px 14px;
  transition: border-color .12s ease, background .12s ease;
}
.ah-flash-quote-card:hover {
  border-color: #cbd5e1;
  background: #fafbfc;
}
.ah-flash-quote-wrap,
.ah-stream-card-content .ah-flash-quote-card,
.ah-stream-detail-body .ah-flash-quote-card {
  margin-top: 10px;
}
.ah-stream-more-link + .ah-stream-thumbs {
  margin-top: 8px;
}
.ah-stream-more-link + .ah-flash-quote-wrap,
.ah-stream-thumbs + .ah-flash-quote-wrap {
  margin-top: 8px;
}
.ah-flash-quote-hd {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 10px; min-width: 0;
}
.ah-flash-quote-av {
  width: 28px; height: 28px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0; display: block;
  background: #eef3f0;
}
.ah-flash-quote-av-ph {
  display: grid; place-items: center;
  font-size: .72rem; font-weight: 700; color: #64748b;
}
.ah-flash-quote-who {
  min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px;
}
.ah-flash-quote-name {
  font-size: .86rem; font-weight: 700; color: #0f172a;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ah-flash-quote-meta {
  font-size: .78rem; color: #94a3b8;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ah-flash-quote-bd {
  display: flex; gap: 12px; align-items: flex-start; min-width: 0;
}
.ah-flash-quote-cover {
  width: 72px; height: 72px; border-radius: 10px;
  object-fit: cover; flex-shrink: 0; display: block;
  background: #eef3f0;
}
.ah-flash-quote-text {
  min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 4px;
}
.ah-flash-quote-title {
  font-size: .92rem; font-weight: 700; color: #0f172a; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.ah-flash-quote-excerpt {
  font-size: .82rem; color: #64748b; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.ah-composer-quote .ah-flash-quote-card { padding-right: 40px; }
.ah-composer.is-edit .ah-composer-send { min-width: 4.5rem; }
.ah-engage-text { font-size: .82rem; font-weight: 600; }
.ah-composer-guest-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 44px; padding: 4px 0;
}
.ah-composer-guest-text {
  flex: 1; min-width: 0;
  font-size: 1.15rem; line-height: 1.45; color: #94a3b8;
}
.ah-composer-guest-row .ah-composer-send {
  flex-shrink: 0;
}
.ah-composer-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding-top: 8px; border-top: 1px solid var(--ah-line);
}
.ah-composer-tools { position: relative; display: flex; align-items: center; gap: 2px; min-width: 0; flex-wrap: wrap; }
.ah-composer-tools-sep {
  width: 1px; height: 16px; margin: 0 6px;
  background: var(--ah-line); flex-shrink: 0;
}
.ah-composer-icon-btn {
  appearance: none; border: 0;
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 999px; cursor: pointer;
  color: var(--ah-accent-deep); background: transparent;
  transition: background .12s ease, color .12s ease; padding: 0; font: inherit;
}
.ah-composer-icon-btn:hover { background: var(--ah-accent-soft); }
.ah-composer-icon-btn svg { width: 20px; height: 20px; display: block; pointer-events: none; }
.ah-composer-fmt-btn { width: auto; min-width: 34px; padding: 0 8px; }
.ah-composer-fmt-btn span {
  font-size: .78rem; font-weight: 700; letter-spacing: .02em;
  color: inherit; line-height: 1; pointer-events: none;
}
.ah-composer-fmt-btn[data-ah-fmt="bold"] span { font-size: .92rem; font-weight: 800; }
.ah-composer-file {
  position: absolute !important;
  width: 1px !important; height: 1px !important;
  padding: 0 !important; margin: -1px !important;
  overflow: hidden !important; clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important; border: 0 !important;
}
.ah-composer-tool {
  color: var(--ah-accent-deep); font-size: 0.86rem; font-weight: 600;
  text-decoration: none; padding: 6px 8px; margin-left: 4px;
  border-radius: 999px; border: 0; background: transparent; cursor: pointer; font: inherit;
}
.ah-composer-tool:hover { background: var(--ah-accent-soft); text-decoration: none; }
.ah-composer-media {
  display: flex; flex-wrap: wrap; gap: 8px; padding: 2px 0 4px;
}
.ah-composer-thumb {
  position: relative; width: 96px; height: 96px; border-radius: 14px;
  overflow: hidden; border: 1px solid var(--ah-line); background: #f8fafc;
  cursor: grab;
}
.ah-composer-thumb.is-dragging { opacity: 0.55; cursor: grabbing; }
.ah-composer-thumb.is-drop { outline: 2px solid var(--ah-accent); outline-offset: 2px; }
.ah-composer-thumb-more {
  position: absolute; right: 6px; bottom: 6px;
  background: rgba(15, 23, 42, 0.72); color: #fff;
  font-size: 0.72rem; font-weight: 700;
  padding: 2px 7px; border-radius: 999px;
}
.ah-composer-thumb-expand {
  appearance: none; border: 0; background: transparent; cursor: pointer;
  color: var(--ah-accent-deep); font-size: 0.8rem; font-weight: 600;
  padding: 4px 2px;
}
.ah-composer-thumb img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.ah-composer-thumb.is-uploading {
  display: grid; place-items: center; color: var(--ah-muted); font-size: 0.78rem;
}
.ah-composer-thumb-rm {
  appearance: none; border: 0; cursor: pointer;
  position: absolute; top: 4px; right: 4px;
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(15, 23, 42, 0.72); color: #fff;
  font-size: 14px; line-height: 1; display: grid; place-items: center;
}
.ah-composer-thumb-rm:hover { background: #0f172a; }
.ah-composer.is-dragover {
  border-color: rgba(15, 118, 110, 0.45);
  background: rgba(20, 184, 166, 0.06);
}
.ah-composer-count {
  font-size: 0.78rem; color: var(--ah-muted); font-variant-numeric: tabular-nums;
}
.ah-composer-count.is-warn { color: #ea580c; }
.ah-composer-count.is-over { color: #dc2626; font-weight: 700; }
.ah-composer.is-article-mode .ah-composer-send {
  background: #0f172a;
}
.ah-composer.is-article-mode .ah-composer-send:hover {
  background: #1e293b;
}
.ah-composer-send {
  appearance: none; border: 0; cursor: pointer;
  background: var(--ah-accent); color: #fff; font-weight: 700;
  border-radius: 999px; padding: 8px 18px; font-size: 0.9rem;
  white-space: nowrap; text-decoration: none; line-height: 1.2;
}
.ah-composer-send:hover { background: var(--ah-accent-deep); color: #fff; }
.ah-composer-send:disabled,
.ah-composer-send.is-disabled,
.ah-composer-send[aria-disabled="true"] {
  opacity: 0.45; cursor: pointer; background: var(--ah-accent);
}
.ah-composer-tip {
  margin: 0; font-size: 0.82rem; color: #dc2626;
}
.ah-composer-tip.is-ok { color: var(--ah-accent-deep); }

.ah-flash-over-text {
  margin: 0 0 16px;
  color: #33403b;
  font-size: 0.95rem;
  line-height: 1.65;
}
.ah-flash-over-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.ah-flash-over-keep {
  appearance: none;
  border: 1px solid var(--ah-line);
  background: #fff;
  color: #33403b;
  border-radius: 999px;
  padding: 8px 16px;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}
.ah-flash-over-keep:hover { background: #f3f5f4; }
.ah-flash-over-go {
  appearance: none;
  border: 0;
  background: var(--ah-accent);
  color: #fff;
  border-radius: 999px;
  padding: 8px 16px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.ah-flash-over-go:hover { background: var(--ah-accent-deep); }
.ah-flash-over-modal .ah-modal-panel-sm {
  width: min(400px, calc(100vw - 32px));
}

.ah-stream-feed { display: flex; flex-direction: column; gap: 14px; }
.ah-stream-card {
  background: #fff;
  border: 1px solid var(--ah-line);
  border-radius: 18px;
  padding: 16px 18px 12px;
  box-shadow: var(--ah-shadow);
}
.ah-stream-card-preview h1,
.ah-stream-detail-body h1 {
  margin: 0 0 .45em; font-size: 1.28rem; font-weight: 800; line-height: 1.3; color: #0f172a;
}
.ah-stream-card-preview h2,
.ah-stream-detail-body h2 {
  margin: 0 0 .4em; font-size: 1.08rem; font-weight: 750; line-height: 1.35; color: #0f172a;
}
.ah-stream-card-preview strong,
.ah-stream-detail-body strong { font-weight: 700; }
.ah-stream-card-hd {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}
.ah-stream-avatar {
  width: 44px; height: 44px; border-radius: 50%; object-fit: cover;
  background: var(--ah-accent-soft);
}
.ah-stream-avatar-ph {
  display: grid; place-items: center;
  color: var(--ah-accent-deep); font-weight: 800;
}
.ah-stream-author {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.ah-stream-author strong { font-size: 0.95rem; }
.ah-author-link { color: inherit; text-decoration: none; }
.ah-author-link:hover strong { color: var(--ah-accent); }
.ah-avatar-link {
  display: block; border-radius: 50%; flex-shrink: 0;
}
.ah-avatar-link:hover { opacity: 0.92; }
.ah-verified {
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px; vertical-align: -2px; margin-left: 4px;
  flex-shrink: 0; line-height: 0;
}
.ah-verified svg { display: block; width: 14px; height: 14px; }
.ah-verified-interest { color: #7c3aed; }      /* 兴趣认证 · 紫 */
.ah-verified-personal { color: #1d9bf0; }      /* 身份认证 · 蓝 */
.ah-verified-admin { color: #e11d48; }         /* 管理认证 · 红 */
.ah-verified-enterprise { color: #d97706; }    /* 企业认证 · 金 */

.ah-profile-name-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin: 0 0 4px;
}
.ah-profile-name-row .ah-profile-name {
  margin: 0;
}
.ah-verify-go {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--ah-line);
  border-radius: 999px;
  background: #fff;
  color: #0f172a;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 650;
  padding: 4px 12px 4px 6px;
  cursor: pointer;
  line-height: 1.2;
}
.ah-verify-go:hover { background: #f8fafc; border-color: #cbd5e1; }
.ah-verify-go-ico {
  display: inline-flex;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #1d9bf0;
  color: #fff;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ah-verify-go-ico svg { width: 12px; height: 12px; display: block; }
.ah-verify-go.is-pending {
  color: var(--ah-muted);
  cursor: default;
}
.ah-verify-go.is-pending .ah-verify-go-ico { background: #94a3b8; }

.ah-verify-benefits {
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}
.ah-verify-benefits li {
  position: relative;
  padding-left: 18px;
  color: #33403b;
  font-size: 0.9rem;
  line-height: 1.5;
}
.ah-verify-benefits li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ah-accent);
}
.ah-verify-type-grid {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}
.ah-verify-type-card {
  display: block;
  width: 100%;
  text-align: left;
  border: 1px solid var(--ah-line);
  border-radius: 14px;
  background: #fff;
  padding: 12px 14px;
  cursor: pointer;
  font: inherit;
}
.ah-verify-type-card:hover { border-color: #99f6e4; background: #f0fdfa; }
.ah-verify-type-card.is-on {
  border-color: var(--ah-accent);
  background: var(--ah-accent-soft);
  box-shadow: inset 0 0 0 1px var(--ah-accent);
}
.ah-verify-type-card strong { display: block; font-size: 0.95rem; margin-bottom: 4px; }
.ah-verify-type-card span { display: block; color: var(--ah-muted); font-size: 0.82rem; line-height: 1.45; }
.ah-verify-form[hidden] { display: none !important; }
.ah-verify-form .ah-modal-field { margin-bottom: 12px; }
.ah-stream-author .ah-verified,
.ah-profile-name .ah-verified,
.ah-side-user-name .ah-verified { position: relative; top: 1px; }

/* 文章详情：右侧栏顶部作者卡片 */
.ah-side-author[hidden] { display: none !important; }
.ah-side-author {
  margin: 0; /* 间距交给 .ah-stream-right 的 gap，避免与近期热议叠出双倍空隙 */
}
.ah-side-author-card {
  padding: 14px 12px 12px;
  border: 1px solid var(--ah-line, #eef3f0);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03);
}
.ah-side-author-top {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.ah-side-author-avatar-link {
  display: block;
  flex-shrink: 0;
  text-decoration: none;
}
.ah-side-author-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  object-fit: cover; display: block;
  background: var(--ah-accent-soft, #ecfdf5);
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.1);
}
.ah-side-author-avatar-ph {
  display: grid; place-items: center;
  font-size: 1.1rem; font-weight: 800; color: var(--ah-accent-deep, #0f766e);
}
.ah-side-user-name {
  display: flex; align-items: center; gap: 4px; flex-wrap: wrap;
  min-width: 0; flex: 1;
}
.ah-side-author-name {
  font-weight: 800; font-size: 0.98rem; color: inherit;
  text-decoration: none; line-height: 1.25;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  max-width: 100%;
}
.ah-side-author-name:hover { color: var(--ah-accent, #0f766e); }
.ah-side-author-bio {
  margin: 10px 0 8px; font-size: 0.8rem; line-height: 1.45;
  color: var(--ah-text, #0f172a);
}
.ah-side-author-stats {
  display: flex; gap: 12px; margin-bottom: 10px;
  font-size: 0.78rem; color: var(--ah-muted, #64748b);
}
.ah-side-author-stats em {
  font-style: normal; font-weight: 700; color: var(--ah-text, #0f172a);
  margin-right: 2px;
}
.ah-side-author-actions {
  display: flex; gap: 8px; flex-wrap: wrap;
}
.ah-side-author-btn {
  flex: 1 1 auto;
  min-width: 0;
  text-align: center;
  border: 1px solid var(--ah-line, #eef3f0);
  border-radius: 999px;
  background: var(--ah-accent, #0f766e);
  color: #fff;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 7px 10px;
  cursor: pointer;
  text-decoration: none;
}
.ah-side-author-btn.is-ghost {
  background: #fff;
  color: var(--ah-text, #0f172a);
}
.ah-side-author-btn.is-ghost:hover { background: rgba(15, 23, 42, 0.04); }
.ah-side-author-follow.is-on {
  background: #fff;
  color: var(--ah-text, #0f172a);
}
.ah-side-author-follow:hover { filter: brightness(0.96); }
.ah-side-author-follow.is-on:hover { background: rgba(15, 23, 42, 0.04); }
.ah-stream-badge {
  font-size: 0.72rem; color: var(--ah-accent-deep);
  background: var(--ah-accent-soft); border-radius: 999px; padding: 2px 8px;
}

/* User profile (middle panel) */
.ah-profile {
  background: #fff;
  border: 1px solid var(--ah-line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--ah-shadow);
  margin-bottom: 14px;
}
.ah-profile-banner {
  height: 140px;
  background: linear-gradient(120deg, #7c3aed 0%, #db2777 55%, #f97316 100%);
  background-size: cover;
  background-position: center;
}
.ah-profile-banner.has-image {
  background-color: #cbd5e1;
}
.ah-profile-card { padding: 0 18px 16px; }
.ah-profile-top {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-top: -36px; margin-bottom: 10px; gap: 12px;
}
.ah-profile-avatar {
  width: 88px; height: 88px; border-radius: 50%;
  object-fit: cover; border: 4px solid #fff;
  background: var(--ah-accent-soft);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
}
.ah-profile-avatar-ph {
  display: grid; place-items: center;
  font-size: 1.6rem; font-weight: 800; color: var(--ah-accent-deep);
}
.ah-profile-follow {
  border: 0; border-radius: 999px;
  background: #0f172a; color: #fff;
  font: inherit; font-size: 0.88rem; font-weight: 700;
  padding: 8px 16px; cursor: pointer;
}
.ah-profile-follow:hover { filter: brightness(1.08); }
.ah-profile-follow.is-on {
  background: rgba(15, 23, 42, 0.08);
  color: #0f172a;
  border: 1px solid rgba(15, 23, 42, 0.14);
}
.ah-profile-follow.is-on:hover { background: rgba(15, 23, 42, 0.12); }
.ah-profile-follow:disabled { opacity: 0.6; cursor: wait; }
.ah-profile-edit {
  border: 1px solid #0f172a;
  border-radius: 999px;
  background: #fff;
  color: #0f172a;
  font: inherit; font-size: 0.9rem; font-weight: 700;
  padding: 8px 16px; cursor: pointer;
}
.ah-profile-edit:hover { background: rgba(15, 23, 42, 0.05); }

/* Profile edit modal */
.ah-modal[hidden] { display: none !important; }
.ah-modal-panel-sm {
  max-width: 420px;
}
.ah-email-modal-desc {
  margin: 0 0 14px;
  color: var(--ah-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}
.ah-modal {
  position: fixed; inset: 0; z-index: 1200;
  display: grid; place-items: center;
  padding: 16px;
}
.ah-modal-mask {
  position: absolute; inset: 0;
  background: rgba(15, 23, 42, 0.45);
}
.ah-modal-panel {
  position: relative; z-index: 1;
  width: min(520px, 100%);
  max-height: min(90vh, 720px);
  overflow: auto;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.28);
}
.ah-modal-hd {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  position: sticky; top: 0; background: #fff; z-index: 1;
}
.ah-modal-hd h2 {
  margin: 0; text-align: center; font-size: 1.05rem; font-weight: 800;
}
.ah-modal-close {
  width: 36px; height: 36px; border: 0; border-radius: 50%;
  background: transparent; font-size: 1.4rem; cursor: pointer; color: #0f172a;
}
.ah-modal-close:hover { background: rgba(15, 23, 42, 0.06); }
.ah-modal-save {
  border: 0; border-radius: 999px;
  background: #0f172a; color: #fff;
  font: inherit; font-size: 0.9rem; font-weight: 800;
  padding: 8px 16px; cursor: pointer;
}
.ah-modal-save:hover { background: #1e293b; }
.ah-modal-save:disabled { opacity: 0.55; cursor: wait; }
.ah-modal-bd { padding: 16px 18px 22px; }
.ah-modal-banner-edit { margin-bottom: 16px; }
.ah-modal-banner-preview {
  height: 110px;
  border-radius: 14px;
  background: linear-gradient(120deg, #7c3aed 0%, #db2777 55%, #f97316 100%);
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(15, 23, 42, 0.08);
  margin-bottom: 10px;
}
.ah-modal-banner-preview.has-image { background-color: #cbd5e1; }
.ah-modal-banner-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.ah-modal-banner-btn {
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid #0f172a;
  border-radius: 999px;
  background: #0f172a; color: #fff;
  font: inherit; font-size: 0.84rem; font-weight: 700;
  padding: 7px 14px; cursor: pointer;
}
.ah-modal-banner-btn.ghost {
  background: #fff; color: #0f172a;
}
.ah-modal-banner-btn.ghost:hover { background: rgba(15, 23, 42, 0.05); }
.ah-modal-banner-btn:hover { opacity: 0.92; }

.ah-modal-avatar-row {
  display: flex; align-items: center; gap: 12px; margin-bottom: 16px;
}
.ah-modal-avatar {
  width: 64px; height: 64px; border-radius: 50%; object-fit: cover;
  background: #e2e8f0;
}
.ah-modal-avatar-ph {
  display: grid; place-items: center; font-weight: 800; color: #0f172a;
}
.ah-modal-avatar-tip { color: #64748b; font-size: 0.82rem; }
.ah-modal-field {
  display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px;
}
.ah-modal-field span {
  font-size: 0.82rem; font-weight: 700; color: #64748b;
}
.ah-modal-field input,
.ah-modal-field textarea {
  width: 100%;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 12px;
  padding: 10px 12px;
  font: inherit; font-size: 0.98rem;
  color: #0f172a; background: #fff;
  resize: vertical;
}
.ah-modal-field input:disabled {
  background: #f8fafc; color: #64748b;
}
.ah-modal-field input:focus,
.ah-modal-field textarea:focus {
  outline: none;
  border-color: #0f172a;
}
.ah-modal-tip {
  margin: 0; font-size: 0.86rem; color: #b91c1c;
}
.ah-modal-tip.is-ok { color: #0f766e; }
.ah-menu-btn {
  display: block; width: 100%;
  border: 0; background: transparent; text-align: left;
  padding: 12px 14px; border-radius: 12px;
  color: #0f172a; font: inherit; font-weight: 600; font-size: 0.92rem;
  cursor: pointer;
}
.ah-menu-btn:hover { background: rgba(15, 23, 42, 0.06); }
.ah-profile-name {
  margin: 0 0 4px; font-size: 1.35rem; line-height: 1.3;
  display: flex; align-items: center; gap: 8px;
}
.ah-profile-handle { color: var(--ah-muted); font-size: 0.92rem; margin-bottom: 8px; }
.ah-profile-bio {
  margin: 0 0 8px; color: #33403b; font-size: 0.95rem; line-height: 1.65;
}
.ah-profile-joined { color: var(--ah-muted); font-size: 0.82rem; margin-bottom: 12px; }
.ah-profile-stats {
  display: flex; flex-wrap: wrap; gap: 16px;
  color: var(--ah-muted); font-size: 0.9rem;
}
.ah-profile-stats em {
  font-style: normal; font-weight: 800; color: var(--ah-text); margin-right: 4px;
}
/* 主页「动态 / 收藏」：Tab 条 + 列表均为长方形卡片 */
.ah-profile-board {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 2px;
}
.ah-profile-tabs {
  display: flex;
  gap: 0;
  margin: 0;
  padding: 0 10px;
  background: #fff;
  border: 1px solid var(--ah-line);
  border-radius: 18px;
  box-shadow: var(--ah-shadow);
}
.ah-profile-tab {
  flex: 1;
  text-align: center;
  padding: 14px 8px 12px;
  color: var(--ah-muted);
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: 0;
}
.ah-profile-tab:hover { color: var(--ah-text); }
.ah-profile-tab.is-on {
  color: var(--ah-text);
  border-bottom-color: var(--ah-accent, #0f766e);
}
.ah-profile-feed {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ah-profile-feed > .ah-stream-card {
  background: #fff;
  border: 1px solid var(--ah-line);
  border-radius: 18px;
  box-shadow: var(--ah-shadow);
  padding: 16px 18px 12px;
}
.ah-profile-feed-empty {
  background: #fff !important;
  border: 1px solid var(--ah-line) !important;
  border-radius: 18px !important;
  box-shadow: var(--ah-shadow) !important;
}
.ah-stream-card-meta time { color: var(--ah-muted); font-size: 0.78rem; }
.ah-stream-more { color: var(--ah-muted); font-size: 0.82rem; }
.ah-stream-more:hover { color: var(--ah-accent); }

.ah-card-more {
  position: relative;
  margin-left: auto;
  flex-shrink: 0;
}
.ah-card-more > summary {
  list-style: none;
  cursor: pointer;
}
.ah-card-more > summary::-webkit-details-marker { display: none; }
.ah-card-more-btn {
  display: grid; place-items: center;
  width: 32px; height: 32px;
  border-radius: 999px;
  color: #64748b;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  user-select: none;
}
.ah-card-more-btn:hover,
.ah-card-more[open] .ah-card-more-btn {
  background: rgba(15, 23, 42, 0.06);
  color: #0f172a;
}
.ah-card-more-menu {
  position: absolute;
  right: 0; top: calc(100% + 6px);
  z-index: 30;
  min-width: 148px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
  padding: 6px;
  overflow: hidden;
}
.ah-card-more-menu a,
.ah-card-more-menu .ah-menu-btn {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border-radius: 10px;
  border: 0;
  background: transparent;
  color: #0f172a;
  font: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: none;
}
.ah-card-more-menu a:hover,
.ah-card-more-menu .ah-menu-btn:hover {
  background: rgba(15, 23, 42, 0.06);
}
.ah-card-more-menu .ah-menu-btn.is-danger {
  color: #dc2626;
}
.ah-card-more-menu .ah-menu-btn.is-danger:hover {
  background: rgba(220, 38, 38, 0.08);
}
.ah-stream-card.is-hidden-interest {
  display: none !important;
}

.ah-stream-card-title {
  margin: 0 0 8px; font-size: 1.05rem; line-height: 1.45; font-weight: 700;
}
.ah-stream-card-title a:hover { color: var(--ah-accent-deep); }

/* 推荐流偶发头条大封面（样式 A），其余文章仍用小图 C */
.ah-stream-hero-cover {
  position: relative;
  display: block;
  margin: 2px 0 12px;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #eef3f0;
  text-decoration: none;
  color: inherit;
}
.ah-stream-hero-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ah-stream-hero-badge {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.58);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  backdrop-filter: blur(4px);
}
.ah-stream-card.is-hero .ah-stream-card-title {
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}
.ah-stream-card.is-hero .ah-stream-card-content {
  max-height: 5.4em;
}

.ah-stream-card-content {
  margin: 0;
  color: #33403b;
  font-size: 0.95rem;
  line-height: 1.7;
  word-break: break-word;
  max-height: 12.5em;
  overflow: hidden;
}
/* 展开后取消裁切 */
.ah-stream-card-content.is-expanded {
  max-height: none;
  overflow: visible;
}
/* 快讯：列表不裁切正文（展开后也保持） */
.ah-stream-card[data-ah-rec-type="flash"] .ah-stream-card-content,
[data-ah-panel="flash"] .ah-stream-card-content {
  max-height: none;
  overflow: visible;
}
.ah-stream-card-content p { margin: 0 0 0.6em; }
.ah-stream-card-content p:last-child { margin-bottom: 0; }
.ah-stream-card-content img { display: none; }
.ah-stream-card-content .ah-flash-quote-card img { display: block; }

/* 快讯外链：蓝色可辨，nofollow 在 HTML rel 上 */
.ah-flash-link,
.ah-stream-card[data-ah-rec-type="flash"] .ah-stream-card-content a:not(.ah-flash-topic):not(.ah-flash-quote-card),
.ah-stream-detail-body a.ah-flash-link,
.ah-stream-card-content a.ah-flash-link {
  color: #2563eb;
  text-decoration: underline;
  text-underline-offset: 2px;
  word-break: break-all;
}
.ah-flash-link:hover,
.ah-stream-card[data-ah-rec-type="flash"] .ah-stream-card-content a:not(.ah-flash-topic):not(.ah-flash-quote-card):hover,
.ah-stream-detail-body a.ah-flash-link:hover {
  color: #1d4ed8;
}

/* 快讯话题：正文内 #话题；字号固定，避免继承标题/加粗变大 */
.ah-flash-topic,
.ah-stream-card-content a.ah-flash-topic,
.ah-stream-detail-body a.ah-flash-topic,
h1 .ah-flash-topic,
h2 .ah-flash-topic,
h3 .ah-flash-topic,
h4 .ah-flash-topic,
strong .ah-flash-topic,
b .ah-flash-topic {
  color: #2563eb !important;
  text-decoration: none;
  word-break: normal;
  font-size: 0.8125rem !important;
  font-weight: 500 !important;
  line-height: 1.45;
}
.ah-flash-topic:hover,
.ah-stream-card-content a.ah-flash-topic:hover,
.ah-stream-detail-body a.ah-flash-topic:hover {
  color: #1d4ed8 !important;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ah-stream-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}
.ah-stream-thumb {
  position: relative;
  display: block;
  border-radius: 10px;
  overflow: hidden;
  border: 0;
  background: #eef3f0;
  max-width: 100%;
  outline: none;
  box-shadow: none;
}
.ah-stream-thumb:hover,
.ah-stream-thumb:focus,
.ah-stream-thumb:focus-visible {
  border: 0;
  outline: none;
  box-shadow: none;
}
/* 文章：等尺寸方图横排（裁剪） */
.ah-stream-thumbs.is-post {
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.ah-stream-thumbs.is-post .ah-stream-thumb {
  flex: 0 0 112px;
  width: 112px;
  height: 112px;
  max-width: 112px;
}
.ah-stream-thumbs.is-post[data-count="1"] .ah-stream-thumb {
  flex-basis: 160px;
  width: 160px;
  height: 160px;
  max-width: 160px;
}
.ah-stream-thumbs.is-post .ah-stream-thumb img,
.ah-stream-thumbs .ah-stream-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  border-radius: 10px;
}
/* 快讯：不裁剪完整显示；多图单行横排可拖滑；可点开放大 */
.ah-stream-thumbs.is-flash {
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  gap: 8px;
  align-items: flex-start;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
  touch-action: pan-y;
}
.ah-stream-thumbs.is-flash::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}
.ah-stream-thumbs.is-flash.is-dragging {
  cursor: grabbing;
  user-select: none;
}
.ah-stream-thumbs.is-flash.is-dragging .ah-stream-thumb {
  pointer-events: none;
}
.ah-stream-thumbs.is-flash .ah-stream-thumb {
  flex: 0 0 auto;
  width: auto;
  height: auto;
  max-width: none;
  padding: 0;
  margin: 0;
  cursor: zoom-in;
  font: inherit;
  color: inherit;
  text-decoration: none;
  appearance: none;
  -webkit-appearance: none;
  background: #f1f5f4;
}
.ah-stream-thumbs.is-flash a.ah-stream-thumb {
  display: block;
  text-decoration: none;
  color: inherit;
}
.ah-stream-thumbs.is-flash .ah-stream-thumb img {
  width: auto;
  height: auto;
  max-width: none;
  max-height: 220px;
  object-fit: contain;
  border-radius: 10px;
  vertical-align: top;
  display: block;
}
.ah-stream-thumbs.is-flash[data-count="1"] {
  overflow: visible;
}
.ah-stream-thumbs.is-flash[data-count="1"] .ah-stream-thumb {
  width: 100%;
  max-width: 100%;
  background: transparent;
}
.ah-stream-thumbs.is-flash[data-count="1"] .ah-stream-thumb img {
  max-height: 520px;
  max-width: 100%;
  width: auto;
}
.ah-img-viewer-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.ah-img-viewer-nav:hover { background: rgba(255,255,255,.26); }
.ah-img-viewer-nav[hidden] { display: none !important; }
.ah-img-viewer.is-gallery .ah-img-viewer-nav { display: inline-flex; }
.ah-img-viewer-prev { left: 12px; }
.ah-img-viewer-next { right: 12px; }
.ah-img-viewer-counter {
  pointer-events: none;
  opacity: .85;
  font-variant-numeric: tabular-nums;
  margin-right: auto;
  padding-left: 4px;
}
.ah-img-viewer-counter[hidden] { display: none !important; }
@media (max-width: 480px) {
  .ah-stream-thumbs.is-post .ah-stream-thumb {
    flex: 0 0 96px;
    width: 96px;
    height: 96px;
    max-width: 96px;
  }
  .ah-stream-thumbs.is-post[data-count="1"] .ah-stream-thumb {
    flex-basis: 132px;
    width: 132px;
    height: 132px;
    max-width: 132px;
  }
  .ah-stream-thumbs.is-flash .ah-stream-thumb img {
    max-height: 180px;
  }
  .ah-stream-thumbs.is-flash[data-count="1"] .ah-stream-thumb img {
    max-height: 360px;
  }
  .ah-img-viewer-nav {
    width: 38px; height: 38px; font-size: 24px;
  }
  .ah-img-viewer-prev { left: 6px; }
  .ah-img-viewer-next { right: 6px; }
}

.ah-stream-embed {
  display: block; margin-top: 12px; padding: 12px 14px;
  border: 1px solid var(--ah-line); border-radius: 14px;
  background: linear-gradient(180deg, #fbfdfc, #f5f8f6);
}
.ah-stream-embed:hover { border-color: #b7e4db; }
.ah-stream-embed-kicker {
  display: block; color: var(--ah-accent); font-size: 0.75rem; font-weight: 700; margin-bottom: 4px;
}
.ah-stream-embed-title { display: block; font-weight: 700; font-size: 0.92rem; margin-bottom: 4px; }
.ah-stream-embed-desc {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  color: var(--ah-muted); font-size: 0.82rem; line-height: 1.45;
}

.ah-stream-card-ft {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0;
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid #eef3f0;
}
.ah-stream-card-ft > .ah-engage {
  width: 100%;
}
.ah-stream-actions { display: flex; gap: 14px; color: var(--ah-muted); font-size: 0.82rem; }
.ah-stream-actions a:hover { color: var(--ah-accent); }
.ah-engage-card {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
  width: 100%;
  gap: 4px 2px;
}
.ah-engage-card .ah-engage-item {
  padding: 6px 10px;
  font-size: 0.82rem;
  background: transparent;
  color: var(--ah-muted);
  min-width: 0;
}
.ah-engage-card .ah-engage-item:hover {
  background: var(--ah-accent-soft);
  color: var(--ah-accent-deep);
}
.ah-engage-card .ah-engage-item.is-on:not([data-ah-collect]) {
  background: #ffedd5;
  color: #c2410c;
}
.ah-engage-card .ah-engage-item[data-ah-collect].is-on {
  background: transparent !important;
  color: var(--ah-muted) !important;
}

.ah-stream-empty {
  text-align: center; padding: 48px 20px; color: var(--ah-muted);
  background: #fff; border: 1px dashed var(--ah-line); border-radius: 18px;
}
.ah-stream-empty strong { display: block; color: var(--ah-text); font-size: 1.05rem; margin-bottom: 8px; }
.ah-stream-empty p { margin: 0 0 16px; }
.ah-stream-empty .ah-btn { display: inline-flex; }

.ah-stream-search {
  display: flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--ah-line); border-radius: 999px;
  padding: 8px 12px; box-shadow: var(--ah-shadow);
}
.ah-stream-search input {
  border: 0; outline: 0; flex: 1; font: inherit; background: transparent; min-width: 0;
}
.ah-stream-search button {
  border: 0; background: transparent; color: var(--ah-muted); cursor: pointer; font-size: 1.1rem;
}

.ah-stream-widget {
  background: #fff; border: 1px solid var(--ah-line); border-radius: 18px;
  padding: 14px 16px; box-shadow: var(--ah-shadow);
}
.ah-stream-widget-hd {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px;
}
.ah-stream-widget-hd h3 { margin: 0; font-size: 0.98rem; }
.ah-stream-widget-hd a { color: var(--ah-accent); font-size: 0.82rem; }
.ah-stream-widget-empty { color: var(--ah-muted); font-size: 0.85rem; padding: 8px 0; }

.ah-stream-hot { list-style: none; margin: 0; padding: 0; }
.ah-stream-hot li {
  display: grid; grid-template-columns: 22px 1fr auto; gap: 8px;
  align-items: start; padding: 8px 0; border-bottom: 1px solid #eef3f0;
}
.ah-stream-hot li:last-child { border-bottom: 0; }
.ah-stream-hot a {
  font-size: 0.9rem; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ah-stream-hot a:hover { color: var(--ah-accent-deep); }
.ah-stream-hot em { font-style: normal; color: var(--ah-muted); font-size: 0.75rem; }
.ah-stream-hot-rank {
  width: 18px; height: 18px; border-radius: 6px;
  display: grid; place-items: center;
  font-size: 0.72rem; font-weight: 800; color: #66736d; background: #eef3f0;
}
.ah-stream-hot-rank.is-top { background: #ffedd5; color: #c2410c; }

.ah-stream-cat-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.ah-stream-cat-cloud a {
  padding: 6px 10px; border-radius: 999px; background: #f8faf9;
  border: 1px solid var(--ah-line); font-size: 0.8rem; color: #4b5c55;
}
.ah-stream-cat-cloud a:hover {
  background: var(--ah-accent-soft); color: var(--ah-accent-deep); border-color: #b7e4db;
}

.ah-stream-rank { list-style: none; margin: 0; padding: 0; }
.ah-stream-rank li {
  display: flex; gap: 10px; align-items: center; padding: 8px 0;
  border-bottom: 1px solid #eef3f0; font-size: 0.9rem;
}
.ah-stream-rank li:last-child { border-bottom: 0; }
.ah-stream-rank span {
  width: 18px; color: var(--ah-muted); font-weight: 700; font-size: 0.8rem;
}
.ah-stream-rank a:hover { color: var(--ah-accent-deep); }

.ah-stream-banner a {
  display: block;
  padding: 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, #d8f3ee, #ecfdf5 55%, #ffedd5);
  color: #134e4a;
}
.ah-stream-banner strong { display: block; font-size: 1rem; margin-bottom: 4px; }
.ah-stream-banner span { font-size: 0.82rem; opacity: 0.85; }

.ah-stream-foot {
  text-align: center; color: #8590a6; font-size: 0.75rem; line-height: 1.65;
  padding: 0 16px 28px; display: none; gap: 8px; justify-content: center; flex-wrap: wrap;
  flex-direction: column; align-items: center;
}
.ah-stream-foot .ah-side-foot-inner {
  align-items: center;
  text-align: center;
}
.ah-stream-foot a { color: #8590a6; text-decoration: none; }
.ah-stream-foot a:hover { color: #646464; }
.ah-stream-foot-mobile { display: none; }

/* Explore discover (stream/explore) */
.ah-explore { display: grid; gap: 18px; }
.ah-explore-hd h1 { margin: 0 0 4px; font-size: 1.45rem; letter-spacing: -0.02em; }
.ah-explore-hd p { margin: 0; color: var(--ah-muted); font-size: 0.92rem; }
.ah-explore-block {
  background: #fff;
  border: 1px solid var(--ah-line);
  border-radius: 18px;
  padding: 16px 18px;
  box-shadow: var(--ah-shadow);
}
.ah-explore-title { margin: 0 0 12px; font-size: 1.05rem; }
.ah-explore-title-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px;
}
.ah-explore-title-row .ah-explore-title { margin: 0; }
.ah-explore-more { font-size: 0.86rem; color: var(--ah-accent); text-decoration: none; }
.ah-explore-topic {
  padding: 14px 16px; border-radius: 14px;
  background: linear-gradient(120deg, var(--ah-accent-soft), #fff);
  border: 1px solid var(--ah-line);
  margin-bottom: 12px;
}
.ah-explore-topic strong { font-size: 1.05rem; line-height: 1.45; }
.ah-explore-flash { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ah-explore-flash a {
  display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center;
  text-decoration: none; color: inherit; padding: 8px 4px; border-radius: 10px;
}
.ah-explore-flash a:hover { background: rgba(15, 23, 42, 0.04); }
.ah-explore-flash-tag {
  font-size: 0.72rem; color: var(--ah-accent-deep);
  background: var(--ah-accent-soft); border-radius: 999px; padding: 2px 8px;
}
.ah-explore-flash-text { font-size: 0.92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ah-explore-flash em { color: var(--ah-muted); font-size: 0.78rem; font-style: normal; white-space: nowrap; }
.ah-explore-people { display: grid; gap: 10px; }
.ah-explore-person {
  display: flex; gap: 12px; align-items: center;
  padding: 8px; border-radius: 14px;
}
.ah-explore-person:hover { background: rgba(15, 23, 42, 0.04); }
.ah-explore-person-main {
  display: flex; gap: 12px; align-items: center; text-decoration: none; color: inherit;
  min-width: 0; flex: 1;
}
.ah-explore-person-avatar {
  width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
}
.ah-explore-person-meta { display: grid; gap: 2px; min-width: 0; }
.ah-explore-person-meta strong { font-size: 0.95rem; }
.ah-explore-person-meta em { color: var(--ah-muted); font-style: normal; font-size: 0.82rem; }
.ah-explore-person-meta span {
  color: var(--ah-muted); font-size: 0.82rem;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ah-explore-person-meta span b { font-weight: 600; color: var(--ah-text, #0f172a); }
.ah-explore-follow {
  flex-shrink: 0;
  border: 1px solid var(--ah-line);
  background: #fff;
  color: var(--ah-accent-deep);
  border-radius: 999px;
  padding: 6px 12px;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
}
.ah-explore-follow:hover { background: var(--ah-accent-soft); }
.ah-explore-follow.is-on {
  background: rgba(15, 23, 42, 0.06);
  color: var(--ah-muted);
  border-color: transparent;
}
.ah-explore-follow:disabled { opacity: 0.6; cursor: wait; }
.ah-explore-sub {
  margin: -4px 0 12px;
  color: var(--ah-muted);
  font-size: 0.82rem;
}
.ah-explore-posts { display: grid; gap: 12px; }
.ah-explore-topics-hd {
  display: flex; align-items: center; gap: 8px;
}
.ah-explore-hash {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 6px;
  background: var(--ah-accent-soft); color: var(--ah-accent-deep);
  font-weight: 700; font-size: 0.9rem;
}
.ah-explore-topic-tags {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.ah-explore-topic-tag {
  display: inline-flex; align-items: center; gap: 6px;
  text-decoration: none; color: inherit;
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid var(--ah-line);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.88rem;
}
.ah-explore-topic-tag:hover {
  border-color: var(--ah-accent);
  background: var(--ah-accent-soft);
  color: var(--ah-accent-deep);
}
.ah-explore-topic-tag em {
  font-style: normal;
  color: var(--ah-muted);
  font-size: 0.8rem;
}
.ah-rec-hidden-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ah-rec-hidden-item {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 14px; border: 1px solid var(--ah-line); border-radius: 14px; background: #fff;
}
.ah-rec-hidden-main { min-width: 0; display: grid; gap: 4px; }
.ah-rec-hidden-tag {
  display: inline-block; width: fit-content;
  font-size: 0.72rem; color: var(--ah-accent-deep);
  background: var(--ah-accent-soft); border-radius: 999px; padding: 2px 8px;
}
.ah-rec-hidden-title {
  font-size: 0.95rem; font-weight: 600; color: inherit; text-decoration: none;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
a.ah-rec-hidden-title:hover { color: var(--ah-accent-deep); }
.ah-rec-hidden-title.is-missing { color: var(--ah-muted); font-weight: 500; }
.ah-rec-hidden-key { font-size: 0.75rem; color: var(--ah-muted); }
.ah-rec-hidden-restore { flex-shrink: 0; white-space: nowrap; }
.ah-stream-card-stats {
  display: flex; gap: 14px; color: var(--ah-muted); font-size: 0.82rem; margin-top: 10px;
}
.ah-explore-posts .ah-engage-card { margin-top: 10px; }
.ah-explore-search {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px;
}
.ah-explore-search input[type="search"] {
  flex: 1 1 180px; min-width: 0; border: 1px solid var(--ah-line);
  border-radius: 12px; padding: 8px 12px; font: inherit;
}
.ah-explore-search select {
  border: 1px solid var(--ah-line); border-radius: 12px; padding: 8px 10px; font: inherit;
}
.ah-explore-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.ah-explore-cats a {
  text-decoration: none; color: var(--ah-muted); font-size: 0.84rem;
  border: 1px solid var(--ah-line); border-radius: 999px; padding: 4px 12px;
}
.ah-explore-cats a.is-active,
.ah-explore-cats a:hover { color: var(--ah-accent-deep); background: var(--ah-accent-soft); border-color: transparent; }
.ah-explore-products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ah-explore-product {
  display: flex; gap: 10px; align-items: flex-start; text-decoration: none; color: inherit;
  border: 1px solid var(--ah-line); border-radius: 14px; padding: 10px; min-width: 0;
}
.ah-explore-product:hover { border-color: var(--ah-accent); background: rgba(15, 118, 110, 0.03); }
.ah-explore-product img,
.ah-explore-product-ph {
  width: 40px; height: 40px; border-radius: 10px; object-fit: cover; flex-shrink: 0;
}
.ah-explore-product-ph {
  display: inline-grid; place-items: center; background: var(--ah-accent-soft); color: var(--ah-accent-deep); font-weight: 700;
}
.ah-explore-product span { display: grid; gap: 2px; min-width: 0; }
.ah-explore-product strong { font-size: 0.9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ah-explore-product em {
  color: var(--ah-muted); font-style: normal; font-size: 0.78rem;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ah-explore-empty { padding: 12px 0; border: 0; box-shadow: none; background: transparent; }
@media (max-width: 640px) {
  .ah-explore-products { grid-template-columns: 1fr; }
  .ah-explore-flash a { grid-template-columns: auto 1fr; }
  .ah-explore-flash em { display: none; }
}

@media (max-width: 1100px) {
  .ah-stream { grid-template-columns: var(--ah-left) minmax(0, 1fr); }
  .ah-stream-right { display: none; }
  .ah-stream-foot-mobile { display: flex; }
  .ah-home-rail-track { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* —— AI Works 详情（知乎项目详情结构 + Hub 左栏） —— */
.ah-work-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--ah-right);
  gap: 18px;
  align-items: start;
}
.ah-work-side-empty {
  margin: 0;
  padding: 8px 0 6px;
  font-size: 0.82rem;
  color: var(--ah-muted);
  line-height: 1.45;
}
.ah-work-main { min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.ah-work-head {
  background: #fff;
  border: 1px solid var(--ah-line);
  border-radius: 14px;
  padding: 20px 22px;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 12px 16px;
  align-items: center;
}
.ah-work-logo {
  width: 56px; height: 56px; border-radius: 50%;
  object-fit: cover; display: block;
}
.ah-work-logo-ph {
  background: linear-gradient(145deg, #38bdf8, #0f766e);
  color: #fff; font-weight: 800; font-size: 1.35rem;
  display: grid; place-items: center;
}
.ah-work-title { margin: 0 0 4px; font-size: 1.35rem; font-weight: 800; line-height: 1.25; }
.ah-work-author { margin: 0 0 6px; font-size: 0.82rem; color: var(--ah-muted); }
.ah-work-desc { margin: 0; font-size: 0.92rem; color: #334155; }
.ah-work-cta {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 8px 18px; border-radius: 999px;
  background: #1772f6; color: #fff !important;
  font-size: 0.92rem; font-weight: 700; text-decoration: none !important;
  white-space: nowrap; align-self: start;
}
.ah-work-cta:hover { background: #0f62d9; }
.ah-work-cta:not(.is-github) { background: var(--ah-accent); }
.ah-work-cta:not(.is-github):hover { background: var(--ah-accent-deep); }
.ah-work-meta {
  grid-column: 2 / -1;
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
}
.ah-work-tag {
  font-size: 0.75rem; color: var(--ah-accent-deep);
  background: var(--ah-accent-soft); padding: 2px 8px; border-radius: 4px;
}
.ah-work-heat { font-size: 0.75rem; color: var(--ah-muted); }
.ah-skill-install {
  background: #fff;
  border: 1px solid var(--ah-line);
  border-radius: 14px;
  padding: 16px 18px 14px;
}
.ah-skill-install-hd {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 800;
}
.ah-skill-install-desc {
  margin: 0 0 10px;
  font-size: 0.84rem;
  color: var(--ah-muted);
  line-height: 1.5;
}
.ah-skill-install-prompt {
  margin: 0 0 10px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #f4f7f5;
  border: 1px solid #e2e8e4;
  font-size: 0.8rem;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
  color: #1e293b;
  max-height: 160px;
  overflow: auto;
}
.ah-skill-install-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}
.ah-skill-install-agents {
  margin: 4px 0 0;
  font-size: 0.8rem;
  color: var(--ah-muted);
}
.ah-skill-install-agents summary {
  cursor: pointer;
  font-weight: 650;
  color: #475569;
}
.ah-skill-install-agents ul {
  margin: 8px 0 0;
  padding-left: 1.2rem;
  line-height: 1.7;
}
.ah-skill-install-agents code {
  font-size: 0.78rem;
  background: #eef2f0;
  padding: 1px 5px;
  border-radius: 4px;
}
.ah-work-article {
  background: #fff;
  border: 1px solid var(--ah-line);
  border-radius: 14px;
  padding: 26px 28px 32px;
}
.ah-work-article-hd { margin: 0 0 16px; font-size: 1.15rem; font-weight: 800; }
.ah-work-cover {
  width: 100%; max-height: 320px; object-fit: cover;
  border-radius: 10px; margin: 0 0 18px; display: block;
}
.ah-work-content { font-size: 0.98rem; line-height: 1.75; color: #1e293b; }
.ah-work-content p { margin: 0 0 0.9em; }
.ah-work-content h1,
.ah-work-content h2,
.ah-work-content h3,
.ah-work-content h4 {
  margin: 1.1em 0 0.45em;
  font-weight: 800;
  line-height: 1.35;
  color: var(--ah-text);
}
.ah-work-content h1 { font-size: 1.35rem; }
.ah-work-content h2 { font-size: 1.18rem; }
.ah-work-content h3 { font-size: 1.05rem; }
.ah-work-content ul,
.ah-work-content ol { margin: 0 0 0.9em; padding-left: 1.35rem; }
.ah-work-content li { margin: 0.2em 0; }
.ah-work-content blockquote {
  margin: 0.8em 0;
  padding: 8px 12px;
  border-left: 3px solid var(--ah-accent);
  background: #f7faf8;
  color: var(--ah-muted);
}
.ah-work-content code {
  font-size: 0.88em;
  padding: 0.1em 0.35em;
  border-radius: 4px;
  background: #eef2f0;
}
.ah-work-content pre {
  overflow-x: auto;
  padding: 12px 14px;
  border-radius: 10px;
  background: #0f172a;
  color: #e2e8f0;
  font-size: 0.86rem;
}
.ah-work-content pre code { background: transparent; padding: 0; color: inherit; }
.ah-work-content {
  overflow-x: auto;
}
.ah-work-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.9em 0;
  font-size: 0.9rem;
  display: table;
}
.ah-work-content th,
.ah-work-content td {
  border: 1px solid var(--ah-line);
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}
.ah-work-content th { background: #f3f6f4; font-weight: 700; }
.ah-work-actions {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--ah-line);
}
.ah-work-side { display: flex; flex-direction: column; gap: 14px; }
.ah-work-side-card {
  background: #fff;
  border: 1px solid var(--ah-line);
  border-radius: 14px;
  padding: 14px 14px 10px;
}
.ah-work-side-card h2 { margin: 0 0 8px; font-size: 0.95rem; font-weight: 800; }
.ah-work-side-item {
  display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 10px;
  padding: 10px 0; border-top: 1px solid var(--ah-line);
  color: inherit; text-decoration: none !important; align-items: center;
}
.ah-work-side-card .ah-work-side-item:first-of-type { border-top: 0; }
.ah-work-side-item:hover .ah-work-side-title { color: var(--ah-accent-deep); }
.ah-work-side-ico {
  width: 40px; height: 40px; border-radius: 8px;
  background: #eef2ff; color: #4338ca;
  display: grid; place-items: center; font-weight: 800; font-size: 0.9rem;
}
.ah-work-side-title { display: block; font-size: 0.9rem; font-weight: 700; color: var(--ah-text); }
.ah-work-side-sub {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  margin: 2px 0 0; font-style: normal; font-size: 0.75rem; color: var(--ah-muted);
}
.ah-work-side-more {
  display: block; text-align: center; padding: 8px 0 2px;
  font-size: 0.82rem; color: var(--ah-muted);
}
.ah-work-side-more:hover { color: var(--ah-accent); }
.ah-work-side-cta {
  display: block; text-align: center;
  background: var(--ah-accent); color: #fff !important;
  text-decoration: none !important; padding: 12px;
  border-radius: 12px; font-weight: 700; font-size: 0.92rem;
}
.ah-work-side-cta:hover { background: var(--ah-accent-deep); }

.ah-works-hero { margin-bottom: 8px; }
.ah-works-hero h1 { margin: 0 0 6px; font-size: 1.35rem; font-weight: 800; }
.ah-works-hero p { margin: 0 0 14px; color: var(--ah-muted); font-size: 0.92rem; }
/* ===== Works 广场：方块墙（长方形 + 两行堆叠） ===== */
.ah-works-plaza.is-v2 { padding-bottom: 28px; }
.ah-works-head-v2 { margin: 2px 0 12px; }
.ah-works-head-v2 h1 {
  margin: 0 0 2px; font-size: 1.35rem; font-weight: 800; letter-spacing: -0.02em;
}
.ah-works-head-v2 p { margin: 0; color: var(--ah-muted); font-size: 0.86rem; }
.ah-works-toolbar-v2 {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin: 0 0 10px;
}
.ah-works-seg {
  display: inline-flex; padding: 3px; gap: 2px;
  border-radius: 10px; background: #e7ece9;
}
.ah-works-seg-item {
  padding: 6px 12px; border-radius: 8px; font-size: 0.84rem; font-weight: 650;
  color: var(--ah-muted); text-decoration: none !important;
}
.ah-works-seg-item:hover { color: var(--ah-text); }
.ah-works-seg-item.is-active {
  background: #fff; color: var(--ah-text);
  box-shadow: 0 1px 2px rgba(20, 32, 28, 0.07);
}
.ah-works-search {
  flex: 1; min-width: 200px; display: flex; gap: 8px; align-items: center;
}
.ah-works-search input[type="search"] {
  flex: 1; min-width: 0; height: 36px; padding: 0 12px;
  border: 1px solid var(--ah-line); border-radius: 10px;
  background: #fff; font: inherit; color: var(--ah-text);
}
.ah-works-search input[type="search"]:focus {
  outline: none; border-color: var(--ah-accent);
  box-shadow: 0 0 0 3px var(--ah-accent-soft);
}
.ah-works-search-btn,
.ah-works-publish-btn {
  height: 36px; padding: 0 12px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  white-space: nowrap; font-size: 0.86rem;
}
.ah-works-publish-btn { background: var(--ah-accent-deep) !important; }
.ah-works-cats {
  display: flex; gap: 4px; overflow-x: auto; padding: 0 0 10px;
  margin: 0 0 12px; scrollbar-width: thin;
  border-bottom: 1px solid var(--ah-line);
  -webkit-overflow-scrolling: touch;
}
.ah-works-cat {
  flex: 0 0 auto; padding: 5px 9px; border-radius: 8px;
  border: 0; background: transparent;
  color: var(--ah-muted); font-size: 0.8rem; font-weight: 600;
  text-decoration: none !important;
}
.ah-works-cat:hover { color: var(--ah-text); background: #eef2f0; }
.ah-works-cat.is-active {
  background: var(--ah-accent-soft); color: var(--ah-accent-deep);
}
.ah-works-empty-v2 { margin-top: 12px; }

/* 作品墙公共 */
.ah-wk {
  text-decoration: none !important; color: inherit;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.ah-wk-face {
  display: block; overflow: hidden; background: linear-gradient(145deg, #d8f3ee, #eef2f0 55%, #ffe8d6);
}
.ah-wk.is-skill .ah-wk-face { background: linear-gradient(145deg, #dbeafe, #eef2ff 55%, #fce7f3); }
.ah-wk-face img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ah-wk-letter {
  width: 100%; height: 100%; display: grid; place-items: center;
  font-weight: 800; color: rgba(15, 118, 110, 0.5);
}
.ah-wk.is-skill .ah-wk-letter { color: rgba(37, 99, 235, 0.45); }
.ah-wk-name { font-weight: 750; line-height: 1.3; }
.ah-wk-sum {
  color: var(--ah-muted); line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ah-wk-meta { display: flex; flex-wrap: wrap; gap: 4px 6px; }
.ah-wk-meta em {
  font-style: normal; font-size: 0.68rem; font-weight: 650; color: #809089;
  padding: 1px 6px; border-radius: 999px; background: #f1f5f3;
}

/* 方块墙：每行最多 6 个，从左到右排满再换行 */
.ah-wk-wall--tile {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  padding-bottom: 4px;
}
.ah-wk--tile {
  display: flex; flex-direction: column; gap: 7px;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 8px; border-radius: 14px; border: 1px solid var(--ah-line); background: #fff;
}
.ah-wk--tile:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(20,32,28,.08); }
.ah-wk--tile .ah-wk-face {
  aspect-ratio: 16 / 10; border-radius: 11px;
}
.ah-wk--tile .ah-wk-letter { font-size: 1.45rem; }
.ah-wk--tile .ah-wk-name {
  font-size: 0.84rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 2.3em;
}
/* 列表摘要进 DOM + 可见：加厚 /works/ 页，利于百度收录 */
.ah-wk--tile .ah-wk-sum {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.72rem;
  min-height: 2em;
}
.ah-wk--tile .ah-wk-meta em:nth-child(n+3) { display: none; }

@media (max-width: 1100px) {
  .ah-wk-wall--tile {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .ah-works-toolbar-v2 { flex-direction: column; align-items: stretch; }
  .ah-works-seg { width: 100%; }
  .ah-works-seg-item { flex: 1; text-align: center; }
  .ah-wk-wall--tile {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1100px) {
  .ah-work-layout { grid-template-columns: 1fr; }
  .ah-stream-page.ah-mode-work .ah-stream-right { display: none; }
}
/* 手机抽屉：默认隐藏开关；桌面侧栏保持原样 */
.ah-drawer-toggle,
.ah-drawer-close,
.ah-drawer-backdrop,
.ah-drawer-logout,
.ah-mobile-search-toggle,
.ah-mobile-search-panel { display: none; }
.ah-drawer-hd {
  display: contents;
}

/* 右侧栏隐藏时（≤1100）：右上角放大镜，点击悬浮展开搜索框 */
@media (max-width: 1100px) {
  .ah-mobile-search-toggle {
    display: grid;
    place-items: center;
    position: fixed;
    top: 12px;
    right: 12px;
    z-index: 70;
    width: 42px;
    height: 42px;
    border: 1px solid var(--ah-line);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 16px rgba(20, 32, 28, 0.08);
    cursor: pointer;
    padding: 0;
    color: #0f172a;
  }
  .ah-mobile-search-toggle .ah-stream-ico,
  .ah-mobile-search-toggle .ah-stream-ico svg {
    width: 18px; height: 18px; display: block;
  }
  .ah-mobile-search-panel {
    display: block;
    position: fixed;
    top: 60px;
    left: 12px;
    right: 12px;
    z-index: 75;
    padding: 0;
    transform: translateY(-6px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .16s ease, transform .16s ease;
  }
  .ah-mobile-search-panel[hidden] { display: none !important; }
  body.ah-mobile-search-open .ah-mobile-search-panel {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .ah-mobile-search-form {
    width: 100%;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.14);
  }
  .ah-mobile-search-toggle[aria-expanded="true"] {
    border-color: rgba(15, 118, 110, 0.35);
    color: var(--ah-accent-deep, #0f766e);
  }
}

@media (max-width: 820px) {
  .ah-stream {
    grid-template-columns: 1fr;
    width: min(720px, calc(100% - 16px));
    padding-top: 56px;
  }
  .ah-stream-page.ah-mode-work .ah-stream,
  .ah-stream-page.ah-mode-works .ah-stream {
    grid-template-columns: 1fr;
  }
  .ah-works-plaza .ah-works-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
  }

  .ah-drawer-toggle {
    display: grid;
    place-items: center;
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 70;
    width: 42px;
    height: 42px;
    border: 1px solid var(--ah-line);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 16px rgba(20, 32, 28, 0.08);
    cursor: pointer;
    padding: 0;
  }
  .ah-drawer-toggle-bars,
  .ah-drawer-toggle-bars::before,
  .ah-drawer-toggle-bars::after {
    display: block;
    width: 18px;
    height: 2px;
    background: #0f172a;
    border-radius: 2px;
    position: relative;
  }
  .ah-drawer-toggle-bars::before,
  .ah-drawer-toggle-bars::after {
    content: "";
    position: absolute;
    left: 0;
  }
  .ah-drawer-toggle-bars::before { top: -6px; }
  .ah-drawer-toggle-bars::after { top: 6px; }

  .ah-drawer-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 80;
    background: rgba(15, 23, 42, 0.42);
    border: 0;
    padding: 0;
    margin: 0;
    cursor: pointer;
  }
  .ah-drawer-backdrop[hidden] { display: none !important; }

  .ah-stream-left {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 90;
    width: min(86vw, 300px);
    max-width: 300px;
    height: 100vh;
    max-height: 100vh;
    margin: 0;
    padding: 12px 12px 24px;
    background: #fff;
    border: 0;
    border-radius: 0;
    box-shadow: 8px 0 28px rgba(15, 23, 42, 0.14);
    transform: translateX(-105%);
    transition: transform .22s ease;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }
  body.ah-drawer-open .ah-stream-left {
    transform: translateX(0);
  }
  body.ah-drawer-open {
    overflow: hidden;
  }

  .ah-drawer-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
  }
  .ah-drawer-close {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 10px;
    background: #f3f5f4;
    color: #0f172a;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
  }
  .ah-stream-brand { margin-bottom: 0; }
  .ah-stream-brand-text { display: flex; }
  .ah-stream-menu {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 2px;
  }
  .ah-stream-menu-item {
    width: 100%;
    max-width: none;
    padding: 12px 14px;
    font-size: 1.05rem;
    border-radius: 14px;
  }
  .ah-stream-menu-label { display: inline; }
  .ah-stream-login,
  .ah-stream-user {
    display: flex;
    margin-top: 12px;
    width: 100%;
  }
  .ah-stream-login { box-sizing: border-box; }
  .ah-stream-post { display: none; }
  .ah-stream-user-more { display: none; }
  .ah-drawer-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid var(--ah-line);
    background: #fff;
    color: #b91c1c;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
  }
  .ah-drawer-logout:hover { background: #fef2f2; }

  .ah-home-rail-track { grid-template-columns: 1fr; }
  .ah-work-head { grid-template-columns: 48px minmax(0, 1fr); }
  .ah-work-cta { grid-column: 1 / -1; justify-self: stretch; text-align: center; }
  .ah-work-meta { grid-column: 1 / -1; }
  .ah-work-article { padding: 18px 16px 24px; }
}

/* Works publish */
.ah-works-hero-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.ah-works-pending-banner {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px;
  margin: 0 0 14px; padding: 12px 14px;
  border: 1px solid #bbf7d0; border-radius: 12px; background: #f0fdf4;
  color: #166534; font-size: .9rem;
}
.ah-works-pending-banner strong { font-weight: 700; }
.ah-works-step-desc { margin: 8px 0 14px; color: #64748b; font-size: .9rem; text-align: center; }
.ah-works-pick {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 520px) {
  .ah-works-pick { grid-template-columns: 1fr; }
}
.ah-works-pick-card {
  display: flex; flex-direction: column; gap: 4px; text-align: left;
  border: 1px solid #dbe7f5; border-radius: 14px; background: #fff;
  padding: 16px 18px; cursor: pointer; text-decoration: none; color: inherit;
}
.ah-works-pick-card:hover { border-color: #93c5fd; box-shadow: 0 8px 20px rgba(37, 99, 235, .08); }
.ah-works-pick-card strong { font-size: 1rem; color: #0f172a; }
.ah-works-pick-card span { font-size: .85rem; color: #64748b; }
.ah-works-form { display: flex; flex-direction: column; gap: 12px; }
.ah-works-icon { display: flex; justify-content: center; cursor: pointer; }
.ah-works-icon-box {
  width: 72px; height: 72px; border-radius: 16px; background: #fff;
  border: 1px solid #e2e8f0; display: grid; place-items: center; overflow: hidden;
  box-shadow: 0 4px 14px rgba(15, 23, 42, .06);
  position: relative;
}
.ah-works-icon-box img { width: 100%; height: 100%; object-fit: cover; }
.ah-works-icon-box img[hidden],
.ah-works-icon-box img:not([src]),
.ah-works-icon-box img[src=""] { display: none !important; }
.ah-works-icon-plus { font-size: 28px; color: #94a3b8; line-height: 1; }
.ah-works-field { display: flex; flex-direction: column; gap: 6px; }
.ah-works-field label { font-size: .88rem; color: #334155; font-weight: 600; }
.ah-works-field label em { color: #ef4444; font-style: normal; }
.ah-works-field input,
.ah-works-field textarea,
.ah-works-field select {
  width: 100%; border: 1px solid #e2e8f0; border-radius: 12px;
  background: #fff; padding: 11px 12px; font: inherit; color: #0f172a;
}
.ah-works-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ah-works-md {
  border: 1px solid #e2e8f0; border-radius: 12px; background: #fff; overflow: hidden;
}
.ah-works-publish-page .editormd {
  margin: 0; border-radius: 12px; border-color: #e2e8f0;
}
.ah-works-publish-page .editormd .CodeMirror,
.ah-works-publish-page .editormd .editormd-preview {
  border-radius: 0 0 12px 12px;
}
/* 前台无媒体库弹窗，隐藏 editor.md 图片对话框里的媒体库按钮 */
.ah-works-publish-page .editormd-image-medialib-btn { display: none !important; }
#editor-md-dialog { position: relative; z-index: 10050; }
.ah-works-drop-ico { display: inline-flex; width: 22px; height: 22px; color: #2563eb; }
.ah-works-drop-ico svg { width: 22px; height: 22px; display: block; }
.ah-works-hint { margin: 0; font-size: .78rem; color: #64748b; }
.ah-works-drop {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  border: 1px dashed #cbd5e1; border-radius: 14px; background: #f8fafc;
  padding: 28px 16px; cursor: pointer; text-align: center; color: #64748b; font-size: .85rem;
}
.ah-works-drop.is-drag { border-color: #60a5fa; background: #eff6ff; }
.ah-works-drop-ico {
  width: 42px; height: 42px; border-radius: 50%; background: #dbeafe; color: #2563eb;
  display: grid; place-items: center; font-size: 18px; font-weight: 700;
}
.ah-works-tip { margin: 0; font-size: .85rem; color: #dc2626; }
.ah-works-tip.is-ok { color: #059669; }
.ah-works-actions { display: flex; justify-content: flex-end; }
@media (max-width: 640px) {
  .ah-works-field-row { grid-template-columns: 1fr; }
}

/* Shop product embeds in flash cards */
.ah-shop-embeds { display: grid; gap: 8px; margin-top: 10px; }
.ah-shop-embed {
  display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 10px;
  align-items: stretch; text-decoration: none; color: inherit;
  border: 1px solid var(--ah-line); border-radius: 12px; overflow: hidden;
  background: #fff;
}
.ah-shop-embed:hover { border-color: #93c5fd; }
.ah-shop-embed-cover {
  background: #e2e8f0 center/cover no-repeat; min-height: 72px;
}
.ah-shop-embed-cover.is-empty { background: linear-gradient(135deg, #e2e8f0, #f8fafc); }
.ah-shop-embed-body {
  display: flex; flex-direction: column; gap: 2px; padding: 8px 10px 8px 0; min-width: 0;
}
.ah-shop-embed-title {
  font-size: .9rem; font-weight: 700; color: #0f172a;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ah-shop-embed-sub {
  font-size: .75rem; color: #64748b;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ah-shop-embed-price { margin-top: auto; font-size: .92rem; font-weight: 700; color: #dc2626; }

/* —— 统一搜索（中间栏） —— */
.ah-search-page { padding-bottom: 28px; }
.ah-search-login .ah-btn { margin-top: 8px; }
/* 分类 Tab +「全部」后筛选按钮 */
.ah-search-page .ah-search-tabs {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin: 0 0 14px;
  padding: 0;
  border-bottom: 1px solid var(--ah-line);
  overflow: visible !important;
  max-height: none !important;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.ah-search-page .ah-search-tabs::-webkit-scrollbar { display: none; width: 0; height: 0; }
.ah-search-page .ah-search-tab {
  position: relative;
  display: block;
  flex: 1 1 0;
  min-width: 0;
  box-sizing: border-box;
  text-align: center;
  text-decoration: none;
  color: #64748b;
  font-size: .9rem;
  font-weight: 600;
  line-height: 1.2;
  padding: 10px 4px 12px;
  border: 0;
  border-bottom: 2px solid transparent;
  margin: 0 0 -1px;
  white-space: nowrap;
  overflow: visible;
}
.ah-search-page .ah-search-tab em {
  font-style: normal; font-weight: 600; font-size: .78rem;
  color: #94a3b8; margin-left: 4px;
}
.ah-search-page .ah-search-tab.is-on {
  color: var(--ah-accent-deep, #0f766e);
  border-bottom-color: var(--ah-accent, #14b8a6);
}
.ah-search-page .ah-search-tab.is-on em { color: inherit; }
.ah-search-page .ah-search-tab:hover { color: #0f172a; }
/* 「全部」+ 筛选图标粘成一组 */
.ah-search-page .ah-search-tab-all {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 0 0 -1px;
  border-bottom: 2px solid transparent;
}
.ah-search-page .ah-search-tab-all.is-on {
  border-bottom-color: var(--ah-accent, #14b8a6);
}
.ah-search-page .ah-search-tab-all .ah-search-tab-all-link {
  flex: 0 0 auto;
  padding-right: 2px;
  border-bottom-color: transparent !important;
}
.ah-search-page .ah-search-tab-all .ah-filter {
  margin: 0;
  align-self: center;
}
.ah-search-page .ah-search-tab-all.is-on .ah-search-tab-all-link,
.ah-search-page .ah-search-tab-all.is-on .ah-filter-trigger {
  color: var(--ah-accent-deep, #0f766e);
}
.ah-search-sec { margin-bottom: 18px; }
.ah-search-sec-hd {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 10px; margin: 0 0 8px;
}
.ah-search-sec-hd h2 {
  margin: 0; font-size: .95rem; font-weight: 700; color: #0f172a;
}
.ah-search-sec-hd a {
  font-size: .82rem; color: var(--ah-accent, #14b8a6); text-decoration: none;
}
.ah-search-list { list-style: none; margin: 0; padding: 0; }
.ah-search-list > li + li { border-top: 1px solid #f1f5f9; }
.ah-search-row {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px 14px;
  align-items: start; padding: 14px 4px; text-decoration: none; color: inherit;
}
.ah-search-row.has-thumb {
  grid-template-columns: 112px minmax(0, 1fr);
}
.ah-search-thumb {
  width: 112px; height: 72px; border-radius: 10px;
  background: #f1f5f9; overflow: hidden;
  display: grid; place-items: center;
}
.ah-search-thumb img {
  width: 100%; height: 100%;
  object-fit: contain; object-position: center;
  display: block;
}
.ah-search-thumb.is-work { border-radius: 12px; }
.ah-search-thumb.is-ph {
  display: grid; place-items: center; background: #ecfdf5;
  color: #0f766e; font-weight: 700; font-size: 1rem;
}
.ah-search-badge {
  display: inline-flex; align-items: center; align-self: flex-start;
  height: 20px; padding: 0 8px; margin-bottom: 2px;
  border-radius: 999px; font-size: .72rem; font-weight: 700; white-space: nowrap;
}
.ah-search-badge.is-works { background: #fef3c7; color: #b45309; }
.ah-search-body {
  display: flex; flex-direction: column; gap: 3px; min-width: 0;
}
.ah-search-body strong {
  font-size: .95rem; font-weight: 700; color: #0f172a; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ah-search-sum {
  font-size: .84rem; color: #64748b; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ah-search-body em {
  font-style: normal; font-size: .78rem; color: #94a3b8;
}
.ah-search-row:hover strong { color: var(--ah-accent-deep, #0f766e); }
.ah-search-empty { padding: 28px 12px; text-align: center; color: #64748b; }
.ah-search-empty p { margin: 0; }

/* 分类页（Hub 三栏） */
.ah-sort-page { padding: 8px 4px 28px; }
.ah-sort-hd {
  padding: 8px 4px 18px;
  border-bottom: 1px solid var(--ah-line, #e4ebe7);
  margin-bottom: 18px;
}
.ah-sort-hd h1 { margin: 0; font-size: 1.45rem; font-weight: 800; color: #0f172a; letter-spacing: -0.02em; }
.ah-sort-desc { margin: 8px 0 0; font-size: .9rem; color: var(--ah-muted, #66736d); line-height: 1.5; }
.ah-sort-meta { margin: 10px 0 0; font-size: .82rem; color: #94a3b8; }
.ah-sort-page .ah-stream-list { margin-top: 4px; }
.ah-sort-page .ah-stream-card + .ah-stream-card { margin-top: 14px; }
.ah-sort-pager {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  padding: 20px 4px 4px; font-size: .88rem; color: #64748b;
}
.ah-sort-pager a { color: var(--ah-accent-deep, #0f766e); font-weight: 600; text-decoration: none; }

/* 话题页：顶栏 → 精选3 → 左对齐 Tab → 信息流卡片 */
.ah-topic-page { padding: 8px 4px 24px; }
.ah-topic-hd { padding: 8px 4px 14px; border-bottom: 1px solid var(--ah-line, #e4ebe7); margin-bottom: 4px; }
.ah-topic-hd h1 { margin: 0; font-size: 1.45rem; font-weight: 800; color: #0f172a; letter-spacing: -0.02em; }
.ah-topic-meta { margin: 6px 0 0; font-size: .86rem; color: var(--ah-muted, #66736d); }
.ah-topic-feat {
  margin: 14px 0 6px; padding: 12px 14px; border-radius: 16px;
  background: #fff; border: 1px solid var(--ah-line, #e4ebe7);
}
.ah-topic-feat-lab {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .78rem; font-weight: 700; color: var(--ah-accent, #0f766e);
}
.ah-topic-feat-lab span {
  width: 18px; height: 18px; border-radius: 6px;
  background: var(--ah-accent-soft, #d8f3ee);
  display: grid; place-items: center; font-size: .7rem;
}
.ah-topic-feat > p {
  margin: 8px 0 0; font-size: .84rem; color: var(--ah-muted, #66736d); line-height: 1.45;
}
.ah-topic-feat-list { list-style: none; margin: 12px 0 0; padding: 0; }
.ah-topic-feat-list li { padding: 10px 0; border-top: 1px solid var(--ah-line, #e4ebe7); }
.ah-topic-feat-main {
  display: block; font-size: .95rem; font-weight: 650; line-height: 1.4;
  color: var(--ah-text, #14201c); text-decoration: none;
}
.ah-topic-feat-main:hover { color: var(--ah-accent-deep, #0b5f59); }
.ah-topic-feat-who {
  display: flex; align-items: center; gap: 8px; margin-top: 6px;
}
.ah-topic-feat-av-link { display: block; flex-shrink: 0; line-height: 0; }
.ah-topic-feat-av {
  width: 22px; height: 22px; border-radius: 50%; object-fit: cover;
  display: block; background: #e2e8f0;
}
.ah-topic-feat-av.is-ph {
  display: grid; place-items: center;
  background: linear-gradient(145deg, #14b8a6, #0f766e);
  color: #fff; font-size: .65rem; font-weight: 800;
}
.ah-topic-feat-name {
  font-size: .78rem; color: var(--ah-muted, #66736d); text-decoration: none;
}
a.ah-topic-feat-name:hover { color: var(--ah-accent-deep, #0b5f59); }
.ah-topic-page .ah-stream-tabs {
  justify-content: flex-start;
  gap: 24px;
  padding: 4px 4px 0;
  margin: 8px 0 12px;
  border-bottom: 1px solid var(--ah-line, #e4ebe7);
}
.ah-topic-page .ah-stream-tabs a { padding: 10px 2px 12px; }

/* —— 筛选面板（贴在「全部」后，仅图标） —— */
.ah-search-page .ah-filter {
  position: relative;
  flex: 0 0 auto;
  z-index: 40;
  display: inline-flex;
  align-items: center;
}
.ah-filter-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 0;
  padding: 4px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #64748b;
  font-size: 0;
  line-height: 0;
  cursor: pointer;
  white-space: nowrap;
}
.ah-filter-icon-only .ah-filter-trigger {
  width: 22px;
  height: 22px;
  padding: 0;
}
.ah-filter-trigger:hover,
.ah-filter.is-open .ah-filter-trigger {
  color: var(--ah-text, #14201c);
  background: rgba(15, 23, 42, 0.06);
}
.ah-filter-trigger-ico {
  display: inline-flex;
  opacity: 0.85;
}
.ah-filter-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: auto;
  width: min(420px, calc(100vw - 28px));
  padding: 14px 14px 8px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--ah-line, #e4ebe7);
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.12);
}
.ah-filter-group + .ah-filter-group {
  margin-top: 14px;
}
.ah-filter-label {
  margin: 0 0 8px;
  font-size: 0.8rem;
  font-weight: 650;
  color: #64748b;
}
.ah-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ah-filter-pill {
  appearance: none;
  border: 0;
  margin: 0;
  padding: 7px 12px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #334155;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.ah-filter-pill:hover {
  background: #e2e8f0;
}
.ah-filter-pill.is-on {
  background: color-mix(in srgb, var(--ah-accent, #0f766e) 16%, #fff);
  color: var(--ah-accent-deep, #0b5f59);
}
.ah-filter-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
}
.ah-filter-foot-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 0;
  background: transparent;
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 4px;
  cursor: pointer;
}
.ah-filter-foot-btn:hover {
  color: var(--ah-text, #14201c);
}
.ah-filter.has-active .ah-filter-trigger {
  color: var(--ah-accent-deep, #0b5f59);
}
@media (max-width: 720px) {
  .ah-filter-panel {
    left: 0;
    right: auto;
    width: min(100vw - 24px, 400px);
  }
}
