/* Lumen portal theme for the Sagaway homepage.
   Light, flat, glass-forward. Pairs with liquid-glass.js for
   displacement refraction on Chromium; .lg-fallback is the
   gaussian-blur escape hatch for other engines and slow devices. */
/* Inter 随主题分发（SIL OFL，许可证见 fonts/LICENSE-Inter.txt）。
   Windows/Linux 没有预装 Inter 或 Noto Sans SC，缺了这条 @font-face 整个栈
   会落到微软雅黑，连拉丁字母和数字都由雅黑渲染，Mac（PingFang）与 Windows
   观感天差地别。可变字体一个文件覆盖 100–900 全部字重。 */
@font-face {
  font-family: Inter;
  src: url("./fonts/InterVariable.woff2?v=3.0.12") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
:root {
  --ink: #16181d;
  --muted: #5c636e;
  --paper: #ffffff;
  --paper-2: #f3f5f7;
  --line: #e3e6ea;
  --blue: #1f6bff;
  --blue-ink: #1450c8;
  --max: 1240px;
  /* 拉丁在前（Inter 自带、Segoe UI 是 swap 期间的 Windows 顶替），
     中文按平台排序：PingFang（Mac）→ 雅黑 UI/雅黑（Windows）→
     Noto/思源（Linux 及装了的用户）。雅黑 UI 的中宫与字距比雅黑更接近 PingFang。 */
  --sans: Inter, "Segoe UI", "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei",
    "Noto Sans SC", "Source Han Sans SC", system-ui, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body.lumen-body {
  background: var(--paper); color: var(--ink);
  font: 16px/1.7 var(--sans);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
.lumen-body :where(a) { color: inherit; text-decoration: none; }
.lumen-body img, .lumen-body video { display: block; max-width: 100%; }
.lumen-body h1, .lumen-body h2, .lumen-body h3, .lumen-body p { margin: 0; }
.lumen-body [hidden] { display: none !important; }
.wrap { width: min(100%, var(--max)); margin: 0 auto; padding-inline: 28px; }
.label { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; font-weight: 650; color: var(--blue); }
h1, h2, h3 { text-wrap: balance; line-height: 1.15; }
p { text-wrap: pretty; }
.br-m { display: none; }
@media (max-width: 1100px) { .br-m { display: inline; } }
@media (max-width: 600px) { .br-d { display: none; } }

.portal-skip {
  position: fixed; top: 8px; left: 8px; z-index: 300;
  padding: 9px 12px; border-radius: 6px; background: #ffffff; color: var(--ink);
  transform: translateY(-150%);
}
.portal-skip:focus { transform: translateY(0); }

/* Liquid glass base; also the non-Chromium fallback look.
   The refraction filter only shows up where the backdrop has detail, so the pane
   carries its own glass cues too: a bright rim, an inset highlight and a specular
   sheen. Those survive every degradation tier, including the no-filter one. */
.lg { position: relative; isolation: isolate;
  background: rgba(255,255,255,0.28); border: 1px solid rgba(255,255,255,0.62);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.85), inset 0 -1px 0 rgba(255,255,255,0.35),
    0 10px 36px rgba(22,24,29,0.14); }
.lg::after { content: ""; position: absolute; inset: 0; border-radius: inherit;
  pointer-events: none; z-index: 1;
  background:
    linear-gradient(150deg, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0.14) 26%, rgba(255,255,255,0) 52%),
    linear-gradient(0deg, rgba(255,255,255,0.20) 0%, rgba(255,255,255,0) 42%); }
.lg > * { position: relative; z-index: 2; }
.lg-fallback { -webkit-backdrop-filter: blur(18px) saturate(1.6); backdrop-filter: blur(18px) saturate(1.6); }
.lg.tint-dark { background: rgba(20,60,170,0.72); border: 1px solid rgba(255,255,255,0.38);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.4), 0 14px 34px rgba(16,36,90,0.34); color: #fff; }
.lg.tint-dark::after {
  background:
    linear-gradient(150deg, rgba(255,255,255,0.34) 0%, rgba(255,255,255,0.08) 30%, rgba(255,255,255,0) 56%),
    linear-gradient(0deg, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0) 46%); }
.lg.tint-dark:hover { background: rgba(16,52,150,0.82); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .lg { background: rgba(255,255,255,0.86); }
  .lg.tint-dark { background: var(--blue); }
}

/* 液态玻璃开着 -> 上面那层蓝色玻璃（半透明 + 折射）；被关掉 -> 实心蓝。
   .lg-fallback 会给降级元素加高斯模糊，实心底色下没有意义，这里一并关掉。 */
html.lg-lite .lg.tint-dark, html.lg-lite .btn-ink {
  background: var(--blue); border-color: rgba(255,255,255,0.34);
  box-shadow: 0 12px 30px rgba(20,60,170,0.28);
  -webkit-backdrop-filter: none; backdrop-filter: none; }
html.lg-lite .lg.tint-dark:hover, html.lg-lite .btn-ink:hover { background: var(--blue-ink); }

/* Shared portal header, restyled as a floating light glass bar. */
.portal-header {
  position: fixed; top: 14px; left: 14px; right: 14px; z-index: 100;
  background: rgba(255,255,255,0.42); border: 1px solid rgba(255,255,255,0.68);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), inset 0 -1px 0 rgba(255,255,255,0.4),
    0 10px 36px rgba(22,24,29,0.14);
  -webkit-backdrop-filter: blur(16px) saturate(1.5); backdrop-filter: blur(16px) saturate(1.5);
  border-radius: 18px; max-width: calc(var(--max) + 28px); margin: 0 auto;
  transition: background .25s ease;
}
.portal-header.is-scrolled { background: rgba(255,255,255,0.78); }
.portal-header > .portal-wrap {
  width: 100%; margin: 0 auto; padding-inline: 22px;
  display: flex; align-items: center; justify-content: space-between; height: 60px;
}
.portal-brand { display: flex; align-items: center; gap: 18px; font-weight: 680; }
.portal-brand img { height: 42px; width: auto; }
.portal-brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.portal-brand-text strong { font-size: 17px; letter-spacing: .005em; }
/* The legal name only fits next to the wordmark on wide screens. */
.portal-brand-text small { display: none; font-size: 10.5px; font-weight: 520;
  color: var(--muted); letter-spacing: .01em; margin-top: 2px; }
