/* =========================================================
 * APRIL AMC — Common styles (tokens + layout primitives)
 * ========================================================= */

:root {
  --brand:        #D26831;
  --brand-hover:  #B95831;
  --ink-0:        #000000;
  --ink-1:        #141414;
  --ink-2:        #18191A;
  --ink-3:        #262626;
  --ink-4:        #252525;
  --line-soft:    #3E3E3E;
  --paper-0:      #FFFFFF;
  --paper-1:      #FAF9F5;
  --paper-2:      #F5F5F3;
  --paper-bg:     #F6F5F1;  /* 原型页面背景色 */
  --line:         #E5E5E5;
  --mute:         #888888;
  --placeholder:  #D8D8D8;

  --font-en: 'Quicksand', 'GoogleProductSans', 'Helvetica Neue', Arial, sans-serif;
  --font-cn: 'PingFang SC', 'Microsoft YaHei', 'Source Han Sans CN', 'Hiragino Sans GB', sans-serif;
  --font:    var(--font-en);

  --fs-h1:   56px;
  --fs-h2:   36px;
  --fs-h3:   24px;
  --fs-h4:   18px;
  --fs-body: 14px;
  --fs-sub:  16px;
  --fs-sm:   12px;
  --fs-xs:   11px;

  --page-max:   1440px;  /* 内容容器最大宽度（文字/卡片始终在 1440 内） */
  --container:  var(--page-max);
}

/* body 与 site-header 不设 max-width：暗色 hero/STRENGTHS/NUMBERS/CTA 等通栏色块在宽屏上满屏显示（10-09 原貌），
   文字内容由各 section 内的 .container 约束到 1440 */

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* 公共片段占位（include.js 注入前预留高度，避免布局抖动） */
[data-include="header"] { min-height: 80px; }
[data-include="footer"] { min-height: 500px; }

body {
  font-family: var(--font);
  font-weight: 300;
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--ink-1);
  background: var(--paper-bg);  /* 原型页面背景 #F6F5F1；body 满宽使通栏色块在宽屏上端到端 */
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0.39px;
}
html[lang="zh"] body { font-family: var(--font-cn); letter-spacing: 0.5px; }

