/* ============================================================
   TWCG 全站统一导航与页脚 · site-nav.css（自包含，不依赖其他 css）
   说明：本文件只为 site-nav.js 注入的 DOM 提供样式；
         前缀 ttool / tft 避免与各工具页自带样式冲突。
   视觉对齐 design-tokens：工具条参考桑树小站（左工具名/右返回按钮），
   页脚 #234012 深绿。
   ============================================================ */

/* ---------- 工具页顶部细条（注入于每页顶部） ----------
   参考桑树小站工具页：浅色细条，左=图标+工具名（深绿），
   右="Tool Center ←" 返回按钮（浅灰底、灰描边）。 */
.ttool {
  position: sticky;
  top: 0;
  z-index: 1200;
  background: #fbfbf8;
  border-bottom: 1px solid #e1e8e3;
  box-shadow: 0 1px 2px rgba(22, 32, 26, .04);
}
.ttool__in {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.ttool__name {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 600;
  color: #2d5016;
  letter-spacing: .01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ttool__name svg { width: 16px; height: 16px; flex: none; }
.ttool__back {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: none;
  font-size: 12.5px;
  font-weight: 500;
  color: #55554e;
  background: #f4f4ef;
  border: 1px solid #d9d9d2;
  border-radius: 6px;
  padding: 5px 12px;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color 150ms ease-out, color 150ms ease-out;
}
.ttool__back:hover {
  background: #e9e9e1;
  border-color: #c9c9c0;
  color: #2d5016;
  text-decoration: none;
}
.ttool__back:visited { color: #55554e; }

/* ---------- 页脚站点地图（全站一致） ---------- */
.tft {
  background: #234012;
  color: rgba(255, 255, 255, .86);
  margin-top: 64px;
}
.tft__in {
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 20px 8px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}
.tft h4 {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, .95);
  letter-spacing: .02em;
}
.tft ul { list-style: none; margin: 0; padding: 0; }
.tft li { margin-bottom: 6px; }
.tft a { color: rgba(255, 255, 255, .74); font-size: 13px; text-decoration: none; line-height: 1.7; }
.tft a:hover { color: #fff; text-decoration: underline; }
.tft__brand { font-size: 16px; font-weight: 600; color: #fff; }
.tft__desc { font-size: 12.5px; color: rgba(255, 255, 255, .6); line-height: 1.8; margin: 8px 0 12px; max-width: 34ch; }
.tft__cite { font-size: 11.5px; color: rgba(255, 255, 255, .5); line-height: 1.7; }
.tft__bottom {
  border-top: 1px solid rgba(255, 255, 255, .14);
  margin-top: 20px;
  padding: 14px 20px;
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, .55);
}
.tft__bottom a { color: rgba(255, 255, 255, .7); text-decoration: none; }
.tft__bottom a:hover { color: #fff; text-decoration: underline; }

@media (max-width: 1024px) {
  .tft__in { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .ttool__in { padding: 0 14px; min-height: 42px; }
  .tft__in { grid-template-columns: 1fr; }
}
