/* =====================================================================
 * 筑梦通工具箱 · 全站视觉规范 2.0（redesign.css）
 * 设计语言：科技商务蓝 #165DFF · 浅色卡片 #F8FAFC · 深色背景 #0F172A
 * 字体：思源黑体 / Inter（系统回退）
 * 圆角：统一 8px · 阴影：浅而克制 · hover：轻微上浮 + 浅阴影
 * 说明：本文件仅承载「新版外壳 + 新版页面」样式，旧版工具页内部样式仍由
 *       style.css 承载，二者互不污染。所有新类以 .zht- 前缀避免冲突。
 * ===================================================================== */

:root {
  /* 品牌色 */
  --zht-brand: #165DFF;
  --zht-brand-600: #0E4BE8;
  --zht-brand-700: #0B3BB0;
  --zht-brand-soft: #E8F0FF;
  --zht-brand-soft-2: #F0F5FF;

  /* 中性色 */
  --zht-bg: #FFFFFF;
  --zht-bg-soft: #F8FAFC;
  --zht-bg-mute: #F1F5F9;
  --zht-card: #F8FAFC;
  --zht-card-solid: #FFFFFF;
  --zht-ink: #0F172A;
  --zht-ink-2: #334155;
  --zht-ink-3: #64748B;
  --zht-ink-4: #94A3B8;
  --zht-line: #E2E8F0;
  --zht-line-2: #EDF1F6;

  /* 状态 / 分类色点（全部自研色值） */
  --zht-c-finance: #165DFF;   /* 财务 · 蓝 */
  --zht-c-build:   #F57C00;   /* 工程 · 橙 */
  --zht-c-query:   #16A34A;   /* 查询 · 绿 */
  --zht-c-video:   #EF4444;   /* 视频 · 红 */
  --zht-c-doc:     #7C3AED;   /* 文档 · 紫 */
  --zht-c-office:  #0D9488;   /* 办公 · 青绿 */

  /* 投票板阶段底色 */
  --zht-st-pending:  #F1F5F9;
  --zht-st-planned:  #E0EDFF;
  --zht-st-doing:    #FEF3C7;
  --zht-st-online:   #DCFCE7;

  /* 形状 */
  --zht-radius: 8px;
  --zht-radius-lg: 14px;
  --zht-radius-pill: 999px;

  /* 阴影（浅而克制） */
  --zht-shadow-sm: 0 1px 2px rgba(15, 23, 42, .04), 0 1px 3px rgba(15, 23, 42, .06);
  --zht-shadow: 0 2px 8px rgba(15, 23, 42, .05), 0 4px 16px rgba(15, 23, 42, .04);
  --zht-shadow-hover: 0 8px 24px rgba(22, 93, 255, .12), 0 2px 6px rgba(15, 23, 42, .06);

  /* 间距 */
  --zht-gap: 20px;
  --zht-page-x: 24px;
  --zht-nav-h: 60px;

  --zht-font: "Source Han Sans SC", "思源黑体", "Noto Sans SC", "Inter",
    -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
}

/* 深色模式（背景 #0F172A / 卡片 #1E293B） */
[data-theme="dark"] {
  --zht-bg: #0F172A;
  --zht-bg-soft: #131C30;
  --zht-bg-mute: #1E293B;
  --zht-card: #1E293B;
  --zht-card-solid: #1E293B;
  --zht-ink: #E2E8F0;
  --zht-ink-2: #CBD5E1;
  --zht-ink-3: #94A3B8;
  --zht-ink-4: #64748B;
  --zht-line: #2A3647;
  --zht-line-2: #243044;
  --zht-brand-soft: #16233F;
  --zht-brand-soft-2: #13203A;
  --zht-st-pending: #243044;
  --zht-st-planned: #16284A;
  --zht-st-doing: #3A3012;
  --zht-st-online: #14321F;
  --zht-shadow-sm: 0 1px 2px rgba(0,0,0,.3), 0 1px 3px rgba(0,0,0,.4);
  --zht-shadow: 0 2px 10px rgba(0,0,0,.35);
  --zht-shadow-hover: 0 10px 28px rgba(22, 93, 255, .25);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.zht-shell {
  margin: 0;
  font-family: var(--zht-font);
  background: var(--zht-bg);
  color: var(--zht-ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ============================ 顶部导航 ============================ */
.zht-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--zht-nav-h);
  background: var(--zht-bg-card-solid, #fff);
  background: var(--zht-bg);
  border-bottom: 1px solid var(--zht-line);
  box-shadow: var(--zht-shadow-sm);
  backdrop-filter: saturate(180%) blur(8px);
}
[data-theme="dark"] .zht-nav { background: #0F172A; }
.zht-nav-inner {
  max-width: none;
  width: 100%;
  margin: 0 auto;
  height: 100%;
  padding: 0 var(--zht-page-x);
  display: flex;
  align-items: center;
  gap: 18px;
}
.zht-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--zht-ink);
  flex: 0 0 auto;
}
.zht-brand-mark {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--zht-brand), #3B82F6);
  color: #fff;
  display: grid; place-items: center;
  font-weight: 800; font-size: 17px;
  box-shadow: 0 4px 10px rgba(22,93,255,.35);
}
.zht-brand-img {
  width: 34px; height: 34px; border-radius: 9px; object-fit: cover;
  box-shadow: 0 4px 10px rgba(22,93,255,.25); flex: 0 0 auto;
}
.zht-brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.zht-brand-name { font-weight: 800; font-size: 16px; letter-spacing: .2px; }
.zht-brand-slogan {
  font-size: 11px; color: var(--zht-ink-4); font-weight: 500;
  white-space: nowrap;
}

