/* SeqKan 质粒工具 · 独立版本页
   参考小米社区：左内容卡片流 + 右功能模块，浅灰底 + 白色卡片 */

:root {
  --bg: #f5f5f5;
  --card: #ffffff;
  --ink: #1a1a1a;
  --ink-2: #4a4a4a;
  --sub: #8a8a8a;
  --line: #f0f0f0;
  --blue: #1554c1;
  --blue-d: #0f46a5;
  --blue-soft: #eef4ff;
  --orange: #ff6700;
  --radius: 10px;
}

* { box-sizing: border-box; }

html, body { margin: 0; }
/* 预留滚动条位置：下载/反馈弹窗锁滚动时整页不再左右跳动 */
html { scrollbar-gutter: stable; }

body {
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.6 "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* ============ 顶部栏 ============ */
.site-head {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.head-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand { display: flex; align-items: center; gap: 9px; min-width: 0; }
.brand img { border-radius: 7px; }
.brand-name { font-size: 16.5px; font-weight: 700; letter-spacing: .4px; }

.head-nav { display: flex; align-items: center; gap: 20px; font-size: 13.5px; color: var(--ink-2); }
.head-nav a { transition: color .15s; }
.head-nav a:hover { color: var(--blue); }

.head-right { display: flex; align-items: center; gap: 18px; }
.head-admin { display: flex; align-items: center; gap: 9px; font-size: 13px; }
.head-admin .ha-login {
  height: 30px;
  padding: 0 13px;
  border: 1px solid #dbe4f2;
  border-radius: 999px;
  background: #fff;
  color: var(--ink-2);
  font: inherit;
  font-size: 12.5px;
  cursor: pointer;
  transition: color .15s, border-color .15s;
}
.head-admin .ha-login:hover { color: var(--blue); border-color: #a9c4ee; }
.head-admin .ha-link { color: var(--blue); font-size: 13px; }
.head-admin .ha-link:hover { text-decoration: underline; }
.head-admin .ha-out {
  height: 28px;
  padding: 0 11px;
  border: 1px solid #e2e6ee;
  border-radius: 999px;
  background: #f7f8fa;
  color: var(--sub);
  font: inherit;
  font-size: 12.5px;
  cursor: pointer;
}
.head-admin .ha-out:hover { color: #d03050; border-color: #f0c8d0; background: #fff6f7; }

/* 顶栏账号（官网与在线体验版共用登录态） */
.head-user { position: relative; display: flex; align-items: center; }
.head-user .ska-user-menu { position: absolute; top: calc(100% + 8px); right: 0; }
.hu-caret { flex: none; font-size: 10px; color: #8aa0b8; }
.head-user-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: 150px;
  height: 30px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink-2);
  font: inherit;
  font-size: 13.5px;
  cursor: pointer;
  transition: color .15s;
}
.head-user-btn:hover { color: var(--blue); }
.head-user-btn .hu-avatar {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}
.head-user-btn .hu-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.head-user-btn.is-on { color: #1d7a4a; }
/* 未登录时以纯文字呈现，与导航链接一致 */
.head-user-link {
  border: 0;
  padding: 0 2px;
  background: none;
  color: var(--ink-2);
  font: inherit;
  font-size: 13.5px;
  line-height: 1.4;
  cursor: pointer;
  transition: color .15s;
}
.head-user-link:hover { color: var(--blue); }

/* ============ 下载页 ============ */
.dl-page {
  max-width: 1000px;
  margin: 0 auto;
  padding: 22px 16px 44px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.dl-hero {
  padding: 28px 28px 24px;
  border: 1px solid #e2ecfb;
  border-radius: 12px;
  background: linear-gradient(118deg, #eef5ff 0%, #ffffff 62%);
}
.dl-hero h1 { margin: 0; font-size: 26px; letter-spacing: .2px; }
.dl-hero-sub { margin: 8px 0 0; font-size: 14px; line-height: 1.7; color: var(--ink-2); }
.dl-meta { margin: 12px 0 0; font-size: 12.5px; color: var(--sub); }

.dl-plat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.dl-plat-card {
  display: flex;
  flex-direction: column;
  padding: 20px 20px 16px;
  background: #fff;
  border: 1px solid #edf0f5;
  border-radius: 12px;
}
.dl-plat-head { display: flex; align-items: center; gap: 8px; }
.dl-plat-name { font-size: 17px; font-weight: 700; }
.dl-plat-tag { font-size: 11.5px; color: var(--blue); background: var(--blue-soft); border-radius: 4px; padding: 1px 6px; }
.dl-plat-note { margin: 7px 0 14px; font-size: 12.5px; color: var(--sub); }
.dl-main-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  border: 0;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
}
.dl-main-btn:hover { background: var(--blue-d); }
.dl-main-btn.is-disabled {
  background: #f1f3f7;
  color: #a3a9b5;
  cursor: not-allowed;
}
.dl-file { margin: 9px 0 0; font-size: 11.5px; color: #a3a9b5; word-break: break-all; }

.dl-note-card {
  padding: 20px 24px 18px;
  background: #fff;
  border: 1px solid #edf0f5;
  border-radius: 12px;
}
.dl-note-card h2 { margin: 0 0 10px; font-size: 16.5px; }
.dl-note-lead { margin: 0 0 12px; font-size: 13.5px; line-height: 1.8; color: var(--ink-2); }
.dl-note-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.dl-note-list li { display: flex; flex-direction: column; gap: 3px; }
.dl-note-list b { font-size: 13.5px; color: #1f2a3a; }
.dl-note-list span { font-size: 13px; line-height: 1.75; color: #5b6675; }

.dl-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.dl-steps, .dl-req { margin: 0; padding-left: 20px; font-size: 13px; line-height: 1.95; color: #4a5565; }
.dl-req { list-style: none; padding-left: 0; }
.dl-req li::before { content: "·"; margin-right: 7px; color: var(--blue); font-weight: 700; }

.dl-foot-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 18px; margin: 4px 0 0; font-size: 13px; }
.dl-foot-links a { color: var(--blue); }
.dl-foot-links a:hover { text-decoration: underline; }

@media (max-width: 760px) {
  .dl-plat-grid, .dl-cols { grid-template-columns: minmax(0, 1fr); }
  .dl-hero { padding: 22px 18px; }
  .dl-hero h1 { font-size: 22px; }
  .dl-note-card { padding: 16px 16px 14px; }
  .head-admin { display: none; }
}

/* ============ 页面骨架 ============ */
.page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 20px 16px 40px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  grid-template-rows: auto auto;
  grid-template-areas:
    "hero side"
    "feed side";
  gap: 18px;
  align-items: start;
}

.hero { grid-area: hero; }
.col-main { grid-area: feed; min-width: 0; }

/* 赛勘推广：右列「更多功能」下方 */
.side-ad {
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 11px 13px;
  text-decoration: none;
  background: #f4f8ff;
  border: 1px solid #dbe6fa;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.side-ad:hover {
  border-color: #a9c4ee;
  box-shadow: 0 6px 16px rgba(21, 84, 193, .12);
  transform: translateY(-1px);
}
.side-ad-top {
  display: flex;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
}
.side-ad-name {
  font-size: 13px;
  font-weight: 700;
  color: #123a86;
  white-space: nowrap;
}
.side-ad-tag {
  font-size: 11px;
  color: #6b7f9c;
  white-space: nowrap;
}
.side-ad-go {
  margin-left: auto;
  font-size: 12px;
  font-weight: 600;
  color: var(--blue);
  white-space: nowrap;
}
.side-ad-desc {
  font-size: 12px;
  color: #5a6d88;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 右列随页面滚动固定在右侧 */
.col-side {
  grid-area: side;
  align-self: stretch;
  min-width: 0;
}
.side-stack {
  position: sticky;
  top: 70px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  /* 固定为一屏高度：右侧整列始终完整落在视口内；
     版本速递的展示条数由脚本按剩余高度动态调节 */
  height: calc(100vh - 90px);
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: none;
}
.side-stack::-webkit-scrollbar { width: 0; height: 0; }
.side-news {
  flex: 0 0 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: visible;
}
.side-more { flex: none; }
.side-tools { display: inline-flex; align-items: center; gap: 10px; }
.news-count {
  font-size: 12px;
  color: var(--sub);
  font-variant-numeric: tabular-nums;
}

/* 安全软件说明 */
.side-safe { flex: none; }
.safe-text { margin: 0; font-size: 12.5px; color: var(--sub); line-height: 1.7; }
.safe-tip { margin: 6px 0 0; font-size: 12.5px; color: var(--ink-2); line-height: 1.7; }
.safe-link { display: inline-block; margin-top: 8px; font-size: 12.5px; color: var(--blue); }
.safe-link:hover { text-decoration: underline; }

/* ============ 主推广轮播 ============ */
.hero {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: #eef4fb;
  aspect-ratio: 1370 / 720;
}

.hero-viewport { position: absolute; inset: 0; overflow: hidden; }

.hero-track {
  display: flex;
  width: 100%;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.hero-track::-webkit-scrollbar { display: none; }

.hero-slide {
  flex: 0 0 100%;
  display: block;
  height: 100%;
  line-height: 0;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.hero-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-dots {
  position: absolute;
  left: 18px;
  bottom: 14px;
  display: flex;
  align-items: center;
  gap: 7px;
}

/* 大图右下角：在线体验入口 */
.hero-demo-btn {
  position: absolute;
  right: 16px;
  bottom: 12px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .94);
  color: var(--blue);
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(13, 59, 140, .18);
  transition: transform .15s, box-shadow .15s, background .15s;
}
.hero-demo-btn:hover {
  transform: translateY(-1px);
  background: #fff;
  box-shadow: 0 6px 18px rgba(13, 59, 140, .24);
}

.hero-dots button {
  width: 7px;
  height: 7px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(22, 35, 58, .26);
  cursor: pointer;
  transition: width .2s, background .2s;
}

.hero-dots button.is-on {
  width: 20px;
  background: var(--blue);
}

/* ============ 左侧版本卡片流（小米社区帖子样式） ============ */
#releases { scroll-margin-top: 72px; }

.feed-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 4px 2px 10px;
}
.feed-head h2 { margin: 0; font-size: 17px; font-weight: 600; }
.feed-meta { font-size: 12.5px; color: var(--sub); }

.release-list { display: flex; flex-direction: column; gap: 10px; }
/* 版本列表分页 */
.release-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 0 2px;
}
.release-pager .pager-btn,
.release-pager .pager-num {
  min-width: 30px;
  height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink-2);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: color .15s, border-color .15s, background .15s;
}
.release-pager .pager-btn:hover:not(:disabled),
.release-pager .pager-num:hover { color: var(--blue); border-color: #a9c4ee; }
.release-pager .pager-num.is-on {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}
.release-pager .pager-btn:disabled { opacity: .45; cursor: default; }

.rel-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 16px 20px 12px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .025);
  transition: box-shadow .18s;
  scroll-margin-top: 72px;
}
.rel-card:hover { box-shadow: 0 4px 16px rgba(0, 0, 0, .055); }

.rel-card.is-focus {
  animation: cardFocus 1.4s ease;
}

@keyframes cardFocus {
  0% { box-shadow: 0 0 0 3px rgba(21, 84, 193, .28); }
  100% { box-shadow: 0 0 0 3px rgba(21, 84, 193, 0); }
}

.post-head {
  display: flex;
  align-items: center;
  gap: 9px;
}
.avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex: none;
}
.who { display: flex; align-items: center; gap: 6px; min-width: 0; }
.who .name { font-size: 13.5px; font-weight: 600; color: #2b2b2b; }
.who .badge {
  font-size: 10px;
  line-height: 1;
  color: var(--blue);
  background: var(--blue-soft);
  border-radius: 3px;
  padding: 2px 5px;
}
.post-date { margin-left: auto; font-size: 12.5px; color: var(--sub); white-space: nowrap; }

.post-title {
  margin: 13px 0 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .2px;
}
/* 最新标识：按钮内的绿色小标签，各平台各自标注最新版本 */
.dl-badge {
  display: inline-flex;
  align-items: center;
  height: 16px;
  margin-left: -1px;
  padding: 0 6px;
  border-radius: 8px;
  border: 1px solid #b7ebc6;
  background: #e8f7ee;
  color: #18a058;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .4px;
}

.rel-note {
  margin: 7px 0 0;
  font-size: 14px;
  line-height: 1.72;
  color: var(--ink-2);
}

.rel-foot {
  margin-top: 13px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.rel-dl { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.dl-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 15px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  transition: background .15s, color .15s;
}
.dl-btn svg { flex: none; }
.dl-win { background: var(--blue); color: #fff; }
.dl-win:hover { background: var(--blue-d); }
.dl-mac {
  background: #f5f5f5;
  color: #a3a3a3;
  cursor: not-allowed;
}
.dl-mac.is-disabled { pointer-events: none; }

.like {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  background: none;
  padding: 6px 4px;
  font: inherit;
  font-size: 13px;
  color: var(--sub);
  cursor: pointer;
  transition: color .15s;
}
.like svg { width: 18px; height: 18px; transition: transform .18s; }
.like em { font-style: normal; font-size: 12.5px; color: var(--sub); min-width: 10px; }
.like:hover { color: var(--orange); }
.like.is-liked { color: var(--orange); }
.like.is-liked svg { fill: var(--orange); stroke: var(--orange); }
.like.is-liked em { color: var(--orange); }
.like.pop svg { transform: scale(1.22); }

.state-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 34px 20px;
  text-align: center;
  color: var(--sub);
  font-size: 13.5px;
}
.state-card a { color: var(--blue); }

/* ============ 右侧模块 ============ */
.side-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 16px 16px 12px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .025);
}

.side-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
}
.side-head h2 { margin: 0; font-size: 15.5px; font-weight: 600; }
.side-more { font-size: 12.5px; color: var(--sub); transition: color .15s; }
.side-more:hover { color: var(--blue); }

/* 版本速递列表 */
.news-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.side-news .news-list {
  flex: 0 0 auto;
  min-height: 0;
  overflow: visible;
  padding: 2px 0 4px;
  display: flex;
  flex-direction: column;
}
.news-list li { margin: 0; min-width: 0; }
.side-news .news-list li {
  opacity: 1;
  transform: translateY(0);
  transition: opacity .15s ease, transform .15s ease;
}
.side-news .news-list.is-swap li {
  opacity: 0;
  transform: translateY(3px);
}
.news-list a {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 6px 0;
  font-size: 13.5px;
  color: #3d3d3d;
  line-height: 1.5;
}
.news-list a:hover .news-text { color: var(--blue); }
.news-num {
  flex: none;
  width: 15px;
  font-size: 14px;
  font-weight: 700;
  color: #b9b9b9;
  font-style: italic;
  text-align: left;
}
.news-list li:nth-child(-n+3) .news-num { color: #e04b3c; }
.news-text {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color .15s;
}
.news-empty { color: var(--sub); font-size: 13px; padding: 6px 0; }

/* 更多功能四格 */
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  padding-top: 2px;
}

.service {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 12px 2px 8px;
  border-radius: 8px;
  font-size: 11.5px;
  color: var(--ink-2);
  text-align: center;
  transition: background .15s, color .15s;
  white-space: nowrap;
}
button.service {
  border: 0;
  background: none;
  font-family: inherit;
  cursor: pointer;
}
.service svg { width: 24px; height: 24px; color: #9aa7bb; transition: color .15s; }
.service:hover { background: #f7f9fc; color: var(--blue); }
.service:hover svg { color: var(--blue); }

/* 在线客服入口：在线状态圆点 + 未读角标 */
.chat-entry { position: relative; }
.chat-entry-ico { position: relative; display: block; line-height: 0; }
.chat-entry-dot {
  position: absolute;
  right: -3px;
  bottom: 0;
  width: 8px;
  height: 8px;
  border: 1.5px solid #fff;
  border-radius: 50%;
  background: #c2c9d4;
}
.chat-entry-dot.is-on { background: #22c55e; }
.chat-badge {
  position: absolute;
  top: 4px;
  right: 6px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #e04b3c;
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  line-height: 16px;
  text-align: center;
}

/* ============ 页脚 ============ */
.site-foot {
  border-top: 1px solid #ebebeb;
  padding: 24px 16px 34px;
  text-align: center;
  color: #a0a0a0;
  font-size: 12px;
  line-height: 1.9;
}
.site-foot p { margin: 0; }
.foot-links { display: flex; justify-content: center; gap: 16px; margin-top: 4px !important; }
.foot-links a:hover { color: var(--blue); }

/* ============ 回到顶部 ============ */
.to-top {
  position: fixed; right: 24px; bottom: max(24px, env(safe-area-inset-bottom));
  z-index: 30; width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 50%;
  background: #fff; color: var(--blue); cursor: pointer;
  box-shadow: 0 6px 18px rgba(17, 34, 68, .14);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .2s, visibility .2s, transform .2s, background .15s, color .15s, border-color .15s;
}
.to-top.is-on { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.to-top svg { width: 20px; height: 20px; display: block; }
@media (max-width: 520px) {
  .to-top { right: 16px; bottom: max(18px, env(safe-area-inset-bottom)); width: 40px; height: 40px; }
  body.chat-open .to-top { right: 16px; }
}

/* ============ 通用弹窗（下载安全提示） ============ */
body.fb-open { overflow: hidden; }

.fb-mask {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(17, 24, 39, .42);
}
.fb-mask[hidden] { display: none; }

.fb-dialog {
  position: relative;
  width: 100%;
  max-width: 460px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 22px 24px 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 18px 50px rgba(17, 24, 39, .18);
}

.fb-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #9aa3af;
  font-size: 21px;
  line-height: 1;
  cursor: pointer;
}
.fb-close:hover { background: #f3f5f7; color: #4b5563; }

.fb-title { margin: 0 0 4px; font-size: 18px; color: #222c39; }
.fb-sub { margin: 0 0 16px; font-size: 12.5px; color: #9aa3af; line-height: 1.6; }

.fb-foot { display: flex; align-items: center; gap: 12px; margin-top: 4px; }
.fb-msg { flex: 1; min-width: 0; font-size: 12.5px; color: #9aa3af; }
.fb-msg.is-ok { color: #059669; }
.fb-msg.is-err { color: #d93025; }

.fb-submit {
  flex: none;
  height: 36px;
  padding: 0 20px;
  border: 0;
  border-radius: 7px;
  background: #2f67d9;
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
}
.fb-submit:hover { background: #2557bd; }
.fb-submit:disabled { opacity: .65; cursor: default; }
a.fb-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.fb-cancel {
  flex: none;
  height: 36px;
  padding: 0 16px;
  border: 1px solid #dce4f2;
  border-radius: 7px;
  background: #fff;
  color: #5b6675;
  font: inherit;
  font-size: 13.5px;
  cursor: pointer;
}
.fb-cancel:hover { border-color: #a9c4ee; color: var(--blue); }

/* ============ 在线客服面板 ============ */
body.chat-open { overflow: hidden; }

.chat-mask {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 24px;
  background: rgba(17, 24, 39, .18);
}
.chat-mask[hidden] { display: none; }

.chat-panel {
  display: flex;
  flex-direction: column;
  width: 400px;
  max-width: calc(100vw - 32px);
  height: 560px;
  max-height: calc(100vh - 48px);
  overflow: hidden;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 18px 50px rgba(17, 24, 39, .22);
  font-size: 13.5px;
}

.chat-head {
  flex: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid #eef1f6;
}
.chat-avatar {
  flex: none;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
}
.chat-avatar svg { width: 20px; height: 20px; }
.chat-avatar img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.chat-head-txt { flex: 1; min-width: 0; }
.chat-title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #1f2a3a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chat-state {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 2px 0 0;
  font-size: 11.5px;
  color: #8b95a5;
}
.chat-dot {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c2c9d4;
}
.chat-dot.is-on { background: #22c55e; }
.chat-close {
  flex: none;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #9aa3af;
  font-size: 21px;
  line-height: 1;
  cursor: pointer;
}
.chat-close:hover { background: #f3f5f7; color: #4b5563; }

.chat-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 14px;
  background: #f7f9fc;
}
.chat-body::-webkit-scrollbar { width: 6px; }
.chat-body::-webkit-scrollbar-thumb { background: #d8dee8; border-radius: 3px; }

.chat-msg {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 12px;
}
.chat-msg.is-visitor { align-items: flex-end; }
.chat-msg.is-agent { position: relative; padding-left: 36px; }
.chat-agent-avatar {
  position: absolute;
  left: 0;
  top: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 0 0 1px #e8edf5;
}
.chat-agent-avatar img { display: block; width: 100%; height: 100%; }
.chat-bubble {
  max-width: 82%;
  padding: 9px 12px;
  border: 1px solid #e8edf5;
  border-radius: 12px;
  background: #fff;
  color: #2b3442;
  line-height: 1.65;
  white-space: pre-wrap;
  word-break: break-word;
}
.chat-msg.is-visitor .chat-bubble {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}
.chat-meta {
  display: flex;
  gap: 6px;
  margin-top: 4px;
  padding: 0 2px;
  font-size: 11px;
  color: #a3acba;
}
.chat-read.is-read { color: #6b90d6; }
.chat-recall-btn {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: #6b90d6;
  cursor: pointer;
}
.chat-recall-btn:hover { text-decoration: underline; }
.chat-recall-btn:disabled { color: #a3acba; cursor: default; text-decoration: none; }
.chat-msg.is-recall { align-items: center; }
.chat-recall {
  padding: 2px 10px;
  border-radius: 10px;
  background: #eef1f6;
  font-size: 11.5px;
  color: #8c96a6;
}

.chat-welcome {
  max-width: 90%;
  margin: 2px 0 14px;
  padding: 11px 13px;
  border: 1px solid #e8edf5;
  border-radius: 12px;
  background: #fff;
  color: #4b5563;
  font-size: 13px;
  line-height: 1.7;
}
.chat-welcome[hidden] { display: none; }
.chat-welcome-title { margin: 0 0 3px; font-weight: 600; color: #1f2a3a; }
.chat-welcome-sub { margin: 0; color: #7b8695; }

.chat-system {
  margin: 0 0 12px;
  color: #9aa3af;
  font-size: 12px;
  text-align: center;
}

.chat-offline {
  flex: none;
  padding: 10px 14px 0;
  border-top: 1px solid #eef1f6;
  background: #fff;
}
.chat-offline[hidden] { display: none; }
.chat-offline-tip {
  margin: 0 0 9px;
  padding: 6px 9px;
  border-radius: 7px;
  background: #fff8e6;
  color: #a16207;
  font-size: 11.5px;
  line-height: 1.6;
}
.chat-fields { display: flex; gap: 8px; margin-bottom: 10px; }
.chat-field {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}
.chat-field > span { flex: none; font-size: 12px; color: #6b7280; }
.chat-field input {
  flex: 1;
  min-width: 0;
  width: 100%;
  height: 30px;
  padding: 0 9px;
  border: 1px solid #dce0e5;
  border-radius: 7px;
  background: #fff;
  color: #111827;
  font: inherit;
  font-size: 12.5px;
  outline: none;
}
.chat-field input:focus {
  border-color: #2f67d9;
  box-shadow: 0 0 0 3px rgba(47, 103, 217, .12);
}

.chat-foot {
  flex: none;
  padding: 10px 14px 12px;
  border-top: 1px solid #eef1f6;
  background: #fff;
}
.chat-editor { display: flex; align-items: flex-end; gap: 8px; }
.chat-input {
  flex: 1;
  min-width: 0;
  height: 42px;
  max-height: 96px;
  padding: 10px 11px;
  border: 1px solid #dce0e5;
  border-radius: 9px;
  background: #fff;
  color: #111827;
  font: inherit;
  font-size: 13.5px;
  line-height: 1.5;
  resize: none;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.chat-input:focus {
  border-color: #2f67d9;
  box-shadow: 0 0 0 3px rgba(47, 103, 217, .12);
}
.chat-send {
  flex: none;
  height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 9px;
  background: var(--blue);
  color: #fff;
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
}
.chat-send:hover { background: var(--blue-d); }
.chat-send:disabled { opacity: .6; cursor: default; }
.chat-hint {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 6px;
  font-size: 11px;
  color: #a3acba;
}
.chat-note { min-width: 0; }
.chat-note.is-err { color: #d93025; }
.chat-count { flex: none; }
.chat-count.is-full { color: #d93025; }

.chat-tools {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}
.chat-tool {
  height: 26px;
  padding: 0 10px;
  border: 1px solid #dce0e5;
  border-radius: 6px;
  background: #fff;
  color: #4b5563;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  flex: none;
  white-space: nowrap;
  transition: border-color .15s, color .15s;
}
.chat-tool:hover { border-color: var(--blue); color: var(--blue); }
.chat-tool-tip {
  flex: 1;
  margin-left: auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  color: #a3acba;
}
.chat-pending {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  padding: 6px 8px;
  border: 1px solid #e8edf5;
  border-radius: 8px;
  background: #f8faff;
  font-size: 12px;
  color: #4b5563;
}
.chat-pending[hidden] { display: none; }
.chat-pending-img {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  object-fit: cover;
}
.chat-pending-name {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chat-pending-size { color: #a3acba; }
.chat-pending-x {
  flex: none;
  margin-left: auto;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #e8edf5;
  color: #64748b;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}
.chat-pending-x:hover { background: #d93025; color: #fff; }

.chat-bubble.has-attach { padding: 6px; }
.chat-bubble.has-attach.has-text { padding: 9px 12px; }
.chat-img-link { display: block; line-height: 0; }
.chat-bubble.has-attach.has-text .chat-img-link { margin-top: 6px; }
.chat-img {
  display: block;
  max-width: 220px;
  max-height: 180px;
  border-radius: 8px;
  object-fit: contain;
}
.chat-file {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 3px 5px;
  color: inherit;
  text-decoration: none;
}
.chat-file-ico { font-size: 20px; line-height: 1; }
.chat-file-info { display: flex; flex-direction: column; min-width: 0; }
.chat-file-info b {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12.5px;
  font-weight: 600;
}
.chat-file-info small { font-size: 11px; color: #a3acba; }
.chat-msg.is-visitor .chat-file-info small { color: rgba(255, 255, 255, .78); }
.chat-msg.is-visitor .chat-bubble.has-attach { background: #fff; border-color: #e8edf5; color: #2b3442; }
.chat-msg.is-visitor .chat-bubble.has-attach .chat-file-info small { color: #a3acba; }

@media (max-width: 520px) {
  .chat-mask {
    align-items: center;
    justify-content: center;
    padding: 16px;
  }
  .chat-panel {
    width: calc(100vw - 32px);
    max-width: calc(100vw - 32px);
    height: 70vh;
    max-height: 70vh;
  }
  .chat-head { padding: 12px 14px; }
  .chat-body { padding: 12px; }
  .chat-foot { padding: 10px 12px 12px; }
  .chat-send { padding: 0 14px; }
  .chat-fields { flex-direction: column; gap: 6px; }
}

/* 下载安全提示弹窗 */
.dl-confirm { width: 100%; max-width: 520px; }
.dl-safety {
  margin: 4px 0 16px;
  padding: 12px 14px;
  border: 1px solid #e8eef8;
  border-radius: 9px;
  background: #f7faff;
}
.dl-safety-title {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  color: #1f2a3a;
}
.dl-safety ul {
  margin: 0;
  padding-left: 18px;
  font-size: 12.5px;
  line-height: 1.85;
  color: #5b6675;
}
.dl-safety li { margin-bottom: 2px; }

@media (max-width: 520px) {
  .fb-dialog { padding: 20px 18px 18px; }
  .fb-foot { flex-direction: column-reverse; align-items: stretch; }
  .fb-submit { width: 100%; }
  .fb-msg { text-align: center; }
}

/* ============ 响应式 ============ */
/* 较矮的桌面屏幕：压缩右列间距，让三块都能完整落在视口内 */
@media (min-width: 901px) and (max-height: 760px) {
  .side-stack { gap: 10px; }
  .side-card { padding: 13px 14px 10px; }
  .side-head { padding-bottom: 6px; }
  .side-head h2 { font-size: 15px; }
  .news-list a { padding: 4px 0; font-size: 13px; }
  .safe-text, .safe-tip { font-size: 12px; line-height: 1.55; }
  .safe-tip { margin-top: 4px; }
  .safe-link { margin-top: 6px; }
  .service { padding: 8px 2px 4px; }
}

@media (max-width: 900px) {
  .page {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "hero"
      "side"
      "feed";
    gap: 12px;
  }
  .col-side { position: static; }
  .side-stack {
    position: static;
    gap: 12px;
    height: auto;
    max-height: none;
    overflow: visible;
    justify-content: flex-start;
  }
  .side-news { flex: 0 0 auto; overflow: visible; }
  .side-news .news-list {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 18px;
    justify-content: initial;
  }
  .service { padding: 10px 2px 6px; }
}

/* 手机端顶栏：收紧间距，隐藏在线体验入口 */
@media (max-width: 760px) {
  .head-inner { height: 50px; padding: 0 12px; }
  .brand { gap: 7px; }
  .brand img { width: 23px; height: 23px; }
  .brand-name { font-size: 15.5px; }
  .head-right { gap: 10px; }
  .head-nav { gap: 12px; font-size: 12.5px; }
  .head-nav .nav-online,
  .hero-demo-btn { display: none; }
  .head-user .hu-reg { display: none; }
}

@media (max-width: 520px) {
  .rel-card { padding: 14px 15px 10px; }
  .rel-foot { flex-wrap: wrap; }
  .rel-dl { width: 100%; }
  .dl-btn { flex: 1; justify-content: center; }
  .like { margin-left: auto; }
  .side-news .news-list { grid-template-columns: minmax(0, 1fr); }
  .hero-dots { left: 12px; bottom: 9px; }
}

/* ============ 总站门户（赛勘 SeqKan） ============ */

body.portal {
  --p-ink: #eef4ff;
  --p-sub: #9db0cd;
  --p-line: rgba(130, 170, 235, .16);
  --p-blue: #58a6ff;
  --p-cyan: #5fe3d0;
  --p-card: rgba(16, 29, 52, .66);
  background:
    radial-gradient(1100px 620px at 78% -8%, rgba(38, 99, 235, .32), transparent 62%),
    radial-gradient(900px 560px at 8% 18%, rgba(31, 189, 170, .14), transparent 60%),
    linear-gradient(180deg, #050b18 0%, #071224 46%, #050b18 100%);
  color: var(--p-ink);
  min-height: 100vh;
  overflow-x: hidden;
}

body.portal::before {
  content: "";
  /* 网格只覆盖首屏且带径向淡出，改为随页面滚动定位，避免固定层在滚动时反复合成 */
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(120, 170, 240, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 170, 240, .045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(1000px 700px at 50% 0%, #000 30%, transparent 78%);
}

body.portal a { color: inherit; }

.portal .site-head {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(5, 11, 24, .72);
  border-bottom: 1px solid var(--p-line);
  backdrop-filter: saturate(160%) blur(16px);
}

.portal .head-inner { max-width: 1180px; height: 64px; }

.portal .brand img {
  padding: 3px;
  background: rgba(255, 255, 255, .94);
  border-radius: 9px;
}

.portal .brand-name { color: #f4f8ff; font-size: 17px; letter-spacing: .6px; }
.portal .brand-name em { font-style: normal; color: var(--p-cyan); font-weight: 800; letter-spacing: .4px; }

.portal-nav { gap: 26px; font-size: 14px; color: rgba(224, 236, 255, .72); }
.portal-nav a:hover { color: #fff; }
.portal .head-right { gap: 14px; }
.portal .head-user-btn { color: rgba(232, 242, 255, .86); }
.portal .head-user-btn:hover { color: #fff; }

.portal-chat-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(120, 180, 255, .34);
  border-radius: 999px;
  background: rgba(34, 82, 160, .28);
  color: #dbeaff;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: background .18s, border-color .18s, transform .18s;
}
.portal-chat-btn:hover { background: rgba(58, 122, 220, .36); border-color: rgba(140, 196, 255, .55); transform: translateY(-1px); }
.portal-chat-btn svg { width: 16px; height: 16px; }
.portal-chat-btn .chat-badge { position: static; margin-left: 1px; }

.portal-main { position: relative; z-index: 1; }

/* ---------- 首屏 ---------- */
.portal-hero {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: 96px 24px 78px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  align-items: center;
  gap: 30px;
  /* 不裁切背景光晕，避免首屏左右出现明显的竖直边界 */
  overflow: visible;
}

.portal-bg { position: absolute; inset: 0; pointer-events: none; }
.portal-orb { position: absolute; border-radius: 50%; opacity: .55; }
.portal-orb-a { width: 420px; height: 420px; top: -120px; right: -60px; background: radial-gradient(circle, rgba(52, 126, 255, .62), transparent 66%); }
.portal-orb-b { width: 320px; height: 320px; bottom: -130px; right: 150px; background: radial-gradient(circle, rgba(38, 214, 189, .34), transparent 68%); }
.portal-orb-c { width: 300px; height: 300px; top: 140px; left: -160px; background: radial-gradient(circle, rgba(96, 76, 255, .28), transparent 70%); }

.portal-molecule {
  position: absolute;
  width: 560px;
  height: 560px;
  top: 46%;
  right: -40px;
  transform: translateY(-50%);
  opacity: .9;
  animation: portal-spin 46s linear infinite;
}
@keyframes portal-spin { to { transform: translateY(-50%) rotate(360deg); } }
.portal-molecule circle { filter: drop-shadow(0 0 5px rgba(122, 196, 255, .9)); }

.portal-hero-inner { position: relative; z-index: 2; max-width: 620px; }

.portal-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 20px;
  padding: 6px 13px;
  border: 1px solid rgba(120, 180, 255, .28);
  border-radius: 999px;
  background: rgba(24, 48, 88, .42);
  color: #a8c6ef;
  font-size: 12.5px;
  letter-spacing: .6px;
}
.portal-eyebrow i { width: 6px; height: 6px; border-radius: 50%; background: var(--p-cyan); box-shadow: 0 0 10px rgba(95, 227, 208, .9); }

.portal-hero h1 {
  margin: 0;
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.16;
  letter-spacing: -.5px;
  font-weight: 800;
  color: #f6faff;
}
.portal-hero h1 span {
  background: linear-gradient(96deg, #7fc4ff 6%, #5fe3d0 52%, #b7a8ff 96%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.portal-sub {
  margin: 22px 0 0;
  color: var(--p-sub);
  font-size: 15.5px;
  line-height: 1.85;
}

.portal-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.portal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 22px;
  border: 1px solid rgba(140, 186, 245, .28);
  border-radius: 11px;
  background: rgba(22, 40, 70, .5);
  color: #ddeaff;
  font-size: 14.5px;
  font-weight: 600;
  transition: transform .18s, border-color .18s, background .18s, box-shadow .18s;
}
.portal-btn:hover { transform: translateY(-2px); border-color: rgba(140, 196, 255, .6); }
.portal-btn.is-primary {
  border-color: transparent;
  background: linear-gradient(100deg, #2f7cf6, #36c2c4);
  color: #fff;
  box-shadow: 0 12px 30px rgba(44, 120, 226, .32);
}
.portal-btn.is-primary:hover { box-shadow: 0 16px 36px rgba(44, 150, 226, .42); }
.portal-btn.is-ghost { background: transparent; }

.portal-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 34px;
  margin: 42px 0 0;
  padding: 0;
  list-style: none;
}
.portal-stats li { display: flex; flex-direction: column; gap: 4px; }
.portal-stats strong { font-size: 26px; font-weight: 800; color: #fff; letter-spacing: -.5px; }
.portal-stats span { font-size: 12.5px; color: #8ea6c8; letter-spacing: .4px; }

/* ---------- 通用区块 ---------- */
.portal-section {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: 30px 24px 76px;
}

.portal-sec-head { max-width: 640px; margin-bottom: 34px; }
.portal-sec-kicker {
  margin: 0 0 10px;
  color: var(--p-cyan);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.4px;
}
.portal-sec-head h2 { margin: 0; font-size: clamp(24px, 2.6vw, 32px); letter-spacing: -.3px; color: #f4f8ff; }
.portal-sec-sub { margin: 12px 0 0; color: var(--p-sub); font-size: 14.5px; line-height: 1.8; }

/* ---------- 产品矩阵 ---------- */
.portal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.portal-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px 26px 22px;
  border: 1px solid var(--p-line);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(28, 48, 82, .5), rgba(12, 23, 42, .66));
  overflow: hidden;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.portal-card::after {
  content: "";
  position: absolute;
  inset: -1px auto auto -1px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle at 0 0, rgba(88, 166, 255, .2), transparent 70%);
  opacity: 0;
  transition: opacity .25s;
  pointer-events: none;
}
.portal-card:hover { transform: translateY(-4px); border-color: rgba(120, 180, 255, .4); box-shadow: 0 24px 50px rgba(2, 8, 20, .5); }
.portal-card:hover::after { opacity: 1; }
.portal-card.is-gene::after { background: radial-gradient(circle at 0 0, rgba(95, 227, 208, .2), transparent 70%); }
.portal-card.is-plot::after { background: radial-gradient(circle at 0 0, rgba(183, 168, 255, .2), transparent 70%); }

.portal-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

.portal-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(120, 180, 255, .26);
  border-radius: 12px;
  background: rgba(36, 78, 148, .34);
  color: #9fd0ff;
}
.portal-ico svg { width: 23px; height: 23px; }
.portal-card.is-gene .portal-ico { background: rgba(20, 104, 96, .32); color: #8af0dd; border-color: rgba(95, 227, 208, .26); }
.portal-card.is-plot .portal-ico { background: rgba(66, 52, 128, .34); color: #cfc4ff; border-color: rgba(183, 168, 255, .26); }
.portal-ico.is-sm { width: 38px; height: 38px; border-radius: 10px; }
.portal-ico.is-sm svg { width: 20px; height: 20px; }

.portal-kind {
  padding: 4px 10px;
  border: 1px solid rgba(95, 227, 208, .4);
  border-radius: 999px;
  color: #7fe6d6;
  font-size: 11.5px;
  letter-spacing: .3px;
}
.portal-kind.is-web { border-color: rgba(140, 186, 245, .4); color: #a9c9f0; }

.portal-card h3 {
  margin: 20px 0 0;
  font-size: 21px;
  letter-spacing: -.2px;
  color: #f4f8ff;
}
.portal-card h3 span { margin-left: 8px; font-size: 14px; font-weight: 500; color: #9fb6d6; }

.portal-card p { margin: 12px 0 0; color: var(--p-sub); font-size: 14px; line-height: 1.8; }

.portal-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.portal-tags li {
  padding: 4px 10px;
  border-radius: 7px;
  background: rgba(96, 146, 210, .14);
  color: #a9c3e4;
  font-size: 12px;
}

.portal-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 22px;
}
.portal-go { color: #8ec8ff; font-size: 14px; font-weight: 600; }
.portal-go span { display: inline-block; transition: transform .18s; }
.portal-go:hover span { transform: translateX(4px); }
.portal-host { color: #6c86a8; font-size: 12px; letter-spacing: .2px; }
.portal-dl {
  flex-shrink: 0;
  padding: 4px 9px;
  border: 1px solid rgba(142, 200, 255, .35);
  border-radius: 6px;
  color: #a9c3e4;
  font-size: 12px;
  white-space: nowrap;
  transition: background .18s, border-color .18s;
}
.portal-dl:hover { background: rgba(96, 146, 210, .16); border-color: rgba(142, 200, 255, .6); }

/* ---------- 统一账号 ---------- */
.portal-band {
  position: relative;
  max-width: 1132px;
  margin: 6px auto 84px;
  padding: 42px 44px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 46px;
  border: 1px solid rgba(110, 170, 245, .22);
  border-radius: 20px;
  background:
    radial-gradient(600px 300px at 88% 8%, rgba(57, 130, 245, .26), transparent 66%),
    linear-gradient(120deg, rgba(18, 34, 60, .9), rgba(10, 20, 38, .88));
  overflow: hidden;
}
.portal-band h2 { margin: 0; font-size: clamp(23px, 2.4vw, 29px); color: #f4f8ff; }
.portal-band p { margin: 14px 0 0; color: var(--p-sub); font-size: 14.5px; line-height: 1.85; }
.portal-band-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

.portal-band-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
  align-content: center;
}
.portal-band-list li { display: flex; flex-direction: column; gap: 5px; padding-left: 14px; border-left: 2px solid rgba(95, 227, 208, .38); }
.portal-band-list b { font-size: 14.5px; color: #eaf2ff; }
.portal-band-list span { font-size: 12.5px; color: #8ea6c8; line-height: 1.65; }

/* ---------- 服务 ---------- */
.portal-service { padding-bottom: 88px; }
.portal-service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.portal-service-grid article {
  padding: 26px 24px;
  border: 1px solid var(--p-line);
  border-radius: 15px;
  background: rgba(14, 26, 47, .6);
}
.portal-service-grid h3 { margin: 16px 0 0; font-size: 17px; color: #f1f6ff; }
.portal-service-grid p { margin: 10px 0 0; color: var(--p-sub); font-size: 13.5px; line-height: 1.8; }
.portal-text-btn {
  margin-top: 14px;
  padding: 0;
  border: 0;
  background: none;
  color: #8ec8ff;
  font: inherit;
  font-size: 13.5px;
  cursor: pointer;
}
.portal-text-btn:hover { text-decoration: underline; }

/* ---------- 页脚 ---------- */
.portal .site-foot {
  position: relative;
  z-index: 1;
  margin-top: 0;
  padding: 42px 24px 30px;
  border-top: 1px solid var(--p-line);
  background: rgba(4, 9, 20, .7);
  color: #8ea6c8;
}
.portal-foot-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 34px;
}
.portal-foot-brand { display: flex; align-items: center; gap: 11px; margin-right: auto; }
.portal-foot-brand img { padding: 3px; background: rgba(255, 255, 255, .92); border-radius: 9px; }
.portal-foot-brand strong { display: block; color: #eef4ff; font-size: 14.5px; }
.portal-foot-brand span { display: block; margin-top: 2px; font-size: 12px; color: #7890b0; }
.portal-foot-links { display: flex; flex-wrap: wrap; gap: 18px; font-size: 13px; color: #9db3d2; }
.portal-foot-links.is-sub { gap: 16px; color: #7f97b8; }
.portal-foot-links a:hover { color: #cfe4ff; }
.portal-copy {
  max-width: 1180px;
  margin: 26px auto 0;
  font-size: 12px;
  color: #627a9a;
}

/* ---------- 门户响应式 ---------- */
@media (max-width: 940px) {
  .portal-hero { grid-template-columns: 1fr; padding-top: 66px; padding-bottom: 46px; }
  .portal-molecule { width: 460px; height: 460px; right: -160px; opacity: .55; }
  .portal-grid { grid-template-columns: 1fr; }
  .portal-band { grid-template-columns: 1fr; padding: 32px 26px; gap: 28px; }
  .portal-service-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .portal .head-inner { height: 58px; padding: 0 14px; }
  .portal-nav { display: none; }
  .portal-hero { padding: 46px 18px 40px; }
  .portal-sub { font-size: 14.5px; }
  .portal-sub .portal-br { display: none; }
  .portal-stats { gap: 24px; }
  .portal-stats strong { font-size: 22px; }
  .portal-section { padding: 20px 18px 56px; }
  .portal-card { padding: 22px 20px 18px; }
  .portal-band { margin: 0 14px 56px; }
  .portal-band-list { grid-template-columns: 1fr; gap: 14px; }
  .portal-foot-inner { flex-direction: column; align-items: flex-start; gap: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .portal-molecule { animation: none; }
}

/* ---------- 浅色门户主题 ---------- */
body.portal {
  --p-ink: #10213a;
  --p-sub: #5b6f8c;
  --p-line: rgba(36, 84, 150, .12);
  --p-blue: #2f7cf6;
  --p-cyan: #0e9c8f;
  --p-card: #fff;
  background:
    radial-gradient(900px 520px at 82% -6%, rgba(47, 124, 246, .12), transparent 62%),
    radial-gradient(760px 480px at 4% 12%, rgba(20, 190, 170, .1), transparent 60%),
    linear-gradient(180deg, #f8fbff 0%, #eef4fc 48%, #f8fbff 100%);
  color: var(--p-ink);
}
body.portal::before {
  background-image:
    linear-gradient(rgba(36, 84, 150, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(36, 84, 150, .05) 1px, transparent 1px);
}
.portal .site-head {
  background: rgba(255, 255, 255, .96);
  border-bottom-color: #dde8f7;
  box-shadow: 0 8px 24px rgba(24, 62, 120, .05);
  /* 浅色主题下取消毛玻璃，避免滚动时整条顶栏反复重绘造成卡顿 */
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.portal .brand img { background: transparent; border: 0; }
.portal .head-inner { max-width: 1180px; padding: 0 24px; height: 62px; }
.portal .brand { gap: 10px; }
.portal .brand-name { font-size: 19px; }
.portal .brand-name { color: #0f2440; }
.portal .brand-name em { color: #0e9c8f; }
.portal-nav { color: #4a5f7d; }
.portal-nav a:hover { color: #1e6fe0; }
.portal .head-user-btn { color: #33496a; }
.portal .head-user-btn:hover { color: #1e6fe0; }
.portal .head-user-link { color: #33496a; }
.portal .head-user-link:hover { color: #1e6fe0; }

.portal-orb { opacity: .45; }
.portal-molecule { opacity: .5; }
.portal-molecule g { stroke: rgba(47, 124, 246, .16); }
.portal-molecule circle { fill: rgba(47, 124, 246, .5); filter: none; }

.portal-eyebrow {
  border-color: rgba(47, 124, 246, .22);
  background: #eef5ff;
  color: #35618f;
}
.portal-eyebrow i { background: #0e9c8f; box-shadow: 0 0 0 3px rgba(14, 156, 143, .14); }
.portal-hero h1 { color: #0d1f36; }
.portal-hero h1 span {
  background: linear-gradient(96deg, #2f7cf6 8%, #0e9c8f 56%, #6b5cf0 96%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.portal-sub { color: #566b88; }
.portal-btn {
  border-color: #d7e4f5;
  background: #fff;
  color: #29425f;
  box-shadow: 0 6px 18px rgba(23, 60, 120, .06);
}
.portal-btn:hover { border-color: #a9c9f2; }
.portal-btn.is-primary {
  border-color: transparent;
  background: linear-gradient(100deg, #2f7cf6, #36c2c4);
  color: #fff;
  box-shadow: 0 12px 26px rgba(47, 124, 246, .28);
}
.portal-btn.is-primary:hover { box-shadow: 0 16px 32px rgba(47, 124, 246, .34); }
.portal-btn.is-ghost { background: transparent; box-shadow: none; }
.portal-stats strong { color: #0d1f36; }
.portal-stats span { color: #6b809e; }

.portal-sec-kicker { color: #0e9c8f; }
.portal-sec-head h2 { color: #0d1f36; }
.portal-sec-sub { color: #5b6f8c; }

.portal-card {
  border-color: #e1eaf7;
  background: linear-gradient(180deg, #fff, #fbfdff);
  box-shadow: 0 10px 28px rgba(23, 60, 120, .06);
}
.portal-card::after { background: radial-gradient(circle at 0 0, rgba(47, 124, 246, .1), transparent 70%); }
.portal-card.is-gene::after { background: radial-gradient(circle at 0 0, rgba(14, 156, 143, .1), transparent 70%); }
.portal-card.is-plot::after { background: radial-gradient(circle at 0 0, rgba(107, 92, 240, .1), transparent 70%); }
.portal-card:hover { border-color: #b9d4f6; box-shadow: 0 20px 44px rgba(23, 60, 120, .12); }
.portal-ico { border-color: #d5e5fa; background: #eef5ff; color: #2f7cf6; }
.portal-card.is-gene .portal-ico { background: #e8f8f5; color: #0e9c8f; border-color: #c8ece6; }
.portal-card.is-plot .portal-ico { background: #f0eeff; color: #6b5cf0; border-color: #ddd6fb; }
.portal-kind { border-color: rgba(14, 156, 143, .3); background: #f2faf8; color: #0d8a7f; }
.portal-kind.is-web { border-color: rgba(47, 124, 246, .28); background: #f2f7ff; color: #2b6fd6; }
.portal-card h3 { color: #0d1f36; }
.portal-card h3 span { color: #6b809e; }
.portal-card p { color: #5b6f8c; }
.portal-tags li { background: #eef4fc; color: #4d6484; }
.portal-go { color: #2b6fd6; }
.portal-host { color: #8095b1; }
.portal-dl { border-color: rgba(47, 124, 246, .28); color: #2b6fd6; }
.portal-dl:hover { background: #eef4fc; border-color: rgba(47, 124, 246, .5); }

.portal-band {
  border-color: #dbe8f8;
  background:
    radial-gradient(600px 300px at 88% 8%, rgba(47, 124, 246, .12), transparent 66%),
    linear-gradient(120deg, #fff, #f5f9ff);
  box-shadow: 0 16px 40px rgba(23, 60, 120, .07);
}
.portal-band h2 { color: #0d1f36; }
.portal-band p { color: #5b6f8c; }
.portal-band-list li { border-left-color: rgba(14, 156, 143, .5); }
.portal-band-list b { color: #1c3552; }
.portal-band-list span { color: #6b809e; }

.portal-service-grid article {
  border-color: #e1eaf7;
  background: #fff;
  box-shadow: 0 10px 26px rgba(23, 60, 120, .05);
}
.portal-service-grid h3 { color: #0d1f36; }
.portal-service-grid p { color: #5b6f8c; }
.portal-text-btn { color: #2b6fd6; }

.portal .site-foot { border-top-color: #e1eaf7; background: #f3f7fd; color: #5b6f8c; }
.portal .portal-foot-inner,
.portal .portal-copy { max-width: 1132px; }

.portal .head-nav { gap: 18px; font-size: 13.5px; }
@media (max-width: 760px) {
  .portal .head-nav { display: none; }
}

/* 窄屏下页头与页脚使用相同内边距，保证左右边界一致 */
@media (max-width: 760px) {
  .portal .head-inner { padding: 0 18px; height: 64px; }
  /* 品牌 logo 与右侧「赛勘 SeqKan」字号匹配，不再被通用移动端规则缩小 */
  .portal .brand { gap: 9px; }
  .portal .brand img { width: 40px; height: 40px; }
  .portal .brand-name { font-size: 19px; }
  .portal .site-foot { padding: 22px 18px 18px; }
  .portal-copy { margin-top: 12px; }
  /* 品牌与协议链接保持同一行，压缩字号与间距避免换行 */
  .portal-foot-inner {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }
  .portal-foot-brand { margin-right: 0; gap: 8px; flex: 0 0 auto; }
  .portal-foot-brand strong { font-size: 13px; }
  .portal-foot-brand span { font-size: 10px; white-space: nowrap; }
  .portal-foot-links.is-sub { flex-wrap: nowrap; gap: 6px; font-size: 11px; }
  .portal-copy { margin-top: 18px; font-size: 11px; }
}
.portal-foot-brand { text-align: left; }
.portal-foot-brand strong { color: #1c3552; }
.portal-foot-brand span { color: #7c90ac; }
.portal-foot-brand img { background: transparent; border: 0; padding: 0; }
.portal-foot-links { color: #5b6f8c; }
.portal-foot-links.is-sub { color: #7c90ac; }
.portal-foot-links a:hover { color: #1e6fe0; }
.portal-copy { color: #8095b1; }

/* ===== 主站单屏轮播（portal-home） ===== */
body.portal-home {
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
body.portal-home .site-head {
  position: relative;
  top: auto;
  flex: 0 0 auto;
}

.ph-main {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  background: #071224;
}
.ph-track {
  position: absolute;
  inset: 0;
  display: flex;
  height: 100%;
  transition: transform .75s cubic-bezier(.22, .61, .36, 1);
}
.ph-slide {
  position: relative;
  flex: 0 0 100%;
  height: 100%;
  overflow: hidden;
}
.ph-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity .8s ease;
}
.ph-bg.is-loaded { opacity: 1; }
.ph-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 10, 22, .92) 0%, rgba(3, 10, 22, .74) 36%, rgba(3, 10, 22, .34) 68%, rgba(3, 10, 22, .46) 100%),
    linear-gradient(180deg, rgba(3, 10, 22, .28), rgba(3, 10, 22, 0) 26%, rgba(3, 10, 22, .5));
}
.ph-inner {
  position: relative;
  z-index: 2;
  height: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.ph-content { max-width: 660px; }

.ph-eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 16px; }
.ph-pill {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid rgba(160, 200, 255, .32);
  background: rgba(12, 30, 56, .5);
  color: #cfe4ff;
  font-size: 12px;
  letter-spacing: .2px;
}
.ph-pill.is-free {
  border-color: rgba(80, 226, 200, .42);
  background: rgba(10, 74, 66, .42);
  color: #7ff0da;
}

.ph-slide h1 {
  margin: 0 0 16px;
  font-size: clamp(30px, 4.2vw, 56px);
  line-height: 1.14;
  letter-spacing: -.5px;
  font-weight: 800;
  color: #fff;
}
.ph-slide h1 em {
  font-style: normal;
  background: linear-gradient(96deg, #8cc0ff 6%, #6fe8d6 62%, #b7a8ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.ph-lead {
  margin: 0;
  max-width: 580px;
  font-size: clamp(14px, 1.15vw, 16px);
  line-height: 1.78;
  color: rgba(224, 237, 255, .87);
}

.ph-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.ph-chips li {
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid rgba(150, 190, 255, .26);
  background: rgba(10, 26, 48, .44);
  color: #cfe4ff;
  font-size: 12.5px;
}

.ph-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 24px; }
.ph-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 21px;
  border-radius: 999px;
  border: 1px solid rgba(160, 200, 255, .34);
  background: rgba(255, 255, 255, .08);
  color: #eaf3ff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background .18s, border-color .18s, box-shadow .18s;
}
.ph-btn:hover { background: rgba(255, 255, 255, .16); border-color: rgba(190, 220, 255, .55); }
.ph-btn.is-primary {
  border-color: transparent;
  background: linear-gradient(100deg, #2f7cf6, #36c2c4);
  color: #fff;
  box-shadow: 0 14px 30px rgba(26, 90, 200, .38);
}
.ph-btn.is-primary:hover { box-shadow: 0 18px 36px rgba(26, 90, 200, .46); }
.ph-note { font-size: 12px; line-height: 1.5; color: rgba(196, 216, 242, .7); }

.ph-matrix {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 26px;
  max-width: 660px;
}
.ph-matrix a {
  display: block;
  padding: 12px 13px;
  border-radius: 14px;
  border: 1px solid rgba(150, 190, 255, .24);
  background: rgba(9, 24, 44, .56);
  text-decoration: none;
  transition: background .18s, border-color .18s;
}
.ph-matrix a:hover { border-color: rgba(120, 190, 255, .6); background: rgba(18, 44, 80, .72); }
.ph-matrix b { display: block; font-size: 14px; color: #fff; }
.ph-matrix span { display: block; margin-top: 4px; font-size: 12px; color: rgba(190, 214, 245, .8); }

.ph-dots {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
}
.ph-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .36);
  cursor: pointer;
  transition: width .25s, background .25s;
}
.ph-dots button:hover { background: rgba(255, 255, 255, .62); }
.ph-dots button.is-on { width: 26px; background: #fff; }

.ph-arrows { position: absolute; z-index: 4; right: 24px; bottom: 22px; display: flex; gap: 10px; }
.ph-arrow {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(190, 220, 255, .38);
  background: rgba(8, 22, 42, .5);
  color: #e8f2ff;
  cursor: pointer;
  transition: background .18s, border-color .18s;
}
.ph-arrow:hover { background: rgba(30, 74, 128, .7); border-color: rgba(190, 220, 255, .7); }
.ph-arrow svg { width: 20px; height: 20px; display: block; }

.ph-foot { flex: 0 0 auto; background: #fff; border-top: 1px solid #e2ecf9; }
.ph-foot-in {
  max-width: 1180px;
  margin: 0 auto;
  height: 48px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 12.5px;
  color: #6b809e;
}
.ph-foot-in nav { display: flex; gap: 16px; margin-left: auto; }
.ph-foot-in a { color: #5b6f8c; text-decoration: none; }
.ph-foot-in a:hover { color: #1e6fe0; }
.ph-icp { color: #9aabc3; }

.ph-contact-mask {
  position: fixed;
  inset: 0;
  z-index: 99998;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(5, 12, 24, .62);
}
.ph-contact-mask[hidden] { display: none; }
.ph-contact {
  position: relative;
  width: 100%;
  max-width: 380px;
  padding: 26px 24px 20px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 30px 70px rgba(4, 12, 26, .34);
  text-align: center;
}
.ph-contact:focus { outline: none; }
.ph-contact-x {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #8a9bb2;
  cursor: pointer;
}
.ph-contact-x:hover { background: #f2f6fb; color: #38506e; }
.ph-contact-x svg { width: 16px; height: 16px; }
.ph-contact h3 { margin: 4px 0 0; font-size: 19px; color: #0b2242; }
.ph-contact-sub { margin: 10px 0 16px; font-size: 13px; line-height: 1.65; color: #5b6f8c; }
.ph-contact-mail {
  display: inline-block;
  padding: 10px 18px;
  border: 1px solid #d3e6ff;
  border-radius: 10px;
  background: #f1f7ff;
  color: #1e6fe0;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .2px;
  text-decoration: none;
}
.ph-contact-mail:hover { background: #e6f1ff; }
.ph-contact-tip {
  margin: 7px 0 0;
  min-height: 17px;
  font-size: 12.5px;
  line-height: 17px;
  color: #1d7a4a;
  opacity: 0;
  transition: opacity .18s;
}
.ph-contact-tip.is-on { opacity: 1; }
.ph-contact-actions { display: flex; gap: 10px; margin-top: 12px; }
.ph-contact-btn {
  flex: 1;
  height: 38px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: #1e6fe0;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.ph-contact-btn:hover { background: #155ec9; }
.ph-contact-btn.is-ghost { background: #fff; border-color: #d6e2f0; color: #38506e; }
.ph-contact-btn.is-ghost:hover { background: #f5f9ff; border-color: #b9d3f2; }

@media (max-width: 900px) {
  .ph-inner { padding: 0 28px 60px; }
  .ph-matrix { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ph-arrows { display: none; }
}
@media (max-width: 760px) {
  .ph-inner { padding: 0 20px 58px; }
  .ph-shade {
    background:
      linear-gradient(180deg, rgba(3, 10, 22, .42) 0%, rgba(3, 10, 22, .7) 46%, rgba(3, 10, 22, .9) 100%);
  }
  .ph-lead { max-width: 100%; }
  .ph-matrix { gap: 8px; margin-top: 18px; }
  .ph-matrix a { padding: 10px 11px; }
  .ph-matrix b { font-size: 13px; }
  .ph-matrix span { font-size: 11px; }
  .ph-foot-in { height: 44px; padding: 0 16px; gap: 10px; font-size: 11px; }
  .ph-foot-in nav { gap: 10px; }
  .ph-icp { display: none; }
  .ph-dots { bottom: 16px; }
}
@media (max-height: 720px) {
  .ph-inner { padding-bottom: 52px; }
  .ph-slide h1 { font-size: clamp(24px, 3.4vw, 40px); margin-bottom: 10px; }
  .ph-lead { font-size: 13.5px; line-height: 1.6; }
  .ph-eyebrow { margin-bottom: 10px; }
  .ph-chips { margin-top: 12px; }
  .ph-chips li { padding: 4px 9px; font-size: 12px; }
  .ph-cta { margin-top: 16px; }
  .ph-btn { height: 38px; padding: 0 18px; font-size: 13px; }
  .ph-matrix { margin-top: 16px; }
  .ph-matrix a { padding: 9px 11px; }
  .ph-dots, .ph-arrows { bottom: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .ph-track { transition: none; }
  .ph-bg { transition: none; }
}

/* 修正主站轮播按钮被通用链接颜色覆盖的问题 */
body.portal-home .ph-btn { color: #eaf3ff; }
body.portal-home .ph-btn.is-primary { color: #fff; }
body.portal-home .ph-foot-in a { color: #5b6f8c; }

/* 单屏首页不需要预留滚动条槽位，避免右侧出现白边 */
html.portal-home-html { scrollbar-gutter: auto; }

/* ===== 手机端适配 ===== */
@media (max-width: 760px) {
  /* 顶栏：第一行品牌 + 登录，第二行产品导航可横向滑动 */
  .portal .site-head { padding-top: env(safe-area-inset-top); }
  .portal .head-inner {
    height: auto;
    padding: 0 14px;
    flex-wrap: wrap;
    align-items: center;
  }
  .portal .head-right { display: contents; }
  .portal .brand { height: 52px; }
  .portal .head-user { display: flex; align-items: center; height: 52px; margin-left: auto; }
  .portal .head-inner .portal-nav {
    display: flex;
    order: 3;
    flex: 0 0 100%;
    height: 34px;
    align-items: center;
    gap: 14px;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    font-size: 12px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 20px), transparent 100%);
    mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 20px), transparent 100%);
  }
  .portal .head-inner .portal-nav::-webkit-scrollbar { display: none; }
  .portal .head-inner .portal-nav a { flex: none; }

  /* 页脚：两行居中，避免窄屏折行挤压 */
  .ph-foot-in {
    height: auto;
    padding: 6px 14px calc(6px + env(safe-area-inset-bottom));
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    font-size: 11px;
    line-height: 1.5;
  }
  .ph-foot-in nav { margin-left: 0; gap: 14px; }
  .ph-foot-in nav a, .ph-foot-in > span { white-space: nowrap; }

  /* 圆点加大可点区域，方便手指点按 */
  .ph-dots { gap: 6px; }
  .ph-dots button { position: relative; }
  .ph-dots button::after {
    content: "";
    position: absolute;
    inset: -9px -5px;
  }
}

/* 横屏 / 矮屏：内容顶部对齐，必要时可纵向滚动，避免被裁切 */
@media (max-height: 520px) {
  .ph-inner {
    justify-content: flex-start;
    overflow-y: auto;
    padding: 12px 24px 30px;
    -webkit-overflow-scrolling: touch;
  }
  .ph-slide h1 { font-size: clamp(20px, 2.9vw, 26px); margin-bottom: 8px; }
  .ph-lead { font-size: 12.5px; line-height: 1.55; }
  .ph-eyebrow { margin-bottom: 8px; }
  .ph-chips { display: none; }
  .ph-cta { margin-top: 12px; }
  .ph-btn { height: 34px; padding: 0 16px; font-size: 12.5px; }
  .ph-matrix {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 12px;
    max-width: none;
  }
  .ph-matrix a { padding: 8px 10px; }
  .ph-matrix b { font-size: 12.5px; }
  .ph-matrix span { font-size: 11px; }
  .ph-dots { bottom: 8px; }
  .ph-arrows { display: none; }
}

/* 矮屏下的弹窗可滚动 */
@media (max-height: 560px) {
  .ph-contact-mask { padding: 16px; }
  .ph-contact { max-height: calc(100dvh - 32px); overflow-y: auto; padding: 20px 20px 16px; }
}

/* 内容较短的页面（协议/说明/登录）让统一页脚始终贴在视口底部 */
body.portal-flex {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
body.portal-flex > .ph-foot { margin-top: auto; }

/* 禁止整页回弹 / 下拉刷新干扰整屏轮播 */
body.portal-home { overscroll-behavior: none; }

