/* QilyLean 全站链接视觉规范 v5｜链接、页内跳转与高对比可视化规范
 * 规范：凡点击后跳转至新页面、文件、锚点、目录、标签或新内容区域，均显示清晰下横线；
 * 深色底上的文字必须使用白色，浅色底上的文字必须使用深青色，悬停与聚焦状态不得出现同色或近色叠加。
 */
@import url('/site-link-standard-v1.css?v=20260801-global-link-v2');

:root{
  --qily-nav-ink:#102f36;
  --qily-nav-active:#0f4b5a;
  --qily-nav-active-hover:#12606f;
  --qily-nav-hover:#ffe39b;
  --qily-nav-hover-border:#c99a3e;
  --qily-dark-link:#fff;
  --qily-dark-underline:#ffe39b;
}

/* 主导航：常态白底深字＋下横线。 */
html body :is(.qily-site-header,.qily-global-header,header.topbar,header.top,header.site-header,header)
:is(.site-nav,.qily-global-nav,.nav,nav[aria-label="网站导航"]) > a[href]{
  color:var(--qily-nav-ink)!important;
  -webkit-text-fill-color:var(--qily-nav-ink)!important;
  background-color:transparent!important;
  border-color:transparent!important;
  opacity:1!important;
  filter:none!important;
  text-decoration-line:underline!important;
  text-decoration-color:#0f4b5a!important;
  text-decoration-thickness:1.8px!important;
  text-underline-offset:.25em!important;
  box-shadow:none!important;
}

/* 当前栏目：深青底白字＋金色下横线。 */
html body :is(.qily-site-header,.qily-global-header,header.topbar,header.top,header.site-header,header)
:is(.site-nav,.qily-global-nav,.nav,nav[aria-label="网站导航"]) > a[href][aria-current]{
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  background-color:var(--qily-nav-active)!important;
  border-color:var(--qily-nav-active)!important;
  text-decoration-color:#ffe39b!important;
  text-decoration-thickness:2.2px!important;
  box-shadow:0 7px 18px rgba(15,75,90,.24)!important;
}

/* 非当前栏目悬停／聚焦：金色底＋深色字。 */
html body :is(.qily-site-header,.qily-global-header,header.topbar,header.top,header.site-header,header)
:is(.site-nav,.qily-global-nav,.nav,nav[aria-label="网站导航"]) > a[href]:not([aria-current]):hover,
html body :is(.qily-site-header,.qily-global-header,header.topbar,header.top,header.site-header,header)
:is(.site-nav,.qily-global-nav,.nav,nav[aria-label="网站导航"]) > a[href]:not([aria-current]):focus-visible{
  color:#17322d!important;
  -webkit-text-fill-color:#17322d!important;
  background-color:var(--qily-nav-hover)!important;
  border-color:var(--qily-nav-hover-border)!important;
  text-decoration-color:#17322d!important;
  box-shadow:0 8px 20px rgba(202,161,95,.30)!important;
  transform:translateY(-2px)!important;
}

/* 当前栏目悬停／聚焦仍保持深底白字。 */
html body :is(.qily-site-header,.qily-global-header,header.topbar,header.top,header.site-header,header)
:is(.site-nav,.qily-global-nav,.nav,nav[aria-label="网站导航"]) > a[href][aria-current]:hover,
html body :is(.qily-site-header,.qily-global-header,header.topbar,header.top,header.site-header,header)
:is(.site-nav,.qily-global-nav,.nav,nav[aria-label="网站导航"]) > a[href][aria-current]:focus-visible{
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  background-color:var(--qily-nav-active-hover)!important;
  border-color:var(--qily-nav-active-hover)!important;
  text-decoration-color:#ffe39b!important;
  box-shadow:0 9px 22px rgba(15,75,90,.30)!important;
  transform:translateY(-2px)!important;
}

html body :is(.qily-site-header,.qily-global-header,header.topbar,header.top,header.site-header,header)
:is(.site-nav,.qily-global-nav,.nav,nav[aria-label="网站导航"]) > a[href]:active{
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  background-color:#073c47!important;
  border-color:#073c47!important;
  text-decoration-color:#ffe39b!important;
  opacity:1!important;
  filter:none!important;
  transform:translateY(0) scale(.98)!important;
}

/* 所有页内跳转、目录、标签、年份和筛选入口均加下横线。 */
html body a[href^="#"]:not([href="#"]),
html body :is(.module-subnav,.subnav,.anchor-nav,.toc,.table-of-contents,.year-nav,.filter-nav,.index-nav,.tab-nav,[role="tablist"]) a[href]{
  text-decoration-line:underline!important;
  text-decoration-style:solid!important;
  text-decoration-color:currentColor!important;
  text-decoration-thickness:1.8px!important;
  text-underline-offset:.25em!important;
  opacity:1!important;
  filter:none!important;
  font-weight:850!important;
}

