/* ==========================================================================
   TransWeb · 站点共享样式（site.css）
   --------------------------------------------------------------------------
   四个页面共用：index.html / agentHub.html / skillHub.html / workflow.html

   本文件取代原先叠加的三层样式：
     common/govuk.css → common/hara-site.css → common/on-staff.css
   三层里的纸墨令牌、页眉、导航、语言切换、按钮、阶段横幅、页脚、
   Hub / Workflow 共享组件已合并到这里，并按“基础 → 组件 → 站点皮肤”
   的顺序排列，避免同一属性在多层之间反复覆盖。

   页面专属样式不再写入公共文件：
     - 首页：内联 <style>（页面布局、首屏、各内容区块）
     - Agent / Skill 广场：common/hub.css（两页共用）
     - 工作流：common/workflow.css

   加载顺序：
     site.css → 页面专属样式
   ========================================================================== */

/* 字体统一走系统栈（--sans / --mono）。
   原先的两条 Google Fonts @import 会阻塞首屏（实测每个 ~1.07s），已移除；
   如需 Inter / JetBrains Mono，请自托管子集并在 <head> 里 preload。 */

/* --------------------------------------------------------------------------
   1. 基础排版（最终令牌见文件末尾「站点皮肤层」）
   -------------------------------------------------------------------------- */

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

html body {
  margin: 0;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body p {
  margin-top: 0;
  margin-bottom: 20px;
}

body p:last-child {
  margin-bottom: 0;
}

h1, h2, h3, h4, h5, h6, .hero-title, .section-title, .case-title, .audience-title, .module-title, .wf-hero__title, .wf-card__title, .wf-final__title, .hub-title, .hub-empty h2, .doc-title, .hero-presets__title {
  font-family: var(--gds-font) !important;
  color: var(--gds-black) !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
}

/* GOV.UK 字阶：H1 48 / H2 36 / H3 24 */
.hero-title, .wf-hero__title, .hub-title {
  font-size: clamp(2rem, 5vw, 3rem) !important;
  line-height: 1.09 !important;
  margin-top: 30px;
  margin-bottom: 30px;
}

.section-title, .wf-main .text-center.max-w-3xl h2, .hub-empty h2, .wf-final__title, .hero-presets__title {
  font-size: clamp(1.5rem, 3vw, 2.25rem) !important;
  line-height: 1.2 !important;
  margin-bottom: 20px;
}

.case-title, .audience-title, .module-title, .wf-card__title, .doc-title {
  font-size: 1.5rem !important;
  line-height: 1.25 !important;
}

/* --------------------------------------------------------------------------
   3. 链接与焦点
   -------------------------------------------------------------------------- */

a {
  color: var(--gds-blue);
  text-decoration: underline;
  text-decoration-thickness: max(1px, .0625rem);
  text-underline-offset: .1578em;
}

a:hover {
  color: var(--gds-dark-blue);
  text-decoration-thickness: max(3px, .1875rem);
  text-decoration-skip-ink: none;
}

a:visited {
  color: #4c2c92;
}

a:active {
  color: var(--gds-black);
}

/* 仅键盘可见的焦点：黄色底 + 黑色下边线，与 GOV.UK Frontend 一致 */
a:focus-visible, button:focus-visible, summary:focus-visible, [role="button"]:focus-visible, [tabindex]:focus-visible {
  outline: var(--gds-focus-width) solid transparent;
  outline-offset: 0;
  background-color: var(--gds-yellow);
  color: var(--gds-black);
  box-shadow: 0 -2px var(--gds-yellow), 0 4px var(--gds-black);
  text-decoration: none;
}

input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: var(--gds-focus-width) solid var(--gds-yellow);
  outline-offset: 0;
  background-color: #ffffff;
  color: var(--gds-black);
  box-shadow: inset 0 0 0 2px var(--gds-black);
}

::selection {
  background: var(--gds-yellow);
  color: var(--gds-black);
}

/* --------------------------------------------------------------------------
   4. 跳转链接、宽度容器、阶段横幅、面包屑
   -------------------------------------------------------------------------- */

.footer, .wf-footer, .hub-footer, .section {
  max-width: var(--gds-width) !important;
}

.govuk-warning-text + .govuk-phase-banner {
  border-top: 1px solid var(--gds-border);
}

.govuk-breadcrumbs {
  margin-top: 15px;
  margin-bottom: 10px;
  font-size: 1rem;
  line-height: 1.25;
}

.govuk-breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
}

.govuk-breadcrumbs__list-item {
  position: relative;
  margin-left: 10px;
  padding-left: 15.655px;
  margin-bottom: 5px;
}

.govuk-breadcrumbs__list-item:first-child {
  margin-left: 0;
  padding-left: 0;
}

.govuk-breadcrumbs__list-item:not(:first-child)::before {
  content: "";
  position: absolute;
  top: 2px;
  left: -1px;
  width: 7px;
  height: 7px;
  border: solid;
  border-width: 1px 1px 0 0;
  border-color: var(--gds-dark-grey);
  transform: rotate(45deg);
}

.govuk-breadcrumbs__link {
  color: var(--gds-blue);
}

/* --------------------------------------------------------------------------
   5. 登录组件（页眉右侧）
   外观由 static/components/loginBar.vue 的 ON STAFF 层维护。
   这里不再声明背景、描边与字号，避免 ID 选择器压过组件样式。
   -------------------------------------------------------------------------- */

/* --------------------------------------------------------------------------
   6. 服务导航（首页二级导航 / 工作流页内导航）
   -------------------------------------------------------------------------- */

/* --------------------------------------------------------------------------
   7. 正文容器与区块
   -------------------------------------------------------------------------- */

.section {
  width: 100% !important;
  max-width: var(--gds-width) !important;
  margin: 0 auto !important;
  padding: 60px 15px !important;
  scroll-margin-top: 20px;
}

@media (min-width: 641px) {
  .section {
    padding: 80px 30px !important;
  }
}

.section-header {
  max-width: 720px;
}

.hero {
  min-height: 0 !important;
  padding: 48px 24px 56px !important;
  background: #ffffff;
}

.hero-presets {
  margin-top: 88px;
  padding-top: 40px;
  scroll-margin-top: 20px;
}

.eyebrow, .hero-eyebrow, .wf-eyebrow, .hub-eyebrow {
  color: var(--gds-secondary-text) !important;
  font-size: 1rem !important;
  font-weight: 700;
  letter-spacing: .05em !important;
  line-height: 1.25;
  text-transform: uppercase;
}

.hero-subtitle, .section-description, .wf-hero__desc, .hub-desc, .wf-main .text-center.max-w-3xl p, .wf-final__desc, .hub-empty p {
  color: var(--gds-black) !important;
  font-size: 1.1875rem !important;
  line-height: 1.5 !important;
  letter-spacing: 0 !important;
  max-width: 680px;
}

.hero-subtitle {
  margin-top: 0;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.hero-subtitle span {
  display: inline;
}

.hero-title {
  max-width: 960px;
  text-align: center;
  font-weight: 700 !important;
  text-wrap: balance;
}

.hero-actions {
  margin-top: 30px;
  gap: 15px;
}

.preset-question {
  font-size: 1.1875rem !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
}

.preset-meta, .preset-index, .case-number, .process-number, .faq-index, .social-proof, .hero-presets__desc, .hero-trust, .comparison, .compare-badge, .compare-title, .compare-text, .audience-kicker, .audience-desc, .audience-list li, .audience-link, .deploy-block__caption, .deploy-config__index, .deploy-config__badge, .deploy-config__kicker, .deploy-config__overview, .deploy-config__note, .deploy-activate__hint, .deploy-tips__item, .wf-eyebrow, .wf-hero__meta, .wf-card__category, .wf-card__desc, .wf-card__flow-label, .wf-card__nodes, .wf-card__footer, .wf-card__run, .hub-cat, .hub-cat__count, .hub-meta, .hub-empty p {
  font-size: 1rem !important;
  letter-spacing: 0 !important;
  line-height: 1.5 !important;
}

.social-proof {
  margin-top: 30px;
  color: var(--gds-secondary-text) !important;
}

/* 嵌入文本：GDS inset text */
.hero-trust {
  margin-top: 25px;
  padding: 15px !important;
  border: 0 !important;
  border-left: 10px solid var(--gds-border) !important;
  background: transparent !important;
  color: var(--gds-black) !important;
  font-size: 1rem !important;
  text-align: left;
}

/* --------------------------------------------------------------------------
   8. 按钮
   -------------------------------------------------------------------------- */

.audience-cta, .generate-btn, .deploy-more__btn, .hero-cta-alt, .audience-cta--ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 18px !important;
  border: 2px solid transparent !important;
  border-radius: 0 !important;
  background: var(--gds-green) !important;
  color: #ffffff !important;
  font-family: var(--gds-font) !important;
  font-size: 1.1875rem !important;
  font-weight: 400 !important;
  line-height: 1.19 !important;
  letter-spacing: 0 !important;
  text-decoration: none !important;
  box-shadow: 0 2px 0 var(--gds-green-shadow) !important;
  transform: none !important;
  transition: background-color .15s ease, box-shadow .15s ease;
}

.audience-cta:hover, .generate-btn:hover, .deploy-more__btn:hover {
  background: var(--gds-green-hover) !important;
  color: #ffffff !important;
  box-shadow: 0 2px 0 var(--gds-green-shadow) !important;
  transform: none !important;
}

.audience-cta:active, .generate-btn:active {
  top: 2px;
  box-shadow: none !important;
}

.audience-cta:focus-visible, .generate-btn:focus-visible, .deploy-more__btn:focus-visible {
  background-color: var(--gds-yellow) !important;
  color: var(--gds-black) !important;
  border-color: var(--gds-yellow) !important;
  box-shadow: 0 2px 0 var(--gds-black) !important;
}

/* 次要按钮：GDS secondary button */
.audience-cta--ghost {
  background: var(--gds-light-grey) !important;
  color: var(--gds-black) !important;
  border-color: transparent !important;
  box-shadow: 0 2px 0 #929191 !important;
}

.audience-cta--ghost:hover {
  background: #dbdad9 !important;
  color: var(--gds-black) !important;
}

/* 文字链接式操作 */
.hero-cta-alt, .audience-link {
  display: inline;
  min-height: 0;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--gds-blue) !important;
  font-size: 1.1875rem !important;
  line-height: 1.5 !important;
  text-decoration: underline !important;
  box-shadow: none !important;
}

.hero-cta-alt:hover, .audience-link:hover {
  color: var(--gds-dark-blue) !important;
  text-decoration-thickness: 3px !important;
}

/* --------------------------------------------------------------------------
   9. 卡片与列表
   -------------------------------------------------------------------------- */

.preset-card, .case, .audience-card, .process-item, .pricing, .compare-side, .module-card, .deploy-block, .deploy-config__item, .wf-card, .wf-window, .hub-search, .panel {
  background: #ffffff !important;
  border: 1px solid var(--gds-border) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.preset-card:hover, .case:hover, .audience-card:hover, .wf-card:hover, .module-card:hover {
  border-color: var(--gds-black) !important;
  box-shadow: none !important;
  transform: none !important;
}

.preset-card:focus-visible {
  background: #ffffff !important;
  outline: 4px solid var(--gds-yellow);
  outline-offset: 0;
  box-shadow: 0 0 0 2px var(--gds-black) !important;
}

.preset-card, .preset-card:visited {
  color: var(--gds-black) !important;
  text-decoration: none !important;
}

.preset-card:hover .preset-question {
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: .15em;
}

.preset-arrow {
  color: var(--gds-blue) !important;
}

.case-desc, .audience-desc, .module-desc, .wf-card__desc {
  color: var(--gds-black) !important;
  font-size: 1.1875rem !important;
  line-height: 1.5 !important;
  letter-spacing: 0 !important;
}

.wf-card__title {
  color: var(--gds-black) !important;
  text-decoration: none;
}

/* 工作流卡片里的「免费运行」按 GDS 链接处理 */
.wf-card__run {
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   10. 表单
   -------------------------------------------------------------------------- */

.govuk-form-group {
  margin-bottom: 20px;
}

.govuk-label {
  display: block;
  margin-bottom: 10px;
  font-size: 1.1875rem;
  font-weight: 400;
  color: var(--gds-black);
}

.govuk-hint {
  margin-bottom: 15px;
  color: var(--gds-secondary-text);
  font-size: 1.1875rem;
}

.govuk-input {
  width: 100%;
  height: 40px;
  margin-top: 0;
  padding: 5px;
  border: 2px solid var(--gds-black);
  border-radius: 0;
  background-color: #ffffff;
  font-size: 1.1875rem;
  line-height: 1.25;
  color: var(--gds-black);
}

.govuk-input:focus {
  outline: 3px solid var(--gds-yellow);
  outline-offset: 0;
  box-shadow: inset 0 0 0 2px var(--gds-black);
}

.govuk-error-message {
  margin-bottom: 15px;
  color: var(--gds-red);
  font-size: 1.1875rem;
  font-weight: 700;
  line-height: 1.25;
}

.govuk-form-group--error .govuk-input {
  border-color: var(--gds-red);
}

.govuk-error-summary {
  margin-bottom: 30px;
  padding: 20px;
  border: 5px solid var(--gds-red);
}

.govuk-error-summary__title {
  margin: 0 0 20px;
  font-size: 1.5rem;
  font-weight: 700;
}

.govuk-error-summary__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.govuk-error-summary__list a {
  color: var(--gds-red);
  font-weight: 700;
}

/* 搜索框按 GDS 输入框处理，覆盖各页原有细边框 */
#search-input, .hub-search #search-input, .wf-main input[type="text"] {
  height: 44px !important;
  border: 2px solid var(--gds-black) !important;
  border-radius: 0 !important;
  background: #ffffff !important;
  color: var(--gds-black) !important;
  font-size: 1.1875rem !important;
  line-height: 1.25;
}

#search-input:focus, .hub-search #search-input:focus {
  border-color: var(--gds-black) !important;
  box-shadow: inset 0 0 0 2px var(--gds-black) !important;
  outline: 3px solid var(--gds-yellow);
  outline-offset: 0;
}

