/* ============================================================
   微信分发版产品册 · 移动优先
   ============================================================ */

html {
  -webkit-text-size-adjust: 100%;
}

body.h5 {
  background: #f2f6fb;
  color: var(--text-mid);
  font-size: 15px;
  padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px));
}

.h5-main {
  max-width: 520px;
  margin: 0 auto;
  background: #fff;
  min-height: 100vh;
  box-shadow: 0 0 60px rgba(13, 42, 78, 0.08);
}

/* ---------- 顶部条 ---------- */
.h5-top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}

.h5-top__inner {
  max-width: 520px;
  margin: 0 auto;
  height: 56px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.h5-top .logo__img {
  height: 30px;
  width: auto;
  display: block;
}

.h5-top .logo__mark {
  width: 30px;
  height: 30px;
}

.h5-top .logo__text b {
  font-size: 15px;
}

.h5-top .logo__text span {
  font-size: 8.5px;
}

.h5-top__tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--blue-600);
  padding: 4px 10px;
  background: rgba(37, 99, 235, 0.07);
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 100px;
}

/* ---------- 首屏 ---------- */
.h5-hero {
  position: relative;
  padding: 30px 20px 26px;
  background: linear-gradient(170deg, #ffffff 0%, #f4f9fe 60%, #eaf3fc 100%);
  border-bottom: 1px solid var(--line-soft);
  overflow: hidden;
}

.h5-hero::after {
  content: "";
  position: absolute;
  right: -30%;
  top: -18%;
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.13), transparent 66%);
  filter: blur(38px);
  pointer-events: none;
}

.h5-hero__badge {
  position: relative;
  z-index: 1;
  display: inline-block;
  padding: 5px 12px;
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--green-400);
  background: rgba(13, 143, 99, 0.07);
  border: 1px solid rgba(13, 143, 99, 0.2);
  border-radius: 100px;
}

.h5-hero h1 {
  position: relative;
  z-index: 1;
  font-size: 31px;
  line-height: 1.22;
  letter-spacing: -0.02em;
  color: var(--brand-900);
}

.h5-hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--blue-600), var(--cyan-500) 88%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.h5-hero > p {
  position: relative;
  z-index: 1;
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.85;
  color: var(--text-lo);
}

.h5-hero__media {
  position: relative;
  z-index: 1;
  margin: 18px -6px 4px;
}

.h5-hero__media img {
  width: 100%;
  display: block;
  filter: drop-shadow(0 14px 26px rgba(13, 42, 78, 0.16));
}

/* 快捷导航 */
.h5-nav {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 16px;
}

.h5-nav a {
  padding: 10px 4px;
  font-size: 12.5px;
  text-align: center;
  color: var(--text-mid);
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: 9px;
  box-shadow: var(--sh-sm);
  transition: 0.2s;
}

.h5-nav a:active {
  background: rgba(37, 99, 235, 0.07);
  color: var(--blue-600);
  transform: scale(0.97);
}

/* ---------- 分区 ---------- */
.h5-sec {
  padding: 34px 20px 30px;
  border-bottom: 1px solid var(--line-soft);
  scroll-margin-top: 66px;
}

.h5-sec--dark {
  background: linear-gradient(150deg, #071a33 0%, #0b2a4d 58%, #0a3455 100%);
  border-bottom: 0;
  position: relative;
  overflow: hidden;
}

.h5-sec--dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/pcb-dark.jpg") center / cover no-repeat;
  opacity: 0.16;
  filter: grayscale(0.35) brightness(0.7);
}

.h5-sec--dark > * {
  position: relative;
  z-index: 1;
}

.h5-sec__head {
  margin-bottom: 22px;
}

.h5-sec__no {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--cyan-600);
  margin-bottom: 8px;
}

.h5-sec h2 {
  font-size: 22px;
  color: var(--brand-900);
  letter-spacing: -0.01em;
}

.h5-sec__head > p {
  margin-top: 7px;
  font-size: 13px;
  color: var(--text-dim);
}

.h5-sec--dark h2 {
  color: #fff;
}

.h5-sec--dark .h5-sec__no {
  color: #7fe3f0;
}

.h5-sec--dark .h5-sec__head > p {
  color: #8aa8c6;
}

/* ---------- 产品卡 ---------- */
.pcard {
  padding: 20px 18px;
  margin-bottom: 14px;
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  box-shadow: var(--sh-sm);
}

.h5-sec--dark .pcard {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(53, 230, 255, 0.16);
  backdrop-filter: blur(4px);
}

.pcard--hero {
  padding-top: 16px;
  border-color: rgba(37, 99, 235, 0.2);
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.1);
}

.pcard__flag {
  display: inline-block;
  padding: 4px 10px;
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--blue-600);
  background: rgba(37, 99, 235, 0.07);
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 100px;
}

.pcard__media {
  margin: 0 -4px 14px;
  padding: 14px 10px;
  background: linear-gradient(160deg, #f7fbff, #eef5fc);
  border-radius: 10px;
}

.pcard__media img {
  width: 100%;
  display: block;
  filter: drop-shadow(0 10px 18px rgba(13, 42, 78, 0.14));
}

.pcard__hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 5px;
}

