/* 协议页面：顶部栏 */
.agreement-header {
  width: 100%;
  background-color: #fff;
  border-bottom: 0.0267rem solid #ededed;
}

.header-inner {
  padding: 0.5333rem 0.4267rem;
  box-sizing: border-box;
}

.back-home {
  color: #e7221c;
  font-size: 0.3733rem;
  font-family: PingFangSC-Semibold;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

/* 正文区 */
.agreement-main {
  padding-top: 1.0667rem;
  padding-bottom: 1.6rem;
}

.agreement-title {
  font-size: 0.8rem;
  color: #222;
  font-family: PingFangSC-Semibold;
  font-weight: 700;
  text-align: center;
  line-height: 1.0667rem;
  margin-bottom: 0.8rem;
}

/* 锚点导航 */
.policy-nav {
  display: flex;
  justify-content: center;
  margin-bottom: 1.3333rem;
}

.policy-nav-item {
  padding: 0.2133rem 0.64rem;
  border: 0.0267rem solid #e7221c;
  border-radius: 0.5333rem;
  color: #e7221c;
  font-size: 0.3733rem;
  font-family: PingFangSC-Semibold;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.policy-nav-item + .policy-nav-item {
  margin-left: 0.5333rem;
}

.policy-nav-item:hover {
  background-color: #e7221c;
  color: #fff;
}

/* 当前所在页面的导航项高亮 */
.policy-nav-item.active {
  background-color: #e7221c;
  color: #fff;
}

/* 章节 */
.policy-section {
  margin-bottom: 1.6rem;
  scroll-margin-top: 1.0667rem;
}

.policy-h2 {
  font-size: 0.64rem;
  color: #222;
  font-family: PingFangSC-Semibold;
  font-weight: 700;
  text-align: left;
  line-height: 0.96rem;
  padding-left: 0.32rem;
  border-left: 0.08rem solid #e7221c;
  margin: 1.0667rem 0 0.5333rem 0;
}

.policy-h3 {
  font-size: 0.4533rem;
  color: #333;
  font-family: PingFangSC-Semibold;
  font-weight: 600;
  text-align: left;
  line-height: 0.7467rem;
  margin: 0.8rem 0 0.2667rem 0;
}

.policy-h3-major {
  font-size: 0.5333rem;
  color: #e7221c;
  margin-top: 1.3333rem;
  padding-top: 0.5333rem;
  border-top: 0.0267rem dashed #e5e5e5;
}

.policy-h4 {
  font-size: 0.4rem;
  color: #444;
  font-family: PingFangSC-Semibold;
  font-weight: 600;
  text-align: left;
  line-height: 0.6933rem;
  margin: 0.5333rem 0 0.2133rem 0;
  padding-left: 0.32rem;
}

.policy-p {
  width: 100%;
  overflow-wrap: break-word;
  color: #555;
  font-size: 0.3733rem;
  font-family: PingFangSC-Regular;
  text-align: justify;
  line-height: 0.7467rem;
  margin-bottom: 0.2667rem;
  padding-left: 0.32rem;
}

.policy-meta {
  width: 100%;
  overflow-wrap: break-word;
  color: #999;
  font-size: 0.32rem;
  font-family: PingFangSC-Regular;
  text-align: left;
  line-height: 0.64rem;
  padding-left: 0.32rem;
}

/* 页脚协议链接行 */
.text-wrapper_7 {
  width: 14.56rem;
  margin-top: 0.2667rem;
  display: flex;
  align-items: center;
}

.policy-link {
  color: rgba(255, 255, 255, 1);
  font-size: 0.3733rem;
  font-family: PingFangSC-Semibold;
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
  line-height: 0.3733rem;
  cursor: pointer;
}

.policy-link + .policy-link {
  margin-left: 0.8rem;
}

.policy-link:hover {
  color: #e7221c;
}

/* 小屏适配 */
@media (max-width: 768px) {
  .header-inner {
    flex-wrap: wrap;
  }
  .agreement-title {
    font-size: 0.64rem;
    line-height: 0.9067rem;
  }
  .policy-nav-item {
    padding: 0.1867rem 0.4267rem;
    font-size: 0.32rem;
  }
  .policy-h2 {
    font-size: 0.5333rem;
  }
  .block_2,
  .text-wrapper_6 {
    width: 100%;
    max-width: 14.56rem;
  }
  .text-wrapper_7 {
    width: 100%;
    max-width: 14.56rem;
    flex-wrap: wrap;
  }
}