/* 中文版：所有文字统一 300 */
html[lang="zh"],
html[lang="zh"] body,
html[lang="zh"] h1, html[lang="zh"] h2, html[lang="zh"] h3, html[lang="zh"] h4, html[lang="zh"] h5, html[lang="zh"] h6,
html[lang="zh"] p, html[lang="zh"] a, html[lang="zh"] span, html[lang="zh"] li, html[lang="zh"] button,
html[lang="zh"] .nav a, html[lang="zh"] .lang-pill, html[lang="zh"] .btn,
html[lang="zh"] .strength-pill, html[lang="zh"] .insight-card h4, html[lang="zh"] .insight-card p,
html[lang="zh"] .cta-banner .eyebrow, html[lang="zh"] .cta-banner h3, html[lang="zh"] .cta-banner .legal-row,
html[lang="zh"] .desc, html[lang="zh"] .hero-title, html[lang="zh"] .hero-sub,
html[lang="zh"] .section-title, html[lang="zh"] .section-sub, html[lang="zh"] .label,
html[lang="zh"] .step-item h4, html[lang="zh"] .step-item p,
html[lang="zh"] .framework-list li, html[lang="zh"] .footer, html[lang="zh"] footer { font-weight: 300; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

.container {
  width: 100%;
  max-width: var(--container);  /* 1440px，与原型画板一致 */
  margin: 0 auto;
  padding: 0 116px;  /* 与原型对齐：内容区 116→1324 */
}

/* ============================================================
   🔒 NAV / HEADER 锁定区（所有页面继承，后续不再改动）
   范围：.site-header / .brand / .brand-logo / .nav / .nav a /
         .nav-indicator / .lang-pill / .lang-globe
   修改日期：2026-10-09
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 72px 0 28px;
  transition: background .3s, padding .3s, box-shadow .3s;
}
.site-header.is-scrolled {
  background: rgba(20,20,20,.92);
  backdrop-filter: blur(8px);
  padding: 14px 0;
  box-shadow: 0 1px 0 rgba(255,255,255,.06);
}
.site-header .container {
  display: flex;
  align-items: center;
}
.brand {
  display: inline-flex;
  align-items: center;
}
.brand-logo {
  display: block;
  height: 25px;
  width: auto;
  margin-top: -12px;  /* 原型 -3px，累加上移 4px */
}
.nav {
  display: flex;
  align-items: center;
  gap: 50px;
  position: relative;
  margin-left: 66px;   /* 原型：logo 终 281 → HOME 起 347 */
  color: #fff;
  font-size: 14px;
  letter-spacing: 0.39px;
  white-space: nowrap;  /* 中间宽度防导航折行 */
  font-weight: 200;
  text-transform: uppercase;
}
:lang(zh) .nav { margin-left: 72px; }  /* 中文原型：logo 终 281 → 首页起 353 */
.lang-pill { margin-left: auto; }      /* EN 按钮固定右侧 x=1238 */
.nav a {
  position: relative;
  padding: 4px 0;
  transition: color .2s;
  letter-spacing: 0.39px;
}
.nav a:hover { color: var(--brand); }
.nav-item-with-submenu { position: relative; display: flex; align-items: center; height: 36px; }
.nav-item-with-submenu::after { content: ''; position: absolute; left: 0; right: 0; bottom: -12px; height: 12px; }
.nav-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  z-index: 110;
  width: max-content;
  min-width: 0;
  padding: 7px 0;
  border: 0;
  border-radius: 0;
  background: rgba(0,0,0,.5);
  -webkit-backdrop-filter: blur(12px) saturate(110%);
  backdrop-filter: blur(12px) saturate(110%);
  box-shadow: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, 6px);
  transition: opacity .24s ease, transform .24s cubic-bezier(.22,.61,.36,1), visibility .24s ease;
}
.nav-dropdown a {
  display: block;
  position: relative;
  padding: 9px 14px;
  border-radius: 0;
  color: rgba(255,255,255,.82);
  font-size: 12px;
  line-height: 18px;
  letter-spacing: .45px;
  text-align: left;
  text-transform: none;
  white-space: nowrap;
  transition: color .2s ease, background-color .2s ease;
}
.nav-dropdown a:hover,
.nav-dropdown a:focus-visible {
  background: rgba(210,104,49,.1);
  color: var(--brand);
}
.nav-dropdown a.is-current {
  background: transparent;
  color: var(--brand);
  font-weight: 400;
}
.nav-item-with-submenu:hover .nav-dropdown,
.nav-item-with-submenu:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}
/* 滑动下划线：固定 49px 宽，居中于选中文字（原型：直线 6 w=49） */
.nav-indicator {
  position: absolute;
  bottom: -2px;      /* 文字底 6px，收窄与文字的间距 */
  height: 1px;
  width: 49px;
  background: var(--brand);
  left: 0;
  transition: left .35s cubic-bezier(.4, 0, .2, 1);
}
.lang-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #fff;
  border-radius: 25.5px;
  padding: 0 22px 0 21px;
  color: #fff;
  font-size: 14px;
  letter-spacing: 0.39px;
  font-weight: 200;
  height: 36px;
  text-decoration: none;
  transition: border-color .2s, color .2s;
}
.lang-pill:hover { border-color: var(--brand); color: var(--brand); }
.lang-pill:hover .lang-globe { color: var(--brand); }  /* 同步 globe 颜色（img 替换元素需显式） */
.lang-globe {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  display: block;
  color: #D8D8D8;  /* 默认色 */
}

/* === 🔒 NAV / HEADER 锁定区结束 === */

/* ============================================================
   🖼 HERO 暗色渐变蒙层（所有页面统一继承）
   规则：.hero-bg / .about-hero-bg 等背景层 ::after 叠加暗色渐变，
         保证白字在亮色背景图上仍可读
   用法：HTML 写 <div class="hero-bg"></div>，CSS 给父级定位即可
   修改日期：2026-10-12
   ============================================================ */
.hero-bg::after,
.about-hero-bg::after,
.section-hero-bg::after {  /* 后续新页面可用 .section-hero-bg */
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.25) 60%, rgba(0,0,0,.4) 100%);
  pointer-events: none;
}

/* ============================================================
   🔒 FOOTER 锁定区（所有页面继承，后续不再改动）
   范围：.site-footer / .footer-inner / .footer-brand /
         .footer-grid / .footer-col / .footer-rule / .footer-legal
   修改日期：2026-10-09
   ============================================================ */
