/* 站点级顶部布局:左=标题+三工具按钮,右=当前工具名/功能+激活按钮。
   独立文件,叠加在 styles.css 之后,避免改动公共样式。三页共用。 */

.topbar {
  flex-wrap: wrap;
  align-items: center;
}

/* 品牌区改为竖排:标题在上,工具按钮在下 */
.brand-block {
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

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

.site-title-row h1 {
  margin: 0;
  font-size: 20px;
  line-height: 1.1;
}

/* 三工具入口要像主功能切换,不能像弱导航。 */
.tool-switcher {
  gap: 8px;
  padding: 7px;
  margin: 2px 0 0;
  background: rgba(255, 255, 255, 0.075);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 10px 28px rgba(0, 0, 0, 0.18);
}

.tool-tab {
  min-height: 38px;
  padding: 0 18px;
  color: rgba(255, 255, 255, 0.76);
  background: rgba(10, 27, 24, 0.84);
  border: 1px solid rgba(149, 184, 171, 0.3);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease,
    transform 0.15s ease;
}

.tool-tab:hover {
  color: #ffffff;
  background: rgba(22, 55, 48, 0.96);
  border-color: rgba(255, 255, 255, 0.42);
  transform: translateY(-1px);
}

.tool-tab.active {
  color: #7a4d08;
  background: linear-gradient(180deg, #ffffff 0%, #fff7e6 100%);
  border-color: rgba(255, 213, 130, 0.9);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.28),
    0 8px 20px rgba(0, 0, 0, 0.2);
}

/* 右侧:工具名/功能 + 激活按钮 */
.topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
}

.tool-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  min-width: 0;
}

.tool-meta-name {
  font-size: 15px;
  line-height: 1.2;
  color: var(--ink-on-dark, #ffffff);
}

.tool-meta-desc {
  font-size: 12px;
  line-height: 1.3;
  color: var(--muted-on-dark, #9bb0a8);
  max-width: 380px;
}

@media (max-width: 760px) {
  .tool-switcher {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .tool-tab {
    justify-content: center;
    min-height: 36px;
    padding: 0 8px;
    font-size: 13px;
  }
  .tool-meta {
    display: none;
  }
  .topbar-right {
    margin-left: 0;
  }
}
