/* RewardScope — enterprise dark / CN typography */
:root {
  --rs-bg: #050505;
  --rs-elev: #0c0c0c;
  --rs-card: rgba(255, 255, 255, 0.035);
  --rs-line: rgba(255, 255, 255, 0.1);
  --rs-text: #fafafa;
  --rs-muted: #a3a3a3;
  --rs-dim: #737373;
  --rs-a: #22d3ee;
  --rs-b: #8b5cf6;
  --rs-warn: #f59e0b;
  --rs-r: 16px;
  --rs-font: "Inter", "Noto Sans SC", "Noto Sans", system-ui, sans-serif;
  --rs-serif: "Noto Serif SC", "Noto Serif", Georgia, serif;
}
.rs-body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--rs-font), "Noto Naskh Arabic", "Noto Sans Devanagari", sans-serif;
  background: var(--rs-bg);
  color: var(--rs-text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
.rs-read-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  z-index: 100;
  pointer-events: none;
  background: linear-gradient(90deg, #22d3ee, #67e8f9, #a78bfa);
  transition: width 0.08s linear;
}
.rs-shell { width: min(100% - 2rem, 900px); margin-inline: auto; }
.rs-main { padding-bottom: 4rem; }

.rs-top {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(5, 5, 5, 0.86);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.rs-top__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
}
.rs-top__end {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.rs-lang__select {
  appearance: auto;
  max-width: min(10rem, 32vw);
  padding: 0.35rem 0.5rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: var(--rs-text);
  font-family: inherit;
  font-size: 0.78rem;
  cursor: pointer;
}
.rs-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
html[dir="rtl"] .rs-top__row {
  flex-direction: row-reverse;
}
html[dir="rtl"] .rs-top__end {
  flex-direction: row-reverse;
}
html[dir="rtl"] .rs-subnav {
  flex-direction: row-reverse;
}
.rs-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}
.rs-brand span { display: flex; flex-direction: column; min-width: 0; }
.rs-brand strong { font-size: 1.05rem; letter-spacing: -0.02em; }
.rs-brand small { font-size: 0.7rem; color: var(--rs-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px; }
@media (max-width: 520px) { .rs-brand small { display: none; } }

.rs-burger {
  display: none;
  width: 44px; height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  align-items: center;
  cursor: pointer;
}
.rs-burger span { display: block; width: 20px; height: 2px; background: var(--rs-text); border-radius: 1px; }

.rs-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.rs-nav a {
  color: var(--rs-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.92rem;
}
.rs-nav a:hover { color: #e5e5e5; }
.rs-nav__cta {
  padding: 0.5rem 1.1rem;
  border-radius: 10px;
  background: linear-gradient(135deg, #0ea5e9 0%, #6366f1 55%, #7c3aed 100%);
  color: #030303 !important;
  font-weight: 600;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.15) inset;
}
@media (max-width: 820px) {
  .rs-burger { display: flex; }
  .rs-nav {
    display: none;
    position: absolute;
    left: 0; right: 0;
    top: 64px;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.25rem 1.5rem;
    background: rgba(12, 12, 12, 0.98);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    gap: 0.75rem;
  }
  .rs-nav.rs-nav--open { display: flex; }
  .rs-nav__cta { text-align: center; }
}

.rs-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  padding: 0.5rem 1rem 0.75rem;
  font-size: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.rs-subnav a {
  color: var(--rs-dim);
  text-decoration: none;
}
.rs-subnav a:hover { color: #e5e5e5; }

.rs-hero {
  padding: 0.5rem 0 2.75rem;
  text-align: center;
}
.rs-hero__title {
  font-size: clamp(1.65rem, 5.2vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.22;
  margin: 0 0 1.35rem;
  color: #fff;
}
.rs-hero__title .rs-grad {
  background: linear-gradient(105deg, #22d3ee 0%, #67e8f9 38%, #a78bfa 92%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.rs-hero .rs-lead {
  font-family: var(--rs-serif);
  font-size: 1.0625rem;
  font-weight: 400;
  color: #a3a3a3;
  max-width: 32rem;
  margin: 0 auto 1.75rem;
  text-align: justify;
  text-align-last: center;
  text-justify: inter-ideograph;
}
.rs-hero .rs-btn--pri {
  padding: 0.9rem 2rem;
  border-radius: 12px;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: linear-gradient(135deg, #0ea5e9 0%, #6366f1 50%, #7c3aed 100%);
  color: #030303 !important;
  border: none;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2) inset, 0 12px 40px rgba(14, 165, 233, 0.18);
}
.rs-hero .rs-btn--pri:hover {
  filter: brightness(1.05);
}

.rs-section {
  margin-top: 2.75rem;
  scroll-margin-top: 88px;
}
.rs-section h2 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
  color: #f5f5f5;
}
.rs-section .rs-sub {
  color: var(--rs-muted);
  margin: 0 0 1.25rem;
  max-width: 40rem;
}
.rs-muted { color: var(--rs-muted); font-size: inherit; }

.rs-card {
  background: var(--rs-card);
  border: 1px solid var(--rs-line);
  border-radius: var(--rs-r);
  padding: 1.5rem;
  backdrop-filter: blur(10px);
}
@keyframes rs-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}
.rs-card--shake {
  animation: rs-shake 0.35s ease;
  border-color: var(--rs-warn) !important;
}

/* Wizard */
.rs-wizard {
  display: grid;
  gap: 1rem;
}
.rs-wiz-step { display: none; }
.rs-wiz-step.rs-wiz-step--active { display: block; }
.rs-wiz-q {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 1rem;
}
.rs-wiz-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.rs-wiz-options label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 3rem;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--rs-line);
  cursor: pointer;
  color: var(--rs-muted);
  transition: border-color 0.15s, background 0.15s;
}
.rs-wiz-options label:hover { border-color: var(--rs-a); color: var(--rs-text); }
.rs-wiz-options input { flex-shrink: 0; accent-color: var(--rs-a); width: 1.1rem; height: 1.1rem; }
.rs-wiz-bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.15);
  overflow: hidden;
  margin-bottom: 0.5rem;
}
.rs-wiz-bar i {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--rs-a), var(--rs-b));
  transition: width 0.25s ease;
}
.rs-wiz-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}
.rs-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.2rem;
  border-radius: 12px;
  font-weight: 600;
  font-family: inherit;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
}
.rs-btn--pri {
  background: linear-gradient(135deg, #0ea5e9 0%, #6366f1 50%, #7c3aed 100%);
  color: #030303;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset;
}
.rs-btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--rs-text);
}
.rs-wiz-result {
  display: none;
  padding: 1.25rem;
  border-radius: var(--rs-r);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(34, 211, 238, 0.06);
}
.rs-wiz-result.rs-wiz-result--show { display: block; }
.rs-wiz-result h3 { margin: 0 0 0.5rem; font-size: 1.1rem; }

