/* =============================================================================
 * 五金工具批发商城 · 平台条款文档样式
 * 适用：用户须知 / 用户注册协议 / 免责声明
 * 公共布局复用 front.css，此处仅条款文档与页脚条款链接
 * ========================================================================== */

.terms-page { padding: 20px 0 40px; }

.terms-doc {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 48px;
  font-size: 15px;
  line-height: 1.95;
  color: var(--text-sub);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(31, 41, 55, .05);
  overflow: hidden;
}
/* 顶部品牌色发丝线 */
.terms-doc::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--brand), #0ea5e9, transparent);
}

/* 面包屑 */
.terms-crumb {
  max-width: 900px;
  margin: 0 auto 12px;
  font-size: 13px;
  color: var(--text-mute);
}
.terms-crumb a { color: var(--text-mute); text-decoration: none; }
.terms-crumb a:hover { color: var(--brand); }

/* 文档头 */
.terms-head {
  text-align: center;
  padding-bottom: 24px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line-soft);
}
.terms-head h1 {
  font-size: 26px;
  margin: 0 0 10px;
  font-weight: 700;
  letter-spacing: .5px;
  color: var(--text);
}
.terms-sub {
  margin: 0 0 8px;
  color: var(--brand);
  font-weight: 600;
  letter-spacing: 2px;
  font-size: 12.5px;
}
.terms-meta { margin: 0; font-size: 12.5px; color: var(--text-mute); font-variant-numeric: tabular-nums; }

/* 审慎阅读提示条 */
.terms-warn {
  position: relative;
  padding: 15px 17px 15px 44px;
  margin-bottom: 30px;
  font-size: 13.5px;
  line-height: 1.85;
  color: #92400e;
  background: var(--warn-soft);
  border: 1px solid rgba(217, 119, 6, .3);
  border-left: 3px solid var(--warn);
  border-radius: 8px;
}
.terms-warn::before {
  content: "!";
  position: absolute;
  left: 15px;
  top: 15px;
  width: 19px; height: 19px;
  border-radius: 50%;
  background: var(--warn);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  line-height: 19px;
  text-align: center;
}
.terms-warn strong { color: #92400e; }
.terms-warn em { font-style: normal; color: #b45309; font-weight: 600; }

/* 正文层级 */
.terms-doc h2 {
  font-size: 18px;
  color: var(--text);
  margin: 32px 0 13px;
  padding-left: 13px;
  border-left: 4px solid var(--brand);
  font-weight: 650;
}
.terms-doc h3 { font-size: 15.5px; color: var(--text); margin: 20px 0 9px; font-weight: 600; }
.terms-doc h2:first-of-type { margin-top: 0; }
.terms-doc p { margin: 0 0 13px; }
.terms-doc ol, .terms-doc ul { margin: 0 0 13px; padding-left: 23px; }
.terms-doc ol li, .terms-doc ul li { margin-bottom: 9px; }
.terms-doc strong { color: var(--text); font-weight: 650; }
.terms-doc u { text-decoration-color: var(--brand); text-underline-offset: 3px; }
.terms-doc a { color: var(--brand); }

/* 表格 */
.terms-doc table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 0 0 18px;
  font-size: 13.5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.terms-doc th, .terms-doc td {
  border-bottom: 1px solid var(--line-soft);
  padding: 10px 13px;
  text-align: left;
  vertical-align: top;
}
.terms-doc th { background: var(--brand-soft); color: var(--text); font-weight: 600; }
.terms-doc tr:last-child td { border-bottom: none; }

/* 编号步骤列表（带圆形序号） */
.terms-doc .step { counter-reset: tstep; padding-left: 0; }
.terms-doc .step > li {
  position: relative;
  padding-left: 36px;
  list-style: none;
  margin-bottom: 12px;
}
.terms-doc .step > li::before {
  counter-increment: tstep;
  content: counter(tstep);
  position: absolute;
  left: 0; top: 4px;
  width: 23px; height: 23px;
  line-height: 23px;
  text-align: center;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: var(--brand);
  box-shadow: 0 2px 8px rgba(26, 109, 216, .3);
}

/* 落款 */
.terms-sign {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px dashed var(--line);
  text-align: right;
  color: var(--text-sub);
}
.terms-sign p { margin: 0 0 5px; }
.terms-company { font-size: 17px; font-weight: 700; color: var(--text); margin-top: 12px !important; }
.terms-date { color: var(--text-mute); font-size: 13px; font-variant-numeric: tabular-nums; }
.terms-record { color: var(--text-mute); font-size: 12.5px; margin-top: 4px !important; }

/* 备案信息卡（免责声明/协议末尾） */
.terms-record-box {
  margin-top: 22px;
  padding: 14px 16px;
  font-size: 13px;
  line-height: 1.9;
  color: var(--text-sub);
  background: #fafbfd;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  text-align: left;
}
.terms-record-box a { color: var(--brand); text-decoration: none; }
.terms-record-box a:hover { text-decoration: underline; }

/* 页脚条款链接样式已统一移至 front.css 的 .footer-bottom 区块，
   此处不再重复定义，避免覆盖前台布局规则 */

@media (max-width: 720px) {
  .terms-page { padding: 12px 0 30px; }
  .terms-doc { padding: 24px 18px; border-radius: 10px; }
  .terms-head h1 { font-size: 20px; }
  .terms-doc { font-size: 14px; line-height: 1.9; }
  .terms-doc h2 { font-size: 16.5px; margin: 26px 0 11px; }
  .terms-doc h3 { font-size: 15px; }
}
