/* 广州海测 - 微站 PC 固定宽(1500) 手机端自适应 */

:root {
  --hc-design-width: 1500px;
  --hc-scale: 1;
  --hc-mobile-bar-h: 52px;
  --hc-accent: #0b6e99;
}

html.hc-mobile-on,
html.hc-mobile-on body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html.hc-mobile-on body {
  padding-top: var(--hc-mobile-bar-h);
}

/* 取消 PC 最小宽度限制 */
html.hc-mobile-on #mainContentWrapper,
html.hc-mobile-on #mainContentWrapper > div[style*="min-width"],
html.hc-mobile-on [style*="min-width: 1500px"],
html.hc-mobile-on [style*="min-width:1500px"] {
  min-width: 0 !important;
}

/* 画布等比缩放：保留绝对定位布局
 * 默认 transform（兼容 Zoom 无效的 Chromium/Electron）；
 * 仅当 JS 探测 zoom 真正可用时加 hc-use-zoom。
 */
html.hc-mobile-on #mainContentWrapper,
html.hc-mobile-on #all-icp-bottom {
  width: var(--hc-design-width) !important;
  max-width: none !important;
  margin-left: 0 !important;
  left: 0 !important;
  right: auto !important;
}

html.hc-mobile-on.hc-use-transform #mainContentWrapper,
html.hc-mobile-on.hc-use-transform #all-icp-bottom,
html.hc-mobile-on:not(.hc-use-zoom) #mainContentWrapper,
html.hc-mobile-on:not(.hc-use-zoom) #all-icp-bottom {
  transform: scale(var(--hc-scale)) !important;
  transform-origin: top left !important;
  -webkit-transform: scale(var(--hc-scale)) !important;
  -webkit-transform-origin: top left !important;
}

html.hc-mobile-on.hc-use-zoom #mainContentWrapper,
html.hc-mobile-on.hc-use-zoom #all-icp-bottom {
  transform: none !important;
  -webkit-transform: none !important;
}

html.hc-mobile-on #all-icp-bottom {
  box-sizing: border-box;
}

/* 右侧悬浮客服条：缩到角落，避免挡内容（只打外层 fixed 容器，避免双重缩放） */
html.hc-mobile-on [ctype="qqservice"].smartFixed,
html.hc-mobile-on .smartFixed[ctype="qqservice"],
html.hc-mobile-on .cbox,
html.hc-mobile-on .side-toolbar,
html.hc-mobile-on .smv-service-tool,
html.hc-mobile-on #onlineService,
html.hc-mobile-on .online-service,
html.hc-mobile-on .wz-toolbar,
html.hc-mobile-on .yibu-toolbar,
html.hc-mobile-on .fixed-ibox,
html.hc-mobile-on .side-ibox {
  right: 2px !important;
  bottom: 80px !important;
  left: auto !important;
  transform: scale(0.42) !important;
  transform-origin: right bottom !important;
  z-index: 2147482000 !important;
}

html.hc-mobile-on [ctype="qqservice"] .w-cs-text {
  display: none !important;
}

/* 内页 banner 文案在手机缩放后更易读 */
html.hc-mobile-on #smv_page_banner_title .editableContent,
html.hc-mobile-on .hc-page-banner__title .editableContent {
  font-size: 64px !important;
  line-height: 1.2 !important;
}

html.hc-mobile-on #smv_page_banner_desc .editableContent,
html.hc-mobile-on .hc-page-banner__desc .editableContent {
  font-size: 28px !important;
  line-height: 1.4 !important;
}

/* 图集/列表项在窄屏上减少卡片间距 */
html.hc-mobile-on .w-atlas-ul > li {
  margin-bottom: 24px !important;
}

/* 顶部固定栏（缩放外层，保证可点） */
.hc-m-bar {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--hc-mobile-bar-h);
  z-index: 2147483000;
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  box-sizing: border-box;
}

html.hc-mobile-on .hc-m-bar {
  display: flex;
}

.hc-m-bar__logo {
  display: flex;
  align-items: center;
  max-width: calc(100% - 96px);
  height: 36px;
  text-decoration: none;
}

