/* Mabunex — common layout (header, buttons, footer, float menu) */
:root {
  --bg: #ffffff;
  --bg-subtle: #f8f9fa;
  --bg-muted: #f0f2f5;
  --text: #191919;
  --text-secondary: #595959;
  --text-tertiary: #8c8c8c;
  --border: #e2e5ea;
  --border-light: #edf0f4;
  --accent: #1677ff;
  --accent-hover: #0958d9;
  --accent-soft: rgba(22, 119, 255, 0.12);
  --focus: #1890ff;
  --header-h: 60px;
  --radius-card: 14px;
  --shadow-card: 0 4px 28px rgba(15, 23, 42, 0.07);
  --shadow-hover: 0 12px 40px rgba(15, 23, 42, 0.09);
  --content-max: 1120px;
  --section-pad: clamp(3rem, 7vw, 4.5rem);
  --section-y: clamp(3rem, 7vw, 4.5rem);
  --article-max: 960px;
  --font-title-section: clamp(1.75rem, 3.4vw, 2.5rem);
  --font-lead: clamp(1rem, 1.4vw, 1.125rem);
}


*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: calc(var(--header-h) + 16px); }
body {
  font-family: "Noto Sans SC", -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.btn:focus-visible,
.nav-burger:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    html { scroll-behavior: smooth; }
    section[id] { scroll-margin-top: calc(var(--header-h) + 16px); }
    a { color: inherit; text-decoration: none; }
    a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, .btn:focus-visible, .nav-burger:focus-visible {
      outline: 2px solid var(--focus);
      outline-offset: 2px;
    }

    .header {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      z-index: 100;
      height: var(--header-h);
      background: rgba(255, 255, 255, 0.96);
      backdrop-filter: blur(8px);
      border-bottom: 1px solid var(--border-light);
    }
    .header-inner {
      max-width: 1320px;
      margin: 0 auto;
      padding: 0 24px;
      height: 100%;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 24px;
    }
    .logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
    .logo-mark { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
    .logo-mark img { width: 100%; height: 100%; object-fit: contain; display: block; }
    .logo-text { font-size: 18px; font-weight: 700; letter-spacing: 0.02em; color: var(--text); }
    .nav-menu-checkbox {
      position: absolute;
      width: 1px;
      height: 1px;
      margin: -1px;
      padding: 0;
      border: 0;
      clip: rect(0, 0, 0, 0);
      overflow: hidden;
    }
    .nav-burger {
      display: none;
      flex-direction: column;
      justify-content: center;
      gap: 5px;
      width: 40px;
      height: 40px;
      padding: 10px;
      border: 1px solid var(--border);
      border-radius: 4px;
      background: var(--bg);
      cursor: pointer;
    }
    .nav-burger span { display: block; height: 2px; background: var(--text); border-radius: 1px; }
    .nav-main { display: flex; align-items: center; gap: 28px; }
    .nav-main a {
      font-size: 15px;
      color: var(--text-secondary);
      transition: color 0.2s;
      white-space: nowrap;
      position: relative;
    }
    .nav-main a:hover { color: var(--accent); }
    .nav-main a.nav-has-hot { padding-right: 2px; }
    .nav-main a .nav-hot {
      position: absolute;
      top: -6px;
      right: -16px;
      padding: 1px 4px;
      font-size: 9px;
      font-weight: 700;
      line-height: 1.25;
      letter-spacing: 0.03em;
      color: #fff;
      background: linear-gradient(135deg, #ff4d4f, #ff7875);
      border-radius: 3px 3px 3px 0;
      box-shadow: 0 1px 4px rgba(255, 77, 79, 0.35);
      pointer-events: none;
    }
    .nav-main a.is-current, .nav-main a[aria-current="page"] { color: var(--text); font-weight: 600; }
    .nav-main a.is-current::after, .nav-main a[aria-current="page"]::after {
      content: "";
      position: absolute;
      left: 0;
      right: 0;
      bottom: -1.05rem;
      height: 2px;
      border-radius: 2px;
      background: linear-gradient(90deg, var(--accent), rgba(22, 119, 255, 0.26));
      box-shadow: 0 0 12px rgba(22, 119, 255, 0.101);
    }
    
    @media (prefers-reduced-motion: no-preference) {
      .nav-main a.is-current::after,
      .nav-main a[aria-current="page"]::after {
        animation: nav-active-line 3.2s ease-in-out infinite;
      }
    }

    @keyframes nav-active-line {
      0%, 100% { opacity: 1; box-shadow: 0 0 14px rgba(22, 119, 255, 0.101); }
      50% { opacity: 0.88; box-shadow: 0 0 18px rgba(22, 119, 255, 0.13); }
    }

    .header-right {
      display: flex;
      align-items: center;
      gap: 20px;
      flex-shrink: 0;
    }

    .header-phone { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--text-secondary); text-decoration: none; white-space: nowrap; }
    .header-phone svg { width: 15px; height: 15px; color: var(--accent); flex-shrink: 0; }
    .header-phone:hover { color: var(--accent); }
    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      padding: 10px 22px;
      font-size: 14px;
      font-weight: 600;
      border-radius: 4px;
      border: none;
      cursor: pointer;
      font-family: inherit;
      transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
    }
    .btn-primary { background: var(--accent); color: #fff; }
    .btn-primary:hover { background: var(--accent-hover); }
    .btn-secondary {
      background: var(--bg);
      color: var(--text);
      border: 1px solid var(--border);
    }
    .btn-secondary:hover { border-color: #b4bac4; color: var(--accent); }
    .btn-ghost {
      background: transparent;
      color: var(--accent);
      padding: 8px 0;
      font-weight: 600;
      font-size: 14px;
      gap: 6px;
    }
    .btn-ghost:hover { color: var(--accent-hover); }
    .btn-ghost svg { width: 1rem; height: 1rem; flex-shrink: 0; }
    .btn-lg { padding: 14px 28px; font-size: 15px; }

    @media (max-width: 1024px) {
      .header {
        height: auto;
        min-height: var(--header-h);
        background: #fff;
        backdrop-filter: none;
      }
      .header-inner {
        flex-wrap: wrap;
        height: auto;
        min-height: var(--header-h);
      }
      .nav-burger { display: flex; order: 2; }
      .header-right { order: 3; }
      .logo { flex: 1; min-width: 0; }
      .nav-main {
        order: 10;
        flex-basis: 100%;
        width: 100%;
        display: none;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 12px 0 20px;
        border-top: 1px solid var(--border-light);
      }
      .nav-main a { padding: 12px 0; width: 100%; border-bottom: 1px solid var(--border-light); }
      .nav-main a .nav-hot {
        position: static;
        display: inline-block;
        margin-left: 6px;
        vertical-align: middle;
        border-radius: 3px;
      }
      .nav-main a.is-current::after, .nav-main a[aria-current="page"]::after { display: none; }
      .nav-main a.is-current, .nav-main a[aria-current="page"] {
        padding-left: 12px;
        border-left: 3px solid var(--accent);
        color: var(--accent);
        background: linear-gradient(90deg, rgba(22, 119, 255, 0.10), transparent 72%);
      }
      .nav-menu-checkbox:checked ~ .nav-main { display: flex; }
      .header-phone { display: none; }
    }

/* Footer & float menu */
.footer {
      --footer-navy: #001b3a;
      --footer-muted: rgba(255, 255, 255, 0.72);
      background: var(--footer-navy);
      color: var(--footer-muted);
      padding: clamp(3rem, 6vw, 4.25rem) 24px 1.75rem;
      position: relative;
    }

    .footer-grid {
      max-width: 1200px;
      margin: 0 auto;
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: clamp(2rem, 4vw, 3.25rem);
    }

    @media (max-width: 900px) {
      .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    }

    @media (max-width: 560px) {
      .footer-grid { grid-template-columns: 1fr; }
    }

    .footer-heading {
      font-size: 0.9375rem;
      font-weight: 700;
      color: #fff;
      margin: 0 0 1.2rem;
      letter-spacing: 0.02em;
    }

    .footer-links {
      list-style: none;
      margin: 0;
      padding: 0;
    }

    .footer-links li { margin-bottom: 0.72rem; }
    .footer-links li:last-child { margin-bottom: 0; }

    .footer-links a {
      font-size: 0.875rem;
      color: var(--footer-muted);
      transition: color 0.2s;
    }

    .footer-links a:hover { color: #fff; }

    .footer-contact {
      list-style: none;
      margin: 0;
      padding: 0;
    }

    .footer-contact li { margin-bottom: 1rem; }
    .footer-contact li:last-child { margin-bottom: 0; }

    .footer-label {
      display: block;
      font-size: 0.75rem;
      color: rgba(255, 255, 255, 0.48);
      margin-bottom: 0.32rem;
      letter-spacing: 0.04em;
    }

    a.footer-value {
      font-size: 0.9375rem;
      font-weight: 500;
      color: #fff;
      text-decoration: none;
    }

    a.footer-value:hover { opacity: 0.88; }
    .footer-address {
      display: block;
      font-size: 0.875rem;
      font-weight: 500;
      color: rgba(255, 255, 255, 0.88);
      line-height: 1.55;
      max-width: 18rem;
    }

    .footer-block-qr .footer-heading { margin-bottom: 1rem; }

    .footer-qr-row {
      display: flex;
      gap: 1.1rem;
      justify-content: flex-start;
      flex-wrap: wrap;
    }

    .footer-qr-item {
      text-align: center;
      flex: 0 0 auto;
    }

    .footer-qr-placeholder {
      width: 88px;
      height: 88px;
      margin: 0 auto 0.45rem;
      border-radius: 6px;
      border: 1px solid rgba(255, 255, 255, 0.18);
      background-color: #f4f6f9;
      background-image:
        linear-gradient(90deg, rgba(0, 0, 0, 0.06) 1px, transparent 1px),
        linear-gradient(rgba(0, 0, 0, 0.06) 1px, transparent 1px);
      background-size: 8px 8px;
    }



    .footer-qr-image {
      width: 88px;
      height: 88px;
      margin: 0 auto 0.45rem;
      border-radius: 6px;
      border: 1px solid rgba(255, 255, 255, 0.18);
      background: #fff;
      object-fit: cover;
      display: block;
    }
    .footer-qr-caption {
      display: block;
      font-size: 0.6875rem;
      color: rgba(255, 255, 255, 0.62);
      line-height: 1.35;
      max-width: 96px;
      margin: 0 auto;
    }

    .footer-bar {
      max-width: 1200px;
      margin: 0 auto;
      padding-top: 1.65rem;
      margin-top: clamp(2rem, 4vw, 2.65rem);
      border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .footer-bar-inner {
      margin: 0;
      font-size: 0.75rem;
      color: rgba(255, 255, 255, 0.42);
      text-align: center;
      line-height: 1.75;
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      align-items: center;
      gap: 0.35rem 0.65rem;
    }

    .footer-bar-inner .footer-icp {
      color: rgba(255, 255, 255, 0.5);
      text-decoration: none;
    }

    .footer-bar-inner .footer-icp:hover { color: #fff; }
    .mb-float-menu {
      position: fixed;
      right: clamp(12px, 2vw, 26px);
      top: 50%;
      transform: translateY(-50%);
      z-index: 120;
      display: grid;
      gap: 12px;
    }
    .mb-float-item {
      width: 88px;
      min-height: 88px;
      border-radius: 18px;
      border: 1px solid rgba(255, 255, 255, 0.6);
      background: linear-gradient(165deg, rgba(255, 255, 255, 0.94) 0%, rgba(247, 250, 255, 0.92) 100%);
      box-shadow: 0 16px 34px rgba(15, 23, 42, 0.18), 0 1px 0 rgba(255, 255, 255, 0.8) inset;
      color: #596174;
      display: grid;
      justify-items: center;
      align-content: center;
      gap: 6px;
      cursor: pointer;
      transition: transform 0.22s, box-shadow 0.22s, color 0.22s, border-color 0.22s;
      position: relative;
      padding: 8px 6px;
      text-align: center;
      font-family: inherit;
    }
    .mb-float-item:hover {
      transform: translateY(-3px);
      color: #0958d9;
      border-color: rgba(22, 119, 255, 0.35);
      box-shadow: 0 20px 38px rgba(15, 23, 42, 0.22), 0 1px 0 rgba(255, 255, 255, 0.9) inset;
    }
    .mb-float-item svg { width: 30px; height: 30px; }
    .mb-float-item span { font-size: 13px; font-weight: 600; letter-spacing: 0.01em; line-height: 1.25; }
    .mb-service-panel {
      position: absolute;
      right: calc(100% + 14px);
      top: 50%;
      transform: translateY(-50%) translateX(6px);
      width: 210px;
      border-radius: 16px;
      border: 1px solid rgba(15, 23, 42, 0.12);
      background: #fff;
      box-shadow: 0 20px 40px rgba(15, 23, 42, 0.22);
      padding: 12px;
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
      transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
    }
    .mb-service-panel::after {
      content: "";
      position: absolute;
      right: -7px;
      top: 50%;
      transform: translateY(-50%) rotate(-45deg);
      width: 14px;
      height: 14px;
      background: #fff;
      border-right: 1px solid rgba(15, 23, 42, 0.12);
      border-bottom: 1px solid rgba(15, 23, 42, 0.12);
    }
    .mb-service-trigger:hover .mb-service-panel,
    .mb-service-trigger.is-open .mb-service-panel {
      opacity: 1;
      visibility: visible;
      pointer-events: auto;
      transform: translateY(-50%) translateX(0);
    }
    .mb-service-qr {
      display: block;
      width: 100%;
      height: auto;
      border-radius: 10px;
      border: 1px solid #eef1f6;
      background: #fff;
      margin-bottom: 8px;
    }
    .mb-service-panel p { margin: 0; font-size: 12px; line-height: 1.5; color: #616a7a; text-align: center; }
    .mb-hotline-trigger { position: relative; }
    .mb-hotline-drawer {
      position: absolute;
      right: calc(100% + 14px);
      top: 50%;
      transform: translateY(-50%) translateX(6px);
      min-width: 154px;
      border-radius: 14px;
      border: 1px solid rgba(15, 23, 42, 0.12);
      background: #fff;
      box-shadow: 0 16px 36px rgba(15, 23, 42, 0.2);
      padding: 10px 12px;
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
      transition: opacity .2s, transform .2s, visibility .2s;
    }
    .mb-hotline-drawer::after {
      content: "";
      position: absolute;
      right: -7px;
      top: 50%;
      transform: translateY(-50%) rotate(-45deg);
      width: 14px;
      height: 14px;
      background: #fff;
      border-right: 1px solid rgba(15, 23, 42, 0.12);
      border-bottom: 1px solid rgba(15, 23, 42, 0.12);
    }
    .mb-hotline-trigger:hover .mb-hotline-drawer,
    .mb-hotline-trigger.is-open .mb-hotline-drawer,
    .mb-hotline-trigger:focus-within .mb-hotline-drawer {
      opacity: 1;
      visibility: visible;
      pointer-events: auto;
      transform: translateY(-50%) translateX(0);
    }
    .mb-hotline-link {
      display: block;
      font-size: 14px;
      line-height: 1.3;
      font-weight: 700;
      color: #111827;
      text-decoration: none;
      text-align: center;
      letter-spacing: .02em;
    }
    .mb-hotline-link:hover { color: var(--accent); }
    .mb-to-top { opacity: 0; visibility: hidden; transform: translateY(8px); }
    .mb-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
    /* Hero 图隐藏：由 footer.php JS 添加 .is-hero-visual-hidden（覆盖 display:flex 等） */
    .hero-slide-visual.is-hero-visual-hidden,
    .page-hero-visual.is-hero-visual-hidden,
    .gos-hero-visual.is-hero-visual-hidden,
    .ga-hero-visual.is-hero-visual-hidden,
    .page-hero-deco.is-hero-visual-hidden {
      display: none !important;
    }

    /* Hero 紧凑首屏：由 footer.php JS 在 ≤1024px 时切换 .is-hero-compact */
    .capabilities-band.is-hero-compact .hero-slide {
      min-height: auto;
      padding: calc(var(--header-h) + 1rem) 20px 1.25rem;
    }
    .capabilities-band.is-hero-compact .hero-slide-inner {
      gap: 0;
    }
    .page-hero.is-hero-compact {
      padding: 1.15rem 20px 0.65rem;
    }
    .page-hero.is-hero-compact .page-hero-inner {
      flex-direction: column;
      align-items: stretch;
      gap: 0;
    }
    .page-hero.is-hero-compact .page-hero-copy {
      max-width: none;
    }
    .page-hero.is-hero-compact .page-hero-desc {
      margin-top: 0.55rem;
      font-size: 0.875rem;
    }
    .page-hero.is-hero-compact .page-hero-meta {
      margin-top: 0.75rem;
    }
    .news-body.is-hero-compact {
      padding-top: 1rem;
      padding-bottom: calc(clamp(2rem, 5vw, 2.75rem) + 0.5rem);
    }
    .gos-hero.is-hero-compact .gos-hero-inner {
      flex-direction: column;
      align-items: stretch;
      gap: 0;
    }
    .gos-hero.is-hero-compact .gos-hero-copy {
      max-width: none;
    }
    .ga-hero.is-hero-compact .ga-hero-inner {
      flex-direction: column;
      align-items: stretch;
      gap: 0;
    }
    .ga-hero.is-hero-compact .ga-hero-copy {
      max-width: none;
    }

    @media (max-width: 900px) {
      .mb-float-menu { right: 10px; top: auto; bottom: 12px; transform: none; gap: 10px; }
      .mb-float-item { width: 68px; min-height: 68px; border-radius: 14px; }
      .mb-float-item svg { width: 24px; height: 24px; }
      .mb-float-item span { font-size: 11px; }
      .mb-service-panel { right: calc(100% + 10px); width: 170px; }
      .mb-hotline-drawer { right: calc(100% + 10px); min-width: 146px; }
    }