.zht-menu {
  display: flex; align-items: center; gap: 2px;
  flex: 1 1 auto; justify-content: center;
  overflow: visible;
}
.zht-menu::-webkit-scrollbar { display: none; }
.zht-menu a {
  position: relative;
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--zht-ink-2);
  font-size: 14.5px; font-weight: 600;
  white-space: nowrap;
  transition: color .15s, background .15s;
}
.zht-menu a:hover { color: var(--zht-brand); background: var(--zht-brand-soft); }
.zht-menu a.is-active { color: var(--zht-brand); }
.zht-menu a.is-active::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px;
  height: 2px; border-radius: 2px; background: var(--zht-brand);
}

/* 二级下拉菜单（悬停自动展开） */
.zht-nav-item { position: relative; display: flex; align-items: center; }
/* 悬停过渡桥：弥合触发项与下拉之间的 6px 间隙，防止鼠标下移时 hover 丢失导致菜单闪退 */
.zht-nav-item::after {
  content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 10px;
}
.zht-nav-trigger {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 8px 12px; border-radius: 8px;
  text-decoration: none; color: var(--zht-ink-2);
  font-size: 14.5px; font-weight: 600; white-space: nowrap;
  cursor: pointer; transition: color .15s, background .15s;
}
.zht-nav-trigger:hover { color: var(--zht-brand); background: var(--zht-brand-soft); }
.zht-nav-ico { font-size: 14px; }
.zht-nav-caret { width: 12px; height: 12px; transition: transform .15s; }
.zht-nav-item:hover .zht-nav-caret { transform: rotate(180deg); }
.zht-nav-sub {
  position: absolute; top: calc(100% + 6px); left: 0;
  min-width: 248px; max-height: 72vh; overflow-y: auto;
  background: var(--zht-bg); border: 1px solid var(--zht-line);
  border-radius: 12px; box-shadow: var(--zht-shadow);
  padding: 8px; z-index: 1100;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .15s, transform .15s, visibility .15s;
}
.zht-nav-item:hover .zht-nav-sub { opacity: 1; visibility: visible; transform: none; }
.zht-nav-sub-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 9px 10px; border-radius: 8px; text-decoration: none;
  color: var(--zht-ink-2); transition: background .12s, color .12s;
}
.zht-nav-sub-item:hover { background: var(--zht-brand-soft); color: var(--zht-brand); }
.zht-nav-sub-ico { font-size: 15px; flex: 0 0 auto; margin-top: 1px; }
.zht-nav-sub-text { display: flex; flex-direction: column; min-width: 0; }
.zht-nav-sub-name { font-size: 14px; font-weight: 600; line-height: 1.3; }
.zht-nav-sub-desc {
  font-size: 11.5px; color: var(--zht-ink-4); line-height: 1.4; overflow: hidden;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical;
}

.zht-nav-right {
  display: flex; align-items: center; gap: 10px;
  flex: 0 0 auto; margin-left: auto;
}
.zht-search {
  display: flex; align-items: center; gap: 6px;
  background: var(--zht-bg-soft);
  border: 1px solid var(--zht-line);
  border-radius: var(--zht-radius-pill);
  padding: 6px 12px;
  width: 250px;
  transition: border-color .15s, box-shadow .15s, width .2s;
}
/* 搜索引擎选择（导航栏 + 首页 Hero 共用） */
.zht-search-engine {
  border: none; background: transparent; outline: none;
  color: var(--zht-ink-2); font-size: 13px; font-weight: 600;
  cursor: pointer; font-family: inherit; padding-right: 4px; max-width: 96px;
  flex: 0 0 auto;
}
.zht-search-engine:focus { box-shadow: none; }
[data-theme="dark"] .zht-search-engine { color: var(--zht-ink-2); }
.zht-hero-engine {
  border: none; background: transparent; outline: none;
  color: var(--zht-ink-2); font-size: 14.5px; font-weight: 600;
  cursor: pointer; font-family: inherit; margin-right: 4px; flex: 0 0 auto;
}
.zht-search:focus-within { border-color: var(--zht-brand); box-shadow: 0 0 0 3px var(--zht-brand-soft); }
.zht-search i { color: var(--zht-ink-4); font-size: 13px; }
.zht-search input {
  border: none; outline: none; background: transparent;
  font-size: 13.5px; color: var(--zht-ink); width: 100%;
  font-family: inherit;
}
.zht-icon-btn {
  width: 38px; height: 38px;
  border-radius: 10px;
  border: 1px solid var(--zht-line);
  background: var(--zht-bg-soft);
  color: var(--zht-ink-2);
  cursor: pointer; font-size: 15px;
  display: grid; place-items: center;
  transition: all .15s;
}
.zht-icon-btn:hover { color: var(--zht-brand); border-color: var(--zht-brand); background: var(--zht-brand-soft); }
.zht-contact-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: var(--zht-radius-pill);
  background: var(--zht-brand); color: #fff;
  border: none; cursor: pointer; font-weight: 700; font-size: 13.5px;
  font-family: inherit;
  box-shadow: 0 4px 12px rgba(22,93,255,.28);
  transition: transform .12s, box-shadow .15s;
}
.zht-contact-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(22,93,255,.36); }
.zht-menu-toggle {
  display: none;
  width: 40px; height: 40px; border-radius: 10px;
  border: 1px solid var(--zht-line); background: var(--zht-bg-soft);
  color: var(--zht-ink-2); cursor: pointer; font-size: 18px;
}

