:root {
  --public-bg: #131313;
  --public-panel: #1c1b1b;
  --public-panel-soft: #201f1f;
  --public-panel-strong: #2a2a2a;
  --public-text: #e5e2e1;
  --public-muted: #c3b4ab;
  --public-line: rgba(255, 255, 255, 0.08);
  --public-accent: #f97316;
  --public-accent-soft: #ffb690;
  --public-gradient: linear-gradient(90deg, #3131c0 0%, #ff5faa 100%);
  --admin-bg: #0b1326;
  --admin-panel: #131b2e;
  --admin-panel-soft: #171f33;
  --admin-panel-strong: #222a3d;
  --admin-text: #dae2fd;
  --admin-muted: #9fa9c8;
  --admin-line: rgba(218, 226, 253, 0.08);
  --admin-accent: #f97316;
  --success: #4edea3;
  --warning: #ffc36b;
  --danger: #ff8c8c;
  --shadow-public: 0 24px 60px rgba(0, 0, 0, 0.28);
  --shadow-admin: 0 30px 80px rgba(1, 8, 20, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top center, rgba(249, 115, 22, 0.12), transparent 24%),
    radial-gradient(circle at top left, rgba(49, 49, 192, 0.18), transparent 22%),
    var(--public-bg);
  color: var(--public-text);
  font-family: "Be Vietnam Pro", "PingFang SC", "Hiragino Sans GB", sans-serif;
}

body.page-entering {
  opacity: 0;
}

body.page-entered {
  opacity: 1;
  transition: opacity 180ms ease;
}

body.page-leaving {
  opacity: 0;
  transition: opacity 120ms ease;
}

@media (prefers-reduced-motion: reduce) {
  body.page-entering,
  body.page-entered,
  body.page-leaving {
    opacity: 1;
    transition: none;
  }
}

body.admin-body {
  background:
    radial-gradient(circle at top right, rgba(249, 115, 22, 0.09), transparent 18%),
    linear-gradient(180deg, #0b1326 0%, #09101e 100%);
  color: var(--admin-text);
  font-family: "Inter", "PingFang SC", "Hiragino Sans GB", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.public-shell {
  width: min(720px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 24px 0 48px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(19, 19, 19, 0.84);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.public-topbar {
  margin: 0 auto 24px;
  width: min(720px, calc(100vw - 32px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 0 10px;
}

.brand-lockup {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.brand-lockup--with-icon {
  flex-direction: row;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  flex-shrink: 0;
  display: block;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.brand-title {
  font-family: "Bricolage Grotesque", "PingFang SC", sans-serif;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-subtitle,
.meta-text {
  color: var(--public-muted);
  font-size: 13px;
  line-height: 1.5;
}

.topbar-actions,
.chip-row,
.card-actions,
.feed-stack,
.login-actions,
.stat-grid,
.admin-grid,
.admin-toolbar,
.form-grid,
.list-stack {
  display: flex;
  gap: 12px;
}

.topbar-actions {
  align-items: center;
  justify-content: flex-end;
}

.ghost-link,
.ghost-button {
  border: 1px solid var(--public-line);
  background: rgba(255, 255, 255, 0.02);
  color: var(--public-text);
}

.primary-button,
.ghost-button,
.link-button {
  border: 0;
  border-radius: 999px;
  padding: 11px 18px;
  transition: transform 160ms ease, opacity 160ms ease, border-color 160ms ease, background 160ms ease;
}

.primary-button:hover,
.ghost-button:hover,
.link-button:hover,
.admin-primary:hover,
.admin-secondary:hover {
  transform: translateY(-1px);
}

.primary-button {
  background: var(--public-accent);
  color: #341100;
  font-weight: 700;
}

.link-button {
  background: transparent;
  color: var(--public-muted);
  padding-inline: 0;
}

.public-panel,
.feed-card,
.hero-card,
.article-card,
.login-card,
.admin-panel,
.admin-login-card,
.admin-article-card,
.admin-topic-card {
  border-radius: 24px;
  border: 1px solid var(--public-line);
  background: var(--public-panel);
  box-shadow: var(--shadow-public);
}

.hero-card,
.article-card,
.feed-card {
  overflow: hidden;
}

.hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(230px, 0.85fr);
  gap: 0;
  margin-bottom: 28px;
}

.card-media,
.hero-media,
.detail-cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background:
    radial-gradient(circle at top left, rgba(249, 115, 22, 0.35), transparent 30%),
    linear-gradient(135deg, #242424 0%, #161616 100%);
}

.hero-body,
.card-body,
.detail-body,
.login-card-body,
.admin-panel-body {
  padding: 20px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--public-muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gradient-pill,
.tag-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--public-gradient);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}

.tag-pill.muted-pill {
  background: rgba(255, 255, 255, 0.06);
  color: var(--public-muted);
}

.hero-title,
.article-title,
.detail-title,
.section-title,
.admin-section-title,
.admin-title {
  margin: 0;
  font-family: "Bricolage Grotesque", "PingFang SC", sans-serif;
  letter-spacing: -0.03em;
}

.hero-title {
  margin-top: 14px;
  font-size: clamp(28px, 5vw, 40px);
  line-height: 1.08;
}

.article-title {
  margin-top: 10px;
  font-size: 28px;
  line-height: 1.18;
}

.detail-title {
  margin-top: 16px;
  font-size: clamp(30px, 5vw, 42px);
  line-height: 1.08;
}

.hero-summary,
.card-summary,
.detail-summary {
  margin: 14px 0 0;
  color: var(--public-muted);
  font-size: 16px;
  line-height: 1.7;
}

.card-summary {
  font-size: 15px;
}

.feed-grid {
  display: grid;
  gap: 18px;
}

.feed-card {
  transition: transform 180ms ease, border-color 180ms ease;
}

.feed-card:hover {
  transform: scale(1.01);
  border-color: rgba(249, 115, 22, 0.22);
}

.queue-card {
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.14);
}

.queue-card:hover {
  transform: none;
}

.queue-media {
  position: relative;
  overflow: hidden;
}

.queue-media::after,
.queue-title::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.12) 50%, transparent 100%);
  transform: translateX(-100%);
  animation: queueShimmer 1.8s infinite;
}

.queue-title {
  position: relative;
  min-height: 64px;
}

@keyframes queueShimmer {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(100%);
  }
}

.card-actions {
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
}

.card-actions-left {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tiny-meta {
  color: var(--public-muted);
  font-size: 12px;
}

.empty-state {
  padding: 32px 24px;
  text-align: center;
  color: var(--public-muted);
}

.detail-shell {
  width: min(720px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 24px 0 48px;
}

.detail-shell-transitioning #article .detail-article-shell {
  opacity: 0;
}

.detail-body .markdown {
  margin-top: 20px;
  color: var(--public-text);
  font-size: 17px;
  line-height: 1.9;
}

.detail-body .markdown h1,
.detail-body .markdown h2,
.detail-body .markdown h3 {
  font-family: "Bricolage Grotesque", "PingFang SC", sans-serif;
  margin: 24px 0 12px;
}

.detail-body .markdown p {
  margin: 0 0 16px;
}

/* 详情页正文里被 markdown 图片语法渲染出来的 <img>：
 *   - 限制最大宽度，避免超长图撑破阅读区
 *   - 居中显示，与段落留出 20px 间距
 *   - 圆角 + 阴影，贴合整体卡片质感
 *   - 图床大多禁止外站 referrer，所以前面 JS 已经加 referrerpolicy="no-referrer"
 */
.detail-body .markdown .markdown-image {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 20px auto;
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  background: rgba(255, 255, 255, 0.04);
}

.detail-intro {
  display: grid;
  gap: 10px;
}

.detail-metric-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}

/* 详情页顶部指标 chip：纯图标 + 计数，无文字标签 */
.detail-metric-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--public-muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.detail-metric-pill.is-active {
  color: var(--public-accent);
  background: rgba(249, 115, 22, 0.14);
}

.detail-metric-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
}

.detail-metric-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.detail-footer {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--public-line);
}

.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
}

