/* ==========================================================================
   鲸算盘科技 · 基础样式（设计变量 / 排版 / 布局 / 页头页脚 / 通用控件）
   ========================================================================== */

/* Huawei Cloud font: self-hosted, local to the website */
@font-face {
  font-family: "HuaweiSans";
  src: url("../assets/fonts/HuaweiSans-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
}

@font-face {
  font-family: "HuaweiSans";
  src: url("../assets/fonts/HuaweiSans-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 600 900;
  font-display: swap;
}

:root {
  /* 品牌色：参考腾讯云产品页的皇家蓝 / 中性灰体系 */
  --brand: #2151d1;
  --brand-strong: #1943b7;
  --brand-deep: #10328c;
  --brand-soft: #edf2ff;
  --brand-soft-2: #f5f8ff;
  --cyan: #3467f4;
  --cyan-soft: #edf2ff;
  --coral: #e35049;
  --coral-deep: #c73e37;
  --coral-soft: #fdf1f0;
  --violet: #3467f4;
  --aqua: #3467f4;
  --peach: #f6f7fb;

  /* 中性色：去掉偏蓝的墨色，改为腾讯云式冷灰 */
  --ink: #17181a;
  --ink-2: #24262c;
  --text: #4e525b;
  --muted: #6b707b;
  --muted-2: #969aa4;
  --line: #e5e7ee;
  --line-strong: #d5d9e2;
  --bg: #f0f1f6;
  --bg-2: #e9ebf2;
  --white: #fff;

  /* 深色区 */
  --dark: #10141d;
  --dark-2: #1a202b;

  /* 功能色（只保留红/橙两个强调色） */
  --orange: #ff7a00;
  --red: #e35049;
  --green: #3467f4;

  /* 圆角 / 阴影 */
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --radius-xl: 26px;
  --shadow-xs: 0 1px 2px rgba(20, 24, 32, 0.04);
  --shadow-sm: 0 4px 14px rgba(20, 24, 32, 0.05);
  --shadow: 0 14px 38px rgba(20, 24, 32, 0.09);
  --shadow-lg: 0 28px 70px rgba(20, 24, 32, 0.13);

  /* 布局 */
  --container: 1280px;
  --gutter: 24px;
  --header-h: 74px;
  --section-y: 84px;
  --ease: cubic-bezier(0.22, 0.7, 0.2, 1);

  /* 字体：优先苹方 / HarmonyOS Sans / MiSans，保持统一的中文观感 */
  --font-sans: "Microsoft YaHei UI", "Microsoft YaHei", "微软雅黑",
    "PingFang SC", "Hiragino Sans GB", "Helvetica Neue", Helvetica, Arial,
    sans-serif;

  /* 统一字号层级 */
  --fs-h1: clamp(28px, 2.9vw, 38px);
  --fs-h2: clamp(23px, 2.1vw, 28px);
  --fs-h3: clamp(18px, 1.5vw, 22px);
  --fs-article-title: clamp(27px, 2.6vw, 34px);
  --fs-lead: 15px;
  --fs-body: 14px;
  --fs-small: 12px;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
  min-width: 320px;
  background: var(--white);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body.is-locked {
  overflow: hidden;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--ink);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

strong {
  font-weight: 600;
}

::selection {
  background: rgba(33, 81, 209, 0.18);
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- 通用布局 ---------- */
.container {
  width: min(calc(100% - var(--gutter) * 2), var(--container));
  margin-inline: auto;
}

.section {
  padding-block: var(--section-y);
}

.section--tight {
  padding-block: 64px;
}

.section--soft {
  background: var(--bg);
}

.section--soft-2 {
  background: linear-gradient(180deg, #f6f9ff 0%, #eef4fd 100%);
}

.section--dark {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.72);
}

.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: #fff;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 999;
  padding: 10px 18px;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font-size: 14px;
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease);
}

.skip-link:focus {
  transform: none;
}

.icon {
  width: 20px;
  height: 20px;
  flex: none;
}

.icon--sm {
  width: 16px;
  height: 16px;
}

.icon--lg {
  width: 24px;
  height: 24px;
}

/* ---------- 顶部工具条 ---------- */
.utility-bar {
  position: relative;
  z-index: 102;
  height: 25px;
  background: #111;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  line-height: 25px;
}

.utility-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 24px;
}

.utility-bar__tagline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.utility-bar__tagline::before {
  display: none;
}

.utility-bar__links {
  display: flex;
  align-items: center;
  gap: 0;
}

.utility-bar__links li {
  display: flex;
  align-items: center;
}

.utility-bar__links li + li::before {
  content: "";
  width: 1px;
  height: 10px;
  margin-inline: 12px;
  background: rgba(255, 255, 255, 0.18);
}

.utility-bar__links a,
.utility-bar__links button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: inherit;
  font-size: inherit;
  transition: color 0.2s var(--ease);
}

