@import url("https://fonts.googleapis.com/css2?family=Sora:wght@500;600;700&family=IBM+Plex+Sans:wght@400;500;600&display=swap");

/* ReelPop 协议/支持页：主题橙 + 白，与充值/分享页统一 */
:root {
  --bg: #FFF8F2;
  --bg-deep: #FFFFFF;
  --ink: #1A120C;
  --ink-soft: #5C4A3A;
  --ink-mute: #8A7462;
  --accent: #E92C0F;
  --accent-soft: #FF721A;
  --accent-deep: #E85A00;
  --accent-glow: rgba(255, 106, 0, 0.22);
  --line: rgba(255, 106, 0, 0.14);
  --panel: #FFFFFF;
  --tile: #FFF4EB;
  --radius: 18px;
  --font-display: "Sora", "Avenir Next", sans-serif;
  --font-body: "IBM Plex Sans", "PingFang SC", "Helvetica Neue", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { min-height: 100%; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* 顶部橙色氛围，不挡内容 */
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto 0;
  height: 220px;
  background:
    linear-gradient(180deg, rgba(255, 106, 0, 0.18) 0%, rgba(255, 106, 0, 0.06) 45%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: "";
  position: fixed;
  width: 240px;
  height: 240px;
  top: -70px;
  right: -50px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 133, 51, 0.28) 0%, transparent 70%);
  filter: blur(28px);
  pointer-events: none;
  z-index: 0;
}

.page {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: 20px 16px 48px;
}

.brand-bar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  animation: rise 0.55s ease both;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 106, 0, 0.28);
  background: rgba(255, 106, 0, 0.10);
  color: var(--accent-deep);
  font-size: 12px;
  font-weight: 600;
}

.doc {
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 26px 18px 28px;
  box-shadow:
    0 12px 32px rgba(255, 106, 0, 0.08),
    0 2px 0 rgba(255, 255, 255, 0.8) inset;
  animation: rise 0.7s ease 0.06s both;
}

.doc-hero {
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.doc-kicker {
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(26px, 6vw, 34px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 10px;
}

.updated {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-mute);
  font-size: 13px;
}

.updated::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(255, 106, 0, 0.16);
}

.intro {
  color: var(--ink);
  font-size: 15px;
  margin: 14px 0 8px;
}

.doc > p {
  font-size: 14.5px;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

.section {
  margin-top: 26px;
  padding-top: 4px;
}

.section h2 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 10px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: baseline;
}

.section h2 .num {
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  min-width: 1.6em;
}

.section p {
  font-size: 14.5px;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

.section ul {
  list-style: none;
  margin: 10px 0 0;
  display: grid;
  gap: 8px;
}

.section li {
  position: relative;
  padding: 10px 12px 10px 28px;
  border-radius: 12px;
  background: var(--tile);
  border: 1px solid rgba(255, 106, 0, 0.10);
  font-size: 14px;
  color: var(--ink-soft);
}

.section li::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 1.05em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--accent-soft), var(--accent));
}

a {
  color: var(--accent-deep);
  text-decoration: none;
  word-break: break-all;
  font-weight: 600;
}

a:hover { color: var(--accent); }

.support-card {
  margin-top: 14px;
  padding: 16px;
  border-radius: 16px;
  border: 1.5px solid rgba(255, 106, 0, 0.28);
  background:
    linear-gradient(135deg, rgba(255, 106, 0, 0.10), rgba(255, 106, 0, 0.03)),
    #FFF9F4;
  box-shadow: 0 8px 20px rgba(255, 106, 0, 0.08);
}

.support-card p {
  margin-bottom: 12px;
  color: var(--ink-soft);
}

.mail-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 22px;
  background: linear-gradient(180deg, var(--accent-soft), var(--accent));
  color: #fff !important;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  box-shadow: 0 10px 22px var(--accent-glow);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.mail-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(255, 106, 0, 0.32);
  color: #fff !important;
}

.mail-btn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.footer {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--ink-mute);
  font-size: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  justify-content: space-between;
}

