/**
 * WC26 WXL — 全站共用：变量、顶栏、页脚、内页 .wxl-surface、.dlab-page-frame
 */
/**
 * 20-wc26-datalab · WXL 独立皮肤（与 19 river / nv-atlas / rf-ft 视觉解耦）
 * 在 layout 中于 Meridian 分包与 nv-shell 之后加载，用于覆盖壳层与首页 DOM。
 */
body.layout-wc26-datalab {
  --wxl-ink: #042f2e;
  --wxl-ink2: #115e59;
  --wxl-muted: #5eead4;
  --wxl-line: rgba(45, 212, 191, 0.22);
  --wxl-surface: #ecfdf5;
  --wxl-card: #ffffff;
  --wxl-accent: #14b8a6;
  --wxl-accent2: #6366f1;
  --wxl-glow: rgba(20, 184, 166, 0.35);
  background: var(--wxl-surface);
  color: var(--wxl-ink);
}

body.layout-wc26-datalab .agp-main {
  background: transparent;
}

body.layout-wc26-datalab .agp-skip {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 9999;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--wxl-ink);
  color: #f0fdfa;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.18s ease;
}
body.layout-wc26-datalab .agp-skip:focus {
  transform: translateY(0);
  outline: 2px solid var(--wxl-accent2);
  outline-offset: 2px;
}

/* ========== 顶栏 WXL ========== */
.wxl-topbar {
  position: sticky;
  top: 0;
  z-index: 80;
  border-bottom: 1px solid var(--wxl-line);
  background: linear-gradient(180deg, rgba(4, 47, 46, 0.97) 0%, rgba(6, 78, 59, 0.94) 100%);
  color: #ccfbf1;
  backdrop-filter: blur(12px);
}

.wxl-topbar__inner {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.wxl-topbar__brand {
  display: flex;
  align-items: center;
  min-width: 0;
  max-width: 100%;
  text-decoration: none;
  color: inherit;
}
.wxl-topbar__brand:focus-visible .wxl-topbar__plaque {
  outline: 2px solid var(--wxl-accent);
  outline-offset: 3px;
}
.wxl-topbar__brand:focus-visible {
  outline: none;
}

/* 顶栏品牌 · v3：横向「铭牌」—— 圆章 + 竖切线 + 实色字标（与旧版方图/渐变字完全不同） */
.wxl-topbar__plaque {
  position: relative;
  display: inline-flex;
  align-items: stretch;
  min-width: 0;
  max-width: min(100%, 22rem);
  border-radius: 999px;
  overflow: visible;
  isolation: isolate;
  border: 1px solid rgba(94, 234, 212, 0.22);
  background:
    linear-gradient(145deg, rgba(15, 23, 42, 0.55) 0%, rgba(4, 47, 46, 0.72) 48%, rgba(15, 23, 42, 0.5) 100%);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.35) inset,
    0 14px 36px rgba(0, 0, 0, 0.38),
    0 0 28px rgba(20, 184, 166, 0.08);
  backdrop-filter: blur(14px);
  transition:
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    transform 0.22s ease;
}
.wxl-topbar__brand:hover .wxl-topbar__plaque {
  border-color: rgba(45, 212, 191, 0.42);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.35) inset,
    0 18px 44px rgba(0, 0, 0, 0.45),
    0 0 40px rgba(20, 184, 166, 0.18);
  transform: translateY(-1px);
}

.wxl-topbar__plaque-halo {
  pointer-events: none;
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(
    125deg,
    rgba(45, 212, 191, 0.35) 0%,
    rgba(99, 102, 241, 0.2) 45%,
    rgba(251, 191, 36, 0.18) 100%
  );
  opacity: 0.45;
  z-index: 0;
  filter: blur(10px);
}

