:root {
  --blue: #587fec;
  --ink: #111;
  --muted: #999;
  --bg: #f2f7ff;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 70px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
button,
input {
  font: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
.wrap {
  max-width: 1200px;
  margin: auto;
}
header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  z-index: 30;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.55) inset, 0 8px 24px #0000000d;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
}
nav {
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
nav h1 {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: 3px;
}
nav > a,
.head-menu a {
  font-size: 16px;
}
.head-menu {
  display: flex;
  gap: 16px;
  align-items: center;
}
.head-menu a.current {
  color: var(--blue);
}
main {
  min-height: 75vh;
}
.top {
  display: flex;
  gap: 15px;
  margin-top: 15px;
  max-height: 200px;
}
.banner {
  width: 70%;
  position: relative;
  isolation: isolate;
  background-color: var(--blue);
  background-repeat: no-repeat;
  background-position: right 0 bottom -30px;
  background-size: 292px;
  border-radius: 4px;
  padding: 60px 34px;
  overflow: hidden;
  color: white;
}
.banner:before,
.banner:after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  background: #ffffff30;
  filter: blur(25px);
}
.banner:before {
  width: 230px;
  height: 180px;
  left: 0;
  top: 35px;
}
.banner:after {
  width: 370px;
  height: 290px;
  right: -80px;
  top: -110px;
}
.banner h2 {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 3px;
  margin-bottom: 15px;
  text-shadow: 0 4px 20px #00143240;
}
.banner p {
  font-size: 16px;
  letter-spacing: 1.5px;
}
.recent {
  flex: 1;
  min-width: 0;
  height: 200px;
  background: white;
  border-top: 4px solid var(--blue);
  border-radius: 4px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.recent h3 {
  align-self: flex-start;
  position: relative;
  top: -10px;
  margin: 0;
  font-size: 14px;
  letter-spacing: 2px;
  color: white;
  background: var(--blue);
  padding: 5px 10px;
  border-radius: 0 0 4px 4px;
  line-height: 25px;
}
.recent-list {
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}
.recent-row {
  height: 28px;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
}
.recent-row > .icon-image {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.recent-name {
  text-align: left;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.recent-name small {
  font-size: 11px;
  color: #999;
  margin-left: 4px;
}
.channel-mini {
  width: 16px;
  height: 16px;
  display: block;
}
.channel-mini img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.recent-row time {
  font-size: 11px;
  color: #999;
  margin-left: 1px;
  white-space: nowrap;
}
.category {
  margin-top: 15px;
}
.category-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  gap: 8px;
}
.category-head h2 {
  font-size: 20px;
  line-height: 30px;
}
.category-head p {
  font-size: 14px;
  color: #808080;
}
.grid {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -5px;
}
.cell {
  width: 20%;
  position: relative;
}
.card {
  display: block;
  text-align: left;
  width: calc(100% - 14px);
  margin: 7px;
  background: white;
  border-radius: 4px;
  padding: 8px;
  filter: drop-shadow(2px 4px 6px #0000000d);
  transition: transform 0.25s;
  scroll-margin-top: 75px;
}
.card:hover {
  transform: translateY(-2px);
}
.card-main {
  display: flex;
  align-items: center;
}
.icon-image {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
}
.card-main > .icon-image {
  margin-right: 5px;
}
.info {
  flex: 1;
  min-width: 0;
}
.title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}
.title-row strong {
  font-size: 13px;
  font-weight: 600;
  line-height: 19.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.heat {
  color: #999;
  font-size: 11px;
  white-space: nowrap;
}
.heat i {
  font-size: 13px;
}
.intro {
  font-size: 12px;
  line-height: 18px;
  color: #606060;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tags {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #999;
  margin-top: 5px;
  font-size: 10px;
  line-height: 18px;
  white-space: nowrap;
}
.tags i {
  font-size: 10px;
  margin-right: 2px;
}
.tags time {
  flex: 1;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card.search-hit {
  background: #fffbea;
  outline: 1px solid #ebcb64;
}
.card.search-current {
  outline: 2px solid var(--blue);
  background: #edf3ff;
}
.zoo-footer {
  display: flex;
  align-items: center;
  flex-direction: column;
  box-shadow: 0 -2px 10px 1px rgba(0, 0, 0, 0.07);
  margin-top: 30px;
}
.zoo-footer-content {
  background: white;
  width: 100%;
  padding: 30px 0;
}
.zoo-footer-content-wrap {
  display: flex;
  text-align: center;
  justify-content: space-between;
  align-items: center;
}
.zoo-footer-name {
  font-size: 30px;
  line-height: 40px;
  color: var(--blue);
  text-transform: uppercase;
  font-weight: 600;
  user-select: none;
}
.zoo-footer-follow-icon {
  display: flex;
}
.follow-icon {
  height: 40px;
  width: 40px;
  display: flex;
  background: #f2f5fa;
  border-radius: 4px;
  margin-left: 10px;
  align-items: center;
  justify-content: center;
}
.follow-icon:hover {
  background: var(--blue);
}
.follow-icon i {
  font-size: 20px;
  color: #111;
}
.follow-icon:hover i {
  color: white;
}
.zoo-tools {
  position: fixed;
  bottom: 140px;
  right: 20px;
  display: flex;
  z-index: 998;
  flex-direction: column;
}
.zoo-tools-item {
  width: 40px;
  height: 40px;
  font-size: 1rem;
  text-align: center;
  line-height: 40px;
  display: block;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 1px 8px #ddd;
  cursor: pointer;
  margin: 3px;
  color: #111;
}
.zoo-tools-item i {
  font-size: 20px;
}
.go-top {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(0.8);
  transition: all 0.3s ease;
}
.go-top.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: scale(1);
}
.zoo-soft-search {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translate(-50%, 0);
  z-index: 9999;
  pointer-events: none;
}
.zoo-soft-search-box {
  display: flex;
  padding: 10px;
  background: #fff;
  border-radius: 8px;
  align-items: center;
  box-shadow: 0 -2px 10px 1px rgba(0, 0, 0, 0.05);
  transform: translateY(calc(100% + 20px));
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    transform 0.35s cubic-bezier(0.25, 0.8, 0.3, 1),
    opacity 0.3s ease,
    visibility 0.35s;
}
.zoo-soft-search-box.active {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.zoo-soft-search-input {
  margin-right: 2px;
}
.zoo-soft-search-input input {
  font-size: 14px;
  height: 24px;
  background: rgba(0, 0, 0, 0.04);
  padding: 12px 8px;
  border-radius: 4px;
  min-width: 150px;
  width: 150px;
  border: 0;
  outline: 0;
}
.zoo-soft-search-actions {
  display: flex;
  align-items: center;
}
.zoo-soft-search-counter {
  display: flex;
  font-size: 12px;
  background: rgba(0, 0, 0, 0.04);
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: 500;
  white-space: nowrap;
  margin: 0 2px;
  height: 24px;
  align-items: center;
  min-width: 44px;
  justify-content: center;
}
.zoo-soft-search-nav {
  display: flex;
}
.zoo-soft-search-nav button,
.zoo-soft-search-btn,
.zoo-soft-search-close {
  font-size: 12px;
  background: rgba(0, 0, 0, 0.04);
  padding: 0 4px;
  border-radius: 4px;
  margin: 0 2px;
  min-width: 32px;
  text-align: center;
  height: 24px;
  border: none;
  cursor: pointer;
  line-height: 24px;
}
.highlight-match {
  font-weight: 600;
  color: #ff0000;
  background: #ffff00;
}
.modal-rating {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.modal-rating-info {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 7px;
  flex-wrap: wrap;
}
.modal-rating-score {
  font-size: 14px;
  color: #1a2b3c;
  font-weight: 800;
}
.modal-rating-count {
  font-size: 11px;
  color: #9aa9bc;
}
.modal-rating-stars {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}
.modal-rating-stars button {
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #d5dbe3;
  font-size: 18px;
  line-height: 24px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    transform 0.16s ease,
    color 0.16s ease;
}
.modal-rating-stars button .star-icon,
.modal-rating-stars button svg {
  width: 20px;
  height: 20px;
  display: block;
  fill: #d5dbe3;
  stroke: #c3cad3;
  stroke-width: 0.6;
  transition:
    fill 0.16s ease,
    stroke 0.16s ease,
    transform 0.16s ease;
}
.modal-rating-stars button:hover:not(:disabled) {
  transform: translateY(-1px) scale(1.06);
}
.modal-rating-stars button.active .star-icon,
.modal-rating-stars button.selected .star-icon,
.modal-rating-stars button.active svg,
.modal-rating-stars button.selected svg {
  fill: #ffb72b;
  stroke: #f0a51a;
}
.modal-rating-stars button:disabled,
.modal-rating-stars button.selected {
  cursor: default;
}
#search-overlay {
  z-index: 110;
}
.search-panel,
#search-box {
  position: relative;
  display: block;
  background: white;
  border-radius: 10px;
  padding: 24px 20px 18px;
  width: min(390px, 100%);
  box-shadow: 0 15px 55px #1f2d4a22;
}
.search-panel h2 {
  font-size: 16px;
  margin-bottom: 14px;
}
.search-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: #f2f5fa;
  color: #8a9bb5;
  font-size: 12px;
}
.search-close:hover {
  background: #e6edf8;
  color: #3f5a7a;
}
.search-field {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f5f7fb;
  border: 1px solid #e6ebf4;
  border-radius: 8px;
  padding: 0 12px;
  margin-bottom: 12px;
}
.search-field:focus-within {
  border-color: var(--blue);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(88, 127, 236, 0.12);
}
.search-field i {
  color: #8a9bb5;
  font-size: 16px;
}
#search-input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 12px 0;
  font-size: 15px;
  outline: 0;
}
.search-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
#search-box output {
  min-width: 36px;
  color: #8895a5;
  font-size: 13px;
}
.search-actions button {
  background: #f5f7fb;
  color: #3f5a7a;
  border-radius: 6px;
  padding: 7px 12px;
  font-size: 13px;
}
.search-actions button:hover {
  background: #edf3ff;
  color: var(--blue);
}
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(30, 45, 70, 0.38);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}
.overlay[hidden] {
  display: none !important;
}
.modal {
  background: #ffffff;
  width: 390px;
  max-width: 100%;
  border-radius: 4px;
  padding: 20px;
  box-shadow: 0 12px 30px rgba(20, 40, 80, 0.14);
  position: relative;
  transform: translateY(8px);
  transition: transform 0.28s ease;
}
.overlay.active .modal {
  transform: translateY(0);
}
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.modal-title {
  font-size: 14px;
  font-weight: 600;
}
.modal-close {
  position: static;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: #f2f5fa;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #8a9bb5;
  cursor: pointer;
  transition: all 0.2s ease;
}
.modal-close:hover {
  background: #e9eefc;
  color: #4f6ef7;
}
.modal-header {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 10px;
}
.modal-header img {
  width: 46px;
  height: 46px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
}
.modal-header h2 {
  font-size: 15.5px;
  font-weight: 800;
  color: #1a2b3c;
  margin-bottom: 3px;
}
.modal-meta {
  display: flex;
  gap: 5px;
  font-size: 11px;
  color: #8a9bb5;
  flex-wrap: wrap;
  align-items: center;
}
.modal-desc {
  position: relative;
  background: #f5f8fe;
  border-radius: 4px;
  padding: 10px 20px;
  font-size: 12.5px;
  color: #4a5b6e;
  line-height: 1.55;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.modal h3 {
  font-size: 13px;
  font-weight: 700;
  color: #1a2b3c;
  margin-bottom: 10px;
}
.download-channels {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
}
.download-channel-row {
  display: flex;
  align-items: stretch;
  gap: 6px;
}
.download-btn {
  display: flex;
  flex: 1;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border: 1px solid #dfe7f2;
  border-radius: 4px;
  padding: 11px 14px;
  text-decoration: none;
  color: #1a2b3c;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s ease;
  cursor: pointer;
}
.download-btn:hover {
  border-color: #4f6ef7;
  background: #f5f8fe;
  box-shadow: 0 3px 9px rgba(79, 110, 247, 0.07);
}
.download-btn span {
  display: flex;
  align-items: center;
}
.download-btn img {
  width: 20px;
  height: 20px;
  margin-right: 8px;
}
.download-btn i {
  color: #4f6ef7;
  font-size: 14px;
}
.extract-code {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  min-width: 148px;
  padding: 7px 8px 7px 12px;
  border: 1px solid #dce3ef;
  border-radius: 3px;
  background: #f7f9fc;
  color: #536174;
}
.extract-code-label {
  font-size: 11px;
  color: #8895a5;
  white-space: nowrap;
}
.extract-code code {
  flex: 1;
  min-width: 34px;
  color: #1a2b3c;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-align: center;
}
.extract-code-copy {
  display: inline-flex;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 3px;
  background: #e9eefc;
  color: #4f6ef7;
  cursor: pointer;
}
.extract-code-copy:hover {
  background: #dce5ff;
}
.extract-code-copy:focus-visible {
  outline: 2px solid #4f6ef7;
  outline-offset: 2px;
}
.extract-code-copy i {
  font-size: 14px;
}
@media (max-width: 520px) {
  .download-channel-row {
    flex-direction: row;
    gap: 8px;
  }
  .download-copy {
    width: 92px;
    min-height: 44px;
    border-color: #cfd9e8;
    color: #334155;
    font-size: 13px;
    font-weight: 700;
  }
  .extract-code {
    min-width: 0;
  }
}
.empty-channel {
  font-size: 12px;
  color: #8895a5;
  padding: 12px;
  background: #f5f8fe;
}
.tv-page .banner {
  width: 100%;
  background-position: right 30px bottom -45px;
}
.parse-page .banner {
  width: 70%;
}
.parse-tip {
  flex: 1;
  min-width: 0;
  height: 200px;
  background: white;
  border-top: 4px solid var(--blue);
  border-radius: 4px;
  padding: 10px 14px 14px;
  display: flex;
  flex-direction: column;
}
.parse-tip h3 {
  align-self: flex-start;
  position: relative;
  top: -10px;
  margin: 0 0 8px;
  font-size: 14px;
  letter-spacing: 2px;
  color: white;
  background: var(--blue);
  padding: 5px 10px;
  border-radius: 0 0 4px 4px;
  line-height: 25px;
}
.parse-tip p {
  font-size: 13px;
  color: #667085;
  line-height: 1.7;
}
@media (max-width: 768px) {
  .parse-page .banner {
    width: 100%;
  }
  .parse-tip {
    height: auto;
    min-height: 140px;
  }
}

/* 聚合解析页：加载占位与横幅区域等高，避免刷新后输入框跳动 */
.parse-page #parse-chrome .loading {
  min-height: 200px;
  padding: 30px 20px;
  margin-top: 15px;
}
.parse-page.parse-pending main {
  min-height: 75vh;
}
.parse-page.parse-pending #parse-chrome,
.parse-page.parse-pending #parse-root {
  visibility: hidden;
}
@media (max-width: 768px) {
  .parse-page #parse-chrome .loading {
    min-height: 320px;
  }
}