.hc-m-bar__logo img {
  max-height: 36px;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.hc-m-bar__logo-text {
  color: #222;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hc-m-bar__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.hc-m-bar__lang,
.hc-m-bar__toggle {
  border: 0;
  background: #f3f5f7;
  color: #222;
  border-radius: 8px;
  height: 36px;
  min-width: 36px;
  padding: 0 10px;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.hc-m-bar__toggle {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0;
}

.hc-m-bar__toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: #222;
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

html.hc-m-nav-open .hc-m-bar__toggle span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
html.hc-m-nav-open .hc-m-bar__toggle span:nth-child(2) {
  opacity: 0;
}
html.hc-m-nav-open .hc-m-bar__toggle span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* 侧滑菜单 */
.hc-m-mask {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 2147483001;
}

html.hc-m-nav-open .hc-m-mask {
  display: block;
}

.hc-m-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(86vw, 320px);
  height: 100%;
  background: #fff;
  z-index: 2147483002;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  box-shadow: -8px 0 24px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  padding: calc(12px + env(safe-area-inset-top, 0px)) 0
    calc(16px + env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
}

html.hc-m-nav-open .hc-m-drawer {
  transform: translateX(0);
}

.hc-m-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 16px 12px;
  border-bottom: 1px solid #eee;
}

.hc-m-drawer__title {
  font-size: 16px;
  font-weight: 600;
  color: #111;
}

.hc-m-drawer__close {
  border: 0;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  width: 36px;
  height: 36px;
  color: #666;
  cursor: pointer;
}

.hc-m-nav {
  list-style: none;
  margin: 0;
  padding: 8px 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1;
}

.hc-m-nav > li {
  border-bottom: 1px solid #f2f2f2;
}

.hc-m-nav a {
  display: block;
  padding: 14px 18px;
  color: #222;
  text-decoration: none;
  font-size: 15px;
  line-height: 1.4;
}

.hc-m-nav a:active {
  background: #f5f8fa;
}

.hc-m-nav__parent {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0;
}

.hc-m-nav__parent > a {
  flex: 1;
}

.hc-m-nav__arrow {
  border: 0;
  background: transparent;
  width: 44px;
  height: 48px;
  color: #888;
  font-size: 18px;
  cursor: pointer;
}

.hc-m-nav__sub {
  list-style: none;
  margin: 0;
  padding: 0 0 8px;
  display: none;
  background: #fafbfc;
}

.hc-m-nav__sub.is-open {
  display: block;
}

.hc-m-nav__sub a {
  padding: 12px 18px 12px 28px;
  font-size: 14px;
  color: #444;
}

/* 手机端用自建顶栏，隐藏 PC 顶栏避免双重导航 */
html.hc-mobile-on .header,
html.hc-mobile-on #smv_Area0.header {
  display: none !important;
}

/* 手机端弱化 PC 悬浮二级菜单，避免挡住内容 */
html.hc-mobile-on #tab_tem_147_25 > .w-label-content {
  display: none !important;
}

html.hc-mobile-on .scd-maintenance-icon {
  left: 12px !important;
  bottom: 72px !important;
  transform: scale(0.9);
  transform-origin: left bottom;
}

/* 页脚在缩放后仍保持可读：放大触控区域 */
html.hc-mobile-on .footer a {
  -webkit-tap-highlight-color: rgba(11, 110, 153, 0.15);
}

html.hc-mobile-on .hc-site-footer .company-info-text,
html.hc-mobile-on .hc-site-footer .editableContent {
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* ========== 真正的流式手机布局（非整页缩放） ========== */
html.hc-m-flow {
  --hc-mobile-bar-h: 52px;
}

html.hc-m-flow body {
  padding-top: var(--hc-mobile-bar-h);
  background: #f5f6f8;
  overflow-x: hidden;
}

html.hc-m-flow #mainContentWrapper,
html.hc-m-flow #all-icp-bottom,
html.hc-m-flow .footer,
html.hc-m-flow .hc-site-footer,
html.hc-m-flow #smv_Area3,
html.hc-m-flow [ctype="qqservice"].smartFixed,
html.hc-m-flow .smartFixed[ctype="qqservice"],
html.hc-m-flow [ctype="qqservice"] {
  display: none !important;
}

html.hc-m-flow #hcMobileHome,
html.hc-m-flow #hcMobilePage {
  display: block !important;
}

#hcMobileHome[hidden],
#hcMobilePage[hidden] {
  display: none !important;
}

.hc-m-home,
.hc-m-page {
  display: none;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  box-sizing: border-box;
  padding-bottom: 24px;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #222;
}

.hc-m-hero {
  position: relative;
  overflow: hidden;
  background: #0b3a52;
}

.hc-m-hero__track {
  display: flex;
  width: 100%;
  overflow: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.hc-m-hero__slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  display: block;
  min-height: 42vw;
  max-height: 280px;
  height: 220px;
  background-size: cover;
  background-position: center;
  text-decoration: none;
  position: relative;
}

.hc-m-hero__mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.55));
  display: flex;
  align-items: flex-end;
  padding: 20px 16px;
  box-sizing: border-box;
}