.wxl-topbar__plaque-notch {
  pointer-events: none;
  position: absolute;
  left: 12px;
  top: -5px;
  width: 36px;
  height: 10px;
  border-radius: 4px;
  background: linear-gradient(90deg, #14b8a6, #6366f1);
  opacity: 0.85;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(20, 184, 166, 0.35);
}

.wxl-topbar__mark-zone {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  padding: 8px 4px 8px 12px;
}
.wxl-topbar__mark-zone::before {
  content: "";
  position: absolute;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: radial-gradient(ellipse 85% 75% at 28% 22%, rgba(94, 234, 212, 0.2), transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.wxl-topbar__mark:is(img) {
  position: relative;
  z-index: 1;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: contain;
  border: 2px solid rgba(255, 255, 255, 0.26);
  box-shadow:
    0 0 0 1px rgba(15, 23, 42, 0.95),
    0 6px 18px rgba(0, 0, 0, 0.55);
}

.wxl-topbar__mark--inline {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  overflow: hidden;
  border-radius: 10px;
  border: 2px solid rgba(255, 255, 255, 0.26);
  box-shadow:
    0 0 0 1px rgba(15, 23, 42, 0.95),
    0 6px 18px rgba(0, 0, 0, 0.55);
  line-height: 0;
}
.wxl-topbar__mark--inline > svg {
  width: 36px;
  height: 36px;
  display: block;
  flex-shrink: 0;
}

.wxl-topbar__plaque-divider {
  flex-shrink: 0;
  width: 1px;
  margin: 10px 0;
  align-self: stretch;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(94, 234, 212, 0.55) 35%,
    rgba(129, 140, 248, 0.45) 65%,
    transparent 100%
  );
  opacity: 0.9;
  z-index: 1;
}

.wxl-topbar__wordmark {
  position: relative;
  z-index: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  padding: 9px 16px 9px 6px;
}

.wxl-topbar__name {
  display: block;
  max-width: 100%;
  font-weight: 900;
  font-size: clamp(0.98rem, 2.4vw, 1.15rem);
  letter-spacing: 0.04em;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #f8fafc;
  text-shadow:
    0 0 20px rgba(45, 212, 191, 0.25),
    0 1px 0 rgba(0, 0, 0, 0.45);
}

.wxl-topbar__toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--wxl-line);
  background: rgba(15, 118, 110, 0.35);
  color: #f0fdfa;
  cursor: pointer;
}
.wxl-topbar__toggle:focus-visible {
  outline: 2px solid var(--wxl-accent);
  outline-offset: 2px;
}

.wxl-topbar__burger {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
}

.wxl-topbar__nav-wrap {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.wxl-topbar__nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 4px 8px;
}

