/* ============================================================
   括狐官网 · 全局样式
   基线见 /DESIGN.md
   ============================================================ */

/* 1. 设计变量 ----------------------------------------------------*/
:root {
  --c-primary: #1E4D3B;
  --c-primary-dark: #163A2C;
  --c-primary-soft: #E8F0EC;
  --c-accent: #C8232C;
  --c-accent-warm: #F26B3A;
  --g-brand: linear-gradient(135deg, #1E4D3B 0%, #F26B3A 55%, #C8232C 100%);

  --c-text: #0F172A;
  --c-text-muted: #64748B;
  --c-border: #E5E7EB;
  --c-bg: #FFFFFF;
  --c-bg-soft: #F7F8F5;

  --s-1: 4px;
  --s-2: 8px;
  --s-3: 16px;
  --s-4: 24px;
  --s-5: 32px;
  --s-6: 48px;
  --s-7: 64px;
  --s-8: 96px;
  --s-9: 128px;

  --container: 1200px;
  --radius-s: 4px;
  --radius-m: 8px;
  --radius-l: 12px;

  --shadow-s: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-m: 0 4px 12px rgba(15, 23, 42, 0.06);
  --shadow-l: 0 12px 32px rgba(15, 23, 42, 0.08);
  --shadow-hover: 0 8px 24px rgba(30, 77, 59, 0.10);
}

/* 2. Reset -------------------------------------------------------*/
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "PingFang SC", "HarmonyOS Sans", "Microsoft YaHei", "Inter", system-ui, -apple-system, sans-serif;
  color: var(--c-text);
  background: var(--c-bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }
ul, ol { list-style: none; padding: 0; margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.2; }
p { margin: 0; }

/* 3. 通用容器 ----------------------------------------------------*/
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--s-5);
}
@media (max-width: 768px) {
  .container { padding: 0 var(--s-4); }
}

/* 4. 按钮 --------------------------------------------------------*/
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: 12px 24px;
  border-radius: var(--radius-m);
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--c-primary);
  color: #fff;
}
.btn-primary:hover { background: var(--c-primary-dark); }
.btn-secondary {
  background: #fff;
  color: var(--c-primary);
  border: 1px solid var(--c-primary);
}
.btn-secondary:hover { background: var(--c-primary); color: #fff; }
.btn-accent {
  background: var(--g-brand);
  color: #fff;
}
.btn-accent:hover { filter: brightness(0.95); }
.btn-ghost {
  background: transparent;
  color: var(--c-text);
  padding: 12px 16px;
}
.btn-ghost:hover { color: var(--c-primary); }

/* 5. 导航栏 ------------------------------------------------------*/
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 112px;
  background: var(--c-bg);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
/* 滚动态：仅底部出现细线，尺寸一律不变 */
.nav.scrolled {
  border-bottom-color: var(--c-border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
  height: 100%;
}
.nav-logo {
  display: flex;
  align-items: center;
  flex: none;
}
.nav-logo img {
  height: 60px;
  width: auto;
}

/* 右侧两行：上排 = 授权伙伴标签，下排 = 导航链接 */
.nav-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}
.nav-partner {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  background: var(--c-primary-soft);
  color: var(--c-primary);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--s-5);
}
.nav-links a {
  position: relative;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--c-text);
  padding: 8px 0;
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--c-primary); }
.nav-links a.active {
  color: var(--c-primary);
}
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--g-brand);
  border-radius: 2px;
}

/* 移动端菜单按钮 */
.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  align-items: center;
  justify-content: center;
}
.nav-toggle span {
  position: relative;
  width: 22px; height: 2px;
  background: var(--c-text);
  display: block;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px; height: 2px;
  background: var(--c-text);
}
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after  { top:  7px; }