.login-card {
  width: min(420px, 100%);
  background: var(--public-panel-soft);
}

.login-card-body {
  padding: 28px;
}

.login-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.login-title {
  margin: 0;
  font-family: "Bricolage Grotesque", "PingFang SC", sans-serif;
  font-size: 32px;
  line-height: 1.1;
}

.login-note {
  color: var(--public-muted);
  font-size: 14px;
  line-height: 1.7;
}

.field-stack {
  display: grid;
  gap: 14px;
}

.field-label,
.admin-label {
  display: grid;
  gap: 8px;
  color: var(--public-muted);
  font-size: 13px;
}

.field-input,
.field-textarea,
.admin-input,
.admin-textarea,
.admin-select {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--public-line);
  background: rgba(0, 0, 0, 0.22);
  color: var(--public-text);
  padding: 13px 14px;
}

.field-input:focus,
.field-textarea:focus,
.admin-input:focus,
.admin-textarea:focus,
.admin-select:focus {
  outline: none;
  border-color: rgba(249, 115, 22, 0.55);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.14);
}

.field-textarea,
.admin-textarea {
  min-height: 140px;
  resize: vertical;
}

.message-box {
  min-height: 48px;
}

.message-box .flash,
.admin-flash {
  border-radius: 18px;
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1.6;
}

.flash.info,
.admin-flash.info {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--public-line);
  color: var(--public-text);
}

.flash.error,
.admin-flash.error {
  background: rgba(147, 0, 10, 0.22);
  border: 1px solid rgba(255, 180, 171, 0.22);
  color: #ffd2cb;
}

.task-card-failed {
  border-color: rgba(255, 140, 140, 0.26);
}

.admin-task-error {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(147, 0, 10, 0.18);
  border: 1px solid rgba(255, 180, 171, 0.18);
  color: #ffd2cb;
  font-size: 12px;
  line-height: 1.6;
  word-break: break-word;
}

.topic-generation-panel {
  margin-top: 14px;
  padding: 14px;
  border-radius: 16px;
  border: 1px dashed var(--admin-line);
  background: rgba(255, 255, 255, 0.025);
}

.topic-generation-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.topic-generation-timeline {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.topic-generation-step {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.topic-generation-step:first-child {
  padding-top: 0;
  border-top: 0;
}

.topic-generation-step-title {
  color: var(--admin-text);
  font-size: 13px;
  font-weight: 600;
}

.diagnostic-card {
  border-style: solid;
}

.diagnostic-card-failed {
  border-color: rgba(255, 140, 140, 0.3);
  box-shadow: inset 0 0 0 1px rgba(255, 140, 140, 0.08);
}

.diagnostic-meta-grid {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.admin-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  min-height: 100vh;
}

.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 24px 18px;
  background: rgba(19, 27, 46, 0.96);
  border-right: 1px solid var(--admin-line);
}

.admin-brand {
  margin-bottom: 28px;
}

.admin-brand h1,
.admin-login-brand h1 {
  margin: 0;
  font-family: "Bricolage Grotesque", "PingFang SC", sans-serif;
  font-size: 26px;
  line-height: 1.1;
}

.admin-brand p,
.admin-login-brand p,
.admin-muted,
.admin-meta {
  color: var(--admin-muted);
}

.admin-nav {
  display: grid;
  gap: 8px;
}

.admin-nav a {
  border-radius: 14px;
  padding: 12px 14px;
  color: var(--admin-muted);
  transition: background 160ms ease, color 160ms ease;
}

.admin-nav a:hover,
.admin-nav a.active {
  background: var(--admin-panel-strong);
  color: var(--admin-text);
}

.admin-main {
  padding: 26px 26px 40px;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}

.admin-top-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-primary,
.admin-secondary {
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 11px 16px;
  font-weight: 600;
}

.admin-primary {
  background: var(--admin-accent);
  color: #341100;
}

.admin-secondary {
  background: transparent;
  border-color: var(--admin-line);
  color: var(--admin-text);
}

.stat-grid,
.admin-grid,
.form-grid,
.list-stack {
  display: grid;
}

.stat-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.stat-card,
.admin-panel {
  background: var(--admin-panel);
  border: 1px solid var(--admin-line);
  box-shadow: var(--shadow-admin);
}

.stat-card {
  border-radius: 22px;
  padding: 18px;
}

.stat-card strong {
  display: block;
  margin-top: 12px;
  font-family: "Bricolage Grotesque", "PingFang SC", sans-serif;
  font-size: 34px;
  line-height: 1;
}

.admin-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.admin-panel {
  border-radius: 24px;
  padding: 22px;
}

.admin-section-title {
  font-size: 22px;
  line-height: 1.2;
}

.admin-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.admin-toolbar {
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 14px;
}

.form-grid {
  gap: 14px;
}

.form-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.style-list,
.source-list,
.article-list,
.topic-list,
.log-list {
  display: grid;
  gap: 14px;
}

.style-card,
.source-card,
.admin-article-card,
.admin-topic-card,
.log-card {
  border-radius: 18px;
  border: 1px solid var(--admin-line);
  background: rgba(255, 255, 255, 0.02);
  padding: 16px;
}

.style-card.active-style,
.admin-article-card.active-article {
  border-color: rgba(249, 115, 22, 0.45);
  box-shadow: inset 0 0 0 1px rgba(249, 115, 22, 0.18);
}

.style-card-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--admin-line);
}

