/* ===== 九大加盟优势 — 黄色顶部标题栏 + 白色正文（按图片） ===== */

.home-adv-sec {
  background: #fff;
  padding: 64px 0 72px;
}

/* ---- 容器 ---- */
.adv-container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- 顶部标题区 ---- */
.adv-hd {
  margin-bottom: 44px;
}
.adv-title {
  font-size: 52px;
  font-weight: 900;
  color: #1a1a1a;
  margin: 0 0 12px;
  font-family: 'PingFang SC', 'Microsoft YaHei', 'Hiragino Sans GB', sans-serif;
  letter-spacing: 1px;
  line-height: 1.25;
}
.adv-title-bar {
  width: 48px;
  height: 4px;
  background: #d70c19;
  border-radius: 2px;
  margin-bottom: 16px;
}
.adv-sub-label {
  font-size: 17px;
  color: #555;
  margin: 0;
  font-weight: 600;
  letter-spacing: 2px;
}

/* ---- 3列×3排卡片网格（移动端 1:1：间距 20px 20px） ---- */
.adv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 20px 20px;
}

/* ---- 单张卡片（移动端 1:1：黄色描边 + 圆角15 + 居中 + 底部留白） ---- */
.adv-item {
  display: block;
  overflow: hidden;
  border-radius: 15px;
  border: 2px solid #fbe00e;
  padding: 0 0 25px 0;
  text-align: center;
  transition: transform .5s ease;
}
.adv-item:hover {
  transform: translateY(-5px);
}

/* 黄色标题栏（h5：黄底 #ffe400，行高55px，顶部圆角12px） */
.adv-item h5 {
  width: 100%;
  margin: 0;
  border-radius: 12px 12px 0 0;
  background: #ffe400;
  line-height: 55px;
  font-size: 26px;
  color: #000;
  font-weight: 700;
  font-family: 'PingFang SC', 'Microsoft YaHei', 'Hiragino Sans GB', sans-serif;
}

/* 第一行描述（span：18px 黑色，完整显示，允许换行） */
.adv-item span {
  display: block;
  margin: 24px 24px 0;
  color: #000;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.65;
  word-break: break-word;
}

/* 第二行描述（p：16px 灰色，完整显示，允许换行） */
.adv-item p {
  display: block;
  font-size: 16px;
  color: #666;
  line-height: 1.65;
  margin: 10px 24px 0;
  word-break: break-word;
}

/* ---- 响应式（移动端 1:1：间距保持 20px） ---- */
@media (max-width: 980px) {
  .home-adv-sec { padding: 52px 0 56px; }
  .adv-title { font-size: 38px; }
  .adv-grid {
    row-gap: 20px;
    column-gap: 20px;
  }
  .adv-item h5 { font-size: 22px; line-height: 48px; }
  .adv-item span { font-size: 17px; line-height: 1.6; margin: 20px 20px 0; }
  .adv-item p { font-size: 15px; line-height: 1.6; margin: 8px 20px 0; }
}

@media (max-width: 760px) {
  .home-adv-sec { padding: 46px 0 50px; }
  .adv-grid {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 20px;
    column-gap: 20px;
  }
}

@media (max-width: 640px) {
  .home-adv-sec { padding: 42px 0 46px; }
  .adv-hd { margin-bottom: 32px; }
  .adv-title { font-size: 26px; }
  .adv-sub-label { font-size: 15px; }
  .adv-grid {
    grid-template-columns: 1fr;
    row-gap: 20px;
    column-gap: 20px;
  }
  .adv-item h5 { font-size: 20px; line-height: 44px; }
  .adv-item span { font-size: 16px; line-height: 1.55; margin: 18px 18px 0; }
  .adv-item p { font-size: 14px; line-height: 1.55; margin: 8px 18px 0; }
}

/* ============================================================
   以下为 20:43 整体重写时误删、本次恢复的三个板块样式
   恢复目标：修改前（pre-20:43）的排版
   ============================================================ */

/* ===== 五大黄金开店业态 ===== */
.store-format-sec { background: #faf7f2; }
.store-format-wrap {
  display: flex;
  gap: 40px;
  align-items: stretch;
  margin-top: 40px;
}
.format-copy {
  flex: 1 1 50%;
  height: 632px;
  display: flex;
  flex-direction: column;
}
.format-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 35px;
  height: 100%;
}
.format-list li {
  background: #fff;
  border-radius: 14px;
  padding: 22px 24px;
  box-shadow: 0 1px 4px rgba(0,0,0,.05), 0 2px 12px rgba(0,0,0,.04);
  border: 1px solid rgba(0,0,0,.03);
  transition: transform .25s ease, box-shadow .25s ease;
}
.format-list li:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
}
.format-list li h4 {
  font-size: 19px;
  font-weight: 800;
  color: #1a1a1a;
  margin: 0 0 8px;
  line-height: 1.45;
  font-family: 'PingFang SC', 'Microsoft YaHei', 'Hiragino Sans GB', sans-serif;
}
.format-list li h4::before {
  content: '●';
  color: #d70c19;
  margin-right: 8px;
  font-size: 10px;
  vertical-align: middle;
}
.format-list li p {
  font-size: 14px;
  color: #888;
  line-height: 1.7;
  margin: 0;
  padding-left: 18px;
}
.format-gallery {
  flex: 1 1 50%;
  max-height: 640px;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  background: #fff;
}
.format-gallery-track {
  display: flex;
  flex-direction: column;
  animation: formatScroll 19s linear infinite;
}
.format-gallery:hover .format-gallery-track { animation-play-state: paused; }
.format-gallery-track img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  margin-bottom: 16px;
  flex-shrink: 0;
}
@keyframes formatScroll {
  from { transform: translateY(0); }
  to   { transform: translateY(-50%); }
}
@media (max-width: 1100px) {
  .store-format-wrap { flex-direction: column; gap: 32px; }
  .format-list { gap: 14px; }
  .format-list li { padding: 18px 20px; }
  .format-gallery { height: 380px; }
  .format-gallery-track img { height: auto; }
}

