@charset "UTF-8";

/* 政策支持页 (Figma 605:570) 专属样式。
   公共导航/页脚/按钮沿用 home.css；此处只补本页布局。
   还原基准：Figma 桌面 1920px 画板，字号/间距/坐标均取自设计稿。 */

.policy-page {
  position: relative;
  z-index: 1;
  padding-top: 1px;
}

/* 顶部光晕：Figma Ellipse 37(节点 605:572)。
   设计稿 1920 画板坐标:x=-250、y=-564、尺寸 2374×878 → 全部按 /1920 换算为 vw,随宽度等比缩放。 */
.policy-page::before {
  content: "";
  position: absolute;
  left: -13vw;          /* -250 / 1920 */
  top: -29.4vw;         /* -564 / 1920 */
  z-index: 0;
  width: 123.6vw;       /* 2374 / 1920 */
  height: 45.7vw;       /* 878 / 1920 */
  background: url("../assets/policies/glow-top.svg") center / 100% 100% no-repeat;
  opacity: 1;
  filter: brightness(1.4) saturate(1.15);   /* 增强亮度,使光晕更明显 */
  mix-blend-mode: screen;                    /* 在深色背景上叠加发光而非遮挡 */
  pointer-events: none;
}

/* 页面底部光晕:照亮"先导区扶持政策"卡片一带(锚定页面底边,vw 取值,
   淡出半径小于底边距离,不会在页脚交界处切出亮度断层)。 */
.policy-page::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 42vw 22vw at 24% calc(100% - 24vw), rgba(77, 135, 255, 0.14), transparent 70%),
    radial-gradient(ellipse 30vw 17vw at 74% calc(100% - 14vw), rgba(120, 170, 255, 0.09), transparent 72%);
  pointer-events: none;
}

/* 中部极光背景：Figma image 160 */
.policy-aurora {
  position: absolute;
  top: 833px;
  left: 50%;
  transform: translateX(-50%);
  width: 2348px;
  max-width: none;
  height: 1310px;
  opacity: 0.4;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}

/* —— 通用区块标题（居中）—— */
.policy-block {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 20px;
  margin: 0 auto;
}

