@charset "UTF-8";
/* ============================================================
   兼容层 · 老旧 IE 内核 / 双核浏览器「兼容模式」
   ------------------------------------------------------------
   正常情况下本文件一行都不会生效（<html> 上没有 .legacy-ie 类）。
   只有 UA 含 MSIE / Trident 时，页面头部那段极短脚本才会给
   <html> 加上 legacy-ie，本文件随即接管，把页面降级成
   「朴素但能读」的样子，并在顶部固定一条提示引导用户切换内核。

   为什么必须有这一层：
   本站大量使用 CSS 变量、CSS Grid、IntersectionObserver、
   渐变文字（background-clip:text）等现代特性。老内核遇到这些
   会整条丢弃声明，结果就是——背景变白、渐变标题消失、
   滚动动画元素永远停在 opacity:0（页面看起来像只剩几个字）。
   ============================================================ */

html.legacy-ie {
  background: #04120c !important;
}

html.legacy-ie body {
  background: #04120c !important;
  color: #dfe9e4 !important;
  padding-top: 104px !important;
  /* 老内核不支持 woff2，自托管字体用不上，这里交给浏览器默认的无衬线字体。
     不点名任何商业字体，避免字体栈层面留下争议。 */
  font-family: "Noto Sans SC", sans-serif !important;
  -webkit-text-size-adjust: 100%;
}

/* ---------- 顶部固定提示条 ---------- */
html.legacy-ie body::before {
  content: "⚠ 当前浏览器处于「兼容模式」，页面显示不完整。请点击地址栏右侧的闪电图标切换为「极速模式」，或改用 Edge / Chrome 浏览器打开。";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 99999;
  display: block;
  padding: 12px 26px;
  background: #ffcf4d;
  color: #241c00;
  font-size: 15px;
  line-height: 1.65;
  font-weight: 700;
  text-align: center;
  border-bottom: 2px solid #d9a300;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.5);
}

/* ---------- 滚动动画元素：强制显示 ----------
   这是最关键的一条。IE 不支持 IntersectionObserver，
   .reveal 会永远停在 opacity:0，导致大部分内容"看不见"。 */
html.legacy-ie .reveal,
html.legacy-ie [class*="reveal"] {
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
  transition: none !important;
  animation: none !important;
  visibility: visible !important;
}