/* ===== 战略合作商业体（纯白背景 + 大字Logo占满白卡 + 5×4网格） ===== */
.brand-partners-sec {
  background: #fff;
  padding: 64px 0 72px;
}
.brand-partners-sec .container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}
.bp-title {
  font-size: 52px;
  font-weight: 900;
  color: #1a1a1a;
  text-align: center;
  font-family: 'PingFang SC', 'Microsoft YaHei', 'Hiragino Sans GB', sans-serif;
  letter-spacing: 1px;
  line-height: 1.25;
  margin: 0 0 12px;
}
.bp-hl {
  color: #d70c19;
  border-bottom: 3px solid #d70c19;
  padding-bottom: 4px;
}
.bp-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 28px;
  max-width: 1280px;
  margin: 44px auto 0;
}
.bp-card {
  background: #fff;
  border-radius: 16px;
  aspect-ratio: 5 / 3;
  padding: 18px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06), 0 4px 16px rgba(0,0,0,.06);
  border: 1px solid rgba(0,0,0,.04);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .3s ease, box-shadow .3s ease;
}
.bp-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.bp-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 22px rgba(0,0,0,.10);
}
@media (max-width: 980px) {
  .bp-title { font-size: 38px; }
  .bp-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
}
@media (max-width: 560px) {
  .bp-title { font-size: 26px; }
  .bp-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .bp-card { padding: 12px; border-radius: 12px; }
}

/* ===== 企业动态（最新报道 — 按设计规格表优化） ===== */
.news-sec {
  background: #fff;
  padding: 64px 0 72px;
}
.news-sec .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- 标题行 ---- */
.news-hd {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 16px;
}
.news-title {
  font-size: 52px;
  font-weight: 900;
  color: #1a1a1a;
  margin: 0;
  font-family: 'PingFang SC', 'Microsoft YaHei', 'Hiragino Sans GB', sans-serif;
  letter-spacing: 1px;
  line-height: 1.25;
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.news-title-en {
  font-size: 20px;
  font-weight: 800;
  color: #d70c19;
  letter-spacing: 2px;
}
.news-sub {
  font-size: 13px;
  color: #999;
  margin: 8px 0 0;
  letter-spacing: 1px;
}
.news-tabs {
  display: flex;
  gap: 12px;
}
.news-tab-btn {
  border: 1px solid #e0e0e0;
  background: #fff;
  color: #666;
  font-size: 14px;
  padding: 8px 22px;
  border-radius: 999px;
  cursor: pointer;
  transition: all .25s ease;
  font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
}
.news-tab-btn.active {
  background: #d70c19;
  border-color: #d70c19;
  color: #fff;
}

/* ---- 主体：左头条卡 + 右列表 ---- */
.news-body {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 36px;
  align-items: start;
}

/* 左侧头条大卡 */
.news-feature {
  display: block;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 24px rgba(0,0,0,.08);
  transition: transform .3s ease, box-shadow .3s ease;
  text-decoration: none;
  color: inherit;
}
.news-feature:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 36px rgba(0,0,0,.14);
}
.news-feature-img {
  position: relative;
  aspect-ratio: 1280 / 545;
  background: linear-gradient(135deg, #c41020 0%, #d70c19 50%, #e63946 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.news-feature-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.news-feature-info {
  padding: 22px 24px 26px;
  background: #fff;
}
.news-feature-cat {
  display: inline-block;
  background: #d70c19;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 4px;
  margin-bottom: 14px;
}
.news-feature-info h3 {
  font-size: 19px;
  font-weight: 800;
  color: #1a1a1a;
  margin: 0 0 10px;
  line-height: 1.45;
  font-family: 'PingFang SC', 'Microsoft YaHei', 'Hiragino Sans GB', sans-serif;
}
.news-feature-info p {
  font-size: 14px;
  color: #777;
  line-height: 1.7;
  margin: 0;
}

/* 视频类型头条大卡（自动识别：链接含 weixin.qq.com/sph/ 即为视频） */
.news-feature--video .news-feature-cat {
  background: #e63946;  /* 视频用深红色区分 */
}
.news-feature-play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(0,0,0,.55);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .3s ease, background .3s ease;
  z-index: 2;
}
.news-feature-play span {
  display: block;
  width: 0; height: 0;
  border-style: solid;
  border-width: 12px 0 12px 20px;
  border-color: transparent transparent transparent #fff;
  margin-left: 4px;
}
.news-feature--video:hover .news-feature-play {
  transform: translate(-50%, -50%) scale(1.1);
  background: rgba(215,12,25,.85);
}

