﻿/* ============================================================
   流程页样式 flow.css（PbootCMS模板使用，修复：不污染头部模板）
   用法：页面主体外层增加 class="flow-page"
   ============================================================ */
/* ========== 基础变量 ========== */
.flow-page {
  --blue: #0088ff;
  --blue-dark: #0066cc;
  --bg: #f9f9f9;
  --hero-bg: #fcf9f9;
  --card: #ffffff;
  --text: #333333;
  --text-light: #666666;
  --radius: 10px;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 10px 24px rgba(0, 136, 255, 0.18);
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
  color: var(--text);
  line-height: 1.6;
}
/* 仅在flow-page容器内重置，不再全局*重置 */
.flow-page * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
.flow-page html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
.flow-page img {
  max-width: 100%;
  display: block;
}
.flow-page a {
  color: var(--blue);
  text-decoration: none;
}
.flow-page .container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}
/* ========== 动效基础（JS 启用后才隐藏，无 JS 时内容正常显示） ========== */
html.js .flow-page .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: opacity, transform;
}
html.js .flow-page .reveal.from-left { transform: translateX(-32px); }
html.js .flow-page .reveal.from-right { transform: translateX(32px); }
html.js .flow-page .reveal.in {
  opacity: 1;
  transform: none;
}
/* 依次进场延迟 */
html.js .flow-page .reveal.d1 { transition-delay: 0.08s; }
html.js .flow-page .reveal.d2 { transition-delay: 0.16s; }
html.js .flow-page .reveal.d3 { transition-delay: 0.24s; }
html.js .flow-page .reveal.d4 { transition-delay: 0.32s; }
/* ========== 顶部主视觉 ========== */
.flow-page .hero {
  background: var(--hero-bg);
  padding: 40px 0 30px;
  text-align: center;
  overflow: hidden;
}
.flow-page .hero h1 {
  font-size: clamp(20px, 3.2vw, 29px);
  font-weight: 700;
  letter-spacing: 1px;
}
.flow-page .hero .subtitle {
  margin-top: 12px;
  font-size: clamp(13px, 1.8vw, 18px);
  color: var(--text-light);
  padding: 0 16px;
}
.flow-page .hero-grid {
  margin: 34px auto 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  text-align: left;
}
.flow-page .hero-main {
  position: relative;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.flow-page .hero-main .pic {
  overflow: hidden;
}
.flow-page .hero-main img {
  width: 100%;
  aspect-ratio: 784 / 552;
  object-fit: cover;
  transition: transform 0.8s ease;
}
.flow-page .hero-main:hover img {
  transform: scale(1.04);
}
.flow-page .hero-main .caption {
  padding: 18px 24px 20px;
}
.flow-page .hero-main .caption h3 {
  font-size: clamp(18px, 2.4vw, 29px);
  font-weight: 700;
}
.flow-page .hero-main .caption p {
  margin-top: 6px;
  font-size: clamp(13px, 1.7vw, 18px);
  color: var(--text-light);
}
.flow-page .hero-side {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.flow-page .hero-side figure {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--card);
}
.flow-page .hero-side img {
  width: 100%;
  aspect-ratio: 453 / 270;
  object-fit: cover;
  transition: transform 0.8s ease;
}
.flow-page .hero-side figure:hover img {
  transform: scale(1.06);
}
.flow-page .hero-side figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(20, 20, 20, 0.7);
  color: #fff;
  font-size: clamp(14px, 1.8vw, 18px);
  padding: 12px 20px;
  text-align: left;
}
/* ========== 内容区 ========== */
.flow-page .content {
  background: var(--bg);
  padding: 36px 0 64px;
}
/* 区块标题 */
.flow-page .sec-head {
  text-align: center;
  margin-bottom: 28px;
}
.flow-page .sec-head h2 {
  font-size: clamp(24px, 3.6vw, 36px);
  font-weight: 700;
  display: inline-block;
  position: relative;
  padding-bottom: 14px;
}
/* 标题下划线生长动画 */
.flow-page .sec-head h2::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 4px;
  border-radius: 2px;
  background: var(--blue);
  transform: translateX(-50%);
  transition: width 0.8s ease 0.15s;
}
html.js .flow-page .sec-head.in h2::after {
  width: 72px;
}
.flow-page .sec-head p {
  margin-top: 12px;
  font-size: clamp(13px, 1.8vw, 18px);
  color: var(--text-light);
}
/* 促销横幅 */
.flow-page .promo-banner {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 32px;
}
.flow-page .promo-banner img {
  width: 100%;
  aspect-ratio: 1263 / 314;
  object-fit: cover;
  object-position: center;
}
/* 服务特色卡片 */
.flow-page .features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 44px;
}
.flow-page .feature {
  background: #f3f7fb;
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(0, 136, 255, 0.06);
}
.flow-page .feature:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}
.flow-page .feature img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}
.flow-page .feature h3 {
  margin-top: 14px;
  font-size: 18px;
  font-weight: 700;
}
.flow-page .feature p {
  margin-top: 6px;
  font-size: 15px;
  color: var(--text-light);
}
/* ========== 发货流程步骤 ========== */
.flow-page .steps-title {
  text-align: center;
  margin-bottom: 28px;
}
.flow-page .steps-title h2 {
  font-size: clamp(24px, 3.6vw, 36px);
  display: inline-block;
  position: relative;
  padding-bottom: 14px;
}
.flow-page .steps-title h2::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 4px;
  border-radius: 2px;
  background: var(--blue);
  transform: translateX(-50%);
  transition: width 0.8s ease 0.15s;
}
html.js .flow-page .steps-title.in h2::after {
  width: 72px;
}
.flow-page .step {
  display: flex;
  flex-direction: column;
  margin-bottom: 24px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.flow-page .step .pic {
  position: relative;
  flex: 0 0 auto;
  width: 100%;
  overflow: hidden;
}
.flow-page .step .pic img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 10.5;
  object-fit: cover;
  transition: transform 0.8s ease;
}
.flow-page .step:hover .pic img {
  transform: scale(1.05);
}
.flow-page .step-body {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  padding: 22px 22px 22px 104px;
  min-height: 130px;
}
/* 蓝色箭头序号徽标 */
.flow-page .step-badge {
  position: absolute;
  left: 22px;
  top: 50%;
  transform: translateY(-50%);
  width: 63px;
  height: 92px;
  z-index: 2;
}
.flow-page .step-badge img {
  width: 100%;
  height: 100%;
  display: block;
}
.flow-page .step-badge b {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 42px;
  font-weight: 700;
  line-height: 1;
}
/* 序号弹跳动画（进入视口时触发） */
html.js .flow-page .step.in .step-badge b {
  animation: pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.15s both;
}
@keyframes pop {
  0%   { transform: scale(0.3); opacity: 0; }
  60%  { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}
.flow-page .step-card h3 {
  font-size: clamp(18px, 2.4vw, 23px);
  font-weight: 700;
  margin-bottom: 10px;
}
.flow-page .step-card p {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.75;
}
/* ========== 注意事项 ========== */
.flow-page .notes {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 24px;
  border: 1px solid rgba(0, 136, 255, 0.08);
}
.flow-page .notes h2 {
  text-align: center;
  font-size: clamp(24px, 3.6vw, 36px);
  margin-bottom: 22px;
}
.flow-page .notes ul {
  list-style: none;
}
.flow-page .notes li {
  position: relative;
  padding-left: 24px;
  font-size: 15px;
  color: #555;
  line-height: 1.9;
  margin-bottom: 6px;
}
.flow-page .notes li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 12px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
}
/* ========== 返回顶部 ========== */
.flow-page .back-top {
  position: fixed;
  right: 20px;
  bottom: 24px;
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  background: conic-gradient(var(--blue) calc(var(--p, 0) * 1%), rgba(0, 0, 0, 0.12) 0);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
  box-shadow: 0 4px 12px rgba(0, 136, 255, 0.35);
}
.flow-page .back-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.flow-page .back-top::after {
  content: "";
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff center/16px 16px no-repeat
    url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230088ff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 19V5M5 12l7-7 7 7'/%3E%3C/svg%3E");
}
/* ========== 响应式 ========== */
@media (min-width: 768px) {
  .flow-page .hero-grid {
    grid-template-columns: 1.73fr 1fr;
  }
  .flow-page .hero-side {
    grid-template-columns: 1fr;
  }
  .flow-page .features {
    grid-template-columns: repeat(3, 1fr);
  }
  .flow-page .step {
    flex-direction: row;
    min-height: 184px;
  }
  .flow-page .step .pic {
    width: 280px;
    flex-basis: 280px;
  }
  .flow-page .step .pic img {
    aspect-ratio: 280 / 184;
  }
  .flow-page .step-body {
    padding: 22px 30px 22px 120px;
  }
  .flow-page .step-badge {
    left: 32px;
  }
}
@media (min-width: 1200px) {
  .flow-page .hero-grid {
    gap: 22px;
  }
  .flow-page .hero-side {
    gap: 22px;
  }
}
@media (max-width: 767px) {
  .flow-page .promo-banner img {
    aspect-ratio: 21 / 9;
  }
  .flow-page .step-body {
    padding-left: 96px;
    padding-right: 16px;
  }
  .flow-page .step-badge {
    left: 16px;
  }
}
/* 动效减弱偏好 */
@media (prefers-reduced-motion: reduce) {
  .flow-page {
    scroll-behavior: auto;
  }
  .flow-page *,
  .flow-page *::before,
  .flow-page *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html.js .flow-page .reveal {
    opacity: 1;
    transform: none;
  }
}
