/* ==========================================================================
   加鼎集团 Can-Leading — 落地页样式 (index.html 专用)
   复用 style.css 的变量与基础排版，仅补充落地页所需组件。
   所有配图保持素材原始比例（width:100% + height:auto，不裁剪）。
   ========================================================================== */

/* WhatsApp 通用按钮 ------------------------------------------------------- */
.wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25d366;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  padding: 13px 26px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}
.wa-btn:hover { background: #1ebe5b; color: #fff; text-decoration: none; transform: translateY(-1px); }
.wa-btn .ico-wa { width: 1.15em; height: 1.15em; }
.wa-btn--lg { font-size: 16px; padding: 16px 32px; }

/* 精简页头 ------------------------------------------------------------- */
.lp-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.lp-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 62px;
  gap: 16px;
}
.lp-header .brand img { height: 28px; width: auto; }
.lp-header .wa-btn { padding: 9px 18px; font-size: 14px; }

/* Hero ------------------------------------------------------------------ */
.lp-hero {
  background:
    linear-gradient(180deg, rgba(18, 23, 42, .78), rgba(18, 23, 42, .90)),
    radial-gradient(1100px 560px at 12% 0%, #24314f 0%, #12172a 62%);
  color: #fff;
  padding: 56px 0 64px;
}
.lp-hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 44px;
  align-items: center;
}
.lp-hero h1 {
  color: #fff;
  font-size: clamp(26px, 4vw, 42px);
  margin: 0 0 14px;
  letter-spacing: .01em;
}
.lp-hero .sub {
  color: rgba(255, 255, 255, .85);
  font-size: 17px;
  margin: 0 0 22px;
  max-width: 520px;
}
.lp-hero .ticks {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: grid;
  gap: 10px;
}
.lp-hero .ticks li {
  position: relative;
  padding-left: 28px;
  color: rgba(255, 255, 255, .92);
  font-size: 15.5px;
}
.lp-hero .ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .25em;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #25d366;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E") center / 12px no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.lp-hero .cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.lp-hero .hint { color: rgba(255, 255, 255, .6); font-size: 13px; margin: 16px 0 0; }
.lp-hero-media { text-align: center; }
.lp-hero-media img {
  width: auto;
  max-width: 100%;
  max-height: 520px;
  height: auto;
  margin: 0 auto;
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .40);
}

/* 信任数据条 --------------------------------------------------------- */
.lp-trust { background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.lp-trust .wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding-top: 28px;
  padding-bottom: 28px;
  text-align: center;
}
.lp-trust .num { font-size: clamp(22px, 3vw, 30px); font-weight: 800; color: var(--brand); }
.lp-trust .label { font-size: 14px; color: var(--ink-soft); margin-top: 2px; }

/* 配图网格 —— 保持原始比例，不裁剪 -------------------------------- */
.media-grid { display: grid; gap: 22px; }
.media-grid figure { margin: 0; }
.media-grid img,
.media-single img {
  display: block;
  width: 100%;
  height: auto;               /* 保持素材原始宽高比 */
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
}
.media-grid figcaption,
.media-single figcaption {
  margin-top: 10px;
  font-size: 13.5px;
  color: var(--ink-soft);
  text-align: center;
}
.media-grid--4 { grid-template-columns: repeat(4, 1fr); }
.media-grid--3 { grid-template-columns: repeat(3, 1fr); }
.media-grid--2 { grid-template-columns: repeat(2, 1fr); }

/* 竖版长图（案例全流程）：限制单列宽度，避免过分放大 */
.media-grid--tall {
  grid-template-columns: repeat(3, 1fr);
  max-width: 1100px;
  margin: 0 auto;
  align-items: start;
}

.media-single { max-width: 1000px; margin: 0 auto; }

/* 横向滑动条（移动端收起过长的图片列表，桌面端仍为网格） */
.media-scroll-hint {
  display: none;
  text-align: center;
  font-size: 12.5px;
  color: var(--ink-soft);
  margin: 0 0 14px;
}

