/* 若聚凡星 V3 法律合规文档（5 页）、感谢页（/thanks/）、HTML 全站地图（/sitemap/）与 404 报错页样式 */
html { scroll-behavior: smooth; }
body.rf3-v3-page,
body.rf3-v3-legal-page {
  margin: 0;
  background: var(--rf3-bg);
  color: var(--rf3-ink);
  font-family: var(--rf3-sans);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
.rf3-leg-main *,
.rf3-leg-main *::before,
.rf3-leg-main *::after { box-sizing: border-box; }
.rf3-leg-main [id] { scroll-margin-top: 90px; }

.rf3-crumb {
  display: flex; align-items: center; gap: 7px; flex-wrap: wrap;
  font-size: 12.5px; color: rgba(255, 255, 255, 0.65); margin-bottom: 16px;
}
.rf3-crumb a { color: rgba(255, 255, 255, 0.8); text-decoration: none; }
.rf3-crumb a:hover { color: #FF945A; }
.rf3-crumb-cur { color: #fff; font-weight: 600; }

/* ===== COMPACT DARK HERO ===== */
.rf3-lhero {
  position: relative;
  background: #121620;
  color: #fff;
  overflow: hidden;
  padding: 40px 0 48px;
}
.rf3-lhero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 82% 20%, rgba(232, 93, 26, 0.22) 0%, transparent 45%),
    radial-gradient(circle at 14% 86%, rgba(15, 143, 131, 0.14) 0%, transparent 44%),
    linear-gradient(110deg, rgba(16, 20, 29, 0.96) 0%, rgba(22, 19, 23, 0.92) 100%);
  pointer-events: none;
}
.rf3-lhero .rf3-wrap { position: relative; z-index: 2; }
.rf3-lkicker {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 13px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 12px; font-weight: 700; color: #FF945A; margin-bottom: 12px;
}
.rf3-pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--rf3-brand); box-shadow: 0 0 0 4px rgba(232, 93, 26, 0.26); flex-shrink: 0;
}
.rf3-lhero h1 {
  margin: 0 0 12px !important;
  font-size: clamp(26px, 3.2vw, 38px) !important;
  line-height: 1.24 !important;
  font-weight: 900 !important;
  font-family: var(--rf3-sans) !important;
  color: #fff !important;
}
.rf3-lhero-lead {
  margin: 0; font-size: 15px; color: rgba(255, 255, 255, 0.82); line-height: 1.72; max-width: 720px;
}

