/* =========================================
   招商加盟页专用样式 — franchise.css
   统一使用 --primary-color 与 --section-py
   ========================================= */

/* ① 首屏 Banner — 继承 page-banner 较低高度，文案样式保留 */
.fran-banner__body {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-bottom: clamp(36px, 4.5vw, 48px);
}

.fran-banner__body .fran-banner__title,
.fran-banner__body .fran-banner__desc,
.fran-banner__body .fran-banner__actions {
  max-width: 800px;
}

.fran-banner__sub {
  font-size: var(--fs-small);
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: clamp(16px, 2vw, 24px);
}

.fran-banner__title {
  font-size: clamp(32px, 5vw + 10px, 64px);
  font-weight: 900;
  color: #fff;
  line-height: 1.2;
  margin-bottom: clamp(16px, 2vw, 24px);
}

.fran-banner__title em {
  font-style: normal;
  color: var(--primary-color);
}

.fran-banner__desc {
  font-size: var(--fs-body);
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.85;
  margin-bottom: clamp(28px, 4vw, 48px);
  max-width: 600px;
}

.fran-banner__actions {
  display: flex;
  gap: clamp(12px, 2vw, 20px);
  flex-wrap: wrap;
}

/* 按钮 */
.fran-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: clamp(10px, 1.2vw, 14px) clamp(20px, 2.5vw, 32px);
  border-radius: 4px;
  font-size: var(--fs-body);
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.25s;
  font-family: inherit;
  border: none;
  text-decoration: none;
}

.fran-btn--primary {
  background: var(--primary-color);
  color: #fff;
}

.fran-btn--primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(4, 73, 229, 0.3);
}

.fran-btn--ghost {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.6);
}

.fran-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}

.fran-btn--lg {
  padding: clamp(13px, 1.5vw, 18px) clamp(28px, 3.5vw, 52px);
  font-size: clamp(14px, 1.1vw, 17px);
}

/* 核心数据条（独立区块，不叠加在 Banner 上） */
.fran-stats-bar {
  width: 100%;
  background: #fff;
  border-top: 3px solid var(--primary-color);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.fran-stats-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: clamp(20px, 2.5vw, 32px) 0;
}

.fran-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.fran-stat__num {
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 900;
  color: var(--primary-color);
  line-height: 1;
}

.fran-stat__num small {
  font-size: 0.55em;
  font-weight: 800;
}

.fran-stat__num sup {
  font-size: 0.45em;
  vertical-align: super;
}

.fran-stat__text {
  font-size: var(--fs-small);
  color: var(--text-gray);
  font-weight: 500;
  white-space: nowrap;
}

.fran-stat__divider {
  width: 1px;
  height: 40px;
  background: var(--border-color);
}

/* ② 通用区块头 */
.fran-section-head {
  text-align: center;
  margin-bottom: clamp(36px, 4vw, 64px);
}

.fran-section-head h2 {
  font-size: var(--fs-h2);
  font-weight: 900;
  color: var(--text-dark);
  line-height: 1.35;
}

.fran-section-head h2 em {
  font-style: normal;
  color: var(--primary-color);
}

.fran-section-head--light h2 {
  color: #fff;
}

.fran-section-head__sub {
  font-size: var(--fs-body);
  color: var(--text-gray);
  margin-top: 12px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.fran-eyebrow {
  font-size: var(--fs-small);
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--primary-color);
  font-weight: 600;
  display: block;
  margin-bottom: 12px;
}

.fran-eyebrow--light {
  color: rgba(255, 255, 255, 0.6);
}

/* 内页区块：背景全宽，content-rail 仅约束内容 */
.page-main--inner .fran-section {
  width: 100%;
  padding-block: var(--section-spacing-y);
  box-sizing: border-box;
  border-top: 1px solid #e4e8ef;
}

.page-main--inner .fran-section:first-child {
  border-top: none;
}

.page-main--inner .fran-section .content-rail {
  position: relative;
  z-index: 1;
}

/* ③ 项目优势 */
.fran-advantage {
  background: #ffffff;
}

.fran-advantage__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 4vw, 64px);
  align-items: start;
}

.fran-advantage__photo {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
}

.fran-advantage__photo img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}

.fran-advantage__photo-tag {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(4, 73, 229, 0.92);
  color: #fff;
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 1px;
  padding: clamp(12px, 1.5vw, 18px) clamp(16px, 2vw, 24px);
  text-align: center;
}

.fran-advantage__cards {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2vw, 24px);
}

.fran-adv-card {
  display: flex;
  align-items: flex-start;
  gap: clamp(16px, 2vw, 24px);
  padding: clamp(20px, 2.5vw, 28px);
  background: var(--bg-body);
  border-radius: 8px;
  border: 1px solid var(--border-color);
  border-left: 3px solid var(--primary-color);
  transition: box-shadow 0.3s, transform 0.3s;
}

.fran-adv-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07);
  transform: translateX(4px);
}

.fran-adv-card__num {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 900;
  color: var(--primary-light);
  line-height: 1;
  flex-shrink: 0;
  min-width: 2em;
}