.tv-section {
  margin-top: 40px;
}
.site-card {
  display: flex;
  gap: 8px;
  padding: 10px;
  margin: 0;
  background: white;
  border-radius: 8px;
  align-items: center;
}
.site-card-shell {
  margin: 8px;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(31, 45, 74, 0.05);
}
.site-card-shell .site-card {
  border-radius: 0;
  min-height: 74px;
}
.site-card-shell > .zoo-rsa-item-connect {
  margin: 0;
  border-radius: 0;
  border-top: 1px solid rgba(79, 110, 247, 0.08);
  padding-top: 7px;
  padding-bottom: 7px;
}
.site-card .info strong {
  display: block;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.site-card p {
  font-size: 12px;
  color: #999;
  line-height: 20px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.api-card {
  background: white;
  border-radius: 8px;
  margin: 8px;
  padding: 10px;
  min-height: 142px;
  filter: drop-shadow(2px 4px 6px rgba(0, 0, 0, 0.05));
}
.api-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.api-card .info strong {
  display: block;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.api-card p {
  font-size: 12px;
  color: #888;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.zoo-rsa-item-connect,
.zoo-rsa-item-link {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  margin: 0 0 5px;
  padding: 5px 20px 5px 8px;
  background: rgba(13, 110, 253, 0.08);
  border-radius: 4px;
  font-size: 12px;
  color: #999;
}
.zoo-rsa-item-link p {
  flex: 1;
  width: 0;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.detection-icon i,
.zoo-rsa-item-link p i {
  margin-right: 8px;
  color: var(--blue);
}
.detection-connect {
  flex: 1;
}
.detection-link,
.zoo-rsa-copy {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  cursor: pointer;
  color: var(--blue);
}
.status-ok {
  color: #4ade80;
}
.status-fail {
  color: #f87171;
}
.status-none {
  color: #64748b;
}
.status-checking {
  color: #fbbf24;
}
.status-limited {
  color: #d68a14;
}
.spin {
  display: inline-block;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.skeleton-item {
  background-color: #e9edf5;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}
.skeleton-item::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.45),
    transparent
  );
  animation: skeleton-shine 1.4s infinite;
}
@keyframes skeleton-shine {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}
.skeleton-header-row {
  display: flex;
  gap: 11px;
  align-items: center;
  margin-bottom: 10px;
}
.skeleton-icon {
  width: 46px;
  height: 46px;
  border-radius: 4px;
  flex-shrink: 0;
}
.skeleton-title-line {
  width: 130px;
  height: 16px;
  margin-bottom: 6px;
}
.skeleton-meta-line {
  width: 80px;
  height: 11px;
}
.skeleton-desc-block {
  height: 42px;
  width: 100%;
  margin-bottom: 10px;
}
.skeleton-channel-title {
  width: 50px;
  height: 13px;
  margin-bottom: 10px;
}
.skeleton-btn-item {
  width: 100%;
  height: 44px;
  margin-bottom: 8px;
}
.loading {
  min-height: 55vh;
  padding: 80px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #8996b0;
}
.loader {
  width: 48px;
  height: 48px;
  border-width: 3.84px;
  border-style: solid;
  border-color: transparent;
  border-top-color: #6366f1;
  border-radius: 50%;
  position: relative;
  animation: spin 1s linear infinite;
}
.loader::after {
  content: "";
  position: absolute;
  inset: 3.84px;
  border-width: 3.84px;
  border-style: solid;
  border-color: transparent;
  border-bottom-color: #6366f1;
  border-radius: 50%;
  animation: spin 0.5s linear infinite reverse;
}
#zoo-notice-wrap {
  position: fixed;
  top: 50px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  pointer-events: none;
}
.zoo-notice {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 4px;
  font-size: 14px;
  line-height: 1.4;
  color: #fff;
  background: #333;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  white-space: nowrap;
  opacity: 0;
  transform: translateY(-20px);
  transition:
    opacity 0.28s ease,
    transform 0.28s ease;
}
.zoo-notice.is-show {
  opacity: 1;
  transform: translateY(0);
}
.zoo-notice-success {
  background: #34c759;
}
.zoo-notice-error {
  background: #ff3b30;
}
.zoo-notice-icon {
  font-size: 15px;
  line-height: 1;
}
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #f3f3f3;
}
::-webkit-scrollbar-thumb {
  background: #c8c8c8;
  border-radius: 4px;
}
@media (max-width: 1230px) {
  .wrap {
    margin-left: 15px;
    margin-right: 15px;
  }
}
@media (max-width: 992px) {
  .wrap {
    margin-left: 10px;
    margin-right: 10px;
  }
  .cell {
    width: 25%;
  }
  .banner h2 {
    font-size: 22px;
    letter-spacing: 2px;
  }
  .banner {
    padding: 55px 20px;
  }
}
@media (max-width: 768px) {
  nav {
    min-height: 40px;
  }
  nav h1 {
    font-size: 24px;
  }
  .top {
    flex-direction: column;
    max-height: none;
    gap: 15px;
  }
  .banner {
    width: 100%;
    padding: 25px 15px;
    background-position: right -10px bottom -20px;
    background-size: 150px;
  }
  .banner h2 {
    font-size: 22px;
    letter-spacing: 2px;
    margin-bottom: 10px;
  }
  .banner p {
    font-size: 14px;
    letter-spacing: 1px;
  }
  .recent {
    flex: auto;
    height: 256px;
  }
  .cell {
    width: 33.333%;
  }
  .tv-page .banner {
    background-position: right -10px bottom -20px;
    background-size: 150px;
  }
  .zoo-tools {
    right: 12px;
  }
  .category-head p {
    font-size: 12px;
  }
}
@media (max-width: 576px) {
  .cell {
    width: 50%;
  }
  .banner p {
    font-size: 12px;
  }
  .category-head p {
    font-size: 14px;
  }
  .tv-page .banner h2 {
    font-size: 20px;
  }
  .banner h2 {
    white-space: nowrap;
    font-size: 22px;
    letter-spacing: 1.5px;
  }
  .search-panel,
  #search-box {
    max-width: calc(100% - 20px);
    width: 360px;
    padding: 24px 16px 16px;
  }
  #search-input {
    font-size: 15px;
  }
  .zoo-footer-name {
    font-size: 22px;
  }
  #search-box button {
    flex-shrink: 0;
  }
  .zoo-tools {
    bottom: 115px;
  }
  .tv-section .category-head {
    align-items: flex-start;
  }
  .site-card {
    margin: 7px;
  }
  .api-card {
    margin: 7px;
  }
  .tags {
    gap: 3px;
  }
  .intro {
    max-width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}