.policy-eyebrow {
  margin: 0;
  color: #fff;
  font-size: 0.75rem;
  line-height: 1.333;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.policy-title {
  margin: 0;
  max-width: 946px;
  color: #fff;
  font-size: clamp(2.5rem, 3.35vw, 4rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.0375em;
}

.policy-sub {
  margin: 0;
  max-width: 500px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
}

/* —— Hero —— */
.policy-hero {
  position: relative;
  padding-top: 200px;
}

/* —— 三步策略 —— */
.policy-steps {
  position: relative;
  z-index: 2;
  width: min(1246px, calc(100% - 200px));
  margin: 100px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 72px;
  align-items: start;
}

.policy-steps__divider {
  grid-column: 1 / -1;   /* 横线贯穿三列(含列间距),与标题行底部对齐 */
  height: 1px;
  margin: 14px 0;
  background: rgba(255, 255, 255, 0.2);
}

.policy-step-label {
  margin: 0 0 10px;
  color: #fff;
  font-family: var(--font-latin);
  font-size: 0.75rem;
  line-height: 1.333;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.policy-step-name {
  margin: 0;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.333;
  letter-spacing: -0.6px;
}

.policy-step-name b {
  font-weight: 700;
}

.policy-step-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.policy-step-list li {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
  line-height: 1.375;
}

.policy-step-list img {
  flex: none;
  width: 16px;
  height: 16px;
}

/* —— 八大 0 负担 政策 区 —— */
.policy-ring-section {
  position: relative;
  z-index: 2;
  margin-top: 196px;
}

.policy-ring-stage {
  position: relative;
  width: 100%;
  height: 760px;
  margin: 60px auto 0;
}

.policy-ring-stage > * {
  position: absolute;
  left: 50%;
  top: 50%;
}

.policy-ring-orbit,
.policy-ring-arcs {
  width: 586px;
  height: 586px;
  margin-left: -293px;
  margin-top: -293px;
}

.policy-ring-orbit {
  pointer-events: none;
}

/* 8 段弧线:平时细+暗靛蓝,激活段加粗+亮蓝并发光 */
.policy-ring-arcs {
  overflow: visible;
  pointer-events: none;
}

.policy-ring-arcs path {
  fill: none;
  stroke: #1a0b50;
  stroke-width: 5;
  stroke-linecap: round;
  transition: stroke 420ms ease, stroke-width 420ms cubic-bezier(0.19, 1, 0.22, 1);
}

.policy-ring-arcs path.is-active {
  stroke: url(#policyArcGrad2);
  stroke-width: 11;
  filter: drop-shadow(0 0 6px rgba(82, 60, 220, 0.65));
}

/* 当前选中指示点,沿圆环滑到激活标签角度(位置由 JS 逐帧驱动) */
.policy-ring-marker {
  z-index: 3;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: #6a52ff;
  box-shadow: 0 0 14px 3px rgba(106, 82, 255, 0.85);
  pointer-events: none;
  transform: translate(var(--mx, 0px), var(--my, -290px));
}

.policy-ring-core {
  width: 204px;
  margin-left: -102px;
  margin-top: -184px;
  display: grid;
  justify-items: center;
  gap: 10px;
}

.policy-ring-core img {
  width: 204px;
  height: 285px;
  object-fit: cover;
  object-position: bottom;
}

.policy-ring-core__name {
  margin: 0;
  color: #fff;
  font-size: 1.625rem;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
}

.policy-ring-core__desc {
  margin: 0;
  color: #fff;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.5;
  text-align: center;
}

/* 英文版：204px 是按中文字数定的宽度，英文同样内容要多占一倍行数，会从圆环
   中心往下溢出、压到底部的「Zero-Worry Fund」标签上（8 条里有 5 条会撞）。
   加宽并缩小字号；margin-left 必须同步为宽度的一半，否则中心对齐会跑偏。
   实测最长一条描述高度由 140px 降到 79px，8 条全部无碰撞。 */
html[lang^="en"] .policy-ring-core {
  width: 340px;
  margin-left: -170px;
}

html[lang^="en"] .policy-ring-core__desc {
  font-size: 0.875rem;
  line-height: 1.45;
}

/* 描边与首页 .policy-point 统一：conic 渐变 + mask 抠出 1px 炫彩环。
   @property --pp-angle 与 @keyframes policy-point-border 由 home.css 提供
   （本页也加载 home.css），此处直接复用，不重复声明。

   未选中态原本用 opacity:0.4 整体压暗，那会把渐变描边一起冲淡；改成跟首页
   一样用文字与底色的深浅表达状态，描边始终保持满强度。 */
.policy-pill {
  z-index: 5;
  display: inline-flex;
  align-items: center;
  margin-left: var(--x);
  margin-top: var(--y);
  padding: 14px 16px;
  border: 1px solid transparent;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  color: rgba(255, 255, 255, 0.62);
  font-family: inherit;
  font-size: 1rem;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: color 320ms ease, background 320ms ease;
}

.policy-pill::before {
  content: "";
  position: absolute;
  inset: -1px;                 /* 盖住 1px 透明边框区域 */
  border-radius: inherit;
  padding: 1px;                /* 环宽 */
  background: conic-gradient(from var(--pp-angle),
    #2fd4ff, #3f6bff, #6a52ff, #b44dff, #ff4dd2, #6a52ff, #2fd4ff);
  /* 双层 mask 异或:只留 padding 那一圈,内部挖空 */
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
  animation: policy-point-border 6s linear infinite;
}

.policy-pill:hover {
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.12);
}

.policy-pill.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
}

.policy-pill:focus-visible {
  outline: 2px solid #6a52ff;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .policy-ring-marker,
  .policy-ring-arcs path {
    transition: none;
  }

  .policy-pill::before {
    animation: none;
  }
}

/* —— 精英先锋空间 拼贴 —— */
.policy-space {
  position: relative;
  z-index: 2;
  margin-top: 110px;
  overflow: hidden;
}

/* 拼贴区背景光晕:顶部 glow-top 与中部极光覆盖不到这里,补一组光斑防止下半页过暗。
   尺寸/位置取区块自身百分比,到边缘前淡出,不与相邻区块产生亮度断层。 */
.policy-space::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 42% 36% at 76% 30%, rgba(90, 145, 255, 0.16), transparent 70%),
    radial-gradient(ellipse 32% 28% at 20% 72%, rgba(130, 150, 255, 0.1), transparent 72%);
  pointer-events: none;
}

.policy-space__stage {
  position: relative;
  width: min(1920px, 100%);
  height: 1060px;
  margin: 0 auto;
}

.policy-space__heading {
  position: absolute;
  left: 50%;
  top: 352px;
  transform: translateX(-50%);
}

.policy-space__photo {
  position: absolute;
  border-radius: 20px;
  object-fit: cover;
  overflow: hidden;
  will-change: transform;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.22, 1);
}