.style-toggle-btn,
.style-activate-btn {
  border: 1px solid var(--admin-line);
  border-radius: 12px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  background: transparent;
  color: var(--admin-text);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease, opacity 160ms ease;
}

.style-toggle-btn:hover,
.style-activate-btn:hover {
  transform: translateY(-1px);
}

.style-toggle-btn.is-on {
  border-color: rgba(78, 222, 163, 0.55);
  background: rgba(78, 222, 163, 0.12);
  color: var(--success);
}

.style-toggle-btn.is-off {
  border-color: rgba(255, 195, 107, 0.55);
  background: rgba(255, 195, 107, 0.10);
  color: var(--warning);
}

.style-activate-btn.is-current {
  background: var(--admin-accent);
  color: #341100;
  border-color: transparent;
  cursor: default;
}

.style-activate-btn.is-current:hover {
  transform: none;
}

.style-hidden-input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

/* Switch toggle（替换文章编辑表单里的 checkbox 置顶/推荐） */
.admin-switch {
  appearance: none;
  -webkit-appearance: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--admin-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--admin-text);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
}

.admin-switch:hover {
  border-color: rgba(249, 115, 22, 0.45);
}

.admin-switch:focus-visible {
  outline: 2px solid rgba(249, 115, 22, 0.55);
  outline-offset: 2px;
}

.admin-switch-text {
  flex: 1;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-switch-track {
  position: relative;
  flex: 0 0 auto;
  width: 40px;
  height: 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  transition: background 160ms ease;
}

.admin-switch-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  transition: transform 180ms ease;
}

.admin-switch[aria-checked="true"] {
  border-color: rgba(78, 222, 163, 0.55);
  background: rgba(78, 222, 163, 0.10);
  color: var(--success);
}

.admin-switch[aria-checked="true"] .admin-switch-track {
  background: var(--success);
}

.admin-switch[aria-checked="true"] .admin-switch-thumb {
  transform: translateX(18px);
}

.admin-switch-field {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  margin-top: 10px;
}

.admin-switch-compact {
  width: auto;
  min-width: 128px;
  justify-content: flex-end;
  padding: 8px 12px;
}

.admin-switch-compact .admin-switch-text {
  flex: 0 1 auto;
  text-align: right;
  white-space: nowrap;
}

.style-top,
.card-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
}

.status-pill.success {
  background: rgba(78, 222, 163, 0.14);
  color: var(--success);
}

.status-pill.warning {
  background: rgba(255, 195, 107, 0.14);
  color: var(--warning);
}

.status-pill.danger {
  background: rgba(255, 140, 140, 0.14);
  color: var(--danger);
}

.status-pill.neutral {
  background: rgba(255, 255, 255, 0.06);
  color: var(--admin-text);
}

.admin-inline-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

/* 后台文章列表顶部搜索区：输入框 + 搜索/清空按钮横向排列 */
.admin-article-search {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
  align-items: center;
}

.admin-article-search input[type="search"] {
  flex: 1;
  min-width: 220px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--admin-line);
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
  font-size: 14px;
}

.admin-article-search input[type="search"]:focus {
  outline: none;
  border-color: var(--admin-accent, #6aa1ff);
}

/* 文章卡片里的“原文链接”：仅四个字的简短跳转入口 */
.admin-article-source-link {
  display: inline-block;
  margin-top: 8px;
  color: var(--admin-accent, #6aa1ff);
  font-size: 12px;
  text-decoration: none;
}

.admin-article-source-link:hover {
  text-decoration: underline;
}

.admin-inline-meta .chip {
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--admin-muted);
  font-size: 12px;
}

.admin-article-actions,
.admin-topic-actions,
.style-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

/* 卡片右上角：堆一个时间 + 状态徽章（话题卡 + 文章卡共用） */
.admin-topic-card-top,
.admin-article-card-top {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}

.admin-topic-time,
.admin-article-time {
  font-size: 12px;
  color: var(--admin-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  cursor: help;
}

.admin-login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.admin-login-card {
  width: min(420px, 100%);
  background: var(--admin-panel-soft);
  border-color: rgba(255, 182, 144, 0.08);
  box-shadow: var(--shadow-admin);
}

.admin-login-card .login-card-body {
  padding: 30px;
}

.admin-login-brand {
  margin-bottom: 22px;
}

.admin-login-brand p {
  margin: 8px 0 0;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-login-card .field-label,
.admin-login-card .admin-label {
  color: var(--admin-muted);
}

.admin-login-card .field-input {
  background: #060e20;
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--admin-text);
}

.admin-login-card .primary-button {
  width: 100%;
  justify-content: center;
}

.hidden {
  display: none !important;
}

/* tab 切换：根据 [data-section] 容器上的 .admin-section-hidden 控制显隐，避免所有 section 同时展示 */
.admin-section-hidden {
  display: none !important;
}

/* 列表分页条：放"加载更多"按钮和"已加载 X / 共 Y"提示 */
.pager-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.home-feed-card {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--public-line);
  background: #1b1a1a;
  box-shadow: var(--shadow-public);
  /* 整卡可点击：除底部操作区和评论面板外，其它区域点击都会跳详情。
     队列占位卡（.queue-card）会通过下方的 :not() 排除，不继承该鼠标样式。 */
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  animation: feedCardIn 420ms cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--feed-index, 0) * 48ms);
  position: relative;
}

.home-feed-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  border-color: rgba(249, 115, 22, 0.45);
}

.home-feed-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, rgba(249, 115, 22, 0.9), rgba(255, 176, 144, 0.15));
  opacity: 0.85;
}

.home-feed-card:nth-child(3n + 1)::before {
  background: linear-gradient(180deg, rgba(255, 91, 170, 0.9), rgba(255, 176, 144, 0.14));
}

.home-feed-card:nth-child(3n + 2)::before {
  background: linear-gradient(180deg, rgba(49, 49, 192, 0.9), rgba(255, 176, 144, 0.14));
}

@keyframes feedCardIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* 快照恢复路径（详情页返回首页）：跳过卡片错峰淡入，让整列瞬时显示。
   renderHome 拿到 sessionStorage 快照时会给 body 加 data-feed-restored="1"，
   后台软刷新发现数据变化重渲染时会移除该标记，恢复完整入场动画。 */
body[data-feed-restored="1"] .home-feed-card {
  animation: none;
}

/* 队列占位卡不参与整卡点击跳转，强制回退为默认鼠标样式 */
.home-feed-card.queue-card {
  cursor: default;
}

.home-feed-card.queue-card:hover {
  transform: none;
  box-shadow: var(--shadow-public);
  border-color: var(--public-line);
}

