/**
 * 独立工具页：今日热榜（body.page-agent-daily-hot）
 */
body.page-agent-daily-hot {
  margin: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  box-sizing: border-box;
  background: linear-gradient(165deg, #fff7ed 0%, #f8fafc 42%, #eef2ff 100%);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.page-agent-daily-hot .adh-shell {
  max-width: 430px;
  margin: 0 auto;
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-sizing: border-box;
}

body.page-agent-daily-hot .adh-navbar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  padding-top: calc(12px + env(safe-area-inset-top, 0px));
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.07);
}

body.page-agent-daily-hot .adh-navbar-back {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(124, 45, 18, 0.08);
  color: #9a3412;
  text-decoration: none;
  flex-shrink: 0;
}

body.page-agent-daily-hot .adh-navbar-back:active {
  opacity: 0.88;
  transform: scale(0.96);
}

body.page-agent-daily-hot .adh-navbar-title {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.02em;
}

body.page-agent-daily-hot .adh-navbar-refresh {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  border: 1px solid rgba(234, 88, 12, 0.28);
  background: linear-gradient(180deg, #fff 0%, #fff7ed 100%);
  color: #c2410c;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}

body.page-agent-daily-hot .adh-navbar-refresh.is-spinning .adh-refresh-ico {
  animation: adhSpin 0.75s linear infinite;
}

@keyframes adhSpin {
  to {
    transform: rotate(360deg);
  }
}

body.page-agent-daily-hot .adh-root {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  padding: 10px 14px calc(22px + env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
}

/* 使用场景提示 */
body.page-agent-daily-hot .adh-scenario-tip {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 14px;
  padding: 14px 16px;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-radius: 14px;
  border: 1px solid rgba(245, 158, 11, 0.25);
}
body.page-agent-daily-hot .adh-scenario-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  border-radius: 10px;
  color: #fff;
  font-size: 15px;
}
body.page-agent-daily-hot .adh-scenario-text {
  flex: 1;
  min-width: 0;
}
body.page-agent-daily-hot .adh-scenario-text strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: #92400e;
  margin-bottom: 4px;
}
body.page-agent-daily-hot .adh-scenario-text span {
  font-size: 13px;
  color: #b45309;
  line-height: 1.5;
}

body.page-agent-daily-hot .adh-lead {
  margin: 0 0 12px;
  padding: 8px 12px;
  font-size: 13px;
  line-height: 1.45;
  color: #64748b;
  background: rgba(255, 255, 255, 0.75);
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.06);
}

/* 主内容块：减少「多张卡片」堆叠感 */
body.page-agent-daily-hot .adh-sheet {
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.07);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
  padding: 14px 14px 16px;
  margin-bottom: 12px;
}

body.page-agent-daily-hot .adh-sheet--stamp {
  padding-bottom: 14px;
}

body.page-agent-daily-hot .adh-sheet-cap {
  margin-bottom: 12px;
}

body.page-agent-daily-hot .adh-sheet-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.02em;
}

body.page-agent-daily-hot .adh-tag-optional {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  background: #f1f5f9;
  border-radius: 999px;
  vertical-align: middle;
}

body.page-agent-daily-hot .adh-sheet-sub {
  margin: 4px 0 0;
  font-size: 12px;
  color: #64748b;
  line-height: 1.4;
}

/* 平台标签：限制高度，避免占满整屏 */
body.page-agent-daily-hot .adh-platform-box {
  position: relative;
  max-height: min(36vh, 200px);
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 -4px;
  padding: 4px 4px 8px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.05);
  scrollbar-width: thin;
}

body.page-agent-daily-hot .adh-platform-box::-webkit-scrollbar {
  width: 5px;
}

body.page-agent-daily-hot .adh-platform-box::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.55);
  border-radius: 99px;
}

body.page-agent-daily-hot .adh-platform-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-content: flex-start;
}

body.page-agent-daily-hot .adh-rule {
  height: 0;
  margin: 14px 0 12px;
  border: none;
  border-top: 1px solid rgba(15, 23, 42, 0.07);
}

body.page-agent-daily-hot .adh-sync-block {
  padding: 4px 2px 2px;
}

body.page-agent-daily-hot .adh-sync-line {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  color: #334155;
}

body.page-agent-daily-hot .adh-sync-meta {
  margin: 6px 0 0;
  font-size: 11px;
  line-height: 1.4;
  color: #94a3b8;
}

body.page-agent-daily-hot .adh-pill {
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: #f8fafc;
  color: #334155;
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  max-width: 100%;
}

body.page-agent-daily-hot .adh-pill:active {
  transform: scale(0.97);
}

body.page-agent-daily-hot .adh-pill.is-active {
  border-color: transparent;
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
  color: #fff;
  font-weight: 600;
}