/* 深青背景：所有可点击文字一律白色，金色下横线。 */
html body :is(
  .module-hero,
  .daily-hero,
  .hero,
  .qily-forest-bg,
  .qily-olive-bg,
  .olive-bg,
  .forest-bg,
  .dark-bg,
  .qily-dark,
  .qily-olive,
  .qily-float-dock,
  .module-footer,
  .footer,
  .contact-card
) a[href],
html body :is(.module-hero,.daily-hero,.hero)
:is(.module-subnav,.subnav,.anchor-nav,.toc,.table-of-contents,.year-nav,.filter-nav,.index-nav,.tab-nav) a[href]{
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  text-decoration-line:underline!important;
  text-decoration-color:#ffe39b!important;
  text-decoration-thickness:1.9px!important;
  text-underline-offset:.25em!important;
  opacity:1!important;
  filter:none!important;
}

/* 深色区域悬停／聚焦改为金色底＋深色字，保证强对比。 */
html body :is(.module-hero,.daily-hero,.hero,.qily-forest-bg,.qily-olive-bg,.olive-bg,.forest-bg,.dark-bg,.qily-dark,.qily-olive)
a[href]:hover,
html body :is(.module-hero,.daily-hero,.hero,.qily-forest-bg,.qily-olive-bg,.olive-bg,.forest-bg,.dark-bg,.qily-dark,.qily-olive)
a[href]:focus-visible{
  color:#17322d!important;
  -webkit-text-fill-color:#17322d!important;
  background-color:#ffe39b!important;
  border-color:#c99a3e!important;
  text-decoration-color:#17322d!important;
  text-decoration-thickness:2.5px!important;
  box-shadow:0 8px 18px rgba(5,42,51,.28)!important;
  transform:translateY(-2px)!important;
}

/* 浅色区域的页内跳转反馈。 */
html body :not(.module-hero):not(.daily-hero):not(.hero) a[href^="#"]:not([href="#"]):hover,
html body :not(.module-hero):not(.daily-hero):not(.hero) a[href^="#"]:not([href="#"]):focus-visible{
  color:#17322d!important;
  -webkit-text-fill-color:#17322d!important;
  background-color:#ffe39b!important;
  border-color:#c99a3e!important;
  text-decoration-color:#17322d!important;
  text-decoration-thickness:2.5px!important;
  box-shadow:0 8px 18px rgba(202,161,95,.28)!important;
  transform:translateY(-2px)!important;
}

html body a[href^="#"]:not([href="#"]):active,
html body :is(.module-subnav,.subnav,.anchor-nav,.toc,.table-of-contents,.year-nav,.filter-nav,.index-nav,.tab-nav,[role="tablist"]) a[href]:active{
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  background-color:#073c47!important;
  border-color:#073c47!important;
  text-decoration-color:#ffe39b!important;
  transform:translateY(0) scale(.98)!important;
}

/* 当前页内入口也采用深青底白字。 */
html body :is(.module-subnav,.subnav,.anchor-nav,.toc,.table-of-contents,.year-nav,.filter-nav,.index-nav,.tab-nav,[role="tablist"])
a[href][aria-current],
html body :is(.module-subnav,.subnav,.anchor-nav,.toc,.table-of-contents,.year-nav,.filter-nav,.index-nav,.tab-nav,[role="tablist"])
a[href][aria-selected="true"]{
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  background-color:#0f4b5a!important;
  border-color:#0f4b5a!important;
  text-decoration-color:#ffe39b!important;
}

/* 常见深青按钮链接：深青底必须白字。 */
html body :is(.module-actions,.card-actions) a[href]:not(.secondary),
html body a[href]:where(.module-action,.resource-action,.project-list-action,.project-card-action,.service-contract-link,.moment-link,.moment-back,.design-link,.share-button),
html body a[href].button:not(.primary){
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  background-color:#0f4b5a!important;
  border-color:#0f4b5a!important;
  text-decoration-color:#ffe39b!important;
}

/*
 * 主体与付款信息核验：浅底深字，悬停切换为深底白字。
 * 使用显式高优先级，覆盖正文通用链接及历史组件样式，杜绝深底深字。
 */
html body .trust-contact > a[href],
html body section#contact .trust-contact > a[href]{
  color:#0f4b5a!important;
  -webkit-text-fill-color:#0f4b5a!important;
  background-color:#fff!important;
  border:2px solid #178b94!important;
  border-top:5px solid #caa15f!important;
  text-decoration-line:underline!important;
  text-decoration-color:#178b94!important;
  text-decoration-thickness:2px!important;
  text-underline-offset:.24em!important;
  box-shadow:0 9px 22px rgba(15,75,90,.10)!important;
  opacity:1!important;
  filter:none!important;
}

html body .trust-contact > a[href]:hover,
html body .trust-contact > a[href]:focus-visible,
html body section#contact .trust-contact > a[href]:hover,
html body section#contact .trust-contact > a[href]:focus-visible{
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  background-color:#0f4b5a!important;
  border-color:#0f4b5a!important;
  border-top-color:#ffe39b!important;
  text-decoration-color:#ffe39b!important;
  box-shadow:0 12px 28px rgba(15,75,90,.28)!important;
  transform:translateY(-2px)!important;
}

html body .trust-contact > a[href]:active,
html body section#contact .trust-contact > a[href]:active{
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  background-color:#073c47!important;
  border-color:#073c47!important;
  text-decoration-color:#ffe39b!important;
  transform:translateY(0) scale(.99)!important;
}

@media(prefers-reduced-motion:reduce){html body a[href]{transition:none!important}}