.home-feed-card.home-feed-card-ad {
  cursor: default;
  border-color: rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(circle at top right, rgba(249, 115, 22, 0.16), transparent 30%),
    linear-gradient(160deg, #191716 0%, #121212 100%);
}

.home-feed-card.home-feed-card-ad:hover {
  transform: none;
  box-shadow: var(--shadow-public);
  border-color: rgba(249, 115, 22, 0.28);
}

.home-feed-card.home-feed-card-ad::before {
  background: linear-gradient(180deg, rgba(249, 115, 22, 0.95), rgba(255, 198, 154, 0.18));
}

.home-feed-sentinel {
  height: 1px;
}

.home-feed-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 6px 4px;
  color: var(--public-muted);
  font-size: 13px;
}

.home-feed-footer-status {
  min-width: 0;
}

.home-feed-footer .primary-button,
.home-feed-footer .ghost-button {
  min-width: 104px;
  justify-content: center;
}

.home-feed-footer .primary-button {
  padding-inline: 16px;
}

.home-card-media {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background:
    radial-gradient(circle at top left, rgba(249, 115, 22, 0.22), transparent 26%),
    linear-gradient(135deg, #221919 0%, #121212 100%);
}

.home-cover-shell,
.detail-cover-shell {
  position: relative;
}

.home-cover-shell.is-empty,
.detail-cover-shell.is-empty {
  min-height: 220px;
}

.home-ad-cover {
  min-height: 220px;
  display: flex;
  align-items: stretch;
}

.home-ad-cover-inner {
  width: 100%;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
  font-family: "Bricolage Grotesque", "PingFang SC", sans-serif;
  font-size: 24px;
  letter-spacing: 0.04em;
  color: rgba(255, 241, 228, 0.92);
  background:
    radial-gradient(circle at top left, rgba(249, 115, 22, 0.28), transparent 30%),
    linear-gradient(135deg, #2a1710 0%, #151515 100%);
}

.cover-state-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(12, 12, 12, 0.72);
  backdrop-filter: blur(10px);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.cover-state-badge.is-generated {
  border-color: rgba(52, 211, 153, 0.45);
  color: #c8ffe9;
}

.cover-state-badge.is-placeholder {
  border-color: rgba(249, 115, 22, 0.5);
  color: #ffd7b5;
}

.cover-state-badge.is-missing {
  border-color: rgba(248, 113, 113, 0.55);
  color: #ffd1d1;
}

.home-card-body {
  padding: 14px;
}

.home-tag-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.home-card-title {
  margin: 0;
  font-family: "Bricolage Grotesque", "PingFang SC", sans-serif;
  font-size: 17px;
  line-height: 1.3;
}

.home-card-summary {
  margin: 10px 0 0;
  color: var(--public-muted);
  font-size: 14px;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-ad-embed {
  margin-top: 14px;
  padding: 12px;
  border-radius: 14px;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
}

.home-ad-embed iframe,
.home-ad-embed img,
.home-ad-embed video {
  max-width: 100%;
}

.home-ad-sdk {
  margin-top: 14px;
  min-height: 180px;
  padding: 12px;
  border-radius: 14px;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
}

.home-ad-sdk > iframe,
.home-ad-sdk img,
.home-ad-sdk video {
  max-width: 100%;
}

.home-ad-sdk-error {
  color: #ffd1d1;
  font-size: 12px;
  line-height: 1.6;
}

.home-cover-note,
.detail-cover-note {
  margin-top: 10px;
  color: #ffcf9f;
  font-size: 12px;
  line-height: 1.6;
}

.home-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.home-ad-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  flex-wrap: wrap;
}

.home-ad-footnote {
  color: var(--public-muted);
  font-size: 12px;
  line-height: 1.5;
}

/* 广告单元外壳：固定高度 + overflow:hidden，把第三方广告 iframe 约束在卡片内，
   保证 AdSense / 百青藤即使返回更大的创意也不会顶乱信息流布局。 */
.home-ad-slot-shell {
  position: relative;
  width: 100%;
  min-height: 250px;
  max-height: 280px;
  overflow: hidden;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at top left, rgba(249, 115, 22, 0.18), transparent 30%),
    linear-gradient(135deg, #221919 0%, #121212 100%);
}

.home-ad-slot-shell .adsbygoogle,
.home-ad-slot-shell .home-baidu-ad {
  display: block;
  width: 100%;
  height: 100%;
}

.home-ad-slot-placeholder {
  padding: 20px;
  text-align: center;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 241, 228, 0.78);
}

.feed-progress,
.detail-progress {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.feed-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.feed-progress-label {
  color: var(--public-text);
  font-size: 13px;
  font-weight: 700;
}

.feed-progress-hint {
  color: var(--public-muted);
  font-size: 12px;
}

.feed-progress-track {
  height: 7px;
  margin-top: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.feed-progress-fill {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff6a2b 0%, #ff7db5 100%);
  transition: width 180ms ease;
}

.floating-rail {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 22px;
  background: rgba(19, 19, 19, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-public);
}

.floating-rail .ghost-button,
.floating-rail .primary-button {
  min-width: 108px;
  justify-content: center;
}

/* 回到顶部按钮：与 .floating-rail 共享玻璃磨砂 + 阴影设计语言，
   滚动一段距离后淡入显示在右下角；移动端缩到 44px。 */
.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--public-line);
  border-radius: 999px;
  background: rgba(19, 19, 19, 0.72);
  color: var(--public-muted);
  font: inherit;
  cursor: pointer;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-public);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition:
    opacity 200ms ease,
    transform 200ms ease,
    color 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover,
.back-to-top:focus-visible {
  color: var(--public-accent);
  border-color: rgba(249, 115, 22, 0.4);
  transform: translateY(-2px);
  outline: none;
}

.back-to-top:focus-visible {
  box-shadow: var(--shadow-public), 0 0 0 3px rgba(249, 115, 22, 0.32);
}

.back-to-top:active {
  transform: translateY(0);
  background: rgba(249, 115, 22, 0.18);
}

.back-to-top-icon {
  width: 20px;
  height: 20px;
  display: block;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #ff6a2b;
  box-shadow: 0 0 0 6px rgba(255, 106, 43, 0.14);
  animation: livePulse 1.4s ease-in-out infinite;
}

@keyframes livePulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(255, 106, 43, 0.14);
  }
  50% {
    transform: scale(1.12);
    box-shadow: 0 0 0 10px rgba(255, 106, 43, 0.08);
  }
}

.home-action-group {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.home-action-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--public-muted);
  font-weight: 600;
}

.home-action-button:disabled,
.detail-action-pill:disabled,
.home-send-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.home-action-button.active {
  color: var(--public-accent);
}

.chip.chip-success {
  border-color: rgba(52, 211, 153, 0.4);
  color: #117b55;
  background: rgba(52, 211, 153, 0.12);
}

.chip.chip-warning {
  border-color: rgba(249, 115, 22, 0.35);
  color: #b45309;
  background: rgba(249, 115, 22, 0.12);
}

