/* 前台视觉：导航站风格 */
:root {
  --dhw-bg: #f2f4f7;
  --dhw-card: #ffffff;
  --dhw-site: #ffffff;
  --dhw-header: #ffffff;
  --dhw-tabs: #eef1f5;
  --dhw-text: #484b4f;
  --dhw-title: #303133;
  --dhw-muted: #8a9199;
  --dhw-accent: #f1404b;
  --dhw-accent-hover: #e0323d;
  --dhw-border: #e8ecf1;
  --dhw-aside: #ffffff;
  --dhw-aside-w: 178px;
  --dhw-header-h: 52px;
  --dhw-radius: 12px;
  --dhw-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  /* 顶栏 52 + 区块间距 20，完整露出两块间隙 */
  scroll-padding-top: 72px;
}
body.dhw-body {
  margin: 0;
  background: var(--dhw-bg);
  color: var(--dhw-text);
  font-family: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

.dhw-app {
  display: flex;
  align-items: flex-start;
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  padding-left: var(--dhw-aside-w);
  transition: padding-left .25s ease;
}
.dhw-body.aside-min .dhw-app {
  padding-left: var(--dhw-aside-min-w, 64px);
}

/* —— 侧栏：fixed 贴顶；高度由 JS 对齐主栏底/页脚，放不下则裁掉底部菜单 —— */
.dhw-aside {
  --dhw-aside-min-w: 64px;
  width: var(--dhw-aside-w);
  flex-shrink: 0;
  background: var(--dhw-aside);
  border-right: 1px solid var(--dhw-border);
  /* 右侧外边角与内容卡片同弧度 */
  border-top-right-radius: var(--dhw-radius);
  border-bottom-right-radius: var(--dhw-radius);
  position: fixed;
  left: 0;
  top: var(--dhw-header-h);
  height: calc(100vh - var(--dhw-header-h));
  max-height: calc(100vh - var(--dhw-header-h));
  /* 高于 banner(45)，否则 hover 子菜单会被蓝色横幅盖住 */
  z-index: 50;
  padding: 10px 0 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: width .25s ease;
}
.dhw-aside-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden; /* 高度不够时隐藏最下面的菜单 */
}
.dhw-aside-item.is-clipped {
  display: none !important; /* 整项隐藏，避免图标被拦腰切断 */
}
.dhw-body.aside-min .dhw-aside {
  width: var(--dhw-aside-min-w);
}
.dhw-aside-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 16px;
  flex-shrink: 0;
}
.dhw-aside-brand img,
.dhw-aside-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: contain;
  background: transparent;
  color: #fff;
  display: block;
  flex: 0 0 36px;
}
.dhw-aside-brand strong {
  display: block;
  font-size: 15px;
  line-height: 1.2;
}
.dhw-aside-brand span {
  display: block;
  font-size: 11px;
  color: var(--dhw-muted);
}
.dhw-aside-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: none;
  overflow: visible;
}
.dhw-aside-item {
  position: relative;
  padding: 0 10px;
  margin: 0;
}
.dhw-aside-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border-radius: 8px;
  color: #484b4f;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  cursor: pointer;
  transition: background-color .3s, color .3s;
  border: 0;
  background: transparent;
  width: 100%;
  text-align: left;
  font-family: inherit;
}
.dhw-aside-item:hover > .dhw-aside-link,
.dhw-aside-link:hover {
  background-color: rgba(220, 220, 220, 0.6);
}
.dhw-aside-item.is-active > .dhw-aside-link,
.dhw-aside-link.is-active {
  background: rgba(220, 220, 220, 0.55);
  color: var(--dhw-accent);
}
.dhw-aside-ico {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 12px;
  flex-shrink: 0;
}
.dhw-aside-link .title {
  flex: 1;
  font-size: 14px;
  font-weight: 400;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dhw-aside-count {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  height: 14px;
  padding: 0 4px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  color: #6b7280;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}
.dhw-aside-item.is-active > .dhw-aside-link .dhw-aside-count,
.dhw-aside-link.is-active .dhw-aside-count {
  background: rgba(241, 64, 75, 0.12);
  color: var(--dhw-accent);
}
.dhw-body.aside-min .dhw-aside-link {
  justify-content: center;
  padding: 8px 6px;
  gap: 0;
}
.dhw-body.aside-min .dhw-aside-link .title,
.dhw-body.aside-min .dhw-aside-link .dhw-aside-count,
.dhw-body.aside-min .dhw-aside-brand > div,
.dhw-body.aside-min .dhw-aside-collapse-text,
.dhw-body.aside-min .dhw-logo-text {
  display: none;
}
.dhw-body.aside-min .dhw-aside-item { padding: 0 8px; }
.dhw-body.aside-min .dhw-aside-brand {
  justify-content: center;
  padding: 8px 0 12px;
}
/* 折叠：顶栏只留 logo 图标 */
.dhw-body.aside-min .dhw-logo {
  gap: 0;
  margin-right: 8px;
}
.dhw-body.aside-min .dhw-logo-img {
  width: 40px;
  height: 40px;
  flex-basis: 40px;
}

/* hover 浮层：双列胶囊 */
.dhw-aside-popup {
  display: none;
  position: fixed;
  z-index: 80;
  min-width: 210px;
  max-width: 280px;
  padding: 8px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
  pointer-events: auto;
}
.dhw-aside-popup.is-show { display: block; }
.dhw-aside-popup ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.dhw-aside-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  text-align: left;
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(116, 116, 116, 0.1);
  color: #484b4f;
  font-size: 13px;
  line-height: 1.35;
  transition: background .2s, color .2s;
}
.dhw-aside-pill-text {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dhw-aside-pill-count {
  flex-shrink: 0;
  min-width: 14px;
  padding: 0 4px;
  height: 14px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  color: #6b7280;
  font-size: 10px;
  font-weight: 700;
  line-height: 14px;
  text-align: center;
}
.dhw-aside-pill:hover {
  background: rgba(220, 220, 220, 0.85);
  color: #303133;
}
.dhw-aside-pill.is-active {
  background: rgba(241, 64, 75, 0.12);
  color: var(--dhw-accent);
}
.dhw-aside-pill.is-active .dhw-aside-pill-count {
  background: rgba(241, 64, 75, 0.16);
  color: var(--dhw-accent);
}

/* 收起：与上方菜单项同结构（图标 + 文案 + 右侧总数） */
.dhw-aside-bottom {
  position: relative;
  flex-shrink: 0;
  display: flex;
  padding: 8px 10px 12px;
  margin-top: 0;
  background: var(--dhw-aside);
  z-index: 2;
}
.dhw-aside-bottom::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 80%;
  height: 1px;
  background: rgba(127, 127, 127, 0.15);
}
.dhw-aside-collapse {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 7px 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #484b4f;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color .3s, color .3s;
}
.dhw-aside-collapse:hover {
  background-color: rgba(220, 220, 220, 0.6);
}
.dhw-aside-collapse .dhw-aside-ico {
  background: #94a3b8;
  font-size: 12px;
}
.dhw-aside-collapse-text {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dhw-body.aside-min .dhw-aside-bottom {
  padding-left: 8px;
  padding-right: 8px;
}
.dhw-body.aside-min .dhw-aside-collapse {
  justify-content: center;
  padding: 8px 6px;
  gap: 0;
}
.dhw-body.aside-min .dhw-aside-collapse .dhw-aside-count {
  display: none;
}
.ico-1 { background: #f1404b; }
.ico-2 { background: #3b82f6; }
.ico-3 { background: #10b981; }
.ico-4 { background: #8b5cf6; }
.ico-5 { background: #f59e0b; }
.ico-6 { background: #06b6d4; }
.ico-7 { background: #ec4899; }
.ico-8 { background: #ef4444; }
.ico-9 { background: #22c55e; }
.ico-10 { background: #6366f1; }
.ico-11 { background: #14b8a6; }
.ico-12 { background: #64748b; }

/* —— 主区 —— */
.dhw-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* —— 顶部菜单（通栏，logo 最左上角） —— */
.dhw-header {
  position: sticky;
  top: 0;
  z-index: 70;
  width: 100%;
  flex: 0 0 auto;
  background: var(--dhw-header);
  border-bottom: 1px solid var(--dhw-border);
  box-shadow: var(--dhw-shadow);
}
.dhw-header-inner {
  width: 100%;
  min-height: var(--dhw-header-h);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px 0 15px;
  overflow: visible;
}
.dhw-header-toggle { display: none !important; }
.dhw-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: 16px;
  flex-shrink: 0;
  text-decoration: none;
  color: inherit;
  font-family: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}
.dhw-logo-img {
  width: 48px;
  height: 48px;
  border-radius: 0;
  object-fit: contain;
  display: block;
  flex: 0 0 48px;
  background: transparent;
  image-rendering: -webkit-optimize-contrast;
}
.dhw-logo-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  text-align: left;
}
.dhw-logo-divider { display: none; }
/* 对齐 xnzy .description-title / .description-subtitle */
.dhw-logo-title,
.dhw-logo-text strong {
  display: block;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.3;
  color: #1e293b;
  font-family: inherit;
}
.dhw-logo-sub,
.dhw-logo-text em {
  display: block;
  font-style: normal;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.3;
  color: #64748b;
  letter-spacing: 0;
  font-family: inherit;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: min(280px, 28vw);
}
.dhw-menu {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
  gap: 0;
  /* 不能设 overflow-x:auto，否则会裁切下拉菜单 */
  overflow: visible;
}
.dhw-menu > .dhw-menu-link,
.dhw-menu-item {
  position: relative;
  flex: 0 0 auto;
}
/* 从「传文件」起整组右对齐，贴齐右侧图标区 */
.dhw-menu > .dhw-menu-item:first-of-type {
  margin-left: auto;
}
/* 底部红色短线：hover / 当前页（高于下拉，避免被挡住） */
.dhw-menu > .dhw-menu-link::after,
.dhw-menu-item::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 20px;
  height: 4px;
  border-radius: 4px;
  background: var(--dhw-accent);
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
  z-index: 90;
}
.dhw-menu > .dhw-menu-link:hover::after,
.dhw-menu > .dhw-menu-link.is-active::after,
.dhw-menu-item:hover::after,
.dhw-menu-item.is-open::after {
  opacity: 1;
}
.dhw-menu-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 52px;
  padding: 0 12px;
  border: 0;
  background: transparent;
  color: #484b4f;
  font-size: 15px;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: color .2s;
}
/* 菜单 IconPark 图标：对齐源站 icon-lg（1em / 15px） */
.dhw-menu-link .dhw-menu-ico {
  width: 1em;
  height: 1em;
  flex: 0 0 1em;
  display: block;
  color: inherit;
}
/* 下箭头：默认朝下，hover 旋转 45° 呈「L」形（） */
.dhw-menu-link .dhw-menu-arrow {
  display: inline-block;
  font-size: 11px;
  color: #9aa1a9;
  margin-left: 2px;
  vertical-align: 0.1em;
  transition: transform .2s, color .2s;
  transform-origin: center;
}
.dhw-menu-item:hover > .dhw-menu-link .dhw-menu-arrow,
.dhw-menu-item.is-open > .dhw-menu-link .dhw-menu-arrow {
  transform: rotate(45deg);
  color: var(--dhw-accent);
}
.dhw-menu-link:hover,
.dhw-menu-item:hover > .dhw-menu-link,
.dhw-menu-item.is-open > .dhw-menu-link {
  color: var(--dhw-accent);
}
.dhw-menu-link.is-active { color: var(--dhw-accent); font-weight: 600; }
.dhw-submenu {
  position: absolute;
  /* 与红线底边贴合，不留空隙、不压住红线 */
  top: 100%;
  left: 50%;
  min-width: 132px;
  padding: 8px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
  z-index: 80;
  visibility: hidden;
  opacity: 0;
  transform: translateX(-50%) translateY(10px);
  transition: opacity .35s, transform .35s, visibility .35s;
  pointer-events: none;
}
.dhw-menu-item:hover > .dhw-submenu,
.dhw-menu-item.is-open > .dhw-submenu {
  visibility: visible;
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
.dhw-submenu a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  color: #484b4f;
  font-size: 13px;
  text-align: left;
  white-space: nowrap;
}
.dhw-submenu-ico {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  object-fit: contain;
  flex-shrink: 0;
  background: transparent;
}
.dhw-submenu a:hover {
  background: #f3f5f8;
  color: var(--dhw-accent);
}
.dhw-header-actions {
  display: flex !important;
  align-items: center;
  justify-content: flex-end;
  gap: 0;
  margin-left: auto;
  flex: 0 0 auto;
  min-width: 168px;
  z-index: 6;
}
.dhw-action-item {
  position: relative;
  flex: 0 0 auto;
}
.dhw-icon-btn {
  width: 38px;
  height: 38px;
  margin: 2px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #484b4f;
  font-size: 17px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color .15s, background .15s;
  flex: 0 0 auto;
  position: relative;
  padding: 0;
}
/* 顶栏四图标对齐源站：收藏/用户 19px iconfont，历史 IconPark SVG，搜索 CSS 形态 */
.dhw-header-actions .dhw-icon-btn .iconfont,
.dhw-favorites .dhw-icon-btn .iconfont,
.dhw-history .dhw-icon-btn .iconfont,
.dhw-login .dhw-icon-btn .iconfont {
  font-size: 19px;
  line-height: 1;
  width: 19px;
  height: 19px;
  display: block;
  color: inherit;
}
.dhw-login .dhw-icon-btn .icon-user {
  font-weight: bold;
  vertical-align: -0.06em;
}
.dhw-header-actions .dhw-ipt-ico {
  width: 19px;
  height: 19px;
  display: block;
  flex: 0 0 19px;
  font-size: 19px;
}
.dhw-icon-btn:hover,
.dhw-icon-btn[aria-expanded="true"] {
  color: var(--dhw-accent);
}
/* 搜索：完全对齐源站 .nav-search-icon（border-box + margin:auto 定位） */
.dhw-nav-search {
  position: relative;
  width: 38px;
  height: 38px;
}
.dhw-nav-search::before,
.dhw-nav-search::after {
  content: "";
  position: absolute;
  margin: auto;
  inset: 0;
  box-sizing: border-box;
}
.dhw-nav-search::before {
  width: 15px;
  height: 15px;
  border-radius: 8px;
  border: 2px solid currentColor;
  background: transparent;
  transition: .3s ease .1s;
}
.dhw-nav-search::after {
  width: 4px;
  height: 2px;
  top: 13px;
  left: 13px;
  transform: rotateZ(45deg);
  background: currentColor;
  border-radius: 2px;
  transition: .2s ease .1s;
}
.dhw-nav-search .dhw-search-bar {
  position: absolute;
  width: 0;
  height: 2px;
  margin: auto;
  inset: 0;
  background: currentColor;
  border-radius: 2px;
  transform: rotateZ(-45deg);
  transition: .2s;
  display: block;
  box-sizing: border-box;
}
.dhw-nav-search[aria-expanded="true"]::before {
  width: 2px;
  height: 2px;
  transition: .3s;
}
.dhw-nav-search[aria-expanded="true"]::after {
  width: 20px;
  top: 0;
  left: 0;
  transition: .3s;
}
.dhw-nav-search[aria-expanded="true"] .dhw-search-bar {
  width: 20px;
  transition: .3s ease .1s;
}

/* 收藏 / 历史面板（对齐源站 vivid） */
.dhw-pop-panel {
  position: fixed;
  top: 72px;
  right: 20px;
  width: 360px;
  z-index: 1200;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-40px);
  transition: opacity .3s ease, transform .3s ease, visibility 0s linear .3s;
  --hp-grad-from: #FAFFE0;
  --hp-grad-to: #DAFFE8;
  padding: 16px 12px 12px;
  background: linear-gradient(275deg, var(--hp-grad-from) 0%, var(--hp-grad-to) 100%);
  box-shadow: 0 18px 45px rgba(0, 0, 0, .14);
  border-radius: 22px;
  overflow: visible;
  color: #1f2937;
}
.dhw-pop-panel.is-show {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  transition: opacity .3s ease, transform .3s ease, visibility 0s linear 0s;
}
.dhw-pop-panel[hidden] { display: block !important; }
.dhw-panel-deco {
  position: absolute;
  top: 15px;
  right: 25px;
  width: 80px;
  height: 80px;
  object-fit: contain;
  opacity: .6;
  transform: rotate(15deg);
  pointer-events: none;
}
.dhw-panel-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 10px 0 15px;
}
.dhw-panel-header h3 {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: .02em;
  color: #1f2937;
}
.dhw-panel-clear-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  color: #4b5563;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  padding: 2px 0;
  cursor: pointer;
  opacity: 0;
  transform: translateX(-4px);
  transition: .2s;
  font-family: inherit;
}
.dhw-panel-clear-arrow {
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  transform: translateY(-0.5px);
}
.dhw-panel-clear-link:hover {
  color: #111827;
}
.dhw-pop-panel:hover .dhw-panel-clear-link {
  opacity: 1;
  transform: translateX(0);
}
.dhw-panel-shell {
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: 16px;
  padding: 12px;
  overflow: hidden;
}
.dhw-panel-body {
  max-height: 340px;
  overflow-x: hidden;
  overflow-y: auto;
}
.dhw-panel-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.dhw-panel-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 12px;
  background: #f3f5f8;
  color: inherit;
  text-decoration: none;
  transition: background .15s;
}
.dhw-panel-item:hover { background: #e9ecf1; }
.dhw-panel-item-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #d9dbe0 center/cover no-repeat;
  flex: 0 0 30px;
}
.dhw-panel-item-meta {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.dhw-panel-item-title {
  font-size: 14px;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #111827;
}
.dhw-panel-item-desc {
  font-size: 12px;
  color: #6b7280;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dhw-panel-item-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  margin-left: 4px;
}
.dhw-panel-item-star,
.dhw-panel-item-delete {
  border: 0;
  background: #fff;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  color: #9ca3af;
  cursor: pointer;
  flex: 0 0 auto;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
  transition: color .15s ease, background .15s ease;
}
.dhw-panel-item-star.is-on,
.dhw-panel-item-star:hover { color: var(--dhw-accent); }
.dhw-panel-item-delete:hover {
  color: var(--dhw-accent);
  background: #fff5f5;
}
.dhw-panel-item-delete i,
.dhw-panel-item-star i {
  line-height: 1;
  display: block;
  font-size: 14px;
}
.dhw-panel-empty {
  padding: 28px 12px;
  text-align: center;
  color: #888;
  font-size: 14px;
}
.dhw-panel-footer {
  display: none;
  margin-top: 10px;
}
.dhw-panel-clear-btn {
  width: 100%;
  border: 0;
  border-radius: 12px;
  background: #f3f4f6;
  color: #444;
  padding: 10px 12px;
  font-size: 13px;
  cursor: pointer;
}
.dhw-panel-clear-btn:hover { background: #e9ebef; color: #111; }

/* 登录下拉（对齐源站 menu-user-box） */
.dhw-login-panel {
  position: absolute;
  top: calc(100% + 6px);
  right: -8px;
  width: 294px;
  z-index: 1200;
  padding: 0;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(90deg, #4aa3f0 0%, #7ec8f8 55%, #a8dcff 100%);
  box-shadow: 0 14px 36px rgba(15, 23, 42, .18);
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: .25s;
}
.dhw-login-panel.is-show {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.dhw-login-panel[hidden] { display: block !important; }
.dhw-login-top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 16px 14px;
}
.dhw-login-avatar-wrap {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  padding: 2px;
  background: rgba(255,255,255,.85);
  box-shadow: 0 0 0 2px rgba(255,255,255,.35);
}
.dhw-login-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background: #e5e7eb;
}
.dhw-login-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: #fff;
}
.dhw-login-meta b {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
}
.dhw-login-meta span {
  font-size: 12px;
  line-height: 1.3;
  color: rgba(255,255,255,.92);
}
.dhw-login-actions {
  display: flex;
  gap: 8px;
  margin: 0 10px 10px;
  padding: 10px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(15,23,42,.06);
}
.dhw-login-btn {
  flex: 1;
  border: 0;
  border-radius: 10px;
  padding: 8px 4px;
  margin: 0;
  font-size: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: #f3f5f8;
  color: #374151;
  transition: background .15s, color .15s, box-shadow .15s;
}
.dhw-login-btn .iconfont { font-size: 14px; line-height: 1; }
.dhw-login-btn.is-blue {
  color: #2997f7;
  background: rgba(41, 151, 247, .1);
}
.dhw-login-btn.is-blue:hover {
  color: #fff;
  background: #2997f7;
  box-shadow: 0 4px 12px rgba(26, 121, 203, .35);
}
.dhw-login-btn.is-green {
  color: #19aa2c;
  background: rgba(19, 188, 41, .1);
}
.dhw-login-btn.is-green:hover {
  color: #fff;
  background: #19aa2c;
  box-shadow: 0 4px 12px rgba(19, 136, 34, .35);
}
.dhw-login-btn.is-orange {
  color: #ff6f06;
  background: rgba(255, 110, 6, .1);
}
.dhw-login-btn.is-orange:hover {
  color: #fff;
  background: #ff6f06;
  box-shadow: 0 4px 12px rgba(211, 103, 27, .35);
}

/* 搜索弹层 */
.dhw-search-modal {
  position: fixed;
  inset: 0;
  z-index: 1300;
  background: rgba(15, 23, 42, .45);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 90px 16px 24px;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: .25s;
}
.dhw-search-modal.is-show {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}
.dhw-search-modal[hidden] { display: flex !important; }
.dhw-search-modal-body {
  width: min(720px, 100%);
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 20px 50px rgba(0,0,0,.2);
}
.dhw-search-modal-form {
  display: flex;
  gap: 8px;
  align-items: center;
  background: #f3f5f8;
  border-radius: 12px;
  padding: 6px 6px 6px 14px;
}
.dhw-search-modal-form input {
  flex: 1;
  border: 0;
  background: transparent;
  outline: none;
  font-size: 16px;
  color: #111827;
  min-width: 0;
}
.dhw-search-modal-form button {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 10px;
  background: var(--dhw-accent);
  color: #fff;
  cursor: pointer;
}
.dhw-search-modal-keys { margin-top: 14px; }
.dhw-search-modal-label {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 8px;
}
.dhw-search-modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.dhw-s-key {
  border: 0;
  border-radius: 999px;
  padding: 6px 12px;
  background: #f3f5f8;
  color: #374151;
  font-size: 13px;
  cursor: pointer;
}
.dhw-s-key:hover {
  background: rgba(241, 64, 75, .1);
  color: var(--dhw-accent);
}

/* 登录弹窗（对齐源站 io_sign） */
.dhw-sign-modal {
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 23, 42, .45);
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: .25s;
}
.dhw-sign-modal.is-show {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}
.dhw-sign-modal[hidden] { display: flex !important; }
.dhw-sign-dialog {
  position: relative;
  width: min(500px, 100%);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(15,23,42,.22);
  padding: 28px 32px 26px;
}
.dhw-sign-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #6b7280;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.dhw-sign-close:hover { background: #f3f5f8; color: #111; }
.dhw-sign-pane { display: none; }
.dhw-sign-pane.is-active { display: block; }
.dhw-sign-header h3 {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 700;
  color: #2f3440;
}
.dhw-sign-header p {
  margin: 0 0 22px;
  font-size: 12px;
  color: #8a9199;
}
.dhw-sign-header a {
  color: var(--dhw-accent);
}
.dhw-sign-header a:hover { text-decoration: underline; }
.dhw-sign-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.dhw-sign-form input[type="text"],
.dhw-sign-form input[type="email"],
.dhw-sign-form input[type="password"] {
  width: 100%;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: #f3f5f8;
  padding: 0 14px;
  font-size: 14px;
  color: #111827;
  outline: none;
}
.dhw-sign-form input:focus {
  box-shadow: 0 0 0 2px rgba(241, 64, 75, .25);
}
.dhw-sign-pass {
  position: relative;
}
.dhw-sign-pass input { padding-right: 42px; }
.dhw-pass-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  color: #9ca3af;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.dhw-sign-remember {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #4b5563;
  user-select: none;
}
.dhw-sign-remember input {
  width: 16px;
  height: 16px;
  accent-color: #2997f7;
}
.dhw-sign-submit {
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #f1404b, #ff6b74);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(241, 64, 75, .28);
}
.dhw-sign-submit:hover { filter: brightness(1.03); }

.dhw-aside-brand-mobile { display: none; }

/* —— 顶部横幅：蓝底文案 + 右侧机器人；overflow 放开以免裁切引擎下拉 —— */
.dhw-banner {
  position: relative;
  z-index: 45;
  margin: 14px 16px 0;
  border-radius: 12px;
  overflow: visible;
  min-height: 210px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 34px;
}
.dhw-banner-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  overflow: hidden;
  background-color: #9ecff5;
  background-image:
    linear-gradient(180deg, rgba(40, 100, 160, 0.22) 0%, rgba(50, 120, 180, 0.1) 55%, rgba(40, 100, 160, 0.16) 100%),
    url("../images/brand/nav-banner-v15.webp");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  pointer-events: none;
}
.dhw-banner-bg::before,
.dhw-banner-bg::after {
  content: none;
  display: none;
}
.dhw-search-stack {
  position: relative;
  z-index: 40;
  width: min(720px, calc(100% - 48px));
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 18px;
}
.dhw-banner-title {
  margin: 0 0 2px;
  padding: 0;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 3px;
  line-height: 1.3;
  color: #fff;
  text-align: center;
  text-shadow: 0 4px 22px rgba(8, 40, 90, .45), 0 2px 6px rgba(0, 30, 70, .28);
  font-family: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  /* 相对搜索框略上移 */
  transform: translateY(-10px);
}
.dhw-search {
  width: 100%;
  position: relative;
  margin: 0;
  z-index: 40;
}
.dhw-search-box {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 30px rgba(15, 23, 42, .12);
  padding: 6px 6px 6px 10px;
  min-height: 52px;
  overflow: visible;
}
.dhw-engine-wrap {
  position: relative;
  flex: 0 0 auto;
  border-right: 1px solid #e5e7eb;
  padding-right: 4px;
  margin-right: 2px;
}
.dhw-engine-sel {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 8px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #64748b;
  font-size: 13px;
  font-weight: 500;
  font-family: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  cursor: pointer;
  white-space: nowrap;
}
.dhw-engine-sel:hover { background: #f1f5f9; }
.dhw-engine-name {
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
}
.dhw-engine-ico {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  object-fit: contain;
  display: block;
  background: #f0f4f8;
}
.dhw-engine-caret {
  font-size: 10px;
  color: #94a3b8;
  transform: scaleY(.85);
}
/* 对齐 xnzy .search-dropdown：实底盖住下方内容，避免重影 */
.dhw-engine-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  width: auto;
  min-width: 0;
  padding: 16px;
  border-radius: 8px;
  background-color: #ffffff !important;
  background-image: none !important;
  border: 1px solid #e2e8f0;
  box-shadow: 0 12px 32px rgba(15, 23, 42, .22);
  z-index: 200;
  box-sizing: border-box;
  opacity: 1 !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  -webkit-font-smoothing: antialiased;
  font-family: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}
.dhw-engine-menu[hidden] { display: none !important; }
.dhw-engine-menu-title {
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
  margin: 0 0 12px;
  font-family: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}
.dhw-engine-menu-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.dhw-engine-opt {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1 1 calc(25% - 6px);
  min-width: 96px;
  max-width: 100%;
  box-sizing: border-box;
  border: 1px solid transparent;
  background: #f8fafc;
  border-radius: 5px;
  padding: 3px;
  font-size: 13px;
  font-weight: 500;
  color: #1e293b;
  cursor: pointer;
  font-family: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  text-align: left;
  transition: background .2s, border-color .2s;
}
.dhw-engine-opt-ico {
  width: 25px;
  height: 25px;
  border-radius: 5px;
  object-fit: contain;
  flex: 0 0 25px;
  margin-right: 10px;
  background: transparent;
  display: block;
}
.dhw-engine-opt-text {
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  line-height: 1.2;
}
.dhw-engine-opt:hover {
  background: #f1f5f9;
  border-color: #e2e8f0;
}
.dhw-engine-opt.is-active {
  background: linear-gradient(135deg, rgba(102, 126, 234, .1), rgba(118, 75, 162, .1));
  border-color: #2563eb;
}
.dhw-engine-opt.is-active .dhw-engine-opt-ico {
  border: 2px solid #2563eb;
  box-sizing: border-box;
}
.dhw-search-input-wrap {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
}
.dhw-search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  height: 40px;
  padding: 0 32px 0 8px;
  font-size: 15px;
  font-family: inherit;
  color: var(--dhw-text);
  background: transparent;
}
.dhw-search-clear {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  background: rgba(148, 163, 184, .85);
  color: #fff;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.dhw-search-clear[hidden] { display: none !important; }
.dhw-search-submit {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 10px;
  background: #eef2f7;
  color: #334155;
  cursor: pointer;
  font-size: 16px;
  flex: 0 0 42px;
}
.dhw-search-submit:hover { background: #e2e8f0; }
/* 本站搜索结果：对齐 xnzy，作为内容区分类卡片，非搜索框下浮层 */
.dhw-local-results {
  background: var(--dhw-card);
  border-radius: var(--dhw-radius);
  box-shadow: var(--dhw-shadow);
  padding: 12px;
}
.dhw-local-results[hidden] { display: none !important; }
.dhw-local-results-head {
  font-size: 18px;
  font-weight: 600;
  color: #1e293b;
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}
.dhw-local-results-head #dhw-local-results-count,
.dhw-local-results-head span + span {
  color: #2563eb;
  margin-left: 4px;
  font-weight: 700;
}
.dhw-local-results-grid {
  /* 复用 .dhw-sites 网格；去掉滚动条限制 */
  max-height: none;
  overflow: visible;
}
.dhw-local-hit {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--dhw-border);
  text-decoration: none;
  color: inherit;
  background: var(--dhw-site);
  min-width: 0;
  min-height: 52px;
  transition: border-color .2s, box-shadow .2s;
}
.dhw-local-hit:hover {
  border-color: var(--dhw-hover-border, var(--dhw-accent));
  box-shadow: 0 8px 18px var(--dhw-hover-shadow, rgba(241, 64, 75, 0.08));
}
.dhw-local-hit img,
.dhw-local-hit .dhw-site-logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: contain;
  flex: 0 0 32px;
  background: #f8fafc;
}
.dhw-local-hit .dhw-site-meta,
.dhw-local-hit > span {
  min-width: 0;
  flex: 1 1 auto;
}
.dhw-local-hit strong,
.dhw-local-hit .dhw-site-title {
  display: block;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.25;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}
.dhw-local-hit em,
.dhw-local-hit .dhw-site-desc {
  display: block;
  font-style: normal;
  font-size: 12px;
  color: #64748b;
  margin-top: 2px;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dhw-local-empty {
  padding: 18px 8px;
  color: #64748b;
  font-size: 14px;
}
.dhw-pane-more {
  margin: 16px 0 4px;
  text-align: center;
  font-size: 13px;
  color: var(--dhw-muted, #8b93a1);
  min-height: 1.2em;
}
.dhw-pane-more-actions {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}
.dhw-pane-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 112px;
  height: 34px;
  padding: 0 18px;
  border: 1px solid var(--dhw-border, #e5e7eb);
  border-radius: 999px;
  background: var(--dhw-site, #fff);
  color: var(--dhw-text, #334155);
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}
.dhw-pane-more-btn i {
  font-size: 12px;
  line-height: 1;
}
.dhw-pane-more-btn:hover:not(:disabled) {
  border-color: var(--dhw-accent, #4f6ef7);
  color: var(--dhw-accent, #4f6ef7);
}
.dhw-pane-more-all {
  /* 与「加载更多」同级默认样式，避免看起来像已选中 */
  border-color: var(--dhw-border, #e5e7eb);
  color: var(--dhw-text, #334155);
  background: var(--dhw-site, #fff);
}
.dhw-pane-more-all:hover:not(:disabled) {
  border-color: var(--dhw-accent, #4f6ef7);
  color: var(--dhw-accent, #4f6ef7);
  background: var(--dhw-site, #fff);
}
.dhw-pane-more-btn:disabled {
  opacity: 0.65;
  cursor: wait;
}
.dhw-pane-more-done {
  display: inline-block;
  padding: 6px 0;
  color: var(--dhw-muted, #8b93a1);
  font-size: 12px;
}
body.dhw-dark .dhw-tab-count,
body.dhw-dark .dhw-aside-count,
body.dhw-dark .dhw-aside-pill-count {
  background: rgba(255, 255, 255, 0.12);
  color: #c5cad3;
}
body.dhw-dark .dhw-tab.is-active .dhw-tab-count {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}
body.dhw-dark .dhw-pane-more-btn {
  background: var(--dhw-site, #2d2e2f);
  border-color: var(--dhw-border, rgba(255,255,255,0.08));
  color: var(--dhw-text, #b4b8bf);
}

.dhw-local-results-more {
  margin-top: 12px;
  padding: 10px 0 4px;
  text-align: center;
  font-size: 13px;
  color: #94a3b8;
  min-height: 20px;
}
.dhw-local-results-more.is-loading {
  color: #64748b;
}
.dhw-content.is-searching > .dhw-card:not(.dhw-local-results) { display: none; }

/* —— 内容卡片 —— */
.dhw-content {
  position: relative;
  z-index: 1;
  /* 底边贴齐页脚，不留多余灰边 */
  padding: 14px 16px 0;
  display: grid;
  gap: 20px;
}
.dhw-card {
  background: var(--dhw-card);
  border-radius: var(--dhw-radius);
  padding: 12px;
  box-shadow: var(--dhw-shadow);
  scroll-margin-top: 72px;
}
[id^="cat-"] {
  scroll-margin-top: 72px;
}
/* 子分类 pane 不单独吃锚点偏移，统一滚到所属卡片 */
.dhw-pane[id],
[id^="term-"] {
  scroll-margin-top: 0;
}
.dhw-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.dhw-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}
.dhw-card-title i { color: var(--dhw-accent); }
.dhw-card-title .count {
  font-size: 12px;
  font-weight: 500;
  color: var(--dhw-muted);
}
.dhw-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  margin-bottom: 12px;
  padding: 4px;
  border-radius: 10px;
  background: var(--dhw-tabs);
  scrollbar-width: none;
}
.dhw-tabs::-webkit-scrollbar { display: none; }
.dhw-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  border: 0;
  height: 28px;
  line-height: 28px;
  padding: 0 10px 0 12px;
  border-radius: 8px;
  background: transparent;
  color: var(--dhw-muted);
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: background .2s, color .2s;
}
.dhw-tab-label { line-height: 1; }
.dhw-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  height: 14px;
  padding: 0 4px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  color: #6b7280;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}
.dhw-tab:not(.is-active):hover {
  background: var(--dhw-site);
  color: var(--dhw-text);
}
.dhw-tab.is-active {
  background: var(--dhw-accent);
  color: #fff;
}
.dhw-tab.is-active .dhw-tab-count {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}
.dhw-pane { display: none; }
.dhw-pane.is-active { display: block; }

/* 手机固定 2 列（col-6），再随宽度升到 3/4/5 列 */
.dhw-sites {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
}
@media (min-width: 768px) {
  .dhw-sites { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  .dhw-sites { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1400px) {
  .dhw-sites { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

.dhw-site {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--dhw-border);
  background: var(--dhw-site);
  min-width: 0;
  min-height: 52px;
  /* 勿常驻 3D transform：会提升合成层，压住 fixed 搜索引擎下拉导致重影 */
  transition: border-color .2s, box-shadow .2s;
  z-index: 1;
}
.dhw-site-glow {
  position: absolute;
  inset: 0;
  opacity: 0;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  mask-image: linear-gradient(90deg, #000, rgba(0,0,0,.72) 38%, transparent 70%);
  -webkit-mask-image: linear-gradient(90deg, #000, rgba(0,0,0,.72) 38%, transparent 70%);
  transition: opacity .22s;
}
.dhw-site-glow::before {
  content: "";
  position: absolute;
  left: -48px;
  top: 50%;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background-image: var(--dhw-glow-bg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  filter: blur(28px) saturate(1.65);
  opacity: .62;
  transform: translateY(-50%);
}
.dhw-site:hover {
  border-color: var(--dhw-hover-border, var(--dhw-accent));
  box-shadow: 0 8px 18px var(--dhw-hover-shadow, rgba(241, 64, 75, 0.08));
  z-index: 8;
}
.dhw-site:hover .dhw-site-glow { opacity: .68; }
.dhw-site-logo {
  position: relative;
  z-index: 1;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: contain;
  background: transparent;
  flex-shrink: 0;
  overflow: hidden;
}
.dhw-site-meta {
  position: relative;
  z-index: 1;
  min-width: 0;
  flex: 1;
}
.dhw-site-title {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--dhw-title);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color .2s;
}
.dhw-site-desc {
  margin-top: 1px;
  font-size: 12px;
  line-height: 1.25;
  color: var(--dhw-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* URL 气泡挂到 body：水平固定；三角用独立元素 */
.dhw-tip {
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  margin: 0;
  padding: 6px 10px;
  border-radius: 4px;
  background: #303133;
  color: #fff;
  font-size: 12px;
  line-height: 1.35;
  white-space: nowrap;
  max-width: min(320px, 92vw);
  overflow: visible;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transform: translate3d(-9999px, -9999px, 0);
  will-change: transform, opacity;
}
.dhw-tip.is-show {
  opacity: 1;
  visibility: visible;
}
.dhw-tip-text {
  display: block;
  max-width: min(300px, 88vw);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dhw-tip-arrow {
  position: absolute;
  width: 0;
  height: 0;
  pointer-events: none;
}
.dhw-tip-url .dhw-tip-arrow {
  left: 50%;
  top: -6px;
  margin-left: -6px;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 6px solid #303133;
}

/* —— 页脚（对齐 xnzy.top/nav：全宽 + 动态波浪） —— */
.dhw-footer-wrap {
  width: 100%;
  margin-top: 0;
  flex: 0 0 auto;
  position: relative;
  /* 高于侧栏(50)，波浪盖住左侧菜单底与右侧卡片底 */
  z-index: 60;
}
.dhw-wave-container {
  position: relative;
  width: 100%;
  height: 36px;
  /* 波浪最高处略微盖住卡片/侧栏底边 */
  margin-top: -14px;
  margin-bottom: 0;
  min-height: 36px;
  overflow: hidden;
  line-height: 0;
  z-index: 1;
  pointer-events: none;
}
.dhw-waves {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  bottom: 0;
  z-index: 2;
}
.dhw-parallax > use {
  animation: dhw-wave-animation 25s cubic-bezier(.55, .5, .45, .5) infinite;
}
.dhw-parallax > use:first-child {
  animation-delay: -2s;
  animation-duration: 7s;
}
.dhw-parallax > use:nth-child(2) {
  animation-delay: -3s;
  animation-duration: 10s;
}
.dhw-parallax > use:nth-child(3) {
  animation-delay: -4s;
  animation-duration: 13s;
}
.dhw-parallax > use:nth-child(4) {
  animation-delay: -5s;
  animation-duration: 20s;
}
@keyframes dhw-wave-animation {
  0% { transform: translate3d(-90px, 0, 0); }
  100% { transform: translate3d(85px, 0, 0); }
}
.dhw-site-footer {
  background-color: #3d4557;
  padding: 10px 16px 12px;
  color: #94a3b8;
  border-top: 0;
  margin-top: 0;
  width: 100%;
  box-sizing: border-box;
}
.dhw-footer-inner {
  max-width: 1300px;
  margin: 0 auto 8px;
}
.dhw-footer-links-section { margin-bottom: 10px; }
.dhw-footer-links-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: #cbd5e1;
  margin-bottom: 8px;
  text-align: left;
}
.dhw-footer-link-apply {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 12px;
}
.dhw-footer-link-apply:hover { color: #fff; }
.dhw-footer-links-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 4px;
  padding: 8px 12px;
  background-color: #1e293b;
  border-radius: 4px;
  border: 1px solid #334155;
}
.dhw-footer-link {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 12px;
  transition: color .3s ease;
}
.dhw-footer-link:hover { color: #fff; }
.dhw-footer-bottom {
  border-top: 1px solid #334155;
  padding-top: 10px;
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.dhw-footer-nav { text-align: left; }
.dhw-footer-nav-link {
  color: #94a3b8;
  text-decoration: none;
  margin: 0 4px;
}
.dhw-footer-nav-link:first-child { margin-left: 0; }
.dhw-footer-nav-link:hover { color: #cbd5e1; }
.dhw-footer-copyright {
  color: #94a3b8;
  text-align: right;
  margin-left: auto;
}
body.dhw-hide-footer .dhw-footer-wrap { display: none !important; }
body.dhw-no-animations .dhw-parallax > use {
  animation: none !important;
}
body.dhw-hide-header .dhw-header { display: none !important; }
body.dhw-hide-menu .dhw-menu { display: none !important; }
body.dhw-hide-banner .dhw-banner { display: none !important; }

/* —— 右侧工具条（右侧工具条） —— */
.dhw-footer-tools {
  position: fixed;
  right: 10px;
  bottom: 100px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 40px;
  gap: 0;
}
.dhw-btn-tool {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 4px 0;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: rgba(220, 220, 220, 0.6);
  color: #66686b;
  font-size: 16px;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
  box-shadow: none;
  font-family: inherit;
}
.dhw-btn-tool:hover {
  color: #fff;
  text-decoration: none;
}
.dhw-btn-tool.dhw-go-up:hover { background: #ff9800; }
.dhw-btn-tool#dhw-tool-qq:hover { background: #12b7f5; }
.dhw-btn-tool#dhw-switch-dark:hover { background: #6366f1; }
.dhw-btn-tool#dhw-settings-trigger:hover { background: #f1404b; }
.dhw-btn-tool#dhw-tool-qr:hover { background: #22c55e; }
.dhw-btn-tool#dhw-tool-plus:hover { background: #f59e0b; }
.dhw-btn-tool i {
  font-size: 16px;
  line-height: 16px;
  width: 16px;
  text-align: center;
}
.dhw-btn-tool#dhw-settings-trigger:hover i {
  transform: rotate(90deg);
  transition: transform .3s ease;
}
.dhw-btn-tool.dhw-go-up[hidden] { display: none !important; }
.dhw-btn-tool.dhw-go-up .dhw-go-up-ico {
  display: block;
  width: 18px;
  height: 18px;
}
/* 二维码悬停弹层（对齐 rank .erweima） */
.dhw-qr-pop {
  position: absolute;
  right: 50px;
  bottom: 52px;
  z-index: 92;
  width: 132px;
  padding: 8px 8px 6px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 0 18px rgba(0, 0, 0, 0.22);
  text-align: center;
  color: #666;
}
.dhw-qr-pop[hidden] { display: none !important; }
.dhw-qr-pop img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
}
.dhw-qr-pop p {
  margin: 6px 0 2px;
  font-size: 13px;
  line-height: 1.3;
}
.dhw-dark .dhw-qr-pop {
  background: #2d2e2f;
  color: #cbd5e1;
  box-shadow: 0 0 18px rgba(0, 0, 0, 0.45);
}
.dhw-dark .dhw-btn-tool {
  background: rgba(80, 84, 92, 0.65);
  color: #cbd5e1;
}
.dhw-dark .dhw-btn-tool:hover { color: #fff; }
.dhw-dark .dhw-btn-tool.dhw-go-up:hover { background: #ff9800; }
.dhw-dark .dhw-btn-tool#dhw-tool-qq:hover { background: #12b7f5; }
.dhw-dark .dhw-btn-tool#dhw-switch-dark:hover { background: #6366f1; }
.dhw-dark .dhw-btn-tool#dhw-settings-trigger:hover { background: #f1404b; }
.dhw-dark .dhw-btn-tool#dhw-tool-qr:hover { background: #22c55e; }
.dhw-dark .dhw-btn-tool#dhw-tool-plus:hover { background: #f59e0b; }

/* —— 黑夜模式整体（黑夜模式） —— */
body.dhw-dark .dhw-banner-bg {
  background-image:
    linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.35) 50%, rgba(0, 0, 0, 0.5) 100%),
    url("../images/brand/nav-banner-v15.webp");
}
body.dhw-dark .dhw-search-box {
  background: rgba(45, 46, 47, 0.92);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}
body.dhw-dark .dhw-engine-wrap { border-right-color: rgba(255, 255, 255, 0.1); }
body.dhw-dark .dhw-engine-sel { color: #cbd5e1; }
body.dhw-dark .dhw-engine-sel:hover { background: rgba(255, 255, 255, 0.06); }
body.dhw-dark .dhw-search-input {
  color: #e8eaed;
  background: transparent;
}
body.dhw-dark .dhw-search-input::placeholder { color: #8b919a; }
body.dhw-dark .dhw-search-submit {
  background: rgba(255, 255, 255, 0.08);
  color: #e8eaed;
}
body.dhw-dark .dhw-search-submit:hover { background: rgba(255, 255, 255, 0.14); }
body.dhw-dark .dhw-engine-menu,
body.dhw-dark .dhw-aside-popup,
body.dhw-dark .dhw-panel-shell,
body.dhw-dark .dhw-pop-panel .dhw-panel-shell {
  background: #2d2e2f;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
}
body.dhw-dark .dhw-panel-item {
  background: #252628;
  color: #e8eaed;
}
body.dhw-dark .dhw-panel-item:hover { background: #343637; }
body.dhw-dark .dhw-panel-item-title { color: #e8eaed; }
body.dhw-dark .dhw-panel-item-desc { color: #9ca3af; }
body.dhw-dark .dhw-panel-item-star,
body.dhw-dark .dhw-panel-item-delete {
  background: #343637;
  color: #9ca3af;
  box-shadow: none;
}
body.dhw-dark .dhw-panel-clear-link:hover { color: #e8eaed; }
body.dhw-dark .dhw-aside-pill {
  background: rgba(255, 255, 255, 0.06);
  color: #b4b8bf;
}
body.dhw-dark .dhw-aside-pill:hover {
  background: rgba(241, 64, 75, 0.16);
  color: #fff;
}
body.dhw-dark .dhw-menu-link { color: #b4b8bf; }
body.dhw-dark .dhw-menu-link:hover,
body.dhw-dark .dhw-menu-link.is-active { color: var(--dhw-accent); }
body.dhw-dark .dhw-submenu {
  background: #2d2e2f;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}
body.dhw-dark .dhw-submenu a { color: #e8eaed; }
body.dhw-dark .dhw-submenu a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--dhw-accent);
}
body.dhw-dark .dhw-submenu-fa {
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
}
body.dhw-dark .dhw-logo-text strong,
body.dhw-dark .dhw-logo-title { color: #e8eaed; }
body.dhw-dark .dhw-logo-sub,
body.dhw-dark .dhw-logo-text em { color: #9ca3af; }
body.dhw-dark .dhw-card-title { color: #e8eaed; }
body.dhw-dark .dhw-local-results-head { color: #e8eaed; }
body.dhw-dark .dhw-site:hover {
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
}
body.dhw-dark .dhw-footer-wrap {
  background: #1b1d1f;
  color: #9ca3af;
}
body.dhw-dark .dhw-footer-link,
body.dhw-dark .dhw-footer-nav-link { color: #9ca3af; }
body.dhw-dark .dhw-footer-link:hover,
body.dhw-dark .dhw-footer-nav-link:hover { color: #e8eaed; }
.dhw-settings-mask {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .28);
  z-index: 95;
}
.dhw-settings-mask[hidden] { display: none !important; }
.dhw-settings-panel {
  position: fixed;
  right: -420px;
  top: 0;
  width: min(400px, 100vw);
  height: 100vh;
  background: #fff;
  box-shadow: -2px 0 20px rgba(0, 0, 0, .15);
  transition: right .3s ease;
  z-index: 100;
  display: flex;
  flex-direction: column;
}
.dhw-settings-panel.is-open { right: 0; }
.dhw-settings-header {
  background: #fff;
  color: #1e293b;
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--dhw-border);
  box-shadow: 0 1px 2px rgba(0,0,0,.05);
}
.dhw-settings-header h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
}
.dhw-settings-close {
  background: transparent;
  border: 1px solid var(--dhw-border);
  color: #64748b;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s ease;
}
.dhw-settings-close:hover {
  color: #2563eb;
  border-color: #2563eb;
  transform: rotate(90deg);
}
.dhw-settings-body {
  display: flex;
  flex: 1;
  overflow: hidden;
  min-height: 0;
}
.dhw-settings-tabs {
  width: 110px;
  flex-shrink: 0;
  background: #fafbfc;
  border-right: 1px solid var(--dhw-border);
  padding: 8px 0;
  overflow-y: auto;
  scrollbar-width: none;
}
.dhw-settings-tabs::-webkit-scrollbar { display: none; }
.dhw-settings-tab {
  display: block;
  width: 100%;
  padding: 14px 10px;
  font-size: 14px;
  color: #64748b;
  cursor: pointer;
  border: 0;
  border-left: 4px solid transparent;
  background: transparent;
  text-align: center;
  word-break: keep-all;
  transition: all .2s ease;
}
.dhw-settings-tab:hover { background: #f1f5f9; color: #1e293b; }
.dhw-settings-tab.is-active {
  background: #fff;
  color: #2563eb;
  border-left-color: #2563eb;
  font-weight: 500;
  box-shadow: 0 1px 2px rgba(0,0,0,.05);
}
.dhw-settings-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  min-width: 0;
  scrollbar-width: thin;
}
.dhw-settings-pane {
  display: none;
  padding: 24px;
  animation: dhwSettingsFade .28s ease;
}
.dhw-settings-pane.is-active { display: block; }
@keyframes dhwSettingsFade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
.dhw-settings-pane h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 500;
  color: #1e293b;
}
.dhw-settings-desc {
  margin: 0 0 18px;
  font-size: 13.5px;
  color: #94a3b8;
  line-height: 1.6;
  background: #f8fafc;
  padding: 10px 12px;
  border-radius: 6px;
  border-left: 3px solid #2563eb;
}
.dhw-setting-section {
  margin-bottom: 18px;
  padding-bottom: 6px;
  border-bottom: 1px solid #f0f2f5;
}
.dhw-setting-section-title {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #64748b;
  margin-bottom: 12px;
}
.dhw-setting-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid #f0f2f5;
}
.dhw-setting-item:last-child { border-bottom: none; }
.dhw-setting-item.full-width {
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}
.dhw-setting-label {
  flex: 1;
  font-size: 13.5px;
  color: #1e293b;
}
.dhw-setting-label b { font-weight: 600; color: #2563eb; }
.dhw-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}
.dhw-switch input { opacity: 0; width: 0; height: 0; }
.dhw-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #ccc;
  transition: .3s;
  border-radius: 24px;
}
.dhw-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: #fff;
  transition: .3s;
  border-radius: 50%;
}
.dhw-switch input:checked + .dhw-slider { background-color: #2563eb; }
.dhw-switch input:checked + .dhw-slider:before { transform: translateX(20px); }
.dhw-range-input {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: #e2e8f0;
  outline: 0;
  -webkit-appearance: none;
  appearance: none;
}
.dhw-range-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #2563eb;
  cursor: pointer;
}
.dhw-text-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--dhw-border);
  border-radius: 6px;
  font-size: 14px;
}
.dhw-text-input:focus {
  outline: 0;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}
.dhw-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border: 1px solid var(--dhw-border);
  border-radius: 6px;
  background: #fff;
  color: #1e293b;
  font-size: 13px;
  cursor: pointer;
  transition: .2s;
}
.dhw-btn-secondary:hover {
  border-color: #2563eb;
  color: #2563eb;
  background: #f8fafc;
}
.dhw-fav-actions { flex-direction: row !important; flex-wrap: wrap; }
.dhw-background-presets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.dhw-preset-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 8px;
  background: #fff;
  border: 2px solid var(--dhw-border);
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  color: #1e293b;
  transition: .2s;
}
.dhw-preset-btn:hover,
.dhw-preset-btn.is-active {
  border-color: #2563eb;
  background: rgba(37, 99, 235, .05);
  color: #2563eb;
}
.dhw-category-toggles {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}
.dhw-category-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--dhw-border);
  border-radius: 4px;
  cursor: grab;
  user-select: none;
}
.dhw-category-toggle .dhw-cat-name {
  flex: 1;
  font-size: 13.5px;
  color: #1e293b;
  text-align: left;
}
.dhw-category-toggle .dhw-drag-handle {
  color: #94a3b8;
  cursor: grab;
  font-size: 14px;
}
.dhw-engine-settings-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.dhw-engine-set-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--dhw-border);
  border-radius: 6px;
  background: #fff;
}
.dhw-engine-set-item img {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  object-fit: contain;
}
.dhw-engine-set-item span {
  flex: 1;
  font-size: 13px;
  color: #1e293b;
}
.dhw-settings-fav-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 240px;
  overflow: auto;
}
.dhw-settings-fav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--dhw-border);
  border-radius: 6px;
  font-size: 13px;
}
.dhw-settings-fav-item a {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #2563eb;
}
.dhw-settings-fav-empty {
  color: #94a3b8;
  font-size: 13px;
  padding: 8px 0;
}
.dhw-about-container { display: flex; flex-direction: column; gap: 24px; padding: 8px 0; }
.dhw-about-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  padding: 20px;
  background: #fff;
  border-radius: 8px;
  border: 1px solid var(--dhw-border);
}
.dhw-about-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 10px solid #fff;
  box-shadow: 0 0 10px rgba(0,0,0,.1);
  object-fit: cover;
  transform: rotate(20deg);
}
.dhw-about-title { margin: 0; font-size: 20px; font-weight: 600; color: #1e293b; }
.dhw-about-description {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: #64748b;
  max-width: 280px;
}
.dhw-about-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.dhw-about-link-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 8px;
  background: #fff;
  border: 1px solid var(--dhw-border);
  border-radius: 4px;
  font-size: 13px;
  color: #1e293b;
  transition: .2s;
}
.dhw-about-link-btn:hover {
  border-color: #2563eb;
  background: rgba(37, 99, 235, .05);
}
.dhw-faq-item {
  border: 1px solid var(--dhw-border);
  border-radius: 8px;
  margin-bottom: 12px;
  overflow: hidden;
  background: #fff;
}
.dhw-faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  cursor: pointer;
  user-select: none;
  gap: 10px;
}
.dhw-faq-question h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  color: #1e293b;
  flex: 1;
}
.dhw-faq-toggle {
  font-size: 18px;
  font-weight: 700;
  color: #2563eb;
  min-width: 20px;
  text-align: center;
  transition: transform .3s;
}
.dhw-faq-item.is-open .dhw-faq-toggle { transform: rotate(45deg); }
.dhw-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
  background: #f8fafc;
}
.dhw-faq-item.is-open .dhw-faq-answer { max-height: 220px; }
.dhw-faq-answer p {
  margin: 0;
  padding: 12px 16px 16px;
  line-height: 1.6;
  color: #64748b;
  font-size: 13px;
}
.dhw-faq-answer a { color: #2563eb; }

@media (max-width: 767px) {
  .dhw-footer-bottom { flex-direction: column; align-items: flex-start; }
  .dhw-footer-copyright { text-align: left; margin-left: 0; }
  .dhw-settings-tabs { width: 88px; }
  .dhw-settings-pane { padding: 16px; }
}

/* 链接卡片自定义（由设置写入 CSS 变量） */
.dhw-sites.dhw-sites-custom {
  gap: var(--dhw-site-gap, 8px) !important;
  grid-template-columns: repeat(var(--dhw-site-cols, 5), minmax(0, 1fr)) !important;
}
.dhw-sites.dhw-sites-custom .dhw-site {
  padding: var(--dhw-site-pad, 8px) 10px !important;
  border-radius: var(--dhw-site-radius, 10px) !important;
}
.dhw-sites.dhw-sites-custom .dhw-site-logo {
  width: var(--dhw-site-icon, 32px) !important;
  height: var(--dhw-site-icon, 32px) !important;
}
.dhw-sites.dhw-sites-custom .dhw-site-title {
  font-size: var(--dhw-site-font, 13px) !important;
}
body.dhw-hide-site-icons .dhw-site-logo { display: none !important; }
body.dhw-hide-site-shadow .dhw-site { box-shadow: none !important; }
body.dhw-hide-site-shadow .dhw-site:hover { box-shadow: none !important; }
body.dhw-no-animations *,
body.dhw-no-animations *::before,
body.dhw-no-animations *::after {
  animation-duration: 0s !important;
  transition-duration: 0s !important;
}
body.dhw-no-smooth { scroll-behavior: auto; }
html.dhw-no-smooth { scroll-behavior: auto; }
.dhw-site.is-user-hidden { display: none !important; }
.dhw-card.is-user-hidden { display: none !important; }

/* 站点卡片右键菜单 */
.dhw-site-ctx {
  position: fixed;
  z-index: 12000;
  width: max-content;
  min-width: 0;
  padding: 4px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid rgba(148, 163, 184, 0.28);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.14);
}
.dhw-site-ctx[hidden] { display: none !important; }
.dhw-site-ctx-item {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 6px 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #334155;
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
  white-space: nowrap;
}
.dhw-site-ctx-item:hover {
  background: rgba(241, 64, 75, 0.08);
  color: var(--dhw-accent);
}
.dhw-site-ctx-item i {
  width: 16px;
  text-align: center;
  color: #f59e0b;
}
.dhw-site-ctx-item[data-act="hide"] i { color: #64748b; }
.dhw-dark .dhw-site-ctx {
  background: #1c1f26;
  border-color: rgba(148, 163, 184, 0.2);
}
.dhw-dark .dhw-site-ctx-item { color: #e5e7eb; }

/* 背景层 */
#dhw-bg-layer {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  pointer-events: none;
}
#dhw-bg-mask {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: rgba(242, 244, 247, 0.95);
}
body.dhw-dark #dhw-bg-mask {
  background: rgba(27, 29, 31, 0.95);
}

body.dhw-dark .dhw-settings-panel,
body.dhw-dark .dhw-settings-header,
body.dhw-dark .dhw-settings-tab.is-active,
body.dhw-dark .dhw-settings-pane,
body.dhw-dark .dhw-about-header,
body.dhw-dark .dhw-category-toggle,
body.dhw-dark .dhw-engine-set-item,
body.dhw-dark .dhw-faq-item,
body.dhw-dark .dhw-preset-btn,
body.dhw-dark .dhw-btn-secondary,
body.dhw-dark .dhw-settings-fav-item {
  background: #2d2e2f !important;
  color: #e8eaed !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}
body.dhw-dark .dhw-settings-tabs { background: #252628 !important; border-color: rgba(255, 255, 255, 0.08) !important; }
body.dhw-dark .dhw-settings-tab { color: #9ca3af; }
body.dhw-dark .dhw-settings-tab.is-active { color: #f87171 !important; border-left-color: var(--dhw-accent) !important; }
body.dhw-dark .dhw-setting-label,
body.dhw-dark .dhw-about-title,
body.dhw-dark .dhw-faq-question h4 { color: #e8eaed !important; }
body.dhw-dark .dhw-settings-desc,
body.dhw-dark .dhw-faq-answer { background: #1b1d1f !important; }
body.dhw-dark .dhw-header-actions .dhw-icon-btn,
body.dhw-dark .dhw-header-actions .dhw-ipt-ico {
  color: #b4b8bf;
}

.dhw-mask {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,.35);
  z-index: 55;
}

/* 侧栏图标配色 */

/* —— 今日热榜 —— */
.dhw-page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}
.dhw-page-head h1 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.dhw-page-head h1 i { color: var(--dhw-accent); }
.dhw-page-head p {
  margin: 4px 0 0;
  color: var(--dhw-muted);
  font-size: 13px;
}
.dhw-hot-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 900px) {
  .dhw-hot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1300px) {
  .dhw-hot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.dhw-hot-card {
  background: var(--dhw-card);
  border-radius: var(--dhw-radius);
  box-shadow: var(--dhw-shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 420px;
  max-height: 520px;
}
.dhw-hot-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--dhw-border);
  flex-shrink: 0;
}
.dhw-hot-head img {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  object-fit: contain;
  flex-shrink: 0;
}
.dhw-hot-head strong {
  font-size: 14px;
  font-weight: 700;
  color: #303133;
  line-height: 1.2;
}
.dhw-hot-head em {
  margin-left: auto;
  font-style: normal;
  font-size: 12px;
  color: var(--dhw-muted);
  white-space: nowrap;
}
.dhw-hot-list {
  list-style: none;
  margin: 0;
  padding: 6px 8px 10px;
  overflow: auto;
  flex: 1;
  scrollbar-width: thin;
  scrollbar-color: #d7dbe3 transparent;
}
.dhw-hot-list::-webkit-scrollbar { width: 4px; }
.dhw-hot-list::-webkit-scrollbar-thumb {
  background: #d7dbe3;
  border-radius: 4px;
}
.dhw-hot-list li { margin: 0; }
.dhw-hot-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 8px;
  border-radius: 8px;
  min-width: 0;
  transition: background .18s ease, transform .18s ease;
}
.dhw-hot-item:hover {
  background: rgba(241, 64, 75, 0.06);
  transform: translateX(3px);
}
.dhw-hot-item:hover .dhw-hot-title { color: var(--dhw-accent); }
.dhw-hot-item:hover .dhw-hot-heat { color: var(--dhw-accent); opacity: .9; }
.dhw-hot-rank {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  color: #909399;
  background: transparent;
  flex-shrink: 0;
  line-height: 1;
}
.dhw-hot-rank.top-1,
.dhw-hot-rank.top-2,
.dhw-hot-rank.top-3 {
  color: #fff;
  border-radius: 4px;
}
.dhw-hot-rank.top-1 { background: #ef4444; }
.dhw-hot-rank.top-2 { background: #f59e0b; }
.dhw-hot-rank.top-3 { background: #8b5cf6; }
.dhw-hot-title {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  line-height: 1.35;
  color: #303133;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color .15s ease;
}
.dhw-hot-heat {
  flex-shrink: 0;
  max-width: 48%;
  margin-left: 8px;
  font-size: 12px;
  line-height: 1.2;
  color: #909399;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: right;
  transition: color .15s ease, opacity .15s ease;
}

/* —— 文章资讯（文章资讯） —— */
.dhw-blog-hero {
  margin: 14px 16px 0;
  border-radius: 16px;
  min-height: 168px;
  overflow: hidden;
  background:
    linear-gradient(120deg, rgba(15,23,42,.62), rgba(15,23,42,.35)),
    url("../images/brand/nav-banner-v15.webp") center/cover no-repeat;
  display: flex;
  align-items: center;
  padding: 28px 24px;
  color: #fff;
}
.dhw-blog-hero-inner { max-width: 720px; }
.dhw-blog-hero h1 {
  margin: 0 0 10px;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: 0.02em;
  position: relative;
  display: inline-block;
}
.dhw-blog-hero h1::after {
  content: "";
  position: absolute;
  left: 2.2em;
  right: 0;
  bottom: 2px;
  height: 4px;
  border-radius: 999px;
  background: #facc15;
}
.dhw-blog-count {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
  font-size: 12px;
}
.dhw-blog-hero p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255,255,255,.88);
}
.dhw-blog-content { padding-top: 14px; }
.dhw-blog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  background: #fff;
  border-radius: 12px;
  padding: 12px 16px;
  box-shadow: var(--dhw-shadow);
  margin-bottom: 14px;
}
.dhw-blog-toolbar-title {
  color: var(--dhw-accent);
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.dhw-blog-sort {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--dhw-muted);
  font-size: 13px;
}
.dhw-blog-sort button {
  border: 0;
  background: transparent;
  color: var(--dhw-muted);
  font-family: inherit;
  font-size: 13px;
  padding: 4px 10px;
  border-radius: 8px;
  cursor: pointer;
}
.dhw-blog-sort button.is-active,
.dhw-blog-sort button:hover {
  background: #eef1f5;
  color: #303133;
}
.dhw-blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 900px) {
  .dhw-blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.dhw-post {
  display: flex;
  gap: 12px;
  background: #fff;
  border-radius: 12px;
  padding: 10px;
  min-width: 0;
  transition: box-shadow .2s, transform .2s;
}
.dhw-post:hover {
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  transform: translateY(-2px);
}
.dhw-post-cover {
  flex: 0 0 138px;
  width: 138px;
  height: 98px;
  border-radius: 10px;
  overflow: hidden;
  background: #eef1f5;
}
.dhw-post-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.dhw-post-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.dhw-post-title {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
}
.dhw-post-title a {
  color: #303133;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.dhw-post-title a:hover { color: var(--dhw-accent); }
.dhw-post-summary {
  margin: 0 0 8px;
  color: var(--dhw-muted);
  font-size: 12px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.dhw-post-tags {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  margin-top: auto;
  margin-bottom: 6px;
}
.dhw-post-tags::-webkit-scrollbar { display: none; }
.dhw-post-cat,
.dhw-post-tag {
  flex: 0 0 auto;
  font-size: 11px;
  border-radius: 6px;
  padding: 2px 8px;
  white-space: nowrap;
}
.dhw-post-cat {
  color: #fff;
  background: var(--dhw-accent);
}
.dhw-post-cat i { margin-right: 3px; }
.dhw-post-tag {
  color: #6b7280;
  background: #f3f5f8;
}
.dhw-post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--dhw-muted);
  font-size: 12px;
}
.dhw-post-meta .ml-auto { margin-left: auto; }
.dhw-post-meta i { margin-right: 4px; }
@media (max-width: 600px) {
  .dhw-post-cover { flex-basis: 108px; width: 108px; height: 78px; }
  .dhw-post-summary { display: none; }
  .dhw-blog-hero h1 { font-size: 28px; }
}

@media (max-width: 1280px) {
  .dhw-menu .has-sub:nth-child(n+7) { display: none; }
}
@media (max-width: 1100px) {
  .dhw-menu .has-sub:nth-child(n+5) { display: none; }
}
@media (max-width: 900px) {
  .dhw-app,
  .dhw-body.aside-min .dhw-app {
    padding-left: 0;
  }
  .dhw-aside {
    position: fixed;
    left: 0;
    top: var(--dhw-header-h);
    bottom: 0;
    height: auto !important;
    max-height: none !important;
    min-height: 0;
    transform: translateX(-105%);
    transition: transform .2s ease, width .25s ease;
    box-shadow: 8px 0 30px rgba(15,23,42,.12);
    /* 高于 banner(45)/mask(55)，避免抽屉被搜索横幅挡住 */
    z-index: 60;
  }
  .dhw-aside-scroll {
    overflow-x: hidden;
    overflow-y: auto;
  }
  .dhw-aside-brand-mobile { display: flex; }
  .dhw-body.aside-open .dhw-aside { transform: translateX(0); }
  .dhw-body.aside-open .dhw-mask { display: block; }
  .dhw-header-toggle { display: grid !important; }
  .dhw-menu { display: none; }
  .dhw-logo-img { width: 40px; height: 40px; flex-basis: 40px; }
  .dhw-logo-divider { height: 36px; }
  .dhw-logo-title,
  .dhw-logo-text strong { font-size: 13px; }
  .dhw-logo-sub,
  .dhw-logo-text em {
    font-size: 11.5px;
    max-width: min(200px, 52vw);
  }
  .dhw-banner {
    margin-top: 10px;
    min-height: 0;
    padding: 14px 12px 16px;
  }
  /* 手机端同步桌面顶部背景图 */
  .dhw-banner-bg {
    background-color: #9ecff5;
    background-image:
      linear-gradient(180deg, rgba(40, 100, 160, 0.2) 0%, rgba(50, 120, 180, 0.08) 55%, rgba(40, 100, 160, 0.14) 100%),
      url("../images/brand/nav-banner-v15.webp");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
  }
  .dhw-banner-bg::before,
  .dhw-banner-bg::after {
    display: none !important;
  }
  .dhw-search-stack {
    width: 100%;
    gap: 10px;
  }
  .dhw-search {
    width: 100%;
  }
  .dhw-engine-opt {
    flex: 1 1 calc(33.333% - 6px);
    min-width: 88px;
  }
  .dhw-banner-title {
    font-size: 18px;
    letter-spacing: .5px;
    /* 窄屏保持原位，不上移 */
    transform: none;
  }
  .dhw-header-inner {
    position: relative;
    width: 100%;
    min-height: 48px;
    padding: 0 8px 0 6px;
    gap: 4px;
  }
  .dhw-menu { display: none !important; }
  .dhw-menu-link { height: 48px; }
  /* logo 相对顶栏真正居中，不受左侧菜单/右侧按钮宽度影响 */
  .dhw-logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    flex: 0 0 auto;
    max-width: min(220px, calc(100vw - 120px));
    z-index: 1;
    pointer-events: auto;
  }
  .dhw-logo-sub {
    max-width: min(160px, 42vw);
  }
  .dhw-header-toggle {
    position: relative;
    z-index: 2;
  }
  .dhw-header-actions {
    min-width: 0 !important;
    width: auto;
    margin-left: auto !important;
    margin-right: 0;
    flex: 0 0 auto;
    gap: 0;
    position: relative;
    z-index: 2;
  }
  .dhw-login { display: none !important; }
  .dhw-nav-search { display: none !important; }
  .dhw-sites {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px;
  }
  .dhw-site {
    min-width: 0;
    max-width: 100%;
    padding: 8px;
    overflow: hidden;
  }
  .dhw-site-meta {
    min-width: 0;
    overflow: hidden;
  }
  .dhw-content {
    padding-left: 10px;
    padding-right: 10px;
    overflow-x: hidden;
  }
  .dhw-card {
    overflow: hidden;
  }
  .dhw-pop-panel {
    top: 64px;
    right: auto;
    left: 50%;
    width: min(360px, calc(100vw - 16px));
    transform: translate(-50%, -40px);
  }
  .dhw-pop-panel.is-show { transform: translate(-50%, 0); }
  .dhw-panel-clear-link { display: none; }
  .dhw-panel-footer { display: block; }
  .dhw-search-modal { padding-top: 70px; }
}
/* ===== Subsite pages (tool/ai/world/media/lab/design/rank/jzg) ===== */
.dhw-body-sub .dhw-content.dhw-sub-content,
.dhw-body-sub .dhw-jzg-content {
  padding-top: 12px;
}
.dhw-sub-hero {
  margin-bottom: 18px;
  padding: 22px 20px 18px;
  border-radius: 16px;
  background:
    radial-gradient(120% 80% at 10% 0%, rgba(37, 99, 235, 0.14), transparent 55%),
    linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
  border: 1px solid rgba(148, 163, 184, 0.28);
}
.dhw-sub-hero-inner { max-width: 920px; margin: 0 auto; text-align: center; }
.dhw-sub-title {
  margin: 0 0 6px;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 700;
  color: #0f172a;
  letter-spacing: 0.02em;
}
.dhw-sub-desc {
  margin: 0 0 14px;
  color: #64748b;
  font-size: 0.95rem;
}
.dhw-subnav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0 0 16px;
}
.dhw-subnav-link {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  color: #334155;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.35);
  text-decoration: none;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.dhw-subnav-link:hover,
.dhw-subnav-link.is-active {
  color: #1d4ed8;
  border-color: rgba(37, 99, 235, 0.45);
  background: #fff;
}
.dhw-sub-search {
  display: flex;
  max-width: 560px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}
.dhw-sub-search-input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 12px 14px;
  font-size: 15px;
  background: transparent;
}
.dhw-sub-search-btn {
  border: 0;
  padding: 0 18px;
  background: #2563eb;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.dhw-sub-search-btn:hover { background: #1d4ed8; }
.dhw-sub-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
  position: sticky;
  top: 64px;
  z-index: 5;
  padding: 8px 0;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.96), rgba(248, 250, 252, 0.88));
  backdrop-filter: blur(6px);
}
.dhw-sub-toc a {
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 12px;
  color: #475569;
  background: #fff;
  border: 1px solid rgba(148, 163, 184, 0.3);
  text-decoration: none;
}
.dhw-sub-toc a:hover { color: #1d4ed8; border-color: rgba(37, 99, 235, 0.4); }
.dhw-sub-section { margin-bottom: 26px; scroll-margin-top: 110px; }
.dhw-sub-sec-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 12px;
}
.dhw-sub-sec-head h2 {
  margin: 0;
  font-size: 1.1rem;
  color: #0f172a;
}
.dhw-sub-sec-head p {
  margin: 0;
  color: #94a3b8;
  font-size: 13px;
}
.dhw-sub-grid {
  display: grid;
  gap: 10px;
}
.dhw-sub-grid.is-pill {
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}
.dhw-sub-grid.is-card {
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}
.dhw-sub-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(148, 163, 184, 0.25);
  text-decoration: none;
  color: inherit;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.dhw-sub-item:hover {
  transform: translateY(-1px);
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}
.dhw-sub-ico,
.dhw-sub-ico-fallback {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  flex: 0 0 auto;
  object-fit: cover;
}
.dhw-sub-ico-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eff6ff;
  color: #2563eb;
  font-size: 13px;
  font-weight: 700;
}
.dhw-sub-item-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.dhw-sub-item-body strong {
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dhw-sub-item-body em {
  font-style: normal;
  font-size: 12px;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dhw-sub-grid.is-pill .dhw-sub-item-body em { display: none; }
.dhw-sub-empty { color: #94a3b8; padding: 40px 0; text-align: center; }

/* Rank tiles */
.dhw-rank-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}
.dhw-rank-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 72px;
  padding: 12px;
  border-radius: 10px;
  background: var(--rank-bg, #4a6fa5);
  color: #fff;
  text-decoration: none;
  text-align: center;
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12);
  transition: transform .12s ease, filter .12s ease;
}
.dhw-rank-tile:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  color: #fff;
}

/* Drum kit */
.dhw-jzg-content { text-align: center; }
.dhw-jzg-hero { margin-bottom: 10px; }
.dhw-jzg-hero h1 {
  margin: 10px 0 4px;
  font-size: 1.8rem;
  color: #0f172a;
}
.dhw-jzg-hero p { margin: 0 0 8px; color: #ef4444; }
.dhw-jzg-stage {
  position: relative;
  width: min(720px, 100%);
  aspect-ratio: 4 / 3;
  margin: 12px auto 16px;
  border-radius: 20px;
  background:
    radial-gradient(circle at 50% 60%, rgba(255,255,255,0.9), rgba(226,232,240,0.9) 55%, rgba(203,213,225,0.95));
  border: 1px solid rgba(148, 163, 184, 0.35);
  overflow: hidden;
}
.dhw-jzg-pad {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  width: 108px;
  height: 72px;
  border: 3px solid #0f172a;
  border-radius: 50%;
  font-weight: 700;
  color: #0f172a;
  cursor: pointer;
  box-shadow: 0 8px 0 rgba(15, 23, 42, 0.18);
  transition: transform .08s ease, box-shadow .08s ease;
}
.dhw-jzg-pad kbd {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  opacity: 0.7;
}
.dhw-jzg-pad.is-kick { width: 150px; height: 110px; background: #fff; }
.dhw-jzg-pad.is-snare { background: #ef4444; color: #fff; }
.dhw-jzg-pad.is-tom1,
.dhw-jzg-pad.is-tom2,
.dhw-jzg-pad.is-tom3 { background: #dc2626; color: #fff; }
.dhw-jzg-pad.is-hihat,
.dhw-jzg-pad.is-crash,
.dhw-jzg-pad.is-ride {
  width: 120px;
  height: 36px;
  border-radius: 999px;
  background: #facc15;
}
.dhw-jzg-pad.is-hit {
  transform: translate(-50%, -50%) scale(0.94);
  box-shadow: 0 2px 0 rgba(15, 23, 42, 0.18);
}
.dhw-jzg-hint {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  color: #64748b;
  font-size: 13px;
  margin-bottom: 20px;
}
.dhw-jzg-hint button {
  border: 1px solid rgba(37, 99, 235, 0.35);
  background: #eff6ff;
  color: #1d4ed8;
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  font-weight: 600;
}
.dhw-submenu-fa {
  width: 22px;
  height: 22px;
  margin-right: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 15px;
  border-radius: 6px;
  color: #64748b;
  background: #f1f5f9;
}
.dhw-submenu-more a {
  gap: 10px;
  padding: 9px 12px;
  font-size: 14px;
}
.dhw-submenu-more .dhw-submenu-fa {
  width: 26px;
  height: 26px;
  font-size: 14px;
  border-radius: 7px;
  color: #fff;
}
.dhw-submenu-more .dhw-submenu-fa-img {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
  background: transparent;
}
/* FA4 无大脑图标，借用站内已有的 FA6 solid 字形 */
@font-face {
  font-family: "DHW FA6 Solid";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("../fontawesome/webfonts/fa-solid-900.woff2") format("woff2"),
       url("../fontawesome/webfonts/fa-solid-900.ttf") format("truetype");
}
.fa.fa-brain:before {
  font-family: "DHW FA6 Solid" !important;
  font-weight: 900;
  content: "\f5dc";
}
.dhw-submenu-more .dhw-submenu-fa.is-tool { background: linear-gradient(135deg, #38bdf8, #2563eb); }
.dhw-submenu-more .dhw-submenu-fa.is-rank { background: linear-gradient(135deg, #fbbf24, #d97706); }
.dhw-submenu-more .dhw-submenu-fa.is-ai { background: linear-gradient(135deg, #a78bfa, #7c3aed); }
.dhw-submenu-more .dhw-submenu-fa.is-lab { background: linear-gradient(135deg, #34d399, #059669); }
.dhw-submenu-more .dhw-submenu-fa.is-pod,
.dhw-submenu-more .dhw-submenu-fa.is-media { background: linear-gradient(135deg, #fb7185, #e11d48); }
.dhw-submenu-more .dhw-submenu-fa.is-design { background: linear-gradient(135deg, #f472b6, #db2777); }
.dhw-submenu-more .dhw-submenu-fa.is-world { background: linear-gradient(135deg, #2dd4bf, #0f766e); }
.dhw-submenu-more .dhw-submenu-fa.is-jzg { background: linear-gradient(135deg, #f87171, #dc2626); }
@media (max-width: 720px) {
  .dhw-sub-search { width: 100%; }
  .dhw-jzg-pad { width: 84px; height: 58px; font-size: 12px; }
  .dhw-jzg-pad.is-kick { width: 120px; height: 88px; }
  .dhw-jzg-pad.is-hihat,
  .dhw-jzg-pad.is-crash,
  .dhw-jzg-pad.is-ride { width: 92px; height: 30px; }
}

