/* =============================================================================
 * 灯聚照明 · 平台条款文档统一样式（Emerald Fresh · 翠野清新绿）
 * 适用：用户须知 / 注册协议 / 隐私条款 / 纠纷处理 / 免责声明 / 监管措施
 * 公共布局仍来自 style.css / front-theme.css，此处仅条款文档相关
 * ========================================================================== */

.terms-page { padding: 34px 20px 60px; }

.terms-doc {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 42px 52px;
  font-size: 15px;
  line-height: 1.95;
  color: var(--text-2);
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}
/* 顶部翠绿发丝线 */
.terms-doc::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(14,166,106,.6), rgba(20,184,166,.5), transparent);
}

/* 文档头 */
.terms-head {
  text-align: center;
  padding-bottom: 24px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--border);
}
.terms-head h1 {
  font-size: 27px;
  margin: 0 0 10px;
  font-weight: 800;
  letter-spacing: .5px;
  color: #0F2A1D;
}
.terms-sub {
  margin: 0 0 8px;
  color: var(--primary);
  font-weight: 600;
  letter-spacing: 2px;
  font-size: 12.5px;
}
.terms-meta { margin: 0; font-size: 12.5px; color: var(--muted); 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: #7A4A00;
  background: rgba(245, 166, 35, .10);
  border: 1px solid rgba(245, 166, 35, .30);
  border-left: 3px solid var(--warn);
  border-radius: var(--radius-sm);
}
.terms-warn::before {
  content: "!";
  position: absolute;
  left: 15px;
  top: 15px;
  width: 19px; height: 19px;
  border-radius: 50%;
  background: var(--warn);
  color: #2B1800;
  font-weight: 800;
  font-size: 13px;
  line-height: 19px;
  text-align: center;
}
.terms-warn em { font-style: normal; color: #B45309; font-weight: 600; }

/* 正文层级 */
.terms-doc h2 {
  font-size: 19px;
  color: var(--text);
  margin: 32px 0 13px;
  padding-left: 13px;
  border-left: 4px solid var(--primary);
  font-weight: 700;
}
.terms-doc h3 { font-size: 16px; color: var(--text); margin: 20px 0 9px; font-weight: 600; }
.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: 700; }
.terms-doc u { text-decoration-color: var(--accent); text-underline-offset: 3px; }
.terms-doc a { color: var(--primary); }
.terms-doc code {
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(14, 166, 106, .10);
  color: #0B8A57;
}

/* 表格 */
.terms-doc table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 0 0 18px;
  font-size: 13.5px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.terms-doc th, .terms-doc td {
  border-bottom: 1px solid var(--border);
  padding: 10px 13px;
  text-align: left;
  vertical-align: top;
}
.terms-doc th { background: rgba(14, 166, 106, .08); color: var(--text); font-weight: 600; }
.terms-doc tr:last-child td { border-bottom: none; }

/* 编号步骤列表 */
.terms-doc .step { counter-reset: step; 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: step;
  content: counter(step);
  position: absolute;
  left: 0; top: 3px;
  width: 23px; height: 23px;
  line-height: 23px;
  text-align: center;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;
  color: #F2FAF4;
  background: var(--grad-primary);
  box-shadow: 0 0 16px rgba(14, 166, 106, .36);
}

/* 落款 */
.terms-sign {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px dashed var(--border);
  text-align: right;
  color: var(--text-2);
}
.terms-sign p { margin: 0 0 5px; }
.terms-company { font-size: 17px; font-weight: 700; color: var(--text); margin-top: 11px !important; }
.terms-date { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }

/* 页脚条款链接 */
.site-footer-links a { color: var(--muted); text-decoration: none; }
.site-footer-links a:hover { color: var(--primary); }

@media (max-width: 680px) {
  .terms-page { padding: 20px 14px 44px; }
  .terms-doc { padding: 26px 20px; border-radius: var(--radius); }
  .terms-head h1 { font-size: 21px; }
  .terms-doc h2 { font-size: 17px; }
}
