/**
 * @file policy.css
 * @description 平台政策页（隐私政策 / 用户协议）共用样式
 * 视觉对齐官网：深绿底 + 金色点缀，正文用浅色卡片承载以保证长文可读性
 */

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  background: #0a1f16;
  color: #f4f9f4;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
}

a { color: inherit; }

/* ── 顶部导航 ── */
.policy-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(10, 31, 22, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(232, 182, 76, 0.22);
}
.policy-header-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 2px;
  color: #e8b64c;
  text-decoration: none;
}
.policy-header nav { display: flex; gap: 26px; }
.policy-header nav a {
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  color: rgba(244, 249, 244, 0.72);
  transition: color 0.18s ease;
}
.policy-header nav a:hover { color: #e8b64c; }
.policy-header nav a.active { color: #e8b64c; }

/* ── 正文 ── */
.policy-main {
  flex: 1;
  width: 100%;
  padding: 40px 24px 64px;
}

.prose {
  max-width: 880px;
  margin: 0 auto;
  background: #fff8ed;
  color: #243047;
  border-radius: 18px;
  padding: 48px 56px 56px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.32);
}

.prose h1 {
  font-size: 30px;
  line-height: 1.25;
  margin-bottom: 12px;
  color: #1a2436;
}
.prose .meta {
  font-size: 13px;
  color: #8a7a63;
  margin-bottom: 2px;
}

.prose h2 {
  font-size: 20px;
  line-height: 1.35;
  margin-top: 2.2em;
  padding-top: 0.7em;
  border-top: 1px solid #ffe0b3;
  color: #1a2436;
}
.prose h3 {
  font-size: 16px;
  margin-top: 1.6em;
  color: #2f3d55;
}

.prose p { margin-top: 0.85em; line-height: 1.85; }
.prose p strong { color: #1a2436; }
.prose ul,
.prose ol { margin-top: 0.85em; padding-left: 1.5em; }
.prose li { line-height: 1.85; margin-top: 0.35em; }
.prose a { color: #c25a3a; text-decoration: underline; word-break: break-all; }

/* ── 页脚 ── */
.policy-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding: 28px 24px 40px;
  font-size: 13px;
  color: rgba(244, 249, 244, 0.45);
}
.policy-footer a { color: #e8b64c; text-decoration: none; }
.policy-footer a:hover { text-decoration: underline; }

/* ── 移动端 ── */
@media (max-width: 760px) {
  .policy-header-inner {
    height: auto;
    padding: 14px 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .policy-header nav { flex-wrap: wrap; gap: 16px; }
  .policy-main { padding: 24px 16px 48px; }
  .prose { padding: 32px 22px 40px; border-radius: 14px; }
  .prose h1 { font-size: 24px; }
  .prose h2 { font-size: 18px; }
}