#search-input::placeholder {
  color: var(--gds-secondary-text);
  opacity: 1;
}

.hub-search kbd {
  display: none !important;
}

/* --------------------------------------------------------------------------
   11. 侧栏分类、标签与元信息
   -------------------------------------------------------------------------- */

.hub-cat {
  padding: 10px 0 !important;
  color: var(--gds-black) !important;
  text-align: left;
  text-decoration: none !important;
  border-bottom: 1px solid var(--gds-border) !important;
}

.hub-cat:hover {
  color: var(--gds-dark-blue) !important;
  text-decoration: none !important;
}

.hub-cat.is-active {
  color: var(--gds-black) !important;
  font-weight: 700;
  padding-left: 10px !important;
  border-left: 5px solid var(--gds-blue);
}

.hub-cat__count {
  color: var(--gds-secondary-text) !important;
}

.hub-meta {
  border-top: 1px solid var(--gds-border);
  color: var(--gds-secondary-text) !important;
}

/* SkillHub 卡片由 Tailwind 工具类渲染，统一为 GDS 卡片 */
#agent-grid > article {
  background: #ffffff !important;
  border: 1px solid var(--gds-border) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 25px !important;
  color: var(--gds-black) !important;
}

#agent-grid > article:hover {
  border-color: var(--gds-black) !important;
  box-shadow: none !important;
  transform: none !important;
}

#agent-grid h3 {
  color: var(--gds-black) !important;
  font-family: var(--gds-font) !important;
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
}

#agent-grid p {
  color: var(--gds-black) !important;
  font-size: 1.1875rem !important;
  line-height: 1.5 !important;
}

#agent-grid .text-xs, #agent-grid .text-sm, #agent-grid [class*="text-slate-400"], #agent-grid [class*="text-slate-500"] {
  font-size: 1rem !important;
  color: var(--gds-secondary-text) !important;
}

#agent-grid span[class*="bg-emerald"] {
  background: transparent !important;
  border: 1px solid var(--gds-border);
  color: var(--gds-black) !important;
  font-size: 1rem !important;
  border-radius: 0 !important;
}

/* 分类 chip */
.hub-cat-chip {
  border: 1px solid var(--gds-border) !important;
  border-radius: 0 !important;
  background: #ffffff !important;
  color: var(--gds-blue) !important;
  font-size: 1rem !important;
  padding: 6px 10px !important;
  text-decoration: none !important;
}

.hub-cat-chip:hover,
.hub-cat-chip:focus-visible,
.hub-cat-chip.is-active {
  text-decoration: none !important;
}

.hub-cat-chip.is-active {
  background: var(--gds-black) !important;
  color: #ffffff !important;
  border-color: var(--gds-black) !important;
}

/* --------------------------------------------------------------------------
   12. 表格、详情、摘要列表
   -------------------------------------------------------------------------- */

.govuk-table, .wf-main details table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.1875rem;
}

.govuk-table th, .govuk-table td, .wf-main details table th, .wf-main details table td {
  padding: 10px 20px 10px 0;
  border-bottom: 1px solid var(--gds-border);
  text-align: left;
  vertical-align: top;
}

.govuk-table th, .wf-main details table th {
  font-weight: 700;
}

.govuk-summary-list {
  margin: 0 0 30px;
  font-size: 1.1875rem;
}

.govuk-summary-list__row {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding: 15px 0;
  border-bottom: 1px solid var(--gds-border);
}

.govuk-summary-list__key {
  width: 35%;
  font-weight: 700;
}

.govuk-summary-list__value {
  flex: 1;
}

.govuk-inset-text {
  margin: 30px 0;
  padding: 15px;
  border-left: 10px solid var(--gds-border);
  color: var(--gds-black);
  font-size: 1.1875rem;
}

.govuk-warning-text {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  font-size: 1.1875rem;
  font-weight: 700;
}

.govuk-warning-text__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 35px;
  height: 35px;
  border: 3px solid var(--gds-black);
  border-radius: 50%;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
}

.govuk-panel {
  margin-bottom: 30px;
  padding: 35px;
  border: 5px solid var(--gds-green);
  text-align: center;
}

.govuk-panel__title {
  margin: 0 0 20px;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.25;
}

.govuk-details {
  margin-bottom: 20px;
  font-size: 1.1875rem;
}

.govuk-details__summary {
  display: inline-block;
  padding-left: 25px;
  color: var(--gds-blue);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: .1578em;
}

/* --------------------------------------------------------------------------
   13. 页脚（GDS footer）
   -------------------------------------------------------------------------- */

/* --------------------------------------------------------------------------
   14. 法律文档浮层
   -------------------------------------------------------------------------- */

.doc-eyebrow {
  color: var(--gds-secondary-text) !important;
  font-size: 1rem !important;
  font-weight: 700;
  letter-spacing: .05em !important;
}

.doc-title {
  margin-top: 10px;
}

.doc-date {
  color: var(--gds-secondary-text) !important;
  font-size: 1rem !important;
  line-height: 1.5 !important;
  letter-spacing: 0 !important;
}

.doc-section h3 {
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  margin-top: 30px;
}

.doc-section p, .doc-body p {
  color: var(--gds-black) !important;
  font-size: 1.1875rem !important;
  line-height: 1.5 !important;
  letter-spacing: 0 !important;
}

.doc-row-label {
  color: var(--gds-black) !important;
  font-size: 1rem !important;
  font-weight: 700;
}

.doc-row-value {
  color: var(--gds-black) !important;
  font-size: 1.1875rem !important;
  line-height: 1.5 !important;
}

.doc-row-value em {
  color: var(--gds-secondary-text) !important;
  font-size: 1rem !important;
  font-style: normal;
}

.copy-btn {
  color: var(--gds-blue) !important;
  font-size: 1.1875rem !important;
  text-decoration: underline;
}

.copy-hint {
  color: var(--gds-secondary-text) !important;
  font-size: 1rem !important;
}

/* --------------------------------------------------------------------------
   15. 可访问性辅助类
   -------------------------------------------------------------------------- */

.govuk-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  border: 0 !important;
  white-space: nowrap !important;
}

.govuk-\!-margin-bottom-0 {
  margin-bottom: 0 !important;
}

/* 尊重「减少动态效果」的系统设置 */
@media (prefers-reduced-motion: reduce) {

  html, .contentItemArea {
    scroll-behavior: auto !important;
  }

  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* 窄屏下保证 320px 仍可回流阅读 */
@media (max-width: 400px) {

  .hero, .section {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
}

/* --------------------------------------------------------------------------
   16. 打印
   -------------------------------------------------------------------------- */

@media print {

  .floating-toolbar, .toolbar-window {
    display: none !important;
  }

  body {
    color: #000000;
    background: #ffffff;
  }

  a {
    color: #000000;
    text-decoration: underline;
  }

  .hero, .section {
    padding: 0 !important;
  }
}

/* --------------------------------------------------------------------------
   17. 三页共用的布局修正
   -------------------------------------------------------------------------- */

/* 页眉改为随文档流滚动后，不再需要为固定页眉预留顶部内边距 */
body {
  padding-top: 0 !important;
}

/* 工作流页：hero 与正文同处 main 地标内，仍保持整页纵向伸展 */
.wf-page-main {
  display: flex;
  flex-direction: column;
  flex: 1 0 auto;
  width: 100%;
}

.wf-page-main > .wf-main {
  flex: 1 0 auto;
}

/* 首页内容区保留独立滚动，但页眉不再固定 */
.contentItemArea {
  padding-top: 0 !important;
}

/* 面包屑与页面标题之间留出 GDS 间距 */
.hub-main > .govuk-breadcrumbs {
  margin-top: 0;
  margin-bottom: 20px;
}

/* 移动端页眉：品牌与操作区分行，避免登录区、语言切换与菜单按钮挤出视口 */
@media (max-width: 640px) {

  #loginMenuItem .login-main-btn, #loginMenuItem .user-trigger-btn {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* 标题按词义均衡换行，避免末行只剩一个字 */
  .hero-title, .hub-title, .wf-hero__title, .section-title {
    text-wrap: balance;
  }
}

/* --------------------------------------------------------------------------
   18. 字号兜底：正文与元信息不小于 GOV.UK 规定的 16px
   -------------------------------------------------------------------------- */

.process-text, .process-title, .case-desc, .audience-desc, .audience-list li, .module-desc, .faq-answer-inner p, .hero-presets__desc, .compare-text, .deploy-config__title, .deploy-activate__hint, .deploy-tips__item, .wf-final__desc, .hub-empty p {
  font-size: 1.1875rem !important;
  line-height: 1.5 !important;
}

.module-index, .case-number, .process-number, .faq-index, .preset-index, .preset-meta, .social-proof, .deploy-config__index, .deploy-config__badge, .deploy-config__kicker, .deploy-config__overview, .deploy-config__note, .deploy-reference__caption, .deploy-block__caption, .deploy-config__cmd, .deploy-config__cmd code, .copy-hint, .wf-card__hot, .wf-card__category, .wf-card__flow-label, .wf-card__nodes, .wf-card__footer, .wf-card__run, .wf-hero__meta, .hub-meta, .hub-cat__count, #result-count, #clear-filter, .wf-cat {
  font-size: 1rem !important;
  line-height: 1.5 !important;
}

/* 终端命令与行内代码：16px 等宽字体，保证放大后仍可读 */
.term-line__code, .deploy-config__cmd code, .deploy-tips code, .term {
  font-size: 1rem !important;
  line-height: 1.6 !important;
}

/* 工作流页大量使用 Tailwind 工具类，统一抬到可读字号 */
.wf-main p {
  font-size: 1.1875rem !important;
  line-height: 1.5 !important;
}

.wf-main [class*="text-xs"], .wf-main [class*="text-sm"], .wf-main [class*="text-[13px]"], .wf-main [class*="text-[14px]"], .wf-main [class*="text-[15px]"] {
  font-size: 1rem !important;
}

.wf-main button[class*="text-xs"], .wf-main button[class*="text-sm"] {
  font-size: 1rem !important;
}

/* SkillHub 卡片元信息（分类、标签、预览次数、立即运行）保持 16px */
#agent-grid span[class*="text-"], #agent-grid p[class*="text-"] {
  font-size: 1rem !important;
  line-height: 1.5 !important;
}

#agent-grid span[class*="text-2xl"], #agent-grid span[class*="text-3xl"], #agent-grid span[class*="text-4xl"] {
  font-size: 1.5rem !important;
}

/* 浮动工具栏：图标按钮，文字作为辅助标签保留 14px 并加大触控面积 */
.toolbar-btn {
  width: 60px !important;
  min-height: 56px;
  font-size: .875rem !important;
}

/* 弹层关闭按钮：44px 触控目标，深色图标 */
.panel-close {
  width: 44px !important;
  height: 44px !important;
  color: var(--gds-black) !important;
}

.panel-close span {
  height: 2px !important;
  background: var(--gds-black) !important;
}

/* 页眉副标题与页脚小字为品牌与法务辅助信息，保持 14px / 16px */

/* SkillHub 卡片内部的字号由较高优先级选择器锁定，这里按同等优先级覆盖 */
#agent-grid > article h2, #agent-grid > article h3 {
  font-size: 1.5rem !important;
  line-height: 1.25 !important;
  font-weight: 700 !important;
}