#cf-gate {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(242, 247, 255, 0.92);
  backdrop-filter: blur(10px);
}
.cf-gate-card {
  width: min(420px, calc(100% - 32px));
  background: #fff;
  border-radius: 12px;
  padding: 28px 24px;
  box-shadow: 0 16px 40px rgba(31, 45, 74, 0.12);
  text-align: center;
}
.cf-gate-card h2 {
  font-size: 22px;
  margin-bottom: 8px;
}
.cf-gate-card p {
  color: #667085;
  font-size: 14px;
  margin-bottom: 18px;
}
#cf-widget {
  display: flex;
  justify-content: center;
  min-height: 65px;
}
.cf-gate-msg {
  min-height: 20px;
  color: #dc2626 !important;
  margin: 12px 0 0 !important;
}
.download-channel-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.download-copy {
  flex: 0 0 auto;
  width: 44px;
  border: 1px solid #dfe7f2;
  background: #fff;
  border-radius: 4px;
  color: #7b8aa0;
  font-size: 11px;
  cursor: pointer;
}
.download-copy:hover {
  border-color: #4f6ef7;
  color: #4f6ef7;
  background: #f5f8fe;
}
.modal-more-btn {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.modal-more-btn-item {
  display: flex;
  flex: 1;
  justify-content: center;
  align-items: center;
  font-size: 13px;
  font-weight: 700;
  background: rgba(73, 132, 245);
  color: #fff;
  padding: 5px;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
}
.modal-more-btn-item i {
  font-weight: 500;
  margin-right: 3px;
  font-size: 14px;
}
.modal-more-btn-item.is-active {
  background: rgba(73, 132, 245, 0.8);
}
.seeting-main {
  display: flex;
  background: #ffffff;
  width: 450px;
  height: 100%;
  position: fixed;
  right: 0;
  top: 0;
  padding: 15px;
  max-width: 100%;
  box-shadow: 0 1px 8px #ddd;
  box-sizing: border-box;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 9998;
}
.seeting-main.show {
  transform: translateX(0);
}
.setting-menu {
  width: 80px;
  flex-shrink: 0;
}
.setting-item {
  position: relative;
  font-size: 13px;
  padding: 5px 10px;
  border-radius: 4px;
  margin-bottom: 5px;
  line-height: 1.4;
  cursor: pointer;
}
.setting-item.active,
.setting-item:hover {
  background: rgba(73, 132, 245, 0.1);
  color: rgba(73, 132, 245);
}
.setting-item.active::after,
.setting-item:hover::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 12px;
  border-radius: 2px;
  background: rgba(73, 132, 245);
}
.setting-main-wrap {
  flex: 1;
  padding: 10px;
  background: rgba(73, 132, 245, 0.1);
  border-radius: 4px;
  box-sizing: border-box;
  margin-left: 10px;
  overflow: auto;
  scrollbar-width: none;
}
.voo-sub-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 700;
}
.voo-sub-empty {
  flex: 1;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
  text-align: center;
  color: #999;
}
.voo-sub-empty-title {
  font-weight: 700;
  color: #1a2b3c;
  margin-bottom: 6px;
}
.voo-sub-empty-text {
  font-size: 12px;
  line-height: 1.6;
}
.voo-sub-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px;
  box-sizing: border-box;
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  margin-bottom: 6px;
}
.voo-sub-item img,
.voo-sub-img {
  width: 35px;
  height: 35px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}