.utility-bar__links a:hover,
.utility-bar__links button:hover {
  color: #fff;
}

.utility-bar__links .icon {
  width: 12px;
  height: 12px;
  flex: none;
}

.utility-app {
  position: relative;
}

.utility-app__trigger {
  gap: 6px;
}

.utility-app__popover {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 130;
  width: 188px;
  padding: 13px 13px 12px;
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  box-shadow: 0 16px 40px rgba(8, 24, 48, 0.2);
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease),
    visibility 0.2s var(--ease);
  pointer-events: none;
}

.utility-app__popover::before {
  content: "";
  position: absolute;
  top: -5px;
  right: 24px;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: #fff;
  transform: rotate(45deg);
}

.utility-app__popover img {
  width: 128px;
  height: 128px;
  margin: 0 auto 8px;
  border-radius: 6px;
}

.utility-app__popover strong {
  display: block;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

.utility-app__popover span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.55;
}

.utility-app:hover .utility-app__popover,
.utility-app:focus-within .utility-app__popover {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
}

/* ---------- 主站页头 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 101;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(227, 234, 245, 0.9);
  transition: box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 8px 30px rgba(16, 38, 76, 0.07);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: none;
}

.brand img {
  width: 140px;
  height: auto;
}

.main-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 10px 0;
  color: #191919;
  font-size: 14px;
  font-weight: 400;
  white-space: nowrap;
  transition: color 0.2s var(--ease);
}

.nav-link:hover {
  color: var(--brand);
}

.nav-link.is-active {
  color: #191919;
}

.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -1px;
  width: 24px;
  height: 3px;
  border-radius: 2px;
  background: #191919;
  transform: translateX(-50%);
}

.nav-link .icon {
  width: 12px;
  height: 12px;
  color: #595959;
  transition: transform 0.25s var(--ease);
}

.nav-item.is-open .nav-link .icon {
  transform: rotate(180deg);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: none;
}

.header__login {
  color: #595959;
  font-size: 14px;
  font-weight: 400;
  white-space: nowrap;
  transition: color 0.2s var(--ease);
}

.header__login:hover {
  color: var(--brand);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: var(--ink);
}

.nav-toggle:hover {
  background: var(--bg);
}

.nav-toggle .icon {
  width: 24px;
  height: 24px;
}

/* ---------- 产品大菜单 ---------- */
.mega {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  padding: 0;
  background: #fff;
  border-top: 1px solid var(--line);
  box-shadow: 0 30px 60px rgba(10, 30, 60, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.24s var(--ease), transform 0.24s var(--ease),
    visibility 0.24s;
}

.mega.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.mega__inner {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  padding-block: 26px 30px;
}

.mega__aside {
  padding-right: 40px;
  border-right: 1px solid var(--line);
}

.mega__eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--brand);
  text-transform: uppercase;
}

.mega__title {
  margin-top: 8px;
  font-size: 16px;
  line-height: 1.45;
  color: var(--ink);
}

.mega__aside p {
  margin-top: 8px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--muted);
}

.mega__all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 500;
}

.mega__all .icon {
  width: 15px;
  height: 15px;
  transition: transform 0.2s var(--ease);
}

.mega__all:hover .icon {
  transform: translateX(3px);
}

.mega__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 20px;
}

.mega__item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid transparent;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease),
    transform 0.2s var(--ease);
}