#agent-grid > article span.inline-flex:not(.run-btn) {
  font-size: 1rem !important;
  letter-spacing: 0 !important;
  line-height: 1.5 !important;
}

#agent-grid > article p {
  font-size: 1.1875rem !important;
  line-height: 1.5 !important;
}

#agent-grid > article .mt-4.flex.flex-wrap.gap-2, #agent-grid > article .mt-3.flex.flex-wrap.gap-2 {
  font-size: 1rem !important;
  line-height: 1.5 !important;
}

#agent-grid > article > .mt-8 {
  font-size: 1rem !important;
  line-height: 1.5 !important;
}

#agent-grid > article .mt-4.flex.flex-wrap.gap-2 > span, #agent-grid > article .mt-3.flex.flex-wrap.gap-2 > span {
  font-size: 1rem !important;
}

.hub-cat-chip__count {
  font-size: .875rem !important;
}

/* 工作流分类与结果计数 */
.wf-cat {
  font-size: 1rem !important;
  padding-bottom: 10px !important;
  text-decoration: none !important;
}

.wf-cat:hover,
.wf-cat:focus-visible,
.wf-cat.is-active,
#clear-filter {
  text-decoration: none !important;
}

#result-count, #clear-filter {
  font-size: 1rem !important;
  color: var(--gds-secondary-text) !important;
}

/* 工作流页装饰性编号与文件名：提高对比度，避免浅灰文字低于 4.5:1 */
.wf-main [class*="text-brand-600/20"] {
  color: var(--gds-secondary-text) !important;
}

.wf-main [class*="text-slate-400"], .wf-main [class*="text-gray-400"] {
  color: var(--gds-secondary-text) !important;
}

/* 工作流卡片：标题与「免费运行」都是真实链接，键盘可直接打开 */
.wf-card__title a, .wf-card__title a:visited {
  color: var(--gds-black) !important;
  text-decoration: none;
}

.wf-card__title a:hover {
  color: var(--gds-black) !important;
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: .15em;
}

.wf-card__run {
  color: var(--gds-blue) !important;
  text-decoration: underline !important;
  text-underline-offset: .1578em;
}

.wf-card__run:hover {
  color: var(--gds-dark-blue) !important;
  text-decoration-thickness: 3px !important;
}

/* SkillHub「立即运行」链接 */
#agent-grid > article .run-btn {
  color: var(--gds-blue) !important;
  text-decoration: underline;
  text-underline-offset: .1578em;
}

#agent-grid > article .run-btn:hover {
  color: var(--gds-dark-blue) !important;
  text-decoration-thickness: 3px;
}

/* 抽屉浮层的关闭与外部打开按钮：44px 触控目标 */
#close-drawer-btn, #drawer-external-link {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gds-black) !important;
}

/* 抽屉关闭时不能被键盘或读屏访问 */
#drawer-container[aria-hidden="true"] {
  visibility: hidden;
}

#drawer-container[aria-hidden="false"] {
  visibility: visible;
}

@media (max-width: 900px) {

  /* 下拉菜单贴住蓝色页眉底线，不覆盖它 */

  /* 移动端当前项用下划线，而不是占满整行的内阴影 */
}

@media (min-width: 901px) {

  /* 桌面端导航已标示当前页，页眉只保留品牌，避免重复 */
}

/* FAQ：问题作为三级标题，按钮样式保持不变 */
.faq-heading {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

/* 搜索框上方可见标签与输入框的 GDS 间距 */
.govuk-label + .relative, .govuk-label + .hub-search {
  margin-top: 0;
}

@media (max-width: 640px) {

  /* 浮动工具栏改为右下角横向排列，并给正文留出安全距离，避免遮挡最后一屏 */
  .floating-toolbar {
    top: auto !important;
    bottom: 12px;
    right: 12px;
    transform: none !important;
    flex-direction: row;
  }

  .toolbar-btn {
    width: 52px !important;
    min-height: 48px;
    font-size: .75rem !important;
  }

  .contentItemArea {
    padding-bottom: 72px;
  }
}

/* index.js 会注入颜色为 #007bff 的链接样式；按 GOV.UK 蓝色与对比度要求覆盖 */
main a:not([class]), .govuk-link {
  color: var(--gds-blue) !important;
}

main a:not([class]):hover, .govuk-link:hover {
  color: var(--gds-dark-blue) !important;
}

/* 与 GDS 960px 内容宽度对齐：页眉、面包屑与正文同一条左边界 */
.hero-presets {
  width: min(960px, 100%) !important;
}

@media (min-width: 641px) {

  .wf-hero__inner {
    width: 100% !important;
    max-width: 1020px !important;
    padding-left: 30px !important;
    padding-right: 30px !important;
  }

  .wf-main {
    width: 100% !important;
    max-width: 1020px !important;
    padding: 72px 30px 84px !important;
  }
}

@media (min-width: 901px) {

  .hub-shell {
    width: 100% !important;
    max-width: 1020px !important;
    padding: 40px 30px 64px !important;
  }
}

/* 工作流首屏：左文右图，中文标题限制在 40px 以内并给文字列更多空间 */
@media (min-width: 901px) {

  .wf-hero__inner {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr) !important;
    gap: 48px !important;
  }
}

.wf-hero__title {
  font-size: clamp(2rem, 3.2vw, 2.5rem) !important;
  line-height: 1.15 !important;
  text-wrap: balance;
}

/* 跳转链接把焦点交给 main 时，不给整页加黄色焦点底 */
main:focus, main:focus-visible, main[tabindex]:focus, main[tabindex]:focus-visible {
  outline: none !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* 页眉不再固定后，锚点与侧栏不再需要为固定页眉预留偏移 */
.wf-main > section {
  scroll-margin-top: 20px !important;
}

#pc-categories {
  top: 20px !important;
}

/* 窄屏下未登录组件尚未挂载时不占位，避免页眉出现 140px 空白槽位；
   桌面端仍保留槽位，登录组件挂载时不引发布局跳动 */
@media (max-width: 900px) {
  #loginMenuItem:empty {
    display: none !important;
    flex: 0 0 0;
    width: 0;
    min-width: 0;
    max-width: 0;
  }
}

@media (max-width: 640px) {

  /* 服务导航在窄屏换行，避免把链接藏在横向滚动区之外 */
}

/* 中文主标题的分行更均衡，避免末行只剩一个助词 */
.hero-title span {
  display: block;
  text-wrap: balance;
}

/* ==========================================================================
   19. 对齐与留白精修
   --------------------------------------------------------------------------
   统一 5px 间距基准、960px 内容宽度与纵向节奏；避免标题孤字、
   卡片内容拥挤、区块间距忽大忽小。
   ========================================================================== */

/* 中文长段落按语义换行，避免末行只剩两个字 */
.section-description, .hero-subtitle, .wf-hero__desc, .wf-main p, .wf-final__desc, .hub-desc, .case-desc, .audience-desc, .module-desc, .faq-answer-inner p, .doc-section p {
  text-wrap: pretty;
}

.section-title, .case-title, .audience-title, .module-title, .wf-card__title, .hub-title, .appleTitle {
  text-wrap: balance;
}

/* 区块：统一上下留白与标题间距 */
.section {
  padding: 72px 30px !important;
}

.section-header {
  margin-bottom: 36px;
}

.eyebrow, .hero-eyebrow, .wf-eyebrow, .hub-eyebrow {
  margin-bottom: 12px !important;
}

.section-description {
  margin-top: 15px !important;
  max-width: 680px;
}

@media (max-width: 640px) {
  .section {
    padding: 48px 15px !important;
  }

  .section-header {
    margin-bottom: 28px;
  }
}

/* 首页：案例卡与流程卡降低高度，避免大片空白 */
@media (min-width: 641px) {
  .case {
    height: auto !important;
    min-height: 320px;
    padding: 30px !important;
  }

  .case-title {
    margin-top: 30px !important;
  }

  .case-mark {
    right: 28px;
    bottom: 28px;
  }

  .process-item {
    min-height: 340px;
  }

  .audience-card {
    min-height: 340px;
    padding: 30px !important;
  }

  .module-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 20px !important;
  }

  .module-card {
    min-height: 220px;
    padding: 25px !important;
  }
}

/* 首页：案例、流程、模块的边框与内边距保持同一节奏 */
.cases, .audience-grid, .module-grid {
  gap: 20px !important;
}

.preset-grid {
  gap: 20px !important;
}

.preset-card {
  padding: 25px !important;
}

/* 工作流：首屏与正文的纵向节奏 */
@media (min-width: 641px) {
  .wf-hero {
    padding-top: 48px !important;
    padding-bottom: 48px !important;
  }

  .wf-main {
    padding-top: 60px !important;
    padding-bottom: 80px !important;
    gap: 64px !important;
  }
}

.wf-main .text-center.max-w-3xl {
  margin-bottom: 32px !important;
}

.wf-main .text-center.max-w-3xl p {
  margin-top: 12px !important;
}

.wf-card {
  padding: 24px !important;
}

/* SkillHub：侧栏、标题、搜索与卡片的间距 */
@media (min-width: 901px) {
  .hub-shell {
    padding-bottom: 64px !important;
  }
}

.hub-intro {
  margin-bottom: 32px !important;
}

.hub-desc {
  margin-top: 15px !important;
}

.hub-grid {
  gap: 20px !important;
  margin-top: 24px !important;
}

#agent-grid > article {
  padding: 24px !important;
}

.hub-meta {
  margin-top: 12px;
  padding-top: 12px;
}

/* 页脚与页面主内容使用同一左右边界和纵向留白 */

/* 小屏：避免卡片内边距过大导致内容挤压 */
@media (max-width: 640px) {
  .case, .audience-card, .module-card, .wf-card, #agent-grid > article {
    padding: 20px !important;
  }

  .preset-card {
    padding: 20px !important;
  }
}

@media (max-width: 900px) {
  .module-grid {
    grid-template-columns: 1fr !important;
  }

  .module-card {
    min-height: 0;
    padding: 24px !important;
  }
}

/* 案例卡：为右下角图标预留空间，正文不再与图标重叠 */
@media (min-width: 641px) {
  .case-desc {
    padding-right: 100px;
  }
}

/* 区块导语用更均衡的分行，消除末行孤字 */
.section-description, .wf-main .text-center.max-w-3xl p, .hub-desc {
  text-wrap: balance;
}

/* 模块卡图标与编号顶线对齐 */
.module-illustration {
  margin-top: 2px;
}

/* 首页区块之间的留白：96px 总间距，避免相邻区块各 72px 造成过大空场 */
.section {
  padding-top: 48px !important;
  padding-bottom: 48px !important;
}

@media (max-width: 640px) {
  .section {
    padding-top: 36px !important;
    padding-bottom: 36px !important;
  }
}

@media (max-width: 640px) {
  /* 窄屏主标题缩到 30px，避免「的」单独换行 */
  .hero-title {
    font-size: 1.875rem !important;
    line-height: 1.15 !important;
  }

  /* 阶段横幅：说明与反馈链接分行，避免末尾只剩一个字 */
}

@media (max-width: 640px) {
  /* 反馈链接独占一行后，不再保留行末句号，避免出现单独一行的标点 */
}

/* 主标题占满可用宽度，避免 flex 居中时收缩成过窄的文本列 */
.hero-title {
  width: 100%;
}

/* 移除面包屑后，Skill 广场顶部保留与工作流页一致的呼吸感 */
@media (min-width: 901px) {
  .hub-shell {
    padding-top: 48px !important;
  }
}

@media (max-width: 900px) {
  /* Skill 广场分类在窄屏换行，避免最后一个分类被截断 */
  #mobile-categories {
    flex-wrap: wrap;
    overflow-x: visible;
    row-gap: 8px;
  }
}

/* 页眉右侧：语言切换与登录组件使用同一 40px 行高，上下居中对齐 */

#loginMenuItem {
  height: 40px !important;
  min-height: 40px !important;
  align-items: center;
}

/* 登录区域与语言切换同一高度；英文按钮文案不被 140px 槽位截断 */
#loginMenuItem {
  flex-basis: 170px !important;
  width: 170px !important;
  min-width: 170px !important;
  max-width: 170px !important;
}

@media (max-width: 640px) {

  #loginMenuItem .login-main-btn {
    max-width: 150px;
  }
}

/* ==========================================================================
   移动端页眉：保持单行，靠 530px 画布缩放留出空间
   --------------------------------------------------------------------------
   首页在窄屏下由 WebTool.adjustStyle 缩放到 530px 画布；该宽度按
   “品牌 + 当前页标识 + 语言/登录/菜单”排成一行所需的宽度确定，避免互相覆盖。
   技能广场/工作流同样使用 530px 画布，英文副标题较长时也不会压到语言切换。
   ========================================================================== */
