/* ==========================================================================
   AntCMS - Web_1 主题全局基础样式 (base.css)
   包含：全局重置、CSS变量、门楣Masthead、主导航栏、下拉菜单、移动端抽屉导航、
         通用Section与栅格容器、底部Footer、返回顶部按钮等
   ========================================================================== */

:root {
  --brand: #0f62fe;
  --brand-hover: #0b4ec7;
  --dark: #0b1220;
  --text: #101828;
  --muted: #667085;
  --line: #e4e7ec;
  --soft: #f7f9fc;
  --card: #ffffff;
  --ok: #12b76a;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding-top: 136px !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: #ffffff;
  line-height: 1.65;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease;
}

button {
  font: inherit;
}

.container {
  width: min(1220px, 92%);
  margin: auto;
}

/* ===== 通用按钮与组件 ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.btn-primary {
  background: var(--brand);
  color: #fff !important;
}

.btn-primary:hover {
  background: var(--brand-hover);
}

.btn-secondary {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
}

.btn-secondary:hover {
  background: var(--soft);
}

.more {
  display: inline-block;
  color: var(--brand);
  font-size: 13px;
  font-weight: 800;
  transition: transform 0.2s;
}

.more:hover {
  text-decoration: underline;
}

/* ===== 通用区块 (Section) ===== */
.section {
  padding: 68px 0;
}

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

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 26px;
}

.section-head small {
  display: block;
  color: var(--brand);
  font-weight: 900;
  letter-spacing: 1.2px;
}

.section-head h2 {
  font-size: 34px;
  line-height: 1.18;
  margin: 5px 0 0;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  max-width: 650px;
}

/* ===== 面包屑导航 ===== */
.breadcrumb {
  font-size: 13px;
  color: var(--muted);
  padding: 20px 0;
}

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

.breadcrumb .crumb-sep {
  margin: 0 6px;
  color: #cbd5e1;
}

.breadcrumb .crumb-cur {
  color: var(--text);
  font-weight: 600;
}

/* ===== 顶部固定头部 (Header & Masthead & Nav) ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5000;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* 顶部门楣 (Masthead) */
.site-masthead {
  height: 76px;
  border-bottom: 1px solid #eef2f6;
  background: #fff;
}

.site-masthead-inner {
  width: min(1220px, 92%);
  height: 100%;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 15px;
  min-width: 0;
  text-decoration: none;
  color: #101828;
}

.site-brand-logo {
  height: 46px;
  max-width: 180px;
  object-fit: contain;
}

.site-brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(145deg, #0f62fe, #1649a7);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 18px;
  flex: 0 0 46px;
}

.site-brand-copy {
  min-width: 0;
}

.site-brand-copy strong {
  display: block;
  font-size: 22px;
  line-height: 1.15;
}

.site-brand-copy span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: #667085;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-hotline {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  color: #101828;
  text-decoration: none;
}

.site-hotline-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #eef4ff;
  color: #0f62fe;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.site-hotline small {
  display: block;
  color: #98a2b3;
  font-size: 11px;
}

.site-hotline strong {
  display: block;
  font-size: 19px;
  line-height: 1.2;
  letter-spacing: 0.3px;
}

/* 主导航栏 (Navbar) */
.site-navbar {
  height: 60px;
  border-bottom: 1px solid #e4e7ec;
  background: #fff;
}

.site-nav {
  width: min(1220px, 92%);
  height: 60px;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-mobile-logo {
  display: none;
  font-size: 21px;
  font-weight: 900;
  color: #101828;
  text-decoration: none;
}

.site-mobile-logo span {
  color: #0f62fe;
}

.site-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: #344054;
}

.site-menu-item {
  position: relative;
  height: 60px;
  display: flex;
  align-items: center;
}

.site-menu-link {
  height: 60px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 12px;
  border-radius: 8px;
  white-space: nowrap;
  color: #344054;
  text-decoration: none;
  transition: color 0.18s, background-color 0.18s;
}

.site-menu-link .site-arrow {
  font-size: 10px;
  color: #98a2b3;
  transition: transform 0.2s;
}

.site-menu-item:hover > .site-menu-link,
.site-menu-item.active > .site-menu-link {
  color: #0f62fe;
  background: #f8fbff;
}

.site-menu-item:hover > .site-menu-link .site-arrow {
  transform: rotate(180deg);
  color: #0f62fe;
}

.site-nav-cta {
  padding: 9px 15px;
  border-radius: 9px;
  background: #0f62fe;
  color: #fff !important;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  margin-left: auto;
  transition: background-color 0.2s;
}

.site-nav-cta:hover {
  background: #0b4ec7;
}

/* 下拉菜单 (Dropdown & Mega Dropdown) */
.site-dropdown {
  position: absolute;
  left: 0;
  top: calc(100% - 2px);
  min-width: 230px;
  padding: 10px;
  background: #fff;
  border: 1px solid #e4e7ec;
  border-radius: 14px;
  box-shadow: 0 18px 38px rgba(16, 24, 40, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
  z-index: 5100;
}

.site-menu-item:hover > .site-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.site-dropdown a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 10px 11px;
  border-radius: 9px;
  font-size: 13px;
  color: #475467;
  text-decoration: none;
  transition: background-color 0.15s, color 0.15s;
}

