/* linkhub standalone shell */
.lh-body {
  --lh-green: #22c55e;
  --lh-green-2: #16a34a;
  --lh-radius: 14px;
  --lh-bg: #f4f6f9;
  --lh-card: #fff;
  --lh-text: #1e293b;
  --lh-muted: #64748b;
  --lh-line: #e8edf3;
  --lh-page-max: 720px;
  --lh-page-pad: 14px;
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--lh-bg);
  color: var(--lh-text);
  font-family: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.lh-top {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--lh-line);
}
.lh-top-inner,
.lh-content,
.lh-site-foot-inner {
  box-sizing: border-box;
  width: 100%;
  max-width: var(--lh-page-max);
  margin: 0 auto;
  padding-left: var(--lh-page-pad);
  padding-right: var(--lh-page-pad);
}
.lh-top-inner {
  padding-top: 10px;
  padding-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.lh-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  text-decoration: none;
  color: var(--lh-text);
  font-weight: 800;
  font-size: 15px;
}
.lh-brand:hover { color: var(--lh-text); }
.lh-brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #22c55e, #0ea5e9);
  color: #fff;
  font-size: 14px;
  flex-shrink: 0;
}
.lh-brand-name {
  white-space: nowrap;
}
.lh-tools {
  margin-left: auto;
  flex: 0 0 auto;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
}
.lh-search {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 2px;
  flex: 0 0 200px;
  width: 200px;
  max-width: 200px;
  min-width: 0;
  background: #f1f5f9;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0 8px 0 12px;
  height: 34px;
  transition: border-color .15s, background .15s, box-shadow .15s;
  box-sizing: border-box;
}
.lh-search:focus-within {
  background: #fff;
  border-color: #86efac;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
}
.lh-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 14px;
  color: var(--lh-text);
}
.lh-search input::placeholder { color: #94a3b8; }
.lh-search-ico {
  color: #94a3b8;
  font-size: 15px;
  flex-shrink: 0;
  line-height: 1;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.lh-refresh {
  flex: 0 0 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--lh-line);
  border-radius: 999px;
  background: #fff;
  color: var(--lh-green-2);
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s, transform .15s;
}
.lh-refresh i { font-size: 16px; color: inherit; line-height: 1; }
.lh-refresh:hover {
  background: #f0fdf4;
  border-color: #86efac;
  color: var(--lh-green-2);
}
.lh-refresh:active { transform: scale(.94); }
.lh-refresh.is-spin i { animation: lh-spin .7s linear infinite; }
@keyframes lh-spin {
  to { transform: rotate(360deg); }
}
.lh-risk {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #fee2e2;
  color: #dc2626;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.lh-main {
  flex: 1;
  width: 100%;
}
.lh-content {
  padding-top: 14px;
  padding-bottom: 28px;
}

.lh-app {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lh-notice {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff7ed;
  color: #c2410c;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 13px;
}
.lh-notice p { margin: 0; flex: 1; }
.lh-notice-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #f59e0b;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.lh-bookmark {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #b45309;
  font-size: 13px;
  margin: 0;
}
.lh-bookmark i { color: #f59e0b; font-size: 18px; }

.lh-list { display: flex; flex-direction: column; gap: 10px; }
.lh-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--lh-card);
  border-radius: var(--lh-radius);
  padding: 10px 10px 10px 8px;
  border: 1px solid var(--lh-line);
}
.lh-row.is-hidden { display: none; }
.lh-ms {
  min-width: 62px;
  text-align: center;
  background: #dcfce7;
  color: var(--lh-green-2);
  border-radius: 10px;
  padding: 8px 6px;
  font-size: 13px;
  font-weight: 700;
}
.lh-ms.is-wait { background: #f1f5f9; color: #94a3b8; }
.lh-ms.is-bad { background: #fee2e2; color: #dc2626; }
.lh-row-main {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #334155;
}
.lh-row-main i { color: #94a3b8; }
.lh-host {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
}
.lh-open {
  flex-shrink: 0;
  background: var(--lh-green);
  color: #fff;
  text-decoration: none;
  border-radius: 10px;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 700;
}
.lh-open:hover { color: #fff; }
.lh-open:active { background: var(--lh-green-2); }

.lh-recheck {
  display: block;
  width: 100%;
  margin: 4px 0 0;
  border: 0;
  border-radius: 12px;
  padding: 13px;
  background: #f59e0b;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
}
.lh-recheck:active { filter: brightness(.95); }

.lh-empty {
  text-align: center;
  color: var(--lh-muted);
  padding: 28px 8px;
  margin: 0;
}

.lh-site-foot {
  margin-top: auto;
  padding: 18px 0 28px;
  text-align: center;
  color: #94a3b8;
  font-size: 12px;
  line-height: 1.7;
  border-top: 1px solid var(--lh-line);
  background: #fff;
}
.lh-site-foot-text { margin-bottom: 6px; color: #64748b; }
.lh-site-foot-meta { opacity: .85; }

@media (max-width: 640px) {
  .lh-body { --lh-page-pad: 10px; }
  .lh-top-inner { padding-top: 8px; padding-bottom: 8px; gap: 6px; }
  .lh-brand { gap: 6px; font-size: 14px; }
  .lh-brand-name { font-size: 14px; }
  .lh-brand-mark { width: 26px; height: 26px; border-radius: 7px; font-size: 13px; }
  .lh-tools { gap: 6px; }
  .lh-search { flex: 0 0 200px; width: 200px; max-width: 200px; height: 32px; padding: 0 4px 0 10px; }
  .lh-search-ico { width: 24px; height: 24px; font-size: 14px; }
  .lh-refresh { flex-basis: 32px; width: 32px; height: 32px; }
  .lh-risk { padding: 5px 8px; font-size: 11px; }
  .lh-content { padding-top: 10px; padding-bottom: 22px; }
  .lh-open { padding: 8px 12px; }
}

/* —— 轮播（独立补全，不依赖社区 base.css） —— */
.lh-app > .uc-slider,
.lh-content .uc-slider {
  position: relative;
  margin: 0;
  width: 100%;
  height: auto;
  max-height: min(38vh, 320px);
  min-height: 0;
  aspect-ratio: var(--uc-slider-ar, 7 / 3);
  border-radius: var(--lh-radius);
  overflow: hidden;
  border: 0;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  background: #e2e8f0;
}
.uc-slider-viewport {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.uc-slider-track {
  display: flex;
  height: 100%;
  transition: transform .45s cubic-bezier(.22, .61, .36, 1);
  will-change: transform;
}
.uc-slider-slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  display: block;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
}
.uc-slider-slide img {
  position: absolute;
  left: 0;
  top: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}
.uc-slider-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 18px 14px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .5));
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}
.uc-slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 99px;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: rgba(255, 255, 255, .92);
  font-size: 20px;
  line-height: 1;
  background: rgba(18, 20, 26, .48);
  -webkit-backdrop-filter: blur(14px) saturate(1.25);
  backdrop-filter: blur(14px) saturate(1.25);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .22), inset 0 1px 0 rgba(255, 255, 255, .08);
  opacity: 0;
  transition: opacity .2s, background .2s, border-color .2s, transform .2s;
  padding: 0;
  z-index: 2;
}
.uc-slider-btn:hover {
  background: rgba(12, 14, 18, .62);
  border-color: rgba(255, 255, 255, .22);
}
.uc-slider-btn:active {
  transform: translateY(-50%) scale(.96);
}
.uc-slider:hover .uc-slider-btn {
  opacity: 1;
}
.uc-slider-prev { left: 12px; }
.uc-slider-next { right: 12px; }
.uc-slider-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  display: flex;
  justify-content: center;
  gap: 6px;
  pointer-events: none;
  z-index: 2;
}
.uc-slider-dot {
  pointer-events: auto;
  width: 6px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: rgba(255, 255, 255, .5);
  cursor: pointer;
  transition: width .2s, background .2s;
}
.uc-slider-dot.on {
  width: 16px;
  background: #fff;
}

@media (min-width: 641px) {
  .lh-app > .uc-slider,
  .lh-content .uc-slider {
    max-height: min(48vh, 560px);
    aspect-ratio: var(--uc-slider-ar, 5 / 2);
  }
}

@media (max-width: 640px) {
  .uc-slider-btn,
  .uc-slider:hover .uc-slider-btn {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
}