@media (max-width: 640px) {

  #loginMenuItem {
    flex-basis: 150px !important;
    width: 150px !important;
    min-width: 150px !important;
    max-width: 150px !important;
  }
}

/* ==========================================================================
   20. 卡片内留白统一 + FAQ 列表对齐 workflow.html
   --------------------------------------------------------------------------
   卡片统一 24px 内边距（移动端 20px）；大型面板 32px。
   FAQ 改为与工作流页一致的独立描边卡片：24px 内边距、右侧 chevron。
   ========================================================================== */
.preset-card, .case, .audience-card, .module-card, .compare-side, .wf-card, #agent-grid > article {
  padding: 24px !important;
}

/* HOW IT WORKS：三张卡片共用同一套内边距、边框与插画尺寸 */
.process {
  /* 卡片自身已有上边框，去掉容器顶线避免 2px 叠线 */
  border-top: 0 !important;
}

.process-item {
  padding: 24px !important;
}

/* 三列并排时，卡片相邻边共用 1px 分隔线 */
@media (min-width: 901px) {
  .process-item {
    border-right-width: 0 !important;
  }

  .process-item:last-child {
    border-right-width: 1px !important;
  }
}

/* 单列堆叠时，卡片上下相接处共用 1px 分隔线 */
@media (max-width: 900px) {
  .process-item:not(:first-child) {
    border-top: 0 !important;
  }
}

.case-mark {
  right: 24px !important;
  bottom: 24px !important;
}

.case-title {
  margin-top: 24px !important;
}

.pricing, .deploy-block {
  padding: 32px !important;
}

@media (max-width: 640px) {
  .preset-card, .case, .audience-card, .module-card, .process-item, .compare-side, .wf-card, #agent-grid > article, .pricing, .deploy-block {
    padding: 20px !important;
  }
}

@media (max-width: 640px) {
  /* 移动端案例卡为右下角图标保留底部空间，正文不与图标重叠 */
  .case {
    padding: 20px 20px 96px !important;
  }
}

/* ==========================================================================
   21. 「激活功能模块」列表与 QUESTIONS 卡片列表保持一致
   --------------------------------------------------------------------------
   独立描边卡片 + 16px 间距 + 24px 内边距 + 右侧 chevron；
   保留首项「最高优先级」标签，作为状态信息而非装饰编号。
   ========================================================================== */
.deploy-config {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px !important;
  border-top: 0 !important;
}

.deploy-config__item {
  border: 1px solid var(--gds-border) !important;
  background: #ffffff;
}

.deploy-config__item.is-priority .deploy-config__head, .deploy-config__item[open] .deploy-config__head {
  background: #ffffff !important;
}

.deploy-config__head {
  gap: 14px !important;
  padding: 24px !important;
  background: #ffffff !important;
  color: var(--gds-black);
  list-style: none;
}

.deploy-config__head:hover {
  background: #ffffff !important;
}

.deploy-config__head:focus-visible {
  outline: 3px solid transparent !important;
  outline-offset: 0;
  background: var(--gds-yellow) !important;
  color: var(--gds-black) !important;
  box-shadow: 0 2px 0 var(--gds-black);
}

/* 与 FAQ 一致：不显示编号，用 chevron 表达展开状态 */
.deploy-config__index {
  display: none !important;
}

.deploy-config__title {
  flex: 1;
  min-width: 0;
  font-size: 1rem !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  letter-spacing: 0 !important;
  color: var(--gds-black);
}

.deploy-config__badge {
  flex: none;
  padding: 2px 8px !important;
  background: var(--gds-blue) !important;
  color: #ffffff !important;
  font-size: 1rem !important;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0 !important;
  text-transform: none;
}

.deploy-config__plus {
  display: none !important;
}

.deploy-config__head::after {
  content: "";
  flex: none;
  width: 12px;
  height: 12px;
  margin-left: 2px;
  border-right: 2px solid var(--gds-black);
  border-bottom: 2px solid var(--gds-black);
  transform: rotate(45deg) translateY(-3px);
  transition: transform 0.2s ease;
}

.deploy-config__item[open] .deploy-config__head::after {
  transform: rotate(-135deg) translateY(-2px);
}

.deploy-config__body {
  padding: 0 24px 24px !important;
}

.deploy-config__kicker {
  margin-bottom: 8px !important;
  color: var(--gds-secondary) !important;
  font-size: 1rem !important;
  font-weight: 700;
  letter-spacing: 0 !important;
}

.deploy-config__overview {
  margin: 0 0 16px !important;
  color: var(--gds-black) !important;
  font-size: 1rem !important;
  line-height: 1.5 !important;
}

.deploy-config__note {
  margin: 16px 0 0 !important;
  color: var(--gds-secondary) !important;
  font-size: 1rem !important;
  line-height: 1.5 !important;
}

.deploy-config__cmd {
  margin: 0 !important;
  padding: 15px !important;
  border: 1px solid var(--gds-border) !important;
  background: var(--gds-light-grey) !important;
  font-size: 1rem !important;
  line-height: 1.6 !important;
  overflow-x: auto;
}

@media (max-width: 640px) {
  .deploy-config {
    margin-top: 20px !important;
    gap: 12px;
  }

  .deploy-config__head {
    padding: 16px 20px !important;
    gap: 10px !important;
  }

  .deploy-config__body {
    padding: 0 20px 20px !important;
  }

  .deploy-config__badge {
    font-size: 0.875rem !important;
  }
}

/* ==========================================================================
   原研哉「白与空」站点主题
   --------------------------------------------------------------------------
   仅用于 index.html / workflow.html / skillHub.html 的页面级样式；
   登录条 / 登录弹窗由各自组件的 scoped 样式维护，不在本文件内覆盖。
   纸白、墨色、发丝线、直角、克制留白；不改变任何交互逻辑。
   ========================================================================== */

/* 站点固定为纸白主题：显式声明 color-scheme，避免系统深色模式下
   浏览器把滚动条、表单控件和默认画布渲染成深色，与浅色页面割裂；
   根画布同步为纸白，避免 iOS 回弹时露出浏览器默认的白底 */
html {
  color-scheme: light;
  /* 页面内联样式用 html, body { background: var(--paper) !important }
     锁过画布；这里用同优先级、后加载的 !important 把根画布拉回纸白 */
  background: #fafaf9 !important;
}

/* --------------------------------------------------------------------------
   1. 令牌
   -------------------------------------------------------------------------- */

html body.hara {
  margin: 0;
  background: var(--hara-paper) !important;
  -webkit-font-smoothing: antialiased;
}

body.hara h1, body.hara h2, body.hara h3, body.hara h4, body.hara h5, body.hara h6, body.hara .hero-title, body.hara .section-title, body.hara .case-title, body.hara .audience-title, body.hara .module-title, body.hara .wf-hero__title, body.hara .wf-card__title, body.hara .wf-final__title, body.hara .hub-title, body.hara .doc-title {
  color: var(--hara-ink) !important;
  letter-spacing: -0.01em !important;
}

/* 正文排版不进入登录弹窗：登录面板的文案、协议与控件由 loginDialog.vue 维护 */
body.hara p:where(:not(.loginRegItemArea *)), body.hara li:where(:not(.loginRegItemArea *)), body.hara .govuk-body:where(:not(.loginRegItemArea *)) {
  color: var(--hara-ink);
}

body.hara a:where(:not(.loginContentArea *):not(.loginRegItemArea *)) {
  color: var(--hara-ink);
}

/* 焦点：细墨线，替代黄色高亮；登录条 / 登录弹窗保留各自组件的焦点样式 */
body.hara :focus-visible:where(:not(.loginContentArea *):not(.loginRegItemArea *)) {
  outline: 2px solid var(--hara-ink) !important;
  outline-offset: 2px !important;
  box-shadow: none !important;
}

