/* 首页和内页共用的颜色、版心、导航和页脚。 */
html.pm-site {
  --ink: #142536;
  --muted: #526476;
  --navy: #101e2d;
  --steel: #1a344a;
  --orange: #f28a3d;
  --action: #ffab70;
  --accent-ink: #88471f;
  --line: #d6dfe4;
  --mist: #f2f5f6;
  --corner: .45rem;
  --arrow: polygon(0 44%, 77% 44%, 49% 15%, 58% 7%, 100% 50%, 58% 93%, 49% 85%, 77% 56%, 0 56%);
  --gutter: clamp(20px, 5.6vw, 96px);
  --measure: min(80rem, calc(100% - var(--gutter) - var(--gutter)));
  --edge: max(var(--gutter), calc((100% - 80rem) / 2));
  --header-row-height: 5rem;
  --bottom-bar-height: 0px;
  font-size: 100% !important;
}
.pm-site body {
  margin: 0;
  padding-top: 0;
  color: var(--ink);
  background: white;
  font: 400 1rem/1.65 "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  font-size: 1rem !important;
}
.home-width, .pm-site .x-header > .container-fluid, .pm-site .x-layout > .container-fluid,
.pm-site .x-footer > .container-fluid {
  width: var(--measure);
  max-width: none;
  margin-inline: auto;
  padding-inline: 0;
}
.pm-site :is(a, button, summary, [role="button"]):focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