.footer a {
  color: var(--ink-mute);
  font-weight: 500;
}

.footer a:hover { color: var(--accent); }

/* ── Technical Support page ── */
.support-page .doc {
  padding: 28px 18px 30px;
}

.support-hero-title {
  margin-bottom: 8px;
}

.support-lead {
  font-size: 15px;
  color: var(--ink-soft);
  max-width: 34em;
}

.support-grid {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.support-tile {
  padding: 16px;
  border-radius: 16px;
  border: 1.5px solid var(--line);
  background: var(--tile);
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.support-tile:hover {
  border-color: rgba(255, 106, 0, 0.4);
  background: #FFEFE3;
  box-shadow: 0 8px 18px rgba(255, 106, 0, 0.08);
}

.support-tile h3 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}

.support-tile p {
  font-size: 13.5px;
  color: var(--ink-soft);
  margin: 0;
}

.support-cta {
  margin-top: 22px;
  text-align: center;
  padding: 22px 16px;
  border-radius: 18px;
  border: 1.5px solid rgba(255, 106, 0, 0.28);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 106, 0, 0.14), transparent 55%),
    #FFF9F4;
}

.support-cta h2 {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  color: var(--ink);
}

.support-cta p {
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 16px;
}

.tips {
  margin-top: 18px;
  text-align: left;
  font-size: 13px;
  color: var(--ink-mute);
}

.tips strong {
  color: var(--ink-soft);
  font-weight: 600;
}

.tips ol {
  margin: 8px 0 0 18px;
  display: grid;
  gap: 6px;
  color: var(--ink-soft);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 640px) {
  .page { padding: 28px 20px 56px; }
  .doc { padding: 34px 32px 36px; }
  .support-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand-bar,
  .doc { animation: none; }
  .mail-btn { transition: none; }
}

/* ── vip_bg 主题（隐私 / 技术支持）：固定背景，内容区去底色 ── */
html:has(body.vip-bg-theme),
body.vip-bg-theme {
  background: #FFFFFF !important;
}

body.vip-bg-theme {
  overscroll-behavior-y: none;
}

body.vip-bg-theme::before,
body.vip-bg-theme::after {
  display: none !important;
  content: none !important;
}

/*
  vip_bg 固定层（同充值页）：iOS WKWebView 比 background-attachment:fixed 更稳
  资源：../recharge/vip_bg.png
*/
body.vip-bg-theme .vip-bg-layer {
  display: block;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  background: #FFFFFF url("../recharge/vip_bg.png") top center / 100% auto no-repeat;
}

body.vip-bg-theme .page {
  position: relative;
  z-index: 1;
  background: transparent;
  /* 原生导航浮在 WebView 上：给状态栏 + 44pt 顶栏留空，避免内容顶到返回按钮 */
  padding-top: calc(env(safe-area-inset-top, 0px) + 44px + 12px);
}

/* 原生已有标题，不再展示 Privacy / Terms / Support 胶囊 */
body.vip-bg-theme .brand-bar,
body.vip-bg-theme .chip {
  display: none !important;
}

body.vip-bg-theme .doc {
  background: transparent;
  border: none;
  box-shadow: none;
  padding-left: 4px;
  padding-right: 4px;
}

body.vip-bg-theme .section li {
  background: transparent;
  border: none;
  padding-left: 22px;
  padding-top: 2px;
  padding-bottom: 2px;
}

body.vip-bg-theme .support-tile {
  background: transparent;
  border-color: rgba(255, 106, 0, 0.16);
  box-shadow: none;
}

body.vip-bg-theme .support-tile:hover {
  background: transparent;
  border-color: rgba(255, 106, 0, 0.36);
  box-shadow: none;
}

body.vip-bg-theme .support-cta {
  background: transparent;
  border-color: rgba(255, 106, 0, 0.22);
  box-shadow: none;
}

body.vip-bg-theme .support-card {
  background: transparent;
  box-shadow: none;
}

body.vip-bg-theme .chip {
  background: rgba(255, 255, 255, 0.55);
}