@media (max-width: 1024px) {
  .nav { height: 96px; }
  .nav-logo img { height: 52px; }
  .nav-links { gap: var(--s-4); }
  .nav-links a { font-size: 15px; }
}
@media (max-width: 768px) {
  /* 手机端回到单行：Logo | 授权伙伴标签 | 汉堡 */
  .nav { height: 68px; }
  .nav-toggle { display: inline-flex; }
  .nav-inner { gap: var(--s-3); }
  .nav-logo img { height: 40px; }
  .nav-right {
    flex-direction: row;
    align-items: center;
    gap: var(--s-2);
  }
  .nav-partner { font-size: 13px; padding: 6px 14px; }
  .nav-links {
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: #fff;
    border-top: 1px solid var(--c-border);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--s-3) 0;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s ease;
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links a {
    padding: var(--s-3) var(--s-5);
    border-bottom: 1px solid var(--c-border);
  }
  .nav-links a:last-child { border-bottom: 0; }
  .nav-links a.active::after { display: none; }
  .nav-links a.active { background: var(--c-primary-soft); }
}
/* 极窄屏（iPhone SE 等）：完整文案不省略，靠整体收紧腾空间 */
@media (max-width: 400px) {
  .nav-inner { gap: var(--s-2); }
  .nav-logo img { height: 34px; }
  .nav-partner { font-size: 11px; padding: 5px 10px; }
  .nav-toggle { width: 36px; height: 36px; }
}

/* 6. Hero --------------------------------------------------------*/
.hero {
  position: relative;
  padding: var(--s-9) 0 var(--s-8);
  overflow: hidden;
  color: #ffffff;
  background:
    radial-gradient(
      ellipse 70% 60% at 92% 95%,
      rgba(242, 107, 58, 0.45) 0%,
      rgba(242, 107, 58, 0.18) 40%,
      transparent 70%
    ),
    radial-gradient(
      ellipse 55% 50% at 6% 4%,
      rgba(120, 180, 150, 0.22) 0%,
      transparent 70%
    ),
    linear-gradient(
      135deg,
      #14382B 0%,
      #1E4D3B 48%,
      #2F6B52 78%,
      #E85D33 96%,
      #C8232C 100%
    );
}
.hero::before {
  content: "";
  position: absolute;
  top: -120px; left: -120px;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.10) 0%,
    transparent 65%
  );
  filter: blur(8px);
  z-index: 0;
}
.hero::after {
  content: "";
  position: absolute;
  bottom: -160px; right: -100px;
  width: 460px; height: 460px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 122, 69, 0.40) 0%,
    rgba(200, 35, 44, 0.12) 50%,
    transparent 75%
  );
  filter: blur(30px);
  z-index: 0;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--s-7);
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: var(--s-4);
  backdrop-filter: blur(6px);
}
.hero-eyebrow .bar {
  width: 24px; height: 2px;
  background: #F26B3A;
  border-radius: 2px;
}
.hero h1 {
  font-size: 48px;
  line-height: 1.15;
  /* 全句统一字距。中文大标题轻微收紧即可，不要分段给不同字距——
     分段会让字的节奏前后不一致，比间隙不均更难看。 */
  letter-spacing: -0.5px;
  color: #ffffff;
  margin-bottom: var(--s-4);
}
.hero h1 .accent {
  /* 起点提亮到暖白，让「白 → 橙」是渐变过渡而非硬断层 */
  background: linear-gradient(135deg, #FFD9B0 0%, #F26B3A 55%, #C8232C 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
/* 中英混排视觉补偿
   拉丁字母有固有留白（如大写 I 墨迹只占中间一条竖线，右侧空约 0.07em），
   会让「AI 落地」的视觉空隙比「让 AI」宽约 0.084em，用负 margin 收回。 */
.hero h1 .en,
.hero .lead .en {
  margin-right: -0.084em;
}
/* 第二行对比句：比主句小四档（0.83em → 0.67em）但加粗，形成「大主标 + 小副标」层级
   em 单位随断点自动缩放：桌面 48→32px / 平板 38→25px / 手机 30→20px */
.hero h1 .sub {
  font-size: 0.67em;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.hero .lead {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: var(--s-5);
  max-width: 520px;
}
.hero-cta {
  display: flex;
  gap: var(--s-3);
  flex-wrap: wrap;
}
/* 首页 Hero 视觉块 —— AI 生成的多彩业务场景插画 */
.hero-visual {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 48px rgba(30, 77, 59, 0.22);
  background-color: #2A1B47;
  background-image: url("../img/hero-business-ai.jpg");
  background-size: cover;
  background-position: center;
}
/* 左侧文字阅读加深蒙层：保证左下文字层（未来扩展）始终可读 */
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    rgba(18, 12, 36, 0.18) 0%,
    rgba(18, 12, 36, 0.04) 40%,
    transparent 70%);
  pointer-events: none;
}
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: var(--s-6); }
  .hero h1 { font-size: 38px; }
  /* 单列时与子页面 Hero 同款比例 */
  .hero-visual { aspect-ratio: 16 / 9; border-radius: 20px; }
}
@media (max-width: 768px) {
  .hero { padding: var(--s-7) 0; }
  .hero h1 { font-size: 30px; }
  .hero .lead { font-size: 15px; }
  .hero-visual { aspect-ratio: 16 / 9; border-radius: 16px; }
}