.policy-space__caption {
  position: absolute;
  width: 276px;
  display: grid;
  gap: 10px;
  will-change: transform;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.22, 1);
}

/* 视差倾斜的平滑过渡(JS 逐帧设值,过渡补足拖尾的纵深感) */
.policy-space__stage {
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.22, 1);
}

@media (prefers-reduced-motion: reduce) {
  .policy-space__photo,
  .policy-space__caption,
  .policy-space__stage {
    transition: none;
  }
}

.policy-space__caption strong,
.policy-space__caption h3 {
  margin: 0;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.6px;
}

.policy-space__caption p {
  margin: 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
  line-height: 1.3;
}

/* —— 先导区扶持政策 卡片 —— */
.policy-whitepaper {
  position: relative;
  z-index: 2;
  width: min(1246px, calc(100% - 200px));
  margin: 120px auto 140px;
  display: flex;
  gap: 40px;
  align-items: stretch;
  padding: 40px 40px 40px 48px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 24px;
  background: rgba(250, 250, 250, 0.06);
}

.policy-whitepaper__text {
  flex: 1 1 auto;
  align-self: center;
  display: grid;
  gap: 24px;
  max-width: 661px;
}

.policy-whitepaper__text h2 {
  margin: 0;
  color: #fff;
  font-size: 2rem;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.075em;
}

.policy-whitepaper__lead {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  line-height: 1.5;
}

.policy-whitepaper__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
  line-height: 1.3;
}

/* 原为每行手写「• 」前缀的 <span>，列表化后用 ::before 还原同样的圆点字符，视觉不变 */
.policy-whitepaper__list li::before {
  content: "• ";
}

.policy-whitepaper__media {
  position: relative;
  flex: 0 0 471px;
  min-height: 243px;
  border-radius: 20px;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.policy-whitepaper__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.policy-whitepaper__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
}

.policy-whitepaper__cta {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 10px;
  /* 标题在媒体区里居中但原本没有左右内边距，英文标题一长就顶到圆角边缘被切。 */
  padding-inline: 32px;
  text-align: center;
}

.policy-whitepaper__cta span {
  color: #fff;
  font-size: 1.5rem;
  line-height: 1.167;
  letter-spacing: -0.5px;
}

.policy-whitepaper__btn {
  display: inline-flex;
  align-items: center;
  padding: 10px 24px;
  border-radius: 20px;
  background: #000;
  color: #fff;
  font-size: 0.875rem;
  line-height: 1.143;
  text-transform: uppercase;
  transition: transform 0.25s cubic-bezier(0.19, 1, 0.22, 1),
    background 0.25s ease, box-shadow 0.25s ease;
}