/* 移动端抽屉 */
.zht-mobile {
  display: none;
  position: fixed; inset: var(--zht-nav-h) 0 0 0;
  background: var(--zht-bg);
  z-index: 999; padding: 16px var(--zht-page-x);
  overflow-y: auto;
}
.zht-mobile.is-open { display: block; }
.zht-mobile a {
  display: block; padding: 13px 8px;
  color: var(--zht-ink); text-decoration: none;
  font-size: 16px; font-weight: 600;
  border-bottom: 1px solid var(--zht-line-2);
}
.zht-mobile .zht-m-cat-title {
  padding: 14px 8px 6px; font-size: 12.5px; color: var(--zht-ink-4);
  font-weight: 700; letter-spacing: .5px; text-transform: uppercase;
}
.zht-mobile .zht-m-sub a { padding-left: 22px; font-weight: 500; font-size: 14.5px; color: var(--zht-ink-2); }

/* ============================ 页面容器 ============================ */
.zht-wrap { max-width: 1320px; margin: 0 auto; padding: 0 var(--zht-page-x); }
.zht-main { padding: 28px 0 56px; }
.zht-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 28px;
  align-items: start;
}
.zht-col-main { min-width: 0; }

/* ============================ 首页 Hero ============================ */
.zht-hero {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 28px;
  margin-bottom: 36px;
}
.zht-hero-left {
  background: linear-gradient(160deg, var(--zht-brand-soft-2), #fff 70%);
  border: 1px solid var(--zht-line-2);
  border-radius: var(--zht-radius-lg);
  padding: 34px 30px;
  display: flex; flex-direction: column; justify-content: center;
}
[data-theme="dark"] .zht-hero-left { background: linear-gradient(160deg, #13203A, #0F172A 70%); border-color: var(--zht-line); }
.zht-hero-kicker {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12.5px; font-weight: 700; color: var(--zht-brand);
  background: var(--zht-brand-soft); padding: 5px 11px; border-radius: var(--zht-radius-pill);
  width: fit-content; margin-bottom: 16px;
}
.zht-hero-title { font-size: 27px; font-weight: 800; line-height: 1.3; margin: 0 0 10px; color: var(--zht-ink); }
.zht-hero-sub { font-size: 14.5px; color: var(--zht-ink-3); margin: 0 0 22px; }
.zht-hero-search {
  display: flex; align-items: center; gap: 10px;
  background: var(--zht-card-solid);
  border: 1.5px solid var(--zht-line);
  border-radius: var(--zht-radius-pill);
  padding: 4px 6px 4px 18px;
  box-shadow: var(--zht-shadow);
  transition: border-color .15s, box-shadow .15s;
}
.zht-hero-search:focus-within { border-color: var(--zht-brand); box-shadow: 0 0 0 4px var(--zht-brand-soft); }
.zht-hero-search i { color: var(--zht-brand); font-size: 18px; }
.zht-hero-search input {
  flex: 1; border: none; outline: none; background: transparent;
  font-size: 15.5px; color: var(--zht-ink); font-family: inherit; padding: 12px 0;
}
.zht-hero-search button {
  border: none; background: var(--zht-brand); color: #fff;
  font-weight: 700; font-size: 14.5px; padding: 11px 22px;
  border-radius: var(--zht-radius-pill); cursor: pointer; font-family: inherit;
  transition: transform .12s;
}
.zht-hero-search button:hover { transform: translateY(-1px); }
.zht-hero-note { margin: 12px 2px 0; font-size: 12.5px; color: var(--zht-ink-4); }
.zht-hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.zht-hero-tags span {
  font-size: 12px; color: var(--zht-ink-3);
  background: var(--zht-bg-soft); border: 1px solid var(--zht-line-2);
  padding: 5px 10px; border-radius: var(--zht-radius-pill);
}

.zht-hero-right { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
/* 顶部横向滚动标签条 */
.zht-tagbar {
  position: relative; overflow: hidden;
  background: var(--zht-bg-soft); border: 1px solid var(--zht-line-2);
  border-radius: var(--zht-radius); height: 42px; display: flex; align-items: center;
}
.zht-tagbar::before {
  content: "热门"; flex: 0 0 auto; z-index: 2;
  background: var(--zht-brand); color: #fff; font-size: 12px; font-weight: 700;
  padding: 4px 10px; border-radius: 6px; margin: 0 10px; letter-spacing: .5px;
}
.zht-tagbar-track {
  display: flex; gap: 22px; white-space: nowrap; will-change: transform;
  animation: zht-marquee 26s linear infinite;
}
.zht-tagbar:hover .zht-tagbar-track { animation-play-state: paused; }
.zht-tagbar-track a {
  font-size: 13px; color: var(--zht-ink-2); text-decoration: none; font-weight: 600;
  position: relative; padding-right: 30px;
}
.zht-tagbar-track a:hover { color: var(--zht-brand); }
.zht-new-badge {
  position: absolute; top: -8px; right: -2px;
  background: #EF4444; color: #fff; font-size: 9px; font-weight: 800;
  padding: 1px 4px; border-radius: 4px; line-height: 1.4; letter-spacing: .5px;
}
@keyframes zht-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* 轮播大图 */
.zht-carousel {
  position: relative; border-radius: var(--zht-radius-lg);
  overflow: hidden; box-shadow: var(--zht-shadow);
  border: 1px solid var(--zht-line-2);
  aspect-ratio: 16 / 8.2;
}
.zht-slides { display: flex; height: 100%; transition: transform .6s cubic-bezier(.4,0,.2,1); }
.zht-slide {
  flex: 0 0 100%; height: 100%;
  display: flex; flex-direction: column; justify-content: center;
  padding: 36px 44px; color: #fff; position: relative; overflow: hidden;
}
.zht-slide h3 { font-size: 24px; font-weight: 800; margin: 0 0 12px; }
.zht-slide p { font-size: 14.5px; opacity: .92; margin: 0; max-width: 80%; }
.zht-slide .zht-slide-ico { font-size: 40px; margin-bottom: 14px; opacity: .9; }
.zht-slide.s1 { background: linear-gradient(135deg, #165DFF, #3B82F6); }
.zht-slide.s2 { background: linear-gradient(135deg, #0D9488, #22D3EE); }
.zht-slide.s3 { background: linear-gradient(135deg, #7C3AED, #A855F7); }
.zht-slide.s4 { background: linear-gradient(135deg, #F57C00, #FB923C); }
.zht-dots {
  position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px; z-index: 3;
}
.zht-dots button {
  width: 9px; height: 9px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255,255,255,.5); transition: all .2s; padding: 0;
}
.zht-dots button.is-active { background: #fff; width: 22px; border-radius: 5px; }
.zht-car-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255,255,255,.25); color: #fff; font-size: 16px; z-index: 3;
  display: grid; place-items: center; backdrop-filter: blur(4px); transition: background .15s;
}
.zht-car-arrow:hover { background: rgba(255,255,255,.45); }
.zht-car-arrow.prev { left: 12px; } .zht-car-arrow.next { right: 12px; }

/* ============================ 分类 + 卡片网格 ============================ */
.zht-section { margin-bottom: 40px; }
.zht-section-head { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.zht-dot { width: 10px; height: 10px; border-radius: 50%; flex: 0 0 auto; }
.zht-section-title { font-size: 19px; font-weight: 800; margin: 0; color: var(--zht-ink); }
.zht-section-count { font-size: 12.5px; color: var(--zht-ink-4); font-weight: 600; }
.zht-section-more { margin-left: auto; font-size: 13px; color: var(--zht-brand); text-decoration: none; font-weight: 600; }
.zht-section-more:hover { text-decoration: underline; }

.zht-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--zht-gap);
}
.zht-card {
  position: relative;
  background: var(--zht-card-solid);
  border: 1px solid var(--zht-line-2);
  border-radius: var(--zht-radius);
  padding: 18px 16px;
  text-decoration: none;
  color: var(--zht-ink);
  display: flex; flex-direction: column; gap: 9px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.zht-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--zht-shadow-hover);
  border-color: var(--zht-brand-soft);
}
.zht-card-ico {
  width: 40px; height: 40px; border-radius: 10px;
  display: grid; place-items: center; font-size: 18px;
  background: var(--zht-brand-soft); color: var(--zht-brand);
}
.zht-card-name { font-size: 15px; font-weight: 700; }
.zht-card-desc {
  font-size: 12.8px; color: var(--zht-ink-3); line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 40px;
}
.zht-card-hot {
  position: absolute; top: 12px; right: 12px;
  font-size: 10px; font-weight: 800; color: #fff;
  background: #EF4444; padding: 2px 6px; border-radius: 5px; letter-spacing: .5px;
}

/* ============================ 右侧边栏 ============================ */
.zht-side { position: sticky; top: calc(var(--zht-nav-h) + 16px); display: flex; flex-direction: column; gap: 18px; }
.zht-panel {
  background: var(--zht-card-solid);
  border: 1px solid var(--zht-line-2);
  border-radius: var(--zht-radius-lg);
  padding: 16px;
}
.zht-panel-title { font-size: 14px; font-weight: 800; margin: 0 0 12px; color: var(--zht-ink); display: flex; align-items: center; gap: 8px; }
.zht-tree { list-style: none; margin: 0; padding: 0; }
.zht-tree > li { margin-bottom: 4px; }
.zht-tree-cat {
  display: flex; align-items: center; gap: 8px;
  font-size: 13.5px; font-weight: 700; color: var(--zht-ink-2);
  padding: 7px 8px; border-radius: 8px; cursor: default;
}
.zht-tree-cat:hover { background: var(--zht-bg-soft); }
.zht-tree-items { list-style: none; margin: 2px 0 6px; padding: 0 0 0 14px; }
.zht-tree-items a {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--zht-ink-3); text-decoration: none;
  padding: 6px 8px; border-radius: 7px; transition: all .12s;
}
.zht-tree-items a:hover { color: var(--zht-brand); background: var(--zht-brand-soft); }
.zht-tree-items .fa-icon { width: 16px; text-align: center; color: var(--zht-ink-4); }

.zht-ad {
  position: relative;
  border: 1px dashed var(--zht-line);
  border-radius: var(--zht-radius);
  min-height: 180px;
  background: var(--zht-bg-soft);
  overflow: hidden;
}
.zht-ad-label {
  position: absolute; top: 6px; right: 8px; z-index: 2;
  font-size: 10px; color: var(--zht-ink-4); background: var(--zht-bg-mute);
  padding: 1px 6px; border-radius: 4px; letter-spacing: .5px;
}
.zht-ad-body { padding: 18px 14px; color: var(--zht-ink-3); font-size: 12.5px; }
.zht-ad-close {
  position: absolute; top: 4px; left: 6px; z-index: 3;
  border: none; background: transparent; color: var(--zht-ink-4);
  font-size: 13px; cursor: pointer; line-height: 1;
}

/* ============================ 站长公告 ============================ */
.zht-ann { background: var(--zht-card-solid); border: 1px solid var(--zht-line-2); border-radius: var(--zht-radius-lg); padding: 16px 18px; }
.zht-ann-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.zht-ann-head h3 { font-size: 15px; font-weight: 800; margin: 0; }
.zht-ann-pin { font-size: 10px; font-weight: 800; color: #fff; background: #EF4444; padding: 2px 7px; border-radius: 5px; }
.zht-ann-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.zht-ann-item { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 8px; background: var(--zht-bg-soft); }
.zht-ann-item.is-top { background: var(--zht-brand-soft-2); border: 1px solid var(--zht-brand-soft); }
.zht-ann-date { font-size: 11.5px; color: var(--zht-ink-4); flex: 0 0 auto; width: 64px; padding-top: 2px; }
.zht-ann-text { font-size: 13.5px; color: var(--zht-ink-2); }
.zht-ann-text a { color: var(--zht-brand); text-decoration: none; }
.zht-ann-text b.zht-at { color: var(--zht-brand); font-weight: 700; }

/* ============================ 页脚 ============================ */
.zht-foot { border-top: 1px solid var(--zht-line); background: var(--zht-bg-soft); margin-top: 40px; }
.zht-foot-inner {
  max-width: 1320px; margin: 0 auto; padding: 36px var(--zht-page-x) 28px;
  display: grid; grid-template-columns: 1.1fr 1fr 1.1fr; gap: 32px;
}
.zht-foot h4 { font-size: 14px; font-weight: 800; margin: 0 0 14px; color: var(--zht-ink); }
.zht-foot-links { display: flex; flex-direction: column; gap: 9px; }
.zht-foot-links a { font-size: 13px; color: var(--zht-ink-3); text-decoration: none; transition: color .12s; }
.zht-foot-links a:hover { color: var(--zht-brand); }
.zht-foot-mid { font-size: 12.8px; color: var(--zht-ink-3); line-height: 1.9; }
.zht-foot-mid a { color: var(--zht-brand); text-decoration: none; }
.zht-foot-mid a:hover { text-decoration: underline; }
.zht-foot-icp { margin-top: 8px; }
.zht-foot-right { font-size: 12.8px; color: var(--zht-ink-3); line-height: 1.8; }
.zht-foot-right a { color: var(--zht-brand); text-decoration: none; word-break: break-all; }
.zht-foot-bottom {
  border-top: 1px solid var(--zht-line-2);
  text-align: center; font-size: 12px; color: var(--zht-ink-4);
  padding: 14px var(--zht-page-x);
}
.zht-foot-tag { color: var(--zht-ink-3); }

/* ============================ 需求投票板 ============================ */
.zht-page-head { text-align: center; padding: 40px 0 26px; }
.zht-page-head h1 { font-size: 28px; font-weight: 800; margin: 0 0 8px; }
.zht-page-head p { color: var(--zht-ink-3); font-size: 14.5px; margin: 0; }
.zht-vote-bar { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; flex-wrap: wrap; }
.zht-tabs { display: inline-flex; background: var(--zht-bg-soft); border: 1px solid var(--zht-line-2); border-radius: var(--zht-radius-pill); padding: 4px; }
.zht-tab { border: none; background: transparent; cursor: pointer; font-family: inherit; font-size: 13.5px; font-weight: 700; color: var(--zht-ink-3); padding: 8px 18px; border-radius: var(--zht-radius-pill); transition: all .15s; }
.zht-tab.is-active { background: var(--zht-brand); color: #fff; box-shadow: 0 3px 8px rgba(22,93,255,.3); }
.zht-publish-btn {
  margin-left: auto; display: inline-flex; align-items: center; gap: 7px;
  background: var(--zht-brand); color: #fff; border: none; cursor: pointer;
  font-weight: 700; font-size: 14px; padding: 10px 18px; border-radius: var(--zht-radius-pill);
  font-family: inherit; box-shadow: 0 4px 12px rgba(22,93,255,.28); transition: transform .12s;
}
.zht-publish-btn:hover { transform: translateY(-1px); }
.zht-vote-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--zht-gap); }
.zht-vote-card {
  background: var(--zht-card-solid); border: 1px solid var(--zht-line-2);
  border-radius: var(--zht-radius-lg); padding: 18px 20px; cursor: pointer;
  transition: transform .15s, box-shadow .15s, border-color .15s;
  display: flex; flex-direction: column; gap: 12px;
}
.zht-vote-card:hover { transform: translateY(-3px); box-shadow: var(--zht-shadow-hover); border-color: var(--zht-brand-soft); }
.zht-vote-card-top { display: flex; align-items: flex-start; gap: 14px; }
.zht-vote-count {
  flex: 0 0 auto; width: 58px; text-align: center;
  border: 1px solid var(--zht-line); border-radius: 10px; padding: 8px 4px;
  background: var(--zht-bg-soft);
}
.zht-vote-count b { display: block; font-size: 20px; color: var(--zht-brand); line-height: 1; }
.zht-vote-count span { font-size: 10.5px; color: var(--zht-ink-4); }
.zht-vote-title { font-size: 16px; font-weight: 800; margin: 0 0 6px; color: var(--zht-ink); }
.zht-vote-desc { font-size: 13px; color: var(--zht-ink-3); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.zht-vote-meta { font-size: 12px; color: var(--zht-ink-4); display: flex; align-items: center; gap: 10px; }
.zht-vote-meta .zht-stage-pill { padding: 2px 9px; border-radius: var(--zht-radius-pill); font-weight: 700; font-size: 11px; }

/* 四阶段进度条 */
.zht-steps { display: flex; align-items: center; gap: 0; }
.zht-step { flex: 1; text-align: center; position: relative; }
.zht-step::before {
  content: ""; position: absolute; top: 9px; left: -50%; width: 100%; height: 3px;
  background: var(--zht-line); z-index: 0;
}
.zht-step:first-child::before { display: none; }
.zht-step .zht-step-dot {
  position: relative; z-index: 1; width: 20px; height: 20px; border-radius: 50%;
  background: var(--zht-line); margin: 0 auto 5px; display: grid; place-items: center;
  font-size: 10px; color: #fff;
}
.zht-step .zht-step-label { font-size: 11px; color: var(--zht-ink-4); }
.zht-step.done::before { background: var(--zht-brand); }
.zht-step.done .zht-step-dot { background: var(--zht-brand); }
.zht-step.current .zht-step-dot { background: var(--zht-brand); box-shadow: 0 0 0 4px var(--zht-brand-soft); }
.zht-step.current .zht-step-label { color: var(--zht-brand); font-weight: 700; }

/* 弹窗 */
.zht-modal-mask {
  position: fixed; inset: 0; background: rgba(15,23,42,.5); z-index: 2000;
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.zht-modal-mask.is-open { display: flex; }
.zht-modal {
  background: var(--zht-bg); border-radius: var(--zht-radius-lg); width: 100%; max-width: 520px;
  max-height: 88vh; overflow-y: auto; box-shadow: 0 24px 60px rgba(0,0,0,.3);
}
.zht-modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--zht-line-2); }
.zht-modal-head h3 { margin: 0; font-size: 17px; font-weight: 800; }
.zht-modal-close { border: none; background: var(--zht-bg-soft); width: 32px; height: 32px; border-radius: 8px; cursor: pointer; font-size: 18px; color: var(--zht-ink-3); }
.zht-modal-body { padding: 20px 22px; }
.zht-field { margin-bottom: 16px; }
.zht-field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 7px; color: var(--zht-ink-2); }
.zht-field input, .zht-field textarea, .zht-field select {
  width: 100%; border: 1px solid var(--zht-line); border-radius: 8px; padding: 11px 13px;
  font-size: 14px; font-family: inherit; color: var(--zht-ink); background: var(--zht-bg);
  outline: none; transition: border-color .15s, box-shadow .15s;
}
.zht-field input:focus, .zht-field textarea:focus, .zht-field select:focus { border-color: var(--zht-brand); box-shadow: 0 0 0 3px var(--zht-brand-soft); }
.zht-field textarea { resize: vertical; min-height: 90px; }
.zht-modal-foot { padding: 14px 22px 20px; display: flex; gap: 10px; justify-content: flex-end; }
.zht-btn { border: none; cursor: pointer; font-family: inherit; font-weight: 700; font-size: 14px; padding: 10px 20px; border-radius: var(--zht-radius-pill); transition: transform .12s; }
.zht-btn-primary { background: var(--zht-brand); color: #fff; }
.zht-btn-primary:hover { transform: translateY(-1px); }
.zht-btn-ghost { background: var(--zht-bg-soft); color: var(--zht-ink-2); border: 1px solid var(--zht-line); }
.zht-toast { position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%); background: var(--zht-ink); color: #fff; padding: 11px 20px; border-radius: var(--zht-radius-pill); font-size: 13.5px; z-index: 3000; opacity: 0; transition: opacity .25s, transform .25s; pointer-events: none; }
.zht-toast.is-show { opacity: 1; transform: translateX(-50%) translateY(-4px); }

/* 投票详情页 */
.zht-detail-back { display: inline-flex; align-items: center; gap: 6px; color: var(--zht-ink-3); text-decoration: none; font-size: 13.5px; margin-bottom: 18px; }
.zht-detail-back:hover { color: var(--zht-brand); }
.zht-detail-card { background: var(--zht-card-solid); border: 1px solid var(--zht-line-2); border-radius: var(--zht-radius-lg); padding: 24px; margin-bottom: 22px; }
.zht-detail-title { font-size: 22px; font-weight: 800; margin: 0 0 12px; }
.zht-detail-desc { font-size: 14px; color: var(--zht-ink-2); line-height: 1.85; white-space: pre-wrap; }
.zht-detail-vote-row { display: flex; align-items: center; gap: 16px; margin: 20px 0; flex-wrap: wrap; }
.zht-detail-vote-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--zht-brand); color: #fff; border: none; cursor: pointer; font-weight: 700; font-size: 15px; padding: 12px 24px; border-radius: var(--zht-radius-pill); font-family: inherit; box-shadow: 0 4px 12px rgba(22,93,255,.28); }
.zht-detail-vote-btn:disabled { background: var(--zht-line); color: var(--zht-ink-4); box-shadow: none; cursor: default; }
.zht-detail-vote-btn.voted { background: var(--zht-bg-soft); color: var(--zht-ink-3); }
.zht-reply { border-left: 3px solid var(--zht-brand); background: var(--zht-bg-soft); padding: 12px 16px; border-radius: 0 8px 8px 0; margin-bottom: 12px; }
.zht-reply .zht-reply-meta { font-size: 12px; color: var(--zht-ink-4); margin-bottom: 4px; }
.zht-reply .zht-reply-text { font-size: 13.5px; color: var(--zht-ink-2); }

/* ============================ 更新日志 ============================ */
.zht-log { max-width: 820px; margin: 0 auto; }
.zht-log-item { display: flex; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--zht-line-2); }
.zht-log-date { flex: 0 0 110px; }
.zht-log-ver { font-size: 15px; font-weight: 800; color: var(--zht-brand); }
.zht-log-day { font-size: 12px; color: var(--zht-ink-4); }
.zht-log-body { flex: 1; }
.zht-log-body h3 { font-size: 16px; font-weight: 800; margin: 0 0 8px; }
.zht-log-body ul { margin: 0; padding-left: 18px; color: var(--zht-ink-2); font-size: 13.5px; line-height: 1.9; }
.zht-log-tag { display: inline-block; font-size: 10.5px; font-weight: 700; padding: 2px 8px; border-radius: 5px; margin-left: 8px; vertical-align: middle; }
.zht-log-tag.new { background: #DCFCE7; color: #16A34A; }
.zht-log-tag.fix { background: #FEF3C7; color: #D97706; }
.zht-log-tag.opt { background: var(--zht-brand-soft); color: var(--zht-brand); }

/* ============================ 合规长文档（隐私/广告/免责） ============================ */
.zht-doc-wrap { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px; align-items: start; }
.zht-doc-toc {
  position: sticky; top: calc(var(--zht-nav-h) + 24px);
  background: var(--zht-card); border: 1px solid var(--zht-line); border-radius: var(--zht-radius);
  padding: 16px 18px;
}
.zht-doc-toc h4 { margin: 0 0 10px; font-size: 13px; font-weight: 800; color: var(--zht-ink-3); letter-spacing: .04em; }
.zht-doc-toc a {
  display: block; padding: 6px 0; font-size: 13px; color: var(--zht-ink-2);
  text-decoration: none; line-height: 1.5; transition: color .18s ease;
}
.zht-doc-toc a:hover { color: var(--zht-brand); }
.zht-doc {
  background: var(--zht-card); border: 1px solid var(--zht-line);
  border-radius: var(--zht-radius); padding: 32px 36px;
  font-size: 14px; line-height: 1.95; color: var(--zht-ink-2);
}
.zht-doc-meta {
  display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center;
  padding-bottom: 18px; margin-bottom: 22px; border-bottom: 1px solid var(--zht-line-2);
  font-size: 12.5px; color: var(--zht-ink-4);
}
.zht-doc-meta b { color: var(--zht-ink-2); font-weight: 700; }
.zht-doc h2 {
  font-size: 17px; font-weight: 800; color: var(--zht-ink-1);
  margin: 30px 0 12px; padding-left: 11px; border-left: 3px solid var(--zht-brand);
  line-height: 1.5; scroll-margin-top: calc(var(--zht-nav-h) + 20px);
}
.zht-doc h2:first-child { margin-top: 0; }
.zht-doc h3 { font-size: 14.5px; font-weight: 700; color: var(--zht-ink-1); margin: 20px 0 8px; }
.zht-doc p { margin: 0 0 12px; }
.zht-doc strong { color: var(--zht-ink-1); font-weight: 700; }
.zht-doc ul, .zht-doc ol { margin: 0 0 14px; padding-left: 22px; }
.zht-doc li { margin-bottom: 6px; }
.zht-doc a { color: var(--zht-brand); text-decoration: none; }
.zht-doc a:hover { text-decoration: underline; }
.zht-doc table { width: 100%; border-collapse: collapse; margin: 8px 0 18px; font-size: 13px; }
.zht-doc th, .zht-doc td { border: 1px solid var(--zht-line); padding: 9px 12px; text-align: left; vertical-align: top; }
.zht-doc th { background: var(--zht-bg-soft); font-weight: 700; color: var(--zht-ink-1); }
.zht-doc-tip {
  background: var(--zht-brand-soft); border-left: 3px solid var(--zht-brand);
  border-radius: 0 8px 8px 0; padding: 14px 16px; margin: 0 0 20px;
  font-size: 13.5px; color: var(--zht-ink-2);
}
.zht-doc-tip strong { color: var(--zht-brand); }
.zht-doc-sign { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--zht-line-2); font-size: 13px; color: var(--zht-ink-3); }

/* ============================ 响应式 ============================ */
@media (max-width: 1080px) {
  .zht-grid { grid-template-columns: repeat(2, 1fr); }
  .zht-layout { grid-template-columns: minmax(0,1fr) 240px; }
}
@media (max-width: 920px) {
  .zht-doc-wrap { grid-template-columns: 1fr; }
  .zht-doc-toc { position: static; }
  .zht-doc { padding: 24px 20px; }
  .zht-hero { grid-template-columns: 1fr; }
  .zht-layout { grid-template-columns: 1fr; }
  .zht-side { display: none; }            /* 移动端隐藏右侧栏 */
  .zht-menu { display: none; }
  .zht-search { display: none; }
  .zht-menu-toggle { display: grid; }
  .zht-nav-right .zht-contact-btn span { display: none; }
  .zht-vote-grid { grid-template-columns: 1fr; }
  .zht-foot-inner { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 560px) {
  :root { --zht-page-x: 16px; --zht-nav-h: 56px; }
  .zht-grid { grid-template-columns: 1fr; }   /* 手机单列铺满 */
  .zht-hero-title { font-size: 22px; }
  .zht-slide { padding: 26px 28px; }
  .zht-slide h3 { font-size: 19px; }
  .zht-page-head h1 { font-size: 23px; }
  .zht-vote-bar { gap: 10px; }
  .zht-publish-btn { width: 100%; margin-left: 0; justify-content: center; }
}

/* ================= 工具页右上角互动条（全站统一，所有工具页通用） ================= */
/* 收藏 / 分享 / 反馈 按钮在上，2万人觉得有用 / 16.8万人使用 计数在下，皆可点击递增 */
.tool-actions {
  width: 100%;
  margin: 4px 0 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
.tool-actions .ta-btns { display: inline-flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.tool-actions .ta-counters { display: inline-flex; gap: 18px; flex-wrap: wrap; justify-content: flex-end; margin-top: 2px; }
.tool-actions .ta-counter {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 13px; color: #64748B; line-height: 1.4;
  cursor: pointer; user-select: none; border: none; background: none; padding: 0; font-family: inherit;
  transition: color .15s;
}
.tool-actions .ta-counter:hover { color: #2563eb; text-decoration: underline; }
.tool-actions .ta-counter i { color: #2563eb; font-size: 14px; }
.tool-actions .ta-counter b { color: #111827; font-weight: 700; font-variant-numeric: tabular-nums; }
.tool-actions .ta-btn {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid #E2E8F0; background: #fff; color: #334155;
  border-radius: 999px; padding: 7px 13px; font-size: 13px; cursor: pointer;
  transition: all .15s; font-family: inherit; white-space: nowrap;
}
.tool-actions .ta-btn:hover { color: #2563eb; border-color: #2563eb; background: #EFF6FF; }
.tool-actions .ta-btn.is-active { color: #2563eb; border-color: #2563eb; background: #EFF6FF; }
/* 移动端：居中排列，避免顶栏拥挤 */
@media (max-width: 600px) {
  .tool-actions { align-items: center; }
  .tool-actions .ta-btns, .tool-actions .ta-counters { justify-content: center; }
}

/* ================= 首页电脑壁纸展示组件 ================= */
.zht-wallpapers { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.zht-wp-stage {
  position: relative; overflow: hidden;
  border-radius: var(--zht-radius-lg);
  border: 1px solid var(--zht-line-2);
  box-shadow: var(--zht-shadow);
  aspect-ratio: 16 / 8.2;
  background: var(--zht-bg-soft);
}
.zht-wp-img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: opacity .4s ease;
}
.zht-wp-loading {
  position: absolute; inset: 0; z-index: 4;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 13px; color: var(--zht-ink-3); background: var(--zht-bg-soft);
}
.zht-wp-stage.is-error .zht-wp-loading { cursor: pointer; color: var(--zht-ink-2); }
.zht-wp-overlay {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 10px;
  padding: 14px 16px;
  background: linear-gradient(to top, rgba(0,0,0,.62), rgba(0,0,0,0) 100%);
}
.zht-wp-meta { display: flex; flex-direction: column; gap: 2px; color: #fff; min-width: 0; }
.zht-wp-author { font-size: 13px; font-weight: 600; }
.zht-wp-author a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.5); }
.zht-wp-author a:hover { border-bottom-color: #fff; }
.zht-wp-src { font-size: 11px; opacity: .82; }
.zht-wp-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.zht-wp-btn {
  display: inline-flex; align-items: center; gap: 6px;
  border: none; cursor: pointer; font-family: inherit; font-size: 13px; color: #fff;
  background: rgba(255,255,255,.18); backdrop-filter: blur(4px);
  padding: 8px 12px; border-radius: 999px; text-decoration: none;
  transition: background .15s, filter .15s, transform .15s;
}
.zht-wp-btn:hover { background: rgba(255,255,255,.34); }
.zht-wp-dl { background: var(--zht-brand); }
.zht-wp-dl:hover { filter: brightness(1.08); }
.zht-wp-refresh.is-spin i { animation: zht-wp-spin .6s linear; }
@keyframes zht-wp-spin { from { transform: rotate(0); } to { transform: rotate(360deg); } }

.zht-wp-thumbs { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; }
.zht-wp-thumb {
  position: relative; padding: 0; cursor: pointer;
  border: 2px solid transparent; border-radius: 8px; overflow: hidden;
  aspect-ratio: 16 / 10; background: var(--zht-bg-soft);
  transition: border-color .15s, transform .15s;
}
.zht-wp-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.zht-wp-thumb:hover { transform: translateY(-2px); }
.zht-wp-thumb.is-active { border-color: var(--zht-brand); }

@media (max-width: 920px) {
  .zht-wp-thumbs { grid-template-columns: repeat(6, 1fr); }
}
@media (max-width: 560px) {
  .zht-wp-thumbs { grid-template-columns: repeat(5, 1fr); }
  .zht-wp-overlay { padding: 10px 12px; }
  .zht-wp-btn { padding: 7px 10px; font-size: 12px; }
}

/* =====================================================================
 * 客服 / 反馈 / 关于 弹窗（.sb-modal-*）
 * 说明：旧版由 style.css 承载这些样式；新版首页 / 文档页仅加载
 * redesign.css，原先缺 .sb-modal-overlay 的隐藏规则，导致该空弹窗
 * 容器在首页底部以裸 DOM 形式露出（用户所见"多余的模态框代码"）。
 * 此处补齐隐藏与弹窗样式：未打开时完全不可见（display:none），
 * 打开后居中显示，使「联系客服 / 意见反馈 / 关于我们」弹窗在
 * 新版主题下正常可用，且不残留任何可见元素。
 * ===================================================================== */
.sb-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(2px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.sb-modal-overlay.is-open { display: flex; }
.sb-modal {
  width: 100%;
  max-width: 420px;
  max-height: 86vh;
  background: #fff;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 60px -18px rgba(15, 23, 42, 0.45);
  animation: sbPop .18s ease;
}
@keyframes sbPop { from { transform: translateY(10px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
.sb-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid #f1f5f9;
}
.sb-modal-title { font-weight: 700; color: #111827; font-size: 16px; }
.sb-modal-x { border: none; background: none; font-size: 18px; color: #94a3b8; cursor: pointer; line-height: 1; }
.sb-modal-x:hover { color: #475569; }
.sb-modal-body { padding: 18px; overflow-y: auto; }
.sb-empty { color: #94a3b8; font-size: 14px; text-align: center; padding: 10px 0; }
.sb-tip { color: #64748b; font-size: 13px; margin-bottom: 12px; }
