/* 社区成长体系 2026 — 对齐贡献攻略字号/色板/导航结构
 * 基准内容宽 1440；小屏媒体查询降列
 */

/* 站点 basic.css 给 body 写了 overflow-x:hidden，会把 overflow-y 算成 auto，
   sticky 快速导航因此失效；改用 clip 防横向溢出且不破坏吸顶 */
html:has(#ok_growth2026),
body:has(#ok_growth2026) {
  overflow-x: clip !important;
  overflow-y: visible !important;
}

.ok-growth2026 {
  --ok-blue: #1460fa;
  --ok-blue-deep: #0c7beb;
  --ok-text: #262626;
  --ok-text-body: #3d3d3d;
  --ok-muted: #666;
  --ok-white: #ffffff;
  --ok-radius-card: 20px;
  --ok-radius-sm: 14px;
  --ok-shadow: 0 8px 24px rgba(39, 63, 126, 0.08);
  --ok-content: 1440px;
  --ok-font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --g-space-section: 80px;
  --g-bg: #f0f4fa;
  --g-action: linear-gradient(180deg, #4c97ff 0%, #1460fa 100%);
  --g-action-orange: linear-gradient(180deg, #ffc86a 0%, #f39212 100%);
  --ok-ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ok-motion-fast: 0.28s;
  --ok-motion: 0.4s;

  font-family: var(--ok-font);
  color: var(--ok-text);
  background: linear-gradient(180deg, #e8f3ff 0%, var(--g-bg) 220px);
  /* clip 不会变成滚动容器，sticky 才能相对窗口吸顶 */
  overflow-x: clip;
  overflow-y: visible;
}

.ok-growth2026,
.ok-growth2026 *,
.ok-growth2026 *::before,
.ok-growth2026 *::after {
  box-sizing: border-box;
}

.ok-growth2026 [hidden] {
  display: none !important;
}

.ok-growth2026 h1,
.ok-growth2026 h2,
.ok-growth2026 h3,
.ok-growth2026 p,
.ok-growth2026 dl,
.ok-growth2026 dd,
.ok-growth2026 ol {
  margin: 0;
  padding: 0;
}

.ok-growth2026 a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.ok-growth2026 button {
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.ok-growth2026 button:focus,
.ok-growth2026 button:focus-visible,
.ok-growth2026 button:active {
  outline: none;
  box-shadow: none;
}

.ok-growth2026 a:focus-visible {
  outline: 2px solid var(--ok-blue);
  outline-offset: 2px;
}

.ok-growth2026 img {
  max-width: 100%;
  vertical-align: middle;
}

.ok-growth2026 .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

.ok-growth2026 .levels,
.ok-growth2026 .join,
.ok-growth2026 .rules,
.ok-growth2026 .redeem {
  /* 吸顶快速导航高度 */
  scroll-margin-top: 100px;
}

/* ========== Hero（底图撑高 + 左侧文案叠层；对齐贡献攻略，不写死 height） ========== */
.growth-hero {
  position: relative;
  background: linear-gradient(90deg, #ece8ff 0%, #eef5ff 45%, #f7fbff 100%);
  overflow: hidden;
  text-align: left !important;
}

.ok-growth2026 .growth-hero__img {
  display: block;
  width: 100%;
  height: auto;
}

.growth-hero__inner {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  pointer-events: none;
}

.growth-hero__copy {
  width: min(var(--ok-content), calc(100% - 48px));
  margin: 0 auto;
  max-width: 640px;
  margin-left: max(24px, calc((100% - var(--ok-content)) / 2));
  pointer-events: auto;
}

.growth-hero__copy h1 {
  margin: 0;
  font-size: 38px;
  line-height: 1.25;
  font-weight: 700;
  color: #0d2f66;
  letter-spacing: 0.02em;
}

.growth-hero__copy h1::after {
  content: "";
  display: block;
  width: 44px;
  height: 4px;
  margin: 10px 0 12px;
  border-radius: 4px;
  background: #ffa61d;
}

.growth-hero__desc {
  max-width: 34em;
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
  color: var(--ok-text);
}

/* ========== 快捷导航（滚动吸顶 + 磨砂） ========== */
.ok-growth2026 .quick-nav {
  width: min(var(--ok-content), calc(100% - 48px));
  margin: 16px auto 28px;
  position: sticky;
  top: 0;
  z-index: 40;
  min-height: 72px;
  display: grid;
  align-items: center;
  grid-template-columns: 140px repeat(4, 1fr);
  padding: 8px 10px 8px 28px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(20, 96, 250, 0.16);
  border-radius: var(--ok-radius-sm);
  box-shadow: 0 8px 28px rgba(39, 63, 126, 0.12);
  backdrop-filter: blur(16px) saturate(1.35);
  -webkit-backdrop-filter: blur(16px) saturate(1.35);
}

.ok-growth2026 .quick-nav strong {
  border-right: 1px solid #6fabe8;
  padding-right: 18px;
  margin-right: 8px;
  font-size: 18px;
  font-weight: 700;
  color: var(--ok-text);
  white-space: nowrap;
}

.ok-growth2026 .quick-nav a {
  justify-self: center;
  padding: 10px 14px;
  font-size: 17px;
  font-weight: 700;
  color: var(--ok-text);
  border-bottom: 3px solid transparent;
  border-radius: 4px 4px 0 0;
  transition:
    color var(--ok-motion-fast) ease,
    border-color var(--ok-motion-fast) ease,
    background-color var(--ok-motion-fast) ease;
}

.ok-growth2026 .quick-nav a:hover {
  color: var(--ok-blue);
  background: rgba(20, 96, 250, 0.04);
}

.ok-growth2026 .quick-nav a[aria-current] {
  color: var(--ok-blue);
  border-bottom-color: var(--ok-blue);
}

/* ========== 正文 / 章节头 ========== */
.growth-main {
  width: min(var(--ok-content), calc(100% - 48px));
  margin: 0 auto;
  padding: 72px 0 140px;
}

.growth-section {
  margin-top: var(--g-space-section);
}

.growth-section:first-child {
  margin-top: 0;
}

.growth-section__head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
}

.growth-section__num {
  flex: 0 0 68px;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #4c97ff 0%, #1460fa 58%, #0b4ad6 100%);
  color: var(--ok-white);
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(20, 96, 250, 0.28);
}

.growth-section__title {
  margin: 0;
  font-size: 26px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ok-text);
}

.growth-section__desc {
  margin: 8px 0 0;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--ok-text-body);
}

/* ========== 等级体系 ========== */
.ok-growth2026 .trail {
  position: relative;
  width: 100%;
  height: 280px;
  margin: 0 auto;
}

.ok-growth2026 .trail-path {
  position: absolute;
  left: 0;
  right: 0;
  top: 118px;
  width: 100%;
  height: 90px;
  pointer-events: none;
}

.ok-growth2026 .trail-path path {
  fill: none;
  stroke: #7eb8f5;
  stroke-width: 1.6;
  stroke-dasharray: 6 4;
  stroke-linecap: round;
}

.ok-growth2026 .waypoints {
  position: absolute;
  inset: 0 12px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.ok-growth2026 .waypoint {
  --drop: 0;
  --tint: #e8f4ff;
  display: flex;
  flex-direction: column;
  align-items: center;
  align-self: start;
  margin-top: var(--drop);
  padding: 4px 4px 8px;
  border-radius: 16px;
  transition: transform var(--ok-motion-fast) var(--ok-ease-out);
}

.ok-growth2026 .waypoint:hover {
  transform: translateY(-4px);
}

.ok-growth2026 .waypoint:nth-child(1) { --drop: 92px; --tint: #e4f4ff; }
.ok-growth2026 .waypoint:nth-child(2) { --drop: 68px; --tint: #e4f8ef; --tier-ink: #135b3e; }
.ok-growth2026 .waypoint:nth-child(3) { --drop: 42px; --tint: #e4efff; }
.ok-growth2026 .waypoint:nth-child(4) { --drop: 22px; --tint: #f0e8ff; --tier-ink: #4b2f86; }
.ok-growth2026 .waypoint:nth-child(5) { --drop: 0; --tint: #fff0d6; --tier-ink: #793800; }

.ok-growth2026 .emblem {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  filter: drop-shadow(0 8px 16px rgba(39, 63, 126, 0.1));
}

.ok-growth2026 .emblem img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ok-growth2026 .waypoint[aria-selected="true"] .emblem {
  filter:
    drop-shadow(0 0 0.5px #1460fa)
    drop-shadow(0 0 6px rgba(20, 96, 250, 0.4))
    drop-shadow(0 10px 18px rgba(39, 63, 126, 0.14));
}

.ok-growth2026 .waypoint-dot {
  width: 12px;
  height: 12px;
  margin-top: 2px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #83c5fc;
  box-shadow: 0 0 0 3px rgba(131, 197, 252, 0.22);
}

.ok-growth2026 .waypoint[aria-selected="true"] .waypoint-dot {
  background: var(--ok-blue);
  box-shadow: 0 0 0 4px rgba(20, 96, 250, 0.18);
}

.ok-growth2026 .waypoint-name {
  display: grid;
  place-items: center;
  min-width: 100px;
  height: 30px;
  margin-top: 10px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--tint);
  color: var(--tier-ink, var(--ok-text));
  font-size: 15px;
  font-weight: 600;
}

.ok-growth2026 .waypoint-score {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 400;
  color: var(--ok-muted);
}

.ok-growth2026 .level-detail {
  position: relative;
  z-index: 1;
  width: 100%;
  margin: 8px auto 0;
  min-height: 148px;
  border-radius: var(--ok-radius-card);
  background: var(--ok-white);
  box-shadow: var(--ok-shadow);
  transition: box-shadow var(--ok-motion-fast) var(--ok-ease-out);
}

.ok-growth2026 .level-detail::before {
  content: "";
  position: absolute;
  left: var(--pointer, 10.15%);
  top: -7px;
  width: 14px;
  height: 14px;
  background: #fff;
  border: solid rgba(20, 96, 250, 0.12);
  border-width: 1px 0 0 1px;
  transform: translateX(-50%) rotate(45deg);
  box-shadow: -2px -2px 6px rgba(39, 63, 126, 0.04);
}

.ok-growth2026 .level-detail dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 28px 12px 24px;
  text-align: center;
  background:
    linear-gradient(#e6eef8, #e6eef8) calc(100% / 3) 28px / 1px calc(100% - 52px) no-repeat,
    linear-gradient(#e6eef8, #e6eef8) calc(200% / 3) 28px / 1px calc(100% - 52px) no-repeat;
}

.ok-growth2026 .level-detail dt {
  grid-row: 1;
  justify-self: center;
  width: max-content;
  max-width: calc(100% - 56px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 16px;
  border-radius: 8px;
  background: #eaf2ff;
  color: var(--ok-blue);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.4;
}

.ok-growth2026 .level-detail dd {
  grid-row: 2;
  margin-top: 12px;
  padding: 0 28px;
  font-size: 15px;
  line-height: 1.7;
  font-weight: 400;
  color: var(--ok-text-body);
}

/* ========== 参与方式 ========== */
.ok-growth2026 .steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  list-style: none;
}

.ok-growth2026 .steps li {
  min-height: 210px;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 18px;
  border: 2px solid #ffffff;
  background: linear-gradient(180deg, #f2f8ff 0%, #ffffff 100%);
  box-shadow: 0 4px 16px rgba(39, 63, 126, 0.08);
  padding: 22px 16px 20px;
  transition:
    transform var(--ok-motion-fast) var(--ok-ease-out),
    box-shadow var(--ok-motion-fast) var(--ok-ease-out);
}

.ok-growth2026 .steps li:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(39, 63, 126, 0.12);
}

.ok-growth2026 .steps h3 {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ok-text);
  text-align: center;
}

.ok-growth2026 .steps p {
  width: 100%;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--ok-text-body);
  text-align: center;
}

.ok-growth2026 .action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 36px;
  min-width: 118px;
  padding: 0 16px;
  border-radius: 999px;
  color: var(--ok-white);
  background: var(--g-action);
  box-shadow: 0 6px 14px rgba(20, 96, 250, 0.28);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition:
    filter var(--ok-motion-fast) ease,
    transform var(--ok-motion-fast) var(--ok-ease-out);
}

.ok-growth2026 .action:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
  text-decoration: none;
}

.ok-growth2026 .steps .action {
  margin-top: auto;
}

/* ========== 积分规则 ========== */
.ok-growth2026 .filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
}

.ok-growth2026 .filters button {
  min-height: 36px;
  min-width: 96px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1.5px solid transparent;
  background: var(--ok-white);
  color: var(--ok-text);
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(39, 63, 126, 0.06);
  transition:
    color var(--ok-motion-fast) ease,
    background-color var(--ok-motion-fast) ease,
    border-color var(--ok-motion-fast) ease,
    box-shadow var(--ok-motion-fast) var(--ok-ease-out);
}

.ok-growth2026 .filters button:hover {
  color: var(--ok-blue);
  border-color: rgba(20, 96, 250, 0.4);
  background: #fff;
}

.ok-growth2026 .filters button[aria-pressed="true"] {
  background: var(--ok-blue);
  border-color: var(--ok-blue);
  color: var(--ok-white);
  box-shadow: 0 8px 18px rgba(20, 96, 250, 0.28);
}

.ok-growth2026 .table-frame {
  overflow: visible;
  border-radius: var(--ok-radius-sm);
  background: var(--ok-white);
  box-shadow: var(--ok-shadow);
}

.ok-growth2026 table {
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  width: 100%;
  text-align: center;
  font-size: 14px;
  font-weight: 400;
  background: var(--ok-white);
}

.ok-growth2026 .category-col { width: 14%; }
.ok-growth2026 .action-col { width: 14%; }
.ok-growth2026 .metric-col { width: 28%; }
.ok-growth2026 .points-col { width: 22%; }

.ok-growth2026 th,
.ok-growth2026 td {
  height: 44px;
  padding: 8px 10px;
  border-right: 1px solid #e6eef8;
  border-bottom: 1px solid #e6eef8;
  color: var(--ok-text-body);
  font-size: 14px;
}

.ok-growth2026 tr > :last-child {
  border-right: 0;
}

.ok-growth2026 thead th {
  position: sticky;
  z-index: 1;
  top: 0;
  height: 48px;
  background: #e4efff;
  color: var(--ok-text);
  font-size: 14px;
  font-weight: 600;
}

.ok-growth2026 tbody th {
  background: #f5f9ff;
  color: var(--ok-text);
  vertical-align: middle;
  font-weight: 600;
}

.ok-growth2026 tbody tr:nth-child(even) td {
  background: #f8fbff;
}

.ok-growth2026 td strong {
  color: var(--ok-blue);
  font-weight: 700;
}

/* ========== 积分兑换 ========== */
.ok-growth2026 .mall {
  position: relative;
  min-height: 240px;
  overflow: hidden;
  text-align: left !important;
  border-radius: var(--ok-radius-card);
  background:
    radial-gradient(70% 90% at 78% 50%, rgba(255, 255, 255, 0.55), transparent 60%),
    linear-gradient(105deg, #e8f4ff 0%, #d6ebfb 55%, #c8e3f7 100%);
  box-shadow: var(--ok-shadow);
}

.ok-growth2026 .mall-art {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  width: min(48%, 520px);
  height: auto;
  max-height: 210px;
  object-fit: contain;
  object-position: right center;
  filter: drop-shadow(0 10px 20px rgba(39, 63, 126, 0.12));
}

.ok-growth2026 .mall-copy {
  position: relative;
  z-index: 1;
  padding: 40px 0 40px 48px;
  max-width: 46%;
}

.ok-growth2026 .mall h3 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #1a2744;
  font-size: 22px;
  line-height: 1;
  font-weight: 600;
}

.ok-growth2026 .mall h3 svg {
  display: block;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  overflow: visible;
}

.ok-growth2026 .mall h3 span {
  line-height: 1.35;
}

.ok-growth2026 .rate {
  margin-top: 12px;
  font-size: 26px;
  color: #1a2744;
  font-weight: 600;
  white-space: nowrap;
  line-height: 1.2;
}

.ok-growth2026 .rate b,
.ok-growth2026 .rate strong {
  color: #e27d00;
  font-size: 40px;
  font-style: italic;
  font-weight: 700;
}

.ok-growth2026 .mall-caption {
  margin-top: 8px;
  font-size: 15px;
  font-weight: 400;
  color: var(--ok-text-body);
}

.ok-growth2026 .mall-action {
  min-height: 40px;
  min-width: 160px;
  margin-top: 20px;
  background: var(--g-action-orange);
  color: var(--ok-text);
  box-shadow: 0 8px 18px rgba(227, 140, 20, 0.32);
  font-size: 15px;
  font-weight: 600;
}

/* ========== 小屏兼容 ========== */
@media (max-width: 1200px) {
  .growth-hero__copy h1 {
    font-size: 32px;
  }

  .growth-hero__copy {
    max-width: 52%;
  }

  .ok-growth2026 .emblem {
    width: 84px;
    height: 84px;
  }

  .ok-growth2026 .waypoint-name {
    min-width: 88px;
    font-size: 14px;
  }

  .ok-growth2026 .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .growth-hero__copy {
    max-width: 58%;
    margin-left: 20px;
  }

  .growth-hero__copy h1 {
    font-size: 28px;
  }

  .growth-hero__copy h1::after {
    margin: 8px 0 10px;
  }

  .growth-hero__desc {
    font-size: 13px;
  }

  .ok-growth2026 .quick-nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 12px 12px 14px;
    padding: 8px;
  }

  .ok-growth2026 .levels,
  .ok-growth2026 .join,
  .ok-growth2026 .rules,
  .ok-growth2026 .redeem {
    scroll-margin-top: 88px;
  }

  .ok-growth2026 .quick-nav strong {
    display: none;
  }

  .ok-growth2026 .quick-nav a {
    font-size: 14px;
    padding: 8px 4px;
  }

  .growth-section__head {
    gap: 12px;
    margin-bottom: 28px;
  }

  .growth-section__num {
    flex-basis: 52px;
    width: 52px;
    height: 52px;
    font-size: 28px;
  }

  .growth-section__title {
    font-size: 22px;
  }

  .ok-growth2026 .trail {
    height: auto;
  }

  .ok-growth2026 .waypoints {
    position: relative;
    inset: auto;
    gap: 8px;
  }

  .ok-growth2026 .waypoint {
    margin-top: 0;
  }

  .ok-growth2026 .trail-path,
  .ok-growth2026 .waypoint-dot,
  .ok-growth2026 .level-detail::before {
    display: none;
  }

  .ok-growth2026 .level-detail dl {
    grid-template-columns: 1fr;
    padding: 16px 20px;
    text-align: left;
    background: none;
  }

  .ok-growth2026 .level-detail dt,
  .ok-growth2026 .level-detail dd {
    grid-row: auto;
  }

  .ok-growth2026 .level-detail dt {
    justify-self: start;
    max-width: 100%;
  }

  .ok-growth2026 .level-detail dt:not(:first-of-type) {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #eef3f9;
  }

  .ok-growth2026 .level-detail dd {
    padding: 0;
    text-align: left;
  }

  .ok-growth2026 .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ok-growth2026 .steps li:last-child {
    grid-column: 1 / -1;
  }

  .ok-growth2026 .mall {
    min-height: 0;
  }

  .ok-growth2026 .mall-copy {
    max-width: 58%;
    padding: 28px 0 28px 24px;
  }

  .ok-growth2026 .rate {
    font-size: 22px;
  }

  .ok-growth2026 .rate b,
  .ok-growth2026 .rate strong {
    font-size: 34px;
  }
}

@media (max-width: 640px) {
  .ok-growth2026 .desktop-break {
    display: none;
  }

  /* 窄屏底图过矮时改为文案跟在图下，避免叠层裁切 */
  .growth-hero__inner {
    position: relative;
    inset: auto;
    padding: 14px 0 18px;
  }

  .growth-hero__copy {
    max-width: none;
    margin: 0 16px;
    padding-right: 0;
  }

  .growth-hero__copy h1 {
    font-size: 22px;
  }

  .growth-hero__copy h1::after {
    width: 32px;
    height: 3px;
    margin: 6px 0 8px;
  }

  .growth-hero__desc {
    font-size: 12px;
    line-height: 1.5;
  }

  .ok-growth2026 .waypoints {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ok-growth2026 .waypoint:last-child {
    grid-column: 1 / -1;
  }

  .ok-growth2026 .steps {
    grid-template-columns: 1fr;
  }

  .ok-growth2026 .filters button {
    min-width: auto;
  }

  .ok-growth2026 .table-frame {
    overflow-x: auto;
  }

  .ok-growth2026 table {
    min-width: 640px;
  }

  .ok-growth2026 .mall-copy {
    max-width: none;
    padding: 24px 20px 16px;
  }

  .ok-growth2026 .mall-art {
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    width: 72%;
    max-height: none;
    margin: 0 0 20px auto;
    display: block;
  }
}