.hc-m-hero__mask h2 {
  margin: 0;
  color: #fff;
  font-size: 22px;
  line-height: 1.35;
  font-weight: 700;
}

.hc-m-hero__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  display: flex;
  justify-content: center;
  gap: 6px;
  pointer-events: none;
}

.hc-m-hero__dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
}

.hc-m-hero__dots span.is-on {
  background: #fff;
}

.hc-m-section {
  padding: 22px 16px 8px;
}

.hc-m-section__head {
  margin-bottom: 14px;
}

.hc-m-section__head h2 {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 700;
  color: #111;
}

.hc-m-section__head p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #666;
}

.hc-m-detect__card {
  display: block;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 12px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.hc-m-detect__img {
  height: 140px;
  background-size: cover;
  background-position: center;
  background-color: #e8eef2;
}

.hc-m-detect__body {
  padding: 12px 14px 14px;
}

.hc-m-detect__body h3 {
  margin: 0 0 8px;
  font-size: 16px;
  color: #c1272d;
  font-weight: 700;
}

.hc-m-detect__body ul {
  margin: 0;
  padding-left: 18px;
  color: #555;
  font-size: 13px;
  line-height: 1.55;
}

.hc-m-detect__desc {
  margin: 0 0 8px;
  color: #555;
  font-size: 13px;
  line-height: 1.55;
}

.hc-m-detect__more {
  display: inline-block;
  margin-top: 6px;
  font-size: 13px;
  color: #c1272d;
  font-weight: 600;
}

.hc-m-about__text p {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.7;
  color: #444;
}

.hc-m-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 14px;
}

.hc-m-stats__item {
  border-radius: 12px;
  padding: 16px;
  color: #fff;
}

.hc-m-stats__item strong {
  display: block;
  font-size: 28px;
  line-height: 1.2;
  margin-bottom: 6px;
}

.hc-m-stats__item span {
  font-size: 13px;
  opacity: 0.95;
  line-height: 1.4;
}

.hc-m-stats__item--a {
  background: #c1272d;
}
.hc-m-stats__item--b {
  background: #e08a2e;
}
.hc-m-stats__item--c {
  background: #2a9d8f;
}