/* ---------- 标题：去掉透明与渐变，回到纯色 ---------- */
html.legacy-ie h1,
html.legacy-ie h2,
html.legacy-ie h3,
html.legacy-ie h4,
html.legacy-ie .display,
html.legacy-ie .display .line {
  color: #ffffff !important;
  background: none !important;
  background-image: none !important;
  -webkit-text-fill-color: #ffffff !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

html.legacy-ie .display .line.lead {
  color: #b7cec4 !important;
  -webkit-text-fill-color: #b7cec4 !important;
}

html.legacy-ie .display .line.shine {
  color: #3EDB9F !important;
  -webkit-text-fill-color: #3EDB9F !important;
}

html.legacy-ie .display .line.emph::after,
html.legacy-ie .display .line.lead::after,
html.legacy-ie .display .line.shine::after {
  display: none !important;
}

/* ---------- 正文与链接 ---------- */
html.legacy-ie p,
html.legacy-ie li,
html.legacy-ie .hero-sub,
html.legacy-ie .sub {
  color: #cfdcd6 !important;
}

html.legacy-ie a {
  color: #3EDB9F !important;
  text-decoration: none !important;
  opacity: 1 !important;
}

html.legacy-ie a:hover {
  text-decoration: underline !important;
}

/* ---------- 隐藏纯装饰层（注意：不要动 aria-hidden 的元素，
   logo 和首屏三角图标也带这个属性） ---------- */
html.legacy-ie .grain,
html.legacy-ie .cursor-glow,
html.legacy-ie .scroll-progress,
html.legacy-ie .touch-ripple {
  display: none !important;
}

/* ---------- 网格 → 块级堆叠 ---------- */
html.legacy-ie .hero-shell,
html.legacy-ie .hero-panel,
html.legacy-ie .about-grid,
html.legacy-ie .contact-grid,
html.legacy-ie .contact-list,
html.legacy-ie .news-grid,
html.legacy-ie .news-list,
html.legacy-ie .photo-gallery,
html.legacy-ie .photo-strip,
html.legacy-ie .post-nav,
html.legacy-ie .service-cards,
html.legacy-ie .service-card.wide,
html.legacy-ie .tri-cards,
html.legacy-ie .bento {
  display: block !important;
}

html.legacy-ie .hero-shell > *,
html.legacy-ie .hero-panel > *,
html.legacy-ie .about-grid > *,
html.legacy-ie .contact-grid > *,
html.legacy-ie .news-grid > *,
html.legacy-ie .news-list > *,
html.legacy-ie .photo-gallery > *,
html.legacy-ie .photo-strip > *,
html.legacy-ie .post-nav > *,
html.legacy-ie .service-cards > *,
html.legacy-ie .tri-cards > * {
  float: none !important;
  width: auto !important;
  max-width: 100% !important;
  margin: 0 0 20px 0 !important;
}

/* ---------- 头部导航：简单横排按钮 ---------- */
html.legacy-ie .site-header {
  position: relative !important;
  background: #08211a !important;
  border-bottom: 1px solid #1d4437 !important;
}

html.legacy-ie .header-inner {
  display: block !important;
  padding: 16px 0 !important;
}

/* 品牌 logo：`<picture>` 不被老内核识别，`<source>` 会占位却不渲染，
   而 img 写的是 height:100%（依赖父容器），父级又是 inline 的 picture ——
   高度互相等待，最终算成 0×0，logo 整块消失。
   这里给容器和图片都写死像素，不依赖任何百分比。 */
html.legacy-ie .brand-logo,
html.legacy-ie .brand-logo img {
  display: block !important;
  width: 164px !important;
  height: 44px !important;
  max-width: none !important;
}
html.legacy-ie .brand-logo-mark,
html.legacy-ie .brand-logo-mark img {
  width: 32px !important;
  height: 38px !important;
}
html.legacy-ie .brand { display: block !important; }
html.legacy-ie .brand picture { display: block !important; }

html.legacy-ie .main-nav {
  display: block !important;
  margin-top: 12px !important;
  position: static !important;
}

html.legacy-ie .main-nav a {
  display: inline-block !important;
  margin: 4px 8px 4px 0 !important;
  padding: 8px 16px !important;
  font-size: 15px !important;
  color: #dfe9e4 !important;
  background: #0b241c !important;
  border: 1px solid rgba(62, 219, 159, 0.35) !important;
  border-radius: 6px !important;
  opacity: 1 !important;
  transform: none !important;
}

html.legacy-ie .main-nav a::before {
  display: none !important;
}

/* 汉堡菜单在老内核下没有意义，直接隐藏，改为常驻横排 */
html.legacy-ie .nav-toggle {
  display: none !important;
}

/* ---------- 卡片与数据块 ---------- */
html.legacy-ie .bento-cell,
html.legacy-ie .service-card,
html.legacy-ie .news-card,
html.legacy-ie .news-row,
html.legacy-ie .stat-item,
html.legacy-ie .panel,
html.legacy-ie .card {
  display: block !important;
  background: #0b241c !important;
  border: 1px solid #1d4437 !important;
  border-radius: 10px !important;
  padding: 20px !important;
  margin-bottom: 16px !important;
  color: #dfe9e4 !important;
}

html.legacy-ie .stat-item strong,
html.legacy-ie .num,
html.legacy-ie .count {
  color: #3EDB9F !important;
  display: block !important;
  font-size: 28px !important;
}

/* ---------- 按钮 ---------- */
html.legacy-ie .btn,
html.legacy-ie .hero-cta a {
  display: inline-block !important;
  margin: 6px 10px 6px 0 !important;
  padding: 11px 24px !important;
  border-radius: 8px !important;
  background: #3EDB9F !important;
  color: #04120c !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  opacity: 1 !important;
  transform: none !important;
}

html.legacy-ie .btn-ghost {
  background: transparent !important;
  border: 1px solid #3EDB9F !important;
  color: #3EDB9F !important;
}

/* ---------- 图片与页脚 ---------- */
html.legacy-ie img {
  max-width: 100% !important;
  height: auto !important;
  opacity: 1 !important;
  filter: none !important;
}

html.legacy-ie .site-footer {
  background: #05170f !important;
  border-top: 1px solid #1d4437 !important;
}

html.legacy-ie .footer-bottom {
  display: block !important;
  text-align: left !important;
}

html.legacy-ie .footer-bottom > * {
  display: block !important;
  margin-bottom: 8px !important;
}

/* ---------- 分隔线与水面纹理退化 ---------- */
html.legacy-ie .section-watermark,
html.legacy-ie .ticker {
  display: none !important;
}

/* ============================================================
   以下为第二层兜底（2026-11-20 补）
   ------------------------------------------------------------
   style.css 里有 233 处 var()。老内核对每一条都是一样的处理：
   整条声明丢弃。于是「背景」和「文字色」同时失守——
   body 背景变透明（露白）、文字退回黑色，
   而 color:transparent 这种不带变量的声明却照常生效，
   结果就是渐变标题彻底消失。下面逐条抢回来。
   ============================================================ */

/* 章节底色：一律透明，让 <html> 那层深色透上来。
   避免某些 section 自带 var(--ink-1) 之类的深色失效后露白。 */
html.legacy-ie main,
html.legacy-ie section,
html.legacy-ie .hero,
html.legacy-ie .page-hero,
html.legacy-ie .section {
  background: transparent !important;
  background-image: none !important;
  color: #dfe9e4 !important;
}

/* 所有渐变文字（首屏 + 新闻页 page-hero）救回纯绿。
   这条必须覆盖 background-clip:text + color:transparent 的组合。 */
html.legacy-ie .shine,
html.legacy-ie .display .shine,
html.legacy-ie .page-hero h1 .shine {
  color: #3EDB9F !important;
  -webkit-text-fill-color: #3EDB9F !important;
  background: none !important;
  background-image: none !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  animation: none !important;
  filter: none !important;
  text-shadow: none !important;
}

/* 空心描边字：老内核不认 -webkit-text-stroke，只剩透明的字 */
html.legacy-ie .stroke,
html.legacy-ie .display .stroke {
  color: #dfe9e4 !important;
  -webkit-text-fill-color: #dfe9e4 !important;
  -webkit-text-stroke: 0 !important;
}

/* 首屏各块：无论是被 opacity:0 卡住还是被动画延迟，一律先显示出来。
   注意只作用于真实元素，不碰 ::before/::after 的 hover 装饰。 */
html.legacy-ie .hero-main,
html.legacy-ie .hero-main *,
html.legacy-ie .hero-panel,
html.legacy-ie .hero-panel *,
html.legacy-ie .page-hero,
html.legacy-ie .page-hero * {
  opacity: 1 !important;
  visibility: visible !important;
}

/* 动画与过渡：老内核跑不动这些，直接给终态，别让元素停在起点 */
html.legacy-ie *,
html.legacy-ie *::before,
html.legacy-ie *::after {
  animation: none !important;
  transition: none !important;
}

/* 小标签、副标题、面包屑等浅色小字 */
html.legacy-ie .live-chip,
html.legacy-ie .page-hero-tag,
html.legacy-ie .eyebrow,
html.legacy-ie .kicker,
html.legacy-ie .meta,
html.legacy-ie .footer-note {
  color: #9fbdb0 !important;
  border-color: #1d4437 !important;
  background: #0b241c !important;
}

html.legacy-ie .live-chip i {
  background: #3EDB9F !important;
}

/* ============================================================
   药谷论剑 · 历期合影轮播
   老内核不支持 transform 过渡和 object-fit，直接退化成纵向平铺：
   每一期都完整可见，不需要左右滑动，也不会只剩第一张。
   ============================================================ */
html.legacy-ie .salon-slider .slider-view {
  overflow: visible !important;
  touch-action: auto !important;
  border: 0 !important;
  background: transparent !important;
  outline: none !important;
}

html.legacy-ie .salon-slider .slider-track {
  display: block !important;
  transform: none !important;
  transition: none !important;
  width: auto !important;
}

html.legacy-ie .salon-slider .slider-slide {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 0 18px 0 !important;
  border: 1px solid #1d4437 !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  background: #081c14 !important;
}

html.legacy-ie .salon-slider .slider-slide img {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  aspect-ratio: auto !important;
  object-fit: fill !important;
  display: block !important;
}

html.legacy-ie .salon-slider .slider-ui {
  display: none !important;
}

html.legacy-ie .salon-slider figcaption {
  display: block !important;
  text-align: center !important;
  color: #b7cec4 !important;
  background: #081c14 !important;
  border-top: 1px solid #1d4437 !important;
  padding: 10px 8px !important;
  font-size: 13px !important;
}

html.legacy-ie .salon-slider figcaption b {
  color: #3edb9f !important;
  background: none !important;
  border: 0 !important;
  padding: 0 5px 0 0 !important;
  font-weight: 700 !important;
}

html.legacy-ie .salon-slider figcaption span {
  color: #9fbdb0 !important;
}