.pcard h3 {
  font-size: 17.5px;
  color: var(--brand-900);
  letter-spacing: -0.01em;
}

.h5-sec--dark .pcard h3 {
  color: #fff;
}

.pcard__tag {
  flex-shrink: 0;
  padding: 3px 9px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--cyan-600);
  background: rgba(10, 157, 184, 0.08);
  border: 1px solid rgba(10, 157, 184, 0.2);
  border-radius: 100px;
}

.h5-sec--dark .pcard__tag {
  color: #7fe3f0;
  background: rgba(53, 230, 255, 0.1);
  border-color: rgba(53, 230, 255, 0.26);
}

.pcard__sub {
  font-size: 12.5px;
  color: var(--text-dim);
  margin-bottom: 14px;
}

.h5-sec--dark .pcard__sub {
  color: #7e9cbb;
}

/* 参数 */
.pspec {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 12px;
}

.pspec > div {
  padding: 10px 12px;
  background: #fafcff;
}

.pspec span {
  display: block;
  font-size: 11px;
  color: var(--text-dim);
  margin-bottom: 3px;
}

.pspec b {
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--brand-900);
}

.h5-sec--dark .pspec {
  background: rgba(53, 230, 255, 0.14);
  border-color: rgba(53, 230, 255, 0.14);
}

.h5-sec--dark .pspec > div {
  background: rgba(8, 28, 52, 0.72);
}

.h5-sec--dark .pspec span {
  color: #7e9cbb;
}

.h5-sec--dark .pspec b {
  color: #fff;
}

.pcard__note {
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--text-lo);
  margin-bottom: 14px;
}

.pcard__more {
  display: block;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--blue-600);
  text-align: right;
}

.h5-sec--dark .pcard__note {
  color: #9db9d4;
}

/* 大数字 */
.pbig {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 14px 0 16px;
}

.pbig__val {
  font-family: var(--font-mono);
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--brand-900);
}

.pbig__val i {
  font-style: normal;
  font-size: 15px;
  font-weight: 600;
  color: var(--blue-600);
  margin-left: 4px;
}

.pbig__label {
  font-size: 12px;
  color: var(--text-dim);
}

.pcard--accent .pbig__val {
  color: var(--blue-600);
}

/* 按钮组 */
.pcard__act {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.h5-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 42px;
  font-size: 13.5px;
  font-weight: 600;
  border-radius: 9px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.h5-btn svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.h5-btn--share {
  background: #fff;
  border-color: rgba(37, 99, 235, 0.24);
  color: var(--blue-600);
}

.h5-btn--share:active {
  background: rgba(37, 99, 235, 0.07);
  transform: scale(0.98);
}

.h5-btn--call {
  background: linear-gradient(120deg, var(--blue-600), var(--blue-400));
  color: #fff;
  box-shadow: 0 5px 14px rgba(29, 78, 216, 0.24);
}

.h5-btn--call:active {
  transform: scale(0.98);
  box-shadow: 0 3px 8px rgba(29, 78, 216, 0.3);
}

/* 深色区按钮 */
.h5-sec--dark .h5-btn--share {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(53, 230, 255, 0.4);
  color: #eaf6ff;
}

.h5-sec--dark .h5-btn--call {
  background: linear-gradient(120deg, #35e6ff, #22b8cf);
  color: #04121f;
  box-shadow: 0 6px 18px rgba(53, 230, 255, 0.28);
}

/* 服务器规格网格 */
.pspec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-bottom: 16px;
}

.pspec-cell {
  padding: 14px 14px 12px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(53, 230, 255, 0.22);
  border-radius: 10px;
}

.pspec-cell b {
  display: block;
  font-family: var(--font-mono);
  font-size: 25px;
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 6px;
}

.pspec-cell b i {
  font-style: normal;
  font-size: 12px;
  color: #7fe3f0;
  margin-left: 2px;
}

.pspec-cell span {
  display: block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: #c3d8ea;
  margin-bottom: 3px;
}

.pspec-cell em {
  font-style: normal;
  font-size: 11.5px;
  color: #7fe3f0;
}

/* 标签条 */
.pchips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 16px;
}

.pchips span {
  padding: 5px 11px;
  font-size: 11.5px;
  color: var(--text-mid);
  background: #f7fafd;
  border: 1px solid var(--line-soft);
  border-radius: 100px;
}

.h5-sec--dark .pchips span {
  color: #a9c4dd;
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(53, 230, 255, 0.16);
}

.h5-note {
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--text-lo);
  margin-bottom: 16px;
}

.h5-sec--dark .h5-note {
  color: #9db9d4;
}

/* 集成清单 */
.plist {
  border: 1px solid rgba(53, 230, 255, 0.16);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 16px;
}

.plist__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 15px;
  border-top: 1px solid rgba(53, 230, 255, 0.12);
  background: rgba(8, 28, 52, 0.5);
}

