/**
 * Antidote 主题样式
 *
 * 由 OZDAO 3.3 同名模板移植适配六零导航页（LyLme Spage）
 * 主色通过 body 行内变量 --theme-color 控制（后台「主题主色」可改），默认橙色 #ff7f00
 */

/* ========== 0. 基础 ========== */

*, *::before, *::after {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

html {
  -webkit-tap-highlight-color: transparent;
}

body {
  background: #f9f9f9;
  font-family: "Microsoft YaHei UI", "PingFang SC", Roboto, Noto, Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.42857143;
  color: #666;
  padding: 0;
  margin: 0;
}

ul, li {
  list-style: none;
  padding: 0;
  margin: 0;
}

input, button, select {
  outline: none;
  border: none;
  font-family: inherit;
}

a {
  color: #333;
  text-decoration: none;
  -webkit-transition: color .3s;
  -moz-transition: color .3s;
  -o-transition: color .3s;
  transition: color .3s;
}

a:hover {
  color: var(--theme-color, #ff7f00);
  text-decoration: none;
}

p {
  margin: 6px;
}

.clear {
  clear: both;
}

::-moz-selection {
  background: var(--theme-color, #ff7f00);
  color: #fff;
}

::selection {
  background: var(--theme-color, #ff7f00);
  color: #fff;
}

::-webkit-scrollbar {
  width: 4px;
  height: 4px;
  background: #222;
}

::-webkit-scrollbar-track {
  background: #222;
  -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
}

::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 2px;
}

/* 图标（icon.js 雪碧图 + 官方图片图标） */
svg.icon {
  width: 1.1em;
  height: 1.1em;
  fill: currentColor;
  overflow: hidden;
  vertical-align: -0.15em;
}

img.lylme-group-img {
  width: 1.2em;
  height: 1.2em;
  border-radius: 4px;
  vertical-align: -0.2em;
}

/* ========== 1. 布局容器 ========== */

.container {
  position: relative;
  width: 85%;
  max-width: 1200px;
  margin: auto;
  overflow: hidden;
}

@media (max-width: 1300px) {
  .container {
    width: 95%;
  }
}

@media (max-width: 991px) {
  .container {
    width: 98%;
  }
}

@media (max-width: 767px) {
  .container {
    width: 100%;
  }
}

#main {
  float: left;
  width: calc(100% - 300px);
}

#side {
  float: left;
  width: 300px;
  padding-top: 8px;
  padding-right: 8px;
}

#side .card {
  margin: 0 0 8px;
}

@media (max-width: 991px) {
  #main {
    width: 100%;
  }

  #side {
    width: 100%;
    padding: 0;
  }

  #side .card {
    margin: 5px;
  }
}

/* ========== 2. 顶部导航 ========== */

.header {
  position: fixed;
  display: flex;
  width: 100%;
  height: 70px;
  top: 0;
  left: 0;
  font-size: 0;
  background: transparent;
  z-index: 999;
  -webkit-transition: all .3s;
  -moz-transition: all .3s;
  -o-transition: all .3s;
  transition: all .3s;
}

.header.fixed {
  height: 55px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 8px #ddd;
}

.header .container {
  display: flex;
  align-items: center;
}

.header.fixed a {
  color: #666;
}

.nav-bar {
  display: none;
  position: absolute;
  top: 0;
  right: 0;
  width: 50px;
  height: 55px;
  z-index: 1000;
  cursor: pointer;
  -webkit-transform: scale(0.8);
  -moz-transform: scale(0.8);
  -o-transform: scale(0.8);
  transform: scale(0.8);
  -webkit-transition: transform .3s;
  -moz-transition: transform .3s;
  -o-transition: transform .3s;
  transition: transform .3s;
}

.nav-bar.active {
  -webkit-transform: rotateZ(90deg) scale(0.8);
  -moz-transform: rotateZ(90deg) scale(0.8);
  -o-transform: rotateZ(90deg) scale(0.8);
  transform: rotateZ(90deg) scale(0.8);
}

.nav-bar span {
  position: absolute;
  left: 0;
  right: 0;
  margin: 27px auto;
  width: 25px;
  height: 2px;
  background: #aaa;
  border-radius: 25px;
}

.nav-bar span::before {
  content: '';
  position: absolute;
  top: -8px;
  right: 0;
  width: 16px;
  height: 2px;
  background: #aaa;
  border-radius: 25px;
}