.chip.chip-danger {
  border-color: rgba(239, 68, 68, 0.32);
  color: #b91c1c;
  background: rgba(239, 68, 68, 0.12);
}

.chip.chip-info {
  border-color: rgba(59, 130, 246, 0.28);
  color: #1d4ed8;
  background: rgba(59, 130, 246, 0.12);
}

.admin-review-note {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.05);
  color: var(--admin-muted);
  font-size: 12px;
  line-height: 1.6;
}

.crawler-summary-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.crawler-summary-value {
  margin-top: 8px;
  font-size: 22px;
  font-weight: 800;
  color: var(--admin-text);
}

.crawler-diagnostic-stack {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.admin-review-note code {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
}

.home-action-icon {
  font-size: 18px;
  line-height: 1;
}

.home-more-link {
  color: var(--public-text);
  font-size: 13px;
  font-weight: 700;
}

.home-comments-panel {
  display: none;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.01));
  padding-inline: 12px;
  padding-bottom: 12px;
}

.home-comments-panel.expanded {
  display: block;
}

.home-comments-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.home-comments-title {
  color: var(--public-text);
  font-size: 14px;
  font-weight: 700;
}

.home-comments-meta {
  color: var(--public-muted);
  font-size: 12px;
}

.home-comments-list,
.detail-comments-list {
  display: grid;
  gap: 14px;
}

.home-comment-item,
.detail-comment-item {
  display: flex;
  gap: 12px;
  position: relative;
}

.home-comment-item:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 13px;
  top: 32px;
  bottom: -10px;
  width: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.home-comment-avatar,
.detail-comment-avatar {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--public-accent-soft);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.home-comment-content,
.detail-comment-main {
  min-width: 0;
}

.home-comment-name,
.detail-comment-name {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 4px;
}

.home-comment-text,
.detail-comment-text {
  color: var(--public-muted);
  font-size: 14px;
  line-height: 1.6;
}

.home-comment-empty {
  color: var(--public-muted);
  font-size: 14px;
}

.home-comment-composer {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.home-comment-input {
  flex: 1;
  border: 0;
  background: transparent;
  color: var(--public-text);
  min-width: 0;
  padding: 0;
}

.home-comment-input:focus {
  outline: none;
}

/* 敏感词实时预览:命中 block 分类 → 红框,命中 replace 分类 → 橙框。
   红/橙不挡住 placeholder 颜色,只描外框,便于"看到还能写"又"看到警告"。 */
.comment-input-warning-block {
  box-shadow: 0 0 0 2px #ff4d4f !important;
  border-radius: 6px !important;
}

.comment-input-warning-replace {
  box-shadow: 0 0 0 2px #fa8c16 !important;
  border-radius: 6px !important;
}

.comment-input-warning {
  font-size: 12px;
  margin-top: 4px;
}

.home-send-button {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--public-accent);
  font-size: 20px;
  min-width: 24px;
}

.home-login-tip {
  display: inline-flex;
  margin-top: 14px;
  color: var(--public-accent-soft);
  font-size: 13px;
  font-weight: 600;
}

.detail-article-shell {
  overflow: hidden;
}

.detail-article-shell .detail-body {
  position: relative;
}

.detail-article-shell .detail-body::before {
  /* 文本由 shared.js applyI18n() 写入 --detail-expand-hint，CSS 仅留兜底以避免 JS 未到位时留白。 */
  content: var(--detail-expand-hint, "点开继续看");
  display: inline-flex;
  align-items: center;
  margin-bottom: 14px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--public-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.article-transition-overlay {
  position: fixed;
  z-index: 90;
  margin: 0 !important;
  overflow: hidden;
  pointer-events: none;
  transform-origin: top left;
  transition:
    transform 680ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 240ms ease,
    border-radius 680ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 680ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, opacity;
}

.article-transition-overlay .markdown,
.article-transition-overlay .detail-comments-section {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 260ms ease,
    transform 260ms ease;
}

.article-transition-overlay.is-expanded .markdown,
.article-transition-overlay.is-expanded .detail-comments-section {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 120ms;
}

.article-transition-overlay .detail-interaction-row {
  transition: opacity 240ms ease, transform 240ms ease;
}

.article-transition-overlay.is-expanded .detail-interaction-row {
  opacity: 1;
  transform: none;
}

.detail-meta-line {
  margin-top: 8px;
  color: var(--public-muted);
  font-size: 13px;
}

.detail-summary {
  font-size: 18px;
  line-height: 1.72;
  color: var(--public-text);
  margin-top: 16px;
  padding: 16px 18px;
  border-left: 3px solid rgba(249, 115, 22, 0.82);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
}

.detail-source-link-row {
  display: flex;
  justify-content: flex-end;
  margin: 24px 0 0;
}

.detail-source-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--public-text);
  font-size: 13px;
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
}

.detail-source-link:hover {
  border-color: rgba(249, 115, 22, 0.45);
  background: rgba(249, 115, 22, 0.08);
}

.detail-source-link-arrow {
  font-size: 12px;
  opacity: 0.85;
}

.detail-article-navigation {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.detail-nav-card {
  min-width: 0;
  min-height: 94px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--public-text);
  text-align: left;
  cursor: pointer;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.detail-nav-card.is-next {
  text-align: right;
}

.detail-nav-card:not(:disabled):hover {
  transform: translateY(-2px);
  border-color: rgba(249, 115, 22, 0.5);
  background: rgba(249, 115, 22, 0.08);
}

.detail-nav-card:focus-visible {
  outline: 2px solid var(--public-accent);
  outline-offset: 3px;
}

.detail-nav-card.is-disabled {
  color: var(--public-muted);
  cursor: default;
  opacity: 0.58;
}

.detail-nav-label,
.detail-nav-title {
  display: block;
}

.detail-nav-label {
  color: var(--public-accent-soft);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.detail-nav-title {
  margin-top: 8px;
  overflow: hidden;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-interaction-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin: 26px 0 18px;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.detail-action-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.detail-action-pill {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: transparent;
  color: var(--public-text);
  padding: 8px 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 13px;
  line-height: 1;
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease;
}

.detail-action-pill:hover {
  border-color: rgba(249, 115, 22, 0.4);
  color: var(--public-accent);
}

.detail-action-pill.active {
  background: var(--public-accent);
  border-color: var(--public-accent);
  color: #341100;
}

.detail-action-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
}

.detail-action-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.detail-action-count {
  font-variant-numeric: tabular-nums;
}

.seekit-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(12px);
  background: rgba(15, 15, 18, 0.92);
  color: var(--public-text);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 12px 18px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  opacity: 0;
  transition:
    opacity 0.24s ease,
    transform 0.24s ease;
  z-index: 120;
}

.seekit-toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.detail-comments-section {
  margin-top: 28px;
}

.detail-comments-title {
  margin: 0 0 14px;
  font-family: "Bricolage Grotesque", "PingFang SC", sans-serif;
  font-size: 24px;
}

.detail-comment-composer {
  margin: 0 0 18px;
}

.detail-comment-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}

