/*!
 * Agility Marine Theme — Main Stylesheet
 * Version: 2.10.3
 */

/* ────────────────────────────────────────────────────────────
   设计令牌
   基色和字体排版由后台「Agility 主题」页面控制，PHP 会在
   wp_head 末尾输出同名变量覆盖这里的默认值；这里保留一份
   默认值，保证 PHP 输出缺失时样式不会整体失效。
   ──────────────────────────────────────────────────────────── */
:root {
  /* 基色（后台可改） */
  --am-primary: #f28c28;
  --am-navy: #0b1f33;
  --am-blue: #123d64;
  --am-teal: #0086a3;
  --am-text: #263442;
  --am-text-muted: #5f7188;
  --am-border: #dbe6ef;
  --am-bg: #fff;
  --am-bg-light: #f4f8fb;
  --am-footer-bg: #071827;

  /* 派生色（由基色自动算出，不需要手填） */
  --am-primary-hover: #e4720d;
  --am-primary-contrast: #fff;
  --am-primary-rgb: 242,140,40;
  --am-navy-rgb: 11,31,51;
  --am-blue-rgb: 18,61,100;
  --am-teal-light: #9ce9f8;
  --am-teal-tint: #e6f3f7;
  --am-surface-alt: #eef6f9;
  --am-surface-alt-border: #d7eaf0;
  --am-text-strong: #1a202c;
  --am-text-medium: #2d3748;
  --am-text-subtle: #4a5568;
  --am-on-dark: #fff;

  /* 遮罩 */
  --am-hero-overlay: 0.9;
  --am-hero-overlay-rgb: 11,31,51;
  --am-service-overlay-bg: rgba(var(--am-navy-rgb),0.85);

  /* 字体排版（后台可改） */
  --am-font-body: 'Segoe UI', system-ui, -apple-system, 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', 'Noto Sans SC', Helvetica, Arial, sans-serif;
  --am-font-heading: var(--am-font-body);
  --am-font-size-base: 16px;
  --am-line-height: 1.65;
  --am-font-weight-heading: 700;

  /* 固定值 */
  --am-shadow: 0 18px 40px rgba(var(--am-navy-rgb),0.1);
  --am-radius: 16px;

  /* 旧变量名兼容别名：模板内联 <style> 仍在用，映射到新令牌 */
  --navy: var(--am-navy);
  --blue: var(--am-blue);
  --teal: var(--am-teal);
  --orange: var(--am-primary);
  --light: var(--am-bg-light);
  --white: var(--am-bg);
  --text: var(--am-text);
  --muted: var(--am-text-muted);
  --border: var(--am-border);
  --shadow: var(--am-shadow);
  --radius: var(--am-radius);
  --hero-overlay: var(--am-hero-overlay);
  --service-overlay-bg: var(--am-service-overlay-bg);
}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:74px}
body{margin:0;font-family:var(--am-font-body);font-size:var(--am-font-size-base);color:var(--am-text);line-height:var(--am-line-height);background:var(--am-bg)}
a{color:inherit;text-decoration:none}
img{max-width:100%;height:auto}
.container{width:min(1180px,calc(100% - 40px));margin:0 auto}

/* Topbar */
.topbar{background:var(--am-navy);color:rgba(255,255,255,0.86);font-size:14px;padding:12px 0}
.topbar .container{display:flex;justify-content:space-between;align-items:center;gap:20px;flex-wrap:wrap}
.topbar-tagline{margin:0;font-size:15px;font-weight:400;color:rgba(255,255,255,0.9);white-space:nowrap}

