/* 接单红线与处罚规则：前台陪玩申请、发布服务页和后台陪玩管理共用。 */
.peiban-rules {
  position: relative;
  display: grid;
  gap: 14px;
  overflow: hidden;
  border: 1px solid rgba(126, 164, 214, .22);
  border-radius: 20px;
  padding: 17px;
  background:
    radial-gradient(circle at 100% 0%, rgba(99, 230, 255, .09), transparent 34%),
    radial-gradient(circle at 0% 100%, rgba(255, 111, 130, .07), transparent 30%),
    linear-gradient(145deg, rgba(12, 24, 40, .94), rgba(5, 10, 19, .97));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .045), 0 18px 44px rgba(0, 0, 0, .24);
  color: #eaf6ff;
}
.peiban-rules::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, transparent, rgba(255, 111, 130, .8), rgba(99, 230, 255, .55), transparent);
  opacity: .8;
}
.peiban-rules.is-admin { margin-bottom: 18px; }
.peiban-rules-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.peiban-rules-head h2 { margin: 3px 0 6px; font-size: 1.24rem; letter-spacing: -.02em; color: #f7fcff; }
.peiban-rules-head p { max-width: 76ch; margin: 0; color: #9fb1c8; font-size: 0.87rem; line-height: 1.65; }
.peiban-rules-kicker { color: #ff9aaa; font-size: 0.78rem; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }
.peiban-rules-version { flex: 0 0 auto; padding: 5px 9px; border: 1px solid rgba(99, 230, 255, .22); border-radius: 999px; background: rgba(99, 230, 255, .06); color: #9edfff; font-size: 0.78rem; font-weight: 800; white-space: nowrap; }
.peiban-rules-redlines { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.peiban-rule-redline {
  display: grid;
  gap: 3px;
  min-width: 0;
  border: 1px solid rgba(255, 111, 130, .24);
  border-radius: 12px;
  padding: 10px 11px;
  background: linear-gradient(145deg, rgba(255, 70, 94, .09), rgba(25, 9, 17, .2));
}
.peiban-rule-redline b { color: #ffb3be; font-size: 0.85rem; }
.peiban-rule-redline span { color: #b6a9b2; font-size: 0.78rem; line-height: 1.55; }
.peiban-rules-details { border-top: 1px solid rgba(126, 164, 214, .14); padding-top: 11px; }
.peiban-rules-details > summary {
  cursor: pointer;
  list-style: none;
  padding: 8px 10px;
  border: 1px solid rgba(99, 230, 255, .18);
  border-radius: 11px;
  background: rgba(99, 230, 255, .045);
  color: #a9e8ff;
  font-size: 0.83rem;
  font-weight: 850;
  user-select: none;
}
.peiban-rules-details > summary::-webkit-details-marker { display: none; }
.peiban-rules-details > summary::after { content: '＋'; float: right; color: #6ed8ff; }
.peiban-rules-details[open] > summary::after { content: '－'; }
.peiban-rule-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 11px; }
.peiban-rule-group { min-width: 0; border: 1px solid rgba(126, 164, 214, .16); border-radius: 13px; padding: 11px 12px; background: rgba(7, 14, 25, .55); }
.peiban-rule-group h3 { margin: 0 0 7px; font-size: 0.86rem; color: #cfefff; }
.peiban-rule-group ul { display: grid; gap: 5px; margin: 0; padding: 0; list-style: none; }
.peiban-rule-group li { position: relative; padding-left: 12px; color: #aab9cb; font-size: 0.78rem; line-height: 1.62; }
.peiban-rule-group li::before { content: ''; position: absolute; top: .55em; left: 0; width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .7; }
.peiban-rule-group.tone-red h3 { color: #ffb3be; }
.peiban-rule-group.tone-red li::before { background: #ff7b8a; }
.peiban-rule-group.tone-cyan h3 { color: #9beaff; }
.peiban-rule-group.tone-cyan li::before { background: #63e6ff; }
.peiban-rule-group.tone-blue h3 { color: #a8c9ff; }
.peiban-rule-group.tone-blue li::before { background: #8bb8ff; }
.peiban-rule-group.tone-amber h3 { color: #ffe0a0; }
.peiban-rule-group.tone-amber li::before { background: #ffd479; }
.peiban-rule-group.tone-violet h3 { color: #d7c2ff; }
.peiban-rule-group.tone-violet li::before { background: #c4a7ff; }
.peiban-rule-group.tone-green h3 { color: #9dffc2; }
.peiban-rule-group.tone-green li::before { background: #86ffb7; }
.peiban-rule-penalties { margin-top: 11px; border: 1px solid rgba(255, 111, 130, .16); border-radius: 13px; overflow: hidden; }
.peiban-rule-penalties h3 { margin: 0; padding: 10px 12px; background: rgba(255, 70, 94, .06); color: #ffc0c8; font-size: 0.86rem; }
.peiban-rule-penalties table { width: 100%; border-collapse: collapse; }
.peiban-rule-penalties th, .peiban-rule-penalties td { padding: 8px 11px; border-top: 1px solid rgba(126, 164, 214, .11); text-align: left; vertical-align: top; font-size: 0.78rem; line-height: 1.55; }
.peiban-rule-penalties th { color: #8ea1b8; font-size: 0.78rem; font-weight: 800; }
.peiban-rule-penalties td:first-child { width: 30%; color: #d4e5f7; font-weight: 750; }
.peiban-penalty-tone { color: #b9c7d8; }
.peiban-penalty-tone.tone-red { color: #ffadb9; }
.peiban-penalty-tone.tone-amber { color: #ffe1a8; }
.peiban-rules-footnote, .peiban-rules-admin-note { margin: 0; padding-top: 2px; color: #8193a9; font-size: 0.78rem; line-height: 1.6; }
.peiban-rules-admin-note { border-top: 1px solid rgba(126, 164, 214, .14); padding-top: 10px; color: #9fb5cc; }
.peiban-rules.is-compact { gap: 10px; padding: 13px; border-radius: 16px; }
.peiban-rules.is-compact .peiban-rules-head h2 { font-size: 1.06rem; }
.peiban-rules.is-compact .peiban-rules-head p { font-size: 0.81rem; }
.peiban-rules.is-compact .peiban-rule-redline { padding: 8px 9px; }
.peiban-rules.is-compact .peiban-rule-redline b { font-size: 0.78rem; }
.peiban-rules.is-compact .peiban-rule-redline span { font-size: 0.78rem; }
.rule-consent-check {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  border: 1px solid rgba(255, 111, 130, .2);
  border-radius: 13px;
  padding: 11px 12px;
  background: linear-gradient(135deg, rgba(255, 70, 94, .07), rgba(99, 230, 255, .035));
  color: #d9e8f7;
  font-size: 0.81rem;
  line-height: 1.6;
  cursor: pointer;
}
.rule-consent-check input {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  margin: 1px 0 0;
  accent-color: #35d39b;
}
.rule-consent-check span { min-width: 0; }
@media (max-width: 760px) {
  .peiban-rules { border-radius: 16px; padding: 13px; gap: 11px; }
  .peiban-rules-head { flex-direction: column; gap: 7px; }
  .peiban-rules-head h2 { font-size: 1.13rem; }
  .peiban-rules-version { align-self: flex-start; }
  .peiban-rules-redlines, .peiban-rule-groups { grid-template-columns: 1fr; }
  .peiban-rule-penalties td:first-child { width: 38%; }
  .rule-consent-check { font-size: 0.78rem; padding: 10px; }
}