.site-dropdown a:hover {
  background: #f7faff;
  color: #0f62fe;
}

.site-dropdown a:after {
  content: "›";
  color: #98a2b3;
}

.site-dropdown .site-group-title {
  padding: 8px 11px 6px;
  color: #98a2b3;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.site-dropdown.site-mega {
  width: 540px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
}

.site-mobile-call,
.site-mobile-menu {
  display: none;
}

/* ===== 移动端抽屉与遮罩 ===== */
.site-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 5190;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
}

.site-overlay.open {
  opacity: 1;
  visibility: visible;
}

.site-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(78vw, 350px);
  background: #fff;
  z-index: 5200;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  box-shadow: -18px 0 40px rgba(16, 24, 40, 0.14);
  overflow-y: auto;
}

.site-drawer.open {
  transform: translateX(0);
}

.site-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid #e4e7ec;
}

.site-drawer-head strong {
  font-size: 18px;
}

.site-drawer-head button {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: #f2f4f7;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-drawer-hotline {
  margin: 14px 16px 0;
  padding: 14px 15px;
  border-radius: 14px;
  background: #eef4ff;
  color: #0f62fe;
  font-weight: 900;
  display: block;
  text-decoration: none;
}

.site-mobile-nav {
  padding: 8px 16px 24px;
}

.site-mobile-nav > a {
  display: block;
  padding: 14px 2px;
  border-bottom: 1px solid #eef2f6;
  font-weight: 800;
  color: #101828;
  text-decoration: none;
}

.site-mobile-nav details {
  border-bottom: 1px solid #eef2f6;
}

.site-mobile-nav summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 2px;
  font-weight: 800;
  cursor: pointer;
  color: #101828;
}

.site-mobile-nav summary::-webkit-details-marker {
  display: none;
}

.site-mobile-nav summary:after {
  content: "+";
  color: #98a2b3;
  font-size: 18px;
}

.site-mobile-nav details[open] summary:after {
  content: "－";
}

.site-mobile-sub {
  padding: 0 0 10px 10px;
  display: grid;
  gap: 4px;
}

.site-mobile-sub a {
  display: block;
  padding: 9px 10px;
  border-radius: 9px;
  color: #475467;
  font-size: 13px;
  background: #f8fafc;
  text-decoration: none;
}

.site-mobile-sub a:hover {
  color: #0f62fe;
  background: #f3f7ff;
}

/* ===== 底部咨询转化条 (Bottom CTA) ===== */
.bottom-cta {
  margin: 0 auto 68px;
  background: linear-gradient(135deg, #0f62fe, #1649a7);
  color: #fff;
  border-radius: 24px;
  padding: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.bottom-cta h2 {
  font-size: 30px;
  margin: 0 0 6px;
}

.bottom-cta p {
  margin: 0;
  color: #dbe7ff;
}

/* ===== 底部页脚 (Footer) ===== */
footer {
  background: #090f1d;
  color: #94a3b8;
  position: relative;
}

/* 顶部服务信任保障条 (Trust Bar) */
.footer-trust {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.015);
  padding: 22px 0;
}

.footer-trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.trust-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(15, 98, 254, 0.12);
  border: 1px solid rgba(15, 98, 254, 0.25);
  color: #38bdf8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  flex-shrink: 0;
}

.trust-text strong {
  display: block;
  color: #f1f5f9;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
}

.trust-text span {
  display: block;
  color: #64748b;
  font-size: 12px;
  margin-top: 3px;
}

/* 4 栏黄金比例主体网格 */
.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 1.15fr 0.95fr 1.35fr;
  gap: 36px;
  padding: 46px 0 34px;
}

.footer-brand h3 {
  font-size: 19px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 10px;
  letter-spacing: 0.5px;
}

.footer-brand-desc {
  font-size: 13px;
  line-height: 1.65;
  color: #8da2bb;
  margin: 0 0 16px;
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 13px;
  color: #94a3b8;
}

.f-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.45;
}

.f-contact-item i {
  color: #38bdf8;
  font-size: 13px;
  margin-top: 3px;
  flex-shrink: 0;
}

.f-contact-item a {
  color: #cbd5e1;
  transition: color 0.15s;
}

.f-contact-item a:hover {
  color: #38bdf8;
}

.footer-col h4 {
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  margin: 0 0 16px;
  position: relative;
  padding-bottom: 8px;
}

.footer-col h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 22px;
  height: 2px;
  background: var(--brand, #0f62fe);
  border-radius: 2px;
}

/* 设备专题双列展示 */
.footer-subgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px 12px;
}

.footer-subgrid a,
.footer-link-list a {
  display: block;
  font-size: 13px;
  color: #94a3b8;
  transition: all 0.15s ease;
  line-height: 1.45;
}