/* Header */
.site-header{position:sticky;top:0;z-index:50;background:rgba(255,255,255,0.96);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);border-bottom:1px solid var(--am-border)}
.nav{min-height:74px;display:flex;align-items:center;justify-content:space-between;gap:24px}
.logo{font-weight:800;font-size:22px;color:var(--am-navy);letter-spacing:0.2px;flex-shrink:0}
.logo span{color:var(--am-primary)}
.logo .custom-logo-link{display:block}
.logo .custom-logo{height:44px;width:auto}
.menu{display:flex;align-items:center;gap:20px;font-size:15px;color:var(--am-navy)}
.menu a:hover,.menu a:focus-visible{color:var(--am-primary)}
.menu ul,.menu .menu-list{display:flex;align-items:center;gap:20px;list-style:none;margin:0;padding:0}
.menu .menu-list a{color:var(--am-navy);font-size:15px}
.menu .menu-list a:hover{color:var(--am-primary)}
/* Dropdown navigation */
.menu .menu-list > li {
  position: relative;
}

.menu .sub-menu {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  left: -14px;
  z-index: 70;
  min-width: 220px;
  margin: 0;
  padding: 8px 0;
  list-style: none;
  background: var(--am-bg);
  border: 1px solid var(--am-border);
  border-radius: 10px;
  box-shadow: var(--am-shadow);
}

/* Keep the hover area connected to the dropdown. */
.menu .sub-menu::before {
  content: "";
  position: absolute;
  top: -13px;
  right: 0;
  left: 0;
  height: 13px;
}

.menu .menu-item-has-children:hover > .sub-menu,
.menu .menu-item-has-children:focus-within > .sub-menu {
  display: block;
}

.menu .sub-menu li {
  width: 100%;
}

.menu .sub-menu a {
  display: block;
  padding: 10px 16px;
  color: var(--am-navy);
  line-height: 1.4;
  white-space: nowrap;
}

.menu .sub-menu a:hover,
.menu .sub-menu a:focus-visible {
  color: var(--am-primary);
  background: var(--am-bg-light);
}
.menu .menu-item-has-children > a::after {
  content: "";
  display: inline-block;
  margin-left: 6px;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--am-navy);
  vertical-align: middle;
  transition: transform 0.2s ease;
}
.menu .menu-item-has-children:hover > a::after,
.menu .menu-item-has-children:focus-within > a::after {
  transform: rotate(180deg);
}
.hamburger{display:none;flex-direction:column;justify-content:center;gap:5px;width:32px;height:32px;background:none;border:0;cursor:pointer;padding:4px;z-index:60}
.hamburger-line{display:block;width:24px;height:2.5px;background:var(--am-navy);border-radius:2px;transition:transform 0.25s ease,opacity 0.25s ease}
.hamburger.is-open .hamburger-line:nth-child(1){transform:translateY(7.5px) rotate(45deg)}
.hamburger.is-open .hamburger-line:nth-child(2){opacity:0}
.hamburger.is-open .hamburger-line:nth-child(3){transform:translateY(-7.5px) rotate(-45deg)}

.btn{display:inline-flex;align-items:center;justify-content:center;width:fit-content;min-width:132px;padding:12px 22px;border-radius:999px;font-weight:700;border:1px solid transparent;transition:background 0.2s ease,transform 0.2s ease,color 0.2s ease}
.btn-primary{background:var(--am-primary);color:var(--am-primary-contrast);box-shadow:0 12px 24px rgba(var(--am-primary-rgb),0.22)}
.btn-primary:hover,.btn-primary:focus-visible{background:var(--am-primary-hover);color:var(--am-primary-contrast);transform:translateY(-1px)}
.btn-outline{border-color:rgba(255,255,255,0.6);color:var(--am-on-dark)}
.btn-outline:hover,.btn-outline:focus-visible{background:rgba(255,255,255,0.12)}

