: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: max-content;
  --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-stream-brand-logo img {
  object-fit: contain;
}
.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 {
  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 {
  display: none !important;
}
.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;
  align-self: start;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 2px;
  width: max-content;
  max-width: 100%;
  height: auto;
  max-height: calc(100vh - 24px);
  padding: 4px 0 12px;
  box-sizing: border-box;
}

/* 侧栏块：按最宽子项（菜单文案 / 品牌 / 账号卡）定宽，全站一致不裁切 */
.ah-stream-side-block {
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
  width: max-content;
  max-width: 100%;
  box-sizing: border-box;
}
.ah-stream-side-block .ah-drawer-hd,
.ah-stream-side-block .ah-stream-menu,
.ah-stream-side-block .ah-stream-post {
  width: auto;
  min-width: 100%;
  box-sizing: border-box;
}

.ah-stream-brand {
  display: flex;
  gap: 10px;
  align-items: center;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  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-brand.is-logo {
  padding: 6px 8px;
  border-radius: 14px;
  width: 100%;
  box-sizing: border-box;
}
.ah-stream-brand.is-logo:hover { background: rgba(15, 23, 42, 0.04); }
.ah-stream-brand-logo {
  display: block;
  width: 100%;
  max-width: 168px;
  line-height: 0;
}
.ah-stream-brand-logo img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 44px;
  object-fit: contain;
  object-position: left center;
}
.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: 0 0 auto;
  min-height: 0;
}
.ah-stream-menu-item {
  display: flex; align-items: center; gap: 14px;
  width: auto;
  min-width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 12px 16px 12px 12px;
  border-radius: 999px;
  color: #0f172a;
  font-weight: 500;
  font-size: 1.14rem;
  line-height: 1.2;
  white-space: nowrap;
  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: rgba(15, 23, 42, 0.06);
}
.ah-stream-menu-item.is-active:hover {
  background: rgba(15, 23, 42, 0.08);
}
.ah-stream-menu-item.is-active .ah-stream-menu-label {
  font-weight: 800;
}
.ah-stream-ico {
  width: 26px; height: 26px;
  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; width: 100%; height: 100%; }
.ah-stream-menu-label {
  flex: 0 1 auto;
  min-width: 0;
  padding-right: 2px;
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
}

/* 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: 8px !important;
  margin-bottom: 0 !important;
  display: inline-flex; gap: 10px; align-items: center;
  width: fit-content;
  max-width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  flex: 0 0 auto;
  flex-shrink: 0;
  box-sizing: border-box;
  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;
}

/* 账号卡：… 紧贴用户名，不要被 flex:1 / 拉满侧栏宽度顶到最右侧 */
.ah-stream-user {
  margin-top: 8px !important;
  margin-bottom: 0 !important;
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 2px;
  width: fit-content;
  max-width: 100%;
  padding: 8px 6px 8px 10px;
  border-radius: 999px;
  position: relative;
  flex: 0 0 auto;
  box-sizing: border-box;
}
.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: 0 1 auto; }
.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: 0 0 auto;
  margin-left: 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-drawer-account-links { display: none; }

#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;
}
.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: 8px; align-items: center; line-height: 1.4; min-width: 0; }
.ah-emlog-list a {
  color: var(--ah-text); text-decoration: none; flex: 1; min-width: 0;
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.ah-emlog-list a:hover { color: var(--ah-accent); }
.ah-emlog-list em {
  color: var(--ah-muted); font-style: normal; font-size: 0.78rem;
  flex-shrink: 0; white-space: nowrap;
}
.ah-emlog-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.ah-emlog-tags a em {
  font-style: normal;
  opacity: 0.55;
  font-size: 0.78em;
  margin-left: 2px;
}
.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); }
.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;
  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-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,
.ah-stream-detail-body img.ue-image {
  border-radius: 12px;
  margin: 10px auto;
  max-width: 100%;
  width: auto !important;
  height: auto !important;
  object-fit: contain;
  object-position: center;
  display: block;
}
.ah-stream-detail-body .ah-flash-quote-card img { margin: 0; max-width: none; display: block; }
/* 贴图详情：配图区与信息流一致，居中等比例 */
.ah-flash-detail .ah-stream-thumbs.is-flash {
  margin-top: 14px;
  margin-bottom: 8px;
}
.ah-flash-detail .ah-stream-detail-title {
  font-size: 1.05rem;
  font-weight: 700;
}