/* 右侧新闻列表 */
.news-list {
  display: flex;
  flex-direction: column;
}
.news-item {
  display: flex;
  gap: 20px;
  padding: 22px 4px;
  border-bottom: 1px solid #eee;
  text-decoration: none;
  color: inherit;
  transition: background .2s ease;
  align-items: flex-start;
}
.news-item:last-child { border-bottom: none; }
.news-item:hover { background: #fafafa; }

/* 日期圆圈 — 大红圆 */
.news-date {
  flex-shrink: 0;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: #d70c19;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(215,12,25,.25);
}
.news-date-day {
  font-size: 28px;
  font-weight: 900;
  font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
  line-height: 1;
}
.news-date-mon {
  font-size: 10.5px;
  margin-top: 3px;
  opacity: .9;
  font-weight: 500;
}

/* 新闻文字 */
.news-item-info h4 {
  font-size: 17.5px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 7px;
  line-height: 1.4;
  font-family: 'PingFang SC', 'Microsoft YaHei', 'Hiragino Sans GB', sans-serif;
  transition: color .2s ease;
}
.news-item:hover .news-item-info h4 { color: #d70c19; }
.news-item-info p {
  font-size: 13.5px;
  color: #888;
  line-height: 1.6;
  margin: 0;
}

/* ---- 响应式 ---- */
@media (max-width: 860px) {
  .news-title { font-size: 38px; }
  .news-title-en { font-size: 17px; }
  .news-body { grid-template-columns: 1fr; gap: 28px; }
  .news-date { width: 58px; height: 58px; }
  .news-date-day { font-size: 24px; }
  .news-item-info h4 { font-size: 16px; }
}
@media (max-width: 480px) {
  .news-sec { padding: 48px 0 56px; }
  .news-hd { margin-bottom: 28px; }
  .news-title { font-size: 26px; }
  .news-title-en { font-size: 15px; }
  .news-sub { font-size: 12px; }
  .news-date { width: 54px; height: 54px; }
  .news-date-day { font-size: 22px; }
  .news-feature-info h3 { font-size: 17px; }
  .news-item-info h4 { font-size: 15px; }
  .news-item { gap: 14px; padding: 16px 4px; }
}

/* ============================================================
   加盟流程「轻松8步 开启加盟」— 1:1 复刻移动端 m.weizifu.cn(.cont4)
   ============================================================ */
.flow-sec {
  background: #fbe00e;
  padding: 0 0 60px 0;
}
.flow-sec .container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}
.flow-sec .sec-hd {
  padding: 40px 0;
  margin-bottom: 0;
}
.flow-sec .sec-hd h2 {
  color: #000;
}
.flow-sec .sec-hd h2 .hl { color: #d70c19; }
.flow-sec .flow {
  display: flex;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 0;
  max-width: 100%;
  margin: 0 auto;
}
.flow-sec .flow-s {
  position: relative;
  text-align: center;
  flex: none;
  min-width: 0;
  padding: 0;
}
/* 步骤间箭头（jj.png，循环上浮动画） */
.flow-sec .flow-s:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -70px;
  top: 34px;
  width: 39px;
  height: 31px;
  background: url('../official-site/jj.png') no-repeat center right;
  background-size: 70%;
  animation: flowArrow 1.2s infinite cubic-bezier(.36, 0, .7, 1) alternate backwards;
}
.flow-sec .flow-s:last-child::after { background: none; }
@keyframes flowArrow {
  from { transform: translateY(0); }
  to { transform: translateY(8px); }
}
/* 白色圆形图标 */
.flow-sec .flow-s .s-icon {
  width: 90px;
  height: 90px;
  margin: 0 auto 10px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.flow-sec .flow-s .s-icon img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  transition: all .5s;
}
.flow-sec .flow-s:hover .s-icon img { transform: scale(1.05); }
/* 步骤名称 */
.flow-sec .flow-s .s-name {
  font-size: 20px;
  color: #000;
  font-weight: 500;
  margin: 0 0 2px;
}
/* 步骤序号 */
.flow-sec .flow-s .s-num {
  font-size: 30px;
  color: #d70c19;
  font-weight: 700;
  font-style: normal;
}
/* 响应式：窄屏换行并隐藏箭头 */
@media (max-width: 1100px) {
  .flow-sec .flow { flex-wrap: wrap; justify-content: center; gap: 24px 36px; }
  .flow-sec .flow-s:not(:last-child)::after { display: none; }
}