/* Subnav Pill Bar */
.rf3-lsubnav {
  background: var(--rf3-surface); border-bottom: 1px solid var(--rf3-border); padding: 12px 0;
}
.rf3-lsubnav-in { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rf3-lsubnav-a {
  padding: 6px 14px; border-radius: 999px;
  background: var(--rf3-bg); border: 1px solid var(--rf3-border);
  font-size: 13px; font-weight: 700; color: var(--rf3-ink-2); text-decoration: none;
  transition: all 0.15s;
}
.rf3-lsubnav-a:hover { border-color: var(--rf3-brand); color: var(--rf3-brand); }
.rf3-lsubnav-a.is-cur { background: var(--rf3-ink); border-color: var(--rf3-ink); color: #fff; }

/* ===== LEGAL DOCUMENT PAPER ===== */
.rf3-ldoc-sec { padding: 48px 0 68px; background: var(--rf3-bg); }
@media (max-width: 760px) { .rf3-ldoc-sec { padding: 30px 0 50px; } }
.rf3-ldoc-card {
  max-width: 880px;
  margin: 0 auto;
  background: var(--rf3-surface);
  border: 1px solid var(--rf3-border);
  border-radius: 22px;
  padding: 40px 46px;
  box-shadow: var(--rf3-shadow-sm);
}
@media (max-width: 760px) { .rf3-ldoc-card { padding: 24px 20px; border-radius: 16px; } }
.rf3-ldoc-card .sec { padding: 0 !important; background: transparent !important; border: 0 !important; }
.rf3-ldoc-card .wrap { max-width: 100% !important; padding: 0 !important; margin: 0 !important; }
.rf3-ldoc-card h2 {
  margin: 30px 0 12px; padding-bottom: 9px; border-bottom: 1px solid var(--rf3-border);
  font-size: 20px; font-weight: 900; color: var(--rf3-ink);
}
.rf3-ldoc-card h2:first-child { margin-top: 0; }
.rf3-ldoc-card p { margin: 0 0 14px; font-size: 15.2px; line-height: 1.82; color: var(--rf3-ink-2); }
.rf3-ldoc-card p.lgintro {
  background: var(--rf3-bg); border-left: 4px solid var(--rf3-brand);
  padding: 14px 18px; border-radius: 0 12px 12px 0; color: var(--rf3-ink); font-weight: 500;
}
.rf3-ldoc-card p.upd {
  margin-top: 26px; padding-top: 16px; border-top: 1px dashed var(--rf3-border);
  font-size: 13.4px; color: var(--rf3-muted);
}
.rf3-ldoc-card ul { margin: 0 0 16px; padding-left: 20px; }
.rf3-ldoc-card li { margin-bottom: 7px; font-size: 15px; color: var(--rf3-ink-2); }
.rf3-ldoc-card a { color: var(--rf3-brand); text-decoration: underline; text-underline-offset: 3px; }

/* Harmonized Editorial Policy Body */
.rf3-edit-body { font-family: var(--rf3-sans); color: var(--rf3-ink); --violet: #0F8F83; --violet-d: #0C756B; }
.rf3-edit-body .sec { padding: 50px 0 !important; background: var(--rf3-surface); border-bottom: 1px solid var(--rf3-border); }
.rf3-edit-body .sec.cream { background: var(--rf3-bg) !important; }
.rf3-edit-body .wrap { max-width: 1240px !important; margin: 0 auto !important; padding: 0 24px !important; }
.rf3-edit-body h2, .rf3-edit-body .shead h2 { font-family: var(--rf3-sans) !important; font-weight: 900 !important; color: var(--rf3-ink) !important; }
.rf3-edit-body .eyebrow { color: var(--rf3-brand) !important; font-weight: 800 !important; }
.rf3-edit-body .eyebrow::before { background: var(--rf3-brand) !important; }
@media (max-width: 760px) {
  .rf3-edit-body .sec { padding: 38px 0 !important; }
  .rf3-edit-body .wrap { padding: 0 18px !important; }
  .rf3-edit-body table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

.rf3-ldoc-foot {
  max-width: 880px; margin: 22px auto 0;
  background: var(--rf3-surface); border: 1px solid var(--rf3-border);
  border-radius: 16px; padding: 18px 22px;
  display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap;
  font-size: 13.5px; color: var(--rf3-muted);
}
.rf3-ldoc-foot strong { color: var(--rf3-ink); }

/* ===== HTML SITEMAP (/sitemap/) ===== */
.rf3-sm-search {
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 20px; max-width: 580px;
}
.rf3-sm-search input {
  flex: 1; min-width: 220px; padding: 11px 15px; border-radius: 12px;
  border: 1.5px solid rgba(255, 255, 255, 0.2); background: rgba(255, 255, 255, 0.09);
  color: #fff; font-size: 14.4px; font-family: inherit; outline: none;
}
.rf3-sm-search input::placeholder { color: rgba(255, 255, 255, 0.56); }
.rf3-sm-search input:focus { border-color: #FF945A; background: rgba(255, 255, 255, 0.14); }
.rf3-sm-stat { font-size: 12.6px; color: rgba(255, 255, 255, 0.78); font-weight: 700; }

.rf3-sm-sec { padding: 42px 0 68px; background: var(--rf3-bg); }
.rf3-sm-group {
  background: var(--rf3-surface); border: 1px solid var(--rf3-border);
  border-radius: 20px; padding: 24px 26px; margin-bottom: 20px;
}
.rf3-sm-group[data-hidden="true"] { display: none; }
.rf3-sm-ghead {
  display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap;
  padding-bottom: 12px; margin-bottom: 14px; border-bottom: 1px solid var(--rf3-border);
}
.rf3-sm-ghead h2 { margin: 0; font-size: 18.5px; font-weight: 900; color: var(--rf3-ink); }
.rf3-sm-ghead span {
  font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 999px;
  background: var(--rf3-bg-alt); color: var(--rf3-ink-2);
}
.rf3-sm-links {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px;
}
@media (max-width: 960px) { .rf3-sm-links { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .rf3-sm-links { grid-template-columns: 1fr; } }
.rf3-sm-a {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 9px 12px; border-radius: 10px;
  background: var(--rf3-bg); border: 1px solid var(--rf3-border);
  font-size: 13.4px; font-weight: 600; color: var(--rf3-ink-2); text-decoration: none;
  transition: all 0.14s;
}
.rf3-sm-a[data-hidden="true"] { display: none; }
.rf3-sm-a span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rf3-sm-a::after { content: "→"; opacity: 0.4; font-size: 11.5px; flex-shrink: 0; }
.rf3-sm-a:hover { border-color: var(--rf3-brand); background: #fff; color: var(--rf3-brand); }
.rf3-sm-a:hover::after { opacity: 1; }

/* ===== 404 & THANKS RECOVERY ===== */
.rf3-404-hero {
  position: relative; background: #121620; color: #fff; padding: 64px 0 72px; text-align: center; overflow: hidden;
}
.rf3-404-hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 20%, rgba(232, 93, 26, 0.25) 0%, transparent 55%);
  pointer-events: none;
}
.rf3-404-hero .rf3-wrap { position: relative; z-index: 2; max-width: 760px; }
.rf3-404-code {
  font-size: clamp(56px, 10vw, 96px); font-weight: 900; line-height: 1;
  background: linear-gradient(135deg, #FF945A 0%, #E85D1A 60%, #7BF0E2 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  margin-bottom: 10px;
}
.rf3-404-hero h1 { margin: 0 0 12px !important; font-size: clamp(24px, 3vw, 34px) !important; color: #fff !important; font-weight: 900 !important; }
.rf3-404-hero p { margin: 0 auto 24px; font-size: 15.2px; color: rgba(255, 255, 255, 0.8); max-width: 580px; }
.rf3-404-search {
  display: flex; gap: 8px; max-width: 520px; margin: 0 auto 22px;
}
.rf3-404-search input {
  flex: 1; min-width: 0; padding: 12px 15px; border-radius: 12px;
  border: 1.5px solid rgba(255, 255, 255, 0.22); background: rgba(255, 255, 255, 0.1);
  color: #fff; font-size: 14.5px; font-family: inherit; outline: none;
}
.rf3-404-search input::placeholder { color: rgba(255, 255, 255, 0.56); }
.rf3-404-search input:focus { border-color: #FF945A; background: rgba(255, 255, 255, 0.15); }
@media (max-width: 480px) { .rf3-404-search { flex-direction: column; } }

.rf3-404-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 860px) { .rf3-404-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .rf3-404-grid { grid-template-columns: 1fr; } }
.rf3-404-card {
  background: var(--rf3-surface); border: 1px solid var(--rf3-border);
  border-radius: 16px; padding: 20px; text-decoration: none; color: inherit;
  transition: all 0.16s; box-shadow: var(--rf3-shadow-sm);
}
.rf3-404-card:hover { border-color: var(--rf3-brand); transform: translateY(-2px); }
.rf3-404-card strong { display: block; font-size: 16.5px; color: var(--rf3-ink); margin-bottom: 6px; }
.rf3-404-card span { display: block; font-size: 13.4px; color: var(--rf3-muted); }

/* Thanks Card */
.rf3-thanks-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 22px; max-width: 960px; margin: 0 auto; }
@media (max-width: 780px) { .rf3-thanks-grid { grid-template-columns: 1fr; } }
.rf3-thanks-box {
  background: var(--rf3-surface); border: 1px solid var(--rf3-border);
  border-radius: 20px; padding: 28px; box-shadow: var(--rf3-shadow-sm);
}
.rf3-thanks-box h2 { margin: 0 0 12px; font-size: 20px; color: var(--rf3-ink); }
.rf3-thanks-list { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-direction: column; gap: 10px; }
.rf3-thanks-list li { display: flex; gap: 10px; font-size: 14.5px; color: var(--rf3-ink-2); }
.rf3-thanks-list li::before {
  content: "✓"; width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
  background: var(--rf3-green-soft); color: var(--rf3-green); font-weight: 900; font-size: 12px;
  display: grid; place-items: center; margin-top: 2px;
}
.rf3-thanks-qr {
  width: 168px; height: 168px; margin: 16px auto 14px; padding: 8px;
  background: var(--rf3-bg); border: 1px solid var(--rf3-border);
  border-radius: 14px; display: grid; place-items: center; overflow: hidden;
}
.rf3-thanks-qr img,
.rf3-leg-main .rf3-qr-img {
  width: 100%; height: 100%; max-width: 150px; max-height: 150px;
  object-fit: contain; display: block;
}