/* 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: grid; place-items: 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;
  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: 860px) {
  .ah-img-viewer:not([data-ah-ms-viewer]) .ah-img-viewer-hint,
  .ah-img-viewer:not([data-ah-ms-viewer]) .ah-img-viewer-tools {
    display: none !important;
  }
}

/* 快讯左右媒体页：左图右文 + 底部分段进度 + 抖音式竖滑切条 */
.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%;
  object-fit: contain;
}
.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;
}
.ah-media-sheet-media .ah-img-viewer {
  position: absolute; inset: 0;
  z-index: 1;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
/* stage 绝对铺满，给百分比 max-* 明确包含块，避免 flex 下 86% 失效导致大图溢出、看起来不居中 */
.ah-media-sheet-media .ah-img-viewer-stage {
  position: absolute;
  inset: 0;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ah-media-sheet-media .ah-img-viewer-img {
  max-width: min(94%, 1200px);
  max-height: 92%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center center;
  margin: 0 auto;
  pointer-events: 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; }
/* 缩放条：右下角胶囊，离开关闭钮 */
.ah-media-sheet-zoom {
  position: absolute;
  right: 14px;
  bottom: 18px;
  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);
  pointer-events: auto;
}
.ah-media-sheet-media.is-gallery .ah-media-sheet-zoom { bottom: 34px; }
.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 .ah-img-viewer-hint {
  bottom: 64px;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .32s ease, transform .32s ease, visibility .32s;
  background: rgba(15, 23, 42, .62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.ah-media-sheet .ah-img-viewer-hint.is-on {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.ah-media-sheet-media.is-gallery .ah-img-viewer-hint { bottom: 78px; }
.ah-media-sheet .ah-img-viewer-hint[hidden] { display: none !important; }
.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;
}
.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-post-title {
  margin: 0 0 10px;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.35;
  color: var(--ah-text, #0f172a);
}
.ah-media-sheet-loading {
  margin: 8px 0 0;
  color: var(--ah-muted, #64748b);
  font-size: .86rem;
}
/* 文章信息流：正文全部展开，不裁切 */
.ah-media-sheet-text.is-post-full {
  max-height: none;
  overflow: visible;
}
.ah-media-sheet-text.is-post-full img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 10px 0;
}
.ah-media-sheet-text.is-post-full p { margin: 0 0 .75em; }
.ah-media-sheet-text.is-post-full p:last-child { margin-bottom: 0; }
.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-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 {
  flex-shrink: 0;
  border-top: 1px solid var(--ah-line, #eef3f0);
  padding: 10px 12px 12px;
  background: #fff;
}
.ah-media-sheet-side-ft .ah-card-cmt,
.ah-media-sheet-side-ft .ah-card-cmt-panel {
  display: block !important;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}
.ah-media-sheet-side-ft .ah-card-cmt[hidden],
.ah-media-sheet-side-ft .ah-card-cmt-panel[hidden] {
  display: block !important;
}
.ah-media-sheet-side-ft .ah-flash-cmt-list { display: none; }
.ah-media-sheet-side-ft .ah-flash-cmt-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ah-media-sheet-side-ft .ah-flash-cmt-form textarea {
  width: 100%;
  min-height: 64px;
  resize: vertical;
}
.ah-media-sheet-side-ft .ah-comment-login-tip {
  margin: 0;
  font-size: .88rem;
  color: var(--ah-muted, #64748b);
}
@media (max-width: 860px) {
  .ah-media-sheet { --ah-media-right: 100%; }
  .ah-media-sheet-neighbor,
  .ah-media-sheet-page {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(42vh, 48vh) minmax(0, 1fr);
  }
  .ah-media-sheet-side,
  .ah-media-sheet-neighbor-side {
    border-left: 0; border-top: 1px solid var(--ah-line, #eef3f0);
  }
  /* 手机：缩放条默认隐藏，双击/放大后再出；提示短显 */
  .ah-media-sheet-zoom {
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity .22s ease, transform .22s ease;
    bottom: 12px;
  }
  .ah-media-sheet-media.is-gallery .ah-media-sheet-zoom { bottom: 28px; }
  .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 .ah-img-viewer-hint {
    bottom: 18px;
    font-size: .72rem;
    max-width: calc(100% - 24px);
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .ah-media-sheet-media.is-gallery .ah-img-viewer-hint { bottom: 34px; }
  .ah-media-sheet-media.is-zoomed .ah-img-viewer-hint,
  .ah-media-sheet-zoom.is-temp ~ .ah-img-viewer-hint {
    bottom: 56px;
  }
  .ah-media-sheet-media.is-gallery.is-zoomed .ah-img-viewer-hint {
    bottom: 68px;
  }
}

.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-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: var(--ah-ico-view, url(icons/view.svg));
  mask-image: var(--ah-ico-view, url(icons/view.svg));
}
.ah-ico-like {
  -webkit-mask-image: var(--ah-ico-like, url(icons/like.svg));
  mask-image: var(--ah-ico-like, url(icons/like.svg));
}
.ah-ico-collect {
  -webkit-mask-image: var(--ah-ico-collect, url(icons/collect.svg));
  mask-image: var(--ah-ico-collect, url(icons/collect.svg));
}
.ah-ico-com {
  -webkit-mask-image: var(--ah-ico-com, url(icons/comment.svg));
  mask-image: var(--ah-ico-com, url(icons/comment.svg));
}
.ah-ico-share {
  -webkit-mask-image: var(--ah-ico-share, url(icons/share.svg));
  mask-image: var(--ah-ico-share, 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;
  min-width: 0;
}
.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-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ah-home-rail-card strong {
  display: block;
  font-size: 0.88rem;
  line-height: 1.35;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.ah-home-rail-card em {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  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: 16px;
  padding: 12px 14px 10px; box-shadow: var(--ah-shadow); margin-bottom: 14px;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.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-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(145deg, #14b8a6, #0f766e);
  color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 0.8rem;
  flex-shrink: 0; object-fit: cover; margin-top: 2px;
}
.ah-composer-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.ah-composer-text-wrap {
  position: relative;
  width: 100%;
  min-height: 28px;
}
.ah-composer.is-focus .ah-composer-text-wrap,
.ah-composer.is-filled .ah-composer-text-wrap {
  min-height: 64px;
}
.ah-composer-highlight {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 4px 0 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.2rem; line-height: 1.45; font-weight: 400;
  /* 无高亮镜像层时直接显示文字；有 .ah-composer-highlight 时再透明叠字 */
  color: var(--ah-ink, #0f172a);
  caret-color: var(--ah-ink, #0f172a);
  -webkit-text-fill-color: var(--ah-ink, #0f172a);
  background: transparent; min-height: 28px; max-height: 280px;
  overflow-y: auto; padding: 6px 0 4px;
  box-sizing: border-box;
  field-sizing: content; /* 支持的浏览器原生随内容增高 */
}
.ah-composer.is-focus .ah-composer-text,
.ah-composer.is-filled .ah-composer-text {
  min-height: 64px;
}
.ah-composer-text-wrap:has(.ah-composer-highlight) .ah-composer-text {
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.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; margin-top: 2px; border-top: 1px solid transparent;
}
.ah-composer.is-focus .ah-composer-bar,
.ah-composer.is-filled .ah-composer-bar,
.ah-composer:has(.ah-composer-previews:not([hidden])) .ah-composer-bar,
.ah-composer:has(.ah-composer-quote:not([hidden])) .ah-composer-bar {
  border-top-color: 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 4px;
  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: 36px; height: 36px; border-radius: 999px; cursor: pointer;
  color: var(--ah-accent-deep); background: transparent;
  transition: background .12s ease, color .12s ease, transform .12s ease; padding: 0; font: inherit;
}
.ah-composer-icon-btn:hover { background: var(--ah-accent-soft); }
.ah-composer-icon-btn:active { transform: scale(0.96); }
.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.84rem; font-weight: 600;
  text-decoration: none; padding: 6px 10px;
  border-radius: 999px; border: 0; background: transparent; cursor: pointer; font: inherit;
}
.ah-composer-tool.is-muted { color: #64748b; font-weight: 500; }
.ah-composer-tool:hover { background: var(--ah-accent-soft); color: var(--ah-accent-deep); text-decoration: none; }
.ah-composer-actions {
  display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0;
}
.ah-composer-previews {
  display: flex; flex-wrap: wrap; gap: 8px; padding: 2px 0 4px;
}
.ah-composer-previews[hidden] { display: none !important; }
.ah-composer-preview {
  position: relative; width: 72px; height: 72px; border-radius: 12px;
  overflow: hidden; border: 1px solid var(--ah-line, #e2e8f0); background: #f8fafc;
  flex-shrink: 0;
}
.ah-composer-preview img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.ah-composer-preview button {
  position: absolute; top: 4px; right: 4px; z-index: 2;
  width: 22px; height: 22px; border: 0; border-radius: 999px;
  background: rgba(15, 23, 42, .72); color: #fff; cursor: pointer;
  font-size: 14px; line-height: 1; padding: 0;
}
.ah-composer-preview.is-uploading::after {
  content: "";
  position: absolute; inset: 0;
  background: rgba(15, 23, 42, .28);
}
.ah-composer-preview-status {
  position: absolute; left: 50%; top: 50%; z-index: 1;
  transform: translate(-50%, -50%);
  margin: 0; padding: 2px 6px; border-radius: 999px;
  background: rgba(15, 23, 42, .78); color: #fff;
  font-size: 11px; font-style: normal; white-space: nowrap;
  pointer-events: none;
}
.ah-composer-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-deep, #0f766e); color: #fff; font-weight: 700;
  border-radius: 999px; padding: 8px 18px; min-width: 4.5rem; font-size: 0.9rem;
  white-space: nowrap; text-decoration: none; line-height: 1.2;
  transition: background .15s ease, opacity .15s ease, transform .12s ease;
}
.ah-composer-send:hover { background: #0b5f59; color: #fff; }
.ah-composer-send:active:not(:disabled):not(.is-disabled) { transform: scale(0.98); }
.ah-composer-send:disabled,
.ah-composer-send.is-disabled,
.ah-composer-send[aria-disabled="true"] {
  opacity: 0.38; cursor: not-allowed; background: var(--ah-accent-deep, #0f766e);
  pointer-events: none;
}
.ah-composer-send:disabled:hover,
.ah-composer-send.is-disabled:hover,
.ah-composer-send[aria-disabled="true"]:hover {
  background: var(--ah-accent-deep, #0f766e);
}
.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-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: not-allowed; opacity: 0.85;
}
.ah-profile-edit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  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;
  text-decoration: none;
  line-height: 1.2;
}
.ah-profile-edit:hover { background: rgba(15, 23, 42, 0.05); color: #0f172a; }

/* 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; flex-shrink: 0;
}
.ah-modal-avatar-ph {
  display: grid; place-items: center; font-weight: 800; color: #0f172a;
}
.ah-modal-avatar-actions {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0;
}
.ah-modal-avatar-tip { margin: 0; color: #64748b; font-size: 0.82rem; line-height: 1.35; }
.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;
}
/* 仅文章卡片裁剪；贴图不要这条 width/height:100% */
.ah-stream-thumbs.is-post .ah-stream-thumb img,
.ah-stream-thumbs:not(.is-flash) .ah-stream-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  border-radius: 10px;
}
/* 贴图：严格等比例 contain，禁止拉伸 */
.ah-stream-thumbs.is-flash {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  gap: 8px;
  align-items: center;
  justify-content: center;
  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;
  box-sizing: border-box;
  width: fit-content;
  max-width: 100%;
  height: auto !important;
  padding: 0;
  margin: 0;
  cursor: zoom-in;
  font: inherit;
  color: inherit;
  text-decoration: none;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  overflow: visible;
  display: block;
  line-height: 0;
}
.ah-stream-thumbs.is-flash a.ah-stream-thumb {
  text-decoration: none;
  color: inherit;
}
.ah-stream-thumbs.is-flash .ah-stream-thumb img {
  display: block;
  box-sizing: border-box;
  width: auto !important;
  height: auto !important;
  /* 对齐文章卡片体量：略大于方图，但明显小于原先大图 */
  max-width: min(100%, 280px) !important;
  max-height: 180px !important;
  object-fit: contain !important;
  object-position: center center;
  aspect-ratio: auto;
  border-radius: 10px;
  margin: 0 auto;
}
.ah-stream-thumbs.is-flash[data-count="1"] {
  overflow: visible;
  justify-content: flex-start;
}
.ah-stream-thumbs.is-flash[data-count="1"] .ah-stream-thumb {
  width: fit-content;
  max-width: 100%;
  margin: 0;
  background: transparent;
}
.ah-stream-thumbs.is-flash[data-count="1"] .ah-stream-thumb img {
  max-width: min(100%, 320px) !important;
  max-height: 240px !important;
  width: auto !important;
  height: auto !important;
}
.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: 150px !important;
    max-width: min(100%, 100vw - 48px) !important;
  }
  .ah-stream-thumbs.is-flash[data-count="1"] .ah-stream-thumb img {
    max-height: 200px !important;
    max-width: min(100%, 280px) !important;
  }
  .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 minmax(0, 1fr) auto; gap: 8px;
  align-items: start; padding: 10px 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; color: inherit; text-decoration: none;
  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;
  white-space: nowrap; padding-top: 2px;
}
.ah-stream-hot-rank {
  width: 20px; height: 20px; border-radius: 6px;
  display: grid; place-items: center;
  font-size: 0.72rem; font-weight: 800; color: #66736d; background: #eef3f0;
  flex-shrink: 0;
}
.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: var(--ah-muted);
  font-size: 0.8rem;
  padding: 8px 16px 28px;
}
.ah-stream-foot-nav {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 10px;
  max-width: 100%;
}
.ah-stream-foot-link {
  color: var(--ah-muted);
  text-decoration: none;
}
.ah-stream-foot-link:hover { color: var(--ah-accent); }
.ah-stream-foot-sep {
  color: #cbd5e1;
  user-select: none;
}

/* Explore discover (stream/explore) */
.ah-explore {
  display: grid;
  gap: 18px;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}
.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);
  min-width: 0;
  box-sizing: border-box;
}
.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; word-break: break-word; }
.ah-explore-flash { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.ah-explore-flash a {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; align-items: center;
  text-decoration: none; color: inherit; padding: 10px 4px; border-radius: 10px;
  background: transparent; border: 0;
  min-width: 0;
}
.ah-explore-flash a:hover { background: rgba(15, 23, 42, 0.04); }
.ah-explore-flash-tag {
  flex-shrink: 0;
  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; min-width: 0;
  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; min-width: 0; }
.ah-explore-person {
  display: flex; gap: 10px; align-items: center;
  padding: 8px 2px; border-radius: 14px;
  background: transparent; border: 0;
  min-width: 0;
}
.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-name {
  display: inline-flex; align-items: center; gap: 6px; min-width: 0;
}
.ah-explore-person-meta strong {
  font-size: 0.95rem;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ah-explore-person-meta em { color: var(--ah-muted); font-style: normal; font-size: 0.82rem; }
.ah-explore-person-meta .ah-explore-person-stats {
  color: var(--ah-muted); font-size: 0.82rem; line-height: 1.35;
  white-space: normal; overflow: visible;
}
.ah-explore-person-meta .ah-explore-person-stats 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: 820px) {
  /* 探索页：与首页/贴图同一套手机壳，强制单栏铺满 */
  body.ah-mode-explore .ah-stream {
    grid-template-columns: minmax(0, 1fr);
    width: min(720px, calc(100% - 16px));
  }
  body.ah-mode-explore .ah-stream-right {
    display: none !important;
  }
  body.ah-mode-explore #ah-stream-main,
  body.ah-mode-explore .ah-explore {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
  body.ah-mode-explore .ah-drawer-toggle,
  body.ah-mode-explore .ah-mobile-search-toggle {
    display: grid;
  }
}

@media (max-width: 640px) {
  .ah-explore { gap: 14px; }
  .ah-explore-hd { margin-bottom: 4px; }
  .ah-explore-hd h1 { font-size: 1.28rem; }
  .ah-explore-hd p { font-size: 0.86rem; }
  .ah-explore-block {
    padding: 14px;
    border-radius: 16px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .ah-explore-topic {
    padding: 12px;
    margin-bottom: 8px;
  }
  .ah-explore-products { grid-template-columns: 1fr; }
  .ah-explore-flash a {
    grid-template-columns: auto minmax(0, 1fr);
    padding: 10px 2px;
  }
  .ah-explore-flash em { display: none; }
  .ah-explore-flash-text {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .ah-explore-person {
    align-items: flex-start;
    gap: 8px;
    padding: 10px 0;
  }
  .ah-explore-person-main { align-items: flex-start; }
  .ah-explore-person-avatar { width: 42px; height: 42px; }
  .ah-explore-follow {
    margin-top: 2px;
    padding: 6px 10px;
    font-size: 0.8rem;
  }
  .ah-explore-posts {
    gap: 10px;
    width: 100%;
    min-width: 0;
  }
  .ah-explore-posts .ah-stream-card {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
}

@media (max-width: 1100px) {
  .ah-stream { grid-template-columns: var(--ah-left) minmax(0, 1fr); }
  .ah-stream-right { display: none; }
  .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;
}
.ah-wk--tile .ah-wk-sum { display: none; }
.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-back-top {
  display: grid;
  place-items: center;
  position: fixed;
  right: 16px;
  bottom: 24px;
  z-index: 68;
  width: 42px;
  height: 42px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--ah-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(20, 32, 28, 0.08);
  color: #0f172a;
  cursor: pointer;
  opacity: 1;
  transform: translateY(0);
  transition: opacity .16s ease, transform .16s ease, border-color .16s ease, color .16s ease;
}
.ah-back-top[hidden] {
  display: grid !important;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
}
.ah-back-top:hover {
  border-color: rgba(15, 118, 110, 0.35);
  color: var(--ah-accent-deep, #0f766e);
}
.ah-back-top .ah-stream-ico,
.ah-back-top .ah-stream-ico svg {
  width: 18px;
  height: 18px;
  display: block;
}
@media (max-width: 820px) {
  .ah-back-top {
    right: 12px;
    bottom: 72px;
  }
}
.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-side-block {
    width: 100%;
    max-width: 100%;
  }
  .ah-stream-side-block .ah-drawer-hd,
  .ah-stream-side-block .ah-stream-menu,
  .ah-stream-side-block .ah-stream-post {
    width: 100%;
    min-width: 0;
  }
  .ah-stream-brand { margin-bottom: 0; width: 100%; }
  .ah-stream-brand-text { display: flex; }
  .ah-stream-menu {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 2px;
    width: 100%;
  }
  .ah-stream-menu-item {
    width: 100%;
    max-width: none;
    padding: 12px 14px;
    font-size: 1.05rem;
    border-radius: 14px;
  }
  .ah-stream-menu-label { display: block; }
  .ah-stream-login {
    display: flex;
    margin-top: 8px !important;
    width: 100%;
    box-sizing: border-box;
  }
  .ah-stream-user {
    display: inline-flex;
    margin-top: 8px !important;
    width: fit-content;
    max-width: 100%;
  }
  .ah-stream-post { display: none; }
  .ah-stream-user-more { display: none; }
  .ah-drawer-account-links {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    margin-top: 10px;
  }
  .ah-drawer-account-link {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid var(--ah-line);
    background: #fff;
    color: #0f172a;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
  }
  .ah-drawer-account-link:hover { background: rgba(15, 23, 42, 0.04); }
  .ah-drawer-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 4px;
    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; }
.ah-search-tabs,
.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; }
/* jisu 简化搜索 Tab */
.ah-search-tabs {
  display: flex; gap: 0; margin: 0 0 12px; padding: 0;
  border-bottom: 1px solid var(--ah-line, #e4ebe7);
}
.ah-search-tabs a {
  flex: 1; text-align: center; text-decoration: none;
  color: #64748b; font-size: .9rem; font-weight: 600;
  padding: 10px 4px 12px; border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.ah-search-tabs a em { font-style: normal; font-weight: 600; font-size: .78rem; color: #94a3b8; margin-left: 4px; }
.ah-search-tabs a.is-active,
.ah-search-tabs a.is-on {
  color: var(--ah-accent-deep, #0f766e);
  border-bottom-color: var(--ah-accent, #14b8a6);
}
.ah-search-tabs a.is-active em,
.ah-search-tabs a.is-on em { color: inherit; }
.ah-search-sort {
  display: flex; gap: 10px; margin: 0 0 14px; font-size: .86rem;
}
.ah-search-sort a {
  color: #64748b; text-decoration: none; font-weight: 600;
  padding: 4px 10px; border-radius: 999px; background: #f1f5f4;
}
.ah-search-sort a.is-active {
  color: #fff; background: var(--ah-accent-deep, #0f766e);
}
.ah-card-cmt-panel {
  margin: 0 14px 14px; padding: 12px;
  border: 1px solid var(--ah-line, #e4ebe7);
  border-radius: 14px; background: #f8faf9;
}
.ah-card-cmt-panel[hidden] { display: none !important; }
.ah-flash-cmt-form {
  display: flex; gap: 8px; align-items: flex-end; margin-top: 10px;
}
.ah-flash-cmt-form textarea {
  flex: 1; min-height: 44px; resize: vertical;
  border: 1px solid rgba(15,23,42,.12); border-radius: 10px;
  padding: 8px 10px; font: inherit; font-size: .9rem;
}
.ah-flash-cmt-form button {
  border: 0; border-radius: 999px; padding: 8px 14px;
  background: #0f172a; color: #fff; font-weight: 700; cursor: pointer;
}
.ah-card-cmt-avatar {
  width: 28px; height: 28px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
}
.ah-card-cmt-avatar-ph {
  display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: #e2e8f0; font-size: .75rem; font-weight: 700; 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);
  }
}