.site-footer {
  background: var(--ink-0);
  color: #fff;
  padding: 80px 0 56px;  /* 原型：logo 顶 4548-4468=80；legal 底 5015→5071=56 */
}
.footer-inner {
  max-width: 960px;
  margin: 0 auto;
}
.footer-brand { text-align: center; margin-bottom: 66px; }  /* 原型：logo 底 4607 → 栏标题 4673 */
.footer-brand .brand { display: block; }  /* 消除 inline 基线空隙 */
.footer-brand .brand-logo {
  width: 135px; height: 59px;  /* 原型编组5：135×59 */
  margin: 0 auto;  /* 覆盖全局 .brand-logo 的 -12px（header 专用）；块级需 auto 居中 */
  display: block;
}
.footer-grid {
  display: grid;
  grid-template-columns: 434px 378px 148px;  /* 原型：栏起点 240/674/1052 → 相对 0/434/812 */
}
.footer-col h5 {
  font-size: 18px;  /* 原型 18px */
  line-height: 23px;
  letter-spacing: 0.5px;
  font-weight: 500;  /* 加粗 */
  color: #fff;
  margin-bottom: 19px;  /* 原型：标题底 4696 → 链接 4715 */
  text-transform: uppercase;
}
.footer-col ul { list-style: none; }
.footer-col li {
  font-size: 12px;  /* 原型中文版 footer 链接 12px（之前误用 10px） */
  line-height: 38px;  /* 原型：5 行链接块高 190 → 行高 38 */
  color: rgba(255,255,255,.8);
  letter-spacing: 0.33px;  /* 原型 ls 0.33 */
  text-transform: uppercase;
  transition: color .2s;
  cursor: pointer;
}
.footer-col li:hover { color: var(--brand); }
.footer-rule { border: 0; border-top: 1px solid var(--ink-4); margin: 47px 0 24px; }  /* 原型：链接底 4905 → 线 4952 → legal 4977 */
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  column-gap: 10px;
  font-size: 10px;  /* 原型 10px */
  line-height: 38px;
  letter-spacing: 0.28px;
  color: rgba(255,255,255,.7);  /* 原型 70% 白 */
}
.footer-legal a:hover { color: var(--brand); }