.mega__item:hover {
  background: var(--brand-soft-2);
  border-color: #dce8fb;
  transform: translateY(-1px);
}

.mega__icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 9px;
  background: var(--brand-soft);
  color: var(--brand);
}

.mega__icon .icon {
  width: 18px;
  height: 18px;
}

.mega__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.mega__text strong {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 8px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
}

.mega__text span {
  font-size: 12px;
  line-height: 1.55;
  color: var(--muted);
}

.mega__badge {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 7px;
  border-radius: 999px;
  font-size: 10px;
  font-style: normal;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.mega__badge--blue {
  background: #e7f0ff;
  color: #0046c7;
}

.mega__badge--violet {
  background: #f0ebff;
  color: #2151d1;
}

.mega__badge--coral {
  background: #ffede5;
  color: #e35049;
}

.mega__badge--teal {
  background: #e2f7f7;
  color: #3467f4;
}

.mega__badge--soft {
  background: #eaf1ff;
  color: #2151d1;
}

.mega__badge--green {
  background: #edf2ff;
  color: #087a53;
}

.mega__badge--hot {
  background: #ffebe8;
  color: #d92d20;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.mega__badge--new {
  background: #edf2ff;
  color: #087a53;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.mega__row--wide {
  grid-column: 1 / -1;
}

.mega__item--wide {
  background: #f8fbff;
  border-color: #e5eefb;
}

.mega__icon--violet {
  background: #f2f5fb;
  color: #2151d1;
}

.mega__icon--coral {
  background: #f5f6fa;
  color: #e35049;
}

.mega__icon--teal {
  background: #edf2ff;
  color: #3467f4;
}

.mega__icon--green {
  background: #edf2ff;
  color: #3467f4;
}

/* ---------- 移动端抽屉 ---------- */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 300;
}

.drawer[hidden] {
  display: none;
}

.drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 16, 34, 0.48);
  backdrop-filter: blur(3px);
  animation: fade-in 0.25s var(--ease);
}

.drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  width: min(390px, 100%);
  height: 100%;
  background: #fff;
  box-shadow: -20px 0 60px rgba(10, 30, 60, 0.16);
  animation: drawer-in 0.32s var(--ease);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}

.drawer__head img {
  width: 134px;
}

.drawer__close {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  color: var(--ink);
}

.drawer__close:hover {
  background: var(--bg);
}

.drawer__nav {
  padding: 8px 12px 20px;
}

.drawer__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 10px;
  border-bottom: 1px solid #f0f4fa;
  color: var(--ink);
  font-size: 16px;
  font-weight: 500;
  text-align: left;
}

.drawer__link .icon {
  width: 18px;
  height: 18px;
  color: var(--muted);
  transition: transform 0.2s var(--ease);
}

.drawer__group.is-open .drawer__link .icon {
  transform: rotate(180deg);
}

.drawer__sub {
  display: none;
  padding: 4px 10px 12px;
}

.drawer__group.is-open .drawer__sub {
  display: block;
}

.drawer__sub a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--text);
  font-size: 14.5px;
}

.drawer__sub a:hover {
  background: var(--brand-soft-2);
  color: var(--brand);
}

.drawer__actions {
  display: grid;
  gap: 12px;
  padding: 20px 22px;
  border-top: 1px solid var(--line);
}

.drawer__phone {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 22px 24px;
  color: var(--muted);
  font-size: 13px;
}

.drawer__phone strong {
  display: block;
  color: var(--ink);
  font-size: 18px;
  font-weight: 600;
}

@keyframes drawer-in {
  from {
    transform: translateX(100%);
  }
  to {
    transform: none;
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
  transition: background 0.22s var(--ease), color 0.22s var(--ease),
    border-color 0.22s var(--ease), transform 0.22s var(--ease),
    box-shadow 0.22s var(--ease);
}

.btn .icon {
  width: 16px;
  height: 16px;
  transition: transform 0.22s var(--ease);
}

.btn:hover .icon--arrow {
  transform: translateX(3px);
}

.btn--primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 4px 12px rgba(33, 81, 209, 0.14);
}