/* 悬浮 WhatsApp 按钮 -------------------------------------------- */
.wa-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #25d366;
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  padding: 14px 22px;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(37, 211, 102, .45);
  animation: wa-pulse 2.4s ease-in-out infinite;
}
.wa-fab:hover { background: #1ebe5b; color: #fff; text-decoration: none; }
.wa-fab .ico-wa { width: 22px; height: 22px; }
@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 10px 30px rgba(37, 211, 102, .40); }
  50%      { box-shadow: 0 10px 34px rgba(37, 211, 102, .75); }
}

/* 精简页脚 ----------------------------------------------------- */
.lp-footer {
  background: var(--bg-dark);
  color: rgba(255, 255, 255, .6);
  text-align: center;
  padding: 32px 0;
  font-size: 13px;
}
.lp-footer a { color: rgba(255, 255, 255, .75); }
.lp-footer .legal-name { margin: 6px 0 0; font-size: 11px; color: rgba(255, 255, 255, .3); }

/* 响应式 ----------------------------------------------------- */
@media (max-width: 920px) {
  .lp-hero .wrap { grid-template-columns: 1fr; gap: 28px; }
  .lp-hero-media { order: -1; }
  .lp-hero-media img { max-height: 360px; }
  .lp-trust .wrap { grid-template-columns: repeat(2, 1fr); }
  .media-grid--4, .media-grid--3, .media-grid--2 { grid-template-columns: repeat(2, 1fr); }
  .media-grid--tall { grid-template-columns: 1fr; max-width: 420px; }
}
@media (max-width: 560px) {
  .lp-header .brand img { height: 22px; }
  .lp-header .wa-btn .txt { display: none; }
  .lp-header .wa-btn { padding: 9px; }
  .lp-header .wa-btn .ico-wa { width: 20px; height: 20px; }
  .media-grid--3, .media-grid--2 { grid-template-columns: 1fr; }
  .media-grid--4 { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .wa-fab { right: 12px; bottom: 12px; padding: 13px 20px; font-size: 14px; }
  .lp-hero { padding: 40px 0 48px; }
}

/* 移动端：把“全流程/风采/评价”的多图列表改成横向滑动，避免页面过长
   —— 放在文件末尾，覆盖前面的网格规则 */
@media (max-width: 720px) {
  .media-scroll-hint { display: block; }
  .media-grid--scrolly,
  .media-grid--scrolly-tall {
    grid-auto-flow: column;
    grid-template-columns: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
    margin-left: -24px;
    margin-right: -24px;
    padding-left: 24px;
    padding-right: 24px;
  }
  .media-grid--scrolly { grid-auto-columns: 82vw; }
  .media-grid--scrolly-tall { grid-auto-columns: 60vw; max-width: none; }
  .media-grid--scrolly figure,
  .media-grid--scrolly-tall figure { scroll-snap-align: start; }
}

/* 图片灯箱 / 轮播 ------------------------------------------------ */
.lb-trigger { cursor: zoom-in; }

.lb-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4vh 16px;
  background: rgba(10, 12, 20, .93);
}
.lb-overlay[hidden] { display: none; }

.lb-stage {
  margin: 0;
  max-width: 1200px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.lb-img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 86vh;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 48px rgba(0, 0, 0, .5);
}
.lb-cap {
  margin-top: 12px;
  color: rgba(255, 255, 255, .8);
  font-size: 13px;
  text-align: center;
}

.lb-close,
.lb-nav {
  position: absolute;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background .15s ease;
}
.lb-close:hover,
.lb-nav:hover { background: rgba(255, 255, 255, .26); }

.lb-close { top: 14px; right: 16px; width: 44px; height: 44px; font-size: 26px; }
.lb-nav { top: 50%; transform: translateY(-50%); width: 48px; height: 48px; font-size: 30px; }
.lb-prev { left: 12px; }
.lb-next { right: 12px; }

@media (max-width: 560px) {
  .lb-nav { width: 40px; height: 40px; font-size: 24px; }
  .lb-prev { left: 6px; }
  .lb-next { right: 6px; }
  .lb-close { top: 8px; right: 8px; }
}