body.page-agent-daily-hot .adh-pill--skel {
  width: 72px;
  height: 34px;
  border-radius: 999px;
  background: linear-gradient(90deg, #f1f5f9 0%, #e2e8f0 50%, #f1f5f9 100%);
  background-size: 200% 100%;
  animation: adhSkel 1.1s ease-in-out infinite;
  border: none;
}

@keyframes adhSkel {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

body.page-agent-daily-hot .adh-hint {
  margin: 10px 0 0;
  font-size: 12px;
  color: #b45309;
  line-height: 1.45;
}

html[data-h5-appearance='dark'] body.page-agent-daily-hot {
  background: linear-gradient(165deg, #1c1917 0%, #0f172a 50%, #1e1b4b 100%);
  color: #e2e8f0;
}

html[data-h5-appearance='dark'] body.page-agent-daily-hot .adh-navbar {
  background: rgba(15, 23, 42, 0.92);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

html[data-h5-appearance='dark'] body.page-agent-daily-hot .adh-navbar-title {
  color: #f1f5f9;
}

html[data-h5-appearance='dark'] body.page-agent-daily-hot .adh-navbar-back {
  background: rgba(251, 146, 60, 0.15);
  color: #fdba74;
}

html[data-h5-appearance='dark'] body.page-agent-daily-hot .adh-sheet {
  background: rgba(30, 41, 59, 0.92);
  border-color: rgba(255, 255, 255, 0.08);
}

html[data-h5-appearance='dark'] body.page-agent-daily-hot .adh-sheet-title,
html[data-h5-appearance='dark'] body.page-agent-daily-hot .adh-sync-line {
  color: #f1f5f9;
}

html[data-h5-appearance='dark'] body.page-agent-daily-hot .adh-lead {
  background: rgba(15, 23, 42, 0.55);
  color: #cbd5e1;
  border-color: rgba(255, 255, 255, 0.08);
}

html[data-h5-appearance='dark'] body.page-agent-daily-hot .adh-scenario-tip {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(217, 119, 6, 0.12) 100%);
  border-color: rgba(245, 158, 11, 0.2);
}
html[data-h5-appearance='dark'] body.page-agent-daily-hot .adh-scenario-text strong {
  color: #fbbf24;
}
html[data-h5-appearance='dark'] body.page-agent-daily-hot .adh-scenario-text span {
  color: #fcd34d;
}

html[data-h5-appearance='dark'] body.page-agent-daily-hot .adh-platform-box {
  background: rgba(15, 23, 42, 0.45);
  border-color: rgba(255, 255, 255, 0.08);
}

html[data-h5-appearance='dark'] body.page-agent-daily-hot .adh-tag-optional {
  background: rgba(15, 23, 42, 0.6);
  color: #94a3b8;
}

html[data-h5-appearance='dark'] body.page-agent-daily-hot .adh-sheet-sub {
  color: #94a3b8;
}

html[data-h5-appearance='dark'] body.page-agent-daily-hot .adh-pill {
  background: rgba(15, 23, 42, 0.6);
  border-color: rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
}

html[data-h5-appearance='dark'] body.page-agent-daily-hot .adh-sync-meta {
  color: #64748b;
}

/* —— 海报落款区 —— */
body.page-agent-daily-hot .adh-profile-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

body.page-agent-daily-hot .adh-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

body.page-agent-daily-hot .adh-avatar-input {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
}

body.page-agent-daily-hot .adh-avatar-hit {
  width: 56px;
  height: 56px;
  padding: 0;
  border: 2px dashed rgba(234, 88, 12, 0.35);
  border-radius: 50%;
  background: #fffbeb;
  cursor: pointer;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}

body.page-agent-daily-hot .adh-avatar-img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 50%;
}

body.page-agent-daily-hot .adh-avatar-ph {
  font-size: 11px;
  color: #b45309;
  font-weight: 600;
}

body.page-agent-daily-hot .adh-profile-fields {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

body.page-agent-daily-hot .adh-input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 15px;
  background: #f8fafc;
  color: #0f172a;
}

body.page-agent-daily-hot .adh-input::placeholder {
  color: #94a3b8;
}

/* 生成海报主按钮 */
body.page-agent-daily-hot .adh-poster-cta {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin: 14px 0 0;
  padding: 13px 16px;
  border: none;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #ea580c 0%, #c026d3 48%, #4f46e5 100%);
  box-shadow: 0 8px 24px rgba(192, 38, 211, 0.22);
  -webkit-tap-highlight-color: transparent;
}

body.page-agent-daily-hot .adh-poster-cta:disabled {
  opacity: 0.65;
  pointer-events: none;
}

body.page-agent-daily-hot .adh-poster-cta:active:not(:disabled) {
  transform: scale(0.99);
}

body.page-agent-daily-hot .adh-foot-note {
  margin: 0;
  padding: 0 4px 6px;
  font-size: 11px;
  line-height: 1.5;
  color: #94a3b8;
  text-align: center;
}

html[data-h5-appearance='dark'] body.page-agent-daily-hot .adh-foot-note {
  color: #64748b;
}

/* —— 生成结果：加载态 → 内联海报 —— */
body.page-agent-daily-hot .adh-result {
  margin-top: 14px;
  padding-top: 2px;
}

body.page-agent-daily-hot .adh-result[hidden] {
  display: none !important;
}

body.page-agent-daily-hot .adh-gen-loading {
  border-radius: 16px;
  padding: 28px 20px 32px;
  text-align: center;
  background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 45%, #2563eb 100%);
  color: #fff;
  box-shadow: 0 12px 32px rgba(79, 70, 229, 0.32);
}

body.page-agent-daily-hot .adh-gen-loading[hidden] {
  display: none !important;
}

body.page-agent-daily-hot .adh-gen-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 14px;
}

body.page-agent-daily-hot .adh-gen-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  animation: adhGenDot 0.9s ease-in-out infinite both;
}