.wxl-topbar__link {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: rgba(240, 253, 250, 0.88);
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.wxl-topbar__link:hover {
  background: rgba(20, 184, 166, 0.18);
  border-color: rgba(52, 211, 153, 0.35);
  color: #fff;
}
.wxl-topbar__link.is-active {
  background: linear-gradient(135deg, #14b8a6, #0d9488);
  color: #042f2e;
  border-color: transparent;
  box-shadow: 0 4px 18px var(--wxl-glow);
}

.wxl-topbar__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-left: 12px;
}

.wxl-topbar__btn {
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  border: 1px solid rgba(165, 180, 252, 0.45);
  color: #e0e7ff;
  background: rgba(99, 102, 241, 0.22);
}
.wxl-topbar__btn:hover {
  background: rgba(99, 102, 241, 0.35);
}
.wxl-topbar__btn--primary {
  border-color: transparent;
  color: #042f2e;
  background: linear-gradient(135deg, #5eead4, #2dd4bf);
}
.wxl-topbar__btn--primary:hover {
  filter: brightness(1.06);
}

.wxl-topbar__state {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 900px) {
  .wxl-topbar__toggle {
    display: flex;
  }
  .wxl-topbar__nav-wrap {
    position: fixed;
    inset: 0;
    top: clamp(56px, 18vw, 72px);
    z-index: 79;
    background: rgba(4, 47, 46, 0.96);
    padding: 16px 20px 28px;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.22s ease, opacity 0.22s ease, visibility 0s linear 0.22s;
    border-top: 1px solid var(--wxl-line);
  }
  .wxl-topbar__nav {
    flex-direction: column;
    align-items: stretch;
  }
  .wxl-topbar__link {
    border-radius: 12px;
    padding: 12px 14px;
  }
  .wxl-topbar__cta {
    margin-left: 0;
    margin-top: 12px;
    flex-direction: column;
  }
  .wxl-topbar__state:checked ~ .wxl-topbar__nav-wrap {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    transition: transform 0.22s ease, opacity 0.22s ease, visibility 0s linear 0s;
    pointer-events: auto;
  }
}

/* ========== 页脚 WXL · v2（顶彩带 + 品牌/快捷 + 分栏卡片 + 底栏） ========== */
.wxl-footer {
  position: relative;
  margin-top: auto;
  color: #e2e8f0;
  background:
    radial-gradient(ellipse 90% 70% at 50% -20%, rgba(52, 211, 153, 0.12), transparent 55%),
    linear-gradient(168deg, #070f14 0%, #0c1a18 38%, #052e2a 100%);
  overflow: hidden;
}

.wxl-footer__ribbon {
  height: 4px;
  background: linear-gradient(90deg, #14b8a6 0%, #6366f1 42%, #fbbf24 100%);
  opacity: 0.95;
}

.wxl-footer__main {
  position: relative;
  z-index: 1;
  padding: 36px 0 28px;
}

.wxl-footer__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.wxl-footer__identity {
  flex: 1 1 min(100%, 520px);
  min-width: 0;
}

.wxl-footer__eyebrow {
  margin: 0 0 8px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(94, 234, 212, 0.85);
}

.wxl-footer__name {
  margin: 0 0 12px;
  font-size: clamp(1.35rem, 3.2vw, 1.85rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.15;
  background: linear-gradient(135deg, #f0fdfa 0%, #99f6e4 55%, #a5b4fc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.wxl-footer__pitch {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(226, 232, 240, 0.78);
  max-width: 52ch;
}

.wxl-footer__shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.wxl-footer__shortcut {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  color: rgba(240, 253, 250, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.35);
  transition:
    transform 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}
.wxl-footer__shortcut:hover {
  border-color: rgba(45, 212, 191, 0.55);
  box-shadow: 0 8px 22px rgba(20, 184, 166, 0.15);
  transform: translateY(-1px);
}
.wxl-footer__shortcut--prime {
  border: none;
  color: #042f2e;
  background: linear-gradient(135deg, #5eead4 0%, #14b8a6 48%, #0d9488 100%);
  box-shadow: 0 10px 28px rgba(20, 184, 166, 0.28);
}
.wxl-footer__shortcut--prime:hover {
  box-shadow: 0 14px 34px rgba(20, 184, 166, 0.38);
}
.wxl-footer__shortcut:focus-visible {
  outline: 2px solid #5eead4;
  outline-offset: 3px;
}

.wxl-footer__panels {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
  margin-top: 24px;
}
@media (min-width: 640px) {
  .wxl-footer__panels {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 900px) {
  .wxl-footer__panels {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }
}

.wxl-footer__panel {
  padding: 18px 18px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.04) 0%, rgba(15, 23, 42, 0.35) 100%);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.25);
}

.wxl-footer__panel-title {
  margin: 0 0 14px;
  padding-bottom: 10px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(153, 246, 232, 0.88);
  border-bottom: 1px solid rgba(94, 234, 212, 0.12);
}

.wxl-footer__panel-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 4px;
}

.wxl-footer__link {
  display: block;
  padding: 8px 10px;
  margin: 0 -6px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(248, 250, 252, 0.9);
  text-decoration: none;
  transition:
    background 0.15s ease,
    color 0.15s ease;
}
.wxl-footer__link:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}
.wxl-footer__link:focus-visible {
  outline: 2px solid rgba(94, 234, 212, 0.7);
  outline-offset: 1px;
}

.wxl-footer__sub {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(15, 23, 42, 0.85);
  background: rgba(2, 8, 12, 0.72);
  backdrop-filter: blur(8px);
  padding: 20px 0 28px;
}

.wxl-footer__sub-inner {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
@media (min-width: 768px) {
  .wxl-footer__sub-inner {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px 32px;
  }
}

.wxl-footer__contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(203, 213, 225, 0.82);
}
@media (min-width: 768px) {
  .wxl-footer__contact {
    flex: 1 1 280px;
    max-width: 560px;
  }
}

.wxl-footer__contact-line {
  display: block;
}

.wxl-footer__mailto {
  color: #5eead4;
  font-weight: 700;
  text-decoration: none;
  word-break: break-all;
}
.wxl-footer__mailto:hover {
  text-decoration: underline;
  color: #99f6e4;
}
.wxl-footer__mailto:focus-visible {
  outline: 2px solid #5eead4;
  outline-offset: 2px;
  border-radius: 4px;
}

.wxl-footer__copy {
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
  color: rgba(148, 163, 184, 0.75);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
}
@media (min-width: 768px) {
  .wxl-footer__copy {
    justify-content: flex-end;
    text-align: right;
    flex: 1 1 240px;
  }
}

.wxl-footer__copy-sep {
  opacity: 0.45;
}

.wxl-footer__copy-a {
  color: #a5f3fc;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.wxl-footer__copy-a:hover {
  text-decoration: underline;
  color: #e0f2fe;
}
.wxl-footer__copy-a:focus-visible {
  outline: 2px solid #a5f3fc;
  outline-offset: 2px;
  border-radius: 4px;
}

/* ========== 内页壳层 .wxl-surface ========== */
body.layout-wc26-datalab .wxl-surface {
  background: linear-gradient(180deg, #ecfdf5 0%, #f8fafc 38%, #f0fdfa 100%);
}

body.layout-wc26-datalab .wxl-surface .nv-inland--detail,
body.layout-wc26-datalab .wxl-surface .nv-inland--static,
body.layout-wc26-datalab .wxl-surface .nv-inland--404,
body.layout-wc26-datalab .wxl-surface .nv-inland--app {
  background: transparent;
}

body.layout-wc26-datalab .dlab-page-frame {
  border-radius: 0;
}

body.layout-wc26-datalab .dlab-page-root .dlab-ar__shell {
  max-width: 1120px;
}