.detail-comment-time {
  color: rgba(255, 255, 255, 0.35);
  font-size: 12px;
}

.detail-article-shell {
  background:
    radial-gradient(circle at top right, rgba(249, 115, 22, 0.08), transparent 20%),
    linear-gradient(180deg, rgba(28, 27, 27, 0.98) 0%, rgba(20, 19, 19, 0.98) 100%);
}

.detail-float-rail .primary-button,
.detail-float-rail .ghost-button {
  min-width: 104px;
  justify-content: center;
}

/* 详情页浮动轨上的图标按钮：方形、零内边距，覆写上面的 104px 最小宽 */
.detail-float-rail .primary-button.detail-icon-button,
.detail-float-rail .ghost-button.detail-icon-button {
  min-width: 0;
  width: 48px;
  height: 48px;
  padding: 0;
}

.detail-float-rail .detail-icon-button svg {
  width: 20px;
  height: 20px;
  display: block;
}

@media (max-width: 1080px) {
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--admin-line);
  }

  .stat-grid,
  .admin-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .public-topbar,
  .public-shell,
  .detail-shell {
    width: calc(100vw - 24px);
  }

  .hero-card {
    grid-template-columns: 1fr;
  }

  .hero-body,
  .card-body,
  .detail-body,
  .login-card-body,
  .admin-panel {
    padding: 18px;
  }

  .form-grid.two {
    grid-template-columns: 1fr;
  }

  .admin-main {
    padding: 18px 12px 32px;
  }

  .admin-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .home-card-actions,
  .detail-interaction-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .detail-article-navigation {
    grid-template-columns: 1fr;
  }

  .detail-nav-card.is-next {
    text-align: left;
  }

  .floating-rail {
    right: 12px;
    bottom: 12px;
    padding: 10px;
  }

  .floating-rail .ghost-button,
  .floating-rail .primary-button {
    min-width: 92px;
  }

  /* 移动端详情浮动轨的图标按钮：保持方形不被 92px 撑宽 */
  .detail-float-rail .primary-button.detail-icon-button,
  .detail-float-rail .ghost-button.detail-icon-button {
    width: 44px;
    height: 44px;
  }

  .back-to-top {
    right: 12px;
    bottom: 12px;
    width: 44px;
    height: 44px;
  }

  .detail-summary {
    font-size: 16px;
    padding: 14px 16px;
  }

  .detail-metric-row {
    gap: 6px;
  }

  .home-feed-card {
    animation-duration: 360ms;
  }
}

/* Alert center styles */
.alert-banner {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: 1px solid transparent;
  font-size: 13px;
  line-height: 1.6;
}

.alert-banner.alert-banner-critical {
  background: rgba(220, 38, 38, 0.08);
  border-color: rgba(220, 38, 38, 0.35);
  color: #991b1b;
}

.alert-banner.alert-banner-warning {
  background: rgba(245, 158, 11, 0.10);
  border-color: rgba(245, 158, 11, 0.40);
  color: #92400e;
}

.alert-banner.alert-banner-recovered {
  background: rgba(59, 130, 246, 0.10);
  border-color: rgba(59, 130, 246, 0.40);
  color: #1e3a8a;
}

.alert-banner.alert-banner-ok {
  background: rgba(34, 197, 94, 0.10);
  border-color: rgba(34, 197, 94, 0.40);
  color: #166534;
}

.alert-banner-title {
  font-weight: 600;
  font-size: 14px;
}

.alert-banner-meta {
  font-size: 12px;
  opacity: 0.85;
}

.alert-platform-card {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.6);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.alert-platform-card[data-status="critical"] {
  border-color: rgba(220, 38, 38, 0.35);
  background: rgba(220, 38, 38, 0.04);
}

.alert-platform-card[data-status="warning"] {
  border-color: rgba(245, 158, 11, 0.40);
  background: rgba(245, 158, 11, 0.04);
}

.alert-platform-card[data-status="recovered"] {
  border-color: rgba(59, 130, 246, 0.40);
  background: rgba(59, 130, 246, 0.04);
}

.alert-platform-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.alert-platform-name {
  font-weight: 600;
  font-size: 14px;
}

.alert-platform-message {
  font-size: 12px;
  color: var(--admin-muted);
  word-break: break-word;
}