.footer-link-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-subgrid a:hover,
.footer-link-list a:hover {
  color: #fff;
  transform: translateX(3px);
}

/* 快速选型联络中心 */
.footer-contact-col {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 22px 20px;
}

.footer-contact-col h4 {
  margin-bottom: 14px;
}

.footer-hotline {
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-hotline small {
  display: block;
  font-size: 11px;
  color: #8da2bb;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-hotline .phone-link {
  display: inline-block;
  font-size: 22px;
  font-weight: 900;
  color: #38bdf8;
  line-height: 1.2;
  margin: 4px 0 6px;
  letter-spacing: 0.5px;
  transition: color 0.15s;
}

.footer-hotline .phone-link:hover {
  color: #7dd3fc;
}

.footer-hotline .mobile-sub {
  font-size: 12px;
  color: #94a3b8;
}

.footer-hotline .mobile-sub strong {
  color: #e2e8f0;
}

.footer-qr-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 12px 14px;
}

.qr-visual {
  width: 108px;
  height: 108px;
  flex-shrink: 0;
  border-radius: 10px;
  background: #ffffff;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
  cursor: pointer;
  position: relative;
}

.qr-visual:hover {
  transform: scale(1.22);
  box-shadow: 0 10px 30px rgba(15, 98, 254, 0.5);
  z-index: 10;
}

.qr-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
  display: block;
}

.qr-placeholder {
  width: 100%;
  height: 100%;
  background: #0f172a;
  color: #38bdf8;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  gap: 4px;
}

.qr-placeholder span {
  font-size: 11px;
  color: #cbd5e1;
}

.qr-text strong {
  display: block;
  color: #f1f5f9;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
}

.qr-text p {
  margin: 0;
  font-size: 12px;
  color: #8da2bb;
  line-height: 1.5;
}

/* 友情链接与版权 */
.friend {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 14px 0;
  font-size: 13px;
}

.friend strong {
  color: #cbd5e1;
}

.friend a {
  margin-right: 14px;
  color: #8da2bb;
  transition: color 0.15s;
}

.friend a:hover {
  color: #38bdf8;
}

.copy {
  padding: 18px 0;
  font-size: 12px;
  color: #64748b;
}

.copy-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.copy .sep {
  color: #334155;
}

.copy a {
  color: #64748b;
  transition: color 0.15s;
}

.copy a:hover {
  color: #94a3b8;
}

.footer-mobile {
  display: none;
}

.facc {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.facc button {
  width: 100%;
  border: 0;
  background: none;
  color: #fff;
  padding: 14px 0;
  display: flex;
  justify-content: space-between;
  font-weight: 800;
  cursor: pointer;
}

.facc-links {
  display: none;
  padding-bottom: 10px;
}

.facc.open .facc-links {
  display: block;
}

.facc-links a {
  display: block;
  font-size: 13px;
  padding: 5px 0;
  color: #95a1b2;
}

/* ===== 返回顶部按钮 (Back to Top) ===== */
.back-top {
  position: fixed;
  right: 26px;
  bottom: 28px;
  z-index: 850;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
  box-shadow: 0 10px 30px rgba(16, 24, 40, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 900;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.back-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-top:hover {
  color: var(--brand);
  border-color: #bfd4ff;
}

/* ===== 基础响应式适配 ===== */
@media (max-width: 1000px) {
  body {
    padding-top: 60px !important;
  }
  .site-masthead {
    display: none;
  }
  .site-navbar,
  .site-nav {
    height: 60px;
  }
  .site-nav {
    justify-content: flex-end;
  }
  .site-mobile-logo {
    display: block;
    margin-right: auto;
  }
  .site-menu {
    display: none;
  }
  .site-mobile-call {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 11px;
    background: #eef4ff;
    color: #0f62fe;
    font-size: 18px;
    text-decoration: none;
  }
  .site-mobile-menu {
    display: block;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 11px;
    background: #f2f4f7;
    font-size: 21px;
    cursor: pointer;
  }
  .footer-trust-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
  .back-top {
    display: none;
  }
}

@media (max-width: 720px) {
  html,
  body {
    overflow-x: hidden;
  }
  .container {
    width: calc(100% - 28px);
  }
  .nav {
    height: 60px;
  }
  body {
    padding-top: 60px;
  }
  .breadcrumb {
    padding: 14px 0;
  }
  .section {
    padding: 50px 0;
  }
  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .section-head h2 {
    font-size: 27px;
  }
  .bottom-cta {
    margin-bottom: 52px;
    padding: 26px 22px;
    align-items: flex-start;
    flex-direction: column;
  }
  .bottom-cta h2 {
    font-size: 25px;
  }
  .footer-grid,
  .friend {
    display: none;
  }
  .footer-mobile {
    display: block;
    padding: 26px 0;
  }
}

@media (max-width: 380px) {
  .site-drawer {
    width: 82vw;
  }
}