/* 二级页 Hero（更克制） */
.page-hero {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  display: flex;
  align-items: center;
  padding: var(--s-8) 0 var(--s-7);
  background-color: var(--c-primary-dark);
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  color: #fff;
  border-bottom: 1px solid var(--c-border);
}
/* 左深右浅的遮罩：保证左侧文字可读，右侧露出图像 */
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    rgba(18,48,36,0.95) 0%,
    rgba(18,48,36,0.86) 34%,
    rgba(18,48,36,0.52) 62%,
    rgba(18,48,36,0.18) 100%);
  pointer-events: none;
}
.page-hero > .container { position: relative; z-index: 1; }
/* 各子页面专属背景图（统一 1600×600） */
.hero-strategy   { background-image: url("../img/hero/strategy.jpg"); }
.hero-apps       { background-image: url("../img/hero/apps.jpg"); }
.hero-infra      { background-image: url("../img/hero/infrastructure.jpg"); }
.hero-industries { background-image: url("../img/hero/industries.jpg"); }
.hero-cases      { background-image: url("../img/hero/cases.jpg"); }
.hero-contact    { background-image: url("../img/hero/contact.jpg"); }
/* Hero 品牌渐变条：比章节标题的 32×2 略大，左对齐 */
.page-hero .bar {
  display: block;
  width: 48px; height: 3px;
  margin: 0 0 var(--s-3);
  background: var(--g-brand);
  border-radius: 2px;
}
.page-hero h1 {
  font-size: 48px;
  font-weight: 600;
  letter-spacing: -1px;
  line-height: 1.15;
  margin: 0;
  color: #fff;
}
.page-hero .lead {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.82);
  max-width: 720px;
}
@media (max-width: 768px) {
  .page-hero { padding: var(--s-6) 0; min-height: 260px; }
  .page-hero h1 { font-size: 32px; letter-spacing: -0.5px; }
  .page-hero::before {
    background: linear-gradient(90deg,
      rgba(18,48,36,0.93) 0%,
      rgba(18,48,36,0.88) 50%,
      rgba(18,48,36,0.62) 100%);
  }
}

/* 7. 章节标题 ----------------------------------------------------*/
.section { padding: var(--s-8) 0; }
.section-soft { background: var(--c-bg-soft); }
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--s-7);
}
.section-head .bar {
  display: block;
  width: 32px; height: 2px;
  margin: 0 auto var(--s-3);
  background: var(--g-brand);
  border-radius: 2px;
}
.section-head h2 {
  font-size: 32px;
  margin-bottom: var(--s-3);
  letter-spacing: -0.3px;
}
.section-head p {
  color: var(--c-text-muted);
  font-size: 15px;
}
@media (max-width: 768px) {
  .section { padding: var(--s-7) 0; }
  .section-head h2 { font-size: 24px; }
}

/* 8. 卡片网格 ----------------------------------------------------*/
.grid {
  display: grid;
  gap: var(--s-4);
}
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-m);
  padding: var(--s-5);
  transition: all 0.25s ease;
  position: relative;
  height: 100%;
}
.card:hover {
  border-color: var(--c-primary);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}
.card .icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-s);
  background: var(--c-primary-soft);
  color: var(--c-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: var(--s-4);
  font-weight: 600;
}
.card h3 {
  font-size: 18px;
  margin-bottom: var(--s-2);
}
.card p {
  color: var(--c-text-muted);
  font-size: 14px;
  line-height: 1.7;
}
/* 卡片内 SVG 线条图标 */
.card .icon svg {
  display: block;
  width: 24px;
  height: 24px;
}
/* 交付物落点说明：细分隔线 + 「落地于」标签 */
.card-land {
  margin-top: var(--s-4);
  padding-top: var(--s-3);
  border-top: 1px solid var(--c-border);
  font-size: 13px;
  color: var(--c-text-muted);
}
.card-land span {
  color: var(--c-primary);
  font-weight: 600;
  margin-right: 6px;
}
.card .more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: var(--s-4);
  color: var(--c-primary);
  font-size: 14px;
  font-weight: 500;
}

