/* ==================================================================
 * MES 产品官网 · 基础样式 / 设计系统 / 公共组件
 * 纯 HTML + CSS 静态站点：零脚本依赖、零第三方库、无构建、无外部字体
 * ================================================================== */
:root {
  --primary: #12b6c9;
  --primary-dark: #0b9fb2;
  --primary-light: #e6f9fb;
  --blue: #0aa5e6;
  --blue-dark: #0b74bd;
  --navy: #123c5c;
  --navy-deep: #0d2c48;
  --text: #24313f;
  --text-2: #4d5f70;
  --muted: #8392a2;
  --line: #e5edf4;
  --soft: #f4f9fd;
  --soft-2: #eaf5fb;
  --white: #fff;
  --radius: 10px;
  --radius-lg: 18px;
  --shadow-sm: 0 4px 18px rgba(24, 76, 118, .07);
  --shadow: 0 12px 36px rgba(22, 70, 112, .11);
  --shadow-lg: 0 22px 60px rgba(15, 58, 96, .18);
  --header-h: 60px;
  --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; border: 0; }
a { color: inherit; text-decoration: none; }
button, input { font-family: inherit; font-size: inherit; outline: none; }
button { cursor: pointer; border: 0; background: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5, p { margin: 0; }
svg.icon { width: 1em; height: 1em; display: inline-block; vertical-align: -.14em; flex: none; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 84px 0; position: relative; }
.section--soft { background: var(--soft); }

.section--tight { padding: 56px 0; }

/* 通用区块标题 */
.section-head { text-align: center; margin-bottom: 46px; }
.section-head .eyebrow {
  display: inline-block; font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--primary); font-weight: 700; margin-bottom: 10px;
}
.section-head h2 { font-size: 32px; line-height: 1.35; font-weight: 700; color: var(--navy); letter-spacing: .5px; }
.section-head h2 em { font-style: normal; color: var(--primary); }
.section-head p { margin-top: 12px; color: var(--muted); font-size: 15px; }

/* 按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 26px; border-radius: 24px; font-size: 14px; font-weight: 600;
  transition: transform .22s, box-shadow .22s, background .22s, color .22s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--primary); color: #fff; box-shadow: 0 8px 20px rgba(18,182,201,.28); }
.btn--primary:hover { background: var(--primary-dark); box-shadow: 0 12px 26px rgba(18,182,201,.38); }
.btn--ghost { border: 1px solid rgba(18,182,201,.55); color: var(--primary-dark); background: rgba(255,255,255,.55); }
.btn--ghost:hover { background: #fff; box-shadow: var(--shadow-sm); }

.btn--lg { height: 50px; padding: 0 34px; font-size: 15px; }
.btn--block { width: 100%; }

/* 标签 */
.tag {
  display: inline-block; padding: 3px 12px; border-radius: 4px; font-size: 12px;
  background: var(--primary-light); color: var(--primary-dark);
}
.tag--outline { background: #fff; border: 1px solid var(--line); color: var(--text-2); }
.pill {
  display: inline-block; padding: 5px 16px; border: 1px solid var(--line); border-radius: 20px;
  font-size: 13px; color: var(--text-2); background: #fff; transition: .2s;
}
.pill:hover, .pill.is-active { border-color: var(--primary); color: var(--primary-dark); background: var(--primary-light); }

@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ==================================================================
 * 顶部导航
 * ================================================================== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; height: var(--header-h); z-index: 900;
  background: rgba(255,255,255,0.8); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(220,233,243,.8); transition: box-shadow .25s, background .25s;
}

