/* ================================================================
   gp-sidebar-redesign.css — 全局侧边栏重构 + 排版细节优化
   适用于所有 page 类型（A/B/C/D 类）
   ================================================================ */

/* ── CSS 变量 ── */
:root {
  /* 与 gp-fertility-theme 同步：品牌紫/粉体系 */
  --gp-primary: #7b66d7;
  --gp-primary-dark: #6d57cd;
  --gp-primary-light: #957fe0;
  --gp-primary-active: #7b66d7;
  --gp-tint-lavender: #F3EEFC;
  --gp-bg-soft: #FAF7FF;
  --gp-border-soft: #E2D9F4;
  --gp-text: #333;
  --gp-text-body: #374151;
  --gp-serif: Caslon, 'Times New Roman', 'Microsoft YaHei New', 'Microsoft Yahei', SimSun, STXihei, 'Miriam Libre', serif;
  --gp-header-h: 8.5rem;
}

/* ================================================================
   PART A — Sidebar 容器重置
   ================================================================ */
.container._template > #sidebar {
  padding: 0 !important;
  margin: 0 !important;
  overflow: visible !important;
}

/* ================================================================
   PART B — Sticky sidebar wrapper (.gp-sidebar-wrap)
   JS 会自动在 #sidebar 内部创建此容器
   ================================================================ */
.gp-sidebar-wrap,
.wts-sidebar-wrap {
  position: sticky;
  top: var(--gp-header-h, 8.5rem);
  margin-top: 5.313rem;
  display: flex;
  flex-direction: column;
  gap: 1.875rem;
}
@media (max-width: 1023px) {
  .gp-sidebar-wrap,
  .wts-sidebar-wrap {
    top: var(--gp-header-h, 7rem);
    gap: 1.25rem;
  }
}

/* ================================================================
   PART C — Card 样式 (.gp-sb-card)
   ================================================================ */
.gp-sidebar-wrap .gp-sb-card,
.wts-sidebar-wrap .wts-sb-card {
  background: #fff;
  border-radius: 1.5625rem;
  overflow: hidden;
  padding: 2.25rem 1.5rem 1.875rem;
  text-align: center;
  transition: box-shadow 0.25s ease;
}
.gp-sidebar-wrap .gp-sb-card:hover,
.wts-sidebar-wrap .wts-sb-card:hover {
  box-shadow: 0 4px 20px rgba(123, 102, 215, 0.1);
}