@media (min-width: 1180px) { .portal-brand-text small { display: block; } }
.portal-menu-toggle { display: none; background: none; border: 0; color: var(--ink); padding: 8px; cursor: pointer; }
.portal-menu-toggle i, .portal-menu-toggle svg { width: 22px; height: 22px; }
.portal-nav { display: flex; align-items: center; gap: 26px; font-size: 14.5px; font-weight: 520; }
.portal-nav > a { opacity: .82; padding: 6px 0; }
.portal-nav > a:hover { opacity: 1; }
.portal-nav-drop { position: relative; }
.portal-nav-drop > button {
  display: inline-flex; align-items: center; gap: 5px;
  background: none; border: 0; font: inherit; font-weight: 520; color: inherit;
  opacity: .82; cursor: pointer; padding: 6px 0;
}
.portal-nav-drop > button:hover { opacity: 1; }
.portal-nav-drop > button i, .portal-nav-drop > button svg { width: 15px; height: 15px; }
.portal-nav-menu {
  position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%);
  min-width: 300px; padding: 10px; border-radius: 16px;
  background: rgba(255,255,255,0.92); border: 1px solid var(--line);
  box-shadow: 0 18px 44px rgba(22,24,29,0.14); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  display: none;
}
.portal-nav-drop.is-open .portal-nav-menu { display: block; }
.portal-nav-menu a { display: flex; gap: 10px; padding: 11px 12px; border-radius: 10px; }
.portal-nav-menu a:hover { background: rgba(31,107,255,0.07); }
.portal-nav-menu strong { display: block; font-size: 14.5px; }
.portal-nav-menu small { color: var(--muted); font-size: 12px; }
.portal-lang { display: flex; align-items: center; gap: 4px; padding: 4px; border-radius: 999px; border: 1px solid var(--line); }
.portal-lang a { padding: 4px 10px; border-radius: 999px; font-size: 12.5px; color: var(--muted); }
.portal-lang a:hover { color: var(--ink); }
.portal-lang a.is-active, .portal-lang a[aria-current] { background: var(--ink); color: #fff; }

/* Hero: full-viewport video stage. */
.hero { position: relative; height: 100svh; min-height: 640px; display: flex; align-items: flex-end; }
.hero-media { position: absolute; inset: 0; overflow: hidden; }
.hero-media video { width: 100%; height: 100%; object-fit: cover; }
.hero-slot { position: absolute; inset: 0; transition: opacity 1s ease;
  background:
    radial-gradient(120% 80% at 76% 6%, #dcecff 0%, transparent 55%),
    radial-gradient(110% 90% at 12% 100%, #d4f1ec 0%, transparent 60%),
    linear-gradient(180deg, #eef4fb 0%, #e7eef6 52%, #dfe8f1 100%); }
.hero-media.has-video .hero-slot { opacity: 0; }
.hero-slot i { position: absolute; display: block; border-radius: 50%; opacity: .75; }
.hero-slot i:nth-child(1) { width: 44vw; height: 44vw; left: 6%; top: 22%;
  background: radial-gradient(circle, rgba(139,183,255,.5), transparent 62%); }
.hero-slot i:nth-child(2) { width: 34vw; height: 34vw; right: 8%; top: 6%;
  background: radial-gradient(circle, rgba(255,255,255,.85), transparent 62%); }
.hero-slot i:nth-child(3) { width: 30vw; height: 30vw; right: 26%; bottom: 4%;
  background: radial-gradient(circle, rgba(118,204,190,.35), transparent 62%); }
.hero-shade { position: absolute; inset: 0;
  background:
    radial-gradient(56% 60% at 24% 66%, rgba(255,255,255,.5), transparent 70%),
    linear-gradient(180deg, rgba(255,255,255,.15) 0%, transparent 26%, rgba(255,255,255,.5) 58%, rgba(255,255,255,.88) 100%); }
.hero-body { position: relative; z-index: 2; width: 100%; padding-bottom: 215px; }
.hero-label { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; font-weight: 650; color: var(--blue); }
.hero h1 { margin-top: 14px; font-size: clamp(42px, 6.6vw, 84px); line-height: 1.07; font-weight: 680; letter-spacing: -0.015em; }
.hero h1 em { font-style: normal; color: var(--blue); }
.hero-lead { margin-top: 20px; font-size: clamp(16px, 1.6vw, 19px); color: #3c434d; max-width: 40em; text-wrap: balance; }
.hero-actions { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 24px;
  border-radius: 999px; font-size: 15px; font-weight: 640; transition: transform .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 15px; height: 15px; }
/* The glass base is written in CSS as well as applied by liquid-glass.js, so the
   pills still read as glass when the script is degraded, blocked or still loading. */
.btn-ink, .btn-glass { position: relative; isolation: isolate; }
.btn-ink { color: #fff; background: rgba(20,60,170,0.74); border: 1px solid rgba(255,255,255,0.38);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.4), 0 14px 34px rgba(16,36,90,0.34);
  -webkit-backdrop-filter: blur(14px) saturate(1.5); backdrop-filter: blur(14px) saturate(1.5); }
.btn-glass { color: var(--ink); border-radius: 999px; font-weight: 650;
  background: rgba(255,255,255,0.32); border: 1px solid rgba(255,255,255,0.66);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), 0 12px 32px rgba(22,24,29,0.14);
  -webkit-backdrop-filter: blur(16px) saturate(1.6); backdrop-filter: blur(16px) saturate(1.6); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .btn-ink { background: var(--blue); }
  .btn-glass { background: rgba(255,255,255,0.88); }
}

.quick { position: absolute; z-index: 3; left: 50%; bottom: 26px; transform: translateX(-50%);
  width: min(100% - 56px, var(--max)); border-radius: 20px;
  display: grid; grid-template-columns: repeat(2, 1fr); overflow: hidden; }
.quick a { padding: 20px 26px; border-left: 1px solid rgba(255,255,255,.55); transition: background .15s ease; }
.quick a:first-child { border-left: none; }
.quick a:hover { background: rgba(255,255,255,.4); }
.quick-label { display: block; font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; font-weight: 650; color: var(--blue); }
.quick strong { display: block; font-size: 17px; margin-top: 3px; font-weight: 660; }
.quick a > span:last-child { font-size: 12.5px; color: var(--muted); }

/* Sections */
.section { padding: 110px 0; }
.section.alt { background: var(--paper-2); }
.section-head { text-align: center; max-width: 46em; margin: 0 auto 64px; }
.section-head h2 { font-size: clamp(30px, 4vw, 48px); font-weight: 680; letter-spacing: -0.015em; margin-top: 14px; }
.section-head p { color: var(--muted); margin-top: 16px; }

.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding: 44px 0; }
.feature + .feature { border-top: 1px solid var(--line); }
.feature:nth-child(even) .feature-media { order: 2; }
.feature-media { position: relative; aspect-ratio: 16/10.5; border-radius: 22px; overflow: hidden;
  border: 1px solid var(--line); }
.feature-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fm { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: rgba(22,24,29,.3); font-family: var(--mono); font-size: 11px; letter-spacing: .16em; }
.fm-3 { background: radial-gradient(120% 100% at 60% 20%, #e4e4fb 0%, #f1f1fb 55%, #e8e8f6 100%); }
.feature-copy .status { font-size: 12px; color: var(--muted); border: 1px solid var(--line);
  border-radius: 999px; padding: 4px 12px; margin-left: 12px; vertical-align: 3px; background: #fff; }
.feature-copy h3 { font-size: clamp(26px, 3vw, 36px); font-weight: 680; margin-top: 12px; display: inline-block; letter-spacing: -0.01em; }
.feature-copy p { color: var(--muted); margin-top: 16px; max-width: 30em; }
.feature-copy .go { display: inline-flex; align-items: center; gap: 8px; margin-top: 26px;
  font-weight: 640; font-size: 15px; color: var(--blue-ink); }
.feature-copy .go svg { width: 15px; height: 15px; transition: transform .2s ease; }
.feature-copy .go:hover svg { transform: translateX(4px); }

/* Security band: animated gradient + texture behind liquid glass cards. */
.about { position: relative; padding: 120px 0; overflow: hidden; }
.about-bg { position: absolute; inset: 0;
  background:
    radial-gradient(90% 90% at 80% 0%, #d7e7ff 0%, transparent 55%),
    radial-gradient(80% 80% at 8% 90%, #d2efe9 0%, transparent 55%),
    linear-gradient(180deg, #eef4fb, #e6eef7); }
.about-bg i { position: absolute; display: block; border-radius: 50%; opacity: .7;
  animation-play-state: paused; }
.about-bg.anim-on i { animation-play-state: running; }
.about-bg i:nth-child(1) { width: 30vw; height: 30vw; left: 14%; top: 10%;
  background: radial-gradient(circle, rgba(139,183,255,.45), transparent 62%);
  animation: lumen-drift 22s ease-in-out infinite alternate; }
.about-bg i:nth-child(2) { width: 24vw; height: 24vw; right: 12%; bottom: 6%;
  background: radial-gradient(circle, rgba(118,204,190,.4), transparent 62%);
  animation: lumen-drift 19s ease-in-out 3s infinite alternate-reverse; }
@keyframes lumen-drift { from { transform: translate(0,0) scale(1);} to { transform: translate(5vw,-3vh) scale(1.12);} }
.about-bg .tex { position: absolute; inset: 0;
  background: repeating-linear-gradient(45deg, transparent 0 30px, rgba(22,24,29,.07) 30px 31.5px); }
.about-bg .word { position: absolute; left: 50%; top: 54%; transform: translate(-50%,-50%);
  font-weight: 800; font-size: clamp(120px, 17vw, 250px); letter-spacing: .02em; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px rgba(31,107,255,.3); user-select: none; white-space: nowrap; }
.about .wrap { position: relative; z-index: 1; }
.about .section-head { margin-bottom: 56px; }
.glass-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.glass-card { border-radius: 20px; padding: 30px 28px 34px; background: rgba(255,255,255,0.16); }
.glass-card .n { font-family: var(--mono); font-size: 12px; color: var(--blue-ink); letter-spacing: .12em; }
.glass-card strong { display: block; font-size: 19px; font-weight: 680; margin-top: 40px; }
.glass-card p { font-size: 14.5px; color: var(--muted); margin-top: 10px; }

/* News cards fed by Halo posts. */
.news { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news > a { border: 1px solid var(--line); border-radius: 18px; background: #fff;
  padding: 24px 26px 26px; display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease; }
.news > a:hover { transform: translateY(-4px); box-shadow: 0 18px 44px rgba(22,24,29,.1); }
.news time { font-size: 12px; color: var(--muted); font-family: var(--mono); }
.news h3 { font-size: 17.5px; font-weight: 650; line-height: 1.45; margin-top: 10px; }
.news p { font-size: 13.5px; color: var(--muted); margin-top: 8px; flex: 1; }
.news .more { margin-top: 16px; font-size: 13.5px; font-weight: 640; color: var(--blue-ink); }
.news-empty { grid-column: 1 / -1; border: 1px dashed var(--line); border-radius: 18px;
  padding: 34px; text-align: center; color: var(--muted); }
.news-empty strong { display: block; color: var(--ink); margin-bottom: 4px; }
.news-actions { display: flex; gap: 26px; justify-content: center; margin-top: 44px; }
.text-link { font-weight: 640; font-size: 14.5px; color: var(--blue-ink); }
.text-link:hover { text-decoration: underline; }

/* Contact */
.contact { text-align: center; padding: 120px 0; border-top: 1px solid var(--line); }
.contact h2 { font-size: clamp(30px, 4.4vw, 52px); font-weight: 680; letter-spacing: -0.015em; margin-top: 16px; }
.contact p { color: var(--muted); margin-top: 14px; }
.contact .btn { margin-top: 34px; }

/* Team: five circular portraits in one row, monogram ring when no photo is set. */
.team-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 34px 22px; }
.team-card { text-align: center; }
/* 圆的边界必须由描边决定，不能靠照片本身：棚拍头像的左右两侧往往是接近纯白的虚化
   背景，白色描边压在白页面上等于没有描边，圆的左右两端就会融进背景、看起来像窄椭圆。
   所以外圈用一条深色发丝线，::after 再补一条内圈（inset 阴影会被 img 盖住，只能用伪元素）。*/
.team-avatar { position: relative; display: grid; place-items: center; overflow: hidden;
  width: clamp(96px, 11vw, 132px); aspect-ratio: 1 / 1; margin: 0 auto 18px;
  border-radius: 50%; border: 1px solid rgba(255,255,255,.96);
  background:
    radial-gradient(120% 120% at 26% 12%, rgba(255,255,255,.95) 0%, transparent 58%),
    linear-gradient(152deg, #e9f1ff 0%, #dcebf8 54%, #e5f5f0 100%);
  box-shadow: 0 0 0 1px rgba(24,38,68,.15), inset 0 1px 0 rgba(255,255,255,.95),
    0 18px 40px rgba(22,24,29,.15);
  transition: transform .2s ease, box-shadow .2s ease; }
.team-avatar::after { content: ""; position: absolute; inset: 0; border-radius: 50%;
  pointer-events: none; z-index: 2;
  box-shadow: inset 0 0 0 1px rgba(24,38,68,.10), inset 0 -14px 26px -14px rgba(24,38,68,.16); }
.team-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.team-avatar i { font-style: normal; font-size: clamp(30px, 3.4vw, 42px); font-weight: 660;
  color: var(--blue); letter-spacing: 0; }
.team-resume { display: inline-flex; align-items: center; gap: 6px; margin-top: 15px;
  padding: 7px 14px 7px 16px; border-radius: 999px; font-size: 12.5px; font-weight: 620;
  color: var(--blue-ink); text-decoration: none; background: rgba(31,107,255,.08);
  border: 1px solid rgba(31,107,255,.38); box-shadow: 0 6px 16px rgba(31,107,255,.10);
  -webkit-backdrop-filter: blur(12px) saturate(1.5); backdrop-filter: blur(12px) saturate(1.5);
  transition: color .18s ease, border-color .18s ease, background .18s ease, transform .18s ease; }
.team-resume i, .team-resume svg { width: 13px; height: 13px; }
.team-resume:hover { color: #fff; border-color: rgba(31,107,255,.9); background: rgba(31,107,255,.92);
  transform: translateY(-1px); }
.team-resume:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .team-resume { transition: none; } }
html.lg-lite .team-resume { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(31,107,255,.1); }
.team-card:hover .team-avatar { transform: translateY(-4px);
  box-shadow: 0 0 0 1px rgba(24,38,68,.18), inset 0 1px 0 rgba(255,255,255,.95),
    0 24px 50px rgba(22,24,29,.20); }
.team-card h3 { font-size: 17px; font-weight: 660; }
.lumen-body .team-role { font-size: 12.5px; font-weight: 620; color: var(--blue); margin-top: 6px; }
.lumen-body .team-bio { font-size: 13.5px; color: var(--muted); margin-top: 10px; text-wrap: pretty; }
@media (max-width: 1100px) { .team-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; } }
@media (prefers-reduced-motion: reduce) { .team-avatar { transition: none; } }
html.lg-lite .team-avatar { transition: none; }
html.lg-lite .team-card:hover .team-avatar { transform: none; }

/* Footer */
.lumen-footer { background: var(--paper-2); border-top: 1px solid var(--line); padding: 60px 0 42px;
  font-size: 13.5px; color: var(--muted); }
.foot-grid { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.foot-brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 680; }
.foot-brand img { height: 34px; width: auto; }
.lumen-body .foot-slogan { margin-top: 14px; max-width: 24em; }
.lumen-body .foot-addr { margin-top: 10px; font-size: 13px; }
.foot-cols { display: flex; gap: 72px; }
.foot-cols h4 { color: var(--ink); font-size: 12.5px; margin: 0 0 14px; letter-spacing: .06em; }
.foot-cols a { display: block; margin-top: 8px; }
.foot-cols a:hover { color: var(--ink); }
.foot-legal { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px 22px; font-size: 12.5px; }
.foot-legal a:hover { color: var(--ink); }
.foot-tm, .foot-beian { display: inline-flex; align-items: center; gap: 5px; }
.foot-tm img { height: 18px; width: auto; }
.foot-tm sup { font-size: 9px; margin-left: -3px; }
.foot-beian img { width: 14px; height: 16px; }

@media (max-width: 900px) {
  .portal-header { top: 10px; left: 10px; right: 10px; }
  .portal-menu-toggle { display: inline-flex; }
  .portal-nav { position: absolute; top: calc(100% + 10px); left: 0; right: 0;
    display: none; flex-direction: column; align-items: stretch; gap: 4px;
    padding: 14px; border-radius: 16px;
    background: rgba(255,255,255,0.94); border: 1px solid var(--line);
    box-shadow: 0 18px 44px rgba(22,24,29,0.16); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
  .portal-nav.is-open { display: flex; }
  .portal-nav > a { padding: 10px 8px; }
  .portal-nav-menu { position: static; transform: none; display: block; min-width: 0;
    border: 0; box-shadow: none; background: transparent; padding: 0 0 0 8px; }
  .portal-lang { align-self: flex-start; margin-top: 8px; }
  /* The hero is a flex stage, so the floating product panel cannot become a
     normal-flow block here; on phones the header menu already covers both
     products, so the panel is dropped instead. */
  .quick { display: none; }
  .hero-body { padding-bottom: 56px; }
  .feature { grid-template-columns: 1fr; gap: 28px; }
  .feature:nth-child(even) .feature-media { order: 0; }
  .glass-cards, .news { grid-template-columns: 1fr; }
  .foot-cols { gap: 40px; flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slot i, .about-bg i { animation: none; }
}
/* Escape hatch: watchdog or low-end devices kill decorative animation. */
html.lg-lite .hero-slot i, html.lg-lite .about-bg i { animation: none !important; }

/* ==========================================================================
   Detail & content pages (product pages, updates, articles, legal)
   ========================================================================== */
.portal-wrap { width: min(100%, var(--max)); margin: 0 auto; padding-inline: 28px; }
.lumen-body .lucide, .lumen-body [data-lucide] { width: 20px; height: 20px; }

/* Reveal-on-scroll, disabled without JS and under lg-lite. */
html.js .portal-reveal { opacity: 0; transform: translateY(14px);
  transition: opacity .6s ease, transform .6s ease; }
html.js .portal-reveal.is-visible { opacity: 1; transform: none; }
html.lg-lite .portal-reveal { opacity: 1 !important; transform: none !important; transition: none !important; }

/* Detail hero */
.portal-detail-hero { position: relative; padding: 168px 0 64px; overflow: hidden;
  background:
    radial-gradient(110% 80% at 80% 0%, #dcecff 0%, transparent 55%),
    radial-gradient(90% 80% at 6% 100%, #d4f1ec 0%, transparent 60%),
    linear-gradient(180deg, #eef4fb 0%, #e9f0f7 60%, #ffffff 100%); }
.portal-detail-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 56px; align-items: center; }
.portal-detail-status { display: inline-block; font-size: 12px; color: var(--blue-ink);
  border: 1px solid rgba(31,107,255,.35); border-radius: 999px; padding: 4px 12px;
  background: rgba(255,255,255,.7); }
/* 徽标贴在大标题的右下角：inline-flex + flex-end 对齐底边，gap 拉开距离，
   再往下压一点，读起来像是挂在标题右下方而不是同一行的后缀。 */
.portal-detail-title { display: inline-flex; align-items: flex-end; flex-wrap: wrap; gap: 6px 26px; }
.portal-detail-title .portal-detail-status { position: relative; top: 10px; margin: 0; }
.portal-detail-copy h1 { font-size: clamp(34px, 4.6vw, 56px); font-weight: 680; letter-spacing: -0.015em; }
.portal-detail-copy h2 { font-size: clamp(17px, 1.9vw, 22px); font-weight: 560; color: #2c333d; margin-top: 16px; line-height: 1.5; }
.lumen-body .portal-detail-lead { color: var(--muted); margin-top: 14px; max-width: 34em; }
.portal-actions { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.portal-button { display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 24px;
  border-radius: 999px; font-size: 15px; font-weight: 640; transition: transform .15s ease, background .15s ease; }
.portal-button:hover { transform: translateY(-1px); }
.portal-button i, .portal-button svg { width: 15px; height: 15px; }
.portal-button--light { background: rgba(18,20,25,.88); color: #fff;
  border: 1px solid rgba(255,255,255,.16); }
.portal-button--light:hover { background: rgba(10,11,14,.94); }
/* 主按钮（联系区、404 返回首页）：玻璃可用时是蓝色玻璃，不透明度 .82 保证浅底上
   白字仍有约 5.9:1 对比度；玻璃降级时走下面的 html.lg-lite 规则变实心蓝。 */
.portal-button--dark { background: rgba(20,80,200,.82); color: #fff;
  border: 1px solid rgba(255,255,255,.38);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 14px 32px rgba(16,44,120,.28);
  -webkit-backdrop-filter: blur(14px) saturate(1.5); backdrop-filter: blur(14px) saturate(1.5); }
.portal-button--dark:hover { background: rgba(16,64,175,.92); }
html.lg-lite .portal-button--dark { background: var(--blue);
  box-shadow: 0 12px 30px rgba(20,60,170,.26);
  -webkit-backdrop-filter: none; backdrop-filter: none; }
html.lg-lite .portal-button--dark:hover { background: var(--blue-ink); }
/* 次要按钮走蓝色，不再是灰底灰边 */
.portal-button--ghost { background: rgba(31,107,255,.08); color: var(--blue-ink);
  border: 1px solid rgba(31,107,255,.4); }
.portal-button--ghost:hover { background: rgba(31,107,255,.14); border-color: rgba(31,107,255,.62); }
/* Escape hatch: without backdrop-filter the glass pills become plain solid pills. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .portal-button--light { background: var(--ink); }
  .portal-button--dark { background: var(--blue); }
  .portal-button--ghost { background: rgba(31,107,255,.1); }
}
.portal-section--dark .portal-button--light { background: rgba(255,255,255,.9); color: var(--ink);
  border-color: rgba(255,255,255,.5); }
.portal-section--dark .portal-button--light:hover { background: #fff; }
.portal-detail-media { margin: 0; }
.portal-detail-media img { width: 100%; height: auto; border-radius: 22px; border: 1px solid var(--line);
  box-shadow: 0 24px 64px rgba(22,24,29,.16); background: #fff; }
.portal-detail-media figcaption { font-size: 12.5px; color: var(--muted); margin-top: 12px; text-align: center; }

/* Photo hero: one copy column reading over a full-bleed field photograph.
   The scrim is a plain gradient (no filters), so it costs nothing on slow devices. */
.portal-detail-grid--single { grid-template-columns: minmax(0, 1fr); }
.portal-detail-grid--single .portal-detail-copy { max-width: 44rem; }
.portal-detail-hero--photo { padding: 196px 0 108px; color: #fff;
  background-color: #0b1016; background-repeat: no-repeat; background-size: cover; }
.portal-detail-hero--qhse { background-image: url("qhse-hero.jpg"); background-position: 72% center; }
.portal-detail-hero--lab { background-image: url("lab-hero.jpg"); background-position: center 62%; }
.portal-detail-hero--photo::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(7,11,17,.92) 0%, rgba(7,11,17,.74) 44%, rgba(7,11,17,.3) 74%, rgba(7,11,17,.5) 100%),
    linear-gradient(180deg, rgba(7,11,17,.6) 0%, rgba(7,11,17,0) 36%); }
/* The observatory frame is already a dusk photograph, so it needs a lighter scrim. */
.portal-detail-hero--lab::before {
  background:
    linear-gradient(90deg, rgba(7,11,17,.8) 0%, rgba(7,11,17,.52) 42%, rgba(7,11,17,.1) 72%, rgba(7,11,17,.26) 100%),
    linear-gradient(180deg, rgba(7,11,17,.42) 0%, rgba(7,11,17,0) 34%); }
/* The floating header needs a calm surface under it, so the photograph is covered
   by a frosted band that fades out at the bar's lower edge: the picture visually
   starts below the header instead of running to the top of the window. */
.portal-detail-hero--photo::after { content: ""; position: absolute; left: 0; right: 0; top: 0;
  height: 132px; pointer-events: none;
  background: linear-gradient(180deg, rgba(238,244,251,.96) 0%, rgba(238,244,251,.9) 44%,
    rgba(238,244,251,.52) 74%, rgba(238,244,251,0) 100%);
  -webkit-backdrop-filter: blur(24px) saturate(1.1); backdrop-filter: blur(24px) saturate(1.1);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 56%, rgba(0,0,0,0) 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 56%, rgba(0,0,0,0) 100%); }
/* Without filters (or on a downgraded device) the band stays a plain gradient. */
html.lg-lite .portal-detail-hero--photo::after {
  -webkit-backdrop-filter: none; backdrop-filter: none;
  background: linear-gradient(180deg, #eef4fb 0%, rgba(238,244,251,.92) 50%, rgba(238,244,251,0) 100%); }
@media (max-width: 900px) {
  .portal-detail-hero--photo::after { height: 112px; }
}
.portal-detail-hero--photo > .portal-wrap { position: relative; z-index: 1; }
.portal-detail-hero--photo .portal-detail-status { color: #fff; background: rgba(255,255,255,.16);
  border-color: rgba(255,255,255,.5); }
.portal-detail-hero--photo .portal-detail-copy h1 { color: #fff; }
.portal-detail-hero--photo .portal-detail-copy h2 { color: rgba(255,255,255,.9); }
.portal-detail-hero--photo .portal-detail-lead { color: rgba(255,255,255,.76); }
.portal-detail-hero--photo .portal-button--light { background: rgba(255,255,255,.94); color: var(--ink);
  border-color: rgba(255,255,255,.6); }
.portal-detail-hero--photo .portal-button--light:hover { background: #fff; }
.portal-detail-hero--photo .portal-button--ghost { background: rgba(31,107,255,.86); color: #fff;
  border-color: rgba(255,255,255,.34); }
.portal-detail-hero--photo .portal-button--ghost:hover { background: rgba(31,107,255,.96); }

/* Summary strip */
.portal-detail-summary { border-block: 1px solid var(--line); background: #fff; }
.portal-detail-summary .portal-wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; padding-block: 26px; }
.portal-detail-summary-item span { display: block; font-size: 12px; letter-spacing: .14em;
  text-transform: uppercase; font-weight: 650; color: var(--blue); }
.portal-detail-summary-item strong { display: block; margin-top: 5px; font-size: 15.5px; font-weight: 620; }

/* Generic detail sections */
.portal-section { padding: 96px 0; }
.portal-section--soft { background: var(--paper-2); }
.portal-section-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 28px 64px; align-items: end; margin-bottom: 56px; }
.portal-section-head h2 { font-size: clamp(26px, 3.4vw, 40px); font-weight: 680; letter-spacing: -0.015em; margin-top: 12px; }
.portal-section-label { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; font-weight: 650; color: var(--blue); }
.portal-section-lead { color: var(--muted); }
.portal-section--dark { background: var(--ink); color: #f2f4f7; }
.portal-section--dark .portal-section-label { color: #8db4ff; }
.portal-section--dark .portal-section-lead { color: #aab2bd; }

/* Compare columns */
.portal-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.portal-compare-column { border: 1px solid var(--line); border-radius: 20px; padding: 30px 28px; background: #fff; }
.portal-compare-column:last-child { border-color: rgba(31,107,255,.35); background: rgba(31,107,255,.04); }
.portal-compare-column h3 { font-size: 17px; font-weight: 660; }
.portal-compare-column ul { list-style: none; margin: 18px 0 0; padding: 0; }
.portal-compare-column li { position: relative; padding: 9px 0 9px 22px; color: var(--muted); font-size: 14.5px; }
.portal-compare-column li + li { border-top: 1px solid var(--line); }
.portal-compare-column li::before { content: ""; position: absolute; left: 2px; top: 18px;
  width: 8px; height: 8px; border-radius: 50%; background: #c6ccd4; }
.portal-compare-column:last-child li::before { background: var(--blue); }

/* Feature card grid */
.portal-feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.portal-feature-item { border: 1px solid var(--line); border-radius: 20px; padding: 28px 26px; background: #fff; }
.portal-section--soft .portal-feature-item { background: #fff; }
.portal-feature-item i, .portal-feature-item svg { width: 22px; height: 22px; color: var(--blue); }
.portal-feature-item h3 { font-size: 16.5px; font-weight: 660; margin-top: 16px; }
.portal-feature-item p { font-size: 14px; color: var(--muted); margin-top: 8px; }

/* Workflow steps */
.portal-workflow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.portal-workflow-item { border: 1px solid rgba(255,255,255,.14); border-radius: 20px;
  padding: 26px 24px; background: rgba(255,255,255,.05); }
.portal-workflow-item span { font-family: var(--mono); font-size: 12px; color: #8db4ff; letter-spacing: .12em; }
.portal-workflow-item h3 { font-size: 16.5px; font-weight: 660; margin-top: 14px; }
.portal-workflow-item p { font-size: 14px; color: #aab2bd; margin-top: 8px; }

/* Tool cards */
.portal-tool-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.portal-tool-card { border: 1px solid var(--line); border-radius: 18px; padding: 22px 22px 24px; background: #fff; }
.portal-tool-card span { font-family: var(--mono); font-size: 11px; color: var(--blue-ink); letter-spacing: .12em; }
.portal-tool-card h3 { font-size: 16px; font-weight: 660; margin-top: 12px; }
.portal-tool-card p { font-size: 13.5px; color: var(--muted); margin-top: 6px; }

/* Product figure */
.portal-product-figure { margin: 0; }
.portal-product-figure img { width: 100%; height: auto; border-radius: 22px; border: 1px solid var(--line);
  box-shadow: 0 24px 64px rgba(22,24,29,.12); background: #fff; }
.portal-product-figure figcaption { font-size: 12.5px; color: var(--muted); margin-top: 12px; text-align: center; }

/* 研云下载入口：按钮沿用 portal-button 的两态玻璃，只是左侧多一枚平台标，
   文案是两行（平台 + 架构），所以高度放开、图标不跟着字号缩放。 */
.download-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.download-button { height: auto; padding: 14px 24px 14px 20px; gap: 13px; }
.download-mark { width: 20px; height: 20px; flex: none; }
.download-label { display: flex; flex-direction: column; gap: 3px; line-height: 1.3; text-align: left; }
.download-label strong { font-size: 15px; font-weight: 650; }
.download-label small { font-size: 12px; font-weight: 500; opacity: .82; }
/* 清单还没取回来时按钮不可点：href 此时只是 #download，点下去只会跳回本段。 */
.download-button[aria-disabled="true"] { opacity: .55; pointer-events: none; }
/* 这些类都用在 <p> 上，而上面的 `.lumen-body … p { margin: 0 }` 特异性是 (0,1,1)，
   单类选择器 (0,1,0) 压不过它——写了 margin-top 也会被清零（线上实测这批全是 0，
   「当前版本」那行就因此紧贴按钮、团队卡片的职务/简介也贴着姓名）。所以凡是给
   <p> 加间距的类，选择器都要带 .lumen-body 前缀。 */
.lumen-body .download-status { margin-top: 22px; font-size: 12.5px; color: var(--muted); }
.download-status--error { color: #b0451c; }
@media (max-width: 560px) {
  .download-actions { flex-direction: column; align-items: stretch; }
  .download-button { justify-content: flex-start; }
}

/* 产品页：难点→解法、截图并排、手机端、前后对照 */
.portal-solve { display: grid; gap: 14px; }
.portal-solve-row { display: grid; grid-template-columns: minmax(180px, .34fr) 1fr; gap: 0;
  border: 1px solid var(--line); border-radius: 18px; background: #fff; overflow: hidden; }
.portal-solve-pain { padding: 22px 24px; background: rgba(22,24,29,.035); display: flex; align-items: center;
  gap: 12px; font-size: 15px; font-weight: 640; }
.portal-solve-pain i, .portal-solve-pain svg { width: 17px; height: 17px; color: #c0561f; flex: none; }
.portal-solve-fix { padding: 22px 26px; display: flex; align-items: center; gap: 14px;
  font-size: 14.5px; color: var(--muted); }
.portal-solve-fix i, .portal-solve-fix svg { width: 17px; height: 17px; color: var(--blue); flex: none; }

.portal-split { display: grid; grid-template-columns: 1.08fr .92fr; gap: 44px; align-items: center; }
.portal-split--flip .portal-split-media { order: 2; }
.portal-split-media { margin: 0; }
.portal-split-media img { width: 100%; height: auto; border-radius: 20px; border: 1px solid var(--line);
  background: #fff; box-shadow: 0 22px 58px rgba(22,24,29,.13); }
.portal-split-media figcaption { font-size: 12.5px; color: var(--muted); margin-top: 12px; }
.portal-section--dark .portal-split-media figcaption { color: rgba(255,255,255,.62); }
.portal-split-list { list-style: none; margin: 0; padding: 0; }
.portal-split-list li { padding: 16px 0; border-top: 1px solid var(--line); }
.portal-split-list li:first-child { border-top: 0; padding-top: 0; }
.portal-split-list strong { display: block; font-size: 15.5px; font-weight: 660; }
.portal-split-list span { display: block; margin-top: 6px; font-size: 14px; color: var(--muted); }
.portal-section--dark .portal-split-list li { border-color: rgba(255,255,255,.14); }
.portal-section--dark .portal-split-list span { color: rgba(255,255,255,.66); }

.portal-split-list--two { margin-top: 34px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 40px; }
.portal-split-list--two li:nth-child(2) { border-top: 0; padding-top: 0; }
.portal-product-figure--spaced { margin-top: 46px; }
.portal-shot-pair { display: grid; grid-template-columns: 1.42fr .58fr; gap: 26px; align-items: start; }

.portal-phones { display: grid; grid-template-columns: repeat(2, minmax(0, 210px)); gap: 26px;
  justify-content: center; }
.portal-phone { margin: 0; }
.portal-phone img { width: 100%; height: auto; display: block; border-radius: 26px;
  border: 6px solid #15181e; background: #15181e; box-shadow: 0 26px 54px rgba(22,24,29,.24); }
.portal-phone figcaption { font-size: 12.5px; color: var(--muted); margin-top: 12px; text-align: center; }

.portal-ba-table { border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: #fff; }
.portal-ba-row { display: grid; grid-template-columns: minmax(96px, .2fr) 1fr 1fr; }
.portal-ba-row + .portal-ba-row { border-top: 1px solid var(--line); }
.portal-ba-row > * { padding: 18px 22px; font-size: 14.5px; }
.portal-ba-row--head > * { font-size: 12.5px; font-weight: 660; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); background: rgba(22,24,29,.035); }
.portal-ba-key { font-weight: 640; }
.portal-ba-before { color: var(--muted); }
.portal-ba-after { color: var(--ink); background: rgba(31,107,255,.045); border-left: 1px solid var(--line); }
.portal-ba-row--head .portal-ba-after { color: var(--blue); }

.lumen-body .portal-note { font-size: 12px; color: var(--muted); margin-top: 18px; }
.portal-section--dark .portal-note { color: rgba(255,255,255,.55); }

@media (max-width: 1000px) {
  .portal-split { grid-template-columns: 1fr; gap: 28px; }
  .portal-split--flip .portal-split-media { order: 0; }
  .portal-shot-pair { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .portal-split-list--two { grid-template-columns: 1fr; gap: 0; }
  .portal-split-list--two li:nth-child(2) { border-top: 1px solid var(--line); padding-top: 16px; }
  .portal-solve-row { grid-template-columns: 1fr; }
  .portal-solve-fix { padding-top: 16px; }
  .portal-ba-row { grid-template-columns: 1fr; }
  .portal-ba-row > * { padding: 12px 18px; }
  .portal-ba-row--head { display: none; }
  .portal-ba-key { padding-bottom: 4px; }
  .portal-ba-after { border-left: 0; }
  .portal-phones { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
}

/* Editorial rich text from Halo */
.portal-editorial { max-width: 46em; margin: 0 auto; }
.portal-editorial h2 { font-size: 24px; font-weight: 680; margin: 40px 0 14px; }
.portal-editorial h3 { font-size: 19px; font-weight: 660; margin: 30px 0 10px; }
.portal-editorial p { margin: 14px 0; color: #333a44; }
.portal-editorial ul, .portal-editorial ol { margin: 14px 0; padding-left: 24px; color: #333a44; }
.portal-editorial li { margin: 6px 0; }
.portal-editorial img { border-radius: 14px; }
.portal-editorial a { color: var(--blue-ink); text-decoration: underline; }
.portal-editorial blockquote { margin: 18px 0; padding: 4px 20px; border-left: 3px solid var(--blue);
  color: var(--muted); background: var(--paper-2); border-radius: 0 10px 10px 0; }

/* Contact band */
.portal-contact-band { background: var(--paper-2); border-top: 1px solid var(--line); }
.portal-contact-layout { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.portal-contact-layout h2 { font-size: clamp(24px, 3vw, 36px); font-weight: 680; letter-spacing: -0.015em; margin-top: 12px; }
.portal-contact-layout p { color: var(--muted); margin-top: 12px; max-width: 36em; }

/* Content hub (archives, tags, categories, article) */
.portal-content-main { background: var(--paper); }
.portal-content-hero { padding: 176px 0 56px; border-bottom: 1px solid var(--line);
  background:
    radial-gradient(110% 90% at 82% 0%, #dcecff 0%, transparent 55%),
    linear-gradient(180deg, #eef4fb 0%, #ffffff 100%); }
.portal-content-hero h1 { font-size: clamp(30px, 4.2vw, 48px); font-weight: 680; letter-spacing: -0.015em; margin-top: 12px; }
.portal-content-hero p { color: var(--muted); margin-top: 14px; max-width: 40em; }
.portal-content-nav { display: flex; gap: 10px; margin-top: 26px; flex-wrap: wrap; }
.portal-content-nav a { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line);
  font-size: 13.5px; color: var(--muted); background: #fff; }
.portal-content-nav a:hover { color: var(--ink); }
.portal-content-nav a.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.portal-content-section { padding: 64px 0 96px; }
.portal-content-list { display: flex; flex-direction: column; }
.portal-content-entry { display: grid; grid-template-columns: 110px minmax(0, 1fr) 44px;
  gap: 24px; align-items: start; padding: 26px 0; border-bottom: 1px solid var(--line); }
.portal-content-entry time { font-family: var(--mono); font-size: 13px; color: var(--muted); padding-top: 4px; }
.portal-content-taxonomy { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.portal-content-taxonomy a { font-size: 12px; color: var(--blue-ink); }
.portal-content-taxonomy a:hover { text-decoration: underline; }
.portal-content-entry-copy h2, .portal-content-entry-copy h3 { font-size: 18px; font-weight: 650; line-height: 1.45; }
.portal-content-entry-copy h2 a:hover, .portal-content-entry-copy h3 a:hover { color: var(--blue-ink); }
.portal-content-entry-copy p { font-size: 14px; color: var(--muted); margin-top: 6px; }
.portal-content-entry-arrow { display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); color: var(--muted); margin-top: 2px; }
.portal-content-entry-arrow:hover { color: #fff; background: var(--ink); border-color: var(--ink); }
.portal-content-entry-arrow i, .portal-content-entry-arrow svg { width: 16px; height: 16px; }
.portal-content-empty { border: 1px dashed var(--line); border-radius: 18px;
  padding: 34px; text-align: center; color: var(--muted); }
.portal-content-empty strong { display: block; color: var(--ink); margin-bottom: 4px; }
.portal-topic-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.portal-topic-item { display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 20px 22px; border: 1px solid var(--line); border-radius: 16px; background: #fff;
  transition: border-color .2s ease, transform .2s ease; }
.portal-topic-item:hover { border-color: var(--blue); transform: translateY(-2px); }
.portal-topic-item strong { display: block; font-size: 16px; font-weight: 650; }
.portal-topic-item small { display: block; margin-top: 4px; font-size: 13px; color: var(--muted); }
.portal-topic-item > span:last-child { font-family: var(--mono); font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.portal-topic-item--child { margin-left: 22px; background: var(--paper-2); }
.portal-archive-list { display: flex; flex-direction: column; }
.portal-archive-year:first-child h2 { margin-top: 0; }
.portal-archive-year h2 { font-size: 22px; font-weight: 680; margin: 34px 0 4px; }
.portal-archive-month > p { font-size: 13px; color: var(--muted); margin: 14px 0 0; font-family: var(--mono); }
.portal-pagination { display: flex; align-items: center; justify-content: center; gap: 18px;
  margin-top: 40px; font-size: 14px; color: var(--muted); }
.portal-pagination a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px;
  border-radius: 999px; border: 1px solid rgba(31,107,255,.38); color: var(--blue-ink);
  background: rgba(31,107,255,.07); }
.portal-pagination a:hover { border-color: rgba(31,107,255,.9); background: rgba(31,107,255,.92); color: #fff; }
.portal-pagination i, .portal-pagination svg { width: 14px; height: 14px; }

/* Article & simple pages */
.portal-article-hero p { max-width: 44em; }
.portal-article-meta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 18px;
  font-size: 13px; color: var(--muted); }
.portal-article-meta a { color: var(--blue-ink); }
.portal-article-section { padding: 64px 0 96px; }
.portal-article-layout { display: flex; flex-direction: column; gap: 56px; }
.portal-article-body { max-width: 46em; margin: 0 auto; width: 100%; }
.portal-article-body h2 { font-size: 24px; font-weight: 680; margin: 40px 0 14px; }
.portal-article-body h3 { font-size: 19px; font-weight: 660; margin: 30px 0 10px; }
.portal-article-body p { margin: 14px 0; color: #333a44; }
.portal-article-body ul, .portal-article-body ol { margin: 14px 0; padding-left: 24px; color: #333a44; }
.portal-article-body img { border-radius: 14px; }
.portal-article-body a { color: var(--blue-ink); text-decoration: underline; }
.portal-article-body blockquote { margin: 18px 0; padding: 4px 20px; border-left: 3px solid var(--blue);
  color: var(--muted); background: var(--paper-2); border-radius: 0 10px 10px 0; }
.portal-article-products { max-width: 46em; margin: 0 auto; width: 100%;
  border-top: 1px solid var(--line); padding-top: 26px;
  display: flex; gap: 18px; flex-wrap: wrap; align-items: center; font-size: 14px; }
.portal-article-products span { color: var(--muted); }
.portal-article-products a { font-weight: 640; color: var(--blue-ink); }
.portal-article-products a:hover { text-decoration: underline; }
.portal-text-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px;
  font-weight: 640; color: var(--blue-ink); }
.portal-text-link i, .portal-text-link svg { width: 15px; height: 15px; }

/* Legal doc */
.portal-legal-updated { color: var(--muted); font-size: 13.5px; margin-top: 14px; }
.lumen-body .portal-legal-note { max-width: 46em; margin: 40px auto 0; width: 100%;
  border-top: 1px solid var(--line); padding-top: 22px;
  font-size: 13.5px; color: var(--muted); }
.portal-legal-note a { color: var(--blue-ink); text-decoration: underline; }

/* 404 */
.lumen-404 { min-height: 72vh; display: flex; align-items: center; text-align: center;
  padding: 160px 0 80px;
  background:
    radial-gradient(110% 80% at 80% 0%, #dcecff 0%, transparent 55%),
    linear-gradient(180deg, #eef4fb 0%, #ffffff 100%); }
.lumen-404 h1 { font-size: clamp(64px, 14vw, 140px); font-weight: 680; color: var(--blue); letter-spacing: -0.02em; }
.lumen-404 p { color: var(--muted); margin-top: 10px; }

@media (max-width: 1000px) {
  .portal-detail-grid { grid-template-columns: 1fr; gap: 36px; }
  .portal-section-head { grid-template-columns: 1fr; align-items: start; gap: 14px; margin-bottom: 40px; }
  .portal-feature-grid { grid-template-columns: repeat(2, 1fr); }
  .portal-workflow { grid-template-columns: repeat(2, 1fr); }
  .portal-tool-grid { grid-template-columns: repeat(2, 1fr); }
  .portal-detail-summary .portal-wrap { grid-template-columns: 1fr; gap: 16px; }
  .portal-contact-layout { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 860px) {
  /* Narrow screens crop the photograph, so the scrim becomes vertical. */
  .portal-detail-hero--photo { padding: 152px 0 76px; }
  .portal-detail-hero--qhse { background-position: 64% center; }
  .portal-detail-hero--lab { background-position: center 66%; }
  .portal-detail-hero--photo::before {
    background: linear-gradient(180deg, rgba(7,11,17,.78) 0%, rgba(7,11,17,.6) 46%, rgba(7,11,17,.86) 100%); }
}
@media (max-width: 640px) {
  .portal-detail-hero { padding-top: 140px; }
  .portal-content-hero { padding-top: 150px; }
  .portal-section { padding: 72px 0; }
  .portal-compare { grid-template-columns: 1fr; }
  .portal-feature-grid, .portal-workflow, .portal-tool-grid { grid-template-columns: 1fr; }
  .portal-content-entry { grid-template-columns: 1fr; gap: 8px; }
  .portal-topic-grid { grid-template-columns: 1fr; }
  .portal-topic-item--child { margin-left: 14px; }
  .portal-content-entry-arrow { display: none; }
}