.nav-bar span::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 16px;
  height: 2px;
  background: #aaa;
  border-radius: 25px;
}

.logo {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  height: 55px;
  max-width: 160px;
  padding: 8px 0;
}

.logo img {
  max-width: 100%;
  max-height: 100%;
  height: auto;
  object-fit: contain;
}

.nav {
  display: flex;
  margin-left: auto;
  font-size: 14px;
}

.nav li {
  position: relative;
}

.nav li::after {
  content: "";
  position: absolute;
  width: 0;
  height: 3px;
  left: 50%;
  bottom: 0;
  background: var(--theme-color, #ff7f00);
  border-radius: 4px;
  -webkit-transition: all .3s;
  -moz-transition: all .3s;
  -o-transition: all .3s;
  transition: all .3s;
}

.nav li.active::after,
.nav li:hover::after {
  width: 100%;
  margin-left: -50%;
}

.nav li a {
  display: inline-block;
  color: #eee;
  padding: 0 12px;
  height: 55px;
  line-height: 55px;
  -webkit-transition: all .3s;
  -moz-transition: all .3s;
  -o-transition: all .3s;
  transition: all .3s;
}

.header.fixed .nav li a {
  color: #666;
}

.transparent-mark {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  z-index: 998;
}

@media (max-width: 767px) {
  .header {
    height: 55px;
  }

  .nav-bar {
    display: block;
  }

  .logo {
    margin-left: 10px;
    height: 48px;
    padding: 10px 0;
  }

  .nav {
    flex-direction: column;
    position: fixed;
    top: 52px;
    right: 0;
    margin-left: 0;
    opacity: 0;
    visibility: hidden;
    text-align: right;
    z-index: 999;
    -webkit-transition: all .3s ease-in-out;
    -moz-transition: all .3s ease-in-out;
    -o-transition: all .3s ease-in-out;
    transition: all .3s ease-in-out;
  }

  .nav.show {
    opacity: 1;
    visibility: visible;
  }

  .nav li {
    right: -105%;
    -webkit-transition: all .3s ease-in-out;
    -moz-transition: all .3s ease-in-out;
    -o-transition: all .3s ease-in-out;
    transition: all .3s ease-in-out;
  }

  .nav.show li {
    right: 0;
  }

  .nav.show li:nth-child(even) {
    -webkit-transition-duration: .4s;
    transition-duration: .4s;
  }

  .nav li::after {
    display: none;
  }

  .nav li a {
    padding: 8px 8px 8px 15px;
    font-size: 14px;
    color: #666;
    height: auto;
    line-height: normal;
    margin: 3px 0;
    display: block;
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 0 8px #ccc;
    border-radius: 25px 0 0 25px;
  }

  .nav li a:hover, .nav li a.active {
    color: #fff;
    background: var(--theme-color, #ff7f00);
    box-shadow: 0 0 8px var(--theme-color, #ff7f00);
  }

  .transparent-mark.show {
    display: block;
  }
}

/* ========== 3. Banner 搜索区 ========== */

.banner {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 300px;
  background: linear-gradient(135deg, #2b3a4a 0%, #1d2b38 60%, #14202b 100%) center center/cover;
  overflow: hidden;
}

.banner-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.banner .search-type,
.banner .search-form,
.banner .banner-yan {
  position: relative;
  z-index: 1;
}

.search-type,
.search-form {
  display: flex;
  width: 80%;
  max-width: 700px;
  overflow-x: auto;
}

.search-type .title {
  color: #ccc;
  padding: 6px 12px;
  white-space: nowrap;
}

.search-type .item {
  color: #ddd;
  padding: 6px 18px;
  border-radius: 4px 4px 0 0;
  margin-right: 4px;
  white-space: nowrap;
  cursor: pointer;
  -webkit-transition: all .3s;
  -moz-transition: all .3s;
  -o-transition: all .3s;
  transition: all .3s;
}

.search-type .item label {
  cursor: pointer;
  margin: 0;
  font-weight: normal;
}

.search-type .item input {
  display: none;
}

.search-type .item:hover,
.search-type .item.active {
  color: #333;
  background: rgba(255, 255, 255, 0.9);
}

.search-type .item:hover .sou-name,
.search-type .item.active .sou-name {
  color: #333 !important;
}

.search-form .search-input {
  -webkit-flex: auto;
  flex: auto;
  height: 45px;
  font-size: 15px;
  padding: 8px 15px;
  color: #555;
  border-radius: 4px 0 0 4px;
  background: rgba(255, 255, 255, 0.85);
}

.search-form .search-btn {
  width: 100px;
  height: 45px;
  font-size: 15px;
  color: #fff;
  margin-left: -1px;
  border-radius: 0 4px 4px 0;
  background: rgba(255, 127, 0, 0.85);
  background: var(--theme-color, #ff7f00);
  cursor: pointer;
  -webkit-transition: opacity .3s;
  transition: opacity .3s;
}

.search-form .search-btn:hover {
  opacity: .85;
}

.banner-yan {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
  max-width: 80%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

@media (max-width: 767px) {
  .banner {
    height: 210px;
    padding-top: 55px;
  }
}

@media (max-width: 480px) {
  .banner {
    height: 190px;
  }

  .search-type, .search-form {
    width: 95%;
  }

  .search-type .title {
    padding: 4px 10px;
  }

  .search-type .item {
    padding: 4px 12px;
  }

  .search-form .search-input {
    padding: 4px 12px;
    font-size: 14px;
    height: 38px;
  }

  .search-form .search-btn {
    height: 38px;
    width: 80px;
    font-size: 14px;
  }
}

/* ========== 4. 左侧悬浮锚点 ========== */

.sort {
  position: fixed;
  top: 50%;
  left: 0;
  width: 32px;
  margin: 0;
  border-radius: 8px;
  z-index: 998;
  -webkit-transform: translateY(-50%);
  -moz-transform: translateY(-50%);
  -o-transform: translateY(-50%);
  transform: translateY(-50%);
  -webkit-transition: all .3s;
  -moz-transition: all .3s;
  -o-transition: all .3s;
  transition: all .3s;
}

.sort li {
  position: relative;
  margin: 4px 0;
}

.sort li a {
  position: relative;
  display: inline-block;
  height: 32px;
  line-height: 20px;
  text-align: right;
  background: rgba(255, 255, 255, .85);
  padding: 6px 8px 6px 6px;
  box-shadow: 0 0 8px #ccc;
  border-radius: 0 25px 25px 0;
  white-space: nowrap;
  -webkit-transition: all .3s;
  -moz-transition: all .3s;
  -o-transition: all .3s;
  transition: all .3s;
  -webkit-transform: translateX(-100%) translateX(30px);
  -moz-transform: translateX(-100%) translateX(30px);
  -o-transform: translateX(-100%) translateX(30px);
  transform: translateX(-100%) translateX(30px);
}

.sort li a:hover, .sort li a.active {
  color: #fff;
  background: var(--theme-color, #ff7f00);
}

.sort li a:hover {
  -webkit-transform: translateX(0);
  -moz-transform: translateX(0);
  -o-transform: translateX(0);
  transform: translateX(0);
}

.sort li a .icon {
  margin-left: 4px;
}

@media (max-width: 991px) {
  .sort {
    display: none;
  }
}

/* ========== 5. 卡片 ========== */

.card {
  position: relative;
  background: #fff;
  box-shadow: 0 0 8px #eee;
  border-radius: 8px;
  margin: 8px;
  overflow: hidden;
}

.card .card-head {
  font-size: 15px;
  font-weight: 700;
  padding: 12px 15px;
  border-bottom: 1px solid #f2f2f2;
}

.card .card-head svg.icon,
.card .card-head img.lylme-group-img {
  margin-right: 6px;
  color: var(--theme-color, #ff7f00);
}

.card .card-head .more {
  position: absolute;
  right: 8px;
  color: #666;
}

.card .card-body {
  padding: 8px;
  font-size: 0;
}

.card .card-body.content {
  font-size: 14px;
}

.card .card-body.content img {
  max-width: 100%;
  border-radius: 4px;
}

.card .card-body.content p {
  margin: 8px 4px;
}

@media (max-width: 767px) {
  .card {
    margin: 5px;
  }

  .card .card-head {
    font-size: 14px;
    padding: 10px 12px;
  }

  .card .card-body.content {
    font-size: 13px;
  }
}

/* 跑马灯公告 */

.board {
  display: flex;
  align-items: center;
  height: 44px;
  padding: 0 8px;
  margin-bottom: 0;
  overflow: hidden;
}

.board .icon {
  margin: 0 8px 0 4px;
  color: var(--theme-color, #ff7f00);
  font-size: 15px;
}

.board .board-content {
  -webkit-flex: auto;
  flex: auto;
  font-size: 14px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.board .board-content marquee {
  white-space: nowrap;
}

/* ========== 6. 站点条目 ========== */

.site-item {
  display: inline-block;
  width: 14.2857143%;
  color: #666;
  font-size: 14px;
  padding: 10px 8px;
  border-radius: 6px;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  -webkit-transition: all .3s;
  -moz-transition: all .3s;
  -o-transition: all .3s;
  transition: all .3s;
}

.site-item.top {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
}

.site-item:hover {
  color: #666;
  font-weight: 600;
  background: #eee;
  -webkit-transform: scale(1.05);
  -moz-transform: scale(1.05);
  -o-transform: scale(1.05);
  transform: scale(1.05);
}

.site-item .icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  vertical-align: top;
  -webkit-transition: all .3s;
  -moz-transition: all .3s;
  -o-transition: all .3s;
  transition: all .3s;
}

.site-item.top .icon {
  width: 30px;
  height: 30px;
}

.site-item:hover .icon {
  -webkit-transform: rotateZ(360deg);
  -moz-transform: rotateZ(360deg);
  -o-transform: rotateZ(360deg);
  transform: rotateZ(360deg);
}

.site-item .icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
  vertical-align: top;
}

.site-item .icon svg.icon {
  width: 100%;
  height: 100%;
  vertical-align: top;
}

.site-item .name {
  margin-left: 4px;
}

.site-item.top .name {
  width: 100%;
  text-align: center;
  margin-top: 8px;
  margin-left: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

@media (max-width: 1300px) {
  .site-item {
    width: 16.6666667%;
  }

  .site-item.top {
    width: 14.2857143%;
  }
}

@media (max-width: 767px) {
  .site-item {
    width: 25%;
  }

  .site-item.top {
    width: 20%;
  }
}

@media (max-width: 480px) {
  .site-item {
    width: 33.3333333%;
    font-size: 13px;
  }

  .site-item.top {
    width: 25%;
    padding: 10px 5px;
    font-size: 13px;
  }

  .site-item .name {
    line-height: 20px;
  }

  .site-item.top .icon {
    width: 25px;
    height: 25px;
  }
}

/* ========== 7. 侧栏模块 ========== */

/* 最新收录 */

.latest-item {
  display: flex;
  align-items: center;
  padding: 6px;
  line-height: 25px;
  font-size: 14px;
  color: #666;
  border-radius: 25px;
  -webkit-transition: all .3s;
  -moz-transition: all .3s;
  -o-transition: all .3s;
  transition: all .3s;
}

.latest-item:hover {
  color: #666;
  background: #eee;
}

.latest-item .rank {
  -webkit-flex: none;
  flex: none;
  display: inline-block;
  width: 25px;
  height: 25px;
  margin-right: 10px;
  text-align: center;
  color: #999;
  font-style: italic;
}

.latest-item:nth-child(1) .rank {
  font-size: 0;
  background: url('../img/rank_1.png') no-repeat 50% 50%/85%;
}

.latest-item:nth-child(2) .rank {
  font-size: 0;
  background: url('../img/rank_2.png') no-repeat 50% 50%/85%;
}

.latest-item:nth-child(3) .rank {
  font-size: 0;
  background: url('../img/rank_3.png') no-repeat 50% 50%/85%;
}

.latest-item .icon {
  -webkit-flex: none;
  flex: none;
  width: 20px;
  height: 20px;
  line-height: 20px;
  margin-right: 6px;
}

.latest-item .icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
  vertical-align: top;
}

.latest-item .icon svg.icon {
  width: 100%;
  height: 100%;
  vertical-align: top;
}

.latest-item .name {
  -webkit-flex: auto;
  flex: auto;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* 申请收录入口 */
/* 注意：.card .card-body 将 font-size 置为 0（消除网格间隙），侧栏模块选择器需保持不低于其特异性 */

.card .side-apply {
  text-align: center;
  font-size: 14px;
}

.card .side-apply p {
  color: #999;
}

.card .side-apply .apply-btn {
  display: block;
  margin: 10px auto;
  width: 60%;
  height: 38px;
  line-height: 38px;
  color: #fff;
  background: var(--theme-color, #ff7f00);
  border-radius: 25px;
  -webkit-transition: opacity .3s;
  transition: opacity .3s;
}

.side-apply .apply-btn:hover {
  color: #fff;
  opacity: .85;
}

/* 站点统计 */

.card .side-statistic {
  font-size: 14px;
}

.card .side-statistic p {
  margin: 8px 4px;
}

.card .side-statistic em {
  color: var(--theme-color, #ff7f00);
  font-style: normal;
  font-weight: 700;
  margin: 0 2px;
}

/* 自定义内容 */

.side-html {
  word-break: break-all;
}

.side-html img {
  max-width: 100%;
}

/* ========== 7-2、侧栏：网站排行榜 / 在线工具 ========== */

/* 网站排行榜 */
.card .rank-body {
  padding: 4px 12px;
  font-size: 14px;
}

.card .rank-item {
  display: flex;
  align-items: center;
  padding: 8px 2px;
  font-size: 14px;
  color: #444;
  border-bottom: 1px dashed #f0f0f0;
  -webkit-transition: color .3s;
  -moz-transition: color .3s;
  -o-transition: color .3s;
  transition: color .3s;
}

.card .rank-item:last-child {
  border-bottom: 0;
}

.card .rank-item .name {
  flex: auto;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.card .rank-item:hover {
  color: var(--theme-color, #ff7f00);
}

/* 名次徽标：4 名及以后为灰色数字，1~3 为皇冠 */
.card .rank-item .rank-no {
  flex: 0 0 26px;
  width: 26px;
  text-align: center;
  font-size: 14px;
  font-weight: bold;
  font-style: normal;
  color: #b8b8b8;
}

.card .rank-item .rank-no.crown svg {
  display: block;
  width: 20px;
  height: 20px;
  margin: 0 auto;
}

.card .rank-item .rank-no.rank-1 svg {
  fill: #f7b500;
}

.card .rank-item .rank-no.rank-2 svg {
  fill: #9fb5cd;
}

.card .rank-item .rank-no.rank-3 svg {
  fill: #d59b62;
}

/* 在线工具（首字彩色头像，避免 favicon 取不到时乱码） */
.card .tools-body {
  padding: 6px 12px;
  font-size: 14px;
}

.card .tool-item {
  display: flex;
  align-items: center;
  padding: 8px 2px;
  font-size: 14px;
  border-bottom: 1px dashed #f0f0f0;
}

.card .tool-item:last-child {
  border-bottom: 0;
}

.card .tool-item .tool-avatar {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  margin-right: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: bold;
  color: #fff;
  border-radius: 8px;
  overflow: hidden;
}

.card .tool-item .tool-avatar.ac0 { background: linear-gradient(135deg, #ff7a7a, #e54d42); }
.card .tool-item .tool-avatar.ac1 { background: linear-gradient(135deg, #5aa9ff, #0081ff); }
.card .tool-item .tool-avatar.ac2 { background: linear-gradient(135deg, #2fd693, #1cbbb4); }
.card .tool-item .tool-avatar.ac3 { background: linear-gradient(135deg, #ffb14a, #f37b1d); }
.card .tool-item .tool-avatar.ac4 { background: linear-gradient(135deg, #b578e8, #9c27b0); }
.card .tool-item .tool-avatar.ac5 { background: linear-gradient(135deg, #64c8f0, #1c8ce8); }

.card .tool-item .tool-text {
  flex: auto;
  min-width: 0;
}

.card .tool-item .tool-name {
  display: block;
  font-size: 14px;
  color: #333;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.card .tool-item .tool-desc {
  display: block;
  margin-top: 1px;
  font-size: 12px;
  color: #9b9b9b;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.card .tool-item:hover .tool-name {
  color: var(--theme-color, #ff7f00);
}

@media (max-width: 767px) {
  .card .tool-item .tool-avatar {
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    margin-right: 8px;
    font-size: 14px;
  }
}

/* ========== 8. 底部 ========== */

.footer {
  text-align: center;
  padding: 20px 10px 60px;
  color: #999;
  font-size: 13px;
}

.footer a {
  color: #999;
}

.footer a:hover {
  color: var(--theme-color, #ff7f00);
}

.footer .beian {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.footer .beian a {
  margin: 0 6px;
}

/* 悬浮返回顶部 */

.suspend {
  position: fixed;
  right: 15px;
  bottom: 60px;
  z-index: 997;
}

.suspend li {
  margin-top: 8px;
  cursor: pointer;
}

.suspend .back-top {
  display: block;
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  color: #666;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 0 8px #ccc;
  border-radius: 50%;
  opacity: 0;
  visibility: hidden;
  -webkit-transition: all .3s;
  -moz-transition: all .3s;
  -o-transition: all .3s;
  transition: all .3s;
}

.suspend .back-top.show {
  opacity: 1;
  visibility: visible;
}

.suspend .back-top:hover {
  color: #fff;
  background: var(--theme-color, #ff7f00);
}

.suspend .back-top svg.icon {
  width: 16px;
  height: 16px;
  vertical-align: middle;
}

/* ========== 8. 本站搜索联想下拉 ========== */

/* 表单需相对定位且允许下拉溢出（上方 .search-form 的 overflow-x 会裁切下拉） */
.search-form {
  position: relative;
  overflow: visible;
}

.site-search-drop {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 999;
  max-height: 320px;
  overflow-y: auto;
  margin-top: 2px;
  padding: 4px 0;
  text-align: left;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .16);
}

.site-search-drop.show {
  display: block;
}

.site-search-drop .ss-item {
  display: block;
  padding: 7px 14px;
  font-size: 14px;
  line-height: 1.4;
  color: #333;
  cursor: pointer;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.site-search-drop .ss-item .ss-name {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.site-search-drop .ss-item .ss-desc {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: #999;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.site-search-drop .ss-item em {
  font-style: normal;
  color: var(--theme-color, #ff7f00);
}

.site-search-drop .ss-item:hover,
.site-search-drop .ss-item.active {
  background: #f6f7f9;
}

.site-search-drop .ss-empty {
  padding: 12px 14px;
  font-size: 13px;
  color: #999;
  text-align: center;
}

/* ========== 9. 底部收录区：最新收录 / 热门收录 ========== */

.bottom-links-card {
  margin-top: 0;
}

.card .bottom-links-head {
  display: flex;
  padding: 0;
  border-bottom: 1px solid #f2f2f2;
  overflow-x: auto;
}

.card .bottom-links-head .bl-tab {
  display: inline-block;
  padding: 12px 18px;
  font-size: 15px;
  font-weight: 700;
  color: #666;
  white-space: nowrap;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  -webkit-transition: all .3s;
  -moz-transition: all .3s;
  -o-transition: all .3s;
  transition: all .3s;
}

.card .bottom-links-head .bl-tab svg.icon {
  margin-right: 6px;
}

.card .bottom-links-head .bl-tab:hover {
  color: #333;
}

.card .bottom-links-head .bl-tab.active {
  color: var(--theme-color, #ff7f00);
  border-bottom-color: var(--theme-color, #ff7f00);
}

.card .bottom-links-head .bl-tab.active svg.icon {
  color: var(--theme-color, #ff7f00);
}

.bl-panel {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px;
  padding: 4px;
  font-size: 14px;
}

.card .bl-item {
  display: flex;
  align-items: center;
  padding: 8px 10px;
  font-size: 14px;
  color: #444;
  border-radius: 6px;
  overflow: hidden;
  -webkit-transition: background .3s;
  -moz-transition: background .3s;
  -o-transition: background .3s;
  transition: background .3s;
}

.card .bl-item:hover {
  background: #f6f7f9;
  color: var(--theme-color, #ff7f00);
}

.card .bl-item .num {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  margin-right: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: bold;
  color: #b8b8b8;
  background: #f2f3f5;
  border-radius: 50%;
  overflow: hidden;
}

/* 前三名高亮徽标（主题主色） */
.card .bl-item .num.top3 {
  color: #fff;
  background: var(--theme-color, #ff7f00);
}

/* 数据来源无图标时的兼容样式（保留） */
.card .bl-item .icon {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  margin-right: 8px;
  display: none;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.card .bl-item .bl-text {
  flex: auto;
  min-width: 0;
}

.card .bl-item .bl-name {
  display: block;
  font-size: 14px;
  color: #333;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.card .bl-item:hover .bl-name {
  color: var(--theme-color, #ff7f00);
}

.card .bl-item .bl-desc {
  display: block;
  margin-top: 1px;
  font-size: 12px;
  color: #999;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

@media (max-width: 767px) {
  .bl-panel {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 4px;
  }

  .card .bottom-links-head .bl-tab {
    padding: 10px 14px;
    font-size: 14px;
  }

  .card .bl-item {
    padding: 6px 8px;
  }

  .card .bl-item .bl-name {
    font-size: 13px;
  }

  .card .bl-item .bl-desc {
    font-size: 11px;
  }

  .site-search-drop {
    max-height: 240px;
  }
}

/* ========== 10. 置顶推荐下方：彩色文字广告 / 图片广告 / 最新点入 ========== */

/* 彩色文字广告（四列，手机两列） */
.ad-links-body {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 10px;
  font-size: 14px;
}

.card .ad-link-item {
  display: block;
  padding: 12px 8px;
  font-size: 16px;
  font-weight: bold;
  letter-spacing: 1px;
  color: #fff !important;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .12);
  -webkit-transition: opacity .2s, transform .2s;
  -moz-transition: opacity .2s, transform .2s;
  -o-transition: opacity .2s, transform .2s;
  transition: opacity .2s, transform .2s;
}

.card .ad-link-item:hover {
  opacity: .85;
  transform: translateY(-2px);
  color: #fff !important;
}

.ad-red    { background: #e54d42; }
.ad-blue   { background: #0081ff; }
.ad-green  { background: #39b54a; }
.ad-yellow { background: #fbbd08; }
.ad-orange { background: #f37b1d; }
.ad-purple { background: #9c27b0; }
.ad-cyan   { background: #1cbbb4; }

/* 图片广告（两列，带「广告」角标） */
.ad-pics-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 10px;
  font-size: 14px;
}

.card .ad-pic-item {
  position: relative;
  display: block;
  height: 90px;
  border-radius: 8px;
  overflow: hidden;
  background: #f6f7f9;
}

.card .ad-pic-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card .ad-pic-item .ad-mark {
  position: absolute;
  right: 0;
  bottom: 0;
  padding: 1px 8px;
  font-size: 12px;
  color: #fff;
  background: rgba(0, 132, 255, .75);
  border-radius: 8px 0 0 0;
}

/* 最新点入（三列，手机两列；标题栏浅色底 + 右侧申请收录） */
.latest-click-card .latest-click-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fdf3f0;
  overflow-x: auto;
}

.latest-click-card .latest-click-head .lc-title {
  display: inline-block;
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.latest-click-card .latest-click-head .lc-title svg.icon {
  margin-right: 6px;
  color: var(--theme-color, #ff7f00);
}

.latest-click-card .latest-click-head .lc-apply {
  flex: 0 0 auto;
  margin-left: 15px;
  font-size: 15px;
  font-weight: 700;
  color: #333;
}

.latest-click-card .latest-click-head .lc-apply:hover {
  color: var(--theme-color, #ff7f00);
}

.lc-body {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px 12px;
  padding: 12px;
  font-size: 14px;
}

.card .lc-item {
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 4px 6px;
  font-size: 14px;
  color: #444;
  border-radius: 6px;
  overflow: hidden;
}

.card .lc-item:hover {
  background: #f6f7f9;
}

/* 数字排行徽标（替代站点图标，避免 favicon 取不到时的乱码/方块） */
.card .lc-item .num {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  margin-right: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: bold;
  color: #b8b8b8;
  background: #f2f3f5;
  border-radius: 50%;
  overflow: hidden;
}

/* 前三名高亮徽标（主题主色） */
.card .lc-item .num.top3 {
  color: #fff;
  background: var(--theme-color, #ff7f00);
}

/* 旧站点图标位：不再输出，兼容隐藏 */
.card .lc-item .icon {
  display: none;
}

.card .lc-item .name {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.card .lc-item:hover .name {
  color: var(--theme-color, #ff7f00);
}

@media (max-width: 767px) {
  .ad-links-body {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .card .ad-link-item {
    padding: 11px 6px;
    font-size: 14px;
  }

  .ad-pics-body {
    gap: 8px;
  }

  .card .ad-pic-item {
    height: 70px;
  }

  .lc-body {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px 8px;
    padding: 8px;
  }

  .latest-click-card .latest-click-head .lc-title {
    font-size: 14px;
  }

  .latest-click-card .latest-click-head .lc-apply {
    font-size: 14px;
  }
}
