/**
 * =============================================================================
 * STATEMENT & CTA
 * =============================================================================
 * 理念段 + 三个方向 (每个方向对应 Logo 的一片叶子)、底部联系 CTA
 *
 * 对应 HTML:
 *   <section class="statement" id="intro">  理念标题 + 三栏方向
 *   <section class="cta" id="contact">      叶片 + 玻璃板 + "联系我们"
 */

/* ===== 理念段 ===== */
.statement {
  padding: 120px 0 130px;
}

/* 标题与说明文字左右并排,底部对齐,下方一条分隔线 */
.statement-head {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  align-items: end;
  gap: 64px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--line);
}

.statement-head p {
  max-width: 28em;
  color: var(--muted);
}

/* 三个方向:一行三列,细竖线分隔,不做卡片 */
.directions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

/* 单个方向 (整块可点击,是一个 <a>) */
.direction {
  display: flex;
  flex-direction: column;
  padding: 44px 40px 8px;
  border-left: 1px solid var(--line); /* 列之间的竖线 */
}

/* 第一列贴左对齐,不要竖线 */
.direction:first-child {
  padding-left: 0;
  border-left: 0;
}

/* 方向图标:对应的 Logo 叶片 */
.direction-leaf {
  width: 34px;
  height: 58px;
  margin-bottom: 26px;
  transform-origin: 50% 100%; /* 以叶柄为轴摆动 */
  transition: transform 0.6s var(--ease-out);
}

/* 悬停时叶片轻轻摆动 */
.direction:hover .direction-leaf {
  transform: rotate(-12deg) scale(1.08);
}

.direction h3 {
  margin: 0 0 10px;
  font-size: var(--fs-h3);
}

.direction p {
  flex: 1; /* 撑开剩余空间,让三列的"了解更多"链接底部对齐 */
  color: var(--muted);
  max-width: 20em;
}

/* "了解 xx" 链接:悬停时下划线从左向右画出 */
.direction-link {
  align-self: flex-start;  /* flex 布局下不拉伸 (桌面端) */
  justify-self: start;     /* grid 布局下不拉伸 (平板/手机端) */
  margin-top: 22px;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink);
  /* 用背景渐变画下划线,初始宽度为 0 */
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat;
  padding-bottom: 2px;
  transition: background-size 0.4s var(--ease-out);
}

.direction:hover .direction-link {
  background-size: 100% 1.5px; /* 下划线展开到全宽 */
}

/* ===== 底部联系 CTA:Logo 叶片 + 玻璃板,呼应首屏 ===== */
.cta {
  padding: 60px 0 120px;
}

.cta-inner {
  position: relative;
  display: grid;
  justify-items: center;
}

/* 玻璃板后方的 Logo 叶片 */
.cta-mark {
  width: 420px;
  height: 392px;
  margin-bottom: -210px; /* 负外边距:让玻璃板压住叶片的下半部分 */
  --leaf-gap: var(--paper); /* 叶片缝隙颜色 = 页面底色 */
}

/* 液态玻璃板 (Chrome/Edge 中还会由 js/liquid-glass.js 叠加边缘折射) */
.cta-pane {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
  padding: 72px 40px 76px;
  text-align: center;
  border-radius: 44px;
  /* 上亮、中透、下微亮的填充,模拟玻璃厚度 */
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0.35) 100%);
  box-shadow:
    inset 0 1.5px 0.5px #fff,                          /* 顶部高光边 */
    inset 0 -1px 0.5px rgba(255, 255, 255, 0.7),       /* 底部反光边 */
    inset 0 24px 40px -28px rgba(255, 255, 255, 0.95), /* 顶部内发光 */
    0 0 0 1px rgba(15, 37, 34, 0.04),                  /* 极细外轮廓 */
    0 50px 100px -50px rgba(15, 60, 52, 0.45);         /* 柔和投影 */
  backdrop-filter: blur(26px) saturate(220%) brightness(1.05);
  -webkit-backdrop-filter: blur(26px) saturate(220%) brightness(1.05);
}

/* 玻璃表面的斜向反光 */
.cta-pane::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0) 25%);
}

/* 内容浮在反光层之上 */
.cta-pane > * {
  position: relative;
}

.cta-pane h2 {
  font-size: clamp(36px, 5vw, 64px); /* 随屏幕宽度在 36–64px 之间缩放 */
  font-weight: 800;
  line-height: 1.15;
}

/* ===== 平板 (< 900px) ===== */
@media (max-width: 900px) {
  /* 理念标题与说明改为上下排列 */
  .statement-head {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  /* 三个方向改为竖向列表 */
  .directions {
    grid-template-columns: 1fr;
  }

  /* 每个方向:左侧叶片图标,右侧文字 */
  .direction,
  .direction:first-child {
    display: grid;
    grid-template-columns: 34px 1fr;
    column-gap: 22px;
    padding: 32px 0;
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }

  .direction-leaf {
    grid-row: span 3; /* 图标纵跨标题、正文、链接三行 */
    margin: 0;
  }

  .direction-link {
    margin-top: 12px;
  }
}

/* ===== 手机 (< 650px) ===== */
@media (max-width: 650px) {
  .statement {
    padding: 72px 0 80px;
  }

  .statement-head {
    padding-bottom: 36px;
  }

  .cta {
    padding: 40px 0 72px;
  }

  .cta-mark {
    width: 260px;
    height: 243px;
    margin-bottom: -130px;
  }

  .cta-pane {
    padding: 48px 22px 52px;
    border-radius: 28px;
    gap: 28px;
  }
}
