/* ---------------------------------------------------------------------------
 * 「政策协议」板块（/policies 与 5 份政策正文页）的补充样式。
 *
 * 版式主体直接复用官网自己的 user-agreement-page-module__iHOCKW__* 类
 * （见 tools/build-policy-pages.mjs），这里只补页面上新出现的几个零件：
 * 顶部政策切换条、条目卡片、我同意按钮、落款段落。
 * 配色沿用官网主色：蓝 #2560f5 / 墨 #16192b / 次要文字 #5b6178。
 * ------------------------------------------------------------------------- */

:root {
  --pol-blue: #2560f5;
  --pol-ink: #16192b;
  --pol-muted: #5b6178;
  --pol-line: #1e213614;
  --pol-tint: #2560f5;
}

.pol-page {
  padding-top: 26px;
}

/* ---- 顶部：5 份政策之间的切换条 ---- */
.pol-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
}

.pol-switch__item {
  border: 1px solid var(--pol-line);
  background: #ffffffc2;
  color: var(--pol-muted);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  transition: color 0.14s ease, border-color 0.14s ease, background 0.14s ease;
}

.pol-switch__item:hover {
  color: var(--pol-blue);
  border-color: #2560f559;
  background: #fff;
}

.pol-switch__item.is-active {
  color: #fff;
  background: linear-gradient(135deg, #2560f5, #5b53ee);
  border-color: transparent;
}

/* ---- 正文页：目录里的小标题、落款 ---- */
.pol-article {
  overflow-wrap: break-word;
}

.pol-article strong {
  color: #22263a;
  font-weight: 800;
}

.pol-article a {
  color: var(--pol-blue);
  text-decoration: none;
  border-bottom: 1px solid #2560f566;
}

.pol-footnote {
  color: #6d7288;
  margin: 34px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--pol-line);
  font-size: 13.5px;
  line-height: 1.8;
}

.pol-footnote a {
  color: var(--pol-blue);
  text-decoration: none;
}

/* 目录激活项 */
.pol-toc-active {
  color: var(--pol-blue) !important;
}

/* ---- 政策协议总览页：条目卡片（对应参考图里的弹窗列表） ---- */
.pol-cards {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pol-card {
  margin: 0;
}

.pol-card__link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  background: #ffffffc2;
  border: 1px solid var(--pol-line);
  padding: 15px 18px;
  color: var(--pol-ink);
  text-decoration: none;
  transition: border-color 0.14s ease, box-shadow 0.14s ease, transform 0.14s ease;
}

.pol-card__link:hover {
  border-color: #2560f559;
  box-shadow: 0 18px 40px -32px #1e213680;
  transform: translateY(-1px);
}

.pol-card__label {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.5;
}

.pol-card__meta {
  color: #6d7288;
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
}

.pol-card__icon {
  width: 18px;
  height: 18px;
  color: #9aa1b5;
}

.pol-card__link:hover .pol-card__icon {
  color: var(--pol-blue);
}

/* ---- 我同意 ---- */
.pol-accept {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin: 28px 0 0;
}

.pol-accept__button {
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, #2560f5, #5b53ee);
  color: #fff;
  padding: 11px 26px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: filter 0.14s ease, transform 0.14s ease;
}

.pol-accept__button:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.pol-accept__button[disabled] {
  cursor: default;
  filter: none;
  transform: none;
  opacity: 0.72;
}

.pol-accept__state {
  color: #1a8f5a;
  font-size: 13.5px;
  font-weight: 700;
}

.pol-accept__back {
  color: var(--pol-muted);
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
}

.pol-accept__back:hover {
  color: var(--pol-blue);
}

.pol-entity {
  display: block;
  color: var(--pol-ink);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.6;
}

@media (max-width: 920px) {
  .pol-switch {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }
  .pol-switch__item {
    white-space: nowrap;
  }
  .pol-card__link {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .pol-card__meta {
    display: none;
  }
}

/* ---------------------------------------------------------------------------
 * 页头那几个交互（静态页面里自己重建的 MUI 菜单 / 移动端面板）
 *
 * 尺寸与配色照抄官网运行时渲染出来的菜单：白底、1px 描边、圆角、
 * 阴影 0 20px 44px -22px rgba(53,59,112,.28)，条目 6px 12px 内边距、圆角 8px、
 * 13.5px/600。语言菜单比导航菜单窄一点（内边距 8px、圆角 14px）。
 * ------------------------------------------------------------------------- */

.pol-menu {
  display: none;
  position: fixed;
  z-index: 2147482000;
  background: #fff;
  border: 1px solid rgba(223, 224, 236, 0.92);
  box-shadow: 0 20px 44px -22px rgba(53, 59, 112, 0.28);
  flex-direction: column;
}

.pol-menu.is-open {
  display: flex;
}

.pol-menu--lang {
  min-width: 130px;
  padding: 8px;
  border-radius: 14px;
}

.pol-menu--nav {
  min-width: 188px;
  padding: 6px;
  border-radius: 16px;
}

.pol-menu__item {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  border-radius: 8px;
  padding: 6px 12px;
  color: #23232e;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.14s ease, color 0.14s ease;
}

.pol-menu__item:hover {
  background: rgba(120, 110, 240, 0.1);
  color: #5b6cff;
}

.pol-menu__item.is-selected {
  background: rgba(120, 110, 240, 0.14);
  color: #5b6cff;
}

/* ---- 移动端展开面板 ---- */

.pol-navpanel {
  display: none;
  flex-direction: column;
  gap: 8px;
  padding: 12px 20px 22px;
  background: #f5f5f7;
  border-top: 1px solid rgba(30, 33, 54, 0.08);
}

.pol-navpanel.is-open {
  display: flex;
}

.pol-navpanel__link {
  background: #fff;
  border: 1px solid rgba(30, 33, 54, 0.08);
  border-radius: 10px;
  padding: 12px 16px;
  color: #16192b;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.pol-navpanel__link:hover {
  color: #2560f5;
  border-color: rgba(37, 96, 245, 0.35);
}

.pol-navpanel__group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pol-navpanel__head {
  margin: 6px 2px 0;
  color: #6d7288;
  font-size: 13px;
  font-weight: 800;
}

.pol-navpanel__locale {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  background: #fff;
  border: 1px solid rgba(30, 33, 54, 0.08);
  border-radius: 10px;
  padding: 12px 16px;
  color: #16192b;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.pol-navpanel__localeIcon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.6px solid currentColor;
  font-size: 11px;
  font-weight: 800;
}

.pol-navpanel__badge {
  margin-left: auto;
  background: rgba(120, 110, 240, 0.14);
  color: #5b6cff;
  border-radius: 6px;
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 800;
}

.pol-navpanel__account {
  background: #fff;
  border: 1px solid rgba(30, 33, 54, 0.12);
  border-radius: 10px;
  padding: 12px 16px;
  color: #16192b;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.pol-navpanel__account:last-child {
  background: #16192b;
  border-color: #16192b;
  color: #fff;
}