body.hara .govuk-skip-link:focus {
  background: var(--hara-surface) !important;
  color: var(--hara-ink) !important;
  outline: 2px solid var(--hara-ink) !important;
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   2. 页眉 / 导航
   -------------------------------------------------------------------------- */
body.hara .header, body.hara .wf-header, body.hara .hub-header {
  background: var(--hara-paper) !important;
  border-bottom: 1px solid var(--hara-line) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

body.hara .header.is-scrolled {
  background: var(--hara-paper) !important;
  border-bottom-color: var(--hara-line) !important;
}

body.hara .logo, body.hara .wf-logo, body.hara .hub-logo {
  color: var(--hara-ink) !important;
}

body.hara .logo-name, body.hara .wf-logo__name, body.hara .hub-logo__name {
  color: var(--hara-ink) !important;
  font-weight: 600 !important;
  letter-spacing: -0.01em !important;
}

body.hara .logo-sub, body.hara .wf-logo__sub, body.hara .hub-logo__sub {
  color: var(--hara-secondary) !important;
  opacity: 1 !important;
}

body.hara .nav > a, body.hara .nav > .twf-drop > .twf-toggle, body.hara .wf-nav > a, body.hara .hub-nav > a {
  color: var(--hara-secondary) !important;
  font-weight: 400 !important;
}

body.hara .nav > a:hover, body.hara .nav > .twf-drop > .twf-toggle:hover, body.hara .wf-nav > a:hover, body.hara .hub-nav > a:hover {
  color: var(--hara-ink) !important;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

body.hara .nav > a.active, body.hara .wf-nav > a.is-active, body.hara .hub-nav > a.is-active {
  color: var(--hara-ink) !important;
  font-weight: 600 !important;
  box-shadow: inset 0 -2px 0 var(--hara-ink) !important;
}

body.hara .nav > a:focus-visible, body.hara .wf-nav > a:focus-visible, body.hara .hub-nav > a:focus-visible {
  color: var(--hara-ink) !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.hara .lang-toggle {
  height: 44px !important;
  min-height: 44px !important;
  min-width: 44px;
  border: 1px solid var(--hara-line-strong) !important;
  background: var(--hara-surface) !important;
  color: var(--hara-ink) !important;
  font-weight: 500 !important;
}

body.hara .lang-toggle:hover {
  background: var(--hara-hover) !important;
  color: var(--hara-ink) !important;
}

body.hara .menu-toggle, body.hara .wf-menu-btn, body.hara .hub-menu-btn {
  color: var(--hara-ink) !important;
}

body.hara .menu-toggle span, body.hara .wf-menu-lines > span, body.hara .hub-menu-lines > span, body.hara .wf-menu-x > span, body.hara .hub-menu-x > span {
  background-color: var(--hara-ink) !important;
}

body.hara .twf-menu {
  background: var(--hara-surface) !important;
  border: 1px solid var(--hara-line) !important;
  box-shadow: 0 12px 32px rgba(20, 20, 20, 0.08) !important;
}

body.hara .twf-menu a {
  color: var(--hara-ink) !important;
  text-decoration: none !important;
}

body.hara .twf-menu a:hover {
  background: var(--hara-hover) !important;
  color: var(--hara-ink) !important;
}

/* 二级导航 */
body.hara .index-subnav, body.hara .wf-subnav {
  background: var(--hara-paper-2) !important;
  border-color: var(--hara-line) !important;
}

body.hara .index-subnav a, body.hara .wf-subnav a {
  color: var(--hara-secondary) !important;
  text-decoration: none !important;
  border-bottom: 2px solid transparent;
}

body.hara .index-subnav a:hover, body.hara .wf-subnav a:hover {
  color: var(--hara-ink) !important;
  border-bottom-color: var(--hara-ink);
}

body.hara .index-subnav a.is-active, body.hara .wf-subnav a.is-active {
  color: var(--hara-ink) !important;
  border-bottom-color: var(--hara-ink);
}

/* --------------------------------------------------------------------------
   3. 阶段横幅 / 标签 / 链接
   -------------------------------------------------------------------------- */
body.hara .govuk-phase-banner {
  border-color: var(--hara-line) !important;
}

body.hara .govuk-phase-banner__content {
  color: var(--hara-secondary) !important;
}

body.hara .govuk-tag {
  background: var(--hara-ink) !important;
  color: #ffffff !important;
  font-weight: 500 !important;
}

body.hara .govuk-link {
  color: var(--hara-ink) !important;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.1578em;
}

body.hara .govuk-link:hover {
  color: var(--hara-ink-soft) !important;
  text-decoration-thickness: 2px;
}

/* --------------------------------------------------------------------------
   4. 按钮
   -------------------------------------------------------------------------- */
body.hara .govuk-button, body.hara .hero-cta, body.hara .wf-btn, body.hara .hub-btn {
  min-height: 46px;
  height: auto;
  padding: 12px 22px;
  border: 1px solid var(--hara-ink) !important;
  border-radius: 0 !important;
  background: var(--hara-ink) !important;
  color: #ffffff !important;
  font-family: var(--sans) !important;
  font-size: 1rem !important;
  font-weight: 500 !important;
  line-height: 1.3 !important;
  box-shadow: none !important;
  text-decoration: none !important;
}

body.hara .govuk-button:hover, body.hara .hero-cta:hover, body.hara .wf-btn:hover, body.hara .hub-btn:hover {
  background: var(--hara-ink-soft) !important;
  border-color: var(--hara-ink-soft) !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

/* 次要按钮 / 幽灵按钮：上面的基类已经填充了墨色底，
   这里必须同步把底色还原为纸白；否则文字与底色同为墨色，
   按钮会变成一块没有文字的黑色矩形（Hero、页脚 CTA 均受影响） */
body.hara .govuk-button--secondary, body.hara .wf-btn--ghost, body.hara .hub-btn--ghost {
  background: transparent !important;
  border-color: var(--hara-line-strong) !important;
  color: var(--hara-ink) !important;
  box-shadow: none !important;
}

body.hara .hero-cta-alt {
  color: var(--hara-ink) !important;
}

body.hara .govuk-button--secondary:hover, body.hara .hero-cta-alt:hover, body.hara .wf-btn--ghost:hover, body.hara .hub-btn--ghost:hover {
  background: var(--hara-hover) !important;
  border-color: var(--hara-ink) !important;
  color: var(--hara-ink) !important;
}

body.hara .govuk-button:focus-visible, body.hara .hero-cta:focus-visible, body.hara .wf-btn:focus-visible, body.hara .hub-btn:focus-visible {
  background: var(--hara-ink) !important;
  color: #ffffff !important;
  outline: 2px solid var(--hara-ink) !important;
  outline-offset: 3px !important;
  box-shadow: none !important;
}

/* --------------------------------------------------------------------------
   5. 区块 / 卡片
   -------------------------------------------------------------------------- */
body.hara .hero, body.hara .section, body.hara .hero-presets {
  background: var(--hara-paper) !important;
}

body.hara .hero {
  padding-top: 64px !important;
  padding-bottom: 72px !important;
}

body.hara .section {
  padding-top: 80px !important;
  padding-bottom: 80px !important;
}

body.hara .preset-card, body.hara .case, body.hara .audience-card, body.hara .module-card, body.hara .process-item, body.hara .pricing, body.hara .compare-side, body.hara .deploy-block, body.hara .wf-card, body.hara #agent-grid > article {
  border: 1px solid var(--hara-line) !important;
  border-radius: 0 !important;
  background: var(--hara-surface) !important;
  box-shadow: none !important;
}

body.hara .preset-card:hover, body.hara .case:hover, body.hara .audience-card:hover, body.hara .module-card:hover, body.hara .wf-card:hover, body.hara #agent-grid > article:hover {
  border-color: var(--hara-ink) !important;
  box-shadow: none !important;
}

body.hara .compare-side:first-child {
  background: var(--hara-paper-2) !important;
}

/* 序号是区块的信息层级之一（01 / DEFINE），不能只当装饰；
   原 tertiary 在纸白上的对比度只有 2.5:1，小字号几乎看不清 */
body.hara .preset-index, body.hara .case-number, body.hara .module-index, body.hara .faq-index {
  color: var(--hara-secondary) !important;
}

body.hara .case-mark, body.hara .module-illustration, body.hara .preset-arrow {
  color: var(--hara-secondary) !important;
}

body.hara .process-item {
  border-width: 0 1px 0 0 !important;
}

body.hara .process-item:last-child {
  border-right: 0 !important;
}

body.hara .pricing {
  background: var(--hara-surface) !important;
}

body.hara .deploy-block {
  background: var(--hara-surface) !important;
}

/* --------------------------------------------------------------------------
   6. FAQ / details / 表格 / 代码
   -------------------------------------------------------------------------- */
body.hara .deploy-config__head::after {
  border-color: var(--hara-ink) !important;
}

body.hara .wf-main details, body.hara details {
  border-color: var(--hara-line) !important;
  box-shadow: none !important;
}

body.hara summary {
  color: var(--hara-ink);
}

body.hara table thead {
  background: var(--hara-paper-2) !important;
}

body.hara table th, body.hara table td {
  border-color: var(--hara-line) !important;
}

body.hara pre, body.hara code {
  color: var(--hara-ink);
}

body.hara pre {
  border-color: var(--hara-line) !important;
  background: var(--hara-paper-2) !important;
}

body.hara .deploy-config__cmd {
  border-color: var(--hara-line) !important;
  background: var(--hara-paper-2) !important;
}

/* --------------------------------------------------------------------------
   7. 表单
   -------------------------------------------------------------------------- */
body.hara .govuk-input, body.hara .govuk-select, body.hara .govuk-textarea, body.hara select, body.hara textarea {
  border: 1px solid var(--hara-line-strong) !important;
  border-radius: 0 !important;
  background: var(--hara-surface) !important;
  color: var(--hara-ink) !important;
  box-shadow: none !important;
}

body.hara .govuk-input:focus, body.hara .govuk-select:focus, body.hara .govuk-textarea:focus, body.hara select:focus, body.hara textarea:focus {
  border-color: var(--hara-ink) !important;
  outline: 2px solid var(--hara-ink) !important;
  outline-offset: 2px !important;
  box-shadow: none !important;
}

/* 搜索组合框：与 input.vue 的社区搜索同款
   单条 1px 发丝线 / 直角 / focus 仅换线色，无内嵌边框与焦点环 */
body.hara .hub-search, body.hara .wf-search {
  position: relative;
  height: 44px;
  box-sizing: border-box;
  border: 1px solid var(--hara-line-strong) !important;
  border-radius: 0 !important;
  background: var(--hara-surface) !important;
  box-shadow: none !important;
  transition: border-color 160ms ease;
}

body.hara .hub-search:hover, body.hara .wf-search:hover, body.hara .hub-search:focus-within, body.hara .wf-search:focus-within {
  border-color: var(--hara-ink) !important;
}

/* 图标容器：不再自带边框、底色与内部分隔线 */
body.hara .hub-search > div, body.hara .wf-search > div {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding-left: 14px !important;
  color: var(--hara-tertiary) !important;
}

body.hara #market .wf-search > div {
  padding-left: 14px !important;
  color: var(--hara-tertiary) !important;
}

body.hara .hub-search > div svg, body.hara .wf-search > div svg {
  width: 16px !important;
  height: 16px !important;
  color: var(--hara-tertiary) !important;
}

body.hara .hub-search #search-input, body.hara .wf-search #search-input {
  width: 100% !important;
  height: 100% !important;
  padding: 0 16px 0 42px !important;
  border: 0 !important;
  border-radius: 0 !important;
  outline: none !important;
  background: transparent !important;
  color: var(--hara-ink) !important;
  font-family: var(--sans) !important;
  font-size: 0.875rem !important;
  line-height: 1.4 !important;
  box-shadow: none !important;
}

body.hara .hub-search #search-input::placeholder, body.hara .wf-search #search-input::placeholder {
  /* placeholder 属于需要阅读的提示文本，用次级墨色而非装饰级淡墨 */
  color: var(--hara-secondary) !important;
  opacity: 1;
}

body.hara .hub-search #search-input:focus, body.hara .wf-search #search-input:focus, body.hara .hub-search #search-input:focus-visible, body.hara .wf-search #search-input:focus-visible {
  border: 0 !important;
  outline: none !important;
  outline-offset: 0 !important;
  box-shadow: none !important;
}

/* 快捷键提示不参与边框组合，隐藏后保持与 input.vue 一致的单线结构 */
body.hara .hub-search kbd, body.hara #search-kbd {
  display: none !important;
}

body.hara .hub-cat-chip {
  border: 1px solid var(--hara-line) !important;
  border-radius: 0 !important;
  background: var(--hara-surface) !important;
  color: var(--hara-secondary) !important;
}

body.hara .hub-cat-chip:hover {
  border-color: var(--hara-ink) !important;
  color: var(--hara-ink) !important;
}

body.hara .hub-cat-chip.is-active {
  background: var(--hara-ink) !important;
  border-color: var(--hara-ink) !important;
  color: #ffffff !important;
}

/* --------------------------------------------------------------------------
   8. 页脚
   -------------------------------------------------------------------------- */
body.hara .govuk-footer {
  border-top: 1px solid var(--hara-line) !important;
  background: var(--hara-paper) !important;
  color: var(--hara-secondary) !important;
}

body.hara .govuk-footer__heading, body.hara .govuk-footer__quote, body.hara .govuk-footer__link, body.hara .govuk-footer__copy, body.hara .govuk-footer__copy a {
  color: var(--hara-ink) !important;
}

body.hara .govuk-footer__link:hover {
  color: var(--hara-ink-soft) !important;
}

/* --------------------------------------------------------------------------
   9. 登录条 / 登录弹窗
   --------------------------------------------------------------------------
   这两个组件不参与站点主题，样式由自身 scoped 样式维护
   （loginBar.vue / loginDialog.vue）。本文件中的通用元素规则也已用
   :not(.loginContentArea *) / :not(.loginRegItemArea *) 排除两者，
   避免页面级 !important 覆盖组件内的描边、焦点与配色。
   -------------------------------------------------------------------------- */

/* --------------------------------------------------------------------------
   10. 移动端留白
   -------------------------------------------------------------------------- */
@media (max-width: 640px) {
  body.hara .hero {
    padding: 40px 18px 48px !important;
  }

  body.hara .section {
    padding: 48px 18px !important;
  }
}

body.hara ::selection {
  background: var(--hara-ink);
  color: #ffffff;
}

@media (max-width: 640px) {
  body.hara .process-item {
    border-width: 1px !important;
  }
}

/* --------------------------------------------------------------------------
   11. 移动端菜单：纸白面板 + 墨色文字，保证对比度
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  body.hara .header .nav, body.hara .wf-mobile, body.hara .hub-mobile {
    top: 100% !important;
    background: var(--hara-surface) !important;
    border: 1px solid var(--hara-line) !important;
    border-top: 0 !important;
    box-shadow: 0 16px 40px rgba(20, 20, 20, 0.1) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  body.hara .header .nav a, body.hara .header .nav .twf-toggle, body.hara .wf-mobile > a, body.hara .hub-mobile > a {
    color: var(--hara-ink) !important;
    border-bottom-color: var(--hara-line) !important;
  }

  body.hara .header .nav a:hover, body.hara .header .nav .twf-toggle:hover, body.hara .wf-mobile > a:hover, body.hara .hub-mobile > a:hover {
    color: var(--hara-ink) !important;
    background: var(--hara-hover) !important;
  }

  body.hara .header .nav a.active, body.hara .wf-mobile > a.is-active, body.hara .hub-mobile > a.is-active {
    color: var(--hara-ink) !important;
    text-decoration: underline !important;
    text-decoration-thickness: 2px !important;
    text-underline-offset: 0.2em !important;
    box-shadow: none !important;
  }

  body.hara .twf-menu, body.hara .twf-drop.open .twf-menu {
    background: var(--hara-surface) !important;
    border: 1px solid var(--hara-line) !important;
    box-shadow: 0 12px 32px rgba(20, 20, 20, 0.1) !important;
  }

  body.hara .twf-menu a {
    color: var(--hara-ink) !important;
    border-bottom-color: var(--hara-line) !important;
  }

  body.hara .twf-menu a:hover {
    color: var(--hara-ink) !important;
    background: var(--hara-hover) !important;
  }
}

/* 移动端左上角栏目标识：由黑底白字改为纸底墨字，避免在 Hara 页眉中不可见 */
body.hara .page-mark {
  color: var(--hara-secondary) !important;
  font-weight: 500;
}

body.hara .page-mark::before {
  background: var(--hara-line-strong) !important;
}

/* --------------------------------------------------------------------------
   12. 挂到 <html> 下的浮层（条款弹窗 / 微信与 AI 客服浮窗）
   --------------------------------------------------------------------------
   这些节点不在 body.hara 的作用域里，拿不到上面的 --gds-* 覆盖，
   会退回 GOV.UK 的蓝色链接、紫色已访问状态与 #b1b4b6 描边，
   和站点墨色主题冲突。这里单独补齐令牌与焦点色。
   -------------------------------------------------------------------------- */