/* 页头沿用后台品牌标识和导航。 */
.pm-site .x-header {
  position: relative;
  padding: 0;
  background: var(--navy);
  border-bottom: 1px solid #354859;
  line-height: normal;
}
.pm-site .x-header > .container-fluid {
  display: flex;
  align-items: center;
  min-height: var(--header-row-height);
  gap: clamp(16px, 2.6vw, 44px);
}
.pm-site .x-header > .container-fluid::before, .pm-site .x-header > .container-fluid::after,
.pm-site .x-menu::before, .pm-site .x-menu::after { display: none; }
.pm-site .x-logo {
  flex: 0 1 clamp(235px, 23vw, 330px);
  width: auto;
  margin: 0 auto 0 0;
  line-height: 1;
}
.pm-site .x-logo img { display: block; width: 100%; }
.pm-site .x-menu { order: 1; display: flex; gap: clamp(8px, 1.25vw, 24px); margin: 0; }
.pm-site .x-menu > li { float: none; margin: 0; }
.pm-site .x-menu > li > a {
  position: relative;
  padding: 0 .28rem;
  color: #e7edf2;
  font-size: 1rem;
  font-weight: 500;
  line-height: var(--header-row-height);
  white-space: nowrap;
}
.pm-site .x-menu > li:has(.x-sub-menu) > a::before {
  content: "";
  display: inline-block;
  float: right;
  width: .36rem;
  height: .36rem;
  margin: calc(var(--header-row-height) / 2 - .23rem) 0 0 .45rem;
  border: solid currentColor;
  border-width: 0 1px 1px 0;
  opacity: .75;
  transform: rotate(45deg);
}
.pm-site .x-menu > li > a::after {
  content: "";
  position: absolute;
  inset: auto .28rem .95rem;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s;
}
.pm-home .x-menu > li:first-child > a::after,
.pm-site .x-menu > li.active > a::after,
.pm-site .x-menu > li:is(:hover, :focus-within) > a::after { transform: scaleX(1); }
.pm-site .x-sub-menu {
  top: 100%;
  left: 50%;
  width: max-content;
  min-width: 9rem;
  padding: .45rem;
  border: 1px solid var(--line);
  border-top: 2px solid var(--orange);
  border-radius: 0 0 var(--corner) var(--corner);
  box-shadow: 0 .8rem 1.8rem #0c1f3629;
  transform: translate(-50%, 6px);
}
.pm-site .x-menu > li:is(:hover, :focus-within) > .x-sub-menu {
  display: block;
  visibility: visible;
  opacity: 1;
  transform: translate(-50%, 0);
}
.pm-site .x-sub-menu::after { display: none; }
.pm-site .x-sub-menu > li > a { text-align: left; padding: .65rem .9rem; border-radius: .25rem; color: var(--ink); }
.pm-site .x-sub-menu > li > a:is(:hover, :focus-visible, [aria-current="page"]) { color: var(--accent-ink); background: #fbf0e6; }
.pm-site .search-btn {
  order: 2;
  position: relative;
  flex: 0 0 2.5rem;
  height: 2.5rem;
  margin: 0;
  background: transparent;
  border: 1px solid #5b6976;
  border-radius: 50%;
  transition: border-color .2s, background-color .2s;
}
.pm-site .search-btn:is(:hover, :focus-visible) { border-color: var(--action); background: #253b4d; }
.pm-site .search-btn::before, .pm-site .search-btn::after {
  content: "";
  position: absolute;
}
.pm-site .search-btn::before {
  top: 10px;
  left: 10px;
  width: 13px;
  height: 13px;
  border: 1.6px solid white;
  border-radius: 50%;
}
.pm-site .search-btn::after {
  top: 24px;
  left: 22px;
  width: 7px;
  height: 1.6px;
  background: white;
  transform: rotate(45deg);
}
.pm-site .x-header-right {
  top: 100%;
  height: auto;
  padding: 1.5rem 0;
  background: #f9fbfc;
  box-shadow: 0 12px 25px #10203326;
}
.pm-site .x-header-right .container-fluid { width: var(--measure); padding: 0; }
.pm-site .x-header-right #formsearch { max-width: calc(100% - 6rem); margin: 0 auto; }
.pm-site .x-header-right #formsearch #keyword { border: 1px solid #80909e; border-radius: 2px; }

.pm-site .x-layout { border-top: 3px solid #385267; background: var(--navy); padding: clamp(2.75rem, 4.6vw, 4.75rem) 0; }
.pm-site .x-layout > .container-fluid > div {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.65fr) minmax(125px, .58fr);
  gap: 3.5%;
}
.pm-site .x-layout :is(.flx, .fnav, .fwem) { float: none; width: auto; padding: 0; margin: 0; }
.pm-site .x-layout-logo { margin-bottom: 1rem; }
.pm-site .x-layout-contact { width: 100%; max-width: 100%; margin-top: 0; overflow-wrap: anywhere; }
.pm-site .x-layout-menu { display: grid; grid-template-columns: repeat(4, 1fr); gap: .65rem; }
.pm-site .x-layout-menu::before, .pm-site .x-layout-menu::after { display: none; }
.pm-site .x-layout-menu dl { float: none; width: auto; }
.pm-site .x-layout-menu dt { margin-bottom: .65rem; padding-bottom: .65rem; border-bottom: 1px solid #364a5b; }
.pm-site .x-layout-menu dd a { padding-block: .1rem; }
.pm-site .x-layout-menu a:is(:hover, :focus-visible), .pm-site .x-footer > .container-fluid a:is(:hover, :focus-visible) { color: #ffbb86; }
.pm-site .x-footer { padding: 1.5rem 0; color: #b6c4cf; background: #0c1825; }
.pm-site .x-footer .x-region { line-height: 2; }
.pm-site .x-region a { display: inline-block; margin-right: .45rem; }
.pm-site .x-copyright { margin: .75rem 0 .3rem; }
.pm-site .kefu-fix .close_box { width: 32px; height: auto; }
.pm-site .kefu-fix .close_box img { width: 100%; }

/* 原生折叠面板让鼠标、键盘和触屏共用同一个咨询入口。 */
.pm-site .pm-consult { right: 0; top: 54%; }
.pm-consult__toggle {
  display: flex;
  align-items: center;
  gap: .48rem;
  padding: .8rem .65rem;
  border: 1px solid #637380;
  border-right: 0;
  border-radius: var(--corner) 0 0 var(--corner);
  color: white;
  background: var(--navy);
  box-shadow: 0 .25rem .9rem #10202b22;
  font-size: .85rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: .1em;
  writing-mode: vertical-rl;
  cursor: pointer;
}
.pm-consult__toggle::-webkit-details-marker { display: none; }
.pm-consult__toggle i { color: var(--action); font-size: 1.15rem; writing-mode: horizontal-tb; }
.pm-consult__toggle:is(:hover, :focus-visible), .pm-consult[open] .pm-consult__toggle { background: var(--steel); }
.pm-consult__close-label, .pm-consult[open] .pm-consult__open-label { display: none; }
.pm-consult[open] .pm-consult__close-label { display: inline; }
.pm-consult__panel {
  position: absolute;
  top: 50%;
  right: calc(100% + .5rem);
  width: 17rem;
  max-height: 85vh;
  overflow: auto;
  transform: translateY(-50%);
  border: 1px solid #d2dce2;
  border-radius: var(--corner);
  background: white;
  box-shadow: 0 .8rem 2.4rem #101e2d38;
}
.pm-consult__head { display: flex; align-items: center; gap: .9rem; padding: 1rem; color: white; background: var(--steel); }
.pm-consult__head img { width: 3.2rem; height: auto; }
.pm-consult__head h2 { margin: 0; font-size: 1.08rem; font-weight: 600; line-height: 1.5; }
.pm-consult__body { padding: 1rem; }
.pm-consult__services { display: flex; flex-wrap: wrap; gap: .32rem; }
.pm-consult__services a { flex: 1; padding: .38rem .2rem; border-radius: .2rem; color: var(--steel); background: var(--mist); text-align: center; font-size: .84rem; }
.pm-consult__services a:is(:hover, :focus-visible) { color: var(--accent-ink); background: #fff1e5; }
.pm-consult__contacts { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-block: 1rem; }
.pm-consult__hotline { display: grid; gap: .18rem; }
.pm-consult__hotline span, .pm-consult figcaption { color: var(--muted); font-size: .8rem; }
.pm-consult__hotline a { color: var(--ink); font: 600 1.08rem/1.55 Bahnschrift, Arial, sans-serif; }
.pm-consult__hotline a:is(:hover, :focus-visible) { text-decoration: underline; }
.pm-consult figure { margin: 0; text-align: center; }
.pm-consult figure img { display: block; width: 78px; height: 78px; }
.pm-consult .pm-consult__action {
  display: flex; align-items: center; justify-content: center; gap: .8rem;
  min-height: 44px; border-radius: .25rem; color: var(--ink); background: var(--action); font-size: .95rem; font-weight: 700;
}
.pm-consult .pm-consult__action:is(:hover, :focus-visible) { color: var(--ink); background: #ffc294; }
.pm-consult__action::after, .home-more::after, .home-hero__action::after, .home-hero__next::after {
  content: "";
  display: inline-block;
  flex: 0 0 auto;
  width: 1.05rem;
  height: 1.05rem;
  background: currentColor;
  clip-path: var(--arrow);
}

/* 手机页头、页脚及安全区。 */
@media (max-width: 991px) {
  html.pm-site { --header-row-height: 62px; }
  .pm-site .xymob-head { position: sticky; top: 0; background: var(--navy); border-bottom: 1px solid #364858; }
  .pm-site .xymob-head-box {
    width: var(--measure);
    margin-inline: auto;
    height: var(--header-row-height);
    display: flex;
    align-items: center;
    gap: .55rem;
  }
  .pm-site .xymob-head-box .xymob-logo { position: static; min-width: 0; width: auto; height: auto; margin: 0 auto 0 0; }
  .pm-site .xymob-logo a, .pm-site .xymob-logo img { display: block; }
  .pm-site .xymob-head-box .xymob-logo img { width: clamp(156px, 55vw, 255px); max-width: 100%; height: auto; }
  .pm-site .xymob-search-btn, .pm-site .xymob-navbtn {
    position: relative;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    margin: 0;
    cursor: pointer;
  }
  .pm-site .xymob-search-btn { order: 1; line-height: 44px; }
  .pm-site .xymob-navbtn { order: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; }
  .pm-site .xymob-navbtn span, .pm-site .xymob-navbtn::before, .pm-site .xymob-navbtn::after { width: 22px; }
  .pm-site .xymob-navbtn span { margin: 5px 0; }
  .pm-site .xymob-menu { height: auto; background: var(--navy); padding: 0 var(--gutter); }
  .pm-site .xymob-menu-box { height: auto; max-height: calc(100dvh - var(--header-row-height) - var(--bottom-bar-height)); padding-bottom: .7rem; overscroll-behavior: contain; }
  .pm-site .xymob-nav > li { border-color: #364858; }
  .pm-site .xymob-nav .xymob-sub-menu { background: #1b3043; }
  .pm-site .xymob-sub-menu > li { border: 0; }
  .pm-site .xymob-nav li.active > a, .pm-site .xymob-nav a[aria-current="page"] { color: var(--action); }
  .pm-site .xymob-search { visibility: hidden; background: var(--navy); }
  .pm-site .xymob-search.clicked { visibility: visible; }
  .pm-site .xymob-search .xymob-search-box { border-color: #718798; }
  .pm-site .xymob-search-box:focus-within { border-color: var(--action); }
  .pm-site .xymob-search .xymob-search-box input { color: white; }
  .pm-site .xymob-search-box input::placeholder { color: #b7c7d3; }
  .pm-site .x-layout > .container-fluid > div { grid-template-columns: 1fr 1.2fr; gap: 1.6rem; }
  .pm-site .x-layout { display: block; }
  .pm-site .x-layout .fwem { max-width: 180px; }
}

@media (max-width: 680px) {
  .pm-site .x-layout { padding: 2rem 0; }
  .pm-site .x-layout > .container-fluid > div { grid-template-columns: 1fr; }
  .pm-site .x-layout-logo img { width: min(250px, 83%); }
}
@media (max-width: 767px) {
  html.pm-site {
    --bottom-bar-row-height: 51px;
    --bottom-bar-height: calc(var(--bottom-bar-row-height) + 1px + env(safe-area-inset-bottom));
  }
  .pm-site .x-layout > .container-fluid > div { grid-template-columns: 1fr; }
  .pm-site body { padding-bottom: var(--bottom-bar-height); }
  .pm-site .footer3 { background: var(--navy); padding-bottom: env(safe-area-inset-bottom); border-top: 1px solid #3b4c5c; }
  .pm-site .footer3 li a { display: grid; place-content: center; gap: .2rem; height: var(--bottom-bar-row-height); line-height: 1; }
  .pm-site .footer3 li + li { border-left: 1px solid #2c4050; }
  .pm-site .footer3 li .iconfont { margin: 0; font-size: 1.1rem; }
  .pm-site .footer3 li span { font-size: .77rem; }
  .pm-home .footer3 li:first-child :is(.iconfont, span),
  .pm-site .footer3 a[aria-current] :is(.iconfont, span) { color: var(--action); }
}
@media (prefers-reduced-motion: reduce) {
  .pm-site *, .pm-site *::before, .pm-site *::after { scroll-behavior: auto; transition-duration: 0s !important; }
}
