/* ===== 全站统一：顶部（site-head / topbar / nav / dropdown）与底部（footer）=====
   此文件为头部与底部样式的唯一权威定义，所有页面（含首页、APS 等单页版本）统一引用。
   加载顺序：置于页面其他样式之后，保证覆盖一致。 */

/* ===== Site head (sticky) ===== */
.site-head { position: sticky; top: 0; z-index: 120; box-shadow: 0 1px 0 rgba(14,27,44,.06); }
html { overflow-x: clip; }

/* ===== Top bar ===== */
.topbar { background: var(--navy3); color: var(--muted2); font-size: 12.5px; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; height: 34px; gap: 16px; }
.topbar a { color: var(--ink2); }
.topbar a:hover { color: var(--accent2); }
.topbar .tb-left { display: flex; gap: 22px; }
.topbar .tb-left span { display: inline-flex; align-items: center; gap: 6px; }
.topbar .tb-left svg { width: 13px; height: 13px; color: var(--accent2); }
.topbar .tb-slogan { letter-spacing: .02em; }
.topbar .tb-right { display: flex; align-items: center; gap: 14px; }
.topbar .tb-right .hotline { font-family: var(--font-tech); letter-spacing: .05em; color: var(--ink2); }
.tb-cta { display: inline-flex; align-items: center; gap: 6px; padding: 4px 16px; border-radius: 999px; background: linear-gradient(135deg, var(--accent2), var(--accent)); color: #fff !important; font-size: 12px; font-weight: 600; letter-spacing: .04em; transition: transform .25s ease, box-shadow .25s ease; }
.tb-cta:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(11,95,255,.4); color: #fff !important; }

/* ===== Nav ===== */
.nav { position: relative; z-index: 100; background: rgba(255,255,255,.96); backdrop-filter: blur(14px); border-bottom: 1px solid var(--rule); box-shadow: 0 1px 0 rgba(14,27,44,.02); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand-mark { display: flex; align-items: center; flex: none; background: none; box-shadow: none; }
.brand-mark img.brand-logo { height: 42px; width: auto; display: block; }
.foot-brand .brand-mark img.brand-logo { background: #fff; border-radius: 10px; padding: 5px 8px; height: 36px; }
.brand-mark svg { width: 22px; height: 22px; }
.brand-name { display: flex; flex-direction: column; line-height: 1.2; }
.brand-cn { font-size: 19px; font-weight: 800; color: var(--ink); letter-spacing: .06em; }
.brand-en { font-family: var(--font-latin); font-size: 11px; letter-spacing: .32em; text-transform: uppercase; color: var(--muted); }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: 15px; color: var(--ink); transition: color .25s ease; position: relative; padding: 6px 0; }
.nav-links a::after { content: ''; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--accent), var(--accent2)); transition: width .28s ease; }
.nav-links a:hover { color: var(--accent); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--accent); font-weight: 600; }
.nav-cta { padding: 12px 34px; font-size: 14.5px; background: linear-gradient(135deg, var(--accent2) 0%, var(--accent) 100%); color: #fff; border: 0; box-shadow: 0 6px 18px rgba(11,95,255,.30); letter-spacing: .06em; }
.nav-links .nav-cta { color: #fff; }
.nav-links .nav-cta:hover { color: #fff; background: linear-gradient(135deg, #00CBE8 0%, var(--accent-deep) 100%); box-shadow: 0 10px 26px rgba(11,95,255,.42); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px; cursor: pointer; z-index: 110; }
.nav-toggle span { width: 22px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .3s ease, opacity .3s ease; }
.nav.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Nav dropdown ===== */
.nav-item { position: relative; }
.nav-item > a { display: inline-flex; align-items: center; gap: 5px; }
.nav-item .caret { width: 13px; height: 13px; transition: transform .25s ease; }
.nav-item:hover .caret, .nav-item.open .caret { transform: rotate(180deg); }
.nav-item .dropdown {
  position: absolute; top: calc(100% + 16px); left: 50%; transform: translateX(-50%) translateY(6px);
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 4px 32px;
  min-width: 720px; padding: 28px 30px 22px; background: var(--bg2);
  border: 1px solid var(--rule); border-radius: 16px; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
}
.nav-item:hover .dropdown, .nav-item.open .dropdown { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.nav-item .dropdown::before { content: ''; position: absolute; top: -16px; left: 0; right: 0; height: 16px; }
.dropdown-col h4 { position: relative; padding-left: 11px; font-size: 12px; font-weight: 700; letter-spacing: .12em; color: var(--accent); margin: 4px 0 10px; }
.dropdown-col h4::before { content: ''; position: absolute; left: 0; top: 2px; bottom: 2px; width: 3px; border-radius: 2px; background: linear-gradient(180deg, var(--accent), var(--accent2)); }
.dropdown-col a { display: flex; align-items: center; gap: 9px; padding: 8px 0; font-size: 14px; color: var(--ink); white-space: nowrap; transition: color .2s ease; }
.dropdown-col a::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent2)); opacity: .55; flex: none; }
.dropdown-col a:hover { color: var(--accent); }
.dropdown-core-col { display: flex; flex-direction: column; gap: 10px; }
.core-item { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; height: 100px; padding: 12px 16px; border-radius: 12px; background: linear-gradient(160deg, rgba(11,95,255,.06), rgba(0,184,212,.05)); border: 1px solid var(--rule); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.core-item:hover { transform: translateY(-2px); border-color: rgba(11,95,255,.35); box-shadow: 0 6px 16px rgba(11,95,255,.10); }
.core-item .core-name { display: block; font-size: 14.5px; font-weight: 700; color: var(--ink); line-height: 1.4; padding: 0 46px; white-space: nowrap; text-align: center; }
.core-item .core-sub { display: block; font-size: 12px; color: var(--muted); margin-top: 6px; line-height: 1.5; white-space: nowrap; text-align: center; }
.core-aps { background: linear-gradient(160deg, rgba(11,95,255,.12), rgba(0,184,212,.07)); border-color: rgba(11,95,255,.4); }
.core-aps .core-name { color: var(--accent); }
.core-badge { position: absolute; top: 8px; right: 10px; font-size: 11px; font-weight: 700; color: #fff; background: linear-gradient(135deg, #FF5A5F, #FF9A3D); padding: 2px 7px; border-radius: 999px; letter-spacing: .08em; }
.dropdown-foot { grid-column: 1 / -1; border-top: 1px solid var(--rule); margin-top: 8px; padding-top: 10px; text-align: center; }
.dropdown-foot a { font-size: 13.5px; font-weight: 600; color: var(--accent); }
.dropdown-foot a:hover { text-decoration: underline; }

/* ===== 底部快捷免费试用条（全站） ===== */
.ft-trial { position: fixed; left: 0; right: 0; bottom: 0; z-index: 130; background: linear-gradient(165deg, rgba(10,23,48,.96), rgba(6,18,38,.97)); border-top: 1px solid rgba(255,196,92,.28); box-shadow: 0 -18px 50px rgba(2,8,20,.35); backdrop-filter: blur(12px); padding: 14px 0; transform: translateY(110%); transition: transform .45s cubic-bezier(.22,.8,.36,1); }
.ft-trial.show { transform: translateY(0); }
.ft-trial::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, rgba(255,196,92,.9), rgba(74,222,187,.9), transparent); opacity: .8; pointer-events: none; }
.ft-trial .wrap { display: flex; align-items: center; gap: 26px; position: relative; }
.ft-left { flex: none; min-width: 300px; }
.ft-left h3 { font-size: 20px; font-weight: 800; color: #fff; line-height: 1.2; }
.ft-left h3 span { display: block; font-family: var(--font-latin); font-size: 11px; font-weight: 600; letter-spacing: .22em; color: var(--accent2); margin-top: 5px; }
.ft-left p { font-size: 12.5px; color: var(--muted2); line-height: 1.7; margin-top: 7px; }
.ft-form { flex: 1; display: flex; align-items: center; gap: 10px; }
.ft-form input { flex: 1; min-width: 0; height: 42px; box-sizing: border-box; border: 1px solid rgba(255,255,255,.18); border-radius: 10px; background: rgba(255,255,255,.06); padding: 0 14px; font-size: 13.5px; font-family: inherit; color: #fff; transition: border-color .25s ease, box-shadow .25s ease, background .25s ease; }
.ft-form input::placeholder { color: rgba(159,178,210,.7); }
.ft-form input:focus { outline: none; border-color: var(--accent2); background: rgba(255,255,255,.1); box-shadow: 0 0 0 3px rgba(255,196,92,.16); }
.ft-submit { flex: none; height: 42px; min-width: 116px; border: 0; border-radius: 10px; background: linear-gradient(135deg, #0B5FFF 0%, #00B8D4 100%); color: #fff; font-size: 14.5px; font-weight: 700; letter-spacing: .1em; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, filter .2s ease; }
.ft-submit:hover { transform: translateY(-1px); filter: brightness(1.1); box-shadow: 0 8px 22px rgba(11,95,255,.45); }
.ft-submit:disabled { opacity: .6; cursor: not-allowed; }
.ft-tel { flex: none; text-align: center; border-left: 1px solid rgba(255,255,255,.1); padding-left: 26px; }
.ft-tel small { display: block; font-size: 11px; color: var(--muted2); margin-bottom: 3px; }
.ft-tel a { display: block; font-family: var(--font-tech); font-size: 23px; font-weight: 800; color: #FFFFFF; text-decoration: none; letter-spacing: .03em; line-height: 1.2; text-shadow: 0 0 14px rgba(255,196,92,.55), 0 2px 6px rgba(2,8,20,.6); }
.ft-tel a:hover { color: var(--accent2); text-shadow: 0 0 20px rgba(255,196,92,.85), 0 2px 6px rgba(2,8,20,.6); }
.ft-tel span { display: block; font-size: 11px; color: #7EE7C4; margin-top: 4px; }
.ft-close { position: absolute; right: -6px; top: -30px; width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.08); color: var(--muted2); font-size: 16px; line-height: 1; cursor: pointer; display: grid; place-items: center; transition: all .2s ease; }
.ft-close:hover { color: #fff; border-color: rgba(255,255,255,.4); background: rgba(255,255,255,.16); }
.ft-ok { display: none; align-items: center; gap: 9px; font-size: 14px; font-weight: 600; color: #4ADEBB; white-space: nowrap; }
.ft-ok svg { width: 20px; height: 20px; flex: none; }
.ft-err { display: none; font-size: 12px; color: #FF8A8E; margin-top: 6px; }
.ft-trial .wrap.ft-success .ft-form, .ft-trial .wrap.ft-success .ft-left p { display: none; }
.ft-trial .wrap.ft-success .ft-ok { display: flex; }
@media (max-width: 1080px) {
  .ft-left { min-width: 0; }
  .ft-tel { display: none; }
}
@media (max-width: 860px) {
  .ft-trial .wrap { gap: 10px; }
  .ft-left h3 { font-size: 17px; }
  .ft-left p { display: none; }
  .ft-left { flex: none; }
  .ft-form { flex: 1; min-width: 0; }
}
@media (max-width: 560px) {
  .ft-trial { padding: 9px 0; }
  .ft-trial .wrap { gap: 8px; }
  .ft-left h3 span { display: none; }
  .ft-left h3 { font-size: 15px; white-space: nowrap; }
  .ft-form { gap: 6px; }
  .ft-form input { flex: 1; min-width: 0; height: 38px; padding: 0 10px; font-size: 13px; }
  .ft-submit { height: 38px; min-width: 64px; font-size: 13.5px; letter-spacing: .06em; }
  .ft-close { right: 2px; top: -26px; width: 24px; height: 24px; font-size: 13px; }
}
@media (max-width: 380px) {
  .ft-left { display: none; }
  .ft-trial .wrap { gap: 6px; }
}

/* ===== Footer ===== */
footer { background: var(--navy3); color: var(--muted2); padding: 70px 0 0; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 44px; padding-bottom: 50px; border-bottom: 1px solid rgba(255,255,255,.08); }
.foot-brand .brand-cn { color: #fff; }
.foot-brand .brand-en { color: var(--muted2); }
.foot-brand p { font-size: 13.5px; line-height: 1.9; margin-top: 18px; }
.foot-col h4 { font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 18px; }
.foot-col a { display: block; font-size: 13.5px; padding: 5px 0; transition: color .25s ease; }
.foot-col a:hover { color: var(--accent2); }
.foot-contact div { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; margin-bottom: 12px; line-height: 1.7; }
.foot-contact div:nth-child(2) { word-break: break-all; }
.foot-contact div:nth-child(3) { white-space: nowrap; font-size: 12.5px; }
.foot-contact svg { width: 17px; height: 17px; color: var(--accent2); flex: none; margin-top: 3px; }
.foot-qr { align-items: center !important; margin-top: 2px; }
.foot-qr img { flex: none; width: 66px; height: 66px; border-radius: 10px; border: 1px solid var(--rule-dark); background: #fff; transition: transform .25s ease; }
.foot-qr:hover img { transform: scale(1.08); }
.foot-qr span { font-size: 13px; color: var(--muted2); }
.foot-bottom { padding: 22px 0; display: flex; justify-content: center; align-items: center; gap: 8px 28px; flex-wrap: wrap; font-size: 12.5px; color: rgba(159,178,210,.78); text-align: center; }
.foot-bottom a { color: rgba(159,178,210,.72); transition: color .25s ease; }
.foot-bottom a:hover { color: var(--accent2); }

/* ===== Responsive (header / footer) ===== */
/* 移动端抽屉遮罩：菜单展开时半透明遮罩，防止误触背景内容并突出菜单层级（site-head 全站加载，首页亦生效） */
body.menu-open::before {
  content: ''; position: fixed; inset: 0; z-index: 90;
  background: rgba(4,10,24,.55);
  pointer-events: auto;
}
@media (max-width: 1024px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .topbar .tb-left { display: none; }
  /* 关键修复：.nav 的 backdrop-filter 会创建包含块，导致子元素 .nav-links（fixed）相对 .nav 而非视口定位，抽屉高度被压缩为导航条高度，菜单显示不全。移动端禁用毛玻璃即可恢复 fixed 视口定位。 */
  .nav { -webkit-backdrop-filter: none; backdrop-filter: none; }
  /* 抽屉：加宽内容区（左右内边距 20px），保证二级菜单充分展开 */
  .nav-links { position: fixed; top: 0; right: 0; bottom: 0; width: min(320px, 85vw); flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 2px; background: var(--navy); padding: 108px 20px 44px; transform: translateX(100%); transition: transform .35s ease; box-shadow: -20px 0 60px rgba(2,8,20,.4); overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
  .nav.open .nav-links { transform: translateX(0); }
  /* 一级菜单项：大触控目标（≥48px）+ 按压反馈 + 圆角 */
  .nav-links > a, .nav-links .nav-item > a { width: 100%; min-height: 48px; box-sizing: border-box; display: flex; align-items: center; color: #fff; font-size: 16.5px; font-weight: 600; padding: 0 14px; border-radius: 10px; }
  .nav-links > a:active, .nav-links .nav-item > a:active { background: rgba(255,255,255,.08); }
  .nav-links a.active { color: var(--accent2); }
  .nav-links a::after { display: none; }
  .nav-links .nav-cta { width: 100%; justify-content: center; margin-top: 22px; min-height: 50px; font-size: 15px; font-weight: 700; letter-spacing: .1em; }
  .nav-links .nav-cta:active { transform: scale(.98); }
  /* 产品中心父项：箭头靠右 */
  .nav-item { width: 100%; }
  .nav-item > a { justify-content: space-between; }
  .nav-item .caret { margin-left: auto; color: var(--muted2); flex: none; }
  .nav-item.open .caret { transform: rotate(180deg); }
  /* 二级菜单：全宽手风琴 + 左侧层级强调线（覆盖桌面端 translateX(-50%) 绝对定位偏移，需同特异性 .nav-item.open） */
  .nav-item .dropdown { position: static; transform: none; left: auto; display: none; grid-template-columns: 1fr; gap: 2px; min-width: 0; width: 100%; padding: 4px 0 10px 12px; margin: 2px 0 0; background: transparent; border: 0; border-left: 2px solid rgba(0,184,212,.35); box-shadow: none; opacity: 1; visibility: visible; pointer-events: auto; }
  .nav-item:hover .dropdown, .nav-item.open .dropdown { transform: none; display: grid; }
  .dropdown-col { min-width: 0; }
  .dropdown-col h4 { color: var(--accent2); font-size: 12px; font-weight: 700; letter-spacing: .12em; padding-left: 10px; margin: 14px 0 4px; }
  .dropdown-col a { color: rgba(255,255,255,.9); padding: 0 10px; min-height: 44px; font-size: 15px; line-height: 1.4; white-space: normal; width: 100%; box-sizing: border-box; border-radius: 8px; transition: background .2s ease, color .2s ease; }
  .dropdown-col a:active { background: rgba(11,95,255,.25); color: #fff; }
  .dropdown-col a::before { opacity: .8; flex: none; }
  .dropdown-foot { border-top: 1px solid rgba(255,255,255,.12); margin: 10px 0 0; padding: 12px 10px 0; }
  .dropdown-foot a { color: var(--accent2); padding: 0; font-size: 13.5px; min-height: auto; justify-content: center; }
  .dropdown-core-col { gap: 6px; }
  .nav-item .core-item { display: flex; flex-direction: column; align-items: stretch; justify-content: center; text-align: left; height: auto; min-height: 60px; padding: 12px 14px; border-radius: 10px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.14); }
  .nav-item .core-item:active { background: rgba(11,95,255,.22); border-color: rgba(0,184,212,.5); }
  .nav-item .core-item .core-name { color: #fff; padding: 0; white-space: normal; text-align: left; font-size: 15px; line-height: 1.4; }
  .nav-item .core-item .core-sub { color: var(--muted2); white-space: normal; text-align: left; font-size: 12px; margin-top: 4px; line-height: 1.5; }
  .nav-item .core-item .core-badge { position: static; align-self: flex-start; margin: 0 0 4px; font-size: 10px; padding: 2px 8px; border-radius: 999px; }
  .nav-item .core-aps { background: rgba(11,95,255,.18); border-color: rgba(0,184,212,.45); }
  .nav-item .core-aps .core-name { color: #7FB4FF; }
  .nav-toggle { display: flex; }
}
@media (max-width: 560px) {
  .foot-grid { grid-template-columns: 1fr; gap: 34px; }
}
@media print {
  .nav, .nav-toggle, .topbar { display: none; }
}
/* ===== 区块隔行背景（无类 section 交替浅灰/白） ===== */
.bg-alt { background: var(--bg, #F5F8FC); }
/* ===== sticky header (desktop) ===== */
.site-head { position: sticky; top: 0; z-index: 200; }
.nav { box-shadow: 0 6px 24px rgba(2,8,20,.06); }