/* =============================================
   牵手婚恋 — 服务政策页面样式
   依赖 about.css（页头/横幅基础样式）与 main.css 桌面端规则
   ============================================= */

/* ========== 导语（首段）引言卡片 ========== */
.policy-intro {
  background: linear-gradient(135deg, #fff1f5 0%, #ffeaf1 100%);
  border: 1px solid #ffd9e3;
  border-radius: 14px;
  padding: 22px 22px 18px;
  margin-bottom: 26px;
  text-align: center;
}
.policy-intro .policy-para {
  margin: 0;
  font-size: 15px;
  line-height: 1.9;
  color: #8c4a5e;
  text-align: justify;
}
.policy-intro .policy-para::before,
.policy-intro .policy-para::after {
  content: "“";
  color: #ff8fb3;
  font-size: 22px;
  font-weight: 700;
  font-family: Georgia, serif;
}
.policy-intro .policy-para::after {
  content: "”";
}

/* ========== 正文小节卡片 ========== */
.policy-section {
  counter-reset: policyItem; /* 每个小节内编号从 1 重新开始 */
  background: #fff;
  border: 1px solid #f6ebef;
  border-radius: 14px;
  padding: 22px 22px 14px;
  margin-bottom: 18px;
  box-shadow: 0 2px 12px rgba(255, 88, 155, 0.05);
  transition: box-shadow 0.2s;
}
.policy-section:hover {
  box-shadow: 0 6px 20px rgba(255, 88, 155, 0.1);
}

/* ========== 小节标题（一、平台诚意） ========== */
.policy-sec-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 700;
  color: #333;
}
.policy-sec-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 30px;
  padding: 0 6px;
  border-radius: 8px;
  background: linear-gradient(135deg, #ff6b9d 0%, #ff8fb3 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  flex-shrink: 0;
  line-height: 1;
}
.policy-sec-name {
  flex: 1;
}

/* ========== 正文行 ========== */
.policy-para {
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 1.85;
  color: #4a4a4a;
  text-align: justify;
  word-break: break-word;
}

/* 编号子项行（渲染时已剥离开头"1）2）"，序号由 CSS counter 生成） */
.policy-item {
  counter-increment: policyItem;
  position: relative;
  margin: 0 0 8px;
  padding-left: 26px;
  font-size: 15px;
  line-height: 1.8;
  color: #555;
  text-align: justify;
  word-break: break-word;
}
.policy-item::before {
  content: counter(policyItem) ".";
  position: absolute;
  left: 2px;
  top: 0;
  width: 18px;
  color: #ff6b9d;
  font-weight: 700;
  font-style: normal;
  text-align: right;
}

/* 空内容占位 */
.policy-empty {
  text-align: center;
  color: #9ca3af;
  padding: 60px 0;
}

/* ========== 桌面端（≥1024px）：居中窄栏、去掉卡片过重阴影 ========== */
@media (min-width: 1024px) {
  .policy-page .policy-hero {
    border-bottom: 2px solid var(--color-primary-pale);
  }

  .policy-body {
    max-width: 820px;
    margin: 0 auto;
    padding: 40px 0 60px;
  }

  .policy-intro {
    padding: 28px 40px 24px;
  }
  .policy-intro .policy-para {
    font-size: 16px;
  }

  .policy-section {
    padding: 26px 30px 18px;
    margin-bottom: 20px;
    box-shadow: 0 2px 14px rgba(255, 88, 155, 0.06);
  }

  .policy-sec-title {
    font-size: 20px;
    margin-bottom: 16px;
  }

  .policy-para,
  .policy-item {
    font-size: 16px;
  }
}

/* ========== 结尾落款：愿景标语 + 进入主页入口 ========== */
.policy-closing {
  margin: 34px 0 10px;
  padding: 26px 20px 30px;
  border-radius: 16px;
  background: linear-gradient(135deg, #ff6b9d 0%, #ff8fb3 55%, #ffb3c9 100%);
  text-align: center;
  box-shadow: 0 8px 24px rgba(255, 88, 155, 0.22);
  position: relative;
  overflow: hidden;
}
/* 装饰性光斑 */
.policy-closing::before,
.policy-closing::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  pointer-events: none;
}
.policy-closing::before {
  width: 120px;
  height: 120px;
  top: -46px;
  left: -34px;
}
.policy-closing::after {
  width: 90px;
  height: 90px;
  right: -28px;
  bottom: -34px;
}

.policy-closing-slogan {
  position: relative;
  z-index: 1;
  margin: 0 auto 18px;
  max-width: 90%;
  font-size: 15px;
  line-height: 1.7;
  color: #fff;
  letter-spacing: 1px;
}

.policy-closing-btn {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 30px;
  background: #fff;
  color: #ff589b;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s, box-shadow 0.2s;
}
.policy-closing-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
  text-decoration: none;
}
.policy-closing-btn-heart {
  color: #ff6b9d;
  font-size: 16px;
}
.policy-closing-btn-arrow {
  font-weight: 700;
}

@media (min-width: 1024px) {
  .policy-closing {
    padding: 36px 30px 40px;
    margin: 44px 0 10px;
  }
  .policy-closing-slogan {
    font-size: 17px;
  }
  .policy-closing-btn {
    padding: 13px 32px;
    font-size: 16px;
  }
}

/* 移动端标题栏返回/首页按钮对齐（继承 about.css 的 .page-header 规则） */
