/* ============================================================
   协议页共用样式(user-agreement.html / privacy-agreement.html /
   top-up-agreement.html)
   - 不依赖 bootstrap/jQuery UI,本文件独立加载即可
   - PC + H5 自适应,主题色与主站一致(#72c02c)
   ============================================================ */

html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB",
    "Helvetica Neue", Arial, sans-serif;
  color: #555;
  background: #f5f6f7;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}

/* ===== 顶部栏:logo + 返回官网 ===== */
.agree-topbar {
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
  position: sticky;
  top: 0;
  z-index: 10;
}
.agree-topbar-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 16px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.agree-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.agree-brand img {
  max-height: 36px;
  max-width: 130px;
  display: block;
}
.agree-brand .agree-brand-name {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  white-space: nowrap;
}
.agree-back {
  display: inline-block;
  padding: 7px 18px;
  border-radius: 4px;
  background: #72c02c;
  color: #fff;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
}
.agree-back:hover,
.agree-back:focus {
  background: #5fb611;
  color: #fff;
  text-decoration: none;
}

/* ===== 正文卡片 ===== */
.agree-main {
  padding: 36px 16px 48px;
}
.agree-doc {
  max-width: 860px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.05);
  padding: 44px 52px 36px;
}
.agree-title {
  text-align: center;
  font-size: 26px;
  color: #333;
  font-weight: 700;
  margin: 0 0 8px;
  line-height: 1.5;
  padding-bottom: 16px;
  border-bottom: 1px solid #eee;
}
.agree-updated {
  text-align: center;
  font-size: 13px;
  color: #999;
  margin: 0 0 24px;
}

/* 一级条款标题:左侧绿色竖条 */
.agree-h2 {
  font-size: 18px;
  color: #333;
  font-weight: 600;
  margin: 30px 0 12px;
  padding-left: 12px;
  border-left: 4px solid #72c02c;
  line-height: 1.5;
}
/* 二级小标题(如"3.5 K金使用规则""Cookie的使用") */
.agree-h3 {
  font-size: 16px;
  color: #444;
  font-weight: 600;
  margin: 22px 0 10px;
}
.agree-p {
  font-size: 15px;
  text-align: justify;
  margin: 0 0 10px;
  color: #555;
}
.agree-doc b.underline {
  font-weight: 600;
  text-decoration: underline;
  color: #444;
}
.break-all {
  word-break: break-all;
}

/* SDK/第三方说明块 */
.agree-sdk {
  padding: 12px 16px;
  margin: 0 0 12px;
  background: #fafafa;
  border-left: 3px solid #d9ecd0;
  border-radius: 0 4px 4px 0;
}
.agree-sdk .agree-sdk-name {
  font-size: 15px;
  font-weight: 600;
  color: #333;
  margin: 0 0 4px;
}
.agree-sdk .agree-p {
  margin: 0 0 6px;
}
.agree-sdk .agree-p:last-child {
  margin-bottom: 0;
}

/* 文末联系信息块 */
.agree-contact {
  margin-top: 32px;
  padding: 18px 20px;
  background: #f9f9f9;
  border: 1px dashed #e0e0e0;
  border-radius: 6px;
  font-size: 14px;
  color: #666;
  line-height: 2;
  text-align: justify;
}

/* ===== 页脚 ===== */
.agree-footer {
  background: #192f60;
  color: #fff;
  padding: 22px 16px;
  text-align: center;
  font-size: 13px;
  line-height: 2;
}
.agree-footer p {
  margin: 0;
}
.agree-footer a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}
.agree-footer a:hover {
  color: #fff;
  text-decoration: underline;
}

/* ===== H5 适配 ===== */
@media (max-width: 768px) {
  .agree-topbar-inner {
    height: 52px;
    padding: 0 12px;
  }
  .agree-brand img {
    max-height: 30px;
    max-width: 110px;
  }
  .agree-brand .agree-brand-name {
    font-size: 16px;
  }
  .agree-back {
    padding: 6px 14px;
    font-size: 13px;
  }
  .agree-main {
    padding: 16px 10px 32px;
  }
  .agree-doc {
    padding: 26px 18px 22px;
    border-radius: 6px;
  }
  .agree-title {
    font-size: 21px;
  }
  .agree-h2 {
    font-size: 17px;
    margin: 24px 0 10px;
  }
  .agree-h3 {
    font-size: 15px;
    margin: 18px 0 8px;
  }
  .agree-p {
    font-size: 14px;
    margin-bottom: 8px;
  }
  .agree-contact {
    font-size: 13px;
    padding: 14px 16px;
    margin-top: 24px;
  }
}