.overlay, .toolbar-window {
  /* 浮层在 <html> 下，需重新声明令牌，否则会落到 GOV.UK 的
     #b1b4b6 描边与 #0b0c0c 文字，与主站的发丝线和墨色不一致 */
  --paper: #fafaf9;
  --white: #ffffff;
  --ink: #1a1a1e;
  --gray: #6f6f6a;
  --text-body: #1a1a1e;
  --light: #8a8a85;
  --line: #e6e6e2;
  --gds-black: #1a1a1e;
  --gds-blue: #1a1a1e;
  --gds-dark-blue: #1a1a1e;
  --gds-border: #e6e6e2;
  --gds-light-grey: #f4f4f1;
  --gds-mid-grey: #e6e6e2;
  --gds-dark-grey: #6f6f6a;
  --gds-secondary-text: #6f6f6a;
}

.overlay, .overlay .panel {
  color: var(--ink);
}

.overlay a, .overlay .copy-btn {
  color: var(--ink) !important;
}

/* 复制按钮自带下边线，页面上不再叠加链接下划线 */
.overlay .copy-btn {
  text-decoration: none !important;
}

.overlay a:hover, .overlay .copy-btn:hover {
  color: var(--ink) !important;
}

.overlay .copy-hint {
  color: var(--gray) !important;
}

.overlay :focus-visible, .toolbar-window :focus-visible {
  outline: 2px solid var(--ink) !important;
  outline-offset: 2px !important;
  box-shadow: none !important;
}

.overlay ::selection, .toolbar-window ::selection {
  background: var(--ink);
  color: #ffffff;
}

/* ============================================================
   ON STAFF · 共享皮肤（agentHub / skillHub / workflow）
   与 index.html 的「活字印刷」同一套：纸墨 + 朱砂 + 等宽
   只覆盖视觉，不改结构与文案
   ============================================================ */

html body.hara {
  background-color: #f7f4ec !important;
  color: #191817 !important;
  font-family: var(--sans) !important;
}

/* 纸张纤维 */
html body.hara::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: .028;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

/* ---------- 字：宋体标题 + 等宽标签 ---------- */
html body.hara h1, html body.hara h2, html body.hara h3, html body.hara h4, html body.hara .hub-title, html body.hara .wf-hero__title, html body.hara .wf-card__title, html body.hara .wf-final__title, html body.hara .hub-empty h2 {
  font-family: var(--serif) !important;
  font-weight: 700 !important;
  letter-spacing: .005em !important;
  color: #191817 !important;
}

html body.hara h1, html body.hara .hub-title {
  font-weight: 800 !important;
  letter-spacing: -.005em !important;
}

html body.hara .hub-title { font-size: clamp(40px, 4.6vw, 60px) !important; line-height: 1.12 !important; }
html body.hara h2, html body.hara .wf-hero__title { font-size: clamp(30px, 3vw, 44px) !important; line-height: 1.25 !important; }
html body.hara h3, html body.hara .wf-card__title { font-size: 24px !important; line-height: 1.35 !important; }

html body.hara .font-mono, html body.hara kbd, html body.hara .hub-eyebrow, html body.hara .hub-meta, html body.hara .doc-eyebrow {
  font-family: var(--mono) !important;
  letter-spacing: .14em !important;
}

html body.hara .hub-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--gray) !important;
  font-size: 12px !important;
  text-transform: none !important;
}

html body.hara .hub-eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--red);
  flex: none;
}

html body.hara .hub-desc, html body.hara .wf-hero__desc {
  color: var(--gray) !important;
  font-size: 16px !important;
  line-height: 1.9 !important;
}

/* ---------- 页眉 ---------- */
html body.hara .hub-header, html body.hara .wf-header {
  background: rgba(247, 244, 236, .96) !important;
  border-bottom: 1px solid var(--line) !important;
  border-top: 0 !important;
  box-shadow: none !important;
  backdrop-filter: blur(14px);
}

html body.hara .hub-header__inner, html body.hara .wf-header__inner {
  width: min(1120px, calc(100% - 48px)) !important;
  max-width: 1120px !important;
  min-height: 72px !important;
  height: 72px !important;
  padding: 0 !important;
  margin: 0 auto !important;
}

html body.hara .hub-logo__name, html body.hara .wf-logo__name {
  font-family: var(--serif) !important;
  font-weight: 700 !important;
  font-size: 17px !important;
  letter-spacing: .1em !important;
  color: var(--ink) !important;
}

html body.hara .hub-logo__sub, html body.hara .wf-logo__sub {
  font-family: var(--mono) !important;
  font-size: 9px !important;
  letter-spacing: .16em !important;
  color: var(--light) !important;
}

html body.hara .hub-nav a, html body.hara .wf-nav a {
  font-size: 14px !important;
  letter-spacing: .04em !important;
  color: var(--gray) !important;
  border-bottom: 1px solid transparent;
  padding: 6px 0;
}

html body.hara .hub-nav a.is-active, html body.hara .wf-nav a.is-active {
  border-bottom: 2px solid var(--red) !important;
}

html body.hara .page-mark { display: none !important; }

html body.hara .hub-btn, html body.hara .wf-btn {
  height: 40px !important;
  padding: 0 20px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--red) !important;
  border: 1px solid var(--red) !important;
  border-radius: 0 !important;
  color: #faf7ef !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: .06em !important;
  box-shadow: none !important;
}

html body.hara .hub-btn:hover, html body.hara .wf-btn:hover { background: #a62f17 !important; border-color: #a62f17 !important; }

html body.hara .lang-toggle {
  border: 1px solid var(--line) !important;
  background: transparent !important;
  color: var(--gray) !important;
  font-family: var(--mono) !important;
  font-size: 10px !important;
  letter-spacing: .16em !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

/* ---------- 阶段横幅 ---------- */
html body.hara .govuk-phase-banner { border-bottom: 1px solid var(--line) !important; }
html body.hara .govuk-tag {
  background: var(--red) !important;
  border: 0 !important;
  color: #faf7ef !important;
  font-family: var(--mono) !important;
  font-size: 10px !important;
  letter-spacing: .14em !important;
  border-radius: 0 !important;
}
html body.hara .govuk-width-container { padding: 0 24px !important; margin: 0 auto !important; }

/* ---------- 列表与筛选 ---------- */

html body.hara #pc-categories > *, html body.hara #mobile-categories > * {
  border-radius: 0 !important;
  box-shadow: none !important;
  font-size: 14px !important;
  color: var(--gray) !important;
  border-color: var(--line) !important;
}

html body.hara #pc-categories > *.is-active {
  border-left: 2px solid var(--red) !important;
}

/* 搜索 */
html body.hara .hub-search input, html body.hara .wf-search input {
  background: #fcfaf3 !important;
  border: 1px solid var(--line) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: var(--ink) !important;
  font-size: 16px !important;
}

html body.hara .hub-search input:focus, html body.hara .wf-search input:focus {
  border-color: var(--ink) !important;
  outline: 2px solid var(--ink) !important;
  outline-offset: 2px;
  box-shadow: none !important;
}

html body.hara kbd {
  background: transparent !important;
  border: 1px solid var(--line) !important;
  color: var(--light) !important;
  font-size: 11px !important;
  box-shadow: none !important;
}

html body.hara .hub-meta {
  color: var(--light) !important;
  font-size: 12px !important;
  border-top: 1px solid var(--line) !important;
  padding-top: 12px;
}

/* ---------- 卡片 ---------- */
html body.hara #agent-grid > article, html body.hara .hub-grid > article, html body.hara .wf-card {
  background: #fcfaf3 !important;
  border: 1px solid var(--line) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

html body.hara #agent-grid > article:hover, html body.hara .hub-grid > article:hover, html body.hara .wf-card:hover {
  border-color: var(--ink) !important;
  box-shadow: none !important;
  transform: none !important;
}

html body.hara #agent-grid h3, html body.hara #agent-grid .font-semibold {
  font-family: var(--serif) !important;
  font-weight: 700 !important;
}

/* ---------- 页脚 ---------- */
html body.hara .govuk-footer {
  background: transparent !important;
  border-top: 1px solid var(--ink) !important;
  color: var(--gray) !important;
  padding: 40px 0 32px !important;
}

html body.hara .govuk-footer__heading {
  font-family: var(--mono) !important;
  font-size: 10px !important;
  letter-spacing: .22em !important;
  color: var(--gray) !important;
  text-transform: uppercase;
}

html body.hara .govuk-footer__quote {
  font-family: var(--serif) !important;
  font-weight: 700 !important;
  font-size: 24px !important;
  color: var(--ink) !important;
  letter-spacing: .01em !important;
}

html body.hara .govuk-footer__link {
  font-family: var(--mono);
  font-size: 11.5px !important;
  text-decoration: none !important;
  border-bottom: 1px solid var(--line) !important;
}

html body.hara .govuk-footer__link:hover {
  border-bottom-color: var(--red) !important;
}

html body.hara .govuk-footer__copyright, html body.hara .govuk-footer__copy { color: var(--light) !important; }