.policy-whitepaper__btn:hover {
  transform: translateY(-2px);
  background: #1a1a1a;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

.policy-whitepaper__btn:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.policy-whitepaper__btn:focus-visible {
  outline: 2px solid #6a52ff;
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .policy-whitepaper__btn {
    transition: background 0.25s ease;
  }
  .policy-whitepaper__btn:hover {
    transform: none;
  }
}

@media (min-width: 901px) and (max-width: 1100px) {
  .policy-space {
    margin-top: 96px;
  }

  .policy-space__stage {
    left: 50%;
    width: 1280px;
    max-width: none;
    height: 720px;
    margin-left: -640px;
    transform: scale(0.68);
    transform-origin: top center;
  }

  .policy-whitepaper {
    width: calc(100% - 96px);
    flex-direction: column;
    gap: 28px;
    padding: 36px;
    margin-top: 90px;
  }

  .policy-whitepaper__text {
    align-self: stretch;
    max-width: none;
  }

  .policy-whitepaper__text h2 {
    max-width: 560px;
  }

  .policy-whitepaper__media {
    flex-basis: auto;
    min-height: 320px;
  }
}

@media (max-width: 900px) {
  /* —— Hero:补足两侧边距 —— */
  .policy-hero {
    padding-left: 24px;
    padding-right: 24px;
  }

  /* —— STEP 三阶段:单列,每步「标题 + 分隔线 + 列表」成组 —— */
  .policy-steps {
    width: calc(100% - 48px);
    margin-top: 72px;
    display: flex;
    flex-direction: column;
  }
  .policy-steps__divider {
    display: none;               /* 移动端改为每步标题下的分隔线 */
  }
  .policy-step-head {
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }
  .policy-step-list {
    margin: 12px 0 26px;
  }
  /* 交错排序:标题1→列表1→标题2→列表2→标题3→列表3 */
  .policy-step-head:nth-of-type(1) { order: 1; }
  .policy-step-list:nth-of-type(1) { order: 2; }
  .policy-step-head:nth-of-type(2) { order: 3; }
  .policy-step-list:nth-of-type(2) { order: 4; }
  .policy-step-head:nth-of-type(3) { order: 5; }
  .policy-step-list:nth-of-type(3) { order: 6; }

  /* —— 八大 0 负担 圆环:保持原交互形态,整体等比缩小以适配视口 —— */
  .policy-ring-section {
    margin-top: 96px;
    overflow: hidden;            /* 缩放后裁掉极轻微的溢出 */
  }
  .policy-ring-stage {
    transform: scale(0.68);
    transform-origin: top center;
    margin-bottom: -243px;       /* 回收缩放空出的高度 760*(1-0.68) */
  }

  /* —— 精英先锋空间:每张说明图与其文字配对、单列堆叠 —— */
  .policy-space {
    margin-top: 64px;
  }
  .policy-space__stage {
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0 24px;
    transform: none !important;
  }
  .policy-space__heading {
    position: static;
    transform: none;
    order: 0;
    margin: 0 0 20px;
  }
  .policy-space__photo {
    position: static !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 4 / 3;
    opacity: 1 !important;
    transform: none !important;
    margin-bottom: 12px;
  }
  /* 仅保留 3 张带说明的主图,隐藏装饰性小图 */
  .policy-space__photo:nth-of-type(2),
  .policy-space__photo:nth-of-type(3),
  .policy-space__photo:nth-of-type(5),
  .policy-space__photo:nth-of-type(6),
  .policy-space__photo:nth-of-type(7),
  .policy-space__photo:nth-of-type(9) {
    display: none;
  }
  .policy-space__caption {
    position: static !important;
    width: 100% !important;
    transform: none !important;
    margin: 0 0 24px;
  }
  /* 图文配对顺序:静音舱(space-01)、作战室(space-02)、社交场(space-09) */
  .policy-space__photo:nth-of-type(1) { order: 1; }   /* space-01 */
  .policy-space__caption:nth-of-type(2) { order: 2; }  /* 深海静音舱 */
  .policy-space__photo:nth-of-type(4) { order: 3; }   /* space-02 */
  .policy-space__caption:nth-of-type(3) { order: 4; }  /* 敏捷作战室 */
  .policy-space__photo:nth-of-type(8) { order: 5; }   /* space-09 */
  .policy-space__caption:nth-of-type(4) { order: 6; }  /* 灵感社交场 */

  /* —— 白皮书:纵向堆叠 + 收边距 —— */
  .policy-whitepaper {
    width: calc(100% - 48px);
    flex-direction: column;
    padding: 28px;
    margin: 80px auto 100px;
  }
  .policy-whitepaper__media {
    flex-basis: auto;
  }
}

@media (max-width: 560px) {
  .policy-step-name {
    font-size: 1.25rem;
    line-height: 1.4;
  }
  .policy-ring-stage {
    transform: scale(0.46);
    margin-bottom: -410px;       /* 760*(1-0.46) */
  }
}

@media (max-width: 380px) {
  .policy-ring-stage {
    transform: scale(0.4);
    margin-bottom: -456px;       /* 760*(1-0.4) */
  }
}

/* ═══ 手机端：八大 0 负担圆环改为「环形视觉在上 + 标签两列在下」 ══════════
   与首页政策环同样的几何死结：8 个标签沿圆周摆不进窄屏。这里此前的做法是
   整体 transform:scale(0.68) 再用 overflow:hidden 裁掉溢出——标签被缩得很小，
   最靠边的两个（Zero-Cost Smart Computing / Zero-Waiting Incentives）仍会被切掉。
   改为退出径向布局：环形视觉照常占据上方，标签排成两列，不缩放、不裁切。
   policies-ring.js 仍会写 --x/--y（作为 margin），这里一并忽略，脚本不用改。 */
@media (max-width: 768px) {
  .policy-ring-section {
    overflow: visible;           /* 不再需要靠裁切收拾溢出 */
  }

  .policy-ring-stage {
    transform: none;             /* 撤掉 0.68 缩放 */
    height: auto;
    /* 舞台原本 width:100% 直接铺满视口，标签会贴死左右屏幕边缘，
       与全站 24px 的页边距对不齐 */
    width: calc(100% - 2 * var(--page-gutter));
    margin: 24px auto 0;         /* 撤掉为缩放回收高度的负 margin */
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  /* 同首页：虚线环/弧线是为径向排布服务的，改网格后失去对齐依据，隐藏 */
  .policy-ring-orbit,
  .policy-ring-arcs {
    display: none;
  }

  /* 中心信息改为跨两列的普通网格项，高度交给浏览器算。
     先前用「父级 padding-top 预留 + 自身 top 定位」的写法是魔法数字：
     核心块含 285px 高的图，实测总高 459px，以 144px 为中心会一路伸到
     373px，越过预留区压住前四个标签——文案一长就更糟。
     同时压过 html[lang^="en"] 那条更高优先级的加宽规则。 */
  .policy-ring-core,
  html[lang^="en"] .policy-ring-core {
    position: relative;
    z-index: 2;
    grid-column: 1 / -1;
    order: -1;
    left: auto;
    top: auto;
    width: 100%;
    max-width: 300px;
    margin: 0 auto 12px;
    transform: none;
  }

  /* 沿圆周移动的指示点在非径向布局下没有对应位置 */
  .policy-ring-marker {
    display: none;
  }

  /* 标签回到常规文档流，两列平铺；relative 是为了让 z-index 生效，
     否则绝对定位的环形装饰会盖在它们上面 */
  .policy-pill {
    position: relative;
    z-index: 2;
    /* 父级 .policy-ring-stage > * 设了 left/top:50%，对 relative 元素会变成
       偏移量把标签推出屏幕，必须显式归零 */
    left: auto;
    top: auto;
    margin: 0;
    width: 100%;
    min-height: 40px;
    padding: 10px 12px;
    justify-content: center;
    text-align: center;
    white-space: normal;
    line-height: 1.25;
  }
}

/* ═══ 手机端标题 ═══════════════════════════════════════════════════════
   .policy-title 的 clamp 下限 2.5rem 是桌面兜底值，375px 下取到 40px，
   比其它页面的同级标题（28px）明显大一截。home.css 里的移动端 h2 规则
   是裸元素选择器（0,0,1），压不过这里的类选择器（0,1,0），所以要在本页
   自己的样式表里覆盖。 */
@media (max-width: 768px) {
  .policy-title {
    font-size: clamp(1.75rem, 6.4vw, 2.125rem);
    line-height: 1.25;
  }

  /* 白皮书区块的小标题，压到区块标题之下一档 */
  .policy-whitepaper__text h2 {
    font-size: 1.5rem;
  }

  /* 图上的下载标题：24px 在 269px 宽的面板里要占 4 行，且与 14px 的按钮
     比例失衡，缩小一档 */
  .policy-whitepaper__cta span {
    font-size: 1.125rem;
    line-height: 1.3;
  }
}