/* Deep dive chips */
.rs-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.rs-chip {
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--rs-line);
  background: transparent;
  color: var(--rs-muted);
  font-family: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}
.rs-chip.rs-chip--on {
  border-color: rgba(34, 211, 238, 0.45);
  color: #f5f5f5;
  background: rgba(34, 211, 238, 0.08);
}
.rs-panel { display: none; color: var(--rs-muted); font-size: 0.95rem; }
.rs-panel.rs-panel--show { display: block; }

/* Timeline */
.rs-tl { position: relative; padding-left: 1.5rem; }
.rs-tl::before {
  content: "";
  position: absolute;
  left: 0.45rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--rs-a), var(--rs-b));
  opacity: 0.5;
  border-radius: 2px;
}
.rs-tl-item { margin-bottom: 0.75rem; }
.rs-tl-item button {
  width: 100%;
  text-align: left;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--rs-line);
  background: var(--rs-card);
  color: var(--rs-text);
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}
.rs-tl-item button::after { content: "+"; color: var(--rs-a); font-size: 1.2rem; font-weight: 400; }
.rs-tl-item.rs-tl-item--open button::after { content: "−"; }
.rs-tl-body {
  display: none;
  padding: 0.75rem 1rem 1rem;
  color: var(--rs-muted);
  font-size: 0.92rem;
  border-left: 2px solid var(--rs-line);
  margin-left: 0.5rem;
}
.rs-tl-item.rs-tl-item--open .rs-tl-body { display: block; }

/* Myth cards */
.rs-myth-grid {
  display: grid;
  gap: 1rem;
}
@media (min-width: 640px) {
  .rs-myth-grid { grid-template-columns: repeat(2, 1fr); }
}
.rs-myth {
  perspective: 800px;
  min-height: 140px;
}
.rs-myth-inner {
  position: relative;
  width: 100%;
  min-height: 140px;
  transition: transform 0.5s;
  transform-style: preserve-3d;
  cursor: pointer;
  border-radius: var(--rs-r);
}
.rs-myth.rs-myth--flip .rs-myth-inner { transform: rotateY(180deg); }
.rs-myth-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: var(--rs-r);
  border: 1px solid var(--rs-line);
  padding: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.95rem;
}
.rs-myth-front { background: var(--rs-card); }
.rs-myth-back {
  background: rgba(139, 92, 246, 0.1);
  transform: rotateY(180deg);
  color: #a3a3a3;
}
.rs-myth-hint { font-size: 0.72rem; color: var(--rs-muted); margin-top: 0.35rem; display: block; }

/* FAQ */
.rs-faq button {
  width: 100%;
  text-align: left;
  padding: 1rem 1.1rem;
  border: none;
  border-bottom: 1px solid var(--rs-line);
  background: transparent;
  color: var(--rs-text);
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.rs-faq-item:first-child button { border-top: 1px solid var(--rs-line); border-radius: var(--rs-r) var(--rs-r) 0 0; }
.rs-faq-body {
  display: none;
  padding: 0 1.1rem 1rem;
  color: var(--rs-muted);
  font-size: 0.92rem;
}
.rs-faq-item.rs-faq-item--open .rs-faq-body { display: block; }

/* CTA */
.rs-cta {
  margin-top: 2.5rem;
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: var(--rs-r);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.025);
}
.rs-cta p { color: var(--rs-muted); margin: 0 0 1rem; }