.alert-platform-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.alert-platform-action {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid rgba(15, 23, 42, 0.18);
  background: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  color: var(--admin-fg, #0f172a);
}

.alert-platform-action:hover {
  background: rgba(15, 23, 42, 0.04);
}

.alert-platform-action.alert-platform-action-primary {
  background: rgba(59, 130, 246, 0.10);
  border-color: rgba(59, 130, 246, 0.40);
  color: #1d4ed8;
}

.alert-platform-action.alert-platform-action-primary:hover {
  background: rgba(59, 130, 246, 0.20);
}

.alert-recovered-meta {
  font-size: 11px;
  color: #1e40af;
  background: rgba(59, 130, 246, 0.10);
  padding: 4px 8px;
  border-radius: 8px;
  display: inline-block;
}

.alert-timeline-entry {
  border-left: 3px solid rgba(15, 23, 42, 0.12);
  padding: 6px 10px;
  margin-bottom: 8px;
  background: rgba(15, 23, 42, 0.02);
  border-radius: 0 8px 8px 0;
}

.alert-timeline-entry.alert-timeline-critical {
  border-left-color: rgba(220, 38, 38, 0.55);
}

.alert-timeline-entry.alert-timeline-warning {
  border-left-color: rgba(245, 158, 11, 0.55);
}

.alert-timeline-time {
  font-size: 11px;
  color: var(--admin-muted);
  margin-bottom: 2px;
}

.alert-timeline-detail {
  font-size: 12px;
}

/* ===== video-redirect: 详情页 / 主页 CTA 与壳文章视觉提示 ===== */
.video-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  background: linear-gradient(135deg, #ff7a45 0%, #d4380d 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 17px;
  border-radius: 14px;
  text-decoration: none;
  border: 0;
  box-shadow: 0 8px 24px rgba(255, 122, 69, 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
}

.video-cta:hover,
.video-cta:focus {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(255, 122, 69, 0.36);
  outline: none;
}

.video-cta-platform {
  background: rgba(255, 255, 255, 0.2);
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 13px;
  letter-spacing: 0.02em;
}

.video-cta-text {
  flex: 1;
  min-width: 0;
}

.video-cta-arrow {
  font-size: 22px;
  line-height: 1;
}

/* 详情页 CTA 容器 + 平台提示文案 */
.detail-video-cta-block {
  margin: 24px 0;
  padding: 20px;
  background: rgba(255, 122, 69, 0.06);
  border: 1px dashed rgba(255, 122, 69, 0.4);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}

.video-cta-hint {
  color: #b8957c;
  font-size: 13px;
  line-height: 1.6;
  padding: 0 4px;
}

/* 主页紧凑型 CTA + 间距 */
.video-cta-compact {
  padding: 10px 16px;
  font-size: 14px;
  gap: 8px;
  border-radius: 10px;
}

.video-cta-compact .video-cta-platform {
  padding: 2px 8px;
  font-size: 12px;
}

.video-cta-compact .video-cta-arrow {
  font-size: 16px;
}

.home-video-card-cta-row {
  margin: 12px 0 4px 0;
}

/* video-redirect 模式视觉提示：dashed 边框 + 封面右下角播放标记 */
.home-feed-card.is-video-redirect {
  border-style: dashed;
  border-color: rgba(255, 122, 69, 0.35);
}

.detail-article-shell.is-video-redirect {
  border-style: dashed;
  border-color: rgba(255, 122, 69, 0.35);
}

.detail-article-shell.is-video-redirect .detail-cover-shell {
  position: relative;
}

.detail-article-shell.is-video-redirect .detail-cover-shell::after {
  content: "▶";
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  color: #ffffff;
  font-size: 18px;
  border-radius: 50%;
  pointer-events: none;
}

/* 视频标签 pill，复用 gradient-pill 底色 */
.gradient-pill.pill-video {
  background: linear-gradient(135deg, #ff7a45, #d4380d);
  color: #ffffff;
  font-weight: 600;
}

.gradient-pill.pill-ad-provider {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 244, 230, 0.92);
}

.gradient-pill.pill-ad-adsense {
  background: linear-gradient(135deg, #1a73e8, #34a853);
  color: #ffffff;
  font-weight: 600;
}

.gradient-pill.pill-ad-baidu {
  background: linear-gradient(135deg, #2932e1, #4e6ef2);
  color: #ffffff;
  font-weight: 600;
}

/* ===== comment-article: 评论文章视觉提示（与 video-redirect 区分） =====
   设计目标：让首页卡片 / 详情页一眼看出"这是热评文章，不是视频壳"。
   颜色用偏冷的紫色 / 青色，避开 video-redirect 的橙色 CTA 调性。 */

/* pill-comment：和 pill-video 同形异色，复用 .gradient-pill 基础圆角 */
.gradient-pill.pill-comment {
  background: linear-gradient(135deg, #722ed1, #2f54eb);
  color: #ffffff;
  font-weight: 600;
}

/* 详情页正文中的 "热评精选" chip 标签（article.js 渲染） */
.pill-comment {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #722ed1, #2f54eb);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-left: 6px;
  vertical-align: middle;
}

/* comment-article 卡片壳：与 video-redirect 区分，不用 dashed 边框（评论文章是有真实正文的） */
.home-feed-card.is-comment-article {
  border-left: 3px solid #722ed1;
}

.detail-article-shell.is-comment-article {
  border-left: 3px solid #722ed1;
  background: linear-gradient(180deg, rgba(114, 46, 209, 0.04), rgba(47, 84, 235, 0.02));
}

/* comment-article CTA：与 video-redirect 共用外壳但配色变紫，避免误判为视频 */
.detail-article-shell.is-comment-article .detail-source-cta {
  background: linear-gradient(135deg, #722ed1, #2f54eb);
  color: #ffffff;
}

/* === 公共页语言切换器 ===
   紧凑 EN/中 文本按钮组：与现有 topbar-actions 同一行，与 ghost-button 共用 999px 圆角。
   活动按钮用主题强调色，非活动按钮沿用 ghost-button 风格但更轻量。
   登录页没有 topbar，单独走 .lang-switcher-floating 浮动容器，绝对定位右下角。 */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border: 1px solid var(--public-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
}

.lang-switcher-btn {
  border: 0;
  background: transparent;
  color: var(--public-muted);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 5px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease;
  min-width: 32px;
}

.lang-switcher-btn:hover {
  color: var(--public-text);
  background: rgba(255, 255, 255, 0.04);
}

.lang-switcher-btn.is-active {
  background: var(--public-accent);
  color: #ffffff;
  cursor: default;
}

.lang-switcher-btn:focus-visible {
  outline: 2px solid var(--public-accent);
  outline-offset: 1px;
}

.lang-switcher-floating {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 50;
}

/* 详情页右上角语言切换器：与 .floating-rail 回顶部按钮镜像定位，
   右边距=回顶部按钮右边距（容器 18 + 内边距 12 = 30），
   上边距=回顶部按钮底边距（容器 18 + 内边距 12 = 30）。 */
.lang-switcher-corner {
  position: fixed;
  right: 30px;
  top: 30px;
  z-index: 50;
}

@media (max-width: 720px) {
  .lang-switcher-corner {
    right: 22px;
    top: 22px;
  }
}

@media (max-width: 640px) {
  .lang-switcher-floating {
    right: 16px;
    bottom: 16px;
  }
  .lang-switcher-btn {
    padding: 4px 10px;
    font-size: 12px;
  }
}

/* === 顶栏用户下拉菜单 ===
   登录态下顶栏右侧显示「我的 ▾」触发器，hover/点击展开「我的收藏 / 退出」两项。
   下拉菜单走绝对定位 + 玻璃拟态，与公共页 dark 风格一致。
   .public-topbar 已有 position: relative 的等价（通过 .topbar 提供 stacking context），
   但为避免改动既有 CSS 变量，下拉菜单自己处理 absolute positioning。 */
.user-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.user-menu-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--public-line);
  background: rgba(255, 255, 255, 0.02);
  color: var(--public-text);
  border-radius: 999px;
  padding: 9px 14px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
  max-width: 180px;
}

.user-menu-trigger:hover,
.user-menu-trigger:focus-visible {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-1px);
  outline: none;
}

.user-menu-trigger-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 140px;
}

.user-menu-trigger-caret {
  font-size: 10px;
  color: var(--public-muted);
  transition: transform 160ms ease;
}

.user-menu.is-open .user-menu-trigger-caret {
  transform: rotate(180deg);
}

.user-menu-panel {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 160px;
  padding: 6px;
  border-radius: 16px;
  border: 1px solid var(--public-line);
  background: rgba(28, 27, 27, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-public);
  display: none;
  flex-direction: column;
  gap: 2px;
  z-index: 30;
}

.user-menu.is-open .user-menu-panel {
  display: flex;
}

.user-menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 10px;
  color: var(--public-text);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease;
  text-align: left;
  width: 100%;
}

.user-menu-item:hover,
.user-menu-item:focus-visible {
  background: rgba(255, 255, 255, 0.06);
  color: var(--public-accent-soft);
  outline: none;
}

.user-menu-item--danger:hover,
.user-menu-item--danger:focus-visible {
  color: var(--danger);
}

@media (max-width: 640px) {
  .user-menu-trigger {
    padding: 8px 12px;
    max-width: 130px;
  }
  .user-menu-trigger-label {
    max-width: 90px;
  }
  .user-menu-panel {
    right: -8px;
  }
}

/* === 仅图标的回首页按钮 ===
   设计稿: home outline icon, 不再显示"返回首页"四个字。
   走 .ghost-button 的圆角/边框基础, 通过 SVG 内联避免引入新字体依赖。 */
.back-home-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 999px;
}