/* AI 运行底座 · 分层堆叠栈图 ---------------------------------------*/
.infra-stack {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: stretch;
}
.infra-layer {
  position: relative;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: var(--s-4);
  align-items: center;
  padding: var(--s-4) var(--s-5);
  margin-bottom: var(--s-3);
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-m);
  transition: all 0.25s ease;
  overflow: hidden;
  --layer: var(--c-primary);
  --layer-soft: var(--c-primary-soft);
}
.infra-layer:last-child { margin-bottom: 0; }
.infra-layer:hover {
  border-color: var(--layer);
  box-shadow: var(--shadow-hover);
  transform: translateX(2px);
}
.infra-layer-bar {
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 6px;
  background: var(--layer);
}
.infra-layer-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-s);
  background: var(--layer-soft);
  color: var(--layer);
  display: flex;
  align-items: center;
  justify-content: center;
}
.infra-layer-icon svg { width: 24px; height: 24px; display: block; }
.infra-layer-body { min-width: 0; }
.infra-layer-head {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  margin-bottom: 4px;
  flex-wrap: wrap;
}
.infra-layer-head h3 {
  font-size: 16px;
  margin: 0;
  font-weight: 500;
  color: var(--c-text-primary);
}
.infra-layer-tier {
  font-size: 11px;
  color: var(--layer);
  font-weight: 500;
  padding: 3px 8px;
  background: var(--layer-soft);
  border-radius: 999px;
  letter-spacing: 0.3px;
}
.infra-layer p {
  color: var(--c-text-muted);
  font-size: 13px;
  line-height: 1.7;
  margin: 0;
}
.infra-stack-note {
  margin: var(--s-5) 0 0;
  padding: var(--s-3) var(--s-4);
  font-size: 12px;
  color: var(--c-text-muted);
  background: var(--c-primary-soft);
  border-radius: var(--radius-s);
  text-align: center;
}

@media (max-width: 768px) {
  .infra-layer { grid-template-columns: 36px 1fr; padding: var(--s-3) var(--s-4); }
  .infra-layer-icon { width: 36px; height: 36px; }
  .infra-layer-icon svg { width: 20px; height: 20px; }
  .infra-layer-head h3 { font-size: 15px; }
  .infra-stack-note { padding: var(--s-3); font-size: 11px; }
}

/* 9. 服务大卡片（首页用）-------------------------------------------*/
.service-card {
  display: flex;
  flex-direction: column;
  padding: var(--s-6) var(--s-5);
  border-radius: var(--radius-m);
  border: 1px solid var(--c-border);
  background: #fff;
  transition: all 0.25s ease;
  height: 100%;
}
.service-card:hover {
  border-color: var(--c-primary);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}
/* 顶部品牌渐变短线 —— 替代原来的序号徽标（01 / 交付 01），
   用色彩而不是编号来标识卡片，hover 时短线变长 */
.service-card .rule {
  display: block;
  width: 36px;
  height: 3px;
  border-radius: 2px;
  background: var(--g-brand);
  margin-bottom: var(--s-4);
  transition: width 0.25s ease;
}
.service-card:hover .rule { width: 60px; }
.service-card h3 {
  font-size: 22px;
  margin-bottom: var(--s-3);
}
.service-card p {
  color: var(--c-text-muted);
  font-size: 14px;
  margin-bottom: var(--s-4);
  flex: 1;
}
/* 要点改成标签胶囊：比竖排圆点清单更轻，也更容易扫读 */
.service-card ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: var(--s-4);
}
.service-card li {
  font-size: 13px;
  color: var(--c-primary);
  background: var(--c-primary-soft);
  border-radius: 999px;
  padding: 6px 13px;
  line-height: 1.2;
}
.service-card .more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  color: var(--c-primary);
  font-size: 14px;
  font-weight: 500;
}