/* Footer */
.rs-foot {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #030303;
  padding: 2.5rem 0 1.5rem;
  margin-top: 2rem;
}
.rs-foot__grid {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 720px) {
  .rs-foot__grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; }
}
.rs-foot__h {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--rs-dim);
  margin: 0 0 0.65rem;
}
.rs-foot__ul { list-style: none; margin: 0; padding: 0; }
.rs-foot__ul a { color: var(--rs-text); text-decoration: none; font-size: 0.9rem; }
.rs-foot__ul a:hover { color: var(--rs-a); }
.rs-foot__txt { font-size: 0.88rem; color: var(--rs-muted); margin: 0; line-height: 1.55; }
.rs-foot__bar {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.75rem;
  color: var(--rs-muted);
}

/* Legal pages */
.rs-legal h1 { font-size: 1.65rem; font-weight: 600; margin: 1rem 0 0.5rem; }
.rs-legal .rs-lead { color: var(--rs-muted); margin-bottom: 2rem; }
.rs-legal h2 { font-size: 1.05rem; margin: 1.75rem 0 0.5rem; }
.rs-legal p, .rs-legal li { color: var(--rs-muted); font-size: 0.95rem; }

/* Contact */
.rs-form label { display: block; font-weight: 600; font-size: 0.85rem; margin: 1rem 0 0.35rem; }
.rs-form input, .rs-form textarea, .rs-form select {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--rs-line);
  background: rgba(15, 23, 42, 0.9);
  color: var(--rs-text);
  font-family: inherit;
}
.rs-form textarea { min-height: 120px; resize: vertical; }

/* 手机端优先：安全区、横向章节条、大触控面 */
@media (max-width: 639px) {
  .rs-top {
    padding-top: env(safe-area-inset-top, 0);
    padding-left: env(safe-area-inset-left, 0);
    padding-right: env(safe-area-inset-right, 0);
  }
  .rs-shell {
    width: min(100% - 1.25rem, 900px);
    max-width: 100%;
  }
  .rs-main {
    padding-bottom: calc(4rem + env(safe-area-inset-bottom, 0));
  }
  .rs-nav.rs-nav--open a {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
  }
  .rs-nav__cta { min-height: 48px; }
  .rs-subnav {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0.5rem;
    padding: 0.5rem 0 0.75rem;
    margin: 0 -0.125rem;
    padding-left: 0.125rem;
  }
  .rs-subnav::-webkit-scrollbar { display: none; }
  .rs-subnav a {
    flex: 0 0 auto;
    padding: 0.5rem 0.8rem;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
  }
  .rs-hero { padding: 0.25rem 0 2rem; }
  .rs-hero__title {
    font-size: clamp(1.28rem, 6.8vw, 1.88rem);
    line-height: 1.3;
    word-break: break-word;
  }
  .rs-hero .rs-lead {
    font-size: 0.96rem;
    line-height: 1.72;
    text-align: left;
    text-align-last: left;
    margin-bottom: 1.5rem;
  }
  .rs-hero .rs-btn--pri {
    width: 100%;
    max-width: 22rem;
    min-height: 48px;
    margin-inline: auto;
    display: flex;
    justify-content: center;
    box-sizing: border-box;
  }
  .rs-section {
    margin-top: 2.1rem;
    scroll-margin-top: 96px;
  }
  .rs-section h2 { font-size: 1.06rem; }
  .rs-section .rs-sub { font-size: 0.9rem; line-height: 1.68; }
  .rs-card { padding: 1.05rem; }
  .rs-wiz-q { font-size: 0.98rem; line-height: 1.5; }
  .rs-wiz-options label { min-height: 52px; padding: 0.85rem 1rem; }
  .rs-wiz-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .rs-wiz-actions .rs-btn {
    width: 100%;
    min-height: 48px;
    justify-content: center;
  }
  .rs-chip {
    min-height: 44px;
    padding: 0.45rem 1rem;
    display: inline-flex;
    align-items: center;
  }
  .rs-tl-item button { min-height: 48px; }
  .rs-faq-item button { min-height: 48px; padding: 1rem 1.1rem; }
  .rs-myth { min-height: 148px; }
  .rs-cta .rs-btn--pri {
    width: 100%;
    max-width: 22rem;
    min-height: 48px;
    margin-inline: auto;
    display: flex;
    justify-content: center;
    box-sizing: border-box;
  }
  .rs-form input, .rs-form textarea {
    font-size: 16px;
    min-height: 48px;
  }
  .rs-form textarea { min-height: 140px; }
}

@media (prefers-reduced-motion: reduce) {
  .rs-myth-inner { transition: none; }
}