/* Hero */
.hero{position:relative;min-height:720px;background:var(--am-navy);color:var(--am-on-dark);overflow:hidden}
.hero-track{position:relative;min-height:720px}
.hero-slide{position:absolute;inset:0;opacity:0;pointer-events:none;transition:opacity 0.65s ease}
.hero-slide.is-active{opacity:1;pointer-events:auto}
.hero-slide-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.hero-slide-overlay{position:absolute;inset:0;background:linear-gradient(105deg,rgba(var(--am-hero-overlay-rgb),calc(var(--am-hero-overlay,0.9) + 0.04)),rgba(var(--am-blue-rgb),calc(var(--am-hero-overlay,0.9) - 0.18)))}
.hero-grid{position:relative;z-index:2;min-height:720px;display:grid;grid-template-columns:1.05fr 0.95fr;gap:54px;align-items:center;padding:0 20px}
.hero .eyebrow{color:var(--am-teal-light);text-transform:uppercase;letter-spacing:2.4px;font-size:13px;font-weight:800;display:block;margin-bottom:8px}
.hero-slide-heading{display:block;font-size:clamp(32px,5vw,52px);font-weight:800;line-height:1.08;margin:0 0 8px;color:var(--am-on-dark)}
.hero-slide-subheading{display:block;font-size:clamp(20px,3.2vw,32px);font-weight:600;line-height:1.2;margin:0 0 16px;color:rgba(255,255,255,0.85)}
.hero p{font-size:18px;max-width:760px;color:rgba(255,255,255,0.9);margin:0 0 24px}
.hero-actions{display:flex;flex-wrap:wrap;gap:14px}
.hero-card{background:rgba(255,255,255,0.94);color:var(--am-navy);border-radius:var(--am-radius);padding:32px;box-shadow:var(--am-shadow)}
.hero-card-title{display:block;font-size:27px;font-weight:800;line-height:1.18;color:var(--am-navy);margin:0 0 16px}
.hero-card ul{margin:0;padding-left:20px;color:var(--am-text-muted)}
.hero-arrow{position:absolute;top:50%;z-index:6;transform:translateY(-50%);width:42px;height:42px;border:0;border-radius:50%;background:rgba(255,255,255,0.22);color:var(--am-on-dark);font-size:30px;cursor:pointer;line-height:1}
.hero-arrow:hover{background:rgba(255,255,255,0.36)}
.hero-prev{left:18px}.hero-next{right:18px}
.hero-controls{position:absolute;z-index:7;bottom:26px;left:50%;transform:translateX(-50%);display:flex;gap:10px}
/* 圆点只有 11px，但触摸热区扩到 35px，手机上才点得中 */
.hero-dot{position:relative;width:11px;height:11px;border:0;border-radius:50%;background:rgba(255,255,255,0.55);cursor:pointer;transition:background 0.2s}
.hero-dot::after{content:'';position:absolute;inset:-12px;border-radius:50%}
.hero-dot.is-active{background:var(--am-primary)}

/* Sections + Arc Separators */
section{position:relative;padding:82px 0}
section::before,section::after{
  content:'';position:absolute;left:0;right:0;height:20px;z-index:1;pointer-events:none;
}
section::before{
  top:0;background:var(--am-bg-light);
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 20' preserveAspectRatio='none'%3E%3Cpath d='M0,0 L1200,0 L1200,1 Q600,20 0,1 Z' fill='white'/%3E%3C/svg%3E") center top / 100% 100% no-repeat;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 20' preserveAspectRatio='none'%3E%3Cpath d='M0,0 L1200,0 L1200,1 Q600,20 0,1 Z' fill='white'/%3E%3C/svg%3E") center top / 100% 100% no-repeat;
}
section::after{
  bottom:0;background:var(--am-bg-light);
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 20' preserveAspectRatio='none'%3E%3Cpath d='M0,20 L1200,20 L1200,19 Q600,0 0,19 Z' fill='white'/%3E%3C/svg%3E") center bottom / 100% 100% no-repeat;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 20' preserveAspectRatio='none'%3E%3Cpath d='M0,20 L1200,20 L1200,19 Q600,0 0,19 Z' fill='white'/%3E%3C/svg%3E") center bottom / 100% 100% no-repeat;
}
section.section-light::before,
section.section-light::after{background:var(--am-bg)}
section.hero::before,section.hero::after,
section.cta::before,section.cta::after,
section#about::before,section#about::after,
section#capabilities::before,section#capabilities::after,
section#clients::before,section#clients::after{display:none}
.service-block::before,.service-block::after{display:none}