.hc-m-news {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.hc-m-section.hc-m-news .hc-m-news__card {
  margin-left: 0;
  margin-right: 0;
}

.hc-m-news__card {
  display: flex;
  gap: 12px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 12px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.hc-m-news__img {
  flex: 0 0 110px;
  width: 110px;
  min-height: 88px;
  background-size: cover;
  background-position: center;
  background-color: #dfe7ee;
}

.hc-m-news__body {
  flex: 1;
  padding: 10px 12px 10px 0;
  min-width: 0;
}

.hc-m-news__body h3 {
  margin: 0 0 6px;
  font-size: 15px;
  line-height: 1.4;
  font-weight: 600;
}

.hc-m-news__body p {
  margin: 0 0 6px;
  font-size: 12px;
  color: #666;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hc-m-news__body time {
  font-size: 12px;
  color: #999;
}

.hc-m-contact__info {
  background: #fff;
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 14px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.hc-m-contact__info p {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.5;
  color: #333;
}

.hc-m-contact__info p:last-child {
  margin-bottom: 0;
}

.hc-m-contact__info span {
  display: inline-block;
  min-width: 3em;
  color: #888;
  margin-right: 6px;
}

.hc-m-contact__info a {
  color: #0b6e99;
  text-decoration: none;
}

.hc-m-contact__people {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.hc-m-contact__card {
  display: flex;
  gap: 12px;
  align-items: center;
  background: #fff;
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.hc-m-contact__card-body {
  flex: 1;
  min-width: 0;
}

.hc-m-contact__card-body p {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.45;
  color: #333;
  word-break: break-word;
}

.hc-m-contact__card-body p:last-child {
  margin-bottom: 0;
}

.hc-m-contact__card-body span {
  display: inline-block;
  min-width: 3.2em;
  color: #888;
  margin-right: 6px;
}

.hc-m-contact__card-body a {
  color: #0b6e99;
  text-decoration: none;
}

.hc-m-contact__qr {
  flex: 0 0 88px;
  width: 88px;
  height: 88px;
  border-radius: 8px;
  overflow: hidden;
  background: #f3f5f7;
}

.hc-m-contact__qr img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hc-m-map {
  width: 100%;
  height: 220px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 14px;
  background: #e8eef2;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.hc-m-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.hc-m-form {
  background: #fff;
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  display: grid;
  gap: 10px;
}

.hc-m-form input,
.hc-m-form textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #dde2e8;
  border-radius: 8px;
  padding: 12px;
  font-size: 15px;
  outline: none;
  background: #fafbfc;
}

.hc-m-form input:focus,
.hc-m-form textarea:focus {
  border-color: #0b6e99;
  background: #fff;
}

.hc-m-form__captcha {
  display: flex;
  gap: 10px;
  align-items: center;
}

.hc-m-form__captcha input {
  flex: 1;
}

.hc-m-form__captcha img {
  height: 42px;
  border-radius: 6px;
  cursor: pointer;
  flex-shrink: 0;
}

.hc-m-form button {
  border: 0;
  border-radius: 8px;
  background: #c1272d;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  padding: 12px;
  cursor: pointer;
}

.hc-m-form__msg {
  margin: 0;
  font-size: 13px;
  color: #c1272d;
}

.hc-m-form__msg.is-ok {
  color: #2a9d8f;
}

.hc-m-foot {
  padding: 18px 16px 8px;
  text-align: center;
  color: #888;
  font-size: 12px;
  line-height: 1.6;
}

.hc-m-foot p {
  margin: 0 0 4px;
}

/* 内页通用流式卡片 */
.hc-m-page .hc-m-banner {
  min-height: 160px;
  padding: 36px 16px 24px;
  background-size: cover;
  background-position: center;
  color: #fff;
  position: relative;
}

.hc-m-page .hc-m-banner h1,
.hc-m-page .hc-m-banner p {
  position: relative;
  z-index: 1;
  margin: 0;
}

.hc-m-page .hc-m-banner h1 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", sans-serif;
}

.hc-m-page .hc-m-banner p {
  font-size: 14px;
  opacity: 0.95;
  line-height: 1.5;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", sans-serif;
}

.hc-m-page .hc-m-card {
  margin: 12px 16px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.hc-m-page .hc-m-card img {
  display: block;
  width: 100%;
  height: auto;
}

.hc-m-subnav {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: #fff;
  border-bottom: 1px solid #eee;
  scrollbar-width: none;
}

.hc-m-subnav::-webkit-scrollbar {
  display: none;
}

.hc-m-subnav__item {
  flex: 0 0 auto;
  padding: 8px 14px;
  border-radius: 999px;
  background: #f3f5f7;
  color: #333;
  text-decoration: none;
  font-size: 14px;
  white-space: nowrap;
}

.hc-m-subnav__item.is-on {
  background: #c1272d;
  color: #fff;
}

/* 合作客户 / 图集 logo 网格 */
.hc-m-partners__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.hc-m-partners__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #fff;
  border-radius: 12px;
  padding: 14px 10px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  min-height: 110px;
  box-sizing: border-box;
}

.hc-m-partners__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 64px;
}

.hc-m-partners__logo img {
  max-width: 100%;
  max-height: 64px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.hc-m-partners__name {
  font-size: 12px;
  line-height: 1.35;
  color: #555;
  text-align: center;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

.hc-m-partners__empty {
  margin: 0;
  padding: 28px 12px;
  text-align: center;
  color: #888;
  font-size: 14px;
  background: #fff;
  border-radius: 12px;
}

@media (min-width: 480px) {
  .hc-m-partners__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.hc-m-article__cover {
  height: 180px;
  margin: 0 16px 12px;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  background-color: #e8eef2;
}

.hc-m-article__body {
  background: #fff;
  margin: 0 16px;
  padding: 16px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  font-size: 15px;
  line-height: 1.75;
  color: #333;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.hc-m-article__body img {
  max-width: 100% !important;
  height: auto !important;
}

.hc-m-article__body p {
  margin: 0 0 12px;
}

.hc-m-article__body p:last-child {
  margin-bottom: 0;
}

.hc-m-newsdetail__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: -4px 16px 12px;
  font-size: 12px;
  color: #888;
}

.hc-m-newsdetail__pager {
  margin: 12px 16px 0;
  display: grid;
  gap: 10px;
}

.hc-m-newsdetail__link {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  color: #333;
  text-decoration: none;
}

.hc-m-newsdetail__link span {
  display: block;
  font-size: 12px;
  color: #888;
  margin-bottom: 4px;
}

.hc-m-newsdetail__link em {
  display: block;
  font-style: normal;
  font-size: 14px;
  line-height: 1.45;
  color: #1a1a1a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 平板偏窄时也启用（由 JS 控制 html.hc-mobile-on） */
@media (max-width: 1199px) {
  body {
    overflow-x: hidden;
  }
}

@media (min-width: 480px) {
  .hc-m-stats {
    grid-template-columns: repeat(3, 1fr);
  }
}