.fran-adv-card__body h3 {
  font-size: var(--fs-h3);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.fran-adv-card__body p {
  font-size: var(--fs-body);
  color: var(--text-gray);
  line-height: 1.7;
}

/* ④ 三步走 */
.fran-build {
  background: var(--text-dark);
  position: relative;
  overflow: hidden;
}

.fran-build__list {
  display: flex;
  flex-direction: column;
  gap: clamp(40px, 5vw, 72px);
}

.fran-build__item {
  display: grid;
  grid-template-columns: 80px 100px 1fr;
  gap: clamp(20px, 3vw, 48px);
  align-items: center;
}

.fran-build__item--reverse {
  direction: rtl;
}

.fran-build__item--reverse > * {
  direction: ltr;
}

.fran-build__step-badge {
  width: clamp(56px, 6vw, 80px);
  height: clamp(56px, 6vw, 80px);
  border: 2px solid var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.fran-build__step-badge span {
  font-size: clamp(18px, 2vw, 28px);
  font-weight: 900;
  color: var(--primary-color);
}

.fran-build__icon {
  width: clamp(64px, 8vw, 100px);
  height: clamp(64px, 8vw, 100px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.7);
}

.fran-build__icon svg {
  width: 60%;
  height: 60%;
}

.fran-build__content h3 {
  font-size: var(--fs-h2);
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: clamp(12px, 1.5vw, 20px);
}

.fran-build__content ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1.5vw, 16px);
}

.fran-build__content li {
  font-size: var(--fs-body);
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.7;
  padding-left: 14px;
  border-left: 2px solid rgba(4, 73, 229, 0.4);
}

.fran-build__content li strong {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
  display: block;
  margin-bottom: 4px;
}

/* ⑤ 加盟要求 */
.fran-require {
  background: #f3f5f8;
}

.fran-require__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(12px, 1.5vw, 20px);
}

.fran-req-card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: clamp(20px, 2.5vw, 32px) clamp(16px, 2vw, 24px);
  text-align: center;
  transition: all 0.3s;
  cursor: default;
  position: relative;
  overflow: hidden;
}

.fran-req-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary-color);
  transform: scaleX(0);
  transition: transform 0.3s;
}

.fran-req-card:hover,
.fran-req-card[data-active="true"] {
  box-shadow: 0 12px 32px rgba(4, 73, 229, 0.08);
  border-color: rgba(4, 73, 229, 0.25);
  transform: translateY(-4px);
}

.fran-req-card:hover::after,
.fran-req-card[data-active="true"]::after {
  transform: scaleX(1);
}

.fran-req-card__num {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 900;
  color: var(--primary-light);
  line-height: 1;
  margin-bottom: clamp(10px, 1.2vw, 16px);
}

.fran-req-card__icon {
  width: clamp(32px, 3.5vw, 44px);
  height: clamp(32px, 3.5vw, 44px);
  stroke: var(--primary-color);
  fill: none;
  margin: 0 auto clamp(10px, 1.2vw, 16px);
  display: block;
}

.fran-req-card h3 {
  font-size: var(--fs-h3);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: clamp(8px, 1vw, 12px);
}

.fran-req-card p {
  font-size: var(--fs-small);
  color: var(--text-gray);
  line-height: 1.7;
}

/* ⑥ 合作流程 */
.fran-process {
  position: relative;
  overflow: hidden;
}

.fran-process__bg {
  position: absolute;
  inset: 0;
  background: var(--text-dark);
  z-index: 0;
}

.fran-process .content-rail {
  position: relative;
  z-index: 1;
}

.fran-process__track {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  position: relative;
  margin-top: clamp(32px, 4vw, 56px);
}

/* 连线 */
.fran-process__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(12px, 1.5vw, 18px);
  position: relative;
}

.fran-process__icon {
  width: clamp(52px, 5.5vw, 72px);
  height: clamp(52px, 5.5vw, 72px);
  border-radius: 50%;
  background: rgb(255, 255, 255);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  transition: all 0.3s;
  flex-shrink: 0;
}

.fran-process__icon svg {
  width: 44%;
  height: 44%;
  stroke: rgba(255, 255, 255, 0.7);
}

.fran-process__icon--fill {
  background: var(--primary-color);
  border-color: var(--primary-color);
}

.fran-process__icon--fill svg {
  stroke: #fff;
}

.fran-process__step:hover .fran-process__icon {
  background: var(--primary-color);
  border-color: var(--primary-color);
}

.fran-process__step:hover .fran-process__icon svg {
  stroke: #fff;
}

/* 水平连线 */
.fran-process__line {
  position: absolute;
  top: calc(clamp(52px, 5.5vw, 72px) / 2);
  left: 50%;
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.15);
  z-index: 1;
}

.fran-process__line--end {
  display: none;
}

.fran-process__label {
  font-size: var(--fs-small);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  text-align: center;
  white-space: nowrap;
}

/* ⑦ CTA */
.fran-cta {
  background: var(--primary-light);
}

.fran-cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(24px, 4vw, 48px);
  flex-wrap: wrap;
}

.fran-cta__text h2 {
  font-size: var(--fs-h2);
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.fran-cta__text p {
  font-size: var(--fs-body);
  color: var(--text-gray);
}

/* ========== 响应式 ========== */
@media (max-width: 1100px) {
  .fran-require__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .fran-require__grid .fran-req-card:nth-child(4),
  .fran-require__grid .fran-req-card:nth-child(5) {
    grid-column: span 1;
  }
}

@media (max-width: 768px) {
  .fran-stats-bar__inner {
    flex-wrap: wrap;
    gap: 24px;
    padding: 20px 0;
  }

  .fran-stat__divider {
    display: none;
  }

  .fran-advantage__grid {
    grid-template-columns: 1fr;
  }

  .fran-build__item,
  .fran-build__item--reverse {
    grid-template-columns: 56px 1fr;
    direction: ltr;
    gap: 16px;
  }

  .fran-build__icon {
    display: none;
  }

  .fran-require__grid {
    grid-template-columns: 1fr 1fr;
  }

  .fran-process__track {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .fran-process__line {
    display: none;
  }

  .fran-process__step {
    flex-direction: row;
    justify-content: flex-start;
    gap: 16px;
  }

  .fran-process__label {
    text-align: left;
  }

  .fran-cta__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .fran-require__grid {
    grid-template-columns: 1fr;
  }
}