.voo-sub-info {
  min-width: 0;
  flex: 1;
}
.voo-sub-title {
  font-size: 13px;
  font-weight: 700;
  color: #1a2b3c;
}
.voo-sub-meta {
  display: flex;
  align-items: center;
  margin-top: 3px;
  font-size: 11px;
  color: rgba(73, 132, 245);
}
.voo-sub-remove {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(73, 132, 245, 0.9);
  color: #fff;
  border-radius: 4px;
  cursor: pointer;
  border: 0;
  font-size: 10px;
  padding: 2px 8px;
  opacity: 0;
  transform: translateX(4px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.voo-sub-item:hover .voo-sub-remove {
  opacity: 1;
  transform: translateX(0);
}

/* ===== 本地浏览记录 / 下载记录 ===== */
.zoo-local-head { display:flex; align-items:center; justify-content:space-between; margin-bottom:8px; gap:8px; }
.zoo-local-title { color:#333; font-size:13px; line-height:20px; font-weight:600; }
.zoo-local-count { color:#999; font-size:10px; line-height:16px; }
.zoo-local-clear { font-size:10px; padding:2px 8px; }
.zoo-local-list { display:flex; flex-direction:column; gap:8px; }
.zoo-local-item {
    display:flex; align-items:center; gap:10px; padding:9px; background:#fff; border-radius:4px;
    cursor:pointer; box-sizing:border-box;
}
.zoo-local-img { width:35px; height:35px; display:flex; align-items:center; justify-content:center; overflow:hidden; border-radius:4px; background:rgba(73,132,245,.05); flex:0 0 auto; }
.zoo-local-img img, .zoo-local-img-placeholder { width:100%; height:100%; object-fit:cover; }
.zoo-local-info { flex:1; min-width:0; }
.zoo-local-item-title { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:#333; font-size:12px; font-weight:600; }
.zoo-local-item-meta { margin-top:2px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:#999; font-size:10px; }
.zoo-local-empty {
    min-height: 260px; display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; color: #999; padding: 20px; box-sizing: border-box;
}
.zoo-local-empty-icon {
    width: 52px; height: 52px; display:flex; align-items:center; justify-content:center; margin-bottom:12px;
    border-radius:50%; background:rgba(73,132,245,.08); color:rgba(73,132,245); font-size:24px;
}
.zoo-local-empty-title { margin-bottom:5px; color:#666; font-size:14px; font-weight:600; }
.zoo-local-empty-text { max-width:235px; font-size:12px; line-height:19px; color:#aaa; }

/* ===== 备份恢复 ===== */
.zoo-back-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    margin-bottom: 10px;
    background: #fff;
    border-radius: 4px;
    box-sizing: border-box;
}
.zoo-back-info { flex: 1; min-width: 0; }
.zoo-back-name { color: #333; font-size: 13px; line-height: 20px; font-weight: 600; }
.zoo-back-text { margin-top: 1px; color: #999; font-size: 11px; line-height: 17px; }
.zoo-back-btn { font-size: 10px; padding: 2px 8px; border: 0; }
.zoo-sub-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(73,132,245,.9);
    color: #FFFFFF;
    border-radius: 4px;
    cursor: pointer;
    box-sizing: border-box;
}
.zoo-sub-toolbar { display: flex; flex-direction: column; gap: 7px; margin-bottom: 2px; }
.zoo-sub-count {
    flex: 0 0 auto; min-width: 20px; height: 20px; padding: 0 6px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 20px; background: rgba(73,132,245,.1); color: rgba(73,132,245);
    font-size: 10px; box-sizing: border-box;
}
.voo-sub-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 700;
}
/* 骨架屏 底部订阅占位 */
.skeleton-sub-block {
  width: 100%;
  height: 34px;
  margin-top: 10px;
}

/* ===== 用户反馈 ===== */
.feedback-btn .feedback-icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #60708a;
}
.feedback-btn .feedback-icon svg,
.feedback-btn .feedback-icon img {
  width: 100%;
  height: 100%;
  display: block;
}
.feedback-btn .feedback-icon svg.feedback-icon-default {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.feedback-btn .feedback-icon img {
  object-fit: contain;
}
.feedback-overlay {
  position: fixed;
  inset: 0;
  z-index: 10020;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(19, 28, 45, 0.34);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.22s ease;
}
.feedback-overlay[hidden] { display: none !important; }
.feedback-overlay.active { opacity: 1; }
.feedback-dialog {
  width: min(480px, 100%);
  max-height: min(720px, calc(100vh - 40px));
  overflow: auto;
  box-sizing: border-box;
  padding: 22px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.2);
  transform: translateY(14px) scale(0.985);
  transition: transform 0.25s cubic-bezier(.2,.8,.2,1);
}
.feedback-overlay.active .feedback-dialog { transform: none; }
.feedback-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.feedback-head h2 { margin: 0 0 5px; color: #172033; font-size: 20px; }
.feedback-head p { margin: 0; color: #8a96a8; font-size: 13px; }
.feedback-close {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border: 0;
  border-radius: 50%;
  background: #f2f5f9;
  color: #758298;
  cursor: pointer;
}
#feedback-form label {
  position: relative;
  display: block;
  margin-bottom: 16px;
  color: #344054;
  font-size: 13px;
  font-weight: 650;
}
#feedback-form select,
#feedback-form textarea,
#feedback-form input {
  width: 100%;
  margin-top: 7px;
  padding: 11px 12px;
  box-sizing: border-box;
  border: 1px solid #dce3ed;
  border-radius: 8px;
  outline: none;
  background: #fff;
  color: #1e293b;
  font: inherit;
  font-weight: 400;
  transition: border-color .18s ease, box-shadow .18s ease;
}
#feedback-form textarea { min-height: 132px; resize: vertical; line-height: 1.65; padding-bottom: 28px; }
#feedback-form select:focus,
#feedback-form textarea:focus,
#feedback-form input:focus { border-color: #6685f7; box-shadow: 0 0 0 3px rgba(79,110,247,.11); }
.feedback-count { position: absolute; right: 10px; bottom: 8px; color: #a2aaba; font-size: 11px; font-weight: 400; }
.feedback-honeypot { position: fixed !important; left: -10000px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; }
.feedback-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 4px; }
.feedback-actions button,
.feedback-done {
  min-width: 96px;
  padding: 10px 16px;
  border: 1px solid #dce3ed;
  border-radius: 8px;
  background: #fff;
  color: #526075;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.feedback-actions .feedback-submit,
.feedback-done { border-color: #4f6ef7; background: #4f6ef7; color: #fff; }
.feedback-actions button:disabled { cursor: wait; opacity: .65; }
.feedback-success { padding: 24px 8px 8px; text-align: center; }
.feedback-success-mark { width: 54px; height: 54px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: #eaf8ef; color: #23a55a; font-size: 26px; }
.feedback-success h3 { margin: 14px 0 8px; color: #172033; font-size: 19px; }
.feedback-success p { margin: 5px 0; color: #7b8798; font-size: 13px; }
.feedback-success .feedback-done { margin-top: 18px; }
@media (max-width: 576px) {
  .download-channel-row { flex-direction: row; gap: 8px; }
  .download-channel-row .download-copy {
    width: 92px;
    min-height: 44px;
    flex: 0 0 92px;
    border-color: #cfd9e8;
    color: #334155;
    font-size: 13px;
    font-weight: 700;
  }
  .feedback-overlay { align-items: flex-end; padding: 0; }
  .feedback-dialog {
    width: 100%;
    max-height: 90vh;
    padding: 20px 18px calc(18px + env(safe-area-inset-bottom));
    border-radius: 18px 18px 0 0;
    transform: translateY(100%);
  }
  .feedback-overlay.active .feedback-dialog { transform: translateY(0); }
  .feedback-actions button { flex: 1; min-height: 46px; }
}

/* ===== 聚合解析首屏骨架：Vue 挂载完成后整体切换 ===== */
.parse-boot { margin-top: 15px; }
.parse-boot-top { display: flex; gap: 15px; height: 200px; }
.parse-boot-banner,
.parse-boot-tip,
.parse-boot-search {
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  border: 1px solid rgba(79, 110, 247, .06);
  border-radius: 8px;
  background: #fff;
}
.parse-boot-banner { width: 70%; padding: 62px 34px; background: #e8edff; }
.parse-boot-tip { flex: 1; padding: 48px 20px 20px; }
.parse-boot-search { margin-top: 20px; padding: 18px; height: 112px; }
.parse-boot-banner span,
.parse-boot-tip span,
.parse-boot-search span {
  display: block;
  height: 13px;
  margin-bottom: 12px;
  border-radius: 20px;
  background: rgba(110, 128, 169, .16);
}
.parse-boot-banner span:first-child { width: 52%; height: 24px; background: rgba(79, 110, 247, .2); }
.parse-boot-banner span:last-child { width: 68%; }
.parse-boot-tip span:first-child { width: 34%; height: 22px; }
.parse-boot-tip span:nth-child(2) { width: 90%; }
.parse-boot-tip span:last-child { width: 72%; }
.parse-boot-search span:first-child { width: 100%; height: 42px; }
.parse-boot-search span:last-child { width: 100%; height: 10px; margin-top: 12px; }
.parse-boot-shimmer::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.72), transparent);
  animation: parse-boot-shimmer 1.35s ease-in-out infinite;
}
@keyframes parse-boot-shimmer { to { transform: translateX(100%); } }
.parse-page:not(.parse-pending) #parse-boot { display: none; }
@media (max-width: 768px) {
  .parse-boot-top { height: auto; flex-direction: column; }
  .parse-boot-banner { width: 100%; height: 109px; padding: 28px 16px; }
  .parse-boot-tip { min-height: 140px; padding: 40px 16px 16px; }
  .parse-boot-search { height: 124px; margin-top: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .parse-boot-shimmer::after { animation: none; }
}
