/* ===== Section base ===== */
.section {
  position: relative;
  padding: 80px 0 76px;             /* 之前 110/100，整体收一档、板块之间更紧凑 */
  overflow: hidden;
}
.section.bg-light  { background: #ffffff; }
.section.bg-tint   {
  background:
    radial-gradient(ellipse at 10% 20%, color-mix(in srgb, var(--c-primary)   10%, transparent) 0%, transparent 50%),
    radial-gradient(ellipse at 90% 80%, color-mix(in srgb, var(--c-secondary) 10%, transparent) 0%, transparent 50%),
    #fafbff;
}
.section.bg-dark   { background: #1a1c2b; color: #eef; }
.section.bg-dark .sec-title-cn { color: #fff; }

/* ===== Section 标题 - 英文大字水印(背景) + 中文压顶(前景)
 * 复刻 www.hangx.work 的 .hd h1 效果
 * 结构：<h2 class="sec-title-cn"><span class="sec-title-en">ABOUTUS</span>关于我们</h2>
 * 英文 span 绝对定位到中文正后方，字号明显更大，颜色黑色低透明度，形成大字水印感
 * 中文正常显示（居中、红色），视觉上"压在英文水印的中央"
 */
.sec-title {
  position: relative;
  text-align: center;
  margin: 0 auto 50px;              /* 之前 70px，压紧标题与正文的距离 */
  padding: 22px 0 0;                /* 之前 40px，减少顶部留白 */
}

/* 中文主标题 —— 前景层，使用主题主色（后台可改） */
.sec-title-cn {
  position: relative;
  display: inline-block;
  font-size: clamp(2.2rem, 3.4vw, 3rem);    /* ≈ 35–48px，中文更抢眼 */
  font-weight: 700;
  color: var(--c-primary);
  margin: 0;
  padding: 0 8px 18px;
  line-height: 1.3;
  letter-spacing: 3px;
  z-index: 2;
}
.sec-title-cn::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 56px;                      /* 下划线略加长匹配大标题 */
  height: 3px;
  background: linear-gradient(90deg, var(--c-primary), var(--c-secondary));
  border-radius: 3px;
  box-shadow: 0 2px 6px -2px color-mix(in srgb, var(--c-primary) 50%, transparent);
}

/* 英文水印 —— 背景层，比中文略大一点点即可，不抢戏 */
.sec-title-en {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -55%);
  font-size: clamp(2.6rem, 3.8vw, 3.4rem);   /* ≈ 42–54px，只比中文大一档 */
  font-weight: 900;
  color: #000;
  opacity: .09;
  text-transform: uppercase;
  letter-spacing: 5px;
  white-space: nowrap;
  user-select: none;
  z-index: 1;
  pointer-events: none;
  line-height: 1;
}

/* 无英文标题时不需要额外顶部空间 */
.sec-title.no-en { padding-top: 0; }
.sec-title.no-en .sec-title-cn {
  font-size: clamp(2rem, 3.2vw, 2.6rem);
}

/* 深色背景下的反色 */
.section.bg-dark .sec-title-cn { color: #fff; }
.section.bg-dark .sec-title-cn::after {
  background: linear-gradient(90deg, var(--c-primary), var(--c-secondary));
}
.section.bg-dark .sec-title-en { color: #fff; opacity: .10; }

/* ===== Template: text ===== */
.tpl-text {
  max-width: 860px;
  margin: 0 auto;
  font-size: 1.05rem;
  color: #3b3f52;
  position: relative;
  z-index: 2;
}
.tpl-text .rich-body h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 20px 0 10px;
}
.tpl-text .rich-body p { margin: 0 0 14px; line-height: 1.85; }
.tpl-text .rich-actions { text-align: center; margin-top: 34px; }

/* ===== Template: cards ===== */
.tpl-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 26px;
  position: relative;
  z-index: 2;
}
.p-card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 20px 40px -24px rgba(60, 60, 120, .18);
  transition: transform .35s, box-shadow .35s;
  display: flex;
  flex-direction: column;
  color: inherit;
}
.p-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 55px -22px rgba(60, 60, 120, .28);
}
.p-card-media {
  aspect-ratio: 16/10;
  background:
    linear-gradient(135deg,
      color-mix(in srgb, var(--c-primary) 60%, #fff),
      color-mix(in srgb, var(--c-secondary) 60%, #fff));
  overflow: hidden;
  position: relative;
}
.p-card-media img { width: 100%; height: 100%; object-fit: cover; }
.p-card-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.4rem;
  color: #fff;
  font-weight: 800;
  text-shadow: 0 4px 14px rgba(0,0,0,.15);
}
.p-card-body { padding: 20px 22px 24px; }
.p-card-body h3 { font-size: 1.15rem; font-weight: 700; margin: 0 0 6px; }
.p-card-body p  { color: #6a6f80; font-size: .93rem; min-height: 46px; margin: 0 0 10px; }
.p-card-body .more {
  font-size: .88rem;
  font-weight: 600;
  color: var(--c-primary);
}

/* ===== Template: service ===== */
.tpl-service {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  position: relative;
  z-index: 2;
}
.svc-item {
  background: #fff;
  border-radius: 16px;
  padding: 26px 22px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  box-shadow: 0 16px 34px -22px rgba(60, 60, 120, .18);
  transition: transform .3s, box-shadow .3s;
}
.svc-item:hover { transform: translateY(-4px); box-shadow: 0 22px 42px -22px rgba(60, 60, 120, .28); }
.svc-icon {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--c-primary), var(--c-secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.6rem;
}
.svc-halo {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px dashed color-mix(in srgb, var(--c-primary) 40%, transparent);
  animation: spin 12s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.svc-body h3 { font-size: 1.05rem; font-weight: 700; margin: 0 0 6px; color: var(--c-primary); }
.svc-body p  { color: #6a6f80; font-size: .92rem; margin: 0; line-height: 1.7; }

/* ===== Template: timeline ===== */
.tpl-timeline {
  max-width: 880px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  padding-left: 20px;
}
.tpl-timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, var(--c-primary), var(--c-secondary), transparent);
  border-radius: 2px;
}
.tl-item {
  position: relative;
  padding-left: 30px;
  padding-bottom: 30px;
}
.tl-item::before {
  content: "";
  position: absolute;
  left: -3px;
  top: 8px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--c-primary);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--c-primary) 15%, transparent);
}
.tl-date {
  font-size: .82rem;
  color: var(--c-primary);
  font-weight: 700;
  margin-bottom: 4px;
  letter-spacing: 1px;
}
.tl-body h3 { font-size: 1.1rem; font-weight: 700; margin: 0 0 6px; }
.tl-body h3 a { color: inherit; transition: color .2s; }
.tl-body h3 a:hover { color: var(--c-primary); }
.tl-body p { color: #6a6f80; font-size: .93rem; margin: 0; }

/* ===== Template: split ===== */
.tpl-split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.tpl-split .split-media {
  border-radius: 22px;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--c-primary), var(--c-secondary));
  box-shadow: 0 30px 60px -30px rgba(80, 90, 160, .35);
}
.tpl-split .split-media img { width: 100%; height: 100%; object-fit: cover; }
.tpl-split .split-body { font-size: 1.05rem; color: #3b3f52; }
.tpl-split .split-body .btn { margin-top: 22px; }
@media (max-width: 860px) {
  .tpl-split { grid-template-columns: 1fr; gap: 30px; }
}

/* ===== Template: banner ===== */
.tpl-banner {
  border-radius: 24px;
  padding: 60px 40px;
  background: linear-gradient(135deg, var(--c-primary), var(--c-secondary), var(--c-accent));
  color: #fff;
  text-align: center;
  box-shadow: 0 30px 60px -30px rgba(60, 60, 120, .35);
  position: relative;
  z-index: 2;
}
.tpl-banner p { font-size: 1.1rem; opacity: .95; margin: 0 0 22px; }
.tpl-banner .btn-primary { background: #fff; color: var(--c-primary); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s, transform .8s; }
.reveal.in { opacity: 1; transform: translateY(0); }
