/* ============================================================
   模板 3 样式 —— 透明顶导航 + 竖向时间轴 + 左右交替（zigzag）
   配套模板：src/templates/user/3.njk
   与 1（顶栏纵堆）/ 2（左栏 Bento）换骨：中轴时间轴 / 节点左右交替 / v3- 独立类名
   配色由 sk.palette 注入 :root（无 palette 时用下方默认工业蓝）
   ============================================================ */

:root {
  --primary: #1456b8;
  --primary-dark: #0e3f8a;
  --accent: #f5a623;
  --bg-soft: #f4f7fb;
  --footer-bg: #16202e;
  --text: #1f2937;
  --text-soft: #5b6675;
  --border: #e5e9f0;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(17, 24, 39, 0.1);
  --container: 1100px;
  --rail-x: 50%;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

.v3-body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  line-height: 1.7;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }

/* ---------------- 顶部导航：透明覆盖 Hero，滚动变实 ---------------- */
.v3-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 16px clamp(20px, 5vw, 56px);
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}
.v3-topbar.is-solid {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 2px 16px rgba(17, 24, 39, 0.08);
  padding-top: 12px;
  padding-bottom: 12px;
  backdrop-filter: saturate(180%) blur(8px);
}
.v3-logo {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #fff;
  transition: color 0.3s ease;
}
.v3-topbar.is-solid .v3-logo { color: var(--primary-dark); }
.v3-logo-region {
  font-size: 12px;
  font-weight: 600;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  vertical-align: middle;
}
.v3-nav {
  margin-left: auto;
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}
.v3-nav-link {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.9);
  position: relative;
  padding: 4px 0;
  transition: color 0.3s ease;
}
.v3-nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.25s ease;
}
.v3-nav-link:hover::after { width: 100%; }
.v3-topbar.is-solid .v3-nav-link { color: var(--text); }
.v3-nav-tel {
  font-size: 15px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  white-space: nowrap;
}

/* ---------------- 首屏 Hero：两段式高度——先按宽度拉满，超一屏则封顶到视口高、图片 cover 居中裁切 ---------------- */
.v3-hero {
  position: relative;
  /* 有 banner 时高度由 JS 两段式设定（宽度拉满→超一屏封顶）；无图/无 JS 时回落这个地板，留足空间不被顶栏压住 */
  min-height: 480px;
  color: #fff;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}
.v3-hero-bg { position: absolute; inset: 0; z-index: 0; }
.v3-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.72), rgba(15, 23, 42, 0.45));
  z-index: 1;
}
.v3-hero-inner {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 70px 20px;
  /* 文字层铺满 hero，不能遮住下方轮播的箭头/圆点点击：整层穿透 */
  pointer-events: none;
}
/* 只给真正要点的 CTA 按钮恢复点击 */
.v3-hero-inner a { pointer-events: auto; }
.v3-hero-inner > * { max-width: 760px; }
.v3-hero-eyebrow {
  font-size: 15px;
  letter-spacing: 3px;
  text-transform: uppercase;
  opacity: 0.9;
  margin-bottom: 18px;
}
.v3-hero-title {
  font-size: clamp(32px, 5.5vw, 60px);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 20px;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}
.v3-hero-sub {
  font-size: clamp(16px, 2vw, 20px);
  opacity: 0.94;
  margin-bottom: 26px;
}
.v3-hero-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 32px;
}
.v3-hero-tags li {
  font-size: 14px;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(4px);
}
.v3-hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  z-index: 2;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  animation: v3-bounce 1.8s ease-in-out infinite;
}
@keyframes v3-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ---------------- 按钮 ---------------- */
.v3-btn {
  display: inline-block;
  font-weight: 700;
  padding: 14px 34px;
  border-radius: 999px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.v3-btn:hover { transform: translateY(-2px); }
.v3-btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.25);
  box-shadow: 0 10px 24px color-mix(in srgb, var(--accent) 40%, transparent);
}
.v3-btn-light {
  background: #fff;
  color: var(--primary-dark);
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.12);
}

/* ---------------- 背景轮播：填满 hero（高度由 JS 两段式设定），图片 cover 居中裁切、绝对叠放淡入 ---------------- */
.v3-carousel { position: relative; width: 100%; height: 100%; }
.v3-carousel-track { position: relative; height: 100%; }
.v3-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.v3-slide.is-active { opacity: 1; }
.v3-slide img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.v3-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease;
}
.v3-carousel-arrow:hover { background: rgba(0, 0, 0, 0.5); }
.v3-carousel-arrow.prev { left: 18px; }
.v3-carousel-arrow.next { right: 18px; }
.v3-carousel-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 76px;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 9px;
}
.v3-carousel-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: background 0.2s ease, width 0.2s ease;
}
.v3-carousel-dot.is-active {
  width: 24px;
  border-radius: 5px;
  background: var(--accent);
}

/* ================= 时间轴主体：中轴线 + 节点左右交替 ================= */
.v3-timeline {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(60px, 9vw, 110px) 20px;
}
/* 中轴竞线 */
.v3-rail {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--rail-x);
  width: 3px;
  transform: translateX(-50%);
  background: linear-gradient(var(--primary), var(--primary-dark));
  border-radius: 3px;
}

/* 单个节点 */
.v3-node {
  position: relative;
  width: 50%;
  padding: 0 48px 56px;
}
.v3-node.is-left { left: 0; text-align: right; }
.v3-node.is-right { left: 50%; text-align: left; }

/* 轴点（圆 + 序号），坐落在中轴线上 */
.v3-node-dot {
  position: absolute;
  top: 4px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 6px #fff, 0 0 0 8px var(--border);
  z-index: 2;
}
.v3-node.is-left .v3-node-dot { right: -23px; }
.v3-node.is-right .v3-node-dot { left: -23px; }
.v3-node-no { font-size: 15px; font-weight: 800; font-style: normal; }