body.page-agent-daily-hot .adh-gen-dots span:nth-child(2) {
  animation-delay: 0.12s;
}

body.page-agent-daily-hot .adh-gen-dots span:nth-child(3) {
  animation-delay: 0.24s;
}

body.page-agent-daily-hot .adh-gen-dots span:nth-child(4) {
  animation-delay: 0.36s;
}

@keyframes adhGenDot {
  0%,
  80%,
  100% {
    transform: scale(0.65);
    opacity: 0.45;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

body.page-agent-daily-hot .adh-gen-txt {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

body.page-agent-daily-hot .adh-poster-wrap {
  padding-top: 4px;
}

body.page-agent-daily-hot .adh-poster-wrap[hidden] {
  display: none !important;
}

body.page-agent-daily-hot .adh-poster-cap {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  color: #475569;
}

body.page-agent-daily-hot .adh-poster-mount-inline {
  display: flex;
  justify-content: center;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

body.page-agent-daily-hot .adh-poster-wrap .adh-save-poster {
  margin-top: 14px;
}

/* 导出画布：9:16 比例便于分享 */
body.page-agent-daily-hot .adh-poster-export {
  width: 360px;
  min-height: 640px;
  max-width: 100%;
  box-sizing: border-box;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

body.page-agent-daily-hot .adh-pe__head {
  padding: 24px 18px 20px;
  background: linear-gradient(135deg, #ea580c 0%, #9333ea 55%, #4338ca 100%);
  color: #fff;
}

body.page-agent-daily-hot .adh-pe__plat {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

body.page-agent-daily-hot .adh-pe__sub {
  margin-top: 8px;
  font-size: 14px;
  opacity: 0.95;
}

body.page-agent-daily-hot .adh-pe__meta {
  margin-top: 8px;
  font-size: 11px;
  opacity: 0.85;
  line-height: 1.35;
}

body.page-agent-daily-hot .adh-pe__body {
  padding: 12px 16px 8px;
}

body.page-agent-daily-hot .adh-pe__row {
  display: flex;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

body.page-agent-daily-hot .adh-pe__row:last-of-type {
  border-bottom: none;
}

body.page-agent-daily-hot .adh-pe__badge {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.page-agent-daily-hot .adh-pe__txt {
  flex: 1 1 auto;
  min-width: 0;
}

body.page-agent-daily-hot .adh-pe__title {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

body.page-agent-daily-hot .adh-pe__desc {
  display: none;
}

body.page-agent-daily-hot .adh-pe__tag {
  display: inline-block;
  margin-top: 6px;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
  color: #64748b;
  background: #f1f5f9;
}

body.page-agent-daily-hot .adh-pe__warn {
  margin: 12px 0 0;
  font-size: 10px;
  color: #94a3b8;
  line-height: 1.45;
}

body.page-agent-daily-hot .adh-pe__sig {
  padding: 16px 16px 20px;
  background: linear-gradient(180deg, #faf5ff 0%, #fff7ed 100%);
  border-top: 1px solid rgba(147, 51, 234, 0.12);
}

body.page-agent-daily-hot .adh-pe__sig-inner {
  display: flex;
  align-items: center;
  gap: 12px;
}

body.page-agent-daily-hot .adh-pe__sig-av {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.1);
}

body.page-agent-daily-hot .adh-pe__sig-av--ph {
  background: linear-gradient(135deg, #e9d5ff, #fed7aa);
}

body.page-agent-daily-hot .adh-pe__sig-text {
  flex: 1 1 auto;
  min-width: 0;
}

body.page-agent-daily-hot .adh-pe__sig-name {
  font-size: 17px;
  font-weight: 800;
  color: #4c1d95;
}

body.page-agent-daily-hot .adh-pe__sig-line {
  margin-top: 4px;
  font-size: 13px;
  color: #6b21a8;
  line-height: 1.4;
}

body.page-agent-daily-hot .adh-pe__sig-line--muted {
  color: #9333ea;
  opacity: 0.75;
}

body.page-agent-daily-hot .adh-save-poster {
  width: 100%;
  box-sizing: border-box;
  padding: 14px 18px;
  border: none;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(180deg, #16a34a 0%, #15803d 100%);
  box-shadow: 0 8px 20px rgba(22, 163, 74, 0.35);
}

body.page-agent-daily-hot .adh-save-poster:disabled {
  opacity: 0.6;
}

html[data-h5-appearance='dark'] body.page-agent-daily-hot .adh-input {
  background: rgba(15, 23, 42, 0.5);
  border-color: rgba(255, 255, 255, 0.12);
  color: #f1f5f9;
}

html[data-h5-appearance='dark'] body.page-agent-daily-hot .adh-poster-cap {
  color: #94a3b8;
}
