/*
 Theme Name: 导航专用主题
 Description: 配合 Simple Nav Directory 插件使用的导航主题
 Version: 0.4
*/

body {margin:0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif;background:#e6f6ff;color:#1f2933;background-image:radial-gradient(circle at 0 0,rgba(255,255,255,0.6) 0,rgba(255,255,255,0.6) 26px,transparent 27px),radial-gradient(circle at 80px 80px,rgba(255,255,255,0.4) 0,rgba(255,255,255,0.4) 22px,transparent 23px);background-size:160px 160px;}
a {color:#2563eb;text-decoration:none;}

/* 头部整体 */
.daohang-site-header {padding:0;margin-bottom:10px;position:sticky;top:0;z-index:20;}

/* 兼容WordPress顶部管理条 - 使用更智能的方案 */
body.admin-bar .daohang-site-header {
  top: 32px;
}

/* 当页面滚动时WordPress管理条隐藏的情况 */
body.admin-bar.no-admin-bar .daohang-site-header {
  top: 0;
}
.daohang-site-header-inner {max-width:100%;margin:0 auto;}

/* 第一行：LOGO+简介 + 搜索 + 多语言 - 浅蓝背景通栏 */
.daohang-header-top {display:flex;align-items:center;justify-content:space-between;gap:20px;padding:16px 0 14px 0;background:#def3f8;box-shadow:0 4px 16px 0 rgba(48, 143, 173, 0.38);}
.daohang-header-top-inner {display:flex;align-items:center;justify-content:space-between;gap:20px;max-width:1220px;margin:0 auto;padding:0 16px;width:100%;}
.daohang-header-mobile-left,
.daohang-header-mobile-right {
  display:none;
  align-items:center;
  gap:8px;
  flex-shrink:0;
}
.daohang-header-mobile-right {justify-content:flex-end;}
.daohang-logo-wrapper {display:flex;align-items:center;gap:12px;flex-shrink:0;}
.daohang-logo {font-size:24px;font-weight:800;letter-spacing:0.5px;color:#111827;}
.daohang-logo a {color:#111827;text-decoration:none;display:inline-flex;align-items:center;}
.daohang-logo img {
  max-height:48px;
  max-width: 300px;
  display:block;
}
.daohang-slogan {font-size:13px;font-weight:400;color:#6b7280;white-space:nowrap;}
.daohang-search-wrapper {flex:0 1 420px;position:relative;}
.daohang-search {position:relative;width:100%;}
.daohang-search-input {width:100%;box-sizing:border-box;border-radius:999px;border:1px solid #d1d5db;padding:8px 40px 8px 16px;font-size:14px;color:#111827;background:#ffffff;outline:none;transition:border-color .12s ease,box-shadow .12s ease;}
.daohang-search-input:focus {border-color:#2563eb;box-shadow:0 0 0 3px rgba(37,99,235,0.1);}
.daohang-search-btn {position:absolute;right:10px;top:50%;transform:translateY(-50%);width:auto;height:auto;border-radius:0;border:none;background:transparent;color:#6b7280;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:color .12s ease;padding:0;}
.daohang-search-btn:hover {color:#2563eb;}
.daohang-search-btn svg {display:block;}

/* 搜索热门词弹出层 */
.daohang-search-dropdown {position:absolute;top:calc(100% + 8px);left:0;right:0;background:#ffffff;border:1px solid #e5e7eb;border-radius:12px;box-shadow:0 4px 16px rgba(0,0,0,0.1);padding:16px;z-index:100;display:none;}
.daohang-search-hot-tags {display:flex;flex-wrap:wrap;gap:8px;align-items:center;}
.daohang-search-hot-tags .hot-label {font-size:13px;color:#6b7280;font-weight:500;margin-right:4px;}
.daohang-search-hot-tags .hot-tag {display:inline-block;padding:4px 12px;border-radius:999px;background:#f3f4f6;border:1px solid #e5e7eb;font-size:12px;color:#374151;transition:all .12s ease;text-decoration:none;}
.daohang-search-hot-tags .hot-tag:hover {background:#2563eb;color:#ffffff;border-color:#2563eb;}
.daohang-lang {display:flex;align-items:center;justify-content:flex-end;min-width:36px;flex-shrink:0;}
.daohang-lang-flag {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:auto;
  height:auto;
  padding:0;
  border:none;
  border-radius:0;
  background:transparent;
  font-size:16px;
  cursor:pointer;
}
.daohang-lang-flag:hover {
  background:transparent;
  border:none;
}

.lang-flag {display:inline-flex;align-items:center;justify-content:center;line-height:1;font-size:16px;}
.lang-flag img {display:block;width:18px;height:12px;object-fit:cover;border:1px solid #000000;}
.daohang-lang-flag img {display:block;width:20px;height:14px;border-radius:3px;object-fit:cover;box-shadow:0 0 0 1px rgba(15,23,42,0.08);}

.daohang-lang--mobile-trigger {display:none;}
.daohang-lang--desktop {display:flex;}
.daohang-mobile-lang-icon-wrapper {display:none;}

@media (max-width: 640px) {
  .daohang-lang--desktop {display:none;}
  .daohang-lang--mobile-trigger {display:flex;margin-left:12px;}
  .daohang-lang--mobile-trigger .lang-name {display:none;}
  .daohang-lang--mobile-trigger .lang-current-toggle {padding:4px;}
  .daohang-mobile-lang-icon-wrapper {display:flex;}
}

.daohang-mobile-lang--floating {
  margin-top:0;
}

.daohang-mobile-lang--floating .daohang-mobile-lang-current {
  padding:0;
  width:auto;
  border-radius:0;
  background:transparent;
  border:none;
  box-shadow:none;
  margin-left:7px;
}

.daohang-mobile-lang--floating .daohang-mobile-lang-current .lang-name {
  display:none;
}

.daohang-mobile-lang--floating .daohang-mobile-lang-current .lang-flag {
  margin:0;
  font-size:18px;
}

/* PC端语言切换器样式 */
.daohang-language-switcher {
  display:flex;
  align-items:center;
  justify-content:flex-end;
}
.daohang-language-switcher .daohang-lang-toggle {
  position:relative;
}
.daohang-language-switcher .lang-current-toggle {
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size:14px;
  font-weight:600;
  color:#1f2933;
  background:transparent;
  border:none;
  cursor:pointer;
  padding:4px 0;
}
.daohang-language-switcher .lang-current-toggle:focus-visible {
  outline:2px solid #2563eb;
  outline-offset:2px;
}
.daohang-language-switcher .lang-current-toggle .lang-flag {
  font-size:16px;
}
.daohang-language-switcher .lang-dropdown {
  position:absolute;
  right:0;
  top:calc(100% + 8px);
  background:#ffffff;
  border:1px solid #e5e7eb;
  border-radius:12px;
  box-shadow:0 10px 30px rgba(15,23,42,0.15);
  padding:8px;
  display:grid;
  grid-template-columns:repeat(2, minmax(120px, 1fr));
  gap:5px;
  min-width:300px;
  max-width:calc(100vw - 24px);
  opacity:0;
  visibility:hidden;
  transform:translateY(-4px);
  transition:opacity .15s ease, transform .15s ease, visibility .15s ease;
  z-index:120;
}
.daohang-language-switcher .daohang-lang-toggle.is-open .lang-dropdown {
  opacity:1;
  visibility:visible;
  transform:translateY(0);
}
.daohang-language-switcher .lang-option {
  display:flex;
  align-items:center;
  gap:5px;
  padding:2px 5px;
  border-radius:8px;
  color:#374151;
  text-decoration:none;
  transition:background-color .12s ease, color .12s ease;
  font-size:13px;
  flex-direction: row-reverse;
  justify-content: flex-end;
}
.daohang-language-switcher .lang-option .lang-flag {
  font-size:16px;
}
.daohang-language-switcher .lang-option:hover,
.daohang-language-switcher .lang-option.current {
  background:#f3f4f6;
  color:#111827;
}

@media (max-width: 768px) {
  .daohang-language-switcher .lang-current-toggle .lang-name {
    display:none;
  }
  .daohang-language-switcher .lang-dropdown {
    min-width:200px;
    grid-template-columns:repeat(2, minmax(100px, 1fr));
  }
}

/* 移动端菜单按钮和搜索图标（默认隐藏） */
.daohang-mobile-menu-btn,
.daohang-mobile-search-btn {display:none;}

/* 第二行：主菜单栏（使用 ul li 结构，黑色背景，下圆角，和内容区域同宽） */
.daohang-main-nav {display:flex;align-items:center;justify-content:flex-start;gap:0;padding:0 16px;background:transparent;}
.daohang-main-nav-inner {display:flex;align-items:stretch;justify-content:space-between;gap:0;max-width:1220px;width:100%;margin:0 auto;background:#4b5050;border-radius:0 0 12px 12px;overflow:hidden;list-style:none;padding:0;}
.daohang-main-nav li {display:flex;align-items:stretch;border-right:1px solid #5a5f5f;flex:1;}
.daohang-main-nav li:last-child {border-right:none;}
.daohang-main-nav a {color:#e5e7eb;padding:8px;font-size:14px;font-weight:500;white-space:nowrap;transition:color .12s ease,background-color .12s ease;text-decoration:none;display:flex;align-items:center;justify-content:center;width:100%;}
.daohang-main-nav a:hover {background:#55595a;color:#ffffff;}

@keyframes daohang-nav-highlight-blink {
  0%, 100% {opacity:1;}
  50% {opacity:0;}
}

.daohang-main-nav-inner li.has-highlight > a,
.daohang-mobile-main-nav a.has-highlight {
  position:relative;
}

.daohang-main-nav-inner li.has-highlight > a::after,
.daohang-mobile-main-nav a.has-highlight::after {
  content:"";
  width:5px;
  height:5px;
  border-radius:50%;
  background:var(--nav-highlight-color, #22c55e);
  margin-left:6px;
  animation:daohang-nav-highlight-blink 1.3s linear infinite;
  display:inline-flex;
  flex-shrink:0;
  align-self:center;
}


/* 底部 */
.daohang-footer-top {padding:0 16px 18px;}
.daohang-footer-bottom {border-top:1px solid rgba(148,163,184,0.5);padding:20px 0 24px 0;text-align:center;background:#000000;color:#e5f3ff;}
.daohang-footer-inner {max-width:1220px;margin:0 auto;}
.footer-col {background:rgba(255, 255, 255, 0.75);padding:20px;border-radius: 10px;}

/* 底部内容区域 */
.daohang-footer-top .daohang-footer-inner div h2 {
  color: #56b9f0;
  font-size: 18px;
  font-weight: 700;
  margin:0;
}

.daohang-footer-top .daohang-footer-inner div p {
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 10px 0;
}

.daohang-footer-top .daohang-footer-inner div h2:not(:first-child) {
  margin-top: 32px;
}

/* 底部按钮区域 */
.footer-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.footer-btn {
  display: inline-block;
  padding: 8px 20px;
  background: #dbf9ff;
  color: #000000;
  text-decoration: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid rgba(224, 242, 254, 0.3);
  transition: all 0.2s ease;
}

.footer-btn:hover {
  background: #0e5c70;
  color: #ffffff;
  border-color: rgba(224, 242, 254, 0.5);
  text-decoration: none;
}

.copyright {
  color: #b8d4e8;
  font-size: 13px;
  margin-top: 8px;
}

/* 分类下文章样式 */
.category-posts-grid {
  margin-top: 20px;
}

.category-post-item {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.2s ease;
}

.category-post-item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.category-post-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.category-post-link h4 {
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 8px 0;
  line-height: 1.4;
}

.category-post-wrapper h3 {
  color: #ffffff;
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 12px 0;
  line-height: 1.4;
}

.category-post-content {
  color: #e5e7eb;
  font-size: 14px;
  line-height: 1.6;
}

.category-post-content p {
  margin: 0 0 12px 0;
}

.category-post-content p:last-child {
  margin-bottom: 0;
}

.category-post-content h1, .category-post-content h2, .category-post-content h3,
.category-post-content h4, .category-post-content h5, .category-post-content h6 {
  color: #ffffff;
  margin: 16px 0 8px 0;
}

.category-post-content ul, .category-post-content ol {
  margin: 12px 0;
  padding-left: 20px;
}

.category-post-content li {
  margin: 4px 0;
  color: #e5e7eb;
}

.category-post-link:hover h4 {
  color: #e0f2fe;
}

.category-post-excerpt {
  color: #9ca3af;
  font-size: 13px;
  margin: 0 0 8px 0;
  line-height: 1.4;
}

.category-post-date {
  color: #6b7280;
  font-size: 12px;
  margin: 0;
}

.category-post-url {
  color: #9ca3af;
  font-size: 13px;
  margin: 0;
  word-break: break-all;
}

/* 首页文章样式 */
.homepage-post-content {
  color: #888888;
  font-size: 14px;
  line-height: 1.6;
  margin: 20px 0;
}

.homepage-post-content p {
  margin: 0 0 12px 0;
}

.homepage-post-content p:last-child {
  margin-bottom: 0;
}

.homepage-post-content h1, .homepage-post-content h2, .homepage-post-content h3,
.homepage-post-content h4, .homepage-post-content h5, .homepage-post-content h6 {
  color: #ffffff;
  margin: 16px 0 8px 0;
}

.homepage-post-content ul, .homepage-post-content ol {
  margin: 12px 0;
  padding-left: 20px;
}

.homepage-post-content li {
  margin: 4px 0;
  color: #e5e7eb;
}

/* 列表页样式 */
.daohang-breadcrumb {
  font-size: 14px;
  margin-top: 20px;
}

/* 网址详情页样式 - 通栏布局 */
.daohang-single-wrapper {
  width: 100%;
  margin: 20px auto;
  padding: 0;
}

.daohang-single-main {
  min-width: 0;
}

/* 左右布局样式 - 合为一体 */
.daohang-single-layout {
  display: flex;
  gap: 24px;
  align-items: stretch;
  margin-bottom: 24px;
  background: #ffffff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* 文章 / 页面通用布局 */
.daohang-page {padding-top:10px;}
.daohang-page .daohang-inner {
  margin: 0 auto;
}

.daohang-page-entry {
  background: #ffffff;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
}

.daohang-article-header {
  margin-bottom: 24px;
}

.daohang-article-title {
  font-size: 32px;
  line-height: 1.2;
  margin: 0 0 16px;
  color: #111827;
}

.daohang-article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 14px;
  color: #6b7280;
}

.daohang-article-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.daohang-article-meta span + span::before {
  content: "•";
  margin-right: 12px;
  color: #d1d5db;
}

.daohang-article-feature {
  margin-bottom: 24px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.daohang-article-feature img {
  width: 100%;
  height: auto;
  display: block;
}

.daohang-page-content {
  font-size: 16px;
  line-height: 1.9;
  color: #1f2937;
}

.daohang-page-content p {
  margin-bottom: 1.3em;
}

.daohang-page-content img {
  border-radius: 12px;
  margin: 24px 0;
}

.daohang-page-content blockquote {
  border-left: 4px solid #10b981;
  padding-left: 16px;
  color: #4b5563;
  font-style: italic;
  background: #f0fdf4;
}

.daohang-article-tags {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.daohang-article-tag {
  background: #eef2ff;
  color: #4338ca;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
}

.daohang-article-comments {
  background: #ffffff;
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.daohang-comments-title,
.daohang-comment-reply-title {
  margin: 0 0 20px;
  font-size: 20px;
  color: #0f172a;
}

.daohang-comment-list {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
}

.daohang-comment-list li {
  padding: 18px 0;
  border-bottom: 1px solid #e5e7eb;
}

.daohang-comment-meta {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 6px;
}

.daohang-comment-content {
  font-size: 15px;
  color: #1f2937;
}

.daohang-comments-closed {
  color: #9ca3af;
  font-style: italic;
}

.daohang-comment-form {
  margin-top: 12px;
}

.daohang-comment-form textarea,
.daohang-comment-form input[type="text"],
.daohang-comment-form input[type="email"],
.daohang-comment-form input[type="url"] {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 12px;
  font-size: 15px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.daohang-comment-form textarea:focus,
.daohang-comment-form input:focus {
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
  outline: none;
}

.daohang-comment-submit {
  background: #10b981;
  color: #ffffff;
  border: none;
  border-radius: 999px;
  padding: 10px 24px;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.daohang-comment-submit:hover {
  background: #059669;
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .daohang-page-entry {
    padding: 24px;
  }
  .daohang-article-title {
    font-size: 26px;
  }
}

.daohang-screenshot-section {
  flex: 0 0 400px;
  display: flex;
  align-items: flex-start;
  justify-cent  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.daohang-single-header {
  flex: 1;
}

.daohang-action-buttons-right {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  align-items: center;
  margin-top: 16px;
  flex-wrap: wrap;
}

.daohang-action-buttons-right .daohang-primary-button,
.daohang-action-buttons-right .daohang-secondary-button,
.daohang-action-buttons-right .daohang-report-button,
.daohang-action-buttons-right .daohang-back-button {
  padding: 8px 16px;
  font-size: 14px;
}

/* 网站头部信息 - 在一体布局中不需要背景和边距 */
.daohang-single-header {
  background: transparent;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  margin-bottom: 0;
}

.daohang-site-info {
  display: block;
}

.daohang-site-favicon {
  display: inline-flex;
  vertical-align: middle;
  margin-right: 8px;
  flex-shrink: 0;
}

.daohang-site-favicon img {
  width: 20px;
  height: 20px;
  border-radius: 4px;
}

.snd-favicon-default {
  font-size: 16px;
  display: inline-block;
  vertical-align: middle;
}

.daohang-site-favicon img {
  width: 16px;
  height: 16px;
  border-radius: 4px;
}

.snd-favicon img {
  width: 16px;
  height: 16px;
}

.snd-favicon--sprite {
  width: 16px;
  height: 16px;
  display: inline-flex;
  background-repeat: no-repeat;
  background-size: auto;
  border-radius: 4px;
  image-rendering: pixelated;
}

.snd-favicon-default {
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  background: #f3f4f6;
  border-radius: 4px;
}

.daohang-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  line-height: 24px;
  flex-wrap: wrap;
}

.daohang-site-title .daohang-title {
  font-size: 24px;
  font-weight: 700;
  color: #111827;
  margin: 0;
  line-height: 24px;
  display: inline-block;
  vertical-align: middle;
  flex: 1;
  min-width: 0;
}

.daohang-site-categories {
  margin-top: 8px;
}

.daohang-category-tag {
  display: inline-block;
  background: #f3f4f6;
  color: #6b7280;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 4px;
  margin-right: 6px;
  margin-bottom: 4px;
}

.daohang-site-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 8px;
  vertical-align: middle;
  flex-shrink: 0;
}

.daohang-site-flag {
  font-size: 16px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.daohang-site-tags {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  vertical-align: middle;
}

.daohang-inline-categories {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.daohang-inline-categories .daohang-category-tag {
  margin: 0;
  white-space: nowrap;
}

.daohang-nav-tags {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.daohang-nav-tags-label {
  font-size: 13px;
  font-weight: 600;
  color: #6b7280;
}

.daohang-nav-tags-list {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
}

.daohang-nav-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  background: #eef2ff;
  color: #1d4ed8;
  border-radius: 5px;
  font-size: 12px;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.daohang-nav-tag:hover {
  background: #dbeafe;
  color: #1e3a8a;
}

.daohang-single-layout .daohang-title-row {
  flex-wrap: nowrap;
  gap: 5px;
  align-items: center;
  justify-content: flex-start;
}

.daohang-single-layout .daohang-title-row .daohang-title {
  min-width: 0;
  margin: 0;
  line-height: 1.2;
  display: block;
}

.daohang-single-layout .daohang-site-favicon {
  width: 16px;
  height: 16px;
  background: transparent;
  margin-right:0;
}
.daohang-single-layout .daohang-site-favicon span.snd-favicon {
  line-height: normal;
}

.daohang-single-layout .daohang-site-favicon img,
.daohang-single-layout .daohang-site-favicon .snd-favicon img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
}

.daohang-single-layout .snd-favicon-default {
  width: 48px;
  height: 48px;
  font-size: 20px;
}

.daohang-single-layout .daohang-site-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin-left: 0;
}

.daohang-single-layout .daohang-site-tags {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .daohang-single-layout .daohang-title-row {
    flex-wrap: wrap;
  }

  .daohang-single-layout .daohang-site-tags {
    flex-wrap: wrap;
  }
}

.daohang-tag {
  display: inline-block;
  padding: 0 5px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.daohang-tag-new {
  background: #10b981;
  color: white;
}

.daohang-tag-hot {
  background: #ef4444;
  color: white;
}

/* 自定义标记样式 */
.snd-tag {
  display: inline-block;
  padding: 0 5px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.snd-tag-custom {
  background: #3b82f6;
  color: white;
}

/* 网站截图区域 */
.daohang-screenshot-container {
  background: #000000;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
}

.daohang-screenshot-img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  background: #000000;
}

.daohang-screenshot-zoom {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: none;
  background: rgba(15, 23, 42, 0.75);
  color: #f8fafc;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.daohang-screenshot-zoom svg {
  pointer-events: none;
}

.daohang-screenshot-container:hover .daohang-screenshot-zoom,
.daohang-screenshot-container:focus-within .daohang-screenshot-zoom {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 640px) {
  .daohang-screenshot-zoom {
    opacity: 1;
    transform: none;
    width: 36px;
    height: 36px;
  }
}

.daohang-screenshot-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 300px;
  background: #0f172a;
  border-radius: 8px;
  border: 2px dashed rgba(148, 163, 184, 0.6);
  transition: all 0.3s ease;
}

.daohang-screenshot-placeholder:hover {
  border-color: rgba(248, 250, 252, 0.6);
  background: #111827;
}

.daohang-screenshot-icon {
  font-size: 64px;
  color: #6b7280;
  margin-bottom: 16px;
  opacity: 0.6;
}

.daohang-screenshot-text {
  font-size: 16px;
  color: #4b5563;
  font-weight: 500;
  opacity: 0.8;
}

.snd-screenshot-box {
  max-width: 400px;
  margin: 0 auto;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.snd-screenshot-box {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.snd-screenshot-img {
  width: 100%;
  height: auto;
  border-radius: 12px;
}

/* 操作按钮 */
.daohang-action-buttons {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
}

/* 通栏按钮区域 */
.daohang-action-buttons-full {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
  padding: 24px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.daohang-action-buttons-full .daohang-back-button {
  margin: 0;
}

.daohang-primary-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  background: #10b981;
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.daohang-primary-button:hover {
  background: #059669;
  color: white;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
}

.daohang-secondary-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  background: #9fd400;
  color: #374151;
  border: 1px solid #9fd400;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  color:#fff;
}

.daohang-secondary-button:hover {
  background: #62cf00;
  color: #ffffff;
  border-color: #62cf00;
}

/* 网站描述区域 */
.daohang-description-content {
  margin-bottom: 24px;
}

/* 合作链接区域 */
.daohang-cooperation-section {
  background: #ffffff;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  margin-bottom: 24px;
}

/* 统计区域 */
.daohang-stats-section {
  background: #ffffff;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  margin-bottom: 24px;
}

.daohang-section-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--snd-detail-title-color, var(--snd-heading-color));
  margin: 0 0 20px 0;
  position: relative;
  padding-bottom: 8px;
}

.daohang-section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: #10b981;
  border-radius: 2px;
}

/* 相关导航区域 - 使用分类页卡片网格样式 */
.daohang-related-navs-section {
  background: #1f2937;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 24px;
}

.daohang-related-navs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.daohang-related-nav-item {
  background: #374151;
  border-radius: 8px;
  border: 1px solid #4b5563;
  overflow: hidden;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.daohang-related-nav-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  border-color: #6b7280;
}

.daohang-related-nav-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.daohang-related-nav-image {
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: #4b5563;
}

.daohang-related-nav-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.daohang-related-nav-item:hover .daohang-related-nav-thumb {
  transform: scale(1.05);
}

.daohang-related-nav-content {
  padding: 16px;
}

.daohang-related-nav-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.daohang-related-nav-number {
  color: #9ca3af;
  font-weight: 500;
  font-size: 12px;
  min-width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.daohang-related-nav-title {
  flex: 1;
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #f3f4f6;
  line-height: 16px;
}

.daohang-related-nav-favicon {
  font-size: 12px;
  min-width: 16px;
  max-width: 16px;
  height: 16px;
  color: #9ca3af;
  display: flex;
  align-items: center;
  justify-content: center;
}

.daohang-related-nav-description {
  color: #9ca3af;
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.daohang-no-related {
  text-align: center;
  color: #9ca3af;
  font-style: italic;
  padding: 40px 20px;
}

.daohang-single-desc {
  font-size: 14px;
  line-height: 1.7;
  color: #6b7280;
  margin-top: 12px;
}

.daohang-single-desc p {
  margin: 0 0 12px 0;
}

.daohang-single-desc p:last-child {
  margin-bottom: 0;
}

/* 统计信息 */
.daohang-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 24px;
}

.daohang-stat-item {
  text-align: center;
  padding: 20px;
  background: #f9fafb;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
}

.daohang-stat-number {
  font-size: 24px;
  font-weight: 700;
  color: #10b981;
  margin-bottom: 8px;
}

.daohang-stat-label {
  font-size: 14px;
  color: #6b7280;
  font-weight: 500;
}

/* 内联网站信息 */
.daohang-site-details-inline {
  margin-top: 12px;
}

.daohang-detail-inline {
  margin-bottom: 8px;
}

.daohang-detail-inline:last-child {
  margin-bottom: 0;
}

.daohang-detail-inline .daohang-detail-label {
  margin: 0;
  font-weight: 500;
  color: #6b7280;
}

.daohang-sidebar-title {
  font-size: 18px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 20px 0;
  position: relative;
  padding-bottom: 8px;
}

.daohang-sidebar-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 3px;
  background: #10b981;
  border-radius: 2px;
}

.daohang-site-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.daohang-detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #f3f4f6;
}

.daohang-detail-item:last-child {
  border-bottom: none;
}

.daohang-detail-label {
  font-size: 14px;
  color: #6b7280;
  font-weight: 500;
}

.daohang-detail-value {
  font-size: 14px;
  color: #111827;
  font-weight: 600;
  text-align: right;
  flex: 1;
  margin-left: 12px;
}

.daohang-detail-value a {
  color: #2563eb;
  text-decoration: none;
}

.daohang-detail-value a:hover {
  text-decoration: underline;
}

/* 分类标签样式 */
.daohang-category-tag {
  display: inline-block;
  padding: 2px 5px;
  background: #111827;
  color: white;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
  margin: 2px 4px 2px 0;
}

/* 合作链接 */
.daohang-cooperation-desc {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.5;
  margin-bottom: 16px;
}

.daohang-link-item {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.daohang-link-input {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 13px;
  background: #f9fafb;
  color: #374151;
}

.daohang-copy-btn {
  padding: 10px 12px;
  background: #10b981;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.daohang-copy-btn:hover {
  background: #059669;
}

.daohang-code-header {
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 8px;
}

.daohang-code-textarea {
  width: 100%;
  min-height: 80px;
  padding: 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 12px;
  background: #f9fafb;
  color: #374151;
  resize: vertical;
  box-sizing: border-box;
}

/* 返回按钮 */
.daohang-back-nav {
  margin-top: 32px;
}

.daohang-back-button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  text-decoration: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.daohang-back-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
  color: white;
  text-decoration: none;
}

/* 举报按钮样式 */
.daohang-report-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  background: #ef4444;
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.daohang-report-button:hover {
  background: #dc2626;
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* 模态框样式 */
.daohang-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.daohang-modal-content {
  background: white;
  border-radius: 16px;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp 0.3s ease;
}

.daohang-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 24px 16px 24px;
  border-bottom: 1px solid #e5e7eb;
}

.daohang-modal-header h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: #111827;
}

.daohang-modal-close {
  background: none;
  border: none;
  font-size: 24px;
  color: #6b7280;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.daohang-modal-close:hover {
  background: #f3f4f6;
  color: #374151;
}

.daohang-modal-body {
  padding: 20px 24px;
}

.daohang-modal-footer {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  padding: 16px 24px 24px 24px;
  border-top: 1px solid #e5e7eb;
}

.dh-cover-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 11000;
}

.dh-cover-modal.is-open {
  display: flex;
}

.dh-cover-modal__dialog {
  position: relative;
  max-width: min(1200px, 90vw);
  max-height: 90vh;
  outline: none;
}

.dh-cover-modal__img {
  width: 100%;
  height: auto;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 16px;
  background: #000000;
  display: block;
}

.dh-cover-modal__caption {
  margin-top: 12px;
  text-align: center;
  color: #f8fafc;
  font-size: 14px;
}

.dh-cover-modal__close {
  position: absolute;
  top: -16px;
  right: -16px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: none;
  background: rgba(15, 23, 42, 0.9);
  color: #f8fafc;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.dh-cover-modal__close:hover,
.dh-cover-modal__close:focus-visible {
  background: rgba(248, 250, 252, 0.95);
  color: #0f172a;
}

body.dh-cover-modal-open {
  overflow: hidden;
}

@media (max-width: 640px) {
  .dh-cover-modal {
    padding: 12px;
  }

  .dh-cover-modal__close {
    top: 8px;
    right: 8px;
  }
}

/* 表单样式 */
.daohang-form-group {
  margin-bottom: 20px;
}

.daohang-form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #374151;
  font-size: 14px;
}

.daohang-form-group select,
.daohang-form-group textarea,
.daohang-form-group input[type="email"] {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.daohang-form-group select:focus,
.daohang-form-group textarea:focus,
.daohang-form-group input[type="email"]:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.daohang-form-group textarea {
  resize: vertical;
  min-height: 100px;
  font-family: inherit;
  line-height: 1.5;
}

/* 按钮样式 */
.daohang-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.daohang-btn-primary {
  background: #2563eb;
  color: white;
}

.daohang-btn-primary:hover {
  background: #1d4ed8;
}

.daohang-btn-secondary {
  background: #f3f4f6;
  color: #374151;
  border: 1px solid #d1d5db;
}

.daohang-btn-secondary:hover {
  background: #e5e7eb;
}

/* 通知样式 */
.daohang-notification-error {
  background: #ef4444 !important;
}

/* 动画 */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { 
    opacity: 0;
    transform: translateY(20px);
  }
  to { 
    opacity: 1;
    transform: translateY(0);
  }
}

/* 响应式设计 - 模态框 */
@media (max-width: 640px) {
  .daohang-action-buttons {
    flex-direction: column;
    gap: 12px;
  }
  
  .daohang-modal-content {
    width: 95%;
    margin: 20px;
  }
  
  .daohang-modal-header,
  .daohang-modal-body,
  .daohang-modal-footer {
    padding-left: 20px;
    padding-right: 20px;
  }
  
  .daohang-modal-footer {
    flex-direction: column;
  }
  
  .daohang-btn {
    width: 100%;
    text-align: center;
  }
}

/* 响应式设计 */
@media (max-width: 1024px) {
  .daohang-single-layout {
    flex-direction: column;
    gap: 16px;
  }
  
  .daohang-screenshot-section {
    flex: none;
    width: 100%;
    order: -1;
  }
  
  .daohang-info-section {
    order: 1;
  }
  
  .daohang-title-row {
    align-items: center;
    flex-wrap: wrap;
  }
  
  .daohang-site-actions {
    align-items: center;
    margin-left: 8px;
  }
  
  .daohang-site-tags {
    justify-content: flex-start;
  }
  
  .daohang-action-buttons-right {
    justify-content: center;
    margin-top: 24px;
  }
  
  .daohang-related-navs-grid {
    grid-template-columns: 1fr;
  }
  
  /* 移动端布局优化 */
  .daohang-single-layout {
    order: 1;
  }
  
  .daohang-cooperation-section {
    order: 2;
  }
  
  .daohang-stats-section {
    order: 3;
  }
  
  .daohang-related-navs-section {
    order: 4;
  }
  
  /* 移动端不显示统计信息 */
  .daohang-stats-section {
    display: none;
  }
}

@media (max-width: 640px) {

  
  .daohang-description-section {
    padding: 16px;
  }
  
  .daohang-stats-section {
    padding: 16px;
  }
  
  .daohang-sidebar-card {
    padding: 16px;
  }
  
  .daohang-site-title .daohang-title {
    font-size: 20px;
    line-height: 24px;
  }
  
  .daohang-title-row {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    line-height: 24px;
  }
  
  .daohang-site-actions {
    margin-left: 8px;
    margin-top: 0;
  }
  
  /* 移动端按钮通栏显示 */
  .daohang-action-buttons-right {
    flex-direction: column;
    gap: 12px;
    justify-content: stretch;
    margin-top: 24px;
  }
  
  .daohang-action-buttons-right .daohang-primary-button,
  .daohang-action-buttons-right .daohang-secondary-button,
  .daohang-action-buttons-right .daohang-report-button,
  .daohang-action-buttons-right .daohang-back-button {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 14px 20px;
    font-size: 16px;
    box-sizing: border-box;
    min-height: 48px;
  }
  
  .daohang-stats-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .daohang-stats-grid .daohang-stat-item {
    padding: 16px;
  }
}

.breadcrumb-link {
  color: #fff;
  text-decoration: none;
  transition: color 0.2s ease;
  background: #000000;
  padding:5px 8px;
  border-radius: 6px;
}

.breadcrumb-separator {
  margin: 0 8px;
  color: #6b7280;
}

.breadcrumb-current {
  color: #374151;
  font-weight: 500;
}

/* 分类标题区域 - 独立背景 */
.category-header {
  background: #374151; /* 比下面卡片列表淡一点 */
  border-radius: 12px 12px 0 0;
  padding: 16px;
  margin-top: 20px;
  position: relative;
}

.category-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--snd-category-title-color, #ffffff);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.category-icon {
  font-size: 24px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  flex-shrink: 0;
}

.category-icon.default-icon {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
}

.category-title .dh-category-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

/* 多语言标题/分类选择器 */
.category-title-row {
  display:flex;
  align-items:center;
  gap:12px;
  justify-content:space-between;
}

.category-lang-selector {
  display:none;
  margin-left:auto;
}

.category-lang-selector .daohang-mobile-lang-current {
  border:none;
  background:transparent;
  padding:4px;
}

.category-lang-selector .daohang-mobile-lang-current .lang-name {
  display:none;
}

@media (max-width: 900px) {
  .category-lang-selector {
    display:block;
  }
}

.daohang-mobile-lang {
  position:relative;
  display:flex;
  flex-direction:column;
}

.daohang-mobile-lang-current {
  display:flex;
  align-items:center;
  gap:12px;
  padding:12px 16px;
  font-size:15px;
  font-weight:500;
  background:transparent;
  color:#e5e7eb;
  border:none;
  cursor:pointer;
  width:100%;
}

.daohang-mobile-lang-current .lang-name {
  flex:1;
  text-align:left;
}

.daohang-mobile-lang-current .lang-flag {
  margin-left:auto;
  font-size:18px;
  line-height:1;
}

.daohang-mobile-lang-current:hover,
.daohang-mobile-lang.is-open .daohang-mobile-lang-current {
  background:transparent;
  color:#ffffff;
}

.daohang-mobile-lang-dropdown {
  position:fixed;
  top:50%;
  left:50%;
  width:80vw;
  max-width:420px;
  max-height: 80%;
  transform:translate(-50%, -50%) scale(0.98);
  background:#ffffff;
  border:1px solid #e5e7eb;
  box-shadow:0 20px 45px rgba(15,23,42,0.2);
  display:flex;
      flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
  gap:5px;
  padding:10px;
  border-radius:12px;
  opacity:0;
  visibility:hidden;
  transition:opacity .2s ease, transform .2s ease, visibility .2s ease;
  z-index:140;
}

.daohang-mobile-lang[data-align="right"] .daohang-mobile-lang-dropdown {
  left:50%;
  right:auto;
}

.daohang-mobile-lang.drop-up .daohang-mobile-lang-dropdown {
  top:50%;
  bottom:auto;
}

.daohang-mobile-lang.is-open .daohang-mobile-lang-dropdown {
  opacity:1;
  visibility:visible;
  transform:translate(-50%, -50%) scale(1);
}

.daohang-mobile-lang-mask {
  display:none;
  position:fixed;
  inset:0;
  background:rgba(15,23,42,0.9);
  z-index:130;
  opacity:0;
  transition:opacity .2s ease;
}

.daohang-mobile-lang.is-open .daohang-mobile-lang-mask {
  display:block;
  opacity:1;
}

.daohang-mobile-lang-dropdown .lang-option {
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-direction:row-reverse;
  width:49%;
  gap:5px;
  padding:3px 5px;
  border-radius:0;
  background:transparent;
  color:#0f172a;
  text-decoration:none;
  font-size:13px;
  font-weight:500;
  box-sizing:border-box;
  transition:background-color .12s ease, color .12s ease;
}

.daohang-mobile-lang-dropdown .lang-option .lang-name {
  flex:1;
  text-align:left;
}

.daohang-mobile-lang-dropdown .lang-option .lang-flag {
  font-size:18px;
}

.daohang-mobile-lang-dropdown .lang-option:hover,
.daohang-mobile-lang-dropdown .lang-option.current {
  background:#f3f4f6;
  color:#0f172a;
}

.category-description {
  color: #d1d5db;
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 10px;
}

/* 广告区域 */
.category-ads {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.ad-slot {
  background: #4b5563;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ad-slot-content {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.ad-slot-content iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.ad-placeholder {
  color: #9ca3af;
  font-size: 14px;
  padding: 8px 16px;
  background: #374151;
  border-radius: 6px;
  border: 1px dashed #6b7280;
}

.daohang-detail-ads {
  margin: 24px 0;
}

.category-ads--detail {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  background: #f8fafc;
  border-radius: 12px;
  padding: 16px;
  border: 1px solid #e5e7eb;
}

.category-ads--detail .ad-slot {
  background: #ffffff;
  border: 1px dashed #d1d5db;
  min-height: 120px;
}

.category-ads--detail .ad-placeholder {
  background: #f9fafb;
  color: #6b7280;
  border-color: #d1d5db;
}

/* 列表主体 - 深色卡片 */
.category-wrapper {
  background: #1f2937;
  border-radius: 0 0 12px 12px;
  padding: 16px;
  margin-bottom: 20px;
}
.category-description p {
  margin: 0 !important;
  padding: 0;
  line-height: inherit;
}

/* 网址方块布局 */
.category-nav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.nav-item-card {
  background: #374151;
  border-radius: 8px;
  border: 1px solid #4b5563;
  overflow: hidden;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.nav-item-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  border-color: #6b7280;
}

.nav-item-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.nav-item-image {
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: #4b5563;
  position: relative;
}

.nav-item-image-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.82);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.nav-item-image:hover .nav-item-image-overlay,
.nav-item-image:focus-within .nav-item-image-overlay,
.nav-item-image-overlay:focus-within {
  opacity: 1;
  pointer-events: auto;
}

.nav-item-overlay-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s ease, opacity 0.15s ease;
  width: min(190px, 80%);
  min-width: 0;
  border: 1px solid transparent;
  cursor: pointer;
  background: transparent;
  color: inherit;
  box-sizing: border-box;
}

.nav-item-overlay-btn--detail {
  background: var(--snd-list-detail-button-background-color, transparent);
  color: var(--snd-list-detail-button-text-color, #f8fafc);
  border: 1px solid var(--snd-list-detail-button-background-color, rgba(248, 250, 252, 0.7));
}

.nav-item-overlay-btn--visit {
  background: var(--snd-list-visit-button-background-color, #22c55e);
  color: var(--snd-list-visit-button-text-color, #0f172a);
  border: 1px solid var(--snd-list-visit-button-background-color, #22c55e);
}

.nav-item-overlay-btn--preview {
  background: var(--snd-list-preview-button-background-color, rgba(15, 23, 42, 0.7));
  color: var(--snd-list-preview-button-text-color, #f8fafc);
  border: 1px solid var(--snd-list-preview-button-background-color, rgba(248, 250, 252, 0.5));
}

.nav-item-overlay-btn:hover,
.nav-item-overlay-btn:focus-visible {
  transform: translateY(-1px);
}

.nav-item-overlay-btn--preview:hover,
.nav-item-overlay-btn--preview:focus-visible {
  background: var(--snd-list-preview-button-hover-background-color, rgba(248, 250, 252, 0.95));
  color: var(--snd-list-preview-button-hover-text-color, #0f172a);
  border-color: var(--snd-list-preview-button-hover-background-color, rgba(248, 250, 252, 0.95));
}

.nav-item-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  display: block;
}

.nav-item-thumb--placeholder,
.daohang-related-nav-thumb--placeholder,
.daohang-screenshot-img--placeholder {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  background: radial-gradient(circle at 20% 20%, rgba(255,255,255,0.18), rgba(15,23,42,0.95));
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(248,250,252,0.55);
  font-size: 18px;
  font-weight: 600;
  position: relative;
}

.nav-item-thumb--placeholder::after,
.daohang-related-nav-thumb--placeholder::after,
.daohang-screenshot-img--placeholder::after {
  content: '\1F4F7';
}

.nav-item-card:hover .nav-item-thumb {
  transform: scale(1.05);
}

.nav-item-content {
  padding: 16px;
}

.nav-item-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-item-number {
  color: #9ca3af; /* 淡灰色 */
  font-weight: 500;
  font-size: 12px;
  min-width: 16px; /* 统一16px宽度 */
  height: 16px; /* 统一16px高度 */
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-item-title {
  flex: 1;
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #f3f4f6;
  line-height: 1.35;
  display: flex;
  align-items: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.nav-item-favicon {
  width: 16px;
  height: 16px;
  background: rgba(255, 255, 255, 0.08);
  color: #f3f4f6;
  font-size: 18px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-item-favicon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  display: block;
}

.nav-item-description {
  color: #9ca3af;
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.no-results {
  text-align: center;
  padding: 40px 20px;
  color: #6b7280;
  font-size: 16px;
}

/* 显示全部按钮 */
.show-all-container {
  text-align: center;
  margin-top: 20px;
}

.show-all-btn {
  display: block;
  width: 100%;
  padding: 16px 24px;
  background: transparent;
  color: #ffffff;
  text-decoration: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 500;
  transition: all 0.2s ease;
  text-align: center;
  box-sizing: border-box;
}

.show-all-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: none;
  box-shadow: none;
}



/* 主体 */
.daohang-main {
  min-height: 100vh;
}
.daohang-inner {max-width:1220px;margin:0 auto;padding:0 16px;}
.daohang-title {text-align:left;font-size:22px;margin:10px 0 10px 0;font-weight:700;}

/* 顶部标签条：nav_tag 智能滚动效果 */
.dh-tags-nav-wrapper {margin-bottom:10px;overflow:hidden;position:relative;border:1px dashed #5ca2b7;background:#c9e9f2;padding:10px 12px;border-radius:8px;}
.dh-tags-nav {display:flex;gap:8px;will-change:transform;justify-content:flex-start;}
.dh-tags-nav a {display:inline-block;padding:4px 11px;border-radius:5px;background:#ffffffcc;border:1px solid #5ca2b7;font-size:12px;color:#5ca2b7;white-space:nowrap;flex-shrink:0;}
.dh-tags-nav a:hover {background:#2563eb;color:#ffffff;border-color:#2563eb;text-decoration:none;}

/* 单个网址详情页基础样式（保持简洁） */
.daohang-single-content {max-width:800px;margin:0 auto;}
.daohang-single-button {display:inline-block;margin:16px 0 24px 0;padding:10px 22px;border-radius:999px;background:#10b981;color:#ffffff;font-size:14px;box-shadow:0 4px 12px rgba(16,185,129,0.5);}
.daohang-single-button:hover {background:#059669;text-decoration:none;color:#ffffff;}
.daohang-single-desc {font-size:15px;line-height:1.7;color:#111827;}

/* 首页瀑布流布局 */
.dh-grid {column-count:4;column-gap:16px;}
.dh-card {display:inline-block;width:100%;margin:0 0 16px 0;background:#ffffff;border-radius:18px;border:1px solid rgba(148,163,184,0.7);box-shadow:0 6px 18px rgba(15,23,42,0.16);overflow:hidden;transition:transform .12s ease,box-shadow .12s ease,border-color .12s ease;break-inside:avoid;}
.dh-card:hover {transform:translateY(-2px);box-shadow:0 12px 26px var(--card-hover-shadow, rgba(15,23,42,0.22));border-color:var(--card-color, rgba(148,163,184,0.9));}
.dh-card--ad {display:flex;align-items:center;justify-content:center;min-height:140px;padding:0;border:1px dashed rgba(148,163,184,0.8);background:linear-gradient(135deg,rgba(248,250,252,0.9),rgba(241,245,249,0.9));box-shadow:none;}
.dh-card--ad:hover {transform:none;box-shadow:none;border-color:rgba(148,163,184,0.8);}
.dh-card-ad-content {width:100%;padding:0;background:transparent;font-size:14px;line-height:1.6;color:#0f172a;}
.dh-card-ad-content :where(p,ul,ol){margin:0 0 10px 0;}
.dh-card-ad-content :where(a){color:#2563eb;}

/* 卡片头部：使用内联样式自定义颜色 */
.dh-card-header {display:flex;align-items:center;padding:8px 10px 8px 10px;color:var(--card-title-color,#ffffff);}
.dh-card-header-link {display:flex;align-items:center;gap:6px;color:inherit;text-decoration:none;width:100%;transition:opacity .12s ease;}
.dh-card-header-link:hover {opacity:0.9;}
.dh-card-header-left {display:flex;align-items:center;gap:6px;}
.dh-card-title {
  font-size: 14px;
  font-weight: 700;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  color: inherit;
}

.dh-card-title-text {
  display: inline-flex;
  align-items: center;
}

.dh-category-icon {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dh-category-icon--sprite {
  background-repeat: no-repeat;
  background-size: auto;
  image-rendering: pixelated;
}

.dh-category-icon--fallback {
  font-weight: 600;
}

/* 分类描述 */
.dh-card-desc {margin:6px 10px 4px 12px;font-size:12px;line-height:1.5;color:#6b7280;}
.dh-card-desc--list {margin:0 0 6px;padding:4px 4px 4px 0;font-size:12px;line-height:1.6;color:#6b7280;border-bottom:1px solid #f1f1f1;}

/* 卡片内网址列表 */
.dh-list {list-style:none;margin:0;padding:0 10px 0 10px;}
.dh-item {display:flex;align-items:center;font-size:13px;line-height:1.5;padding:3px 0;border-radius:0;}
.dh-item + .dh-item {border-top:1px solid #f1f1f1;}
.dh-list--clamped {max-height:var(--dh-list-max-height,360px);overflow-y:auto;padding-right:6px;scrollbar-width:thin;scrollbar-color:rgba(148,163,184,0.8) transparent;}
.dh-list--clamped::-webkit-scrollbar {width:6px;}
.dh-list--clamped::-webkit-scrollbar-track {background:transparent;}
.dh-list--clamped::-webkit-scrollbar-thumb {background:rgba(148,163,184,0.8);border-radius:999px;}
.dh-list--clamped::-webkit-scrollbar-thumb:hover {background:rgba(107,114,128,0.9);}

/* 左侧序号：圆形背景 */
.dh-num {width:20px;height:20px;font-size:10px;color:#d2d2d2;font-weight:600;display:flex;align-items:center;justify-content:center;flex-shrink:0;margin-right:5px;}

/* 主链接区 */
.dh-main-link {display:inline-flex;align-items:center;gap:6px;flex:1 1 auto;min-width:0;color:#111827;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.dh-main-link:hover {color:#2563eb;text-decoration:none;}

/* favicon */
.dh-favicon {width:16px;height:16px;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;border-radius:4px;overflow:hidden;background:#f3f4f6;margin-right:2px;}
.dh-favicon img {display:block;width:16px;height:16px;}

/* 网站名文本 */
.dh-title-text {display:inline-block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}

/* NEW / HOT / 自定义标记 */
.dh-tag {display:inline-block;padding:2px 5px;margin-left:3px;border-radius:2px;font-size:10px;line-height:1.5;vertical-align:middle;height:16px;display:inline-flex;align-items:center;color:var(--snd-tag-badge-text-color, #ffffff);font-weight:600;letter-spacing:0.4px;}
.dh-tag-new {background:#16a34a;border:1px solid #15803d;}
.dh-tag-hot {background:#ef4444;border:1px solid #dc2626;}
.dh-tag-custom {background:#1d4ed8;border:1px solid #1e3a8a;}

/* 国旗：与标签高度统一 */
.dh-flag {margin-left:4px;font-size:13px;height:16px;display:inline-flex;align-items:center;vertical-align:middle;}
.dh-flag-fa {font-size:12px;color:#ef4444;}

/* 放大镜：与标签高度统一 */
.dh-view-link {margin-left:6px;font-size:13px;flex-shrink:0;color:#9ca3af;opacity:0;transform:translateX(4px);transition:opacity .12s ease,transform .12s ease,color .12s ease;text-decoration:none;display:flex;align-items:center;height:16px;vertical-align:middle;}
.dh-view-link:hover {color:#2563eb;}
.dh-item:hover .dh-view-link {opacity:1;transform:translateX(0);}
.dh-item-detail-only .dh-view-link {opacity:1;transform:translateX(0);}


/* 空分类提示 */
.dh-empty {margin:4px 0 2px 12px;font-size:12px;color:#9ca3af;}

/* 卡片底部"显示更多"按钮 */
.dh-card-footer {margin-top:4px;padding:8px 10px 8px 10px;border-top:1px solid rgba(229,231,235,0.9);text-align:center;background:#f9fafb;}
.dh-card-more-btn {display:block;padding:6px 18px;border-radius:10px;color:#ffffff;font-size:12px;font-weight:500;transition:opacity .12s ease,transform .12s ease,box-shadow .12s ease,filter .12s ease;}
.dh-card-more-btn:hover {opacity:0.9;filter:brightness(0.95);transform:translateY(-1px);text-decoration:none;color:#ffffff;}

/* 分类页 / 列表页通用样式 */
.snd-nav-list {list-style:none;margin:0;padding:0 4px 0 4px;max-width:760px;background:#ffffff;border-radius:14px;border:1px solid rgba(148,163,184,0.5);box-shadow:0 4px 14px rgba(15,23,42,0.12);}
.snd-nav-list > li, .snd-nav-item {display:flex;align-items:center;font-size:13px;padding:4px 8px;border-bottom:1px dashed rgba(209,213,219,0.9);}
.snd-nav-list > li:last-child {border-bottom:none;}
.snd-nav-list .snd-nav-main-link {font-size:13px;color:#111827;}
.snd-nav-list .snd-nav-main-link:hover {color:#2563eb;}

/* 悬浮预览气泡 */
.dh-tooltip {position:fixed;z-index:9999;display:none;pointer-events:none;}
.dh-tooltip-inner {background:#111827;color:#f9fafb;border-radius:16px;box-shadow:0 16px 40px rgba(15,23,42,0.7);padding:10px;width:260px;max-width:80vw;}
.dh-tooltip-thumb {width:100%;height:140px;border-radius:12px;overflow:hidden;background:#020617;margin-bottom:8px;}
.dh-tooltip-thumb img {display:block;width:100%;height:100%;object-fit:cover;}
.dh-tooltip-title {font-size:14px;font-weight:700;margin-bottom:4px;}
.dh-tooltip-desc {font-size:12px;line-height:1.5;color:#e5e7eb;max-height:96px;overflow:hidden;}
@media (max-width:768px){.dh-tooltip{display:none!important;}}

/* 响应式 */
@media (max-width:1170px){.dh-grid {column-count:3;}}
@media (max-width:900px){.dh-grid {column-count:2;column-gap:16px;margin:0;}}
@media (max-width:640px){
  /* 移动端头部 */
  .daohang-header-top-inner {
    padding:0 12px;
    position:relative;
    display:flex;
    flex-direction:row;
    align-items:center;
    justify-content:space-between;
    gap:5px;
    min-height:68px;
  }
  .daohang-header-mobile-left,
  .daohang-header-mobile-right {
    position:relative;
    z-index:2;
    display:flex;
  }
  
  /* 移动端：显示菜单按钮（左侧） */
  .daohang-mobile-menu-btn {display:flex;align-items:center;justify-content:center;width:40px;height:40px;background:transparent;border:none;cursor:pointer;flex-shrink:0;transition:opacity .12s ease;}
  .daohang-mobile-menu-btn:hover {opacity:0.7;}
  .daohang-mobile-menu-btn svg {color:#374151;}
  
  /* Logo和文字：居中，上下排列 */
  .daohang-logo-wrapper {
    flex-direction:column;
    gap:4px;
    align-items:center;
    text-align:center;
    position:absolute;
    left:50%;
    transform:translateX(-50%);
    max-width:200px;
    width:auto;
    padding:0 4px;
    z-index:1;
  }
  .daohang-logo {
    font-size:18px;
    max-width:200px;
    width:100%;
    display:flex;
    align-items:center;
    justify-content:center;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
  }
  .daohang-logo a {
    max-width:200px;
    width:100%;
    justify-content:center;
  }
  .daohang-logo img {max-width:200px;}
  .daohang-slogan {font-size:13px;white-space:normal;line-height:1.7;}
  
  /* PC端搜索框隐藏 */
  .daohang-search-wrapper {display:none;}
  
  /* 移动端：显示搜索按钮（右侧） */
  .daohang-mobile-search-btn {display:flex;align-items:center;justify-content:center;background:transparent;border:none;cursor:pointer;flex-shrink:0;}
  .daohang-mobile-search-btn:hover {opacity:0.7;}
  .daohang-mobile-search-btn svg {color:#374151;}
  
  /* 移动端tag条：通栏无边框 */
  .dh-tags-nav-wrapper {margin:0 16px;overflow:hidden;position:relative;border:none;background:transparent;padding:0;}
  .dh-tags-nav {padding:5px 0;}
  
  /* 移动端列表页样式 */
  .daohang-breadcrumb {
    margin-bottom: 16px;
    padding: 10px 0;
    font-size: 13px;
  }
  
  .category-wrapper {
    padding: 10px;
    border-top: none; /* 移除移动端可能出现的白线 */
  }
  
  .category-header {
    padding: 10px;
    border-radius: 12px 12px 0 0; /* 确保移动端也正确设置圆角 */
  }
  
  .category-title {
    font-size: 22px;
    gap: 10px;
  }
  
  .category-icon {
    font-size: 20px;
    width: 28px;
    height: 28px;
  }
  
  .category-icon.default-icon {
    font-size: 12px;
  }
  
  .category-ads {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  
  .ad-slot {
    height: 80px;
  }
  
  .category-lang-selector {
    display: flex;
    align-items: center;
  }
  
  .category-title {
    font-size: 24px;
  }
  
  .category-description {
    font-size: 15px;
  }
  
  .category-nav-grid {
    grid-template-columns: 1fr 1fr; /* 移动端一行2个 */
    gap: 12px;
  }
  
  .nav-item-image {
    height: 110px;
  }
  
  .nav-item-image-overlay {
    padding: 12px;
    gap: 8px;
  }

  .nav-item-overlay-btn {
    width: min(180px, 85%);
    align-self: center;
    min-width: 0;
    padding: 3px 5px;
    font-size: 12px;
  }
  
  .nav-item-content {
    padding: 10px;
  }
  
  .nav-item-title {
    font-size: 14px;
  }
  
  .nav-item-description {
    font-size: 14px;
  }
  
  /* 多语言按钮：移动端隐藏 */
  .daohang-lang {display:none;}
  
  /* 移动端导航：隐藏 */
  .daohang-main-nav {display:none;}
  
  /* 其他移动端样式 */
  .daohang-main {padding:0;}
  .daohang-inner {padding:0 16px;}
  .daohang-title {font-size:22px;margin-bottom:10px;}
  .dh-grid {column-count:1;}
  .dh-card {border-radius:14px;}
  
  /* 移动端标签条：可滑动 */
  .dh-tags-nav-wrapper {overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch;margin:0 0 10px 0;}
  .dh-tags-nav-wrapper::-webkit-scrollbar {height:0;display:none;}
  .dh-tags-nav {display:flex;flex-wrap:nowrap;}

  /* 移动端搜索弹出层 */
  .daohang-mobile-search-overlay {position:fixed;top:0;left:0;right:0;bottom:0;background:#ffffff;z-index:1000;}
  .daohang-mobile-search-content {padding:60px 16px 20px 16px;}
  .daohang-mobile-search-form {margin-bottom:20px;}
  .daohang-mobile-search-input-wrapper {position:relative;display:flex;align-items:center;}
  .daohang-mobile-search-input {width:100%;padding:12px 50px 12px 16px;border:2px solid #e5e7eb;border-radius:12px;font-size:16px;outline:none;}
  .daohang-mobile-search-input:focus {border-color:#2563eb;}
  .daohang-mobile-search-submit {position:absolute;right:45px;top:50%;transform:translateY(-50%);border:none;background:none;color:#6b7280;padding:8px;}
  .daohang-mobile-search-close {position:absolute;right:12px;top:50%;transform:translateY(-50%);border:none;background:none;color:#ef4444;padding:8px;font-weight:600;}
  .daohang-mobile-hot-tags {padding:0 4px;}
  .hot-tags-title {font-size:14px;font-weight:600;color:#374151;margin-bottom:12px;}
  .hot-tags-list {display:flex;flex-wrap:wrap;gap:8px;}
  .hot-tag-mobile {display:inline-block;padding:8px 16px;border-radius:20px;background:#f3f4f6;color:#374151;font-size:14px;text-decoration:none;transition:all .12s ease;}
  .hot-tag-mobile:hover {background:#2563eb;color:#ffffff;}

  /* 移动端菜单弹出层 */
  .daohang-mobile-menu-overlay {position:fixed;top:70px;left:0;right:0;bottom:0;background:rgba(0,0,0,0.5);z-index:999;}

/* 兼容WordPress顶部管理条 */
body.admin-bar .daohang-mobile-menu-overlay {
  top: 102px; /* 70px + 32px WordPress admin bar */
}

/* 当页面滚动时WordPress管理条隐藏的情况 */
body.admin-bar.no-admin-bar .daohang-mobile-menu-overlay {
  top: 70px;
}

@media (max-width: 782px) {
  /* WordPress在移动端的管理条高度是46px */
  body.admin-bar .daohang-site-header {
    top: 46px;
  }
  
  body.admin-bar .daohang-mobile-menu-overlay {
    top: 116px; /* 70px + 46px WordPress admin bar on mobile */
  }
  
  /* 当页面滚动时WordPress管理条隐藏的情况 */
  body.admin-bar.no-admin-bar .daohang-site-header {
    top: 0;
  }
  
  body.admin-bar.no-admin-bar .daohang-mobile-menu-overlay {
    top: 70px;
  }
}
  .daohang-mobile-menu-content {position:relative;display:flex;height:100%;background:#ffffff;}
  .daohang-mobile-menu-left {flex:1;display:flex;flex-direction:column;background:#1f2937;color:#ffffff;}
  .daohang-mobile-menu-right {flex:1;padding:10px;display:flex;flex-direction:column;background:#e6f6ff;overflow-y:auto;}
  .daohang-mobile-nav-title {font-size:16px;font-weight:600;color:#ffffff;margin-bottom:12px;}
  .daohang-mobile-main-nav {display:flex;flex-direction:column;gap:4px;}
  .daohang-mobile-main-nav a {padding:12px 16px;border-radius:8px;color:#e5e7eb;text-decoration:none;font-size:15px;transition:background-color .12s ease;}
  .daohang-mobile-main-nav a:hover {background:#374151;color:#ffffff;}
  .daohang-mobile-lang-title {font-size:14px;color:#9ca3af;margin-bottom:8px;}
  .daohang-mobile-lang-current {display:flex;align-items:center;gap:12px;padding:12px 16px;border:none;color:#e5e7eb;width:100%;background:#000000;}
  .daohang-mobile-lang-current .lang-name {font-size:15px;color:#e5e7eb;flex:1;text-align:left;}
  .daohang-mobile-lang-current .lang-flag {margin-left:auto;font-size:18px;}
  .daohang-mobile-ad {margin-top:auto;padding:20px;}
  .ad-placeholder {padding:20px;border:1px dashed #4b5563;border-radius:8px;text-align:center;color:#6b7280;font-size:14px;}
  .daohang-mobile-categories-title {font-size:16px;font-weight:600;color:#1e40af;margin-bottom:12px;}
  .daohang-mobile-categories-list {display:flex;flex-direction:column;gap:10px;}
  .mobile-category-item {padding:5px;color:var(--snd-mobile-category-card-text-color, #1e40af);text-decoration:none;font-size:13px;transition:background-color .12s ease;background:var(--snd-mobile-category-card-background-color, #ffffff);border:1px solid var(--snd-mobile-category-card-border-color, rgba(148,163,184,0.2));}
  .mobile-category-item:hover {background:var(--snd-mobile-category-card-background-color, #ffffff);box-shadow:0 2px 8px rgba(59,130,246,0.1);}
  .mobile-category-header {display:flex;align-items:center;gap:8px;}
.mobile-category-icon {width:24px;height:24px;display:flex;align-items:center;justify-content:center;flex-shrink:0;font-size:12px;}
  .mobile-category-name {flex:1;font-weight:500;color:var(--snd-mobile-category-card-text-color, var(--mobile-category-text-color, #0f172a));}
  .mobile-category-count {background:var(--snd-mobile-category-card-border-color, #dbeafe);color:var(--snd-tag-badge-text-color, #1e40af);padding:2px 6px;border-radius:10px;font-size:11px;font-weight:600;}
  .mobile-category-sites {display:flex;gap:4px;margin-top:8px;padding-top:8px;border-top:1px solid var(--snd-mobile-category-card-border-color, #e0f2fe);}
  .mobile-site-favicon {width:16px;height:16px;display:flex;align-items:center;justify-content:center;border-radius:2px;background:#f8fafc;}
  .mobile-site-favicon img {width:14px;height:14px;display:block;}
  .daohang-mobile-menu-close {position:absolute;top:16px;right:16px;background:none;border:none;color:#6b7280;padding:8px;cursor:pointer;}
}

/* 语言切换器文字显示控制 */
.daohang-language-switcher .lang-switch span {
  opacity: 0.8;
  font-size: 12px;
}

/* 非当前语言只在悬停时显示文字 */
.daohang-language-switcher .lang-switch:not(.current) span {
  display: none;
}

.daohang-language-switcher .lang-switch:not(.current):hover span {
  display: inline;
  margin-left: 4px;
}

/* 当前语言始终显示文字 */
.daohang-language-switcher .lang-switch.current span {
  display: inline;
  margin-left: 4px;
}

/* PC端极简语言切换器样式 */
.daohang-language-simple {
  position: relative;
  display: inline-block;
}

.daohang-language-simple .current-flag {
  display: inline-block;
  font-size: 20px;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.daohang-language-simple .current-flag:hover {
  opacity: 0.7;
}

.daohang-language-simple .lang-options {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  min-width: 60px;
  margin-top: 4px;
}

.daohang-language-simple.open .lang-options {
  display: block;
}

.daohang-language-simple .lang-option {
  display: flex;
  justify-content: center;
  padding: 8px;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.daohang-language-simple .lang-option:hover {
  background: #f3f4f6;
}

.daohang-language-simple .option-flag {
  font-size: 18px;
  line-height: 1;
}
/* ===== 提交网址页（[nav_submit]） ===== */
.snd-nav-simple-input,
.snd-nav-simple-textarea,
.snd-nav-simple-select {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 15px;
  box-sizing: border-box;
}

.snd-nav-simple-textarea {
  min-height: 90px;
  resize: vertical;
}

.snd-nav-success-note {
  margin-top: 16px;
  font-size: 14px;
  color: #111827;
}