/* === 🔒 FOOTER 锁定区结束 === */

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 20px;   /* 原型：文字距按钮左右各 20px */
  height: 48px;      /* 原型：按钮高 48px */
  border-radius: 25.5px;
  font-size: 14px;
  letter-spacing: 0;
  font-weight: 200;
  line-height: 1;
  transition: background .25s, color .25s, transform .2s, border-color .25s;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-white { background: #fff; color: var(--ink-1); }
.btn-white:hover { background: #ECECEC; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0,0,0,.12); }
.btn-arrow { width: 16px; height: 5px; flex-shrink: 0; transition: transform .2s; }
.btn-white .btn-arrow { filter: brightness(0); } /* 白描边素材在白底按钮上转黑 */
.btn:hover .btn-arrow { transform: translateX(4px); }  /* 箭头右移 4px 强化反馈 */
.btn-outline-white { background: transparent; color: #fff; border-color: rgba(255,255,255,.9); border-width: 0.5px; }
.btn-outline-white:hover { background: rgba(255,255,255,.08); border-color: #fff; }
.btn-dark { background: var(--ink-0); color: #fff; }
.btn-dark:hover { background: #2A2A2A; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0,0,0,.25); }  /* 原 ink-2 与默认 #000 差异太小几乎无反馈 */
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-hover); }

/* ---------- Section title / sub ---------- */
.section-title {
  font-size: var(--fs-h2);
  font-weight: 200;
  letter-spacing: 1px;
  text-align: center;
  text-transform: uppercase;
  color: inherit;
  margin: 0;
}
.section-sub {
  text-align: center;
  font-size: var(--fs-body);
  color: var(--mute);
  max-width: 720px;
  margin: 16px auto 0;
  line-height: 1.8;
}

/* ---------- Strengths pills ---------- */
.strengths {
  background: var(--ink-0);
  color: #fff;
  padding: 50px 0 64px;
}
.strengths .section-title {
  margin-bottom: 60px;
  color: #fff;
}
.strengths-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}
.strength-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 20px;
  border: 0.5px solid var(--line-soft);
  border-radius: 23px;
  font-size: 12px;
  letter-spacing: 0.33px;
  font-weight: 200;
  color: #fff;
  text-transform: uppercase;
  transition: border-color .2s, color .2s;
  cursor: pointer;
  white-space: nowrap;
  background: transparent;
}
.strength-pill:hover { border-color: var(--brand); color: var(--brand); }
.strength-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-right: 12px;
  display: block;
}

/* 中文版按钮（原型画板1）：168×46、圆角 26、边框 0.8px、文字 14px、图标↔文字 13px、间距 20px */
html[lang="zh"] .strength-pill {
  min-width: 168px;
  font-size: 14px;
  letter-spacing: 0.39px;
  border: 0.8px solid var(--line-soft);
  border-radius: 26px;
}
html[lang="zh"] .strength-icon { margin-right: 13px; }

/* 页面加载动效：默认可见，动画只做增强，不影响静态文件直接打开。 */
@keyframes page-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes content-fade-up {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
.site-header {
  animation: page-fade-in .8s ease both;
}
body > main > section {
  animation: page-fade-in .8s ease both;
}
body > main > section:nth-child(1) { animation-delay: .04s; }
body > main > section:nth-child(2) { animation-delay: .12s; }
body > main > section:nth-child(3) { animation-delay: .2s; }
body > main > section:nth-child(4) { animation-delay: .28s; }
body > main > section:nth-child(5) { animation-delay: .36s; }
body > main > section:nth-child(6) { animation-delay: .44s; }
body > main > section:nth-child(7) { animation-delay: .52s; }
.reveal {
  opacity: 1;
  transform: none;
  animation: content-fade-up .72s cubic-bezier(.22,.61,.36,1) both;
}
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .site-header,
  body > main > section,
  .reveal { animation: none; }
}

@media (max-width: 960px) {
  :root { --fs-h1: 36px; --fs-h2: 28px; --fs-h3: 20px; }
  .nav { gap: 22px; margin-left: 32px; }
  :lang(zh) .nav { margin-left: 32px; }
  .container { padding: 0 40px; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .strengths-pills { gap: 12px; }
  .strength-pill { height: auto; padding: 8px 16px; font-size: 12px; }
}
@media (max-width: 1439px) and (min-width: 961px) {
  .nav { gap: 28px; margin-left: 40px; }  /* 仅中间宽度收紧，1440 及以上保持原型 50px 间距 */
}
@media (max-width: 720px) {
  .nav { display: none; }
  .container { padding: 0 20px; }

}

/* Unified bottom CTA buttons */
.cta-banner .btn-white,
.about-cta .cta-btn,
.prototype-page .proto-cta .proto-button,
.h5-page .h5-cta .h5-button,
.h5-page .h5-subscribe .h5-button,
.h5-page .h5-contact .h5-button,
.h5-page .h5-form .h5-button {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 218px !important;
  min-width: 218px !important;
  height: 48px !important;
  padding: 0 20px !important;
  gap: 10px !important;
  border: 0 !important;
  border-radius: 25.5px !important;
  background: #fff !important;
  color: #141414 !important;
  font-size: 14px !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  font-weight: 200 !important;
  white-space: nowrap;
  transform: none;
  transition: background .25s, color .25s, transform .2s, box-shadow .25s;
}
.cta-banner .btn-white:hover,
.about-cta .cta-btn:hover,
.prototype-page .proto-cta .proto-button:hover,
.h5-page .h5-cta .h5-button:hover,
.h5-page .h5-subscribe .h5-button:hover,
.h5-page .h5-contact .h5-button:hover,
.h5-page .h5-form .h5-button:hover {
  background: #ececec !important;
  color: #141414 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 16px rgba(0,0,0,.12);
}
.cta-banner .btn-white .btn-arrow,
.about-cta .cta-btn .btn-arrow {
  width: 16px !important;
  height: 5px !important;
  margin: 0 !important;
  filter: brightness(0) !important;
}
.prototype-page .proto-cta .proto-button::after,
.h5-page .h5-cta .h5-button::after,
.h5-page .h5-subscribe .h5-button::after,
.h5-page .h5-contact .h5-button::after,
.h5-page .h5-form .h5-button::after {
  content: '';
  display: block;
  width: 16px !important;
  height: 5px !important;
  margin: 0 !important;
  flex: 0 0 16px !important;
  background: url('../../images/arrow.svg') center / 16px 5px no-repeat;
  filter: brightness(0) !important;
}