/* ---------- 通用工具类收口（仅浅色） ---------- */
html body.hara [class~="bg-white"] { background-color: #fcfaf3 !important; }
html body.hara [class~="bg-[#f8f8fa]"] { background-color: #f5f1e6 !important; }
html body.hara [class~="shadow-sm"], html body.hara [class~="shadow"], html body.hara [class~="shadow-md"], html body.hara [class~="shadow-lg"], html body.hara [class~="shadow-xl"] { box-shadow: none !important; }

html body.hara [class~="rounded-lg"], html body.hara [class~="rounded-xl"], html body.hara [class~="rounded-2xl"], html body.hara [class~="rounded-3xl"], html body.hara [class~="rounded-md"] { border-radius: 0 !important; }

html body.hara [class~="text-slate-900"], html body.hara [class~="text-slate-800"], html body.hara [class~="text-gray-900"] { color: #191817 !important; }

html body.hara [class~="text-slate-600"], html body.hara [class~="text-slate-500"], html body.hara [class~="text-gray-600"], html body.hara [class~="text-gray-500"] { color: #6e6a60 !important; }

html body.hara [class~="text-slate-400"], html body.hara [class~="text-gray-400"] { color: #a6a196 !important; }

html body.hara [class~="border-slate-200"], html body.hara [class~="border-slate-100"], html body.hara [class~="border-gray-100"], html body.hara [class~="border-gray-200"] { border-color: #ded7c7 !important; }

html body.hara [class~="text-brand-600"], html body.hara [class~="text-brand-500"] { color: #c33a1e !important; }

html body.hara [class~="bg-brand-600"], html body.hara [class~="bg-brand-500"] { background-color: #c33a1e !important; }

/* 焦点环 */
html body.hara a:focus-visible, html body.hara button:focus-visible, html body.hara input:focus-visible, html body.hara summary:focus-visible {
  outline: 2px solid #191817 !important;
  outline-offset: 3px !important;
}


/* ---------- 容器统一到 1120，与页眉同一条左边界 ---------- */
html body.hara .hub-shell, html body.hara .wf-main {
  width: min(1120px, calc(100% - 48px)) !important;
  max-width: 1120px !important;
  margin: 0 auto !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

html body.hara .govuk-width-container {
  width: min(1120px, calc(100% - 48px)) !important;
  max-width: 1120px !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  padding-top: 6px !important;
  padding-bottom: 26px !important;
}

/* ---------- 细部：标签、次级按钮、工作流窗口 ---------- */
html body.hara .govuk-label {
  font-family: var(--mono) !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  letter-spacing: .14em !important;
  color: var(--gray) !important;
  margin-bottom: 8px !important;
}

html body.hara .hub-intro a.govuk-link {
  color: var(--red) !important;
  text-decoration: none !important;
  border-bottom: 1px solid rgba(195, 58, 30, .35);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .04em;
}

html body.hara .wf-btn--ghost {
  background: transparent !important;
  border-color: var(--ink) !important;
  color: var(--ink) !important;
}

html body.hara .wf-btn--ghost:hover {
  background: var(--paper-2) !important;
  border-color: var(--ink) !important;
  color: var(--ink) !important;
}

html body.hara .wf-hero__title {
  font-weight: 800 !important;
  font-size: clamp(34px, 3.4vw, 46px) !important;
  line-height: 1.26 !important;
  letter-spacing: .005em !important;
  text-wrap: balance;
}

html body.hara .wf-window {
  border: 1px solid var(--ink) !important;
  box-shadow: none !important;
  background: var(--card) !important;
  padding: 6px;
  filter: saturate(.78) contrast(1.02) sepia(.05);
}

html body.hara .wf-window__bar {
  border-bottom: 1px solid var(--line) !important;
}


/* ---------- 去线：不必要的边框 / 下划线（含 hover） ---------- */
html body.hara a { text-decoration: none !important; }

html body.hara .hub-nav a, html body.hara .wf-nav a {
  border-bottom: 0 !important;
  padding-bottom: 0 !important;
}
html body.hara .hub-nav a.is-active, html body.hara .wf-nav a.is-active {
  color: var(--ink) !important;
  font-weight: 700 !important;
  border-bottom: 0 !important;
}
html body.hara .hub-nav a:hover, html body.hara .wf-nav a:hover { color: var(--ink) !important; }

html body.hara .govuk-footer__link, html body.hara .govuk-footer__link:hover {
  border-bottom: 0 !important;
  text-decoration: none !important;
}

html body.hara #pc-categories > *.is-active {
  border-left: 0 !important;
  color: var(--ink) !important;
  padding-left: 0 !important;
}

html body.hara #mobile-categories > *.is-active {
  background: var(--paper-2) !important;
  color: var(--ink) !important;
  padding-left: 0 !important;
}

html body.hara #agent-grid > article:hover, html body.hara .hub-grid > article:hover, html body.hara .wf-card:hover {
  border-color: var(--line) !important;
  background: var(--paper-2) !important;
}

html body.hara .govuk-link, html body.hara .govuk-link:hover { text-decoration: none !important; }

html body.hara .hero-presets a, html body.hara .preset-card { text-decoration: none !important; }


/* ---------- 去线补充：intro 链接与工作流分类 ---------- */
html body.hara .hub-intro a.govuk-link, html body.hara .hub-intro a.govuk-link:hover { border-bottom: 0 !important; }
html body.hara .hub-intro a.govuk-link:hover { color: #8c2f23 !important; }

html body.hara .wf-cat {
  border-bottom: 0 !important;
  padding: 4px 0 !important;
  text-decoration: none !important;
  transition: color .25s ease;
}
html body.hara .wf-cat.is-active {
  color: var(--ink) !important;
  font-weight: 700 !important;
  border-bottom: 0 !important;
  text-decoration: none !important;
}


/* ---------- 可点击辨识度：颜色与底块，不加线 ---------- */
html body.hara .govuk-footer__link { color: #35322c !important; }
html body.hara .govuk-footer__link:hover { color: var(--red) !important; }

html body.hara .govuk-phase-banner__text a { color: #35322c !important; }
html body.hara .govuk-phase-banner__text a:hover { color: var(--red) !important; }

html body.hara .wf-cat {
  padding: 6px 0 !important;
  margin: 0 !important;
  text-decoration: none !important;
}
html body.hara .wf-cat:hover { background: var(--paper-2) !important; color: var(--ink) !important; text-decoration: none !important; }

/* 筛选列表与上方标题、下方内容共用同一条左边界，不再用负外边距外扩 */
html body.hara #pc-categories > * {
  padding: 10px 0 !important;
  margin: 0 !important;
  text-decoration: none !important;
}
html body.hara #mobile-categories > * {
  padding: 0 0 8px !important;
  margin: 0 !important;
  text-decoration: none !important;
}
html body.hara #pc-categories > *:hover, html body.hara #mobile-categories > *:hover {
  background: var(--paper-2) !important;
  color: var(--ink) !important;
  text-decoration: none !important;
}


/* ---------- 超链接：浅色细下划线，hover 加深 ---------- */
html body.hara a {
  text-underline-offset: 3px !important;
  text-decoration-skip-ink: auto;
  text-decoration-color: rgba(25, 24, 23, .18) !important;
  text-decoration-color: color-mix(in srgb, currentColor 28%, transparent) !important;
  transition: color .25s ease, text-decoration-color .25s ease, border-color .25s ease;
}
html body.hara a:hover {
  text-decoration-color: color-mix(in srgb, currentColor 80%, transparent) !important;
}

/* 按钮 / 卡片 / 品牌 / 图标类锚点不画线 */
html body.hara :is(.hub-btn, .preset-card, .case, .audience-cta, .audience-cta--ghost, .tool-btn, .skillcall-link) {
  text-decoration: none !important;
}

/* 次级 CTA 是 inline-flex，文字装饰不生效，用底边细线 */
html body.hara .hero-cta-alt {
  border-bottom: 1px solid color-mix(in srgb, currentColor 28%, transparent) !important;
  padding-bottom: 2px !important;
}
html body.hara .hero-cta-alt:hover {
  border-bottom-color: color-mix(in srgb, currentColor 80%, transparent) !important;
}

/* 技能调用行：只给标题加线 */
html body.hara .skillcall-link__label {
  text-decoration: underline !important;
  text-decoration-thickness: 1px !important;
  text-underline-offset: 3px !important;
  text-decoration-color: color-mix(in srgb, currentColor 28%, transparent) !important;
}
html body.hara .skillcall-link:hover .skillcall-link__label {
  text-decoration-color: color-mix(in srgb, currentColor 80%, transparent) !important;
}
/* ==========================================================================
   站点皮肤层 · ON STAFF / Letterpress
   --------------------------------------------------------------------------
   下面进入最终站点皮肤：纸墨令牌、页眉、导航、按钮、阶段横幅、页脚。
   这一层统一四个页面的外观；页面专属区块仍在页面样式（或 hub / workflow）
   中维护。GOV.UK 与 HARA 两层作为组件历史保留在上方，最终外观以本层为准。
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. 设计令牌
   -------------------------------------------------------------------------- */
html:root,
html:root body.hara {
  /* 纸墨朱砂 */
  --paper: #f7f4ec;
  --paper-2: #efeadd;
  --card: #fcfaf3;
  --white: #fcfaf3;
  --ink: #191817;
  --ink-soft: #2b2b31;
  --gray: #6e6a60;
  --text-body: #4a463e;
  --light: #a6a196;
  --line: #ded7c7;
  --red: #c33a1e;
  --red-dark: #a62f17;
  --kraft: #e9dfc6;

  /* 字体 */
  --serif: "Source Han Serif SC", "Noto Serif SC", "Songti SC", "STSong", Georgia, serif;
  --sans: Inter, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial,
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: "SF Mono", "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;

  --ease: cubic-bezier(.2, .7, .2, 1);
  --radius: 0;

  /* GOV.UK 兼容令牌：仍被部分组件引用，统一映射到纸墨体系 */
  --gds-black: #191817;
  --gds-blue: #191817;
  --gds-dark-blue: #191817;
  --gds-light-blue: #6e6a60;
  --gds-green: #191817;
  --gds-green-hover: #2b2b31;
  --gds-green-shadow: #000000;
  --gds-red: #c33a1e;
  --gds-yellow: #ffffff;
  --gds-light-grey: #efeadd;
  --gds-mid-grey: #ded7c7;
  --gds-dark-grey: #6e6a60;
  --gds-border: #ded7c7;
  --gds-secondary: #6e6a60;
  --gds-secondary-text: #6e6a60;
  --gds-font: var(--sans);
  --gds-font-mono: var(--mono);
  --gds-width: 1120px;
  --gds-gutter: 24px;
  --gds-focus-width: 2px;
  --gds-space-1: 5px;
  --gds-space-2: 10px;
  --gds-space-3: 15px;
  --gds-space-4: 20px;
  --gds-space-5: 25px;
  --gds-space-6: 30px;
  --gds-space-8: 40px;
  --gds-space-10: 50px;
  --gds-space-12: 60px;
  --gds-space-16: 80px;

  --glow: var(--paper-2);
  --radius: 0;

  /* 旧 HARA 令牌别名：兼容仍引用它们的组件规则 */
  --hara-paper: var(--paper);
  --hara-paper-2: var(--paper-2);
  --hara-surface: var(--card);
  --hara-ink: var(--ink);
  --hara-ink-soft: var(--ink-soft);
  --hara-secondary: var(--gray);
  --hara-tertiary: var(--light);
  --hara-line: var(--line);
  --hara-line-strong: #b9b9b4;
  --hara-hover: var(--paper-2);
  --hara-ring: rgba(25, 24, 23, .1);
}

/* --------------------------------------------------------------------------
   2. 基础层：画布、排版、焦点、链接
   -------------------------------------------------------------------------- */
html {
  color-scheme: light;
  background: var(--paper);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

html:root body.hara {
  margin: 0;
  padding-top: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html:root body.hara ::selection {
  background: var(--red);
  color: var(--paper);
}

html:root body.hara :focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  box-shadow: none;
}

html:root body.hara [hidden] {
  display: none !important;
}

/* 跳过导航：仅在键盘聚焦时出现 */
html:root body.hara .govuk-skip-link {
  position: absolute;
  left: -9999em;
  top: 0;
  z-index: 1000;
  padding: 10px 15px;
  background: var(--paper);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

html:root body.hara .govuk-skip-link:focus {
  left: 0;
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   3. 布局容器：页眉、正文、页脚同一左边界
   -------------------------------------------------------------------------- */
html:root body.hara .govuk-width-container,
html:root body.hara .hub-shell,
html:root body.hara .wf-main {
  width: min(1120px, calc(100% - 48px)) !important;
  max-width: 1120px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* --------------------------------------------------------------------------
   4. 页眉与导航
   -------------------------------------------------------------------------- */
html:root body.hara .header,
html:root body.hara .hub-header,
html:root body.hara .wf-header {
  position: relative !important;
  top: auto !important;
  right: auto !important;
  left: auto !important;
  z-index: 100;
  height: 72px !important;
  min-height: 72px !important;
  overflow: visible;
  background: rgba(247, 244, 236, .96) !important;
  border-top: 0 !important;
  border-bottom: 1px solid var(--line) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html:root body.hara .header.is-scrolled {
  background: rgba(247, 244, 236, .96) !important;
  border-bottom-color: var(--line) !important;
}

html:root body.hara .header-inner,
html:root body.hara .hub-header__inner,
html:root body.hara .wf-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;

  width: min(1120px, calc(100% - 48px)) !important;
  max-width: 1120px !important;
  height: 72px !important;
  min-height: 0;
  margin: 0 auto !important;
  padding: 0 !important;
}

html:root body.hara .brand-lockup {
  flex: none;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

html:root body.hara .logo,
html:root body.hara .hub-logo,
html:root body.hara .wf-logo {
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--ink) !important;
  text-decoration: none;
}

html:root body.hara .logo-name,
html:root body.hara .hub-logo__name,
html:root body.hara .wf-logo__name {
  color: var(--ink) !important;
  font-family: var(--serif) !important;
  font-size: 17px !important;
  font-weight: 600 !important;
  line-height: 1.1 !important;
  letter-spacing: .1em !important;
}

html:root body.hara .logo-sub,
html:root body.hara .hub-logo__sub,
html:root body.hara .wf-logo__sub {
  color: var(--light) !important;
  font-family: var(--mono) !important;
  font-size: 9px !important;
  line-height: 1.25 !important;
  letter-spacing: .16em !important;
  opacity: 1 !important;
}

/* 当前页标识在页眉里是冗余信息，统一隐藏 */
html:root body.hara .page-mark {
  display: none !important;
}

html:root body.hara .nav,
html:root body.hara .hub-nav,
html:root body.hara .wf-nav {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
}

html:root body.hara .nav > a,
html:root body.hara .nav > .twf-drop > .twf-toggle,
html:root body.hara .hub-nav > a,
html:root body.hara .wf-nav > a {
  padding: 6px 0;
  border-bottom: 0 !important;
  background: transparent !important;
  color: var(--gray) !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  line-height: 1.4 !important;
  letter-spacing: .04em !important;
  text-decoration: none !important;
  white-space: nowrap;
  transition: color .25s var(--ease);
}

html:root body.hara .nav > a:hover,
html:root body.hara .nav > .twf-drop > .twf-toggle:hover,
html:root body.hara .hub-nav > a:hover,
html:root body.hara .wf-nav > a:hover {
  color: var(--ink) !important;
  text-decoration: none !important;
}

html:root body.hara .nav > a.active,
html:root body.hara .hub-nav > a.is-active,
html:root body.hara .wf-nav > a.is-active {
  color: var(--ink) !important;
  font-weight: 700 !important;
  box-shadow: none !important;
}

html:root body.hara .nav > a:focus-visible,
html:root body.hara .hub-nav > a:focus-visible,
html:root body.hara .wf-nav > a:focus-visible {
  outline: 2px solid var(--ink) !important;
  outline-offset: 2px !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* 二级下拉菜单 */
html:root body.hara .twf-menu {
  background: var(--card) !important;
  border: 1px solid var(--line) !important;
  box-shadow: 0 12px 32px rgba(20, 20, 20, .08) !important;
  padding: 5px 0 !important;
  min-width: 240px;
}

html:root body.hara .twf-menu a {
  color: var(--ink) !important;
  font-size: 14px !important;
  padding: 10px 15px !important;
  text-decoration: none !important;
}

html:root body.hara .twf-menu a:hover {
  background: var(--paper-2) !important;
  color: var(--ink) !important;
}

/* 页眉右侧操作区 */
html:root body.hara .header-right,
html:root body.hara .hub-actions,
html:root body.hara .wf-header__actions {
  flex: none;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

/* 语言切换 */
html:root body.hara .lang-toggle {
  flex: none;
  height: 40px !important;
  min-height: 40px !important;
  min-width: 40px;
  padding: 0 10px !important;
  border: 1px solid var(--line) !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--gray) !important;
  font-family: var(--mono) !important;
  font-size: 10px !important;
  font-weight: 500 !important;
  letter-spacing: .16em !important;
  box-shadow: none !important;
  transition: color .25s var(--ease), border-color .25s var(--ease);
}

html:root body.hara .lang-toggle:hover {
  background: transparent !important;
  border-color: var(--gray) !important;
  color: var(--ink) !important;
}

/* 移动端菜单按钮：三页共用同一交互外观 */
html:root body.hara .menu-toggle,
html:root body.hara .hub-menu-btn,
html:root body.hara .wf-menu-btn {
  flex: 0 0 40px;
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
}

html:root body.hara .menu-toggle span,
html:root body.hara .hub-menu-lines > span,
html:root body.hara .hub-menu-x > span,
html:root body.hara .wf-menu-lines > span,
html:root body.hara .wf-menu-x > span {
  background-color: var(--ink);
}

html:root body.hara .menu-toggle {
  flex-direction: column;
  gap: 5px;
}

html:root body.hara .menu-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background-color: var(--ink);
  transition: transform .25s var(--ease), opacity .25s var(--ease);
}

html:root body.hara .menu-toggle.open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

html:root body.hara .menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

html:root body.hara .menu-toggle.open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

html:root body.hara .hub-menu-lines,
html:root body.hara .wf-menu-lines {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 20px;
}

html:root body.hara .hub-menu-lines > span,
html:root body.hara .wf-menu-lines > span {
  display: block;
  width: 20px;
  height: 1.5px;
  background-color: var(--ink);
}

html:root body.hara .hub-menu-x,
html:root body.hara .wf-menu-x {
  position: relative;
  display: none;
  width: 20px;
  height: 20px;
}

html:root body.hara .hub-menu-x > span,
html:root body.hara .wf-menu-x > span {
  position: absolute;
  top: 9px;
  left: 0;
  display: block;
  width: 20px;
  height: 1.5px;
  background-color: var(--ink);
}

html:root body.hara .hub-menu-x > span:first-child,
html:root body.hara .wf-menu-x > span:first-child {
  transform: rotate(45deg);
}

html:root body.hara .hub-menu-x > span:last-child,
html:root body.hara .wf-menu-x > span:last-child {
  transform: rotate(-45deg);
}

html:root body.hara .hub-menu-btn[aria-expanded="true"] .hub-menu-lines,
html:root body.hara .wf-menu-btn[aria-expanded="true"] .wf-menu-lines {
  display: none;
}

html:root body.hara .hub-menu-btn[aria-expanded="true"] .hub-menu-x,
html:root body.hara .wf-menu-btn[aria-expanded="true"] .wf-menu-x {
  display: block;
}

/* --------------------------------------------------------------------------
   5. 按钮
   -------------------------------------------------------------------------- */
html:root body.hara .hero-cta,
html:root body.hara .hub-btn,
html:root body.hara .wf-btn,
html:root body.hara .govuk-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  height: 40px;
  min-height: 40px;
  padding: 0 20px;

  border: 1px solid var(--red) !important;
  border-radius: 0 !important;
  background: var(--red) !important;
  color: #faf7ef !important;

  font-family: var(--sans) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  letter-spacing: .06em !important;

  box-shadow: none !important;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}

html:root body.hara .hero-cta:hover,
html:root body.hara .hub-btn:hover,
html:root body.hara .wf-btn:hover,
html:root body.hara .govuk-button:hover {
  background: var(--red-dark) !important;
  border-color: var(--red-dark) !important;
  color: #faf7ef !important;
}

html:root body.hara .hero-cta {
  height: 52px;
  min-height: 52px;
  padding: 0 26px;
}

html:root body.hara .hub-btn--ghost,
html:root body.hara .wf-btn--ghost {
  border-color: var(--ink) !important;
  background: transparent !important;
  color: var(--ink) !important;
}

html:root body.hara .hub-btn--ghost:hover,
html:root body.hara .wf-btn--ghost:hover {
  border-color: var(--ink) !important;
  background: var(--paper-2) !important;
  color: var(--ink) !important;
}

/* --------------------------------------------------------------------------
   6. 阶段横幅 / 标签
   -------------------------------------------------------------------------- */
html:root body.hara .govuk-phase-banner {
  padding: 14px 0 !important;
  border-top: 1px solid var(--line) !important;
  border-bottom: 1px solid var(--line) !important;
}

html:root body.hara .govuk-phase-banner__content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--gray) !important;
  font-size: 13.5px !important;
  line-height: 1.5 !important;
}

html:root body.hara .govuk-phase-banner__text {
  color: var(--gray) !important;
  font-size: 13.5px !important;
}

html:root body.hara .govuk-phase-banner__text a {
  color: #35322c !important;
  text-decoration: none !important;
}

html:root body.hara .govuk-phase-banner__text a:hover {
  color: var(--red) !important;
}

html:root body.hara .govuk-tag {
  display: inline-block;
  padding: 3px 8px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: var(--red) !important;
  color: #faf7ef !important;
  font-family: var(--mono) !important;
  font-size: 9.5px !important;
  font-weight: 500 !important;
  line-height: 1.3 !important;
  letter-spacing: .14em !important;
  text-transform: uppercase;
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   7. 页脚
   -------------------------------------------------------------------------- */
html:root body.hara .govuk-footer {
  margin-top: 0;
  padding: 40px 0 32px !important;
  border-top: 1px solid var(--ink) !important;
  background: transparent !important;
  color: var(--gray) !important;
  font-size: 16px;
  line-height: 1.5;
}

html:root body.hara .govuk-footer__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
}

html:root body.hara .govuk-footer__meta-item--grow {
  flex: 1 1 320px;
}

html:root body.hara .govuk-footer__heading {
  margin: 0 0 10px;
  color: var(--gray) !important;
  font-family: var(--mono) !important;
  font-size: 10px !important;
  font-weight: 500 !important;
  letter-spacing: .22em !important;
  line-height: 1.4 !important;
  text-transform: uppercase;
}

html:root body.hara .govuk-footer__quote {
  margin: 0 0 20px;
  color: var(--ink) !important;
  font-family: var(--serif) !important;
  font-size: 24px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  letter-spacing: .01em !important;
  text-wrap: pretty;
}

html:root body.hara .govuk-footer__inline-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin: 0 0 15px;
  padding: 0;
  list-style: none;
}

html:root body.hara .govuk-footer__link,
html:root body.hara .govuk-footer__link:hover {
  color: #35322c !important;
  font-family: var(--mono);
  font-size: 11.5px !important;
  text-decoration: none !important;
  border-bottom: 0 !important;
}

html:root body.hara .govuk-footer__link:hover {
  color: var(--red) !important;
}

html:root body.hara .govuk-footer__copy,
html:root body.hara .govuk-footer__copyright {
  margin: 0;
  color: var(--light) !important;
  font-size: 14px !important;
}

html:root body.hara .govuk-footer__copy a {
  color: var(--light) !important;
}

html:root body.hara .govuk-footer__copy a:hover {
  color: var(--red) !important;
}

/* --------------------------------------------------------------------------
   8. 响应式：页眉 / 页脚
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  html:root body.hara .header,
  html:root body.hara .hub-header,
  html:root body.hara .wf-header {
    height: 56px !important;
    min-height: 56px !important;
  }

  html:root body.hara .header-inner,
  html:root body.hara .hub-header__inner,
  html:root body.hara .wf-header__inner {
    width: calc(100% - 32px) !important;
    height: 56px !important;
    gap: 12px;
  }

  html:root body.hara .logo-name,
  html:root body.hara .hub-logo__name,
  html:root body.hara .wf-logo__name {
    font-size: 13.5px !important;
  }

  html:root body.hara .logo-sub,
  html:root body.hara .hub-logo__sub,
  html:root body.hara .wf-logo__sub {
    font-size: 8.5px !important;
  }

  html:root body.hara .nav:not(.open),
  html:root body.hara .hub-nav,
  html:root body.hara .wf-nav,
  html:root body.hara .hub-actions > .hub-btn,
  html:root body.hara .wf-header__actions > .wf-btn {
    display: none !important;
  }

  /* 首页移动端导航展开：沿用抽屉式列表，字号恢复为 15px */
  html:root body.hara .header.nav-open {
    z-index: 170;
  }

  html:root body.hara .nav.open {
    display: flex !important;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0;
    padding: 4px 16px calc(12px + env(safe-area-inset-bottom));
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 28px rgba(27, 27, 25, .07);
    max-height: calc(100dvh - 96px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  html:root body.hara .nav.open > a {
    justify-content: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    font-size: 15px !important;
    letter-spacing: .08em !important;
    text-align: center;
  }

  html:root body.hara .nav.open > a:last-child {
    border-bottom: 0;
  }

  html:root body.hara .menu-toggle,
  html:root body.hara .hub-menu-btn,
  html:root body.hara .wf-menu-btn {
    display: flex;
  }

  html:root body.hara .header-right,
  html:root body.hara .hub-actions,
  html:root body.hara .wf-header__actions {
    gap: 8px;
  }

  html:root body.hara .govuk-phase-banner {
    padding: 12px 0 !important;
  }

  html:root body.hara .govuk-footer {
    padding: 32px 0 24px !important;
  }

  html:root body.hara .govuk-footer__meta {
    align-items: flex-start;
    gap: 20px;
  }

  html:root body.hara .govuk-footer__quote {
    font-size: 20px !important;
  }
}

@media (max-width: 380px) {
  html:root body.hara .logo-sub,
  html:root body.hara .hub-logo__sub,
  html:root body.hara .wf-logo__sub {
    display: none;
  }
}

/* ==========================================================================
   移动端筛选按钮：统一去掉底色与边框，只高亮文字
   - Agent / Skill： #mobile-categories 中的 .hub-cat-chip
   - 工作流： #category-tags 中的 .wf-cat
   桌面端筛选（PC 侧栏 / 工作流桌面行）保持原有块面样式。
   ========================================================================== */
@media (max-width: 900px) {
  html body.hara #mobile-categories > .hub-cat-chip,
  html body.hara #mobile-categories > .hub-cat-chip:hover,
  html body.hara #mobile-categories > .hub-cat-chip:active,
  html body.hara #mobile-categories > .hub-cat-chip:focus,
  html body.hara #mobile-categories > .hub-cat-chip:focus-visible,
  html body.hara #mobile-categories > .hub-cat-chip.is-active,
  html body.hara #category-tags > .wf-cat,
  html body.hara #category-tags > .wf-cat:hover,
  html body.hara #category-tags > .wf-cat:active,
  html body.hara #category-tags > .wf-cat:focus,
  html body.hara #category-tags > .wf-cat:focus-visible,
  html body.hara #category-tags > .wf-cat.is-active {
    background: transparent !important;
    background-image: none !important;
    border: 0 !important;
    box-shadow: none !important;
    -webkit-tap-highlight-color: transparent !important;
    -webkit-appearance: none !important;
    appearance: none !important;
  }

  html body.hara #mobile-categories > .hub-cat-chip,
  html body.hara #category-tags > .wf-cat {
    color: var(--gray) !important;
    font-weight: 400 !important;
  }

  html body.hara #mobile-categories > .hub-cat-chip:hover,
  html body.hara #mobile-categories > .hub-cat-chip:active,
  html body.hara #mobile-categories > .hub-cat-chip:focus,
  html body.hara #mobile-categories > .hub-cat-chip:focus-visible,
  html body.hara #category-tags > .wf-cat:hover,
  html body.hara #category-tags > .wf-cat:active,
  html body.hara #category-tags > .wf-cat:focus,
  html body.hara #category-tags > .wf-cat:focus-visible {
    color: var(--ink) !important;
  }

  /* 选中只靠字重，不画底色、边框或触摸高亮 */
  html body.hara #mobile-categories > .hub-cat-chip.is-active,
  html body.hara #category-tags > .wf-cat.is-active {
    color: var(--ink) !important;
    font-weight: 700 !important;
  }

  /* 计数是次要信息，不跟随选中态加粗 */
  html body.hara #mobile-categories > .hub-cat-chip .hub-cat-chip__count {
    font-weight: 400 !important;
  }
}