.btn--primary:hover {
  background: var(--brand-strong);
  box-shadow: 0 10px 26px rgba(33, 81, 209, 0.28);
  transform: translateY(-1px);
}

.btn--ghost {
  background: #fff;
  border-color: var(--line-strong);
  color: var(--ink);
}

.btn--ghost:hover {
  border-color: var(--brand);
  background: var(--brand-soft-2);
  color: var(--brand);
}

.btn--soft {
  background: var(--brand-soft);
  color: var(--brand);
}

.btn--soft:hover {
  background: #dde9ff;
}

.btn--light {
  background: #fff;
  color: var(--brand);
  box-shadow: 0 10px 24px rgba(4, 22, 52, 0.16);
}

.btn--light:hover {
  background: #f2f7ff;
  transform: translateY(-1px);
}

.btn--outline-light {
  border-color: rgba(255, 255, 255, 0.42);
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}

.btn--outline-light:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.btn--sm {
  height: 32px;
  padding: 0 16px;
  font-size: 13.5px;
  border-radius: 5px;
}

.btn--lg {
  height: 42px;
  padding: 0 22px;
  font-size: 14px;
}

.btn--block {
  width: 100%;
}

.btn--text {
  height: auto;
  padding: 0;
  color: var(--brand);
  font-weight: 500;
}

.btn--text:hover .icon {
  transform: translateX(3px);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--brand);
  font-size: 14px;
  font-weight: 500;
}

.link-arrow .icon {
  width: 15px;
  height: 15px;
  transition: transform 0.2s var(--ease);
}

.link-arrow:hover .icon {
  transform: translateX(3px);
}

/* ---------- 标题 / 眉题 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.eyebrow::before {
  content: "";
  width: 3px;
  height: 13px;
  border-radius: 2px;
  background: var(--brand);
}

.section-head {
  max-width: 780px;
  margin: 0 auto 44px;
  text-align: center;
}

.section-head .eyebrow {
  justify-content: center;
}

.section-head--row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  max-width: none;
  margin-inline: 0;
  text-align: left;
}

.section-head--row .eyebrow {
  justify-content: flex-start;
}

.section-head__title {
  font-size: var(--fs-h2);
  line-height: 1.32;
  letter-spacing: -0.015em;
}

.section-head__sub {
  max-width: 700px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.8;
}

.section-head:not(.section-head--row) .section-head__sub {
  margin-inline: auto;
}

.section-head--row .section-head__sub {
  margin-top: 10px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--brand);
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
}

.text-link .icon {
  width: 16px;
  height: 16px;
  transition: transform 0.2s var(--ease);
}

.text-link:hover .icon {
  transform: translateX(4px);
}

/* ---------- 标签 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 10px;
  border-radius: 5px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}

.tag--gray {
  background: var(--bg);
  color: var(--muted);
}

.tag--cyan {
  background: var(--cyan-soft);
  color: #0077b6;
}

.tag--orange {
  background: #fff3e8;
  color: #d95f00;
}

/* ---------- 面包屑 ---------- */
.breadcrumb {
  padding-top: 26px;
  font-size: 13.5px;
  color: var(--muted);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.breadcrumb li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb li + li::before {
  content: "/";
  color: #b7c2d4;
}

.breadcrumb a {
  transition: color 0.2s var(--ease);
}

.breadcrumb a:hover {
  color: var(--brand);
}

.breadcrumb [aria-current="page"] {
  color: var(--text);
}

/* ---------- 页脚 ---------- */
.site-footer {
  position: relative;
  overflow: hidden;
  background: #10141d;
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -240px;
  right: -160px;
  width: 720px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(33, 81, 209, 0.3), transparent 68%);
  pointer-events: none;
}

.footer__top {
  position: relative;
  display: grid;
  grid-template-columns: 1.7fr 0.8fr 0.9fr 1.35fr;
  gap: 44px;
  padding-block: 64px 52px;
}

.footer__brand img {
  width: 150px;
  margin-bottom: 20px;
}

.footer__brand p {
  max-width: 360px;
  font-size: 13.5px;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.54);
}