/* 9b. 流程条 —— 用时间轴表达先后顺序，不再用 1/2/3/4 编号 -------*/
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s-4);
}
.step {
  position: relative;
  padding-top: 30px;
}
/* 连接线：横跨整格，与左右相邻格连成一条 */
.step::before {
  content: "";
  position: absolute;
  top: 5px; left: 0; right: 0;
  height: 2px;
  background: var(--c-border);
  border-radius: 2px;
}
/* 节点：品牌渐变圆点，末端不拖线 */
.step::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--g-brand);
  box-shadow: 0 0 0 4px rgba(242, 107, 58, 0.14);
}
.step:last-child::before { display: none; }
.step h4 {
  font-size: 16px;
  margin-bottom: var(--s-2);
}
.step p {
  font-size: 14px;
  color: var(--c-text-muted);
  line-height: 1.7;
}
@media (max-width: 1024px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-6) var(--s-4); }
}
@media (max-width: 768px) {
  /* 窄屏改成左侧竖向时间轴 */
  .steps { grid-template-columns: 1fr; gap: var(--s-5); }
  .step { padding-top: 0; padding-left: 28px; }
  .step::before {
    top: 6px; bottom: -30px;
    left: 5px; right: auto;
    width: 2px; height: auto;
  }
  .step:last-child::before { display: none; }
}

/* 9c. 闭环四节点 -----------------------------------------------------
   把「四件事构成一个完整的战略闭环」用横向大圆节点 + 顺时针流转 + 底部弧线回到起点
   直接画出来，比 2x2 卡片更贴合"闭环"的语义 */
.loop {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  column-gap: var(--s-7);          /* 给节点间箭头留够水平距离 */
  row-gap: var(--s-5);
  position: relative;
  padding: 28px 36px 80px;         /* 上 28 给圆上方短线留位；下 80 给弧线 + 胶囊留位置 */
  margin: 0 -36px;                 /* 抵消 padding 让 grid 与父容器对齐 */
  /* 注意：不能 overflow:hidden —— 箭头 ::after 从中心向右延 64px 会越界被切掉；
     底部弧线也依赖溢出渲染。改用单个 .loop-item::after 的 width 控制范围 */
}
.loop-item {
  position: relative;
  text-align: center;               /* 圆与介绍文字都居中 */
}
/* 节点间箭头：虚线 + 三角，从一个圆的水平中心指向下一个圆
   必须用 :nth-child(-n+3) 而不是 :not(:last-child)——
   .loop 里第 4 项 .loop-item 后面还有 .loop-arc，所以 .loop-item 永远不是 :last-child，
   否则第 4 项也会渲染箭头（实测 column-gap=64px 的虚线会从「路」圆右侧溢出）*/
.loop-item:nth-child(-n+3)::after {
  content: "";
  position: absolute;
  top: 62px;                       /* 圆心 y = 124/2 */
  /* 圆在 cell 中居中：圆右边缘 = 50% + 62px；下一圆左边缘 = 150% + 2px（gap 64 - 半径 62）
     用 calc + 百分比让箭头在任意 cell 宽度下都对齐两圆——不依赖 viewport 数值 */
  left: calc(50% + 68px);          /* 当前圆右边缘 + 6px 呼吸 */
  right: calc(-50% + 4px);         /* 到下一圆左边缘前 6px */
  height: 14px;
  transform: translateY(-50%);     /* 垂直居中对齐圆心 */
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='14' viewBox='0 0 120 14'><path d='M8 7 L102 7' fill='none' stroke='%231E4D3B' stroke-width='1.6' stroke-linecap='round' stroke-dasharray='3 4'/><path d='M96 1 L110 7 L96 13' fill='none' stroke='%231E4D3B' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/></svg>") no-repeat center / 100% 100%;
  opacity: 0.65;
}
/* 大圆节点：品牌色径向渐变，加柔光阴影；4 个圆色调递进暗示顺时针流转
   圆内直接写服务全名（战略规划/培训与陪跑/场景诊断/落地路线图），下方不再有标题描述 */