/* 内容卡片 */
.v3-node-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(22px, 3vw, 34px);
  position: relative;
  text-align: left;
}
/* 卡片指向中轴的小三角 */
.v3-node-card::before {
  content: "";
  position: absolute;
  top: 18px;
  width: 14px;
  height: 14px;
  background: #fff;
  border: 1px solid var(--border);
  transform: rotate(45deg);
}
.v3-node.is-left .v3-node-card::before {
  right: -8px;
  border-left: none;
  border-bottom: none;
}
.v3-node.is-right .v3-node-card::before {
  left: -8px;
  border-right: none;
  border-top: none;
}

.v3-node-head { margin-bottom: 16px; }
.v3-node-title {
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 800;
  color: var(--primary-dark);
  position: relative;
  padding-bottom: 10px;
}
.v3-node-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 42px;
  height: 3px;
  border-radius: 3px;
  background: var(--accent);
}
.v3-node-sub { color: var(--text-soft); font-size: 15px; margin-top: 8px; }

/* ---------------- 段落型 prose ---------------- */
.v3-prose {
  color: var(--text-soft);
  font-size: 15.5px;
  line-height: 1.9;
  white-space: pre-line;
}
.v3-prose + .v3-prose { margin-top: 14px; }
/* 时间轴节点卡片只有半宽，about 不分两栏（否则文字列被压得每行几个字），改单列堆叠：文字满宽 + 名片图在下方限尺寸 */
.v3-about { display: block; }
.v3-about-card { margin-top: 20px; max-width: 300px; }
.v3-about-card img { width: 100%; border-radius: 12px; box-shadow: var(--shadow); }
.v3-about-local { font-size: 14px; }

/* ---------------- 指标 stats ---------------- */
.v3-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 18px;
}
.v3-stat {
  text-align: center;
  padding: 18px 10px;
  border-radius: 12px;
  background: var(--bg-soft);
}
.v3-stat-value {
  display: block;
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 900;
  color: var(--accent);
  line-height: 1.1;
}
.v3-stat-label { font-size: 14px; color: var(--text-soft); margin-top: 6px; }

/* ---------------- 产品 products ---------------- */
.v3-prod {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
}
.v3-prod-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.v3-prod-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.v3-prod-img { aspect-ratio: 4 / 3; background: var(--bg-soft); }
.v3-prod-img img { width: 100%; height: 100%; object-fit: cover; }
.v3-prod-name {
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}

/* ---------------- 问答 faq ---------------- */
.v3-faq-item {
  padding: 14px 0;
  border-bottom: 1px dashed var(--border);
}
.v3-faq-item:last-child { border-bottom: none; }
.v3-faq-q {
  font-weight: 700;
  color: var(--primary-dark);
  padding-left: 22px;
  position: relative;
}
.v3-faq-q::before { content: "Q"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }
.v3-faq-a { color: var(--text-soft); font-size: 15px; margin-top: 6px; padding-left: 22px; }

/* ---------------- 流程 process（竖排步骤） ---------------- */
.v3-flow { display: flex; flex-direction: column; gap: 16px; }
.v3-flow-step { display: flex; gap: 16px; align-items: flex-start; }
.v3-flow-no {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--primary);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.v3-flow-title { font-weight: 700; }
.v3-flow-desc { color: var(--text-soft); font-size: 14.5px; margin-top: 4px; }

/* ---------------- 卡片型 advantages / pain / cases ---------------- */
.v3-cards { display: flex; flex-direction: column; gap: 14px; }
.v3-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px;
  border-radius: 12px;
  background: var(--bg-soft);
  transition: transform 0.2s ease;
}
.v3-card:hover { transform: translateX(4px); }
.v3-card-idx {
  flex: none;
  font-size: 22px;
  font-weight: 900;
  color: var(--accent);
  line-height: 1.2;
}
.v3-card-title { font-weight: 700; }
.v3-card-desc { color: var(--text-soft); font-size: 14.5px; margin-top: 4px; }

/* ================= CTA + 页脚 ================= */
.v3-cta {
  text-align: center;
  padding: clamp(50px, 8vw, 80px) 20px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
}
.v3-cta-text { font-size: clamp(18px, 2.6vw, 26px); font-weight: 700; margin-bottom: 22px; }

.v3-foot {
  text-align: center;
  padding: 40px 20px;
  background: var(--footer-bg);
  color: rgba(255, 255, 255, 0.86);
}
.v3-foot-name { font-size: 18px; font-weight: 700; color: #fff; }
.v3-foot-desc { font-size: 14px; opacity: 0.75; margin: 8px auto 14px; max-width: 640px; }
.v3-foot-copy { font-size: 13px; opacity: 0.6; }
.v3-foot-sites { margin-top: 14px; font-size: 13px; opacity: 0.72; line-height: 1.9; }
.v3-foot-sites a { color: #fff; text-decoration: underline; }

/* ================= 响应式：≤820px 时间轴塌成左侧单列 ================= */
@media (max-width: 820px) {
  .v3-nav { display: none; }
  :root { --rail-x: 24px; }
  .v3-node,
  .v3-node.is-left,
  .v3-node.is-right {
    width: 100%;
    left: 0;
    text-align: left;
    padding: 0 0 44px 56px;
  }
  .v3-node.is-left .v3-node-dot,
  .v3-node.is-right .v3-node-dot { left: 1px; right: auto; }
  .v3-node.is-left .v3-node-card::before,
  .v3-node.is-right .v3-node-card::before {
    left: -8px;
    right: auto;
    border-right: none;
    border-top: none;
    border-left: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }
}
@media (max-width: 560px) {
  .v3-about { grid-template-columns: 1fr; }
}