.section-light{background:var(--am-bg-light)}
.section-title{max-width:850px;margin:0 auto 42px;text-align:center}
.section-title.left{text-align:left;margin-left:0}
.eyebrow{display:block;color:var(--am-teal);text-transform:uppercase;letter-spacing:2.4px;font-size:14px;font-weight:800;margin-bottom:12px}
.section-heading{display:block;font-size:clamp(24px,3vw,36px);font-weight:600;line-height:1.25;margin:0 0 14px;color:var(--am-navy)}
.section-title p{font-size:16px;color:var(--am-text-muted);margin:0}

.split{display:grid;grid-template-columns:0.95fr 1.05fr;gap:50px;align-items:center}
.grid-4{display:grid;grid-template-columns:repeat(4,1fr);gap:22px}
.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.grid-2{display:grid;grid-template-columns:1fr 1fr;gap:48px;align-items:center}

.card{background:var(--am-bg);border:1px solid var(--am-border);border-radius:var(--am-radius);padding:30px;box-shadow:0 12px 30px rgba(var(--am-navy-rgb),0.05)}
.card h2,.card h3{font-size:23px;line-height:1.22;margin:0 0 14px;color:var(--am-navy)}
.card p{color:var(--am-text-muted);margin:0}
.card ul{margin:12px 0 0;padding-left:20px;color:var(--am-text-muted)}
.compact-card{padding:30px}

.image-panel{position:relative;min-height:320px;border-radius:var(--am-radius);overflow:hidden;box-shadow:var(--am-shadow)}
.image-panel-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.image-panel-overlay{position:absolute;inset:0;background:linear-gradient(135deg,rgba(var(--am-navy-rgb),0.1),rgba(31,138,155,0.1))}
.section-hr{border:0;border-top:1px solid var(--am-border);margin:0 auto 32px;max-width:850px}
.about-copy p{color:var(--am-text-muted);font-size:17px}

.feature{background:var(--am-bg);border:1px solid var(--am-border);border-radius:var(--am-radius);padding:42px;box-shadow:var(--am-shadow)}
.feature p,.two-col-copy{font-size:18px;color:var(--am-text-muted);margin:0}
.feature-list{display:grid;gap:12px}
.feature-item{background:var(--am-surface-alt);border:1px solid var(--am-surface-alt-border);border-radius:10px;padding:14px 16px;color:var(--am-navy);font-weight:700}