.loop-circle {
  width: 124px; height: 124px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  margin: 0 auto var(--s-4);       /* 圆在 cell 中水平居中，下方留给介绍文字 */
  box-shadow: 0 8px 22px rgba(30, 77, 59, 0.22);
  position: relative;
  letter-spacing: 1px;
}
.loop-item:nth-child(1) .loop-circle {
  background: radial-gradient(circle at 30% 30%, #2F6B52 0%, #1E4D3B 70%);
}
.loop-item:nth-child(2) .loop-circle {
  background: radial-gradient(circle at 30% 30%, #4D8869 0%, #1E4D3B 65%, #F26B3A 130%);
}
.loop-item:nth-child(3) .loop-circle {
  background: radial-gradient(circle at 30% 30%, #F58A5E 0%, #F26B3A 60%, #C8232C 130%);
}
.loop-item:nth-child(4) .loop-circle {
  background: radial-gradient(circle at 30% 30%, #E85D33 0%, #C8232C 70%);
}
/* 圆上方一道品牌渐变短线作"4 件事的标签" */
.loop-circle::before {
  content: "";
  position: absolute;
  top: -22px; left: 50%;
  transform: translateX(-50%);
  width: 22px; height: 2px;
  border-radius: 2px;
  background: var(--g-brand);
  opacity: 0.45;
}
.loop-item p {
  color: var(--c-text-muted);
  font-size: 14px;
  line-height: 1.7;
}
/* 底部弧线：从第 4 个圆绕回到第 1 个圆，标注"闭环」
   必须 grid-column: 1/-1 让它横跨整行（.loop 是 grid，
   默认会把 .loop-arc 挤进第 5 列 1fr 宽度，弧线就只剩 1/4 长度）
   再 position: absolute 浮到容器底部，不占 grid 行高 */
.loop-arc {
  grid-column: 1 / -1;
  position: absolute;
  /* 弧线端点对齐首尾两个圆的圆心：4 列布局下 cell = (W-264)/8，圆心 = padding 36 + cell/2 = W/8 + 3
     用 calc(12.5% + 3px) 兼容任意 viewport 宽度 */
  left: calc(12.5% + 3px);
  right: calc(12.5% + 3px);
  bottom: 0;
  height: 40px;
  pointer-events: none;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 40' preserveAspectRatio='none'><path d='M998 2 Q 998 38, 500 38 T 2 2' fill='none' stroke='%231E4D3B' stroke-width='1.8' stroke-linecap='round' stroke-dasharray='5 5' opacity='0.55'/></svg>") no-repeat center / 100% 100%;
}
/* 「闭环」胶囊压在弧线最低点上
   弧线 SVG viewBox 1000×40, path y=2~38, preserveAspectRatio='none' 拉伸到 40px 容器
   → 弧线最低点在容器底部上方 2px
   top: 38px (弧线最低点位置) + translate(-50%, -50%) 让 label 中心落在弧线最低点 */
.loop-arc-label {
  position: absolute;
  left: 50%;
  top: 38px;
  transform: translate(-50%, -50%);
  font-size: 12px;
  letter-spacing: 4px;
  color: var(--c-primary);
  background: #fff;
  padding: 5px 16px;
  border-radius: 999px;
  border: 1px solid rgba(30, 77, 59, 0.25);
  z-index: 2;                      /* 浮在弧线之上 */
}
/* 中屏 2x2：隐藏横向箭头；弧线对齐首尾两个圆的圆心（2 列时 cell = (W-120)/4，圆心 = W/4 + 6）*/
@media (max-width: 1024px) {
  .loop {
    grid-template-columns: repeat(2, 1fr);
    column-gap: var(--s-6);
    padding: 8px 36px 64px;
    margin: 0 -36px;
  }
  .loop-item::after { display: none; }
  .loop-arc {
    left: calc(25% + 6px);
    right: calc(25% + 6px);
  }
}
/* 窄屏单列：箭头和弧线全部隐藏 */
@media (max-width: 768px) {
  /* 手机端 2 个圆一行（特别窄时也是 2 列，圆 124px 在 ~160px cell 内放得下） */
  .loop {
    grid-template-columns: repeat(2, 1fr);
    column-gap: var(--s-4);
    row-gap: var(--s-5);
    padding: 8px 0 24px;
    margin: 0;
  }
  .loop-item { text-align: center; }
  .loop-item::after { display: none; }
  .loop-arc { display: none; }
}

/* 10. 信任带 -----------------------------------------------------*/
.trust-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--s-4) 0;
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
  flex-wrap: wrap;
  gap: var(--s-4);
}
.trust-bar .label {
  font-size: 13px;
  color: var(--c-text-muted);
}
.trust-bar .items {
  display: flex;
  gap: var(--s-7);
  flex-wrap: wrap;
}
.trust-bar .items span {
  font-size: 14px;
  font-weight: 500;
  color: var(--c-text);
  opacity: 0.7;
}

/* 11. CTA 带 -----------------------------------------------------*/
.cta-band {
  margin-top: var(--s-7);
  padding: var(--s-7) var(--s-6);
  border-radius: var(--radius-l);
  background: var(--g-brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
  flex-wrap: wrap;
}
.cta-band h3 {
  font-size: 24px;
  margin-bottom: var(--s-2);
}
.cta-band p {
  opacity: 0.85;
  font-size: 14px;
}
.cta-band .btn {
  background: #fff;
  color: var(--c-primary);
  padding: 14px 28px;
}
.cta-band .btn:hover { background: var(--c-primary-soft); }
/* 手机端 CTA：竖排 + 居中 + 收紧 */
@media (max-width: 768px) {
  .cta-band {
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: var(--s-5);
    padding: var(--s-5) var(--s-4);
    gap: var(--s-3);
  }
  .cta-band h3 { font-size: 20px; }
  .cta-band .btn { padding: 12px 24px; }
}

/* 12. 占位区块 ---------------------------------------------------*/
.placeholder {
  background: #fff;
  border: 1px dashed var(--c-border);
  border-radius: var(--radius-m);
  padding: var(--s-7) var(--s-5);
  text-align: center;
  color: var(--c-text-muted);
}
.placeholder .mark {
  display: inline-block;
  font-size: 12px;
  color: var(--c-primary);
  background: var(--c-primary-soft);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: var(--s-3);
  font-weight: 500;
}

/* 13. 联系信息区 -------------------------------------------------*/
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--s-6);
}
.contact-info {
  background: var(--c-primary-dark);
  color: #fff;
  padding: var(--s-6);
  border-radius: var(--radius-l);
}
.contact-info h2 {
  font-size: 26px;
  margin-bottom: var(--s-4);
}
.contact-info dl {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  margin: 0;
}
.contact-info dt {
  font-size: 12px;
  opacity: 0.6;
  margin-bottom: 4px;
}
.contact-info dd {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
}
.contact-form {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-l);
  padding: var(--s-6);
}
.contact-form h2 {
  font-size: 22px;
  margin-bottom: var(--s-5);
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: var(--s-4);
}
.field label {
  font-size: 13px;
  color: var(--c-text-muted);
}
.field input, .field textarea, .field select {
  font: inherit;
  font-size: 15px;
  padding: 12px 14px;
  border-radius: var(--radius-s);
  border: 1px solid var(--c-border);
  background: #fff;
  color: var(--c-text);
  width: 100%;
  outline: none;
  transition: border-color 0.2s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--c-primary);
}
.field textarea {
  min-height: 120px;
  resize: vertical;
}
@media (max-width: 1024px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* 14. 页脚 -------------------------------------------------------*/
.footer {
  margin-top: var(--s-9);
  background: var(--c-primary-dark);
  color: rgba(255, 255, 255, 0.78);
  padding: var(--s-7) 0 var(--s-4);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--s-6);
  padding-bottom: var(--s-6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-brand img {
  height: 36px;
  margin-bottom: var(--s-3);
  filter: brightness(0) invert(1);
}
.footer-brand p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  max-width: 280px;
}
.footer h4 {
  font-size: 14px;
  color: #fff;
  margin-bottom: var(--s-4);
}
.footer ul {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}
.footer ul a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s ease;
}
.footer ul a:hover { color: #fff; }
.footer-meta {
  padding-top: var(--s-4);
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  flex-wrap: wrap;
  gap: var(--s-3);
}
.footer-meta-left {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--s-3);
}
.footer-meta a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-meta a:hover {
  color: rgba(255, 255, 255, 0.85);
}
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  /* 手机端页脚收紧：链接三列并排，品牌独占一行 */
  .footer { margin-top: 40px; padding-top: 40px; }
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--s-4) var(--s-2);
    padding-bottom: var(--s-4);
  }
  .footer-brand { grid-column: 1 / -1; }
  .footer-brand img { height: 30px; margin-bottom: var(--s-2); }
  .footer h4 { margin-bottom: var(--s-2); font-size: 13px; }
  .footer ul { gap: 6px; }
}

/* 15. Utility ----------------------------------------------------*/
.text-muted { color: var(--c-text-muted); }
.text-center { text-align: center; }
.mt-4 { margin-top: var(--s-4); }
.mt-6 { margin-top: var(--s-6); }
.mt-7 { margin-top: var(--s-7); }