/* Featured 首卡 */
.gp-sb-card--featured,
.wts-sb-card--featured {
  background: var(--gp-tint-lavender, #F3EEFA) !important;
}

/* Icon */
.gp-sb-card .gp-sb__icon,
.wts-sb-card .wts-sb__icon {
  display: block;
  width: auto;
  max-width: 5rem;
  height: auto;
  max-height: 5rem;
  margin: 0 auto 1.25rem;
  object-fit: contain;
}

/* Title */
.gp-sb-card .gp-sb__title,
.wts-sb-card .wts-sb__title {
  color: var(--gp-primary-active, #7b66d7);
  font-family: var(--gp-serif);
  font-size: 1.625rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 0.625rem;
  text-align: center;
}

/* Description */
.gp-sb-card .gp-sb__desc,
.wts-sb-card .wts-sb__desc {
  color: var(--gp-text, #333);
  font-size: 1rem;
  line-height: 1.625;
  letter-spacing: 0;
  margin: 0 0 1.5rem;
  text-align: center;
}

/* Button */
.gp-sb-card .gp-sb__link,
.wts-sb-card .wts-sb__link {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  max-width: 12.5rem;
  width: 100%;
  height: 2.5rem;
  padding: 0.7rem;
  background: var(--gp-primary-active, #7b66d7);
  border: 2px solid var(--gp-primary-active, #7b66d7);
  border-radius: 4px;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.5rem;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
  cursor: pointer;
}
.gp-sb-card .gp-sb__link:hover,
.gp-sb-card .gp-sb__link:focus,
.wts-sb-card .wts-sb__link:hover,
.wts-sb-card .wts-sb__link:focus {
  background: #fff;
  color: var(--gp-primary-active, #7b66d7);
}
.gp-sb-card .gp-sb__link:focus-visible,
.wts-sb-card .wts-sb__link:focus-visible {
  outline: 3px solid var(--gp-primary-light, #957fe0);
  outline-offset: 2px;
}

/* ================================================================
   PART D — Blog sidebar sticky wrapper
   B 类页面的 .blog-sidebar 内部也用 .gp-sidebar-wrap
   ================================================================ */
#sidebar.blog-sidebar {
  padding: 0 !important;
  margin: 0 !important;
  overflow: visible !important;
}
#sidebar.blog-sidebar > .gp-sidebar-wrap {
  gap: 1.5rem;
}
#sidebar.blog-sidebar > .gp-sidebar-wrap .blog-sidebar-div {
  background: #fff;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 1px 8px rgba(123, 102, 215, 0.05);
}

/* ================================================================
   PART E — Doctor sidebar sticky wrapper (C 类)
   ================================================================ */
#sidebar.doctor-sidebar {
  padding: 0 !important;
  margin: 0 !important;
  overflow: visible !important;
}

/* ================================================================
   PART F — 全局排版细节优化（所有页面）
   ================================================================ */

/* 标题层级 */
.container._template .block-list h2.heading {
  color: var(--gp-primary, #7b66d7);
  font-size: clamp(1.3rem, 2.4vw, 1.6rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin-top: 2.25rem;
  margin-bottom: 0.85rem;
}
/* border-bottom 仅用于纯文章流 h2，排除 checkerboard/group 区域 */
.container._template > #content-box > .block-list > h2.heading,
.container._template > #content-box > .block-list > .group.centered:not(.is-style-checkerboard) > .group-inner h2.heading {
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--gp-border-soft, #EDE8F5);
}
/* h3 去掉左边竖线 */
.container._template .block-list h3.heading {
  color: var(--gp-primary, #7b66d7);
  font-size: clamp(1.02rem, 1.8vw, 1.15rem);
  font-weight: 600;
  line-height: 1.35;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  padding-left: 0;
  border-left: none;
}

/* 手风琴内容文字与标题对齐 */
.container._template .accordion-body {
  padding-left: 1rem !important;
  padding-right: 1rem !important;
}

/* CTA 按钮与后续内容间距 */
.container._template .block-list > .block-wrapper.buttons-wrapper + p,
.container._template .block-list > .block-wrapper.buttons-wrapper + .list {
  margin-top: 2.5rem !important;
}

/* 段落 */
.container._template .block-list .paragraph {
  font-size: 1rem;
  line-height: 1.72;
  color: var(--gp-text-body, #374151);
  margin-bottom: 0.75rem;
}

/* text-box 字体与段落保持一致 */
.container._template .block-list .text-box {
  /* 回到之前你认可的“紫色边框灰色盒子”视觉：文字正常段落风格 */
  font-family: inherit !important;
  font-size: 1rem !important;
  font-weight: 400 !important;
  line-height: 1.72 !important;
  letter-spacing: normal !important;
  color: var(--gp-text-body, #374151) !important;
  background: var(--gp-tint-lavender, #f3eefc) !important;
  /* 左侧紫色边框：细一些、但保持足够醒目 */
  border-left: 3px solid var(--gp-primary-active, #7b66d7) !important;
  box-shadow: none !important;
  padding: 2.5rem 4.5rem 2.5rem 4.25rem !important;
}

/* text-box 间距（确保紫色边框盒子不会贴在一起） */
.container._template #content-box .block-list > .text-box:not(:first-child) { margin-top: 3rem !important; }
.container._template #content-box .block-list > .text-box:not(:last-child) { margin-bottom: 3rem !important; }

/* text-box 底部与后续元素拉开距离 */
.container._template #content-box .block-list > .text-box {
  margin-bottom: 2.5rem !important;
}

/* 紧跟 text-box 的 CTA 按钮间距 */
.container._template #content-box .block-list > .text-box + .block-wrapper.buttons-wrapper {
  margin-top: 2rem !important;
  margin-bottom: 3.5rem !important;
}

/* Egg Donation CTA card: keep only first button, style like reference card */
.container._template .block-list .gp-info-cta-card {
  background: linear-gradient(180deg, var(--gp-tint-lavender, #f3eefc) 0%, #ece6fa 100%);
  border: 1px solid rgba(123, 102, 215, 0.16);
  border-radius: 12px;
  padding: 1.6rem 1.7rem 1.55rem;
  margin: 2.1rem auto 1.8rem;
  max-width: 830px;
  text-align: center;
}

.container._template .block-list .gp-info-cta-card .heading {
  color: var(--gp-primary-active, #7b66d7) !important;
  font-size: clamp(1.75rem, 3.4vw, 2.65rem) !important;
  line-height: 1.12 !important;
  margin-top: 0 !important;
  margin-bottom: 0.72rem !important;
  border-bottom: none !important;
}

.container._template .block-list .gp-info-cta-card .paragraph {
  color: var(--gp-primary-dark, #5f4cb5) !important;
  font-size: 0.98rem !important;
  line-height: 1.58 !important;
  max-width: 700px;
  margin: 0 auto 1.35rem !important;
}

.container._template .block-list .gp-info-cta-card .buttons-wrapper {
  margin: 0 !important;
  display: flex;
  justify-content: center;
  align-items: center;
}

.container._template .block-list .gp-info-cta-card .buttons-wrapper .button {
  background: var(--gp-primary, #7b66d7) !important;
  border-color: var(--gp-primary, #7b66d7) !important;
  color: #fff !important;
  min-width: auto;
  padding: 0.52rem 1.15rem !important;
  font-size: 0.88rem !important;
  border-radius: 4px !important;
  box-shadow: 0 4px 10px rgba(123, 102, 215, 0.18);
}

/* PGT 等页：文末多块 CTA — 与单按钮卡片同底，左对齐纵向紧凑堆叠 */
.container._template .block-list .gp-info-cta-card--triple {
  text-align: left;
}

.container._template .block-list .gp-info-cta-card--triple .heading {
  text-align: left !important;
  padding-bottom: 0.5rem !important;
  margin-bottom: 0.85rem !important;
  border-bottom: 2px solid var(--gp-border-soft, #ede8f5) !important;
}

.container._template .block-list .gp-info-cta-card--triple .paragraph {
  margin: 0 0 1.1rem 0 !important;
  max-width: none !important;
  text-align: left !important;
}

.container._template .block-list .gp-info-cta-card--triple .gp-info-cta-card__stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.38rem;
  width: 100%;
}

.container._template .block-list .gp-info-cta-card--triple .gp-info-cta-card__stack .buttons-wrapper {
  margin: 0 !important;
  display: flex !important;
  justify-content: flex-start !important;
  width: auto;
}

.container._template .block-list .gp-info-cta-card--triple .gp-info-cta-card__stack .button {
  white-space: normal;
  text-align: center;
}

@media (max-width: 767px) {
  .container._template .block-list .gp-info-cta-card--triple .gp-info-cta-card__stack {
    align-items: stretch;
  }

  .container._template .block-list .gp-info-cta-card--triple .gp-info-cta-card__stack .buttons-wrapper {
    width: 100%;
  }

  .container._template .block-list .gp-info-cta-card--triple .gp-info-cta-card__stack .button {
    width: 100%;
  }
}

@media (max-width: 767px) {
  .container._template .block-list .gp-info-cta-card {
    margin: 1.5rem 0 1.1rem;
    padding: 1.2rem 0.9rem 0.95rem;
    border-radius: 10px;
  }

  .container._template .block-list .gp-info-cta-card .heading {
    font-size: 1.55rem !important;
    line-height: 1.16 !important;
  }
}

@media (max-width: 767px) {
  .container._template #content-box .block-list > .text-box:not(:first-child) { margin-top: 1.5rem !important; }
  .container._template #content-box .block-list > .text-box:not(:last-child) { margin-bottom: 1.5rem !important; }
  .container._template .block-list .text-box {
    padding: 1.5rem 1.875rem 1.25rem 1.625rem !important;
    font-size: 1rem !important;
    line-height: 1.75rem !important;
  }
}

/* 链接 */
.container._template .block-list a {
  color: var(--gp-primary, #7b66d7);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease;
}
.container._template .block-list a:hover {
  text-decoration: underline;
  color: var(--gp-primary-dark, #6d57cd);
}

/* 列表 */
.container._template .block-list ul.ul-list {
  padding-left: 1.5rem;
  margin: 0.5rem 0 1rem;
  list-style: none;
}
.container._template .block-list ul.ul-list li {
  position: relative;
  padding-left: 0;
  margin-bottom: 0.3rem;
  font-size: 0.9625rem;
  line-height: 1.55;
  color: var(--gp-text-body, #374151);
}
.container._template .block-list ul.ul-list li::before {
  content: "\2022";
  position: absolute;
  left: -1.1rem;
  top: 0;
  width: auto;
  height: auto;
  border-radius: 0;
  background: none;
  color: var(--gp-primary-light, #957fe0);
  font-size: 1.1em;
  line-height: 1.55;
  transform: none;
  display: inline-block;
}

/* 图片圆角 */
.container._template .block-list figure.media {
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 8px rgba(123, 102, 215, 0.06);
}
.container._template .block-list figure.media img {
  display: block;
  width: 100%;
  height: auto;
}

/* 按钮悬停 */
.container._template .block-list .button {
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.container._template .block-list .button:hover {
  box-shadow: 0 2px 10px rgba(123, 102, 215, 0.15);
}

/* 焦点可见 */
.container._template a:focus-visible,
.container._template .button:focus-visible {
  outline: 3px solid var(--gp-primary-light, #957fe0);
  outline-offset: 2px;
  border-radius: 4px;
}

/* 无障碍：减弱动画 */
@media (prefers-reduced-motion: reduce) {
  .gp-sidebar-wrap .gp-sb-card,
  .gp-sidebar-wrap .gp-sb-card .gp-sb__link,
  .wts-sidebar-wrap .wts-sb-card,
  .wts-sidebar-wrap .wts-sb-card .wts-sb__link,
  .container._template .block-list .button,
  .linkable-icon a,
  .columns.cta-box {
    transition: none !important;
    transform: none !important;
  }
}

/* ================================================================
   PART G — D 类页面细节优化（Fix 2-6）
   ================================================================ */

/* ── Fix 2: 交互优化 ── */

/* P2-1: 所有按钮加 cursor pointer */
.container._template .button,
.container._template a.button,
.accordion-title {
  cursor: pointer;
}

/* P2-2: CTA box hover 视觉反馈 */
.columns.cta-box {
  transition: box-shadow 0.25s ease;
  border-radius: 8px;
}
.columns.cta-box:hover {
  box-shadow: 0 4px 20px rgba(123, 102, 215, 0.1);
}

/* P2-4: linkable-icon hover 放大效果 */
.linkable-icon a {
  display: inline-block;
  transition: transform 0.2s ease;
}
.linkable-icon a:hover {
  transform: scale(1.08);
}

/* P3-2: Blockquote 装饰 */
.container._template .blockquote {
  border-left: 4px solid var(--gp-primary-light, #957fe0);
  padding-left: 1.25rem;
  margin: 1rem 0;
  background: var(--gp-bg-soft, #F8F6FC);
  border-radius: 0 8px 8px 0;
  padding: 1.25rem 1.5rem 1.25rem 1.25rem;
}
.container._template .blockquote cite {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gp-primary, #7b66d7);
  font-style: normal;
}

/* P3-4: CTA box 标题视觉权重增强 */
.columns.cta-box h2.heading {
  font-size: clamp(1.4rem, 2.6vw, 1.75rem) !important;
  border-bottom: none !important;
  padding-bottom: 0 !important;
  text-align: center;
}

/* ── Fix 3: 全宽页面文本行宽限制 ── */
.container._template.full-width .block-list > .paragraph,
.container._template.no-sidebar > #content-box > .block-list > .paragraph {
  max-width: 65ch;
}
.container._template.full-width .paragraph.align-center,
.container._template.no-sidebar .paragraph.align-center {
  margin-left: auto;
  margin-right: auto;
}

/* ── Fix 4: 表单页顶部间距 ── */
.form_template.no-sidebar {
  padding-top: 2rem;
}
.form_template.no-sidebar #content-box {
  padding-top: 1rem;
}

/* ── Fix 6: Testimonial 头像圆形统一 ── */
.section-testimonials figure.media {
  border-radius: 50% !important;
  box-shadow: 0 2px 12px rgba(123, 102, 215, 0.08);
}
.section-testimonials figure.media img {
  border-radius: 50%;
  aspect-ratio: 1;
  object-fit: cover;
}

/* ── Fix 6b: 奖项 logo 区域对齐 ── */
.section-in-the-press .column > .block-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem 2rem;
}
.section-in-the-press figure.media {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent;
}
.section-in-the-press figure.media img {
  width: auto;
  max-height: 5rem;
  object-fit: contain;
}

/* ── Fix: eyebrow 段落颜色确定 ── */
.container._template .paragraph.eyebrow {
  color: var(--gp-primary, #7b66d7);
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* 页脚品牌：覆盖 theme-chunk 内 #footer .logo img 的固定 height（6.25rem/6.875rem），避免 logo 被压扁 */
#footer a.logo,
#footer .only-desktop a.logo,
#footer .only-mobile a.logo {
  display: inline-block;
  line-height: 0;
}
#footer .gp-footer-logo-img {
  width: auto !important;
  height: auto !important;
  max-width: 220px !important;
  max-height: 2.75rem !important;
  object-fit: contain;
  vertical-align: top;
  /* 淡薰衣草底页脚：logo 反白（参考稿） */
  filter: brightness(0) invert(1);
}
@media (max-width: 767px) {
  #footer .gp-footer-logo-img {
    max-width: 200px !important;
    max-height: 2.5rem !important;
  }
}

/* ========== 参考稿：主区白底；Hero/页脚粉灰淡薰衣草；淡奶油金标题；紫上正文纯白 ========== */
#hero:not(.landing-hero),
#hero.doctor-page:not(.landing-hero) {
  background: linear-gradient(
    165deg,
    var(--gp-footer-purple-mid, #957fe0) 0%,
    var(--gp-footer-purple, #7b66d7) 48%,
    var(--gp-footer-purple-deep, #6d57cd) 100%
  ) !important;
}
#hero:not(.landing-hero) .title,
#hero.doctor-page:not(.landing-hero) .title {
  background: transparent !important;
}

/* 页脚薰衣草紫：负边距 + 顶圆角，与白内容区形成柔和分界（覆盖 fd942a3 浅色底规则） */
#footer {
  position: relative;
  z-index: 1;
  margin-top: -2.25rem !important;
  padding-top: 3.25rem !important;
  overflow: hidden !important;
  border-radius: 2.75rem 2.75rem 0 0 !important;
  background: linear-gradient(
    180deg,
    var(--gp-footer-purple-mid, #957fe0) 0%,
    var(--gp-footer-purple, #7b66d7) 42%,
    var(--gp-footer-purple-deep, #6d57cd) 100%
  ) !important;
  color: #ffffff !important;
  border-top: none !important;
  box-shadow: 0 -12px 36px rgba(123, 102, 215, 0.22);
}
#footer:before {
  display: block !important;
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3rem;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
  border-radius: inherit;
}

/* 联系栏：淡金标题，链接白字 */
footer#footer h3 {
  color: var(--gp-footer-gold, #e5b7e1) !important;
}
footer#footer h3 a {
  color: #ffffff !important;
}
footer#footer h3 a:hover,
footer#footer h3 a:focus,
footer#footer h3 a:active {
  color: var(--gp-footer-gold, #e5b7e1) !important;
}

#footer > .container.left-column > div:last-child .blurb h3,
#footer > .container.left-column > div:last-child .blurb.mobile h3 {
  color: var(--gp-footer-gold, #e5b7e1) !important;
}
#footer > .container.left-column > div:last-child .blurb p {
  color: #ffffff !important;
}
#footer > .container.left-column > div:last-child .blurb a {
  color: #ffffff !important;
}
#footer > .container.left-column > div:last-child .blurb a:hover,
#footer > .container.left-column > div:last-child .blurb a:focus,
#footer > .container.left-column > div:last-child .blurb a:active {
  color: var(--gp-footer-gold, #e5b7e1) !important;
}

footer#footer a:not(.social-link):not(.policy_logo) {
  color: #ffffff !important;
}
footer#footer a:not(.social-link):not(.policy_logo):hover,
footer#footer a:not(.social-link):not(.policy_logo):focus,
footer#footer a:not(.social-link):not(.policy_logo):active {
  color: var(--gp-footer-gold, #e5b7e1) !important;
}
footer#footer a.logo,
footer#footer a.logo:hover {
  color: transparent !important;
}

footer#footer .footer-menu-item {
  color: var(--gp-footer-gold, #e5b7e1) !important;
}
footer#footer .footer-menu-item:hover,
footer#footer .footer-menu-item:focus,
footer#footer .footer-menu-item:active {
  color: #ffffff !important;
}

footer#footer #nav-footer .sublist a {
  color: #ffffff !important;
}
footer#footer #nav-footer .sublist a:hover,
footer#footer #nav-footer .sublist a:focus,
footer#footer #nav-footer .sublist a:active {
  color: var(--gp-footer-gold, #e5b7e1) !important;
}

#footer .policy_logo img {
  opacity: 0.95;
}

#footer #footer-bottom {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

#footer .social-link img {
  filter: brightness(0) invert(1);
  opacity: 0.9;
}
#footer .social-link:hover img,
#footer .social-link:focus img {
  opacity: 1;
}

/* 底部条款区：浅白字；分隔线半透明 */
#footer-bottom .container:first-child a,
#footer #footer-bottom .container:first-child a {
  color: rgba(255, 255, 255, 0.78) !important;
}
#footer-bottom .container:first-child a:hover,
#footer-bottom .container:first-child a:focus,
#footer-bottom .container:first-child a:active,
#footer #footer-bottom .container:first-child a:hover {
  color: #ffffff !important;
}

#footer-bottom a:not(:last-of-type),
#footer #footer-bottom a:not(:last-of-type) {
  border-right-color: rgba(255, 255, 255, 0.28) !important;
}

#footer-bottom .copyright,
#footer #footer-bottom .copyright {
  color: rgba(255, 255, 255, 0.65) !important;
}

#footer-bottom .container.translate > div a.translate,
#footer #footer-bottom .container.translate > div a.translate {
  border-color: rgba(255, 255, 255, 0.85) !important;
  color: #ffffff !important;
}
#footer-bottom .container.translate > div a.translate:hover,
#footer-bottom .container.translate > div a.translate:focus,
#footer #footer-bottom .container.translate > div a.translate:hover,
#footer #footer-bottom .container.translate > div a.translate:focus {
  background: #ffffff !important;
  color: var(--gp-primary-active, #7b66d7) !important;
  border-color: #ffffff !important;
}

/* 页脚 Synlang 多终端：语言切换（替代原 Translate 链接） */
#footer-bottom .gp-lang-switch,
#footer #footer-bottom .gp-lang-switch {
  margin-left: auto;
}
#footer-bottom .gp-lang-switch__details,
#footer #footer-bottom .gp-lang-switch__details {
  position: relative;
  list-style: none;
}
#footer-bottom .gp-lang-switch__details summary::-webkit-details-marker,
#footer #footer-bottom .gp-lang-switch__details summary::-webkit-details-marker {
  display: none;
}
#footer-bottom .gp-lang-switch__summary,
#footer #footer-bottom .gp-lang-switch__summary {
  align-items: flex-end;
  border: 1px solid #fff;
  border-radius: 4px;
  color: #fff !important;
  cursor: pointer;
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  line-height: 1.5;
  list-style: none;
  margin-left: auto;
  padding: 4px 10px;
  text-align: right;
}
@media (max-width: 767px) {
  #footer-bottom .gp-lang-switch__summary,
  #footer #footer-bottom .gp-lang-switch__summary {
    margin: 0 0 2.25rem;
    width: fit-content;
  }
}
#footer-bottom .gp-lang-switch__summary:hover,
#footer-bottom .gp-lang-switch__summary:focus,
#footer #footer-bottom .gp-lang-switch__summary:hover,
#footer #footer-bottom .gp-lang-switch__summary:focus {
  background: #ffffff !important;
  border-color: #ffffff !important;
  color: var(--gp-primary-active, #7b66d7) !important;
}
#footer-bottom .gp-lang-switch__iconPair,
#footer #footer-bottom .gp-lang-switch__iconPair {
  display: inline-flex;
  align-items: baseline;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  opacity: 0.95;
}
#footer-bottom .gp-lang-switch__lat,
#footer #footer-bottom .gp-lang-switch__lat {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.95em;
  margin-left: 1px;
}
#footer-bottom .gp-lang-switch__list,
#footer #footer-bottom .gp-lang-switch__list {
  background: rgba(40, 28, 58, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 6px;
  bottom: calc(100% + 6px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
  list-style: none;
  margin: 0;
  min-width: 11rem;
  overflow-x: hidden;
  padding: 0.35rem 0;
  position: absolute;
  right: 0;
  z-index: 50;
}
#footer-bottom .gp-lang-switch__list li,
#footer #footer-bottom .gp-lang-switch__list li {
  margin: 0;
}
#footer-bottom .gp-lang-switch__link,
#footer #footer-bottom .gp-lang-switch__link {
  border: 0 !important;
  box-sizing: border-box;
  color: rgba(255, 255, 255, 0.92) !important;
  display: block;
  font-size: 0.95rem;
  line-height: 1.35;
  margin: 0 !important;
  max-width: 100%;
  padding: 0.45rem 1rem;
  text-decoration: none;
  width: 100%;
}
#footer-bottom .gp-lang-switch__link:hover,
#footer-bottom .gp-lang-switch__link:focus,
#footer #footer-bottom .gp-lang-switch__link:hover,
#footer #footer-bottom .gp-lang-switch__link:focus {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #fff !important;
}
#footer-bottom .gp-lang-switch__link[aria-current="true"],
#footer #footer-bottom .gp-lang-switch__link[aria-current="true"] {
  font-weight: 600;
  color: var(--gp-footer-gold, #e5b7e1) !important;
}
#footer-bottom .gp-lang-switch__single,
#footer #footer-bottom .gp-lang-switch__single {
  align-items: flex-end;
  border: 1px solid #fff;
  border-radius: 4px;
  color: #fff !important;
  display: inline-flex;
  line-height: 1.5;
  margin-left: auto;
  padding: 4px 10px;
}

