/* ============================================================
   协议页面样式（/terms · /privacy · /refund）
   与登录页同一套视觉：浅底、白卡、蓝主色
   ============================================================ */

.terms-body {
  background: #F5F7FB;
  min-height: 100vh;
  margin: 0;
}

.terms-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 28px 20px 64px;
}

/* ---------- 头部 ---------- */
.terms-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.terms-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: #5B6B85;
  text-decoration: none;
  padding: 7px 12px 7px 8px;
  border-radius: 8px;
  background: #FFF;
  border: 1px solid #E3E8F0;
  transition: all .15s;
  flex: 0 0 auto;
}
.terms-back:hover { color: #1A6BFF; border-color: #BBD3FF; }

.terms-brand { display: flex; align-items: center; gap: 10px; }
.terms-logo {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, #1A6BFF, #0B4ED8);
  display: flex; align-items: center; justify-content: center;
  flex: 0 0 34px;
}
.terms-brand-txt b { display: block; font-size: 14px; color: #18191C; line-height: 1.3; }
.terms-brand-txt span { font-size: 12px; color: #8A94A6; }

/* ---------- 文档切换 ---------- */
.terms-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
  background: #FFF;
  border: 1px solid #E3E8F0;
  border-radius: 10px;
  padding: 5px;
}
.tt {
  flex: 1;
  text-align: center;
  padding: 9px 10px;
  font-size: 13.5px;
  color: #5B6B85;
  text-decoration: none;
  border-radius: 7px;
  transition: all .15s;
}
.tt:hover { background: #F2F6FF; color: #1A6BFF; }
.tt.active {
  background: #1A6BFF;
  color: #FFF;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(26, 107, 255, .25);
}

/* ---------- 正文卡片 ---------- */
.terms-card {
  background: #FFF;
  border: 1px solid #E3E8F0;
  border-radius: 14px;
  padding: 30px 32px 34px;
}

.terms-title {
  font-size: 23px;
  font-weight: 700;
  color: #18191C;
  margin: 0 0 10px;
  letter-spacing: .3px;
}

.terms-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  color: #8A94A6;
  margin-bottom: 20px;
}
.terms-meta b { color: #1A6BFF; font-weight: 600; }
.terms-meta .dot { color: #D0D6E0; }

.terms-lead {
  background: #F2F6FF;
  border-left: 3px solid #1A6BFF;
  border-radius: 0 8px 8px 0;
  padding: 12px 14px;
  font-size: 13.5px;
  line-height: 1.75;
  color: #3A4A63;
  margin-bottom: 26px;
}

/* ---------- 条款分段 ---------- */
.ts { margin-bottom: 26px; }
.ts:last-child { margin-bottom: 0; }

.ts h2 {
  font-size: 15.5px;
  font-weight: 700;
  color: #18191C;
  margin: 0 0 11px;
  padding-left: 11px;
  position: relative;
  line-height: 1.5;
}
.ts h2::before {
  content: '';
  position: absolute;
  left: 0; top: 5px;
  width: 3px; height: 15px;
  border-radius: 2px;
  background: #1A6BFF;
}

.ts p {
  font-size: 14px;
  line-height: 1.9;
  color: #3A4658;
  margin: 0 0 9px;
  text-align: justify;
}
.ts p:last-child { margin-bottom: 0; }
.ts p b { color: #18191C; font-weight: 600; }
.ts p code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12.5px;
  background: #F2F4F8;
  border-radius: 4px;
  padding: 1px 5px;
  color: #C2410C;
}

.terms-loading {
  font-size: 14px;
  color: #8A94A6;
  padding: 40px 0;
  text-align: center;
}

/* ---------- 退款速查块 ---------- */
.rf-quick {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px dashed #E3E8F0;
}
.rq-col { border-radius: 10px; padding: 14px 16px; }
.rq-col.ok { background: #F1FBF5; border: 1px solid #C8EFD8; }
.rq-col.no { background: #FFF6F3; border: 1px solid #FFD9CD; }
.rq-h { font-size: 13.5px; font-weight: 700; margin-bottom: 9px; }
.rq-col.ok .rq-h { color: #12855A; }
.rq-col.no .rq-h { color: #C2410C; }
.rq-col ul { margin: 0; padding-left: 17px; }
.rq-col li { font-size: 13px; line-height: 1.85; color: #3A4658; }

/* ---------- 页脚 ---------- */
.terms-foot {
  margin-top: 22px;
  text-align: center;
}
.tf-links {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-bottom: 10px;
}
.tf-links a {
  font-size: 12.5px;
  color: #5B6B85;
  text-decoration: none;
}
.tf-links a:hover { color: #1A6BFF; }
.tf-note { font-size: 12px; color: #A0A8B8; margin: 0; line-height: 1.7; }

@media (max-width: 560px) {
  .terms-wrap { padding: 18px 14px 48px; }
  .terms-card { padding: 22px 18px 26px; border-radius: 12px; }
  .terms-title { font-size: 20px; }
  .ts p { font-size: 13.5px; }
  .rf-quick { grid-template-columns: 1fr; }
  .terms-tabs { gap: 4px; }
  .tt { font-size: 12.5px; padding: 8px 4px; }
}