.footer__phone {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}

.footer__phone .icon {
  width: 34px;
  height: 34px;
  padding: 8px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--cyan);
}

.footer__phone span {
  display: block;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
}

.footer__phone a {
  color: #fff;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.footer__col h2 {
  margin-bottom: 18px;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
}

.footer__col ul {
  display: grid;
  gap: 11px;
}

.footer__col a {
  color: rgba(255, 255, 255, 0.58);
  font-size: 13.5px;
  transition: color 0.2s var(--ease);
}

.footer__col a:hover {
  color: #fff;
}

.footer__coverage {
  max-width: 320px;
  word-break: keep-all;
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
  line-height: 1.8;
}

.footer__qr {
  display: flex;
  gap: 20px;
  margin-top: 18px;
}

.footer__qr figure {
  text-align: center;
}

.footer__qr img {
  width: 94px;
  height: 94px;
  padding: 5px;
  border-radius: 8px;
  background: #fff;
  object-fit: contain;
}

.footer__qr figcaption {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
}

.footer__bottom {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 24px;
  padding-block: 20px 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  color: rgba(255, 255, 255, 0.4);
  font-size: 12.5px;
}

.footer__bottom a {
  color: rgba(255, 255, 255, 0.5);
}

.footer__bottom a:hover {
  color: #fff;
}

.footer__bottom .footer__spacer {
  margin-left: auto;
}

/* ---------- 弹窗 ---------- */
.modal {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(460px, calc(100vw - 32px));
  max-height: min(88vh, 760px);
  padding: 0;
  border: 0;
  border-radius: 20px;
  background: transparent;
  overflow: visible;
}

.modal::backdrop {
  background: rgba(5, 16, 34, 0.58);
  backdrop-filter: blur(4px);
}

.modal__panel {
  position: relative;
  max-height: min(88vh, 760px);
  overflow-y: auto;
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow-lg);
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  transition: background 0.2s var(--ease);
}

.modal__close:hover {
  background: #fff;
}

.modal__banner {
  padding: 34px 32px 30px;
  background: linear-gradient(135deg, #1943b7 0%, #2151d1 55%, #3467f4 100%);
  color: #fff;
}

.modal__banner .eyebrow {
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.72);
}

.modal__banner .eyebrow::before {
  background: rgba(255, 255, 255, 0.6);
}

.modal__banner h2 {
  color: #fff;
  font-size: 26px;
}

.modal__banner p {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  line-height: 1.7;
}

.modal__body {
  padding: 28px 32px 32px;
}

.modal__body > p {
  color: var(--text);
  font-size: 14.5px;
  line-height: 1.8;
}

.modal__actions {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.modal__qr {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.modal__qr img {
  width: 96px;
  height: 96px;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: contain;
}

.modal__qr strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 15px;
}

.modal__qr p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.modal__note {
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--bg);
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.7;
}

/* ---------- 返回顶部 ---------- */
.to-top {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 80;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease),
    visibility 0.25s;
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.to-top:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.to-top .icon {
  width: 20px;
  height: 20px;
  transform: rotate(-90deg);
}

/* ---------- 滚动动效 ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

.js [data-reveal-delay="1"] {
  transition-delay: 0.08s;
}

.js [data-reveal-delay="2"] {
  transition-delay: 0.16s;
}

.js [data-reveal-delay="3"] {
  transition-delay: 0.24s;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* ---------- 响应式 ---------- */
@media (max-width: 1180px) {
  .nav-list {
    gap: 16px;
  }

  .nav-link {
    font-size: 13.5px;
  }

  .mega__inner {
    grid-template-columns: 230px 1fr;
    gap: 32px;
  }
}