/* CTA Banner */
.gp-cta-banner {
  background: linear-gradient(135deg, #ede8f5 0%, #d9d0f0 100%);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  margin-top: 3rem;
  margin-bottom: 1rem;
  text-align: center;
}
.gp-cta-banner__title {
  color: var(--gp-primary-active, #3d2d6b);
  font-family: var(--gp-heading-font, Caslon, 'Times New Roman', serif);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 400;
  line-height: 1.35;
  margin: 0 0 1rem;
}
.gp-cta-banner__text {
  color: var(--gp-text-body, #374151);
  font-size: 1rem;
  line-height: 1.72;
  margin: 0 auto 1.5rem;
  max-width: 540px;
}
.gp-cta-banner__btn {
  display: inline-block;
  background: var(--gp-primary-active, #3d2d6b);
  color: #fff !important;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.7rem 2.2rem;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s;
}
.gp-cta-banner__btn:hover {
  background: var(--gp-primary, #7b66d7);
}

/* ================================================================
   正文滚动渐入（与 when-to-see 页 .wts-fade 一致；由 gp-content-reveal.js 赋能）
   仅作用于 #content-box > .block-list 直接子元素，且 .block-list 不含 .wts
   ================================================================ */
.container._template #content-box > .block-list .gp-content-reveal.gp-content-reveal--armed {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.container._template #content-box > .block-list .gp-content-reveal.is-visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

@media (prefers-reduced-motion: reduce) {
  .container._template #content-box > .block-list .gp-content-reveal.gp-content-reveal--armed {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