.plist__row:first-child {
  border-top: 0;
}

.plist__row b {
  font-size: 13.5px;
  color: #fff;
  font-weight: 600;
  flex-shrink: 0;
}

.plist__row span {
  font-size: 12.5px;
  color: #8aa8c6;
  text-align: right;
}

/* ---------- 联系 ---------- */
.h5-contact {
  padding: 36px 20px 30px;
  background: #fff;
  border-top: 1px solid var(--line-soft);
}

.h5-contact h2 {
  font-size: 22px;
  color: var(--brand-900);
  margin-bottom: 10px;
}

.h5-contact > p {
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--text-lo);
  margin-bottom: 20px;
}

.h5-contact__tel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  background: linear-gradient(120deg, rgba(37, 99, 235, 0.07), rgba(10, 157, 184, 0.05));
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 12px;
  margin-bottom: 18px;
}

.h5-contact__tel span {
  font-size: 12.5px;
  color: var(--text-dim);
}

.h5-contact__tel b {
  font-family: var(--font-mono);
  font-size: 19px;
  color: var(--blue-600);
  letter-spacing: -0.01em;
}

.h5-contact__info {
  font-size: 13px;
  line-height: 1.9;
  color: var(--text-mid);
  margin-bottom: 12px;
}

.h5-contact__info span {
  color: var(--text-dim);
}

.h5-contact__mail a {
  font-size: 13.5px;
  color: var(--blue-600);
  border-bottom: 1px solid rgba(37, 99, 235, 0.3);
  padding-bottom: 1px;
}

.h5-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 20px 26px;
  font-size: 11.5px;
  color: var(--text-dim);
  background: #f7fafd;
  border-top: 1px solid var(--line-soft);
}

.h5-foot a {
  color: var(--blue-600);
}

/* ---------- 底部固定条 ---------- */
.h5-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  max-width: 520px;
  margin: 0 auto;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--line-soft);
  box-shadow: 0 -6px 22px rgba(13, 42, 78, 0.06);
}

.h5-bar a,
.h5-bar button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 46px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.h5-bar svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.h5-bar__call {
  background: #fff;
  border-color: rgba(37, 99, 235, 0.28);
  color: var(--blue-600);
}

.h5-bar__share {
  background: linear-gradient(120deg, var(--blue-600), var(--blue-400));
  color: #fff;
  box-shadow: 0 5px 16px rgba(29, 78, 216, 0.26);
}

.h5-bar__call:active,
.h5-bar__share:active {
  transform: scale(0.98);
}

/* ---------- 分享引导 ---------- */
.share-tip {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(6, 18, 34, 0.72);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 24px;
  animation: tipIn 0.22s ease-out;
}

.share-tip[hidden] {
  display: none;
}

@keyframes tipIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.share-tip__arrow {
  align-self: flex-end;
  margin: 18px 14px 10px 0;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  animation: arrowFloat 1.4s ease-in-out infinite;
}

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

/* 非微信环境没有右上角「···」，不显示引导箭头 */
.share-tip:not(.is-wechat) .share-tip__arrow {
  display: none;
}

.share-tip:not(.is-wechat) .share-tip__box {
  margin-top: auto;
  margin-bottom: auto;
}

.share-tip__arrow svg {
  width: 22px;
  height: 22px;
  stroke: #fff;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.share-tip__box {
  width: 100%;
  max-width: 360px;
  margin-top: 26px;
  padding: 22px 20px;
  background: #fff;
  border-radius: 14px;
  text-align: center;
}

.share-tip__box b {
  display: block;
  font-size: 16px;
  color: var(--brand-900);
  margin-bottom: 8px;
}

.share-tip__box p {
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--text-lo);
  margin-bottom: 16px;
}

.share-tip__copy {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #f7fafd;
  border: 1px solid var(--line-soft);
  border-radius: 9px;
  text-align: left;
}

.share-tip__copy span {
  flex: 1;
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--text-mid);
  word-break: break-all;
}

.share-tip__copy button {
  flex-shrink: 0;
  padding: 7px 12px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--blue-600);
  background: #fff;
  border: 1px solid rgba(37, 99, 235, 0.24);
  border-radius: 7px;
  cursor: pointer;
}

/* 桌面端：居中展示，模拟手机 */
@media (min-width: 620px) {
  body.h5 {
    padding: 24px 0 96px;
    background: linear-gradient(160deg, #eef4fb, #e6eef8);
  }
  .h5-main {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 24px 70px rgba(13, 42, 78, 0.14);
  }
  .h5-top {
    top: 0;
    max-width: 520px;
    margin: 0 auto;
  }
  .h5-bar {
    position: fixed;
    left: 50%;
    bottom: 24px;
    width: 100%;
    max-width: 520px;
    margin: 0 0 0 -260px;
    border-radius: 12px;
    border: 1px solid var(--line-soft);
    box-shadow: 0 12px 34px rgba(13, 42, 78, 0.16);
  }
}