@media (max-width: 992px) {
  :root {
    --header-h: 68px;
    --section-y: 76px;
  }

  .main-nav {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .header__login {
    display: none;
  }

  .header__actions {
    gap: 10px;
  }

  .mega {
    display: none;
  }

  .utility-bar {
    display: none;
  }

  .footer__top {
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 36px;
  }

  .footer__qr {
    grid-column: 1 / -1;
    gap: 28px;
  }
}

@media (max-width: 720px) {
  :root {
    --gutter: 20px;
    --section-y: 64px;
  }

  body {
    font-size: 15.5px;
  }

  .brand img {
    width: 124px;
  }

  .header__actions .btn {
    height: 38px;
    padding: 0 16px;
    font-size: 13.5px;
  }

  .section-head {
    margin-bottom: 36px;
    text-align: left;
  }

  .section-head .eyebrow {
    justify-content: flex-start;
  }

  .section-head--row {
    display: block;
  }

  .section-head--row .text-link {
    margin-top: 14px;
  }

  .section-head__sub {
    font-size: 15px;
  }

  .footer__top {
    grid-template-columns: 1fr 1fr;
    padding-block: 48px 36px;
  }

  .footer__brand {
    grid-column: 1 / -1;
  }

  .footer__brand p {
    max-width: none;
  }

  .footer__bottom {
    padding-bottom: 88px;
  }

  .footer__bottom .footer__spacer {
    display: none;
  }

  .modal__banner,
  .modal__body {
    padding-inline: 24px;
  }

  .to-top {
    right: 16px;
    bottom: 16px;
  }
}

@media (max-width: 480px) {
  .footer__top {
    grid-template-columns: 1fr;
  }

  .footer__qr {
    grid-column: auto;
  }
}


/* ---------- 打印 ---------- */
@media print {
  .utility-bar,
  .site-header,
  .site-footer,
  .drawer,
  .modal,
  .to-top,
  .article-aside,
  .article-share,
  .article-pager,
  .cta-band,
  .related-grid,
  .breadcrumb,
  .article-hero {
    display: none !important;
  }

  .article-head {
    padding: 0 0 24px;
    background: #fff;
    border: 0;
  }

  .article-layout {
    display: block;
    padding: 0;
  }

  .article-body {
    max-width: 100%;
    color: #000;
    font-size: 12pt;
    line-height: 1.8;
  }

  .article-body h2 {
    page-break-after: avoid;
  }

  .article-body img {
    page-break-inside: avoid;
  }
}

/* ---------- 产品下拉：老板手机版推荐位 ---------- */
.mega__row--featured {
  grid-column: 1 / -1;
}

.mega__item--featured {
  margin-bottom: 2px;
  border-color: #dbe8fb;
  background: linear-gradient(135deg, #f4f8ff 0%, #e9f2ff 100%);
}

.mega__item--featured .mega__icon {
  background: var(--brand);
  color: #fff;
}

.mega__item--featured .mega__text em {
  background: var(--brand);
  color: #fff;
}

/* 微软雅黑下整体字重略微加粗 */
body {
  font-weight: 500;
  -webkit-font-smoothing: auto;
  -moz-osx-font-smoothing: auto;
}

.nav-link,
.header__login {
  font-weight: 500;
}

/* 恢复正文和导航的正常字重，只保留 Banner 大标题加粗 */
body {
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.nav-link,
.header__login {
  font-weight: 400;
}

/* 一级导航文字略微加粗，正文和按钮不受影响 */
.main-nav .nav-link {
  font-weight: 500;
}

/* 页脚备案与安全认证 */
.footer__bottom {
  gap: 10px 18px;
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 18px;
}

.footer__legal-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.42);
  font-size: 12px;
  line-height: 1.6;
}

.footer__legal-item a {
  color: rgba(255, 255, 255, 0.5);
}

.footer__legal-item a:hover {
  color: #fff;
}

.footer__emblem {
  display: block;
  flex: none;
  width: 13px;
  height: 14px;
  object-fit: contain;
}

.footer__cert-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 14px;
  height: 14px;
  color: rgba(255, 255, 255, 0.52);
}

.footer__cert-icon .icon {
  width: 13px;
  height: 13px;
}

@media (max-width: 720px) {
  .footer__legal {
    width: 100%;
    gap: 5px 14px;
  }

  .footer__legal-item {
    font-size: 11.5px;
  }
}

/* 国徽稍微放大，便于识别 */
.footer__emblem {
  width: 16px;
  height: 17px;
}

.utility-app__trigger {
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