.header-inner { height: 100%; display: flex; align-items: center; gap: 0; }
/* 设计稿：左侧仅保留圆形品牌图标，不再显示品牌名与标语 */
.brand { display: inline-flex; align-items: center; flex: none; line-height: 0; }
.brand__logo { display: block; width: 40px; height: 40px; flex: none; }
.site-nav { display: flex; align-items: center; margin-left: 40px; height: 100%; gap: 4px; }
.site-nav__item {
  position: relative; display: flex; align-items: center; height: 100%; padding: 0 19px;
  font-family: Source Han Sans, Source Han Sans;
  font-weight: 400;
  font-size: 16px;
  color: #3D3D3D; transition: color .2s;
}
.site-nav__item::after {
  content: ''; position: absolute; left: 19px; right: 19px; bottom: 0; height: 3px;
  background: var(--primary); border-radius: 3px 3px 0 0; transform: scaleX(0); transition: transform .25s;
}
.site-nav__item:hover, .site-nav__item.is-active { color: var(--primary-dark); font-weight: 700; font-size: 16px; }
.site-nav__item.is-active::after { transform: scaleX(1); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.btn-login {
  height: 36px; padding: 0 22px; border-radius: 3px; background: var(--primary);
  font-weight: 400;
  font-size: 16px;
  color: #FFFFFF; transition: background .2s, transform .2s;
}
.btn-login:hover { background: var(--primary-dark); transform: translateY(-1px); }
.nav-toggle { display: none; width: 38px; height: 38px; color: var(--navy); font-size: 22px; }
.nav-toggle .icon { width: 24px; height: 24px; }

/* 全站统一的头部外观（与首页设计稿一致）：通栏铺满、右缘渐变登录块 */
.site-header .header-inner {
  width: 100%; max-width: none;
  padding: 0 0 0 clamp(24px, 3.4vw, 52px);
}
.site-header .site-nav {
  margin-left: clamp(24px, 2.6vw, 40px);
  gap: clamp(8px, 1.5vw, 22px);
}
/* 当前栏目仅文字变青色，不显示下方横线 */
.site-header .site-nav__item.is-active::after { transform: scaleX(0); }
.site-header .btn-login {
  position: absolute; right: 0; top: 0; bottom: -1px;
  width: clamp(78px, 6.6vw, 96px);
  height: auto;
  border-radius: 0; letter-spacing: 2px;
  background: linear-gradient(270deg, #01B9C3 0%, #048AF0 100%);
  box-shadow: none;
  font-size: 16px;
  font-weight: 400;
}
.site-header .btn-login:hover {
  background: linear-gradient(135deg, #0faec9, #088ccb); transform: none;
}

/* ==================================================================
 * 底部（设计稿：顶部品牌行 + 三栏信息 + 深色版权条）
 * ================================================================== */
.site-footer { background: #153b50; color: #fff; }
.footer-wrap { width: calc(100% - 48px); max-width: 1080px; margin: 0 auto; }
.footer-top { padding: 40px 0 0; }
/* 设计稿品牌行：40px 圆形 logo + 13px 间距，两行文字基线对齐 */
.footer-brand { display: flex; align-items: baseline; gap: 13px; }
.footer-brand__logo { width: 40px; height: 40px; flex: none; align-self: center; }
.footer-brand__name { font-weight: 700; font-size: 28px; color: #FFFFFF; line-height: 41px; letter-spacing: 1px; }
.footer-brand__slogan { font-weight: 400; font-size: 18px; color: #FFFFFF; line-height: 23px; letter-spacing: .8px; }
.footer-cols { display: grid; grid-template-columns: 26% 44.5% 29.5%; padding: 38px 0 60px 40px; }
.footer-col h4 { font-size: 16px; font-weight: 700; line-height: 20px; margin: 0 0 29px; color: #fff; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { font-size: 16px; line-height: 20px; color: rgba(255,255,255,.82); }
.footer-col li + li { margin-top: 30px; }
.footer-col a { color: inherit; text-decoration: none; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-links li:first-child a { color: #fff; }
/* .footer-cols 的列宽是固定百分比，nowrap 会让长地址溢出到二维码列并被其覆盖 */
.footer-contact li { white-space: normal; overflow-wrap: break-word; line-height: 24px; padding-right: 28px; }
.footer-contact li + li { margin-top: 14px; }
.footer-qr h4 { margin-bottom: 20px; }
.qr-group { display: flex; gap: 30px; }
.qr-item { position: relative; text-align: center; }
.qr-item::before {
  content: ""; position: absolute; top: 65px; left: 50%; transform: translate(-50%, -50%);
  width: 28px; height: 28px; border-radius: 5px;
  background: #dfeaff url("../img/brand-logo.png") center / 26px 26px no-repeat;
  box-shadow: 0 0 0 2px #dfeaff;
}
.qr-item img { width: 130px; height: 130px; border-radius: 8px; background: #dfeaff; padding: 6px; }
/* 真实二维码：白底铺满，去掉占位图的蓝底内边距与中心品牌角标，避免遮挡扫码 */
.qr-item--real::before { display: none; }
.qr-item--real img { background: #fff; padding: 0; object-fit: contain; }
.qr-item span { display: block; margin-top: 11px; font-size: 16px; line-height: 20px; color: rgba(255,255,255,.82); }
.footer-bottom {
  border-top: 1px solid #285369; background: #143b4f; text-align: center; padding: 36px 0 36px;
  font-size: 17px; line-height: 20px; color: rgba(255,255,255,.62); letter-spacing: .7px;
}
.footer-icp { color: inherit; text-decoration: none; transition: color .2s ease; }
.footer-icp:hover { color: #fff; text-decoration: underline; }

/* ==================================================================
 * 右侧悬浮工具条
 * ================================================================== */
.float-bar {
  /* 靠近窗口右下方：距右边 20px、距底部 60px */
  position: fixed; right: 20px; bottom: 60px; top: auto; transform: none; z-index: 800;
  display: flex; flex-direction: column; gap: 8px;
}
.float-btn {
  width: 42px; background: var(--primary); color: #fff; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px; border-radius: 5px;
  box-shadow: 0 4px 14px rgba(12,120,150,.18); transition: background .2s, transform .2s;
}
.float-btn:hover { background: var(--primary-dark); }

/* 申请试用（设计稿）：42×136 / #16BBC8 / 16px 400 / 白色竖排文字 */
.float-btn--trial {
  width: 42px; height: 136px; padding: 0; gap: 10px;
  background: #16BBC8; color: #FFFFFF; font-size: 16px; font-weight: 400;
}
.float-btn--trial:hover { background: #0fa9b6; }
.float-btn--trial .icon,
.float-btn--trial img { width: 20px; height: 20px; flex: none; }
.float-btn--trial span {
  writing-mode: vertical-rl; letter-spacing: 6px; font-size: 16px;
  font-weight: 400; line-height: 1; color: #FFFFFF;
  margin-bottom: -6px; /* 抵消末字后多出的字距，保证竖排文字视觉居中 */
}
/* 显隐交给 static.css：无 JS 时常显，加载 back-to-top.js 后由 .js .float-btn--top 接管 */
.float-btn--top {
  width: 42px; height: 42px; border-radius: 5px; background: #fff; color: var(--primary-dark);
}

.float-btn--top:hover { background: var(--primary-light); }
.float-btn--top .icon { font-size: 19px; }

/* 悬浮工具条使用设计稿切片图标（与首页一致） */
.float-btn--trial img { width: 20px; height: 20px; object-fit: contain; filter: brightness(0) invert(1); }
.float-btn--top { background: #fff; padding: 0; overflow: hidden; }
.float-btn--top img { width: 100%; height: 100%; display: block; }
.float-btn--top .icon { display: none; }

/* ==================================================================
 * 申请试用弹窗
 * ================================================================== */
.modal-mask {
  position: fixed; inset: 0; z-index: 1000; background: rgba(9, 32, 54, .5);
  backdrop-filter: blur(3px); display: flex; align-items: center; justify-content: center;
  padding: 24px; opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
}

.modal {
  width: 100%; max-width: 520px; max-height: calc(100vh - 48px); overflow-y: auto;
  background: #fff; border-radius: 16px; padding: 36px 40px 30px; position: relative;
  box-shadow: var(--shadow-lg); transform: translateY(18px) scale(.98); transition: transform .28s;
}

.modal__close {
  position: absolute; right: 16px; top: 14px; width: 32px; height: 32px; border-radius: 50%;
  color: var(--muted); font-size: 20px; display: flex; align-items: center; justify-content: center;
}
.modal__close:hover { background: var(--soft); color: var(--text); }
.modal__title { text-align: center; font-size: 22px; font-weight: 700; color: #3a4654; margin-bottom: 30px; }
.modal__sub { text-align: center; color: var(--muted); font-size: 13px; margin-bottom: 26px; }
.form-row { position: relative; margin-bottom: 26px; }
.form-row .input-icon {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  color: #9aa9b7; font-size: 19px; pointer-events: none;
}
.form-input {
  width: 100%; height: 50px; padding: 0 16px 0 48px; border: 1px solid #dfe7ee; border-radius: 8px;
  color: var(--text); background: #fff; transition: border-color .2s, box-shadow .2s;
}
.form-input::placeholder { color: #aebbc7; }
.form-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(18,182,201,.12); }

.form-row--code .form-input { padding-right: 120px; }
.code-btn {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  color: var(--primary-dark); font-size: 14px; font-weight: 600; padding: 6px 6px;
}
.code-btn:disabled { color: #aebbc7; cursor: not-allowed; }
.form-error { min-height: 20px; color: #e35d5d; font-size: 12px; margin: -6px 0 6px; }
.modal__submit { height: 50px; border-radius: 26px; font-size: 16px; margin-top: 14px; }
.modal__submit:disabled { opacity: .7; cursor: not-allowed; transform: none; }
.modal__note { text-align: center; color: var(--muted); font-size: 13px; line-height: 1.9; margin-top: 20px; }
.modal__note a { color: var(--primary-dark); font-weight: 600; }

/* ==================================================================
 * 分页器
 * ================================================================== */
.pager { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: 42px; }
.pager button {
  min-width: 32px; height: 32px; padding: 0 9px; border: 1px solid var(--line); border-radius: 4px;
  background: #fff; color: var(--text-2); font-size: 13px; transition: .2s;
}
.pager button:hover:not(:disabled) { border-color: var(--primary); color: var(--primary-dark); }
.pager button.is-current { background: var(--primary); border-color: var(--primary); color: #fff; }
.pager button:disabled { color: #c6d0d9; cursor: not-allowed; }
.pager .pager__info { color: var(--muted); font-size: 13px; margin-left: 8px; }

/* ==================================================================
 * 后台系统界面模拟
 * ================================================================== */
.app-screen {
  width: 100%; border-radius: 10px; overflow: hidden; background: #fff;
  box-shadow: 0 20px 46px rgba(18, 72, 116, .16); border: 1px solid #e6eef5;
  font-size: 0; transform: perspective(1200px) rotateY(-3deg) rotateX(1deg);
  transition: transform .4s;
}
.app-screen:hover { transform: perspective(1200px) rotateY(0) rotateX(0); }
.app-screen__bar {
  height: 30px; background: #f3f7fb; display: flex; align-items: center; gap: 5px;
  padding: 0 12px; border-bottom: 1px solid #e8eff5;
}
.app-screen__bar .dot { width: 7px; height: 7px; border-radius: 50%; }
.app-screen__bar .dot.r { background: #f5a1a1; }
.app-screen__bar .dot.y { background: #f5d18a; }
.app-screen__bar .dot.g { background: #9fdcb9; }
.app-screen__bar em {
  font-style: normal; font-size: 10px; color: #9aabb9; margin-left: auto; margin-right: auto;
}
.app-screen__bar i { width: 34px; height: 5px; border-radius: 3px; background: #e2eaf1; }
.app-screen__body { display: flex; min-height: 236px; }
.app-screen__side { width: 108px; flex: none; background: #f7fafd; border-right: 1px solid #edf2f7; padding: 12px 8px; }
.app-logo {
  font-size: 10px; font-weight: 700; color: var(--scr-accent); margin: 0 0 12px 7px; letter-spacing: .5px;
}
.app-menu { display: flex; align-items: center; gap: 6px; height: 23px; padding: 0 6px; border-radius: 4px; }
.app-menu b { width: 7px; height: 7px; border-radius: 2px; background: #c8d7e3; flex: none; }
.app-menu span { height: 4px; border-radius: 2px; background: #d3dfe9; }
.app-menu.is-active { background: color-mix(in srgb, var(--scr-accent) 14%, #fff); }
.app-menu.is-active b { background: var(--scr-accent); }
.app-menu.is-active span { background: var(--scr-accent); opacity: .65; }
.app-screen__main { flex: 1; min-width: 0; padding: 12px 14px 10px; }
.app-crumb { display: flex; align-items: center; gap: 6px; font-size: 9px; color: #a7b6c3; margin-bottom: 10px; }
.app-crumb b { color: var(--scr-accent); font-weight: 600; }
.app-crumb i { font-style: normal; opacity: .5; }
.app-toolbar { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.app-btn {
  font-size: 9px; color: #6c8294; border: 1px solid #e0e9f0; border-radius: 3px; padding: 3px 9px; line-height: 1.5;
}
.app-btn.primary { background: var(--scr-accent); border-color: var(--scr-accent); color: #fff; }
.app-search {
  margin-left: auto; display: flex; align-items: center; gap: 4px; border: 1px solid #e6edf3;
  border-radius: 3px; padding: 2px 6px; color: #b3c2ce;
}
.app-search .icon { font-size: 9px; }
.app-search i { width: 46px; height: 4px; border-radius: 2px; background: #e5edf3; }
.app-chart { display: flex; align-items: flex-end; gap: 5px; height: 54px; margin-bottom: 10px; padding: 6px 8px; background: #f8fbfd; border-radius: 4px; }
.app-chart span { flex: 1; background: linear-gradient(180deg, var(--scr-accent), color-mix(in srgb, var(--scr-accent) 35%, #fff)); border-radius: 2px 2px 0 0; opacity: .8; }
.app-table { border: 1px solid #edf2f7; border-radius: 4px; overflow: hidden; }
.app-tr { display: flex; border-bottom: 1px solid #f0f4f8; height: 19px; align-items: center; }
.app-tr:last-child { border-bottom: 0; }
.app-tr > span { flex: 1; min-width: 0; padding: 0 7px; display: flex; align-items: center; }
.app-tr > span i { display: block; height: 4px; border-radius: 2px; background: #dfe8ef; }
.app-th { background: #f7fafc; height: 21px; }
.app-th > span i { background: #bdcdda; }
.app-td-tag b { display: block; width: 26px; height: 8px; border-radius: 4px; opacity: .85; }
.app-td-tag b.ok { background: #7fd6b0; }
.app-td-tag b.warn { background: #f6c98a; }
.app-td-tag b.info { background: #9ccdf0; }
.app-pager { display: flex; align-items: center; justify-content: flex-end; gap: 4px; margin-top: 8px; }
.app-pager i { width: 13px; height: 4px; border-radius: 2px; background: #e2eaf1; }
.app-pager b { font-size: 9px; color: var(--scr-accent); }
.app-pager em { font-style: normal; font-size: 9px; color: #b3c1cd; margin-left: 4px; }

/* ==================================================================
 * 响应式
 * ================================================================== */
@media (max-width: 1100px) {
  .site-nav { margin-left: 26px; }
  .site-nav__item { padding: 0 12px; }
  .site-nav__item::after { left: 12px; right: 12px; }
  .footer-cols { grid-template-columns: 1fr 1.4fr; padding-left: 0; row-gap: 36px; }
  .footer-qr { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .container { padding: 0 18px; }
  .section { padding: 58px 0; }
  .section-head h2 { font-size: 26px; }
  .section-head { margin-bottom: 32px; }
  .nav-toggle { display: flex; align-items: center; justify-content: center; margin-left: auto; }
  .header-actions { margin-left: 8px; }
  /* 窄屏恢复常规小登录按钮，避免与汉堡菜单、渐变方块重叠 */
  .site-header .header-inner { padding: 0 16px 0 20px; }
  .site-header .header-actions { display: flex; align-items: center; gap: 10px; }
  .site-header .btn-login {
    position: static; width: 64px; height: 36px;
    border-radius: 3px; letter-spacing: 0; font-size: 13px;
  }
  .site-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; margin: 0; height: auto;
    flex-direction: column; align-items: stretch; gap: 0; background: #fff;
    box-shadow: 0 12px 24px rgba(15,55,90,.12); padding: 10px 18px 18px;
    transform: translateY(-12px); opacity: 0; visibility: hidden; transition: .25s;
  }

  .site-nav__item { height: 46px; padding: 0 4px; border-bottom: 1px solid var(--line); }
  .site-nav__item::after { display: none; }
  .footer-cols { grid-template-columns: 1fr 1.2fr; gap: 28px; padding-left: 0; }
  .footer-qr { grid-column: 1 / -1; }
  .footer-contact li { padding-right: 0; }
  .modal { padding: 30px 24px 24px; }
}
@media (max-width: 560px) {
  .brand__logo { width: 36px; height: 36px; }
  .btn-login { padding: 0 14px; }
  .section-head h2 { font-size: 22px; }
  .footer-top { padding-top: 32px; }
  .footer-brand__name { font-size: 22px; }
  .footer-brand__slogan { display: none; }
  .footer-cols { grid-template-columns: 1fr; row-gap: 30px; padding: 32px 0 40px; }
  .footer-col h4, .footer-col li { font-size: 16px; }
  .footer-col h4 { margin-bottom: 18px; }
  .footer-col li + li, .footer-contact li + li { margin-top: 16px; }
  .footer-qr { grid-column: auto; }
  .qr-group { justify-content: flex-start; gap: 20px; }
  .qr-item img { width: 116px; height: 116px; }
  .qr-item::before { top: 58px; }
  .footer-bottom { font-size: 13px; letter-spacing: 0; line-height: 1.7; padding: 14px 16px 20px; }
  .pager .pager__info { width: 100%; text-align: center; margin: 8px 0 0; }
  .app-screen { transform: none; }
}