.back-home-button svg {
  width: 18px;
  height: 18px;
  display: block;
}

/* === 公共页底部栏 ===
   四个公共页(index/article/favorites)统一在底部出现一个极简 footer:
   品牌名 + 三个链接(隐私/条款/反馈) + 版权。login.html 不加。 */
.site-footer {
  margin: 48px auto 32px;
  width: min(720px, calc(100vw - 32px));
  padding: 28px 0 0;
  border-top: 1px solid var(--public-line);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  color: var(--public-muted);
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
}

.site-footer-brand {
  font-family: "Bricolage Grotesque", "PingFang SC", sans-serif;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--public-text);
}

.site-footer-links {
  display: inline-flex;
  align-items: center;
  gap: 18px;
}

.site-footer-links a {
  color: var(--public-muted);
  font-size: 12px;
  text-decoration: none;
  transition: color 160ms ease;
}

.site-footer-links a:hover,
.site-footer-links a:focus-visible {
  color: var(--public-accent-soft);
  outline: none;
}

.site-footer-copyright {
  font-size: 11px;
  opacity: 0.7;
}

.site-footer-icp {
  color: var(--public-muted);
  font-size: 11px;
  text-decoration: none;
  opacity: 0.7;
  transition: color 160ms ease, opacity 160ms ease;
}

.site-footer-icp:hover,
.site-footer-icp:focus-visible {
  color: var(--public-accent-soft);
  opacity: 1;
  outline: none;
}

@media (max-width: 640px) {
  .site-footer {
    margin-top: 36px;
    padding-top: 22px;
  }
  .site-footer-links {
    gap: 14px;
  }
}

/* === 评论操作行：点赞 / 回复 ===
   每条评论底部新增一行操作按钮:
   - 点赞: 显示 ♡ 数量, 点赞后置灰禁用
   - 回复: 点击后把评论 id 注入 composer, placeholder 切换为"回复 @X" */
.detail-comment-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
}

.detail-comment-action {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px 4px 8px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--public-muted);
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease;
}

.detail-comment-action:hover,
.detail-comment-action:focus-visible {
  background: rgba(255, 255, 255, 0.05);
  color: var(--public-text);
  outline: none;
}

.detail-comment-action-icon {
  font-size: 13px;
  line-height: 1;
}

.detail-comment-action-count {
  font-variant-numeric: tabular-nums;
  min-width: 16px;
  text-align: center;
}

.detail-comment-action.is-liked {
  color: var(--public-accent);
  cursor: default;
}

.detail-comment-action.is-liked:hover {
  background: transparent;
  color: var(--public-accent);
}

.detail-comment-action:disabled,
.detail-comment-action[aria-disabled="true"] {
  opacity: 0.5;
  cursor: default;
}

/* 回复标签: 平级展示 "回复 @被回复者"，不缩进、不分层 */
.detail-comment-reply-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.1);
  color: var(--public-accent-soft);
  font-size: 11px;
  font-weight: 600;
}

/* 回复 composer 的可取消状态：显示"取消回复"按钮 */
.detail-comment-reply-cancel {
  border: 0;
  background: transparent;
  color: var(--public-muted);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  padding: 0 6px;
  transition: color 160ms ease;
}

.detail-comment-reply-cancel:hover {
  color: var(--danger);
}

/* 密码输入框：右侧放一个"显示/隐藏密码"切换按钮（登录页 / 后台登录复用） */
.password-input-wrapper {
  position: relative;
  display: block;
}

.password-input-wrapper .field-input {
  padding-right: 48px;
}

.password-toggle {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--public-muted);
  border-radius: 10px;
  cursor: pointer;
  transition: color 160ms ease, background-color 160ms ease;
}

.password-toggle:hover,
.password-toggle:focus-visible {
  color: var(--public-accent);
  background: rgba(249, 115, 22, 0.1);
  outline: none;
}

.password-toggle svg {
  width: 20px;
  height: 20px;
  display: block;
}

/* 默认展示"显示"图标（睁眼）；按下后展示"隐藏"图标（带斜线眼睛） */
.password-toggle .password-toggle-icon-hide {
  display: none;
}

.password-toggle[aria-pressed="true"] .password-toggle-icon-show {
  display: none;
}

.password-toggle[aria-pressed="true"] .password-toggle-icon-hide {
  display: block;
}

/* 「打开 App」Banner：文章详情页顶部，dismissible。
   设计目标：窄条、品牌橙、显眼但不喧宾夺主；关闭按钮常驻，避免遮挡阅读。 */
.open-in-app-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 16px;
  padding: 10px 14px;
  border-radius: 10px;
  background: linear-gradient(90deg, rgba(255, 122, 24, 0.18), rgba(255, 122, 24, 0.08));
  border: 1px solid rgba(255, 122, 24, 0.45);
  color: #ffe4d2;
  font-size: 13px;
  line-height: 1.4;
}

.open-in-app-banner__label {
  flex: 1 1 auto;
  font-weight: 600;
}

.open-in-app-banner__open,
.open-in-app-banner__download {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 6px;
  background: #ff7a18;
  color: #1a0d04;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.open-in-app-banner__open:hover,
.open-in-app-banner__download:hover {
  background: #ff903d;
  color: #1a0d04;
}

.open-in-app-banner__download {
  background: transparent;
  border: 1px solid rgba(255, 228, 210, 0.5);
  color: #ffe4d2;
}

.open-in-app-banner__download:hover {
  background: rgba(255, 228, 210, 0.12);
  color: #ffe4d2;
}

.open-in-app-banner__close {
  margin-left: auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 0;
  background: transparent;
  color: #ffe4d2;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.open-in-app-banner__close:hover {
  background: rgba(255, 228, 210, 0.12);
}

@media (max-width: 480px) {
  .open-in-app-banner {
    font-size: 12px;
    gap: 8px;
    padding: 8px 10px;
  }
  .open-in-app-banner__label {
    flex: 1 1 100%;
    order: -1;
    margin-bottom: 4px;
  }
}