/* Service Blocks */
.service-block{padding:0}
.service-block+.service-block{border-top:3px solid rgba(255,255,255,0.4)}
.service-block-full{position:relative;background:center/cover no-repeat}
.service-block-overlay{position:absolute;top:0;right:0;bottom:0;left:0;background-color:var(--am-service-overlay-bg,rgba(var(--am-navy-rgb),0.85))!important;z-index:1;pointer-events:none;outline:1px solid var(--am-navy,#0b1f33)}
.service-block-full .service-head{position:relative;z-index:2;padding:60px 0 0}
.service-block-full .service-head .section-title{margin-bottom:0}
.service-block-full .service-body{padding-top:0}
.service-block-full .service-head .section-heading,
.service-block-full .service-head .eyebrow,
.service-block-full .service-head p{color:var(--am-on-dark)}
.service-body{position:relative;z-index:2;padding:60px 0}
.service-block:not(.service-block-full) .service-body{padding-top:100px}
.service-pane{position:relative;padding:60px 40px;background:center/cover no-repeat;border-radius:var(--am-radius);overflow:hidden;display:flex;flex-direction:column;justify-content:center}
.service-pane-overlay{position:absolute;top:0;right:0;bottom:0;left:0;background-color:var(--am-service-overlay-bg,rgba(var(--am-navy-rgb),0.85))!important;z-index:1;pointer-events:none;outline:1px solid var(--am-navy,#0b1f33)}
.service-pane .eyebrow,
.service-pane .section-heading,
.service-pane .two-col-copy,
.service-pane p{position:relative;z-index:2;color:var(--am-on-dark)}

.tools-list .btn{margin-top:24px;color:var(--am-on-dark)}
.project .tag{display:inline-block;background:var(--am-teal-tint);color:var(--am-teal);font-weight:800;border-radius:999px;padding:5px 12px;font-size:13px;margin-bottom:14px}

.client-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:24px;align-items:center}
.client-logo{display:flex;align-items:center;justify-content:center;height:100px;background:var(--am-bg);border:1px solid var(--am-border);border-radius:12px;padding:20px;color:var(--am-text-muted);font-size:14px;font-weight:600;transition:box-shadow 0.2s}
.client-logo:hover{box-shadow:var(--am-shadow)}
.client-logo img,.client-logo-img{max-height:48px;width:auto;filter:grayscale(100%);opacity:0.7;transition:filter 0.2s,opacity 0.2s}
.client-logo:hover img,.client-logo:hover .client-logo-img{filter:grayscale(0);opacity:1}

.faq-list{max-width:900px;margin:0 auto;display:grid;gap:16px}
.faq-item{background:var(--am-bg);border:1px solid var(--am-border);border-radius:12px;padding:24px 28px}
.faq-item h3{margin:0 0 10px;color:var(--am-navy);font-size:20px}
.faq-item p{margin:0;color:var(--am-text-muted)}

.cta{background:linear-gradient(135deg,var(--am-navy),var(--am-blue));color:var(--am-on-dark);text-align:center}
.cta .section-heading{color:var(--am-on-dark)}
.cta p{max-width:760px;margin:0 auto 28px;color:rgba(255,255,255,0.88);font-size:18px}

footer{background:var(--am-footer-bg);color:rgba(255,255,255,0.78);padding:58px 0 26px}
.footer-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr 1.1fr;gap:34px;align-items:start;margin-bottom:34px}
footer h3,footer h4{margin:0 0 16px;color:var(--am-on-dark);line-height:1.25}
footer p{margin:0;color:rgba(255,255,255,0.72);font-size:15px}
.footer-links{display:grid;gap:8px}
.footer-links a{color:rgba(255,255,255,0.72);font-size:15px;transition:color 0.2s}
.footer-links a:hover,.footer-links a:focus-visible{color:var(--am-primary)}
.copyright{border-top:1px solid rgba(255,255,255,0.12);padding-top:20px;display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap;color:rgba(255,255,255,0.58);font-size:14px}
.copyright a{color:rgba(255,255,255,0.58);transition:color 0.2s}
.copyright a:hover{color:var(--am-primary)}
a:focus-visible,button:focus-visible{outline:2px solid var(--am-primary);outline-offset:2px}

/* ── Service Page Template ────────────── */
.service-hero{position:relative;padding:300px 0 180px;background-color:var(--am-navy);background-size:cover;background-position:center;text-align:center}
.service-hero .section-heading{color:var(--am-on-dark)}
.service-hero .eyebrow{color:var(--am-teal-light)}
.service-hero .section-title{margin-bottom:0;position:relative;z-index:2}
.service-content{padding:70px 0}
.service-body-copy{font-size:17px;color:var(--am-text-subtle);line-height:1.85;min-width:0}
.service-body-copy h2{font-size:24px;font-weight:700;color:var(--am-text-strong);margin:48px 0 20px;padding-left:16px;border-left:4px solid var(--am-primary);line-height:1.3}
.service-body-copy h3{font-size:19px;font-weight:700;color:var(--am-text-medium);margin:32px 0 14px;line-height:1.4}
.service-body-copy p{margin:0 0 24px}
.service-body-copy ul,.service-body-copy ol{margin:0 0 24px;padding-left:24px;color:var(--am-text-subtle)}
.service-body-copy li{margin-bottom:10px}
.service-body-copy strong{color:var(--am-text-strong);font-weight:600}
.service-layout{display:grid;grid-template-columns:56px 1fr 280px;gap:40px;align-items:start}
.service-sidebar{position:sticky;top:90px;background:var(--am-bg-light);border:1px solid var(--am-border);border-radius:var(--am-radius);padding:28px 24px;margin-top:30px}
.service-sidebar h3{font-size:18px;font-weight:700;color:var(--am-navy);margin:0 0 16px;padding-bottom:12px;border-bottom:2px solid var(--am-primary)}
.service-sidebar ul{list-style:none;margin:0;padding:0}
.service-sidebar li{margin-bottom:4px}
.service-sidebar a{display:block;padding:6px 12px;font-size:15px;color:var(--am-text);border-radius:6px;transition:background 0.15s,color 0.15s}
.service-sidebar a:hover,.service-sidebar a.current{background:var(--am-navy);color:var(--am-on-dark)}
/* Social share rail (left margin) */
.service-share{position:sticky;top:110px;display:flex;flex-direction:column;gap:8px;margin-top:30px}
.service-share a{display:flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:8px;background:var(--am-bg-light);border:1px solid var(--am-border);color:var(--am-text-muted);font-size:18px;transition:background 0.15s,color 0.15s,border-color 0.15s}
.service-share a:hover{background:var(--am-navy);border-color:var(--am-navy);color:var(--am-on-dark)}
.faq-item summary{cursor:pointer;font-weight:600;font-size:20px;color:var(--am-navy);padding:8px 0;list-style:none}
.faq-item summary::-webkit-details-marker{display:none}
.faq-item[open] summary{margin-bottom:10px}
.faq-item summary::after{content:'+';float:right;font-size:24px;font-weight:400;color:var(--am-teal);transition:transform 0.2s}
.faq-item[open] summary::after{content:'\2212'}

/* ════════════════════════════════════════════════════════════
   响应式重排
   ────────────────────────────────────────────────────────────
   ≤1100px  平板横屏 / 小笔记本：网格降列、大间距收紧
   ≤1024px  平板竖屏 / iPad：导航收进汉堡菜单（关键）
   ≤720px   大手机：全部单列、字号下调
   ≤480px   小手机：按钮铺满、触摸目标加大
   横屏手机  高度 < 540px：首屏压缩，避免一屏装不下
   ════════════════════════════════════════════════════════════ */

/* ── 平板横屏 / 小笔记本 ─────────────────────────────── */
@media(max-width:1100px){
  .grid-4,.grid-3{grid-template-columns:repeat(2,1fr)}
  .client-grid{grid-template-columns:repeat(2,1fr)}
  .service-layout,.hero-grid,.grid-2,.split{grid-template-columns:1fr}
  .service-share{display:none}
  .service-sidebar{position:static}
  .hero-card{display:none}
  .footer-grid{grid-template-columns:1fr 1fr}
  /* 平板上的间距比桌面收紧一档 */
  .split,.grid-2{gap:36px}
  .footer-grid{gap:28px}
  .service-pane{padding:48px 32px}
  .service-hero{padding:220px 0 120px}
  .service-block-full{min-height:calc(var(--am-image-height,520px) * 0.85)}
  .hero,.hero-track,.hero-grid{min-height:660px}
}

/* ── 平板竖屏 / iPad：导航切汉堡 ─────────────────────── */
@media(max-width:1024px){
  .hamburger{display:flex}
  .menu{
    display:none;position:fixed;top:0;left:0;right:0;bottom:0;
    background:var(--am-bg);flex-direction:column;
    justify-content:flex-start;align-items:center;gap:14px;
    z-index:55;padding:92px 24px 40px;overflow-y:auto;
    -webkit-overflow-scrolling:touch;
  }
  .menu.is-open{display:flex}
  .menu ul,.menu .menu-list{flex-direction:column;align-items:center;gap:6px;width:100%;font-size:20px}
  .menu .menu-list > li{width:100%;text-align:center}
  /* 菜单项放大到 48px 以上，手指点得中 */
  .menu .menu-list a{display:block;padding:12px 16px;font-size:18px;line-height:1.4}
  /* 还没创建 WordPress 菜单时，header.php 输出的是 8 个裸链接（fallback），
     它们不在 .menu-list 里面，需要单独撑开触摸区域 */
  .menu > a{display:block;width:100%;padding:12px 16px;font-size:18px;line-height:1.4;text-align:center}
  .menu .sub-menu{
    display:flex;position:static;min-width:0;margin-top:2px;padding:0;
    border:0;border-radius:0;box-shadow:none;background:transparent;
    flex-direction:column;gap:2px;
  }
  .menu .sub-menu::before{display:none}
  .menu .sub-menu a{padding:8px 16px;color:var(--am-text-muted);font-size:16px;white-space:normal}
  .menu .menu-item-has-children > a::after{display:none}
  /* 菜单展开时锁住背后的页面滚动 */
  body.am-menu-open{overflow:hidden}
  section{padding:72px 0}
}

/* ── 大手机 ──────────────────────────────────────────── */
@media(max-width:720px){
  .topbar .container{justify-content:center;text-align:center}
  .topbar-tagline{white-space:normal;font-size:14px}
  .container{width:min(100% - 28px,1180px)}
  section{padding:62px 0}
  .service-block{padding:44px 0}
  section::before,section::after{height:14px}
  .hero,.hero-track,.hero-grid{min-height:560px}
  .hero-slide-heading{font-size:32px}
  .hero-arrow{display:none}
  .grid-4,.grid-3,.client-grid,.footer-grid{grid-template-columns:1fr}
  .client-logo{height:80px}
  .section-heading{font-size:28px}
  .section-title{margin-bottom:32px}
  .card,.feature{padding:24px}
  .split,.grid-2,.grid-3,.grid-4{gap:20px}
  .service-pane{padding:36px 24px}
  .service-body{padding:44px 0}
  .service-sidebar{margin-top:24px}
  .service-hero{padding:150px 0 80px}
  .service-block-full .service-head{padding:40px 0 0}
  .service-block-full{min-height:calc(var(--am-image-height,520px) * 0.68)}
  .copyright{display:block}
  .copyright span{display:block;margin-top:8px}
}

/* ── 小手机 ──────────────────────────────────────────── */
@media(max-width:480px){
  .container{width:min(100% - 24px,1180px)}
  .hero,.hero-track,.hero-grid{min-height:520px}
  .hero-slide-heading{font-size:26px}
  .hero-slide-subheading{font-size:18px}
  .hero p{font-size:16px}
  .section-heading{font-size:24px}
  .section-title p{font-size:15px}
  .card,.feature{padding:20px}
  .client-grid{grid-template-columns:1fr 1fr}
  /* 按钮铺满一行，高度提到 48px 方便点 */
  .hero-actions{flex-direction:column;align-items:stretch;gap:10px}
  .hero-actions .btn{width:100%}
  .btn{padding:14px 20px;min-height:48px}
  .service-pane{padding:28px 20px}
  .footer-grid{gap:24px}
}

/* ── 横屏手机：高度不足时压缩首屏 ────────────────────── */
@media(max-height:540px) and (orientation:landscape){
  .hero,.hero-track,.hero-grid{min-height:400px}
  .hero-card{display:none}
  .menu{justify-content:flex-start;padding-top:70px}
  section{padding:44px 0}
  .service-block{padding:32px 0}
}

/* ────────────────────────────────────────────────────────────
   标题排版（后台「字体排版」控制）
   字体族统一走 --am-font-heading；区块标题字重走
   --am-font-weight-heading。放在文件末尾，是为了覆盖上面
   各区块各自的 font-weight 声明。
   Hero 大标题和 Hero 卡片标题固定 800，不受字重设置影响。
   ──────────────────────────────────────────────────────────── */
.section-heading,
.card h2,
.card h3,
.hero-slide-heading,
.hero-card-title,
.faq-item h3,
.faq-item summary,
.service-sidebar h3,
.service-body-copy h2,
.service-body-copy h3,
footer h3,
footer h4{
  font-family:var(--am-font-heading,inherit);
}

.section-heading,
.card h2,
.card h3,
.faq-item h3,
.service-sidebar h3,
.service-body-copy h2,
.service-body-copy h3,
footer h3,
footer h4{
  font-weight:var(--am-font-weight-heading,700);
}

/* ────────────────────────────────────────────────────────────
   区块大图尺寸
   由后台「首页区块」顶部的大图显示宽度 / 高度控制：
     宽度 = 左右全屏   → 铺满视口
     宽度 = 与内容同宽 → 收进 1180px 并加圆角
   高度作用于服务区块背景大图的最小高度。
   ──────────────────────────────────────────────────────────── */
.service-block-full{
  max-width:var(--am-block-image-max-width,none);
  margin-inline:auto;
  min-height:var(--am-image-height,520px);
  border-radius:var(--am-block-image-radius,0);
  overflow:hidden;
}

.service-pane{
  min-height:var(--am-image-height,520px);
}

/* ── 服务区块格式 ③：左文右图 ──────────────────────── */
.service-text .eyebrow{margin-bottom:10px}
.service-text .section-heading{margin:0 0 14px;text-align:left}
.service-text p{margin:0;font-size:17px;color:var(--am-text-muted)}
.service-points{margin:20px 0 0;padding-left:22px;font-size:16px;line-height:1.7;color:var(--am-text-muted)}
.service-points li{margin-bottom:10px}
.service-points li strong{margin-right:6px;font-weight:700;color:var(--am-navy)}
.service-media{position:relative;min-height:var(--am-image-height,520px);background:center/cover no-repeat;border-radius:var(--am-radius);overflow:hidden;box-shadow:var(--am-shadow)}

/* ── 格式 ②：两栏高度由内容决定 ────────────────────────
   要点：图片框不再固定 520px，而是跟右边文字框一起由内容撑开。
   左边（标题 + 简介）和右边（列表）谁高就以谁为准，两栏 stretch 拉齐，
   内边距让框比文字高出一点点 —— 就是"差不多高、略有呼吸"的效果。 */
.service-split{
  align-items:stretch;
}

.service-split .service-pane{
  min-height:0;      /* 取消 520px 固定高度，交给内容决定 */
  height:auto;
}

.service-split .compact-card{
  display:flex;
  flex-direction:column;
  justify-content:center;
}

/* 右侧要点之间拉开一点间距，读起来不挤 */
.service-split .compact-card li{
  margin-bottom:11px;
}

.service-split .compact-card li:last-child{
  margin-bottom:0;
}

/* ── 格式 ③：左文右图，同样两栏拉齐 ──────────────────── */
.service-text-image{
  align-items:stretch;
}

.service-text-image .service-text{
  display:flex;
  flex-direction:column;
  justify-content:center;
}

/* 手机端按比例压低，避免一张图占满整屏 */
@media(max-width:720px){
  .service-block-full,
  .service-pane,
  .service-media{
    min-height:calc(var(--am-image-height,520px) * 0.62);
  }

  /* 格式 ② 在手机上已经是上下堆叠，图片给个稳妥高度就行 */
  .service-split .service-pane{
    min-height:240px;
  }
}

/* ────────────────────────────────────────────────────────────
   服务组副标题（Tagline）
   服务名现在是 H2，原来那句描述性长句降级到这里。
   比 H2 小一档、比正文大一档，形成「标题 → 副标题 → 正文」的层次。
   ──────────────────────────────────────────────────────────── */
.service-tagline,
.section-title p.service-tagline{
  display:block;
  margin:0 0 16px;
  font-size:clamp(17px,2.1vw,23px);
  font-weight:600;
  line-height:1.35;
  color:var(--am-navy);
  font-family:var(--am-font-heading);
}

/* 深色背景上换成白色 */
.service-block-full .service-head .service-tagline,
.service-block-full .service-head p.service-tagline,
.service-pane .service-tagline{
  color:var(--am-on-dark);
}

/* 手机端收一档 */
@media(max-width:720px){
  .service-tagline,
  .section-title p.service-tagline{
    font-size:17px;
    margin-bottom:12px;
  }
}
